import{r as e,F as h,D as x,g as y,j as t,S as k}from"./main-634.js";import"./bf-25-81.js";import{t as i}from"./bf-275-83.js";import{S as g}from"./bf-54-258.js";import{a5 as j,ae as f,a7 as v}from"./bf-746-82.js";import"./bf-822-108.js";const S=e.lazy(()=>h(()=>import("./bf-363-117.js"),["./bf-363-117.js","./main-634.js","./main-634.css","./bf-25-81.js","./bf-831-476.css"],import.meta.url));function I({formFields:r,setIntegration:n,integrations:l,allIntegURL:p}){const c=x(),{formID:b}=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(g,{step:2,active:s})}),t.jsx(j,{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:b,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:()=>v(l,n,p,o,c)})})]})}export{I as default};
