@everymatrix/casino-page 1.60.1 → 1.60.2
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-Bm8jJ1Mr.js → CasinoCalendar-Ckt1PYIP.js} +943 -965
- package/components/CasinoCalendar-DEC4kbu7.cjs +19 -0
- package/components/{CasinoCalendar-DttQUJ_p.js → CasinoCalendar-DNaLXH6n.js} +643 -665
- package/components/{CasinoCalendarDailyDetails-DesTWpk5.js → CasinoCalendarDailyDetails-BdhBt4HO.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-BRtEBxYn.js → CasinoCalendarDailyDetails-DOhd-4ZT.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-Cjdo10t8.cjs → CasinoCalendarDailyDetails-EinwK-x0.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-B4jvb1pM.js → CasinoCalendarDailyItem-254MG7d4.js} +41 -41
- package/components/{CasinoCalendarDailyItem-D0zUyBnz.cjs → CasinoCalendarDailyItem-CEbe-dts.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-D7jrZ_LJ.js → CasinoCalendarDailyItem-I0d1EuRW.js} +41 -41
- package/components/{CasinoCollectionsProviders-CYGBqFuD.js → CasinoCollectionsProviders-CMFOwKOw.js} +103 -102
- package/components/{CasinoCollectionsProviders-NvzBTvSZ.cjs → CasinoCollectionsProviders-CYXVu8jO.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-LsjiLvS-.js → CasinoCollectionsProviders-GaeLz6Pl.js} +55 -55
- package/components/{CasinoFavoritesSection-CagalPJ1.js → CasinoFavoritesSection-CfVT3epR.js} +23 -23
- package/components/{CasinoFavoritesSection-Bt29LuMk.cjs → CasinoFavoritesSection-CkE51xeT.cjs} +1 -1
- package/components/{CasinoFavoritesSection-CyWrstaf.js → CasinoFavoritesSection-DPSiSNGk.js} +23 -23
- package/components/{CasinoFilter-DC7UpKxg.js → CasinoFilter-Cf6wLS_J.js} +242 -243
- package/components/{CasinoFilter-DBAa4rgv.js → CasinoFilter-DT_mfIxJ.js} +230 -229
- package/components/CasinoFilter-DkRFodLT.cjs +1 -0
- package/components/{CasinoGameThumbnail-CMb4reBZ.js → CasinoGameThumbnail-CauadTSp.js} +1759 -1775
- package/components/CasinoGameThumbnail-DrSyOUlK.cjs +47 -0
- package/components/{CasinoGameThumbnail-B7uy1GX3.js → CasinoGameThumbnail-DsxrYUeR.js} +1406 -1390
- package/components/{CasinoGamesCategorySection-CRtCMAjp.js → CasinoGamesCategorySection-DGSWlFTH.js} +247 -247
- package/components/{CasinoGamesCategorySection-B3Bp6l_k.js → CasinoGamesCategorySection-DkGmDHac.js} +248 -248
- package/components/{CasinoGamesCategorySection-D92ROEU1.cjs → CasinoGamesCategorySection-hJflAIRq.cjs} +1 -1
- package/components/{CasinoJackpotBanner-C2j1yUXk.js → CasinoJackpotBanner-Dt56Ssbv.js} +74 -74
- package/components/{CasinoJackpotBanner-CFJR1YWM.js → CasinoJackpotBanner-QjY0RFqn.js} +69 -69
- package/components/{CasinoJackpotBanner-BgpQokE3.cjs → CasinoJackpotBanner-W78-HVH9.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-CP9dX4CD.cjs → CasinoLastPlayedSection-AVoAf4mv.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-yMWIttip.js → CasinoLastPlayedSection-BbNJh01t.js} +38 -38
- package/components/{CasinoLastPlayedSection-e_AhXxxn.js → CasinoLastPlayedSection-C_j3LPmT.js} +38 -38
- package/components/{CasinoMostPlayedSection-CLC4ygQi.js → CasinoMostPlayedSection-BlPs8slF.js} +49 -49
- package/components/{CasinoMostPlayedSection-DYSGy8eM.cjs → CasinoMostPlayedSection-DDmHLMWJ.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-HE-myBqe.js → CasinoMostPlayedSection-rBy5-Jnu.js} +49 -49
- package/components/{CasinoMyGames-Cks_AoFO.js → CasinoMyGames-BTb99mJz.js} +41 -41
- package/components/{CasinoMyGames-D49GZGiX.cjs → CasinoMyGames-D9v6VO98.cjs} +1 -1
- package/components/{CasinoMyGames-CuPK_rPf.js → CasinoMyGames-Da7YFLZB.js} +42 -42
- package/components/{CasinoPage-D1568shu.js → CasinoPage-8NYVpmeY.js} +94 -94
- package/components/{CasinoPage-s40JstlB.cjs → CasinoPage-DQL-iD56.cjs} +1 -1
- package/components/{CasinoPage-BQeQvwZz.js → CasinoPage-S9SAAOBP.js} +99 -99
- package/components/{CasinoRandomGame-C1nrrW2N.cjs → CasinoRandomGame-CH4DPGtX.cjs} +1 -1
- package/components/{CasinoRandomGame-DfLR0r0i.js → CasinoRandomGame-CTVNBAys.js} +62 -62
- package/components/{CasinoRandomGame-D3B5tI8S.js → CasinoRandomGame-FAQztl67.js} +60 -60
- package/components/{CasinoSearch-CHpx5Vs-.js → CasinoSearch-C5VwVBaf.js} +87 -87
- package/components/{CasinoSearch-B_glDkCU.cjs → CasinoSearch-CZ4AR6hH.cjs} +1 -1
- package/components/{CasinoSearch-CjRXYPxE.js → CasinoSearch-uRmrNr_r.js} +85 -85
- package/components/{CasinoSort-DcG0TUN4.cjs → CasinoSort-CD6jHMIw.cjs} +1 -1
- package/components/{CasinoSort-BU6PWDpY.js → CasinoSort-D-E5cV7V.js} +110 -111
- package/components/{CasinoSort-DX5EmYm_.js → CasinoSort-jHGGKT4T.js} +104 -103
- package/components/{CasinoWinners-BOa69aMH.js → CasinoWinners-BnSu5nnB.js} +166 -166
- package/components/{CasinoWinners-CYRn98z1.js → CasinoWinners-BpeW82lE.js} +143 -143
- package/components/{CasinoWinners-DwOZC8ON.cjs → CasinoWinners-DM9Vf73b.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CXZNRm34.js → GeneralAnimationLoading-Bl-AgLq7.js} +16 -16
- package/components/{GeneralAnimationLoading-D0rjnOL3.js → GeneralAnimationLoading-oiUh9Rwe.js} +16 -16
- package/components/{GeneralAnimationLoading-B40sJaX7.cjs → GeneralAnimationLoading-vwMxZgQG.cjs} +1 -1
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +1 -1
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- 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-b2193545-DCd44oUP.cjs +1 -0
- package/stencil/index-b2193545-MPc38oBt.js +503 -0
- package/stencil/index-b2193545-lFMF9wMV.js +519 -0
- package/stencil/{ui-skeleton-sAoxznwb.js → ui-skeleton-0M0DsgcH.js} +2 -2
- package/stencil/{ui-skeleton-BpUWeWAr.js → ui-skeleton-DGBcSK-r.js} +2 -2
- package/stencil/{ui-skeleton-D2GYc4Vd.cjs → ui-skeleton-Dt8jS6rz.cjs} +1 -1
- package/stencil/{ui-skeleton-ea659b95-DmKUoob8.js → ui-skeleton-ea659b95-Denrk3xZ.js} +1 -1
- package/stencil/{ui-skeleton-ea659b95-CvOjl779.cjs → ui-skeleton-ea659b95-DoJviCLo.cjs} +1 -1
- package/stencil/{ui-skeleton-ea659b95-CaDtZrvR.js → ui-skeleton-ea659b95-Doo7piTc.js} +1 -1
- package/components/CasinoCalendar-DBpyNdzX.cjs +0 -19
- package/components/CasinoFilter-DVMmkZnS.cjs +0 -1
- package/components/CasinoGameThumbnail-CoqIabrC.cjs +0 -47
- 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-b2193545-BDVBrmNo.js +0 -503
- package/stencil/index-b2193545-CY979_sp.js +0 -519
- package/stencil/index-b2193545-DPplmtxO.cjs +0 -1
package/components/{CasinoCollectionsProviders-CYGBqFuD.js → CasinoCollectionsProviders-CMFOwKOw.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 M, b as Pe, n as B, d as x, h as F, 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 R, p as v, q, B as T, N as xe, A as z, G as I, D as A, O as Fe, I as Te, J as Oe, K as Be, L as He, M as ze } from "./CasinoCalendar-Ckt1PYIP.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();
|
|
@@ -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 = T(), s && s.c(), _ = T(), 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
|
+
F(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
|
+
)) + "") && R(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,7 +180,7 @@ 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
|
}
|
|
@@ -191,11 +191,11 @@ function Ie(t) {
|
|
|
191
191
|
e = y("div"), m(e, "class", "LoadingSpinner");
|
|
192
192
|
},
|
|
193
193
|
m(i, n) {
|
|
194
|
-
|
|
194
|
+
F(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
|
}
|
|
@@ -206,14 +206,14 @@ function le(t) {
|
|
|
206
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 = T(), 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
|
+
F(_, 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 Re(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
|
+
F(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 + "") && R(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
|
+
F(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
|
+
F(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 + "") && R(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 = T(), s && s.c(), d = T(), m(i, "class", "CategorySlideGameImage"),
|
|
317
|
+
e = y("div"), i = y("img"), r = T(), s && s.c(), d = T(), 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
|
+
F(f, e, a), v(e, i), v(e, r), s && s.m(e, null), v(e, d), _ || (b = z(i, "click", Fe(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 Re;
|
|
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 = [];
|
|
@@ -374,36 +374,36 @@ function ae(t) {
|
|
|
374
374
|
((p = t[41]) == null ? void 0 : p.background) + ")"), I(i, "background-size", "cover"), m(e, "class", "CategoriesSliderWrapper Animation");
|
|
375
375
|
},
|
|
376
376
|
m(u, p) {
|
|
377
|
-
|
|
377
|
+
F(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
|
-
var C,
|
|
383
|
+
var C, P;
|
|
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
|
-
let
|
|
391
|
-
for (
|
|
392
|
-
const O = oe(t, c,
|
|
393
|
-
g[
|
|
390
|
+
let S;
|
|
391
|
+
for (S = 0; S < c.length; S += 1) {
|
|
392
|
+
const O = oe(t, c, S);
|
|
393
|
+
g[S] ? g[S].p(O, p) : (g[S] = re(O), g[S].c(), g[S].m(r, null));
|
|
394
394
|
}
|
|
395
|
-
for (;
|
|
396
|
-
g[
|
|
395
|
+
for (; S < g.length; S += 1)
|
|
396
|
+
g[S].d(1);
|
|
397
397
|
g.length = c.length;
|
|
398
398
|
}
|
|
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
402
|
8 && I(i, "background-image", "url(" + /*category*/
|
|
403
|
-
((
|
|
403
|
+
((P = t[41]) == null ? void 0 : P.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
|
}
|
|
@@ -421,29 +421,29 @@ function Ue(t) {
|
|
|
421
421
|
e = y("div"), l.c();
|
|
422
422
|
},
|
|
423
423
|
m(r, d) {
|
|
424
|
-
|
|
424
|
+
F(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,
|
|
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, P = 0, S, O, U = 0, N = 50, E = !1, L, ce = window.navigator.userAgent, V;
|
|
440
440
|
const de = () => {
|
|
441
|
-
fetch(f).then((
|
|
442
|
-
Object.keys(
|
|
443
|
-
ee(
|
|
441
|
+
fetch(f).then((w) => w.json()).then((w) => {
|
|
442
|
+
Object.keys(w).forEach((j) => {
|
|
443
|
+
ee(j, w[j]);
|
|
444
444
|
});
|
|
445
|
-
}).catch((
|
|
446
|
-
console.log(
|
|
445
|
+
}).catch((w) => {
|
|
446
|
+
console.log(w);
|
|
447
447
|
});
|
|
448
448
|
};
|
|
449
449
|
Object.keys(te).forEach((o) => {
|
|
@@ -451,51 +451,52 @@ function Ve(t, e, i) {
|
|
|
451
451
|
});
|
|
452
452
|
const W = () => {
|
|
453
453
|
const o = new URL(`${l}/v2/casino/groups/${r}`);
|
|
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((
|
|
455
|
-
i(6, h = !1),
|
|
456
|
-
let
|
|
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((w) => w.json()).then((w) => {
|
|
455
|
+
i(6, h = !1), w.total > N && (U += 50, N += 50, i(22, E = !0));
|
|
456
|
+
let j = w.items.map((G) => {
|
|
457
457
|
var X, Y, Q;
|
|
458
458
|
return {
|
|
459
|
-
id:
|
|
460
|
-
name:
|
|
461
|
-
icon:
|
|
462
|
-
games:
|
|
463
|
-
background:
|
|
464
|
-
flag:
|
|
459
|
+
id: G.id,
|
|
460
|
+
name: G.name,
|
|
461
|
+
icon: G.icon ? G.icon : (Q = (Y = (X = G.vendors) == null ? void 0 : X.items[0]) == null ? void 0 : Y.subVendors[0]) == null ? void 0 : Q.logo,
|
|
462
|
+
games: G.games.items.slice(0, 4).map((ye) => ye),
|
|
463
|
+
background: G.background,
|
|
464
|
+
flag: G.flags
|
|
465
465
|
};
|
|
466
466
|
});
|
|
467
|
-
i(3, g = [...g, ...
|
|
467
|
+
i(3, g = [...g, ...j]), i(7, C = g.length), ge();
|
|
468
468
|
});
|
|
469
469
|
}, ge = () => {
|
|
470
|
-
const o =
|
|
470
|
+
const o = L.getRootNode().host;
|
|
471
471
|
o.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: o } }));
|
|
472
472
|
}, D = (o) => {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
473
|
+
var w;
|
|
474
|
+
O = [...u.children], O.forEach((j, G) => {
|
|
475
|
+
j.style.transform = `translateX(${100 * (o ? G - o : G)}%)`;
|
|
476
|
+
}), S = (w = O[0]) == null ? void 0 : w.getBoundingClientRect().width, ue();
|
|
476
477
|
}, ue = () => {
|
|
477
|
-
i(8,
|
|
478
|
+
i(8, P = Math.floor(u.clientWidth / S));
|
|
478
479
|
}, K = () => {
|
|
479
480
|
D(p);
|
|
480
481
|
}, me = () => {
|
|
481
|
-
p === 0 ? p = C -
|
|
482
|
+
p === 0 ? p = C - P : p - P < -1 ? p = 0 : p--, K();
|
|
482
483
|
}, fe = () => {
|
|
483
|
-
p === C -
|
|
484
|
-
},
|
|
484
|
+
p === C - P ? p = 0 : C - P < p + 1 ? p = C - P : p++, K();
|
|
485
|
+
}, J = (o, w, j, G) => {
|
|
485
486
|
window.postMessage(
|
|
486
487
|
{
|
|
487
488
|
type: "OpenCollectionsProvidersGame",
|
|
488
489
|
gameId: o,
|
|
489
|
-
launchUrl:
|
|
490
|
-
gameName:
|
|
491
|
-
subVendor:
|
|
490
|
+
launchUrl: w,
|
|
491
|
+
gameName: j,
|
|
492
|
+
subVendor: G
|
|
492
493
|
},
|
|
493
494
|
window.location.href
|
|
494
495
|
), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
495
496
|
context: "CollectionsProviders",
|
|
496
|
-
gameName: `${
|
|
497
|
+
gameName: `${j}`
|
|
497
498
|
});
|
|
498
|
-
},
|
|
499
|
+
}, Z = (o) => {
|
|
499
500
|
window.postMessage(
|
|
500
501
|
{
|
|
501
502
|
type: "OpenCollectionsProvidersCategory",
|
|
@@ -504,11 +505,11 @@ function Ve(t, e, i) {
|
|
|
504
505
|
window.location.href
|
|
505
506
|
);
|
|
506
507
|
}, pe = () => {
|
|
507
|
-
|
|
508
|
+
Ae(d);
|
|
508
509
|
};
|
|
509
|
-
|
|
510
|
+
Me(() => (i(9, V = je(ce)), () => {
|
|
510
511
|
}));
|
|
511
|
-
const he = (o) =>
|
|
512
|
+
const he = (o) => J(o.gameId, o.launchUrl, o.name, o.subVendor), ve = (o) => Z(o.id);
|
|
512
513
|
function be(o) {
|
|
513
514
|
$[o ? "unshift" : "push"](() => {
|
|
514
515
|
u = o, i(4, u);
|
|
@@ -516,7 +517,7 @@ function Ve(t, e, i) {
|
|
|
516
517
|
}
|
|
517
518
|
function Ce(o) {
|
|
518
519
|
$[o ? "unshift" : "push"](() => {
|
|
519
|
-
|
|
520
|
+
L = o, i(5, L);
|
|
520
521
|
});
|
|
521
522
|
}
|
|
522
523
|
return t.$$set = (o) => {
|
|
@@ -526,9 +527,9 @@ function Ve(t, e, i) {
|
|
|
526
527
|
229376 && l && r && d && W(), t.$$.dirty[0] & /*gameCategories, categoriesSlider*/
|
|
527
528
|
24 && g && u && D(), t.$$.dirty[0] & /*lang*/
|
|
528
529
|
131072 && d && pe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
529
|
-
262176 && k &&
|
|
530
|
-
524320 && s &&
|
|
531
|
-
2097184 &&
|
|
530
|
+
262176 && k && L && Te(L, k), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
531
|
+
524320 && s && L && Oe(L, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
532
|
+
2097184 && L && Be(L, `${c}.Style`), t.$$.dirty[0] & /*translationurl*/
|
|
532
533
|
1048576 && f && de(), t.$$.dirty[0] & /*paginationrequired*/
|
|
533
534
|
4194304 && E && W();
|
|
534
535
|
}, [
|
|
@@ -537,16 +538,16 @@ function Ve(t, e, i) {
|
|
|
537
538
|
a,
|
|
538
539
|
g,
|
|
539
540
|
u,
|
|
540
|
-
|
|
541
|
+
L,
|
|
541
542
|
h,
|
|
542
543
|
C,
|
|
543
|
-
|
|
544
|
+
P,
|
|
544
545
|
V,
|
|
545
546
|
n,
|
|
546
547
|
me,
|
|
547
548
|
fe,
|
|
548
|
-
Z,
|
|
549
549
|
J,
|
|
550
|
+
Z,
|
|
550
551
|
l,
|
|
551
552
|
r,
|
|
552
553
|
d,
|
|
@@ -568,7 +569,7 @@ class We extends Se {
|
|
|
568
569
|
e,
|
|
569
570
|
Ve,
|
|
570
571
|
Ue,
|
|
571
|
-
|
|
572
|
+
Ge,
|
|
572
573
|
{
|
|
573
574
|
endpoint: 15,
|
|
574
575
|
datasource: 16,
|
|
@@ -589,64 +590,64 @@ class We extends Se {
|
|
|
589
590
|
return this.$$.ctx[15];
|
|
590
591
|
}
|
|
591
592
|
set endpoint(e) {
|
|
592
|
-
this.$$set({ endpoint: e }),
|
|
593
|
+
this.$$set({ endpoint: e }), M();
|
|
593
594
|
}
|
|
594
595
|
get datasource() {
|
|
595
596
|
return this.$$.ctx[16];
|
|
596
597
|
}
|
|
597
598
|
set datasource(e) {
|
|
598
|
-
this.$$set({ datasource: e }),
|
|
599
|
+
this.$$set({ datasource: e }), M();
|
|
599
600
|
}
|
|
600
601
|
get lang() {
|
|
601
602
|
return this.$$.ctx[17];
|
|
602
603
|
}
|
|
603
604
|
set lang(e) {
|
|
604
|
-
this.$$set({ lang: e }),
|
|
605
|
+
this.$$set({ lang: e }), M();
|
|
605
606
|
}
|
|
606
607
|
get type() {
|
|
607
608
|
return this.$$.ctx[0];
|
|
608
609
|
}
|
|
609
610
|
set type(e) {
|
|
610
|
-
this.$$set({ type: e }),
|
|
611
|
+
this.$$set({ type: e }), M();
|
|
611
612
|
}
|
|
612
613
|
get titletype() {
|
|
613
614
|
return this.$$.ctx[1];
|
|
614
615
|
}
|
|
615
616
|
set titletype(e) {
|
|
616
|
-
this.$$set({ titletype: e }),
|
|
617
|
+
this.$$set({ titletype: e }), M();
|
|
617
618
|
}
|
|
618
619
|
get clientstyling() {
|
|
619
620
|
return this.$$.ctx[18];
|
|
620
621
|
}
|
|
621
622
|
set clientstyling(e) {
|
|
622
|
-
this.$$set({ clientstyling: e }),
|
|
623
|
+
this.$$set({ clientstyling: e }), M();
|
|
623
624
|
}
|
|
624
625
|
get clientstylingurl() {
|
|
625
626
|
return this.$$.ctx[19];
|
|
626
627
|
}
|
|
627
628
|
set clientstylingurl(e) {
|
|
628
|
-
this.$$set({ clientstylingurl: e }),
|
|
629
|
+
this.$$set({ clientstylingurl: e }), M();
|
|
629
630
|
}
|
|
630
631
|
get translationurl() {
|
|
631
632
|
return this.$$.ctx[20];
|
|
632
633
|
}
|
|
633
634
|
set translationurl(e) {
|
|
634
|
-
this.$$set({ translationurl: e }),
|
|
635
|
+
this.$$set({ translationurl: e }), M();
|
|
635
636
|
}
|
|
636
637
|
get collectionprovidersgamenames() {
|
|
637
638
|
return this.$$.ctx[2];
|
|
638
639
|
}
|
|
639
640
|
set collectionprovidersgamenames(e) {
|
|
640
|
-
this.$$set({ collectionprovidersgamenames: e }),
|
|
641
|
+
this.$$set({ collectionprovidersgamenames: e }), M();
|
|
641
642
|
}
|
|
642
643
|
get mbsource() {
|
|
643
644
|
return this.$$.ctx[21];
|
|
644
645
|
}
|
|
645
646
|
set mbsource(e) {
|
|
646
|
-
this.$$set({ mbsource: e }),
|
|
647
|
+
this.$$set({ mbsource: e }), M();
|
|
647
648
|
}
|
|
648
649
|
}
|
|
649
|
-
|
|
650
|
+
He(We, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
|
|
650
651
|
export {
|
|
651
652
|
We as default
|
|
652
653
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DBpyNdzX.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-DEC4kbu7.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 _,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]=D(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 "+(((_=i[41])==null?void 0:_.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 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,k=0,C,L,x=0,M=50,j=!1,G,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{E(P,y[P])})}).catch(y=>{console.log(y)})};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(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(x+=50,M+=50,l(22,j=!0));let P=y.items.map(S=>{var q,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(q=S.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,_=u.length),Y()})},Y=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},O=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,Q()},Q=()=>{l(8,k=Math.floor(p.clientWidth/C))},H=()=>{O(f)},$=()=>{f===0?f=_-k:f-k<-1?f=0:f--,H()},ee=()=>{f===_-k?f=0:_-k<f+1?f=_-k:f++,H()},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}`})},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"](()=>{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,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&&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`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,G,h,_,k,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;
|