var I=Object.defineProperty;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var p=(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={}))v.call(s,e)&&p(t,e,s[e]);if(l)for(var e of l(s))w.call(s,e)&&p(t,e,s[e]);return t};import{v as C,w as S,r as i,j as a,S as N,_ as u}from"./main-40.js";import{b as k}from"./bf-132-75.js";import{I as y}from"./bf-94-335.js";import{h as f,W}from"./bf-229-381.js";import"./bf-200-122.js";import"./bf-689-131.js";function q({formFields:t,setIntegration:s,integrations:e,allIntegURL:h}){const g=C(),{id:m}=S(),[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,h,n,g,m,1),disabled:n.workspace===""||n.table===""||n.field_map.length<1}),a.jsx("br",{})]})}export{q as default};
