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