import{t as I,aQ as M,_ as D,Q as T,aR as G,aS as V,aT as b,aU as Z,aI as K,aH as X,c as Y}from"./index-BTglIPU2.js?v=1773287522785";import{k as J,a6 as O,$ as s,Z as o,S as n,F as h,a0 as c,_ as i,aa as a,ak as u,a9 as S,j as A,a5 as ee,am as te,al as E,c as ne,r as se,b as oe,ab as ae,P as re,L as ce,q as F,a8 as ie}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{P as H,H as ue}from"./index-B8Pi79Ox.js?v=1773287522785";import{B as le,a2 as pe}from"./naive-ui--dJnpVcV.js?v=1773287522785";const de={class:"flex items-center gap-10px"},_e={class:"text-default"},me={key:0},fe={key:0},he={class:"mr-4px"},xe={class:"text-[#fc6d26] font-bold"},ge=J({__name:"index",setup(w){const v=I(),{isFree:y,isPro:C,authExpired:_}=O(v),x=window.panelVersion,$=()=>{T({source:80})},R=()=>{T({source:81})};return(l,B)=>{const g=le,k=D;return s(),o("div",de,[n(y)?(s(),o(h,{key:0},[c(H,{source:80}),i("div",_e,a(l.$t("Component.Auth.index_1")),1),n(M)?(s(),o("span",me,a(n(x)),1)):u("",!0),c(g,{class:"h-24px px-8px",type:"primary",onClick:$},{default:S(()=>[A(a(l.$t("Component.Auth.index_5")),1)]),_:1})],64)):u("",!0),n(C)?(s(),o(h,{key:1},[c(H,{source:81}),n(M)?(s(),o("span",fe,a(n(x)),1)):u("",!0),i("div",null,[i("span",he,a(l.$t("Component.Auth.index_4")),1),i("span",xe,a(n(_)),1)]),c(k,{class:"font-bold",onClick:R},{default:S(()=>[A(a(l.$t("Component.Auth.index_2")),1)]),_:1})],64)):u("",!0)])}}}),ke={class:"p-16px"},ve=["onClick"],ye={class:"flex items-center gap-12px pr-16px"},Ce=J({__name:"index",props:{noRouter:{type:Boolean,default:!1}},emits:["change"],setup(w,{emit:v}){const y=w,C=v,_=ee(),x=te(),$=I(),R=G(),{userInfo:l,authExpired:B}=O($),g=E("menuListRef"),k=E("menuContainerRef"),{width:j}=V(g),{width:Q}=V(k),U=ne(()=>Q.value-j.value>460),L=se([]),W=()=>{var r;const e=_.meta.install,m=_.meta.activeMenu,f=e?1:0;for(let p=0;p<b.length;p++){const{children:t}=b[p];if(!t)return;if(t[0].name===m){const{path:N}=b[p];t&&t.length>0&&(L.value=((r=t[f].children)==null?void 0:r.map(d=>{var P;return{path:"".concat(N,"/").concat(d.path),name:String(d.name),title:"".concat(((P=d.meta)==null?void 0:P.title)||""),hidden:d.meta&&Z(d.meta.hidden)?d.meta.hidden:!1}}))||[]);break}}},q=e=>{y.noRouter||(z(e),x.push(e.path)),C("change",e)},z=e=>{const m=_.matched[0].name,f=K("page-menu-new",JSON.stringify({})),r=JSON.parse(f);m&&(r[String(m)]=e.name),X("page-menu-new",JSON.stringify(r))};return W(),oe(()=>{R.generateRoutes()}),(e,m)=>{const f=ge,r=pe,p=ae("router-view");return s(),o("div",ke,[c(r,{class:"mb-12px rounded-10px"},{default:S(()=>[i("div",{ref_key:"menuContainerRef",ref:k,class:"flex items-center justify-between min-h-48px"},[i("div",{ref_key:"menuListRef",ref:g,class:"menu-list"},[(s(!0),o(h,null,re(n(L),t=>(s(),o(h,{key:t.name},[t.hidden!==!0?(s(),o("div",{key:0,class:ce(["menu-item",{active:t.name===e.$route.name}]),onClick:N=>q(t)},a(t.title),11,ve)):u("",!0)],64))),128))],512),i("div",ye,[e.$slots.suffix?F(e.$slots,"suffix",{key:0},void 0,!0):n(U)?(s(),o(h,{key:1},[n(l).status&&n(B)!=="Lifetime"?(s(),ie(ue,{key:0})):u("",!0),c(f)],64)):u("",!0)])],512)]),_:3}),F(e.$slots,"public-exam",{},void 0,!0),c(p)])}}}),we=Y(Ce,[["__scopeId","data-v-18bf265b"]]);export{we as _};
