@everymatrix/casino-tournaments-controller 1.94.3 → 1.94.5
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/{CasinoTournamentsController-B2QtW6Gb.js → CasinoTournamentsController-CNsVUnfN.js} +43 -43
- package/components/{CasinoTournamentsController-Cmk_sscD.js → CasinoTournamentsController-lJfLLRnq.js} +41 -41
- package/components/{CasinoTournamentsFilterController-D4G5Nvqd.js → CasinoTournamentsFilterController-1wIYqpNu.js} +28 -28
- package/components/{CasinoTournamentsFilterController-noCwPzUX.js → CasinoTournamentsFilterController-C1zYpGsR.js} +28 -28
- package/components/{CasinoTournamentsListController-Cnnw83ZW.js → CasinoTournamentsListController-DJD_bSY7.js} +2 -2
- package/components/{CasinoTournamentsListController-mRJE3n3d.js → CasinoTournamentsListController-Zz588CUs.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-CnVglTq3.js → CasinoTournamentsThumbnail-CnDoX1-O.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-CAhPDUeT.js → CasinoTournamentsThumbnail-D87z-Own.js} +17 -17
- package/components/{CasinoTournamentsThumbnailController-B2ham2Wm.js → CasinoTournamentsThumbnailController-CIuSxiRT.js} +45 -45
- package/components/{CasinoTournamentsThumbnailController-BStQU4lj.js → CasinoTournamentsThumbnailController-DVRmnfIu.js} +47 -47
- package/components/{CasinoTournamentsThumbnailDuration-s2cjZAtL.js → CasinoTournamentsThumbnailDuration-B2Y3C4cx.js} +21 -21
- package/components/{CasinoTournamentsThumbnailDuration-khP6Eyhg.js → CasinoTournamentsThumbnailDuration-DiJ5pIi_.js} +23 -23
- package/components/{CasinoTournamentsThumbnailGamesSlider-xGXCOrtm.js → CasinoTournamentsThumbnailGamesSlider-CFPpuIBF.js} +52 -52
- package/components/{CasinoTournamentsThumbnailGamesSlider-CBtsc19f.js → CasinoTournamentsThumbnailGamesSlider-COj5bcj7.js} +57 -57
- package/components/{CasinoTournamentsThumbnailPrizes-CbvllG0_.js → CasinoTournamentsThumbnailPrizes-B3wYNh9f.js} +20 -20
- package/components/{CasinoTournamentsThumbnailPrizes-CuSSpsU9.js → CasinoTournamentsThumbnailPrizes-CPgEr0rk.js} +21 -21
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as be, S as ve, t as ke, B as Ne, r as T, h as Se, y as Y, n as q, u as G, o as N, k as Te, z as Fe, q as K, m as Be, A as le, N as C, I as Z, g as v, e as Me, x as A, J as D, i as o, f as Pe, s as Ee, j as W, H as je, K as Q, M as ze, D as Ae, E as He, F as Le, l as Ce, a as De } from "./CasinoTournamentsController-CNsVUnfN.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -34,7 +34,7 @@ const $ = {
|
|
|
34
34
|
playNow: "Play now"
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
function
|
|
37
|
+
function Ie(e) {
|
|
38
38
|
Se(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}");
|
|
39
39
|
}
|
|
40
40
|
function ee(e, n, t) {
|
|
@@ -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 = D(), 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 = D(), 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
61
|
), o(d, "class", "items"), o(d, "part", "items"), Z(d, "transform", "translateX(" + /*offset*/
|
|
62
|
-
e[2] + "px)"),
|
|
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
|
+
G(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
|
+
A(
|
|
82
82
|
t,
|
|
83
83
|
"click",
|
|
84
84
|
/*click_handler*/
|
|
85
85
|
e[24]
|
|
86
86
|
),
|
|
87
|
-
|
|
87
|
+
A(
|
|
88
88
|
s,
|
|
89
89
|
"click",
|
|
90
90
|
/*click_handler_2*/
|
|
@@ -107,8 +107,8 @@ function te(e) {
|
|
|
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);
|
|
@@ -125,7 +125,7 @@ function te(e) {
|
|
|
125
125
|
);
|
|
126
126
|
},
|
|
127
127
|
d(r) {
|
|
128
|
-
r &&
|
|
128
|
+
r && q(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 = ze(a), w = D(), s = N("img"), i = D(), 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
|
+
G(k, n, g), v(n, t), v(t, m), v(n, w), v(n, s), v(n, i), r || (u = [
|
|
170
|
+
A(n, "click", c),
|
|
171
|
+
A(n, "mouseenter", M),
|
|
172
|
+
A(
|
|
173
173
|
n,
|
|
174
174
|
"mouseleave",
|
|
175
175
|
/*mouseleave_handler*/
|
|
@@ -197,11 +197,11 @@ function ne(e) {
|
|
|
197
197
|
e[49].name) && o(s, "title", h);
|
|
198
198
|
},
|
|
199
199
|
d(k) {
|
|
200
|
-
k &&
|
|
200
|
+
k && q(n), r = !1, le(u);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Ue(e) {
|
|
205
205
|
let n, t = (
|
|
206
206
|
/*games*/
|
|
207
207
|
e[1] && /*games*/
|
|
@@ -212,7 +212,7 @@ function De(e) {
|
|
|
212
212
|
n = N("div"), t && t.c();
|
|
213
213
|
},
|
|
214
214
|
m(a, m) {
|
|
215
|
-
|
|
215
|
+
G(a, n, m), t && t.m(n, null), e[32](n);
|
|
216
216
|
},
|
|
217
217
|
p(a, m) {
|
|
218
218
|
/*games*/
|
|
@@ -222,19 +222,19 @@ function De(e) {
|
|
|
222
222
|
i: Y,
|
|
223
223
|
o: Y,
|
|
224
224
|
d(a) {
|
|
225
|
-
a &&
|
|
225
|
+
a && q(n), t && t.d(), e[32](null);
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
let
|
|
230
|
-
function
|
|
229
|
+
let We = 30;
|
|
230
|
+
function qe(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, De, (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, L = null, I = !1, U, 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((z) => {
|
|
237
|
+
V(z, p[z]);
|
|
238
238
|
});
|
|
239
239
|
}).catch((p) => {
|
|
240
240
|
console.log(p);
|
|
@@ -244,17 +244,17 @@ function We(e, n, t) {
|
|
|
244
244
|
V(l, $[l]);
|
|
245
245
|
});
|
|
246
246
|
const x = (l) => {
|
|
247
|
-
t(5,
|
|
247
|
+
t(5, I = !0), t(6, U = l);
|
|
248
248
|
}, J = () => {
|
|
249
|
-
t(5,
|
|
249
|
+
t(5, I = !1), t(6, U = -1);
|
|
250
250
|
}, re = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
251
251
|
const p = re(l)[0];
|
|
252
|
-
|
|
252
|
+
H = p.clientX, L = p.clientY;
|
|
253
253
|
}, X = (l) => {
|
|
254
|
-
if (!
|
|
254
|
+
if (!H || !L)
|
|
255
255
|
return;
|
|
256
|
-
let p = l.touches[0].clientX,
|
|
257
|
-
Math.abs(
|
|
256
|
+
let p = l.touches[0].clientX, z = l.touches[0].clientY, B = H - p, _e = L - z;
|
|
257
|
+
Math.abs(B) > Math.abs(_e) && (B > 0 ? j(1) : j(-1)), H = null, L = 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=${We},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
276
|
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { 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
|
);
|
|
@@ -289,8 +289,8 @@ function We(e, n, t) {
|
|
|
289
289
|
}));
|
|
290
290
|
const ue = () => j(-1), me = (l) => R(l), de = (l) => x(l), he = () => J();
|
|
291
291
|
function ge(l) {
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
W[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
|
+
W[l ? "unshift" : "push"](() => {
|
|
302
302
|
S = l, t(3, S);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
function we(l) {
|
|
306
|
-
|
|
306
|
+
W[l ? "unshift" : "push"](() => {
|
|
307
307
|
u = l, t(0, u);
|
|
308
308
|
});
|
|
309
309
|
}
|
|
@@ -318,18 +318,18 @@ 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 && Ae(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
322
|
+
2097153 && i && u && He(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
323
|
+
4194305 && r && u && Le(u, `${r}.Style`, c);
|
|
324
324
|
}, t(2, f = 0), [
|
|
325
325
|
u,
|
|
326
326
|
g,
|
|
327
327
|
f,
|
|
328
328
|
S,
|
|
329
329
|
F,
|
|
330
|
+
I,
|
|
330
331
|
U,
|
|
331
|
-
|
|
332
|
-
B,
|
|
332
|
+
P,
|
|
333
333
|
a,
|
|
334
334
|
m,
|
|
335
335
|
d,
|
|
@@ -357,13 +357,13 @@ function We(e, n, t) {
|
|
|
357
357
|
we
|
|
358
358
|
];
|
|
359
359
|
}
|
|
360
|
-
class
|
|
360
|
+
class Ge extends ve {
|
|
361
361
|
constructor(n) {
|
|
362
362
|
super(), ke(
|
|
363
363
|
this,
|
|
364
364
|
n,
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
qe,
|
|
366
|
+
Ue,
|
|
367
367
|
Ne,
|
|
368
368
|
{
|
|
369
369
|
tournamenturl: 17,
|
|
@@ -375,7 +375,7 @@ class qe extends ve {
|
|
|
375
375
|
clientstylingurl: 21,
|
|
376
376
|
mbsource: 22
|
|
377
377
|
},
|
|
378
|
-
|
|
378
|
+
Ie,
|
|
379
379
|
[-1, -1]
|
|
380
380
|
);
|
|
381
381
|
}
|
|
@@ -428,7 +428,7 @@ class qe extends ve {
|
|
|
428
428
|
this.$$set({ mbsource: n }), T();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
Ce(
|
|
431
|
+
Ce(Ge, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
432
432
|
export {
|
|
433
|
-
|
|
433
|
+
Ge as default
|
|
434
434
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as be, S as ve, t as ke, B as Ne, r as T, h as Se, y as Y, n as q, u as G, o as N, k as Te, z as Fe, q as K, m as Be, A as le, N as C, I as Z, g as v, e as Me, x as A, J as D, i as o, f as Pe, s as Ee, j as W, H as je, K as Q, M as ze, D as Ae, E as He, F as Le, l as Ce, a as De } from "./CasinoTournamentsController-lJfLLRnq.js";
|
|
2
2
|
function V(e, n) {
|
|
3
3
|
be(e, n);
|
|
4
4
|
}
|
|
@@ -34,7 +34,7 @@ const $ = {
|
|
|
34
34
|
playNow: "Play now"
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
function
|
|
37
|
+
function Ie(e) {
|
|
38
38
|
Se(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}");
|
|
39
39
|
}
|
|
40
40
|
function ee(e, n, t) {
|
|
@@ -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 = D(), 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 = D(), 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
61
|
), o(d, "class", "items"), o(d, "part", "items"), Z(d, "transform", "translateX(" + /*offset*/
|
|
62
|
-
e[2] + "px)"),
|
|
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
|
+
G(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
|
+
A(
|
|
82
82
|
t,
|
|
83
83
|
"click",
|
|
84
84
|
/*click_handler*/
|
|
85
85
|
e[24]
|
|
86
86
|
),
|
|
87
|
-
|
|
87
|
+
A(
|
|
88
88
|
s,
|
|
89
89
|
"click",
|
|
90
90
|
/*click_handler_2*/
|
|
@@ -107,8 +107,8 @@ function te(e) {
|
|
|
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);
|
|
@@ -125,7 +125,7 @@ function te(e) {
|
|
|
125
125
|
);
|
|
126
126
|
},
|
|
127
127
|
d(r) {
|
|
128
|
-
r &&
|
|
128
|
+
r && q(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 = ze(a), w = D(), s = N("img"), i = D(), 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
|
+
G(k, n, g), v(n, t), v(t, m), v(n, w), v(n, s), v(n, i), r || (u = [
|
|
170
|
+
A(n, "click", c),
|
|
171
|
+
A(n, "mouseenter", M),
|
|
172
|
+
A(
|
|
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") + "") && je(m, a), g[0] & /*hover, hoverIndex*/
|
|
184
184
|
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
185
185
|
(e[5] && /*hoverIndex*/
|
|
186
186
|
e[6] == /*i*/
|
|
@@ -197,11 +197,11 @@ function ne(e) {
|
|
|
197
197
|
e[49].name) && o(s, "title", h);
|
|
198
198
|
},
|
|
199
199
|
d(k) {
|
|
200
|
-
k &&
|
|
200
|
+
k && q(n), r = !1, le(u);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Ue(e) {
|
|
205
205
|
let n, t = (
|
|
206
206
|
/*games*/
|
|
207
207
|
e[1] && /*games*/
|
|
@@ -212,7 +212,7 @@ function De(e) {
|
|
|
212
212
|
n = N("div"), t && t.c();
|
|
213
213
|
},
|
|
214
214
|
m(a, m) {
|
|
215
|
-
|
|
215
|
+
G(a, n, m), t && t.m(n, null), e[32](n);
|
|
216
216
|
},
|
|
217
217
|
p(a, m) {
|
|
218
218
|
/*games*/
|
|
@@ -222,19 +222,19 @@ function De(e) {
|
|
|
222
222
|
i: Y,
|
|
223
223
|
o: Y,
|
|
224
224
|
d(a) {
|
|
225
|
-
a &&
|
|
225
|
+
a && q(n), t && t.d(), e[32](null);
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
let
|
|
230
|
-
function
|
|
229
|
+
let We = 30;
|
|
230
|
+
function qe(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, De, (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, L = null, I = !1, U, 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((z) => {
|
|
237
|
+
V(z, p[z]);
|
|
238
238
|
});
|
|
239
239
|
}).catch((p) => {
|
|
240
240
|
console.log(p);
|
|
@@ -244,18 +244,18 @@ function We(e, n, t) {
|
|
|
244
244
|
V(l, $[l]);
|
|
245
245
|
});
|
|
246
246
|
const x = (l) => {
|
|
247
|
-
t(5,
|
|
247
|
+
t(5, I = !0), t(6, U = l);
|
|
248
248
|
}, J = () => {
|
|
249
|
-
t(5,
|
|
249
|
+
t(5, I = !1), t(6, U = -1);
|
|
250
250
|
}, re = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
251
251
|
const p = re(l)[0];
|
|
252
|
-
|
|
252
|
+
H = p.clientX, L = p.clientY;
|
|
253
253
|
}, X = (l) => {
|
|
254
|
-
if (!
|
|
254
|
+
if (!H || !L)
|
|
255
255
|
return;
|
|
256
|
-
let p = l.touches[0].clientX,
|
|
257
|
-
Math.abs(
|
|
258
|
-
},
|
|
256
|
+
let p = l.touches[0].clientX, z = l.touches[0].clientY, B = H - p, _e = L - z;
|
|
257
|
+
Math.abs(B) > Math.abs(_e) && (B > 0 ? j(1) : j(-1)), H = null, L = null;
|
|
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) => {
|
|
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=${We},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
276
|
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { 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
|
);
|
|
@@ -287,23 +287,23 @@ function We(e, n, t) {
|
|
|
287
287
|
Fe(() => (k = parseInt(w, 10) * parseInt(s, 10), () => {
|
|
288
288
|
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
289
289
|
}));
|
|
290
|
-
const ue = () =>
|
|
290
|
+
const ue = () => j(-1), me = (l) => R(l), de = (l) => x(l), he = () => J();
|
|
291
291
|
function ge(l) {
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
W[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 = () => j(1);
|
|
300
300
|
function ye(l) {
|
|
301
|
-
|
|
301
|
+
W[l ? "unshift" : "push"](() => {
|
|
302
302
|
S = l, t(3, S);
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
function we(l) {
|
|
306
|
-
|
|
306
|
+
W[l ? "unshift" : "push"](() => {
|
|
307
307
|
u = l, t(0, u);
|
|
308
308
|
});
|
|
309
309
|
}
|
|
@@ -318,24 +318,24 @@ 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 && Ae(u, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
322
|
+
2097153 && i && u && He(u, i), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
323
|
+
4194305 && r && u && Le(u, `${r}.Style`, c);
|
|
324
324
|
}, t(2, f = 0), [
|
|
325
325
|
u,
|
|
326
326
|
g,
|
|
327
327
|
f,
|
|
328
328
|
S,
|
|
329
329
|
F,
|
|
330
|
+
I,
|
|
330
331
|
U,
|
|
331
|
-
|
|
332
|
-
B,
|
|
332
|
+
P,
|
|
333
333
|
a,
|
|
334
334
|
m,
|
|
335
335
|
d,
|
|
336
336
|
x,
|
|
337
337
|
J,
|
|
338
|
-
|
|
338
|
+
j,
|
|
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 Ge extends ve {
|
|
361
361
|
constructor(n) {
|
|
362
362
|
super(), ke(
|
|
363
363
|
this,
|
|
364
364
|
n,
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
qe,
|
|
366
|
+
Ue,
|
|
367
367
|
Ne,
|
|
368
368
|
{
|
|
369
369
|
tournamenturl: 17,
|
|
@@ -375,7 +375,7 @@ class qe extends ve {
|
|
|
375
375
|
clientstylingurl: 21,
|
|
376
376
|
mbsource: 22
|
|
377
377
|
},
|
|
378
|
-
|
|
378
|
+
Ie,
|
|
379
379
|
[-1, -1]
|
|
380
380
|
);
|
|
381
381
|
}
|
|
@@ -428,7 +428,7 @@ class qe extends ve {
|
|
|
428
428
|
this.$$set({ mbsource: n }), T();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
Ce(
|
|
431
|
+
Ce(Ge, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
432
432
|
export {
|
|
433
|
-
|
|
433
|
+
Ge as default
|
|
434
434
|
};
|