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