(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1453:function(e,t,o){"use strict";o(12),o(15);var r=o(0),l=(o(18),o(38),o(21),o(74),o(17),o(23),o(1692)),n=o.n(l),c=o(2),d=o(126),h=o(7),m=o(39),w=o(1451),f=o(57),v={computed:{isTitleClickable(){return h.a.includes(this.collection)||this.shouldShowViewAll&&(this.isOnGamePage||this.isOnHomePage)||this.provider===h.j&&(this.isOnGamePage||this.isOnHomePage)}},methods:{titleClicked(e){this.gamesTag&&this.isTitleClickable&&this.viewAllGames(e,!0)},createViewAllRoute(){if(this.gamesTag||this.provider){var e="";return this.provider?e={name:"index-games-provider",params:{provider:this.provider}}:(e={name:"index-"+this.gamesTag},this.gamesTag===f.t&&(e.name="index-games-favorites",delete e.params)),this.getLocalizedRoute(e)}}}},S=o(3329),_=o(1460),T=o.n(_),y=o(1516),x=o(277),G=o(1514),O=o(1593),C=o(1700),k=o(1420),$=o(120),I=o(1438),B={name:"GamesSwiper",components:{SwiperWrapper:G.a,SwiperNavigation:O.a,Game:C.a,BsButton:k.default},mixins:[v,y.a],props:{items:{type:Array,default:()=>[],required:!0},itemsPerSlide:{type:Number,default:1},title:{type:String,default:""},initialNumOfSlides:{type:Number,default:2},sortTogglerOptions:{type:Array,default:()=>[]},hideBadges:{type:Boolean,default:!0},collection:{type:String,default:""},sortType:{type:String,default:""},gamesTag:{type:String,default:""},provider:{type:String,default:"",required:!1},sectionTitleIconName:{type:String,default:""},hideViewAll:{type:Boolean,default:!1},isOnGamePage:{type:Boolean,default:!1}},data(){return{swiperTouched:!1,GAMES_WITH_BADGES_SECTIONS:h.z,GAMES_WITH_RTP_BADGES_SECTIONS:h.A,isTitleLink:!0,titleLink:this.createViewAllRoute()}},computed:{swiperId(){return"".concat(x.b,"-").concat(this.collection)},shouldHideGamesViewAll(){return!this.shouldShowViewAll||this.hideViewAll||!this.$device.isDesktop&&this.collection===h.f},gamesSortTogglerSelectedOption(){return this.$store.getters["modules/games-collections/gamesSortTogglerSelectedOption"](this.collection)},isOnHomePage(){return Object(c.L)(this.$route.path)},currency(){return this.$store.getters["modules/deposit/getDepositCurrency"]()},isWebPSupported(){return this.$store.getters.getIsWebPSupported()},duplicateGames(){return this.$store.getters["modules/games/getDuplicateGames"]()},BsToggler:()=>()=>o.e(37).then(o.bind(null,4983))},watch:{items(e,t){if(!t.length)return this.setGamesSwiperSlides(),void this.$nextTick((()=>{this.setInitialScrollPosition()}));this.onGamesChanged(),this.updateScrollPosition()},currency(e,t){e!==t&&this.resetScrollPosition()},gamesSortTogglerSelectedOption(e,t){e!==t&&this.resetScrollPosition()}},created(){this.swiper=x.b,this.setGamesSwiperSlides()},mounted(){this.setInitialScrollPosition()},methods:{setGamesSwiperSlides(){if(this.$device.isMobileOrTablet||this.$device.isDesktop&&this.$device.isTouch){var e=this.isOnHomePage&&$.a.getWithExpiry("".concat(this.collection,"-swiper-slides"));this.setSwiperSlides(this.items,e)}else{var t=this.isOnHomePage&&$.a.getWithExpiry("".concat(this.collection,"-active-slide"));this.activeSlideIndex=parseInt(t)||1,this.setSwiperSlides(this.items)}},onGamesChanged(){return this.swiperSlides=this.getItemsChunk(this.items),this.allSwiperSlides=[...this.swiperSlides],this.totalNumOfSlides=this.swiperSlides.length,this.$device.isTouch?(this.swiperSlidesToRender=this.swiperSlides.splice(0,this.swiperSlidesToRender.length||this.initialNumOfSlides),this.freeScrollLoadMore(),void this.setIsScrollAvailable()):(this.swiperSlidesToRender=this.swiperSlides.splice(0,this.activeSlideIndex+x.h),this.activeSlideIndex>this.totalNumOfSlides?(this.activeSlideIndex=this.totalNumOfSlides,void this.setScrollPosition(this.saveActiveSlideIndex)):void this.updateButtonsStatus())},toggleGamesSort(e){this.$emit("toggleGamesSort",e)},viewAllGames(e,t){this.$emit("viewAllGames",{event:e,isTitleClicked:t})},setInitialScrollPosition(){if(this.isOnHomePage&&this.totalNumOfSlides){var e=this.$refs.bsSwiper;if(this.$device.isTouch){var t=$.a.getWithExpiry("".concat(this.collection,"-scroll-position"));if(!t)return;return this.swiperScrollPosition=parseInt(t),e.scrollTo({left:this.swiperScrollPosition}),void(this.swiperTouched=!0)}1!==this.activeSlideIndex?(this.swiperScrollPosition=this.getInitialScrollPosition(e),e.scrollTo({left:this.swiperScrollPosition,behavior:"smooth"}),this.updateButtonsStatus(),this.swiperTouched=!0):this.updateButtonsStatus()}},resetScrollPosition(){if(this.swiperScrollPosition=0,this.$refs.bsSwiper.scrollTo({left:this.swiperScrollPosition,behavior:"smooth"}),this.$device.isTouch)return $.a.remove("".concat(this.collection,"-scroll-position")),void $.a.remove("".concat(this.collection,"-swiper-slides"));$.a.remove("".concat(this.collection,"-active-slide")),this.activeSlideIndex=1,this.updateButtonsStatus()},updateScrollPosition(){var e=this.$refs.bsSwiper;this.swiperScrollPosition!==e.scrollLeft&&e.scrollTo({left:this.swiperScrollPosition,behavior:"smooth"})},saveActiveSlideIndex(){this.isOnHomePage&&(1!==this.activeSlideIndex?$.a.setWithExpiry("".concat(this.collection,"-active-slide"),this.activeSlideIndex,I.a):$.a.remove("".concat(this.collection,"-active-slide")))},saveScrollPosition(){if(this.isOnHomePage){var e=this.$refs.bsSwiper;if(e&&e.scrollLeft!==this.swiperScrollPosition){if(this.swiperScrollPosition=e.scrollLeft,!this.swiperScrollPosition)return $.a.remove("".concat(this.collection,"-scroll-position")),void $.a.remove("".concat(this.collection,"-swiper-slides"));$.a.setWithExpiry("".concat(this.collection,"-scroll-position"),this.swiperScrollPosition,I.a),$.a.setWithExpiry("".concat(this.collection,"-swiper-slides"),this.getNumOfSlidesToRender(e),I.a)}}},getNumOfSlidesToRender(e){if(this.$device.isDesktop)return e.scrollLeft/e.clientWidth+x.h;var t=e.scrollLeft+e.clientWidth,o=e.firstChild.clientWidth;return Math.ceil(t/o/this.initialNumOfSlides)*this.initialNumOfSlides},subscribeToScrollEvent(){this.subscribeTouchDeviceToScrollEvent(T()(this.saveScrollPosition,500))},getInitialScrollPosition(e){var t=e.clientWidth,o=t,r=t;if(1===this.activeSlideIndex)return 0;var l=o+(this.activeSlideIndex-2)*r;if(this.activeSlideIndex===this.totalNumOfSlides){var n=x.d[this.swiper][Object(c.r)(this)],d=this.allSwiperSlides[this.allSwiperSlides.length-1].length;de.viewAllGames(t,!1)).apply(null,arguments)}}})],1)],1)]},proxy:!0},{key:"swiper-content",fn:function(){return[t("div",{ref:"bsSwiper",staticClass:"c-swiper",class:{"scroll-enabled":e.$device.isTouch},attrs:{id:e.swiperId,"data-cy":e.swiperId}},[e.itemsPerSlide>1?[e._l(e.swiperSlidesToRender,(function(o,r){return t("div",{key:r,staticClass:"c-swiper-item",attrs:{id:"swiper-item-".concat(r+1),"data-cy":"cy-swiper-item"}},[t("div",{staticClass:"c-swiper-item-games",attrs:{"data-cy":"cy-swiper-item-games"}},e._l(o,(function(o,l){return t("Game",{key:o.identifier,attrs:{index:l,"hide-badges":e.hideBadges,game:o,"section-name":e.gamesTag,"lazy-images":e.shouldLazyLoadImage(r*e.itemsPerSlide+l),"show-win-badge":e.GAMES_WITH_BADGES_SECTIONS.includes(e.sortType),"show-rtp-badge":e.GAMES_WITH_RTP_BADGES_SECTIONS.includes(e.sortType),collection:e.collection,"section-id":e.gamesTag,provider:e.provider,"is-on-game-page":e.isOnGamePage}})})),1)])})),e._v(" "),e.$device.isTouch?e._e():t("div",{staticClass:"c-swiper-item is-placeholder",attrs:{"data-cy":"cy-swiper-item is-placeholder"}})]:e._l(e.swiperSlidesToRender,(function(o,r){return t("div",{key:r,staticClass:"c-swiper-item"},[t("Game",{key:o.identifier,attrs:{index:r,"hide-badges":e.hideBadges,game:o,"section-name":e.gamesTag,"lazy-images":e.shouldLazyLoadImage(r),"show-win-badge":e.GAMES_WITH_BADGES_SECTIONS.includes(e.sortType),"show-rtp-badge":e.GAMES_WITH_RTP_BADGES_SECTIONS.includes(e.sortType),collection:e.collection,"section-id":e.gamesTag,provider:e.provider,"is-on-game-page":e.isOnGamePage},on:{gameClicked:e.saveScrollPosition}})],1)}))],2)]},proxy:!0}])})}),[],!1,null,null,null),P=component.exports,N=o(55),D=/&/,A={components:{GamesSwiper:P,Game:C.a,MugenScroll:n.a,LazyScrollLoader:S.a,BsButton:k.default},mixins:[w.a,v],props:{title:String,enTitle:String,provider:String,sortBy:String,sortDir:String,hideBadges:Boolean,initGames:Array,game:Object,lazyImages:Boolean,useH1:{type:Boolean,default:!1},isOnGamePage:{type:Boolean,default:!1},gamesType:{type:String,default:""},collection:{type:String,default:""},sortType:{type:String,default:""},startLoading:{type:Boolean,default:!1},sortTogglerConfig:{type:Object,default:null},gamesDisplayed:{type:Number,default:0},showLoadMoreButton:Boolean,customSortCollection:{type:Boolean,default:!1,required:!1},gamesTag:{type:String,default:""},gamesGetter:{type:[String,Object],default(){return{getterString:"modules/games/filter",params:[{collection:this.collection,provider:this.provider,sortBy:this.sortBy||"title",sortDir:this.sortDir,currency:this.authUser?this.authUser.currency:null}]}},required:!1},showBackButton:{type:Boolean,default:!1,required:!1},sectionTitleIconName:{type:String,default:""},hideViewAll:{type:Boolean,default:!1},itemsPerSlide:{type:Number,default:null},shouldUseSwiper:{type:Boolean,default:!1},maxNumberOfGamesPerSection:{type:Number,default:null,required:!1}},data(){return{limit:0,loading:!1,games:[],platformLimit:this.returnPlatformLimit(),GAMES_WITH_BADGES_SECTIONS:h.z,GAMES_WITH_RTP_BADGES_SECTIONS:h.A,totalNumberOfGames:null,gamesLoaded:0,initialScrollTop:null,loadMoreType:this.isAllProvidersPage?"scroll":"click",SORT_TOGGLER_OPTIONS:[]}},computed:{translationCollection(){var title="jackpots"===this.collection?this.$t("jackpot_games"):this.title;return this.$t("no_games_for_curr",{games_source:title})},allowedRoute(){return!this.games.length&&(this.$route.params.provider||this.$route.path.includes("/jackpots"))},authUser(){return this.$store.getters["modules/auth-user/user"]()},locale(){return this.$store.getters["modules/i18n/currentLocale"]},filterGames(){return this.$store.getters["modules/games/filter"]({collection:this.collection,provider:this.provider,sortBy:this.sortBy||"title",sortDir:this.sortDir,currency:this.authUser?this.authUser.currency:null,isBot:this.$device.isBot,isMobile:this.$device.isMobile,humanizeCurrency:this.$options.filters.humanizeCurrency})},allGames(){var e,t;if(this.initGames)t=this.initGames;else if(this.provider||null!==(e=this.game)&&void 0!==e&&e.provider){var o=this.provider||this.game.provider;t=this.$store.getters["modules/games-collections/providersGames"](o)}else this.collection!==h.s&&(t=this.filterGames);return t=this.game?t.filter((e=>e.identifier!==this.game.identifier)):t,t=this.maxNumberOfGamesPerSection?t.slice(0,this.maxNumberOfGamesPerSection):t,this.mapToModel(t||[])},hasNoSupportedGames(){return this.noSupportedGames.length>0&&0===this.allGames.length&&"favorite"===this.collection},noSupportedGames(){return this.$store.getters["modules/games/noSupportedGames"]()},allLoaded(){return this.games.length===this.totalNumberOfGames},currencies(){return this.$store.getters["modules/info/currencies"]()},isWebPSupported(){return this.$store.getters.getIsWebPSupported()},duplicateGames(){return this.$store.getters["modules/games/getDuplicateGames"]()},restrictionType(){return this.$route.params.provider?this.provider:this.title},adminGames(){return this.$store.getters["modules/games/getAdminGames"]()},isCustomSortCollection(){return Object.keys(h.u).includes(this.collection)},currentTitle(){return this.game?this.enTitle+this.$route.path:this.enTitle},isOnHomePage(){return Object(c.L)(this.$route.path)},total(){return this.isOnGamePage?this.$device.isMobileOrTablet?6:4:this.isOnHomePage?this.oneRowGamesCollection.includes(this.collection)?this.$device.isTablet?3:4:this.$device.isTablet?9:8:this.platformLimit},activeGame(){return this.$store.getters["modules/games/getActiveGame"]()},gamesSectionId(){return"games-section-".concat(this.collection)},shouldShowSwiper(){return this.isOnHomePage||this.isOnGamePage||this.shouldUseSwiper},loadingGames(){return this.gamesLoaded!==this.games.length},gamesSwiperItemsPerSlide(){if(this.itemsPerSlide)return this.itemsPerSlide;var e=Object(c.r)(this),t=x.d[x.b][e];return this.$device.isDesktop?t:1},numberOfSwiperSlides(){var e=Object(c.r)(this);return x.c[x.b][e]},availableGamesCount(){return this.$store.getters["modules/games/availableGamesCount"]()},gamesSwiperNumOfRows(){return this.oneRowGamesCollection.includes(this.collection)||this.isOnHomePage?1:2},showBsToggler(){return this.collection===h.f},BsToggler:()=>()=>o.e(37).then(o.bind(null,4983)),RestrictionGameInfo:()=>()=>o.e(312).then(o.bind(null,2273)),oneRowGamesCollection(){return this.authUser?h.F:h.G}},watch:{$route(){this.games=Object(c.pb)(this.allGames,0,this.limit)},allGames:{immediate:!0,handler(e,t){this.totalNumberOfGames=this.allGames.length,this.allGames&&this.allGames.length>0&&e!==t&&this.$emit("loaded"),this.games=Object(c.pb)(this.allGames,0,this.limit)}},initGames(e){this.$emit("toggleGamesSectionVisibility",{collection:this.collection,visibility:!!e.length})},provider(){this.initializeGames()},startLoading:{immediate:!0,handler(e){e&&this.lazyLoadGames()}},gamesType(){this.lazyLoadGames()},activeGame(){return this.$store.getters["modules/games/getActiveGame"]()}},created(){var e=this;return Object(r.a)((function*(){var t;e.limit=e.total,e.games=Object(c.pb)(e.allGames,0,e.limit);e.isCustomSortCollection||e.provider||e.isAllProvidersPage;null!=e&&null!==(t=e.game)&&void 0!==t&&t.provider&&(e.$store.getters["modules/games-collections/providersSort"](e.game.provider)||(yield e.$store.dispatch("modules/games-collections/LOAD_GAMES_SORT",{type:m.d.rankedTopGamesProvider,provider:e.game.provider,isMobileOrTablet:e.$device.isMobileOrTablet})))}))()},mounted(){this.initializeGames(),!this.$route.name.includes("index")||this.title===this.$t("favorite")&&"index"===this.getRouteBaseName()||$.a.setWithExpiry("routeName",this.$route.name,I.a),this.$nextTick((()=>{this.$store.dispatch("modules/games-collections/SET_GAMES_SORTED",!1)})),this.sortTogglerConfig&&(this.SORT_TOGGLER_OPTIONS=[{optionIdentifier:this.sortTogglerConfig.optionOne,optionLabel:this.sortTogglerConfig.optionOneLabel},{optionIdentifier:this.sortTogglerConfig.optionTwo,optionLabel:this.sortTogglerConfig.optionTwoLabel}])},methods:{isMoreLoaded(){return 1===parseInt($.a.getWithExpiry("isMoreLoaded-"+this.getRouteBaseName()))||this.game},isRouteSame(e,t){return this.trimRouteLanguage(e)===this.trimRouteLanguage(t)&&(!this.game||$.a.getWithExpiry(this.currentTitle))},loadMore(){var e="click"===this.loadMoreType&&document.body.getBoundingClientRect().top;this.limit+=this.platformLimit,this.games=this.allGames.slice(0,this.limit),e&&this.$scrollTo(this.isOnGamePage&&this.$device.isMobileOrTablet?"#mobile-game-page-header":"#header-wrapper",{offset:Math.abs(e),duration:0,x:!1}),$.a.setWithExpiry(this.currentTitle,this.games.length,I.a),$.a.setWithExpiry("isMoreLoaded-"+this.getRouteBaseName(),1,I.a),"click"===this.loadMoreType&&(this.loadMoreType="scroll")},returnPlatformLimit(){return this.$device.isTablet?h.ib:this.$device.isMobile?h.V:h.q},getNumberOfGames(){return parseInt($.a.getWithExpiry(this.currentTitle))||null},initializeGames(){var e,t=$.a.getWithExpiry("routeName");t&&(this.isRouteSame(t,this.$route.name)||this.game)&&(e=this.getNumberOfGames())&&this.isMoreLoaded()&&!this.game&&$.a.setWithExpiry("isMoreLoaded-"+this.getRouteBaseName(),1,I.a),this.setLimit(e),this.games=Object(c.pb)(this.allGames,0,this.limit),$.a.setWithExpiry(this.currentTitle,this.games.length,I.a)},mapToModel(e){return e.map((e=>(c.cb.call(e,"getJackpot")||(e=new d.a(e,e.identifier,this.isWebPSupported,this.duplicateGames)),e)))},setLimit(e){this.limit=e&&e>=this.limit?e:this.limit||this.platformLimit},lazyLoadGames(){var e=this;return Object(r.a)((function*(){e.gamesType&&(yield e.$store.dispatch("modules/games-collections/LOAD_GAMES_SORT",{type:e.gamesType,provider:null}))}))()},viewAllGames(e){var{event:t,isTitleClicked:o}=e;this.gamesTag&&(this.trackUserClick(t,{eventName:o?N.m.GAME_TITLE:N.m.VIEW_ALL,siteSection:this.gamesTag}),this.$router.push(this.createViewAllRoute()))},toggleGamesSort(e){this.sortTogglerConfig.callback(e,this.collection)},gameMounted(){this.gamesLoaded+=1},goBack(e){var t=this.$store.getters["modules/pages/backRoute"]();return!this.activeGame&&null!=t&&t.params.segment2?this.$router.push(this.getLocalizedRoute({name:"index"})):Object(c.bb)(this,e)},formatGameCollectionName(e){return D.test(e)?e.replace(D,"-").toLowerCase():this.collection}}},E=(o(3418),o(3420)),M=Object(L.a)(A,(function(){var e=this,t=e._self._c;return t("div",[e.shouldShowSwiper?t("section",{staticClass:"c-games-swiper-section",attrs:{"data-cy":"cy-games-swiper-section"}},[t("GamesSwiper",{attrs:{title:e.title,items:e.allGames,"items-per-slide":e.gamesSwiperItemsPerSlide,"hide-badges":e.hideBadges,"hide-view-all":e.hideViewAll,"sort-toggler-options":e.SORT_TOGGLER_OPTIONS,collection:e.formatGameCollectionName(e.collection),"initial-num-of-slides":e.numberOfSwiperSlides,"sort-type":e.sortType,"is-on-game-page":e.isOnGamePage,"number-of-rows":e.gamesSwiperNumOfRows,"games-tag":e.gamesTag,provider:e.provider,"section-title-icon-name":e.sectionTitleIconName},on:{viewAllGames:e.viewAllGames,toggleGamesSort:e.toggleGamesSort}})],1):t("section",{staticClass:"games-sections-wrapper",attrs:{"data-cy":"cy-games-sections-wrapper"}},[t("div",{staticClass:"games-sections",attrs:{"data-cy":"cy-games-sections"}},[e.title?t("div",{staticClass:"games-sections__heading",attrs:{"data-cy":"cy-games-sections__heading"}},[t("div",{staticClass:"games-sections__heading-box",attrs:{"data-cy":"cy-games-sections__heading-box"}},[e.showBackButton?t("BsButton",{staticClass:"games-sections__heading-back",attrs:{color:"light-purple",size:"m",icon:"arrow-left","data-cy":"cy-games-sections__heading-back"},on:{click:t=>e.goBack(t)}}):e._e(),e._v(" "),!e.useH1&&e.title?t("div",{staticClass:"games-sections__title",class:{"is-clickable":e.isTitleClickable},attrs:{"data-cy":"cy-games-sections__title"},on:{click:t=>e.titleClicked(t)}},[e._v("\n "+e._s(e.title)+"\n ")]):e._e(),e._v(" "),e.useH1&&e.title?t("h1",{staticClass:"games-sections__title",class:{"is-clickable":e.isTitleClickable},attrs:{"data-cy":"cy-games-sections__title"},on:{click:t=>e.titleClicked(t)}},[e._v("\n "+e._s(e.title)+"\n ")]):e._e(),e._v(" "),e.sortTogglerConfig&&e.showBsToggler?t(e.BsToggler,{tag:"component",attrs:{"toggler-options":e.SORT_TOGGLER_OPTIONS,"preselected-option":e.sortType,"game-section-toggler":""},on:{toggle:e.toggleGamesSort}}):e._e()],1)]):e._e(),e._v(" "),t("div",{ref:"scrollContainer"},[t("div",{staticClass:"games-block",attrs:{"data-cy":"cy-games-block"}},e._l(e.games,(function(g,o){return t("Game",{key:g.identifier,attrs:{index:o,provider:e.provider,"section-id":e.gamesTag,"hide-badges":e.hideBadges,game:g,"lazy-images":e.lazyImages,"show-win-badge":e.GAMES_WITH_BADGES_SECTIONS.includes(e.sortType),"show-rtp-badge":e.GAMES_WITH_RTP_BADGES_SECTIONS.includes(e.sortType),collection:e.collection},on:{"hook:mounted":function(t){return e.gameMounted()}}})})),1),e._v(" "),e.allowedRoute||e.hasNoSupportedGames?t(e.RestrictionGameInfo,{tag:"components",attrs:{"collection-title":e.title,type:e.restrictionType}}):e._e(),e._v(" "),e.showLoadMoreButton&&"click"===e.loadMoreType?t("div",{staticClass:"games-block__footer",attrs:{"data-cy":"cy-games-block__footer"}},[e.allLoaded?e._e():t("BsButton",{staticClass:"games-block__button",attrs:{label:e.$t("load_more"),"is-full-width":!1,"data-cy":"cy-games-block__button"},on:{click:e.loadMore}})],1):e._e()],1),e._v(" "),"scroll"!==e.loadMoreType||e.allLoaded?e._e():t("mugen-scroll",{attrs:{handler:e.loadMore,"should-handle":!e.loadingGames}},[t("LazyScrollLoader")],1)],1)])])}),[],!1,null,null,null);"function"==typeof E.default&&Object(E.default)(M);t.a=M.exports},1471:function(e,t,o){"use strict";o.d(t,"a",(function(){return r}));o(38);var r=e=>new Promise((t=>{if(e.scrollWidth&&e.clientWidth)return t({scrollWidth:e.scrollWidth,clientWidth:e.clientWidth});var o=new MutationObserver((()=>{e.scrollWidth&&e.clientWidth&&(t({scrollWidth:e.scrollWidth,clientWidth:e.clientWidth}),o.disconnect())}));o.observe(e,{childList:!0,subtree:!0,attributes:!0})}))},1502:function(e,t){e.exports=function(e){e.options.__i18n=e.options.__i18n||[],e.options.__i18n.push('{"en":{"swipe_left":"Swipe left","swipe_right":"Swipe right"},"ja":{"swipe_left":"左にスワイプ","swipe_right":"右にスワイプ"},"pt-BR":{"swipe_left":"Deslizar para a esquerda","swipe_right":"Deslizar para a direita"},"ru":{"swipe_left":"Влево","swipe_right":"Вправо"},"zh-CN":{"swipe_left":"向左滑动","swipe_right":"向右滑动"}}'),delete e.options._Ctor}},1514:function(e,t,o){"use strict";var r=o(1593),l=o(1446),n={name:"SwiperWrapper",components:{SwiperNavigation:r.a},props:{swiperData:{type:Object,required:!0}},data:()=>({SECTION_TITLE_ICON_NAME:l.a}),computed:{shouldHideRightGradient(){return!this.swiperData.shouldShowRightGradient||this.swiperData.isNextBtnDisabled}},methods:{handleTitleClicked(e){this.swiperData.isTitleClickable&&this.$emit("titleClicked",e)}}},c=(o(1708),o(226)),component=Object(c.a)(n,(function(){var e=this,t=e._self._c;return t("section",{staticClass:"c-swiper-wrapper"},[t("div",{staticClass:"c-swiper-header"},[t("div",{staticClass:"c-swiper-header__box"},[e.swiperData.isTitleLink?t("a",{staticClass:"games-sections__title",class:{"is-clickable":e.swiperData.isTitleClickable},attrs:{href:e.swiperData.titleLink},on:{click:function(t){return t.preventDefault(),(t=>e.$emit("titleClicked",t)).apply(null,arguments)}}},[e.swiperData.sectionTitleIconName===e.SECTION_TITLE_ICON_NAME.STAR?t("img",{staticClass:"games-sections__title-icon",attrs:{src:o(519),alt:"Title icon"}}):e._e(),e._v(" "),t("span",[e._v(e._s(e.swiperData.title))])]):e.swiperData.title?t("div",{staticClass:"games-sections__title",class:{"is-clickable":e.swiperData.isTitleClickable},on:{click:t=>e.handleTitleClicked(t)}},[e._v("\n "+e._s(e.swiperData.title)+"\n ")]):e._e(),e._v(" "),t("client-only",[e.swiperData.shouldShowTopNavigation?t("SwiperNavigation",{attrs:{"is-prev-btn-disabled":e.swiperData.isPrevBtnDisabled,"is-next-btn-disabled":e.swiperData.isNextBtnDisabled,"button-color":e.swiperData.buttonColor},on:{swipeLeft:function(t){return e.$emit("swipeLeft")},swipeRight:function(t){return e.$emit("swipeRight")}}}):e._e()],1)],1),e._v(" "),e._t("header-content")],2),e._v(" "),t("div",{staticClass:"c-swiper-container"},[e.$device.isDesktop?t("div",{staticClass:"c-swiper-side-gradient c-swiper-side-placeholder",class:{"is-visible":e.swiperData.shouldShowLeftGradient}}):e._e(),e._v(" "),e._t("swiper-content"),e._v(" "),t("client-only",[e.$device.isDesktop?t("div",{staticClass:"c-swiper-side-gradient c-swiper-side-navigation",class:{"should-hide-gradient":e.shouldHideRightGradient}},[e.swiperData.shouldShowSideNavigation?t("SwiperNavigation",{attrs:{"is-prev-btn-disabled":e.swiperData.isPrevBtnDisabled,"is-next-btn-disabled":e.swiperData.isNextBtnDisabled,"button-color":"transparent"},on:{swipeLeft:function(t){return e.$emit("swipeLeft")},swipeRight:function(t){return e.$emit("swipeRight")}}}):e._e()],1):e._e()])],2)])}),[],!1,null,null,null);t.a=component.exports},1516:function(e,t,o){"use strict";var r=o(0),l=(o(18),o(21),o(1710)),n=o.n(l),c=o(1460),d=o.n(c),h=o(277),m=o(2),w=o(1471);t.a={data:()=>({swiper:null,allSwiperSlides:[],swiperSlides:[],swiperSlidesToRender:[],activeSlideIndex:1,totalNumOfSlides:0,lastVisibleSlideIndex:0,isPrevBtnDisabled:!0,isNextBtnDisabled:!1,buttonColor:null,swiperScrollPosition:0,scrollAtStart:!0,scrollAtEnd:!1,isScrollAvailable:!1}),computed:{authUser(){return this.$store.getters["modules/auth-user/user"]()},shouldShowLeftGradient(){return this.$device.isDesktop&&(!this.isPrevBtnDisabled||!this.scrollAtStart)},shouldShowRightGradient(){return this.$device.isDesktop&&!this.scrollAtEnd},shouldShowSideNavigation(){return!this.$device.isTouch&&this.totalNumOfSlides>1},shouldShowTopNavigation(){return this.$device.isDesktop},swiperData(){return{title:this.title,isTitleClickable:this.isTitleClickable,shouldShowTopNavigation:this.shouldShowTopNavigation,shouldShowSideNavigation:this.shouldShowSideNavigation,isPrevBtnDisabled:this.isPrevBtnDisabled,isNextBtnDisabled:this.isNextBtnDisabled,buttonColor:this.buttonColor,shouldShowLeftGradient:this.shouldShowLeftGradient,shouldShowRightGradient:this.shouldShowRightGradient,isTitleLink:this.isTitleLink,titleLink:this.titleLink,sectionTitleIconName:this.sectionTitleIconName}},shouldShowViewAll(){return this.$device.isTouch?this.isScrollAvailable:this.totalNumOfSlides>1}},mounted(){this.$device.isTouch&&this.setIsScrollAvailable()},beforeDestroy(){var e=this.$refs.bsSwiper;this.$device.isTouch&&e&&e.removeEventListener("scroll",this.subscribeToScrollListener)},methods:{subscribeTouchDeviceToScrollEvent(e){this.$options.savePositionCallback=e,this.$device.isTouch&&this.subscribeToScroll()},subscribeToScroll(){this.$refs.bsSwiper.addEventListener("scroll",this.subscribeToScrollListener)},subscribeToScrollListener(){var e=this.$refs.bsSwiper,t=e&&e.getElementsByClassName("c-swiper-item")[0],o=e.scrollWidth;this.scrollAtStart=!e.scrollLeft,this.scrollAtEnd=Math.ceil(e.scrollLeft+e.offsetWidth)>=o,t&&this.setLastVisibleSlideIndex(e,t),this.freeScrollLoadMore(),this.swiperTouched||(this.swiperTouched=!0),this.$options.savePositionCallback&&this.$options.savePositionCallback()},swipeLeft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activeSlideIndex--,this.setScrollPosition(e)},swipeRight(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activeSlideIndex++,this.setScrollPosition(e),this.activeSlideIndex+1===this.swiperSlidesToRender.length&&this.loadMore(1),this.swiperTouched||(this.swiperTouched=!0)},loadMore(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.swiperSlides.length){var t=this.swiperSlides.splice(0,e||this.initialNumOfSlides);this.swiperSlidesToRender=[...this.swiperSlidesToRender,...t]}},freeScrollLoadMore(){this.$device.isDesktop?this.lastVisibleSlideIndex>=this.swiperSlidesToRender.length&&this.loadMore(1):this.lastVisibleSlideIndex+Math.round(this.initialNumOfSlides/2)>=this.swiperSlidesToRender.length&&this.loadMore()},updateButtonsStatus(){this.isPrevBtnDisabled=this.totalNumOfSlides<=1||1===this.activeSlideIndex,this.isNextBtnDisabled=this.totalNumOfSlides<=1||this.activeSlideIndex===this.totalNumOfSlides},setSwiperSlides(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.swiperSlides=this.getItemsChunk(e),this.allSwiperSlides=[...this.swiperSlides],this.totalNumOfSlides=this.swiperSlides.length,this.isNextBtnDisabled=1===this.totalNumOfSlides&&(null===(t=this.swiperSlides[0])||void 0===t?void 0:t.length)<=h.d[this.swiper][Object(m.r)(this)],this.swiperSlidesToRender=this.$device.isMobileOrTablet||this.$device.isDesktop&&this.$device.isTouch?this.swiperSlides.splice(0,o||this.initialNumOfSlides):this.swiperSlides.splice(0,this.activeSlideIndex+h.h)},setScrollPosition(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.$refs.bsSwiper;this.scrollToSlide(t),this.updateButtonsStatus(),e&&e()},scrollToSlide(e){this.allSwiperSlides.length&&this.$scrollTo("#".concat(this.swiperId," #swiper-item-").concat(this.activeSlideIndex),{container:"#".concat(this.swiperId),duration:h.m,easing:"linear",offset:this.getScrollOffset(e),onDone:()=>{this.updateCurrentPosition(e)}})},getScrollOffset(e){var t=e.clientWidth;if(this.activeSlideIndex===this.totalNumOfSlides){var o=h.d[this.swiper][Object(m.r)(this)],r=this.allSwiperSlides.length?this.allSwiperSlides[this.allSwiperSlides.length-1].length:0;if(r1?n()(e,this.itemsPerSlide):[...e]},setLastVisibleSlideIndex(e,t){this.lastVisibleSlideIndex=Math.ceil((e.scrollLeft+e.clientWidth)/t.clientWidth)},shouldLazyLoadImage(e){return!this.swiperTouched&&(!this.authUser||e>=2*this.itemsPerSlide)},updateCurrentPosition:d()((function(e){this.swiperScrollPosition=e.scrollLeft}),500),setIsScrollAvailable(){var e=this;return Object(r.a)((function*(){var t=e.$refs.bsSwiper;if(t){var{scrollWidth:o,clientWidth:r}=yield Object(w.a)(t);e.isScrollAvailable=o>r}}))()}}}},1565:function(e,t,o){var content=o(1706);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(367).default)("409c99f3",content,!0,{sourceMap:!1})},1566:function(e,t,o){var content=o(1709);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(367).default)("14310e74",content,!0,{sourceMap:!1})},1575:function(e,t,o){var r=o(852);e.exports=function(e){var t=r(e),o=t%1;return t==t?o?t-o:t:0}},1593:function(e,t,o){"use strict";var r={name:"SwiperNavigation",components:{BsButton:o(1420).default},props:{isPrevBtnDisabled:Boolean,isNextBtnDisabled:Boolean,buttonColor:{type:String,default:"light-purple"}}},l=(o(1705),o(226)),n=o(1707),component=Object(l.a)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"c-swiper-navigation"},[t("BsButton",{staticClass:"c-swiper-navigation__arrow",attrs:{icon:"arrow-left",size:"m",color:e.buttonColor||"light-purple",disabled:e.isPrevBtnDisabled,"aria-label":e.$t("swipe_left")},on:{click:function(t){return e.$emit("swipeLeft")}}}),e._v(" "),t("BsButton",{staticClass:"c-swiper-navigation__arrow",attrs:{icon:"arrow-right",size:"m",color:e.buttonColor||"light-purple",disabled:e.isNextBtnDisabled,"aria-label":e.$t("swipe_right")},on:{click:function(t){return e.$emit("swipeRight")}}})],1)}),[],!1,null,null,null);"function"==typeof n.default&&Object(n.default)(component);t.a=component.exports},1596:function(e,t){e.exports=function(e,t,o){var r=-1,l=e.length;t<0&&(t=-t>l?0:l+t),(o=o>l?l:o)<0&&(o+=l),l=t>o?0:o-t>>>0,t>>>=0;for(var n=Array(l);++r=t?d():n=setTimeout(d,t-e)),l};function d(){n=0,c=+new Date,l=e.apply(o,r),o=null,r=null}}},1715:function(e,t,o){"use strict";e.exports=function(element,e){void 0===e&&(e={});var t=e.offset;void 0===t&&(t=0);var o=e.threshold;void 0===o&&(o=0);var r=element.getBoundingClientRect(),l=r.top,n=r.right,c=r.bottom,d=r.left,h=r.width,m=r.height,w=c,f=window.innerWidth-d,v=window.innerHeight-l,S=n,_=o*h,T=o*m;return w>=(t.top||t+T)&&f>=(t.right||t+_)&&v>=(t.bottom||t+T)&&S>=(t.left||t+_)}},2339:function(e,t){e.exports=function(e){e.options.__i18n=e.options.__i18n||[],e.options.__i18n.push('{"en":{"load_more":"Load more","favorite":"My Favorites","jackpot_games":"Jackpots games","no_games_for_curr":"Unfortunately you cannot play any of \\"{games_source}\\" with your selected currency."},"ja":{"load_more":"もっと見る","favorite":"私のお気に入り","jackpot_games":"ジャックポットゲーム","no_games_for_curr":"申し訳ありませんが、そちらの通貨で\\"{games_source}\\"はご利用いただけません"},"pt-BR":{"load_more":"Carregar mais","favorite":"Meus Favoritos","jackpot_games":"Jogos de Jackpot","no_games_for_curr":"Infelizmente você não pode jogar nenhum dos \\"{games_source}\\" com a moeda selecionada."},"ru":{"load_more":"Показать еще","favorite":"Избранные","jackpot_games":"Джекпоты","no_games_for_curr":"К сожалению, вы не можете играть в \\"{games_source}\\" с выбранной вами валютой."},"zh-CN":{"load_more":"加载更多","favorite":"我最喜欢的","jackpot_games":"累积奖金游戏","no_games_for_curr":"很遗憾,您目前使用的货币无法进行任何 \\"{games_source}\\""}}'),delete e.options._Ctor}},2902:function(e,t,o){var content=o(3417);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(367).default)("18b1f45c",content,!0,{sourceMap:!1})},2903:function(e,t,o){var content=o(3419);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(367).default)("3e41a7e7",content,!0,{sourceMap:!1})},3416:function(e,t,o){"use strict";o(2902)},3417:function(e,t,o){var r=o(366)((function(i){return i[1]}));r.push([e.i,".c-swiper-item-games{width:100%}",""]),r.locals={},e.exports=r},3418:function(e,t,o){"use strict";o(2903)},3419:function(e,t,o){var r=o(366)((function(i){return i[1]}));r.push([e.i,".games-block__footer{display:flex;justify-content:center}@media(max-width:478px){.games-block__footer{width:100%}}.games-block__button{margin-top:15px}.is-home-page.is-desktop .c-games-customize-wrapper .c-swiper-item,.is-home-page.is-desktop .c-games-customize-wrapper .c-swiper-item-games{width:100%}",""]),r.locals={},e.exports=r},3420:function(e,t,o){"use strict";var r=o(2339),l=o.n(r);t.default=l.a}}]); //# sourceMappingURL=aadfba7.modern.js.map