var b=Object.defineProperty;var c=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var d=(t,s,e)=>s in t?b(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{D as N,g as w,r,j as a,S as C,_ as l}from"./main-634.js";import{a7 as D}from"./bf-746-82.js";import{I as y}from"./bf-942-184.js";import{h as E}from"./bf-907-102.js";import{Z as L}from"./bf-968-198.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-824-186.js";function B({formFields:t,setIntegration:s,integrations:e,allIntegURL:f}){const u=N(),{id:n,formID:x}=w(),[o,i]=r.useState(p({},e[n])),[h,g]=r.useState(!1),[j,m]=r.useState({show:!1}),v=()=>{D(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:I=>E(I,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(y,{edit:!0,saveConfig:v,disabled:o.team===""||o.folder===""})]})}export{B as default};
