@everymatrix/casino-tournaments-list-controller 1.65.2 → 1.66.0
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-QOpDP1gT.cjs → CasinoTournamentsListController-BNVcBVyF.cjs} +1 -1
- package/components/{CasinoTournamentsListController-BbMxlacs.js → CasinoTournamentsListController-C4mihNnj.js} +21 -21
- package/components/{CasinoTournamentsListController-BmResUm1.js → CasinoTournamentsListController-DySbk5VW.js} +21 -21
- package/components/{CasinoTournamentsThumbnail-BctgkfiG.js → CasinoTournamentsThumbnail-BGguyWao.js} +132 -126
- package/components/CasinoTournamentsThumbnail-Dm47dnjW.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-BLl6r3kP.js → CasinoTournamentsThumbnail-Yl8kaw-d.js} +132 -126
- package/components/{CasinoTournamentsThumbnailController-LQRpg-1c.js → CasinoTournamentsThumbnailController-D4fh4BOQ.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-Bdh5qjnp.cjs → CasinoTournamentsThumbnailController-DSTK12aD.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailController-qtMqHOKR.js → CasinoTournamentsThumbnailController-gMjU8WUF.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-C5E3xPWt.js → CasinoTournamentsThumbnailDuration-CM4PmXyz.js} +13 -13
- package/components/{CasinoTournamentsThumbnailDuration-BEkKAuX-.cjs → CasinoTournamentsThumbnailDuration-DotSLQks.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CLG474CZ.js → CasinoTournamentsThumbnailDuration-VhRuoa0C.js} +13 -13
- package/components/{CasinoTournamentsThumbnailGamesSlider-BZPzU1n_.js → CasinoTournamentsThumbnailGamesSlider-DPfGI_tX.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-gRsycWHT.js → CasinoTournamentsThumbnailGamesSlider-DelsM0V9.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-Cs5RTcj-.cjs → CasinoTournamentsThumbnailGamesSlider-QjFgAppB.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BGoHCct2.js → CasinoTournamentsThumbnailPrizes-C4W8HVKg.js} +8 -8
- package/components/{CasinoTournamentsThumbnailPrizes-1UaFyOK_.cjs → CasinoTournamentsThumbnailPrizes-CMxv0Giw.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BRyr6n6l.js → CasinoTournamentsThumbnailPrizes-qFFMpsOU.js} +8 -8
- 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-GGpqWUUU.cjs +0 -4
package/components/{CasinoTournamentsThumbnail-BctgkfiG.js → CasinoTournamentsThumbnail-BGguyWao.js}
RENAMED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as H, a as fe, b as be, S as he, i as pe, s as ke, f as S, c as ye, n as Z, d as C, e as m, g as _, h as g, j as y, k as I, l as Se, o as Ce, m as D, t as w, p as _e, q as B, r as Ae, u as Te, v as ve, w as V, x as L, y as Me, z as we, A as Re } from "./CasinoTournamentsListController-C4mihNnj.js";
|
|
2
2
|
import "../stencil/ui-skeleton-CVBjRUvi.js";
|
|
3
3
|
import "../stencil/ui-image-3hy4ZvUC.js";
|
|
4
|
-
function
|
|
5
|
-
|
|
4
|
+
function Je({ withLocale: i, translations: e }) {
|
|
5
|
+
H.subscribe((t) => {
|
|
6
|
+
t == null && (fe.set(e), H.set(i));
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function Q(i, e) {
|
|
10
|
+
be(i, e);
|
|
6
11
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
12
|
+
function De(i) {
|
|
13
|
+
H.set(i);
|
|
9
14
|
}
|
|
10
|
-
const
|
|
15
|
+
const X = {
|
|
11
16
|
en: {
|
|
12
17
|
enrolled: "Enrolled",
|
|
13
18
|
scoreCriteria: "Score Criteria",
|
|
@@ -339,10 +344,10 @@ const Q = {
|
|
|
339
344
|
December: "December"
|
|
340
345
|
}
|
|
341
346
|
};
|
|
342
|
-
function
|
|
343
|
-
|
|
347
|
+
function Ie(i) {
|
|
348
|
+
ye(i, "svelte-1bncdcr", ':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{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{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}');
|
|
344
349
|
}
|
|
345
|
-
function
|
|
350
|
+
function $(i) {
|
|
346
351
|
let e, t, n;
|
|
347
352
|
return {
|
|
348
353
|
c() {
|
|
@@ -356,30 +361,30 @@ function X(i) {
|
|
|
356
361
|
}
|
|
357
362
|
};
|
|
358
363
|
}
|
|
359
|
-
function
|
|
364
|
+
function ee(i) {
|
|
360
365
|
let e, t, n, a, s, u, d, l, c = (
|
|
361
366
|
/*status*/
|
|
362
|
-
i[0] &&
|
|
367
|
+
i[0] && te(i)
|
|
363
368
|
), h = (
|
|
364
369
|
/*showenrolled*/
|
|
365
|
-
i[7] == "true" &&
|
|
370
|
+
i[7] == "true" && ie(i)
|
|
366
371
|
);
|
|
367
372
|
function z(o, b) {
|
|
368
373
|
return (
|
|
369
374
|
/*thumbnail*/
|
|
370
|
-
o[4] ?
|
|
375
|
+
o[4] ? ze : Fe
|
|
371
376
|
);
|
|
372
377
|
}
|
|
373
378
|
let A = z(i), T = A(i), p = (
|
|
374
379
|
/*startdate*/
|
|
375
|
-
i[2] &&
|
|
380
|
+
i[2] && ne(i)
|
|
376
381
|
), f = (
|
|
377
382
|
/*isLoggedIn*/
|
|
378
|
-
i[12] &&
|
|
383
|
+
i[12] && re(i)
|
|
379
384
|
);
|
|
380
385
|
return {
|
|
381
386
|
c() {
|
|
382
|
-
c && c.c(), e = I(), h && h.c(), t = I(), T.c(), n = I(), a = y("div"), s = y("div"), u =
|
|
387
|
+
c && c.c(), e = I(), h && h.c(), t = I(), T.c(), n = I(), a = y("div"), s = y("div"), u = w(
|
|
383
388
|
/*title*/
|
|
384
389
|
i[1]
|
|
385
390
|
), d = I(), p && p.c(), l = I(), f && f.c(), m(s, "class", "Title"), m(s, "part", "Title"), m(a, "class", "Details"), m(a, "part", "Details");
|
|
@@ -389,26 +394,26 @@ function $(i) {
|
|
|
389
394
|
},
|
|
390
395
|
p(o, b) {
|
|
391
396
|
/*status*/
|
|
392
|
-
o[0] ? c ? c.p(o, b) : (c =
|
|
393
|
-
o[7] == "true" ? h ? h.p(o, b) : (h =
|
|
397
|
+
o[0] ? c ? c.p(o, b) : (c = te(o), c.c(), c.m(e.parentNode, e)) : c && (c.d(1), c = null), /*showenrolled*/
|
|
398
|
+
o[7] == "true" ? h ? h.p(o, b) : (h = ie(o), h.c(), h.m(t.parentNode, t)) : h && (h.d(1), h = null), A === (A = z(o)) && T ? T.p(o, b) : (T.d(1), T = A(o), T && (T.c(), T.m(n.parentNode, n))), b[0] & /*title*/
|
|
394
399
|
2 && D(
|
|
395
400
|
u,
|
|
396
401
|
/*title*/
|
|
397
402
|
o[1]
|
|
398
403
|
), /*startdate*/
|
|
399
|
-
o[2] ? p ? p.p(o, b) : (p =
|
|
400
|
-
o[12] ? f ? f.p(o, b) : (f =
|
|
404
|
+
o[2] ? p ? p.p(o, b) : (p = ne(o), p.c(), p.m(a, l)) : p && (p.d(1), p = null), /*isLoggedIn*/
|
|
405
|
+
o[12] ? f ? f.p(o, b) : (f = re(o), f.c(), f.m(a, null)) : f && (f.d(1), f = null);
|
|
401
406
|
},
|
|
402
407
|
d(o) {
|
|
403
408
|
o && (C(e), C(t), C(n), C(a)), c && c.d(o), h && h.d(o), T.d(o), p && p.d(), f && f.d();
|
|
404
409
|
}
|
|
405
410
|
};
|
|
406
411
|
}
|
|
407
|
-
function
|
|
412
|
+
function te(i) {
|
|
408
413
|
let e, t, n, a, s, u;
|
|
409
414
|
return {
|
|
410
415
|
c() {
|
|
411
|
-
e = y("div"), t =
|
|
416
|
+
e = y("div"), t = w(
|
|
412
417
|
/*shownStatus*/
|
|
413
418
|
i[13]
|
|
414
419
|
), m(e, "class", n = "Status " + /*statusClass*/
|
|
@@ -438,35 +443,35 @@ function ee(i) {
|
|
|
438
443
|
}
|
|
439
444
|
};
|
|
440
445
|
}
|
|
441
|
-
function
|
|
446
|
+
function ie(i) {
|
|
442
447
|
let e, t = (
|
|
443
448
|
/*userenrolled*/
|
|
444
|
-
i[5] &&
|
|
449
|
+
i[5] && ae(i)
|
|
445
450
|
);
|
|
446
451
|
return {
|
|
447
452
|
c() {
|
|
448
|
-
t && t.c(), e =
|
|
453
|
+
t && t.c(), e = Ae();
|
|
449
454
|
},
|
|
450
455
|
m(n, a) {
|
|
451
456
|
t && t.m(n, a), _(n, e, a);
|
|
452
457
|
},
|
|
453
458
|
p(n, a) {
|
|
454
459
|
/*userenrolled*/
|
|
455
|
-
n[5] ? t ? t.p(n, a) : (t =
|
|
460
|
+
n[5] ? t ? t.p(n, a) : (t = ae(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
|
|
456
461
|
},
|
|
457
462
|
d(n) {
|
|
458
463
|
n && C(e), t && t.d(n);
|
|
459
464
|
}
|
|
460
465
|
};
|
|
461
466
|
}
|
|
462
|
-
function
|
|
467
|
+
function ae(i) {
|
|
463
468
|
let e, t = (
|
|
464
469
|
/*$_*/
|
|
465
470
|
i[16]("enrolled") + ""
|
|
466
471
|
), n;
|
|
467
472
|
return {
|
|
468
473
|
c() {
|
|
469
|
-
e = y("div"), n =
|
|
474
|
+
e = y("div"), n = w(t), m(e, "class", "Enrolled"), m(e, "part", "Enrolled");
|
|
470
475
|
},
|
|
471
476
|
m(a, s) {
|
|
472
477
|
_(a, e, s), g(e, n);
|
|
@@ -481,11 +486,11 @@ function ie(i) {
|
|
|
481
486
|
}
|
|
482
487
|
};
|
|
483
488
|
}
|
|
484
|
-
function
|
|
489
|
+
function Fe(i) {
|
|
485
490
|
let e, t, n, a, s, u, d;
|
|
486
491
|
return {
|
|
487
492
|
c() {
|
|
488
|
-
e = y("div"), t = y("ui-image"),
|
|
493
|
+
e = y("div"), t = y("ui-image"), V(t.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || L(t, "src", n), L(t, "alt", "icon"), m(e, "class", a = "CardImg " + /*status*/
|
|
489
494
|
(i[0] == "Closing" || /*status*/
|
|
490
495
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", s = "CardImg " + /*status*/
|
|
491
496
|
(i[0] == "Closing" || /*status*/
|
|
@@ -511,12 +516,12 @@ function De(i) {
|
|
|
511
516
|
}
|
|
512
517
|
};
|
|
513
518
|
}
|
|
514
|
-
function
|
|
519
|
+
function ze(i) {
|
|
515
520
|
let e, t, n, a, s, u, d;
|
|
516
521
|
return {
|
|
517
522
|
c() {
|
|
518
|
-
e = y("div"), t = y("ui-image"),
|
|
519
|
-
i[4]) ||
|
|
523
|
+
e = y("div"), t = y("ui-image"), L(t, "class", "UIImage"), V(t.src, n = /*thumbnail*/
|
|
524
|
+
i[4]) || L(t, "src", n), L(t, "alt", "icon"), m(e, "class", a = "CardImg " + /*status*/
|
|
520
525
|
(i[0] == "Closing" || /*status*/
|
|
521
526
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", s = "CardImg " + /*status*/
|
|
522
527
|
(i[0] == "Closing" || /*status*/
|
|
@@ -530,8 +535,8 @@ function Ie(i) {
|
|
|
530
535
|
},
|
|
531
536
|
p(l, c) {
|
|
532
537
|
c[0] & /*thumbnail*/
|
|
533
|
-
16 && !
|
|
534
|
-
l[4]) &&
|
|
538
|
+
16 && !V(t.src, n = /*thumbnail*/
|
|
539
|
+
l[4]) && L(t, "src", n), c[0] & /*status*/
|
|
535
540
|
1 && a !== (a = "CardImg " + /*status*/
|
|
536
541
|
(l[0] == "Closing" || /*status*/
|
|
537
542
|
l[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "class", a), c[0] & /*status*/
|
|
@@ -544,11 +549,11 @@ function Ie(i) {
|
|
|
544
549
|
}
|
|
545
550
|
};
|
|
546
551
|
}
|
|
547
|
-
function
|
|
552
|
+
function ne(i) {
|
|
548
553
|
let e, t, n, a, s;
|
|
549
554
|
return {
|
|
550
555
|
c() {
|
|
551
|
-
e = y("div"), t =
|
|
556
|
+
e = y("div"), t = w(
|
|
552
557
|
/*shownDate*/
|
|
553
558
|
i[11]
|
|
554
559
|
), m(e, "class", "Date"), m(e, "part", "Date");
|
|
@@ -568,7 +573,7 @@ function ae(i) {
|
|
|
568
573
|
t,
|
|
569
574
|
/*shownDate*/
|
|
570
575
|
u[11]
|
|
571
|
-
), n &&
|
|
576
|
+
), n && Me(n.update) && d[0] & /*startdate*/
|
|
572
577
|
4 && n.update.call(
|
|
573
578
|
null,
|
|
574
579
|
/*startdate*/
|
|
@@ -580,7 +585,7 @@ function ae(i) {
|
|
|
580
585
|
}
|
|
581
586
|
};
|
|
582
587
|
}
|
|
583
|
-
function
|
|
588
|
+
function re(i) {
|
|
584
589
|
let e, t, n = (
|
|
585
590
|
/*$_*/
|
|
586
591
|
i[16]("scoreCriteria") + ""
|
|
@@ -590,84 +595,84 @@ function ne(i) {
|
|
|
590
595
|
), h, z, A, T, p, f, o, b = (
|
|
591
596
|
/*$_*/
|
|
592
597
|
i[16]("seegames") + ""
|
|
593
|
-
), j, x,
|
|
598
|
+
), j, x, v, R = (
|
|
594
599
|
/*$_*/
|
|
595
600
|
i[16]("here") + ""
|
|
596
|
-
),
|
|
601
|
+
), O, F, N, W;
|
|
597
602
|
return {
|
|
598
603
|
c() {
|
|
599
|
-
e = y("div"), t = y("p"), a =
|
|
604
|
+
e = y("div"), t = y("p"), a = w(n), s = w(`:
|
|
600
605
|
|
|
601
|
-
`), u = y("span"), d =
|
|
606
|
+
`), u = y("span"), d = w(
|
|
602
607
|
/*showScoreCriteria*/
|
|
603
608
|
i[14]
|
|
604
|
-
), l =
|
|
605
|
-
(`), h =
|
|
609
|
+
), l = w(`
|
|
610
|
+
(`), h = w(c), z = I(), A = w(
|
|
606
611
|
/*minbetcount*/
|
|
607
612
|
i[6]
|
|
608
|
-
), T =
|
|
609
|
-
|
|
613
|
+
), T = w(")"), p = I(), f = y("div"), o = y("p"), j = w(b), x = I(), v = y("a"), O = w(R), m(u, "part", "ScoreCriteriaSpan"), m(t, "part", "ScoreCriteriaP"), m(e, "class", "ScoreCriteria"), m(e, "part", "ScoreCriteria"), m(v, "part", "GamesAnchor"), m(
|
|
614
|
+
v,
|
|
610
615
|
"href",
|
|
611
616
|
/*gameurl*/
|
|
612
617
|
i[8]
|
|
613
|
-
), m(
|
|
618
|
+
), m(v, "target", F = /*keepbrowsercontext*/
|
|
614
619
|
i[9] === "true" ? "_self" : "_blank"), m(o, "part", "GamesP"), m(f, "class", "Games"), m(f, "part", "Games");
|
|
615
620
|
},
|
|
616
|
-
m(k,
|
|
617
|
-
_(k, e,
|
|
621
|
+
m(k, M) {
|
|
622
|
+
_(k, e, M), g(e, t), g(t, a), g(t, s), g(t, u), g(u, d), g(t, l), g(t, h), g(t, z), g(t, A), g(t, T), _(k, p, M), _(k, f, M), g(f, o), g(o, j), g(o, x), g(o, v), g(v, O), N || (W = [
|
|
618
623
|
B(
|
|
619
624
|
/*matchScoreCriteria*/
|
|
620
625
|
i[19].call(null, u)
|
|
621
626
|
),
|
|
622
|
-
|
|
623
|
-
|
|
627
|
+
ve(
|
|
628
|
+
v,
|
|
624
629
|
"click",
|
|
625
630
|
/*click_handler*/
|
|
626
631
|
i[28]
|
|
627
632
|
)
|
|
628
633
|
], N = !0);
|
|
629
634
|
},
|
|
630
|
-
p(k,
|
|
631
|
-
|
|
635
|
+
p(k, M) {
|
|
636
|
+
M[0] & /*$_*/
|
|
632
637
|
65536 && n !== (n = /*$_*/
|
|
633
|
-
k[16]("scoreCriteria") + "") && D(a, n),
|
|
638
|
+
k[16]("scoreCriteria") + "") && D(a, n), M[0] & /*showScoreCriteria*/
|
|
634
639
|
16384 && D(
|
|
635
640
|
d,
|
|
636
641
|
/*showScoreCriteria*/
|
|
637
642
|
k[14]
|
|
638
|
-
),
|
|
643
|
+
), M[0] & /*$_*/
|
|
639
644
|
65536 && c !== (c = /*$_*/
|
|
640
|
-
k[16]("minbet") + "") && D(h, c),
|
|
645
|
+
k[16]("minbet") + "") && D(h, c), M[0] & /*minbetcount*/
|
|
641
646
|
64 && D(
|
|
642
647
|
A,
|
|
643
648
|
/*minbetcount*/
|
|
644
649
|
k[6]
|
|
645
|
-
),
|
|
650
|
+
), M[0] & /*$_*/
|
|
646
651
|
65536 && b !== (b = /*$_*/
|
|
647
|
-
k[16]("seegames") + "") && D(j, b),
|
|
648
|
-
65536 &&
|
|
649
|
-
k[16]("here") + "") && D(
|
|
652
|
+
k[16]("seegames") + "") && D(j, b), M[0] & /*$_*/
|
|
653
|
+
65536 && R !== (R = /*$_*/
|
|
654
|
+
k[16]("here") + "") && D(O, R), M[0] & /*gameurl*/
|
|
650
655
|
256 && m(
|
|
651
|
-
|
|
656
|
+
v,
|
|
652
657
|
"href",
|
|
653
658
|
/*gameurl*/
|
|
654
659
|
k[8]
|
|
655
|
-
),
|
|
660
|
+
), M[0] & /*keepbrowsercontext*/
|
|
656
661
|
512 && F !== (F = /*keepbrowsercontext*/
|
|
657
|
-
k[9] === "true" ? "_self" : "_blank") && m(
|
|
662
|
+
k[9] === "true" ? "_self" : "_blank") && m(v, "target", F);
|
|
658
663
|
},
|
|
659
664
|
d(k) {
|
|
660
|
-
k && (C(e), C(p), C(f)), N = !1,
|
|
665
|
+
k && (C(e), C(p), C(f)), N = !1, Te(W);
|
|
661
666
|
}
|
|
662
667
|
};
|
|
663
668
|
}
|
|
664
|
-
function
|
|
669
|
+
function je(i) {
|
|
665
670
|
let e, t, n, a = (
|
|
666
671
|
/*title*/
|
|
667
|
-
i[1] === "undefined" &&
|
|
672
|
+
i[1] === "undefined" && $()
|
|
668
673
|
), s = (
|
|
669
674
|
/*title*/
|
|
670
|
-
i[1] !== "undefined" &&
|
|
675
|
+
i[1] !== "undefined" && ee(i)
|
|
671
676
|
);
|
|
672
677
|
return {
|
|
673
678
|
c() {
|
|
@@ -679,62 +684,63 @@ function Fe(i) {
|
|
|
679
684
|
},
|
|
680
685
|
p(u, d) {
|
|
681
686
|
/*title*/
|
|
682
|
-
u[1] === "undefined" ? a || (a =
|
|
683
|
-
u[1] !== "undefined" ? s ? s.p(u, d) : (s =
|
|
687
|
+
u[1] === "undefined" ? a || (a = $(), a.c(), a.m(e, t)) : a && (a.d(1), a = null), /*title*/
|
|
688
|
+
u[1] !== "undefined" ? s ? s.p(u, d) : (s = ee(u), s.c(), s.m(e, null)) : s && (s.d(1), s = null), d[0] & /*title*/
|
|
684
689
|
2 && n !== (n = `Thumbnail ${/*title*/
|
|
685
690
|
u[1] === "undefined" ? "Loading" : ""}`) && m(e, "class", n);
|
|
686
691
|
},
|
|
687
|
-
i:
|
|
688
|
-
o:
|
|
692
|
+
i: Z,
|
|
693
|
+
o: Z,
|
|
689
694
|
d(u) {
|
|
690
695
|
u && C(e), a && a.d(), s && s.d(), i[29](null);
|
|
691
696
|
}
|
|
692
697
|
};
|
|
693
698
|
}
|
|
694
|
-
function
|
|
699
|
+
function Ne(i, e, t) {
|
|
695
700
|
let n;
|
|
696
|
-
|
|
697
|
-
let { session: a = "" } = e, { userid: s = "" } = e, { title: u = "" } = e, { startdate: d = "" } = e, { status: l = "" } = e, { tourid: c = "" } = e, { thumbnail: h = "" } = e, { userenrolled: z = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: T = "" } = e, { showenrolled: p = "false" } = e, { gameurl: f = "" } = e, { lang: o = "en" } = e, { keepbrowsercontext: b = "false" } = e, { clientstyling: j = "" } = e, { clientstylingurl: x = "" } = e, { translationurl:
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
701
|
+
Se(i, Re, (r) => t(16, n = r));
|
|
702
|
+
let { session: a = "" } = e, { userid: s = "" } = e, { title: u = "" } = e, { startdate: d = "" } = e, { status: l = "" } = e, { tourid: c = "" } = e, { thumbnail: h = "" } = e, { userenrolled: z = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: T = "" } = e, { showenrolled: p = "false" } = e, { gameurl: f = "" } = e, { lang: o = "en" } = e, { keepbrowsercontext: b = "false" } = e, { clientstyling: j = "" } = e, { clientstylingurl: x = "" } = e, { translationurl: v = "" } = e, R, O = "", F = !1, N = "", W = "", k = "";
|
|
703
|
+
Je({ withLocale: "en", translations: {} });
|
|
704
|
+
const M = () => {
|
|
705
|
+
fetch(v).then((r) => r.json()).then((r) => {
|
|
706
|
+
Object.keys(r).forEach((J) => {
|
|
707
|
+
Q(J, r[J]);
|
|
708
|
+
}), d && K();
|
|
709
|
+
}).catch((r) => {
|
|
710
|
+
console.log(r);
|
|
705
711
|
});
|
|
706
712
|
};
|
|
707
|
-
Object.keys(
|
|
708
|
-
|
|
713
|
+
Object.keys(X).forEach((r) => {
|
|
714
|
+
Q(r, X[r]);
|
|
709
715
|
});
|
|
710
|
-
const
|
|
716
|
+
const q = (r) => {
|
|
711
717
|
r.data && (r.data && r.data.type == "SessionID" && t(12, F = !0), r.data.type == `TournamentStatus_${c}` && t(0, l = r.data.status));
|
|
712
718
|
}, P = () => {
|
|
713
719
|
const r = { month: "long" };
|
|
714
|
-
let
|
|
720
|
+
let J = new Date(d), E = new Intl.DateTimeFormat("en", r).format(J), de = J.getDate(), ce = J.toLocaleString("en-GB", {
|
|
715
721
|
hour: "numeric",
|
|
716
722
|
minute: "numeric",
|
|
717
723
|
hour12: !1
|
|
718
724
|
});
|
|
719
|
-
const
|
|
720
|
-
t(11,
|
|
725
|
+
const ge = () => n(l === "Running" ? "startedAt" : "startingAt");
|
|
726
|
+
t(11, O = `${de} ` + n(`${E}`) + ", " + ge() + ` ${ce}`);
|
|
721
727
|
}, U = () => {
|
|
722
728
|
l == "Unstarted" && (t(13, N = n("scheduled")), t(15, k = "StatusUnstarted")), l == "Running" && (t(13, N = n("ongoing")), t(15, k = "StatusRunning")), (l == "Closed" || l == "Closing") && t(13, N = n("finished")), l == "Closed" && t(15, k = "StatusClosed"), l == "Closing" && t(15, k = "StatusClosing");
|
|
723
729
|
}, G = () => {
|
|
724
730
|
A == "BetCount" && t(14, W = n("betCount")), A == "MaxWinStakeRatio" && t(14, W = n("maxWinStakeRatio")), A == "WinStakeRatio" && t(14, W = n("winStakeRatio")), A == "Stake" && t(14, W = n("stake"));
|
|
725
|
-
},
|
|
726
|
-
window.postMessage({ type: "tournamentGamesClicked", tourId:
|
|
727
|
-
}, re = () => {
|
|
728
|
-
a.length > 0 && a != "false" ? t(12, F = !0) : t(12, F = !1);
|
|
731
|
+
}, Y = (r, J) => {
|
|
732
|
+
window.postMessage({ type: "tournamentGamesClicked", tourId: J }, window.location.href);
|
|
729
733
|
}, se = () => {
|
|
730
|
-
|
|
731
|
-
r.innerHTML = j, J.appendChild(r);
|
|
734
|
+
a.length > 0 && a != "false" ? t(12, F = !0) : t(12, F = !1);
|
|
732
735
|
}, le = () => {
|
|
733
|
-
let r =
|
|
734
|
-
|
|
735
|
-
|
|
736
|
+
let r = document.createElement("style");
|
|
737
|
+
r.innerHTML = j, R.appendChild(r);
|
|
738
|
+
}, oe = () => {
|
|
739
|
+
let r = new URL(x), J = document.createElement("style");
|
|
740
|
+
fetch(r.href).then((E) => E.text()).then((E) => {
|
|
741
|
+
J.innerHTML = E, setTimeout(
|
|
736
742
|
() => {
|
|
737
|
-
|
|
743
|
+
R.appendChild(J);
|
|
738
744
|
},
|
|
739
745
|
1
|
|
740
746
|
), setTimeout(
|
|
@@ -744,27 +750,27 @@ function ze(i, e, t) {
|
|
|
744
750
|
);
|
|
745
751
|
});
|
|
746
752
|
};
|
|
747
|
-
|
|
748
|
-
window.removeEventListener("message",
|
|
753
|
+
Ce(() => (setTimeout(() => K(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", q, !1), () => {
|
|
754
|
+
window.removeEventListener("message", q);
|
|
749
755
|
}));
|
|
750
|
-
const
|
|
751
|
-
|
|
752
|
-
},
|
|
753
|
-
function
|
|
754
|
-
|
|
755
|
-
|
|
756
|
+
const K = () => {
|
|
757
|
+
De(o), G(), U(), d && P();
|
|
758
|
+
}, ue = () => Y();
|
|
759
|
+
function me(r) {
|
|
760
|
+
_e[r ? "unshift" : "push"](() => {
|
|
761
|
+
R = r, t(10, R);
|
|
756
762
|
});
|
|
757
763
|
}
|
|
758
764
|
return i.$$set = (r) => {
|
|
759
|
-
"session" in r && t(21, a = r.session), "userid" in r && t(22, s = r.userid), "title" in r && t(1, u = r.title), "startdate" in r && t(2, d = r.startdate), "status" in r && t(0, l = r.status), "tourid" in r && t(3, c = r.tourid), "thumbnail" in r && t(4, h = r.thumbnail), "userenrolled" in r && t(5, z = r.userenrolled), "scorecriteria" in r && t(23, A = r.scorecriteria), "minbetcount" in r && t(6, T = r.minbetcount), "showenrolled" in r && t(7, p = r.showenrolled), "gameurl" in r && t(8, f = r.gameurl), "lang" in r && t(24, o = r.lang), "keepbrowsercontext" in r && t(9, b = r.keepbrowsercontext), "clientstyling" in r && t(25, j = r.clientstyling), "clientstylingurl" in r && t(26, x = r.clientstylingurl), "translationurl" in r && t(27,
|
|
765
|
+
"session" in r && t(21, a = r.session), "userid" in r && t(22, s = r.userid), "title" in r && t(1, u = r.title), "startdate" in r && t(2, d = r.startdate), "status" in r && t(0, l = r.status), "tourid" in r && t(3, c = r.tourid), "thumbnail" in r && t(4, h = r.thumbnail), "userenrolled" in r && t(5, z = r.userenrolled), "scorecriteria" in r && t(23, A = r.scorecriteria), "minbetcount" in r && t(6, T = r.minbetcount), "showenrolled" in r && t(7, p = r.showenrolled), "gameurl" in r && t(8, f = r.gameurl), "lang" in r && t(24, o = r.lang), "keepbrowsercontext" in r && t(9, b = r.keepbrowsercontext), "clientstyling" in r && t(25, j = r.clientstyling), "clientstylingurl" in r && t(26, x = r.clientstylingurl), "translationurl" in r && t(27, v = r.translationurl);
|
|
760
766
|
}, i.$$.update = () => {
|
|
761
767
|
i.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
762
|
-
33555456 &&
|
|
763
|
-
67109888 &&
|
|
764
|
-
134217728 &&
|
|
765
|
-
2097152 && a &&
|
|
768
|
+
33555456 && R && j && le(), i.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
769
|
+
67109888 && R && x && oe(), i.$$.dirty[0] & /*translationurl*/
|
|
770
|
+
134217728 && v && M(), i.$$.dirty[0] & /*session*/
|
|
771
|
+
2097152 && a && se(), i.$$.dirty[0] & /*status*/
|
|
766
772
|
1 && l && U(), i.$$.dirty[0] & /*title, lang*/
|
|
767
|
-
16777218 && u && o &&
|
|
773
|
+
16777218 && u && o && K(), i.$$.dirty[0] & /*startdate*/
|
|
768
774
|
4 && d && P(), i.$$.dirty[0] & /*scorecriteria*/
|
|
769
775
|
8388608 && A && G();
|
|
770
776
|
}, [
|
|
@@ -778,8 +784,8 @@ function ze(i, e, t) {
|
|
|
778
784
|
p,
|
|
779
785
|
f,
|
|
780
786
|
b,
|
|
781
|
-
|
|
782
|
-
|
|
787
|
+
R,
|
|
788
|
+
O,
|
|
783
789
|
F,
|
|
784
790
|
N,
|
|
785
791
|
W,
|
|
@@ -788,26 +794,26 @@ function ze(i, e, t) {
|
|
|
788
794
|
P,
|
|
789
795
|
U,
|
|
790
796
|
G,
|
|
791
|
-
|
|
797
|
+
Y,
|
|
792
798
|
a,
|
|
793
799
|
s,
|
|
794
800
|
A,
|
|
795
801
|
o,
|
|
796
802
|
j,
|
|
797
803
|
x,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
804
|
+
v,
|
|
805
|
+
ue,
|
|
806
|
+
me
|
|
801
807
|
];
|
|
802
808
|
}
|
|
803
|
-
class
|
|
809
|
+
class We extends he {
|
|
804
810
|
constructor(e) {
|
|
805
|
-
super(),
|
|
811
|
+
super(), pe(
|
|
806
812
|
this,
|
|
807
813
|
e,
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
814
|
+
Ne,
|
|
815
|
+
je,
|
|
816
|
+
ke,
|
|
811
817
|
{
|
|
812
818
|
session: 21,
|
|
813
819
|
userid: 22,
|
|
@@ -827,7 +833,7 @@ class je extends be {
|
|
|
827
833
|
clientstylingurl: 26,
|
|
828
834
|
translationurl: 27
|
|
829
835
|
},
|
|
830
|
-
|
|
836
|
+
Ie,
|
|
831
837
|
[-1, -1]
|
|
832
838
|
);
|
|
833
839
|
}
|
|
@@ -934,7 +940,7 @@ class je extends be {
|
|
|
934
940
|
this.$$set({ translationurl: e }), S();
|
|
935
941
|
}
|
|
936
942
|
}
|
|
937
|
-
|
|
943
|
+
we(We, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
938
944
|
export {
|
|
939
|
-
|
|
945
|
+
We as default
|
|
940
946
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-BNVcBVyF.cjs");require("../stencil/ui-skeleton-se83zfWh.cjs");require("../stencil/ui-image-DE8MJHCZ.cjs");function ie({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function W(a,t){e.addMessages(a,t)}function ae(a){e.$locale.set(a)}const L={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",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 ne(a){e.append_styles(a,"svelte-1bncdcr",':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{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{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 E(a){let t,i,r;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),r=e.element("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>',e.attr(t,"class","Skeleton CardImg"),e.attr(r,"class","Details"),e.attr(r,"part","Details")},m(n,l){e.insert(n,t,l),e.insert(n,i,l),e.insert(n,r,l)},d(n){n&&(e.detach(t),e.detach(i),e.detach(r))}}}function P(a){let t,i,r,n,l,d,m,o,c=a[0]&&B(a),h=a[7]=="true"&&U(a);function v(u,f){return u[4]?se:re}let _=v(a),k=_(a),b=a[2]&&q(a),g=a[12]&&K(a);return{c(){c&&c.c(),t=e.space(),h&&h.c(),i=e.space(),k.c(),r=e.space(),n=e.element("div"),l=e.element("div"),d=e.text(a[1]),m=e.space(),b&&b.c(),o=e.space(),g&&g.c(),e.attr(l,"class","Title"),e.attr(l,"part","Title"),e.attr(n,"class","Details"),e.attr(n,"part","Details")},m(u,f){c&&c.m(u,f),e.insert(u,t,f),h&&h.m(u,f),e.insert(u,i,f),k.m(u,f),e.insert(u,r,f),e.insert(u,n,f),e.append(n,l),e.append(l,d),e.append(n,m),b&&b.m(n,null),e.append(n,o),g&&g.m(n,null)},p(u,f){u[0]?c?c.p(u,f):(c=B(u),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),u[7]=="true"?h?h.p(u,f):(h=U(u),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),_===(_=v(u))&&k?k.p(u,f):(k.d(1),k=_(u),k&&(k.c(),k.m(r.parentNode,r))),f[0]&2&&e.set_data(d,u[1]),u[2]?b?b.p(u,f):(b=q(u),b.c(),b.m(n,o)):b&&(b.d(1),b=null),u[12]?g?g.p(u,f):(g=K(u),g.c(),g.m(n,null)):g&&(g.d(1),g=null)},d(u){u&&(e.detach(t),e.detach(i),e.detach(r),e.detach(n)),c&&c.d(u),h&&h.d(u),k.d(u),b&&b.d(),g&&g.d()}}}function B(a){let t,i,r,n,l,d;return{c(){t=e.element("div"),i=e.text(a[13]),e.attr(t,"class",r="Status "+a[15]),e.attr(t,"part",n="Status "+a[15])},m(m,o){e.insert(m,t,o),e.append(t,i),l||(d=e.action_destroyer(a[18].call(null,t)),l=!0)},p(m,o){o[0]&8192&&e.set_data(i,m[13]),o[0]&32768&&r!==(r="Status "+m[15])&&e.attr(t,"class",r),o[0]&32768&&n!==(n="Status "+m[15])&&e.attr(t,"part",n)},d(m){m&&e.detach(t),l=!1,d()}}}function U(a){let t,i=a[5]&&G(a);return{c(){i&&i.c(),t=e.empty()},m(r,n){i&&i.m(r,n),e.insert(r,t,n)},p(r,n){r[5]?i?i.p(r,n):(i=G(r),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(r){r&&e.detach(t),i&&i.d(r)}}}function G(a){let t,i=a[16]("enrolled")+"",r;return{c(){t=e.element("div"),r=e.text(i),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(n,l){e.insert(n,t,l),e.append(t,r)},p(n,l){l[0]&65536&&i!==(i=n[16]("enrolled")+"")&&e.set_data(r,i)},d(n){n&&e.detach(t)}}}function re(a){let t,i,r,n,l,d,m;return{c(){t=e.element("div"),i=e.element("ui-image"),e.src_url_equal(i.src,r="https://i.stack.imgur.com/y9DpT.jpg")||e.set_custom_element_data(i,"src",r),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(o,c){e.insert(o,t,c),e.append(t,i),d||(m=e.action_destroyer(a[18].call(null,t)),d=!0)},p(o,c){c[0]&1&&n!==(n="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),c[0]&1&&l!==(l="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(o){o&&e.detach(t),d=!1,m()}}}function se(a){let t,i,r,n,l,d,m;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,r=a[4])||e.set_custom_element_data(i,"src",r),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(o,c){e.insert(o,t,c),e.append(t,i),d||(m=e.action_destroyer(a[18].call(null,t)),d=!0)},p(o,c){c[0]&16&&!e.src_url_equal(i.src,r=o[4])&&e.set_custom_element_data(i,"src",r),c[0]&1&&n!==(n="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),c[0]&1&&l!==(l="CardImg "+(o[0]=="Closing"||o[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(o){o&&e.detach(t),d=!1,m()}}}function q(a){let t,i,r,n,l;return{c(){t=e.element("div"),i=e.text(a[11]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(d,m){e.insert(d,t,m),e.append(t,i),n||(l=e.action_destroyer(r=a[17].call(null,t,a[2])),n=!0)},p(d,m){m[0]&2048&&e.set_data(i,d[11]),r&&e.is_function(r.update)&&m[0]&4&&r.update.call(null,d[2])},d(d){d&&e.detach(t),n=!1,l()}}}function K(a){let t,i,r=a[16]("scoreCriteria")+"",n,l,d,m,o,c=a[16]("minbet")+"",h,v,_,k,b,g,u,f=a[16]("seegames")+"",M,J,y,C=a[16]("here")+"",D,T,w,R;return{c(){t=e.element("div"),i=e.element("p"),n=e.text(r),l=e.text(`:
|
|
2
|
+
|
|
3
|
+
`),d=e.element("span"),m=e.text(a[14]),o=e.text(`
|
|
4
|
+
(`),h=e.text(c),v=e.space(),_=e.text(a[6]),k=e.text(")"),b=e.space(),g=e.element("div"),u=e.element("p"),M=e.text(f),J=e.space(),y=e.element("a"),D=e.text(C),e.attr(d,"part","ScoreCriteriaSpan"),e.attr(i,"part","ScoreCriteriaP"),e.attr(t,"class","ScoreCriteria"),e.attr(t,"part","ScoreCriteria"),e.attr(y,"part","GamesAnchor"),e.attr(y,"href",a[8]),e.attr(y,"target",T=a[9]==="true"?"_self":"_blank"),e.attr(u,"part","GamesP"),e.attr(g,"class","Games"),e.attr(g,"part","Games")},m(p,S){e.insert(p,t,S),e.append(t,i),e.append(i,n),e.append(i,l),e.append(i,d),e.append(d,m),e.append(i,o),e.append(i,h),e.append(i,v),e.append(i,_),e.append(i,k),e.insert(p,b,S),e.insert(p,g,S),e.append(g,u),e.append(u,M),e.append(u,J),e.append(u,y),e.append(y,D),w||(R=[e.action_destroyer(a[19].call(null,d)),e.listen(y,"click",a[28])],w=!0)},p(p,S){S[0]&65536&&r!==(r=p[16]("scoreCriteria")+"")&&e.set_data(n,r),S[0]&16384&&e.set_data(m,p[14]),S[0]&65536&&c!==(c=p[16]("minbet")+"")&&e.set_data(h,c),S[0]&64&&e.set_data(_,p[6]),S[0]&65536&&f!==(f=p[16]("seegames")+"")&&e.set_data(M,f),S[0]&65536&&C!==(C=p[16]("here")+"")&&e.set_data(D,C),S[0]&256&&e.attr(y,"href",p[8]),S[0]&512&&T!==(T=p[9]==="true"?"_self":"_blank")&&e.attr(y,"target",T)},d(p){p&&(e.detach(t),e.detach(b),e.detach(g)),w=!1,e.run_all(R)}}}function le(a){let t,i,r,n=a[1]==="undefined"&&E(),l=a[1]!=="undefined"&&P(a);return{c(){t=e.element("div"),n&&n.c(),i=e.space(),l&&l.c(),e.attr(t,"class",r=`Thumbnail ${a[1]==="undefined"?"Loading":""}`),e.attr(t,"part","Thumbnail")},m(d,m){e.insert(d,t,m),n&&n.m(t,null),e.append(t,i),l&&l.m(t,null),a[29](t)},p(d,m){d[1]==="undefined"?n||(n=E(),n.c(),n.m(t,i)):n&&(n.d(1),n=null),d[1]!=="undefined"?l?l.p(d,m):(l=P(d),l.c(),l.m(t,null)):l&&(l.d(1),l=null),m[0]&2&&r!==(r=`Thumbnail ${d[1]==="undefined"?"Loading":""}`)&&e.attr(t,"class",r)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),n&&n.d(),l&&l.d(),a[29](null)}}}function oe(a,t,i){let r;e.component_subscribe(a,e.$format,s=>i(16,r=s));let{session:n=""}=t,{userid:l=""}=t,{title:d=""}=t,{startdate:m=""}=t,{status:o=""}=t,{tourid:c=""}=t,{thumbnail:h=""}=t,{userenrolled:v=""}=t,{scorecriteria:_=""}=t,{minbetcount:k=""}=t,{showenrolled:b="false"}=t,{gameurl:g=""}=t,{lang:u="en"}=t,{keepbrowsercontext:f="false"}=t,{clientstyling:M=""}=t,{clientstylingurl:J=""}=t,{translationurl:y=""}=t,C,D="",T=!1,w="",R="",p="";ie({withLocale:"en",translations:{}});const S=()=>{fetch(y).then(s=>s.json()).then(s=>{Object.keys(s).forEach(A=>{W(A,s[A])}),m&&z()}).catch(s=>{console.log(s)})};Object.keys(L).forEach(s=>{W(s,L[s])});const N=s=>{s.data&&(s.data&&s.data.type=="SessionID"&&i(12,T=!0),s.data.type==`TournamentStatus_${c}`&&i(0,o=s.data.status))},x=()=>{const s={month:"long"};let A=new Date(m),I=new Intl.DateTimeFormat("en",s).format(A),$=A.getDate(),ee=A.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const te=()=>r(o==="Running"?"startedAt":"startingAt");i(11,D=`${$} `+r(`${I}`)+", "+te()+` ${ee}`)},F=()=>{o=="Unstarted"&&(i(13,w=r("scheduled")),i(15,p="StatusUnstarted")),o=="Running"&&(i(13,w=r("ongoing")),i(15,p="StatusRunning")),(o=="Closed"||o=="Closing")&&i(13,w=r("finished")),o=="Closed"&&i(15,p="StatusClosed"),o=="Closing"&&i(15,p="StatusClosing")},j=()=>{_=="BetCount"&&i(14,R=r("betCount")),_=="MaxWinStakeRatio"&&i(14,R=r("maxWinStakeRatio")),_=="WinStakeRatio"&&i(14,R=r("winStakeRatio")),_=="Stake"&&i(14,R=r("stake"))},O=(s,A)=>{window.postMessage({type:"tournamentGamesClicked",tourId:A},window.location.href)},V=()=>{n.length>0&&n!="false"?i(12,T=!0):i(12,T=!1)},Y=()=>{let s=document.createElement("style");s.innerHTML=M,C.appendChild(s)},Z=()=>{let s=new URL(J),A=document.createElement("style");fetch(s.href).then(I=>I.text()).then(I=>{A.innerHTML=I,setTimeout(()=>{C.appendChild(A)},1),setTimeout(()=>{},500)})};e.onMount(()=>(setTimeout(()=>z(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",N,!1),()=>{window.removeEventListener("message",N)}));const z=()=>{ae(u),j(),F(),m&&x()},Q=()=>O();function X(s){e.binding_callbacks[s?"unshift":"push"](()=>{C=s,i(10,C)})}return a.$$set=s=>{"session"in s&&i(21,n=s.session),"userid"in s&&i(22,l=s.userid),"title"in s&&i(1,d=s.title),"startdate"in s&&i(2,m=s.startdate),"status"in s&&i(0,o=s.status),"tourid"in s&&i(3,c=s.tourid),"thumbnail"in s&&i(4,h=s.thumbnail),"userenrolled"in s&&i(5,v=s.userenrolled),"scorecriteria"in s&&i(23,_=s.scorecriteria),"minbetcount"in s&&i(6,k=s.minbetcount),"showenrolled"in s&&i(7,b=s.showenrolled),"gameurl"in s&&i(8,g=s.gameurl),"lang"in s&&i(24,u=s.lang),"keepbrowsercontext"in s&&i(9,f=s.keepbrowsercontext),"clientstyling"in s&&i(25,M=s.clientstyling),"clientstylingurl"in s&&i(26,J=s.clientstylingurl),"translationurl"in s&&i(27,y=s.translationurl)},a.$$.update=()=>{a.$$.dirty[0]&33555456&&C&&M&&Y(),a.$$.dirty[0]&67109888&&C&&J&&Z(),a.$$.dirty[0]&134217728&&y&&S(),a.$$.dirty[0]&2097152&&n&&V(),a.$$.dirty[0]&1&&o&&F(),a.$$.dirty[0]&16777218&&d&&u&&z(),a.$$.dirty[0]&4&&m&&x(),a.$$.dirty[0]&8388608&&_&&j()},[o,d,m,c,h,v,k,b,g,f,C,D,T,w,R,p,r,x,F,j,O,n,l,_,u,M,J,y,Q,X]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,le,e.safe_not_equal,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},ne,[-1,-1])}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[22]}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[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get gameurl(){return this.$$.ctx[8]}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[9]}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()}}e.create_custom_element(H,{session:{},userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=H;
|