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{D as A,g as C,r as m,j as e,S as k,_ as f}from"./main-634.js";import{I as w}from"./bf-942-184.js";import{s as y}from"./bf-186-202.js";import{a as x,c as E}from"./bf-709-177.js";import{A as L}from"./bf-137-222.js";import"./bf-746-82.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-438-114.js";function H({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{H as default};
