(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PlayProvidersSlider"],{"2ee5":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r("14d9");var s=r("ca47");const i="/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,r){"use strict";r("99af"),r("a630"),r("d81d"),r("14d9"),r("4e82"),r("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 r=new Map(e.map(e=>[e.id,e])),s=[];t.forEach(e=>{r.has(e)&&(s.push(r.get(e)),r.delete(e))});const i=Array.from(r.values());return s.concat(i.sort(this.sortGameById))},getSortedGamesById(e){return[...e].sort(this.sortGameById)},sortGameById:(e,t)=>e.id>t.id?-1:1}}},6022:function(e,t,r){"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"})])},i=[],o=r("1da1"),a=r("2ee5"),d=r("60e8"),c=r("a174"),n={name:"play-provider",mixins:[a["b"],d["a"],c["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(o["a"])((function*(){var t,r;const s=yield e.getAverageRGB(e.provider.icon);var i;(null===(t=e.$refs.providerCardRef)||void 0===t||t.style.setProperty("--provider-card-bg",s),e.provider.jackpotSum)?null===(r=e.$refs.titleProviderCardRef)||void 0===r||r.style.setProperty("--provider-card-title-color",s):null===(i=e.$refs.sumProviderCardRef)||void 0===i||i.style.setProperty("--provider-card-title-color",s)}))()}}},l=n,p=(r("6129"),r("2877")),v=Object(p["a"])(l,s,i,!1,null,null,null);t["a"]=v.exports},6129:function(e,t,r){"use strict";r("bfee")},bcdf6:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e._self._c;return e.providersList.length?t("cards-slider",{key:"providerList",attrs:{"navigate-id":"provider-list","skeleton-props":{type:"provider-slider-item"},"gtm-element":e.GTM_ELEMENTS.providers,title:"providers",row:e.rowsProviderList,"collection-list":e.providersList,"is-show-all-btn-visible":"","card-size":"m","section-url":e.providersUrl}},e._l(e.providersList,(function(e,r){return t("play-provider",{key:r,attrs:{provider:e,position:r}})})),1):e._e()},i=[],o=r("fc9b"),a=r("3332"),d=r("6022"),c={name:"play-providers-slider",components:{PlayProvider:d["a"],CardsSlider:a["a"]},mixins:[o["a"]]},n=c,l=r("2877"),p=Object(l["a"])(n,s,i,!1,null,null,null);t["default"]=p.exports},bfee:function(e,t,r){},fc9b:function(e,t,r){"use strict";var s=r("b85c"),i=(r("4de4"),r("caad"),r("d81d"),r("14d9"),r("fb6a"),r("4ec9"),r("ac1f"),r("2532"),r("841c"),r("60624")),o=r("ca47"),a=r("8f12"),d=(r("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:m}}),methods:{getGamesWithJackpot(e){this.gamesArray.filter(({id:t,collections:r})=>e.includes(t)&&(null===r||void 0===r?void 0:r.includes(a["jc"].JACKPOT)))},getFuseOptions(e,t){return h[e.length]?(t.distance=h[e.length],t):(t.distance=h.default,t)},filterBySearchProvidersResults(e){const t=this.getFuseOptions(e,this.getFuseProviderSearchOptions),r=new i["a"](this.sortedProvidersList,t),s=r.search(Object(l["transliterate"])(e));return s.map(({item:e})=>e)},getProviderGames(e){const t=e.length<=p?1:2;return this.chunkGames(e,t)},chunkGames(e,t){const r=[],s=Math.ceil(e.length/t);return r.push(e.slice(0,s).reverse()),r.push(e.slice(s,e.length).reverse()),r.filter(Boolean)},getFormattedGamesByProvider(e){const t=[];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&&t.push(s),t.length===v)break}}catch(o){i.e(o)}finally{i.f()}return this.getProviderGames(t)},getFormattedJackpotGamesByProvider(e){var t;const r=[];var i,o=Object(s["a"])(e.itemsIDS);try{for(o.s();!(i=o.n()).done;){const e=i.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(a["jc"].JACKPOT))&&(r.push(s),r.length===v))break}}catch(d){o.e(d)}finally{o.f()}return{formattedGames:this.getProviderGames(r),providerGamesLength:e.jackpotGamesCount,hasJackpot:r.length>0}},getJackpotSumByProviderCode(e){const t=this.getProvidersJackpots[e]||0,r=t?`${this.$options.filters.with_separator(t)} ${this.gameCurrencySymbol}`:this.$t("jackpot");return{jackpotSum:t,formattedJackpotSum:r,urlProvider:e+"?jackpotGames=active"}}}}}}]);