import{u as e,bC as a,o as s,bD as t,bE as n,bF as i,k as o,s as r,p as l}from"./page_layout.js?v=1763625242172";import{k as u,a0 as m,R as p,S as c,V as d,F as f,X as x,U as h,a4 as v,an as k,a3 as y,j as _,$ as b,am as g,av as C,ao as $,c as w,r as R,b as j,a5 as S,O as A,H as O,q as E,a2 as F}from"./vue.js?v=1763625242172";import{b as J}from"./public.js?v=1763625242172";import{P as L,H as N}from"./index102.js?v=1763625242172";import{aC as H,dS as I}from"./naive.js?v=1763625242172";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"},U=u({__name:"index",setup(t){const n=e(),{isFree:i,isPro:o,authExpired:r}=m(n),l=window.panelVersion,u=()=>{J({source:80})},b=()=>{J({source:81})};return(e,t)=>{const n=H,m=s;return p(),c("div",P,[d(i)?(p(),c(f,{key:0},[x(L,{source:80}),h("div",V,v(e.$t("Component.Auth.index_1")),1),d(a)?(p(),c("span",q,v(d(l)),1)):k("",!0),x(n,{class:"h-24px px-8px",type:"primary",onClick:u},{default:y((()=>[_(v(e.$t("Component.Auth.index_5")),1)])),_:1})],64)):k("",!0),d(o)?(p(),c(f,{key:1},[x(L,{source:81}),d(a)?(p(),c("span",B,v(d(l)),1)):k("",!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:b},{default:y((()=>[_(v(e.$t("Component.Auth.index_2")),1)])),_:1})],64)):k("",!0)])}}}),X={class:"p-16px"},z=["onClick"],G={class:"flex items-center gap-12px pr-16px"},K=l(u({__name:"index",props:{noRouter:{type:Boolean,default:!1}},emits:["change"],setup(a,{emit:s}){const l=a,u=s,_=b(),J=g(),L=e(),H=t(),{userInfo:P,authExpired:V}=m(L),q=C("menuListRef"),B=C("menuContainerRef"),{width:D}=$(q),{width:M}=$(B),K=w((()=>M.value-D.value>460)),Q=R([]),T=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&&(Q.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}}})(),j((()=>{H.generateRoutes()})),(e,a)=>{const s=U,t=I,n=S("router-view");return p(),c("div",X,[x(t,{class:"mb-12px rounded-10px"},{default:y((()=>[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(Q),(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||(T(e),J.push(e.path)),u("change",e)})(a)},v(a.title),11,z)):k("",!0)],64)))),128))],512),h("div",G,[e.$slots.suffix?E(e.$slots,"suffix",{key:0},void 0,!0):d(K)?(p(),c(f,{key:1},[d(P).status&&"Lifetime"!==d(V)?(p(),F(N,{key:0})):k("",!0),x(s)],64)):k("",!0)])],512)])),_:3}),E(e.$slots,"public-exam",{},void 0,!0),x(n)])}}}),[["__scopeId","data-v-18bf265b"]]);export{K as _};
