1import{a as W,b as j}from"./chunk-RTPRAXWS.js";import{a as B,d as U}from"./chunk-RBOGN6P6.js";import{b as $}from"./chunk-XFHLXIIM.js";import{g as N}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 P}from"./chunk-ASTXUBF3.js";import{aa as O,k as _,n as L,va as A}from"./chunk-XNTCN5LM.js";import{Da as r,H as F,Ma as x,Mb as E,Nb as d,Wb as M,aa as c,db as f,eb as u,fb as G,gd as b,hb as C,hd as w,ib as h,jb as g,jc as s,jd as D,kb as o,lb as n,mb as l,nd as I,r as v,wb as k,yb as R,zc as T}from"./chunk-5LGYDGR4.js";import"./chunk-HIUAR4UN.js";var z=(t,m)=>m.id;function q(t,m){t&1&&(o(0,"div",13),l(1,"div",14),n())}function Z(t,m){if(t&1&&C(0,q,2,0,"div",13,G),t&2){let e=R();h(e.placeholders())}}function Q(t,m){if(t&1&&(o(0,"div",11),l(1,"fx-game-card",15),n()),t&2){let e=m.$implicit;r(),g("game",e)}}function V(t,m){t&1&&(o(0,"div",12)(1,"fx-game-empty-state",16)(2,"div",17),d(3,"No games found"),n(),o(4,"div",18),d(5,"We couldn't find any games. Please try another option."),n()()())}var le=(()=>{class t{constructor(){this.matomo=c(P),this.config=c(B),this.currentBP=_(c(O).current$,{requireSync:!0}),this.PAGE_SIZE=this.config.pageSize,this.gameFacade=c(N),this.CARD_ROW_COUNT=this.config.cardRowCount,this.placeholders=s(()=>{let e=this.CARD_ROW_COUNT[this.currentBP().name]??1,a=this.PAGE_SIZE%e,i=a?e-a:0;return Array(e+i).fill(0)}),this.rowCols=s(()=>Object.entries(this.CARD_ROW_COUNT).map(([e,a])=>`row-cols${e=="us"?"":`-${e}`}-${a}`).join(" ")),this.location=c(T),this.activatedRoute=c(b),this.categorySlug=_(this.activatedRoute.paramMap.pipe(v(e=>e.get("categorySlug")),v(e=>e&&decodeURIComponent(e)),F()),{requireSync:!0}),this.activeCategory=s(()=>this.gameFacade.categoryTagStore.getCategoryBySlug(this.categorySlug())),this.favGames=s(()=>{let e=this.gameFacade.gameFavoriteStore.favoriteGames();return this.activeCategory()?.id===void 0?e:e.filter(i=>i.category_id===this.activeCategory()?.id)})}ngOnInit(){this.matomo.trackPageView("Game Favorites")}goBack(){this.location.back()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=x({type:t,selectors:[["ng-component"]],decls:21,vars:9,consts:[["container",""],[3,"loading","rootCategories","activeCategoryId"],[3,"active"],["routerLink","/games",1,"nav-link","px-5","py-3","cfs-3","clh-4"],[1,"container-flush","py-6","d-flex","flex-column","gap-6"],[1,"align-self-start","btn","btn-secondary",3,"click"],["icon","chevron_left"],[1,"bg-level-2","p-5","d-flex","flex-column","gap-5"],[1,"d-flex","gap-3","align-items-center"],["icon","heart_hollow",2,"--fx-icon-size-x","1.5rem","--fx-icon-size-y","1.5rem"],[1,"m-0"],[1,"game-deck-item"],[1,"row","bg-level-2"],[1,"game-deck-item","game-deck-placeholder","placeholder-wave"],[1,"game-card","bg-level-2","p-4","placeholder","dark"],["imageLoadingMode","eager",1,"bg-level-2",3,"game"],["icon","no_content"],["title",""],["message",""]],template:function(a,i){if(a&1&&(o(0,"fx-game-filter")(1,"fx-game-filter-categories",1)(2,"fx-tab-item",2)(3,"a",3),d(4,"Featured"),n()()()(),o(5,"div",4,0)(7,"a",5),k("click",function(){return i.goBack()}),l(8,"fx-icon",6),d(9," Go Back "),n(),o(10,"div",7)(11,"div",8),l(12,"fx-icon",9),o(13,"h3",10),d(14,"Favorites"),n()(),o(15,"div"),f(16,Z,2,0),C(17,Q,2,1,"div",11,z),n(),f(19,V,6,0,"div",12),n()(),l(20,"router-outlet")),a&2){let p,y=i.favGames,S=i.gameFacade.gameFavoriteStore.pending;r(),g("loading",i.gameFacade.categoryTagStore.categoriesPending())("rootCategories",i.gameFacade.categoryTagStore.categories())("activeCategoryId",(p=i.activeCategory())==null?null:p.id),r(),g("active",!i.activeCategory()?.id),r(13),E(M("row game-deck__group__list ",i.rowCols())),r(),u(S()===!0?16:-1),r(),h(y()),r(2),u(S()===!1&&y().length===0?19:-1)}},dependencies:[W,L,$,U,I,w,D,j,A],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 t})();export{le as GameFavoriteListComponent};
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.