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