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