PageSourceSearch

https://www.eldorado.gg/chunk-CSKQTC26.js

js eldorado.gg collected 2026-10-02 06:22:24 UTC 42,447 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3e612869-aa33-5e91-b1fb-b14c6dd25148")}catch(e){}}();
3import{a as Ke}from"./chunk-NPRWW2ST.js";import{a as Ze}from"./chunk-5OBS5MYN.js";import{a as et}from"./chunk-MMFW4JMD.js";import{a as Je,b as L}from"./chunk-6UIGMKPM.js";import{a as tt,b as pe}from"./chunk-SCLIKTWM.js";import{a as k}from"./chunk-5FIVZEOW.js";import{a as ge}from"./chunk-HBMMR32L.js";import"./chunk-FGOKLG34.js";import{a as D}from"./chunk-FEWKE2AH.js";import{a as _e}from"./chunk-6GVNYEQP.js";import"./chunk-ZKLPADAU.js";import"./chunk-U6RKU7UR.js";import"./chunk-NRM2Y3YH.js";import"./chunk-EY2234XP.js";import"./chunk-N5ZVBAC3.js";import"./chunk-IQVZ44RH.js";import"./chunk-MQOEUPCL.js";import"./chunk-JFK4CL5R.js";import{c as je}from"./chunk-QBR4LE3E.js";import{b as Xe}from"./chunk-KP2MTX2A.js";import{b as Qe}from"./chunk-KEWCGDPX.js";import{a as qe,d as me,e as We,f as de}from"./chunk-RPKUPHGZ.js";import"./chunk-UAKJ6LOD.js";import{b as De,c as Le,e as le}from"./chunk-4OFYAGOL.js";import{e as Be,f as Fe,r as $e,s as ze,w as He,z as Ye}from"./chunk-DLPJWK4L.js";import"./chunk-GF4LZVAY.js";import{a as ce}from"./chunk-IB7PDLZR.js";import"./chunk-CW2OZJHE.js";import{i as q,m as se}from"./chunk-RTONOUWN.js";import"./chunk-TZLCZWSJ.js";import"./chunk-XC22UET4.js";import"./chunk-QY63XGLG.js";import"./chunk-7YHKA44F.js";import"./chunk-PHQDK3CD.js";import"./chunk-6VA3YQYO.js";import"./chunk-PRWO7TOS.js";import"./chunk-GYTVHEQZ.js";import"./chunk-JRSEXRUO.js";import"./chunk-QDUENW5W.js";import"./chunk-WKEDV5IB.js";import"./chunk-I632XHT5.js";import"./chunk-LTX5EWBQ.js";import"./chunk-5SLJO4N5.js";import"./chunk-K3LPZKPV.js";import{b as re,e as K,p as ae}from"./chunk-4R4EGKM3.js";import{a as V}from"./chunk-DUH43RV6.js";import{i as Ue}from"./chunk-LBWFELBH.js";import"./chunk-LVHFRK5S.js";import"./chunk-2C3TBEYH.js";import"./chunk-P5GCYECX.js";import"./chunk-BI5TAYFX.js";import"./chunk-U3OPTH4F.js";import{a as $}from"./chunk-J77BE44H.js";import"./chunk-UBPRZHFC.js";import"./chunk-5WBPRBLT.js";import{m as W}from"./chunk-WMK4UHKL.js";import"./chunk-TGY5CREU.js";import{a as oe,c as Ve}from"./chunk-R2MTWKGX.js";import{a as A}from"./chunk-QFFBMNNE.js";import"./chunk-H77KB3FH.js";import"./chunk-RL5QFXWK.js";import"./chunk-NEMB4EFY.js";import{Ia as ke,g as j,o as ie,p as Pe,qa as Ie,z as O}from"./chunk-QKEHE5CK.js";import"./chunk-JXQ5ZH4X.js";import{$d as Ne,Aa as p,Ac as S,Ad as Re,Cd as b,Db as s,E as ve,Gc as H,Ha as g,I as Z,Ia as _,Id as f,Jd as v,Kc as C,Kd as T,Na as ee,O as Ge,Od as ne,Sc as w,Ta as te,Td as P,Ud as I,Vb as M,Wa as R,Xc as u,Yb as we,Za as Se,Zb as be,Zd as E,_b as N,_c as a,_d as d,g as Te,gd as Oe,hd as Ae,id as Y,md as Q,nd as ye,pd as fe,qc as h,sc as x,ud as X,v as Ee,vc as U,vd as J,wc as B,wd as F,xc as m,yc as l,zc as c}from"./chunk-OG4R3H7L.js";import"./chunk-CHCY4HII.js";var nt=(()=>{let r=class r{constructor(){this.searchText=d.required(),this.category=d.required(),this.store=p(W),this.isMobile=Ve(this.store.select(De).pipe(Z(Boolean),Ee(t=>t<=ce.SM)),{initialValue:!1}),this.cannotFindTexts={heading:"Nothing found",bottomText:"Sorry, we cannot find what you are looking for."},this.ASSET=A;}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=M({type:r,selectors:[["eld-categories-menu-no-results"]],inputs:{searchText:[1,"searchText"],category:[1,"category"]},decls:8,vars:8,consts:()=>{let t;return t="No results found",[[1,"flex","flex-col","items-center","gap-4","p-10","pb-[50px]","md:px-2","md:py-6"],["alt",t,3,"filePath","height","width"],[1,"flex","flex-col","items-center","gap-3","md:gap-2"],[1,"text-center","text-2xl","font-bold"],[1,"text-secondary","pt-1","text-center","text-base"]];},template:function(n,o){if(n&1&&(l(0,"div",0),S(1,"eld-image",1),f(2,"getElDragoAssetUrl"),l(3,"div",2)(4,"div",3),ye(5),c(),l(6,"div",4),ye(7),c()()()),n&2){let G=o.isMobile()?100:80;s(),m("filePath",T(2,5,"goldie-no-results.svg",o.ASSET.Miscellaneous))("height",G)("width",G),s(4),fe(" ",o.cannotFindTexts.heading," "),s(2),fe(" ",o.cannotFindTexts.bottomText," ");}},dependencies:[Ue,Xe],encapsulation:2,changeDetection:0});let i=r;return i;})();var ue=(()=>
3{let r=class r{constructor(){this.filterGamesService=p(ge);}transform(t,n){return this.filterGamesService.filterGameCategoriesContainingSynonym(t,n);}};r.ɵfac=function(n){return new(n||r)();},r.ɵpipe=we({name:"filterGames",type:r,pure:!0});let i=r;return i;})();var at=i=>({$implicit:i}),st=i=>({$implicit:i,showCategoryLabel:!0}),ct=(i,r)=>"game-entry-"+r.gameId,lt=(i,r)=>"no-results-game-entry-"+r.gameId;function mt(i,r){i&1&&H(0);}function dt(i,r){if(i&1&&(l(0,"div",3),N(1,mt,1,0,"ng-container",4),c()),i&2){let e=r.$implicit;a(3);let t=Y(5);s(),m("ngTemplateOutlet",t)("ngTemplateOutletContext",b(2,at,e));}}function gt(i,r){if(i&1&&(l(0,"div",2),U(1,dt,2,4,"div",3,ct),c()),i&2){a();let e=F(0);s(),B(e);}}function _t(i,r){i&1&&H(0);}function pt(i,r){if(i&1&&(l(0,"div",3),N(1,_t,1,0,"ng-container",4),c()),i&2){let e=r.$implicit;a(4);let t=Y(5);s(),m("ngTemplateOutlet",t)("ngTemplateOutletContext",b(2,st,e));}}function ut(i,r){if(i&1&&(l(0,"div",5)(1,"div",7)(2,"eld-alert",8),w(3,1),c()(),U(4,pt,2,4,"div",3,lt),c()),i&2){a();let e=F(0),t=a(2);s(2),m("title",t.categoryLabel()+" "+t.notSoldDirectlyText),s(2),B(e);}}function Ct(i,r){if(i&1&&S(0,"eld-categories-menu-no-results",6),i&2){let e=a(3),t=F(2);m("category",e.category())("searchText",t);}}function ht(i,r){if(i&1&&(X(0),f(1,"filterGames"),h(2,ut,6,1,"div",5)(3,Ct,1,2,"eld-categories-menu-no-results",6)),i&2){let e=a(2),t=F(2),n=J(T(1,1,e.allGames(),t));s(2),x(n.length>0?2:3);}}function xt(i,r){if(i&1&&(X(0),f(1,"filterGames"),h(2,gt,3,0,"div",2)(3,ht,4,5)),i&2){let e=a(),t=F(0),n=F(2),o=J(T(1,1,e.categoryGames(),n));s(2),x(o.length>0?2:t?3:-1);}}function yt(i,r){if(i&1){let e=C();X(0),f(1,"categoryLabel"),l(2,"eld-game-list-item",9),f(3,"getAssetUrl"),f(4,"getGameUrl"),u("gameClicked",function(){let n=g(e).$implicit,o=a();return _(o.onGameClick(n));}),c();}if(i&2){let e=r.$implicit,t=r.showCategoryLabel,n=a(),o=t&&e.category?v(1,7,e.category):null;s(2),m("ariaLabel","Search result for "+e.gameName)("createdDate",e.createdDate)("highlightColor","base")("iconUrl",T(3,9,e.gameId,n.assetEnum.Icons))("subTitle",o)("title",t?e.gameName:e.menuGameTitle)("url",v(4,12,e));}}var it=(()=>{let r=class r{constructor(){this.category=d.required(),this.searchText=d(null),this.dropdownVisible=d(!1),this.allGames=d([]),this.categoryGames=d([]),this.assetEnum=A,this.notSoldDirectlyText="not sold directly",this.categoryLabel=I(()=>this.categoryLabelPipe.transform(this.category())),this.noResults$=new Te(null),this.filterGamesPipe=p(ue),this.categoriesMenuService=p(L),this.analyticsService=p(se),this.categoryLabelPipe=p(_e),this.destroyRef=p(ee),this.platform=p(ke),this.firstSearchTextChange=!0,R(()=>{let t=this.searchText();if(this.firstSearchTextChange){this.firstSearchTextChange=!1;return;}P(()=>{let n=this.filterGamesPipe.transform(this.categoryGames(),t||"").length===0;this.noResults$.next({noResults:n,searchText:t,category:this.category()});});});}ngOnInit(){this.onNoResultsDispatchEvent();}onGameClick(t){this.sendClickSearchResultGameEvent(t),this.categoriesMenuService.closeMenuDropdown();}onNoResultsDispatchEvent(){this.platform.browser&&this.noResults$.pipe(Ge(()=>ve(1e3)),oe(this.destroyRef),Z(Boolean)).subscribe(t=>{let{noResults:n,category:o,searchText:y}=t;n&&this.sendNavigationSearchNoResultsEvent(o,y);});}sendClickSearchResultGameEvent(t){this.analyticsService.trackEvent({name:"click_navigation_search_result_game",params:{category:t.category,gameName:t.gameName},deliveryMethod:q.STANDARD});}sendNavigationSearchNoResultsEvent(t,n){this.analyticsService.trackEvent({name:"navigation_search_no_results",params:{searchQuery:n,category:t},deliveryMethod:q.STANDARD});}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=M({type:r,selectors:[["eld-categories-menu-search-entries"]],inputs:{category:[1,"category"],searchText:[1,"searchText"],dropdownVisible:[1,"dropdownVisible"],allGames:[1,"allGames"],categoryGames:[1,"categoryGames"]},features:[Re([ue,_e])],decls:6,vars:5,consts:()=>{let t;return t=" Get it through other categories. ",[["gameEntry",""],t,["aria-label","Search results",1,"menu-entries","search-container","flex","gap-1"],[1,"category-menu-dropdown-item"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-label","Cross-search results",1,"menu-entries","search-container"],[3,"category","searchText"],[1,"mb-3"],["type","info","aria-label","No results in category message",3,"title"],[3,"gameClicked","ariaLabel","createdDate","highlightColor","iconUrl","subTitle","title","url"]];},template:function(n,o){if(n&1&&(X(0),f(1,"async"),X(2),h(3,xt,4,5),N(4,yt,5,14,"ng-template",null,0,ne)),n&2){J(v(1,1,o.noResults$)),s(2);let y=J(o.searchText());s(),x(y?3:-1);}},dependencies:[O,ie,Ze,je,nt,k,Pe,ue,V,_e,D],styles:[".category-menu-dropdown-item[_ngcontent-%COMP%]{border-radius:8px}.category-menu-dropdown-item[_ngcontent-%COMP%]   eld-image[_ngcontent-%COMP%]{margin-right:10px}.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px;font-size:16px;line-height:19px;font-weight:400;color:var(--text-primary);min-height:52px;width:100%}@media(min-width:961px){.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:5px 8px;min-height:42px}}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover   a[_ngcontent-%COMP%]{background:transparent}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-alt-1{background-color:var(--background-alt-1)}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-base-1{background-color:var(--background-base-1)}.category-item[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:10px 10px 9px;cursor:pointer;transition:all .2s ease;font-size:16px;line-height:25px;font-weight:700;letter-spacing:.03em;color:var(--text-primary);-webkit-user-select:none;user-select:none;justify-content:center;text-wrap:nowrap;height:100%}@media(min-width:841px){.category-item[_ngcontent-%COMP%]{padding:0 15px}}.category-item.no-margin[_ngcontent-%COMP%]{margin:0}.category-item.active-global[_ngcontent-%COMP%], .category-item[_ngcontent-%COMP%]:hover{color:var(--text-primary);background-color:var(--background-alt-1)}.category-item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none}eld-chip[_ngcontent-%COMP%]     .chip{margin-left:6px;max-height:18px;padding:6px;font-size:12px;text-wrap:nowrap}.menu-entries[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;min-height:87px;max-width:100%}"],changeDetection:0});let i=r;return i;})();var ft=i=>({"light-background":i});function Mt(i,r){if(i&1){let e=C();l(0,"div",0)(1,"eld-input",1),u("focusChange",function(n){g(e);let o=a();return _(o.onFocusChange(n));})("resetEvent",function(){g(e);let n=a();return _(n.onResetEvent());}),c()();}if(i&2){let e=a();m("formGroup",e.gamesSearchForm)("ngClass",b(5,ft,e.isLightBackgroun
3d())),s(),m("focus",e.hasAutoFocus())("reset",e.hasReset())("showSearchIcon",!0);}}var he=(()=>{let r=class r{constructor(){this.category=d.required(),this.isLightBackground=d(!1),this.hasReset=d(!1),this.hasAutoFocus=d(!1),this.searchTextChange=E(),this.focusChange=E(),this.resetEvent=E(),this.fb=p(He),this.destroyRef=p(ee);}ngOnInit(){this.initForm(),this.subscribeSearchTextChange();}initForm(){this.gamesSearchForm=this.fb.group({searchText:[null]});}subscribeSearchTextChange(){this.gamesSearchForm.controls.searchText.valueChanges.pipe(oe(this.destroyRef)).subscribe(t=>this.searchTextChange.emit(t));}onFocusChange(t){this.focusChange.emit(t);}onResetEvent(){this.resetEvent.emit();}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=M({type:r,selectors:[["eld-categories-menu-search-form"]],inputs:{category:[1,"category"],isLightBackground:[1,"isLightBackground"],hasReset:[1,"hasReset"],hasAutoFocus:[1,"hasAutoFocus"]},outputs:{searchTextChange:"searchTextChange",focusChange:"focusChange",resetEvent:"resetEvent"},decls:1,vars:1,consts:()=>{let t;return t="Search for game",[[3,"formGroup","ngClass"],["formControlName","searchText","placeholder",t,3,"focusChange","resetEvent","focus","reset","showSearchIcon"]];},template:function(n,o){n&1&&h(0,Mt,2,7,"div",0),n&2&&x(o.gamesSearchForm?0:-1);},dependencies:[O,j,Ye,Be,Fe,ze,$e,Qe],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%]     .light-background{--input-autofill-bg: var(--background-base-1)}[_nghost-%COMP%]     .light-background input{background-color:var(--background-base-1)}[_nghost-%COMP%]     .light-background input:focus{background-color:var(--background-base-1)}[_nghost-%COMP%]     .reset{padding:4px}"],changeDetection:0});let i=r;return i;})();function Tt(i,r){if(i&1){let e=C();l(0,"div",6)(1,"eld-categories-menu-search-form",9),u("focusChange",function(n){g(e);let o=a(2);return _(o.onSearchFocusChange(n));})("searchTextChange",function(n){g(e);let o=a(2);return _(o.onSearchTextChange(n));}),c()();}if(i&2){let e=a(2);s(),m("category",e.category())("hasAutoFocus",!0)("hasReset",!0)("isLightBackgroun
3d",!0);}}function Et(i,r){if(i&1){let e=C();l(0,"div",11)(1,"eld-game-list-item",12),f(2,"getAssetUrl"),f(3,"getGameUrl"),u("gameClicked",function(){let n=g(e),o=n.$implicit,y=n.index,G=a(3);return _(G.onGameClicked(o,y));}),c()();}if(i&2){let e=r.$implicit,t=a(3),n=e.gameId===t.activeGameId()&&e.category===t.activeCategoryGlobal()&&t.isMobile();s(),m("createdDate",e.createdDate)("highlightColor","base")("iconUrl",T(2,6,e.gameId,t.ASSET.Icons))("isActive",n??!1)("title",e.menuGameTitle)("url",v(3,9,e));}}function vt(i,r){if(i&1&&(l(0,"cdk-virtual-scroll-viewport",7),N(1,Et,4,11,"div",10),c()),i&2){let e=a(2);m("itemSize",e.GAME_ROW_HEIGHT),s(),m("cdkVirtualForOf",e.categoryGames())("cdkVirtualForTrackBy",e.trackByGame);}}function Gt(i,r){if(i&1&&(l(0,"div",3)(1,"p",5),w(2,0),c(),h(3,Tt,2,4,"div",6),h(4,vt,2,3,"cdk-virtual-scroll-viewport",7),S(5,"eld-categories-menu-search-entries",8),c()),i&2){let e=a();s(),Q(e.searchText()?"hidden md:block":"block"),s(2),x(e.dropdownVisible()||e.searchText()?3:-1),s(),x(e.searchText()?-1:4),s(),m("allGames",e.allGames())("category",e.category())("categoryGames",e.categoryGames())("dropdownVisible",e.dropdownVisible())("searchText",e.searchText());}}function St(i,r){if(i&1){let e=C();l(0,"div",6)(1,"eld-categories-menu-search-form",9),u("focusChange",function(n){g(e);let o=a(2);return _(o.onSearchFocusChange(n));})("searchTextChange",function(n){g(e);let o=a(2);return _(o.onSearchTextChange(n));}),c()();}if(i&2){let e=a(2);s(),m("category",e.category())("hasAutoFocus",!0)("hasReset",!0)("isLightBackgroun
3d",!0);}}function wt(i,r){if(i&1){let e=C();l(0,"div",11)(1,"eld-game-list-item",12),f(2,"getAssetUrl"),f(3,"getGameUrl"),u("gameClicked",function(){let n=g(e),o=n.$implicit,y=n.index,G=a(3);return _(G.onGameClicked(o,y));}),c()();}if(i&2){let e=r.$implicit,t=a(3),n=e.gameId===t.activeGameId()&&e.category===t.activeCategoryGlobal()&&t.isMobile();s(),m("createdDate",e.createdDate)("highlightColor","base")("iconUrl",T(2,6,e.gameId,t.ASSET.Icons))("isActive",n??!1)("title",e.menuGameTitle)("url",v(3,9,e));}}function bt(i,r){if(i&1&&(l(0,"cdk-virtual-scroll-viewport",7),N(1,wt,4,11,"div",10),c()),i&2){let e=a(2);m("itemSize",e.GAME_ROW_HEIGHT),s(),m("cdkVirtualForOf",e.categoryGames())("cdkVirtualForTrackBy",e.trackByGame);}}function Ot(i,r){if(i&1&&(l(0,"div",4)(1,"p",5),w(2,1),c(),h(3,St,2,4,"div",6),h(4,bt,2,3,"cdk-virtual-scroll-viewport",7),S(5,"eld-categories-menu-search-entries",8),c()),i&2){let e=a();s(),Q(e.searchText()?"hidden md:block":"block"),s(2),x(e.dropdownVisible()||e.searchText()?3:-1),s(),x(e.searchText()?-1:4),s(),m("allGames",e.allGames())("category",e.category())("categoryGames",e.categoryGames())("dropdownVisible",e.dropdownVisible())("searchText",e.searchText());}}var At=46,ot=(()=>{let r=class r{constructor(){this.viewport=Ne(me),this.category=d.required(),this.searchText=d.required(),this.dropdownVisible=d(!1),this.allGames=d([]),this.categoryGames=d([]),this.activeGameId=d(null),this.activeCategoryGlobal=d(null),this.searchTextChange=E(),this.focusChange=E(),this.gameClicked=E(),this.categoriesMenuService=p(L),this.store=p(W),this.ASSET=A,this.GAME_ROW_HEIGHT=At,this.isDesktop=this.store.selectSignal(Le),this.isMobile=this.store.selectSignal(le),this.initViewportRemeasureEffect(),this.initScrollContainerResizeEffect();}closeDropdown(){this.categoriesMenuService.closeMenuDropdown();}onGameClicked(t,n){this.gameClicked.emit({game:t,menuType:"navigation_all_menu",listType:"All games",position:n+1}),this.closeDropdown();}onSearchFocusChange(t){this.focusChange.emit(t);}onSearchTextChange(t){this.searchTextChange.emit(t);}trackByGame(t,n){return n.gameId+n.category;}initViewportRemeasureEffect(){R(()=>{let t=this.dropdownVisible(),n=this.viewport();!t||!n||P(()=>n.checkViewportSize());});}initScrollContainerResizeEffect(){R(t=>{let n=this.viewport();if(!n||typeof ResizeObserver>"u")return;let o=n.scrollable.getElementRef().nativeElement,y=new ResizeObserver(()=>n.checkViewportSize());y.observe(o),t(()=>y.disconnect());});}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=M({type:r,selectors:[["eld-categories-menu-all-games"]],viewQuery:function(n,o){n&1&&Oe(o.viewport,me,5),n&2&&Ae();},inputs:{category:[1,"category"],searchText:[1,"searchText"],dropdownVisible:[1,"dropdownVisible"],allGames:[1,"allGames"],categoryGames:[1,"categoryGames"],activeGameId:[1,"activeGameId"],activeCategoryGlobal:[1,"activeCategoryGlobal"]},outputs:{searchTextChange:"searchTextChange",focusChange:"focusChange",gameClicked:"gameClicked"},decls:3,vars:1,consts:()=>{let t;t="All games";let n;return n="All games",[t,n,[1,"bg-base-1","md:bg-alt-1","flex","h-full","flex-col","md:relative"],["cdkVirtualScrollingElement","",1,"all-games-scroll","transparent-scrollbar","flex","flex-col","px-4","pb-2","md:absolute","md:inset-x-0","md:top-6","md:bottom-0","md:gap-4","md:overflow-auto","md:ps-6","md:pb-0"],[1,"all-games-scroll","transparent-scrollbar","flex","flex-col","px-4","pb-2","md:absolute","md:inset-x-0","md:top-6","md:bottom-0","md:gap-4","md:overflow-auto","md:ps-6","md:pb-0"],[1,"all-games-title"],[1,"hidden","md:block"],[1,"all-games-list","transparent-scrollbar",3,"itemSize"],[3,"allGames","category","categoryGames","dropdownVisible","searchText"],[3,"focusChange","searchTextChange","category","hasAutoFocus","hasReset","isLightBackgroun
3d"],["class","pb-1",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"pb-1"],[3,"gameClicked","createdDate","highlightColor","iconUrl","isActive","title","url"]];},template:function(n,o){n&1&&(l(0,"div",2),h(1,Gt,6,9,"div",3)(2,Ot,6,9,"div",4),c()),n&2&&(s(),x(o.isDesktop()?1:2));},dependencies:[me,qe,We,de,he,it,k,D,V],styles:[".category-menu-dropdown-item[_ngcontent-%COMP%]{border-radius:8px}.category-menu-dropdown-item[_ngcontent-%COMP%]   eld-image[_ngcontent-%COMP%]{margin-right:10px}.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px;font-size:16px;line-height:19px;font-weight:400;color:var(--text-primary);min-height:52px;width:100%}@media(min-width:961px){.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:5px 8px;min-height:42px}}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover   a[_ngcontent-%COMP%]{background:transparent}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-alt-1{background-color:var(--background-alt-1)}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-base-1{background-color:var(--background-base-1)}.category-item[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:10px 10px 9px;cursor:pointer;transition:all .2s ease;font-size:16px;line-height:25px;font-weight:700;letter-spacing:.03em;color:var(--text-primary);-webkit-user-select:none;user-select:none;justify-content:center;text-wrap:nowrap;height:100%}@media(min-width:841px){.category-item[_ngcontent-%COMP%]{padding:0 15px}}.category-item.no-margin[_ngcontent-%COMP%]{margin:0}.category-item.active-global[_ngcontent-%COMP%], .category-item[_ngcontent-%COMP%]:hover{color:var(--text-primary);background-color:var(--background-alt-1)}.category-item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none}eld-chip[_ngcontent-%COMP%]     .chip{margin-left:6px;max-height:18px;padding:6px;font-size:12px;text-wrap:nowrap}[_nghost-%COMP%]{width:100%}@media(min-width:961px){[_nghost-%COMP%]{width:37%}}.all-games-title[_ngcontent-%COMP%]{color:var(--text-primary);font-weight:700;font-size:14px;line-height:14px;padding:0 0 16px}@media(min-width:961px){.all-games-title[_ngcontent-%COMP%]{letter-spacing:.14px;line-height:140%;padding:0}}.all-games-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:0 40px}.all-games-header[_ngcontent-%COMP%]   .open-search-button[_ngcontent-%COMP%]{padding:5px;border-radius:5px;cursor:pointer;transition:all .2s ease}.all-games-header[_ngcontent-%COMP%]   .open-search-button[_ngcontent-%COMP%]:hover{background:var(--background-base-1)}@media(min-width:841px){.all-games-scroll[_ngcontent-%COMP%]{scrollbar-gutter:stable}}"],changeDetection:0});let i=r;return i;})();var Rt=(i,r)=>r.gameId+r.category;function Nt(i,r){if(i&1){let e=C();l(0,"eld-price-history-promo",6),u("ctaClicked",function(){g(e);let n=a();return _(n.closeDropdown());}),c();}i&2&&m("showBorder",!0);}function Pt(i,r){if(i&1){let e=C();l(0,"eld-game-list-item",7),f(1,"getAssetUrl"),f(2,"getGameUrl"),u("gameClicked",function(){let n=g(e),o=n.$implicit,y=n.$index,G=a();return _(G.onGameClicked(o,y));}),c();}if(i&2){let e=r.$implicit,t=a(),n=e.gameId===t.activeGameId()&&e.category===t.activeCategoryGlobal()&&t.isMobile();m("createdDate",e.createdDate)("iconUrl",T(1,5,e.gameId,t.assetEnum.Icons))("isActive",n??!1)("title",e.menuGameTitle)("url",v(2,8,e));}}var xe=(()=>{let r=class r{constructor(){this.category=d.required(),this.searchText=d.required(),this.dropdownVisible=d(!1),this.popularGames=d([]),this.activeGameId=d(null),this.activeCategoryGlobal=d(null),this.gameClicked=E(),this.assetEnum=A,this.categoriesMenuService=p(L),this.store=p(W),this.abTestsService=p(ae),this.priceHistoryPromoAnalytics=p(tt),this.isMobile=this.store.selectSignal(le),this.isPriceHistoryPromoExperiment=te(null),this.initPriceHistoryPromoExperimentEffect();}onGameClicked(t,n){this.gameClicked.emit({game:t,menuType:"navigation_popular_menu",listType:"Popular games",position:n+1}),this.closeDropdown();}closeDropdown(){this.categoriesMenuService.closeMenuDropdown();}initPriceHistoryPromoExperimentEffect(){R(()=>{this.category()===$.CustomItem&&this.dropdownVisible()&&this.isPriceHistoryPromoExperiment()===null&&P(()=>this.setPriceHistoryPromoExperimentValue());});}setPriceHistoryPromoExperimentValue(){this.isPriceHistoryPromoExperiment.set(this.abTestsService.getTestVariant(K.TP_ROBLOX_PRICE_HISTORY_PROMO)===re.EXPERIMENT),this.priceHistoryPromoAnalytics.trackPriceHistoryPromoView("navigation");}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=M({type:r,selectors:[["eld-categories-menu-trending-games"]],inputs:{category:[1,"category"],searchText:[1,"searchText"],dropdownVisible:[1,"dropdownVisible"],popularGames:[1,"popularGames"],activeGameId:[1,"activeGameId"],activeCategoryGlobal:[1,"activeCategoryGlobal"]},outputs:{gameClicked:"gameClicked"},decls:7,vars:2,consts:()=>{let t;return t=" Popular games ",[t,[1,"trending-games","flex","flex-col","gap-2","px-4","md:gap-4","md:p-6",3,"ngClass"],["areaType","navigation",3,"showBorder"],[1,"category-menu-title","mt-1","md:m-0"],[1,"grid","grid-cols-1","gap-x-4","gap-y-1","md:grid-cols-2"],[3,"createdDate","iconUrl","isActive","title","url"],["areaType","navigation",3,"ctaClicked","showBorder"],[3,"gameClicked","createdDate","iconUrl","isActive","title","url"]];},template:function(n,o){n&1&&(l(0,"div",1),h(1,Nt,1,1,"eld-price-history-promo",2),l(2,"p",3),w(3,0),c(),l(4,"div",4),U(5,Pt,3,10,"eld-game-list-item",5,Rt),c()()),n&2&&(m("ngClass",o.searchText()?"hidden md:flex":"block"),s(),x(o.isPriceHistoryPromoExperiment()&&o.dropdownVisible()?1:-1),s(4),B(o.popularGames()));},dependencies:[O,j,k,pe,V,D],styles:[".category-menu-dropdown-item[_ngcontent-%COMP%]{border-radius:8px}.category-menu-dropdown-item[_ngcontent-%COMP%]   eld-image[_ngcontent-%COMP%]{margin-right:10px}.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px;font-size:16px;line-height:19px;font-weight:400;color:var(--text-primary);min-height:52px;width:100%}@media(min-width:961px){.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:5px 8px;min-height:42px}}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover   a[_ngcontent-%COMP%]{background:transparent}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-alt-1{background-color:var(--background-alt-1)}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-base-1{background-color:var(--background-base-1)}.category-item[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:10px 10px 9px;cursor:pointer;transition:all .2s ease;font-size:16px;line-height:25px;font-weight:700;letter-spacing:.03em;color:var(--text-primary);-webkit-user-select:none;user-select:none;justify-content:center;text-wrap:nowrap;height:100%}@media(min-width:841px){.category-item[_ngcontent-%COMP%]{padding:0 15px}}.category-item.no-margin[_ngcontent-%COMP%]{margin:0}.category-item.active-global[_ngcontent-%COMP%], .category-item[_ngcontent-%COMP%]:hover{color:var(--text-primary);background-color:var(--background-alt-1)}.category-item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none}eld-chip[_ngcontent-%COMP%]     .chip{margin-left:6px;max-height:18px;padding:6px;font-size:12px;text-wrap:nowrap}[_nghost-%COMP%]{width:100%}@media(min-width:961px){[_nghost-%COMP%]{width:63%}}.trending-games[_ngcontent-%COMP%]{background-color:var(--background-base-1);min-width:100%;width:100%}@media(min-width:361px){.trending-games[_ngcontent-%COMP%]{min-width:unset}}@media(min-width:601px){.trending-games[_ngcontent-%COMP%]{width:unset}}.trending-games.trending-games-collapsed[_ngcontent-%COMP%]{display:none}.category-menu-title[_ngcontent-%COMP%]{color:var(--text-primary);font-weight:700;font-size:14px;line-height:14px;margin-top:4px;padding:8px 0}@media(min-width:961px){.category-menu-title[_ngcontent-%COMP%]{letter-spacing:.14px;line-height:140%;padding:0;margin:0}}"],changeDetection:0});let i=r;return i;})();var It=i=>({$implicit:i,listType:"Popular games"}),Vt=i=>({$implicit:i,listType:"Recently viewed"}),kt=(i,r)=>r.gameId+r.category;function Dt(i,r){if(i&1){let e=C();l(0,"eld-price-history-promo",8),u("ctaClicked",function(){g(e);let n=a();return _(n.closeDropdown());}),c();}i&2&&m("showBorder",!0);}function Lt(i,r){if(i&1&&(l(0,"div",5)(1,"p",6),w(2,2),c(),H(3,7),c()),i&2){let e=a(),t=Y(8);s(3),m("ngTemplateOutlet",t)("ngTemplateOutletContext",b(2,Vt,e.recentlyViewedGames()));}}function Ut(i,r){if(i&1){let e=C();l(0,"eld-game-list-item",11),f(1,"getAssetUrl"),f(2,"getGameUrl"),u("gameClicked",function(){let n=g(e),o=n.$implicit,y=n.$index,G=a().listType,Me=a();return _(G==="Recently viewed"?Me.onRecentlyViewedGameClicked(o,y):Me.onGameClicked(o,y));}),c();}if(i&2){let e=r.$implicit,t=a(2),n=e.gameId===t.activeGameId()&&e.category===t.activeCategoryGlobal()&&t.isMobile();m("createdDate",e.createdDate)("iconUrl",T(1,5,e.gameId,t.assetEnum.Icons))("isActive",n??!1)("title",e.menuGameTitle)("url",v(2,8,e));}}function Bt(i,r){if(i&1&&(l(0,"div",9),U(1,Ut,3,10,"eld-game-list-item",10,kt),c()),i&2){let e=r.$implicit;s(),B(e);}}var rt=(()=>{let r=class r extends xe{constructor(){super(...arguments),this.recentlyViewedGames=d.required();}
3onRecentlyViewedGameClicked(t,n){this.gameClicked.emit({game:t,menuType:"navigation_recently_viewed",listType:"Recently viewed",position:n+1}),this.closeDropdown();}};r.ɵfac=(()=>{let t;return function(o){return(t||(t=Se(r)))(o||r);};})(),r.ɵcmp=M({type:r,selectors:[["eld-categories-menu-trending-games-ab"]],inputs:{recentlyViewedGames:[1,"recentlyViewedGames"]},features:[be],decls:9,vars:8,consts:()=>{let t;t=" Popular games ";let n;return n="Recently viewed games",[["gamesGrid",""],t,n,[1,"trending-games","flex-col","gap-3","px-4","md:gap-6","md:p-6"],["areaType","navigation",3,"showBorder"],[1,"flex","flex-col","gap-2","md:gap-4"],[1,"category-menu-title"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["areaType","navigation",3,"ctaClicked","showBorder"],[1,"grid","grid-cols-1","gap-x-4","gap-y-1","md:grid-cols-2"],[3,"createdDate","iconUrl","isActive","title","url"],[3,"gameClicked","createdDate","iconUrl","isActive","title","url"]];},template:function(n,o){if(n&1&&(l(0,"div",3),h(1,Dt,1,1,"eld-price-history-promo",4),h(2,Lt,4,4,"div",5),l(3,"div",5)(4,"p",6),w(5,1),c(),H(6,7),c()(),N(7,Bt,3,0,"ng-template",null,0,ne)),n&2){let y=Y(8);Q(o.searchText()?"hidden md:flex":"flex"),s(),x(o.isPriceHistoryPromoExperiment()&&o.dropdownVisible()?1:-1),s(),x(o.recentlyViewedGames().length?2:-1),s(4),m("ngTemplateOutlet",y)("ngTemplateOutletContext",b(6,It,o.popularGames()));}},dependencies:[O,ie,k,pe,V,D],styles:[".category-menu-dropdown-item[_ngcontent-%COMP%]{border-radius:8px}.category-menu-dropdown-item[_ngcontent-%COMP%]   eld-image[_ngcontent-%COMP%]{margin-right:10px}.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px;font-size:16px;line-height:19px;font-weight:400;color:var(--text-primary);min-height:52px;width:100%}@media(min-width:961px){.category-menu-dropdown-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:5px 8px;min-height:42px}}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover   a[_ngcontent-%COMP%]{background:transparent}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-alt-1{background-color:var(--background-alt-1)}.category-menu-dropdown-item[_ngcontent-%COMP%]:hover.bg-base-1{background-color:var(--background-base-1)}.category-item[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:10px 10px 9px;cursor:pointer;transition:all .2s ease;font-size:16px;line-height:25px;font-weight:700;letter-spacing:.03em;color:var(--text-primary);-webkit-user-select:none;user-select:none;justify-content:center;text-wrap:nowrap;height:100%}@media(min-width:841px){.category-item[_ngcontent-%COMP%]{padding:0 15px}}.category-item.no-margin[_ngcontent-%COMP%]{margin:0}.category-item.active-global[_ngcontent-%COMP%], .category-item[_ngcontent-%COMP%]:hover{color:var(--text-primary);background-color:var(--background-alt-1)}.category-item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{pointer-events:none}eld-chip[_ngcontent-%COMP%]     .chip{margin-left:6px;max-height:18px;padding:6px;font-size:12px;text-wrap:nowrap}[_nghost-%COMP%]{width:100%}@media(min-width:961px){[_nghost-%COMP%]{width:63%}}.trending-games[_ngcontent-%COMP%]{background-color:var(--background-base-1);min-width:100%;width:100%}@media(min-width:361px){.trending-games[_ngcontent-%COMP%]{min-width:unset}}@media(min-width:601px){.trending-games[_ngcontent-%COMP%]{width:unset}}.trending-games.trending-games-collapsed[_ngcontent-%COMP%]{display:none}.category-menu-title[_ngcontent-%COMP%]{color:var(--text-primary);font-weight:700;font-size:14px;line-height:14px;margin-top:4px;padding:8px 0}@media(min-width:961px){.category-menu-title[_ngcontent-%COMP%]{letter-spacing:.14px;line-height:140%;padding:0;margin:0}}"],changeDetection:0});let i=r;return i;})();var Ft=i=>({show:i});function $t(i,r){if(i&1){let e=C();l(0,"eld-categories-menu-trending-games-ab",10),u("gameClicked",function(n){g(e);let o=a(2);return _(o.onGameClicked(n));}),c();}if(i&2){let e=a(2);m("activeCategoryGlobal",e.activeCategoryGlobal())("activeGameId",e.activeGameId())("category",e.category())("dropdownVisible",e.dropdownVisible())("popularGames",e.popularGames())("recentlyViewedGames",e.recentlyViewedGames())("searchText",e.searchText());}}function zt(i,r){if(i&1){let e=C();l(0,"eld-categories-menu-trending-games",11),u("gameClicked",function(n){g(e);let o=a(2);return _(o.onGameClicked(n));}),c();}if(i&2){let e=a(2);m("activeCategoryGlobal",e.activeCategoryGlobal())("activeGameId",e.activeGameId())("category",e.category())("dropdownVisible",e.dropdownVisible())("popularGames",e.popularGames())("searchText",e.searchText());}}function Ht(i,r){if(i&1){let e=C();l(0,"div",3)(1,"eld-categories-menu-search-form",5),u("focusChange",function(n){g(e);let o=a();return _(o.onSearchFocusChange(n));})("searchTextChange",function(n){g(e);let o=a();return _(o.searchTextChange(n));}),c(),h(2,$t,1,7,"eld-categories-menu-trending-games-ab",6)(3,zt,1,6,"eld-categories-menu-trending-games",7),S(4,"hr",8),l(5,"eld-categories-menu-all-games",9),u("focusChange",function(n){g(e);let o=a();return _(o.onSearchFocusChange(n));})("gameClicked",function(n){g(e);let o=a();return _(o.onGameClicked(n));})("searchTextChange",function(n){g(e);let o=a();return _(o.searchTextChange(n));}),c()();}if(i&2){let e=a();s(),m("category",e.category())("hasReset",!0),s(),x(e.isRecentlyViewedGamesExperiment?2:3),s(3),m("activeCategoryGlobal",e.activeCategoryGlobal())("activeGameId",e.activeGameId())("allGames",e.allGames())("category",e.category())("categoryGames",e.categoryGames())("dropdownVisible",e.dropdownVisible())("searchText",e.searchText());}}function Yt(i,r){if(i&1){let e=C();l(0,"eld-categories-menu-trending-games-ab",10),u("gameClicked",function(n){g(e);let o=a(2);return _(o.onGameClicked(n));}),c();}if(i&2){let e=a(2);m("activeCategoryGlobal",e.activeCategoryGlobal())("activeGameId",e.activeGameId())("category",e.category())("dropdownVisible",e.dropdownVisible())("popularGames",e.popularGames())("recentlyViewedGames",e.recentlyViewedGames())("searchText",e.searchText());}}function Xt(i,r){if(i&1){let e=C();l(0,"eld-categories-menu-trending-games",11),u("gameClicked",function(n){g(e);let o=a(2);return _(o.onGameClicked(n));}),c();}if(i&2){let e=a(2);m("activeCategoryGlobal",e.activeCategoryGlobal())("activeGameId",e.activeGameId())("category",e.category())("dropdownVisible",e.dropdownVisible())("popularGames",e.popularGames())("searchText",e.searchText());}}function jt(i,r){if(i&1){let e=C();l(0,"div",4)(1,"eld-categories-menu-search-form",5),u("focusChange",function(n){g(e);let o=a();return _(o.onSearchFocusChange(n));})("searchTextChange",function(n){g(e);let o=a();return _(o.searchTextChange(n));}),c(),h(2,Yt,1,7,"eld-categories-menu-trending-games-ab",6)(3,Xt,1,6,"eld-categories-menu-trending-games",7),S(4,"hr",8),l(5,"eld-categories-menu-all-games",9),u("focusChange",function(n){g(e);let o=a();return _(o.onSearchFocusChange(n));})("gameClicked",function(n){g(e);let o=a();return _(o.onGameClicked(n));})("searchTextChange",function(n){g(e);let o=a();return _(o.searchTextChange(n));}),c()();}if(i&2){let e=a();s(),m("category",e.category())("hasReset",!0),s(),x(e.isRecentlyViewedGamesExperiment?2:3),s(3),m("activeCategoryGlobal",e.activeCategoryGlobal())("activeGameId",e.activeGameId())("allGames",e.allGames())("category",e.category())("categoryGames",e.categoryGames())("dropdownVisible",e.dropdownVisible())("searchText",e.searchText());}}function qt(i,r){if(i&1){let e=C();l(0,"eld-categories-menu-overlay",12),u("click",function(){g(e);let n=a();return _(n.onCloseDropdown("click"));})("mouseover",function(){g(e);let n=a();return _(n.onCloseDropdown("hover"));}),c();}}var qi=(()=>
3{let r=class r{constructor(){this.library=d.required(),this.category=d.required(),this.activeGameId=d(null),this.activeCategoryGlobal=d(null),this.dropdownVisible=d(!1),this.hasBackdrop=d(!0),this.screen=d(null),this.searchUnfocused=E(),this.menuLeft=E(),this.POPULAR_GAMES_LIMIT=12,this.POPULAR_GAMES_LIMIT_SMALL=10,this.categoriesMenuService=p(L),this.analyticsService=p(se),this.router=p(Ie),this.filterGamesService=p(ge),this.abTestsService=p(ae),this.recentlyViewedGamesService=p(Ke),this.iScreenLargerThanMD2=I(()=>{let t=this.screen();return!!t&&t>ce.MD2;}),this.allGames=I(()=>{let t=this.library();return t?t.all.filter(n=>n.category!==$.Swap):[];}),this.categoryGames=I(()=>{let t=this.library();return t?this.sortByMenuTitle(t.getByCategory(this.category())):[];}),this.popularGames=I(()=>this.isRecentlyViewedGamesExperiment?this.collectPopularGamesInRecentlyViewedGamesAB(this.categoryGames()):this.collectPopularGames(this.categoryGames())),this.recentlyViewedGames=I(()=>this.dropdownVisible()?this.recentlyViewedGamesService.getGamesByCategory(this.category()):[]),this.assetEnum=A,this.searchText=te(null),this.isMenuHovered=!1,this.isRecentlyViewedGamesExperiment=this.abTestsService.checkTestVariant(K.CR_NAVIGATION_RECENTLY_VIEWED,re.EXPERIMENT),this.initRecentlyViewedExposureEffect();}onCloseDropdown(t){if(t==="hover"){this.menuLeft.emit();return;}t==="click"&&(this.categoriesMenuService.closeMenuDropdown(),this.isMenuHovered=!1);}searchTextChange(t){this.searchText.set(t);}menuMouseEnter(){this.isMenuHovered=!0;}onGameClicked(t){this.sendClickNavigationGameListGameEvent(t.game,t.listType,t.position),this.checkIsHomepage()&&this.analyticsService.trackEvent({name:"click_homepage_game",params:{gameId:t.game.gameId,menuType:t.menuType,category:t.game.category},deliveryMethod:q.STANDARD});}sendClickNavigationGameListGameEvent(t,n,o){this.analyticsService.trackEvent({name:"click_navigation_list_game",params:{listType:n,category:t.category,gameName:t.gameName,position:o},deliveryMethod:q.STANDARD});}onSearchFocusChange(t){t||this.searchUnfocused.emit({searchQuery:this.searchText(),category:this.category()});}checkIsHomepage(){return this.router.url?.split("?")[0]==="/";}collectPopularGames(t){let o=this.filterGamesService.filterPopularGames(t).slice(0,this.POPULAR_GAMES_LIMIT);return this.category()===$.Account?this.handleAccountCategoryGames(o):o;}collectPopularGamesInRecentlyViewedGamesAB(t){let n=this.filterNonRecentlyViewedGames(this.filterGamesService.filterPopularGames(t)),o=n.slice(0,n.length<this.POPULAR_GAMES_LIMIT?this.POPULAR_GAMES_LIMIT_SMALL:this.POPULAR_GAMES_LIMIT);return this.category()===$.Account?this.handleAccountCategoryGames(o):o;}filterNonRecentlyViewedGames(t){return t.filter(n=>!this.recentlyViewedGames().some(o=>o.gameId===n.gameId));}handleAccountCategoryGames(t){let n=this.library();if(!n)return t;let o=n.getByGameIdAndCategory(Je,$.Account);return o?this.replaceLastPopularGame(o,t):t;}sortByMenuTitle(t){return t.sort((n,o)=>n.menuGameTitle.localeCompare(o.menuGameTitle));}replaceLastPopularGame(t,n){return[...n.slice(0,-1),t];}initRecentlyViewedExposureEffect(){R(()=>{this.recentlyViewedGames().length&&P(()=>this.abTestsService.getTestVariant(K.CR_NAVIGATION_RECENTLY_VIEWED));});}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=M({type:r,selectors:[["eld-categories-menu-dropdown"]],inputs:{library:[1,"library"],category:[1,"category"],activeGameId:[1,"activeGameId"],activeCategoryGlobal:[1,"activeCategoryGlobal"],dropdownVisible:[1,"dropdownVisible"],hasBackdrop:[1,"hasBackdrop"],screen:[1,"screen"]},outputs:{searchUnfocused:"searchUnfocused",menuLeft:"menuLeft"},decls:6,vars:5,consts:[[1,"category-menu-dropdown",3,"mouseleave","mouseover","ngClass"],[1,"category-menu"],[1,"category-menu-wrapper"],[1,"dropdown-body"],["cdkVirtualScrollingElement","",1,"dropdown-body"],[1,"block","md:hidden",3,"focusChange","searchTextChange","category","hasReset"],[3,"activeCategoryGlobal","activeGameId","category","dropdownVisible","popularGames","recentlyViewedGames","searchText"],[3,"activeCategoryGlobal","activeGameId","category","dropdownVisible","popularGames","searchText"],[1,"separator","m-4","md:m-0","md:hidden"],[3,"focusChange","gameClicked","searchTextChange","activeCategoryGlobal","activeGameId","allGames","category","categoryGames","dropdownVisible","searchText"],[3,"gameClicked","activeCategoryGlobal","activeGameId","category","dropdownVisible","popularGames","recentlyViewedGames","searchText"],[3,"gameClicked","activeCategoryGlobal","activeGameId","category","dropdownVisible","popularGames","searchText"],[3,"click","mouseover"]],template:function(n,o){n&1&&(l(0,"div",0),u("mouseleave",function(){return o.onCloseDropdown("hover");})("mouseover",function(){return o.menuMouseEnter();}),l(1,"div",1)(2,"div",2),h(3,Ht,6,10,"div",3)(4,jt,6,10,"div",4),c()()(),h(5,qt,1,0,"eld-categories-menu-overlay")),n&2&&(m("ngClass",b(3,Ft,o.dropdownVisible())),s(3),x(o.iScreenLargerThanMD2()?3:4),s(2),x(o.dropdownVisible()&&o.hasBackdrop()?5:-1));},dependencies:[O,j,de,he,xe,ot,et,rt],styles:["[_nghost-%COMP%]{display:flex;max-width:1070px}.category-menu-dropdown[_ngcontent-%COMP%]{display:none;width:100%;max-height:fit-content;padding-top:0;flex-direction:column}.category-menu-dropdown[_ngcontent-%COMP%]   .category-menu[_ngcontent-%COMP%]{background:var(--background-base-1);box-shadow:var(--shadow-raised);border-radius:0;overflow:hidden}@media(min-width:961px){.category-menu-dropdown[_ngcontent-%COMP%]   .category-menu[_ngcontent-%COMP%]{border-radius:10px}}.category-menu-dropdown[_ngcontent-%COMP%]   eld-categories-menu-search-form[_ngcontent-%COMP%]{padding:16px}.category-menu-dropdown[_ngcontent-%COMP%]   .dropdown-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:auto;max-height:calc(100dvh - 60px)}.category-menu-dropdown[_ngcontent-%COMP%]   .dropdown-body.cdk-virtual-scrollable[_ngcontent-%COMP%]{contain:layout paint}@media(min-width:841px){.category-menu-dropdown[_ngcontent-%COMP%]   .dropdown-body[_ngcontent-%COMP%]{max-height:calc(100dvh - 100px)}}@media(min-width:961px){.category-menu-dropdown[_ngcontent-%COMP%]   .dropdown-body[_ngcontent-%COMP%]{flex-direction:row;overflow:visible}}@media(min-width:1281px){.category-menu-dropdown[_ngcontent-%COMP%]   .dropdown-body[_ngcontent-%COMP%]{max-height:none}}
3.category-menu-wrapper[_ngcontent-%COMP%]{width:100%}.category-menu-dropdown.show[_ngcontent-%COMP%]{display:flex}"],changeDetection:0});let i=r;return i;})();export{qi as CategoriesMenuDropdownComponent};/**i18n:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855*/
4//# debugId=3e612869-aa33-5e91-b1fb-b14c6dd25148

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.