import{r as e,H as h,G as x,g as y,j as t,S as k}from"./main-343.js";import"./bf-649-79.js";import{t as i}from"./bf-974-82.js";import{S as g}from"./bf-149-261.js";import{a5 as j,ad as f,a7 as v}from"./bf-659-81.js";const S=e.lazy(()=>h(()=>import("./bf-526-116.js"),["./bf-526-116.js","./main-343.js","./main-343.css","./bf-649-79.js","./bf-899-409.css"],import.meta.url));function E({formFields:r,setIntegration:n,integrations:l,allIntegURL:c}){const p=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,c,o,p)})})]})}export{E as default};
