import{r as e,aH as h,v as u,w as b,j as s,S as v}from"./main-40.js";/* empty css          */import{S as g,W as j}from"./bf-679-136.js";import{b as k}from"./bf-132-75.js";import"./bf-860-126.js";import"./bf-892-199.js";import"./bf-141-80.js";const S=e.lazy(()=>h(()=>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 I({formFields:r,setIntegration:i,integrations:n,allIntegURL:c}){const m=u(),{formID:p}=b(),[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(v,{snack:l,setSnackbar:o}),s.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:s.jsx(g,{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(j,{step:t,saveConfig:()=>k(n,i,c,a,m)})})]})}export{I as default};
