import{u as b,k as S,r as a,j as e}from"./main-406.js";import{d as p,G as v}from"./bi.394.85.js";import{S as W}from"./bi.68.941.js";import T from"./bi.738.248.js";import{W as k}from"./bi.771.743.js";import{T as c,t as y}from"./bi.150.760.js";import"./bi.46.744.js";function G({formFields:i,setFlow:m,flow:d,allIntegURL:l}){const n=b(),{formID:u}=S(),[s,x]=a.useState(1),[f,o]=a.useState({show:!1}),[g,h]=a.useState(!1),{wpFusionLinks:t}=y,[r,j]=a.useState({name:"WPFusion Web Hooks",type:"WPFusion",method:"POST",url:""});return e.jsxs("div",{children:[e.jsx(p,{snack:f,setSnackbar:o}),e.jsx("div",{className:"txt-center mt-2",children:e.jsx(W,{step:2,active:s})}),e.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&1100,height:s===1&&"auto"},children:[(t==null?void 0:t.youTubeLink)&&e.jsx(c,{title:t==null?void 0:t.title,youTubeLink:t==null?void 0:t.youTubeLink}),(t==null?void 0:t.docLink)&&e.jsx(c,{title:t==null?void 0:t.title,docLink:t==null?void 0:t.docLink}),e.jsx(T,{formID:u,formFields:i,webHooks:r,setWebHooks:j,step:s,setStep:x,setSnackbar:o,create:!0})]}),e.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&"100%",height:s===2&&"auto"},children:e.jsx(k,{step:s,saveConfig:()=>v(d,m,l,r,n,"","",h),isLoading:g})})]})}export{G as default};
