var I=Object.defineProperty;var c=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var d=(t,s,e)=>s in t?I(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,p=(t,s)=>{for(var e in s||(s={}))S.call(s,e)&&d(t,e,s[e]);if(c)for(var e of c(s))k.call(s,e)&&d(t,e,s[e]);return t};import{v as w,w as N,r,j as a,S as C,_ as l}from"./main-40.js";import{b as y}from"./bf-132-75.js";import{I as D}from"./bf-94-335.js";import{h as E}from"./bf-636-361.js";import{Z as L}from"./bf-1-362.js";import"./bf-528-128.js";import"./bf-135-338.js";function z({formFields:t,setIntegration:s,integrations:e,allIntegURL:f}){const u=w(),{id:n,formID:x}=N(),[o,i]=r.useState(p({},e[n])),[h,g]=r.useState(!1),[j,m]=r.useState({show:!1}),v=()=>{y(e,s,f,o,u,n,1)};return a.jsxs("div",{style:{width:900},children:[a.jsx(C,{snack:j,setSnackbar:m}),a.jsxs("div",{className:"flx mt-3",children:[a.jsx("b",{className:"wdt-100 d-in-b",children:l("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-7",onChange:b=>E(b,o,i),name:"name",value:o.name,type:"text",placeholder:l("Integration Name...")})]}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(L,{formID:x,formFields:t,workDriveConf:o,setWorkDriveConf:i,isLoading:h,setisLoading:g,setSnackbar:m}),a.jsx(D,{edit:!0,saveConfig:v,disabled:o.team===""||o.folder===""})]})}export{z as default};
