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