| 1 |
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{F as N,g as w,r as m,j as e,S as y,_ as x}from"./main-294.js";import{I as M}from"./bf-906-183.js";import{s as _}from"./bf-349-201.js";import{h as u}from"./bf-507-88.js";import{M as k}from"./bf-383-202.js";import"./bf-582-82.js";import"./bf-813-81.js";import"./bf-158-107.js";import"./bf-176-80.js";import"./bf-867-113.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}; |