import{u as b,k as S,r as o,j as e}from"./main-406.js";import{d as k,G as v}from"./bi.394.85.js";import{S as g}from"./bi.68.941.js";import w from"./bi.738.248.js";import{W as I}from"./bi.771.743.js";import{T as c,t as T}from"./bi.150.760.js";import"./bi.46.744.js";function P({formFields:i,setFlow:u,flow:p,allIntegURL:n}){const d=b(),{formID:l}=S(),[s,m]=o.useState(1),[x,a]=o.useState({show:!1}),[h,f]=o.useState(!1),{integromatLinks:t}=T,[r,j]=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(k,{snack:x,setSnackbar:a}),e.jsx("div",{className:"txt-center mt-2",children:e.jsx(g,{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(w,{formID:l,formFields:i,webHooks:r,setWebHooks:j,step:s,setStep:m,setSnackbar:a,create:!0})]}),e.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&"100%",height:s===2&&"auto"},children:e.jsx(I,{step:s,saveConfig:()=>v(p,u,n,r,d,"","",f),isLoading:h})})]})}export{P as default};
