@everymatrix/casino-tournaments-page-controller 1.94.19 → 1.94.21
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/{CasinoTournamentsDetails-C93ESoLW.js → CasinoTournamentsDetails-BR4Lw1_e.js} +20 -20
- package/components/{CasinoTournamentsDetails-B3eezSw9.js → CasinoTournamentsDetails-PFnJ_OdE.js} +20 -20
- package/components/{CasinoTournamentsPageController-BEoxppZY.js → CasinoTournamentsPageController-BaLiSneC.js} +50 -50
- package/components/{CasinoTournamentsPageController-BkeYysYH.js → CasinoTournamentsPageController-DpQc24NO.js} +50 -50
- package/components/{CasinoTournamentsRank-BwROkRzo.js → CasinoTournamentsRank-Cnt0bXtG.js} +37 -37
- package/components/{CasinoTournamentsRank-DlNqXtgb.js → CasinoTournamentsRank-DNYbLNzE.js} +42 -42
- package/components/{CasinoTournamentsTab-C4v_nyLi.js → CasinoTournamentsTab-Cd3M_jtS.js} +27 -27
- package/components/{CasinoTournamentsTab-Bh1ztbzS.js → CasinoTournamentsTab-Ce6HOaFR.js} +35 -35
- package/components/{CasinoTournamentsTable-BZEGLZKU.js → CasinoTournamentsTable-BZcvhH96.js} +22 -22
- package/components/{CasinoTournamentsTable-BgTfrZ2t.js → CasinoTournamentsTable-CxR42Ea4.js} +22 -22
- package/components/{CasinoTournamentsThumbnail-yHEAdNZf.js → CasinoTournamentsThumbnail-AMu-mAA5.js} +24 -24
- package/components/{CasinoTournamentsThumbnail-D99txAC8.js → CasinoTournamentsThumbnail-APr-Vv-a.js} +29 -29
- package/components/{CasinoTournamentsThumbnailController-Cl115kQZ.js → CasinoTournamentsThumbnailController-BJw8XdmQ.js} +40 -40
- package/components/{CasinoTournamentsThumbnailController-DifMHtOP.js → CasinoTournamentsThumbnailController-C8OHBkEV.js} +41 -41
- package/components/{CasinoTournamentsThumbnailDuration-abUbEVWP.js → CasinoTournamentsThumbnailDuration-Csc9NvUB.js} +28 -28
- package/components/{CasinoTournamentsThumbnailDuration-wvtd8mff.js → CasinoTournamentsThumbnailDuration-DBcYG30e.js} +33 -33
- package/components/{CasinoTournamentsThumbnailGames-B2GsgYmM.js → CasinoTournamentsThumbnailGames-Bo0RfRKf.js} +31 -31
- package/components/{CasinoTournamentsThumbnailGames-Coq0eSw2.js → CasinoTournamentsThumbnailGames-DEnpWA5U.js} +51 -51
- package/components/{CasinoTournamentsThumbnailGamesSlider-DM0StDVK.js → CasinoTournamentsThumbnailGamesSlider-BGcSN7aa.js} +46 -46
- package/components/{CasinoTournamentsThumbnailGamesSlider-BHZ2ZM8D.js → CasinoTournamentsThumbnailGamesSlider-BlwqKAP6.js} +61 -61
- package/components/{CasinoTournamentsThumbnailPrizes-Dfm8hYbg.js → CasinoTournamentsThumbnailPrizes-BMfnYSZO.js} +78 -78
- package/components/{CasinoTournamentsThumbnailPrizes-CUmxyz9i.js → CasinoTournamentsThumbnailPrizes-BrzBc2fg.js} +100 -100
- package/components/{CasinoTournamentsThumbnailRule-TybIx7pC.js → CasinoTournamentsThumbnailRule-fwP9WVC9.js} +10 -10
- package/components/{CasinoTournamentsThumbnailRule-B----bW3.js → CasinoTournamentsThumbnailRule-iEMZ-j7T.js} +10 -10
- package/es2015/casino-tournaments-page-controller.js +1 -1
- package/esnext/casino-tournaments-page-controller.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as be, S as ve, i as ke, s as Ne, f as T, a as Se, n as Y, d as W, b as q, g as N, B as Te, o as Fe, G as Z, H as Be, E as le, M as C, L as K, e as v, N as Me, m as z, h as I, j as o, O as Pe, C as Ee, q as G, l as je, I as Q, t as Le, v as ze, w as He, x as Ae, c as Ce, F as Ie } from "./CasinoTournamentsPageController-BaLiSneC.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -42,7 +42,7 @@ function ee(e, n, t) {
|
|
|
42
42
|
return a[49] = n[t], a[51] = t, a;
|
|
43
43
|
}
|
|
44
44
|
function te(e) {
|
|
45
|
-
let n, t, a, m, d, y, w, s, _, b, h =
|
|
45
|
+
let n, t, a, m, d, y, w, s, _, b, h = Z(
|
|
46
46
|
/*games*/
|
|
47
47
|
e[1]
|
|
48
48
|
), i = [];
|
|
@@ -50,16 +50,16 @@ function te(e) {
|
|
|
50
50
|
i[r] = ne(ee(e, h, r));
|
|
51
51
|
return {
|
|
52
52
|
c() {
|
|
53
|
-
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 =
|
|
53
|
+
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 = I(), m = N("main"), d = N("div");
|
|
54
54
|
for (let r = 0; r < i.length; r += 1)
|
|
55
55
|
i[r].c();
|
|
56
|
-
w =
|
|
56
|
+
w = I(), 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>', o(t, "class", "SliderNavButton"), o(t, "part", "SliderNavButton"), C(
|
|
57
57
|
t,
|
|
58
58
|
"disabled",
|
|
59
59
|
/*atStart*/
|
|
60
60
|
e[8]
|
|
61
|
-
), o(d, "class", "items"), o(d, "part", "items"),
|
|
62
|
-
e[2] + "px)"),
|
|
61
|
+
), o(d, "class", "items"), o(d, "part", "items"), K(d, "transform", "translateX(" + /*offset*/
|
|
62
|
+
e[2] + "px)"), Pe(() => (
|
|
63
63
|
/*main_elementresize_handler*/
|
|
64
64
|
e[29].call(m)
|
|
65
65
|
)), o(s, "class", "SliderNavButton"), o(s, "part", "SliderNavButton"), C(
|
|
@@ -73,18 +73,18 @@ function te(e) {
|
|
|
73
73
|
q(r, n, u), v(n, t), v(n, a), v(n, m), v(m, d);
|
|
74
74
|
for (let c = 0; c < i.length; c += 1)
|
|
75
75
|
i[c] && i[c].m(d, null);
|
|
76
|
-
e[28](d), y =
|
|
76
|
+
e[28](d), y = Me(
|
|
77
77
|
m,
|
|
78
78
|
/*main_elementresize_handler*/
|
|
79
79
|
e[29].bind(m)
|
|
80
80
|
), v(n, w), v(n, s), e[31](n), _ || (b = [
|
|
81
|
-
|
|
81
|
+
z(
|
|
82
82
|
t,
|
|
83
83
|
"click",
|
|
84
84
|
/*click_handler*/
|
|
85
85
|
e[24]
|
|
86
86
|
),
|
|
87
|
-
|
|
87
|
+
z(
|
|
88
88
|
s,
|
|
89
89
|
"click",
|
|
90
90
|
/*click_handler_2*/
|
|
@@ -101,21 +101,21 @@ function te(e) {
|
|
|
101
101
|
r[8]
|
|
102
102
|
), u[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
103
103
|
23650) {
|
|
104
|
-
h =
|
|
104
|
+
h = Z(
|
|
105
105
|
/*games*/
|
|
106
106
|
r[1]
|
|
107
107
|
);
|
|
108
108
|
let c;
|
|
109
109
|
for (c = 0; c < h.length; c += 1) {
|
|
110
|
-
const
|
|
111
|
-
i[c] ? i[c].p(
|
|
110
|
+
const M = ee(r, h, c);
|
|
111
|
+
i[c] ? i[c].p(M, u) : (i[c] = ne(M), i[c].c(), i[c].m(d, null));
|
|
112
112
|
}
|
|
113
113
|
for (; c < i.length; c += 1)
|
|
114
114
|
i[c].d(1);
|
|
115
115
|
i.length = h.length;
|
|
116
116
|
}
|
|
117
117
|
u[0] & /*offset*/
|
|
118
|
-
4 &&
|
|
118
|
+
4 && K(d, "transform", "translateX(" + /*offset*/
|
|
119
119
|
r[2] + "px)"), u[0] & /*atEnd*/
|
|
120
120
|
512 && C(
|
|
121
121
|
s,
|
|
@@ -125,7 +125,7 @@ function te(e) {
|
|
|
125
125
|
);
|
|
126
126
|
},
|
|
127
127
|
d(r) {
|
|
128
|
-
r && W(n),
|
|
128
|
+
r && W(n), Be(i, r), e[28](null), y(), e[31](null), _ = !1, le(b);
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
}
|
|
@@ -143,7 +143,7 @@ function ne(e) {
|
|
|
143
143
|
)
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function M() {
|
|
147
147
|
return (
|
|
148
148
|
/*mouseenter_handler*/
|
|
149
149
|
e[26](
|
|
@@ -154,7 +154,7 @@ function ne(e) {
|
|
|
154
154
|
}
|
|
155
155
|
return {
|
|
156
156
|
c() {
|
|
157
|
-
n = N("div"), t = N("span"), m = Le(a), w =
|
|
157
|
+
n = N("div"), t = N("span"), m = Le(a), w = I(), s = N("img"), i = I(), o(t, "class", d = "PlayNowButton " + /*hover*/
|
|
158
158
|
(e[5] && /*hoverIndex*/
|
|
159
159
|
e[6] == /*i*/
|
|
160
160
|
e[51] ? "itemHover" : "")), o(t, "part", y = "PlayNowButton " + /*hover*/
|
|
@@ -167,9 +167,9 @@ function ne(e) {
|
|
|
167
167
|
},
|
|
168
168
|
m(k, g) {
|
|
169
169
|
q(k, n, g), v(n, t), v(t, m), v(n, w), v(n, s), v(n, i), r || (u = [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
z(n, "click", c),
|
|
171
|
+
z(n, "mouseenter", M),
|
|
172
|
+
z(
|
|
173
173
|
n,
|
|
174
174
|
"mouseleave",
|
|
175
175
|
/*mouseleave_handler*/
|
|
@@ -201,7 +201,7 @@ function ne(e) {
|
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function De(e) {
|
|
205
205
|
let n, t = (
|
|
206
206
|
/*games*/
|
|
207
207
|
e[1] && /*games*/
|
|
@@ -226,11 +226,11 @@ function Ge(e) {
|
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
let
|
|
229
|
+
let Ge = 30;
|
|
230
230
|
function We(e, n, t) {
|
|
231
231
|
let a, m, d;
|
|
232
|
-
Te(e,
|
|
233
|
-
let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c,
|
|
232
|
+
Te(e, Ie, (l) => t(10, d = l));
|
|
233
|
+
let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c, M = window.navigator.userAgent, k, g = [], f = 0, S, H = null, A = null, U = !1, D, P, E = 0, F;
|
|
234
234
|
const se = () => {
|
|
235
235
|
fetch(b).then((p) => p.json()).then((p) => {
|
|
236
236
|
Object.keys(p).forEach((L) => {
|
|
@@ -244,17 +244,17 @@ function We(e, n, t) {
|
|
|
244
244
|
V(l, $[l]);
|
|
245
245
|
});
|
|
246
246
|
const O = (l) => {
|
|
247
|
-
t(5, U = !0), t(6,
|
|
247
|
+
t(5, U = !0), t(6, D = l);
|
|
248
248
|
}, x = () => {
|
|
249
|
-
t(5, U = !1), t(6,
|
|
250
|
-
}, re = (l) => l.touches || l.originalEvent.touches,
|
|
249
|
+
t(5, U = !1), t(6, D = -1);
|
|
250
|
+
}, re = (l) => l.touches || l.originalEvent.touches, X = (l) => {
|
|
251
251
|
const p = re(l)[0];
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
if (!
|
|
252
|
+
H = p.clientX, A = p.clientY;
|
|
253
|
+
}, J = (l) => {
|
|
254
|
+
if (!H || !A)
|
|
255
255
|
return;
|
|
256
|
-
let p = l.touches[0].clientX, L = l.touches[0].clientY,
|
|
257
|
-
Math.abs(
|
|
256
|
+
let p = l.touches[0].clientX, L = l.touches[0].clientY, B = H - p, _e = A - L;
|
|
257
|
+
Math.abs(B) > Math.abs(_e) && (B > 0 ? j(1) : j(-1)), H = null, A = null;
|
|
258
258
|
}, j = (l) => {
|
|
259
259
|
l > 0 && !m ? (t(2, f -= k), t(2, f = f < E ? E : f)) : l < 0 && !a && (t(2, f += k), t(2, f = f > 0 ? 0 : f));
|
|
260
260
|
}, R = (l) => {
|
|
@@ -269,15 +269,15 @@ function We(e, n, t) {
|
|
|
269
269
|
);
|
|
270
270
|
}, ae = () => {
|
|
271
271
|
let l = new URL(y), p = new Headers();
|
|
272
|
-
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${
|
|
273
|
-
t(1, g =
|
|
272
|
+
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ge},offset=${f})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", _), l.searchParams.append("platform", Ee(M)), fetch(l, { method: "GET", headers: p }).then((B) => B.json()).then((B) => {
|
|
273
|
+
t(1, g = B.item.games.items), B.item.games.total;
|
|
274
274
|
});
|
|
275
275
|
}, ie = () => {
|
|
276
|
-
S.addEventListener("touchstart",
|
|
276
|
+
S.addEventListener("touchstart", X, { passive: !0 }), S.addEventListener("touchmove", J, { passive: !0 });
|
|
277
277
|
}, oe = () => {
|
|
278
278
|
setTimeout(
|
|
279
279
|
() => {
|
|
280
|
-
t(23, E = (
|
|
280
|
+
t(23, E = (P.scrollWidth - P.clientWidth) * -1), t(16, s = new String(P.scrollWidth / g.length)), k = parseInt(w, 10) * parseFloat(s, 2).toFixed(2);
|
|
281
281
|
},
|
|
282
282
|
1e3
|
|
283
283
|
);
|
|
@@ -285,12 +285,12 @@ function We(e, n, t) {
|
|
|
285
285
|
F > 0 && F < Math.floor((parseInt(w) + 1) * s) && t(15, w = Math.ceil(F / s).toString());
|
|
286
286
|
};
|
|
287
287
|
Fe(() => (k = parseInt(w, 10) * parseInt(s, 10), () => {
|
|
288
|
-
S.removeEventListener("touchstart",
|
|
288
|
+
S.removeEventListener("touchstart", X), S.removeEventListener("touchmove", J);
|
|
289
289
|
}));
|
|
290
290
|
const ue = () => j(-1), me = (l) => R(l), de = (l) => O(l), he = () => x();
|
|
291
291
|
function ge(l) {
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
G[l ? "unshift" : "push"](() => {
|
|
293
|
+
P = l, t(7, P);
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
function fe() {
|
|
@@ -298,12 +298,12 @@ function We(e, n, t) {
|
|
|
298
298
|
}
|
|
299
299
|
const pe = () => j(1);
|
|
300
300
|
function ye(l) {
|
|
301
|
-
|
|
301
|
+
G[l ? "unshift" : "push"](() => {
|
|
302
302
|
S = l, t(3, S);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
function we(l) {
|
|
306
|
-
|
|
306
|
+
G[l ? "unshift" : "push"](() => {
|
|
307
307
|
u = l, t(0, u);
|
|
308
308
|
});
|
|
309
309
|
}
|
|
@@ -318,9 +318,9 @@ function We(e, n, t) {
|
|
|
318
318
|
8 && S && ie(), e.$$.dirty[0] & /*translationurl*/
|
|
319
319
|
524288 && b && se(), e.$$.dirty[0] & /*games*/
|
|
320
320
|
2 && g.length && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
321
|
-
1048577 && h && u &&
|
|
322
|
-
2097153 && i && u &&
|
|
323
|
-
4194305 && r && u &&
|
|
321
|
+
1048577 && h && u && ze(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
322
|
+
2097153 && i && u && He(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
323
|
+
4194305 && r && u && Ae(u, `${r}.Style`, c);
|
|
324
324
|
}, t(2, f = 0), [
|
|
325
325
|
u,
|
|
326
326
|
g,
|
|
@@ -328,8 +328,8 @@ function We(e, n, t) {
|
|
|
328
328
|
S,
|
|
329
329
|
F,
|
|
330
330
|
U,
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
D,
|
|
332
|
+
P,
|
|
333
333
|
a,
|
|
334
334
|
m,
|
|
335
335
|
d,
|
|
@@ -363,7 +363,7 @@ class qe extends ve {
|
|
|
363
363
|
this,
|
|
364
364
|
n,
|
|
365
365
|
We,
|
|
366
|
-
|
|
366
|
+
De,
|
|
367
367
|
Ne,
|
|
368
368
|
{
|
|
369
369
|
tournamenturl: 17,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as be, S as ve, i as ke, s as Ne, f as T, a as Se, n as Y, d as W, b as O, e as N, B as Te, o as Fe, G as Z, H as Be, E as le, M as C, L as K, c as v, N as Me, l as z, g as I, h as o, O as Pe, C as Ee, p as G, k as Le, I as Q, t as je, u as ze, v as He, w as Ae, x as Ce, F as Ie } from "./CasinoTournamentsPageController-DpQc24NO.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -42,7 +42,7 @@ function ee(e, n, t) {
|
|
|
42
42
|
return a[49] = n[t], a[51] = t, a;
|
|
43
43
|
}
|
|
44
44
|
function te(e) {
|
|
45
|
-
let n, t, a, m, d, y, w, s, _, b, h =
|
|
45
|
+
let n, t, a, m, d, y, w, s, _, b, h = Z(
|
|
46
46
|
/*games*/
|
|
47
47
|
e[1]
|
|
48
48
|
), i = [];
|
|
@@ -50,16 +50,16 @@ function te(e) {
|
|
|
50
50
|
i[r] = ne(ee(e, h, r));
|
|
51
51
|
return {
|
|
52
52
|
c() {
|
|
53
|
-
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 =
|
|
53
|
+
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 = I(), m = N("main"), d = N("div");
|
|
54
54
|
for (let r = 0; r < i.length; r += 1)
|
|
55
55
|
i[r].c();
|
|
56
|
-
w =
|
|
56
|
+
w = I(), 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>', o(t, "class", "SliderNavButton"), o(t, "part", "SliderNavButton"), C(
|
|
57
57
|
t,
|
|
58
58
|
"disabled",
|
|
59
59
|
/*atStart*/
|
|
60
60
|
e[8]
|
|
61
|
-
), o(d, "class", "items"), o(d, "part", "items"),
|
|
62
|
-
e[2] + "px)"),
|
|
61
|
+
), o(d, "class", "items"), o(d, "part", "items"), K(d, "transform", "translateX(" + /*offset*/
|
|
62
|
+
e[2] + "px)"), Pe(() => (
|
|
63
63
|
/*main_elementresize_handler*/
|
|
64
64
|
e[29].call(m)
|
|
65
65
|
)), o(s, "class", "SliderNavButton"), o(s, "part", "SliderNavButton"), C(
|
|
@@ -70,21 +70,21 @@ function te(e) {
|
|
|
70
70
|
), o(n, "class", "TournamentsGamesSlider"), o(n, "part", "TournamentsGamesSlider");
|
|
71
71
|
},
|
|
72
72
|
m(r, u) {
|
|
73
|
-
|
|
73
|
+
O(r, n, u), v(n, t), v(n, a), v(n, m), v(m, d);
|
|
74
74
|
for (let c = 0; c < i.length; c += 1)
|
|
75
75
|
i[c] && i[c].m(d, null);
|
|
76
|
-
e[28](d), y =
|
|
76
|
+
e[28](d), y = Me(
|
|
77
77
|
m,
|
|
78
78
|
/*main_elementresize_handler*/
|
|
79
79
|
e[29].bind(m)
|
|
80
80
|
), v(n, w), v(n, s), e[31](n), _ || (b = [
|
|
81
|
-
|
|
81
|
+
z(
|
|
82
82
|
t,
|
|
83
83
|
"click",
|
|
84
84
|
/*click_handler*/
|
|
85
85
|
e[24]
|
|
86
86
|
),
|
|
87
|
-
|
|
87
|
+
z(
|
|
88
88
|
s,
|
|
89
89
|
"click",
|
|
90
90
|
/*click_handler_2*/
|
|
@@ -101,21 +101,21 @@ function te(e) {
|
|
|
101
101
|
r[8]
|
|
102
102
|
), u[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
103
103
|
23650) {
|
|
104
|
-
h =
|
|
104
|
+
h = Z(
|
|
105
105
|
/*games*/
|
|
106
106
|
r[1]
|
|
107
107
|
);
|
|
108
108
|
let c;
|
|
109
109
|
for (c = 0; c < h.length; c += 1) {
|
|
110
|
-
const
|
|
111
|
-
i[c] ? i[c].p(
|
|
110
|
+
const M = ee(r, h, c);
|
|
111
|
+
i[c] ? i[c].p(M, u) : (i[c] = ne(M), i[c].c(), i[c].m(d, null));
|
|
112
112
|
}
|
|
113
113
|
for (; c < i.length; c += 1)
|
|
114
114
|
i[c].d(1);
|
|
115
115
|
i.length = h.length;
|
|
116
116
|
}
|
|
117
117
|
u[0] & /*offset*/
|
|
118
|
-
4 &&
|
|
118
|
+
4 && K(d, "transform", "translateX(" + /*offset*/
|
|
119
119
|
r[2] + "px)"), u[0] & /*atEnd*/
|
|
120
120
|
512 && C(
|
|
121
121
|
s,
|
|
@@ -125,7 +125,7 @@ function te(e) {
|
|
|
125
125
|
);
|
|
126
126
|
},
|
|
127
127
|
d(r) {
|
|
128
|
-
r && W(n),
|
|
128
|
+
r && W(n), Be(i, r), e[28](null), y(), e[31](null), _ = !1, le(b);
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
}
|
|
@@ -143,7 +143,7 @@ function ne(e) {
|
|
|
143
143
|
)
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function M() {
|
|
147
147
|
return (
|
|
148
148
|
/*mouseenter_handler*/
|
|
149
149
|
e[26](
|
|
@@ -154,7 +154,7 @@ function ne(e) {
|
|
|
154
154
|
}
|
|
155
155
|
return {
|
|
156
156
|
c() {
|
|
157
|
-
n = N("div"), t = N("span"), m =
|
|
157
|
+
n = N("div"), t = N("span"), m = je(a), w = I(), s = N("img"), i = I(), o(t, "class", d = "PlayNowButton " + /*hover*/
|
|
158
158
|
(e[5] && /*hoverIndex*/
|
|
159
159
|
e[6] == /*i*/
|
|
160
160
|
e[51] ? "itemHover" : "")), o(t, "part", y = "PlayNowButton " + /*hover*/
|
|
@@ -166,10 +166,10 @@ function ne(e) {
|
|
|
166
166
|
e[49].name), o(n, "class", "item"), o(n, "part", "item");
|
|
167
167
|
},
|
|
168
168
|
m(k, g) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
O(k, n, g), v(n, t), v(t, m), v(n, w), v(n, s), v(n, i), r || (u = [
|
|
170
|
+
z(n, "click", c),
|
|
171
|
+
z(n, "mouseenter", M),
|
|
172
|
+
z(
|
|
173
173
|
n,
|
|
174
174
|
"mouseleave",
|
|
175
175
|
/*mouseleave_handler*/
|
|
@@ -180,7 +180,7 @@ function ne(e) {
|
|
|
180
180
|
p(k, g) {
|
|
181
181
|
e = k, g[0] & /*$_*/
|
|
182
182
|
1024 && a !== (a = /*$_*/
|
|
183
|
-
e[10]("playNow") + "") &&
|
|
183
|
+
e[10]("playNow") + "") && Le(m, a), g[0] & /*hover, hoverIndex*/
|
|
184
184
|
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
185
185
|
(e[5] && /*hoverIndex*/
|
|
186
186
|
e[6] == /*i*/
|
|
@@ -201,7 +201,7 @@ function ne(e) {
|
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function De(e) {
|
|
205
205
|
let n, t = (
|
|
206
206
|
/*games*/
|
|
207
207
|
e[1] && /*games*/
|
|
@@ -212,7 +212,7 @@ function Ge(e) {
|
|
|
212
212
|
n = N("div"), t && t.c();
|
|
213
213
|
},
|
|
214
214
|
m(a, m) {
|
|
215
|
-
|
|
215
|
+
O(a, n, m), t && t.m(n, null), e[32](n);
|
|
216
216
|
},
|
|
217
217
|
p(a, m) {
|
|
218
218
|
/*games*/
|
|
@@ -226,15 +226,15 @@ function Ge(e) {
|
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
let
|
|
229
|
+
let Ge = 30;
|
|
230
230
|
function We(e, n, t) {
|
|
231
231
|
let a, m, d;
|
|
232
|
-
Te(e,
|
|
233
|
-
let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c,
|
|
232
|
+
Te(e, Ie, (l) => t(10, d = l));
|
|
233
|
+
let { tournamenturl: y = "" } = n, { scrollby: w = "3" } = n, { pagfactor: s = "175" } = n, { lang: _ = "" } = n, { translationurl: b = "" } = n, { clientstyling: h = "" } = n, { clientstylingurl: i = "" } = n, { mbsource: r } = n, u, c, M = window.navigator.userAgent, k, g = [], f = 0, S, H = null, A = null, U = !1, D, P, E = 0, F;
|
|
234
234
|
const se = () => {
|
|
235
235
|
fetch(b).then((p) => p.json()).then((p) => {
|
|
236
|
-
Object.keys(p).forEach((
|
|
237
|
-
V(
|
|
236
|
+
Object.keys(p).forEach((j) => {
|
|
237
|
+
V(j, p[j]);
|
|
238
238
|
});
|
|
239
239
|
}).catch((p) => {
|
|
240
240
|
console.log(p);
|
|
@@ -243,19 +243,19 @@ function We(e, n, t) {
|
|
|
243
243
|
Object.keys($).forEach((l) => {
|
|
244
244
|
V(l, $[l]);
|
|
245
245
|
});
|
|
246
|
-
const
|
|
247
|
-
t(5, U = !0), t(6,
|
|
246
|
+
const q = (l) => {
|
|
247
|
+
t(5, U = !0), t(6, D = l);
|
|
248
248
|
}, x = () => {
|
|
249
|
-
t(5, U = !1), t(6,
|
|
250
|
-
}, re = (l) => l.touches || l.originalEvent.touches,
|
|
249
|
+
t(5, U = !1), t(6, D = -1);
|
|
250
|
+
}, re = (l) => l.touches || l.originalEvent.touches, X = (l) => {
|
|
251
251
|
const p = re(l)[0];
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
if (!
|
|
252
|
+
H = p.clientX, A = p.clientY;
|
|
253
|
+
}, J = (l) => {
|
|
254
|
+
if (!H || !A)
|
|
255
255
|
return;
|
|
256
|
-
let p = l.touches[0].clientX,
|
|
257
|
-
Math.abs(
|
|
258
|
-
},
|
|
256
|
+
let p = l.touches[0].clientX, j = l.touches[0].clientY, B = H - p, _e = A - j;
|
|
257
|
+
Math.abs(B) > Math.abs(_e) && (B > 0 ? L(1) : L(-1)), H = null, A = null;
|
|
258
|
+
}, L = (l) => {
|
|
259
259
|
l > 0 && !m ? (t(2, f -= k), t(2, f = f < E ? E : f)) : l < 0 && !a && (t(2, f += k), t(2, f = f > 0 ? 0 : f));
|
|
260
260
|
}, R = (l) => {
|
|
261
261
|
window.postMessage(
|
|
@@ -269,15 +269,15 @@ function We(e, n, t) {
|
|
|
269
269
|
);
|
|
270
270
|
}, ae = () => {
|
|
271
271
|
let l = new URL(y), p = new Headers();
|
|
272
|
-
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${
|
|
273
|
-
t(1, g =
|
|
272
|
+
l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ge},offset=${f})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", _), l.searchParams.append("platform", Ee(M)), fetch(l, { method: "GET", headers: p }).then((B) => B.json()).then((B) => {
|
|
273
|
+
t(1, g = B.item.games.items), B.item.games.total;
|
|
274
274
|
});
|
|
275
275
|
}, ie = () => {
|
|
276
|
-
S.addEventListener("touchstart",
|
|
276
|
+
S.addEventListener("touchstart", X, { passive: !0 }), S.addEventListener("touchmove", J, { passive: !0 });
|
|
277
277
|
}, oe = () => {
|
|
278
278
|
setTimeout(
|
|
279
279
|
() => {
|
|
280
|
-
t(23, E = (
|
|
280
|
+
t(23, E = (P.scrollWidth - P.clientWidth) * -1), t(16, s = new String(P.scrollWidth / g.length)), k = parseInt(w, 10) * parseFloat(s, 2).toFixed(2);
|
|
281
281
|
},
|
|
282
282
|
1e3
|
|
283
283
|
);
|
|
@@ -285,25 +285,25 @@ function We(e, n, t) {
|
|
|
285
285
|
F > 0 && F < Math.floor((parseInt(w) + 1) * s) && t(15, w = Math.ceil(F / s).toString());
|
|
286
286
|
};
|
|
287
287
|
Fe(() => (k = parseInt(w, 10) * parseInt(s, 10), () => {
|
|
288
|
-
S.removeEventListener("touchstart",
|
|
288
|
+
S.removeEventListener("touchstart", X), S.removeEventListener("touchmove", J);
|
|
289
289
|
}));
|
|
290
|
-
const ue = () =>
|
|
290
|
+
const ue = () => L(-1), me = (l) => R(l), de = (l) => q(l), he = () => x();
|
|
291
291
|
function ge(l) {
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
G[l ? "unshift" : "push"](() => {
|
|
293
|
+
P = l, t(7, P);
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
function fe() {
|
|
297
297
|
F = this.clientWidth, t(4, F);
|
|
298
298
|
}
|
|
299
|
-
const pe = () =>
|
|
299
|
+
const pe = () => L(1);
|
|
300
300
|
function ye(l) {
|
|
301
|
-
|
|
301
|
+
G[l ? "unshift" : "push"](() => {
|
|
302
302
|
S = l, t(3, S);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
function we(l) {
|
|
306
|
-
|
|
306
|
+
G[l ? "unshift" : "push"](() => {
|
|
307
307
|
u = l, t(0, u);
|
|
308
308
|
});
|
|
309
309
|
}
|
|
@@ -318,9 +318,9 @@ function We(e, n, t) {
|
|
|
318
318
|
8 && S && ie(), e.$$.dirty[0] & /*translationurl*/
|
|
319
319
|
524288 && b && se(), e.$$.dirty[0] & /*games*/
|
|
320
320
|
2 && g.length && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
321
|
-
1048577 && h && u &&
|
|
322
|
-
2097153 && i && u &&
|
|
323
|
-
4194305 && r && u &&
|
|
321
|
+
1048577 && h && u && ze(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
322
|
+
2097153 && i && u && He(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
323
|
+
4194305 && r && u && Ae(u, `${r}.Style`, c);
|
|
324
324
|
}, t(2, f = 0), [
|
|
325
325
|
u,
|
|
326
326
|
g,
|
|
@@ -328,14 +328,14 @@ function We(e, n, t) {
|
|
|
328
328
|
S,
|
|
329
329
|
F,
|
|
330
330
|
U,
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
D,
|
|
332
|
+
P,
|
|
333
333
|
a,
|
|
334
334
|
m,
|
|
335
335
|
d,
|
|
336
|
-
|
|
336
|
+
q,
|
|
337
337
|
x,
|
|
338
|
-
|
|
338
|
+
L,
|
|
339
339
|
R,
|
|
340
340
|
w,
|
|
341
341
|
s,
|
|
@@ -357,13 +357,13 @@ function We(e, n, t) {
|
|
|
357
357
|
we
|
|
358
358
|
];
|
|
359
359
|
}
|
|
360
|
-
class
|
|
360
|
+
class Oe extends ve {
|
|
361
361
|
constructor(n) {
|
|
362
362
|
super(), ke(
|
|
363
363
|
this,
|
|
364
364
|
n,
|
|
365
365
|
We,
|
|
366
|
-
|
|
366
|
+
De,
|
|
367
367
|
Ne,
|
|
368
368
|
{
|
|
369
369
|
tournamenturl: 17,
|
|
@@ -428,7 +428,7 @@ class qe extends ve {
|
|
|
428
428
|
this.$$set({ mbsource: n }), T();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
Ce(
|
|
431
|
+
Ce(Oe, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
432
432
|
export {
|
|
433
|
-
|
|
433
|
+
Oe as default
|
|
434
434
|
};
|