(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["preloadChunk-MainPage","preloadChunk-GamesSortFiltersGroup"],{"653a":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));i("4de4"),i("d81d");var s=i("d373");const o=e=>{var t;const i=s["a"].gamesCollections(),o=i.getCollectionsById,a=s["a"].games(),n=a.gamesObjectData;return(null===(t=o[e])||void 0===t?void 0:t.itemsIDS.map(e=>n[e]).filter(Boolean))||[]}},"674b":function(e,t,i){"use strict";i.r(t);i("4de4");var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"home-bg-section"},[e.isGamesDataLoading?t("preloader"):[t("games-list",{staticClass:"home-bg-section-inner--initial",attrs:{"has-loader":"","games-sections":e.initialGamesSections,collection:e.collection,filter:e.filter,"game-provider":e.gameProvider,"jackpot-games":e.jackpotGames}}),e.showScrolledGamesSections?t("mount-into-view",[t("games-list",{attrs:{"has-loader":"","games-sections":e.scrolledGamesSections,collection:e.collection,filter:e.filter,"game-provider":e.gameProvider,"preloader-props":{oneRowSection:!1}}})],1):e._e()],e.isShowMainBlock?t("mount-into-view",[t("div",{staticClass:"main-page__games-jackpot"},[t("games-jackpot",{attrs:{filter:e.filter,"gtm-element":e.GTM_ELEMENTS.main.jackpot}})],1)]):e._e(),e.isGamesDataLoading?e._e():t("mount-into-view",[t("games-list",{attrs:{"has-loader":"","games-sections":e.liveGamesSections,collection:e.collection,filter:e.filter,"game-provider":e.gameProvider,"preloader-props":{twoRowSection:!1}}})],1),e.isShowMainBlock?t("mount-into-view",[t("div",{staticClass:"home-bg-section-inner"},[t("record-winnings")],1)]):e._e(),t("mount-into-view",[t("div",{staticClass:"home-bg-section-inner main-page__games-providers"},[t("play-providers-slider")],1)]),e.isShowWelcomeOfferBanners?t("mount-into-view",[t("div",{staticClass:"home-bg-section-inner"},[t("banners-welcome-offer")],1)]):e._e()],2)},o=[],a=i("1da1"),n=i("3835"),l=i("5530"),r=(i("ac1f"),i("5319"),i("ca47")),d=i("b047"),c=i.n(d),m=i("8f12"),h=i("a026"),g=i("653a");i("caad"),i("14d9"),i("13d5"),i("2532");const u=(e,t)=>{const i=t.reduce((t,{identifier:i})=>e.includes(i)?(t.push(i),t):t,[]);if(!i.length)return null;const s=i.length>1?Math.floor(Math.random()*i.length):0;return i[s]};var b=i("b28f"),v=i("9d19"),p=i("0a93");const f=10,S=1,O=2,G=3;var y={name:"main-page",components:{BannersWelcomeOffer:Object(h["defineAsyncComponent"])(()=>i.e("BannersWelcomeOffer").then(i.bind(null,"00948"))),GamesJackpot:Object(h["defineAsyncComponent"])(()=>Promise.all([i.e("chunk-15d3be62"),i.e("GamesJackpot")]).then(i.bind(null,"ba90"))),PlayProvidersSlider:Object(h["defineAsyncComponent"])(()=>Promise.all([i.e("chunk-15d3be62"),i.e("PlayProvidersSlider")]).then(i.bind(null,"bcdf6"))),RecordWinnings:Object(h["defineAsyncComponent"])(()=>Promise.all([i.e("Skeleton"),i.e("RecordWinnings")]).then(i.bind(null,"b13a"))),MountIntoView:p["a"],Preloader:v["default"],GamesList:b["default"]},props:{collection:{type:String,default:""},gameProvider:{type:String,default:""},filter:{type:String,default:""},scrolling:{type:Boolean,default:!1},jackpotGames:{type:String,default:""}},computed:Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(r["e"])("breakpoints",["isMobileOrTablet"])),Object(r["e"])("playerFavoriteGames",["playerFavoriteGamesArray"])),Object(r["e"])("player",["isPlayerAuthorized","getLanguageForUrl"])),Object(r["e"])("games",["isDataLoaded","isDataLoading","dayHotColdGames","getRecommendedGames","recommendedGamesErrorStatus"])),Object(r["e"])("batches",["getIsInitialBatchLoaded"])),Object(r["e"])("lazyLoading",["isLazyLoadingEnabled"])),{},{isGamesDataLoading(){return!this.isDataLoaded||this.isDataLoading},popularGames(){return Object(g["a"])(m["jc"].POPULAR)},liveGames(){return Object(g["a"])(m["jc"].LIVE_LOBBY_LIVE)},newGames(){return Object(g["a"])(m["jc"].NEW)},homeFavoritesRows(){return!this.isMobileOrTablet||this.playerFavoriteGamesArray.length<=f?S:O},homePopularRows(){return this.popularGames.length>f?O:S},homeRecommendedRows(){return this.getRecommendedGames.length>f?O:S},homeNewRows(){return!this.isMobileOrTablet||this.newGames.length<=f?S:O},homeLiveRows(){return!this.isMobileOrTablet||this.liveGames.length<=f?S:O},isShowWelcomeOfferBanners(){return this.isShowMainBlock&&!this.isPlayerAuthorized},gtmCollection(){return this.GTM_ELEMENTS.main},isRecommendedGamesBannerVisible(){return this.isPlayerAuthorized&&this.recommendedGamesErrorStatus&&this.recommendedGamesErrorStatuse)},isShowMainBlock(){return!this.isLazyLoadingEnabled||this.scrolling&&this.isDataLoaded}}),watch:{getIsInitialBatchLoaded(){this.openRegistrationForFavorites()}},created(){this.initSliders={},this.slidersRendered={}},mounted(){this.getIsInitialBatchLoaded&&this.openRegistrationForFavorites(),this.$bus.on("slider-visible",this.onSliderVisible),this.$bus.on("slider-initialized",this.onSliderInitialized),this.$bus.on("slider-rendered",this.onSliderRendered),this.$bus.on("open-game-section",this.onAllSectionClick)},beforeDestroy(){this.$bus.off("slider-visible",this.onSliderVisible),this.$bus.off("slider-initialized",this.onSliderInitialized),this.$bus.off("slider-rendered",this.onSliderRendered),this.$bus.off("open-game-section",this.onAllSectionClick)},methods:Object(l["a"])(Object(l["a"])({},Object(r["d"])("modal",["openModal"])),{},{onSliderVisible(e){this.slidersRendered[e]=!1,this.initSliders[e]=!1,this.debounceRenderSliders()},onSliderRendered(e){this.slidersRendered[e]=!0,this.debounceInitSliders(),this.debounceRenderSliders()},debounceRenderSliders:c()((function(){const e=Object.keys(this.slidersRendered).filter(e=>!this.slidersRendered[e]),t=Object(n["a"])(e,1),i=t[0];i&&this.$bus.$emit("slider-render",i)}),100),debounceInitSliders:c()((function(){const e=Object.keys(this.initSliders).filter(e=>!this.initSliders[e]),t=Object(n["a"])(e,1),i=t[0];i&&this.$bus.$emit("slider-init",i)}),200),onSliderInitialized(e){this.initSliders[e]||(this.initSliders[e]=!0,this.debounceInitSliders())},openRegistrationForFavorites(){"favorites"!==this.filter||this.isPlayerAuthorized||(this.$router.replace(this.getLanguageForUrl||"/"),this.openModal({name:"registration",props:{place:m["rd"].TO_REGISTRATION.DIRECT_FAVORITES},component:Object(h["defineAsyncComponent"])(()=>Promise.all([i.e("chunk-687a2a32"),i.e("chunk-6642e329"),i.e("chunk-1819c270"),i.e("chunk-11e41e9a"),i.e("auth")]).then(i.bind(null,"8037")))}))},onAllSectionClick(){var e=this;return Object(a["a"])((function*(){yield e.$nextTick(),setTimeout(()=>{window.scrollTo(0,m["Xe"])})}))()}})},_=y,L=i("2877"),w=Object(L["a"])(_,s,o,!1,null,null,null);t["default"]=w.exports},"6cc2a":function(e,t,i){"use strict";i("9de6")},"793d":function(e,t,i){"use strict";var s=i("b047"),o=i.n(s),a=i("8f12");t["a"]={data(){return{hoveredGame:""}},methods:{onMousemove:o()((function(e){this.hoverHandler(e)}),a["Cb"]),hoverHandler(e){var t,i,s;if(null!==e&&void 0!==e&&null!==(t=e.target)&&void 0!==t&&t.closest(".games-list-card__body")||null!==e&&void 0!==e&&null!==(i=e.target)&&void 0!==i&&i.closest(".games-list-card__favorites"))return;const o=this.isMobile?".games-list-card":".games-list-card__img-area",a=null===e||void 0===e||null===(s=e.target)||void 0===s?void 0:s.closest(o);if(a){var n;const t=null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.closest(".games-list-card");this.hoveredGame=t.dataset.gameId}else this.hoveredGame=""},getGameIdInSection(e,t){if(e&&t)return`${e}-${t}`}}}},"83b5":function(e,t,i){"use strict";var s=i("5530"),o=(i("caad"),i("2532"),i("ca47")),a=i("8f12");t["a"]={computed:Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(o["f"])("games",["mapIds"])),Object(o["e"])("gamesCollections",["getCollectionsById"])),{},{realMoneyCollection(){return this.getCollectionsById[a["jc"].REAL_MONEY]}}),methods:{isRealMoneyGame(e){return e.collections?e.collections.includes(a["jc"].REAL_MONEY):!!e.id&&(null===(t=this.realMoneyCollection)||void 0===t?void 0:t.itemsIDS.some(t=>t===e.id));var t},isRealMoneyGameFromIdentifier(e){var t;return null===(t=this.realMoneyCollection)||void 0===t?void 0:t.itemsIDS.some(t=>t===this.mapIds[e])}}}},"9de6":function(e,t,i){},b28f:function(e,t,i){"use strict";i.r(t);i("4de4");var s=function(){var e=this,t=e._self._c;return e.isShowLoader?t("preloader",e._b({},"preloader",e.preloaderProps,!1)):t("div",{staticClass:"home-bg-section-inner",on:{mousemove:e.onMousemove,mouseleave:e.hoverHandler}},[e.isLiveOrTablePage?t("games-filter",{staticClass:"games-sort-page__wr--live-table",attrs:{collection:e.collection,filter:e.filter,provider:e.gameProvider,"total-items":e.totalItems,"is-jackpot-games":e.isJackpotGames},on:{"on-category-changed":e.onCategoryChanged}}):e._e(),e._l(e.visibleSections,(function(i){return[i.isRecommendedGamesBannerVisible?t("recommended-games-banner",{key:i.name}):t("games-cards-slider",{key:i.name,attrs:{name:i.name,filter:e.filter,"cards-slider-filter":i.filter,collection:e.collection,"collection-list":i.collection_list,"collection-name":i.collectionName,"navigate-id":i.navigate_id,row:i.row,title:i.title,"rtp-options":e.getRtpOptions(i),"hovered-game-id":e.hoveredGame,"gtm-element":i.gtmElement,"card-size":e.getSectionCardSize(i.cardSize),"section-url":i.sectionUrl,"hide-show-all":i.hideShowAll,provider:e.gameProvider,"hide-badges":i.hideBadges,"show-bottom-label":i.showBottomLabel,"is-last-card-show-all":e.isShowLastCard(i.name),"card-video-identifier":i.cardVideoIdentifier}})]})),e.isShowEmptyList?t("div",{staticClass:"games-list__no-results relative"},[t("games-list-empty",{attrs:{collection:e.collection,filter:e.filter,provider:e.gameProvider}})],1):e._e()],2)},o=[],a=i("5530"),n=(i("caad"),i("d81d"),i("13d5"),i("ac1f"),i("2532"),i("5319"),i("5b81"),i("ca47")),l=i("a137"),r=i("9d19"),d=i("83b5"),c=i("793d"),m=i("e613"),h=i("8f12"),g=i("bba4"),u=i.n(g),b=i("a026"),v=i("653a");const p={L:"l",M:"m"};var f={name:"games-list",components:{GamesFilter:Object(b["defineAsyncComponent"])(()=>Promise.all([i.e("preloadChunk-GroupFilters"),i.e("chunk-0f77778c"),i.e("preloadChunk-GamesFilter")]).then(i.bind(null,"e2e1"))),GamesListEmpty:Object(b["defineAsyncComponent"])(()=>i.e("preloadChunk-GamesListEmpty").then(i.bind(null,"8359"))),RecommendedGamesBanner:Object(b["defineAsyncComponent"])(()=>i.e("preloadChunk-RecommendedGamesBanner").then(i.bind(null,"3a7e"))),GamesCardsSlider:l["default"],Preloader:r["default"]},mixins:[d["a"],c["a"],m["a"]],props:{preloaderProps:{type:Object,default:()=>({})},collection:{type:String,default:""},filter:{type:String,default:""},gameProvider:{type:String,default:""},gamesSections:{type:Array,default:()=>[]},jackpotGames:{type:String,default:""},hasLoader:{type:Boolean,default:!1}},data(){return{renderedSections:{},listIsReady:!1}},computed:Object(a["a"])(Object(a["a"])(Object(a["a"])(Object(a["a"])(Object(a["a"])(Object(a["a"])({},Object(n["e"])("breakpoints",["isMobileOrTablet"])),Object(n["f"])("games",["isDataLoaded","isDataLoading"])),Object(n["e"])("gamesCollections",["getCollectionsById"])),Object(n["e"])("playerFavoriteGames",["playerFavoriteGamesArray"])),Object(n["e"])("player",["getLanguageForUrl"])),{},{isShowLoader(){return!this.listIsReady&&this.hasLoader},isShowEmptyList(){const e=!this.filteredGamesSections.some(e=>{var t;return null===(t=e.collection_list)||void 0===t?void 0:t.length});return e&&!this.isGamesDataLoading},isGamesDataLoading(){return!this.isDataLoaded||this.isDataLoading},isJackpotGames(){return"active"===this.jackpotGames},filteredGamesSections(){if(!this.isLiveOrTablePage)return this.gamesSections.filter(e=>e.show);const e=h["kc"][this.collection]||[];return null===e||void 0===e?void 0:e.map(e=>{var t;let i,s;const o=Object(v["a"])(e.id);o.length?(i=o,s=e.id):(i=Object(v["a"])(e.code),s=e.code);const n=null===(t=i)||void 0===t?void 0:t.filter(e=>{var t,i;const s=null===(t=e.collections)||void 0===t?void 0:t.includes(this.collection),o=!this.gameProvider||e.provider===this.gameProvider,a=!this.isJackpotGames||(null===(i=e.collections)||void 0===i?void 0:i.includes(h["jc"].JACKPOT));return s&&o&&a}),l=this.createSectionUrl(s),r=l.sectionUrl,d=l.gtmCollectionName,c=Object(a["a"])(Object(a["a"])({},this.GTM_ELEMENTS[d][u()(s)]),{},{cardFilter:{jackpot_switch:this.isJackpotGames}});return this.gameProvider&&(c.cardFilter.provider=[this.gameProvider]),{name:`${this.collection}-${s}`,navigate_id:"section-"+s,filter:s,collection_list:n,title:e.title,row:1,cardSize:this.isMobileOrTablet?p.L:p.M,show:!0,sectionUrl:r,gtmElement:c}})},visibleSections(){return this.filteredGamesSections.filter(e=>this.renderedSections[e.name]&&((null===e||void 0===e?void 0:e.collection_list.length)||(null===e||void 0===e?void 0:e.isRecommendedGamesBannerVisible)))},totalItems(){const e=this.visibleSections.find(({filter:e})=>e===h["jc"].ALL);var t;return e?null===(t=e.collection_list)||void 0===t?void 0:t.length:this.visibleSections.reduce((e,{collection_list:t})=>(e+=null===t||void 0===t?void 0:t.length,e),0)}}),watch:{filteredGamesSections:{handler(){this.setRenderedSections()},immediate:!0},getCollectionsById(){this.setRenderedSections()},playerFavoriteGamesArray(){this.setRenderedSections()},visibleSections:{handler(e){e.length>0&&(this.listIsReady=!0)},immediate:!0}},methods:{setRenderedSections(){const e=Object.keys(this.renderedSections);this.filteredGamesSections.forEach(({collection_list:t,name:i,isRecommendedGamesBannerVisible:s})=>{const o=(null===t||void 0===t?void 0:t.length)||0;if(this.renderedSections[i]||!o&&!s)return;const a=e.some(e=>this.renderedSections[e]);this.$set(this.renderedSections,i,!a)});const t=e.filter(e=>!this.renderedSections[e]);t.forEach(e=>{setTimeout(()=>{this.renderedSections[e]=!0})})},onCategoryChanged(){this.$emit("on-category-changed")},createSectionUrl(e){let t="",i=h["tc"].LIVE;return this.isLivePage&&(t=`${this.getLanguageForUrl}${h["tb"].LIVE.MAIN}/${e.replaceAll("_","-")}`),this.isTablePage&&(i=h["tc"].TABLE,t=`${this.getLanguageForUrl}${h["tb"].TABLE.MAIN}/${e.replaceAll("_","-")}`),{sectionUrl:t,gtmCollectionName:i}},isShowLastCard(e){return e!==h["Sc"].HOME_DAY_HOT_GAMES},getSectionCardSize(e){return e||p.L},getRtpOptions({rtp_mode:e,rtp_type:t}){return e?{mode:e,type:t}:void 0}}},S=f,O=(i("6cc2a"),i("2877")),G=Object(O["a"])(S,s,o,!1,null,null,null);t["default"]=G.exports}}]);