System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-HWQzKlzz.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,t){"use strict";var n,a,i,s,r,o,u,l,c,m,d,p,f,x,v,h,b,g,y,k,_,$,C,w,R,S,j,A,L,E,I,J,N,O,P,z,B,F;return{setters:[e=>{n=e.t,a=e.aQ,i=e._,s=e.Q,r=e.aR,o=e.aS,u=e.aT,l=e.aU,c=e.aI,m=e.aH,d=e.c},e=>{p=e.k,f=e.a6,x=e.$,v=e.Z,h=e.S,b=e.F,g=e.a0,y=e._,k=e.aa,_=e.ak,$=e.a9,C=e.j,w=e.a5,R=e.am,S=e.al,j=e.c,A=e.r,L=e.b,E=e.ab,I=e.P,J=e.L,N=e.q,O=e.a8},e=>{P=e.P,z=e.H},e=>{B=e.B,F=e.a2}],execute:function(){var t=document.createElement("style");t.textContent='.menu-list[data-v-18bf265b]{display:flex;flex-wrap:wrap}.menu-list .menu-item[data-v-18bf265b]{position:relative;display:flex;align-items:center;justify-content:center;height:48px;padding:0 18px;font-size:14px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1)}.menu-list .menu-item+.menu-item[data-v-18bf265b]{margin-left:4px}.menu-list .menu-item.active[data-v-18bf265b],.menu-list .menu-item[data-v-18bf265b]:hover{color:var(--router-menu-active-text);background-color:var(--router-menu-active-bg)}.menu-list .menu-item[data-v-18bf265b]:after{content:"";position:absolute;left:50%;bottom:0;display:block;width:20px;height:2px;margin-left:-10px;transition:background-color .3s}.menu-list .menu-item.active[data-v-18bf265b]:after{background-color:var(--router-menu-active-text)}\n/*$vite$:1*/',document.head.appendChild(t);const H={class:"flex items-center gap-10px"},Q={class:"text-default"},q={key:0},M={key:0},T={class:"mr-4px"},U={class:"text-[#fc6d26] font-bold"},V=p({__name:"index",setup(e){const t=n(),{isFree:r,isPro:o,authExpired:u}=f(t),l=window.panelVersion,c=()=>{s({source:80})},m=()=>{s({source:81})};return(e,t)=>{const n=B,s=i;return x(),v("div",H,[h(r)?(x(),v(b,{key:0},[g(P,{source:80}),y("div",Q,k(e.$t("Component.Auth.index_1")),1),h(a)?(x(),v("span",q,k(h(l)),1)):_("",!0),g(n,{class:"h-24px px-8px",type:"primary",onClick:c},{default:$((()=>[C(k(e.$t("Component.Auth.index_5")),1)])),_:1})],64)):_("",!0),h(o)?(x(),v(b,{key:1},[g(P,{source:81}),h(a)?(x(),v("span",M,k(h(l)),1)):_("",!0),y("div",null,[y("span",T,k(e.$t("Component.Auth.index_4")),1),y("span",U,k(h(u)),1)]),g(s,{class:"font-bold",onClick:m},{default:$((()=>[C(k(e.$t("Component.Auth.index_2")),1)])),_:1})],64)):_("",!0)])}}}),Z={class:"p-16px"},D=["onClick"],G={class:"flex items-center gap-12px pr-16px"},K=p({__name:"index",props:{noRouter:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const a=e,i=t,s=w(),d=R(),p=n(),C=r(),{userInfo:P,authExpired:B}=f(p),H=S("menuListRef"),Q=S("menuContainerRef"),{width:q}=o(H),{width:M}=o(Q),T=j((()=>M.value-q.value>460)),U=A([]),K=e=>{const t=s.matched[0].name,n=c("page-menu-new",JSON.stringify({})),a=JSON.parse(n);t&&(a[String(t)]=e.name),m("page-menu-new",JSON.stringify(a))};return(()=>{const e=s.meta.install,t=s.meta.activeMenu,n=e?1:0;for(let a=0;a<u.length;a++){const{children:e}=u[a];if(!e)return;if(e[0].name===t){const{path:t}=u[a];e&&e.length>0&&(U.value=e[n].children?.map((e=>({path:`${t}/${e.path}`,name:String(e.name),title:`${e.meta?.title||""}`,hidden:!(!e.meta||!l(e.meta.hidden))&&e.meta.hidden})))||[]);break}}})(),L((()=>{C.generateRoutes()})),(e,t)=>{const n=V,s=F,r=E("router-view");return x(),v("div",Z,[g(s,{class:"mb-12px rounded-10px"},{default:$((()=>[y("div",{ref_key:"menuContainerRef",ref:Q,class:"flex items-center justify-between min-h-48px"},[y("div",{ref_key:"menuListRef",ref:H,class:"menu-list"},[(x(!0),v(b,null,I(h(U),(t=>(x(),v(b,{key:t.name},[!0!==t.hidden?(x(),v("div",{key:0,class:J(["menu-item",{active:t.name===e.$route.name}]),onClick:e=>(e=>{a.noRouter||(K(e),d.push(e.path)),i("change",e)})(t)},k(t.title),11,D)):_("",!0)],64)))),128))],512),y("div",G,[e.$slots.suffix?N(e.$slots,"suffix",{key:0},void 0,!0):h(T)?(x(),v(b,{key:1},[h(P).status&&"Lifetime"!==h(B)?(x(),O(z,{key:0})):_("",!0),g(n)],64)):_("",!0)])],512)])),_:3}),N(e.$slots,"public-exam",{},void 0,!0),g(r)])}}});e("_",d(K,[["__scopeId","data-v-18bf265b"]]))}}}));
