import{r as e,aH as h,v as x,w as y,j as t,S as k}from"./main-40.js";/* empty css          */import{t as i}from"./bf-892-199.js";import{S as j,T as v,W as f}from"./bf-679-136.js";import{b as g}from"./bf-132-75.js";import"./bf-860-126.js";import"./bf-141-80.js";const S=e.lazy(()=>h(()=>import("./bf-627-203.js"),["./bf-627-203.js","./main-40.js","./main-40.css","./bf-586-70.js","./bf-141-80.js","./bf-149-418.css","./bf-249-417.css","./bf-476-127.js","./bf-791-423.css"],import.meta.url));function I({formFields:r,setIntegration:n,integrations:l,allIntegURL:p}){const b=x(),{formID:c}=y(),[s,m]=e.useState(1),[d,a]=e.useState({show:!1}),[o,u]=e.useState({name:"Pabbly WebHooks",type:"Pabbly",method:"POST",url:"",apiConsole:"https://connect.pabbly.com/dashboard"});return t.jsxs("div",{children:[t.jsx(k,{snack:d,setSnackbar:a}),t.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:t.jsx(j,{step:2,active:s})}),t.jsx(v,{title:i.pabbly.title,youTubeLink:i.pabbly.link}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"100%"},children:t.jsx(S,{formID:c,formFields:r,webHooks:o,setWebHooks:u,step:s,setstep:m,setSnackbar:a,create:!0})}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&900,minHeight:s===2&&"900px"},children:t.jsx(f,{step:s,saveConfig:()=>g(l,n,p,o,b)})})]})}export{I as default};
