@everymatrix/casino-tournaments-list-controller 1.86.23 → 1.86.25
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-BwFuikqQ.js → CasinoTournamentsListController-CGCZK4Md.js} +1 -1
- package/components/{CasinoTournamentsListController-dKM8nwa5.cjs → CasinoTournamentsListController-Ce1tXy-y.cjs} +1 -1
- package/components/{CasinoTournamentsListController-VHekcczP.js → CasinoTournamentsListController-vAlyMUgC.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-dhmmTyuO.js → CasinoTournamentsThumbnail-21MuAvxR.js} +107 -101
- package/components/CasinoTournamentsThumbnail-BD50op9H.cjs +3 -0
- package/components/{CasinoTournamentsThumbnail-cuGFIX8g.js → CasinoTournamentsThumbnail-k_2QeDM8.js} +107 -101
- package/components/{CasinoTournamentsThumbnailController-CDHLWI2f.cjs → CasinoTournamentsThumbnailController-9NmMKLEF.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailController-DGRyUZlS.js → CasinoTournamentsThumbnailController-BKrpJrvJ.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-B0Vb15XJ.js → CasinoTournamentsThumbnailController-BqTib7E7.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-BRMlYsNO.js → CasinoTournamentsThumbnailDuration-6JGNeI1a.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-D3QKXMCU.js → CasinoTournamentsThumbnailDuration-CQjq3Gmq.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-D3DHsbtL.cjs → CasinoTournamentsThumbnailDuration-z7v-kx9z.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BXZKPJ6X.cjs → CasinoTournamentsThumbnailGamesSlider-Cf-ODVQP.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CBBPUKgS.js → CasinoTournamentsThumbnailGamesSlider-DJjkH2pi.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-bD5QOTq5.js → CasinoTournamentsThumbnailGamesSlider-OYMhoznP.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-CIhPn4P3.cjs → CasinoTournamentsThumbnailPrizes-Bu89YoyC.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DZhG7njf.js → CasinoTournamentsThumbnailPrizes-C7E5jqqM.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-D_C8r9wZ.js → CasinoTournamentsThumbnailPrizes-Dt9mwa1S.js} +1 -1
- 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/components/CasinoTournamentsThumbnail-GjqpDLcq.cjs +0 -3
package/components/{CasinoTournamentsThumbnail-dhmmTyuO.js → CasinoTournamentsThumbnail-21MuAvxR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ee, a as ce, b as ge, S as be, i as fe, s as he, f as h, c as pe, n as ae, d as C, e as m, g as _, h as c, j as p, k as
|
|
1
|
+
import { $ as ee, a as ce, b as ge, S as be, i as fe, s as he, f as h, c as pe, n as ae, d as C, e as m, g as _, h as c, j as p, k as I, l as ke, o as ye, r as ie, m as F, p as $, q as Z, t as v, u as Se, v as Ce, w as te, x as q, y as _e, z as Ae, A as ve, B as Te, C as we, D as Me } from "./CasinoTournamentsListController-vAlyMUgC.js";
|
|
2
2
|
import "../stencil/ui-skeleton-i9jZ615T.js";
|
|
3
3
|
import "../stencil/ui-image-Cs_BBOYl.js";
|
|
4
4
|
function Je({ withLocale: i, translations: e }) {
|
|
@@ -31,6 +31,8 @@ const ne = {
|
|
|
31
31
|
maxWinStakeRatio: "Max Win per Stake",
|
|
32
32
|
winStakeRatio: "Total Win per Stake",
|
|
33
33
|
stake: "Turnover",
|
|
34
|
+
win: "Winnings",
|
|
35
|
+
winBetCount: "Winnings and Number of Rounds",
|
|
34
36
|
January: "January",
|
|
35
37
|
February: "February",
|
|
36
38
|
March: "March",
|
|
@@ -348,30 +350,30 @@ function De(i) {
|
|
|
348
350
|
pe(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}');
|
|
349
351
|
}
|
|
350
352
|
function se(i) {
|
|
351
|
-
let e, t,
|
|
353
|
+
let e, t, n;
|
|
352
354
|
return {
|
|
353
355
|
c() {
|
|
354
|
-
e = p("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', t =
|
|
356
|
+
e = p("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', t = I(), n = p("div"), n.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(n, "class", "Details"), m(n, "part", "Details");
|
|
355
357
|
},
|
|
356
358
|
m(a, s) {
|
|
357
|
-
_(a, e, s), _(a, t, s), _(a,
|
|
359
|
+
_(a, e, s), _(a, t, s), _(a, n, s);
|
|
358
360
|
},
|
|
359
361
|
d(a) {
|
|
360
|
-
a && (C(e), C(t), C(
|
|
362
|
+
a && (C(e), C(t), C(n));
|
|
361
363
|
}
|
|
362
364
|
};
|
|
363
365
|
}
|
|
364
366
|
function le(i) {
|
|
365
|
-
let e, t,
|
|
367
|
+
let e, t, n, a, s, l, o, d, b, S, A = (
|
|
366
368
|
/*$_*/
|
|
367
369
|
i[14]("scoreCriteria") + ""
|
|
368
370
|
), K, H, D, V, E, B = (
|
|
369
371
|
/*$_*/
|
|
370
372
|
i[14]("minbet") + ""
|
|
371
|
-
),
|
|
373
|
+
), j, P, N, U, T, O, J, W = (
|
|
372
374
|
/*$_*/
|
|
373
375
|
i[14]("seegames") + ""
|
|
374
|
-
),
|
|
376
|
+
), z, Q, w, x = (
|
|
375
377
|
/*$_*/
|
|
376
378
|
i[14]("here") + ""
|
|
377
379
|
), G, L, Y, X, f = (
|
|
@@ -381,39 +383,39 @@ function le(i) {
|
|
|
381
383
|
/*showenrolled*/
|
|
382
384
|
i[6] == "true" && ue(i)
|
|
383
385
|
);
|
|
384
|
-
function
|
|
386
|
+
function r(u, g) {
|
|
385
387
|
return (
|
|
386
388
|
/*thumbnail*/
|
|
387
389
|
u[3] ? Fe : Ie
|
|
388
390
|
);
|
|
389
391
|
}
|
|
390
|
-
let R =
|
|
392
|
+
let R = r(i), M = R(i), y = (
|
|
391
393
|
/*startdate*/
|
|
392
394
|
i[2] && de(i)
|
|
393
395
|
);
|
|
394
396
|
return {
|
|
395
397
|
c() {
|
|
396
|
-
f && f.c(), e =
|
|
398
|
+
f && f.c(), e = I(), k && k.c(), t = I(), M.c(), n = I(), a = p("div"), s = p("div"), l = v(
|
|
397
399
|
/*title*/
|
|
398
400
|
i[1]
|
|
399
|
-
), o =
|
|
400
|
-
`), D = p("span"), V =
|
|
401
|
+
), o = I(), y && y.c(), d = I(), b = p("div"), S = p("p"), K = v(A), H = v(`:
|
|
402
|
+
`), D = p("span"), V = v(
|
|
401
403
|
/*showScoreCriteria*/
|
|
402
404
|
i[12]
|
|
403
|
-
), E =
|
|
404
|
-
(`),
|
|
405
|
+
), E = v(`
|
|
406
|
+
(`), j = v(B), P = I(), N = v(
|
|
405
407
|
/*minbetcount*/
|
|
406
408
|
i[5]
|
|
407
|
-
), U =
|
|
409
|
+
), U = v(")"), T = I(), O = p("div"), J = p("p"), z = v(W), Q = I(), w = p("a"), G = v(x), m(s, "class", "Title"), m(s, "part", "Title"), m(D, "part", "ScoreCriteriaSpan"), m(S, "part", "ScoreCriteriaP"), m(b, "class", "ScoreCriteria"), m(b, "part", "ScoreCriteria"), m(w, "part", "GamesAnchor"), m(
|
|
408
410
|
w,
|
|
409
411
|
"href",
|
|
410
412
|
/*gameurl*/
|
|
411
413
|
i[7]
|
|
412
414
|
), m(w, "target", L = /*keepbrowsercontext*/
|
|
413
|
-
i[8] === "true" ? "_self" : "_blank"), m(J, "part", "GamesP"), m(
|
|
415
|
+
i[8] === "true" ? "_self" : "_blank"), m(J, "part", "GamesP"), m(O, "class", "Games"), m(O, "part", "Games"), m(a, "class", "Details"), m(a, "part", "Details");
|
|
414
416
|
},
|
|
415
417
|
m(u, g) {
|
|
416
|
-
f && f.m(u, g), _(u, e, g), k && k.m(u, g), _(u, t, g), M.m(u, g), _(u,
|
|
418
|
+
f && f.m(u, g), _(u, e, g), k && k.m(u, g), _(u, t, g), M.m(u, g), _(u, n, g), _(u, a, g), c(a, s), c(s, l), c(a, o), y && y.m(a, null), c(a, d), c(a, b), c(b, S), c(S, K), c(S, H), c(S, D), c(D, V), c(S, E), c(S, j), c(S, P), c(S, N), c(S, U), c(a, T), c(a, O), c(O, J), c(J, z), c(J, Q), c(J, w), c(w, G), Y || (X = [
|
|
417
419
|
$(
|
|
418
420
|
s,
|
|
419
421
|
"click",
|
|
@@ -435,31 +437,31 @@ function le(i) {
|
|
|
435
437
|
p(u, g) {
|
|
436
438
|
/*status*/
|
|
437
439
|
u[0] ? f ? f.p(u, g) : (f = oe(u), f.c(), f.m(e.parentNode, e)) : f && (f.d(1), f = null), /*showenrolled*/
|
|
438
|
-
u[6] == "true" ? k ? k.p(u, g) : (k = ue(u), k.c(), k.m(t.parentNode, t)) : k && (k.d(1), k = null), R === (R =
|
|
439
|
-
2 &&
|
|
440
|
+
u[6] == "true" ? k ? k.p(u, g) : (k = ue(u), k.c(), k.m(t.parentNode, t)) : k && (k.d(1), k = null), R === (R = r(u)) && M ? M.p(u, g) : (M.d(1), M = R(u), M && (M.c(), M.m(n.parentNode, n))), g[0] & /*title*/
|
|
441
|
+
2 && F(
|
|
440
442
|
l,
|
|
441
443
|
/*title*/
|
|
442
444
|
u[1]
|
|
443
445
|
), /*startdate*/
|
|
444
446
|
u[2] ? y ? y.p(u, g) : (y = de(u), y.c(), y.m(a, d)) : y && (y.d(1), y = null), g[0] & /*$_*/
|
|
445
|
-
16384 &&
|
|
446
|
-
u[14]("scoreCriteria") + "") &&
|
|
447
|
-
4096 &&
|
|
447
|
+
16384 && A !== (A = /*$_*/
|
|
448
|
+
u[14]("scoreCriteria") + "") && F(K, A), g[0] & /*showScoreCriteria*/
|
|
449
|
+
4096 && F(
|
|
448
450
|
V,
|
|
449
451
|
/*showScoreCriteria*/
|
|
450
452
|
u[12]
|
|
451
453
|
), g[0] & /*$_*/
|
|
452
454
|
16384 && B !== (B = /*$_*/
|
|
453
|
-
u[14]("minbet") + "") &&
|
|
454
|
-
32 &&
|
|
455
|
-
|
|
455
|
+
u[14]("minbet") + "") && F(j, B), g[0] & /*minbetcount*/
|
|
456
|
+
32 && F(
|
|
457
|
+
N,
|
|
456
458
|
/*minbetcount*/
|
|
457
459
|
u[5]
|
|
458
460
|
), g[0] & /*$_*/
|
|
459
|
-
16384 &&
|
|
460
|
-
u[14]("seegames") + "") && z
|
|
461
|
-
16384 &&
|
|
462
|
-
u[14]("here") + "") &&
|
|
461
|
+
16384 && W !== (W = /*$_*/
|
|
462
|
+
u[14]("seegames") + "") && F(z, W), g[0] & /*$_*/
|
|
463
|
+
16384 && x !== (x = /*$_*/
|
|
464
|
+
u[14]("here") + "") && F(G, x), g[0] & /*gameurl*/
|
|
463
465
|
128 && m(
|
|
464
466
|
w,
|
|
465
467
|
"href",
|
|
@@ -470,18 +472,18 @@ function le(i) {
|
|
|
470
472
|
u[8] === "true" ? "_self" : "_blank") && m(w, "target", L);
|
|
471
473
|
},
|
|
472
474
|
d(u) {
|
|
473
|
-
u && (C(e), C(t), C(
|
|
475
|
+
u && (C(e), C(t), C(n), C(a)), f && f.d(u), k && k.d(u), M.d(u), y && y.d(), Y = !1, ie(X);
|
|
474
476
|
}
|
|
475
477
|
};
|
|
476
478
|
}
|
|
477
479
|
function oe(i) {
|
|
478
|
-
let e, t,
|
|
480
|
+
let e, t, n, a, s, l;
|
|
479
481
|
return {
|
|
480
482
|
c() {
|
|
481
|
-
e = p("div"), t =
|
|
483
|
+
e = p("div"), t = v(
|
|
482
484
|
/*shownStatus*/
|
|
483
485
|
i[11]
|
|
484
|
-
), m(e, "class",
|
|
486
|
+
), m(e, "class", n = "Status " + /*statusClass*/
|
|
485
487
|
i[13]), m(e, "part", a = "Status " + /*statusClass*/
|
|
486
488
|
i[13]);
|
|
487
489
|
},
|
|
@@ -493,13 +495,13 @@ function oe(i) {
|
|
|
493
495
|
},
|
|
494
496
|
p(o, d) {
|
|
495
497
|
d[0] & /*shownStatus*/
|
|
496
|
-
2048 &&
|
|
498
|
+
2048 && F(
|
|
497
499
|
t,
|
|
498
500
|
/*shownStatus*/
|
|
499
501
|
o[11]
|
|
500
502
|
), d[0] & /*statusClass*/
|
|
501
|
-
8192 &&
|
|
502
|
-
o[13]) && m(e, "class",
|
|
503
|
+
8192 && n !== (n = "Status " + /*statusClass*/
|
|
504
|
+
o[13]) && m(e, "class", n), d[0] & /*statusClass*/
|
|
503
505
|
8192 && a !== (a = "Status " + /*statusClass*/
|
|
504
506
|
o[13]) && m(e, "part", a);
|
|
505
507
|
},
|
|
@@ -517,15 +519,15 @@ function ue(i) {
|
|
|
517
519
|
c() {
|
|
518
520
|
t && t.c(), e = Ce();
|
|
519
521
|
},
|
|
520
|
-
m(
|
|
521
|
-
t && t.m(
|
|
522
|
+
m(n, a) {
|
|
523
|
+
t && t.m(n, a), _(n, e, a);
|
|
522
524
|
},
|
|
523
|
-
p(
|
|
525
|
+
p(n, a) {
|
|
524
526
|
/*userenrolled*/
|
|
525
|
-
|
|
527
|
+
n[4] ? t ? t.p(n, a) : (t = me(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
|
526
528
|
},
|
|
527
|
-
d(
|
|
528
|
-
|
|
529
|
+
d(n) {
|
|
530
|
+
n && C(e), t && t.d(n);
|
|
529
531
|
}
|
|
530
532
|
};
|
|
531
533
|
}
|
|
@@ -533,18 +535,18 @@ function me(i) {
|
|
|
533
535
|
let e, t = (
|
|
534
536
|
/*$_*/
|
|
535
537
|
i[14]("enrolled") + ""
|
|
536
|
-
),
|
|
538
|
+
), n;
|
|
537
539
|
return {
|
|
538
540
|
c() {
|
|
539
|
-
e = p("div"),
|
|
541
|
+
e = p("div"), n = v(t), m(e, "class", "Enrolled"), m(e, "part", "Enrolled");
|
|
540
542
|
},
|
|
541
543
|
m(a, s) {
|
|
542
|
-
_(a, e, s), c(e,
|
|
544
|
+
_(a, e, s), c(e, n);
|
|
543
545
|
},
|
|
544
546
|
p(a, s) {
|
|
545
547
|
s[0] & /*$_*/
|
|
546
548
|
16384 && t !== (t = /*$_*/
|
|
547
|
-
a[14]("enrolled") + "") &&
|
|
549
|
+
a[14]("enrolled") + "") && F(n, t);
|
|
548
550
|
},
|
|
549
551
|
d(a) {
|
|
550
552
|
a && C(e);
|
|
@@ -552,10 +554,10 @@ function me(i) {
|
|
|
552
554
|
};
|
|
553
555
|
}
|
|
554
556
|
function Ie(i) {
|
|
555
|
-
let e, t,
|
|
557
|
+
let e, t, n, a, s, l, o;
|
|
556
558
|
return {
|
|
557
559
|
c() {
|
|
558
|
-
e = p("div"), t = p("ui-image"), te(t.src,
|
|
560
|
+
e = p("div"), t = p("ui-image"), te(t.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || q(t, "src", n), q(t, "alt", "icon"), m(e, "class", a = "CardImg " + /*status*/
|
|
559
561
|
(i[0] == "Closing" || /*status*/
|
|
560
562
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", s = "CardImg " + /*status*/
|
|
561
563
|
(i[0] == "Closing" || /*status*/
|
|
@@ -590,11 +592,11 @@ function Ie(i) {
|
|
|
590
592
|
};
|
|
591
593
|
}
|
|
592
594
|
function Fe(i) {
|
|
593
|
-
let e, t,
|
|
595
|
+
let e, t, n, a, s, l, o;
|
|
594
596
|
return {
|
|
595
597
|
c() {
|
|
596
|
-
e = p("div"), t = p("ui-image"), q(t, "class", "UIImage"), te(t.src,
|
|
597
|
-
i[3]) || q(t, "src",
|
|
598
|
+
e = p("div"), t = p("ui-image"), q(t, "class", "UIImage"), te(t.src, n = /*thumbnail*/
|
|
599
|
+
i[3]) || q(t, "src", n), q(t, "alt", "icon"), m(e, "class", a = "CardImg " + /*status*/
|
|
598
600
|
(i[0] == "Closing" || /*status*/
|
|
599
601
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", s = "CardImg " + /*status*/
|
|
600
602
|
(i[0] == "Closing" || /*status*/
|
|
@@ -616,8 +618,8 @@ function Fe(i) {
|
|
|
616
618
|
},
|
|
617
619
|
p(d, b) {
|
|
618
620
|
b[0] & /*thumbnail*/
|
|
619
|
-
8 && !te(t.src,
|
|
620
|
-
d[3]) && q(t, "src",
|
|
621
|
+
8 && !te(t.src, n = /*thumbnail*/
|
|
622
|
+
d[3]) && q(t, "src", n), b[0] & /*status*/
|
|
621
623
|
1 && a !== (a = "CardImg " + /*status*/
|
|
622
624
|
(d[0] == "Closing" || /*status*/
|
|
623
625
|
d[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "class", a), b[0] & /*status*/
|
|
@@ -631,16 +633,16 @@ function Fe(i) {
|
|
|
631
633
|
};
|
|
632
634
|
}
|
|
633
635
|
function de(i) {
|
|
634
|
-
let e, t,
|
|
636
|
+
let e, t, n, a, s;
|
|
635
637
|
return {
|
|
636
638
|
c() {
|
|
637
|
-
e = p("div"), t =
|
|
639
|
+
e = p("div"), t = v(
|
|
638
640
|
/*shownDate*/
|
|
639
641
|
i[10]
|
|
640
642
|
), m(e, "class", "Date"), m(e, "part", "Date");
|
|
641
643
|
},
|
|
642
644
|
m(l, o) {
|
|
643
|
-
_(l, e, o), c(e, t), a || (s = Z(
|
|
645
|
+
_(l, e, o), c(e, t), a || (s = Z(n = /*formatDate*/
|
|
644
646
|
i[15].call(
|
|
645
647
|
null,
|
|
646
648
|
e,
|
|
@@ -650,12 +652,12 @@ function de(i) {
|
|
|
650
652
|
},
|
|
651
653
|
p(l, o) {
|
|
652
654
|
o[0] & /*shownDate*/
|
|
653
|
-
1024 &&
|
|
655
|
+
1024 && F(
|
|
654
656
|
t,
|
|
655
657
|
/*shownDate*/
|
|
656
658
|
l[10]
|
|
657
|
-
),
|
|
658
|
-
4 &&
|
|
659
|
+
), n && _e(n.update) && o[0] & /*startdate*/
|
|
660
|
+
4 && n.update.call(
|
|
659
661
|
null,
|
|
660
662
|
/*startdate*/
|
|
661
663
|
l[2]
|
|
@@ -667,7 +669,7 @@ function de(i) {
|
|
|
667
669
|
};
|
|
668
670
|
}
|
|
669
671
|
function ze(i) {
|
|
670
|
-
let e, t,
|
|
672
|
+
let e, t, n, a = (
|
|
671
673
|
/*title*/
|
|
672
674
|
i[1] === "undefined" && se()
|
|
673
675
|
), s = (
|
|
@@ -676,7 +678,7 @@ function ze(i) {
|
|
|
676
678
|
);
|
|
677
679
|
return {
|
|
678
680
|
c() {
|
|
679
|
-
e = p("div"), a && a.c(), t =
|
|
681
|
+
e = p("div"), a && a.c(), t = I(), s && s.c(), m(e, "class", n = `Thumbnail ${/*title*/
|
|
680
682
|
i[1] === "undefined" ? "Loading" : ""}`), m(e, "part", "Thumbnail");
|
|
681
683
|
},
|
|
682
684
|
m(l, o) {
|
|
@@ -686,8 +688,8 @@ function ze(i) {
|
|
|
686
688
|
/*title*/
|
|
687
689
|
l[1] === "undefined" ? a || (a = se(), a.c(), a.m(e, t)) : a && (a.d(1), a = null), /*title*/
|
|
688
690
|
l[1] !== "undefined" ? s ? s.p(l, o) : (s = le(l), s.c(), s.m(e, null)) : s && (s.d(1), s = null), o[0] & /*title*/
|
|
689
|
-
2 &&
|
|
690
|
-
l[1] === "undefined" ? "Loading" : ""}`) && m(e, "class",
|
|
691
|
+
2 && n !== (n = `Thumbnail ${/*title*/
|
|
692
|
+
l[1] === "undefined" ? "Loading" : ""}`) && m(e, "class", n);
|
|
691
693
|
},
|
|
692
694
|
i: ae,
|
|
693
695
|
o: ae,
|
|
@@ -697,37 +699,41 @@ function ze(i) {
|
|
|
697
699
|
};
|
|
698
700
|
}
|
|
699
701
|
function je(i, e, t) {
|
|
700
|
-
let
|
|
701
|
-
ke(i, Me, (
|
|
702
|
-
let { userid: a = "" } = e, { title: s = "" } = e, { startdate: l = "" } = e, { status: o = "" } = e, { tourid: d = "" } = e, { thumbnail: b = "" } = e, { userenrolled: S = "" } = e, { scorecriteria:
|
|
702
|
+
let n;
|
|
703
|
+
ke(i, Me, (r) => t(14, n = r));
|
|
704
|
+
let { userid: a = "" } = e, { title: s = "" } = e, { startdate: l = "" } = e, { status: o = "" } = e, { tourid: d = "" } = e, { thumbnail: b = "" } = e, { userenrolled: S = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: K = "" } = e, { showenrolled: H = "false" } = e, { detailsevent: D = "" } = e, { gameurl: V = "" } = e, { lang: E = "en" } = e, { keepbrowsercontext: B = "false" } = e, { clientstyling: j = "" } = e, { clientstylingurl: P = "" } = e, { translationurl: N = "" } = e, { mbsource: U } = e, T, O = "", J = "", W = "", z = "";
|
|
703
705
|
Je({ withLocale: "en", translations: {} });
|
|
704
706
|
const Q = () => {
|
|
705
|
-
fetch(
|
|
706
|
-
Object.keys(
|
|
707
|
-
re(R,
|
|
707
|
+
fetch(N).then((r) => r.json()).then((r) => {
|
|
708
|
+
Object.keys(r).forEach((R) => {
|
|
709
|
+
re(R, r[R]);
|
|
708
710
|
}), l && f();
|
|
709
|
-
}).catch((
|
|
710
|
-
console.log(
|
|
711
|
+
}).catch((r) => {
|
|
712
|
+
console.log(r);
|
|
711
713
|
});
|
|
712
714
|
};
|
|
713
|
-
Object.keys(ne).forEach((
|
|
714
|
-
re(
|
|
715
|
+
Object.keys(ne).forEach((r) => {
|
|
716
|
+
re(r, ne[r]);
|
|
715
717
|
});
|
|
716
|
-
const w = (
|
|
717
|
-
|
|
718
|
-
},
|
|
719
|
-
const
|
|
720
|
-
let R = new Date(l), M = new Intl.DateTimeFormat("en",
|
|
718
|
+
const w = (r) => {
|
|
719
|
+
r.data && r.data.type == `TournamentStatus_${d}` && t(0, o = r.data.status);
|
|
720
|
+
}, x = () => {
|
|
721
|
+
const r = { month: "long" };
|
|
722
|
+
let R = new Date(l), M = new Intl.DateTimeFormat("en", r).format(R), y = R.getDate(), u = R.toLocaleString("en-GB", {
|
|
721
723
|
hour: "numeric",
|
|
722
724
|
minute: "numeric",
|
|
723
725
|
hour12: !1
|
|
724
726
|
});
|
|
725
|
-
const g = () =>
|
|
726
|
-
t(10,
|
|
727
|
+
const g = () => n(o === "Unstarted" ? "startingAt" : "startedAt");
|
|
728
|
+
t(10, O = `${y} ` + n(`${M}`) + ", " + g() + ` ${u}`);
|
|
727
729
|
}, G = () => {
|
|
728
|
-
o == "Unstarted" && (t(11, J =
|
|
730
|
+
o == "Unstarted" && (t(11, J = n("scheduled")), t(13, z = "StatusUnstarted")), o == "Running" && (t(11, J = n("ongoing")), t(13, z = "StatusRunning")), (o == "Closed" || o == "Closing") && t(11, J = n("finished")), o == "Closed" && t(13, z = "StatusClosed"), o == "Closing" && t(13, z = "StatusClosing");
|
|
729
731
|
}, L = () => {
|
|
730
|
-
|
|
732
|
+
if (!A || A.length <= 1) {
|
|
733
|
+
t(12, W = A);
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
t(12, W = n(A.charAt(0).toLowerCase() + A.slice(1)));
|
|
731
737
|
}, Y = () => {
|
|
732
738
|
window.postMessage({ type: "tournamentGamesClicked", tourid: d }, window.location.href);
|
|
733
739
|
}, X = () => {
|
|
@@ -744,25 +750,25 @@ function je(i, e, t) {
|
|
|
744
750
|
window.removeEventListener("message", w);
|
|
745
751
|
}));
|
|
746
752
|
const f = () => {
|
|
747
|
-
Re(E), L(), G(), l &&
|
|
753
|
+
Re(E), L(), G(), l && x();
|
|
748
754
|
};
|
|
749
|
-
function k(
|
|
750
|
-
Se[
|
|
751
|
-
T =
|
|
755
|
+
function k(r) {
|
|
756
|
+
Se[r ? "unshift" : "push"](() => {
|
|
757
|
+
T = r, t(9, T);
|
|
752
758
|
});
|
|
753
759
|
}
|
|
754
|
-
return i.$$set = (
|
|
755
|
-
"userid" in
|
|
760
|
+
return i.$$set = (r) => {
|
|
761
|
+
"userid" in r && t(20, a = r.userid), "title" in r && t(1, s = r.title), "startdate" in r && t(2, l = r.startdate), "status" in r && t(0, o = r.status), "tourid" in r && t(21, d = r.tourid), "thumbnail" in r && t(3, b = r.thumbnail), "userenrolled" in r && t(4, S = r.userenrolled), "scorecriteria" in r && t(22, A = r.scorecriteria), "minbetcount" in r && t(5, K = r.minbetcount), "showenrolled" in r && t(6, H = r.showenrolled), "detailsevent" in r && t(23, D = r.detailsevent), "gameurl" in r && t(7, V = r.gameurl), "lang" in r && t(24, E = r.lang), "keepbrowsercontext" in r && t(8, B = r.keepbrowsercontext), "clientstyling" in r && t(25, j = r.clientstyling), "clientstylingurl" in r && t(26, P = r.clientstylingurl), "translationurl" in r && t(27, N = r.translationurl), "mbsource" in r && t(28, U = r.mbsource);
|
|
756
762
|
}, i.$$.update = () => {
|
|
757
763
|
i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
758
|
-
33554944 &&
|
|
764
|
+
33554944 && j && T && Ae(T, j), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
759
765
|
67109376 && P && T && ve(T, P), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
760
766
|
268435968 && U && T && Te(T, `${U}.Style`), i.$$.dirty[0] & /*translationurl*/
|
|
761
|
-
134217728 &&
|
|
767
|
+
134217728 && N && Q(), i.$$.dirty[0] & /*status*/
|
|
762
768
|
1 && o && G(), i.$$.dirty[0] & /*title, lang*/
|
|
763
769
|
16777218 && s && E && f(), i.$$.dirty[0] & /*startdate*/
|
|
764
|
-
4 && l &&
|
|
765
|
-
4194304 &&
|
|
770
|
+
4 && l && x(), i.$$.dirty[0] & /*scorecriteria*/
|
|
771
|
+
4194304 && A && L();
|
|
766
772
|
}, [
|
|
767
773
|
o,
|
|
768
774
|
s,
|
|
@@ -774,24 +780,24 @@ function je(i, e, t) {
|
|
|
774
780
|
V,
|
|
775
781
|
B,
|
|
776
782
|
T,
|
|
777
|
-
x,
|
|
778
|
-
J,
|
|
779
|
-
I,
|
|
780
|
-
j,
|
|
781
|
-
r,
|
|
782
783
|
O,
|
|
784
|
+
J,
|
|
785
|
+
W,
|
|
786
|
+
z,
|
|
787
|
+
n,
|
|
788
|
+
x,
|
|
783
789
|
G,
|
|
784
790
|
L,
|
|
785
791
|
Y,
|
|
786
792
|
X,
|
|
787
793
|
a,
|
|
788
794
|
d,
|
|
789
|
-
|
|
795
|
+
A,
|
|
790
796
|
D,
|
|
791
797
|
E,
|
|
792
|
-
|
|
798
|
+
j,
|
|
793
799
|
P,
|
|
794
|
-
|
|
800
|
+
N,
|
|
795
801
|
U,
|
|
796
802
|
k
|
|
797
803
|
];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-Ce1tXy-y.cjs");require("../stencil/ui-skeleton-B0E7XBJC.cjs");require("../stencil/ui-image-DUHLTRXs.cjs");function X({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function U(a,t){e.addMessages(a,t)}function $(a){e.$locale.set(a)}const G={en:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",win:"Winnings",winBetCount:"Winnings and Number of Rounds",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function ee(a){e.append_styles(a,"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}')}function q(a){let t,i,s;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),s=e.element("div"),s.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>',e.attr(t,"class","Skeleton CardImg"),e.attr(s,"class","Details"),e.attr(s,"part","Details")},m(n,l){e.insert(n,t,l),e.insert(n,i,l),e.insert(n,s,l)},d(n){n&&(e.detach(t),e.detach(i),e.detach(s))}}}function K(a){let t,i,s,n,l,o,u,m,g,p,_=a[14]("scoreCriteria")+"",O,L,v,W,F,x=a[14]("minbet")+"",w,j,M,z,k,J,C,R=a[14]("seegames")+"",T,P,y,D=a[14]("here")+"",N,I,E,B,h=a[0]&&V(a),b=a[6]=="true"&&H(a);function r(d,c){return d[3]?ie:te}let A=r(a),S=A(a),f=a[2]&&Z(a);return{c(){h&&h.c(),t=e.space(),b&&b.c(),i=e.space(),S.c(),s=e.space(),n=e.element("div"),l=e.element("div"),o=e.text(a[1]),u=e.space(),f&&f.c(),m=e.space(),g=e.element("div"),p=e.element("p"),O=e.text(_),L=e.text(`:
|
|
2
|
+
`),v=e.element("span"),W=e.text(a[12]),F=e.text(`
|
|
3
|
+
(`),w=e.text(x),j=e.space(),M=e.text(a[5]),z=e.text(")"),k=e.space(),J=e.element("div"),C=e.element("p"),T=e.text(R),P=e.space(),y=e.element("a"),N=e.text(D),e.attr(l,"class","Title"),e.attr(l,"part","Title"),e.attr(v,"part","ScoreCriteriaSpan"),e.attr(p,"part","ScoreCriteriaP"),e.attr(g,"class","ScoreCriteria"),e.attr(g,"part","ScoreCriteria"),e.attr(y,"part","GamesAnchor"),e.attr(y,"href",a[7]),e.attr(y,"target",I=a[8]==="true"?"_self":"_blank"),e.attr(C,"part","GamesP"),e.attr(J,"class","Games"),e.attr(J,"part","Games"),e.attr(n,"class","Details"),e.attr(n,"part","Details")},m(d,c){h&&h.m(d,c),e.insert(d,t,c),b&&b.m(d,c),e.insert(d,i,c),S.m(d,c),e.insert(d,s,c),e.insert(d,n,c),e.append(n,l),e.append(l,o),e.append(n,u),f&&f.m(n,null),e.append(n,m),e.append(n,g),e.append(g,p),e.append(p,O),e.append(p,L),e.append(p,v),e.append(v,W),e.append(p,F),e.append(p,w),e.append(p,j),e.append(p,M),e.append(p,z),e.append(n,k),e.append(n,J),e.append(J,C),e.append(C,T),e.append(C,P),e.append(C,y),e.append(y,N),E||(B=[e.listen(l,"click",a[19]),e.action_destroyer(a[17].call(null,v)),e.listen(y,"click",a[18])],E=!0)},p(d,c){d[0]?h?h.p(d,c):(h=V(d),h.c(),h.m(t.parentNode,t)):h&&(h.d(1),h=null),d[6]=="true"?b?b.p(d,c):(b=H(d),b.c(),b.m(i.parentNode,i)):b&&(b.d(1),b=null),A===(A=r(d))&&S?S.p(d,c):(S.d(1),S=A(d),S&&(S.c(),S.m(s.parentNode,s))),c[0]&2&&e.set_data(o,d[1]),d[2]?f?f.p(d,c):(f=Z(d),f.c(),f.m(n,m)):f&&(f.d(1),f=null),c[0]&16384&&_!==(_=d[14]("scoreCriteria")+"")&&e.set_data(O,_),c[0]&4096&&e.set_data(W,d[12]),c[0]&16384&&x!==(x=d[14]("minbet")+"")&&e.set_data(w,x),c[0]&32&&e.set_data(M,d[5]),c[0]&16384&&R!==(R=d[14]("seegames")+"")&&e.set_data(T,R),c[0]&16384&&D!==(D=d[14]("here")+"")&&e.set_data(N,D),c[0]&128&&e.attr(y,"href",d[7]),c[0]&256&&I!==(I=d[8]==="true"?"_self":"_blank")&&e.attr(y,"target",I)},d(d){d&&(e.detach(t),e.detach(i),e.detach(s),e.detach(n)),h&&h.d(d),b&&b.d(d),S.d(d),f&&f.d(),E=!1,e.run_all(B)}}}function V(a){let t,i,s,n,l,o;return{c(){t=e.element("div"),i=e.text(a[11]),e.attr(t,"class",s="Status "+a[13]),e.attr(t,"part",n="Status "+a[13])},m(u,m){e.insert(u,t,m),e.append(t,i),l||(o=e.action_destroyer(a[16].call(null,t)),l=!0)},p(u,m){m[0]&2048&&e.set_data(i,u[11]),m[0]&8192&&s!==(s="Status "+u[13])&&e.attr(t,"class",s),m[0]&8192&&n!==(n="Status "+u[13])&&e.attr(t,"part",n)},d(u){u&&e.detach(t),l=!1,o()}}}function H(a){let t,i=a[4]&&Y(a);return{c(){i&&i.c(),t=e.empty()},m(s,n){i&&i.m(s,n),e.insert(s,t,n)},p(s,n){s[4]?i?i.p(s,n):(i=Y(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(s){s&&e.detach(t),i&&i.d(s)}}}function Y(a){let t,i=a[14]("enrolled")+"",s;return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(n,l){e.insert(n,t,l),e.append(t,s)},p(n,l){l[0]&16384&&i!==(i=n[14]("enrolled")+"")&&e.set_data(s,i)},d(n){n&&e.detach(t)}}}function te(a){let t,i,s,n,l,o,u;return{c(){t=e.element("div"),i=e.element("ui-image"),e.src_url_equal(i.src,s="https://i.stack.imgur.com/y9DpT.jpg")||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,g){e.insert(m,t,g),e.append(t,i),o||(u=[e.action_destroyer(a[16].call(null,t)),e.listen(t,"click",a[19])],o=!0)},p(m,g){g[0]&1&&n!==(n="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),g[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),o=!1,e.run_all(u)}}}function ie(a){let t,i,s,n,l,o,u;return{c(){t=e.element("div"),i=e.element("ui-image"),e.set_custom_element_data(i,"class","UIImage"),e.src_url_equal(i.src,s=a[3])||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,g){e.insert(m,t,g),e.append(t,i),o||(u=[e.action_destroyer(a[16].call(null,t)),e.listen(t,"click",a[19])],o=!0)},p(m,g){g[0]&8&&!e.src_url_equal(i.src,s=m[3])&&e.set_custom_element_data(i,"src",s),g[0]&1&&n!==(n="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),g[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),o=!1,e.run_all(u)}}}function Z(a){let t,i,s,n,l;return{c(){t=e.element("div"),i=e.text(a[10]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(o,u){e.insert(o,t,u),e.append(t,i),n||(l=e.action_destroyer(s=a[15].call(null,t,a[2])),n=!0)},p(o,u){u[0]&1024&&e.set_data(i,o[10]),s&&e.is_function(s.update)&&u[0]&4&&s.update.call(null,o[2])},d(o){o&&e.detach(t),n=!1,l()}}}function ae(a){let t,i,s,n=a[1]==="undefined"&&q(),l=a[1]!=="undefined"&&K(a);return{c(){t=e.element("div"),n&&n.c(),i=e.space(),l&&l.c(),e.attr(t,"class",s=`Thumbnail ${a[1]==="undefined"?"Loading":""}`),e.attr(t,"part","Thumbnail")},m(o,u){e.insert(o,t,u),n&&n.m(t,null),e.append(t,i),l&&l.m(t,null),a[29](t)},p(o,u){o[1]==="undefined"?n||(n=q(),n.c(),n.m(t,i)):n&&(n.d(1),n=null),o[1]!=="undefined"?l?l.p(o,u):(l=K(o),l.c(),l.m(t,null)):l&&(l.d(1),l=null),u[0]&2&&s!==(s=`Thumbnail ${o[1]==="undefined"?"Loading":""}`)&&e.attr(t,"class",s)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n&&n.d(),l&&l.d(),a[29](null)}}}function ne(a,t,i){let s;e.component_subscribe(a,e.$format,r=>i(14,s=r));let{userid:n=""}=t,{title:l=""}=t,{startdate:o=""}=t,{status:u=""}=t,{tourid:m=""}=t,{thumbnail:g=""}=t,{userenrolled:p=""}=t,{scorecriteria:_=""}=t,{minbetcount:O=""}=t,{showenrolled:L="false"}=t,{detailsevent:v=""}=t,{gameurl:W=""}=t,{lang:F="en"}=t,{keepbrowsercontext:x="false"}=t,{clientstyling:w=""}=t,{clientstylingurl:j=""}=t,{translationurl:M=""}=t,{mbsource:z}=t,k,J="",C="",R="",T="";X({withLocale:"en",translations:{}});const P=()=>{fetch(M).then(r=>r.json()).then(r=>{Object.keys(r).forEach(A=>{U(A,r[A])}),o&&h()}).catch(r=>{console.log(r)})};Object.keys(G).forEach(r=>{U(r,G[r])});const y=r=>{r.data&&r.data.type==`TournamentStatus_${m}`&&i(0,u=r.data.status)},D=()=>{const r={month:"long"};let A=new Date(o),S=new Intl.DateTimeFormat("en",r).format(A),f=A.getDate(),d=A.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const c=()=>s(u==="Unstarted"?"startingAt":"startedAt");i(10,J=`${f} `+s(`${S}`)+", "+c()+` ${d}`)},N=()=>{u=="Unstarted"&&(i(11,C=s("scheduled")),i(13,T="StatusUnstarted")),u=="Running"&&(i(11,C=s("ongoing")),i(13,T="StatusRunning")),(u=="Closed"||u=="Closing")&&i(11,C=s("finished")),u=="Closed"&&i(13,T="StatusClosed"),u=="Closing"&&i(13,T="StatusClosing")},I=()=>{if(!_||_.length<=1){i(12,R=_);return}i(12,R=s(_.charAt(0).toLowerCase()+_.slice(1)))},E=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:m},window.location.href)},B=()=>{v&&window.postMessage({type:v,tournamentId:m,showLeaderboard:!0},window.location.href)};e.onMount(()=>(setTimeout(()=>h(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));const h=()=>{$(F),I(),N(),o&&D()};function b(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,i(9,k)})}return a.$$set=r=>{"userid"in r&&i(20,n=r.userid),"title"in r&&i(1,l=r.title),"startdate"in r&&i(2,o=r.startdate),"status"in r&&i(0,u=r.status),"tourid"in r&&i(21,m=r.tourid),"thumbnail"in r&&i(3,g=r.thumbnail),"userenrolled"in r&&i(4,p=r.userenrolled),"scorecriteria"in r&&i(22,_=r.scorecriteria),"minbetcount"in r&&i(5,O=r.minbetcount),"showenrolled"in r&&i(6,L=r.showenrolled),"detailsevent"in r&&i(23,v=r.detailsevent),"gameurl"in r&&i(7,W=r.gameurl),"lang"in r&&i(24,F=r.lang),"keepbrowsercontext"in r&&i(8,x=r.keepbrowsercontext),"clientstyling"in r&&i(25,w=r.clientstyling),"clientstylingurl"in r&&i(26,j=r.clientstylingurl),"translationurl"in r&&i(27,M=r.translationurl),"mbsource"in r&&i(28,z=r.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&33554944&&w&&k&&e.setClientStyling(k,w),a.$$.dirty[0]&67109376&&j&&k&&e.setClientStylingURL(k,j),a.$$.dirty[0]&268435968&&z&&k&&e.setStreamStyling(k,`${z}.Style`),a.$$.dirty[0]&134217728&&M&&P(),a.$$.dirty[0]&1&&u&&N(),a.$$.dirty[0]&16777218&&l&&F&&h(),a.$$.dirty[0]&4&&o&&D(),a.$$.dirty[0]&4194304&&_&&I()},[u,l,o,g,p,O,L,W,x,k,J,C,R,T,s,D,N,I,E,B,n,m,_,v,F,w,j,M,z,b]}class Q extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ne,ae,e.safe_not_equal,{userid:20,title:1,startdate:2,status:0,tourid:21,thumbnail:3,userenrolled:4,scorecriteria:22,minbetcount:5,showenrolled:6,detailsevent:23,gameurl:7,lang:24,keepbrowsercontext:8,clientstyling:25,clientstylingurl:26,translationurl:27,mbsource:28},ee,[-1,-1])}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[21]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[3]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[4]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[5]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[6]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get detailsevent(){return this.$$.ctx[23]}set detailsevent(t){this.$$set({detailsevent:t}),e.flush()}get gameurl(){return this.$$.ctx[7]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[8]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[28]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Q,{userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},detailsevent:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=Q;
|