1import"./chunk-DcxQp08X.js";import{B as Gg,Ct as NC,Ji as xm,Jn as eT,Nr as mC,Oi as uu,Qn as ee,Qr as qg,_ as C,_n as Yb,at as Jd,ci as sT,dt as Kb,hi as tm,it as Jb,ki as vC,lr as gD,on as Ww,pi as tT,qr as pT,rt as JT,un as Xd,ut as KT,xr as iC,yr as hs}from"./chunk-6cn32HYf.js";import"./chunk-C4sZ9F6d.js";import{n as Ao,v as Yo}from"./chunk-Cf-ivzUQ.js";import{r as G}from"./chunk-PWb2YmuB.js";import"./chunk-CWnlk5i0.js";import"./chunk-CevbLSjN.js";import"./chunk-CPloDJTc.js";import"./chunk-BbGb_wTb.js";import"./chunk-DqgLf3jA.js";import"./chunk-rhAFUPHk.js";import"./chunk-B1dWwLda.js";import"./chunk-C3VN3uUs.js";import{L as ur}from"./chunk-YG0cbX12.js";import"./chunk-DiUHH-MY.js";import"./chunk-D5Go4Tpa.js";import"./chunk-BMF3PVKQ.js";import"./chunk-C2SjVWju.js";import"./chunk-eFdePePB.js";import"./chunk-BH1gbz_d.js";import"./chunk-BNNO7mxL.js";import{$t as hl,ct as Ti,n as $r}from"./chunk-Bg0O6ody.js";import{V as wt}from"./chunk-D9lvFtkG.js";import{H as re$1}from"./chunk-BYWvbnMz.js";import"./chunk-CSWzXYhx.js";import"./chunk-N5pO5eUe.js";import"./chunk-CRDwFAfJ.js";import"./chunk-IZgiO4T1.js";import"./chunk-Dk9clb0r.js";import"./chunk-BGxrSiYe.js";import"./chunk-n-SnkWfC.js";import"./chunk-CK87k_Hg.js";import"./chunk-CJrziaqY.js";import"./chunk-BqinoapX.js";import"./chunk-B_f6__jS2.js";import"./chunk-D9AXWCym2.js";import"./chunk-B9bDaRUc2.js";import{t as w}from"./chunk-D02QuIUi2.js";import"./chunk-WM45axPV2.js";import"./chunk-Cwy1-NhQ2.js";import"./chunk-BJuDU_EH2.js";import"./chunk-DEFkxQxB2.js";import"./chunk-CBw2A8xw2.js";import"./chunk-YqveTEyR2.js";import{u as Qo}from"./chunk-DQoK2o8S2.js";import"./chunk-DVW9XqRe2.js";import"./chunk-D1CDj63t2.js";import"./chunk-bUyBSWaa2.js";import{n as w$1}from"./chunk--JJYQU422.js";import"./chunk-BWbVBdWG2.js";import"./chunk-Gu4JVZ4p2.js";import"./chunk-CmEKy9LO.js";import"./chunk-ubLFVBv1.js";import{t as g}from"./chunk-R7Mo38ya.js";import"./chunk-_XwSIA3L.js";import{Dt as nd,H as Re,I as On,Kt as ut,L as PC,Nt as pt,Ot as ni,Ut as tr,w as J,y as He}from"./chunk-BYoKFLMe.js";import"./chunk-CczXAQfD.js";import"./chunk-lozNK7yt.js";import"./chunk-CNl3RrzE.js";import"./chunk-CbuSvvjD.js";import"./chunk-Dahe3728.js";import"./chunk-DEWygz7a.js";import"./chunk-Bb9bJrne.js";import"./chunk-BKO1e_Bb.js";import"./chunk-GXRwEcmq.js";import"./chunk-C81QUoSP.js";import"./chunk-B3aqh9dR.js";import"./chunk-CzlYeWFI.js";import"./chunk-CZiZ3w6Y.js";import"./chunk-BkdDtKRf.js";import"./chunk-BcfHiGbl.js";import"./chunk-BGqWLqWh.js";import"./chunk-Bgv5dADY.js";import"./chunk-CrBZK1Eu.js";import"./chunk-BhvO036s.js";import"./chunk-CNZTV1O9.js";import"./chunk-d3z-oK7I2.js";import"./chunk-OaTTE3WH2.js";import"./chunk-SI6CAdpV2.js";import"./chunk-Djel9NuC2.js";import"./chunk-DCVW4e1o2.js";import"./chunk-Bvx2MXjm2.js";import"./chunk-BzgkFGXs2.js";import"./chunk-DPHqNi9f2.js";import"./chunk-DxWEoQ9T2.js";import"./chunk-vELpPxHU2.js";import"./chunk-K8xf3Qs12.js";import"./chunk-DjuCR7si2.js";import"./chunk-GedQUaNv2.js";import"./chunk-ynGa6yB62.js";import"./chunk-BU_iKQ6v2.js";import"./chunk-C9-V1MKm2.js";import"./chunk-BTWezTPl2.js";import"./chunk-Ck7pIZ4P2.js";import"./chunk-D4e4i0rj2.js";import"./chunk-9GYol95J2.js";import"./chunk-DM1AaYfG.js";import"./chunk-ord7LNpS.js";import"./chunk-CQcUpDcD.js";import"./chunk-B-_jTGzy.js";import"./chunk-C-uunC7B.js";import"./chunk-CgNyCJ_c.js";import"./chunk-GKoDb3NX.js";import"./chunk-H6L2Bbo9.js";import"./chunk-QyzjKmkg.js";import"./chunk-9W_3eVIS.js";import"./chunk-BaOoEiTl.js";import"./main-3LK2GBOP.js";import"./chunk-BRG5ZhNs.js";import"./chunk-DLy8LQrU2.js";import"./chunk-DJbiyy2T.js";import"./chunk-CjjtHl2S.js";import"./chunk-BaioOlXy.js";import"./chunk-BwjYnCJi.js";import"./chunk-D_JywYKO.js";import"./chunk-D9jJpt9D.js";import"./chunk-DCboao0p.js";import{s as y}from"./chunk-IUATbvcC2.js";import{r as S,t as C$1}from"./chunk-QOw4IRc22.js";var s=class s{constructor(){this._gtmService=C(w)}listSwiped({category:e}){this._gtmService.pushTag(nd({category:e,eventAction:`swipe`,sub_category:`recent`}))}showAllClicked({category:e}){this._gtmService.pushTag(nd({category:e,eventAction:`open`,sub_category:`recent`}))}removeFromFavorites({game:e,section:t}
1){this._gtmService.pushTag(nd({eventAction:`delete`,sub_category:`recent`,game:e.name??``,id:e.id,provider:e.providerSlug,game_category:t}))}};s.ɵfac=function(t){return new(t||s)},s.ɵprov=ee({token:s,factory:s.ɵfac});var d=s;function ce(o,e){if(o&1&&(Gg(0,`ui-empty-placeholder`,0),mC(1,`translate`),mC(2,`translate`),mC(3,`translate`)),o&2){let t=pT();qg(`text`,vC(1,4,`myGames.notFoundRecentsTitle`))(`description`,vC(2,6,`myGames.notFoundRecentsDescription`))(`backButtonText`,vC(3,8,`myGames.backToLobbyButton`))(`link`,`/`+t.sectionToLinkRecord[t.section])}}function le(o,e){if(o&1){let t=sT();hs(0,`pu-games-widget-presentation`,2),tm(`tileAction`,function(n){Jd(t);return Xd(pT(2).tileAction(n))})(`listSwiped`,function(){let n=Jd(t).$implicit;return Xd(pT(2).listSwiped(n))})(`showAllClicked`,function(){let n=Jd(t).$implicit;return Xd(pT(2).showAllClicked(n))}),uu()}if(o&2){let t=e.$implicit;pT(2);qg(`skeleton`,JT(0).showSkeletons)(`viewModel`,t.vm)(`pattern`,t.pattern)}}function me(o,e){if(o&1&&eT(0,le,1,3,`pu-games-widget-presentation`,1,Jb),o&2){pT();tT(JT(0).widgets)}}var de=30;var m=class m{constructor(){this._recentGamesFacade=C(Qo);this._favouriteToggle=C(He);this._recentGamesService=C(d);this._mediaScreenService=C(wt);this._labelsAdapter=C(Re);this._store=C(G);this._isServer=C($r);this.isPrerender=C(hl,{optional:!0});this.section=C(y);this.sectionToLinkRecord=w$1;this.isLoggedIn=Ao(this._store.select(re$1.selectIsLoggedIn),{initialValue:!1});this.zeroDepPopupOnPlayEnabled=C(ut).isNewPlayFlowAvailable;this.isDesktop=Ao(this._mediaScreenService.mediaMatcher(1280),{initialValue:!1});this.isTablet=Ao(this._mediaScreenService.mediaMatcher(768),{initialValue:!1});this.maxItemsPerRow=NC(()=>this.isDesktop()?5:this.isTablet()?3:2);this.showSkeletons=NC(()=>this._isInitialLoading(this._recentGamesFacade.loadingState(),this._recentGamesFacade.items().length>0));this.isEmptyAfterLoad=NC(()=>{let e=this._recentGamesFacade.loadingState();return e===`initial`||e===`loading`||this.showSkeletons()?!1:this.widgets().every(t=>t.vm.games.length===0)});this.widgets=NC(()=>{let e=`casino`,t=this._recentGamesFacade.items(),n=S(this._labelsAdapter.filterGamesLabels(t),{section:e,favouriteIds:this._favouriteToggle.favoriteIds()});return[{pattern:this._patternFor(n.length),vm:{card:{title:`myGames.recent.viewed`,icon:this._getViewedIcon(),link:null},games:n,fallbackImage:C$1,displayFavourite:this.isLoggedIn(),hideViewAll:!0}}]});this.viewModel=NC(()=>{let e=this.showSkeletons();return{showSkeletons:e,widgets:e?[PC]:this.widgets(),widgetsEmpty:this.isEmptyAfterLoad()}});this.isPrerender||this._recentGamesFacade.loadData({limit:de})}listSwiped(e){this._recentGamesService.listSwiped({category:e.vm.card.title})}showAllClicked(e){this._recentGamesService.showAllClicked({category:e.vm.card.title})}tileAction(e){e.type===`favorite`&&(this._favouriteToggle.toggle({id:e.game.id,isFavourite:e.game.isFavourite,game:e.game,gameName:e.game.name,providerName:e.game.providerName,section:this.section}),this._recentGamesService.removeFromFavorites({game:e.game,section:this.section})),e.type===`play`&&(this.isLoggedIn()?this.zeroDepPopupOnPlayEnabled()?this._store.dispatch(pt.loadPopup()):(this._setBeforeUrl(),this._store.dispatch(ur.navigate({url:e.game.gameUrl,extras:ni(e.game,{sectionSlug:this.section})}))):this._store.dispatch(g.openLogin()))}_getViewedIcon(){return this._isServer?`recent`:Ti(`--recent-viewed-image`).trim().replace(/^['"]|['"]$/g,``)||`recent`}_isInitialLoading(e,t){return e===`loading`&&!t}_patternFor(e){return e<=this.maxItemsPerRow()?`one-row`:`two-rows`}_setBeforeUrl(){this._store.dispatch(J.playGameClicked({isFreespin:!1}))}};m.ɵfac=function(t){return new(t||m)},m.ɵcmp=Ww({type:m,selectors:[[`pu-recent-games`]],features:[iC([d])],decls:3,vars:2,consts:[[`iconName`,`recent`,1,`recent-games__empty-placeholder`,3,`text`,`description`,`backButtonText`,`link`],[3,`skeleton`,`viewModel`,`pattern`],[3,`tileAction`,`listSwiped`,`showAllClicked`,`skeleton`,`viewModel`,`pattern`]],template:function(t,a){if(t&1&&(xm(0),Yb(1,ce,4,10,`ui-empty-placeholder`,0)(2,me,2,0)),t&2){let n=KT(a.viewModel());gD(),Kb(n.widgetsEmpty?1:2)}},dependencies:[On,tr,Yo],styles:[`@keyframes _ngcontent-%COMP%_shine{0%{left:-150%}to{left:150%}}@keyframes _ngcontent-%COMP%_live-flashing{0%{opacity:0}
150%{opacity:1}to{opacity:0}}@keyframes _ngcontent-%COMP%_blink{0%,to{opacity:1}50%{opacity:0}}.ui-vertical-accordion-animation[_ngcontent-%COMP%]{opacity:1;visibility:visible;overflow:hidden;display:grid;grid-template-rows:1fr}.ui-vertical-accordion-animation.entering[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_ui-vertical-accordion-animation-entering .1s}.ui-vertical-accordion-animation.leaving[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_ui-vertical-accordion-animation-leaving .1s}@keyframes _ngcontent-%COMP%_ui-vertical-accordion-animation-entering{0%{opacity:0;visibility:hidden;grid-template-rows:0fr}to{opacity:1;visibility:visible;grid-template-rows:1fr}}@keyframes _ngcontent-%COMP%_ui-vertical-accordion-animation-leaving{0%{opacity:1;visibility:visible;grid-template-rows:1fr}to{opacity:0;visibility:hidden;grid-template-rows:0fr}}[_nghost-%COMP%]{display:block}.recent-games__empty-placeholder[_ngcontent-%COMP%]{--%NS%empty-placeholder-navbar-offset: calc(56px + var(--%NS%navbar-margin-bottom, 0));box-sizing:border-box;justify-content:center;min-height:calc(var(--%NS%vh, 1vh) * 100 - var(--%NS%empty-placeholder-content-offset, 52px) - var(--%NS%empty-placeholder-navbar-offset))}@media(min-width:768px){.recent-games__empty-placeholder[_ngcontent-%COMP%]{--%NS%empty-placeholder-navbar-offset: calc(66px + var(--%NS%navbar-margin-bottom, 0))}}@media(min-width:1280px){.recent-games__empty-placeholder[_ngcontent-%COMP%]{justify-content:flex-start;min-height:0}}`]});var re=m;export{re as RecentGamesComponent};
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.