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{G as N,g as w,r as m,j as a,S as C,_ as x}from"./main-343.js";import{a7 as k}from"./bf-659-81.js";import{I as _}from"./bf-58-184.js";import{h}from"./bf-153-92.js";import{Z as E}from"./bf-733-185.js";import"./bf-974-82.js";import"./bf-649-79.js";import"./bf-529-105.js";import"./bf-541-186.js";import"./bf-594-113.js";function B({formFields:e,setIntegration:s,integrations:t,allIntegURL:g}){const j=N(),{id:p,formID:c}=w(),[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{B as default};
