import{u as e,b2 as a,o as s,b3 as t,b4 as n,b5 as i,j as o,s as r,p as l}from"./page_layout.js?v=1764830988434";import{k as u,a0 as m,R as p,V as c,an as d,U as f,F as x,W as h,S as v,a4 as y,a3 as k,j as _,$ as b,am as g,av as C,ao as $,c as j,r as w,b as R,a5 as S,q as A,O,H as J,a2 as L}from"./vue.js?v=1764830988434";import{b as N}from"./public.js?v=1764830988434";import{P as E,H as F}from"./index100.js?v=1764830988434";import{aC as H,dS as I}from"./naive.js?v=1764830988434";const P={class:"flex items-center gap-10px"},V={class:"text-default"},q={key:0},B={key:0},M={class:"mr-4px"},U={class:"text-[#fc6d26] font-bold"},W=u({__name:"index",setup(t){const n=e(),{isFree:i,isPro:o,authExpired:r}=m(n),l=window.panelVersion,u=()=>{N({source:80})},b=()=>{N({source:81})};return(e,t)=>{const n=H,m=s;return c(),p("div",P,[f(i)?(c(),p(x,{key:0},[h(E,{source:80}),v("div",V,y(e.$t("Component.Auth.index_1")),1),f(a)?(c(),p("span",q,y(f(l)),1)):d("",!0),h(n,{class:"h-24px px-8px",type:"primary",onClick:u},{default:k(()=>[_(y(e.$t("Component.Auth.index_5")),1)]),_:1})],64)):d("",!0),f(o)?(c(),p(x,{key:1},[h(E,{source:81}),f(a)?(c(),p("span",B,y(f(l)),1)):d("",!0),v("div",null,[v("span",M,y(e.$t("Component.Auth.index_4")),1),v("span",U,y(f(r)),1)]),h(m,{class:"font-bold",onClick:b},{default:k(()=>[_(y(e.$t("Component.Auth.index_2")),1)]),_:1})],64)):d("",!0)])}}}),z={class:"p-16px"},D=["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(),N=g(),E=e(),H=t(),{userInfo:P,authExpired:V}=m(E),q=C("menuListRef"),B=C("menuContainerRef"),{width:M}=$(q),{width:U}=$(B),K=j(()=>U.value-M.value>460),Q=w([]),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}}})(),R(()=>{H.generateRoutes()}),(e,a)=>{const s=W,t=I,n=S("router-view");return c(),p("div",z,[h(t,{class:"mb-12px rounded-10px"},{default:k(()=>[v("div",{ref_key:"menuContainerRef",ref:B,class:"flex items-center justify-between min-h-48px"},[v("div",{ref_key:"menuListRef",ref:q,class:"menu-list"},[(c(!0),p(x,null,O(f(Q),a=>(c(),p(x,{key:a.name},[!0!==a.hidden?(c(),p("div",{key:0,class:J(["menu-item",{active:a.name===e.$route.name}]),onClick:e=>(e=>{l.noRouter||(T(e),N.push(e.path)),u("change",e)})(a)},y(a.title),11,D)):d("",!0)],64))),128))],512),v("div",G,[e.$slots.suffix?A(e.$slots,"suffix",{key:0},void 0,!0):f(K)?(c(),p(x,{key:1},[f(P).status&&"Lifetime"!==f(V)?(c(),L(F,{key:0})):d("",!0),h(s)],64)):d("",!0)])],512)]),_:3}),A(e.$slots,"public-exam",{},void 0,!0),h(n)])}}}),[["__scopeId","data-v-18bf265b"]]);export{K as _};
