1import{u as a,w as e,c as l,a as s,b as o,F as i,r,d as n,t as c,e as t,f as m,g as d,n as v,h as u,i as g,j as p,k as f,o as y,l as b,m as h}from"./index-BWqcfTiK.js";import{G as k}from"./GameSearch-DgJnDaxd.js";import{C as _}from"./CopyrightInfo-DXMkGB_4.js";import{g as w}from"./game-CAKn2PmK.js";import{S as I,a as j}from"./swiper.min-DUMJ3Zhp.js";import{_ as G}from"./_plugin-vue_export-helper-BCo6x5W8.js";import"./GameCard-NZTVYfd4.js";const C={key:0,class:"game-display"},S={class:"image-container"},x=["src"],$={class:"nav-images"},z=["src","alt","onClick"],D={key:1,class:"mobile-game-display"},L={class:"mobile-promo-container"},M=["src"],q={class:"mobile-game-info"},F={class:"hover-text"},H={class:"title-container"},N={class:"game-title"},A={class:"mobile-left-section"},B={class:"mobile-game-description"},E={class:"mobile-swiper-container"},J=["src"],K={key:2,class:"search-container"},O={key:3,class:"copyright-container"},P=G({__name:"Home",setup(G){const P=g("$isMobile"),{t:Q,locale:R}=a(),T=p(null),U=p({loaded:!1}),V=p([]),W=a=>{console.log("Search query:",a)},X=a=>{T.value=a;const e=T.value.realIndex;console.log("å½åæ¿æ´»ç´¢å¼:",e)},Y=async()=>{try{console.log("$isMobile:",P);const{code:a,data:e}=await w();if(V.value=e,V.value.length>0){if(await u(),U.value){const a=V.value.find(a=>{var e;return a.id===(null==(e=U.value)?void 0:e.id)});if(a)return void(U.value=a)}T.value?aa(V.value[2]):aa(V.value[0])}}catch(a){console.error("è·å导èªå¾ç失败:",a)}},Z=a=>{const e=a.realIndex;aa(V.value[e])},aa=a=>{var e;(null==(e=U.value)?void 0:e.id)!==a.id&&(U.value=a,U.value.loaded=!1)};return Y(),e(R,Y),(a,e)=>{const u=f("router-link");return y(),l("div",{class:v(["home",{"mobel-home":o(P)}])},[s("div",{class:v(["scroll-container",{"mobile-scroll-container":o(P)}])},[o(P)?n("",!0):(y(),l("div",C,[s("div",S,[s("img",{src:U.value.promoImage,alt:"Game Display",class:"game-image",onClick:e[0]||(e[0]=e=>a.$router.push(`/GameDetail?id=${U.value.id}`)),onLoad:e[1]||(e[1]=a=>U.value.loaded=!0),loading:"lazy"},null,40,x)]),s("div",$,[(y(!0),l(i,null,r(V.value,(a,e)=>(y(),l("img",{key:e,src:a.promoImage,alt:"Nav Image "+(e+1),class:"nav-image",onClick:b(e=>aa(a),["stop"]),loading:"lazy"},null,8,z))),128))])])),o(P)?(y(),l("div",D,[s("div",L,[s("img",{src:U.value.promoImage,alt:"Game Display",class:"mobile-promo-image",onLoad:e[2]||(e[2]=a=>U.value.loaded=!0),loading:"lazy"},null,40,M)]),s("div",q,[s("div",F,[s("div",H,[s("div",N,c(U.value.name),1)])]),s("div",A,[t(u,{to:`/GameDetail?id=${U.value.id}`,class:"hover-button mobile-learn-more"},{default:m(()=>[d(c(o(Q)("game.enterGame")),1)]),_:1},8,["to"]),s("div",B,c(U.value.description),1)])]),s("div",E,[t(o(I),{"slides-per-view":2,"space-between":10,centeredSlides:!0,loop:!0,onSwiper:X,onSlideChange:Z},{default:m(()=>[(y(!0),l(i,null,r(V.value,(a,e)=>(y(),h(o(j),{key:e},{default:m(()=>[s("img",{src:a.promoImage,class:"mobile-swiper-image",loading:"lazy"},null,8,J)]),_:2},1024))),128))]),_:1})])])):n("",!0),o(P)?n("",!0):(y(),l("div",K,[t(k,{onSearch:W})])),o(P)?n("",!0):(y(),l("div",O,[t(_)]))],2)],2)}}},[["__scopeId","data-v-f0ff17c3"]]);export{P as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.