var I=Object.defineProperty;var x=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var c=(t,e,s)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,l=(t,e)=>{for(var s in e||(e={}))b.call(e,s)&&c(t,s,e[s]);if(x)for(var s of x(e))v.call(e,s)&&c(t,s,e[s]);return t};import{D as N,g as C,r as i,j as a,S as w,_ as f}from"./main-634.js";import{I as y}from"./bf-942-184.js";import{s as F}from"./bf-186-202.js";import{a as u,i as k}from"./bf-138-179.js";import{S as D}from"./bf-190-224.js";import"./bf-25-81.js";import"./bf-746-82.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-438-114.js";function H({formFields:t,setIntegration:e,integrations:s,allIntegURL:g}){const h=N(),{id:m,formID:E}=C(),[n,o]=i.useState(l({},s[m])),[j,d]=i.useState(!1),[S,p]=i.useState({show:!1});return a.jsxs("div",{style:{width:900},children:[a.jsx(w,{snack:S,setSnackbar:p}),a.jsxs("div",{className:"flx mt-3",children:[a.jsx("b",{className:"wdt-200 d-in-b",children:f("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-5",onChange:r=>u(r,n,o),name:"name",value:n.name,type:"text",placeholder:f("Integration Name...")})]}),a.jsx("br",{}),a.jsx(D,{formFields:t,handleInput:r=>u(r,n,o,d),sendFoxConf:n,setSendFoxConf:o,isLoading:j,setIsLoading:d,setSnackbar:p}),a.jsx(y,{edit:!0,saveConfig:()=>F(s,e,g,n,h,m,1),disabled:k(n)}),a.jsx("br",{})]})}export{H as default};
