import{r as s,aH as x,v as h,w as k,j as t,S as j}from"./main-40.js";/* empty css          */import{t as i}from"./bf-892-199.js";import{S as v,T as w,W as b}from"./bf-679-136.js";import{b as f}from"./bf-132-75.js";import"./bf-860-126.js";import"./bf-141-80.js";const S=s.lazy(()=>x(()=>import("./bf-627-203.js"),["./bf-627-203.js","./main-40.js","./main-40.css","./bf-586-70.js","./bf-141-80.js","./bf-149-418.css","./bf-249-417.css","./bf-476-127.js","./bf-791-423.css"],import.meta.url));function L({formFields:r,setIntegration:n,integrations:m,allIntegURL:c}){const p=h(),{formID:l}=k(),[e,g]=s.useState(1),[d,o]=s.useState({show:!1}),[a,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:o}),t.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:t.jsx(v,{step:2,active:e})}),t.jsx(w,{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(S,{formID:l,formFields:r,webHooks:a,setWebHooks:u,step:e,setstep:g,setSnackbar:o,create:!0})}),t.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&900,minHeight:e===2&&"900px"},children:t.jsx(b,{step:e,saveConfig:()=>f(m,n,c,a,p)})})]})}export{L as default};
