import{j as t}from"./main.2.8.1.js";import{u as x,h as j,d as o}from"./react-router-dom.9mCuUg3q.js";import"./Note.BeM7sN-p.js";import{S}from"./SnackMsg.S8DrwLlT.js";import{S as b}from"./Steps.1hz7v9Vj.js";import{g as I}from"./Integrations.D2bgBas2.js";import v from"./WebHooksIntegration.B7pcODxw.js";import{W as w}from"./WebHooksStepTwo.CLsJIPcj.js";import{t as T}from"./tutorialLinks.kMkIDzcD.js";import{T as i}from"./TutorialLink.BAFX--T3.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./BackIcn._kGL_vVw.js";function A({formFields:m,setFlow:n,flow:p,allIntegURL:c}){const u=x(),{formID:d}=j(),[e,g]=o.useState(1),[l,a]=o.useState({show:!1}),[f,k]=o.useState(!1),{integromatLinks:s}=T,[r,h]=o.useState({name:"Make(Integromat) Web Hooks",type:"Make(Integromat)",method:"POST",url:"",apiConsole:"https://www.integromat.com/hooks/"});return t.jsxs("div",{children:[t.jsx(S,{snack:l,setSnackbar:a}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(b,{step:2,active:e})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:e===1&&1100,height:e===1&&"auto"},children:[t.jsx(i,{title:"Make (Integromat)",youTubeLink:s==null?void 0:s.youTubeLink}),t.jsx(i,{title:"Make (Integromat)",docLink:s==null?void 0:s.docLink}),t.jsx(v,{formID:d,formFields:m,webHooks:r,setWebHooks:h,step:e,setStep:g,setSnackbar:a,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&"100%",height:e===2&&"auto"},children:t.jsx(w,{step:e,saveConfig:()=>I(p,n,c,r,u,"","",k),isLoading:f})})]})}export{A as default};
