1import{a as j,b as B}from"./chunk-FXVCSTSJ.js";import{a as z}from"./chunk-47DCQ64F.js";import{a as Q}from"./chunk-RBOGN6P6.js";import{b as U}from"./chunk-XFHLXIIM.js";import{e as $,f as h,g as I}from"./chunk-T3ES54HN.js";import"./chunk-6FB4IR65.js";import"./chunk-KKTQLXJY.js";import"./chunk-LYSPK77L.js";import"./chunk-HC4IKBYH.js";import"./chunk-3YGBBZ3Z.js";import"./chunk-745BQPOS.js";import"./chunk-EHD4YHFX.js";import"./chunk-E3H4BJ7I.js";import"./chunk-PFLDZXT3.js";import{f as N}from"./chunk-ASTXUBF3.js";import{H as O,Ya as k,Za as E,_a as A,aa as D,k as M,n as P}from"./chunk-XNTCN5LM.js";import{Ca as S,Da as i,Kb as x,Ma as y,Mb as G,Nb as v,Wb as R,Xb as b,aa as d,db as p,eb as g,fb as F,hb as f,hd as w,ib as _,jb as c,jc as u,kb as a,lb as r,mb as o,nd as T,yb as C}from"./chunk-5LGYDGR4.js";import"./chunk-HIUAR4UN.js";var L=(e,n)=>n.id;function W(e,n){e&1&&o(0,"fx-game-scrollable-list",4),e&2&&c("scrollRestored",!0)}function q(e,n){if(e&1&&(a(0,"fx-slide"),o(1,"fx-game-card",9),r()),e&2){let t=n.$implicit;i(),c("game",t)}}function H(e,n){e&1&&(a(0,"fx-slide")(1,"div",10),o(2,"div",11),r()())}function V(e,n){if(e&1&&(a(0,"fx-slider")(1,"fx-slider-header")(2,"div",6),o(3,"fx-icon",7),a(4,"h2",8),v(5,"Recently Played"),r()()(),f(6,q,2,1,"fx-slide",null,L),f(8,H,3,0,"fx-slide",null,F),r()),e&2){let t=C(2);i(6),_(t.recentlyPlayedGames()),i(2),_(t.placeholders())}}function X(e,n){if(e&1&&(a(0,"div",14),o(1,"fx-game-card",9),r()),e&2){let t=n.$implicit;i(),c("game",t)}}function J(e,n){if(e&1&&(a(0,"div",5)(1,"div",6),o(2,"fx-icon",12),a(3,"h2",13),v(4,"Recommended for you"),r()(),a(5,"div"),f(6,X,2,1,"div",14,L),r()()),e&2){let t=C(2);i(5),G(R("row game-deck__group__list ",t.rowCols())),i(),_(t.recommended())}}function K(e,n){if(e&1&&(p(0,V,10,0,"fx-slider"),p(1,J,8,3,"div",5)),e&2){let t=C();g(t.recentlyPlayedGames().length?0:-1),i(),g(t.recommended().length?1:-1)}}var fe=(()=>{class e{constructor(){this.matomo=d(N),this.gameFacade=d(I),this.gameFilterQueryStore=d(h),this.gameFilterStore=this.gameFacade.gameFiltersStore,this.CARD_ROW_COUNT=d(Q).cardRowCount,this.recommended=this.gameFacade.recommendedGames,this.recentlyPlayedGames=this.gameFacade.recentlyPlayedGames,this.additionalFilters=u(()=>[{type:"list",queryParam:"categories",title:"Categories",selection:"multiple",values:this.gameFacade.categoryTagStore.categories().map(t=>({label:t.name,value:t.id.toString(),image:""}))}]),this.currentBP=M(d(D).current$,{requireSync:!0}),this.placeholders=u(()=>this.gameFilterQueryStore.pending()?new Array(this.CARD_ROW_COUNT[this.currentBP().name]??6).fill(0):[]),this.rowCols=u(()=>Object.entries(this.CARD_ROW_COUNT).map(([t,m])=>`row-cols${t=="us"?"":`-${t}`}-${m}`).join(" ")),S(()=>{this.matomo.trackPageView("Game Search")})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=y({type:e,selectors:[["ng-component"]],features:[b([h,{provide:$,useExisting:h}])],decls:8,vars:15,consts:[[1,"container-fluid","p-6","d-flex","gap-6"],[3,"additionalFilters"],[1,"bg-level-2","p-5","rounded","d-flex","flex-column","w-100"],[1,"border-bottom","border-separator","mt-6","ms-lg-0","d-lg-none"],[3,"scrollRestored"],[1,"bg-level-2","rounded","p-5","d-flex","flex-column","gap-5"],[1,"d-flex","gap-3","align-items-center"],["icon","recently_played","size","wide"],[1,"h3","m-0"],["imageLoadingMode","eager",1,"bg-level-2",3,"game"],[1,"game-deck-item","game-deck-placeholder","placeholder-wave"],[1,"game-card","bg-level-2","p-4","placeholder","dark"],["icon","recommended_for_you","size","wide"],[1,"h4","m-0"],[1,"game-deck-item"]],template:function(m,s){if(m&1&&(a(0,"div",0),o(1,"fx-game-advanced-filter",1),a(2,"div",2),o(3,"fx-game-advanced-filter-row",1)(4,"div",3),p(5,W,1,1,"fx-game-scrollable-list",4)(6,K,2,2),r()(),o(7,"router-outlet")),m&2){let l=s.gameFilterQueryStore.filterOrRangeSelected();i(),c("additionalFilters",s.additionalFilters()),i(2),x("mb-lg-6",l)("ps-lg-0",l)("px-5",!l),c("additionalFilters",s.additionalFilters()),i(),x("mx-5",!l)("mb-2",!l)("mb-6",l),i(),g(l?5:6)}},dependencies:[O,E,A,k,P,U,T,w,j,B,z],styles:[".game-deck[_ngcontent-%COMP%]{display:block}.game-deck-placeholder[_ngcontent-%COMP%] > .game-card[_ngcontent-%COMP%]{padding:0 0 75%!important;aspect-ratio:4/3;width:100%}"],changeDetection:1})}}return e})();export{fe as GameSearchComponent};
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.