@everymatrix/casino-tournaments-controller 1.62.0 → 1.62.1
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-B7T1o6MJ.js → CasinoTournamentsController-CUMRoST-.js} +1179 -1158
- package/components/{CasinoTournamentsController--v7Db-nS.js → CasinoTournamentsController-WufarZ8q.js} +1054 -1033
- package/components/CasinoTournamentsController-oGL-nV5r.cjs +27 -0
- package/components/{CasinoTournamentsFilterController-D87dskAM.js → CasinoTournamentsFilterController-D8NP0ZIy.js} +22 -22
- package/components/{CasinoTournamentsFilterController-NmQFysPE.cjs → CasinoTournamentsFilterController-D92H_sdr.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-dCThVL3G.js → CasinoTournamentsFilterController-LT68fjHh.js} +20 -20
- package/components/{CasinoTournamentsListController-C0Tn6XLC.js → CasinoTournamentsListController-CGdBHJDM.js} +21 -21
- package/components/{CasinoTournamentsListController-qLXWt65S.cjs → CasinoTournamentsListController-CwxI2YAB.cjs} +2 -2
- package/components/{CasinoTournamentsListController-CVKwStEk.js → CasinoTournamentsListController-Dd8eFRxa.js} +21 -21
- package/components/{CasinoTournamentsThumbnail-Dh5yOBII.js → CasinoTournamentsThumbnail-BUZX068g.js} +41 -41
- package/components/{CasinoTournamentsThumbnail-B6vVUkXU.js → CasinoTournamentsThumbnail-Co9p08Wv.js} +36 -36
- package/components/{CasinoTournamentsThumbnail-CutNBEY9.cjs → CasinoTournamentsThumbnail-CrJ40CSh.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-B4LzyUAt.cjs → CasinoTournamentsThumbnailController-Cq6mNACM.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-ImrFDGq7.js → CasinoTournamentsThumbnailController-Y3QRiL5v.js} +43 -43
- package/components/{CasinoTournamentsThumbnailController-Csobnf4h.js → CasinoTournamentsThumbnailController-_3hlkXv6.js} +73 -73
- package/components/{CasinoTournamentsThumbnailDuration-BOSDqPIP.js → CasinoTournamentsThumbnailDuration-ChCBh4j9.js} +46 -46
- package/components/{CasinoTournamentsThumbnailDuration-BIHBBD4m.js → CasinoTournamentsThumbnailDuration-Dqd8KbyC.js} +40 -40
- package/components/{CasinoTournamentsThumbnailDuration-DLOov4TV.cjs → CasinoTournamentsThumbnailDuration-DsNTjv3C.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BKEUZ6M0.js → CasinoTournamentsThumbnailGamesSlider-Bn4nh16L.js} +37 -37
- package/components/{CasinoTournamentsThumbnailGamesSlider-Blv_3Sia.cjs → CasinoTournamentsThumbnailGamesSlider-C7R-Ibu_.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-C7uGGzGz.js → CasinoTournamentsThumbnailGamesSlider-EO8q-zQo.js} +54 -54
- package/components/{CasinoTournamentsThumbnailPrizes-Cgjahh7G.js → CasinoTournamentsThumbnailPrizes-D3W0vYEA.js} +15 -15
- package/components/{CasinoTournamentsThumbnailPrizes-CdcFiTcf.cjs → CasinoTournamentsThumbnailPrizes-DdU80aCm.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BmPaa3r7.js → CasinoTournamentsThumbnailPrizes-qJYsc_jA.js} +15 -15
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/esnext/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsController-CZ-9rz_b.cjs +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke,
|
|
1
|
+
import { a as be, S as ve, i as ke, s as Ne, f as M, b as Se, n as X, d as D, e as G, g as S, k as Te, w as Fe, l as x, m as Me, B as te, G as j, C as Y, p as v, H as Be, u as L, q as z, h as c, I as Pe, F as Ee, r as I, o as Le, J as Z, t as He, c as Ce, $ as je } from "./CasinoTournamentsController-CUMRoST-.js";
|
|
2
2
|
function K(e, l) {
|
|
3
3
|
be(e, l);
|
|
4
4
|
}
|
|
@@ -35,7 +35,7 @@ const Q = {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
function ze(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 V(e, l, t) {
|
|
41
41
|
const a = e.slice();
|
|
@@ -53,7 +53,7 @@ function $(e) {
|
|
|
53
53
|
l = S("div"), t = S("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 = z(), d = S("main"), h = S("div");
|
|
54
54
|
for (let s = 0; s < o.length; s += 1)
|
|
55
55
|
o[s].c();
|
|
56
|
-
y = z(), r = S("div"), r.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"),
|
|
56
|
+
y = z(), r = S("div"), r.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"), j(
|
|
57
57
|
t,
|
|
58
58
|
"disabled",
|
|
59
59
|
/*atStart*/
|
|
@@ -62,7 +62,7 @@ function $(e) {
|
|
|
62
62
|
e[2] + "px)"), Pe(() => (
|
|
63
63
|
/*main_elementresize_handler*/
|
|
64
64
|
e[28].call(d)
|
|
65
|
-
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"),
|
|
65
|
+
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), j(
|
|
66
66
|
r,
|
|
67
67
|
"disabled",
|
|
68
68
|
/*atEnd*/
|
|
@@ -70,7 +70,7 @@ function $(e) {
|
|
|
70
70
|
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
71
71
|
},
|
|
72
72
|
m(s, b) {
|
|
73
|
-
|
|
73
|
+
G(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
|
|
74
74
|
for (let i = 0; i < o.length; i += 1)
|
|
75
75
|
o[i] && o[i].m(h, null);
|
|
76
76
|
e[27](h), p = Be(
|
|
@@ -94,7 +94,7 @@ function $(e) {
|
|
|
94
94
|
},
|
|
95
95
|
p(s, b) {
|
|
96
96
|
if (b[0] & /*atStart*/
|
|
97
|
-
256 &&
|
|
97
|
+
256 && j(
|
|
98
98
|
t,
|
|
99
99
|
"disabled",
|
|
100
100
|
/*atStart*/
|
|
@@ -117,7 +117,7 @@ function $(e) {
|
|
|
117
117
|
b[0] & /*offset*/
|
|
118
118
|
4 && Y(h, "transform", "translateX(" + /*offset*/
|
|
119
119
|
s[2] + "px)"), b[0] & /*atEnd*/
|
|
120
|
-
512 &&
|
|
120
|
+
512 && j(
|
|
121
121
|
r,
|
|
122
122
|
"disabled",
|
|
123
123
|
/*atEnd*/
|
|
@@ -125,7 +125,7 @@ function $(e) {
|
|
|
125
125
|
);
|
|
126
126
|
},
|
|
127
127
|
d(s) {
|
|
128
|
-
s &&
|
|
128
|
+
s && D(l), Me(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
}
|
|
@@ -154,7 +154,7 @@ function ee(e) {
|
|
|
154
154
|
}
|
|
155
155
|
return {
|
|
156
156
|
c() {
|
|
157
|
-
l = S("div"), t = S("span"), d =
|
|
157
|
+
l = S("div"), t = S("span"), d = He(a), y = z(), r = S("img"), o = z(), c(t, "class", h = "PlayNowButton " + /*hover*/
|
|
158
158
|
(e[5] && /*hoverIndex*/
|
|
159
159
|
e[6] == /*i*/
|
|
160
160
|
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -166,7 +166,7 @@ function ee(e) {
|
|
|
166
166
|
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
167
167
|
},
|
|
168
168
|
m(u, m) {
|
|
169
|
-
|
|
169
|
+
G(u, l, m), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
170
170
|
L(l, "click", i),
|
|
171
171
|
L(l, "mouseenter", k),
|
|
172
172
|
L(
|
|
@@ -180,7 +180,7 @@ function ee(e) {
|
|
|
180
180
|
p(u, m) {
|
|
181
181
|
e = u, m[0] & /*$_*/
|
|
182
182
|
1024 && a !== (a = /*$_*/
|
|
183
|
-
e[10]("playNow") + "") &&
|
|
183
|
+
e[10]("playNow") + "") && Le(d, a), m[0] & /*hover, hoverIndex*/
|
|
184
184
|
96 && h !== (h = "PlayNowButton " + /*hover*/
|
|
185
185
|
(e[5] && /*hoverIndex*/
|
|
186
186
|
e[6] == /*i*/
|
|
@@ -197,7 +197,7 @@ function ee(e) {
|
|
|
197
197
|
e[50].name) && c(r, "title", f);
|
|
198
198
|
},
|
|
199
199
|
d(u) {
|
|
200
|
-
u &&
|
|
200
|
+
u && D(l), s = !1, te(b);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
@@ -212,7 +212,7 @@ function Ae(e) {
|
|
|
212
212
|
l = S("div"), t && t.c();
|
|
213
213
|
},
|
|
214
214
|
m(a, d) {
|
|
215
|
-
|
|
215
|
+
G(a, l, d), t && t.m(l, null), e[31](l);
|
|
216
216
|
},
|
|
217
217
|
p(a, d) {
|
|
218
218
|
/*games*/
|
|
@@ -222,15 +222,15 @@ function Ae(e) {
|
|
|
222
222
|
i: X,
|
|
223
223
|
o: X,
|
|
224
224
|
d(a) {
|
|
225
|
-
a &&
|
|
225
|
+
a && D(l), t && t.d(), e[31](null);
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
let Ue = 30;
|
|
230
|
-
function
|
|
230
|
+
function Ie(e, l, t) {
|
|
231
231
|
let a, d, h;
|
|
232
|
-
|
|
233
|
-
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null,
|
|
232
|
+
Te(e, je, (n) => t(10, h = n));
|
|
233
|
+
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null, C = null, A = !1, U, B, P = 0, T;
|
|
234
234
|
const ne = () => {
|
|
235
235
|
fetch(_).then((g) => g.json()).then((g) => {
|
|
236
236
|
Object.keys(g).forEach((N) => {
|
|
@@ -249,14 +249,14 @@ function De(e, l, t) {
|
|
|
249
249
|
t(5, A = !1), t(6, U = -1);
|
|
250
250
|
}, le = (n) => n.touches || n.originalEvent.touches, J = (n) => {
|
|
251
251
|
const g = le(n)[0];
|
|
252
|
-
H = g.clientX,
|
|
252
|
+
H = g.clientX, C = g.clientY;
|
|
253
253
|
}, O = (n) => {
|
|
254
|
-
if (!H || !
|
|
254
|
+
if (!H || !C)
|
|
255
255
|
return;
|
|
256
|
-
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e =
|
|
257
|
-
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null,
|
|
256
|
+
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = C - N;
|
|
257
|
+
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, C = null;
|
|
258
258
|
}, E = (n) => {
|
|
259
|
-
n > 0 && !d ? (t(2, u -= i), t(2, u = u <
|
|
259
|
+
n > 0 && !d ? (t(2, u -= i), t(2, u = u < P ? P : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
260
260
|
}, R = (n) => {
|
|
261
261
|
window.postMessage(
|
|
262
262
|
{
|
|
@@ -269,7 +269,7 @@ function De(e, l, t) {
|
|
|
269
269
|
);
|
|
270
270
|
}, se = () => {
|
|
271
271
|
let n = new URL(p), g = new Headers();
|
|
272
|
-
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform",
|
|
272
|
+
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform", Ee(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
273
273
|
t(1, k = F.item.games.items), F.item.games.total;
|
|
274
274
|
});
|
|
275
275
|
}, re = () => {
|
|
@@ -277,7 +277,7 @@ function De(e, l, t) {
|
|
|
277
277
|
}, ae = () => {
|
|
278
278
|
setTimeout(
|
|
279
279
|
() => {
|
|
280
|
-
t(22,
|
|
280
|
+
t(22, P = (B.scrollWidth - B.clientWidth) * -1), t(16, r = new String(B.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
|
|
281
281
|
},
|
|
282
282
|
1e3
|
|
283
283
|
);
|
|
@@ -301,13 +301,13 @@ function De(e, l, t) {
|
|
|
301
301
|
}, ce = () => {
|
|
302
302
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
Fe(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
305
305
|
m.removeEventListener("touchstart", J), m.removeEventListener("touchmove", O);
|
|
306
306
|
}));
|
|
307
307
|
const ue = () => E(-1), de = (n) => R(n), he = (n) => W(n), me = () => q();
|
|
308
308
|
function fe(n) {
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
I[n ? "unshift" : "push"](() => {
|
|
310
|
+
B = n, t(7, B);
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
function ge() {
|
|
@@ -315,12 +315,12 @@ function De(e, l, t) {
|
|
|
315
315
|
}
|
|
316
316
|
const pe = () => E(1);
|
|
317
317
|
function ye(n) {
|
|
318
|
-
|
|
318
|
+
I[n ? "unshift" : "push"](() => {
|
|
319
319
|
m = n, t(3, m);
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
function we(n) {
|
|
323
|
-
|
|
323
|
+
I[n ? "unshift" : "push"](() => {
|
|
324
324
|
s = n, t(0, s);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
@@ -329,7 +329,7 @@ function De(e, l, t) {
|
|
|
329
329
|
}, e.$$.update = () => {
|
|
330
330
|
e.$$.dirty[0] & /*offset*/
|
|
331
331
|
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
332
|
-
4194308 && t(9, d = u <=
|
|
332
|
+
4194308 && t(9, d = u <= P), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
333
333
|
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
334
334
|
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
335
335
|
8 && m && re(), e.$$.dirty[0] & /*translationurl*/
|
|
@@ -345,7 +345,7 @@ function De(e, l, t) {
|
|
|
345
345
|
T,
|
|
346
346
|
A,
|
|
347
347
|
U,
|
|
348
|
-
|
|
348
|
+
B,
|
|
349
349
|
a,
|
|
350
350
|
d,
|
|
351
351
|
h,
|
|
@@ -360,7 +360,7 @@ function De(e, l, t) {
|
|
|
360
360
|
_,
|
|
361
361
|
f,
|
|
362
362
|
o,
|
|
363
|
-
|
|
363
|
+
P,
|
|
364
364
|
ue,
|
|
365
365
|
de,
|
|
366
366
|
he,
|
|
@@ -372,14 +372,14 @@ function De(e, l, t) {
|
|
|
372
372
|
we
|
|
373
373
|
];
|
|
374
374
|
}
|
|
375
|
-
class
|
|
375
|
+
class De extends ve {
|
|
376
376
|
constructor(l) {
|
|
377
377
|
super(), ke(
|
|
378
378
|
this,
|
|
379
379
|
l,
|
|
380
|
-
|
|
380
|
+
Ie,
|
|
381
381
|
Ae,
|
|
382
|
-
|
|
382
|
+
Ne,
|
|
383
383
|
{
|
|
384
384
|
tournamenturl: 17,
|
|
385
385
|
scrollby: 15,
|
|
@@ -436,7 +436,7 @@ class Ie extends ve {
|
|
|
436
436
|
this.$$set({ clientstylingurl: l }), M();
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
|
|
439
|
+
Ce(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
440
440
|
export {
|
|
441
|
-
|
|
441
|
+
De as default
|
|
442
442
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-oGL-nV5r.cjs");function U(t,r){e.addMessages(t,r)}const q={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function ie(t){e.append_styles(t,"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}")}function D(t,r,n){const i=t.slice();return i[50]=r[n],i[52]=n,i}function I(t){let r,n,i,d,m,p,y,s,_,w,g=e.ensure_array_like(t[1]),c=[];for(let a=0;a<g.length;a+=1)c[a]=W(D(t,g,a));return{c(){r=e.element("div"),n=e.element("div"),n.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>',i=e.space(),d=e.element("main"),m=e.element("div");for(let a=0;a<c.length;a+=1)c[a].c();y=e.space(),s=e.element("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>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[28].call(d)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider"),e.attr(r,"part","TournamentsGamesSlider")},m(a,b){e.insert(a,r,b),e.append(r,n),e.append(r,i),e.append(r,d),e.append(d,m);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(m,null);t[27](m),p=e.add_iframe_resize_listener(d,t[28].bind(d)),e.append(r,y),e.append(r,s),t[30](r),_||(w=[e.listen(n,"click",t[23]),e.listen(s,"click",t[29])],_=!0)},p(a,b){if(b[0]&256&&e.toggle_class(n,"disabled",a[8]),b[0]&23650){g=e.ensure_array_like(a[1]);let o;for(o=0;o<g.length;o+=1){const v=D(a,g,o);c[o]?c[o].p(v,b):(c[o]=W(v),c[o].c(),c[o].m(m,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=g.length}b[0]&4&&e.set_style(m,"transform","translateX("+a[2]+"px)"),b[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(r),e.destroy_each(c,a),t[27](null),p(),t[30](null),_=!1,e.run_all(w)}}}function W(t){let r,n,i=t[10]("playNow")+"",d,m,p,y,s,_,w,g,c,a,b;function o(){return t[24](t[50])}function v(){return t[25](t[52])}return{c(){r=e.element("div"),n=e.element("span"),d=e.text(i),y=e.space(),s=e.element("img"),c=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(s.src,_=t[50].thumbnail)||e.attr(s,"src",_),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",w=t[50].name),e.attr(s,"title",g=t[50].name),e.attr(r,"class","item"),e.attr(r,"part","item")},m(u,h){e.insert(u,r,h),e.append(r,n),e.append(n,d),e.append(r,y),e.append(r,s),e.append(r,c),a||(b=[e.listen(r,"click",o),e.listen(r,"mouseenter",v),e.listen(r,"mouseleave",t[26])],a=!0)},p(u,h){t=u,h[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),h[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"class",m),h[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"part",p),h[0]&2&&!e.src_url_equal(s.src,_=t[50].thumbnail)&&e.attr(s,"src",_),h[0]&2&&w!==(w=t[50].name)&&e.attr(s,"alt",w),h[0]&2&&g!==(g=t[50].name)&&e.attr(s,"title",g)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function oe(t){let r,n=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),n&&n.c()},m(i,d){e.insert(i,r,d),n&&n.m(r,null),t[31](r)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=I(i),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),n&&n.d(),t[31](null)}}}let ce=30;function ue(t,r,n){let i,d,m;e.component_subscribe(t,e.$format,l=>n(10,m=l));let{tournamenturl:p=""}=r,{scrollby:y="3"}=r,{pagfactor:s="175"}=r,{lang:_=""}=r,{translationurl:w=""}=r,{clientstyling:g=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,E=!1,L,T,M=0,N;const O=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(k=>{U(k,f[k])})}).catch(f=>{console.log(f)})};Object.keys(q).forEach(l=>{U(l,q[l])});const C=l=>{n(5,E=!0),n(6,L=l)},j=()=>{n(5,E=!1),n(6,L=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const f=R(l)[0];P=f.clientX,B=f.clientY},z=l=>{if(!P||!B)return;let f=l.touches[0].clientX,k=l.touches[0].clientY,S=P-f,se=B-k;Math.abs(S)>Math.abs(se)&&(S>0?F(1):F(-1)),P=null,B=null},F=l=>{l>0&&!d?(n(2,u-=o),n(2,u=u<M?M:u)):l<0&&!i&&(n(2,u+=o),n(2,u=u>0?0:u))},A=l=>{window.postMessage({type:"TournamentGameAction",gameId:l.id,name:l.name,launchUrl:l.launchUrl},window.location.href)},X=()=>{let l=new URL(p),f=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ce},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",_),l.searchParams.append("platform",e.getDevice(b)),fetch(l,{method:"GET",headers:f}).then(S=>S.json()).then(S=>{n(1,v=S.item.games.items),S.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},x=()=>{setTimeout(()=>{n(22,M=(T.scrollWidth-T.clientWidth)*-1),n(16,s=new String(T.scrollWidth/v.length)),o=parseInt(y,10)*parseFloat(s,2).toFixed(2)},1e3)},Y=()=>{let l=document.createElement("style");l.innerHTML=g,a.appendChild(l)},Z=()=>{let l=new URL(c),f=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{f.innerHTML=k,setTimeout(()=>{a.appendChild(f)},1),setTimeout(()=>{},500)})},K=()=>{N>0&&N<Math.floor((parseInt(y)+1)*s)&&n(15,y=Math.ceil(N/s).toString())};e.onMount(()=>(o=parseInt(y,10)*parseInt(s,10),()=>{h.removeEventListener("touchstart",H),h.removeEventListener("touchmove",z)}));const Q=()=>F(-1),V=l=>A(l),$=l=>C(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{T=l,n(7,T)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,n(3,h)})}function ae(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(0,a)})}return t.$$set=l=>{"tournamenturl"in l&&n(17,p=l.tournamenturl),"scrollby"in l&&n(15,y=l.scrollby),"pagfactor"in l&&n(16,s=l.pagfactor),"lang"in l&&n(18,_=l.lang),"translationurl"in l&&n(19,w=l.translationurl),"clientstyling"in l&&n(20,g=l.clientstyling),"clientstylingurl"in l&&n(21,c=l.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=u===0),t.$$.dirty[0]&4194308&&n(9,d=u<=M),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&X(),t.$$.dirty[0]&8&&h&&J(),t.$$.dirty[0]&524288&&w&&O(),t.$$.dirty[0]&2&&v.length&&x(),t.$$.dirty[0]&1048577&&g&&a&&Y(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,E,L,T,i,d,m,C,j,F,A,y,s,p,_,w,g,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(r){this.$$set({tournamenturl:r}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(r){this.$$set({scrollby:r}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(r){this.$$set({pagfactor:r}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}}e.create_custom_element(G,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=G;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as be, S as ve, i as ke,
|
|
1
|
+
import { a as be, S as ve, i as ke, s as Ne, f as M, b as Se, n as X, d as D, c as G, e as S, j as Te, w as Fe, k as x, l as Me, B as te, G as C, C as Y, o as v, H as Be, r as L, p as z, g as c, I as Pe, F as Ee, q as I, m as Le, J as Z, t as He, v as je, $ as Ce } from "./CasinoTournamentsController-WufarZ8q.js";
|
|
2
2
|
function K(e, l) {
|
|
3
3
|
be(e, l);
|
|
4
4
|
}
|
|
@@ -35,14 +35,14 @@ const Q = {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
function ze(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 V(e, l, t) {
|
|
41
41
|
const a = e.slice();
|
|
42
42
|
return a[50] = l[t], a[52] = t, a;
|
|
43
43
|
}
|
|
44
44
|
function $(e) {
|
|
45
|
-
let l, t, a, d,
|
|
45
|
+
let l, t, a, d, m, p, y, r, w, _, f = x(
|
|
46
46
|
/*games*/
|
|
47
47
|
e[1]
|
|
48
48
|
), o = [];
|
|
@@ -50,7 +50,7 @@ function $(e) {
|
|
|
50
50
|
o[s] = ee(V(e, f, s));
|
|
51
51
|
return {
|
|
52
52
|
c() {
|
|
53
|
-
l = S("div"), t = S("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 = z(), d = S("main"),
|
|
53
|
+
l = S("div"), t = S("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 = z(), d = S("main"), m = S("div");
|
|
54
54
|
for (let s = 0; s < o.length; s += 1)
|
|
55
55
|
o[s].c();
|
|
56
56
|
y = z(), r = S("div"), r.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"), C(
|
|
@@ -58,7 +58,7 @@ function $(e) {
|
|
|
58
58
|
"disabled",
|
|
59
59
|
/*atStart*/
|
|
60
60
|
e[8]
|
|
61
|
-
), c(
|
|
61
|
+
), c(m, "class", "items"), c(m, "part", "items"), Y(m, "transform", "translateX(" + /*offset*/
|
|
62
62
|
e[2] + "px)"), Pe(() => (
|
|
63
63
|
/*main_elementresize_handler*/
|
|
64
64
|
e[28].call(d)
|
|
@@ -70,10 +70,10 @@ function $(e) {
|
|
|
70
70
|
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
71
71
|
},
|
|
72
72
|
m(s, b) {
|
|
73
|
-
|
|
73
|
+
G(s, l, b), v(l, t), v(l, a), v(l, d), v(d, m);
|
|
74
74
|
for (let i = 0; i < o.length; i += 1)
|
|
75
|
-
o[i] && o[i].m(
|
|
76
|
-
e[27](
|
|
75
|
+
o[i] && o[i].m(m, null);
|
|
76
|
+
e[27](m), p = Be(
|
|
77
77
|
d,
|
|
78
78
|
/*main_elementresize_handler*/
|
|
79
79
|
e[28].bind(d)
|
|
@@ -108,14 +108,14 @@ function $(e) {
|
|
|
108
108
|
let i;
|
|
109
109
|
for (i = 0; i < f.length; i += 1) {
|
|
110
110
|
const k = V(s, f, i);
|
|
111
|
-
o[i] ? o[i].p(k, b) : (o[i] = ee(k), o[i].c(), o[i].m(
|
|
111
|
+
o[i] ? o[i].p(k, b) : (o[i] = ee(k), o[i].c(), o[i].m(m, null));
|
|
112
112
|
}
|
|
113
113
|
for (; i < o.length; i += 1)
|
|
114
114
|
o[i].d(1);
|
|
115
115
|
o.length = f.length;
|
|
116
116
|
}
|
|
117
117
|
b[0] & /*offset*/
|
|
118
|
-
4 && Y(
|
|
118
|
+
4 && Y(m, "transform", "translateX(" + /*offset*/
|
|
119
119
|
s[2] + "px)"), b[0] & /*atEnd*/
|
|
120
120
|
512 && C(
|
|
121
121
|
r,
|
|
@@ -125,7 +125,7 @@ function $(e) {
|
|
|
125
125
|
);
|
|
126
126
|
},
|
|
127
127
|
d(s) {
|
|
128
|
-
s &&
|
|
128
|
+
s && D(l), Me(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
}
|
|
@@ -133,7 +133,7 @@ function ee(e) {
|
|
|
133
133
|
let l, t, a = (
|
|
134
134
|
/*$_*/
|
|
135
135
|
e[10]("playNow") + ""
|
|
136
|
-
), d,
|
|
136
|
+
), d, m, p, y, r, w, _, f, o, s, b;
|
|
137
137
|
function i() {
|
|
138
138
|
return (
|
|
139
139
|
/*click_handler_1*/
|
|
@@ -154,7 +154,7 @@ function ee(e) {
|
|
|
154
154
|
}
|
|
155
155
|
return {
|
|
156
156
|
c() {
|
|
157
|
-
l = S("div"), t = S("span"), d =
|
|
157
|
+
l = S("div"), t = S("span"), d = He(a), y = z(), r = S("img"), o = z(), c(t, "class", m = "PlayNowButton " + /*hover*/
|
|
158
158
|
(e[5] && /*hoverIndex*/
|
|
159
159
|
e[6] == /*i*/
|
|
160
160
|
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
@@ -165,8 +165,8 @@ function ee(e) {
|
|
|
165
165
|
e[50].name), c(r, "title", f = /*game*/
|
|
166
166
|
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
167
167
|
},
|
|
168
|
-
m(u,
|
|
169
|
-
|
|
168
|
+
m(u, h) {
|
|
169
|
+
G(u, l, h), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
170
170
|
L(l, "click", i),
|
|
171
171
|
L(l, "mouseenter", k),
|
|
172
172
|
L(
|
|
@@ -177,27 +177,27 @@ function ee(e) {
|
|
|
177
177
|
)
|
|
178
178
|
], s = !0);
|
|
179
179
|
},
|
|
180
|
-
p(u,
|
|
181
|
-
e = u,
|
|
180
|
+
p(u, h) {
|
|
181
|
+
e = u, h[0] & /*$_*/
|
|
182
182
|
1024 && a !== (a = /*$_*/
|
|
183
|
-
e[10]("playNow") + "") &&
|
|
184
|
-
96 &&
|
|
183
|
+
e[10]("playNow") + "") && Le(d, a), h[0] & /*hover, hoverIndex*/
|
|
184
|
+
96 && m !== (m = "PlayNowButton " + /*hover*/
|
|
185
185
|
(e[5] && /*hoverIndex*/
|
|
186
186
|
e[6] == /*i*/
|
|
187
|
-
e[52] ? "itemHover" : "")) && c(t, "class",
|
|
187
|
+
e[52] ? "itemHover" : "")) && c(t, "class", m), h[0] & /*hover, hoverIndex*/
|
|
188
188
|
96 && p !== (p = "PlayNowButton " + /*hover*/
|
|
189
189
|
(e[5] && /*hoverIndex*/
|
|
190
190
|
e[6] == /*i*/
|
|
191
|
-
e[52] ? "itemHover" : "")) && c(t, "part", p),
|
|
191
|
+
e[52] ? "itemHover" : "")) && c(t, "part", p), h[0] & /*games*/
|
|
192
192
|
2 && !Z(r.src, w = /*game*/
|
|
193
|
-
e[50].thumbnail) && c(r, "src", w),
|
|
193
|
+
e[50].thumbnail) && c(r, "src", w), h[0] & /*games*/
|
|
194
194
|
2 && _ !== (_ = /*game*/
|
|
195
|
-
e[50].name) && c(r, "alt", _),
|
|
195
|
+
e[50].name) && c(r, "alt", _), h[0] & /*games*/
|
|
196
196
|
2 && f !== (f = /*game*/
|
|
197
197
|
e[50].name) && c(r, "title", f);
|
|
198
198
|
},
|
|
199
199
|
d(u) {
|
|
200
|
-
u &&
|
|
200
|
+
u && D(l), s = !1, te(b);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
@@ -212,7 +212,7 @@ function Ae(e) {
|
|
|
212
212
|
l = S("div"), t && t.c();
|
|
213
213
|
},
|
|
214
214
|
m(a, d) {
|
|
215
|
-
|
|
215
|
+
G(a, l, d), t && t.m(l, null), e[31](l);
|
|
216
216
|
},
|
|
217
217
|
p(a, d) {
|
|
218
218
|
/*games*/
|
|
@@ -222,15 +222,15 @@ function Ae(e) {
|
|
|
222
222
|
i: X,
|
|
223
223
|
o: X,
|
|
224
224
|
d(a) {
|
|
225
|
-
a &&
|
|
225
|
+
a && D(l), t && t.d(), e[31](null);
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
let Ue = 30;
|
|
230
|
-
function
|
|
231
|
-
let a, d,
|
|
232
|
-
|
|
233
|
-
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0,
|
|
230
|
+
function Ie(e, l, t) {
|
|
231
|
+
let a, d, m;
|
|
232
|
+
Te(e, Ce, (n) => t(10, m = n));
|
|
233
|
+
let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, h, H = null, j = null, A = !1, U, B, P = 0, T;
|
|
234
234
|
const ne = () => {
|
|
235
235
|
fetch(_).then((g) => g.json()).then((g) => {
|
|
236
236
|
Object.keys(g).forEach((N) => {
|
|
@@ -256,7 +256,7 @@ function De(e, l, t) {
|
|
|
256
256
|
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
257
257
|
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
|
|
258
258
|
}, E = (n) => {
|
|
259
|
-
n > 0 && !d ? (t(2, u -= i), t(2, u = u <
|
|
259
|
+
n > 0 && !d ? (t(2, u -= i), t(2, u = u < P ? P : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
260
260
|
}, R = (n) => {
|
|
261
261
|
window.postMessage(
|
|
262
262
|
{
|
|
@@ -269,15 +269,15 @@ function De(e, l, t) {
|
|
|
269
269
|
);
|
|
270
270
|
}, se = () => {
|
|
271
271
|
let n = new URL(p), g = new Headers();
|
|
272
|
-
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform",
|
|
272
|
+
n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform", Ee(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
273
273
|
t(1, k = F.item.games.items), F.item.games.total;
|
|
274
274
|
});
|
|
275
275
|
}, re = () => {
|
|
276
|
-
|
|
276
|
+
h.addEventListener("touchstart", J, { passive: !0 }), h.addEventListener("touchmove", O, { passive: !0 });
|
|
277
277
|
}, ae = () => {
|
|
278
278
|
setTimeout(
|
|
279
279
|
() => {
|
|
280
|
-
t(22,
|
|
280
|
+
t(22, P = (B.scrollWidth - B.clientWidth) * -1), t(16, r = new String(B.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
|
|
281
281
|
},
|
|
282
282
|
1e3
|
|
283
283
|
);
|
|
@@ -301,13 +301,13 @@ function De(e, l, t) {
|
|
|
301
301
|
}, ce = () => {
|
|
302
302
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
303
303
|
};
|
|
304
|
-
|
|
305
|
-
|
|
304
|
+
Fe(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
305
|
+
h.removeEventListener("touchstart", J), h.removeEventListener("touchmove", O);
|
|
306
306
|
}));
|
|
307
|
-
const ue = () => E(-1), de = (n) => R(n),
|
|
307
|
+
const ue = () => E(-1), de = (n) => R(n), me = (n) => W(n), he = () => q();
|
|
308
308
|
function fe(n) {
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
I[n ? "unshift" : "push"](() => {
|
|
310
|
+
B = n, t(7, B);
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
function ge() {
|
|
@@ -315,12 +315,12 @@ function De(e, l, t) {
|
|
|
315
315
|
}
|
|
316
316
|
const pe = () => E(1);
|
|
317
317
|
function ye(n) {
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
I[n ? "unshift" : "push"](() => {
|
|
319
|
+
h = n, t(3, h);
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
function we(n) {
|
|
323
|
-
|
|
323
|
+
I[n ? "unshift" : "push"](() => {
|
|
324
324
|
s = n, t(0, s);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
@@ -329,10 +329,10 @@ function De(e, l, t) {
|
|
|
329
329
|
}, e.$$.update = () => {
|
|
330
330
|
e.$$.dirty[0] & /*offset*/
|
|
331
331
|
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
332
|
-
4194308 && t(9, d = u <=
|
|
332
|
+
4194308 && t(9, d = u <= P), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
333
333
|
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
334
334
|
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
335
|
-
8 &&
|
|
335
|
+
8 && h && re(), e.$$.dirty[0] & /*translationurl*/
|
|
336
336
|
524288 && _ && ne(), e.$$.dirty[0] & /*games*/
|
|
337
337
|
2 && k.length && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
338
338
|
1048577 && f && s && ie(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
@@ -341,14 +341,14 @@ function De(e, l, t) {
|
|
|
341
341
|
s,
|
|
342
342
|
k,
|
|
343
343
|
u,
|
|
344
|
-
|
|
344
|
+
h,
|
|
345
345
|
T,
|
|
346
346
|
A,
|
|
347
347
|
U,
|
|
348
|
-
|
|
348
|
+
B,
|
|
349
349
|
a,
|
|
350
350
|
d,
|
|
351
|
-
|
|
351
|
+
m,
|
|
352
352
|
W,
|
|
353
353
|
q,
|
|
354
354
|
E,
|
|
@@ -360,11 +360,11 @@ function De(e, l, t) {
|
|
|
360
360
|
_,
|
|
361
361
|
f,
|
|
362
362
|
o,
|
|
363
|
-
|
|
363
|
+
P,
|
|
364
364
|
ue,
|
|
365
365
|
de,
|
|
366
|
-
he,
|
|
367
366
|
me,
|
|
367
|
+
he,
|
|
368
368
|
fe,
|
|
369
369
|
ge,
|
|
370
370
|
pe,
|
|
@@ -372,14 +372,14 @@ function De(e, l, t) {
|
|
|
372
372
|
we
|
|
373
373
|
];
|
|
374
374
|
}
|
|
375
|
-
class
|
|
375
|
+
class De extends ve {
|
|
376
376
|
constructor(l) {
|
|
377
377
|
super(), ke(
|
|
378
378
|
this,
|
|
379
379
|
l,
|
|
380
|
-
|
|
380
|
+
Ie,
|
|
381
381
|
Ae,
|
|
382
|
-
|
|
382
|
+
Ne,
|
|
383
383
|
{
|
|
384
384
|
tournamenturl: 17,
|
|
385
385
|
scrollby: 15,
|
|
@@ -436,7 +436,7 @@ class Ie extends ve {
|
|
|
436
436
|
this.$$set({ clientstylingurl: l }), M();
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
|
|
439
|
+
je(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
440
440
|
export {
|
|
441
|
-
|
|
441
|
+
De as default
|
|
442
442
|
};
|