var y=Object.defineProperty;var d=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?y(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,u=(e,s)=>{for(var t in s||(s={}))S.call(s,t)&&f(e,t,s[t]);if(d)for(var t of d(s))v.call(s,t)&&f(e,t,s[t]);return e};import{D as N,g as w,r as m,j as a,S as C,_ as x}from"./main-634.js";import{a7 as k}from"./bf-746-82.js";import{I as _}from"./bf-942-184.js";import{h}from"./bf-107-90.js";import{Z as E}from"./bf-250-185.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-297-103.js";import"./bf-824-186.js";import"./bf-438-114.js";function G({formFields:e,setIntegration:s,integrations:t,allIntegURL:g}){const j=N(),{id:p,formID:c}=w(),[o,n]=m.useState(u({},t[p])),[b,l]=m.useState(!1),[I,r]=m.useState({show:!1});return a.jsxs("div",{style:{width:900},children:[a.jsx(C,{snack:I,setSnackbar:r}),a.jsxs("div",{className:"flx mt-3",children:[a.jsx("b",{className:"wdt-100 d-in-b",children:x("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-7",onChange:i=>h(i,o,n),name:"name",value:o.name,type:"text",placeholder:x("Integration Name...")})]}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(E,{formID:c,formFields:e,handleInput:i=>h(i,o,n,c,l,r),analyticsConf:o,setAnalyticsConf:n,isLoading:b,step:2,setisLoading:l,setSnackbar:r}),a.jsx(_,{edit:!0,saveConfig:()=>k(t,s,g,o,j,p,1),disabled:o.workspace===""||o.table===""||o.field_map.length<1}),a.jsx("br",{})]})}export{G as default};
