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