import{u as s,b2 as e,b3 as a,l,e as t,dL as o,a7 as i,_ as r}from"./utils-lib.js?v=20260328163632";import{B as n}from"./index204.js?v=20260328163632";import{B as c}from"./index83.js?v=20260328163632";import{k as p,a9 as m,c as d,V as u,_ as x,a3 as b,X as h,Y as f,Z as v,$ as _,W as k,O as g,K as j,a1 as w,P as y}from"./base-lib.js?v=20260328163632";import{g as E,E as D,G as I,d as B}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const C={class:"home-header-box flex-1"},V={class:"mr-[16px] flex items-center"},L={class:"user-phone"},P={key:1,class:"mr-[16px] flex items-center"},S={class:"user-phone !border-none"},U={class:"cursor-pointer flex items-center"},z={class:"border-dashed border-0 border-b-[1px] border-[#E5E7EB]"},A={class:"!mb-4px inline-block"},O={class:"block"},R={class:"home-header-box"},T={class:"header-operation-icon"},G=["title"],H=["title"],K=["title"],N=r(p({__name:"index",setup(r){const p=y((()=>i((()=>import("./index203.js?v=20260328163632")),[],import.meta.url))),{isAaPanel:N,payment:W,panelVersion:X,updateThemeUi:Y,isDark:Z}=s(),{isExpire:$,bindUser:q}=m(W.value),{systemInfo:F,panelInfo:J}=e(),{onRepair:M,histVersionInfoDialog:Q,updateVersionDialog:ss,restartSeverDialog:es}=a(),as=[{label:l("新鲜"),value:"fresh",key:"fresh"},{label:l("经典"),value:"classic",key:"classic"}],ls=d((()=>{var s;return F.value.name?null==(s=F.value.name.split(" ")[0])?void 0:s.toLowerCase():""}));return(s,e)=>{const a=E,i=D,r=I,m=B;return u(),x(m,{class:"reset-card-header module-box is-always-shadow","content-class":"flex h-[52px] items-center !p-0"},{default:b((()=>[h("div",C,[f(N)?(u(),k("div",P,[e[5]||(e[5]=h("i",{class:"svgtofont-icon-user mr-[4px] !text-[16px]"},null,-1)),h("span",S,v(f(q)||f(l)("获取中")),1)])):(u(),x(a,{key:0,width:f($)||!["zh","cht"].includes(f(t))?400:330,placement:"bottom"},{trigger:b((()=>[h("div",V,[e[4]||(e[4]=h("i",{class:"svgtofont-icon-user mr-[4px] !text-[16px]"},null,-1)),h("span",L,v(f(q)||f(l)("获取中")),1)])])),default:b((()=>[(u(),x(_(f(p))))])),_:1},8,["width"])),g(a,{width:250},{trigger:b((()=>[h("span",U,[h("i",{class:j("mr-4px !text-[16px] svgtofont-icon-"+f(ls))},null,2),h("span",z,v(f(l)("系统："))+v(f(F).name||f(l)("获取中")),1)])])),default:b((()=>[h("div",null,[h("span",A,v(f(l)("系统："))+v(f(F).simpleName||f(l)("获取中")),1),h("span",O,v(f(l)("持续运行："))+v(f(J).runningDays||f(l)("获取中")),1)])])),_:1})]),h("div",R,[f(N)?w("",!0):(u(),x(n,{key:0})),g(o,{"is-home":!0,"disable-pro":!0}),h("span",{class:"versionInfo mr-[16px] bt-hover-link cursor-pointer",onClick:e[0]||(e[0]=(...s)=>f(Q)&&f(Q)(...s))},v((f(J).isBeta?"Beta ":"")+(f(X)||f(l)("获取中"))),1),g(i,{trigger:"hover",options:as,onSelect:f(Y)},{default:b((()=>[h("div",T,[g(f(c),{name:"tools-themeui",size:"18",class:"hob-icon",color:f(Z)?"white":"#333"},null,8,["color"])])])),_:1},8,["onSelect"]),g(r,{class:"mr-[16px]",dot:"",show:f(J).isUpgrade},{default:b((()=>[h("span",{class:"bt-link",title:f(l)("点击获取最新版面板程序"),onClick:e[1]||(e[1]=(...s)=>f(ss)&&f(ss)(...s))},v(f(l)("更新")),9,G)])),_:1},8,["show"]),h("span",{class:"bt-link mr-[16px]",onClick:e[2]||(e[2]=(...s)=>f(M)&&f(M)(...s)),title:f(l)("修复面板会获取最新的面板代码程序，包含bug修复")},v(f(l)("修复")),9,H),h("span",{class:"bt-link",onClick:e[3]||(e[3]=(...s)=>f(es)&&f(es)(...s)),title:f(l)("点击可选择重启面板或重启服务器")},v(f(l)("重启")),9,K)])])),_:1})}}}),[["__scopeId","data-v-e1ffb776"]]);export{N as default};
