import{j as t}from"./main.2.8.10.js";import{u as g,e as h,b as e}from"./react-router.DMwpH23k.js";import"./CopyIcn.BnhKHfEP.js";import{S as x}from"./SnackMsg.7BjcJK1j.js";import{S}from"./Steps.B84Ui3GU.js";import{g as j}from"./Integrations.BFhED4ck.js";import k from"./WebHooksIntegration.CoprJ8QL.js";import{W as y}from"./WebHooksStepTwo.BQfnOc8x.js";import{T as v}from"./TutorialLink.D6K_DiHL.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./BackIcn.BFDZx8No.js";function R({formFields:i,setFlow:r,flow:n,allIntegURL:m}){const p=g(),{formID:c}=h(),[s,b]=e.useState(1),[l,o]=e.useState({show:!1}),[d,u]=e.useState(!1),[a,f]=e.useState({name:"Pabbly Web Hooks",type:"Pabbly",method:"POST",url:"",apiConsole:"https://connect.pabbly.com/dashboard"});return t.jsxs("div",{children:[t.jsx(x,{snack:l,setSnackbar:o}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(S,{step:2,active:s})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&1100,height:s===1&&"auto"},children:[t.jsx(v,{linkKey:"pabblyLinks"}),t.jsx(k,{formID:c,formFields:i,webHooks:a,setWebHooks:f,step:s,setStep:b,setSnackbar:o,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&"100%",height:s===2&&"auto"},children:t.jsx(y,{step:s,saveConfig:()=>j(n,r,m,a,p,"","",u),isLoading:d})})]})}export{R as default};
