1import d from"./z7SzaZbt.js";import u from"./DbFkiiIp.js";import _ from"./DoP2-cPk.js";import{_ as G,c as a,a as t,F as v,x as y,b as l,t as o,l as k,w as c,e as T,o as n}from"./C_dDoqqV.js";import"./DqIKrIDH.js";import"./CSg7y4wx.js";import"./hAYur2Bi.js";import"./FKmh4Ghi.js";import"./Q_y7I8tW.js";import"./DUMQntVJ.js";import"./D8vE4kZ_.js";import"./C4ZLsWZ4.js";import"./t8jJa2Cm.js";import"./BJ8DeCX5.js";import"./BVIQdDd4.js";import"./CCduaAoa.js";import"./C-9dbQSY.js";import"./C4fTG6EF.js";import"./CIfc6IQW.js";import"./BSy4JHtP.js";import"./DKeVZpFc.js";import"./DY4SgOtO.js";import"./BA3S9Qb4.js";import"./CkEu89z3.js";import"./B3iim-KL.js";import"./BXUykJ2C.js";import"./Chyz3EDp.js";import"./2h_uk5DF.js";import"./8JGrCZUO.js";import"./Bw2cPcki.js";import"./BDmGCnhJ.js";import"./BuQBOjcE.js";import"./s3_Otaqs.js";import"./B-yGqZyG.js";import"./LfmN3RZR.js";import"./CY0PcdZl.js";import"./ZwuLzPRm.js";import"./BjYxkQw3.js";import"./Dj2vd1FS.js";import"./Cz7YsKok.js";import"./B0hBdtTj.js";import"./CqXCemgF.js";import"./DLPSkQwF.js";import"./BEsDnUJP.js";import"./BXbTEqmD.js";import"./JB-VHAAP.js";import"./C1G0POQs.js";import"./Bc1rArTd.js";import"./alWqIy3s.js";import"./Crr0GwaG.js";import"./XKaySTwn.js";import"./CtcVRfPe.js";import"./BmVA1Fhd.js";import"./B5UfoBF-.js";import"./C9R0TS7U.js";import"./BXGXhy4c.js";import"./BFCiwhB7.js";import"./aOjMXEfI.js";import"./BoBHCbwg.js";import"./GmToSYe4.js";import"./qd73kTeZ.js";import"./Bqsy2Yht.js";import"./B8KuNCeR.js";import"./CEvt6g13.js";import"./C7KChRbo.js";import"./CsxoMG-j.js";import"./cCsmyXn7.js";import"./pvNInfal.js";import"./DNtRt3-K.js";import"./CTtN8_V5.js";import"./C-UI_2aN.js";import"./BKYcg_5K.js";import"./DL61D00e.js";import"./DtJhA8dZ.js";const b={name:"GamesGrid",components:{GameTile:d,Button:_,IconPlus:u},props:{games:{type:Array,default:()=>[]},pagesCount:{type:[String,Number],default:0},loadMoreButton:{type:Boolean,default:!1},itemsPerPage:{type:[String,Number],default:40},currentPage:{type:[String,Number],default:1},totalGames:{type:[String,Number],default:""}},data(){return{loadMore:this.$t("freeGames.showMore"),showing:this.$t("freeGames.showing"),of:this.$t("freeGames.of"),results:this.$t("freeGames.results"),activeTouchGameId:null}},computed:{allGamesDisplayed(){return+this.games.length==+this.totalGames},progressBarWidth(){return`${+this.games?.length/+this.totalGames*100}%`}},methods:{loadMoreClick(){this.$emit("click")},handleTileTouchClick(p){const i=p?.id||null;i&&(this.activeTouchGameId=this.activeTouchGameId===i?null:i)}}},C={class:"relative mb-lg"},w={class:"grid grid-cols-3 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-8 gap-sm"},B={key:0,class:"flex flex-col justify-center items-center mb-lg"},M={class:"flex flex-col items-center"},N={class:"text-foreground-2 body-md"},I={class:"w-[148px] background-elevation-4 rounded-pill h-2xs mt-sm"},S={class:"text-xs text-foreground-accent"};function P(p,i,r,z,e,m){const h=d,g=u,f=_;return n(),a("div",null,[t("div",C,[t("div",w,[(n(!0),a(v,null,y(r.games,(s,x)=>(n(),a("div",{key:x,class:"shrink-0"},[l(h,{"src-image-game":s.defaultLogo,game:s,"padding-hover-size":"xs",orientation:"landscape",class:"w-full","is-touch-opened":e.activeTouchGameId===s.id,onTouchClick:D=>m.handleTileTouchClick(s)},null,8,["src-image-game","game","is-touch-opened","onTouchClick"])]))),128))])]),r.loadMoreButton&&!m.allGamesDisplayed?(n(),a("div",B,[t("div",M,[t("span",N,o(e.showing)+" "+o(r.games.length)+" "+o(e.of)+" "+o(r.totalGames)+" "+o(e.results),1),t("div",I,[t("div",{class:"background-accent-1 h-2xs rounded-pill transition-all duration-300",style:k({width:m.progressBarWidth})},null,4)]),l(f,{variant:"secondary",size:"LG",icon:"","icon-position":"left",class:"mx-auto mt-md !w-auto",onClick:m.loadMoreClick},{"icon-left":c(()=>[l(g,{class:"text-foreground-accent"})]),default:c(()=>[t("strong",S,o(e.loadMore),1)]),_:1},8,["onClick"])])])):T("",!0)])}const oo=Object.assign(G(b,[["render",P]]),{__name:"GamesGrid"});export{oo 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.