var I=Object.defineProperty;var p=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var l=(t,s,e)=>s in t?I(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,x=(t,s)=>{for(var e in s||(s={}))C.call(s,e)&&l(t,e,s[e]);if(p)for(var e of p(s))S.call(s,e)&&l(t,e,s[e]);return t};import{G as v,g as w,r as i,j as a,S as N,_ as u}from"./main-343.js";import{a7 as k}from"./bf-659-81.js";import{I as y}from"./bf-58-184.js";import{h as f,W}from"./bf-819-214.js";import"./bf-974-82.js";import"./bf-649-79.js";import"./bf-594-113.js";function q({formFields:t,setIntegration:s,integrations:e,allIntegURL:g}){const h=v(),{id:m}=w(),[n,o]=i.useState(x({},e[m])),[j,c]=i.useState(!1),[b,d]=i.useState({show:!1});return a.jsxs("div",{style:{width:900},children:[a.jsx(N,{snack:b,setSnackbar:d}),a.jsxs("div",{className:"flx mt-3",children:[a.jsx("b",{className:"wdt-100 d-in-b",children:u("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-7",onChange:r=>f(r,n,o),name:"name",value:n.name,type:"text",placeholder:u("Integration Name...")})]}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(W,{wcConf:n,setWcConf:o,formFields:t,handleInput:r=>f(r,n,o,c,d),isLoading:j,setisLoading:c}),a.jsx(y,{edit:!0,saveConfig:()=>k(e,s,g,n,h,m,1),disabled:n.workspace===""||n.table===""||n.field_map.length<1}),a.jsx("br",{})]})}export{q as default};
