import{r as e,F as h,D as u,g,j as s,S as b}from"./main-634.js";import"./bf-25-81.js";import{S as j}from"./bf-54-258.js";import{ae as k,a7 as v}from"./bf-746-82.js";import"./bf-275-83.js";import"./bf-822-108.js";const S=e.lazy(()=>h(()=>import("./bf-363-117.js"),["./bf-363-117.js","./main-634.js","./main-634.css","./bf-25-81.js","./bf-831-476.css"],import.meta.url));function E({formFields:r,setIntegration:i,integrations:n,allIntegURL:c}){const m=u(),{formID:p}=g(),[t,d]=e.useState(1),[l,o]=e.useState({show:!1}),[a,x]=e.useState({name:"Web Hooks",type:"Web Hooks",method:"POST",url:""});return s.jsxs("div",{children:[s.jsx(b,{snack:l,setSnackbar:o}),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:a,setWebHooks:x,step:t,setstep:d,setSnackbar:o,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,a,m)})})]})}export{E as default};
