@everymatrix/casino-page-nd 1.94.4 → 1.94.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-BsorgQtD.js → CasinoCalendar-BXqn5sSJ.js} +34 -34
- package/components/{CasinoCalendar-Bar1KVPb.js → CasinoCalendar-DdqyHrIi.js} +33 -33
- package/components/{CasinoCalendar-B-ElK3ln.cjs → CasinoCalendar-f9ob2sFv.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-BoTdowtn.js → CasinoCalendarDailyDetails-BBe0-NK5.js} +35 -35
- package/components/{CasinoCalendarDailyDetails-DLxk4yik.cjs → CasinoCalendarDailyDetails-CHdX5zc8.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-ChU8Nf17.js → CasinoCalendarDailyDetails-ewHsXmDz.js} +44 -44
- package/components/{CasinoCalendarDailyItem-DVlQpd2h.js → CasinoCalendarDailyItem-BisTMrw_.js} +33 -33
- package/components/{CasinoCalendarDailyItem-B1BOZqbk.cjs → CasinoCalendarDailyItem-Bo0BHXKg.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-Yoj0Yzg3.js → CasinoCalendarDailyItem-Q3MzwDts.js} +35 -35
- package/components/{CasinoCollectionsProviders-D-lUQePw.js → CasinoCollectionsProviders-C7YIthiK.js} +54 -54
- package/components/{CasinoCollectionsProviders-DDuUDFgp.cjs → CasinoCollectionsProviders-CCZelLp2.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-BSIyPEOO.js → CasinoCollectionsProviders-CU88qQMT.js} +77 -77
- package/components/{CasinoFavoritesSectionNd-B1W3Wz8p.js → CasinoFavoritesSectionNd-CYfialzn.js} +19 -19
- package/components/{CasinoFavoritesSectionNd-CY10i3wA.cjs → CasinoFavoritesSectionNd-CZ1st2up.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-aKXCReO2.js → CasinoFavoritesSectionNd-HKJugDpB.js} +30 -30
- package/components/{CasinoFilter-BwCwXqWa.cjs → CasinoFilter-BviseRbU.cjs} +1 -1
- package/components/{CasinoFilter-gCiPR__8.js → CasinoFilter-Cd3YMCjI.js} +61 -61
- package/components/{CasinoFilter-BQsFbRt1.js → CasinoFilter-DZtIPf04.js} +72 -72
- package/components/{CasinoGameThumbnailNd-C9zOKRFB.cjs → CasinoGameThumbnailNd-CIIH4ov5.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-B7GdVkxq.js → CasinoGameThumbnailNd-DfrIBuE8.js} +47 -47
- package/components/{CasinoGameThumbnailNd-Dp86Mafo.js → CasinoGameThumbnailNd-qZDUi7bK.js} +44 -44
- package/components/{CasinoGamesCategorySectionNd-D-Wuvl8U.js → CasinoGamesCategorySectionNd-BeGuRKUV.js} +51 -51
- package/components/{CasinoGamesCategorySectionNd-C2UoZFWC.cjs → CasinoGamesCategorySectionNd-DmcGqSFC.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-BBT_fRD_.js → CasinoGamesCategorySectionNd-QyzFexdL.js} +88 -88
- package/components/{CasinoJackpotBanner-BsZsSC5q.js → CasinoJackpotBanner-B_16bQIJ.js} +57 -57
- package/components/{CasinoJackpotBanner-d2UGqr4v.cjs → CasinoJackpotBanner-BgVQzBT9.cjs} +1 -1
- package/components/{CasinoJackpotBanner--hB_JhfK.js → CasinoJackpotBanner-Chzhtion.js} +97 -97
- package/components/{CasinoLastPlayedSectionNd-BS_l-cZ0.js → CasinoLastPlayedSectionNd-BOYA9BZi.js} +15 -15
- package/components/{CasinoLastPlayedSectionNd-ClV5hJ3T.js → CasinoLastPlayedSectionNd-CuKAruU8.js} +27 -27
- package/components/{CasinoLastPlayedSectionNd-CSUr2ClP.cjs → CasinoLastPlayedSectionNd-KZNXKC5c.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-D3CZA_XD.js → CasinoMostPlayedSectionNd-BNw2NHF0.js} +36 -36
- package/components/{CasinoMostPlayedSectionNd-CQXe7gZp.js → CasinoMostPlayedSectionNd-BYlAY4RO.js} +37 -37
- package/components/{CasinoMostPlayedSectionNd-DF2VZSVY.cjs → CasinoMostPlayedSectionNd-DKnN3rEW.cjs} +1 -1
- package/components/{CasinoMyGamesNd-oYIN8A8y.js → CasinoMyGamesNd-BGusGuB_.js} +25 -25
- package/components/{CasinoMyGamesNd-DUkQM67I.js → CasinoMyGamesNd-C05ASC1X.js} +139 -139
- package/components/{CasinoMyGamesNd-p3By5ie3.cjs → CasinoMyGamesNd-D6RmmeUO.cjs} +1 -1
- package/components/{CasinoPageNd-u8Nxbkgk.js → CasinoPageNd-BYwB2SrU.js} +62 -62
- package/components/{CasinoPageNd-BoxT7vNT.js → CasinoPageNd-CvwQrmeC.js} +63 -63
- package/components/{CasinoPageNd-ByOWge44.cjs → CasinoPageNd-DkcMiqM_.cjs} +1 -1
- package/components/{CasinoRandomGame-DYHpkkIU.cjs → CasinoRandomGame-CSKHxblX.cjs} +1 -1
- package/components/{CasinoRandomGame-DmdUfx7P.js → CasinoRandomGame-CoXgBuKo.js} +25 -25
- package/components/{CasinoRandomGame-Dub3IIU6.js → CasinoRandomGame-DZSB2qWm.js} +57 -57
- package/components/{CasinoSearchNd-DJKl9giS.js → CasinoSearchNd-DnPGsjFN.js} +170 -166
- package/components/{CasinoSearchNd-DAtlVgS9.cjs → CasinoSearchNd-Drf3R8N1.cjs} +1 -1
- package/components/{CasinoSearchNd-CMWbs-xQ.js → CasinoSearchNd-sS9yxFZB.js} +196 -192
- package/components/{CasinoSort-BdYCRTbw.cjs → CasinoSort-Be7I-Bkl.cjs} +1 -1
- package/components/{CasinoSort-BKNBrE2Z.js → CasinoSort-CCDDquSi.js} +23 -23
- package/components/{CasinoSort-Bj5VCzfQ.js → CasinoSort-CFbNQrwp.js} +40 -40
- package/components/{CasinoWinners-CVQnA2jb.cjs → CasinoWinners-B4wRzzvv.cjs} +1 -1
- package/components/{CasinoWinners-CJWsbB8X.js → CasinoWinners-BOD7ymCO.js} +55 -55
- package/components/{CasinoWinners-BB69_VBL.js → CasinoWinners-DYeVwT_K.js} +48 -48
- package/components/{GeneralAnimationLoading-BosK264F.cjs → GeneralAnimationLoading-DD1kmHGW.cjs} +1 -1
- package/components/{GeneralAnimationLoading-D9Xr0Ohx.js → GeneralAnimationLoading-DLWyPAPZ.js} +4 -4
- package/components/{GeneralAnimationLoading-Ddb3rUV4.js → GeneralAnimationLoading-DSzlRxD5.js} +6 -6
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/lazy/{casino-calendar-BsTNKtIb.cjs → casino-calendar-BMr6vuSW.cjs} +1 -1
- package/lazy/{casino-calendar-CRtCPSqI.js → casino-calendar-BhmwgnLf.js} +1 -1
- package/lazy/{casino-calendar-C3pFBr-V.js → casino-calendar-CDGAH9KV.js} +1 -1
- package/lazy/{casino-calendar-daily-details-CMNO8yVt.js → casino-calendar-daily-details-BZ6lWliO.js} +1 -1
- package/lazy/{casino-calendar-daily-details-CFdZ0y8g.cjs → casino-calendar-daily-details-CkvPWhRn.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details--hiprlav.js → casino-calendar-daily-details-CreJXTIY.js} +1 -1
- package/lazy/{casino-calendar-daily-item-Dt5sMvLn.js → casino-calendar-daily-item-B294skVH.js} +1 -1
- package/lazy/{casino-calendar-daily-item-CcpGZGk2.js → casino-calendar-daily-item-BPg2o_ak.js} +1 -1
- package/lazy/{casino-calendar-daily-item-DBgzZi6h.cjs → casino-calendar-daily-item-OzC20xXV.cjs} +1 -1
- package/lazy/{casino-collections-providers-C-IXWoMt.js → casino-collections-providers-BmEfkamW.js} +1 -1
- package/lazy/{casino-collections-providers-ChwusPlU.cjs → casino-collections-providers-CS7TN5Jq.cjs} +1 -1
- package/lazy/{casino-collections-providers-CZlcLi3I.js → casino-collections-providers-D-Lac16c.js} +1 -1
- package/lazy/{casino-favorites-section-nd-IDnSx6LY.js → casino-favorites-section-nd-BazZLv4x.js} +1 -1
- package/lazy/{casino-favorites-section-nd-Ddu_8ZpD.cjs → casino-favorites-section-nd-BbJYgzDZ.cjs} +1 -1
- package/lazy/{casino-favorites-section-nd-MgjY7aDg.js → casino-favorites-section-nd-nPKsz6I2.js} +1 -1
- package/lazy/{casino-filter-DxJEhjqm.cjs → casino-filter-0hD3kNKp.cjs} +1 -1
- package/lazy/{casino-filter-CvdGS5WS.js → casino-filter-BpUtqzOq.js} +1 -1
- package/lazy/{casino-filter-x6iQmG8o.js → casino-filter-LrYoEa2q.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-fLseOtb1.js → casino-game-thumbnail-nd-BpZR5RyP.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-CmbS4UC5.js → casino-game-thumbnail-nd-Dw6vijuw.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-BNX3nQzO.cjs → casino-game-thumbnail-nd-scS9CFBJ.cjs} +1 -1
- package/lazy/{casino-games-category-section-nd-4wlUiWn8.cjs → casino-games-category-section-nd-BRF_H9fJ.cjs} +1 -1
- package/lazy/{casino-games-category-section-nd-B5b_8VTG.js → casino-games-category-section-nd-BlkiwQIq.js} +1 -1
- package/lazy/{casino-games-category-section-nd-mWetVUsk.js → casino-games-category-section-nd-_dwBrjcT.js} +1 -1
- package/lazy/{casino-jackpot-banner-CBykDPkn.js → casino-jackpot-banner-7aQVJA-u.js} +1 -1
- package/lazy/{casino-jackpot-banner-Dclo86eY.js → casino-jackpot-banner-BZR61rlM.js} +1 -1
- package/lazy/{casino-jackpot-banner-BRGk1i5x.cjs → casino-jackpot-banner-DqljUZ3D.cjs} +1 -1
- package/lazy/{casino-last-played-section-nd-DNynAP0O.js → casino-last-played-section-nd-BCMeN_xL.js} +1 -1
- package/lazy/{casino-last-played-section-nd-Y8YRdawj.js → casino-last-played-section-nd-Dk09Q6Oo.js} +1 -1
- package/lazy/{casino-last-played-section-nd-BENyEKvl.cjs → casino-last-played-section-nd-DyHep2bs.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-uOEOVr80.js → casino-most-played-section-nd-DGErR8Qy.js} +1 -1
- package/lazy/{casino-most-played-section-nd-CDxisfSd.cjs → casino-most-played-section-nd-DeeoJS9L.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd--IDhBmzV.js → casino-most-played-section-nd-MahPsOcg.js} +1 -1
- package/lazy/{casino-my-games-nd-shBn8eVI.js → casino-my-games-nd-B9th_ITS.js} +1 -1
- package/lazy/{casino-my-games-nd-BzZqvl8m.cjs → casino-my-games-nd-Bavk_uVF.cjs} +1 -1
- package/lazy/{casino-my-games-nd-hhOAoTf-.js → casino-my-games-nd-Cr4euW7O.js} +1 -1
- package/lazy/{casino-random-game-Cat_tAZT.js → casino-random-game-BCbXjFco.js} +1 -1
- package/lazy/{casino-random-game-Doo9yzQt.js → casino-random-game-D89lDDvz.js} +1 -1
- package/lazy/{casino-random-game-eE6hTWNw.cjs → casino-random-game-DiBN599Y.cjs} +1 -1
- package/lazy/{casino-search-nd-LFipqxYz.js → casino-search-nd-B-trMEPg.js} +1 -1
- package/lazy/{casino-search-nd-B5qv7Mra.cjs → casino-search-nd-B313a-hZ.cjs} +1 -1
- package/lazy/{casino-search-nd--jk190OZ.js → casino-search-nd-DX9y7hrV.js} +1 -1
- package/lazy/{casino-sort-BcuCWb8z.js → casino-sort-BX6cf-yt.js} +1 -1
- package/lazy/{casino-sort-CVYLHFfC.cjs → casino-sort-DYdgpEhn.cjs} +1 -1
- package/lazy/{casino-sort-CTKb0shJ.js → casino-sort-LsdC94Za.js} +1 -1
- package/lazy/{casino-winners-C9Jj7SyY.cjs → casino-winners-B5_Q3bvn.cjs} +1 -1
- package/lazy/{casino-winners-jTx87PeA.js → casino-winners-BORY4UJw.js} +1 -1
- package/lazy/{casino-winners-DGiPC9oE.js → casino-winners-I74kUrkL.js} +1 -1
- package/lazy/{general-animation-loading-BSWx-kfp.js → general-animation-loading--byYFuL2.js} +1 -1
- package/lazy/{general-animation-loading-CxOn6BQv.js → general-animation-loading-D1Tz4Ui8.js} +1 -1
- package/lazy/{general-animation-loading-HWLiLPqG.cjs → general-animation-loading-oYXMnrSW.cjs} +1 -1
- package/package.json +1 -1
package/components/{CasinoCollectionsProviders-D-lUQePw.js → CasinoCollectionsProviders-C7YIthiK.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { c as ye, b as Ce, S as _e, x as we, I as Se, r as x, e as ke, B as F, n as M, y as j, o as C, i as Ge, a as Pe, E as Le, z as xe, g as X, f as m, q as B, m as ne, N as R, d as b, V as I, Q as T, G as Me, A as z, P as N, R as O, T as je, J as Te, K as Fe, L as Be, j as ze } from "./CasinoPageNd-BYwB2SrU.js";
|
|
2
|
+
function Y(t, e) {
|
|
3
3
|
ye(t, e);
|
|
4
4
|
}
|
|
5
5
|
function Oe(t) {
|
|
6
6
|
Ce.set(t);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const D = {
|
|
9
9
|
en: {
|
|
10
10
|
collections: "Game Collections",
|
|
11
11
|
providers: "Game Providers",
|
|
@@ -102,7 +102,7 @@ const Q = {
|
|
|
102
102
|
loading: "Loading, please wait ..."
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
function
|
|
105
|
+
function Ee(t) {
|
|
106
106
|
ke(t, "svelte-nnjza6", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
107
107
|
}
|
|
108
108
|
function $(t, e, i) {
|
|
@@ -113,7 +113,7 @@ function ee(t, e, i) {
|
|
|
113
113
|
const n = t.slice();
|
|
114
114
|
return n[44] = e[i], n;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function He(t) {
|
|
117
117
|
let e, i, n, l = (
|
|
118
118
|
/*type*/
|
|
119
119
|
(t[0] === "vendor" ? (
|
|
@@ -135,7 +135,7 @@ function Ee(t) {
|
|
|
135
135
|
a[d] = le($(t, f, d));
|
|
136
136
|
return {
|
|
137
137
|
c() {
|
|
138
|
-
e = C("div"), i = C("div"), n = C("p"), r =
|
|
138
|
+
e = C("div"), i = C("div"), n = C("p"), r = I(l), c = T(), s && s.c(), _ = T(), y = C("div");
|
|
139
139
|
for (let d = 0; d < a.length; d += 1)
|
|
140
140
|
a[d].c();
|
|
141
141
|
m(n, "class", "Title"), m(i, "class", "CategoriesHeader"), m(y, "class", "CategoriesSlider"), m(e, "class", S = "CasinoCollectionsProviders " + /*mobile*/
|
|
@@ -157,7 +157,7 @@ function Ee(t) {
|
|
|
157
157
|
) : (
|
|
158
158
|
/*$_*/
|
|
159
159
|
d[10]("collections")
|
|
160
|
-
)) + "") &&
|
|
160
|
+
)) + "") && R(r, l), /*numberOfSlides*/
|
|
161
161
|
d[7] > /*numberOfVisibleSlides*/
|
|
162
162
|
d[8] ? s ? s.p(d, g) : (s = te(d), s.c(), s.m(i, null)) : s && (s.d(1), s = null), g[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
|
163
163
|
24590) {
|
|
@@ -193,7 +193,7 @@ function Ae(t) {
|
|
|
193
193
|
m(i, n) {
|
|
194
194
|
j(i, e, n);
|
|
195
195
|
},
|
|
196
|
-
p:
|
|
196
|
+
p: F,
|
|
197
197
|
d(i) {
|
|
198
198
|
i && M(e);
|
|
199
199
|
}
|
|
@@ -203,17 +203,17 @@ function te(t) {
|
|
|
203
203
|
let e, i, n, l, r, c;
|
|
204
204
|
return {
|
|
205
205
|
c() {
|
|
206
|
-
e = C("div"), i = C("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n =
|
|
206
|
+
e = C("div"), i = C("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = T(), l = C("button"), l.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', m(e, "class", "ButtonsContainer");
|
|
207
207
|
},
|
|
208
208
|
m(_, y) {
|
|
209
209
|
j(_, e, y), b(e, i), b(e, n), b(e, l), r || (c = [
|
|
210
|
-
|
|
210
|
+
z(
|
|
211
211
|
i,
|
|
212
212
|
"click",
|
|
213
213
|
/*sliderScrollLeft*/
|
|
214
214
|
t[11]
|
|
215
215
|
),
|
|
216
|
-
|
|
216
|
+
z(
|
|
217
217
|
l,
|
|
218
218
|
"click",
|
|
219
219
|
/*sliderScrollRight*/
|
|
@@ -221,7 +221,7 @@ function te(t) {
|
|
|
221
221
|
)
|
|
222
222
|
], r = !0);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: F,
|
|
225
225
|
d(_) {
|
|
226
226
|
_ && M(e), r = !1, Me(c);
|
|
227
227
|
}
|
|
@@ -234,7 +234,7 @@ function Ne(t) {
|
|
|
234
234
|
), n;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
e = C("p"), n =
|
|
237
|
+
e = C("p"), n = I(i), m(e, "class", "CategorySlideTitle");
|
|
238
238
|
},
|
|
239
239
|
m(l, r) {
|
|
240
240
|
j(l, e, r), b(e, n);
|
|
@@ -242,14 +242,14 @@ function Ne(t) {
|
|
|
242
242
|
p(l, r) {
|
|
243
243
|
r[0] & /*gameCategories*/
|
|
244
244
|
8 && i !== (i = /*category*/
|
|
245
|
-
l[41].name + "") &&
|
|
245
|
+
l[41].name + "") && R(n, i);
|
|
246
246
|
},
|
|
247
247
|
d(l) {
|
|
248
248
|
l && M(e);
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Re(t) {
|
|
253
253
|
let e, i, n;
|
|
254
254
|
return {
|
|
255
255
|
c() {
|
|
@@ -279,7 +279,7 @@ function ie(t) {
|
|
|
279
279
|
), n, l;
|
|
280
280
|
return {
|
|
281
281
|
c() {
|
|
282
|
-
e = C("p"), n =
|
|
282
|
+
e = C("p"), n = I(i), m(e, "title", l = /*game*/
|
|
283
283
|
t[44].name);
|
|
284
284
|
},
|
|
285
285
|
m(r, c) {
|
|
@@ -288,7 +288,7 @@ function ie(t) {
|
|
|
288
288
|
p(r, c) {
|
|
289
289
|
c[0] & /*gameCategories*/
|
|
290
290
|
8 && i !== (i = /*game*/
|
|
291
|
-
r[44].name + "") &&
|
|
291
|
+
r[44].name + "") && R(n, i), c[0] & /*gameCategories*/
|
|
292
292
|
8 && l !== (l = /*game*/
|
|
293
293
|
r[44].name) && m(e, "title", l);
|
|
294
294
|
},
|
|
@@ -314,12 +314,12 @@ function oe(t) {
|
|
|
314
314
|
);
|
|
315
315
|
return {
|
|
316
316
|
c() {
|
|
317
|
-
e = C("div"), i = C("img"), r =
|
|
317
|
+
e = C("div"), i = C("img"), r = T(), s && s.c(), c = T(), m(i, "class", "CategorySlideGameImage"), O(i.src, n = /*game*/
|
|
318
318
|
t[44].defaultThumbnail) || m(i, "src", n), m(i, "alt", l = /*game*/
|
|
319
319
|
t[44].name), m(e, "class", "CategorySlideGames");
|
|
320
320
|
},
|
|
321
321
|
m(f, a) {
|
|
322
|
-
j(f, e, a), b(e, i), b(e, r), s && s.m(e, null), b(e, c), _ || (y =
|
|
322
|
+
j(f, e, a), b(e, i), b(e, r), s && s.m(e, null), b(e, c), _ || (y = z(i, "click", je(S)), _ = !0);
|
|
323
323
|
},
|
|
324
324
|
p(f, a) {
|
|
325
325
|
t = f, a[0] & /*gameCategories*/
|
|
@@ -341,7 +341,7 @@ function le(t) {
|
|
|
341
341
|
/*titletype*/
|
|
342
342
|
u[1] === "logo"
|
|
343
343
|
)
|
|
344
|
-
return
|
|
344
|
+
return Re;
|
|
345
345
|
if (
|
|
346
346
|
/*titletype*/
|
|
347
347
|
u[1] === "title"
|
|
@@ -365,10 +365,10 @@ function le(t) {
|
|
|
365
365
|
}
|
|
366
366
|
return {
|
|
367
367
|
c() {
|
|
368
|
-
e = C("div"), i = C("div"), n = C("div"), a && a.c(), l =
|
|
368
|
+
e = C("div"), i = C("div"), n = C("div"), a && a.c(), l = T(), r = C("div");
|
|
369
369
|
for (let u = 0; u < g.length; u += 1)
|
|
370
370
|
g[u].c();
|
|
371
|
-
_ =
|
|
371
|
+
_ = T(), m(n, "class", "CategorySlideTopContainer"), m(r, "class", "CategorySlideGameContainer"), m(i, "class", c = "CategorySlide " + /*category*/
|
|
372
372
|
(t[41]?.flag[0] === "vendor" ? "CategorySlideNoHighlight" : "")), N(i, "background-image", "url(" + /*category*/
|
|
373
373
|
t[41]?.background + ")"), N(i, "background-size", "cover"), m(e, "class", "CategoriesSliderWrapper Animation");
|
|
374
374
|
},
|
|
@@ -376,7 +376,7 @@ function le(t) {
|
|
|
376
376
|
j(u, e, v), b(e, i), b(i, n), a && a.m(n, null), b(i, l), b(i, r);
|
|
377
377
|
for (let p = 0; p < g.length; p += 1)
|
|
378
378
|
g[p] && g[p].m(r, null);
|
|
379
|
-
b(e, _), y || (S =
|
|
379
|
+
b(e, _), y || (S = z(i, "click", h), y = !0);
|
|
380
380
|
},
|
|
381
381
|
p(u, v) {
|
|
382
382
|
if (t = u, f === (f = s(t)) && a ? a.p(t, v) : (a && a.d(1), a = f && f(t), a && (a.c(), a.m(n, null))), v[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
|
@@ -405,12 +405,12 @@ function le(t) {
|
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ie(t) {
|
|
409
409
|
let e;
|
|
410
410
|
function i(r, c) {
|
|
411
411
|
return (
|
|
412
412
|
/*isLoading*/
|
|
413
|
-
r[6] ? Ae :
|
|
413
|
+
r[6] ? Ae : He
|
|
414
414
|
);
|
|
415
415
|
}
|
|
416
416
|
let n = i(t), l = n(t);
|
|
@@ -424,8 +424,8 @@ function Re(t) {
|
|
|
424
424
|
p(r, c) {
|
|
425
425
|
n === (n = i(r)) && l ? l.p(r, c) : (l.d(1), l = n(r), l && (l.c(), l.m(e, null)));
|
|
426
426
|
},
|
|
427
|
-
i:
|
|
428
|
-
o:
|
|
427
|
+
i: F,
|
|
428
|
+
o: F,
|
|
429
429
|
d(r) {
|
|
430
430
|
r && M(e), l.d(), t[26](null);
|
|
431
431
|
}
|
|
@@ -434,23 +434,23 @@ function Re(t) {
|
|
|
434
434
|
function Ue(t, e, i) {
|
|
435
435
|
let n;
|
|
436
436
|
Ge(t, Pe, (o) => i(10, n = o));
|
|
437
|
-
let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: c = "" } = e, { type: _ = "" } = e, { titletype: y = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: d } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U,
|
|
437
|
+
let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: c = "" } = e, { type: _ = "" } = e, { titletype: y = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: d } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U, E, V = 0, H = 50, A = !1, G, re = window.navigator.userAgent, q, ae;
|
|
438
438
|
const se = () => {
|
|
439
439
|
fetch(f).then((w) => w.json()).then((w) => {
|
|
440
440
|
Object.keys(w).forEach((P) => {
|
|
441
|
-
|
|
441
|
+
Y(P, w[P]);
|
|
442
442
|
});
|
|
443
443
|
}).catch((w) => {
|
|
444
444
|
console.log(w);
|
|
445
445
|
});
|
|
446
446
|
};
|
|
447
|
-
Object.keys(
|
|
448
|
-
|
|
447
|
+
Object.keys(D).forEach((o) => {
|
|
448
|
+
Y(o, D[o]);
|
|
449
449
|
});
|
|
450
|
-
const
|
|
450
|
+
const W = () => {
|
|
451
451
|
const o = new URL(`${l}/v2/casino/groups/${r}`);
|
|
452
|
-
o.searchParams.append("language", c), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${
|
|
453
|
-
i(6, h = !1), w.total >
|
|
452
|
+
o.searchParams.append("language", c), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${V},limit=${H}`), fetch(o.href).then((w) => w.json()).then((w) => {
|
|
453
|
+
i(6, h = !1), w.total > H && (V += 50, H += 50, i(22, A = !0));
|
|
454
454
|
let P = w.items.map((L) => ({
|
|
455
455
|
id: L.id,
|
|
456
456
|
name: L.name,
|
|
@@ -465,9 +465,9 @@ function Ue(t, e, i) {
|
|
|
465
465
|
const o = G.getRootNode().host;
|
|
466
466
|
o.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: o } }));
|
|
467
467
|
}, K = (o) => {
|
|
468
|
-
|
|
468
|
+
E = [...u.children], E.forEach((w, P) => {
|
|
469
469
|
w.style.transform = `translateX(${100 * (o ? P - o : P)}%)`;
|
|
470
|
-
}), U =
|
|
470
|
+
}), U = E[0]?.getBoundingClientRect().width, ce();
|
|
471
471
|
}, ce = () => {
|
|
472
472
|
i(8, k = Math.floor(u.clientWidth / U));
|
|
473
473
|
}, J = () => {
|
|
@@ -476,7 +476,7 @@ function Ue(t, e, i) {
|
|
|
476
476
|
v === 0 ? v = p - k : v - k < -1 ? v = 0 : v--, J();
|
|
477
477
|
}, ue = () => {
|
|
478
478
|
v === p - k ? v = 0 : p - k < v + 1 ? v = p - k : v++, J();
|
|
479
|
-
},
|
|
479
|
+
}, Z = (o, w, P, L) => {
|
|
480
480
|
window.postMessage(
|
|
481
481
|
{
|
|
482
482
|
type: "OpenCollectionsProvidersGame",
|
|
@@ -490,7 +490,7 @@ function Ue(t, e, i) {
|
|
|
490
490
|
context: "CollectionsProviders",
|
|
491
491
|
gameName: `${P}`
|
|
492
492
|
});
|
|
493
|
-
},
|
|
493
|
+
}, Q = (o) => {
|
|
494
494
|
window.postMessage(
|
|
495
495
|
{
|
|
496
496
|
type: "OpenCollectionsProvidersCategory",
|
|
@@ -501,16 +501,16 @@ function Ue(t, e, i) {
|
|
|
501
501
|
}, me = () => {
|
|
502
502
|
Oe(c);
|
|
503
503
|
};
|
|
504
|
-
Le(() => (i(9,
|
|
504
|
+
Le(() => (i(9, q = xe(re)), () => {
|
|
505
505
|
}));
|
|
506
|
-
const fe = (o) =>
|
|
506
|
+
const fe = (o) => Z(o.gameId, o.launchUrl, o.name, o.subVendor), pe = (o) => Q(o.id);
|
|
507
507
|
function he(o) {
|
|
508
|
-
|
|
508
|
+
X[o ? "unshift" : "push"](() => {
|
|
509
509
|
u = o, i(4, u);
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
function ve(o) {
|
|
513
|
-
|
|
513
|
+
X[o ? "unshift" : "push"](() => {
|
|
514
514
|
G = o, i(5, G);
|
|
515
515
|
});
|
|
516
516
|
}
|
|
@@ -518,14 +518,14 @@ function Ue(t, e, i) {
|
|
|
518
518
|
"endpoint" in o && i(15, l = o.endpoint), "datasource" in o && i(16, r = o.datasource), "lang" in o && i(17, c = o.lang), "type" in o && i(0, _ = o.type), "titletype" in o && i(1, y = o.titletype), "clientstyling" in o && i(18, S = o.clientstyling), "clientstylingurl" in o && i(19, s = o.clientstylingurl), "translationurl" in o && i(20, f = o.translationurl), "collectionprovidersgamenames" in o && i(2, a = o.collectionprovidersgamenames), "mbsource" in o && i(21, d = o.mbsource);
|
|
519
519
|
}, t.$$.update = () => {
|
|
520
520
|
t.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
521
|
-
229376 && l && r && c &&
|
|
521
|
+
229376 && l && r && c && W(), t.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
|
522
522
|
24 && g && u && K(), t.$$.dirty[0] & /*lang*/
|
|
523
523
|
131072 && c && me(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
524
|
-
262176 && S && G &&
|
|
525
|
-
524320 && s && G &&
|
|
524
|
+
262176 && S && G && Te(G, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
525
|
+
524320 && s && G && Fe(G, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
526
526
|
2097184 && G && Be(G, `${d}.Style`, ae), t.$$.dirty[0] & /*translationurl*/
|
|
527
527
|
1048576 && f && se(), t.$$.dirty[0] & /*paginationrequired*/
|
|
528
|
-
4194304 && A &&
|
|
528
|
+
4194304 && A && W();
|
|
529
529
|
}, [
|
|
530
530
|
_,
|
|
531
531
|
y,
|
|
@@ -536,12 +536,12 @@ function Ue(t, e, i) {
|
|
|
536
536
|
h,
|
|
537
537
|
p,
|
|
538
538
|
k,
|
|
539
|
-
|
|
539
|
+
q,
|
|
540
540
|
n,
|
|
541
541
|
ge,
|
|
542
542
|
ue,
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
Z,
|
|
544
|
+
Q,
|
|
545
545
|
l,
|
|
546
546
|
r,
|
|
547
547
|
c,
|
|
@@ -556,13 +556,13 @@ function Ue(t, e, i) {
|
|
|
556
556
|
ve
|
|
557
557
|
];
|
|
558
558
|
}
|
|
559
|
-
class
|
|
559
|
+
class Ve extends _e {
|
|
560
560
|
constructor(e) {
|
|
561
561
|
super(), we(
|
|
562
562
|
this,
|
|
563
563
|
e,
|
|
564
564
|
Ue,
|
|
565
|
-
|
|
565
|
+
Ie,
|
|
566
566
|
Se,
|
|
567
567
|
{
|
|
568
568
|
endpoint: 15,
|
|
@@ -576,7 +576,7 @@ class We extends _e {
|
|
|
576
576
|
collectionprovidersgamenames: 2,
|
|
577
577
|
mbsource: 21
|
|
578
578
|
},
|
|
579
|
-
|
|
579
|
+
Ee,
|
|
580
580
|
[-1, -1]
|
|
581
581
|
);
|
|
582
582
|
}
|
|
@@ -641,7 +641,7 @@ class We extends _e {
|
|
|
641
641
|
this.$$set({ mbsource: e }), x();
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
|
|
644
|
+
ze(Ve, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
|
645
645
|
export {
|
|
646
|
-
|
|
646
|
+
Ve as default
|
|
647
647
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPageNd-ByOWge44.cjs");function q(i,t){e.addMessages(i,t)}function se(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function de(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function ce(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ge(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ue(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function pe(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return pe;if(p[1]==="title")return ue}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function me(i){let t;function l(a,g){return a[6]?ge:ce}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function fe(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T,Y;const Q=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,N,A;return{id:S.id,name:S.name,icon:S.icon?S.icon:(A=(N=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:N.subVendors[0])==null?void 0:A.logo,games:S.games.items.slice(0,4).map(ae=>ae),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),D()})},D=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,$()},$=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},ee=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},te=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},ie=()=>{se(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const le=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),ne=n=>H(n.id);function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&ie(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`,Y),i.$$.dirty[0]&1048576&&m&&Q(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,ee,te,z,H,o,a,g,w,d,m,c,x,le,ne,oe,re]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,me,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},de,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPageNd-DkcMiqM_.cjs");function q(i,t){e.addMessages(i,t)}function se(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function de(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function ce(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ge(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ue(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function pe(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return pe;if(p[1]==="title")return ue}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function me(i){let t;function l(a,g){return a[6]?ge:ce}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function fe(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T,Y;const Q=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,N,A;return{id:S.id,name:S.name,icon:S.icon?S.icon:(A=(N=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:N.subVendors[0])==null?void 0:A.logo,games:S.games.items.slice(0,4).map(ae=>ae),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),D()})},D=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,$()},$=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},ee=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},te=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},ie=()=>{se(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const le=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),ne=n=>H(n.id);function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&ie(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`,Y),i.$$.dirty[0]&1048576&&m&&Q(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,ee,te,z,H,o,a,g,w,d,m,c,x,le,ne,oe,re]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,me,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},de,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;
|