var j=Object.defineProperty;var i=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(a,s,e)=>s in a?j(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e,p=(a,s)=>{for(var e in s||(s={}))I.call(s,e)&&m(a,e,s[e]);if(i)for(var e of i(s))b.call(s,e)&&m(a,e,s[e]);return a};import{v,w as E,r as c,j as t,S as N,_ as d}from"./main-40.js";import{I as S}from"./bf-94-335.js";import{s as w}from"./bf-806-365.js";import{h as C}from"./bf-333-387.js";import{E as y}from"./bf-164-388.js";import"./bf-547-83.js";import"./bf-141-80.js";import"./bf-132-75.js";import"./bf-200-122.js";import"./bf-689-131.js";function B({formFields:a,setIntegration:s,integrations:e,allIntegURL:l}){const h=v(),{id:n,formID:x}=E(),[r,o]=c.useState(p({},e[n])),[f,g]=c.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(N,{snack:f,setSnackbar:g}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>C(u,r,o),name:"name",value:r.name,type:"text",placeholder:d("Integration Name...")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(y,{formID:x,formFields:a,enchargeConf:r,setEnchargeConf:o}),t.jsx(S,{edit:!0,saveConfig:()=>w(e,s,l,r,h,n,1),disabled:r.listId===""||r.field_map.length<1}),t.jsx("br",{})]})}export{B as default};
