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