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{D as N,g as w,r as m,j as e,S as y,_ as x}from"./main-634.js";import{I as M}from"./bf-942-184.js";import{s as _}from"./bf-186-202.js";import{h as u}from"./bf-512-88.js";import{M as k}from"./bf-701-203.js";import"./bf-275-83.js";import"./bf-746-82.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-438-114.js";function G({formFields:a,setIntegration:t,integrations:s,allIntegURL:g}){const j=N(),{id:p,formID:d}=w(),[i,n]=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,i,n),name:"name",value:i.name,type:"text",placeholder:x("Integration Name...")})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(k,{formID:d,formFields:a,handleInput:r=>u(r,i,n,d,l,o),sheetConf:i,setSheetConf:n,isLoading:I,setisLoading:l,setSnackbar:o}),e.jsx(M,{edit:!0,saveConfig:()=>_(s,t,g,i,j,p,1),disabled:i.listId===""||i.field_map.length<1}),e.jsx("br",{})]})}export{G as default};
