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