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{G as N,g as w,r,j as a,S as C,_ as l}from"./main-343.js";import{a7 as y}from"./bf-659-81.js";import{I as D}from"./bf-58-184.js";import{h as E}from"./bf-720-104.js";import{Z as L}from"./bf-544-198.js";import"./bf-974-82.js";import"./bf-649-79.js";import"./bf-541-186.js";function z({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=()=>{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: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(D,{edit:!0,saveConfig:v,disabled:o.team===""||o.folder===""})]})}export{z as default};
