import{j as t}from"./main.2.9.0.js";import{u as h,e as x,b as e}from"./react-router.DMwpH23k.js";import"./CopyIcn.CEA_lFLo.js";import{S}from"./SnackMsg.DYSD96P4.js";import{S as j}from"./Steps.BYe8zHkm.js";import{g as k}from"./Integrations.DL8wqGct.js";import b from"./WebHooksIntegration.CesI9y9U.js";import{W as v}from"./WebHooksStepTwo.C9DaqOtP.js";import{T as w}from"./TutorialLink.CFG7bS5c.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./BackIcn._8Wofmn2.js";function M({formFields:i,setFlow:r,flow:p,allIntegURL:m}){const n=h(),{formID:c}=x(),[s,d]=e.useState(1),[l,a]=e.useState({show:!1}),[u,f]=e.useState(!1),[o,g]=e.useState({name:"Zapier Web Hooks",type:"Zapier",method:"POST",url:"",apiConsole:"https://zapier.com/app/dashboard"});return t.jsxs("div",{children:[t.jsx(S,{snack:l,setSnackbar:a}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(j,{step:2,active:s})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"auto"},children:[t.jsx(w,{linkKey:"zapierLinks"}),t.jsx(b,{formID:c,formFields:i,webHooks:o,setWebHooks:g,step:s,setStep:d,setSnackbar:a,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&"100%",height:s===2&&"auto"},children:t.jsx(v,{step:s,saveConfig:()=>k(p,r,m,o,n,"","",f),isLoading:u})})]})}export{M as default};
