@everymatrix/casino-tournaments-list-controller 1.45.9 → 1.45.10
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-CzWUrKNT.js → CasinoTournamentsListController-B1xTLVoN.js} +1 -1
- package/components/{CasinoTournamentsListController-CfGCrga5.cjs → CasinoTournamentsListController-BU4FKrpi.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-BLJDtW59.js → CasinoTournamentsThumbnail-Cz4y3Kiw.js} +54 -54
- package/components/CasinoTournamentsThumbnail-wFdASFKI.cjs +4 -0
- package/components/{CasinoTournamentsThumbnailController-D5sRsv84.cjs → CasinoTournamentsThumbnailController-D6lAoamq.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailController-C0oOIMYt.js → CasinoTournamentsThumbnailController-DvZjjCxH.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-lIzk79P7.cjs → CasinoTournamentsThumbnailDuration-D3lviBKK.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DSw-cSpH.js → CasinoTournamentsThumbnailDuration-kWh8Jxo6.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-CeKf3-8y.cjs → CasinoTournamentsThumbnailGamesSlider-CvLdAisC.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-V4tz-uaQ.js → CasinoTournamentsThumbnailGamesSlider-uuLKQtp_.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-p7cyaJ_K.js → CasinoTournamentsThumbnailPrizes-CXEIpZAR.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DDmo8rw_.cjs → CasinoTournamentsThumbnailPrizes-UDy9iHXs.cjs} +1 -1
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-HFzVNG-4.cjs +0 -4
package/components/{CasinoTournamentsThumbnail-BLJDtW59.js → CasinoTournamentsThumbnail-Cz4y3Kiw.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ue, $ as me, S as de, i as ce, f as C, c as ge, s as be, b as fe, e as _, d as N, t as M, g as m, h as D, j as c, k as J, n as
|
|
2
|
-
function
|
|
1
|
+
import { a as ue, $ as me, S as de, i as ce, f as C, c as ge, s as be, b as fe, e as _, d as N, t as M, g as m, h as D, j as c, k as J, n as V, l as j, m as he, o as ye, p as L, q as pe, r as ke, u as Ce, v as Se, w as Ae, x as K, y as _e } from "./CasinoTournamentsListController-B1xTLVoN.js";
|
|
2
|
+
function H(i, e) {
|
|
3
3
|
ue(i, e);
|
|
4
4
|
}
|
|
5
5
|
function Te(i) {
|
|
@@ -38,22 +38,22 @@ const q = {
|
|
|
38
38
|
December: "December"
|
|
39
39
|
},
|
|
40
40
|
hr: {
|
|
41
|
-
enrolled: "
|
|
42
|
-
scoreCriteria: "Kriterij
|
|
43
|
-
minbet: "
|
|
44
|
-
seegames: "
|
|
41
|
+
enrolled: "Sudjeluje",
|
|
42
|
+
scoreCriteria: "Kriterij bodovanja",
|
|
43
|
+
minbet: "Minimalni ulog",
|
|
44
|
+
seegames: "Vidi igre",
|
|
45
45
|
here: "ovdje",
|
|
46
|
-
scheduled: "
|
|
47
|
-
ongoing: "
|
|
48
|
-
finished: "
|
|
46
|
+
scheduled: "Zakazano",
|
|
47
|
+
ongoing: "U tijeku",
|
|
48
|
+
finished: "Završeno",
|
|
49
49
|
startingAt: "Počinje u:",
|
|
50
50
|
startedAt: "Počelo u:",
|
|
51
51
|
startingAtWithTime: "Počinje {startTime}",
|
|
52
52
|
startedAtWithTime: "Počelo {startTime}",
|
|
53
53
|
mostRounds: "Najviše krugova",
|
|
54
|
-
betCount: "Broj
|
|
54
|
+
betCount: "Broj uloga",
|
|
55
55
|
maxWinStakeRatio: "Maksimalni dobitak po ulogu",
|
|
56
|
-
winStakeRatio: "
|
|
56
|
+
winStakeRatio: "Dobitak po ulogu",
|
|
57
57
|
stake: "Ulog",
|
|
58
58
|
January: "Siječanj",
|
|
59
59
|
February: "Veljača",
|
|
@@ -309,7 +309,7 @@ const q = {
|
|
|
309
309
|
function ve(i) {
|
|
310
310
|
fe(i, "svelte-u7ryj4", ':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"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.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(--emfe-w-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(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-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}.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}');
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Z(i) {
|
|
313
313
|
let e, t, r, s, o, n;
|
|
314
314
|
return {
|
|
315
315
|
c() {
|
|
@@ -343,14 +343,14 @@ function Y(i) {
|
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Y(i) {
|
|
347
347
|
let e, t = (
|
|
348
348
|
/*userenrolled*/
|
|
349
349
|
i[4] && Q(i)
|
|
350
350
|
);
|
|
351
351
|
return {
|
|
352
352
|
c() {
|
|
353
|
-
t && t.c(), e =
|
|
353
|
+
t && t.c(), e = pe();
|
|
354
354
|
},
|
|
355
355
|
m(r, s) {
|
|
356
356
|
t && t.m(r, s), D(r, e, s);
|
|
@@ -394,7 +394,7 @@ function Me(i) {
|
|
|
394
394
|
(i[0] == "Closing" || /*status*/
|
|
395
395
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", r = "CardImg " + /*status*/
|
|
396
396
|
(i[0] == "Closing" || /*status*/
|
|
397
|
-
i[0] == "Closed" ? "CardImgFinished" : "")),
|
|
397
|
+
i[0] == "Closed" ? "CardImgFinished" : "")), K(e, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
|
|
398
398
|
},
|
|
399
399
|
m(n, l) {
|
|
400
400
|
D(n, e, l), s || (o = L(
|
|
@@ -424,7 +424,7 @@ function we(i) {
|
|
|
424
424
|
(i[0] == "Closing" || /*status*/
|
|
425
425
|
i[0] == "Closed" ? "CardImgFinished" : "")), m(e, "part", r = "CardImg " + /*status*/
|
|
426
426
|
(i[0] == "Closing" || /*status*/
|
|
427
|
-
i[0] == "Closed" ? "CardImgFinished" : "")),
|
|
427
|
+
i[0] == "Closed" ? "CardImgFinished" : "")), K(e, "background-image", "url('" + /*thumbnail*/
|
|
428
428
|
i[3] + "')");
|
|
429
429
|
},
|
|
430
430
|
m(n, l) {
|
|
@@ -441,7 +441,7 @@ function we(i) {
|
|
|
441
441
|
1 && r !== (r = "CardImg " + /*status*/
|
|
442
442
|
(n[0] == "Closing" || /*status*/
|
|
443
443
|
n[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "part", r), l[0] & /*thumbnail*/
|
|
444
|
-
8 &&
|
|
444
|
+
8 && K(e, "background-image", "url('" + /*thumbnail*/
|
|
445
445
|
n[3] + "')");
|
|
446
446
|
},
|
|
447
447
|
d(n) {
|
|
@@ -495,7 +495,7 @@ function $(i) {
|
|
|
495
495
|
), f, h, A, R, k, g, d, u = (
|
|
496
496
|
/*$_*/
|
|
497
497
|
i[13]("seegames") + ""
|
|
498
|
-
),
|
|
498
|
+
), y, O, I, w = (
|
|
499
499
|
/*$_*/
|
|
500
500
|
i[13]("here") + ""
|
|
501
501
|
), E, z, W;
|
|
@@ -510,10 +510,10 @@ function $(i) {
|
|
|
510
510
|
(`), f = M(T), h = N(), A = M(
|
|
511
511
|
/*minbetcount*/
|
|
512
512
|
i[5]
|
|
513
|
-
), R = M(")"), k = N(), g = _("div"), d = _("p"),
|
|
513
|
+
), R = M(")"), k = N(), g = _("div"), d = _("p"), y = M(u), O = N(), I = _("span"), E = M(w), m(n, "part", "ScoreCriteriaSpan"), m(t, "part", "ScoreCriteriaP"), m(e, "class", "ScoreCriteria"), m(e, "part", "ScoreCriteria"), m(d, "part", "GamesP"), m(g, "class", "Games"), m(g, "part", "Games");
|
|
514
514
|
},
|
|
515
|
-
m(
|
|
516
|
-
D(
|
|
515
|
+
m(p, S) {
|
|
516
|
+
D(p, e, S), c(e, t), c(t, s), c(t, o), c(t, n), c(n, l), c(t, b), c(t, f), c(t, h), c(t, A), c(t, R), D(p, k, S), D(p, g, S), c(g, d), c(d, y), c(d, O), c(d, I), c(I, E), z || (W = [
|
|
517
517
|
L(
|
|
518
518
|
/*matchScoreCriteria*/
|
|
519
519
|
i[16].call(null, n)
|
|
@@ -526,41 +526,41 @@ function $(i) {
|
|
|
526
526
|
)
|
|
527
527
|
], z = !0);
|
|
528
528
|
},
|
|
529
|
-
p(
|
|
529
|
+
p(p, S) {
|
|
530
530
|
S[0] & /*$_*/
|
|
531
531
|
8192 && r !== (r = /*$_*/
|
|
532
|
-
|
|
532
|
+
p[13]("scoreCriteria") + "") && J(s, r), S[0] & /*showScoreCriteria*/
|
|
533
533
|
2048 && J(
|
|
534
534
|
l,
|
|
535
535
|
/*showScoreCriteria*/
|
|
536
|
-
|
|
536
|
+
p[11]
|
|
537
537
|
), S[0] & /*$_*/
|
|
538
538
|
8192 && T !== (T = /*$_*/
|
|
539
|
-
|
|
539
|
+
p[13]("minbet") + "") && J(f, T), S[0] & /*minbetcount*/
|
|
540
540
|
32 && J(
|
|
541
541
|
A,
|
|
542
542
|
/*minbetcount*/
|
|
543
|
-
|
|
543
|
+
p[5]
|
|
544
544
|
), S[0] & /*$_*/
|
|
545
545
|
8192 && u !== (u = /*$_*/
|
|
546
|
-
|
|
546
|
+
p[13]("seegames") + "") && J(y, u), S[0] & /*$_*/
|
|
547
547
|
8192 && w !== (w = /*$_*/
|
|
548
|
-
|
|
548
|
+
p[13]("here") + "") && J(E, w);
|
|
549
549
|
},
|
|
550
|
-
d(
|
|
551
|
-
|
|
550
|
+
d(p) {
|
|
551
|
+
p && (j(e), j(k), j(g)), z = !1, Se(W);
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
function Re(i) {
|
|
556
556
|
let e, t, r, s, o, n, l, b, T, f = (
|
|
557
557
|
/*status*/
|
|
558
|
-
i[0] &&
|
|
558
|
+
i[0] && Z(i)
|
|
559
559
|
), h = (
|
|
560
560
|
/*showenrolled*/
|
|
561
|
-
i[6] == "true" &&
|
|
561
|
+
i[6] == "true" && Y(i)
|
|
562
562
|
);
|
|
563
|
-
function A(u,
|
|
563
|
+
function A(u, y) {
|
|
564
564
|
return (
|
|
565
565
|
/*thumbnail*/
|
|
566
566
|
u[3] ? we : Me
|
|
@@ -580,23 +580,23 @@ function Re(i) {
|
|
|
580
580
|
i[1]
|
|
581
581
|
), b = N(), g && g.c(), T = N(), d && d.c(), m(n, "class", "Title"), m(n, "part", "Title"), m(o, "class", "Details"), m(o, "part", "Details"), m(e, "class", "Thumbnail"), m(e, "part", "Thumbnail");
|
|
582
582
|
},
|
|
583
|
-
m(u,
|
|
584
|
-
D(u, e,
|
|
583
|
+
m(u, y) {
|
|
584
|
+
D(u, e, y), f && f.m(e, null), c(e, t), h && h.m(e, null), c(e, r), k.m(e, null), c(e, s), c(e, o), c(o, n), c(n, l), c(o, b), g && g.m(o, null), c(o, T), d && d.m(o, null), i[28](e);
|
|
585
585
|
},
|
|
586
|
-
p(u,
|
|
586
|
+
p(u, y) {
|
|
587
587
|
/*status*/
|
|
588
|
-
u[0] ? f ? f.p(u,
|
|
589
|
-
u[6] == "true" ? h ? h.p(u,
|
|
588
|
+
u[0] ? f ? f.p(u, y) : (f = Z(u), f.c(), f.m(e, t)) : f && (f.d(1), f = null), /*showenrolled*/
|
|
589
|
+
u[6] == "true" ? h ? h.p(u, y) : (h = Y(u), h.c(), h.m(e, r)) : h && (h.d(1), h = null), R === (R = A(u)) && k ? k.p(u, y) : (k.d(1), k = R(u), k && (k.c(), k.m(e, s))), y[0] & /*title*/
|
|
590
590
|
2 && J(
|
|
591
591
|
l,
|
|
592
592
|
/*title*/
|
|
593
593
|
u[1]
|
|
594
594
|
), /*startdate*/
|
|
595
|
-
u[2] ? g ? g.p(u,
|
|
596
|
-
u[9] ? d ? d.p(u,
|
|
595
|
+
u[2] ? g ? g.p(u, y) : (g = X(u), g.c(), g.m(o, T)) : g && (g.d(1), g = null), /*isLoggedIn*/
|
|
596
|
+
u[9] ? d ? d.p(u, y) : (d = $(u), d.c(), d.m(o, null)) : d && (d.d(1), d = null);
|
|
597
597
|
},
|
|
598
|
-
i:
|
|
599
|
-
o:
|
|
598
|
+
i: V,
|
|
599
|
+
o: V,
|
|
600
600
|
d(u) {
|
|
601
601
|
u && j(e), f && f.d(), h && h.d(), k.d(), g && g.d(), d && d.d(), i[28](null);
|
|
602
602
|
}
|
|
@@ -605,20 +605,20 @@ function Re(i) {
|
|
|
605
605
|
function Je(i, e, t) {
|
|
606
606
|
let r;
|
|
607
607
|
he(i, _e, (a) => t(13, r = a));
|
|
608
|
-
let { session: s = "" } = e, { userid: o = "" } = e, { title: n = "" } = e, { startdate: l = "" } = e, { status: b = "" } = e, { tourid: T = "" } = e, { thumbnail: f = "" } = e, { userenrolled: h = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: R = "" } = e, { showenrolled: k = "false" } = e, { gameurl: g = "" } = e, { lang: d = "en" } = e, { keepbrowsercontext: u = "false" } = e, { clientstyling:
|
|
608
|
+
let { session: s = "" } = e, { userid: o = "" } = e, { title: n = "" } = e, { startdate: l = "" } = e, { status: b = "" } = e, { tourid: T = "" } = e, { thumbnail: f = "" } = e, { userenrolled: h = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: R = "" } = e, { showenrolled: k = "false" } = e, { gameurl: g = "" } = e, { lang: d = "en" } = e, { keepbrowsercontext: u = "false" } = e, { clientstyling: y = "" } = e, { clientstylingurl: O = "" } = e, { translationurl: I = "" } = e, w, E = "", z = !1, W = "", p = "", S = "";
|
|
609
609
|
const ee = () => {
|
|
610
610
|
fetch(I).then((v) => v.json()).then((v) => {
|
|
611
611
|
Object.keys(v).forEach((F) => {
|
|
612
|
-
|
|
612
|
+
H(F, v[F]);
|
|
613
613
|
});
|
|
614
614
|
}).catch((v) => {
|
|
615
615
|
console.log(v);
|
|
616
616
|
});
|
|
617
617
|
};
|
|
618
618
|
Object.keys(q).forEach((a) => {
|
|
619
|
-
|
|
619
|
+
H(a, q[a]);
|
|
620
620
|
});
|
|
621
|
-
const
|
|
621
|
+
const U = (a) => {
|
|
622
622
|
a.data && (a.data && a.data.type == "SessionID" && t(9, z = !0), a.data.type == `TournamentStatus_${T}` && t(0, b = a.data.status));
|
|
623
623
|
}, P = () => {
|
|
624
624
|
const a = { month: "long" };
|
|
@@ -632,7 +632,7 @@ function Je(i, e, t) {
|
|
|
632
632
|
}, B = () => {
|
|
633
633
|
b == "Unstarted" && (t(10, W = r("scheduled")), t(12, S = "StatusUnstarted")), b == "Running" && (t(10, W = r("ongoing")), t(12, S = "StatusRunning")), (b == "Closed" || b == "Closing") && t(10, W = r("finished")), b == "Closed" && t(12, S = "StatusClosed"), b == "Closing" && t(12, S = "StatusClosing");
|
|
634
634
|
}, x = () => {
|
|
635
|
-
A == "BetCount" && t(11,
|
|
635
|
+
A == "BetCount" && t(11, p = r("betCount")), A == "MaxWinStakeRatio" && t(11, p = r("maxWinStakeRatio")), A == "WinStakeRatio" && t(11, p = r("winStakeRatio")), A == "Stake" && t(11, p = r("stake"));
|
|
636
636
|
}, te = () => {
|
|
637
637
|
window.postMessage(
|
|
638
638
|
{
|
|
@@ -646,7 +646,7 @@ function Je(i, e, t) {
|
|
|
646
646
|
s.length > 0 && s != "false" ? t(9, z = !0) : t(9, z = !1);
|
|
647
647
|
}, ae = () => {
|
|
648
648
|
let a = document.createElement("style");
|
|
649
|
-
a.innerHTML =
|
|
649
|
+
a.innerHTML = y, w.appendChild(a);
|
|
650
650
|
}, re = () => {
|
|
651
651
|
let a = new URL(O), v = document.createElement("style");
|
|
652
652
|
fetch(a.href).then((F) => F.text()).then((F) => {
|
|
@@ -662,8 +662,8 @@ function Je(i, e, t) {
|
|
|
662
662
|
);
|
|
663
663
|
});
|
|
664
664
|
};
|
|
665
|
-
|
|
666
|
-
window.removeEventListener("message",
|
|
665
|
+
ye(() => (setTimeout(() => G(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", U, !1), () => {
|
|
666
|
+
window.removeEventListener("message", U);
|
|
667
667
|
}));
|
|
668
668
|
const G = () => {
|
|
669
669
|
Te(d), x(), B(), l && P();
|
|
@@ -674,10 +674,10 @@ function Je(i, e, t) {
|
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
return i.$$set = (a) => {
|
|
677
|
-
"session" in a && t(18, s = a.session), "userid" in a && t(19, o = a.userid), "title" in a && t(1, n = a.title), "startdate" in a && t(2, l = a.startdate), "status" in a && t(0, b = a.status), "tourid" in a && t(20, T = a.tourid), "thumbnail" in a && t(3, f = a.thumbnail), "userenrolled" in a && t(4, h = a.userenrolled), "scorecriteria" in a && t(21, A = a.scorecriteria), "minbetcount" in a && t(5, R = a.minbetcount), "showenrolled" in a && t(6, k = a.showenrolled), "gameurl" in a && t(22, g = a.gameurl), "lang" in a && t(23, d = a.lang), "keepbrowsercontext" in a && t(24, u = a.keepbrowsercontext), "clientstyling" in a && t(25,
|
|
677
|
+
"session" in a && t(18, s = a.session), "userid" in a && t(19, o = a.userid), "title" in a && t(1, n = a.title), "startdate" in a && t(2, l = a.startdate), "status" in a && t(0, b = a.status), "tourid" in a && t(20, T = a.tourid), "thumbnail" in a && t(3, f = a.thumbnail), "userenrolled" in a && t(4, h = a.userenrolled), "scorecriteria" in a && t(21, A = a.scorecriteria), "minbetcount" in a && t(5, R = a.minbetcount), "showenrolled" in a && t(6, k = a.showenrolled), "gameurl" in a && t(22, g = a.gameurl), "lang" in a && t(23, d = a.lang), "keepbrowsercontext" in a && t(24, u = a.keepbrowsercontext), "clientstyling" in a && t(25, y = a.clientstyling), "clientstylingurl" in a && t(26, O = a.clientstylingurl), "translationurl" in a && t(27, I = a.translationurl);
|
|
678
678
|
}, i.$$.update = () => {
|
|
679
679
|
i.$$.dirty[0] & /*customStylingContainer, clientstyling*/
|
|
680
|
-
33554560 && w &&
|
|
680
|
+
33554560 && w && y && ae(), i.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
|
|
681
681
|
67108992 && w && O && re(), i.$$.dirty[0] & /*translationurl*/
|
|
682
682
|
134217728 && I && ee(), i.$$.dirty[0] & /*session*/
|
|
683
683
|
262144 && s && ie(), i.$$.dirty[0] & /*status*/
|
|
@@ -697,7 +697,7 @@ function Je(i, e, t) {
|
|
|
697
697
|
E,
|
|
698
698
|
z,
|
|
699
699
|
W,
|
|
700
|
-
|
|
700
|
+
p,
|
|
701
701
|
S,
|
|
702
702
|
r,
|
|
703
703
|
P,
|
|
@@ -711,7 +711,7 @@ function Je(i, e, t) {
|
|
|
711
711
|
g,
|
|
712
712
|
d,
|
|
713
713
|
u,
|
|
714
|
-
|
|
714
|
+
y,
|
|
715
715
|
O,
|
|
716
716
|
I,
|
|
717
717
|
ne
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-BU4FKrpi.cjs");function O(a,t){e.addMessages(a,t)}function $(a){e.$locale.set(a)}const x={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"}};function ee(a){e.append_styles(a,"svelte-u7ryj4",':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"}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.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(--emfe-w-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(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-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}.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 W(a){let t,i,r,l,u,s;return{c(){t=e.element("div"),i=e.text(a[10]),e.attr(t,"class",r="Status "+a[12]),e.attr(t,"part",l="Status "+a[12])},m(o,g){e.insert(o,t,g),e.append(t,i),u||(s=e.action_destroyer(a[15].call(null,t)),u=!0)},p(o,g){g[0]&1024&&e.set_data(i,o[10]),g[0]&4096&&r!==(r="Status "+o[12])&&e.attr(t,"class",r),g[0]&4096&&l!==(l="Status "+o[12])&&e.attr(t,"part",l)},d(o){o&&e.detach(t),u=!1,s()}}}function E(a){let t,i=a[4]&&L(a);return{c(){i&&i.c(),t=e.empty()},m(r,l){i&&i.m(r,l),e.insert(r,t,l)},p(r,l){r[4]?i?i.p(r,l):(i=L(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 L(a){let t,i=a[13]("enrolled")+"",r;return{c(){t=e.element("div"),r=e.text(i),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(l,u){e.insert(l,t,u),e.append(t,r)},p(l,u){u[0]&8192&&i!==(i=l[13]("enrolled")+"")&&e.set_data(r,i)},d(l){l&&e.detach(t)}}}function te(a){let t,i,r,l,u;return{c(){t=e.element("div"),e.attr(t,"class",i="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",r="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(a[15].call(null,t)),l=!0)},p(s,o){o[0]&1&&i!==(i="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",i),o[0]&1&&r!==(r="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",r)},d(s){s&&e.detach(t),l=!1,u()}}}function ie(a){let t,i,r,l,u;return{c(){t=e.element("div"),e.attr(t,"class",i="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",r="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('"+a[3]+"')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(a[15].call(null,t)),l=!0)},p(s,o){o[0]&1&&i!==(i="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",i),o[0]&1&&r!==(r="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",r),o[0]&8&&e.set_style(t,"background-image","url('"+s[3]+"')")},d(s){s&&e.detach(t),l=!1,u()}}}function P(a){let t,i,r,l,u;return{c(){t=e.element("div"),i=e.text(a[8]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(s,o){e.insert(s,t,o),e.append(t,i),l||(u=e.action_destroyer(r=a[14].call(null,t,a[2])),l=!0)},p(s,o){o[0]&256&&e.set_data(i,s[8]),r&&e.is_function(r.update)&&o[0]&4&&r.update.call(null,s[2])},d(s){s&&e.detach(t),l=!1,u()}}}function B(a){let t,i,r=a[13]("scoreCriteria")+"",l,u,s,o,g,S=a[13]("minbet")+"",f,h,C,T,y,c,m,d=a[13]("seegames")+"",b,R,v,A=a[13]("here")+"",D,M,J;return{c(){t=e.element("div"),i=e.element("p"),l=e.text(r),u=e.text(`:
|
|
2
|
+
|
|
3
|
+
`),s=e.element("span"),o=e.text(a[11]),g=e.text(`
|
|
4
|
+
(`),f=e.text(S),h=e.space(),C=e.text(a[5]),T=e.text(")"),y=e.space(),c=e.element("div"),m=e.element("p"),b=e.text(d),R=e.space(),v=e.element("span"),D=e.text(A),e.attr(s,"part","ScoreCriteriaSpan"),e.attr(i,"part","ScoreCriteriaP"),e.attr(t,"class","ScoreCriteria"),e.attr(t,"part","ScoreCriteria"),e.attr(m,"part","GamesP"),e.attr(c,"class","Games"),e.attr(c,"part","Games")},m(p,k){e.insert(p,t,k),e.append(t,i),e.append(i,l),e.append(i,u),e.append(i,s),e.append(s,o),e.append(i,g),e.append(i,f),e.append(i,h),e.append(i,C),e.append(i,T),e.insert(p,y,k),e.insert(p,c,k),e.append(c,m),e.append(m,b),e.append(m,R),e.append(m,v),e.append(v,D),M||(J=[e.action_destroyer(a[16].call(null,s)),e.listen(v,"click",a[17])],M=!0)},p(p,k){k[0]&8192&&r!==(r=p[13]("scoreCriteria")+"")&&e.set_data(l,r),k[0]&2048&&e.set_data(o,p[11]),k[0]&8192&&S!==(S=p[13]("minbet")+"")&&e.set_data(f,S),k[0]&32&&e.set_data(C,p[5]),k[0]&8192&&d!==(d=p[13]("seegames")+"")&&e.set_data(b,d),k[0]&8192&&A!==(A=p[13]("here")+"")&&e.set_data(D,A)},d(p){p&&(e.detach(t),e.detach(y),e.detach(c)),M=!1,e.run_all(J)}}}function ae(a){let t,i,r,l,u,s,o,g,S,f=a[0]&&W(a),h=a[6]=="true"&&E(a);function C(d,b){return d[3]?ie:te}let T=C(a),y=T(a),c=a[2]&&P(a),m=a[9]&&B(a);return{c(){t=e.element("div"),f&&f.c(),i=e.space(),h&&h.c(),r=e.space(),y.c(),l=e.space(),u=e.element("div"),s=e.element("div"),o=e.text(a[1]),g=e.space(),c&&c.c(),S=e.space(),m&&m.c(),e.attr(s,"class","Title"),e.attr(s,"part","Title"),e.attr(u,"class","Details"),e.attr(u,"part","Details"),e.attr(t,"class","Thumbnail"),e.attr(t,"part","Thumbnail")},m(d,b){e.insert(d,t,b),f&&f.m(t,null),e.append(t,i),h&&h.m(t,null),e.append(t,r),y.m(t,null),e.append(t,l),e.append(t,u),e.append(u,s),e.append(s,o),e.append(u,g),c&&c.m(u,null),e.append(u,S),m&&m.m(u,null),a[28](t)},p(d,b){d[0]?f?f.p(d,b):(f=W(d),f.c(),f.m(t,i)):f&&(f.d(1),f=null),d[6]=="true"?h?h.p(d,b):(h=E(d),h.c(),h.m(t,r)):h&&(h.d(1),h=null),T===(T=C(d))&&y?y.p(d,b):(y.d(1),y=T(d),y&&(y.c(),y.m(t,l))),b[0]&2&&e.set_data(o,d[1]),d[2]?c?c.p(d,b):(c=P(d),c.c(),c.m(u,S)):c&&(c.d(1),c=null),d[9]?m?m.p(d,b):(m=B(d),m.c(),m.m(u,null)):m&&(m.d(1),m=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),f&&f.d(),h&&h.d(),y.d(),c&&c.d(),m&&m.d(),a[28](null)}}}function ne(a,t,i){let r;e.component_subscribe(a,e.$format,n=>i(13,r=n));let{session:l=""}=t,{userid:u=""}=t,{title:s=""}=t,{startdate:o=""}=t,{status:g=""}=t,{tourid:S=""}=t,{thumbnail:f=""}=t,{userenrolled:h=""}=t,{scorecriteria:C=""}=t,{minbetcount:T=""}=t,{showenrolled:y="false"}=t,{gameurl:c=""}=t,{lang:m="en"}=t,{keepbrowsercontext:d="false"}=t,{clientstyling:b=""}=t,{clientstylingurl:R=""}=t,{translationurl:v=""}=t,A,D="",M=!1,J="",p="",k="";const U=()=>{fetch(v).then(_=>_.json()).then(_=>{Object.keys(_).forEach(w=>{O(w,_[w])})}).catch(_=>{console.log(_)})};Object.keys(x).forEach(n=>{O(n,x[n])});const F=n=>{n.data&&(n.data&&n.data.type=="SessionID"&&i(9,M=!0),n.data.type==`TournamentStatus_${S}`&&i(0,g=n.data.status))},j=()=>{const n={month:"long"};let _=new Date(o),w=new Intl.DateTimeFormat("en",n).format(_),Y=_.getDate(),Q=_.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const X=()=>r(g==="Running"?"startedAt":"startingAt");i(8,D=`${Y} `+r(`${w}`)+", "+X()+` ${Q}`)},I=()=>{g=="Unstarted"&&(i(10,J=r("scheduled")),i(12,k="StatusUnstarted")),g=="Running"&&(i(10,J=r("ongoing")),i(12,k="StatusRunning")),(g=="Closed"||g=="Closing")&&i(10,J=r("finished")),g=="Closed"&&i(12,k="StatusClosed"),g=="Closing"&&i(12,k="StatusClosing")},z=()=>{C=="BetCount"&&i(11,p=r("betCount")),C=="MaxWinStakeRatio"&&i(11,p=r("maxWinStakeRatio")),C=="WinStakeRatio"&&i(11,p=r("winStakeRatio")),C=="Stake"&&i(11,p=r("stake"))},G=()=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:S,showLeaderboard:!0},window.location.href)},V=()=>{l.length>0&&l!="false"?i(9,M=!0):i(9,M=!1)},H=()=>{let n=document.createElement("style");n.innerHTML=b,A.appendChild(n)},q=()=>{let n=new URL(R),_=document.createElement("style");fetch(n.href).then(w=>w.text()).then(w=>{_.innerHTML=w,setTimeout(()=>{A.appendChild(_)},1),setTimeout(()=>{},500)})};e.onMount(()=>(setTimeout(()=>N(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const N=()=>{$(m),z(),I(),o&&j()};function Z(n){e.binding_callbacks[n?"unshift":"push"](()=>{A=n,i(7,A)})}return a.$$set=n=>{"session"in n&&i(18,l=n.session),"userid"in n&&i(19,u=n.userid),"title"in n&&i(1,s=n.title),"startdate"in n&&i(2,o=n.startdate),"status"in n&&i(0,g=n.status),"tourid"in n&&i(20,S=n.tourid),"thumbnail"in n&&i(3,f=n.thumbnail),"userenrolled"in n&&i(4,h=n.userenrolled),"scorecriteria"in n&&i(21,C=n.scorecriteria),"minbetcount"in n&&i(5,T=n.minbetcount),"showenrolled"in n&&i(6,y=n.showenrolled),"gameurl"in n&&i(22,c=n.gameurl),"lang"in n&&i(23,m=n.lang),"keepbrowsercontext"in n&&i(24,d=n.keepbrowsercontext),"clientstyling"in n&&i(25,b=n.clientstyling),"clientstylingurl"in n&&i(26,R=n.clientstylingurl),"translationurl"in n&&i(27,v=n.translationurl)},a.$$.update=()=>{a.$$.dirty[0]&33554560&&A&&b&&H(),a.$$.dirty[0]&67108992&&A&&R&&q(),a.$$.dirty[0]&134217728&&v&&U(),a.$$.dirty[0]&262144&&l&&V(),a.$$.dirty[0]&1&&g&&I(),a.$$.dirty[0]&8388610&&s&&m&&N(),a.$$.dirty[0]&4&&o&&j(),a.$$.dirty[0]&2097152&&C&&z()},[g,s,o,f,h,T,y,A,D,M,J,p,k,r,j,I,z,G,l,u,S,C,c,m,d,b,R,v,Z]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ne,ae,e.safe_not_equal,{session:18,userid:19,title:1,startdate:2,status:0,tourid:20,thumbnail:3,userenrolled:4,scorecriteria:21,minbetcount:5,showenrolled:6,gameurl:22,lang:23,keepbrowsercontext:24,clientstyling:25,clientstylingurl:26,translationurl:27},ee,[-1,-1])}get session(){return this.$$.ctx[18]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[19]}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[20]}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[21]}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 gameurl(){return this.$$.ctx[22]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[23]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[24]}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(K,{session:{},userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=K;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var Q=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(m){o(m)}},a=c=>{try{u(e.throw(c))}catch(m){o(m)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";var Q=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(m){o(m)}},a=c=>{try{u(e.throw(c))}catch(m){o(m)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsListController-BU4FKrpi.cjs");function F(r){return typeof r=="function"}function Me(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $=Me(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function te(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var H=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=n.__values(a),c=u.next();!c.done;c=u.next()){var m=c.value;m.remove(this)}}catch(h){t={error:h}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var d=this.initialTeardown;if(F(d))try{d()}catch(h){s=h instanceof $?h.errors:[h]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var y=n.__values(g),b=y.next();!b.done;b=y.next()){var w=b.value;try{ke(w)}catch(h){s=s!=null?s:[],h instanceof $?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(h.errors)):s.push(h)}}}catch(h){i={error:h}}finally{try{b&&!b.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}if(s)throw new $(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ke(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&te(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),Le=H.EMPTY;function Re(r){return r instanceof H||r&&"closed"in r&&F(r.remove)&&F(r.add)&&F(r.unsubscribe)}function ke(r){F(r)?r():r.unsubscribe()}var Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Je={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,n.__spreadArray([r,t],n.__read(e)))},clearTimeout:function(r){var t=Je.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0};function st(r){Je.setTimeout(function(){throw r})}function Te(){}function W(r){r()}var We=function(r){n.__extends(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Re(e)&&e.add(i)):i.destination=ct,i}return t.create=function(e,i,o){return new ne(e,i,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(H),at=Function.prototype.bind;function ee(r,t){return at.call(r,t)}var lt=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){J(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){J(i)}else J(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){J(e)}},r}(),ne=function(r){n.__extends(t,r);function t(e,i,o){var s=r.call(this)||this,a;if(F(e)||!e)a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0};else{var u;s&&Ue.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&ee(e.next,u),error:e.error&&ee(e.error,u),complete:e.complete&&ee(e.complete,u)}):a=e}return s.destination=new lt(a),s}return t}(We);function J(r){st(r)}function ut(r){throw r}var ct={closed:!0,next:Te,error:ut,complete:Te},ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function dt(r){return r}function mt(r){return r.length===0?dt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Fe=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=pt(t)?t:new ne(t,e,i);return W(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Se(e),new e(function(o,s){var a=new ne({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[ft]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return mt(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Se(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Se(r){var t;return(t=r!=null?r:Ue.Promise)!==null&&t!==void 0?t:Promise}function ht(r){return r&&F(r.next)&&F(r.error)&&F(r.complete)}function pt(r){return r&&r instanceof We||ht(r)&&Re(r)}var _t=Me(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),He=function(r){n.__extends(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Ee(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new _t},t.prototype.next=function(e){var i=this;W(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=n.__values(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(m){o={error:m}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;W(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Le:(this.currentObservers=null,u.push(e),new H(function(){i.currentObservers=null,te(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Fe;return e.source=this,e},t.create=function(e,i){return new Ee(e,i)},t}(Fe),Ee=function(r){n.__extends(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:Le},t}(He),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},gt=function(r){n.__extends(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=qe);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),m=0,d=1;d<s.length&&s[d]<=c;d+=2)m=d;m&&s.splice(0,m+1)}},t}(He);const Ce=[],je={},bt=(r,t=0)=>{if(Ce.indexOf(r)==-1){const e=new gt(t);je[r]=e,Ce.push(r)}return je[r]};window.emWidgets={topic:bt};const re=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function wt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function ze(r,t){n.addMessages(r,t)}const Pe={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}};if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-HFzVNG-4.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-lIzk79P7.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-DDmo8rw_.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-CeKf3-8y.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function yt(r){n.append_styles(r,"svelte-e8vjpc",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function vt(r){let t,e,i,o,s,a,u,c,m,d=r[14]&&Be(r);function g(f,p){if(!f[14])return St;if(f[23]!="Closed"&&f[23]!="Closing")return Ft;if(f[3]=="true")return Tt}let y=g(r),b=y&&y(r),w=(r[17]||r[19])&&Ae(r),h=r[4]=="true"&&Ie(r);return{c(){t=n.element("div"),e=n.element("casino-tournaments-thumbnail"),i=n.space(),d&&d.c(),o=n.space(),s=n.element("div"),b&&b.c(),a=n.space(),w&&w.c(),u=n.space(),h&&h.c(),n.set_custom_element_data(e,"session",r[0]),n.set_custom_element_data(e,"userid",r[1]),n.set_custom_element_data(e,"title",r[20]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"tourid",r[24]),n.set_custom_element_data(e,"scorecriteria",r[27]),n.set_custom_element_data(e,"minbetcount",r[28]),n.set_custom_element_data(e,"thumbnail",r[25]),n.set_custom_element_data(e,"showenrolled",r[5]),n.set_custom_element_data(e,"userenrolled",r[26]),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"keepbrowsercontext",r[9]),n.set_custom_element_data(e,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(s,"class","TournamentButtons"),n.attr(s,"part","TournamentButtons"),n.attr(t,"class",c="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",m="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn"))},m(f,p){n.insert(f,t,p),n.append(t,e),n.append(t,i),d&&d.m(t,null),n.append(t,o),n.append(t,s),b&&b.m(s,null),n.append(t,a),w&&w.m(t,null),n.append(t,u),h&&h.m(t,null)},p(f,p){p[0]&1&&n.set_custom_element_data(e,"session",f[0]),p[0]&2&&n.set_custom_element_data(e,"userid",f[1]),p[0]&1048576&&n.set_custom_element_data(e,"title",f[20]),p[0]&8388608&&n.set_custom_element_data(e,"status",f[23]),p[0]&2097152&&n.set_custom_element_data(e,"startdate",f[21]),p[0]&16777216&&n.set_custom_element_data(e,"tourid",f[24]),p[0]&134217728&&n.set_custom_element_data(e,"scorecriteria",f[27]),p[0]&268435456&&n.set_custom_element_data(e,"minbetcount",f[28]),p[0]&33554432&&n.set_custom_element_data(e,"thumbnail",f[25]),p[0]&32&&n.set_custom_element_data(e,"showenrolled",f[5]),p[0]&67108864&&n.set_custom_element_data(e,"userenrolled",f[26]),p[0]&1024&&n.set_custom_element_data(e,"clientstyling",f[10]),p[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",f[11]),p[0]&4096&&n.set_custom_element_data(e,"translationurl",f[12]),p[0]&256&&n.set_custom_element_data(e,"lang",f[8]),p[0]&512&&n.set_custom_element_data(e,"keepbrowsercontext",f[9]),f[14]?d?d.p(f,p):(d=Be(f),d.c(),d.m(t,o)):d&&(d.d(1),d=null),y===(y=g(f))&&b?b.p(f,p):(b&&b.d(1),b=y&&y(f),b&&(b.c(),b.m(s,null))),f[17]||f[19]?w?w.p(f,p):(w=Ae(f),w.c(),w.m(t,u)):w&&(w.d(1),w=null),f[4]=="true"?h?h.p(f,p):(h=Ie(f),h.c(),h.m(t,null)):h&&(h.d(1),h=null),p[0]&1073742016&&c!==(c="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",c),p[0]&1073742016&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[30]?"elementToFadeOut":"elementToFadeIn")+" "+(f[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",m)},d(f){f&&n.detach(t),d&&d.d(),b&&b.d(),w&&w.d(),h&&h.d()}}}function kt(r){let t,e,i,o;return{c(){t=n.element("div"),e=n.element("div"),e.innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> <div class="ph-col-4" part="ph-col-4"></div> <div class="ph-col-8 empty" part="ph-col-8 empty"></div> <div class="ph-col-6" part="ph-col-6"></div> <div class="ph-col-6 empty" part="ph-col-6 empty"></div> <div class="ph-col-12" part="ph-col-12"></div></div></div>',n.attr(e,"class","ph-item"),n.attr(e,"part","ph-item"),n.attr(t,"class",i="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",o="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn"))},m(s,a){n.insert(s,t,a),n.append(t,e)},p(s,a){a[0]&1073742016&&i!==(i="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",i),a[0]&1073742016&&o!==(o="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[30]?"elementToFadeOut":"elementToFadeIn")+" "+(s[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",o)},d(s){s&&n.detach(t)}}}function Be(r){let t,e,i=r[24]&&xe(r);return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"enddate",r[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?i?i.p(o,s):(i=xe(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&n.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&n.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&n.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(n.detach(t),n.detach(e)),i&&i.d(o)}}}function xe(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[24]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),i||(o=n.action_destroyer(e=r[36].call(null,t,r[24])),i=!0)},p(s,a){a[0]&16777216&&n.set_custom_element_data(t,"tourid",s[24]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&16777216&&e.update.call(null,s[24])},d(s){s&&n.detach(t),i=!1,o()}}}function Tt(r){let t,e=r[31]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[50]),o=!0)},p(a,u){u[1]&1&&e!==(e=a[31]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Ft(r){let t,e,i=r[3]=="true"&&Oe(r);function o(u,c){return u[26]?Ct:Et}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[3]=="true"?i?i.p(u,c):(i=Oe(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),i&&i.d(u),a.d(u)}}}function St(r){let t,e=r[31]("login")+"",i,o,s,a=r[31]("register")+"",u,c,m;return{c(){t=n.element("button"),i=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(d,g){n.insert(d,t,g),n.append(t,i),n.insert(d,o,g),n.insert(d,s,g),n.append(s,u),c||(m=[n.listen(t,"click",r[46]),n.listen(s,"click",r[47])],c=!0)},p(d,g){g[1]&1&&e!==(e=d[31]("login")+"")&&n.set_data(i,e),g[1]&1&&a!==(a=d[31]("register")+"")&&n.set_data(u,a)},d(d){d&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(m)}}}function Oe(r){let t,e=r[31]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[48]),o=!0)},p(a,u){u[1]&1&&e!==(e=a[31]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(r){let t,e,i,o,s;function a(m,d){return m[16]==!0?zt:jt}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),t.disabled=r[17]},m(m,d){n.insert(m,t,d),c.m(t,null),o||(s=n.listen(t,"click",r[49]),o=!0)},p(m,d){u===(u=a(m))&&c?c.p(m,d):(c.d(1),c=u(m),c&&(c.c(),c.m(t,null))),d[0]&128&&e!==(e="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),d[0]&128&&i!==(i="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),d[0]&131072&&(t.disabled=m[17])},d(m){m&&n.detach(t),c.d(),o=!1,s()}}}function Ct(r){let t,e=r[3]=="true"&&De(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[3]=="true"?e?e.p(i,o):(e=De(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function jt(r){let t,e=r[31]("join")+"",i,o,s,a,u,c,m,d;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),m=n.svg_element("g"),d=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(d,"class","a"),n.attr(d,"part","a JoinButtonSvgA"),n.attr(d,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(d,"transform","translate(26 26) rotate(180)"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(g,y){n.insert(g,t,y),n.append(t,i),n.insert(g,o,y),n.insert(g,s,y),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,m),n.append(m,d)},p(g,y){y[1]&1&&e!==(e=g[31]("join")+"")&&n.set_data(i,e)},d(g){g&&(n.detach(t),n.detach(o),n.detach(s))}}}function zt(r){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function De(r){let t,e=r[31]("enrolled")+"",i;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,i)},p(o,s){s[1]&1&&e!==(e=o[31]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Ae(r){let t,e=r[31]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[18]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&1&&e!==(e=a[31]("joinerror")+"")&&n.set_data(i,e),u[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function Ie(r){let t;return{c(){t=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"tournamenturl",r[2]),n.set_custom_element_data(t,"lang",r[8]),n.set_custom_element_data(t,"scrollby","2"),n.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,i){n.insert(e,t,i)},p(e,i){i[0]&1024&&n.set_custom_element_data(t,"clientstyling",e[10]),i[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",e[11]),i[0]&4096&&n.set_custom_element_data(t,"translationurl",e[12]),i[0]&4&&n.set_custom_element_data(t,"tournamenturl",e[2]),i[0]&256&&n.set_custom_element_data(t,"lang",e[8])},d(e){e&&n.detach(t)}}}function Pt(r){let t;function e(s,a){if(s[15])return kt;if(s[20])return vt}let i=e(r),o=i&&i(r);return{c(){t=n.element("div"),o&&o.c()},m(s,a){n.insert(s,t,a),o&&o.m(t,null),r[51](t)},p(s,a){i===(i=e(s))&&o?o.p(s,a):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(t,null)))},i:n.noop,o:n.noop,d(s){s&&n.detach(t),o&&o.d(),r[51](null)}}}function Bt(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(31,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:m=""}=t,{showslider:d=""}=t,{showenrolled:g=""}=t,{maxwidth:y=""}=t,{fullsize:b=""}=t,{lang:w=""}=t,{loginevent:h=""}=t,{registerevent:f=""}=t,{loginurl:p=""}=t,{registerurl:B=""}=t,{currency:q=""}=t,{keepbrowsercontext:ie="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:O=""}=t,{translationurl:D=""}=t,{tournamentinfo:A}=t,S,C=!1,I="",j=!0,oe=window.navigator.userAgent,M=!1,L=!1,se="There was an error while trying to join the tournament",G=!1,ae,le,ue,z,T,ce,Y,fe,de,me=[],K=[],V,R=!1;wt({withLocale:"en",translations:{}});const Ye=()=>{fetch(D).then(_=>_.json()).then(_=>{Object.keys(_).forEach(v=>{ze(v,_[v])})}).catch(_=>{console.log(_)})};Object.keys(Pe).forEach(l=>{ze(l,Pe[l])});const he=l=>{Ke(l),N(l),we(this,T)},pe=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),I=l.data.session),l.data.type=="UpdateTournamentView"){let _=l.data.tournamentData;if(T&&T!=_.id)return;he(_)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let _=l.data.tournamentData,v=u<4?u*100:Math.random()*300+300;e(30,R=u==1),setTimeout(()=>{e(30,R=!0),e(24,T=_.id),he(_)},v),setTimeout(()=>{e(30,R=!1)},v+200)}},Ke=l=>{l.state!=z&&(e(23,z=l.state),window.postMessage({type:`TournamentStatus_${T}`,status:z},window.location.href))},_e=()=>{h&&(window.postMessage({type:h,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),p&&(window.location=p)},ge=()=>{f&&(window.postMessage({type:f,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},X=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},be=(l,_)=>Q(this,null,function*(){var ve;e(17,L=!1),e(19,G=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(16,M=!0);let v=new URL(`${c}/v1/bonus/claim`),U=new Headers,E={};v.searchParams.append("language",w),v.searchParams.append("platform",re(oe)),U.append("Content-Type","application/json"),U.append("X-SessionID",I),_&&_.length>=1&&(E={language:w,bonusCode:_[0].code,currency:q,type:"tournament"});let ot={method:"PUT",headers:U,body:JSON.stringify(E)};const ye=()=>{e(16,M=!1),e(26,Y=!0)},Z=k=>{e(16,M=!1),k&&e(18,se=k),e(17,L=!0)},P=yield Q(this,null,function*(){let k;try{k=yield fetch(v,ot),k=yield k.json()}catch(Dt){Z()}return k});if(P)if(P.success==!0)ye();else if(P.errorMessage.match("VersionMismatchException")){let k;k=yield fetch(`${c}/tournaments/${T}`,{headers:{"X-SessionID":o}}),k=yield k.json(),(ve=k==null?void 0:k.item)!=null&&ve.playerEnrolled?ye():(Z(P.errorMessage),e(19,G=!0),e(17,L=!1))}else Z(P.errorMessage)}),we=(l,_)=>{window.postMessage({type:`TournamentPrizes_${_}`,prizes:me},window.location.href)},N=l=>{l&&(e(20,ae=l.nameOrTitle||""),e(21,le=l.startTime),e(22,ue=l.endTime),e(23,z=l.state),e(24,T=l.id),e(25,ce=l.thumbnail),e(26,Y=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(27,fe=l.scoreCriteria),e(28,de=l.minBetCount),me=l.prizes,e(29,K=l.wallets||[]))},Ve=l=>{e(15,j=!0);let _=new URL(l),v=new Headers;_.searchParams.append("language",w),_.searchParams.append("platform",re(oe)),C&&v.append("X-SessionID",I),fetch(_,{method:"GET",headers:v}).then(E=>E.json()).then(E=>{e(15,j=!1),N(E.item)})},Xe=()=>{o.length>0&&o!="false"?(I=o,e(14,C=!0)):e(14,C=!1)},Ne=()=>{if(A){N(A);return}e(15,j=!0),Ve(a)},Ze=()=>{let l=document.createElement("style");l.innerHTML=x,S.appendChild(l)},Qe=()=>{let l=new URL(O),_=document.createElement("style");fetch(l.href).then(v=>v.text()).then(v=>{_.innerHTML=v,setTimeout(()=>{S.appendChild(_)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,j=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",pe,!1),()=>{window.removeEventListener("message",pe)}));const $e=()=>_e(),et=()=>ge(),tt=()=>X(T),nt=()=>be(T,K),rt=()=>X(T);function it(l){n.binding_callbacks[l?"unshift":"push"](()=>{S=l,e(13,S)})}return r.$$set=l=>{"session"in l&&e(0,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(37,u=l.touridx),"endpoint"in l&&e(38,c=l.endpoint),"showdetails"in l&&e(3,m=l.showdetails),"showslider"in l&&e(4,d=l.showslider),"showenrolled"in l&&e(5,g=l.showenrolled),"maxwidth"in l&&e(6,y=l.maxwidth),"fullsize"in l&&e(7,b=l.fullsize),"lang"in l&&e(8,w=l.lang),"loginevent"in l&&e(39,h=l.loginevent),"registerevent"in l&&e(40,f=l.registerevent),"loginurl"in l&&e(41,p=l.loginurl),"registerurl"in l&&e(42,B=l.registerurl),"currency"in l&&e(43,q=l.currency),"keepbrowsercontext"in l&&e(9,ie=l.keepbrowsercontext),"clientstyling"in l&&e(10,x=l.clientstyling),"clientstylingurl"in l&&e(11,O=l.clientstylingurl),"translationurl"in l&&e(12,D=l.translationurl),"tournamentinfo"in l&&e(44,A=l.tournamentinfo)},r.$$.update=()=>{r.$$.dirty[0]&9216&&S&&x&&Ze(),r.$$.dirty[0]&10240&&S&&O&&Qe(),r.$$.dirty[0]&4096&&D&&Ye(),r.$$.dirty[0]&1&&o&&Xe(),r.$$.dirty[0]&260&&e(45,V=a&&w),r.$$.dirty[1]&16384&&V&&Ne()},[o,s,a,m,d,g,y,b,w,ie,x,O,D,S,C,j,M,L,se,G,ae,le,ue,z,T,ce,Y,fe,de,K,R,i,_e,ge,X,be,we,u,c,h,f,p,B,q,A,V,$e,et,tt,nt,rt,it]}class Ge extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Bt,Pt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:44},yt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[37]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[39]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[40]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get loginurl(){return this.$$.ctx[41]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[42]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[43]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[44]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}}n.create_custom_element(Ge,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const xt=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=xt;exports.getDevice=re;
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function te(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var H=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=n.__values(a),c=u.next();!c.done;c=u.next()){var m=c.value;m.remove(this)}}catch(h){t={error:h}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var d=this.initialTeardown;if(F(d))try{d()}catch(h){s=h instanceof $?h.errors:[h]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var y=n.__values(g),b=y.next();!b.done;b=y.next()){var w=b.value;try{ke(w)}catch(h){s=s!=null?s:[],h instanceof $?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(h.errors)):s.push(h)}}}catch(h){i={error:h}}finally{try{b&&!b.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}if(s)throw new $(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ke(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&te(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),Le=H.EMPTY;function Re(r){return r instanceof H||r&&"closed"in r&&F(r.remove)&&F(r.add)&&F(r.unsubscribe)}function ke(r){F(r)?r():r.unsubscribe()}var Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Je={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,n.__spreadArray([r,t],n.__read(e)))},clearTimeout:function(r){var t=Je.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0};function st(r){Je.setTimeout(function(){throw r})}function Te(){}function W(r){r()}var We=function(r){n.__extends(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Re(e)&&e.add(i)):i.destination=ct,i}return t.create=function(e,i,o){return new ne(e,i,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(H),at=Function.prototype.bind;function ee(r,t){return at.call(r,t)}var lt=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){J(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){J(i)}else J(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){J(e)}},r}(),ne=function(r){n.__extends(t,r);function t(e,i,o){var s=r.call(this)||this,a;if(F(e)||!e)a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0};else{var u;s&&Ue.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&ee(e.next,u),error:e.error&&ee(e.error,u),complete:e.complete&&ee(e.complete,u)}):a=e}return s.destination=new lt(a),s}return t}(We);function J(r){st(r)}function ut(r){throw r}var ct={closed:!0,next:Te,error:ut,complete:Te},ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function dt(r){return r}function mt(r){return r.length===0?dt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Fe=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=pt(t)?t:new ne(t,e,i);return W(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Se(e),new e(function(o,s){var a=new ne({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[ft]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return mt(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Se(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Se(r){var t;return(t=r!=null?r:Ue.Promise)!==null&&t!==void 0?t:Promise}function ht(r){return r&&F(r.next)&&F(r.error)&&F(r.complete)}function pt(r){return r&&r instanceof We||ht(r)&&Re(r)}var _t=Me(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),He=function(r){n.__extends(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Ee(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new _t},t.prototype.next=function(e){var i=this;W(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=n.__values(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(m){o={error:m}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;W(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Le:(this.currentObservers=null,u.push(e),new H(function(){i.currentObservers=null,te(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Fe;return e.source=this,e},t.create=function(e,i){return new Ee(e,i)},t}(Fe),Ee=function(r){n.__extends(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:Le},t}(He),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},gt=function(r){n.__extends(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=qe);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),m=0,d=1;d<s.length&&s[d]<=c;d+=2)m=d;m&&s.splice(0,m+1)}},t}(He);const Ce=[],je={},bt=(r,t=0)=>{if(Ce.indexOf(r)==-1){const e=new gt(t);je[r]=e,Ce.push(r)}return je[r]};window.emWidgets={topic:bt};const re=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function wt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function ze(r,t){n.addMessages(r,t)}const Pe={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}};if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-wFdASFKI.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-D3lviBKK.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-UDy9iHXs.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-CvLdAisC.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function yt(r){n.append_styles(r,"svelte-e8vjpc",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function vt(r){let t,e,i,o,s,a,u,c,m,d=r[14]&&Be(r);function g(f,p){if(!f[14])return St;if(f[23]!="Closed"&&f[23]!="Closing")return Ft;if(f[3]=="true")return Tt}let y=g(r),b=y&&y(r),w=(r[17]||r[19])&&Ae(r),h=r[4]=="true"&&Ie(r);return{c(){t=n.element("div"),e=n.element("casino-tournaments-thumbnail"),i=n.space(),d&&d.c(),o=n.space(),s=n.element("div"),b&&b.c(),a=n.space(),w&&w.c(),u=n.space(),h&&h.c(),n.set_custom_element_data(e,"session",r[0]),n.set_custom_element_data(e,"userid",r[1]),n.set_custom_element_data(e,"title",r[20]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"tourid",r[24]),n.set_custom_element_data(e,"scorecriteria",r[27]),n.set_custom_element_data(e,"minbetcount",r[28]),n.set_custom_element_data(e,"thumbnail",r[25]),n.set_custom_element_data(e,"showenrolled",r[5]),n.set_custom_element_data(e,"userenrolled",r[26]),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"keepbrowsercontext",r[9]),n.set_custom_element_data(e,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(s,"class","TournamentButtons"),n.attr(s,"part","TournamentButtons"),n.attr(t,"class",c="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",m="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn"))},m(f,p){n.insert(f,t,p),n.append(t,e),n.append(t,i),d&&d.m(t,null),n.append(t,o),n.append(t,s),b&&b.m(s,null),n.append(t,a),w&&w.m(t,null),n.append(t,u),h&&h.m(t,null)},p(f,p){p[0]&1&&n.set_custom_element_data(e,"session",f[0]),p[0]&2&&n.set_custom_element_data(e,"userid",f[1]),p[0]&1048576&&n.set_custom_element_data(e,"title",f[20]),p[0]&8388608&&n.set_custom_element_data(e,"status",f[23]),p[0]&2097152&&n.set_custom_element_data(e,"startdate",f[21]),p[0]&16777216&&n.set_custom_element_data(e,"tourid",f[24]),p[0]&134217728&&n.set_custom_element_data(e,"scorecriteria",f[27]),p[0]&268435456&&n.set_custom_element_data(e,"minbetcount",f[28]),p[0]&33554432&&n.set_custom_element_data(e,"thumbnail",f[25]),p[0]&32&&n.set_custom_element_data(e,"showenrolled",f[5]),p[0]&67108864&&n.set_custom_element_data(e,"userenrolled",f[26]),p[0]&1024&&n.set_custom_element_data(e,"clientstyling",f[10]),p[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",f[11]),p[0]&4096&&n.set_custom_element_data(e,"translationurl",f[12]),p[0]&256&&n.set_custom_element_data(e,"lang",f[8]),p[0]&512&&n.set_custom_element_data(e,"keepbrowsercontext",f[9]),f[14]?d?d.p(f,p):(d=Be(f),d.c(),d.m(t,o)):d&&(d.d(1),d=null),y===(y=g(f))&&b?b.p(f,p):(b&&b.d(1),b=y&&y(f),b&&(b.c(),b.m(s,null))),f[17]||f[19]?w?w.p(f,p):(w=Ae(f),w.c(),w.m(t,u)):w&&(w.d(1),w=null),f[4]=="true"?h?h.p(f,p):(h=Ie(f),h.c(),h.m(t,null)):h&&(h.d(1),h=null),p[0]&1073742016&&c!==(c="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",c),p[0]&1073742016&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[30]?"elementToFadeOut":"elementToFadeIn")+" "+(f[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",m)},d(f){f&&n.detach(t),d&&d.d(),b&&b.d(),w&&w.d(),h&&h.d()}}}function kt(r){let t,e,i,o;return{c(){t=n.element("div"),e=n.element("div"),e.innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> <div class="ph-col-4" part="ph-col-4"></div> <div class="ph-col-8 empty" part="ph-col-8 empty"></div> <div class="ph-col-6" part="ph-col-6"></div> <div class="ph-col-6 empty" part="ph-col-6 empty"></div> <div class="ph-col-12" part="ph-col-12"></div></div></div>',n.attr(e,"class","ph-item"),n.attr(e,"part","ph-item"),n.attr(t,"class",i="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"part",o="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn")+" "+(r[30]?"elementToFadeOut":"elementToFadeIn"))},m(s,a){n.insert(s,t,a),n.append(t,e)},p(s,a){a[0]&1073742016&&i!==(i="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"class",i),a[0]&1073742016&&o!==(o="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[30]?"elementToFadeOut":"elementToFadeIn")+" "+(s[30]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(t,"part",o)},d(s){s&&n.detach(t)}}}function Be(r){let t,e,i=r[24]&&xe(r);return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[23]),n.set_custom_element_data(e,"startdate",r[21]),n.set_custom_element_data(e,"lang",r[8]),n.set_custom_element_data(e,"enddate",r[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?i?i.p(o,s):(i=xe(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&n.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&n.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&n.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(n.detach(t),n.detach(e)),i&&i.d(o)}}}function xe(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[24]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),i||(o=n.action_destroyer(e=r[36].call(null,t,r[24])),i=!0)},p(s,a){a[0]&16777216&&n.set_custom_element_data(t,"tourid",s[24]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&16777216&&e.update.call(null,s[24])},d(s){s&&n.detach(t),i=!1,o()}}}function Tt(r){let t,e=r[31]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[50]),o=!0)},p(a,u){u[1]&1&&e!==(e=a[31]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Ft(r){let t,e,i=r[3]=="true"&&Oe(r);function o(u,c){return u[26]?Ct:Et}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[3]=="true"?i?i.p(u,c):(i=Oe(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),i&&i.d(u),a.d(u)}}}function St(r){let t,e=r[31]("login")+"",i,o,s,a=r[31]("register")+"",u,c,m;return{c(){t=n.element("button"),i=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(d,g){n.insert(d,t,g),n.append(t,i),n.insert(d,o,g),n.insert(d,s,g),n.append(s,u),c||(m=[n.listen(t,"click",r[46]),n.listen(s,"click",r[47])],c=!0)},p(d,g){g[1]&1&&e!==(e=d[31]("login")+"")&&n.set_data(i,e),g[1]&1&&a!==(a=d[31]("register")+"")&&n.set_data(u,a)},d(d){d&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(m)}}}function Oe(r){let t,e=r[31]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",r[48]),o=!0)},p(a,u){u[1]&1&&e!==(e=a[31]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(r){let t,e,i,o,s;function a(m,d){return m[16]==!0?zt:jt}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),t.disabled=r[17]},m(m,d){n.insert(m,t,d),c.m(t,null),o||(s=n.listen(t,"click",r[49]),o=!0)},p(m,d){u===(u=a(m))&&c?c.p(m,d):(c.d(1),c=u(m),c&&(c.c(),c.m(t,null))),d[0]&128&&e!==(e="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),d[0]&128&&i!==(i="JoinButton "+(m[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),d[0]&131072&&(t.disabled=m[17])},d(m){m&&n.detach(t),c.d(),o=!1,s()}}}function Ct(r){let t,e=r[3]=="true"&&De(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[3]=="true"?e?e.p(i,o):(e=De(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function jt(r){let t,e=r[31]("join")+"",i,o,s,a,u,c,m,d;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),m=n.svg_element("g"),d=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(d,"class","a"),n.attr(d,"part","a JoinButtonSvgA"),n.attr(d,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(d,"transform","translate(26 26) rotate(180)"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(g,y){n.insert(g,t,y),n.append(t,i),n.insert(g,o,y),n.insert(g,s,y),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,m),n.append(m,d)},p(g,y){y[1]&1&&e!==(e=g[31]("join")+"")&&n.set_data(i,e)},d(g){g&&(n.detach(t),n.detach(o),n.detach(s))}}}function zt(r){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function De(r){let t,e=r[31]("enrolled")+"",i;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,i)},p(o,s){s[1]&1&&e!==(e=o[31]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Ae(r){let t,e=r[31]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[18]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&1&&e!==(e=a[31]("joinerror")+"")&&n.set_data(i,e),u[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function Ie(r){let t;return{c(){t=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"tournamenturl",r[2]),n.set_custom_element_data(t,"lang",r[8]),n.set_custom_element_data(t,"scrollby","2"),n.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,i){n.insert(e,t,i)},p(e,i){i[0]&1024&&n.set_custom_element_data(t,"clientstyling",e[10]),i[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",e[11]),i[0]&4096&&n.set_custom_element_data(t,"translationurl",e[12]),i[0]&4&&n.set_custom_element_data(t,"tournamenturl",e[2]),i[0]&256&&n.set_custom_element_data(t,"lang",e[8])},d(e){e&&n.detach(t)}}}function Pt(r){let t;function e(s,a){if(s[15])return kt;if(s[20])return vt}let i=e(r),o=i&&i(r);return{c(){t=n.element("div"),o&&o.c()},m(s,a){n.insert(s,t,a),o&&o.m(t,null),r[51](t)},p(s,a){i===(i=e(s))&&o?o.p(s,a):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(t,null)))},i:n.noop,o:n.noop,d(s){s&&n.detach(t),o&&o.d(),r[51](null)}}}function Bt(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(31,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:m=""}=t,{showslider:d=""}=t,{showenrolled:g=""}=t,{maxwidth:y=""}=t,{fullsize:b=""}=t,{lang:w=""}=t,{loginevent:h=""}=t,{registerevent:f=""}=t,{loginurl:p=""}=t,{registerurl:B=""}=t,{currency:q=""}=t,{keepbrowsercontext:ie="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:O=""}=t,{translationurl:D=""}=t,{tournamentinfo:A}=t,S,C=!1,I="",j=!0,oe=window.navigator.userAgent,M=!1,L=!1,se="There was an error while trying to join the tournament",G=!1,ae,le,ue,z,T,ce,Y,fe,de,me=[],K=[],V,R=!1;wt({withLocale:"en",translations:{}});const Ye=()=>{fetch(D).then(_=>_.json()).then(_=>{Object.keys(_).forEach(v=>{ze(v,_[v])})}).catch(_=>{console.log(_)})};Object.keys(Pe).forEach(l=>{ze(l,Pe[l])});const he=l=>{Ke(l),N(l),we(this,T)},pe=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),I=l.data.session),l.data.type=="UpdateTournamentView"){let _=l.data.tournamentData;if(T&&T!=_.id)return;he(_)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let _=l.data.tournamentData,v=u<4?u*100:Math.random()*300+300;e(30,R=u==1),setTimeout(()=>{e(30,R=!0),e(24,T=_.id),he(_)},v),setTimeout(()=>{e(30,R=!1)},v+200)}},Ke=l=>{l.state!=z&&(e(23,z=l.state),window.postMessage({type:`TournamentStatus_${T}`,status:z},window.location.href))},_e=()=>{h&&(window.postMessage({type:h,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),p&&(window.location=p)},ge=()=>{f&&(window.postMessage({type:f,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},X=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},be=(l,_)=>Q(this,null,function*(){var ve;e(17,L=!1),e(19,G=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(16,M=!0);let v=new URL(`${c}/v1/bonus/claim`),U=new Headers,E={};v.searchParams.append("language",w),v.searchParams.append("platform",re(oe)),U.append("Content-Type","application/json"),U.append("X-SessionID",I),_&&_.length>=1&&(E={language:w,bonusCode:_[0].code,currency:q,type:"tournament"});let ot={method:"PUT",headers:U,body:JSON.stringify(E)};const ye=()=>{e(16,M=!1),e(26,Y=!0)},Z=k=>{e(16,M=!1),k&&e(18,se=k),e(17,L=!0)},P=yield Q(this,null,function*(){let k;try{k=yield fetch(v,ot),k=yield k.json()}catch(Dt){Z()}return k});if(P)if(P.success==!0)ye();else if(P.errorMessage.match("VersionMismatchException")){let k;k=yield fetch(`${c}/tournaments/${T}`,{headers:{"X-SessionID":o}}),k=yield k.json(),(ve=k==null?void 0:k.item)!=null&&ve.playerEnrolled?ye():(Z(P.errorMessage),e(19,G=!0),e(17,L=!1))}else Z(P.errorMessage)}),we=(l,_)=>{window.postMessage({type:`TournamentPrizes_${_}`,prizes:me},window.location.href)},N=l=>{l&&(e(20,ae=l.nameOrTitle||""),e(21,le=l.startTime),e(22,ue=l.endTime),e(23,z=l.state),e(24,T=l.id),e(25,ce=l.thumbnail),e(26,Y=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(27,fe=l.scoreCriteria),e(28,de=l.minBetCount),me=l.prizes,e(29,K=l.wallets||[]))},Ve=l=>{e(15,j=!0);let _=new URL(l),v=new Headers;_.searchParams.append("language",w),_.searchParams.append("platform",re(oe)),C&&v.append("X-SessionID",I),fetch(_,{method:"GET",headers:v}).then(E=>E.json()).then(E=>{e(15,j=!1),N(E.item)})},Xe=()=>{o.length>0&&o!="false"?(I=o,e(14,C=!0)):e(14,C=!1)},Ne=()=>{if(A){N(A);return}e(15,j=!0),Ve(a)},Ze=()=>{let l=document.createElement("style");l.innerHTML=x,S.appendChild(l)},Qe=()=>{let l=new URL(O),_=document.createElement("style");fetch(l.href).then(v=>v.text()).then(v=>{_.innerHTML=v,setTimeout(()=>{S.appendChild(_)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,j=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",pe,!1),()=>{window.removeEventListener("message",pe)}));const $e=()=>_e(),et=()=>ge(),tt=()=>X(T),nt=()=>be(T,K),rt=()=>X(T);function it(l){n.binding_callbacks[l?"unshift":"push"](()=>{S=l,e(13,S)})}return r.$$set=l=>{"session"in l&&e(0,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(37,u=l.touridx),"endpoint"in l&&e(38,c=l.endpoint),"showdetails"in l&&e(3,m=l.showdetails),"showslider"in l&&e(4,d=l.showslider),"showenrolled"in l&&e(5,g=l.showenrolled),"maxwidth"in l&&e(6,y=l.maxwidth),"fullsize"in l&&e(7,b=l.fullsize),"lang"in l&&e(8,w=l.lang),"loginevent"in l&&e(39,h=l.loginevent),"registerevent"in l&&e(40,f=l.registerevent),"loginurl"in l&&e(41,p=l.loginurl),"registerurl"in l&&e(42,B=l.registerurl),"currency"in l&&e(43,q=l.currency),"keepbrowsercontext"in l&&e(9,ie=l.keepbrowsercontext),"clientstyling"in l&&e(10,x=l.clientstyling),"clientstylingurl"in l&&e(11,O=l.clientstylingurl),"translationurl"in l&&e(12,D=l.translationurl),"tournamentinfo"in l&&e(44,A=l.tournamentinfo)},r.$$.update=()=>{r.$$.dirty[0]&9216&&S&&x&&Ze(),r.$$.dirty[0]&10240&&S&&O&&Qe(),r.$$.dirty[0]&4096&&D&&Ye(),r.$$.dirty[0]&1&&o&&Xe(),r.$$.dirty[0]&260&&e(45,V=a&&w),r.$$.dirty[1]&16384&&V&&Ne()},[o,s,a,m,d,g,y,b,w,ie,x,O,D,S,C,j,M,L,se,G,ae,le,ue,z,T,ce,Y,fe,de,K,R,i,_e,ge,X,be,we,u,c,h,f,p,B,q,A,V,$e,et,tt,nt,rt,it]}class Ge extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Bt,Pt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:44},yt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[37]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[39]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[40]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get loginurl(){return this.$$.ctx[41]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[42]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[43]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[44]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}}n.create_custom_element(Ge,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const xt=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=xt;exports.getDevice=re;
|