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