import{j as t}from"./main.2.8.1.js";import{u as h,h as j,d as o}from"./react-router-dom.9mCuUg3q.js";import"./Note.BeM7sN-p.js";import{S as k}from"./SnackMsg.S8DrwLlT.js";import{S as b}from"./Steps.1hz7v9Vj.js";import{g as y}from"./Integrations.D2bgBas2.js";import v from"./WebHooksIntegration.B7pcODxw.js";import{W as T}from"./WebHooksStepTwo.CLsJIPcj.js";import{T as r}from"./TutorialLink.BAFX--T3.js";import{t as w}from"./tutorialLinks.kMkIDzcD.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./BackIcn._kGL_vVw.js";function z({formFields:p,setFlow:n,flow:m,allIntegURL:c}){const d=h(),{formID:S}=j(),[s,u]=o.useState(1),[l,a]=o.useState({show:!1}),[f,x]=o.useState(!1),{syncSpiderLinks:e}=w,[i,g]=o.useState({name:"SyncSpider Web Hooks",type:"SyncSpider",method:"POST",url:"",apiConsole:"https://app.syncspider.com/app/"});return t.jsxs("div",{children:[t.jsx(k,{snack:l,setSnackbar:a}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(b,{step:2,active:s})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&1100,height:s===1&&"auto"},children:[t.jsx(r,{title:"SyncSpider",youTubeLink:e==null?void 0:e.youTubeLink}),t.jsx(r,{title:"SyncSpider",docLink:e==null?void 0:e.docLink}),t.jsx(v,{formID:S,formFields:p,webHooks:i,setWebHooks:g,step:s,setStep:u,setSnackbar:a,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:()=>y(m,n,c,i,d,"","",x),isLoading:f})})]})}export{z as default};
