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