import{u as b,k as j,r as o,j as s}from"./main-333.js";import{d as S,F as k}from"./bi.636.93.js";import{S as v}from"./bi.563.969.js";import T from"./bi.27.259.js";import{W as y}from"./bi.740.766.js";import{T as r,t as Z}from"./bi.318.783.js";import"./bi.429.767.js";function E({formFields:n,setFlow:c,flow:p,allIntegURL:m}){const u=b(),{formID:d}=j(),[e,l]=o.useState(1),[x,a]=o.useState({show:!1}),[h,f]=o.useState(!1),{zapierLinks:t}=Z,[i,g]=o.useState({name:"Zapier Web Hooks",type:"Zapier",method:"POST",url:"",apiConsole:"https://zapier.com/app/dashboard"});return s.jsxs("div",{children:[s.jsx(S,{snack:x,setSnackbar:a}),s.jsx("div",{className:"txt-center mt-2",children:s.jsx(v,{step:2,active:e})}),s.jsxs("div",{className:"btcd-stp-page",style:{width:e===1&&900,height:e===1&&"auto"},children:[(t==null?void 0:t.youTubeLink)&&s.jsx(r,{title:"Zapier",youTubeLink:t==null?void 0:t.youTubeLink}),(t==null?void 0:t.docLink)&&s.jsx(r,{title:"Zapier",docLink:t==null?void 0:t.docLink}),s.jsx(T,{formID:d,formFields:n,webHooks:i,setWebHooks:g,step:e,setStep:l,setSnackbar:a,create:!0})]}),s.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&"100%",height:e===2&&"auto"},children:s.jsx(y,{step:e,saveConfig:()=>k(p,c,m,i,u,"","",f),isLoading:h})})]})}export{E as default};
