1import{$ as a,ab as e,a7 as s,q as l,u as t,a6 as r,ah as o,b as i}from"./DzTFM9d8.js";import{_ as n}from"./DC16piMo.js";import{i as u}from"./C7pPVNwO.js";import{u as m}from"./Bl8yqTIe.js";import{r as c,a as d,c as p,m as v,n as g,g as h,h as f,o as y,d as x,p as b,e as j,u as w,F as G,j as q,b as _,t as C}from"./DDPIGE1s.js";const I={class:"w-full flex gap-4 mt-3 justify-center items-start mb-4"},k={class:"w-full mb-2 auto-rows-max gap-2 grid <xs:grid-cols-2 <sm:grid-cols-3 sm:grid-cols-4 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-6"},F={key:0,class:"mx-auto text-secondary text-sm text-center"},N={__name:"search",setup(N){a();const P=e();s();const S=l(),{t:Y}=t(),$=c("");c(8),P.fetchProvider(),c(!1),c(null),r();const z=c(null),A=c(null),B=o(),D=S.query.active,E=d({searchInput:A.value,category:z.value,provider:$.value});return c(),$.value=D,p((()=>{const a=[{id:"all",text:Y("pages.promotion.all"),value:"all"}];return B.availableCategory($.value).map((e=>{const s={id:e,text:e,value:e};a.push(s)})),a})),v((()=>{})),g((()=>S.query),(()=>{z.value=null,$.value=S.query.active,E.provider=S.query.active,E.searchInput="",A.value="",E.category=null,B.filterGames(E)})),h((()=>{m(Y("type.findGame"))})),(a,e)=>{const s=i,l=n;return y(),f("div",null,[x("div",I,[j(s,{id:"username",icon:"svg/search","model-value":w(A),class:"!w-[100%]",type:"text",placeholder:w(Y)("type.findGame"),onChange:a.onSearch},null,8,["model-value","placeholder","onChange"])]),x("div",k,[(y(!0),f(G,null,q(w(B).filteredGames,(a=>(y(),_(l,{id:a._id,key:a._id,"img-cover":a.image||w(u),"is-hot":a.hits,"is-new":a.news,"is-name":a.description,"game-data":a},null,8,["id","img-cover","is-hot","is-new","is-name","game-data"])))),128))]),0===w(B).filteredGames.length&&null!==w(E).searchInput?(y(),f("p",F,C(w(Y)("lobby.notGame")),1)):b("",!0)])}}};export{N 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.