import{d as a,p as s,v as e,r as l,e as r,aa as t,o as c,f as n,F as m,j as i,n as g,g as d,h as o,Y as u,H as f,O as C,_ as p}from"./index_1730355973.js";const v={class:"game-class"},_=["onClick"],I=["src"],h=p(a({__name:"game-class",props:{current:{type:Number,default:-1,reuired:!1}},emits:["change"],setup(a,{emit:p}){const h=a,k=s(),x=e(),y=l(),D=r((()=>"/"===x.path?k.gameClassData.filter((a=>19!==a.gameClassId)):k.gameClassData));t((()=>{if(-1!==h.current){const a=k.gameClassData.findIndex((a=>a.gameClassId==h.current));f((()=>{y.value[a].scrollIntoView(!1)}))}}));return(s,e)=>(c(),n("div",v,[(c(!0),n(m,null,i(D.value,((s,e)=>(c(),n("div",{class:g(["class-item",{active:a.current===s.gameClassId}]),ref_for:!0,ref_key:"classRef",ref:y,key:e,onClick:a=>(a=>{p("change",a)})(s)},[d("img",{src:o(C)(s.gameClassImg)},null,8,I),d("div",null,u(s.gameClassName),1)],10,_)))),128))]))}}),[["__scopeId","data-v-aee130cb"]]);export{h as G};
