import{j as a}from"./codemirror-core-vkcnXJgD.js";import{b as i,c,d as o,e as h,f as m,g as f,h as w,i as u,j as b,k as x,l as g,m as j}from"./index-CejnNse1.js";import{q as L}from"./index-GtUymKue.js";import{Q as p}from"./qq_manager-VzDxKYJs.js";const v={navItems:[{label:"基础信息",icon:a.jsx(i,{className:"w-5 h-5"}),href:"/"},{label:"网络配置",icon:a.jsx(c,{className:"w-5 h-5"}),href:"/network"},{label:"猫猫日志",icon:a.jsx(o,{className:"w-5 h-5"}),href:"/logs"},{label:"接口调试",icon:a.jsx(h,{className:"w-5 h-5"}),href:"/debug/http"},{label:"实时调试",icon:a.jsx(m,{className:"w-5 h-5"}),href:"/debug/ws"},{label:"文件管理",icon:a.jsx(f,{className:"w-5 h-5"}),href:"/file_manager"},{label:"插件管理",icon:a.jsx(w,{className:"w-5 h-5"}),href:"/plugins"},{label:"插件商店",icon:a.jsx(u,{className:"w-5 h-5"}),href:"/plugin_store"},{label:"扩展页面",icon:a.jsx(b,{className:"w-5 h-5"}),href:"/extension"},{label:"系统终端",icon:a.jsx(x,{className:"w-5 h-5"}),href:"/terminal"},{label:"系统配置",icon:a.jsx(g,{className:"w-5 h-5"}),href:"/config"},{label:"关于我们",icon:a.jsx(j,{className:"w-5 h-5"}),href:"/about"}]};class Q{static async restartProcess(){return(await L.post("/Process/Restart")).data.data}}async function k(t=15e3,e,s){const n=Date.now();return new Promise(r=>{const l=setInterval(async()=>{try{await p.getQQLoginInfo({timeout:500}),clearInterval(l),e==null||e(),r(!0)}catch{Date.now()-n>t&&(clearInterval(l),s==null||s(),r(!1))}},500)})}export{Q as P,v as s,k as w};
