import{j as t}from"./main.2.9.0.js";import{u as x,e as h,b as e}from"./react-router.DMwpH23k.js";import"./CopyIcn.CEA_lFLo.js";import{S}from"./SnackMsg.DYSD96P4.js";import{S as b}from"./Steps.BYe8zHkm.js";import{g as j}from"./Integrations.DL8wqGct.js";import{W as k}from"./WebHooksStepTwo.C9DaqOtP.js";import v from"./WebHooksIntegration.CesI9y9U.js";import"./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 R({formFields:r,setFlow:i,flow:m,allIntegURL:n}){const p=x(),{formID:c}=h(),[s,d]=e.useState(1),[u,o]=e.useState({show:!1}),[f,g]=e.useState(!1),[a,l]=e.useState({name:"Web Hooks",type:"Web Hooks",method:"POST",url:""});return t.jsxs("div",{children:[t.jsx(S,{snack:u,setSnackbar:o}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(b,{step:2,active:s})}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"auto"},children:t.jsx(v,{formID:c,formFields:r,webHooks:a,setWebHooks:l,step:s,setStep:d,setSnackbar:o,create:!0})}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&"100%",height:s===2&&"auto"},children:t.jsx(k,{step:s,saveConfig:()=>j(m,i,n,a,p,"","",g),isLoading:f})})]})}export{R as default};
