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,c=(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{G as E,g as v,r as p,j as t,S as N,_ as d}from"./main-343.js";import{I as S}from"./bf-58-184.js";import{s as C}from"./bf-745-202.js";import{h as w}from"./bf-66-176.js";import{E as y}from"./bf-894-218.js";import"./bf-649-79.js";import"./bf-659-81.js";import"./bf-974-82.js";import"./bf-594-113.js";function z({formFields:a,setIntegration:s,integrations:e,allIntegURL:l}){const h=E(),{id:n,formID:x}=v(),[r,o]=p.useState(c({},e[n])),[f,g]=p.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=>w(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:()=>C(e,s,l,r,h,n,1),disabled:r.listId===""||r.field_map.length<1}),t.jsx("br",{})]})}export{z as default};
