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