import{u as e,bm as a,o as s,bn as t,bo as n,bp as i,j as o,s as r,e as l}from"./page_layout.js?v=1753954525509";import{k as u,$ as m,U as p,V as c,X as d,F as f,Q as x,W as h,a3 as v,al as y,a2 as k,j as _,Z as g,aj as b,av as C,am as j,c as $,r as w,b as R,a4 as S,O as A,H as O,q as J,a1 as L}from"./vue.js?v=1753954525509";import{a as N}from"./public.js?v=1753954525509";import{P as E,H as F}from"./index98.js?v=1753954525509";import{ay as H,cD as I}from"./naive.js?v=1753954525509";const P={class:"flex items-center gap-10px"},V={class:"text-default"},q={key:0},B={key:0},D={class:"mr-4px"},M={class:"text-[#fc6d26] font-bold"},Q=u({__name:"index",setup(t){const n=e(),{isFree:i,isPro:o,authExpired:r}=m(n),l=window.panelVersion,u=()=>{N({source:80})},g=()=>{N({source:81})};return(e,t)=>{const n=H,m=s;return p(),c("div",P,[d(i)?(p(),c(f,{key:0},[x(E,{source:80}),h("div",V,v(e.$t("Component.Auth.index_1")),1),d(a)?(p(),c("span",q,v(d(l)),1)):y("",!0),x(n,{class:"h-24px px-8px",type:"primary",onClick:u},{default:k((()=>[_(v(e.$t("Component.Auth.index_5")),1)])),_:1})],64)):y("",!0),d(o)?(p(),c(f,{key:1},[x(E,{source:81}),d(a)?(p(),c("span",B,v(d(l)),1)):y("",!0),h("div",null,[h("span",D,v(e.$t("Component.Auth.index_4")),1),h("span",M,v(d(r)),1)]),x(m,{class:"font-bold",onClick:g},{default:k((()=>[_(v(e.$t("Component.Auth.index_2")),1)])),_:1})],64)):y("",!0)])}}}),U={class:"p-16px"},W=["onClick"],X={class:"flex items-center gap-12px pr-16px"},Z=l(u({__name:"index",props:{noRouter:{type:Boolean,default:!1}},emits:["change"],setup(a,{emit:s}){const l=a,u=s,_=g(),N=b(),E=e(),H=t(),{userInfo:P,authExpired:V}=m(E),q=C("menuListRef"),B=C("menuContainerRef"),{width:D}=j(q),{width:M}=j(B),Z=$((()=>M.value-D.value>460)),z=w([]),G=e=>{const a=_.matched[0].name,s=o("page-menu-new",JSON.stringify({})),t=JSON.parse(s);a&&(t[String(a)]=e.name),r("page-menu-new",JSON.stringify(t))};return(()=>{var e;const a=_.meta.install,s=_.meta.activeMenu,t=a?1:0;for(let o=0;o<n.length;o++){const{children:a}=n[o];if(!a)return;if(a[0].name===s){const{path:s}=n[o];a&&a.length>0&&(z.value=(null==(e=a[t].children)?void 0:e.map((e=>{var a;return{path:"".concat(s,"/").concat(e.path),name:String(e.name),title:"".concat((null==(a=e.meta)?void 0:a.title)||""),hidden:!(!e.meta||!i(e.meta.hidden))&&e.meta.hidden}})))||[]);break}}})(),R((()=>{H.generateRoutes()})),(e,a)=>{const s=Q,t=I,n=S("router-view");return p(),c("div",U,[x(t,{class:"mb-12px rounded-10px"},{default:k((()=>[h("div",{ref_key:"menuContainerRef",ref:B,class:"flex items-center justify-between min-h-48px"},[h("div",{ref_key:"menuListRef",ref:q,class:"menu-list"},[(p(!0),c(f,null,A(d(z),(a=>(p(),c(f,{key:a.name},[!0!==a.hidden?(p(),c("div",{key:0,class:O(["menu-item",{active:a.name===e.$route.name}]),onClick:e=>(e=>{l.noRouter||(G(e),N.push(e.path)),u("change",e)})(a)},v(a.title),11,W)):y("",!0)],64)))),128))],512),h("div",X,[e.$slots.suffix?J(e.$slots,"suffix",{key:0},void 0,!0):d(Z)?(p(),c(f,{key:1},[d(P).status&&"Lifetime"!==d(V)?(p(),L(F,{key:0})):y("",!0),x(s)],64)):y("",!0)])],512)])),_:3}),J(e.$slots,"public-exam",{},void 0,!0),x(n)])}}}),[["__scopeId","data-v-29e67051"]]);export{Z as _};
