var S=Object.defineProperty;var p=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var d=(t,a,s)=>a in t?S(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,x=(t,a)=>{for(var s in a||(a={}))v.call(a,s)&&d(t,s,a[s]);if(p)for(var s of p(a))D.call(a,s)&&d(t,s,a[s]);return t};import{D as N,g as C,r as n,j as e,S as w,_ as c}from"./main-634.js";import{af as y,a7 as _}from"./bf-746-82.js";import{I as k}from"./bf-942-184.js";import{D as E}from"./bf-254-220.js";import"./bf-275-83.js";import"./bf-822-108.js";function A({allIntegURL:t,formFields:a,integrations:s,setIntegration:l}){const f=N(),{id:r,formID:u}=C(),[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 e.jsxs("div",{style:{width:900},children:[e.jsx(w,{snack:b,setSnackbar:j}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:")}),e.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...")})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(E,{formID:u,formFields:a,dropboxConf:o,setDropboxConf:i,isLoading:m,setIsLoading:g}),e.jsx(k,{edit:!0,saveConfig:h,disabled:o.field_map.length<1,isLoading:m}),e.jsx("br",{})]})}export{A as default};
