| 1 |
var j=Object.defineProperty;var i=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(a,t,e)=>t in a?j(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,p=(a,t)=>{for(var e in t||(t={}))I.call(t,e)&&m(a,e,t[e]);if(i)for(var e of i(t))b.call(t,e)&&m(a,e,t[e]);return a};import{v,t as E,r as c,j as s,S as N,_ as d}from"./main-162.js";import{I as S}from"./bf-283-330.js";import{s as C}from"./bf-720-360.js";import{h as w}from"./bf-691-382.js";import{E as y}from"./bf-388-383.js";import"./bf-432-112.js";import"./bf-917-73.js";import"./bf-230-72.js";import"./bf-361-122.js";import"./bf-527-130.js";function B({formFields:a,setIntegration:t,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 s.jsxs("div",{style:{width:900},children:[s.jsx(N,{snack:f,setSnackbar:g}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:")}),s.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...")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(y,{formID:x,formFields:a,enchargeConf:r,setEnchargeConf:o}),s.jsx(S,{edit:!0,saveConfig:()=>C(e,t,l,r,h,n,1),disabled:r.listId===""||r.field_map.length<1}),s.jsx("br",{})]})}export{B as default}; |