import{N as k,u as x,am as w,l as p,y as C,aJ as B,Q as G,R as r,o as i,c as T,V as t,W as s,a as c,X as q,ak as m,as as K,bB as R}from"./index.2e2ba873.js";const A={class:"app_game i_page_wrapper"},E={class:"flex_start flex_inline p_relative"},N=c("span",{class:"gamepad-cursor cursor-vui-tabs","data-tp":"header"},null,-1),S=c("span",{class:"gamepad-cursor cursor-vui-tabs","data-tp":"header"},null,-1),V={class:"app_game--content i_page_content"},j=k({__name:"Game",setup(F){const d=[{key:"1",name:"\u63A8\u8350",router:"GameCenter"},{key:"2",name:"\u6211\u7684\u6E38\u620F",router:"MyGame"}],o=x(),v=w(),_=p("1"),n=p(o.query),{downloadPageList:f}=C(B()),y=a=>{const e=d.find(u=>u.key===a);e&&(v.push({name:e.router,query:n.value}),n.value&&(n.value={}))};return G(o,()=>{const a=d.find(e=>o.name.includes(e.router));a&&(n.value=o.query,_.value=a.key)},{immediate:!0}),(a,e)=>{const u=r("v-tab-item"),b=r("v-tabs"),h=r("HeaderSlot"),g=r("router-view");return i(),T("div",A,[t(h,{class:"app_game--header"},{default:s(()=>[c("div",E,[t(b,{class:"mt_xs app_game--tabs","auto-adjustment":"",activeKey:_.value,"onUpdate:activeKey":e[0]||(e[0]=l=>_.value=l),"slide-to-hover":!1,"active-pink":!0,"no-padding-left":!1,"tabs-gutter":30,"slider-width":18,onTabChange:y},{default:s(()=>[t(u,{key:"1",tab:"\u63A8\u8350"},{extra:s(()=>[N]),_:1}),t(u,{key:"2",num:q(f).length,tab:"\u6211\u7684\u6E38\u620F"},{extra:s(()=>[S]),_:1},8,["num"])]),_:1},8,["activeKey"])])]),_:1}),c("div",V,[t(g,null,{default:s(({Component:l})=>[(i(),m(R,null,[(i(),m(K(l)))],1024))]),_:1})])])}}});export{j as default};
