@everymatrix/casino-tournaments-list-controller 1.71.1 → 1.72.0
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/CasinoTournamentsListController-B1XzpG4J.cjs +15 -0
- package/components/{CasinoTournamentsListController-CNr53zQh.js → CasinoTournamentsListController-BCnAtVmn.js} +1030 -1062
- package/components/{CasinoTournamentsListController-B91Lyqax.js → CasinoTournamentsListController-D3MaGDVN.js} +1627 -1659
- package/components/{CasinoTournamentsThumbnail-siUGtR0g.cjs → CasinoTournamentsThumbnail-BRGkoFoC.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-dZ1sm6ym.js → CasinoTournamentsThumbnail-B_xXwN02.js} +34 -34
- package/components/{CasinoTournamentsThumbnail-DJR17vOA.js → CasinoTournamentsThumbnail-COVVmhez.js} +34 -34
- package/components/{CasinoTournamentsThumbnailController-By0nIi_-.js → CasinoTournamentsThumbnailController-BDILw0kU.js} +612 -580
- package/components/CasinoTournamentsThumbnailController-DPkY8Pvh.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-DClFnhM2.js → CasinoTournamentsThumbnailController-DsFja4VF.js} +626 -560
- package/components/{CasinoTournamentsThumbnailDuration-DNm3kZA6.js → CasinoTournamentsThumbnailDuration-Ci2doxnu.js} +55 -55
- package/components/{CasinoTournamentsThumbnailDuration-DY7DHyLw.cjs → CasinoTournamentsThumbnailDuration-pMXg-yuf.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-Dknze1IO.js → CasinoTournamentsThumbnailDuration-uSfT4bb8.js} +55 -55
- package/components/{CasinoTournamentsThumbnailGamesSlider-D_kUDgO5.cjs → CasinoTournamentsThumbnailGamesSlider--fmvMYlS.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-D45WQ2Dp.js → CasinoTournamentsThumbnailGamesSlider-CmRGgGUe.js} +57 -57
- package/components/{CasinoTournamentsThumbnailGamesSlider-Cawyju7x.js → CasinoTournamentsThumbnailGamesSlider-nITF-3nk.js} +57 -57
- package/components/{CasinoTournamentsThumbnailPrizes-7u2QNaQE.js → CasinoTournamentsThumbnailPrizes-BSH-8Cm5.js} +66 -66
- package/components/{CasinoTournamentsThumbnailPrizes-2H2CQrq-.cjs → CasinoTournamentsThumbnailPrizes-CEAzqLRh.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BcFwjh1i.js → CasinoTournamentsThumbnailPrizes-D6rXEjM4.js} +66 -66
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/index-b2193545-BS7xFIk4.js +503 -0
- package/stencil/index-b2193545-BTdVi7--.cjs +1 -0
- package/stencil/index-b2193545-rfNAj6ri.js +519 -0
- package/stencil/{ui-image-CDCn_LHy.cjs → ui-image-Bk8cIvcH.cjs} +1 -1
- package/stencil/{ui-image-CNrnXPP3.js → ui-image-CXqPvnQ2.js} +1 -1
- package/stencil/{ui-image-CDGN3Ekj.js → ui-image-DgbODkuX.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/{ui-skeleton-Caiy-FEL.cjs → ui-skeleton-B0BB970e.cjs} +1 -1
- package/stencil/{ui-skeleton-CzV3R1-p.js → ui-skeleton-D8L-WY77.js} +2 -2
- package/stencil/{ui-skeleton-C73UqtBQ.js → ui-skeleton-DSebcnN1.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CLOd38Ia.js → ui-skeleton-ae35c6f2-BH4D8vHD.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-SCby2j53.js → ui-skeleton-ae35c6f2-CcPx4a2P.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-C9l5j8aK.cjs → ui-skeleton-ae35c6f2-DDiK5zGt.cjs} +1 -1
- package/components/CasinoTournamentsListController-Xh8cK8m7.cjs +0 -28
- package/components/CasinoTournamentsThumbnailController-D0OPXphy.cjs +0 -3
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
- package/stencil/index-b2193545-CF9C6kiu.cjs +0 -1
- package/stencil/index-b2193545-OH6E7v51.js +0 -519
- package/stencil/index-b2193545-eoIiLcDl.js +0 -503
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as _e, S as be, i as ve,
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as _e, S as be, i as ve, s as ke, f as T, c as Ne, n as R, d as G, g as W, j as N, l as Se, o as Te, G as Y, H as Fe, u as ne, I as L, F as K, h as b, J as Be, v as z, k as C, e as c, K as Pe, p as U, m as Me, w as Z, t as Ee, z as je, A as ze, B as Ae, C as He, D as Le } from "./CasinoTournamentsListController-D3MaGDVN.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-BDILw0kU.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -36,7 +36,7 @@ const V = {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
function De(e) {
|
|
39
|
-
|
|
39
|
+
Ne(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
|
|
40
40
|
}
|
|
41
41
|
function $(e, n, t) {
|
|
42
42
|
const a = e.slice();
|
|
@@ -54,7 +54,7 @@ function ee(e) {
|
|
|
54
54
|
n = N("div"), t = N("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = C(), d = N("main"), h = N("div");
|
|
55
55
|
for (let r = 0; r < i.length; r += 1)
|
|
56
56
|
i[r].c();
|
|
57
|
-
y = C(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"),
|
|
57
|
+
y = C(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), L(
|
|
58
58
|
t,
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
@@ -63,7 +63,7 @@ function ee(e) {
|
|
|
63
63
|
e[2] + "px)"), Pe(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
65
|
e[29].call(d)
|
|
66
|
-
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"),
|
|
66
|
+
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"), L(
|
|
67
67
|
s,
|
|
68
68
|
"disabled",
|
|
69
69
|
/*atEnd*/
|
|
@@ -74,18 +74,18 @@ function ee(e) {
|
|
|
74
74
|
W(r, n, m), b(n, t), b(n, a), b(n, d), b(d, h);
|
|
75
75
|
for (let u = 0; u < i.length; u += 1)
|
|
76
76
|
i[u] && i[u].m(h, null);
|
|
77
|
-
e[28](h), p =
|
|
77
|
+
e[28](h), p = Be(
|
|
78
78
|
d,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
80
|
e[29].bind(d)
|
|
81
81
|
), b(n, y), b(n, s), e[31](n), w || (_ = [
|
|
82
|
-
|
|
82
|
+
z(
|
|
83
83
|
t,
|
|
84
84
|
"click",
|
|
85
85
|
/*click_handler*/
|
|
86
86
|
e[24]
|
|
87
87
|
),
|
|
88
|
-
|
|
88
|
+
z(
|
|
89
89
|
s,
|
|
90
90
|
"click",
|
|
91
91
|
/*click_handler_2*/
|
|
@@ -95,7 +95,7 @@ function ee(e) {
|
|
|
95
95
|
},
|
|
96
96
|
p(r, m) {
|
|
97
97
|
if (m[0] & /*atStart*/
|
|
98
|
-
256 &&
|
|
98
|
+
256 && L(
|
|
99
99
|
t,
|
|
100
100
|
"disabled",
|
|
101
101
|
/*atStart*/
|
|
@@ -118,7 +118,7 @@ function ee(e) {
|
|
|
118
118
|
m[0] & /*offset*/
|
|
119
119
|
4 && K(h, "transform", "translateX(" + /*offset*/
|
|
120
120
|
r[2] + "px)"), m[0] & /*atEnd*/
|
|
121
|
-
512 &&
|
|
121
|
+
512 && L(
|
|
122
122
|
s,
|
|
123
123
|
"disabled",
|
|
124
124
|
/*atEnd*/
|
|
@@ -126,7 +126,7 @@ function ee(e) {
|
|
|
126
126
|
);
|
|
127
127
|
},
|
|
128
128
|
d(r) {
|
|
129
|
-
r &&
|
|
129
|
+
r && G(n), Fe(i, r), e[28](null), p(), e[31](null), w = !1, ne(_);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -155,7 +155,7 @@ function te(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
158
|
-
n = N("div"), t = N("span"), d =
|
|
158
|
+
n = N("div"), t = N("span"), d = Ee(a), y = C(), s = N("img"), i = C(), c(t, "class", h = "PlayNowButton " + /*hover*/
|
|
159
159
|
(e[5] && /*hoverIndex*/
|
|
160
160
|
e[6] == /*i*/
|
|
161
161
|
e[51] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -168,9 +168,9 @@ function te(e) {
|
|
|
168
168
|
},
|
|
169
169
|
m(v, o) {
|
|
170
170
|
W(v, n, o), b(n, t), b(t, d), b(n, y), b(n, s), b(n, i), r || (m = [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
z(n, "click", u),
|
|
172
|
+
z(n, "mouseenter", k),
|
|
173
|
+
z(
|
|
174
174
|
n,
|
|
175
175
|
"mouseleave",
|
|
176
176
|
/*mouseleave_handler*/
|
|
@@ -181,7 +181,7 @@ function te(e) {
|
|
|
181
181
|
p(v, o) {
|
|
182
182
|
e = v, o[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") &&
|
|
184
|
+
e[10]("playNow") + "") && Me(d, a), o[0] & /*hover, hoverIndex*/
|
|
185
185
|
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
@@ -198,7 +198,7 @@ function te(e) {
|
|
|
198
198
|
e[49].name) && c(s, "title", g);
|
|
199
199
|
},
|
|
200
200
|
d(v) {
|
|
201
|
-
v &&
|
|
201
|
+
v && G(n), r = !1, ne(m);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
@@ -223,15 +223,15 @@ function Ie(e) {
|
|
|
223
223
|
i: R,
|
|
224
224
|
o: R,
|
|
225
225
|
d(a) {
|
|
226
|
-
a &&
|
|
226
|
+
a && G(n), t && t.d(), e[32](null);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
|
-
function
|
|
231
|
+
function Ge(e, n, t) {
|
|
232
232
|
let a, d, h;
|
|
233
|
-
|
|
234
|
-
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S,
|
|
233
|
+
Se(e, Le, (l) => t(10, h = l));
|
|
234
|
+
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S, A = null, H = null, D = !1, I, P, M = 0, F;
|
|
235
235
|
const le = () => {
|
|
236
236
|
fetch(_).then((f) => f.json()).then((f) => {
|
|
237
237
|
Object.keys(f).forEach((j) => {
|
|
@@ -244,21 +244,21 @@ function We(e, n, t) {
|
|
|
244
244
|
Object.keys(V).forEach((l) => {
|
|
245
245
|
Q(l, V[l]);
|
|
246
246
|
});
|
|
247
|
-
const
|
|
247
|
+
const q = (l) => {
|
|
248
248
|
t(5, D = !0), t(6, I = l);
|
|
249
|
-
},
|
|
249
|
+
}, J = () => {
|
|
250
250
|
t(5, D = !1), t(6, I = -1);
|
|
251
|
-
}, se = (l) => l.touches || l.originalEvent.touches,
|
|
251
|
+
}, se = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
252
252
|
const f = se(l)[0];
|
|
253
|
-
|
|
254
|
-
},
|
|
255
|
-
if (!
|
|
253
|
+
A = f.clientX, H = f.clientY;
|
|
254
|
+
}, X = (l) => {
|
|
255
|
+
if (!A || !H)
|
|
256
256
|
return;
|
|
257
|
-
let f = l.touches[0].clientX, j = l.touches[0].clientY,
|
|
258
|
-
Math.abs(
|
|
257
|
+
let f = l.touches[0].clientX, j = l.touches[0].clientY, B = A - f, we = H - j;
|
|
258
|
+
Math.abs(B) > Math.abs(we) && (B > 0 ? E(1) : E(-1)), A = null, H = null;
|
|
259
259
|
}, E = (l) => {
|
|
260
|
-
l > 0 && !d ? (t(2, o -= k), t(2, o = o <
|
|
261
|
-
},
|
|
260
|
+
l > 0 && !d ? (t(2, o -= k), t(2, o = o < M ? M : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
|
|
261
|
+
}, x = (l) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
264
264
|
type: "TournamentGameAction",
|
|
@@ -270,32 +270,32 @@ function We(e, n, t) {
|
|
|
270
270
|
);
|
|
271
271
|
}, re = () => {
|
|
272
272
|
let l = new URL(p), f = new Headers();
|
|
273
|
-
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Ce(u)), fetch(l, { method: "GET", headers: f }).then((
|
|
274
|
-
t(1, v =
|
|
273
|
+
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Ce(u)), fetch(l, { method: "GET", headers: f }).then((B) => B.json()).then((B) => {
|
|
274
|
+
t(1, v = B.item.games.items), B.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, ae = () => {
|
|
277
|
-
S.addEventListener("touchstart",
|
|
277
|
+
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { passive: !0 });
|
|
278
278
|
}, ie = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
281
|
-
t(23,
|
|
281
|
+
t(23, M = (P.scrollWidth - P.clientWidth) * -1), t(16, s = new String(P.scrollWidth / v.length)), k = parseInt(y, 10) * parseFloat(s, 2).toFixed(2);
|
|
282
282
|
},
|
|
283
283
|
1e3
|
|
284
284
|
);
|
|
285
285
|
}, oe = () => {
|
|
286
|
-
|
|
286
|
+
F > 0 && F < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(F / s).toString());
|
|
287
287
|
};
|
|
288
|
-
|
|
289
|
-
S.removeEventListener("touchstart",
|
|
288
|
+
Te(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
|
|
289
|
+
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
290
290
|
}));
|
|
291
|
-
const ce = () => E(-1), ue = (l) =>
|
|
291
|
+
const ce = () => E(-1), ue = (l) => x(l), me = (l) => q(l), de = () => J();
|
|
292
292
|
function he(l) {
|
|
293
293
|
U[l ? "unshift" : "push"](() => {
|
|
294
|
-
|
|
294
|
+
P = l, t(7, P);
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
function ge() {
|
|
298
|
-
|
|
298
|
+
F = this.clientWidth, t(4, F);
|
|
299
299
|
}
|
|
300
300
|
const fe = () => E(1);
|
|
301
301
|
function pe(l) {
|
|
@@ -313,31 +313,31 @@ function We(e, n, t) {
|
|
|
313
313
|
}, e.$$.update = () => {
|
|
314
314
|
e.$$.dirty[0] & /*offset*/
|
|
315
315
|
4 && t(8, a = o === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
316
|
-
8388612 && t(9, d = o <=
|
|
317
|
-
16 &&
|
|
316
|
+
8388612 && t(9, d = o <= M), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
317
|
+
16 && F && oe(), e.$$.dirty[0] & /*tournamenturl*/
|
|
318
318
|
131072 && p && re(), e.$$.dirty[0] & /*slider*/
|
|
319
319
|
8 && S && ae(), e.$$.dirty[0] & /*translationurl*/
|
|
320
320
|
524288 && _ && le(), e.$$.dirty[0] & /*games*/
|
|
321
321
|
2 && v.length && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
322
|
-
1048577 && g && m &&
|
|
323
|
-
2097153 && i && m &&
|
|
324
|
-
4194305 && r && m &&
|
|
322
|
+
1048577 && g && m && je(m, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
323
|
+
2097153 && i && m && ze(m, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
324
|
+
4194305 && r && m && Ae(m, `${r}.Style`);
|
|
325
325
|
}, t(2, o = 0), [
|
|
326
326
|
m,
|
|
327
327
|
v,
|
|
328
328
|
o,
|
|
329
329
|
S,
|
|
330
|
-
|
|
330
|
+
F,
|
|
331
331
|
D,
|
|
332
332
|
I,
|
|
333
|
-
|
|
333
|
+
P,
|
|
334
334
|
a,
|
|
335
335
|
d,
|
|
336
336
|
h,
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
q,
|
|
338
|
+
J,
|
|
339
339
|
E,
|
|
340
|
-
|
|
340
|
+
x,
|
|
341
341
|
y,
|
|
342
342
|
s,
|
|
343
343
|
p,
|
|
@@ -346,7 +346,7 @@ function We(e, n, t) {
|
|
|
346
346
|
g,
|
|
347
347
|
i,
|
|
348
348
|
r,
|
|
349
|
-
|
|
349
|
+
M,
|
|
350
350
|
ce,
|
|
351
351
|
ue,
|
|
352
352
|
me,
|
|
@@ -358,14 +358,14 @@ function We(e, n, t) {
|
|
|
358
358
|
ye
|
|
359
359
|
];
|
|
360
360
|
}
|
|
361
|
-
class
|
|
361
|
+
class We extends be {
|
|
362
362
|
constructor(n) {
|
|
363
363
|
super(), ve(
|
|
364
364
|
this,
|
|
365
365
|
n,
|
|
366
|
-
|
|
366
|
+
Ge,
|
|
367
367
|
Ie,
|
|
368
|
-
|
|
368
|
+
ke,
|
|
369
369
|
{
|
|
370
370
|
tournamenturl: 17,
|
|
371
371
|
scrollby: 15,
|
|
@@ -429,7 +429,7 @@ class qe extends be {
|
|
|
429
429
|
this.$$set({ mbsource: n }), T();
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
He(We, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
433
433
|
export {
|
|
434
|
-
|
|
434
|
+
We as default
|
|
435
435
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as _e, S as be, i as ve,
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as _e, S as be, i as ve, s as ke, f as T, c as Ne, n as R, d as G, g as W, j as N, l as Se, o as Te, G as Y, H as Fe, u as ne, I as L, F as K, h as b, J as Be, v as z, k as C, e as c, K as Pe, p as U, m as Me, w as Z, t as Ee, z as je, A as ze, B as Ae, C as He, D as Le } from "./CasinoTournamentsListController-BCnAtVmn.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-DsFja4VF.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -36,7 +36,7 @@ const V = {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
function De(e) {
|
|
39
|
-
|
|
39
|
+
Ne(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
|
|
40
40
|
}
|
|
41
41
|
function $(e, n, t) {
|
|
42
42
|
const a = e.slice();
|
|
@@ -54,7 +54,7 @@ function ee(e) {
|
|
|
54
54
|
n = N("div"), t = N("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = C(), d = N("main"), h = N("div");
|
|
55
55
|
for (let r = 0; r < i.length; r += 1)
|
|
56
56
|
i[r].c();
|
|
57
|
-
y = C(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"),
|
|
57
|
+
y = C(), s = N("div"), s.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), L(
|
|
58
58
|
t,
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
@@ -63,7 +63,7 @@ function ee(e) {
|
|
|
63
63
|
e[2] + "px)"), Pe(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
65
|
e[29].call(d)
|
|
66
|
-
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"),
|
|
66
|
+
)), c(s, "class", "SliderNavButton"), c(s, "part", "SliderNavButton"), L(
|
|
67
67
|
s,
|
|
68
68
|
"disabled",
|
|
69
69
|
/*atEnd*/
|
|
@@ -74,18 +74,18 @@ function ee(e) {
|
|
|
74
74
|
W(r, n, m), b(n, t), b(n, a), b(n, d), b(d, h);
|
|
75
75
|
for (let u = 0; u < i.length; u += 1)
|
|
76
76
|
i[u] && i[u].m(h, null);
|
|
77
|
-
e[28](h), p =
|
|
77
|
+
e[28](h), p = Be(
|
|
78
78
|
d,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
80
|
e[29].bind(d)
|
|
81
81
|
), b(n, y), b(n, s), e[31](n), w || (_ = [
|
|
82
|
-
|
|
82
|
+
z(
|
|
83
83
|
t,
|
|
84
84
|
"click",
|
|
85
85
|
/*click_handler*/
|
|
86
86
|
e[24]
|
|
87
87
|
),
|
|
88
|
-
|
|
88
|
+
z(
|
|
89
89
|
s,
|
|
90
90
|
"click",
|
|
91
91
|
/*click_handler_2*/
|
|
@@ -95,7 +95,7 @@ function ee(e) {
|
|
|
95
95
|
},
|
|
96
96
|
p(r, m) {
|
|
97
97
|
if (m[0] & /*atStart*/
|
|
98
|
-
256 &&
|
|
98
|
+
256 && L(
|
|
99
99
|
t,
|
|
100
100
|
"disabled",
|
|
101
101
|
/*atStart*/
|
|
@@ -118,7 +118,7 @@ function ee(e) {
|
|
|
118
118
|
m[0] & /*offset*/
|
|
119
119
|
4 && K(h, "transform", "translateX(" + /*offset*/
|
|
120
120
|
r[2] + "px)"), m[0] & /*atEnd*/
|
|
121
|
-
512 &&
|
|
121
|
+
512 && L(
|
|
122
122
|
s,
|
|
123
123
|
"disabled",
|
|
124
124
|
/*atEnd*/
|
|
@@ -126,7 +126,7 @@ function ee(e) {
|
|
|
126
126
|
);
|
|
127
127
|
},
|
|
128
128
|
d(r) {
|
|
129
|
-
r &&
|
|
129
|
+
r && G(n), Fe(i, r), e[28](null), p(), e[31](null), w = !1, ne(_);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -155,7 +155,7 @@ function te(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
158
|
-
n = N("div"), t = N("span"), d =
|
|
158
|
+
n = N("div"), t = N("span"), d = Ee(a), y = C(), s = N("img"), i = C(), c(t, "class", h = "PlayNowButton " + /*hover*/
|
|
159
159
|
(e[5] && /*hoverIndex*/
|
|
160
160
|
e[6] == /*i*/
|
|
161
161
|
e[51] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -168,9 +168,9 @@ function te(e) {
|
|
|
168
168
|
},
|
|
169
169
|
m(v, o) {
|
|
170
170
|
W(v, n, o), b(n, t), b(t, d), b(n, y), b(n, s), b(n, i), r || (m = [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
z(n, "click", u),
|
|
172
|
+
z(n, "mouseenter", k),
|
|
173
|
+
z(
|
|
174
174
|
n,
|
|
175
175
|
"mouseleave",
|
|
176
176
|
/*mouseleave_handler*/
|
|
@@ -181,7 +181,7 @@ function te(e) {
|
|
|
181
181
|
p(v, o) {
|
|
182
182
|
e = v, o[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") &&
|
|
184
|
+
e[10]("playNow") + "") && Me(d, a), o[0] & /*hover, hoverIndex*/
|
|
185
185
|
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
@@ -198,7 +198,7 @@ function te(e) {
|
|
|
198
198
|
e[49].name) && c(s, "title", g);
|
|
199
199
|
},
|
|
200
200
|
d(v) {
|
|
201
|
-
v &&
|
|
201
|
+
v && G(n), r = !1, ne(m);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
@@ -223,15 +223,15 @@ function Ie(e) {
|
|
|
223
223
|
i: R,
|
|
224
224
|
o: R,
|
|
225
225
|
d(a) {
|
|
226
|
-
a &&
|
|
226
|
+
a && G(n), t && t.d(), e[32](null);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
|
-
function
|
|
231
|
+
function Ge(e, n, t) {
|
|
232
232
|
let a, d, h;
|
|
233
|
-
|
|
234
|
-
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S,
|
|
233
|
+
Se(e, Le, (l) => t(10, h = l));
|
|
234
|
+
let { tournamenturl: p = "" } = n, { scrollby: y = "3" } = n, { pagfactor: s = "175" } = n, { lang: w = "" } = n, { translationurl: _ = "" } = n, { clientstyling: g = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, m, u = window.navigator.userAgent, k, v = [], o = 0, S, A = null, H = null, D = !1, I, P, M = 0, F;
|
|
235
235
|
const le = () => {
|
|
236
236
|
fetch(_).then((f) => f.json()).then((f) => {
|
|
237
237
|
Object.keys(f).forEach((j) => {
|
|
@@ -244,21 +244,21 @@ function We(e, n, t) {
|
|
|
244
244
|
Object.keys(V).forEach((l) => {
|
|
245
245
|
Q(l, V[l]);
|
|
246
246
|
});
|
|
247
|
-
const
|
|
247
|
+
const q = (l) => {
|
|
248
248
|
t(5, D = !0), t(6, I = l);
|
|
249
|
-
},
|
|
249
|
+
}, J = () => {
|
|
250
250
|
t(5, D = !1), t(6, I = -1);
|
|
251
|
-
}, se = (l) => l.touches || l.originalEvent.touches,
|
|
251
|
+
}, se = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
252
252
|
const f = se(l)[0];
|
|
253
|
-
|
|
254
|
-
},
|
|
255
|
-
if (!
|
|
253
|
+
A = f.clientX, H = f.clientY;
|
|
254
|
+
}, X = (l) => {
|
|
255
|
+
if (!A || !H)
|
|
256
256
|
return;
|
|
257
|
-
let f = l.touches[0].clientX, j = l.touches[0].clientY,
|
|
258
|
-
Math.abs(
|
|
257
|
+
let f = l.touches[0].clientX, j = l.touches[0].clientY, B = A - f, we = H - j;
|
|
258
|
+
Math.abs(B) > Math.abs(we) && (B > 0 ? E(1) : E(-1)), A = null, H = null;
|
|
259
259
|
}, E = (l) => {
|
|
260
|
-
l > 0 && !d ? (t(2, o -= k), t(2, o = o <
|
|
261
|
-
},
|
|
260
|
+
l > 0 && !d ? (t(2, o -= k), t(2, o = o < M ? M : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
|
|
261
|
+
}, x = (l) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
264
264
|
type: "TournamentGameAction",
|
|
@@ -270,32 +270,32 @@ function We(e, n, t) {
|
|
|
270
270
|
);
|
|
271
271
|
}, re = () => {
|
|
272
272
|
let l = new URL(p), f = new Headers();
|
|
273
|
-
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Ce(u)), fetch(l, { method: "GET", headers: f }).then((
|
|
274
|
-
t(1, v =
|
|
273
|
+
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ue},offset=${o})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", w), l.searchParams.append("platform", Ce(u)), fetch(l, { method: "GET", headers: f }).then((B) => B.json()).then((B) => {
|
|
274
|
+
t(1, v = B.item.games.items), B.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, ae = () => {
|
|
277
|
-
S.addEventListener("touchstart",
|
|
277
|
+
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { passive: !0 });
|
|
278
278
|
}, ie = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
281
|
-
t(23,
|
|
281
|
+
t(23, M = (P.scrollWidth - P.clientWidth) * -1), t(16, s = new String(P.scrollWidth / v.length)), k = parseInt(y, 10) * parseFloat(s, 2).toFixed(2);
|
|
282
282
|
},
|
|
283
283
|
1e3
|
|
284
284
|
);
|
|
285
285
|
}, oe = () => {
|
|
286
|
-
|
|
286
|
+
F > 0 && F < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(F / s).toString());
|
|
287
287
|
};
|
|
288
|
-
|
|
289
|
-
S.removeEventListener("touchstart",
|
|
288
|
+
Te(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
|
|
289
|
+
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
290
290
|
}));
|
|
291
|
-
const ce = () => E(-1), ue = (l) =>
|
|
291
|
+
const ce = () => E(-1), ue = (l) => x(l), me = (l) => q(l), de = () => J();
|
|
292
292
|
function he(l) {
|
|
293
293
|
U[l ? "unshift" : "push"](() => {
|
|
294
|
-
|
|
294
|
+
P = l, t(7, P);
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
function ge() {
|
|
298
|
-
|
|
298
|
+
F = this.clientWidth, t(4, F);
|
|
299
299
|
}
|
|
300
300
|
const fe = () => E(1);
|
|
301
301
|
function pe(l) {
|
|
@@ -313,31 +313,31 @@ function We(e, n, t) {
|
|
|
313
313
|
}, e.$$.update = () => {
|
|
314
314
|
e.$$.dirty[0] & /*offset*/
|
|
315
315
|
4 && t(8, a = o === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
316
|
-
8388612 && t(9, d = o <=
|
|
317
|
-
16 &&
|
|
316
|
+
8388612 && t(9, d = o <= M), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
317
|
+
16 && F && oe(), e.$$.dirty[0] & /*tournamenturl*/
|
|
318
318
|
131072 && p && re(), e.$$.dirty[0] & /*slider*/
|
|
319
319
|
8 && S && ae(), e.$$.dirty[0] & /*translationurl*/
|
|
320
320
|
524288 && _ && le(), e.$$.dirty[0] & /*games*/
|
|
321
321
|
2 && v.length && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
322
|
-
1048577 && g && m &&
|
|
323
|
-
2097153 && i && m &&
|
|
324
|
-
4194305 && r && m &&
|
|
322
|
+
1048577 && g && m && je(m, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
323
|
+
2097153 && i && m && ze(m, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
324
|
+
4194305 && r && m && Ae(m, `${r}.Style`);
|
|
325
325
|
}, t(2, o = 0), [
|
|
326
326
|
m,
|
|
327
327
|
v,
|
|
328
328
|
o,
|
|
329
329
|
S,
|
|
330
|
-
|
|
330
|
+
F,
|
|
331
331
|
D,
|
|
332
332
|
I,
|
|
333
|
-
|
|
333
|
+
P,
|
|
334
334
|
a,
|
|
335
335
|
d,
|
|
336
336
|
h,
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
q,
|
|
338
|
+
J,
|
|
339
339
|
E,
|
|
340
|
-
|
|
340
|
+
x,
|
|
341
341
|
y,
|
|
342
342
|
s,
|
|
343
343
|
p,
|
|
@@ -346,7 +346,7 @@ function We(e, n, t) {
|
|
|
346
346
|
g,
|
|
347
347
|
i,
|
|
348
348
|
r,
|
|
349
|
-
|
|
349
|
+
M,
|
|
350
350
|
ce,
|
|
351
351
|
ue,
|
|
352
352
|
me,
|
|
@@ -358,14 +358,14 @@ function We(e, n, t) {
|
|
|
358
358
|
ye
|
|
359
359
|
];
|
|
360
360
|
}
|
|
361
|
-
class
|
|
361
|
+
class We extends be {
|
|
362
362
|
constructor(n) {
|
|
363
363
|
super(), ve(
|
|
364
364
|
this,
|
|
365
365
|
n,
|
|
366
|
-
|
|
366
|
+
Ge,
|
|
367
367
|
Ie,
|
|
368
|
-
|
|
368
|
+
ke,
|
|
369
369
|
{
|
|
370
370
|
tournamenturl: 17,
|
|
371
371
|
scrollby: 15,
|
|
@@ -429,7 +429,7 @@ class qe extends be {
|
|
|
429
429
|
this.$$set({ mbsource: n }), T();
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
He(We, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
433
433
|
export {
|
|
434
|
-
|
|
434
|
+
We as default
|
|
435
435
|
};
|