var f=Object.defineProperty;var m=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var c=(e,t,s)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,b=(e,t)=>{for(var s in t||(t={}))j.call(t,s)&&c(e,s,t[s]);if(m)for(var s of m(t))k.call(t,s)&&c(e,s,t[s]);return e};import{r as o,F as v,D as _,g,j as a,S as y}from"./main-634.js";import{ae as S,a7 as h}from"./bf-746-82.js";import"./bf-275-83.js";import"./bf-822-108.js";const E=o.lazy(()=>v(()=>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 W({formFields:e,setIntegration:t,integrations:s,allIntegURL:l}){const d=_(),{id:r,formID:p}=g(),[i,u]=o.useState(b({},s[r])),[x,n]=o.useState({show:!1});return a.jsxs("div",{style:{width:900},children:[a.jsx(y,{snack:x,setSnackbar:n}),a.jsx("div",{className:"mt-3",children:a.jsx(E,{formID:p,formFields:e,webHooks:i,setWebHooks:u,setSnackbar:n})}),a.jsx(S,{edit:!0,saveConfig:()=>h(s,t,l,i,d,r,1)}),a.jsx("br",{})]})}export{W as default};
