@everymatrix/casino-lobby 1.59.2 → 1.59.3
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-Km8tdNHN.js → CasinoCalendar-BYTytQgJ.js} +690 -712
- package/components/{CasinoCalendar-6ncpIgng.js → CasinoCalendar-CI-C6zUY.js} +696 -718
- package/components/CasinoCalendar-DqS7aKva.cjs +22 -0
- package/components/{CasinoCalendarDailyDetails-CGaAU2gc.js → CasinoCalendarDailyDetails-DQB9Y3_Q.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-CsEZhtVE.cjs → CasinoCalendarDailyDetails-DUQWFLJJ.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-CAbwFBvZ.js → CasinoCalendarDailyDetails-Xi-Uo8v-.js} +48 -48
- package/components/{CasinoCalendarDailyItem-DSlC0F3s.cjs → CasinoCalendarDailyItem-CVt2FFo1.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-5aqnKIMr.js → CasinoCalendarDailyItem-CjRZKnnD.js} +41 -41
- package/components/{CasinoCalendarDailyItem-D_MTrKed.js → CasinoCalendarDailyItem-DC91__VM.js} +41 -41
- package/components/{CasinoCategoriesSlider-CZHyRC-C.js → CasinoCategoriesSlider-BeqGvJrA.js} +67 -67
- package/components/{CasinoCategoriesSlider-Dm2i_QTf.js → CasinoCategoriesSlider-Cvb-krxJ.js} +66 -66
- package/components/CasinoCategoriesSlider-DZpvR9sw.cjs +1 -0
- package/components/{CasinoCollectionsProviders-B7d5LuGP.js → CasinoCollectionsProviders-BMyAx20Y.js} +73 -73
- package/components/{CasinoCollectionsProviders-pk8jpLQt.js → CasinoCollectionsProviders-B_4F6cIK.js} +71 -71
- package/components/{CasinoCollectionsProviders-B6occ8TF.cjs → CasinoCollectionsProviders-FGrPURo4.cjs} +1 -1
- package/components/{CasinoFavoritesSection-C949lfcK.js → CasinoFavoritesSection-BZmf5I3g.js} +26 -26
- package/components/{CasinoFavoritesSection-hHKNAcoS.cjs → CasinoFavoritesSection-CBb3Eo8J.cjs} +1 -1
- package/components/{CasinoFavoritesSection-V5ybOUJC.js → CasinoFavoritesSection-Dmko0_Ik.js} +26 -26
- package/components/{CasinoFilter-BWjq7W1e.js → CasinoFilter-BHLJqOwW.js} +235 -234
- package/components/CasinoFilter-Bg-VilMd.cjs +1 -0
- package/components/{CasinoFilter-BTof425X.js → CasinoFilter-Dt8GhenI.js} +246 -247
- package/components/{CasinoGamePage-ssKF-ZD1.js → CasinoGamePage-5moXxd0d.js} +741 -741
- package/components/{CasinoGamePage-D2huRBJX.cjs → CasinoGamePage-BmgERtPr.cjs} +6 -6
- package/components/{CasinoGamePage-Cp2CKRka.js → CasinoGamePage-D_TzJsC-.js} +742 -742
- package/components/{CasinoGameThumbnail-CVz7FpsB.js → CasinoGameThumbnail-DSjNVacg.js} +512 -528
- package/components/{CasinoGameThumbnail-NLieCJGe.js → CasinoGameThumbnail-DqBpfUwf.js} +436 -420
- package/components/{CasinoGameThumbnail-DK9cpR-G.cjs → CasinoGameThumbnail-OrvrYv4V.cjs} +15 -15
- package/components/{CasinoGamesCategorySection-BP3bZsZg.js → CasinoGamesCategorySection-Ce43OSOZ.js} +247 -247
- package/components/{CasinoGamesCategorySection-BAcJus2G.cjs → CasinoGamesCategorySection-DEh7yuGp.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-Bpy9vh6D.js → CasinoGamesCategorySection-d8QOFywW.js} +247 -247
- package/components/{CasinoJackpotBanner-DredUN6K.cjs → CasinoJackpotBanner-B_CnR3Kj.cjs} +1 -1
- package/components/{CasinoJackpotBanner-CuP8WP5Q.js → CasinoJackpotBanner-Dxq2Y_-S.js} +74 -74
- package/components/{CasinoJackpotBanner-Dl2rX6vI.js → CasinoJackpotBanner-UQaC63Zv.js} +69 -69
- package/components/{CasinoLastPlayedSection-CVEuFsbi.js → CasinoLastPlayedSection-BVANPPTi.js} +43 -43
- package/components/{CasinoLastPlayedSection-B9I2fZm5.js → CasinoLastPlayedSection-Bmr8n1pA.js} +43 -43
- package/components/{CasinoLastPlayedSection-COAM1aoc.cjs → CasinoLastPlayedSection-CyL83M3y.cjs} +1 -1
- package/components/{CasinoLobby-AoZlXLOV.js → CasinoLobby-CWzN0imw.js} +45 -45
- package/components/{CasinoLobby-BRiasSXJ.js → CasinoLobby-DUI1Ki3q.js} +47 -47
- package/components/{CasinoLobby-CYqI5Bvp.cjs → CasinoLobby-os94WdnE.cjs} +1 -1
- package/components/{CasinoModal-B9Gmdwc0.js → CasinoModal-BaV1FE12.js} +41 -41
- package/components/{CasinoModal-DLgyWFbs.js → CasinoModal-Bn6r73ff.js} +41 -41
- package/components/{CasinoModal-d1VUXUWj.cjs → CasinoModal-DWbCqr0p.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-9B6X9czZ.js → CasinoMostPlayedSection-B4SHGVp4.js} +50 -50
- package/components/{CasinoMostPlayedSection-DwZh0uxo.js → CasinoMostPlayedSection-CD00UC6r.js} +50 -50
- package/components/{CasinoMostPlayedSection-BUwIld9p.cjs → CasinoMostPlayedSection-y-GWnOes.cjs} +1 -1
- package/components/{CasinoMyGames-76IMIo9z.js → CasinoMyGames-BBsq56wQ.js} +50 -50
- package/components/{CasinoMyGames-DTGaTHyO.cjs → CasinoMyGames-DKu8rYmc.cjs} +1 -1
- package/components/{CasinoMyGames-DRCxYUHg.js → CasinoMyGames-DRCL87dq.js} +53 -53
- package/components/{CasinoPage-CikRIum6.js → CasinoPage-BJ2hLXJb.js} +93 -93
- package/components/{CasinoPage-DZ6Yhwli.cjs → CasinoPage-CXAKd3oS.cjs} +1 -1
- package/components/{CasinoPage-BPxxsTeq.js → CasinoPage-DXP80Vgm.js} +85 -85
- package/components/{CasinoRandomGame-CBcSHzZL.cjs → CasinoRandomGame-BO7BqLXA.cjs} +1 -1
- package/components/{CasinoRandomGame-CfOiAKHl.js → CasinoRandomGame-CsA5xgwc.js} +63 -63
- package/components/{CasinoRandomGame-CqripZYr.js → CasinoRandomGame-DLzqJj4x.js} +64 -64
- package/components/{CasinoSearch-CZSrkWFZ.cjs → CasinoSearch-CxFbGTdy.cjs} +1 -1
- package/components/{CasinoSearch-CCcjmB9U.js → CasinoSearch-CzUqsTgU.js} +72 -72
- package/components/{CasinoSearch-Cs8FRwGb.js → CasinoSearch-atJ6AGYa.js} +72 -72
- package/components/{CasinoSlider-CMKmgXUK.cjs → CasinoSlider-CgiDJzPs.cjs} +1 -1
- package/components/{CasinoSlider-0rdHVHjG.js → CasinoSlider-DjqwMakd.js} +65 -65
- package/components/{CasinoSlider-CleETLFf.js → CasinoSlider-zHVThApL.js} +74 -74
- package/components/{CasinoSort-C78a6veQ.cjs → CasinoSort-23PYwtO1.cjs} +1 -1
- package/components/{CasinoSort-xZsxfLYC.js → CasinoSort-B3A_Ar_A.js} +110 -111
- package/components/{CasinoSort-BRC8Jmi_.js → CasinoSort-DtUIrmuZ.js} +104 -103
- package/components/{CasinoWinners-DD8ZyQkV.js → CasinoWinners-CF_PptIS.js} +162 -162
- package/components/{CasinoWinners-BEOhs5WG.js → CasinoWinners-Gb2w2dXe.js} +179 -179
- package/components/{CasinoWinners-Cp1yMlzb.cjs → CasinoWinners-KEY7dD3z.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CURVDkRT.js → GeneralAnimationLoading-8TvNjXay.js} +16 -16
- package/components/{GeneralAnimationLoading-Bl6_sP-d.cjs → GeneralAnimationLoading-B-6s0l9d.cjs} +1 -1
- package/components/{GeneralAnimationLoading-uswxvfCW.js → GeneralAnimationLoading-Bbxdne1m.js} +16 -16
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +2 -2
- package/stencil/{casino-play-random-game-Bk7toWLj.js → casino-play-random-game-CLSQBVzD.js} +2 -2
- package/stencil/{casino-play-random-game-CKM_xKne.cjs → casino-play-random-game-CdZKN03s.cjs} +2 -2
- package/stencil/{casino-play-random-game-BW66Civ1.js → casino-play-random-game-Dm8A9dTR.js} +2 -2
- package/stencil/index-ab3202d6-C1hgKWrC.cjs +1 -0
- package/stencil/index-ab3202d6-OPh7hJp9.js +575 -0
- package/stencil/index-ab3202d6-hGs51skN.js +559 -0
- package/stencil/index-ae04a8b1-BhaHMrLE.js +516 -0
- package/stencil/index-ae04a8b1-Dn3cponN.js +532 -0
- package/stencil/index-ae04a8b1-jEvGbYrB.cjs +1 -0
- package/stencil/{ui-skeleton-DET4YE0J.js → ui-skeleton-Bz6cw7xJ.js} +2 -2
- package/stencil/{ui-skeleton-DlNNnOZy.cjs → ui-skeleton-D9k-xWaS.cjs} +1 -1
- package/stencil/{ui-skeleton-C02hm1pt.js → ui-skeleton-DDYD_XHU.js} +2 -2
- package/stencil/{ui-skeleton-a642cced-Dn9GOtgo.js → ui-skeleton-a642cced-Bg6oYmhk.js} +1 -1
- package/stencil/{ui-skeleton-a642cced-BhVS1i2r.cjs → ui-skeleton-a642cced-CVw8zpGJ.cjs} +1 -1
- package/stencil/{ui-skeleton-a642cced-7C4Fyb2d.js → ui-skeleton-a642cced-MvzXi5-c.js} +1 -1
- package/components/CasinoCalendar-CkNAiTx8.cjs +0 -22
- package/components/CasinoCategoriesSlider-DMR3iCVW.cjs +0 -1
- package/components/CasinoFilter-C2Q93qQz.cjs +0 -1
- package/stencil/index-ab3202d6-BW1TSmQg.js +0 -575
- package/stencil/index-ab3202d6-C6VFhXtX.cjs +0 -1
- package/stencil/index-ab3202d6-CkTejM5U.js +0 -559
- package/stencil/index-ae04a8b1-BvZmaj3p.js +0 -532
- package/stencil/index-ae04a8b1-DoeYpoC5.js +0 -516
- package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +0 -1
package/components/{CasinoCollectionsProviders-pk8jpLQt.js → CasinoCollectionsProviders-B_4F6cIK.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as _e, $ as we, S as Se, i as ke,
|
|
1
|
+
import { a as _e, $ as we, S as Se, i as ke, s as Ge, f as j, b as Pe, n as B, d as x, h as T, j as y, k as Le, o as Me, l as je, C as $, r as m, v as H, w as se, m as I, p as v, q, B as F, R as xe, A as z, G as E, D as A, T as Te, I as Fe, J as Oe, K as Be, L as He, M as ze } from "./CasinoCalendar-CI-C6zUY.js";
|
|
2
2
|
function ee(t, e) {
|
|
3
3
|
_e(t, e);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function Ae(t) {
|
|
6
6
|
we.set(t);
|
|
7
7
|
}
|
|
8
8
|
const te = {
|
|
@@ -103,7 +103,7 @@ const te = {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
function Ne(t) {
|
|
106
|
-
|
|
106
|
+
Pe(t, "svelte-3oqkg3", '*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
107
107
|
}
|
|
108
108
|
function ie(t, e, i) {
|
|
109
109
|
const n = t.slice();
|
|
@@ -113,7 +113,7 @@ function oe(t, e, i) {
|
|
|
113
113
|
const n = t.slice();
|
|
114
114
|
return n[44] = e[i], n;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Re(t) {
|
|
117
117
|
let e, i, n, l = (
|
|
118
118
|
/*type*/
|
|
119
119
|
(t[0] === "vendor" ? (
|
|
@@ -127,7 +127,7 @@ function Ee(t) {
|
|
|
127
127
|
/*numberOfSlides*/
|
|
128
128
|
t[7] > /*numberOfVisibleSlides*/
|
|
129
129
|
t[8] && le(t)
|
|
130
|
-
), f =
|
|
130
|
+
), f = H(
|
|
131
131
|
/*gameCategories*/
|
|
132
132
|
t[3]
|
|
133
133
|
), a = [];
|
|
@@ -135,7 +135,7 @@ function Ee(t) {
|
|
|
135
135
|
a[c] = ae(ie(t, f, c));
|
|
136
136
|
return {
|
|
137
137
|
c() {
|
|
138
|
-
e = y("div"), i = y("div"), n = y("p"), r =
|
|
138
|
+
e = y("div"), i = y("div"), n = y("p"), r = q(l), d = F(), s && s.c(), _ = F(), b = y("div");
|
|
139
139
|
for (let c = 0; c < a.length; c += 1)
|
|
140
140
|
a[c].c();
|
|
141
141
|
m(n, "class", "Title"), m(i, "class", "CategoriesHeader"), m(b, "class", "CategoriesSlider"), m(e, "class", k = "CasinoCollectionsProviders " + /*mobile*/
|
|
@@ -143,7 +143,7 @@ function Ee(t) {
|
|
|
143
143
|
(t[0] === "vendor" ? "Providers" : "Collections"));
|
|
144
144
|
},
|
|
145
145
|
m(c, g) {
|
|
146
|
-
|
|
146
|
+
T(c, e, g), v(e, i), v(i, n), v(n, r), v(i, d), s && s.m(i, null), v(e, _), v(e, b);
|
|
147
147
|
for (let h = 0; h < a.length; h += 1)
|
|
148
148
|
a[h] && a[h].m(b, null);
|
|
149
149
|
t[25](b);
|
|
@@ -157,11 +157,11 @@ function Ee(t) {
|
|
|
157
157
|
) : (
|
|
158
158
|
/*$_*/
|
|
159
159
|
c[10]("collections")
|
|
160
|
-
)) + "") &&
|
|
160
|
+
)) + "") && I(r, l), /*numberOfSlides*/
|
|
161
161
|
c[7] > /*numberOfVisibleSlides*/
|
|
162
162
|
c[8] ? s ? s.p(c, g) : (s = le(c), s.c(), s.m(i, null)) : s && (s.d(1), s = null), g[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
|
163
163
|
24590) {
|
|
164
|
-
f =
|
|
164
|
+
f = H(
|
|
165
165
|
/*gameCategories*/
|
|
166
166
|
c[3]
|
|
167
167
|
);
|
|
@@ -180,22 +180,22 @@ function Ee(t) {
|
|
|
180
180
|
(c[0] === "vendor" ? "Providers" : "Collections")) && m(e, "class", k);
|
|
181
181
|
},
|
|
182
182
|
d(c) {
|
|
183
|
-
c &&
|
|
183
|
+
c && x(e), s && s.d(), se(a, c), t[25](null);
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Ee(t) {
|
|
188
188
|
let e;
|
|
189
189
|
return {
|
|
190
190
|
c() {
|
|
191
191
|
e = y("div"), m(e, "class", "LoadingSpinner");
|
|
192
192
|
},
|
|
193
193
|
m(i, n) {
|
|
194
|
-
|
|
194
|
+
T(i, e, n);
|
|
195
195
|
},
|
|
196
|
-
p:
|
|
196
|
+
p: B,
|
|
197
197
|
d(i) {
|
|
198
|
-
i &&
|
|
198
|
+
i && x(e);
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
}
|
|
@@ -203,17 +203,17 @@ function le(t) {
|
|
|
203
203
|
let e, i, n, l, r, d;
|
|
204
204
|
return {
|
|
205
205
|
c() {
|
|
206
|
-
e = y("div"), i = y("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 = y("div"), i = y("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 = F(), l = y("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(_, b) {
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
T(_, e, b), v(e, i), v(e, n), v(e, l), r || (d = [
|
|
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,9 +221,9 @@ function le(t) {
|
|
|
221
221
|
)
|
|
222
222
|
], r = !0);
|
|
223
223
|
},
|
|
224
|
-
p:
|
|
224
|
+
p: B,
|
|
225
225
|
d(_) {
|
|
226
|
-
_ &&
|
|
226
|
+
_ && x(e), r = !1, xe(d);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -234,18 +234,18 @@ function Ie(t) {
|
|
|
234
234
|
), n;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
e = y("p"), n =
|
|
237
|
+
e = y("p"), n = q(i), m(e, "class", "CategorySlideTitle");
|
|
238
238
|
},
|
|
239
239
|
m(l, r) {
|
|
240
|
-
|
|
240
|
+
T(l, e, r), v(e, n);
|
|
241
241
|
},
|
|
242
242
|
p(l, r) {
|
|
243
243
|
r[0] & /*gameCategories*/
|
|
244
244
|
8 && i !== (i = /*category*/
|
|
245
|
-
l[41].name + "") &&
|
|
245
|
+
l[41].name + "") && I(n, i);
|
|
246
246
|
},
|
|
247
247
|
d(l) {
|
|
248
|
-
l &&
|
|
248
|
+
l && x(e);
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
}
|
|
@@ -253,22 +253,22 @@ function qe(t) {
|
|
|
253
253
|
let e, i, n;
|
|
254
254
|
return {
|
|
255
255
|
c() {
|
|
256
|
-
e = y("img"), m(e, "class", "CategorySlideLogo"),
|
|
256
|
+
e = y("img"), m(e, "class", "CategorySlideLogo"), A(e.src, i = /*category*/
|
|
257
257
|
t[41].icon) || m(e, "src", i), m(e, "alt", n = /*category*/
|
|
258
258
|
t[41].name + " icon");
|
|
259
259
|
},
|
|
260
260
|
m(l, r) {
|
|
261
|
-
|
|
261
|
+
T(l, e, r);
|
|
262
262
|
},
|
|
263
263
|
p(l, r) {
|
|
264
264
|
r[0] & /*gameCategories*/
|
|
265
|
-
8 && !
|
|
265
|
+
8 && !A(e.src, i = /*category*/
|
|
266
266
|
l[41].icon) && m(e, "src", i), r[0] & /*gameCategories*/
|
|
267
267
|
8 && n !== (n = /*category*/
|
|
268
268
|
l[41].name + " icon") && m(e, "alt", n);
|
|
269
269
|
},
|
|
270
270
|
d(l) {
|
|
271
|
-
l &&
|
|
271
|
+
l && x(e);
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
}
|
|
@@ -279,21 +279,21 @@ function ne(t) {
|
|
|
279
279
|
), n, l;
|
|
280
280
|
return {
|
|
281
281
|
c() {
|
|
282
|
-
e = y("p"), n =
|
|
282
|
+
e = y("p"), n = q(i), m(e, "title", l = /*game*/
|
|
283
283
|
t[44].name);
|
|
284
284
|
},
|
|
285
285
|
m(r, d) {
|
|
286
|
-
|
|
286
|
+
T(r, e, d), v(e, n);
|
|
287
287
|
},
|
|
288
288
|
p(r, d) {
|
|
289
289
|
d[0] & /*gameCategories*/
|
|
290
290
|
8 && i !== (i = /*game*/
|
|
291
|
-
r[44].name + "") &&
|
|
291
|
+
r[44].name + "") && I(n, i), d[0] & /*gameCategories*/
|
|
292
292
|
8 && l !== (l = /*game*/
|
|
293
293
|
r[44].name) && m(e, "title", l);
|
|
294
294
|
},
|
|
295
295
|
d(r) {
|
|
296
|
-
r &&
|
|
296
|
+
r && x(e);
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
299
|
}
|
|
@@ -314,23 +314,23 @@ function re(t) {
|
|
|
314
314
|
);
|
|
315
315
|
return {
|
|
316
316
|
c() {
|
|
317
|
-
e = y("div"), i = y("img"), r =
|
|
317
|
+
e = y("div"), i = y("img"), r = F(), s && s.c(), d = F(), m(i, "class", "CategorySlideGameImage"), A(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
|
-
|
|
322
|
+
T(f, e, a), v(e, i), v(e, r), s && s.m(e, null), v(e, d), _ || (b = z(i, "click", Te(k)), _ = !0);
|
|
323
323
|
},
|
|
324
324
|
p(f, a) {
|
|
325
325
|
t = f, a[0] & /*gameCategories*/
|
|
326
|
-
8 && !
|
|
326
|
+
8 && !A(i.src, n = /*game*/
|
|
327
327
|
t[44].defaultThumbnail) && m(i, "src", n), a[0] & /*gameCategories*/
|
|
328
328
|
8 && l !== (l = /*game*/
|
|
329
329
|
t[44].name) && m(i, "alt", l), /*collectionprovidersgamenames*/
|
|
330
330
|
t[2] == "true" ? s ? s.p(t, a) : (s = ne(t), s.c(), s.m(e, d)) : s && (s.d(1), s = null);
|
|
331
331
|
},
|
|
332
332
|
d(f) {
|
|
333
|
-
f &&
|
|
333
|
+
f && x(e), s && s.d(), _ = !1, b();
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
}
|
|
@@ -348,7 +348,7 @@ function ae(t) {
|
|
|
348
348
|
)
|
|
349
349
|
return Ie;
|
|
350
350
|
}
|
|
351
|
-
let f = s(t), a = f && f(t), c =
|
|
351
|
+
let f = s(t), a = f && f(t), c = H(
|
|
352
352
|
/*category*/
|
|
353
353
|
t[41].games
|
|
354
354
|
), g = [];
|
|
@@ -366,31 +366,31 @@ function ae(t) {
|
|
|
366
366
|
return {
|
|
367
367
|
c() {
|
|
368
368
|
var u, p;
|
|
369
|
-
e = y("div"), i = y("div"), n = y("div"), a && a.c(), l =
|
|
369
|
+
e = y("div"), i = y("div"), n = y("div"), a && a.c(), l = F(), r = y("div");
|
|
370
370
|
for (let C = 0; C < g.length; C += 1)
|
|
371
371
|
g[C].c();
|
|
372
|
-
_ =
|
|
373
|
-
(((u = t[41]) == null ? void 0 : u.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")),
|
|
374
|
-
((p = t[41]) == null ? void 0 : p.background) + ")"),
|
|
372
|
+
_ = F(), m(n, "class", "CategorySlideTopContainer"), m(r, "class", "CategorySlideGameContainer"), m(i, "class", d = "CategorySlide " + /*category*/
|
|
373
|
+
(((u = t[41]) == null ? void 0 : u.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")), E(i, "background-image", "url(" + /*category*/
|
|
374
|
+
((p = t[41]) == null ? void 0 : p.background) + ")"), E(i, "background-size", "cover"), m(e, "class", "CategoriesSliderWrapper Animation");
|
|
375
375
|
},
|
|
376
376
|
m(u, p) {
|
|
377
|
-
|
|
377
|
+
T(u, e, p), v(e, i), v(i, n), a && a.m(n, null), v(i, l), v(i, r);
|
|
378
378
|
for (let C = 0; C < g.length; C += 1)
|
|
379
379
|
g[C] && g[C].m(r, null);
|
|
380
|
-
v(e, _), b || (k =
|
|
380
|
+
v(e, _), b || (k = z(i, "click", h), b = !0);
|
|
381
381
|
},
|
|
382
382
|
p(u, p) {
|
|
383
383
|
var C, G;
|
|
384
384
|
if (t = u, f === (f = s(t)) && a ? a.p(t, p) : (a && a.d(1), a = f && f(t), a && (a.c(), a.m(n, null))), p[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
|
385
385
|
8204) {
|
|
386
|
-
c =
|
|
386
|
+
c = H(
|
|
387
387
|
/*category*/
|
|
388
388
|
t[41].games
|
|
389
389
|
);
|
|
390
390
|
let w;
|
|
391
391
|
for (w = 0; w < c.length; w += 1) {
|
|
392
|
-
const
|
|
393
|
-
g[w] ? g[w].p(
|
|
392
|
+
const O = oe(t, c, w);
|
|
393
|
+
g[w] ? g[w].p(O, p) : (g[w] = re(O), g[w].c(), g[w].m(r, null));
|
|
394
394
|
}
|
|
395
395
|
for (; w < g.length; w += 1)
|
|
396
396
|
g[w].d(1);
|
|
@@ -399,11 +399,11 @@ function ae(t) {
|
|
|
399
399
|
p[0] & /*gameCategories*/
|
|
400
400
|
8 && d !== (d = "CategorySlide " + /*category*/
|
|
401
401
|
(((C = t[41]) == null ? void 0 : C.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")) && m(i, "class", d), p[0] & /*gameCategories*/
|
|
402
|
-
8 &&
|
|
402
|
+
8 && E(i, "background-image", "url(" + /*category*/
|
|
403
403
|
((G = t[41]) == null ? void 0 : G.background) + ")");
|
|
404
404
|
},
|
|
405
405
|
d(u) {
|
|
406
|
-
u &&
|
|
406
|
+
u && x(e), a && a.d(), se(g, u), b = !1, k();
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
}
|
|
@@ -412,7 +412,7 @@ function Ue(t) {
|
|
|
412
412
|
function i(r, d) {
|
|
413
413
|
return (
|
|
414
414
|
/*isLoading*/
|
|
415
|
-
r[6] ?
|
|
415
|
+
r[6] ? Ee : Re
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
let n = i(t), l = n(t);
|
|
@@ -421,22 +421,22 @@ function Ue(t) {
|
|
|
421
421
|
e = y("div"), l.c();
|
|
422
422
|
},
|
|
423
423
|
m(r, d) {
|
|
424
|
-
|
|
424
|
+
T(r, e, d), l.m(e, null), t[26](e);
|
|
425
425
|
},
|
|
426
426
|
p(r, d) {
|
|
427
427
|
n === (n = i(r)) && l ? l.p(r, d) : (l.d(1), l = n(r), l && (l.c(), l.m(e, null)));
|
|
428
428
|
},
|
|
429
|
-
i:
|
|
430
|
-
o:
|
|
429
|
+
i: B,
|
|
430
|
+
o: B,
|
|
431
431
|
d(r) {
|
|
432
|
-
r &&
|
|
432
|
+
r && x(e), l.d(), t[26](null);
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
436
|
function Ve(t, e, i) {
|
|
437
437
|
let n;
|
|
438
|
-
|
|
439
|
-
let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: d = "" } = e, { type: _ = "" } = e, { titletype: b = "" } = e, { clientstyling: k = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: c } = e, g = [], h = !0, u, p = 0, C = 0, G = 0, w,
|
|
438
|
+
Le(t, ze, (o) => i(10, n = o));
|
|
439
|
+
let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: d = "" } = e, { type: _ = "" } = e, { titletype: b = "" } = e, { clientstyling: k = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: c } = e, g = [], h = !0, u, p = 0, C = 0, G = 0, w, O, U = 0, N = 50, R = !1, P, ce = window.navigator.userAgent, V;
|
|
440
440
|
const de = () => {
|
|
441
441
|
fetch(f).then((S) => S.json()).then((S) => {
|
|
442
442
|
Object.keys(S).forEach((L) => {
|
|
@@ -452,7 +452,7 @@ function Ve(t, e, i) {
|
|
|
452
452
|
const W = () => {
|
|
453
453
|
const o = new URL(`${l}/v2/casino/groups/${r}`);
|
|
454
454
|
o.searchParams.append("language", d), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${U},limit=${N}`), fetch(o.href).then((S) => S.json()).then((S) => {
|
|
455
|
-
i(6, h = !1), S.total > N && (U += 50, N += 50, i(22,
|
|
455
|
+
i(6, h = !1), S.total > N && (U += 50, N += 50, i(22, R = !0));
|
|
456
456
|
let L = S.items.map((M) => {
|
|
457
457
|
var X, Y, Q;
|
|
458
458
|
return {
|
|
@@ -470,9 +470,9 @@ function Ve(t, e, i) {
|
|
|
470
470
|
const o = P.getRootNode().host;
|
|
471
471
|
o.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: o } }));
|
|
472
472
|
}, D = (o) => {
|
|
473
|
-
|
|
473
|
+
O = [...u.children], O.forEach((S, L) => {
|
|
474
474
|
S.style.transform = `translateX(${100 * (o ? L - o : L)}%)`;
|
|
475
|
-
}), w =
|
|
475
|
+
}), w = O[0].getBoundingClientRect().width, ue();
|
|
476
476
|
}, ue = () => {
|
|
477
477
|
i(8, G = Math.floor(u.clientWidth / w));
|
|
478
478
|
}, K = () => {
|
|
@@ -481,7 +481,7 @@ function Ve(t, e, i) {
|
|
|
481
481
|
p === 0 ? p = C - G : p - G < -1 ? p = 0 : p--, K();
|
|
482
482
|
}, fe = () => {
|
|
483
483
|
p === C - G ? p = 0 : C - G < p + 1 ? p = C - G : p++, K();
|
|
484
|
-
},
|
|
484
|
+
}, J = (o, S, L, M) => {
|
|
485
485
|
window.postMessage(
|
|
486
486
|
{
|
|
487
487
|
type: "OpenCollectionsProvidersGame",
|
|
@@ -495,7 +495,7 @@ function Ve(t, e, i) {
|
|
|
495
495
|
context: "CollectionsProviders",
|
|
496
496
|
gameName: `${L}`
|
|
497
497
|
});
|
|
498
|
-
},
|
|
498
|
+
}, Z = (o) => {
|
|
499
499
|
window.postMessage(
|
|
500
500
|
{
|
|
501
501
|
type: "OpenCollectionsProvidersCategory",
|
|
@@ -504,11 +504,11 @@ function Ve(t, e, i) {
|
|
|
504
504
|
window.location.href
|
|
505
505
|
);
|
|
506
506
|
}, pe = () => {
|
|
507
|
-
|
|
507
|
+
Ae(d);
|
|
508
508
|
};
|
|
509
|
-
|
|
509
|
+
Me(() => (i(9, V = je(ce)), () => {
|
|
510
510
|
}));
|
|
511
|
-
const he = (o) =>
|
|
511
|
+
const he = (o) => J(o.gameId, o.launchUrl, o.name, o.subVendor), ve = (o) => Z(o.id);
|
|
512
512
|
function be(o) {
|
|
513
513
|
$[o ? "unshift" : "push"](() => {
|
|
514
514
|
u = o, i(4, u);
|
|
@@ -526,11 +526,11 @@ function Ve(t, e, i) {
|
|
|
526
526
|
229376 && l && r && d && W(), t.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
|
527
527
|
24 && g && u && D(), t.$$.dirty[0] & /*lang*/
|
|
528
528
|
131072 && d && pe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
529
|
-
262176 && k && P &&
|
|
530
|
-
524320 && s && P &&
|
|
531
|
-
2097184 && P &&
|
|
529
|
+
262176 && k && P && Fe(P, k), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
530
|
+
524320 && s && P && Oe(P, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
531
|
+
2097184 && P && Be(P, `${c}.Style`), t.$$.dirty[0] & /*translationurl*/
|
|
532
532
|
1048576 && f && de(), t.$$.dirty[0] & /*paginationrequired*/
|
|
533
|
-
4194304 &&
|
|
533
|
+
4194304 && R && W();
|
|
534
534
|
}, [
|
|
535
535
|
_,
|
|
536
536
|
b,
|
|
@@ -545,8 +545,8 @@ function Ve(t, e, i) {
|
|
|
545
545
|
n,
|
|
546
546
|
me,
|
|
547
547
|
fe,
|
|
548
|
-
Z,
|
|
549
548
|
J,
|
|
549
|
+
Z,
|
|
550
550
|
l,
|
|
551
551
|
r,
|
|
552
552
|
d,
|
|
@@ -554,7 +554,7 @@ function Ve(t, e, i) {
|
|
|
554
554
|
s,
|
|
555
555
|
f,
|
|
556
556
|
c,
|
|
557
|
-
|
|
557
|
+
R,
|
|
558
558
|
he,
|
|
559
559
|
ve,
|
|
560
560
|
be,
|
|
@@ -568,7 +568,7 @@ class We extends Se {
|
|
|
568
568
|
e,
|
|
569
569
|
Ve,
|
|
570
570
|
Ue,
|
|
571
|
-
|
|
571
|
+
Ge,
|
|
572
572
|
{
|
|
573
573
|
endpoint: 15,
|
|
574
574
|
datasource: 16,
|
|
@@ -646,7 +646,7 @@ class We extends Se {
|
|
|
646
646
|
this.$$set({ mbsource: e }), j();
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
|
|
649
|
+
He(We, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
|
650
650
|
export {
|
|
651
651
|
We as default
|
|
652
652
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CkNAiTx8.cjs");function E(i,t){e.addMessages(i,t)}function ae(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 se(i){e.append_styles(i,"svelte-3oqkg3",'*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) 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 de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,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]=K(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(),b=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,b),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]=K(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 ce(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(b,v){e.insert(b,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(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ge(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 ue(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 D(i){let t,l,r,o,a,g,b,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),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!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(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}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]=D(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 _=0;_<u.length;_+=1)u[_].c();b=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 _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;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 y;for(y=0;y<c.length;y+=1){const L=U(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[41])==null?void 0:S.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}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 me(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:b=""}=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,_=0,S=0,y,L,x=0,M=50,j=!1,k,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(G=>{E(G,C[G])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{E(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=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let G=C.items.map(P=>{var q,A,N;return{id:P.id,name:P.name,icon:P.icon?P.icon:(N=(A=(q=P.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:P.games.items.slice(0,4).map(re=>re),background:P.background,flag:P.flags}});l(3,u=[...u,...G]),l(7,_=u.length),Y()})},Y=()=>{const n=k.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},O=n=>{L=[...p.children],L.forEach((C,G)=>{C.style.transform=`translateX(${100*(n?G-n:G)}%)`}),y=L[0].getBoundingClientRect().width,Q()},Q=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},$=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},ee=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,G,P)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:G,subVendor:P},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${G}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>B(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{k=n,l(5,k)})}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,b=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&&O(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&k&&e.setClientStyling(k,w),i.$$.dirty[0]&524320&&d&&k&&e.setClientStylingURL(k,d),i.$$.dirty[0]&2097184&&k&&e.setStreamStyling(k,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,k,h,_,S,T,r,$,ee,z,B,o,a,g,w,d,m,c,j,ie,le,ne,oe]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-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(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DqS7aKva.cjs");function E(i,t){e.addMessages(i,t)}function ae(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 se(i){e.append_styles(i,"svelte-3oqkg3",'*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) 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 de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,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]=K(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(),b=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,b),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]=K(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 ce(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(b,v){e.insert(b,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(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ge(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 ue(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 D(i){let t,l,r,o,a,g,b,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),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!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(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}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]=D(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 _=0;_<u.length;_+=1)u[_].c();b=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 _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;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 y;for(y=0;y<c.length;y+=1){const L=U(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[41])==null?void 0:S.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}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 me(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:b=""}=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,_=0,S=0,y,L,x=0,M=50,j=!1,k,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(G=>{E(G,C[G])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{E(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=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let G=C.items.map(P=>{var q,A,N;return{id:P.id,name:P.name,icon:P.icon?P.icon:(N=(A=(q=P.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:P.games.items.slice(0,4).map(re=>re),background:P.background,flag:P.flags}});l(3,u=[...u,...G]),l(7,_=u.length),Y()})},Y=()=>{const n=k.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},O=n=>{L=[...p.children],L.forEach((C,G)=>{C.style.transform=`translateX(${100*(n?G-n:G)}%)`}),y=L[0].getBoundingClientRect().width,Q()},Q=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},$=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},ee=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,G,P)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:G,subVendor:P},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${G}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>B(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{k=n,l(5,k)})}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,b=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&&O(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&k&&e.setClientStyling(k,w),i.$$.dirty[0]&524320&&d&&k&&e.setClientStylingURL(k,d),i.$$.dirty[0]&2097184&&k&&e.setStreamStyling(k,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,k,h,_,S,T,r,$,ee,z,B,o,a,g,w,d,m,c,j,ie,le,ne,oe]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-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(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;
|