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