var S=Object.defineProperty;var d=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var l=(t,s,a)=>s in t?S(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,u=(t,s)=>{for(var a in s||(s={}))v.call(s,a)&&l(t,a,s[a]);if(d)for(var a of d(s))N.call(s,a)&&l(t,a,s[a]);return t};import{G as A,g as C,r as m,j as e,S as k,_ as f}from"./main-343.js";import{I as w}from"./bf-58-184.js";import{s as y}from"./bf-745-202.js";import{a as x,c as E}from"./bf-164-177.js";import{A as L}from"./bf-692-222.js";import"./bf-659-81.js";import"./bf-974-82.js";import"./bf-649-79.js";import"./bf-594-113.js";function B({formFields:t,setIntegration:s,integrations:a,allIntegURL:g}){const h=A(),{id:c,formID:b}=C(),[n,i]=m.useState(u({},a[c])),[j,p]=m.useState(!1),[I,o]=m.useState({show:!1});return e.jsxs("div",{style:{width:900},children:[e.jsx(k,{snack:I,setSnackbar:o}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:f("Integration Name:")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:r=>x(r,n,i),name:"name",value:n.name,type:"text",placeholder:f("Integration Name...")})]}),e.jsx("br",{}),e.jsx(L,{formFields:t,handleInput:r=>x(r,n,i,p,o,b),acumbamailConf:n,setAcumbamailConf:i,isLoading:j,setIsLoading:p,setSnackbar:o}),e.jsx(w,{edit:!0,saveConfig:()=>y(a,s,g,n,h,c,1),disabled:!n.mainAction||!E(n)}),e.jsx("br",{})]})}export{B as default};
