(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["GamesJackpot"],{2198:function(e,t,a){},"22f4":function(e,t,a){},"2ee5":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));a("14d9");var s=a("ca47");const r="/img/provider_placeholder.svg";t["b"]={computed:Object.assign(Object.assign(Object.assign(Object.assign({},Object(s["e"])("breakpoints",["isMobile"])),Object(s["e"])("player",["getLanguageForUrl"])),Object(s["e"])("gamesProviders",["providersByCode"])),{imageProvider(){var e;return null===(e=this.provider)||void 0===e?void 0:e.icon_hover}}),methods:{goToProvider(e=!1){this.$bus.emit("providers-bottom-sheet",!1);const t=`${this.getLanguageForUrl}/${this.provider.code}-games${e?"?jackpotGames=active":""}`;this.$router.push(t)}}}},"3e33":function(e,t,a){"use strict";a("99af"),a("a630"),a("d81d"),a("14d9"),a("4e82"),a("4ec9");t["a"]={methods:{getSortedGamesByAlphabetAsc(e){return[...e].sort((e,t)=>(e.title||"").localeCompare(t.title||""))},getSortedGamesByAlphabetDesc(e){return[...e].sort((e,t)=>(t.title||"").localeCompare(e.title||""))},getSortedGamesByPopular(e,t){const a=new Map(e.map(e=>[e.id,e])),s=[];t.forEach(e=>{a.has(e)&&(s.push(a.get(e)),a.delete(e))});const r=Array.from(a.values());return s.concat(r.sort(this.sortGameById))},getSortedGamesById(e){return[...e].sort(this.sortGameById)},sortGameById:(e,t)=>e.id>t.id?-1:1}}},5583:function(e,t,a){"use strict";a("22f4")},6022:function(e,t,a){"use strict";var s=function(){var e=this,t=e._self._c;return t("a",{ref:"providerCardRef",staticClass:"play-provider swiper-slide",on:{click:function(t){return t.preventDefault(),e.handleClick.apply(null,arguments)}}},[t("div",{staticClass:"play-provider__img-wr"},[e.imageProvider?t("img",{staticClass:"play-provider__img",attrs:{src:e.imageProvider,alt:"img"}}):t("h3",{staticClass:"play-provider__name"},[e._v(" "+e._s(e.provider.name)+" ")])]),e.isJackpot?t("div",{staticClass:"play-provider__info"},[t("div",{staticClass:"play-provider__jackpot"},[e.provider.jackpotSum?t("span",{ref:"titleProviderCardRef",staticClass:"play-provider__jackpot-text"},[e._v(" "+e._s(e.$t("jackpot"))+" ")]):e._e(),t("span",{ref:"sumProviderCardRef",staticClass:"play-provider__jackpot-sum",class:{"play-provider__jackpot--zero":!e.provider.jackpotSum}},[e._v(" "+e._s(e.provider.formattedJackpotSum)+" ")])]),e.provider.providerGamesLength?t("div",{staticClass:"play-provider__games"},[e._v(" "+e._s(e.provider.providerGamesLength)+" ")]):e._e()]):e._e(),t("div",{staticClass:"play-provider__border"})])},r=[],i=a("1da1"),o=a("2ee5"),d=a("60e8"),n=a("a174"),c={name:"play-provider",mixins:[o["b"],d["a"],n["a"]],props:{provider:{type:Object,default:()=>({})},position:{type:Number,default:0},isJackpot:{type:Boolean,default:!1}},mounted(){this.getImgBgColor()},methods:{handleClick(){const e=this.isJackpot?this.GTM_ELEMENTS.mainJackpotSelectProvider:this.GTM_ELEMENTS.mainProvidersSelect;this.$analytics.clickEvent({button:e,provider:this.provider.name}),this.setGtmGameStartFilter(this.GTM_ELEMENTS.gameStart.mainProviders),this.goToProvider(this.isJackpot)},getImgBgColor(){var e=this;return Object(i["a"])((function*(){var t,a;const s=yield e.getAverageRGB(e.provider.icon);var r;(null===(t=e.$refs.providerCardRef)||void 0===t||t.style.setProperty("--provider-card-bg",s),e.provider.jackpotSum)?null===(a=e.$refs.titleProviderCardRef)||void 0===a||a.style.setProperty("--provider-card-title-color",s):null===(r=e.$refs.sumProviderCardRef)||void 0===r||r.style.setProperty("--provider-card-title-color",s)}))()}}},l=c,m=(a("6129"),a("2877")),p=Object(m["a"])(l,s,r,!1,null,null,null);t["a"]=p.exports},6129:function(e,t,a){"use strict";a("bfee")},a39c:function(e,t,a){"use strict";a("ff54")},ba90:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"jackpot",staticClass:"games-jackpot",on:{mousemove:e.onMousemove,mouseleave:e.hoverHandler}},[t("div",{staticClass:"games-jackpot__inner"},[t("div",{staticClass:"games-jackpot__title-wr"},[t("div",{staticClass:"games-jackpot__title"},[e._v(" "+e._s(e.$t("jackpot"))+" ")])]),t("digital-odometer",{staticClass:"games-jackpot__odometer",attrs:{value:e.valueForDigitalOdometer,duration:100,"currency-symbol":e.gameCurrencySymbol}}),t("div",{staticClass:"games-jackpot__gradient"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--sixth"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--seventh"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--eighth"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--ninth"})],1),e.jackpotProvidersList.length?t("div",{staticClass:"games-jackpot__providers"},[t("cards-slider",{key:"jackpotProviderList",staticClass:"games-jackpot__providers-slider",attrs:{"navigate-id":"jackpotProviderList","skeleton-props":{type:"provider-slider-item"},title:"providers",row:1,"collection-list":e.jackpotProvidersList,"card-size":"m","is-show-all-btn-visible":"","is-head-visible":!1,"is-providers-head":""}},e._l(e.jackpotProvidersList,(function(a,s){return t("play-provider",{key:s,attrs:{provider:a,position:s,"gtm-element":e.GTM_ELEMENTS.main.providers,"is-jackpot":""}})})),1)],1):e._e(),e.isRandomGameVisible?t("games-random",{attrs:{"hovered-game-id":e.hoveredGame,"gtm-element":e.GTM_ELEMENTS.main.random}}):e._e(),t("div",{staticClass:"games-jackpot__img games-jackpot__img--first"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--second"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--third"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--fourth"}),t("div",{staticClass:"games-jackpot__img games-jackpot__img--fifth"})],1)},r=[],i=a("5530"),o=a("ca47"),d=a("60b5"),n=function(){var e=this,t=e._self._c;return e.show?t("div",[e.isReversedCurrency?t("span",{staticClass:"odometer odometer-theme-default",class:e.currencySymbolClass},[e._v(e._s(e.currencySymbol))]):e._e(),t("vue-odometer",{attrs:{value:e.value,duration:e.duration,format:e.format}}),e._v(" "),e.isReversedCurrency?e._e():t("span",{staticClass:"odometer odometer-theme-default",class:e.currencySymbolClass},[e._v(e._s(e.currencySymbol))])],1):e._e()},c=[],l=a("1da1"),m=(a("2198"),a("a026")),p={name:"digital-odometer",components:{VueOdometer:Object(m["defineAsyncComponent"])(()=>a.e("preloadChunk-odometer").then(a.t.bind(null,"acab",7)))},props:{value:{type:Number,default:0},duration:{type:Number,default:2e3},format:{type:String,default:"( ddd)"},currencySymbol:{type:String,default:""},currencySymbolClass:{type:String,default:""},isReversedCurrency:{type:Boolean,default:!1}},data(){return{show:!0}},watch:{currencySymbol(e,t){var a=this;return Object(l["a"])((function*(){e&&e!==t&&(a.show=!1,yield a.$nextTick(),a.show=!0)}))()}}},u=p,v=(a("5583"),a("2877")),g=Object(v["a"])(u,n,c,!1,null,null,null),h=g.exports,f=a("793d"),b=a("3332"),_=a("6022"),y=a("fc9b"),j=function(){var e=this,t=e._self._c;return t("div",{staticClass:"games-random games-slider-wrap"},[t("div",{staticClass:"games-slider__head games-slider__head--disabled"},[t("div",{staticClass:"games-slider__title"},[e._v(" "+e._s(e.$t("second-level-banner.random-game-title"))+" ")])]),t("div",{staticClass:"line line--top"}),t("div",{directives:[{name:"resize",rawName:"v-resize.onlyX",value:e.initializeRandomGames,expression:"initializeRandomGames",modifiers:{onlyX:!0}}],ref:"carouselContainer",staticClass:"games-random-wrap-overflow"},[t("div",{ref:"carousel",staticClass:"games-random-wrap games-slider-wrap--size-s",class:{"games-random-wrap--animated":e.isSway}},e._l(e.popularGamesForView,(function(a,s){return t("games-list-card",{key:`${a.id}-${s}`,staticClass:"swiper-slide",class:[{"big-random-card":+s===+e.activeBigCard},"game-random-"+s],attrs:{"data-game-id":e.getGameIdInSection(a.id,e.navigateId),game:a,position:s,"is-hovered-game":e.hoveredGameId===e.getGameIdInSection(a.id,e.navigateId),"rtp-options":e.getRtpOptions(s),"gtm-element":e.GTM_ELEMENTS.main.random}})})),1)]),t("div",{staticClass:"line line--bottom"}),t("div",{staticClass:"games-random__button-wrapper"},[t("btn",{staticClass:"games-random__button",attrs:{disabled:e.isDisabledButton},on:{click:e.openRandomGame}},[e._v(" "+e._s(e.$t("wheel.spin"))+" ")])],1)])},C=[],k=(a("fb6a"),a("8f12")),G=a("9bd3"),O=a("5005"),P=a("0594"),S=a("b047"),B=a.n(S),I=a("653a"),w=a("0c9e"),L=a("ccd5");const R="random_game",T=6,$=4,A=5,J=300,E=300,M=E+2e3,x=M+2500;var D={name:"games-random",components:{GamesListCard:G["default"],Btn:P["default"]},mixins:[f["a"],O["a"]],props:{hoveredGameId:{type:String,default:""}},data(){return{isSway:!0,isDisabledButton:!1,randomGameId:null,selectedGameId:"",activeBigCard:null,cardOffset:0}},computed:Object(i["a"])(Object(i["a"])({},Object(o["e"])("breakpoints",["isMobileOrTablet"])),{},{navigateId(){return k["oc"].RANDOM},popularGames(){return Object(I["a"])(k["jc"].POPULAR)},popularGamesForView(){const e=this.popularGames.slice(-T),t=this.popularGames.slice(0,T);return[...e,...this.popularGames,...t]}}),watch:{popularGames(e,t){e!==t&&this.setBigCardClass(this.randomGameId)}},mounted(){this.initializeRandomGames()},methods:{getRtpOptions(e){return Number(e)!==Number(this.activeBigCard)?{type:"random"}:null},generateRandomId(){return Math.floor(T+Math.random()*(this.popularGames.length-T))},setRandomGameId(){if(!this.randomGameId)return void(this.randomGameId=this.generateRandomId());let e=this.generateRandomId();while(Math.abs(this.randomGameId-e){const e=this.selectedGameId||this.randomGameId;this.setBigCardClass(e),setTimeout(()=>{this.centerRandomGamesList(e)},E)}),this.selectedGameId)return this.randomGameId=this.selectedGameId-T,void L["d"].selectedGameId.remove();this.setRandomGameId()},centerRandomGamesList:B()((function(e){var t,a;if(null===(t=this.$refs.carousel)||void 0===t||null===(a=t.children)||void 0===a||!a.length)return;const s=document.querySelector(".main-wr"),r=this.$refs.carousel.children[e||this.activeBigCard],i=r.offsetLeft+r.offsetWidth/2-this.$refs.carouselContainer.offsetWidth/2;s&&(this.$refs.carousel.style.transform=`translateX(${-i}px)`,null===s||void 0===s||s.style.setProperty("--carousel-translate",-i+"px"),this.setCardOffset())}),J),openRandomGame(){var e=this;return Object(l["a"])((function*(){e.isSway=!1,e.isDisabledButton=!0,e.setRandomGameId(),e.$analytics.clickEvent({button:w["b"].mainRandomGameSpin}),yield e.$nextTick();const t=e.popularGames[e.randomGameId];if(!t)return;const a=e.randomGameId+T;e.removeBigCardClass(e.activeBigCard),L["d"].scrollTopPositionBeforePlay.set(window.scrollY),setTimeout(()=>{e.scrollToSelector(a)},E),setTimeout(()=>{e.setBigCardClass(a),e.showNotify({type:"success",text:e.$t("notification.random_game",{game:t.title})})},M),setTimeout(()=>{e.isDisabledButton=!1,e.openGame(t,{isDemo:!e.isPlayerAuthorized,place:R}),e.isMobileOrTablet||e.saveSelectedGame(a)},x)}))()},scrollToSelector(e){var t;const a=this.$refs.carousel,s=this.$refs.carouselContainer.offsetWidth/2,r=((null===(t=document.querySelector(".big-random-card"))||void 0===t?void 0:t.offsetWidth)||0)/2,i=s-(Number(e)*this.cardOffset+r);a.style.transition="transform 2s ease-in-out",a.style.transform=`translateX(${i}px)`},setBigCardClass(e){var t,a;this.activeBigCard=e,null===(t=document.querySelector(".game-random-"+e))||void 0===t||null===(a=t.classList)||void 0===a||a.add("big-random-card")},removeBigCardClass(e){var t,a;this.activeBigCard=null,null===(t=document.querySelector(".game-random-"+e))||void 0===t||null===(a=t.classList)||void 0===a||a.remove("big-random-card")},saveSelectedGame(e){L["d"].selectedGameId.set(e)},setCardOffset(){const e=document.querySelector(".game-random-"+$).offsetLeft,t=document.querySelector(".game-random-"+A).offsetLeft;this.cardOffset=t-e}}},F=D,N=(a("f757"),Object(v["a"])(F,j,C,!1,null,null,null)),z=N.exports,W={name:"games-jackpot",components:{DigitalOdometer:h,CardsSlider:b["a"],PlayProvider:_["a"],GamesRandom:z},mixins:[d["a"],f["a"],y["a"]],props:{filter:{type:String,default:""}},data(){return{hoveredGame:""}},computed:Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(o["e"])("jackpots",["currentJackpot","getCasinoJackpot"])),Object(o["e"])("player",["isPlayerAuthorized"])),{},{isRandomGameVisible(){return this.isPlayerAuthorized&&this.tempHidden},valueForDigitalOdometer(){return this.currentJackpot||this.getCasinoJackpot}}),created(){this.tempHidden=!1,this.gtmElement=this.GTM_ELEMENTS.main.jackpot}},q=W,U=(a("a39c"),Object(v["a"])(q,s,r,!1,null,null,null));t["default"]=U.exports},bfee:function(e,t,a){},e95a0:function(e,t,a){},f757:function(e,t,a){"use strict";a("e95a0")},fc9b:function(e,t,a){"use strict";var s=a("b85c"),r=(a("4de4"),a("caad"),a("d81d"),a("14d9"),a("fb6a"),a("4ec9"),a("ac1f"),a("2532"),a("841c"),a("60624")),i=a("ca47"),o=a("8f12"),d=(a("4e82"),{methods:{getSortedProvidersByAlphabetAsc(e){return[...e].sort((e,t)=>e.name>t.name?1:-1)},getSortedProvidersByAlphabetDesc(e){return[...e].sort((e,t)=>e.name[e.id,e]))},allProviders(){return this.sortedProvidersWithIndexShow.map(e=>Object.assign(Object.assign({},e),{providerGamesLength:e.itemsIDS.length,formattedGames:this.getFormattedGamesByProvider(e)}))},providersWithJackPot(){return this.getProvidersWithJackpotAndGamesCount.map(e=>Object.assign(Object.assign(Object.assign({},e),this.getJackpotSumByProviderCode(e.code)),this.getFormattedJackpotGamesByProvider(e)))},providersUrl(){return this.getLanguageForUrl+"/providers"},rowsProviderList(){return this.isMobileOrTablet?u:v}}),methods:{getGamesWithJackpot(e){this.gamesArray.filter(({id:t,collections:a})=>e.includes(t)&&(null===a||void 0===a?void 0:a.includes(o["jc"].JACKPOT)))},getFuseOptions(e,t){return g[e.length]?(t.distance=g[e.length],t):(t.distance=g.default,t)},filterBySearchProvidersResults(e){const t=this.getFuseOptions(e,this.getFuseProviderSearchOptions),a=new r["a"](this.sortedProvidersList,t),s=a.search(Object(l["transliterate"])(e));return s.map(({item:e})=>e)},getProviderGames(e){const t=e.length<=m?1:2;return this.chunkGames(e,t)},chunkGames(e,t){const a=[],s=Math.ceil(e.length/t);return a.push(e.slice(0,s).reverse()),a.push(e.slice(s,e.length).reverse()),a.filter(Boolean)},getFormattedGamesByProvider(e){const t=[];var a,r=Object(s["a"])(e.itemsIDS);try{for(r.s();!(a=r.n()).done;){const e=a.value,s=this.sortedPopularGamesObject.get(e);if(s&&t.push(s),t.length===p)break}}catch(i){r.e(i)}finally{r.f()}return this.getProviderGames(t)},getFormattedJackpotGamesByProvider(e){var t;const a=[];var r,i=Object(s["a"])(e.itemsIDS);try{for(i.s();!(r=i.n()).done;){const e=r.value,s=this.sortedPopularGamesObject.get(e);if(s&&(null===(t=null===s||void 0===s?void 0:s.collections)||void 0===t?void 0:t.includes(o["jc"].JACKPOT))&&(a.push(s),a.length===p))break}}catch(d){i.e(d)}finally{i.f()}return{formattedGames:this.getProviderGames(a),providerGamesLength:e.jackpotGamesCount,hasJackpot:a.length>0}},getJackpotSumByProviderCode(e){const t=this.getProvidersJackpots[e]||0,a=t?`${this.$options.filters.with_separator(t)} ${this.gameCurrencySymbol}`:this.$t("jackpot");return{jackpotSum:t,formattedJackpotSum:a,urlProvider:e+"?jackpotGames=active"}}}}},ff54:function(e,t,a){}}]);