var S=Object.defineProperty;var c=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var h=(a,e,s)=>e in a?S(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s,f=(a,e)=>{for(var s in e||(e={}))v.call(e,s)&&h(a,s,e[s]);if(c)for(var s of c(e))C.call(e,s)&&h(a,s,e[s]);return a};import{v as N,w,r as m,j as t,S as y,_ as x}from"./main-40.js";import{I as M}from"./bf-94-335.js";import{s as _}from"./bf-806-365.js";import{h as u}from"./bf-537-366.js";import{M as k}from"./bf-307-367.js";import"./bf-528-128.js";import"./bf-200-122.js";import"./bf-689-131.js";function B({formFields:a,setIntegration:e,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 t.jsxs("div",{style:{width:900},children:[t.jsx(y,{snack:b,setSnackbar:o}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-150 d-in-b",children:x("Integration Name:")}),t.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...")})]}),t.jsx("br",{}),t.jsx("br",{}),t.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}),t.jsx(M,{edit:!0,saveConfig:()=>_(s,e,g,n,j,p,1),disabled:n.listId===""||n.field_map.length<1}),t.jsx("br",{})]})}export{B as default};
