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