import{_ as a}from"./index_173035597333.js";import{d as e,r as s,q as l,b as t,H as i,e as r,U as n,V as m,p as c,o as g,f as o,P as u,g as d,h as v,Y as p,F as f,j as _,n as C,Q as I,R as L,T as h,O as b,ay as k,i as x,_ as y}from"./index_1730355973.js";import{u as A}from"./useInView_1730355973.js";const S={class:"page"},j={class:"page-body"},G=["src"],N={class:"game-class"},D=["onClick"],E=["src"],H={class:"contentBox"},M={class:"all-game"},P=["onClick","src","data-src"],R={class:"maintenance-box"},V=["src"],q=y(e({__name:"index",setup(e){const{processImage:y}=A(),q=s(),w=l(),B=t(),F=s(-1),O=s([]),Q=s([]);i((()=>{y(q)}));const T=r((()=>Number(n.getStorage(m.ALL_GAME_CLASS)))),U=r((()=>{let a;for(let e=0;e<Y.gameList.length;e++)Y.gameList[e].gameClassId==T.value&&(a=Y.gameList[e].proIdData);return a})),Y=c(),$=r((()=>{let a=Y.gameList.find((a=>a.gameClassId===Number(n.getStorage(m.ALL_GAME_CLASS))));return O.value=a.gameList||[],Q.value=a.gameList||[],a}));r((()=>`height:calc(${B.innerHeight}px - 3.2rem)`));const z=()=>{F.value=-1,Q.value=O.value,i((()=>{y(q)}))};return(e,s)=>{const l=a;return g(),o("div",S,[u(l,{title:$.value.gameClassName},null,8,["title"]),d("div",j,[d("div",{class:"title",onClick:z},[d("img",{src:v(b)($.value.gameClassImg)},null,8,G),d("h2",null,p($.value.gameClassName),1)]),d("div",N,[(g(!0),o(f,null,_(U.value,((a,e)=>(g(),o("div",{class:C(["class-item",{active:F.value===e}]),key:e,onClick:s=>((a,e)=>{F.value=e;let s=[...O.value],l=[];for(let t=0;t<s.length;t++)s[t].providerId===a&&l.push(s[t]);Q.value=l,i((()=>{y(q)}))})(a.providerId,e)},[d("img",{style:{height:"0.8rem"},src:v(b)(a.gameProviderImg)},null,8,E)],10,D)))),128))]),d("div",H,[d("div",M,[(g(!0),o(f,null,_(Q.value,(a=>(g(),o("div",{class:"flex-ct",key:a._id},[d("img",{ref_for:!0,ref_key:"iconRef",ref:q,onClick:e=>{var s;0!==(s=a).state&&(w.setGameInfo(s),h.emit("openGameDetail"))},src:v(k)("base/loading.png"),"data-src":v(b)(a.gameImg2)},null,8,P),I(d("div",R,[d("img",{src:v(x)("base/br.png")},null,8,V)],512),[[L,0===a.state]])])))),128))])])])])}}}),[["__scopeId","data-v-6a478a6f"]]);export{q as default};
