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]="23e302d8-0b69-5a1b-b55c-088664b83c68")}catch(e){}}(); 3import{A as re,B as Gt,a as Q,b as st,c as X,d as j,e as mt,f as ct,g as dt,i as pt,j as ut,k as gt,l as _t,m as ft,n as ht,o as Ct,p as St,q as Et,r as Tt,s as vt,t as xt,u as yt,v as At,w as Nt,x as bt,y as Pt,z as Mt}from"./chunk-VAOJGRZT.js";import"./chunk-3IAK3EDC.js";import"./chunk-VUXNHUET.js";import{a as lt}from"./chunk-H4CVTVNW.js";import{a as et}from"./chunk-JOLVZLG4.js";import"./chunk-LFSRBWHG.js";import"./chunk-2FXZSYTU.js";import{a as it,b as rt,d as at}from"./chunk-GFOIMWLB.js";import"./chunk-XEAINILI.js";import"./chunk-53VKNBRS.js";import"./chunk-XZNL7LO4.js";import{a as nt}from"./chunk-57BA75C4.js";import{g as tt}from"./chunk-BIQA3ZEM.js";import"./chunk-WUGPQYWK.js";import"./chunk-J3MSZMSS.js";import{a as ot}from"./chunk-4DH547IG.js";import"./chunk-52W6NZSR.js";import{a as Qe}from"./chunk-NPRWW2ST.js";import"./chunk-SRRDWJKZ.js";import"./chunk-YIIUQD3W.js";import"./chunk-O4LA4Y65.js";import"./chunk-G2JVMJ3D.js";import"./chunk-6BH2GX4Q.js";import"./chunk-XOPTNUOX.js";import"./chunk-DJZAAY4T.js";import"./chunk-SAPQUNLO.js";import{a as L,b as Xe,c as ne}from"./chunk-XWTKCCFA.js";import"./chunk-YIVFDWR5.js";import"./chunk-3KU65WUI.js";import"./chunk-7O7PHN7K.js";import"./chunk-5ANCYTWX.js";import"./chunk-WLKADQ3E.js";import"./chunk-724R5KMW.js";import"./chunk-HFDXKP4Z.js";import"./chunk-LFPISLJZ.js";import"./chunk-DSJSYB4E.js";import"./chunk-C2G5RE3R.js";import"./chunk-ZDN44GWA.js";import"./chunk-FEWKE2AH.js";import"./chunk-6GVNYEQP.js";import{a as Je,c as z,h as Ze}from"./chunk-H7ZIX4WS.js";import{a as je,c as oe,d as We,g as Ke}from"./chunk-Z3QG2G4P.js";import"./chunk-SVCKQJI6.js";import"./chunk-F3KOJE4Y.js";import"./chunk-QPZXNIK5.js";import"./chunk-JARYQ55D.js";import{b as $}from"./chunk-NKRSYQ4J.js";import{M as Ie,x as Ge}from"./chunk-3RYN32BS.js";import"./chunk-UN3O3IFS.js";import"./chunk-OFYW6MS4.js";import"./chunk-3OTOMHWL.js";import"./chunk-PD36SD65.js";import"./chunk-IFE2GPQA.js";import{b as Re}from"./chunk-ZKLPADAU.js";import"./chunk-U6RKU7UR.js";import"./chunk-NRM2Y3YH.js";import"./chunk-EY2234XP.js";import{e as De,f as Be}from"./chunk-AAQHVPE7.js";import"./chunk-N5ZVBAC3.js";import{a as ke}from"./chunk-OHGWFUZV.js";import"./chunk-PKFQHFDT.js";import"./chunk-LONKHYJH.js";import"./chunk-7DTBIKTL.js";import"./chunk-X5XZKHM4.js";import"./chunk-MGWK276X.js";import"./chunk-MQOEUPCL.js";import{c as Ye,e as $e,f as ze}from"./chunk-F4YVEAJB.js";import{b as Ve}from"./chunk-F7LM47IY.js";import{a as He}from"./chunk-L2B77A4F.js";import"./chunk-UNOJGYF4.js";import"./chunk-LBMIAQTB.js";import{a as qe}from"./chunk-FFDINKHJ.js";import"./chunk-WTROLLFK.js";import{b as Ue}from"./chunk-53FVLSRN.js";import"./chunk-FU5DPTK3.js";import"./chunk-PXSA72QB.js";import"./chunk-26CMXKXW.js";import"./chunk-KP2MTX2A.js";import"./chunk-GYDRTPB3.js";import"./chunk-KEWCGDPX.js";import"./chunk-XX2U6PMH.js";import"./chunk-QTVHWLHH.js";import"./chunk-NSYF4DJO.js";import"./chunk-FLXVTRWX.js";import"./chunk-RPKUPHGZ.js";import"./chunk-UAKJ6LOD.js";import"./chunk-VID4LFWM.js";import{a as Fe,b as Le,d as Oe}from"./chunk-VHCQ64IC.js";import"./chunk-DUY7LPKV.js";import"./chunk-QQSOXE3U.js";import"./chunk-UQRH6SIV.js";import"./chunk-UW6RJTNO.js";import"./chunk-UMK5M6L6.js";import"./chunk-VBZC6THA.js";import{c as Pe}from"./chunk-Q2W4NJLV.js";import"./chunk-6JNSDIBG.js";import{e as Me}from"./chunk-4OFYAGOL.js";import"./chunk-DLPJWK4L.js";import"./chunk-GF4LZVAY.js";import"./chunk-IB7PDLZR.js";import"./chunk-CW2OZJHE.js";import"./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{c as Ne}from"./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 A,d as b,e as xe,p as F}from"./chunk-4R4EGKM3.js";import"./chunk-DUH43RV6.js";import{h as I}from"./chunk-LBWFELBH.js";import{c as we}from"./chunk-VLQ4SUWA.js";import{b as Ae}from"./chunk-LVHFRK5S.js";import"./chunk-2C3TBEYH.js";import"./chunk-P5GCYECX.js";import{a as Y}from"./chunk-BI5TAYFX.js";import"./chunk-U3OPTH4F.js";import{a as h,b as R}from"./chunk-J77BE44H.js";import"./chunk-UBPRZHFC.js";import"./chunk-5WBPRBLT.js";import{m as V}from"./chunk-WMK4UHKL.js";import{a as ye}from"./chunk-TGY5CREU.js";import{c as ie}from"./chunk-R2MTWKGX.js";import{b as be}from"./chunk-QFFBMNNE.js";import"./chunk-H77KB3FH.js";import"./chunk-RL5QFXWK.js";import"./chunk-NEMB4EFY.js";import{Ia as G}from"./chunk-QKEHE5CK.js";import"./chunk-JXQ5ZH4X.js";import{$a as J,$d as Te,Aa as p,Ac as l,Bb as w,Db as a,Ec as Z,Fc as ee,Ha as W,I as ce,Ia as K,Ib as D,Kc as pe,Qc as ue,Rc as ge,Rd as Se,Sc as te,Ta as C,Td as q,Ud as f,Vb as N,Vd as Ee,Wa as S,Xc as P,_c as m,_d as M,gd as _e,hd as fe,he as ve,id as he,jd as E,kd as U,md as Ce,qc as c,sc as d,uc as de,ud as T,vc as B,vd as v,wc as H,wd as x,xc as s,yc as _,zc as g}from"./chunk-OG4R3H7L.js";import{a as O,b as k}from"./chunk-CHCY4HII.js";var wt=(t,r)=>r.id;function Ft(t,r){if(t&1&&l(0,"eld-dropdown-price-range-filter",5),t&2){let i=m();s("category",i.CATEGORY.Account)("gameName",i.gameName());}}function Lt(t,r){if(t&1&&l(0,"eld-dropdown-trade-environment-0-filter",6),t&2){let i=m(),e=x(6);s("category",i.CATEGORY.Account)("gameName",i.gameName())("tradeEnvironment",e);}}function Ot(t,r){if(t&1&&l(0,"eld-dropdown-trade-environment-1-filter",6),t&2){let i=m(),e=x(8);s("category",i.CATEGORY.Account)("gameName",i.gameName())("tradeEnvironment",e);}}function kt(t,r){if(t&1&&l(0,"eld-dropdown-trade-environment-2-filter",6),t&2){let i=m(),e=x(10);s("category",i.CATEGORY.Account)("gameName",i.gameName())("tradeEnvironment",e);}}function Dt(t,r){if(t&1){let i=pe();_(0,"eld-attribute-dropdown-filter",10),P("attributeChange",function(n){let o=W(i).$implicit,u=m();return K(u.setAttribute(o,n));})("opened",function(){let n=W(i).$implicit,o=m();return K(o.trackFilterOpen(n));}),g();}if(t&2){let i=r.$implicit;s("attribute",i);}}function Bt(t,r){if(t&1&&l(0,"eld-dropdown-price-range-filter",5),t&2){let i=m();s("category",i.CATEGORY.Account)("gameName",i.gameName());}}function Ht(t,r){if(t&1&&l(0,"div",11)(1,"div"),t&2){let i=m(),n=he(4).clientHeight;E("height",n,"px")("top",i.topBarHeight(),"px"),a(),E("padding-top",n,"px");}}var le=(()=>
3{let r=class r{constructor(){this.gameId=M(null),this.platform=p(G),this.queryParams=p(Q),this.store=p(V),this.abTests=p(F),this.analytics=p(X),this.CATEGORY=h,this.priceFirstExperiment=this.abTests.getTestVariant(b.AC_ALWAYS_PRICE_FIRST)===A.EXPERIMENT,this.gameCategory=this.store.selectSignal(z),this.gameName=f(()=>this.gameCategory()?.gameName??null),this.tradeEnvironmentByLevel=f(()=>{let e=this.gameCategory()?.tradeEnvironments;return e==null?{}:$(e,0);}),this.filterBarSticky=C(!1),this.topBarHeight=C(0),this.category=f(()=>this.gameCategory()?.category??null),D({read:()=>this.updateTopBarHeight()});}onResize(){this.updateTopBarHeight();}updateTopBarHeight(){this.topBarHeight.set(document.getElementById("topbar")?.offsetHeight??0);}setAttribute(e,n){let o=this.category();o&&e.value!=null&&n.value==null&&this.analytics.trackAttributeRemoved(o,this.gameName(),e),this.queryParams.setAttribute(n);}trackFilterOpen(e){let n=this.category();n&&this.analytics.trackFilterOpen(n,this.gameName(),e.name);}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=N({type:r,selectors:[["eld-filters"]],hostBindings:function(n,o){n&1&&P("resize",function(){return o.onResize();},w);},inputs:{gameId:[1,"gameId"]},decls:19,vars:21,consts:[["filterBar",""],[1,"relative","w-full"],["eldVisibleInViewportNotifier","",1,"h-0","w-full",3,"invisibleInViewport","visibleInViewport","viewportMarginTop"],[1,"flex","w-full","content-center"],[1,"flex","w-full","max-w-[1140px]","flex-wrap","gap-2.5","pt-4","pb-4"],[1,"w-50",3,"category","gameName"],[1,"w-50",3,"category","gameName","tradeEnvironment"],[1,"w-50",3,"attribute"],[1,"flex","items-center","justify-end","pl-4","text-sm"],[1,"underline",3,"category","gameCategory","gameName"],[1,"w-50",3,"attributeChange","opened","attribute"],[1,"bg-base-1","shadow-base","fixed","left-0","z-2","w-full"]],template:function(n,o){if(n&1&&(_(0,"div",1)(1,"div",2),P("invisibleInViewport",function(){return o.filterBarSticky.set(!0);})("visibleInViewport",function(){return o.filterBarSticky.set(!1);}),g(),_(2,"div",3)(3,"div",4,0),c(5,Ft,1,2,"eld-dropdown-price-range-filter",5),T(6),c(7,Lt,1,3,"eld-dropdown-trade-environment-0-filter",6),T(8),c(9,Ot,1,3,"eld-dropdown-trade-environment-1-filter",6),T(10),c(11,kt,1,3,"eld-dropdown-trade-environment-2-filter",6),B(12,Dt,1,1,"eld-attribute-dropdown-filter",7,wt),c(14,Bt,1,2,"eld-dropdown-price-range-filter",5),l(15,"eld-dropdown-delivery-time-filter",5),_(16,"div",8),l(17,"eld-clear-filters-text-button",9),g()()(),c(18,Ht,2,6),g()),n&2){a(),s("viewportMarginTop",-o.topBarHeight()),a(),E("top",o.topBarHeight(),"px"),U("fixed",o.filterBarSticky())("z-3",o.filterBarSticky()),a(3),d(o.priceFirstExperiment?5:-1),a();let u=v(o.tradeEnvironmentByLevel()[0]);a(),d(u?7:-1),a();let y=v(o.tradeEnvironmentByLevel()[1]);a(),d(y?9:-1),a();let It=v(o.tradeEnvironmentByLevel()[2]);a(),d(It?11:-1),a(),H(o.queryParams.attributes()),a(2),d(o.priceFirstExperiment?-1:14),a(),s("category",o.CATEGORY.Account)("gameName",o.gameName()),a(2),s("category",o.CATEGORY.Account)("gameCategory",o.gameCategory())("gameName",o.gameName()),a(),d(o.filterBarSticky()?18:-1);}},dependencies:[mt,ht,qe,j,At,yt,xt,tt],encapsulation:2,changeDetection:0});let t=r;return t;})();function Ut(t,r){if(t&1&&l(0,"eld-skeleton",6),t&2){let i=r.$implicit;E("height",i.height,"px")("width",i.width,"px");}}var se=(()=>{let r=class r{constructor(){this.CHIP_SKELETON_THEMES=this.createSkeletonThemes();}createSkeletonThemes(){return Array.from({length:10},()=>({height:28,width:this.getRandomNumber(50,120)}));}getRandomNumber(e,n){return Math.floor(Math.random()*(n-e))+e;}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=N({type:r,selectors:[["eld-filters-skeleton"]],decls:10,vars:0,consts:[[1,"mt-4","mb-4","flex","flex-wrap","items-center","gap-2.5"],[1,"block","h-10.5","w-50","rounded-lg"],[1,"block","h-4","w-20","rounded-full"],[1,"mb-5","flex","flex-wrap","gap-2"],[1,"m-[1px]","rounded-full",3,"height","width"],[1,"block","h-10.5","w-85","rounded-lg"],[1,"m-[1px]","rounded-full"]],template:function(n,o){n&1&&(_(0,"div",0),l(1,"eld-skeleton",1)(2,"eld-skeleton",1)(3,"eld-skeleton",1)(4,"eld-skeleton",1)(5,"eld-skeleton",2),g(),_(6,"div",3),B(7,Ut,1,4,"eld-skeleton",4,de),g(),l(9,"eld-skeleton",5)),n&2&&(a(7),H(o.CHIP_SKELETON_THEMES));},dependencies:[I],encapsulation:2,changeDetection:0});let t=r;return t;})();function qt(t,r){if(t&1&&l(0,"eld-usp-community-feedback",4),t&2){let i=m(2);s("category",i.CATEGORY.Account)("userReviews",i.userReviews);}}function Vt(t,r){if(t&1&&l(0,"eld-faq",6),t&2){let i=m(2);s("faq",i.faq);}}function Yt(t,r){if(t&1&&(_(0,"eld-usp-process",2)(1,"div"),ue(2,0),l(3,"span",3),ge(),g()(),c(4,qt,1,2,"eld-usp-community-feedback",4),_(5,"div",5),c(6,Vt,1,1,"eld-faq",6),l(7,"eld-usp-trust",7),g()),t&2){let i=m();s("steps",i.BUYING_PROCESS_STEPS),a(4),d(!i.isProductFeedbackUspExperiment()&&i.userReviews&&i.userReviews.length>0?4:-1),a(2),d(i.faq?6:-1),a(),s("trustReasons",i.TRUST_REASONS);}}function $t(t,r){t&1&&l(0,"eld-skeleton",1);}var me=(()=>
3{let r=class r{constructor(){this.seoAlias=M.required(),this.gameId=M(null),this.isProductFeedbackUspExperiment=M(!1),this.platform=p(G),this.contentfulService=p(Oe),this.changeDetector=p(ve),this.CATEGORY=h,this.BUYING_PROCESS_STEPS=rt,this.TRUST_REASONS=at,this.GAME_IDS=R,this.userReviews=null,this.faq=null,S(()=>{let e=this.seoAlias();this.contentfulService.getReviews(e,h.Account,Le).then(n=>{this.userReviews=n,this.changeDetector.markForCheck();}),this.contentfulService.getProductPageFaq(e,h.Account).then(n=>{this.faq=n?.fields,this.changeDetector.markForCheck();});});}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=N({type:r,selectors:[["eld-trust-signals"]],inputs:{seoAlias:[1,"seoAlias"],gameId:[1,"gameId"],isProductFeedbackUspExperiment:[1,"isProductFeedbackUspExperiment"]},decls:2,vars:1,consts:()=>{let e;e="From start to finish, your purchase experience is supervised and safe";let n;return n=" Effortless "+"\uFFFD#3\uFFFD"+"buying"+"\uFFFD/#3\uFFFD"+" process ",[n,[1,"mt-12","block","h-951","w-full","md:h-513"],[3,"steps"],[1,"text-yellow-1"],[3,"category","userReviews"],[1,"px-[10px]","md:px-[24px]"],[1,"mx-auto","mt-[50px]","block","max-w-[768px]",3,"faq"],["subTitle",e,1,"mx-auto","mt-[45px]","block","md:mt-[80px]",3,"trustReasons"]];},template:function(n,o){n&1&&c(0,Yt,8,4)(1,$t,1,0,"eld-skeleton",1),n&2&&d(o.platform.browser?0:1);},dependencies:[$e,Ye,He,ze,I],encapsulation:2,changeDetection:0});let t=r;return t;})();var Rt=[R.GrandTheftAuto5];var Qt=["header"];function Xt(t,r){t&1&&(_(0,"div",18)(1,"div",20),Z(2),te(3,1),ee(),g(),l(4,"eld-skeleton",21)(5,"eld-popular-searches-filter-skeleton",22)(6,"eld-radio-price-range-filter-skeleton",23)(7,"eld-filter-skeleton",23)(8,"eld-filter-skeleton",23)(9,"eld-filter-skeleton",23),g());}function jt(t,r){t&1&&l(0,"eld-filters-skeleton",19);}function Wt(t,r){if(t&1&&(l(0,"eld-mobile-filters-skeleton",15),_(1,"div",16),l(2,"eld-skeleton",17),g(),c(3,Xt,10,0,"div",18)(4,jt,1,0,"eld-filters-skeleton",19)),t&2){let i=m(2);s("filtersV2Participant",!0),a(3),d(i.filtersExperiment?3:4);}}function Kt(t,r){if(t&1&&l(0,"eld-mobile-filters",24),t&2){let i=m(3);s("category",i.CATEGORY.Account)("filtersV2Participant",!0)("gameName",i.gameName())("hotQueries",i.hotQueries())("queryPlaceholder",i.searchPlaceholder());}}function Jt(t,r){if(t&1&&l(0,"eld-popular-searches-filter",34),t&2){let i=m(5);s("category",i.CATEGORY.Account)("gameName",i.gameName())("queries",i.hotQueries());}}function Zt(t,r){if(t&1&&(_(0,"div",27)(1,"div",29)(2,"div",30)(3,"div",20),Z(4),te(5,2),ee(),g(),_(6,"eld-scroller",31)(7,"div",32),l(8,"eld-query-filter",33),c(9,Jt,1,3,"eld-popular-searches-filter",34),g(),l(10,"eld-price-range-accordion-filter",35)(11,"eld-radio-delivery-time-filter",36)(12,"eld-dynamic-field-filters",37),g()()()()),t&2){let i=m(4);a(),E("min-height","calc(100vh - "+i.topbarHeight()+"px)"),a(),E("max-height","calc(100vh - "+i.visibleHeaderHeight()+"px)")("top",i.topbarHeight(),"px"),a(6),s("category",i.CATEGORY.Account)("gameName",i.gameName())("placeholder",i.searchPlaceholder()),a(),d(i.hotQueries().length?9:-1),a(),s("category",i.CATEGORY.Account)("gameName",i.gameName()),a(),s("category",i.CATEGORY.Account)("gameName",i.gameName()),a(),s("category",i.CATEGORY.Account)("gameName",i.gameName())("sortSelected",!1);}}function ei(t,r){if(t&1&&l(0,"eld-filters",28),t&2){let i=m(4);s("gameId",i.gameId());}}function ti(t,r){if(t&1&&l(0,"eld-hot-query-filter",38),t&2){let i=m(5);s("category",i.CATEGORY.Account)("gameName",i.gameName())("queries",i.hotQueries());}}function ii(t,r){if(t&1&&(c(0,ti,1,3,"eld-hot-query-filter",38),l(1,"eld-query-filter",39)),t&2){let i=m(4);d(i.hotQueries().length?0:-1),a(),s("category",i.CATEGORY.Account)("gameName",i.gameName())("placeholder",i.searchPlaceholder());}}function ni(t,r){if(t&1&&(c(0,Zt,13,17,"div",27)(1,ei,1,1,"eld-filters",28),c(2,ii,2,4)),t&2){let i=m(3);d(i.filtersExperiment?0:1),a(2),d(i.filtersExperiment?-1:2);}}function oi(t,r){if(t&1&&(_(0,"div",25),l(1,"eld-applied-filters")(2,"eld-clear-filters-text-button",40),g()),t&2){let i=m(3);a(2),s("category",i.CATEGORY.Account)("gameCategory",i.gameCategory())("gameName",i.gameName());}}function ri(t,r){if(t&1&&(c(0,Kt,1,5,"eld-mobile-filters",24)(1,ni,3,2),c(2,oi,3,3,"div",25),l(3,"eld-sort-filter",26)),t&2){m();let i=x(2),e=m();d(e.mobileScreen()?0:1),a(2),d(e.filtersExperiment&&i?2:-1),a(),s("category",e.CATEGORY.Account)("gameId",e.gameId());}}function ai(t,r){t&1&&l(0,"eld-rich-snippet",8),t&2&&s("productJson",r);}function li(t,r){if(t&1&&l(0,"eld-page-filter-experiment",10),t&2){let i,e=m(2);s("alreadyLoadedResults",e.loadedOffersCount())("gameName",e.gameName())("pageSize",e.queryParams.pageSize())("totalResults",((i=e.offers())==null?null:i.recordCount)??0);}}function si(t,r){if(t&1&&l(0,"eld-page-filter",11),t&2){let i,e=m(2);s("alreadyLoadedResults",e.loadedOffersCount())("category",e.CATEGORY.Account)("gameName",e.gameName())("pageSize",e.queryParams.pageSize())("totalResults",((i=e.offers())==null?null:i.recordCount)??0);}}function mi(t,r){if(t&1&&l(0,"eld-trustpilot-usp",12),t&2){let i=m(2);s("category",i.CATEGORY.Account)("gameId",i.gameId());}}function ci(t,r){if(t&1&&l(0,"eld-trust-signals",13),t&2){m();let i=x(12),e=m();s("gameId",e.gameId())("isProductFeedbackUspExperiment",e.trustPilotExperiment())("seoAlias",i);}}function di(t,r){if(t&1&&l(0,"eld-seo-text",14),t&2){m();let i=x(14),e=m();s("category",e.CATEGORY.Account)("seoText",i);}}function pi(t,r){if(t&1&&(_(0,"div",4)(1,"div",5),T(2),c(3,Wt,5,2)(4,ri,4,4),l(5,"eld-results-count",6),_(6,"div",7),c(7,ai,1,1,"eld-rich-snippet",8),l(8,"eld-acc-game-offers",9),g(),c(9,li,1,4,"eld-page-filter-experiment",10)(10,si,1,5,"eld-page-filter",11),c(11,mi,1,2,"eld-trustpilot-usp",12),T(12),c(13,ci,1,3,"eld-trust-signals",13),T(14),c(15,di,1,2,"eld-seo-text",14),g()()),t&2){let i,e,n=m();a(),U("experimental-layout",n.filtersExperiment),a();let o=v(n.queryParams.selectedFiltersCount()>0||!!n.queryParams.hotQuery());a(),d(n.gameCategory()===null||n.hotQueriesResource.isLoading()||n.attributesMetadataResource.isLoading()?3:4),a(2),Ce(n.filtersExperiment?o?"sm:mt-4":"sm:mt-8":"sm:mt-0"),s("accountsLabel",n.contentExperiment())("recordCount",n.offersLoaded()?(i=n.offers())==null?null:i.recordCount:null),a(),E("min-height",n.filtersExperiment&&!n.mobileScreen()?"0":"70vh"),a(),d((e=n.productRichSnippet())?7:-1,e),a(),s("category",n.CATEGORY.Account),a(),d(n.paginationExperiment&&n.mobileScreen()?9:10),a(2),d(n.trustPilotExperiment()?11:-1),a();let u=v(n.seoAlias());a(),d(n.trustSignalsGame()&&u?13:-1),a();let y=v(n.seoTextResource.hasValue()?n.seoTextResource.value():null);a(),d(!n.seoTextResource.isLoading()&&y?15:-1);}}function ui(t,r){if(t&1&&l(0,"eld-trust-signals",45),t&2){m();let i=x(4);s("seoAlias",i);}}function gi(t,r){if(t&1&&l(0,"eld-seo-text",46),t&2){m();let i=x(6),e=m();s("category",e.CATEGORY.Account)("seoText",i);}}function _i(t,r){if(t&1&&(_(0,"div",41),l(1,"eld-mobile-filters-skeleton",42)(2,"eld-filters-skeleton",43)(3,"eld-acc-game-offers",44),g(),T(4),c(5,ui,1,1,"eld-trust-signals",45),T(6),c(7,gi,1,2,"eld-seo-text",46)),t&2){let i=m();a(3),s("category",i.CATEGORY.Account),a();let e=v(i.seoAlias());a(),d(i.trustSignalsGame()&&e?5:-1),a();let n=v(i.seoTextResource.hasValue()?i.seoTextResource.value():null);a(),d(!i.seoTextResource.isLoading()&&n?7:-1);}}var fi=(()=>
3{let r=class r{constructor(){this.header=Te.required("header",{read:J}),this.seoTagService=p(we),this.contentful=p(Fe),this.localeService=p(Ae),this.navigateService=p(Ne),this.appConfigService=p(ye),this.abTestsService=p(F),this.locale=p(Se),this.store=p(V),this.analytics=p(X),this.filtersVisualState=p(ct),this.attributesMetadataApi=p(ke),this.paramsBuilder=p(Gt),this.abTests=p(F),this.platform=p(G),this.queryParams=p(Q),this.recentlyViewedGamesStorageService=p(Qe),this.paginationExperiment=this.abTests.getTestVariant(b.AC_M_PAGINATION)===A.EXPERIMENT,this.contentExperiment=C(!1),this.searchPlaceholder=f(()=>this.contentExperiment()?"Search for accounts":"Search Accounts"),this.AB_TEST_VARIANT=A,this.CATEGORY=h,this.TRANSPARENT_CITY_BANNER_IMAGES=De,this.url=ie(this.navigateService.url$),this.urlParts=f(()=>{let e=this.url()?.url;return e?Y.getLandingUrlComponents(e):null;}),this.seoAlias=f(()=>this.urlParts()?.seoAlias),this.urlId=f(()=>this.urlParts()?.urlId),this.gameId=f(()=>{let e=this.urlId();return e?Y.getGameIdFromUrlId(e):null;}),this.seoTextResource=this.contentful.getSeoTextEntry(this.seoAlias),this.attributesMetadataResource=this.platform.browser?this.attributesMetadataApi.getFilterAttributesMetadata(this.gameId,C(h.Account)):re(),this.attributesMetadata=f(()=>this.attributesMetadataResource.hasValue()?this.attributesMetadataResource.value():[]),this.hotQueriesResource=this.platform.browser?this.contentful.getHotSearchFields(this.gameId,C(h.Account)):re(),this.hotQueries=f(()=>this.hotQueriesResource.hasValue()?this.hotQueriesResource.value():[]),this.library=ie(this.store.select(Re).pipe(ce(Boolean))),this.trustSignalsGame=f(()=>Rt.includes(this.gameId())),this.gameHeaderData=f(()=>{let e=this.library(),n=this.gameId();return e==null||n==null?null:e.getByGameIdAndCategory(n,h.Account);}),this.gameName=f(()=>this.gameHeaderData()?.gameName??null),this.offers=this.store.selectSignal(We),this.offersLoaded=this.store.selectSignal(Ke),this.mobileScreen=this.store.selectSignal(Me),this.filtersExperiment=!this.mobileScreen()&&this.abTests.getTestVariant(b.AC_FILTERS_V2_D)===A.EXPERIMENT,this.trustPilotExperiment=f(()=>{let e=this.gameId();return this.abTests.getTestVariant(b.AC_TRUST_PILOT)===A.EXPERIMENT?!0:e!==R.GrandTheftAuto5?!1:this.abTests.getTestVariant(xe.CR_PRODUCT_FEEDBACK_USP)===A.EXPERIMENT;}),this.productRichSnippet=Ee(()=>this.getRichSnippet(this.urlParts(),this.gameHeaderData(),this.offers())),this.loadedOffersCount=C(0),this.gameCategory=this.store.selectSignal(z),this.tradeEnvironmentByLevel=f(()=>{let e=this.gameCategory()?.tradeEnvironments;return e==null?{}:$(e,0);}),this.visibleHeaderHeight=f(()=>{let e=Math.max(this.headerHeight()-this.scrollY(),0);return this.topbarHeight()+e;}),this.initialSearchCompleted=!1,this.topbarHeight=C(0),this.headerHeight=C(0),this.scrollY=C(0),S(()=>{let e=this.urlId(),n=this.gameId(),o=this.seoAlias();e==null||n==null||o==null||this.setSeoTag(e,n,o);}),S(()=>{let e=this.gameId();e!=null&&(this.abTestsService.getTestVariant(b.AC_OFFER_LISTING_AA),this.contentExperiment.set(this.abTestsService.getTestVariant(b.AC_CONTENT_CONSISTENCY)===A.EXPERIMENT),this.store.dispatch(new oe()),this.filtersVisualState.reset(),this.loadedOffersCount.set(0),this.initialSearchCompleted=!1,this.queryParams.reset(),this.productRichSnippet.set(null),this.store.dispatch(new Je({category:h.Account,gameId:e})));}),S(()=>{let e=this.gameId();e!=null&&this.recentlyViewedGamesStorageService.saveGame(e);}),S(()=>{this.queryParams.setAttributesMetadata(this.attributesMetadata());}),S(()=>{let e=this.gameHeaderData();!this.platform.browser||(e?.gameGroup,et);}),S(()=>{if(!this.platform.browser)return;let e=this.gameId();if(e===null||this.attributesMetadataResource.isLoading())return;let n=this.paramsBuilder.build(this.queryParams.allParams(),{gameId:e});this.store.dispatch(new je(n)),this.initialSearchCompleted&&Pe.scrollToTop("#top",0,q(()=>this.headerHeight()));}),S(()=>{let e=this.offers();if(!e)return;this.initialSearchCompleted=!0,this.loadedOffersCount.update(o=>
3o+e.results.length),this.queryParams.wasLastChangeFilter()&&q(()=>this.trackFilterApplied(e.recordCount)),q(()=>this.queryParams.page())>e.totalPages&&this.queryParams.setPage(1);}),D({read:()=>this.measureHeights()});}ngOnInit(){this.queryParams.initPageSize(this.queryParams.pageSize());}ngOnDestroy(){this.store.dispatch(new oe()),this.store.dispatch(new Ge()),this.queryParams.reset(),this.removeSeoTag(),this.seoTagService.setDefaultOGTags(this.locale);}measureHeights(){this.topbarHeight.set(document.getElementById("topbar")?.offsetHeight??0),this.headerHeight.set(this.header().nativeElement.offsetHeight??0);}onScroll(){this.filtersExperiment&&this.scrollY.set(window.scrollY);}removeSeoTag(){this.localeService.removeAlternateLinks();let e=this.urlId(),n=this.gameId(),o=this.seoAlias();if(e==null||n==null||o==null)return;let u=this.getCurrentUrl(e,n,o);this.seoTagService.removeTag({rel:"canonical",href:u});}setSeoTag(e,n,o){let u=this.getCurrentUrl(e,n,o);this.seoTagService.updateTag({rel:"canonical",href:u}),this.localeService.setAlternateLinks(u),this.seoTagService.setMetaOGTag("url",u);}getCurrentUrl(e,n,o){return this.appConfigService.marketplaceBaseLocaleUrl+Y.getLandingUrl(o,h.Account,e,n);}getRichSnippet(e,n,o){if(o==null||o.results.length===0||n==null||e==null)return null;let y=o.results[0].offer.pricePerUnit.currency||L.offers.priceCurrency;return k(O({},L),{name:n.menuGameTitle+" "+n.category,description:this.seoTagService.getTitle(),image:be.getIconUrl(n.gameId),offers:k(O({},L.offers),{lowPrice:this.calculateRichSnippetPrice(o.results,"low",y).toString(),highPrice:this.calculateRichSnippetPrice(o.results,"high",y).toString(),offerCount:o.recordCount.toString(),priceCurrency:y,url:this.getCurrentUrl(e.urlId,n.gameId,e.seoAlias??n.seoAlias)}),aggregateRating:k(O({},L.aggregateRating),{ratingValue:4.9.toString(),reviewCount:Ve.calculateFeedbackCount(n.category).toString()})});}calculateRichSnippetPrice(e,n,o){let u=[];return e.forEach(y=>{u.push(y.offer.pricePerUnit.amount);}),n==="low"?ne.calculateLowPrice(u,o):ne.calculateHighPrice(u,o);}trackFilterApplied(e){this.analytics.trackFilterApplied(h.Account,this.gameName(),this.queryParams.allParams(),e,this.tradeEnvironmentByLevel()[0]?.name??null,this.tradeEnvironmentByLevel()[1]?.name??null,this.tradeEnvironmentByLevel()[2]?.name??null);}};r.ɵfac=function(n){return new(n||r)();},r.ɵcmp=N({type:r,selectors:[["eld-game-page"]],viewQuery:function(n,o){n&1&&_e(o.header,Qt,5,J),n&2&&fe();},hostBindings:function(n,o){n&1&&P("resize",function(){return o.measureHeights();},w)("scroll",function(){return o.onScroll();},w);},decls:5,vars:2,consts:()=>{let e;e="banner background image";let n;n="Filters";let o;return o="Filters",[["header",""],n,o,["alt",e,3,"bannerImages"],[1,"relative","max-w-full"],[1,"offers-search-layout"],[1,"area-results-count","my-4","flex","h-10","items-center","justify-self-start","sm:mb-2",3,"accountsLabel","recordCount"],[1,"area-results","mt-2","flex","flex-col"],[3,"productJson"],[3,"category"],[1,"area-pagination",3,"alreadyLoadedResults","gameName","pageSize","totalResults"],[1,"area-pagination",3,"alreadyLoadedResults","category","gameName","pageSize","totalResults"],[1,"area-trust-pilot","mt-12",3,"category","gameId"],[1,"area-trust","relative","w-screen",3,"gameId","isProductFeedbackUspExperiment","seoAlias"],[1,"area-seo-text","relative","mt-16","mb-8","block","w-full","md:mt-32","md:mb-16",3,"category","seoText"],[1,"area-filters","relative","block","w-full","pt-5","sm:hidden",3,"filtersV2Participant"],[1,"area-sort","block","justify-self-end","py-6","sm:px-4","sm:py-2"],[1,"block","h-6","w-32","sm:w-42"],[1,"area-filters","mr-12","hidden","sm:block"],[1,"area-filters","relative","hidden","w-full","sm:block"],[1,"border-divider","mt-8","mr-6","shrink-0","border-b","pb-5","text-xl","font-bold"],[1,"mt-5","block","h-10.5","rounded-lg"],[1,"mt-4","mb-5","block"],[1,"border-divider","block","border-t"],[1,"area-filters","relative","pt-5",3,"category","filtersV2Participant","gameName","hotQueries","queryPlaceholder"],[1,"area-applied-filters","flex","flex-wrap","items-center","gap-3","sm:mt-8"],[1,"area-sort","my-4","block","h-10","
3self-end","justify-self-end","sm:my-0","sm:mb-2",3,"category","gameId"],[1,"area-filters","mr-8","flex","flex-col"],[1,"area-filters",3,"gameId"],[1,"h-full"],[1,"sticky","flex","h-fit","flex-col"],[1,"overflow-x-hidden","overscroll-y-auto","pr-4"],[1,"border-divider","border-b","pt-5","pb-5"],[1,"block",3,"category","gameName","placeholder"],[1,"mt-4","block",3,"category","gameName","queries"],[1,"block",3,"category","gameName"],[1,"border-divider","block","border-t",3,"category","gameName"],[1,"block",3,"category","gameName","sortSelected"],[1,"area-hot-query","mb-5","block",3,"category","gameName","queries"],[1,"area-text-search","mb-5","block","max-w-85",3,"category","gameName","placeholder"],[1,"text-secondary","text-sm","underline",3,"category","gameCategory","gameName"],[1,"w-primary-width","relative","mx-auto","min-h-[89vh]","max-w-full","px-3","sm:px-6"],[1,"mt-5","mb-14","block","w-full","sm:hidden"],[1,"mb-4","hidden","w-full","sm:block"],[1,"block","w-full",3,"category"],[1,"relative","mt-12","w-full",3,"seoAlias"],[1,"w-primary-width","relative","mx-auto","mt-16","mb-8","block","max-w-full","md:mt-32","md:mb-16",3,"category","seoText"]];},template:function(n,o){n&1&&(l(0,"eld-game-listing-header",null,0)(2,"eld-banner",3),c(3,pi,16,18,"div",4)(4,_i,8,5)),n&2&&(a(2),s("bannerImages",o.TRANSPARENT_CITY_BANNER_IMAGES),a(),d(o.platform.browser?3:4));},dependencies:[it,Ze,Ie,Be,Mt,nt,Xe,me,le,vt,ft,_t,bt,Pt,se,pt,Tt,Nt,st,j,Ct,dt,ut,gt,I,St,Et,Ue,ot,lt],styles:['eld-scroller[_ngcontent-%COMP%]{scrollbar-gutter:stable}.offers-search-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:.75rem 1fr 1fr .75rem;grid-template-areas:" ... filters filters ... " " ... hot-query hot-query ... " " ... text-search ... ... " " ... results-count sort ... " " ... results results ... " " ... pagination pagination ... " " ... trust-pilot trust-pilot ... " "trust trust trust trust" " ... seo-text seo-text ... " " ... applied-filters applied-filters ... "}@media(min-width:601px){.offers-search-layout[_ngcontent-%COMP%]{grid-template-columns:minmax(1.5rem,1fr) minmax(0,calc(var(--container-primary-width) / 2 - 1.5rem)) minmax(0,calc(var(--container-primary-width) / 2 - 1.5rem)) minmax(1.5rem,1fr)}.offers-search-layout.experimental-layout[_ngcontent-%COMP%]{grid-template-columns:minmax(1.5rem,1fr) min(33vw,20rem) minmax(0,calc(var(--container-primary-width) / 2)) minmax(0,calc(var(--container-primary-width) / 2)) minmax(1.5rem,1fr);grid-template-rows:repeat(4,auto) minmax(0,1fr) repeat(3,auto);grid-template-areas:" ... filters applied-filters applied-filters ... " " ... filters results-count sort ... " " ... filters results results ... " " ... filters pagination pagination ... " " ... filters ... ... ... " " ... trust-pilot trust-pilot trust-pilot ... " "trust trust trust trust trust" " ... seo-text seo-text seo-text ... "}}.area-filters[_ngcontent-%COMP%]{grid-area:filters}.area-text-search[_ngcontent-%COMP%]{grid-area:text-search}.area-sort[_ngcontent-%COMP%]{grid-area:sort}.area-hot-query[_ngcontent-%COMP%]{grid-area:hot-query}.area-applied-filters[_ngcontent-%COMP%]{grid-area:applied-filters}.area-results-count[_ngcontent-%COMP%]{grid-area:results-count}.area-pagination[_ngcontent-%COMP%]{grid-area:pagination}.area-results[_ngcontent-%COMP%]{grid-area:results}.area-seo-text[_ngcontent-%COMP%]{grid-area:seo-text}.area-trust[_ngcontent-%COMP%]{grid-area:trust}.area-trust-pilot[_ngcontent-%COMP%]{grid-area:trust-pilot}'],changeDetection:0});let t=r;return t;})();export{fi as GamePageComponent};/**i18n:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855*/ 4//# debugId=23e302d8-0b69-5a1b-b55c-088664b83c68
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.