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,p=(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{D as N,g as C,r as n,j as a,S as T,_ as c}from"./main-634.js";import{a7 as w}from"./bf-746-82.js";import{I as y}from"./bf-942-184.js";import{h as _}from"./bf-389-175.js";import{T as k}from"./bf-595-216.js";import"./bf-275-83.js";import"./bf-822-108.js";import"./bf-25-81.js";import"./bf-297-103.js";function F({formFields:t,setIntegration:s,integrations:e,allIntegURL:g}){const x=N(),{id:o,formID:f}=C(),[r,i]=n.useState(p({},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:c("Integration Name:")}),a.jsx("input",{className:"btcd-paper-inp w-7",onChange:b=>_(b,r,i),name:"name",value:r.name,type:"text",placeholder:c("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{F as default};
