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