import{u as b,k as j,r as o,j as s}from"./main-406.js";import{d as S,G as v}from"./bi.394.85.js";import{S as T}from"./bi.68.941.js";import k from"./bi.738.248.js";import{W as y}from"./bi.771.743.js";import{T as i,t as w}from"./bi.150.760.js";import"./bi.46.744.js";function P({formFields:c,setFlow:n,flow:m,allIntegURL:u}){const d=b(),{formID:l}=j(),[e,p]=o.useState(1),[x,a]=o.useState({show:!1}),[h,f]=o.useState(!1),{zapierLinks:t}=w,[r,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(T,{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(i,{title:t==null?void 0:t.title,youTubeLink:t==null?void 0:t.youTubeLink}),(t==null?void 0:t.docLink)&&s.jsx(i,{title:t==null?void 0:t.title,docLink:t==null?void 0:t.docLink}),s.jsx(k,{formID:l,formFields:c,webHooks:r,setWebHooks:g,step:e,setStep:p,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:()=>v(m,n,u,r,d,"","",f),isLoading:h})})]})}export{P as default};
