var v=Object.defineProperty;var d=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?v(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,u=(e,s)=>{for(var t in s||(s={}))y.call(s,t)&&f(e,t,s[t]);if(d)for(var t of d(s))S.call(s,t)&&f(e,t,s[t]);return e};import{v as w,w as N,r as m,j as a,S as C,_ as x}from"./main-40.js";import{b as k}from"./bf-132-75.js";import{I as _}from"./bf-94-335.js";import{h}from"./bf-414-336.js";import{Z as E}from"./bf-855-337.js";import"./bf-528-128.js";import"./bf-620-81.js";import"./bf-135-338.js";import"./bf-200-122.js";import"./bf-689-131.js";function F({formFields:e,setIntegration:s,integrations:t,allIntegURL:g}){const j=w(),{id:p,formID:c}=N(),[n,o]=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,n,o),name:"name",value:n.name,type:"text",placeholder:x("Integration Name...")})]}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(E,{formID:c,formFields:e,handleInput:i=>h(i,n,o,c,l,r),analyticsConf:n,setAnalyticsConf:o,isLoading:b,step:2,setisLoading:l,setSnackbar:r}),a.jsx(_,{edit:!0,saveConfig:()=>k(t,s,g,n,j,p,1),disabled:n.workspace===""||n.table===""||n.field_map.length<1}),a.jsx("br",{})]})}export{F as default};
