@everymatrix/casino-tournaments-list-controller 1.66.2 → 1.67.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsListController-DySbk5VW.js → CasinoTournamentsListController-B462E0qG.js} +1865 -1790
- package/components/{CasinoTournamentsListController-C4mihNnj.js → CasinoTournamentsListController-CtInxe7N.js} +2145 -2152
- package/components/CasinoTournamentsListController-DuFdroc_.cjs +28 -0
- package/components/{CasinoTournamentsThumbnail-Dm47dnjW.cjs → CasinoTournamentsThumbnail-14EXKDty.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-Yl8kaw-d.js → CasinoTournamentsThumbnail-ByXAPz4b.js} +30 -30
- package/components/{CasinoTournamentsThumbnail-BGguyWao.js → CasinoTournamentsThumbnail-DfAXgn4t.js} +30 -30
- package/components/{CasinoTournamentsThumbnailController-D4fh4BOQ.js → CasinoTournamentsThumbnailController-CPyJp_n-.js} +340 -405
- package/components/{CasinoTournamentsThumbnailController-gMjU8WUF.js → CasinoTournamentsThumbnailController-hECyfAwI.js} +327 -392
- package/components/CasinoTournamentsThumbnailController-qI0rc-Ej.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailDuration-CM4PmXyz.js → CasinoTournamentsThumbnailDuration-B0XmmYAV.js} +39 -39
- package/components/{CasinoTournamentsThumbnailDuration-DotSLQks.cjs → CasinoTournamentsThumbnailDuration-CfNd-_JR.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-VhRuoa0C.js → CasinoTournamentsThumbnailDuration-CgopDMJt.js} +39 -39
- package/components/{CasinoTournamentsThumbnailGamesSlider-DelsM0V9.js → CasinoTournamentsThumbnailGamesSlider-BuvDMzWR.js} +61 -61
- package/components/{CasinoTournamentsThumbnailGamesSlider-DPfGI_tX.js → CasinoTournamentsThumbnailGamesSlider-CIcdSmKi.js} +61 -61
- package/components/{CasinoTournamentsThumbnailGamesSlider-QjFgAppB.cjs → CasinoTournamentsThumbnailGamesSlider-DuLodhfq.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CMxv0Giw.cjs → CasinoTournamentsThumbnailPrizes-BxVgCfCL.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-C4W8HVKg.js → CasinoTournamentsThumbnailPrizes-CIhSfxTp.js} +35 -35
- package/components/{CasinoTournamentsThumbnailPrizes-qFFMpsOU.js → CasinoTournamentsThumbnailPrizes-Cgv1iFmY.js} +35 -35
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-ChRvzjAp.js} +186 -186
- package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-DKsTmN3Z.js} +175 -175
- package/stencil/index-97d17652-qWThG1U9.cjs +1 -0
- package/stencil/index-b2193545-C1ayEiG4.js +503 -0
- package/stencil/index-b2193545-CyidmLE0.cjs +1 -0
- package/stencil/index-b2193545-s3PsNboB.js +519 -0
- package/stencil/{ui-image-3hy4ZvUC.js → ui-image-ClXqMGwp.js} +1 -1
- package/stencil/{ui-image-DE8MJHCZ.cjs → ui-image-Db5QCSmt.cjs} +1 -1
- package/stencil/{ui-image-D0wxuPze.js → ui-image-YphrYZtA.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-B43lELFk.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-CRQDt62Z.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-DVcK_myk.js} +1 -1
- package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CyHaM9Na.cjs} +1 -1
- package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-Df0q0jE8.js} +2 -2
- package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-EP2dwjfi.js} +2 -2
- package/stencil/{ui-skeleton-1cb75d00-B-R8GbLJ.js → ui-skeleton-1cb75d00-U47XWOV2.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-Dy30RNE6.js → ui-skeleton-1cb75d00-bf7NJcVF.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BTnhspbc.cjs → ui-skeleton-1cb75d00-nmwFu55Y.cjs} +1 -1
- package/stencil/{ui-skeleton-CVBjRUvi.js → ui-skeleton-DSlZCsjK.js} +2 -2
- package/stencil/{ui-skeleton-se83zfWh.cjs → ui-skeleton-DXCQ8Yoq.cjs} +1 -1
- package/stencil/{ui-skeleton-RkXNxPG1.js → ui-skeleton-P9Vv-0Vy.js} +2 -2
- package/components/CasinoTournamentsListController-BNVcBVyF.cjs +0 -15
- package/components/CasinoTournamentsThumbnailController-DSTK12aD.cjs +0 -16
- package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
- package/stencil/index-b2193545-BOMvxBzV.js +0 -519
- package/stencil/index-b2193545-CFn9dM-v.js +0 -503
- package/stencil/index-b2193545-DPygl1Qn.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as K, S as Y, i as Z,
|
|
1
|
+
import { b as K, S as Y, i as Z, f as C, c as J, s as Q, d as V, e as v, h as l, j as T, n as U, l as B, m as X, o as $, t as E, g as L, k as m, q as tt, p as M, x as et, F as A, A as nt } from "./CasinoTournamentsListController-B462E0qG.js";
|
|
2
2
|
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -93,7 +93,7 @@ const O = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function it(i) {
|
|
96
|
-
|
|
96
|
+
V(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
97
97
|
}
|
|
98
98
|
function q(i) {
|
|
99
99
|
let t, e, s = (
|
|
@@ -143,10 +143,10 @@ function q(i) {
|
|
|
143
143
|
let k = R(i), f = k && k(i);
|
|
144
144
|
return {
|
|
145
145
|
c() {
|
|
146
|
-
t = v("div"), e = v("div"), a =
|
|
146
|
+
t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
|
|
147
147
|
},
|
|
148
148
|
m(r, b) {
|
|
149
|
-
|
|
149
|
+
T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
|
|
150
150
|
/*getDuration*/
|
|
151
151
|
i[9].call(null, p)
|
|
152
152
|
), F = !0);
|
|
@@ -157,15 +157,15 @@ function q(i) {
|
|
|
157
157
|
r[10](
|
|
158
158
|
/*startdate*/
|
|
159
159
|
r[0]
|
|
160
|
-
) + "") &&
|
|
160
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
161
161
|
2 && d !== (d = /*formatDate*/
|
|
162
162
|
r[10](
|
|
163
163
|
/*enddate*/
|
|
164
164
|
r[1]
|
|
165
|
-
) + "") &&
|
|
165
|
+
) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
|
|
166
166
|
},
|
|
167
167
|
d(r) {
|
|
168
|
-
r && (
|
|
168
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
@@ -181,7 +181,7 @@ function st(i) {
|
|
|
181
181
|
);
|
|
182
182
|
},
|
|
183
183
|
m(e, s) {
|
|
184
|
-
|
|
184
|
+
T(e, t, s);
|
|
185
185
|
},
|
|
186
186
|
p(e, s) {
|
|
187
187
|
s & /*getProgress*/
|
|
@@ -193,7 +193,7 @@ function st(i) {
|
|
|
193
193
|
);
|
|
194
194
|
},
|
|
195
195
|
d(e) {
|
|
196
|
-
e &&
|
|
196
|
+
e && B(t);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -204,11 +204,11 @@ function rt(i) {
|
|
|
204
204
|
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
205
205
|
},
|
|
206
206
|
m(e, s) {
|
|
207
|
-
|
|
207
|
+
T(e, t, s);
|
|
208
208
|
},
|
|
209
209
|
p: U,
|
|
210
210
|
d(e) {
|
|
211
|
-
e &&
|
|
211
|
+
e && B(t);
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
}
|
|
@@ -219,11 +219,11 @@ function at(i) {
|
|
|
219
219
|
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
220
220
|
},
|
|
221
221
|
m(e, s) {
|
|
222
|
-
|
|
222
|
+
T(e, t, s);
|
|
223
223
|
},
|
|
224
224
|
p: U,
|
|
225
225
|
d(e) {
|
|
226
|
-
e &&
|
|
226
|
+
e && B(t);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -234,26 +234,26 @@ function lt(i) {
|
|
|
234
234
|
), u;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
t = v("div"), e =
|
|
237
|
+
t = v("div"), e = E(
|
|
238
238
|
/*showRemain*/
|
|
239
239
|
i[6]
|
|
240
|
-
), s = L(), u =
|
|
240
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
241
241
|
},
|
|
242
242
|
m(o, d) {
|
|
243
|
-
|
|
243
|
+
T(o, t, d), m(t, e), m(t, s), m(t, u);
|
|
244
244
|
},
|
|
245
245
|
p(o, d) {
|
|
246
246
|
d & /*showRemain*/
|
|
247
|
-
64 &&
|
|
247
|
+
64 && M(
|
|
248
248
|
e,
|
|
249
249
|
/*showRemain*/
|
|
250
250
|
o[6]
|
|
251
251
|
), d & /*$_*/
|
|
252
252
|
256 && a !== (a = /*$_*/
|
|
253
|
-
o[8]("left") + "") &&
|
|
253
|
+
o[8]("left") + "") && M(u, a);
|
|
254
254
|
},
|
|
255
255
|
d(o) {
|
|
256
|
-
o &&
|
|
256
|
+
o && B(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -270,23 +270,23 @@ function ot(i) {
|
|
|
270
270
|
), o;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
273
|
-
t = v("div"), s =
|
|
273
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
274
274
|
},
|
|
275
275
|
m(d, g) {
|
|
276
|
-
|
|
276
|
+
T(d, t, g), m(t, s), m(t, a), m(t, o);
|
|
277
277
|
},
|
|
278
278
|
p(d, g) {
|
|
279
279
|
g & /*$_*/
|
|
280
280
|
256 && e !== (e = /*$_*/
|
|
281
|
-
d[8]("starting") + "") &&
|
|
281
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
282
282
|
32 && u !== (u = /*getTextByDiff*/
|
|
283
283
|
d[11](
|
|
284
284
|
/*tournamentUntilStartDays*/
|
|
285
285
|
d[5]
|
|
286
|
-
) + "") &&
|
|
286
|
+
) + "") && M(o, u);
|
|
287
287
|
},
|
|
288
288
|
d(d) {
|
|
289
|
-
d &&
|
|
289
|
+
d && B(t);
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
}
|
|
@@ -297,18 +297,18 @@ function ut(i) {
|
|
|
297
297
|
), s;
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
t = v("div"), s =
|
|
300
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
301
301
|
},
|
|
302
302
|
m(a, u) {
|
|
303
|
-
|
|
303
|
+
T(a, t, u), m(t, s);
|
|
304
304
|
},
|
|
305
305
|
p(a, u) {
|
|
306
306
|
u & /*$_*/
|
|
307
307
|
256 && e !== (e = /*$_*/
|
|
308
|
-
a[8]("finished") + "") &&
|
|
308
|
+
a[8]("finished") + "") && M(s, e);
|
|
309
309
|
},
|
|
310
310
|
d(a) {
|
|
311
|
-
a &&
|
|
311
|
+
a && B(t);
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
}
|
|
@@ -323,7 +323,7 @@ function dt(i) {
|
|
|
323
323
|
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
324
324
|
},
|
|
325
325
|
m(s, a) {
|
|
326
|
-
|
|
326
|
+
T(s, t, a), e && e.m(t, null), i[16](t);
|
|
327
327
|
},
|
|
328
328
|
p(s, [a]) {
|
|
329
329
|
/*startdate*/
|
|
@@ -333,13 +333,13 @@ function dt(i) {
|
|
|
333
333
|
i: U,
|
|
334
334
|
o: U,
|
|
335
335
|
d(s) {
|
|
336
|
-
s &&
|
|
336
|
+
s && B(t), e && e.d(), i[16](null);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function ct(i, t, e) {
|
|
341
341
|
let s, a;
|
|
342
|
-
|
|
342
|
+
X(i, nt, (n) => e(8, a = n));
|
|
343
343
|
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
|
|
344
344
|
const z = () => {
|
|
345
345
|
fetch(h).then((c) => c.json()).then((c) => {
|
|
@@ -373,7 +373,7 @@ function ct(i, t, e) {
|
|
|
373
373
|
}, b = () => {
|
|
374
374
|
let n = document.createElement("style");
|
|
375
375
|
n.innerHTML = S, D.appendChild(n);
|
|
376
|
-
},
|
|
376
|
+
}, x = () => {
|
|
377
377
|
let n = new URL(p), c = document.createElement("style");
|
|
378
378
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
379
379
|
c.innerHTML = _, setTimeout(
|
|
@@ -388,7 +388,7 @@ function ct(i, t, e) {
|
|
|
388
388
|
);
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
|
-
|
|
391
|
+
$(() => {
|
|
392
392
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
393
393
|
const n = setInterval(
|
|
394
394
|
() => {
|
|
@@ -398,8 +398,8 @@ function ct(i, t, e) {
|
|
|
398
398
|
);
|
|
399
399
|
return () => clearInterval(n);
|
|
400
400
|
});
|
|
401
|
-
function
|
|
402
|
-
|
|
401
|
+
function H(n) {
|
|
402
|
+
et[n ? "unshift" : "push"](() => {
|
|
403
403
|
D = n, e(3, D);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
@@ -418,7 +418,7 @@ function ct(i, t, e) {
|
|
|
418
418
|
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
419
419
|
32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
420
420
|
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
421
|
-
16392 && D && p &&
|
|
421
|
+
16392 && D && p && x();
|
|
422
422
|
}, [
|
|
423
423
|
u,
|
|
424
424
|
o,
|
|
@@ -436,7 +436,7 @@ function ct(i, t, e) {
|
|
|
436
436
|
S,
|
|
437
437
|
p,
|
|
438
438
|
h,
|
|
439
|
-
|
|
439
|
+
H
|
|
440
440
|
];
|
|
441
441
|
}
|
|
442
442
|
class ft extends Y {
|
|
@@ -446,7 +446,7 @@ class ft extends Y {
|
|
|
446
446
|
t,
|
|
447
447
|
ct,
|
|
448
448
|
dt,
|
|
449
|
-
|
|
449
|
+
Q,
|
|
450
450
|
{
|
|
451
451
|
startdate: 0,
|
|
452
452
|
enddate: 1,
|
|
@@ -502,7 +502,7 @@ class ft extends Y {
|
|
|
502
502
|
this.$$set({ translationurl: t }), C();
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
506
506
|
export {
|
|
507
507
|
ft as default
|
|
508
508
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as be, S as ve, i as ke,
|
|
2
|
-
import { g as
|
|
3
|
-
function
|
|
1
|
+
import { b as be, S as ve, i as ke, f as M, c as Ne, s as Se, d as Te, e as S, j as D, n as R, l as G, m as Fe, o as Me, G as X, g as C, h as c, H as A, F as Y, I as Pe, k as v, J as Be, v as L, K as Ee, w as te, t as Le, y as K, p as He, x as I, A as je } from "./CasinoTournamentsListController-CtInxe7N.js";
|
|
2
|
+
import { g as Ae } from "./CasinoTournamentsThumbnailController-hECyfAwI.js";
|
|
3
|
+
function Z(e, l) {
|
|
4
4
|
be(e, l);
|
|
5
5
|
}
|
|
6
6
|
const Q = {
|
|
@@ -35,15 +35,15 @@ const Q = {
|
|
|
35
35
|
playNow: "Play now"
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function Ce(e) {
|
|
39
|
+
Te(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
|
|
40
40
|
}
|
|
41
41
|
function V(e, l, t) {
|
|
42
42
|
const a = e.slice();
|
|
43
43
|
return a[50] = l[t], a[52] = t, a;
|
|
44
44
|
}
|
|
45
45
|
function $(e) {
|
|
46
|
-
let l, t, a, m, d, p, y, r, w, _, f =
|
|
46
|
+
let l, t, a, m, d, p, y, r, w, _, f = X(
|
|
47
47
|
/*games*/
|
|
48
48
|
e[1]
|
|
49
49
|
), o = [];
|
|
@@ -51,10 +51,10 @@ function $(e) {
|
|
|
51
51
|
o[s] = ee(V(e, f, s));
|
|
52
52
|
return {
|
|
53
53
|
c() {
|
|
54
|
-
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 =
|
|
54
|
+
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 = C(), m = S("main"), d = S("div");
|
|
55
55
|
for (let s = 0; s < o.length; s += 1)
|
|
56
56
|
o[s].c();
|
|
57
|
-
y =
|
|
57
|
+
y = C(), 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"), A(
|
|
58
58
|
t,
|
|
59
59
|
"disabled",
|
|
60
60
|
/*atStart*/
|
|
@@ -63,7 +63,7 @@ function $(e) {
|
|
|
63
63
|
e[2] + "px)"), Pe(() => (
|
|
64
64
|
/*main_elementresize_handler*/
|
|
65
65
|
e[28].call(m)
|
|
66
|
-
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"),
|
|
66
|
+
)), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), A(
|
|
67
67
|
r,
|
|
68
68
|
"disabled",
|
|
69
69
|
/*atEnd*/
|
|
@@ -71,10 +71,10 @@ function $(e) {
|
|
|
71
71
|
), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
|
|
72
72
|
},
|
|
73
73
|
m(s, b) {
|
|
74
|
-
|
|
74
|
+
D(s, l, b), v(l, t), v(l, a), v(l, m), v(m, d);
|
|
75
75
|
for (let i = 0; i < o.length; i += 1)
|
|
76
76
|
o[i] && o[i].m(d, null);
|
|
77
|
-
e[27](d), p =
|
|
77
|
+
e[27](d), p = Be(
|
|
78
78
|
m,
|
|
79
79
|
/*main_elementresize_handler*/
|
|
80
80
|
e[28].bind(m)
|
|
@@ -95,14 +95,14 @@ function $(e) {
|
|
|
95
95
|
},
|
|
96
96
|
p(s, b) {
|
|
97
97
|
if (b[0] & /*atStart*/
|
|
98
|
-
256 &&
|
|
98
|
+
256 && A(
|
|
99
99
|
t,
|
|
100
100
|
"disabled",
|
|
101
101
|
/*atStart*/
|
|
102
102
|
s[8]
|
|
103
103
|
), b[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
|
|
104
104
|
23650) {
|
|
105
|
-
f =
|
|
105
|
+
f = X(
|
|
106
106
|
/*games*/
|
|
107
107
|
s[1]
|
|
108
108
|
);
|
|
@@ -118,7 +118,7 @@ function $(e) {
|
|
|
118
118
|
b[0] & /*offset*/
|
|
119
119
|
4 && Y(d, "transform", "translateX(" + /*offset*/
|
|
120
120
|
s[2] + "px)"), b[0] & /*atEnd*/
|
|
121
|
-
512 &&
|
|
121
|
+
512 && A(
|
|
122
122
|
r,
|
|
123
123
|
"disabled",
|
|
124
124
|
/*atEnd*/
|
|
@@ -126,7 +126,7 @@ function $(e) {
|
|
|
126
126
|
);
|
|
127
127
|
},
|
|
128
128
|
d(s) {
|
|
129
|
-
s && G(l),
|
|
129
|
+
s && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -155,19 +155,19 @@ function ee(e) {
|
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
157
|
c() {
|
|
158
|
-
l = S("div"), t = S("span"), m = Le(a), y =
|
|
158
|
+
l = S("div"), t = S("span"), m = Le(a), y = C(), r = S("img"), o = C(), c(t, "class", d = "PlayNowButton " + /*hover*/
|
|
159
159
|
(e[5] && /*hoverIndex*/
|
|
160
160
|
e[6] == /*i*/
|
|
161
161
|
e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
|
|
162
162
|
(e[5] && /*hoverIndex*/
|
|
163
163
|
e[6] == /*i*/
|
|
164
|
-
e[52] ? "itemHover" : "")),
|
|
164
|
+
e[52] ? "itemHover" : "")), K(r.src, w = /*game*/
|
|
165
165
|
e[50].thumbnail) || c(r, "src", w), c(r, "width", "132px"), c(r, "height", "100px"), c(r, "alt", _ = /*game*/
|
|
166
166
|
e[50].name), c(r, "title", f = /*game*/
|
|
167
167
|
e[50].name), c(l, "class", "item"), c(l, "part", "item");
|
|
168
168
|
},
|
|
169
169
|
m(u, h) {
|
|
170
|
-
|
|
170
|
+
D(u, l, h), v(l, t), v(t, m), v(l, y), v(l, r), v(l, o), s || (b = [
|
|
171
171
|
L(l, "click", i),
|
|
172
172
|
L(l, "mouseenter", k),
|
|
173
173
|
L(
|
|
@@ -181,7 +181,7 @@ function ee(e) {
|
|
|
181
181
|
p(u, h) {
|
|
182
182
|
e = u, h[0] & /*$_*/
|
|
183
183
|
1024 && a !== (a = /*$_*/
|
|
184
|
-
e[10]("playNow") + "") &&
|
|
184
|
+
e[10]("playNow") + "") && He(m, a), h[0] & /*hover, hoverIndex*/
|
|
185
185
|
96 && d !== (d = "PlayNowButton " + /*hover*/
|
|
186
186
|
(e[5] && /*hoverIndex*/
|
|
187
187
|
e[6] == /*i*/
|
|
@@ -190,7 +190,7 @@ function ee(e) {
|
|
|
190
190
|
(e[5] && /*hoverIndex*/
|
|
191
191
|
e[6] == /*i*/
|
|
192
192
|
e[52] ? "itemHover" : "")) && c(t, "part", p), h[0] & /*games*/
|
|
193
|
-
2 && !
|
|
193
|
+
2 && !K(r.src, w = /*game*/
|
|
194
194
|
e[50].thumbnail) && c(r, "src", w), h[0] & /*games*/
|
|
195
195
|
2 && _ !== (_ = /*game*/
|
|
196
196
|
e[50].name) && c(r, "alt", _), h[0] & /*games*/
|
|
@@ -202,7 +202,7 @@ function ee(e) {
|
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function ze(e) {
|
|
206
206
|
let l, t = (
|
|
207
207
|
/*games*/
|
|
208
208
|
e[1] && /*games*/
|
|
@@ -213,52 +213,52 @@ function Ae(e) {
|
|
|
213
213
|
l = S("div"), t && t.c();
|
|
214
214
|
},
|
|
215
215
|
m(a, m) {
|
|
216
|
-
|
|
216
|
+
D(a, l, m), t && t.m(l, null), e[31](l);
|
|
217
217
|
},
|
|
218
218
|
p(a, m) {
|
|
219
219
|
/*games*/
|
|
220
220
|
a[1] && /*games*/
|
|
221
221
|
a[1].length > 0 ? t ? t.p(a, m) : (t = $(a), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
|
|
222
222
|
},
|
|
223
|
-
i:
|
|
224
|
-
o:
|
|
223
|
+
i: R,
|
|
224
|
+
o: R,
|
|
225
225
|
d(a) {
|
|
226
226
|
a && G(l), t && t.d(), e[31](null);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
let Ue = 30;
|
|
231
|
-
function
|
|
231
|
+
function Ie(e, l, t) {
|
|
232
232
|
let a, m, d;
|
|
233
|
-
|
|
234
|
-
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,
|
|
233
|
+
Fe(e, je, (n) => t(10, d = n));
|
|
234
|
+
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, z = !1, U, P, B = 0, T;
|
|
235
235
|
const ne = () => {
|
|
236
236
|
fetch(_).then((g) => g.json()).then((g) => {
|
|
237
237
|
Object.keys(g).forEach((N) => {
|
|
238
|
-
|
|
238
|
+
Z(N, g[N]);
|
|
239
239
|
});
|
|
240
240
|
}).catch((g) => {
|
|
241
241
|
console.log(g);
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
244
|
Object.keys(Q).forEach((n) => {
|
|
245
|
-
|
|
245
|
+
Z(n, Q[n]);
|
|
246
246
|
});
|
|
247
247
|
const W = (n) => {
|
|
248
|
-
t(5,
|
|
248
|
+
t(5, z = !0), t(6, U = n);
|
|
249
249
|
}, q = () => {
|
|
250
|
-
t(5,
|
|
251
|
-
}, le = (n) => n.touches || n.originalEvent.touches,
|
|
250
|
+
t(5, z = !1), t(6, U = -1);
|
|
251
|
+
}, le = (n) => n.touches || n.originalEvent.touches, x = (n) => {
|
|
252
252
|
const g = le(n)[0];
|
|
253
253
|
H = g.clientX, j = g.clientY;
|
|
254
|
-
},
|
|
254
|
+
}, J = (n) => {
|
|
255
255
|
if (!H || !j)
|
|
256
256
|
return;
|
|
257
257
|
let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
|
|
258
|
-
Math.abs(F) > Math.abs(_e) && (F > 0 ?
|
|
259
|
-
},
|
|
260
|
-
n > 0 && !m ? (t(2, u -= i), t(2, u = u <
|
|
261
|
-
},
|
|
258
|
+
Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
|
|
259
|
+
}, E = (n) => {
|
|
260
|
+
n > 0 && !m ? (t(2, u -= i), t(2, u = u < B ? B : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
|
|
261
|
+
}, O = (n) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
264
264
|
type: "TournamentGameAction",
|
|
@@ -270,15 +270,15 @@ function De(e, l, t) {
|
|
|
270
270
|
);
|
|
271
271
|
}, se = () => {
|
|
272
272
|
let n = new URL(p), g = new Headers();
|
|
273
|
-
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",
|
|
273
|
+
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", Ae(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
|
|
274
274
|
t(1, k = F.item.games.items), F.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, re = () => {
|
|
277
|
-
h.addEventListener("touchstart",
|
|
277
|
+
h.addEventListener("touchstart", x, { passive: !0 }), h.addEventListener("touchmove", J, { passive: !0 });
|
|
278
278
|
}, ae = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
281
|
-
t(22,
|
|
281
|
+
t(22, B = (P.scrollWidth - P.clientWidth) * -1), t(16, r = new String(P.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
|
|
282
282
|
},
|
|
283
283
|
1e3
|
|
284
284
|
);
|
|
@@ -302,26 +302,26 @@ function De(e, l, t) {
|
|
|
302
302
|
}, ce = () => {
|
|
303
303
|
T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
|
|
304
304
|
};
|
|
305
|
-
|
|
306
|
-
h.removeEventListener("touchstart",
|
|
305
|
+
Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
|
|
306
|
+
h.removeEventListener("touchstart", x), h.removeEventListener("touchmove", J);
|
|
307
307
|
}));
|
|
308
|
-
const ue = () =>
|
|
308
|
+
const ue = () => E(-1), me = (n) => O(n), de = (n) => W(n), he = () => q();
|
|
309
309
|
function fe(n) {
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
I[n ? "unshift" : "push"](() => {
|
|
311
|
+
P = n, t(7, P);
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
function ge() {
|
|
315
315
|
T = this.clientWidth, t(4, T);
|
|
316
316
|
}
|
|
317
|
-
const pe = () =>
|
|
317
|
+
const pe = () => E(1);
|
|
318
318
|
function ye(n) {
|
|
319
|
-
|
|
319
|
+
I[n ? "unshift" : "push"](() => {
|
|
320
320
|
h = n, t(3, h);
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
function we(n) {
|
|
324
|
-
|
|
324
|
+
I[n ? "unshift" : "push"](() => {
|
|
325
325
|
s = n, t(0, s);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
@@ -330,7 +330,7 @@ function De(e, l, t) {
|
|
|
330
330
|
}, e.$$.update = () => {
|
|
331
331
|
e.$$.dirty[0] & /*offset*/
|
|
332
332
|
4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
|
|
333
|
-
4194308 && t(9, m = u <=
|
|
333
|
+
4194308 && t(9, m = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
|
|
334
334
|
16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
|
|
335
335
|
131072 && p && se(), e.$$.dirty[0] & /*slider*/
|
|
336
336
|
8 && h && re(), e.$$.dirty[0] & /*translationurl*/
|
|
@@ -344,16 +344,16 @@ function De(e, l, t) {
|
|
|
344
344
|
u,
|
|
345
345
|
h,
|
|
346
346
|
T,
|
|
347
|
-
|
|
347
|
+
z,
|
|
348
348
|
U,
|
|
349
|
-
|
|
349
|
+
P,
|
|
350
350
|
a,
|
|
351
351
|
m,
|
|
352
352
|
d,
|
|
353
353
|
W,
|
|
354
354
|
q,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
E,
|
|
356
|
+
O,
|
|
357
357
|
y,
|
|
358
358
|
r,
|
|
359
359
|
p,
|
|
@@ -361,7 +361,7 @@ function De(e, l, t) {
|
|
|
361
361
|
_,
|
|
362
362
|
f,
|
|
363
363
|
o,
|
|
364
|
-
|
|
364
|
+
B,
|
|
365
365
|
ue,
|
|
366
366
|
me,
|
|
367
367
|
de,
|
|
@@ -373,14 +373,14 @@ function De(e, l, t) {
|
|
|
373
373
|
we
|
|
374
374
|
];
|
|
375
375
|
}
|
|
376
|
-
class
|
|
376
|
+
class De extends ve {
|
|
377
377
|
constructor(l) {
|
|
378
378
|
super(), ke(
|
|
379
379
|
this,
|
|
380
380
|
l,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
Ie,
|
|
382
|
+
ze,
|
|
383
|
+
Se,
|
|
384
384
|
{
|
|
385
385
|
tournamenturl: 17,
|
|
386
386
|
scrollby: 15,
|
|
@@ -390,7 +390,7 @@ class Ge extends ve {
|
|
|
390
390
|
clientstyling: 20,
|
|
391
391
|
clientstylingurl: 21
|
|
392
392
|
},
|
|
393
|
-
|
|
393
|
+
Ce,
|
|
394
394
|
[-1, -1]
|
|
395
395
|
);
|
|
396
396
|
}
|
|
@@ -437,7 +437,7 @@ class Ge extends ve {
|
|
|
437
437
|
this.$$set({ clientstylingurl: l }), M();
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
|
|
440
|
+
Ne(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
441
441
|
export {
|
|
442
|
-
|
|
442
|
+
De as default
|
|
443
443
|
};
|