var b=Object.defineProperty;var c=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var h=(a,t,e)=>t in a?b(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,f=(a,t)=>{for(var e in t||(t={}))N.call(t,e)&&h(a,e,t[e]);if(c)for(var e of c(t))v.call(t,e)&&h(a,e,t[e]);return a};import{G as w,g as C,r as m,j as s,S as k,_ as u}from"./main-343.js";import{s as y}from"./bf-204-199.js";import{I as G}from"./bf-58-184.js";import{a as x}from"./bf-997-171.js";import{G as _}from"./bf-977-200.js";import"./bf-659-81.js";import"./bf-974-82.js";import"./bf-649-79.js";import"./bf-594-113.js";import"./bf-466-201.js";function F({formFields:a,setIntegration:t,integrations:e,allIntegURL:g}){const j=w(),{id:p,formID:d}=C(),[o,r]=m.useState(f({},e[p])),[I,l]=m.useState(!1),[S,n]=m.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(k,{snack:S,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-6",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(_,{formID:d,formFields:a,handleInput:i=>x(i,o,r,d,l,n),sheetConf:o,setSheetConf:r,isLoading:I,setisLoading:l,setSnackbar:n}),s.jsx(G,{edit:!0,saveConfig:()=>y(e,t,g,o,j,p,1),disabled:o.spreadsheetId===""||o.worksheetName===""||o.field_map.length<1}),s.jsx("br",{})]})}export{F as default};
