import{r as s,H as x,G as h,g as k,j as t,S as j}from"./main-343.js";import"./bf-649-79.js";import{t as i}from"./bf-974-82.js";import{S as f}from"./bf-149-261.js";import{a5 as v,ad as w,a7 as S}from"./bf-659-81.js";const b=s.lazy(()=>x(()=>import("./bf-526-116.js"),["./bf-526-116.js","./main-343.js","./main-343.css","./bf-649-79.js","./bf-899-409.css"],import.meta.url));function E({formFields:r,setIntegration:n,integrations:m,allIntegURL:c}){const p=h(),{formID:l}=k(),[e,g]=s.useState(1),[d,a]=s.useState({show:!1}),[o,u]=s.useState({name:"Integromat Web Hooks",type:"Integromat",method:"POST",url:"",apiConsole:"https://www.integromat.com/"});return t.jsxs("div",{children:[t.jsx(j,{snack:d,setSnackbar:a}),t.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:t.jsx(f,{step:2,active:e})}),t.jsx(v,{title:i.integromat.title,youTubeLink:i.integromat.link}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===1&&900,height:e===1&&"100%"},children:t.jsx(b,{formID:l,formFields:r,webHooks:o,setWebHooks:u,step:e,setstep:g,setSnackbar:a,create:!0})}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&900,minHeight:e===2&&"900px"},children:t.jsx(w,{step:e,saveConfig:()=>S(m,n,c,o,p)})})]})}export{E as default};
