import{a7 as a,l as e,u as s,L as t,s as n,a2 as o,h as i,B as l,d as u,A as r,aj as d,z as c,M as m,aJ as v,b5 as p,b6 as g,$ as f,t as B,a4 as b,b as w,am as y,N,H as h,b7 as C,a9 as T,r as I,R as E,c as x,x as D,b8 as _,b9 as j}from"./utils-lib.js?v=20260328163632";import{a9 as R,a6 as A,k as F,aD as M,r as P,Y as k,e as H,w as L,c as S,o as U,b as q,n as G}from"./base-lib.js?v=20260328163632";import{B as O}from"./index84.js?v=20260328163632";import{B as $}from"./index85.js?v=20260328163632";import{B as z}from"./index86.js?v=20260328163632";import{B as J,d as V,D as W,w as Y,v as K,E as Q,F as X,aF as Z,g as aa,aG as ea,b as sa,A as ta}from"./naive-ui.js?v=20260328163632";const na=()=>{const a=window.vite_public_panel_type,e=["TENCENT_LH","aliyun"].find((e=>null==a?void 0:a.includes(e)))||"";return{enable:Boolean(e),type:e}},{disableSidebar:oa,serverIp:ia,robserver:la,layoutBody:ua,mainHeight:ra,mainWidth:da,panel:ca,mountMessage:ma,menuControl:va,isAaPanel:pa}=s(),{msgBoxTaskCount:ga}=R(ca.value),fa=()=>(async s=>{const{enable:t,type:n}=na();if(!t)return!1;if(n.includes("TENCENT")){const{default:t}=await a((async()=>{const{default:a}=await import("./index125.js?v=20260328163632");return{default:a}}),[],import.meta.url);return new t({name:e("腾讯云专项版"),dependencies:s})}return!1})({vue:{defineComponent:F,version:M},components:{BtDialog:t,BtInput:O,BtLink:n,BtInputIcon:$,BtSvgIcon:z,BtTableGroup:o,NButton:J,NCard:V,NAlert:W,NForm:Y,NFormItem:K,NDropdown:Q,NTooltip:X,NIcon:Z,NPopover:aa,NTable:ea,NInput:sa,NDivider:ta,BtImage:i,BtConfigProvider:l},hooks:{useMessage:u,useDialog:r,useAxios:d,useConfirm:c,Message:m,isUndefined:v,inputFocus:p,rsaEncrypt:g,useBaseTable:f,useForm:B,useOperate:b,isDev:w,isAaPanel:pa.value,langI18n:e},utils:{getByteUnit:y,getRandomPwd:N},dialog:{fileSelectionDialog:h},vueMethods:{ref:P,unref:k,reactive:H,watch:L,computed:S,onMounted:U,onBeforeUnmount:q}}),Ba=()=>{oa.value||C()},ba=async()=>{T({value:ia.value})},wa=a=>I.currentRoute.value.path.split("/")[1]===a.name,ya=a=>{va.value.menuName="safety"===a?"firewall":a},Na=a=>{va.value.menuName=""},ha=async()=>{oa.value||E()},Ca=a=>I.currentRoute.value.path.split("/")[1]===a.name?"is-active":"",Ta=async()=>{try{await c({icon:"warning-filled",title:e("退出登录"),content:e("退出面板登录，是否继续？")}),setTimeout((()=>{window.location.href=x+"/logout"}),400)}catch(a){}},Ia=()=>{la.value&&la.value.disconnect&&(la.value.disconnect(),la.value=null)},Ea=()=>{D({request:_({status:0}),success:a=>{a.data&&(ga.value=a.data.data.length)}})},xa=()=>{la.value=A(ua,(a=>{G((()=>{const e=a[0],{height:s}=e.contentRect,t=document.getElementsByClassName("layout-footer")[0],n=null==t?void 0:t.getBoundingClientRect(),o=(null==n?void 0:n.height)||0,i=(null==n?void 0:n.width)||0,l=document.getElementsByClassName("layout-body")[0],u=null==l?void 0:l.getBoundingClientRect(),r=(null==u?void 0:u.width)||0;da.value=(i||r)-30,ra.value=s-o;const d=window.innerHeight-o;ra.value<d&&(ra.value=d)}))})),ma(),window.$extension=fa},Da=()=>{D({loading:e("正在重启服务，请稍后..."),request:j({name:"btTask",type:"restart"}),message:!0,success:a=>{}})};export{ha as a,Na as b,ba as c,Ta as d,xa as e,Ea as f,Ca as g,wa as i,ya as m,Ba as o,Da as r,Ia as u};
