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