@everymatrix/casino-tournaments-thumbnail-controller 1.94.58 → 1.94.59
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/{CasinoTournamentsThumbnail-BXdngoBO.js → CasinoTournamentsThumbnail-9fRQ6gHt.js} +284 -263
- package/components/CasinoTournamentsThumbnail-Bm9rL34M.cjs +3 -0
- package/components/{CasinoTournamentsThumbnail-pjUSMRhz.js → CasinoTournamentsThumbnail-dHgrfhc5.js} +286 -265
- package/components/{CasinoTournamentsThumbnailController-BcXnTlAn.js → CasinoTournamentsThumbnailController-1nfp9czM.js} +918 -899
- package/components/{CasinoTournamentsThumbnailController-BicnmhUl.cjs → CasinoTournamentsThumbnailController-CLlsgHiS.cjs} +4 -4
- package/components/{CasinoTournamentsThumbnailController-EmilQMI-.js → CasinoTournamentsThumbnailController-DupHXpvD.js} +937 -918
- package/components/{CasinoTournamentsThumbnailDuration-CQB0nLN_.js → CasinoTournamentsThumbnailDuration-B1dTex-W.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-7btYyZ6J.cjs → CasinoTournamentsThumbnailDuration-C7QQvMiB.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CjU9CLj7.js → CasinoTournamentsThumbnailDuration-D0D8el4I.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CWOVoNLx.cjs → CasinoTournamentsThumbnailGamesSlider-Cn8utb6L.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BstczX4F.js → CasinoTournamentsThumbnailGamesSlider-D1BF0aLn.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-C9FYH-hp.js → CasinoTournamentsThumbnailGamesSlider-D4MGPHIT.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-C40cTD-B.js → CasinoTournamentsThumbnailPrizes-BWeypuuc.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-2idc5EbK.js → CasinoTournamentsThumbnailPrizes-BeH7rivE.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CGaF0bm9.cjs → CasinoTournamentsThumbnailPrizes-D_gmITmO.cjs} +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-BqORF3JF.cjs +0 -3
package/components/{CasinoTournamentsThumbnail-BXdngoBO.js → CasinoTournamentsThumbnail-9fRQ6gHt.js}
RENAMED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { $ as ee, a as
|
|
2
|
-
import "../stencil/ui-skeleton-
|
|
3
|
-
import "../stencil/ui-image-
|
|
4
|
-
function
|
|
1
|
+
import { $ as ee, a as be, b as fe, S as he, i as pe, s as ke, f as h, c as ye, n as ae, d as A, e as m, g as v, h as c, j as p, k as J, l as Se, o as Ce, r as ie, m as R, p as $, q as X, t as w, u as _e, v as Ae, w as te, x as Y, y as ve, z as Te, A as we, B as Me, C as Je, D as Re } from "./CasinoTournamentsThumbnailController-DupHXpvD.js";
|
|
2
|
+
import "../stencil/ui-skeleton-DGlqF493.js";
|
|
3
|
+
import "../stencil/ui-image-BiEqrTjD.js";
|
|
4
|
+
function De({ withLocale: i, translations: e }) {
|
|
5
5
|
ee.subscribe((t) => {
|
|
6
|
-
t == null && (
|
|
6
|
+
t == null && (be.set(e), ee.set(i));
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
9
|
+
function ne(i, e) {
|
|
10
|
+
fe(i, e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ie(i) {
|
|
13
13
|
ee.set(i);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const re = {
|
|
16
16
|
en: {
|
|
17
17
|
enrolled: "Enrolled",
|
|
18
18
|
scoreCriteria: "Score Criteria",
|
|
19
19
|
minbet: "min bet count",
|
|
20
|
+
preciseNumberOfBets: "precise number of bets",
|
|
20
21
|
seegames: "You can see the games",
|
|
21
22
|
here: "here",
|
|
22
23
|
scheduled: "Scheduled",
|
|
@@ -346,167 +347,179 @@ const ne = {
|
|
|
346
347
|
December: "December"
|
|
347
348
|
}
|
|
348
349
|
};
|
|
349
|
-
function
|
|
350
|
+
function Fe(i) {
|
|
350
351
|
ye(i, "svelte-52u9sp", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
351
352
|
}
|
|
352
353
|
function se(i) {
|
|
353
|
-
let e, t,
|
|
354
|
+
let e, t, r;
|
|
354
355
|
return {
|
|
355
356
|
c() {
|
|
356
|
-
e = p("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', t =
|
|
357
|
+
e = p("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', t = J(), r = p("div"), r.innerHTML = '<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>', m(e, "class", "Skeleton CardImg"), m(r, "class", "Details"), m(r, "part", "Details");
|
|
357
358
|
},
|
|
358
|
-
m(
|
|
359
|
-
|
|
359
|
+
m(n, s) {
|
|
360
|
+
v(n, e, s), v(n, t, s), v(n, r, s);
|
|
360
361
|
},
|
|
361
|
-
d(
|
|
362
|
-
|
|
362
|
+
d(n) {
|
|
363
|
+
n && (A(e), A(t), A(r));
|
|
363
364
|
}
|
|
364
365
|
};
|
|
365
366
|
}
|
|
366
367
|
function le(i) {
|
|
367
|
-
let e, t,
|
|
368
|
+
let e, t, r, n, s, o, u, d, f, _, T = (
|
|
368
369
|
/*$_*/
|
|
369
|
-
i[
|
|
370
|
-
),
|
|
370
|
+
i[15]("scoreCriteria") + ""
|
|
371
|
+
), E, Z, M, P, N, O = (
|
|
371
372
|
/*$_*/
|
|
372
|
-
i[
|
|
373
|
-
|
|
373
|
+
i[15](
|
|
374
|
+
/*betcountmode*/
|
|
375
|
+
i[9] === "minBetCount" ? "minbet" : (
|
|
376
|
+
/*betcountmode*/
|
|
377
|
+
i[9]
|
|
378
|
+
)
|
|
379
|
+
) + ""
|
|
380
|
+
), D, W, I, x, Q, S, F, L = (
|
|
374
381
|
/*$_*/
|
|
375
|
-
i[
|
|
376
|
-
),
|
|
382
|
+
i[15]("seegames") + ""
|
|
383
|
+
), j, U, C, G = (
|
|
377
384
|
/*$_*/
|
|
378
|
-
i[
|
|
379
|
-
),
|
|
385
|
+
i[15]("here") + ""
|
|
386
|
+
), K, z, B, V, k = (
|
|
380
387
|
/*status*/
|
|
381
388
|
i[0] && oe(i)
|
|
382
|
-
),
|
|
389
|
+
), y = (
|
|
383
390
|
/*showenrolled*/
|
|
384
391
|
i[6] == "true" && ue(i)
|
|
385
392
|
);
|
|
386
|
-
function
|
|
393
|
+
function q(l, g) {
|
|
387
394
|
return (
|
|
388
395
|
/*thumbnail*/
|
|
389
|
-
|
|
396
|
+
l[3] ? ze : je
|
|
390
397
|
);
|
|
391
398
|
}
|
|
392
|
-
let
|
|
399
|
+
let H = q(i), a = H(i), b = (
|
|
393
400
|
/*startdate*/
|
|
394
401
|
i[2] && de(i)
|
|
395
402
|
);
|
|
396
403
|
return {
|
|
397
404
|
c() {
|
|
398
|
-
|
|
405
|
+
k && k.c(), e = J(), y && y.c(), t = J(), a.c(), r = J(), n = p("div"), s = p("div"), o = w(
|
|
399
406
|
/*title*/
|
|
400
407
|
i[1]
|
|
401
|
-
),
|
|
402
|
-
`),
|
|
408
|
+
), u = J(), b && b.c(), d = J(), f = p("div"), _ = p("p"), E = w(T), Z = w(`:
|
|
409
|
+
`), M = p("span"), P = w(
|
|
403
410
|
/*showScoreCriteria*/
|
|
404
|
-
i[
|
|
405
|
-
),
|
|
406
|
-
(`),
|
|
411
|
+
i[13]
|
|
412
|
+
), N = w(`
|
|
413
|
+
(`), D = w(O), W = J(), I = w(
|
|
407
414
|
/*minbetcount*/
|
|
408
415
|
i[5]
|
|
409
|
-
),
|
|
410
|
-
|
|
416
|
+
), x = w(")"), Q = J(), S = p("div"), F = p("p"), j = w(L), U = J(), C = p("a"), K = w(G), m(s, "class", "Title"), m(s, "part", "Title"), m(M, "part", "ScoreCriteriaSpan"), m(_, "part", "ScoreCriteriaP"), m(f, "class", "ScoreCriteria"), m(f, "part", "ScoreCriteria"), m(C, "part", "GamesAnchor"), m(
|
|
417
|
+
C,
|
|
411
418
|
"href",
|
|
412
419
|
/*gameurl*/
|
|
413
420
|
i[7]
|
|
414
|
-
), m(
|
|
415
|
-
i[8] === "true" ? "_self" : "_blank"), m(
|
|
421
|
+
), m(C, "target", z = /*keepbrowsercontext*/
|
|
422
|
+
i[8] === "true" ? "_self" : "_blank"), m(F, "part", "GamesP"), m(S, "class", "Games"), m(S, "part", "Games"), m(n, "class", "Details"), m(n, "part", "Details");
|
|
416
423
|
},
|
|
417
|
-
m(
|
|
418
|
-
|
|
424
|
+
m(l, g) {
|
|
425
|
+
k && k.m(l, g), v(l, e, g), y && y.m(l, g), v(l, t, g), a.m(l, g), v(l, r, g), v(l, n, g), c(n, s), c(s, o), c(n, u), b && b.m(n, null), c(n, d), c(n, f), c(f, _), c(_, E), c(_, Z), c(_, M), c(M, P), c(_, N), c(_, D), c(_, W), c(_, I), c(_, x), c(n, Q), c(n, S), c(S, F), c(F, j), c(F, U), c(F, C), c(C, K), B || (V = [
|
|
419
426
|
$(
|
|
420
427
|
s,
|
|
421
428
|
"click",
|
|
422
429
|
/*detailsAction*/
|
|
423
|
-
i[
|
|
430
|
+
i[20]
|
|
424
431
|
),
|
|
425
|
-
|
|
432
|
+
X(
|
|
426
433
|
/*matchScoreCriteria*/
|
|
427
|
-
i[
|
|
434
|
+
i[18].call(null, M)
|
|
428
435
|
),
|
|
429
436
|
$(
|
|
430
|
-
|
|
437
|
+
C,
|
|
431
438
|
"click",
|
|
432
439
|
/*tournamentGamesClicked*/
|
|
433
|
-
i[
|
|
440
|
+
i[19]
|
|
434
441
|
)
|
|
435
|
-
],
|
|
442
|
+
], B = !0);
|
|
436
443
|
},
|
|
437
|
-
p(
|
|
444
|
+
p(l, g) {
|
|
438
445
|
/*status*/
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
2 &&
|
|
442
|
-
|
|
446
|
+
l[0] ? k ? k.p(l, g) : (k = oe(l), k.c(), k.m(e.parentNode, e)) : k && (k.d(1), k = null), /*showenrolled*/
|
|
447
|
+
l[6] == "true" ? y ? y.p(l, g) : (y = ue(l), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), H === (H = q(l)) && a ? a.p(l, g) : (a.d(1), a = H(l), a && (a.c(), a.m(r.parentNode, r))), g[0] & /*title*/
|
|
448
|
+
2 && R(
|
|
449
|
+
o,
|
|
443
450
|
/*title*/
|
|
444
|
-
|
|
451
|
+
l[1]
|
|
445
452
|
), /*startdate*/
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
453
|
+
l[2] ? b ? b.p(l, g) : (b = de(l), b.c(), b.m(n, d)) : b && (b.d(1), b = null), g[0] & /*$_*/
|
|
454
|
+
32768 && T !== (T = /*$_*/
|
|
455
|
+
l[15]("scoreCriteria") + "") && R(E, T), g[0] & /*showScoreCriteria*/
|
|
456
|
+
8192 && R(
|
|
457
|
+
P,
|
|
451
458
|
/*showScoreCriteria*/
|
|
452
|
-
|
|
453
|
-
), g[0] & /*$_*/
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
459
|
+
l[13]
|
|
460
|
+
), g[0] & /*$_, betcountmode*/
|
|
461
|
+
33280 && O !== (O = /*$_*/
|
|
462
|
+
l[15](
|
|
463
|
+
/*betcountmode*/
|
|
464
|
+
l[9] === "minBetCount" ? "minbet" : (
|
|
465
|
+
/*betcountmode*/
|
|
466
|
+
l[9]
|
|
467
|
+
)
|
|
468
|
+
) + "") && R(D, O), g[0] & /*minbetcount*/
|
|
469
|
+
32 && R(
|
|
470
|
+
I,
|
|
458
471
|
/*minbetcount*/
|
|
459
|
-
|
|
472
|
+
l[5]
|
|
460
473
|
), g[0] & /*$_*/
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
474
|
+
32768 && L !== (L = /*$_*/
|
|
475
|
+
l[15]("seegames") + "") && R(j, L), g[0] & /*$_*/
|
|
476
|
+
32768 && G !== (G = /*$_*/
|
|
477
|
+
l[15]("here") + "") && R(K, G), g[0] & /*gameurl*/
|
|
465
478
|
128 && m(
|
|
466
|
-
|
|
479
|
+
C,
|
|
467
480
|
"href",
|
|
468
481
|
/*gameurl*/
|
|
469
|
-
|
|
482
|
+
l[7]
|
|
470
483
|
), g[0] & /*keepbrowsercontext*/
|
|
471
|
-
256 &&
|
|
472
|
-
|
|
484
|
+
256 && z !== (z = /*keepbrowsercontext*/
|
|
485
|
+
l[8] === "true" ? "_self" : "_blank") && m(C, "target", z);
|
|
473
486
|
},
|
|
474
|
-
d(
|
|
475
|
-
|
|
487
|
+
d(l) {
|
|
488
|
+
l && (A(e), A(t), A(r), A(n)), k && k.d(l), y && y.d(l), a.d(l), b && b.d(), B = !1, ie(V);
|
|
476
489
|
}
|
|
477
490
|
};
|
|
478
491
|
}
|
|
479
492
|
function oe(i) {
|
|
480
|
-
let e, t,
|
|
493
|
+
let e, t, r, n, s, o;
|
|
481
494
|
return {
|
|
482
495
|
c() {
|
|
483
|
-
e = p("div"), t =
|
|
496
|
+
e = p("div"), t = w(
|
|
484
497
|
/*shownStatus*/
|
|
485
|
-
i[
|
|
486
|
-
), m(e, "class",
|
|
487
|
-
i[
|
|
488
|
-
i[
|
|
498
|
+
i[12]
|
|
499
|
+
), m(e, "class", r = "Status " + /*statusClass*/
|
|
500
|
+
i[14]), m(e, "part", n = "Status " + /*statusClass*/
|
|
501
|
+
i[14]);
|
|
489
502
|
},
|
|
490
|
-
m(
|
|
491
|
-
|
|
503
|
+
m(u, d) {
|
|
504
|
+
v(u, e, d), c(e, t), s || (o = X(
|
|
492
505
|
/*matchStatus*/
|
|
493
|
-
i[
|
|
506
|
+
i[17].call(null, e)
|
|
494
507
|
), s = !0);
|
|
495
508
|
},
|
|
496
|
-
p(
|
|
509
|
+
p(u, d) {
|
|
497
510
|
d[0] & /*shownStatus*/
|
|
498
|
-
|
|
511
|
+
4096 && R(
|
|
499
512
|
t,
|
|
500
513
|
/*shownStatus*/
|
|
501
|
-
|
|
514
|
+
u[12]
|
|
502
515
|
), d[0] & /*statusClass*/
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
516
|
+
16384 && r !== (r = "Status " + /*statusClass*/
|
|
517
|
+
u[14]) && m(e, "class", r), d[0] & /*statusClass*/
|
|
518
|
+
16384 && n !== (n = "Status " + /*statusClass*/
|
|
519
|
+
u[14]) && m(e, "part", n);
|
|
507
520
|
},
|
|
508
|
-
d(
|
|
509
|
-
|
|
521
|
+
d(u) {
|
|
522
|
+
u && A(e), s = !1, o();
|
|
510
523
|
}
|
|
511
524
|
};
|
|
512
525
|
}
|
|
@@ -519,157 +532,157 @@ function ue(i) {
|
|
|
519
532
|
c() {
|
|
520
533
|
t && t.c(), e = Ae();
|
|
521
534
|
},
|
|
522
|
-
m(
|
|
523
|
-
t && t.m(
|
|
535
|
+
m(r, n) {
|
|
536
|
+
t && t.m(r, n), v(r, e, n);
|
|
524
537
|
},
|
|
525
|
-
p(
|
|
538
|
+
p(r, n) {
|
|
526
539
|
/*userenrolled*/
|
|
527
|
-
|
|
540
|
+
r[4] ? t ? t.p(r, n) : (t = me(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
|
528
541
|
},
|
|
529
|
-
d(
|
|
530
|
-
|
|
542
|
+
d(r) {
|
|
543
|
+
r && A(e), t && t.d(r);
|
|
531
544
|
}
|
|
532
545
|
};
|
|
533
546
|
}
|
|
534
547
|
function me(i) {
|
|
535
548
|
let e, t = (
|
|
536
549
|
/*$_*/
|
|
537
|
-
i[
|
|
538
|
-
),
|
|
550
|
+
i[15]("enrolled") + ""
|
|
551
|
+
), r;
|
|
539
552
|
return {
|
|
540
553
|
c() {
|
|
541
|
-
e = p("div"),
|
|
554
|
+
e = p("div"), r = w(t), m(e, "class", "Enrolled"), m(e, "part", "Enrolled");
|
|
542
555
|
},
|
|
543
|
-
m(
|
|
544
|
-
|
|
556
|
+
m(n, s) {
|
|
557
|
+
v(n, e, s), c(e, r);
|
|
545
558
|
},
|
|
546
|
-
p(
|
|
559
|
+
p(n, s) {
|
|
547
560
|
s[0] & /*$_*/
|
|
548
|
-
|
|
549
|
-
|
|
561
|
+
32768 && t !== (t = /*$_*/
|
|
562
|
+
n[15]("enrolled") + "") && R(r, t);
|
|
550
563
|
},
|
|
551
|
-
d(
|
|
552
|
-
|
|
564
|
+
d(n) {
|
|
565
|
+
n && A(e);
|
|
553
566
|
}
|
|
554
567
|
};
|
|
555
568
|
}
|
|
556
|
-
function
|
|
557
|
-
let e, t,
|
|
569
|
+
function je(i) {
|
|
570
|
+
let e, t, r, n, s, o, u;
|
|
558
571
|
return {
|
|
559
572
|
c() {
|
|
560
|
-
e = p("div"), t = p("ui-image"), te(t.src,
|
|
573
|
+
e = p("div"), t = p("ui-image"), te(t.src, r = "https://i.stack.imgur.com/y9DpT.jpg") || Y(t, "src", r), Y(t, "alt", "icon"), m(e, "class", n = "CardImg " + /*status*/
|
|
561
574
|
(i[0] == "Closing" || /*status*/
|
|
562
575
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", s = "CardImg " + /*status*/
|
|
563
576
|
(i[0] == "Closing" || /*status*/
|
|
564
577
|
i[0] == "Closed" ? "CardImgFinished" : ""));
|
|
565
578
|
},
|
|
566
|
-
m(d,
|
|
567
|
-
|
|
568
|
-
|
|
579
|
+
m(d, f) {
|
|
580
|
+
v(d, e, f), c(e, t), o || (u = [
|
|
581
|
+
X(
|
|
569
582
|
/*matchStatus*/
|
|
570
|
-
i[
|
|
583
|
+
i[17].call(null, e)
|
|
571
584
|
),
|
|
572
585
|
$(
|
|
573
586
|
e,
|
|
574
587
|
"click",
|
|
575
588
|
/*detailsAction*/
|
|
576
|
-
i[
|
|
589
|
+
i[20]
|
|
577
590
|
)
|
|
578
|
-
],
|
|
591
|
+
], o = !0);
|
|
579
592
|
},
|
|
580
|
-
p(d,
|
|
581
|
-
|
|
582
|
-
1 &&
|
|
593
|
+
p(d, f) {
|
|
594
|
+
f[0] & /*status*/
|
|
595
|
+
1 && n !== (n = "CardImg " + /*status*/
|
|
583
596
|
(d[0] == "Closing" || /*status*/
|
|
584
|
-
d[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "class",
|
|
597
|
+
d[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "class", n), f[0] & /*status*/
|
|
585
598
|
1 && s !== (s = "CardImg " + /*status*/
|
|
586
599
|
(d[0] == "Closing" || /*status*/
|
|
587
600
|
d[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "part", s);
|
|
588
601
|
},
|
|
589
602
|
d(d) {
|
|
590
|
-
d &&
|
|
603
|
+
d && A(e), o = !1, ie(u);
|
|
591
604
|
}
|
|
592
605
|
};
|
|
593
606
|
}
|
|
594
|
-
function
|
|
595
|
-
let e, t,
|
|
607
|
+
function ze(i) {
|
|
608
|
+
let e, t, r, n, s, o, u;
|
|
596
609
|
return {
|
|
597
610
|
c() {
|
|
598
|
-
e = p("div"), t = p("ui-image"),
|
|
599
|
-
i[3]) ||
|
|
611
|
+
e = p("div"), t = p("ui-image"), Y(t, "class", "UIImage"), te(t.src, r = /*thumbnail*/
|
|
612
|
+
i[3]) || Y(t, "src", r), Y(t, "alt", "icon"), m(e, "class", n = "CardImg " + /*status*/
|
|
600
613
|
(i[0] == "Closing" || /*status*/
|
|
601
614
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", s = "CardImg " + /*status*/
|
|
602
615
|
(i[0] == "Closing" || /*status*/
|
|
603
616
|
i[0] == "Closed" ? "CardImgFinished" : ""));
|
|
604
617
|
},
|
|
605
|
-
m(d,
|
|
606
|
-
|
|
607
|
-
|
|
618
|
+
m(d, f) {
|
|
619
|
+
v(d, e, f), c(e, t), o || (u = [
|
|
620
|
+
X(
|
|
608
621
|
/*matchStatus*/
|
|
609
|
-
i[
|
|
622
|
+
i[17].call(null, e)
|
|
610
623
|
),
|
|
611
624
|
$(
|
|
612
625
|
e,
|
|
613
626
|
"click",
|
|
614
627
|
/*detailsAction*/
|
|
615
|
-
i[
|
|
628
|
+
i[20]
|
|
616
629
|
)
|
|
617
|
-
],
|
|
630
|
+
], o = !0);
|
|
618
631
|
},
|
|
619
|
-
p(d,
|
|
620
|
-
|
|
621
|
-
8 && !te(t.src,
|
|
622
|
-
d[3]) &&
|
|
623
|
-
1 &&
|
|
632
|
+
p(d, f) {
|
|
633
|
+
f[0] & /*thumbnail*/
|
|
634
|
+
8 && !te(t.src, r = /*thumbnail*/
|
|
635
|
+
d[3]) && Y(t, "src", r), f[0] & /*status*/
|
|
636
|
+
1 && n !== (n = "CardImg " + /*status*/
|
|
624
637
|
(d[0] == "Closing" || /*status*/
|
|
625
|
-
d[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "class",
|
|
638
|
+
d[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "class", n), f[0] & /*status*/
|
|
626
639
|
1 && s !== (s = "CardImg " + /*status*/
|
|
627
640
|
(d[0] == "Closing" || /*status*/
|
|
628
641
|
d[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "part", s);
|
|
629
642
|
},
|
|
630
643
|
d(d) {
|
|
631
|
-
d &&
|
|
644
|
+
d && A(e), o = !1, ie(u);
|
|
632
645
|
}
|
|
633
646
|
};
|
|
634
647
|
}
|
|
635
648
|
function de(i) {
|
|
636
|
-
let e, t,
|
|
649
|
+
let e, t, r, n, s;
|
|
637
650
|
return {
|
|
638
651
|
c() {
|
|
639
|
-
e = p("div"), t =
|
|
652
|
+
e = p("div"), t = w(
|
|
640
653
|
/*shownDate*/
|
|
641
|
-
i[
|
|
654
|
+
i[11]
|
|
642
655
|
), m(e, "class", "Date"), m(e, "part", "Date");
|
|
643
656
|
},
|
|
644
|
-
m(
|
|
645
|
-
|
|
646
|
-
i[
|
|
657
|
+
m(o, u) {
|
|
658
|
+
v(o, e, u), c(e, t), n || (s = X(r = /*formatDate*/
|
|
659
|
+
i[16].call(
|
|
647
660
|
null,
|
|
648
661
|
e,
|
|
649
662
|
/*startdate*/
|
|
650
663
|
i[2]
|
|
651
|
-
)),
|
|
664
|
+
)), n = !0);
|
|
652
665
|
},
|
|
653
|
-
p(
|
|
654
|
-
|
|
655
|
-
|
|
666
|
+
p(o, u) {
|
|
667
|
+
u[0] & /*shownDate*/
|
|
668
|
+
2048 && R(
|
|
656
669
|
t,
|
|
657
670
|
/*shownDate*/
|
|
658
|
-
|
|
659
|
-
),
|
|
660
|
-
4 &&
|
|
671
|
+
o[11]
|
|
672
|
+
), r && ve(r.update) && u[0] & /*startdate*/
|
|
673
|
+
4 && r.update.call(
|
|
661
674
|
null,
|
|
662
675
|
/*startdate*/
|
|
663
|
-
|
|
676
|
+
o[2]
|
|
664
677
|
);
|
|
665
678
|
},
|
|
666
|
-
d(
|
|
667
|
-
|
|
679
|
+
d(o) {
|
|
680
|
+
o && A(e), n = !1, s();
|
|
668
681
|
}
|
|
669
682
|
};
|
|
670
683
|
}
|
|
671
|
-
function
|
|
672
|
-
let e, t,
|
|
684
|
+
function Ne(i) {
|
|
685
|
+
let e, t, r, n = (
|
|
673
686
|
/*title*/
|
|
674
687
|
i[1] === "undefined" && se()
|
|
675
688
|
), s = (
|
|
@@ -678,164 +691,166 @@ function ze(i) {
|
|
|
678
691
|
);
|
|
679
692
|
return {
|
|
680
693
|
c() {
|
|
681
|
-
e = p("div"),
|
|
694
|
+
e = p("div"), n && n.c(), t = J(), s && s.c(), m(e, "class", r = `Thumbnail ${/*title*/
|
|
682
695
|
i[1] === "undefined" ? "Loading" : ""}`), m(e, "part", "Thumbnail");
|
|
683
696
|
},
|
|
684
|
-
m(
|
|
685
|
-
|
|
697
|
+
m(o, u) {
|
|
698
|
+
v(o, e, u), n && n.m(e, null), c(e, t), s && s.m(e, null), i[30](e);
|
|
686
699
|
},
|
|
687
|
-
p(
|
|
700
|
+
p(o, u) {
|
|
688
701
|
/*title*/
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
2 &&
|
|
692
|
-
|
|
702
|
+
o[1] === "undefined" ? n || (n = se(), n.c(), n.m(e, t)) : n && (n.d(1), n = null), /*title*/
|
|
703
|
+
o[1] !== "undefined" ? s ? s.p(o, u) : (s = le(o), s.c(), s.m(e, null)) : s && (s.d(1), s = null), u[0] & /*title*/
|
|
704
|
+
2 && r !== (r = `Thumbnail ${/*title*/
|
|
705
|
+
o[1] === "undefined" ? "Loading" : ""}`) && m(e, "class", r);
|
|
693
706
|
},
|
|
694
707
|
i: ae,
|
|
695
708
|
o: ae,
|
|
696
|
-
d(
|
|
697
|
-
|
|
709
|
+
d(o) {
|
|
710
|
+
o && A(e), n && n.d(), s && s.d(), i[30](null);
|
|
698
711
|
}
|
|
699
712
|
};
|
|
700
713
|
}
|
|
701
|
-
function
|
|
702
|
-
let
|
|
703
|
-
Se(i,
|
|
704
|
-
let { userid:
|
|
705
|
-
|
|
706
|
-
const
|
|
707
|
-
fetch(
|
|
708
|
-
Object.keys(
|
|
709
|
-
|
|
710
|
-
}),
|
|
711
|
-
}).catch((
|
|
712
|
-
console.log(
|
|
714
|
+
function Oe(i, e, t) {
|
|
715
|
+
let r;
|
|
716
|
+
Se(i, Re, (a) => t(15, r = a));
|
|
717
|
+
let { userid: n = "" } = e, { title: s = "" } = e, { startdate: o = "" } = e, { status: u = "" } = e, { tourid: d = "" } = e, { thumbnail: f = "" } = e, { userenrolled: _ = "" } = e, { scorecriteria: T = "" } = e, { minbetcount: E = "" } = e, { showenrolled: Z = "false" } = e, { detailsevent: M = "" } = e, { gameurl: P = "" } = e, { lang: N = "en" } = e, { keepbrowsercontext: O = "false" } = e, { clientstyling: D = "" } = e, { clientstylingurl: W = "" } = e, { translationurl: I = "" } = e, { mbsource: x } = e, { betcountmode: Q = "minbet" } = e, S, F, L = "", j = "", U = "", C = "";
|
|
718
|
+
De({ withLocale: "en", translations: {} });
|
|
719
|
+
const G = () => {
|
|
720
|
+
fetch(I).then((a) => a.json()).then((a) => {
|
|
721
|
+
Object.keys(a).forEach((b) => {
|
|
722
|
+
ne(b, a[b]);
|
|
723
|
+
}), o && q();
|
|
724
|
+
}).catch((a) => {
|
|
725
|
+
console.log(a);
|
|
713
726
|
});
|
|
714
727
|
};
|
|
715
|
-
Object.keys(
|
|
716
|
-
|
|
728
|
+
Object.keys(re).forEach((a) => {
|
|
729
|
+
ne(a, re[a]);
|
|
717
730
|
});
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
},
|
|
721
|
-
const
|
|
722
|
-
let
|
|
731
|
+
const K = (a) => {
|
|
732
|
+
a.data && a.data.type == `TournamentStatus_${d}` && t(0, u = a.data.status);
|
|
733
|
+
}, z = () => {
|
|
734
|
+
const a = { month: "long" };
|
|
735
|
+
let b = new Date(o), l = new Intl.DateTimeFormat("en", a).format(b), g = b.getDate(), ce = b.toLocaleString("en-GB", {
|
|
723
736
|
hour: "numeric",
|
|
724
737
|
minute: "numeric",
|
|
725
738
|
hour12: !1
|
|
726
739
|
});
|
|
727
|
-
const
|
|
728
|
-
t(
|
|
729
|
-
},
|
|
730
|
-
|
|
731
|
-
},
|
|
732
|
-
if (!
|
|
733
|
-
t(
|
|
740
|
+
const ge = () => r(u === "Unstarted" ? "startingAt" : "startedAt");
|
|
741
|
+
t(11, L = `${g} ` + r(`${l}`) + ", " + ge() + ` ${ce}`);
|
|
742
|
+
}, B = () => {
|
|
743
|
+
u == "Unstarted" && (t(12, j = r("scheduled")), t(14, C = "StatusUnstarted")), u == "Running" && (t(12, j = r("ongoing")), t(14, C = "StatusRunning")), (u == "Closed" || u == "Closing") && t(12, j = r("finished")), u == "Closed" && t(14, C = "StatusClosed"), u == "Closing" && t(14, C = "StatusClosing");
|
|
744
|
+
}, V = () => {
|
|
745
|
+
if (!T || T.length <= 1) {
|
|
746
|
+
t(13, U = T);
|
|
734
747
|
return;
|
|
735
748
|
}
|
|
736
|
-
t(
|
|
737
|
-
},
|
|
749
|
+
t(13, U = r(T.charAt(0).toLowerCase() + T.slice(1)));
|
|
750
|
+
}, k = () => {
|
|
738
751
|
window.postMessage({ type: "tournamentGamesClicked", tourid: d }, window.location.href);
|
|
739
752
|
}, y = () => {
|
|
740
|
-
|
|
753
|
+
M && window.postMessage(
|
|
741
754
|
{
|
|
742
|
-
type:
|
|
755
|
+
type: M,
|
|
743
756
|
tournamentId: d,
|
|
744
757
|
showLeaderboard: !0
|
|
745
758
|
},
|
|
746
759
|
window.location.href
|
|
747
760
|
);
|
|
748
761
|
};
|
|
749
|
-
Ce(() => (setTimeout(() =>
|
|
750
|
-
window.removeEventListener("message",
|
|
762
|
+
Ce(() => (setTimeout(() => q(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", K, !1), () => {
|
|
763
|
+
window.removeEventListener("message", K);
|
|
751
764
|
}));
|
|
752
|
-
const
|
|
753
|
-
|
|
765
|
+
const q = () => {
|
|
766
|
+
Ie(N), V(), B(), o && z();
|
|
754
767
|
};
|
|
755
|
-
function
|
|
756
|
-
_e[
|
|
757
|
-
|
|
768
|
+
function H(a) {
|
|
769
|
+
_e[a ? "unshift" : "push"](() => {
|
|
770
|
+
S = a, t(10, S);
|
|
758
771
|
});
|
|
759
772
|
}
|
|
760
|
-
return i.$$set = (
|
|
761
|
-
"userid" in
|
|
773
|
+
return i.$$set = (a) => {
|
|
774
|
+
"userid" in a && t(21, n = a.userid), "title" in a && t(1, s = a.title), "startdate" in a && t(2, o = a.startdate), "status" in a && t(0, u = a.status), "tourid" in a && t(22, d = a.tourid), "thumbnail" in a && t(3, f = a.thumbnail), "userenrolled" in a && t(4, _ = a.userenrolled), "scorecriteria" in a && t(23, T = a.scorecriteria), "minbetcount" in a && t(5, E = a.minbetcount), "showenrolled" in a && t(6, Z = a.showenrolled), "detailsevent" in a && t(24, M = a.detailsevent), "gameurl" in a && t(7, P = a.gameurl), "lang" in a && t(25, N = a.lang), "keepbrowsercontext" in a && t(8, O = a.keepbrowsercontext), "clientstyling" in a && t(26, D = a.clientstyling), "clientstylingurl" in a && t(27, W = a.clientstylingurl), "translationurl" in a && t(28, I = a.translationurl), "mbsource" in a && t(29, x = a.mbsource), "betcountmode" in a && t(9, Q = a.betcountmode);
|
|
762
775
|
}, i.$$.update = () => {
|
|
763
776
|
i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
1 &&
|
|
769
|
-
|
|
770
|
-
4 &&
|
|
771
|
-
|
|
777
|
+
67109888 && D && S && Te(S, D), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
778
|
+
134218752 && W && S && we(S, W), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
779
|
+
536871936 && x && S && Me(S, `${x}.Style`, F), i.$$.dirty[0] & /*translationurl*/
|
|
780
|
+
268435456 && I && G(), i.$$.dirty[0] & /*status*/
|
|
781
|
+
1 && u && B(), i.$$.dirty[0] & /*title, lang*/
|
|
782
|
+
33554434 && s && N && q(), i.$$.dirty[0] & /*startdate*/
|
|
783
|
+
4 && o && z(), i.$$.dirty[0] & /*scorecriteria*/
|
|
784
|
+
8388608 && T && V();
|
|
772
785
|
}, [
|
|
773
|
-
|
|
786
|
+
u,
|
|
774
787
|
s,
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
q,
|
|
781
|
-
x,
|
|
782
|
-
w,
|
|
783
|
-
I,
|
|
784
|
-
F,
|
|
788
|
+
o,
|
|
789
|
+
f,
|
|
790
|
+
_,
|
|
791
|
+
E,
|
|
792
|
+
Z,
|
|
785
793
|
P,
|
|
786
|
-
N,
|
|
787
|
-
n,
|
|
788
|
-
G,
|
|
789
794
|
O,
|
|
790
|
-
K,
|
|
791
795
|
Q,
|
|
796
|
+
S,
|
|
797
|
+
L,
|
|
798
|
+
j,
|
|
799
|
+
U,
|
|
800
|
+
C,
|
|
801
|
+
r,
|
|
802
|
+
z,
|
|
803
|
+
B,
|
|
804
|
+
V,
|
|
805
|
+
k,
|
|
792
806
|
y,
|
|
793
|
-
|
|
807
|
+
n,
|
|
794
808
|
d,
|
|
795
|
-
|
|
796
|
-
|
|
809
|
+
T,
|
|
810
|
+
M,
|
|
811
|
+
N,
|
|
812
|
+
D,
|
|
797
813
|
W,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
E,
|
|
802
|
-
X
|
|
814
|
+
I,
|
|
815
|
+
x,
|
|
816
|
+
H
|
|
803
817
|
];
|
|
804
818
|
}
|
|
805
|
-
class
|
|
819
|
+
class We extends he {
|
|
806
820
|
constructor(e) {
|
|
807
|
-
super(),
|
|
821
|
+
super(), pe(
|
|
808
822
|
this,
|
|
809
823
|
e,
|
|
824
|
+
Oe,
|
|
810
825
|
Ne,
|
|
811
|
-
|
|
812
|
-
pe,
|
|
826
|
+
ke,
|
|
813
827
|
{
|
|
814
|
-
userid:
|
|
828
|
+
userid: 21,
|
|
815
829
|
title: 1,
|
|
816
830
|
startdate: 2,
|
|
817
831
|
status: 0,
|
|
818
|
-
tourid:
|
|
832
|
+
tourid: 22,
|
|
819
833
|
thumbnail: 3,
|
|
820
834
|
userenrolled: 4,
|
|
821
|
-
scorecriteria:
|
|
835
|
+
scorecriteria: 23,
|
|
822
836
|
minbetcount: 5,
|
|
823
837
|
showenrolled: 6,
|
|
824
|
-
detailsevent:
|
|
838
|
+
detailsevent: 24,
|
|
825
839
|
gameurl: 7,
|
|
826
|
-
lang:
|
|
840
|
+
lang: 25,
|
|
827
841
|
keepbrowsercontext: 8,
|
|
828
|
-
clientstyling:
|
|
829
|
-
clientstylingurl:
|
|
830
|
-
translationurl:
|
|
831
|
-
mbsource:
|
|
842
|
+
clientstyling: 26,
|
|
843
|
+
clientstylingurl: 27,
|
|
844
|
+
translationurl: 28,
|
|
845
|
+
mbsource: 29,
|
|
846
|
+
betcountmode: 9
|
|
832
847
|
},
|
|
833
|
-
|
|
848
|
+
Fe,
|
|
834
849
|
[-1, -1]
|
|
835
850
|
);
|
|
836
851
|
}
|
|
837
852
|
get userid() {
|
|
838
|
-
return this.$$.ctx[
|
|
853
|
+
return this.$$.ctx[21];
|
|
839
854
|
}
|
|
840
855
|
set userid(e) {
|
|
841
856
|
this.$$set({ userid: e }), h();
|
|
@@ -859,7 +874,7 @@ class Oe extends fe {
|
|
|
859
874
|
this.$$set({ status: e }), h();
|
|
860
875
|
}
|
|
861
876
|
get tourid() {
|
|
862
|
-
return this.$$.ctx[
|
|
877
|
+
return this.$$.ctx[22];
|
|
863
878
|
}
|
|
864
879
|
set tourid(e) {
|
|
865
880
|
this.$$set({ tourid: e }), h();
|
|
@@ -877,7 +892,7 @@ class Oe extends fe {
|
|
|
877
892
|
this.$$set({ userenrolled: e }), h();
|
|
878
893
|
}
|
|
879
894
|
get scorecriteria() {
|
|
880
|
-
return this.$$.ctx[
|
|
895
|
+
return this.$$.ctx[23];
|
|
881
896
|
}
|
|
882
897
|
set scorecriteria(e) {
|
|
883
898
|
this.$$set({ scorecriteria: e }), h();
|
|
@@ -895,7 +910,7 @@ class Oe extends fe {
|
|
|
895
910
|
this.$$set({ showenrolled: e }), h();
|
|
896
911
|
}
|
|
897
912
|
get detailsevent() {
|
|
898
|
-
return this.$$.ctx[
|
|
913
|
+
return this.$$.ctx[24];
|
|
899
914
|
}
|
|
900
915
|
set detailsevent(e) {
|
|
901
916
|
this.$$set({ detailsevent: e }), h();
|
|
@@ -907,7 +922,7 @@ class Oe extends fe {
|
|
|
907
922
|
this.$$set({ gameurl: e }), h();
|
|
908
923
|
}
|
|
909
924
|
get lang() {
|
|
910
|
-
return this.$$.ctx[
|
|
925
|
+
return this.$$.ctx[25];
|
|
911
926
|
}
|
|
912
927
|
set lang(e) {
|
|
913
928
|
this.$$set({ lang: e }), h();
|
|
@@ -919,31 +934,37 @@ class Oe extends fe {
|
|
|
919
934
|
this.$$set({ keepbrowsercontext: e }), h();
|
|
920
935
|
}
|
|
921
936
|
get clientstyling() {
|
|
922
|
-
return this.$$.ctx[
|
|
937
|
+
return this.$$.ctx[26];
|
|
923
938
|
}
|
|
924
939
|
set clientstyling(e) {
|
|
925
940
|
this.$$set({ clientstyling: e }), h();
|
|
926
941
|
}
|
|
927
942
|
get clientstylingurl() {
|
|
928
|
-
return this.$$.ctx[
|
|
943
|
+
return this.$$.ctx[27];
|
|
929
944
|
}
|
|
930
945
|
set clientstylingurl(e) {
|
|
931
946
|
this.$$set({ clientstylingurl: e }), h();
|
|
932
947
|
}
|
|
933
948
|
get translationurl() {
|
|
934
|
-
return this.$$.ctx[
|
|
949
|
+
return this.$$.ctx[28];
|
|
935
950
|
}
|
|
936
951
|
set translationurl(e) {
|
|
937
952
|
this.$$set({ translationurl: e }), h();
|
|
938
953
|
}
|
|
939
954
|
get mbsource() {
|
|
940
|
-
return this.$$.ctx[
|
|
955
|
+
return this.$$.ctx[29];
|
|
941
956
|
}
|
|
942
957
|
set mbsource(e) {
|
|
943
958
|
this.$$set({ mbsource: e }), h();
|
|
944
959
|
}
|
|
960
|
+
get betcountmode() {
|
|
961
|
+
return this.$$.ctx[9];
|
|
962
|
+
}
|
|
963
|
+
set betcountmode(e) {
|
|
964
|
+
this.$$set({ betcountmode: e }), h();
|
|
965
|
+
}
|
|
945
966
|
}
|
|
946
|
-
|
|
967
|
+
Je(We, { userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, detailsevent: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, betcountmode: {} }, [], [], !0);
|
|
947
968
|
export {
|
|
948
|
-
|
|
969
|
+
We as default
|
|
949
970
|
};
|