var b=Object.defineProperty;var c=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,D=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))D.call(s,e)&&d(a,e,s[e]);return a};import{D as N,g as C,r,j as t,S as w,_ as l}from"./main-634.js";import{a7 as y}from"./bf-746-82.js";import{I as O}from"./bf-942-184.js";import{h as k}from"./bf-611-89.js";import{O as E}from"./bf-987-221.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";function B({allIntegURL:a,formFields:s,integrations:e,setIntegration:f}){const x=N(),{id:o,formID:u}=C(),[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{B as default};
