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