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