var b=Object.defineProperty;var c=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var d=(a,s,e)=>s in a?b(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e,p=(a,s)=>{for(var e in s||(s={}))S.call(s,e)&&d(a,e,s[e]);if(c)for(var e of c(s))N.call(s,e)&&d(a,e,s[e]);return a};import{G as C,g as D,r,j as t,S as w,_ as l}from"./main-343.js";import{a7 as y}from"./bf-659-81.js";import{I as O}from"./bf-58-184.js";import{h as k}from"./bf-88-91.js";import{O as E}from"./bf-72-221.js";import"./bf-974-82.js";import"./bf-649-79.js";function z({allIntegURL:a,formFields:s,integrations:e,setIntegration:f}){const x=C(),{id:o,formID:u}=D(),[n,i]=r.useState(p({},e[o])),[m,g]=r.useState(!1),[h,j]=r.useState({show:!1}),v=()=>{y(e,f,a,n,x,o,1)};return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:h,setSnackbar:j}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-150 d-in-b mr-2",children:l("Integration Name:")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:I=>k(I,n,i),name:"name",value:n.name,type:"text",placeholder:l("Integration Name...")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(E,{formID:u,formFields:s,oneDriveConf:n,setOneDriveConf:i,isLoading:m,setIsLoading:g}),t.jsx(O,{edit:!0,saveConfig:v,disabled:!n.actions.attachments||!n.folder,isLoading:m}),t.jsx("br",{})]})}export{z as default};
