@everymatrix/tournament-details-page 0.0.4 → 0.0.5
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/{TournamentDetails-AYkmST0l.cjs → TournamentDetails-2nXu_Fl0.cjs} +1 -1
- package/components/{TournamentDetails-glnpe9gf.js → TournamentDetails-ByOP8vGa.js} +288 -289
- package/components/{TournamentDetails-CIK1Vnx8.js → TournamentDetails-DIGjTSwQ.js} +21 -22
- package/components/{TournamentDetailsPage-DCB9anwm.js → TournamentDetailsPage-CPVEgDYR.js} +36 -36
- package/components/{TournamentDetailsPage-85B_WTCl.cjs → TournamentDetailsPage-CpVOLote.cjs} +6 -6
- package/components/{TournamentDetailsPage-D6daHDII.js → TournamentDetailsPage-Dlv02xHw.js} +27 -27
- package/components/{TournamentGames-CDfNoeoq.js → TournamentGames-0cZY55hS.js} +130 -117
- package/components/{TournamentGames-0RUJ48Xu.js → TournamentGames-3vEVB6E0.js} +144 -130
- package/components/{TournamentGames-3qu_5rFn.cjs → TournamentGames-54X0-O5B.cjs} +3 -3
- package/components/{TournamentLeaderboard-BUiKtCk5.cjs → TournamentLeaderboard-CXLrlJUG.cjs} +6 -12
- package/components/{TournamentLeaderboard-5oGHOpP6.js → TournamentLeaderboard-D7ktm7ED.js} +242 -248
- package/components/{TournamentLeaderboard-CF-QWN1C.js → TournamentLeaderboard-nb3ySbAn.js} +211 -217
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +1 -1
- package/esnext/tournament-details-page.js +1 -1
- package/package.json +1 -1
|
@@ -6735,19 +6735,28 @@ function Ta(e, t) {
|
|
|
6735
6735
|
const r = () => Ko(Xf, "$_", n), [n, i] = qo();
|
|
6736
6736
|
mt.extend(qf);
|
|
6737
6737
|
const s = Pn(t, "tournament"), a = Pn(t, "language", 7, "en"), o = Pn(t, "enrolled");
|
|
6738
|
-
|
|
6739
|
-
|
|
6738
|
+
Object.keys(Yi).forEach((F) => {
|
|
6739
|
+
Wf(F, Yi[F]);
|
|
6740
|
+
});
|
|
6741
|
+
const u = () => {
|
|
6742
|
+
Jf(a());
|
|
6743
|
+
};
|
|
6744
|
+
Yn(() => {
|
|
6745
|
+
u();
|
|
6746
|
+
});
|
|
6747
|
+
let f = /* @__PURE__ */ qe(Qt({})), l = /* @__PURE__ */ qe(!1), c;
|
|
6748
|
+
const h = () => {
|
|
6740
6749
|
if (!s()) return;
|
|
6741
6750
|
const F = mt();
|
|
6742
6751
|
if (mt(s().endTime).isBefore(F)) {
|
|
6743
|
-
Xe(
|
|
6752
|
+
Xe(l, !0);
|
|
6744
6753
|
return;
|
|
6745
6754
|
} else
|
|
6746
|
-
|
|
6747
|
-
},
|
|
6755
|
+
v(), c = setInterval(v, 1e3);
|
|
6756
|
+
}, v = () => {
|
|
6748
6757
|
const F = mt(), $ = mt(s().endTime).diff(F), J = mt.duration($), ie = Math.floor(J.asDays()), ue = J.hours(), pe = J.minutes(), Pe = J.seconds();
|
|
6749
6758
|
Xe(
|
|
6750
|
-
|
|
6759
|
+
f,
|
|
6751
6760
|
{
|
|
6752
6761
|
days: ie,
|
|
6753
6762
|
hours: String(ue).padStart(2, "0"),
|
|
@@ -6756,17 +6765,7 @@ function Ta(e, t) {
|
|
|
6756
6765
|
},
|
|
6757
6766
|
!0
|
|
6758
6767
|
);
|
|
6759
|
-
}
|
|
6760
|
-
Object.keys(Yi).forEach((F) => {
|
|
6761
|
-
Wf(F, Yi[F]);
|
|
6762
|
-
});
|
|
6763
|
-
const v = () => {
|
|
6764
|
-
Jf(a());
|
|
6765
|
-
};
|
|
6766
|
-
Yn(() => {
|
|
6767
|
-
v();
|
|
6768
|
-
});
|
|
6769
|
-
const T = {
|
|
6768
|
+
}, T = {
|
|
6770
6769
|
Unstarted: "Upcoming",
|
|
6771
6770
|
Running: "Live",
|
|
6772
6771
|
Closed: "Ended",
|
|
@@ -6775,9 +6774,9 @@ function Ta(e, t) {
|
|
|
6775
6774
|
window.postMessage({ type: "ShowTournamentPrizes", tournamentId: s().id }, window.location.href);
|
|
6776
6775
|
};
|
|
6777
6776
|
Yn(() => {
|
|
6778
|
-
s() &&
|
|
6777
|
+
s() && h();
|
|
6779
6778
|
}), Io(() => {
|
|
6780
|
-
|
|
6779
|
+
c && clearInterval(c);
|
|
6781
6780
|
});
|
|
6782
6781
|
var p = {
|
|
6783
6782
|
get tournament() {
|
|
@@ -6839,16 +6838,16 @@ function Ta(e, t) {
|
|
|
6839
6838
|
var dr = Se(Ft, 2), Cr = ae(dr, !0);
|
|
6840
6839
|
se(dr), se(ie), se(q), Fr(
|
|
6841
6840
|
(Ma, Pa) => {
|
|
6842
|
-
Ae(J, Ma), Ur(ue, 1, `TimeSegment ${te(
|
|
6841
|
+
Ae(J, Ma), Ur(ue, 1, `TimeSegment ${te(f).days === 0 ? "Hidden" : ""}`, "svelte-1fgbug1"), Ae(pe, Pa), Ur(Pe, 1, Yo(te(f).days === 0 ? "Hidden" : ""), "svelte-1fgbug1"), Ae(vt, te(f).days > 0 ? " - " : null), Ae(Lr, te(f).hours), Ae(Dr, te(f).minutes), Ae(Cr, te(f).seconds);
|
|
6843
6842
|
},
|
|
6844
6843
|
[
|
|
6845
6844
|
() => r()("endsInLabel"),
|
|
6846
|
-
() => te(
|
|
6845
|
+
() => te(f).days > 0 ? `${te(f).days} ${r()("daysLabel")}` : null
|
|
6847
6846
|
]
|
|
6848
6847
|
), kr(F, q);
|
|
6849
6848
|
};
|
|
6850
6849
|
Si(A, (F) => {
|
|
6851
|
-
te(
|
|
6850
|
+
te(l) || F(N);
|
|
6852
6851
|
});
|
|
6853
6852
|
}
|
|
6854
6853
|
var X = Se(A, 2), K = ae(X), re = ae(K);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ge, a as Mt, b as Et, d as Je, c as Pt, e as Rt, f as Lt, p as Ot, g as Bt, h as V, u as
|
|
1
|
+
import { $ as ge, a as Mt, b as Et, d as Je, c as Pt, e as Rt, f as Lt, p as Ot, g as Bt, h as V, u as At, s as R, i as Ie, o as Ht, j as q, k as M, l as v, m as h, n as _, q as jt, r as It, t as x, v as D, w as u, x as m, y as F, z as p, A as b, B as te, C as Wt, D as z, E as We, F as Vt, G as A, H as Dt, I as G } from "./TournamentDetails-ByOP8vGa.js";
|
|
2
2
|
function Ft({ withLocale: r, translations: t }) {
|
|
3
3
|
ge.subscribe((e) => {
|
|
4
4
|
e == null && (Mt.set(t), ge.set(r));
|
|
@@ -131,7 +131,7 @@ function xe(r, t, e) {
|
|
|
131
131
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
132
132
|
return r.concat(o || t);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function H(r) {
|
|
135
135
|
return typeof r == "function";
|
|
136
136
|
}
|
|
137
137
|
function Ne(r) {
|
|
@@ -183,7 +183,7 @@ var ie = function() {
|
|
|
183
183
|
else
|
|
184
184
|
a.remove(this);
|
|
185
185
|
var S = this.initialTeardown;
|
|
186
|
-
if (
|
|
186
|
+
if (H(S))
|
|
187
187
|
try {
|
|
188
188
|
S();
|
|
189
189
|
} catch (w) {
|
|
@@ -245,10 +245,10 @@ var ie = function() {
|
|
|
245
245
|
}(), r;
|
|
246
246
|
}(), $e = ie.EMPTY;
|
|
247
247
|
function Ye(r) {
|
|
248
|
-
return r instanceof ie || r && "closed" in r &&
|
|
248
|
+
return r instanceof ie || r && "closed" in r && H(r.remove) && H(r.add) && H(r.unsubscribe);
|
|
249
249
|
}
|
|
250
250
|
function De(r) {
|
|
251
|
-
|
|
251
|
+
H(r) ? r() : r.unsubscribe();
|
|
252
252
|
}
|
|
253
253
|
var zt = {
|
|
254
254
|
Promise: void 0
|
|
@@ -339,7 +339,7 @@ var Ke = function(r) {
|
|
|
339
339
|
Y(t, r);
|
|
340
340
|
function t(e, n, i) {
|
|
341
341
|
var o = r.call(this) || this, a;
|
|
342
|
-
return
|
|
342
|
+
return H(e) || !e ? a = {
|
|
343
343
|
next: e ?? void 0,
|
|
344
344
|
error: n ?? void 0,
|
|
345
345
|
complete: i ?? void 0
|
|
@@ -436,7 +436,7 @@ function Ze(r) {
|
|
|
436
436
|
return (t = r ?? zt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
437
437
|
}
|
|
438
438
|
function Qt(r) {
|
|
439
|
-
return r &&
|
|
439
|
+
return r && H(r.next) && H(r.error) && H(r.complete);
|
|
440
440
|
}
|
|
441
441
|
function er(r) {
|
|
442
442
|
return r && r instanceof Ke || Qt(r) && Ye(r);
|
|
@@ -596,7 +596,7 @@ if (typeof window < "u") {
|
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
598
|
};
|
|
599
|
-
customElements.define = r(customElements.define), import("./TournamentLeaderboard-
|
|
599
|
+
customElements.define = r(customElements.define), import("./TournamentLeaderboard-D7ktm7ED.js").then(({ default: t }) => {
|
|
600
600
|
!customElements.get("tournament-leaderboard") && customElements.define("tournament-leaderboard", t.element);
|
|
601
601
|
});
|
|
602
602
|
}
|
|
@@ -612,7 +612,7 @@ if (typeof window < "u") {
|
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
614
|
};
|
|
615
|
-
customElements.define = r(customElements.define), import("./TournamentDetails-
|
|
615
|
+
customElements.define = r(customElements.define), import("./TournamentDetails-ByOP8vGa.js").then((t) => t.T).then(({ default: t }) => {
|
|
616
616
|
!customElements.get("tournament-details") && customElements.define("tournament-details", t.element);
|
|
617
617
|
});
|
|
618
618
|
}
|
|
@@ -628,7 +628,7 @@ if (typeof window < "u") {
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
|
-
customElements.define = r(customElements.define), import("./TournamentGames-
|
|
631
|
+
customElements.define = r(customElements.define), import("./TournamentGames-0cZY55hS.js").then(({ default: t }) => {
|
|
632
632
|
!customElements.get("tournament-games") && customElements.define("tournament-games", t.element);
|
|
633
633
|
});
|
|
634
634
|
}
|
|
@@ -637,10 +637,10 @@ const yr = {
|
|
|
637
637
|
hash: "svelte-gxy8gu",
|
|
638
638
|
code: `.svelte-gxy8gu,
|
|
639
639
|
.svelte-gxy8gu::before,
|
|
640
|
-
.svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:6px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-
|
|
640
|
+
.svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:6px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;&.Details {height:400px;}&.Leaderboard {height:400px;}&.Rules {height:150px;}&.Games {height:300px;}}.SkeletonShimmer.svelte-gxy8gu {width:100%;height:100%;background:linear-gradient(
|
|
641
641
|
90deg,
|
|
642
642
|
transparent 0%,
|
|
643
|
-
var(--emw-color-skeleton, #
|
|
643
|
+
var(--emw-color-skeleton, #535353) 50%,
|
|
644
644
|
transparent 100%
|
|
645
645
|
);
|
|
646
646
|
animation: svelte-gxy8gu-loading 1.5s infinite;transform:translateX(-100%);}
|
|
@@ -684,7 +684,7 @@ function br(r, t) {
|
|
|
684
684
|
const Z = () => {
|
|
685
685
|
Zt(l());
|
|
686
686
|
};
|
|
687
|
-
|
|
687
|
+
At(() => {
|
|
688
688
|
Z();
|
|
689
689
|
});
|
|
690
690
|
let d = R(Ie(o()?.tournament || null)), K = R(Ie([])), w = R(!1), Se = R(void 0), oe = R(!1), Te = R(!1), ke = R(""), Q = R(!1), Me = R(void 0), X = R(!1);
|
|
@@ -692,8 +692,8 @@ function br(r, t) {
|
|
|
692
692
|
x(w, !0);
|
|
693
693
|
const s = new URL(`${a()}/v1/tournaments/${C()}`), T = new Headers();
|
|
694
694
|
c() && T.append("X-SessionId", c());
|
|
695
|
-
const
|
|
696
|
-
s.searchParams.append("language", l()), s.searchParams.append("expand", "games"), s.searchParams.append("pagination", `games(limit=${S()},offset=0)`), s.searchParams.append("platform", ee), fetch(s,
|
|
695
|
+
const j = { method: "GET", headers: T };
|
|
696
|
+
s.searchParams.append("language", l()), s.searchParams.append("expand", "games"), s.searchParams.append("pagination", `games(limit=${S()},offset=0)`), s.searchParams.append("platform", ee), fetch(s, j).then((y) => y.json()).then((y) => {
|
|
697
697
|
x(d, y?.item, !0), x(K, y?.item?.games?.items, !0), x(Se, y?.item?.games?.total, !0), x(Me, y?.item?.metadata, !0);
|
|
698
698
|
}).catch((y) => console.log(y)).finally(() => {
|
|
699
699
|
x(w, !1);
|
|
@@ -708,8 +708,8 @@ function br(r, t) {
|
|
|
708
708
|
s.searchParams.append("language", l()), s.searchParams.append("platform", ee);
|
|
709
709
|
const T = new Headers();
|
|
710
710
|
T.append("Content-Type", "application/json"), T.append("X-SessionID", c());
|
|
711
|
-
let
|
|
712
|
-
u(d).wallets && u(d).wallets.length > 0 && (
|
|
711
|
+
let j = {};
|
|
712
|
+
u(d).wallets && u(d).wallets.length > 0 && (j = {
|
|
713
713
|
language: l(),
|
|
714
714
|
bonusCode: u(d).wallets[0].code,
|
|
715
715
|
currency: u(d).baseCurrency,
|
|
@@ -718,7 +718,7 @@ function br(r, t) {
|
|
|
718
718
|
const y = {
|
|
719
719
|
method: "PUT",
|
|
720
720
|
headers: T,
|
|
721
|
-
body: JSON.stringify(
|
|
721
|
+
body: JSON.stringify(j)
|
|
722
722
|
};
|
|
723
723
|
fetch(s, y).then((E) => E.json()).then((E) => {
|
|
724
724
|
E && (E.success == !0 ? x(Q, !0) : E.errorMessage.match("VersionMismatchException") && rt());
|
|
@@ -728,7 +728,7 @@ function br(r, t) {
|
|
|
728
728
|
}, it = () => {
|
|
729
729
|
x(X, !u(X));
|
|
730
730
|
};
|
|
731
|
-
|
|
731
|
+
Ht(() => {
|
|
732
732
|
o() || c() && C() && a() && tt();
|
|
733
733
|
});
|
|
734
734
|
var ot = {
|
|
@@ -777,7 +777,7 @@ function br(r, t) {
|
|
|
777
777
|
}, ae = gr(), Ee = h(ae);
|
|
778
778
|
{
|
|
779
779
|
var at = (s) => {
|
|
780
|
-
var T = hr(),
|
|
780
|
+
var T = hr(), j = F(T), y = h(j);
|
|
781
781
|
p(() => b(y, "tournament", u(d))), p(() => b(y, "language", l())), p(() => b(y, "enrolled", u(d).playerEnrolled)), te(y, 1, "svelte-gxy8gu");
|
|
782
782
|
var E = v(y, 2);
|
|
783
783
|
{
|
|
@@ -805,8 +805,8 @@ function br(r, t) {
|
|
|
805
805
|
!u(d).playerEnrolled && u(d).state !== "Closed" && O(ct);
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
|
-
m(
|
|
809
|
-
var I = v(
|
|
808
|
+
m(j);
|
|
809
|
+
var I = v(j, 2);
|
|
810
810
|
p(() => b(I, "endpoint", a())), p(() => b(I, "language", l())), p(() => b(I, "session", c())), p(() => b(I, "tournamentid", C())), p(() => b(I, "platform", ee)), te(I, 1, "svelte-gxy8gu");
|
|
811
811
|
var se = v(I, 2), J = h(se);
|
|
812
812
|
J.__click = it;
|
|
@@ -823,7 +823,7 @@ function br(r, t) {
|
|
|
823
823
|
{
|
|
824
824
|
var ce = (f) => {
|
|
825
825
|
var g = G(), k = F(g);
|
|
826
|
-
|
|
826
|
+
A(k, () => e()("scoreCriteriaType.mostRounds")), _(f, g);
|
|
827
827
|
};
|
|
828
828
|
M(W, (f) => {
|
|
829
829
|
u(d).scoreCriteria == "BetCount" && f(ce);
|
|
@@ -833,7 +833,7 @@ function br(r, t) {
|
|
|
833
833
|
{
|
|
834
834
|
var ht = (f) => {
|
|
835
835
|
var g = G(), k = F(g);
|
|
836
|
-
|
|
836
|
+
A(k, () => e()("scoreCriteriaType.winStakeRatio")), _(f, g);
|
|
837
837
|
};
|
|
838
838
|
M(Pe, (f) => {
|
|
839
839
|
u(d).scoreCriteria == "WinStakeRatio" && f(ht);
|
|
@@ -843,7 +843,7 @@ function br(r, t) {
|
|
|
843
843
|
{
|
|
844
844
|
var mt = (f) => {
|
|
845
845
|
var g = G(), k = F(g);
|
|
846
|
-
|
|
846
|
+
A(k, () => e()("scoreCriteriaType.maxWinStakeRatio")), _(f, g);
|
|
847
847
|
};
|
|
848
848
|
M(Re, (f) => {
|
|
849
849
|
u(d).scoreCriteria == "MaxWinStakeRatio" && f(mt);
|
|
@@ -853,7 +853,7 @@ function br(r, t) {
|
|
|
853
853
|
{
|
|
854
854
|
var gt = (f) => {
|
|
855
855
|
var g = G(), k = F(g);
|
|
856
|
-
|
|
856
|
+
A(k, () => e()("scoreCriteriaType.stake")), _(f, g);
|
|
857
857
|
};
|
|
858
858
|
M(Le, (f) => {
|
|
859
859
|
u(d).scoreCriteria == "Stake" && f(gt);
|
|
@@ -863,7 +863,7 @@ function br(r, t) {
|
|
|
863
863
|
{
|
|
864
864
|
var yt = (f) => {
|
|
865
865
|
var g = G(), k = F(g);
|
|
866
|
-
|
|
866
|
+
A(k, () => e()("scoreCriteriaType.win")), _(f, g);
|
|
867
867
|
};
|
|
868
868
|
M(Oe, (f) => {
|
|
869
869
|
u(d).scoreCriteria == "Win" && f(yt);
|
|
@@ -873,7 +873,7 @@ function br(r, t) {
|
|
|
873
873
|
{
|
|
874
874
|
var wt = (f) => {
|
|
875
875
|
var g = G(), k = F(g);
|
|
876
|
-
|
|
876
|
+
A(k, () => e()("scoreCriteriaType.winBetCount")), _(f, g);
|
|
877
877
|
};
|
|
878
878
|
M(bt, (f) => {
|
|
879
879
|
u(d).scoreCriteria == "WinBetCount" && f(wt);
|
|
@@ -883,20 +883,20 @@ function br(r, t) {
|
|
|
883
883
|
var de = v(N, 2), fe = h(de), xt = h(fe);
|
|
884
884
|
m(fe);
|
|
885
885
|
var Be = v(fe, 2), Ct = h(Be);
|
|
886
|
-
|
|
886
|
+
A(Ct, () => e()("miniBetCount", { values: { betCount: u(d).minBetCount } })), m(Be), m(de);
|
|
887
887
|
var pe = v(de, 2), ve = h(pe), _t = h(ve);
|
|
888
888
|
m(ve);
|
|
889
|
-
var
|
|
890
|
-
|
|
889
|
+
var Ae = v(ve, 2), St = h(Ae);
|
|
890
|
+
A(St, () => e()("timePeriod", {
|
|
891
891
|
values: {
|
|
892
892
|
startTime: Xe(u(d).startTime),
|
|
893
893
|
endTime: Xe(u(d).endTime)
|
|
894
894
|
}
|
|
895
|
-
})), m(
|
|
896
|
-
var
|
|
895
|
+
})), m(Ae), m(pe);
|
|
896
|
+
var He = v(pe, 2), he = h(He), Tt = h(he);
|
|
897
897
|
m(he);
|
|
898
|
-
var
|
|
899
|
-
|
|
898
|
+
var je = v(he, 2), kt = h(je);
|
|
899
|
+
A(kt, () => e()("terms", { values: { tcUrl: u(d).termsUrl || "#" } })), m(je), m(He), m(P), p(() => {
|
|
900
900
|
z(ue, "src", ur), z(xt, "src", lr), z(_t, "src", dr), z(Tt, "src", cr);
|
|
901
901
|
}), _(O, P);
|
|
902
902
|
};
|
|
@@ -928,7 +928,7 @@ function br(r, t) {
|
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
930
|
m(ae), _(r, ae);
|
|
931
|
-
var ut =
|
|
931
|
+
var ut = jt(ot);
|
|
932
932
|
return i(), ut;
|
|
933
933
|
}
|
|
934
934
|
Rt(["click"]);
|
package/components/{TournamentDetailsPage-85B_WTCl.cjs → TournamentDetailsPage-CpVOLote.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var xe=(n,r,t)=>new Promise((i,o)=>{var s=c=>{try{u(t.next(c))}catch(m){o(m)}},a=c=>{try{u(t.throw(c))}catch(m){o(m)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((t=t.apply(n,r)).next())});const e=require("./TournamentDetails-
|
|
1
|
+
"use strict";var xe=(n,r,t)=>new Promise((i,o)=>{var s=c=>{try{u(t.next(c))}catch(m){o(m)}},a=c=>{try{u(t.throw(c))}catch(m){o(m)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((t=t.apply(n,r)).next())});const e=require("./TournamentDetails-2nXu_Fl0.cjs");function dt({withLocale:n,translations:r}){e.$locale.subscribe(t=>{t==null&&(e.$dictionary.set(r),e.$locale.set(n))})}function ft(n,r){e.addMessages(n,r)}function pt(n){e.$locale.set(n)}const Ce={en:{totalPrizes:"Total prizes",viewPrizes:"View Prizes",moreGames:"More Games",play:"Play",joinButton:"Join",rules:"Rules",scoreCriteriaType:{stake:"The score criteria for this tournament is <b>Turnover</b>. For each X generated (X= amount wagered in player currency or equivalent in base currency) player will get 1 point. The player who will have the largest turnover will have the highest score and rank.",mostRounds:"The score criteria for this tournament is <b>Most Rounds</b>. For every played round player will get 1 point. The player who will have the biggest number of played rounds / placed bets will have the highest score and rank.",winStakeRatio:`The score criteria for this tournament is <b>Win/Stake Ratio</b>. The score will be calculated
|
|
2
2
|
as a sum of win/stake ratios for qualified rounds and bets.
|
|
3
3
|
The player who got the highest score will win the tournament.`,winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
|
|
4
4
|
<span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
|
|
@@ -20,14 +20,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
20
20
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
21
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
22
|
PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
-
***************************************************************************** */var te=function(n,r){return te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},te(n,r)};function
|
|
23
|
+
***************************************************************************** */var te=function(n,r){return te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},te(n,r)};function H(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");te(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function re(n){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&n[r],i=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),o,s=[],a;try{for(;(r===void 0||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(u){a={error:u}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(a)throw a.error}}return s}function ie(n,r,t){if(arguments.length===2)for(var i=0,o=r.length,s;i<o;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return n.concat(s||r)}function k(n){return typeof n=="function"}function Le(n){var r=function(i){Error.call(i),i.stack=new Error().stack},t=n(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ee=Le(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
24
24
|
`+t.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
25
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function oe(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var Z=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,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=re(a),c=u.next();!c.done;c=u.next()){var m=c.value;m.remove(this)}}catch(g){r={error:g}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else a.remove(this);var b=this.initialTeardown;if(k(b))try{b()}catch(g){s=g instanceof ee?g.errors:[g]}var R=this._finalizers;if(R){this._finalizers=null;try{for(var O=re(R),d=O.next();!d.done;d=O.next()){var I=d.value;try{Se(I)}catch(g){s=s!=null?s:[],g instanceof ee?s=ie(ie([],ne(s)),ne(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{d&&!d.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}}if(s)throw new ee(s)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)Se(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&oe(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&oe(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),Be=Z.EMPTY;function je(n){return n instanceof Z||n&&"closed"in n&&k(n.remove)&&k(n.add)&&k(n.unsubscribe)}function Se(n){k(n)?n():n.unsubscribe()}var mt={Promise:void 0},ht={setTimeout:function(n,r){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,ie([n,r],ne(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function gt(n){ht.setTimeout(function(){throw n})}function Te(){}function U(n){n()}var He=function(n){A(r,n);function r(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,je(t)&&t.add(i)):i.destination=bt,i}return r.create=function(t,i,o){return new se(t,i,o)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Z),vt=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(i){F(i)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(i){F(i)}else F(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){F(t)}},n}(),se=function(n){A(r,n);function r(t,i,o){var s=n.call(this)||this,a;return k(t)||!t?a={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:a=t,s.destination=new vt(a),s}return r}(He);function F(n){gt(n)}function yt(n){throw n}var bt={closed:!0,next:Te,error:yt,complete:Te},_t=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wt(n){return n}function xt(n){return n.length===0?wt:n.length===1?n[0]:function(t){return n.reduce(function(i,o){return o(i)},t)}}var ke=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,i){var o=this,s=St(r)?r:new se(r,t,i);return U(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},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var i=this;return t=Me(t),new t(function(o,s){var a=new se({next:function(u){try{r(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[_t]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return xt(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=Me(r),new r(function(i,o){var s;t.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},n.create=function(r){return new n(r)},n}();function Me(n){var r;return(r=n!=null?n:mt.Promise)!==null&&r!==void 0?r:Promise}function Ct(n){return n&&k(n.next)&&k(n.error)&&k(n.complete)}function St(n){return n&&n instanceof He||Ct(n)&&je(n)}var Tt=Le(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ae=function(n){A(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var i=new Pe(this,this);return i.operator=t,i},r.prototype._throwIfClosed=function(){if(this.closed)throw new Tt},r.prototype.next=function(t){var i=this;U(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=re(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(t)}}catch(m){o={error:m}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var i=this;U(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var o=i.observers;o.length;)o.shift().error(t)}})},r.prototype.complete=function(){var t=this;U(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Be:(this.currentObservers=null,u.push(t),new Z(function(){i.currentObservers=null,oe(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?t.error(s):a&&t.complete()},r.prototype.asObservable=function(){var t=new ke;return t.source=this,t},r.create=function(t,i){return new Pe(t,i)},r}(ke),Pe=function(n){A(r,n);function r(t,i){var o=n.call(this)||this;return o.destination=t,o.source=i,o}return r.prototype.next=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,t)},r.prototype.error=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,t)},r.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},r.prototype._subscribe=function(t){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&o!==void 0?o:Be},r}(Ae),Ie={now:function(){return(Ie.delegate||Date).now()},delegate:void 0},kt=function(n){A(r,n);function r(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Ie);var s=n.call(this)||this;return s._bufferSize=t,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,i),s}return r.prototype.next=function(t){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(t),!a&&s.push(u.now()+c)),this._trimBuffer(),n.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!t.closed;c+=s?1:2)t.next(u[c]);return this._checkFinalizedStatuses(t),i},r.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,s=t._buffer,a=t._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,b=1;b<s.length&&s[b]<=c;b+=2)m=b;m&&s.splice(0,m+1)}},r}(Ae);const Ee=[],Re={},Mt=(n,r=0)=>{if(Ee.indexOf(n)==-1){const t=new kt(r);Re[n]=t,Ee.push(n)}return Re[n]};window.emWidgets={topic:Mt};const De=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;e.dayjs.extend(e.customParseFormat);const Oe=n=>e.dayjs(n).format("MMMM D, HH:mm"),Pt=()=>typeof window=="undefined",Et="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3098%207.23828L5.84025%202.76374L1.3727%207.23828L0%205.8605L5.84025%200.000186443L11.6825%205.8605L10.3098%207.23828Z'%20fill='white'/%3e%3c/svg%3e",Rt="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37278%200L5.84236%204.47454L10.3099%200L11.6826%201.37778L5.84236%207.23809L7.72476e-05%201.37778L1.37278%200Z'%20fill='white'/%3e%3c/svg%3e",Ot="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.55556%204C6.32986%204%205.33333%204.96094%205.33333%206.14286V13.6429C5.33333%2014.8248%206.32986%2015.7857%207.55556%2015.7857H19.7778C21.0035%2015.7857%2022%2014.8248%2022%2013.6429V6.14286C22%204.96094%2021.0035%204%2019.7778%204H7.55556ZM13.6667%207.21429C15.2014%207.21429%2016.4444%208.41295%2016.4444%209.89286C16.4444%2011.3728%2015.2014%2012.5714%2013.6667%2012.5714C12.1319%2012.5714%2010.8889%2011.3728%2010.8889%209.89286C10.8889%208.41295%2012.1319%207.21429%2013.6667%207.21429ZM7.55556%208.01786V6.41071C7.55556%206.26339%207.68056%206.14286%207.83333%206.14286H9.5C9.65278%206.14286%209.78125%206.26339%209.76042%206.41071C9.63542%207.3817%208.83681%208.14844%207.83333%208.26897C7.68056%208.28571%207.55556%208.16518%207.55556%208.01786ZM7.55556%2011.7679C7.55556%2011.6205%207.68056%2011.4967%207.83333%2011.5167C8.84028%2011.6373%209.63542%2012.4074%209.76042%2013.375C9.77778%2013.5223%209.65278%2013.6429%209.5%2013.6429H7.83333C7.68056%2013.6429%207.55556%2013.5223%207.55556%2013.375V11.7679ZM19.5%208.26897C18.4931%208.14844%2017.6979%207.37835%2017.5729%206.41071C17.5556%206.26339%2017.6806%206.14286%2017.8333%206.14286H19.5C19.6528%206.14286%2019.7778%206.26339%2019.7778%206.41071V8.01786C19.7778%208.16518%2019.6528%208.28906%2019.5%208.26897ZM19.7778%2011.7679V13.375C19.7778%2013.5223%2019.6528%2013.6429%2019.5%2013.6429H17.8333C17.6806%2013.6429%2017.5521%2013.5223%2017.5729%2013.375C17.6979%2012.404%2018.4965%2011.6373%2019.5%2011.5167C19.6528%2011.5%2019.7778%2011.6205%2019.7778%2011.7679ZM3.66667%208.01786C3.66667%207.57254%203.29514%207.21429%202.83333%207.21429C2.37153%207.21429%202%207.57254%202%208.01786V16.8571C2%2018.0391%202.99653%2019%204.22222%2019H17.8333C18.2951%2019%2018.6667%2018.6417%2018.6667%2018.1964C18.6667%2017.7511%2018.2951%2017.3929%2017.8333%2017.3929H4.22222C3.91667%2017.3929%203.66667%2017.1518%203.66667%2016.8571V8.01786Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Lt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%208.16216V8.23516C22%209.09516%2022%209.52616%2021.793%209.87816C21.586%2010.2302%2021.209%2010.4392%2020.457%2010.8582L19.664%2011.2982C20.21%209.45016%2020.393%207.46416%2020.46%205.76616L20.47%205.54516L20.472%205.49316C21.123%205.71916%2021.489%205.88816%2021.717%206.20416C22%206.59716%2022%207.11916%2022%208.16216ZM2%208.16216V8.23516C2%209.09516%202%209.52616%202.207%209.87816C2.414%2010.2302%202.791%2010.4392%203.543%2010.8582L4.337%2011.2982C3.79%209.45016%203.607%207.46416%203.54%205.76616L3.53%205.54516L3.529%205.49316C2.877%205.71916%202.511%205.88816%202.283%206.20416C2%206.59716%202%207.12016%202%208.16216Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3774%202.34723C14.9305%202.11022%2013.4665%201.99415%2012.0004%202.00023C10.2174%202.00023%208.74737%202.15723%207.62337%202.34723C6.48437%202.53923%205.91537%202.63523%205.43937%203.22123C4.96437%203.80723%204.98937%204.44023%205.03937%205.70623C5.21237%2010.0542%206.15037%2015.4862%2011.2504%2015.9662V19.5002H9.82037C9.58928%2019.5004%209.36537%2019.5805%209.18671%2019.7271C9.00805%2019.8737%208.88567%2020.0776%208.84037%2020.3042L8.65037%2021.2502H6.00037C5.80146%2021.2502%205.61069%2021.3292%205.47004%2021.4699C5.32939%2021.6105%205.25037%2021.8013%205.25037%2022.0002C5.25037%2022.1991%205.32939%2022.3899%205.47004%2022.5306C5.61069%2022.6712%205.80146%2022.7502%206.00037%2022.7502H18.0004C18.1993%2022.7502%2018.3901%2022.6712%2018.5307%2022.5306C18.6714%2022.3899%2018.7504%2022.1991%2018.7504%2022.0002C18.7504%2021.8013%2018.6714%2021.6105%2018.5307%2021.4699C18.3901%2021.3292%2018.1993%2021.2502%2018.0004%2021.2502H15.3504L15.1604%2020.3042C15.1151%2020.0776%2014.9927%2019.8737%2014.814%2019.7271C14.6354%2019.5805%2014.4115%2019.5004%2014.1804%2019.5002H12.7504V15.9662C17.8504%2015.4862%2018.7894%2010.0552%2018.9614%205.70623C19.0114%204.44023%2019.0374%203.80623%2018.5614%203.22123C18.0854%202.63523%2017.5164%202.53923%2016.3774%202.34723ZM12.7874%205.80723C12.9244%205.864%2013.0416%205.96014%2013.124%206.08349C13.2064%206.20685%2013.2504%206.35187%2013.2504%206.50023V10.5002C13.2504%2010.6991%2013.1714%2010.8899%2013.0307%2011.0306C12.89%2011.1712%2012.6993%2011.2502%2012.5004%2011.2502C12.3015%2011.2502%2012.1107%2011.1712%2011.97%2011.0306C11.8294%2010.8899%2011.7504%2010.6991%2011.7504%2010.5002V8.31023L11.5304%208.53023C11.4617%208.60391%2011.3789%208.66302%2011.2869%208.70401C11.1949%208.745%2011.0956%208.76704%2010.9949%208.76882C10.8942%208.7706%2010.7942%208.75207%2010.7008%208.71435C10.6074%208.67663%2010.5226%208.62048%2010.4513%208.54926C10.3801%208.47805%2010.324%208.39321%2010.2862%208.29982C10.2485%208.20644%2010.23%208.10641%2010.2318%208.0057C10.2336%207.905%2010.2556%207.80569%2010.2966%207.71369C10.3376%207.62169%2010.3967%207.53889%2010.4704%207.47023L11.9704%205.97023C12.0752%205.86533%2012.2087%205.79387%2012.3542%205.76485C12.4996%205.73584%2012.6503%205.75059%2012.7874%205.80723Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Bt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.3226%202.25641C14.3226%202.18841%2014.2954%202.12319%2014.247%202.0751C14.1986%202.02701%2014.133%202%2014.0645%202H6.83871C6.08584%202%205.3638%202.29716%204.83144%202.82611C4.29908%203.35506%204%204.07247%204%204.82051V19.1795C4%2019.9275%204.29908%2020.6449%204.83144%2021.1739C5.3638%2021.7028%206.08584%2022%206.83871%2022H17.1613C17.9142%2022%2018.6362%2021.7028%2019.1686%2021.1739C19.7009%2020.6449%2020%2019.9275%2020%2019.1795V9.07385C20%209.00584%2019.9728%208.94062%2019.9244%208.89254C19.876%208.84445%2019.8104%208.81744%2019.7419%208.81744H15.0968C14.8914%208.81744%2014.6945%208.73639%2014.5493%208.59213C14.4041%208.44787%2014.3226%208.25222%2014.3226%208.04821V2.25641ZM15.0968%2012.2564C15.3021%2012.2564%2015.499%2012.3375%2015.6442%2012.4817C15.7894%2012.626%2015.871%2012.8216%2015.871%2013.0256C15.871%2013.2297%2015.7894%2013.4253%2015.6442%2013.5696C15.499%2013.7138%2015.3021%2013.7949%2015.0968%2013.7949H8.90323C8.6979%2013.7949%208.50098%2013.7138%208.35579%2013.5696C8.2106%2013.4253%208.12903%2013.2297%208.12903%2013.0256C8.12903%2012.8216%208.2106%2012.626%208.35579%2012.4817C8.50098%2012.3375%208.6979%2012.2564%208.90323%2012.2564H15.0968ZM15.0968%2016.359C15.3021%2016.359%2015.499%2016.44%2015.6442%2016.5843C15.7894%2016.7285%2015.871%2016.9242%2015.871%2017.1282C15.871%2017.3322%2015.7894%2017.5279%2015.6442%2017.6721C15.499%2017.8164%2015.3021%2017.8974%2015.0968%2017.8974H8.90323C8.6979%2017.8974%208.50098%2017.8164%208.35579%2017.6721C8.2106%2017.5279%208.12903%2017.3322%208.12903%2017.1282C8.12903%2016.9242%208.2106%2016.7285%208.35579%2016.5843C8.50098%2016.44%208.6979%2016.359%208.90323%2016.359H15.0968Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20d='M15.75%202.82396C15.75%202.63996%2015.943%202.52296%2016.086%202.63796C16.2073%202.73596%2016.315%202.84996%2016.409%202.97996L19.422%207.17696C19.49%207.27296%2019.416%207.39696%2019.298%207.39696H16C15.9337%207.39696%2015.8701%207.37062%2015.8232%207.32373C15.7763%207.27685%2015.75%207.21326%2015.75%207.14696V2.82396Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",jt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.8421%2015.8636L17.5516%2017.4L16.8411%2018.5091L13.4211%2016.5455V12H14.8421V15.8636ZM21%2015.6364C21%2019.1545%2018.0347%2022%2014.3684%2022C12.5589%2022%2010.9295%2021.3091%209.73579%2020.1818H4.89474C3.84316%2020.1818%203%2019.3727%203%2018.3636V3.81818C3%203.33597%203.19962%202.87351%203.55496%202.53253C3.91029%202.19156%204.39222%202%204.89474%202H5.84211V8.36364L8.21053%207L10.5789%208.36364V2H16.2632C16.7657%202%2017.2476%202.19156%2017.6029%202.53253C17.9583%202.87351%2018.1579%203.33597%2018.1579%203.81818V10.4182C19.8726%2011.5727%2021%2013.4727%2021%2015.6364ZM19.1053%2015.6364C19.1053%2013.1273%2016.9832%2011.0909%2014.3684%2011.0909C11.7537%2011.0909%209.63158%2013.1273%209.63158%2015.6364C9.63158%2018.1455%2011.7537%2020.1818%2014.3684%2020.1818C16.9832%2020.1818%2019.1053%2018.1455%2019.1053%2015.6364Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e";if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}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=n(customElements.define),Promise.resolve().then(()=>require("./TournamentLeaderboard-BUiKtCk5.cjs")).then(({default:r})=>{!customElements.get("tournament-leaderboard")&&customElements.define("tournament-leaderboard",r.element)})}if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}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=n(customElements.define),Promise.resolve().then(()=>require("./TournamentDetails-AYkmST0l.cjs")).then(r=>r.TournamentDetails_ce).then(({default:r})=>{!customElements.get("tournament-details")&&customElements.define("tournament-details",r.element)})}if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}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=n(customElements.define),Promise.resolve().then(()=>require("./TournamentGames-3qu_5rFn.cjs")).then(({default:r})=>{!customElements.get("tournament-games")&&customElements.define("tournament-games",r.element)})}var Ht=e.from_html('<span class="Spinner svelte-gxy8gu"></span>'),At=e.from_html("<button><!></button>"),It=e.from_html('<div class="TournamemntRulesContent svelte-gxy8gu"><div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="svelte-gxy8gu"><!> <!> <!> <!> <!> <!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div></div>'),Dt=e.from_html('<div class="DetailsWrapper svelte-gxy8gu"><tournament-details></tournament-details> <!></div> <tournament-leaderboard></tournament-leaderboard> <div class="TournamentRulesWrapper svelte-gxy8gu"><button class="TournamentRulesHeader svelte-gxy8gu"><span class="TournamemntRulesTitle svelte-gxy8gu"> </span> <img alt="Icon" class="Icon svelte-gxy8gu"/></button> <!></div> <tournament-games></tournament-games>',3),Wt=e.from_html('<div class="SkeletonWrapper svelte-gxy8gu"><div class="Skeleton Details svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Leaderboard svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Rules svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Games svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div></div>'),Vt=e.from_html('<div class="TournamentDetailsPageWrapper svelte-gxy8gu"><!> <!></div>');const Ft={hash:"svelte-gxy8gu",code:`.svelte-gxy8gu,
|
|
25
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function oe(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var Z=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,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=re(a),c=u.next();!c.done;c=u.next()){var m=c.value;m.remove(this)}}catch(g){r={error:g}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else a.remove(this);var b=this.initialTeardown;if(k(b))try{b()}catch(g){s=g instanceof ee?g.errors:[g]}var R=this._finalizers;if(R){this._finalizers=null;try{for(var O=re(R),d=O.next();!d.done;d=O.next()){var I=d.value;try{Se(I)}catch(g){s=s!=null?s:[],g instanceof ee?s=ie(ie([],ne(s)),ne(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{d&&!d.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}}if(s)throw new ee(s)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)Se(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&oe(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&oe(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),Be=Z.EMPTY;function je(n){return n instanceof Z||n&&"closed"in n&&k(n.remove)&&k(n.add)&&k(n.unsubscribe)}function Se(n){k(n)?n():n.unsubscribe()}var mt={Promise:void 0},ht={setTimeout:function(n,r){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,ie([n,r],ne(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function gt(n){ht.setTimeout(function(){throw n})}function Te(){}function U(n){n()}var Ae=function(n){H(r,n);function r(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,je(t)&&t.add(i)):i.destination=bt,i}return r.create=function(t,i,o){return new se(t,i,o)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Z),vt=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(i){F(i)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(i){F(i)}else F(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){F(t)}},n}(),se=function(n){H(r,n);function r(t,i,o){var s=n.call(this)||this,a;return k(t)||!t?a={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:a=t,s.destination=new vt(a),s}return r}(Ae);function F(n){gt(n)}function yt(n){throw n}var bt={closed:!0,next:Te,error:yt,complete:Te},_t=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function wt(n){return n}function xt(n){return n.length===0?wt:n.length===1?n[0]:function(t){return n.reduce(function(i,o){return o(i)},t)}}var ke=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,i){var o=this,s=St(r)?r:new se(r,t,i);return U(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},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var i=this;return t=Me(t),new t(function(o,s){var a=new se({next:function(u){try{r(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[_t]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return xt(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=Me(r),new r(function(i,o){var s;t.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},n.create=function(r){return new n(r)},n}();function Me(n){var r;return(r=n!=null?n:mt.Promise)!==null&&r!==void 0?r:Promise}function Ct(n){return n&&k(n.next)&&k(n.error)&&k(n.complete)}function St(n){return n&&n instanceof Ae||Ct(n)&&je(n)}var Tt=Le(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),He=function(n){H(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var i=new Pe(this,this);return i.operator=t,i},r.prototype._throwIfClosed=function(){if(this.closed)throw new Tt},r.prototype.next=function(t){var i=this;U(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=re(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(t)}}catch(m){o={error:m}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var i=this;U(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var o=i.observers;o.length;)o.shift().error(t)}})},r.prototype.complete=function(){var t=this;U(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Be:(this.currentObservers=null,u.push(t),new Z(function(){i.currentObservers=null,oe(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?t.error(s):a&&t.complete()},r.prototype.asObservable=function(){var t=new ke;return t.source=this,t},r.create=function(t,i){return new Pe(t,i)},r}(ke),Pe=function(n){H(r,n);function r(t,i){var o=n.call(this)||this;return o.destination=t,o.source=i,o}return r.prototype.next=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,t)},r.prototype.error=function(t){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,t)},r.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},r.prototype._subscribe=function(t){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&o!==void 0?o:Be},r}(He),Ie={now:function(){return(Ie.delegate||Date).now()},delegate:void 0},kt=function(n){H(r,n);function r(t,i,o){t===void 0&&(t=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Ie);var s=n.call(this)||this;return s._bufferSize=t,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,i),s}return r.prototype.next=function(t){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(t),!a&&s.push(u.now()+c)),this._trimBuffer(),n.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!t.closed;c+=s?1:2)t.next(u[c]);return this._checkFinalizedStatuses(t),i},r.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,o=t._timestampProvider,s=t._buffer,a=t._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,b=1;b<s.length&&s[b]<=c;b+=2)m=b;m&&s.splice(0,m+1)}},r}(He);const Ee=[],Re={},Mt=(n,r=0)=>{if(Ee.indexOf(n)==-1){const t=new kt(r);Re[n]=t,Ee.push(n)}return Re[n]};window.emWidgets={topic:Mt};const De=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;e.dayjs.extend(e.customParseFormat);const Oe=n=>e.dayjs(n).format("MMMM D, HH:mm"),Pt=()=>typeof window=="undefined",Et="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3098%207.23828L5.84025%202.76374L1.3727%207.23828L0%205.8605L5.84025%200.000186443L11.6825%205.8605L10.3098%207.23828Z'%20fill='white'/%3e%3c/svg%3e",Rt="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37278%200L5.84236%204.47454L10.3099%200L11.6826%201.37778L5.84236%207.23809L7.72476e-05%201.37778L1.37278%200Z'%20fill='white'/%3e%3c/svg%3e",Ot="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.55556%204C6.32986%204%205.33333%204.96094%205.33333%206.14286V13.6429C5.33333%2014.8248%206.32986%2015.7857%207.55556%2015.7857H19.7778C21.0035%2015.7857%2022%2014.8248%2022%2013.6429V6.14286C22%204.96094%2021.0035%204%2019.7778%204H7.55556ZM13.6667%207.21429C15.2014%207.21429%2016.4444%208.41295%2016.4444%209.89286C16.4444%2011.3728%2015.2014%2012.5714%2013.6667%2012.5714C12.1319%2012.5714%2010.8889%2011.3728%2010.8889%209.89286C10.8889%208.41295%2012.1319%207.21429%2013.6667%207.21429ZM7.55556%208.01786V6.41071C7.55556%206.26339%207.68056%206.14286%207.83333%206.14286H9.5C9.65278%206.14286%209.78125%206.26339%209.76042%206.41071C9.63542%207.3817%208.83681%208.14844%207.83333%208.26897C7.68056%208.28571%207.55556%208.16518%207.55556%208.01786ZM7.55556%2011.7679C7.55556%2011.6205%207.68056%2011.4967%207.83333%2011.5167C8.84028%2011.6373%209.63542%2012.4074%209.76042%2013.375C9.77778%2013.5223%209.65278%2013.6429%209.5%2013.6429H7.83333C7.68056%2013.6429%207.55556%2013.5223%207.55556%2013.375V11.7679ZM19.5%208.26897C18.4931%208.14844%2017.6979%207.37835%2017.5729%206.41071C17.5556%206.26339%2017.6806%206.14286%2017.8333%206.14286H19.5C19.6528%206.14286%2019.7778%206.26339%2019.7778%206.41071V8.01786C19.7778%208.16518%2019.6528%208.28906%2019.5%208.26897ZM19.7778%2011.7679V13.375C19.7778%2013.5223%2019.6528%2013.6429%2019.5%2013.6429H17.8333C17.6806%2013.6429%2017.5521%2013.5223%2017.5729%2013.375C17.6979%2012.404%2018.4965%2011.6373%2019.5%2011.5167C19.6528%2011.5%2019.7778%2011.6205%2019.7778%2011.7679ZM3.66667%208.01786C3.66667%207.57254%203.29514%207.21429%202.83333%207.21429C2.37153%207.21429%202%207.57254%202%208.01786V16.8571C2%2018.0391%202.99653%2019%204.22222%2019H17.8333C18.2951%2019%2018.6667%2018.6417%2018.6667%2018.1964C18.6667%2017.7511%2018.2951%2017.3929%2017.8333%2017.3929H4.22222C3.91667%2017.3929%203.66667%2017.1518%203.66667%2016.8571V8.01786Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Lt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%208.16216V8.23516C22%209.09516%2022%209.52616%2021.793%209.87816C21.586%2010.2302%2021.209%2010.4392%2020.457%2010.8582L19.664%2011.2982C20.21%209.45016%2020.393%207.46416%2020.46%205.76616L20.47%205.54516L20.472%205.49316C21.123%205.71916%2021.489%205.88816%2021.717%206.20416C22%206.59716%2022%207.11916%2022%208.16216ZM2%208.16216V8.23516C2%209.09516%202%209.52616%202.207%209.87816C2.414%2010.2302%202.791%2010.4392%203.543%2010.8582L4.337%2011.2982C3.79%209.45016%203.607%207.46416%203.54%205.76616L3.53%205.54516L3.529%205.49316C2.877%205.71916%202.511%205.88816%202.283%206.20416C2%206.59716%202%207.12016%202%208.16216Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3774%202.34723C14.9305%202.11022%2013.4665%201.99415%2012.0004%202.00023C10.2174%202.00023%208.74737%202.15723%207.62337%202.34723C6.48437%202.53923%205.91537%202.63523%205.43937%203.22123C4.96437%203.80723%204.98937%204.44023%205.03937%205.70623C5.21237%2010.0542%206.15037%2015.4862%2011.2504%2015.9662V19.5002H9.82037C9.58928%2019.5004%209.36537%2019.5805%209.18671%2019.7271C9.00805%2019.8737%208.88567%2020.0776%208.84037%2020.3042L8.65037%2021.2502H6.00037C5.80146%2021.2502%205.61069%2021.3292%205.47004%2021.4699C5.32939%2021.6105%205.25037%2021.8013%205.25037%2022.0002C5.25037%2022.1991%205.32939%2022.3899%205.47004%2022.5306C5.61069%2022.6712%205.80146%2022.7502%206.00037%2022.7502H18.0004C18.1993%2022.7502%2018.3901%2022.6712%2018.5307%2022.5306C18.6714%2022.3899%2018.7504%2022.1991%2018.7504%2022.0002C18.7504%2021.8013%2018.6714%2021.6105%2018.5307%2021.4699C18.3901%2021.3292%2018.1993%2021.2502%2018.0004%2021.2502H15.3504L15.1604%2020.3042C15.1151%2020.0776%2014.9927%2019.8737%2014.814%2019.7271C14.6354%2019.5805%2014.4115%2019.5004%2014.1804%2019.5002H12.7504V15.9662C17.8504%2015.4862%2018.7894%2010.0552%2018.9614%205.70623C19.0114%204.44023%2019.0374%203.80623%2018.5614%203.22123C18.0854%202.63523%2017.5164%202.53923%2016.3774%202.34723ZM12.7874%205.80723C12.9244%205.864%2013.0416%205.96014%2013.124%206.08349C13.2064%206.20685%2013.2504%206.35187%2013.2504%206.50023V10.5002C13.2504%2010.6991%2013.1714%2010.8899%2013.0307%2011.0306C12.89%2011.1712%2012.6993%2011.2502%2012.5004%2011.2502C12.3015%2011.2502%2012.1107%2011.1712%2011.97%2011.0306C11.8294%2010.8899%2011.7504%2010.6991%2011.7504%2010.5002V8.31023L11.5304%208.53023C11.4617%208.60391%2011.3789%208.66302%2011.2869%208.70401C11.1949%208.745%2011.0956%208.76704%2010.9949%208.76882C10.8942%208.7706%2010.7942%208.75207%2010.7008%208.71435C10.6074%208.67663%2010.5226%208.62048%2010.4513%208.54926C10.3801%208.47805%2010.324%208.39321%2010.2862%208.29982C10.2485%208.20644%2010.23%208.10641%2010.2318%208.0057C10.2336%207.905%2010.2556%207.80569%2010.2966%207.71369C10.3376%207.62169%2010.3967%207.53889%2010.4704%207.47023L11.9704%205.97023C12.0752%205.86533%2012.2087%205.79387%2012.3542%205.76485C12.4996%205.73584%2012.6503%205.75059%2012.7874%205.80723Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Bt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.3226%202.25641C14.3226%202.18841%2014.2954%202.12319%2014.247%202.0751C14.1986%202.02701%2014.133%202%2014.0645%202H6.83871C6.08584%202%205.3638%202.29716%204.83144%202.82611C4.29908%203.35506%204%204.07247%204%204.82051V19.1795C4%2019.9275%204.29908%2020.6449%204.83144%2021.1739C5.3638%2021.7028%206.08584%2022%206.83871%2022H17.1613C17.9142%2022%2018.6362%2021.7028%2019.1686%2021.1739C19.7009%2020.6449%2020%2019.9275%2020%2019.1795V9.07385C20%209.00584%2019.9728%208.94062%2019.9244%208.89254C19.876%208.84445%2019.8104%208.81744%2019.7419%208.81744H15.0968C14.8914%208.81744%2014.6945%208.73639%2014.5493%208.59213C14.4041%208.44787%2014.3226%208.25222%2014.3226%208.04821V2.25641ZM15.0968%2012.2564C15.3021%2012.2564%2015.499%2012.3375%2015.6442%2012.4817C15.7894%2012.626%2015.871%2012.8216%2015.871%2013.0256C15.871%2013.2297%2015.7894%2013.4253%2015.6442%2013.5696C15.499%2013.7138%2015.3021%2013.7949%2015.0968%2013.7949H8.90323C8.6979%2013.7949%208.50098%2013.7138%208.35579%2013.5696C8.2106%2013.4253%208.12903%2013.2297%208.12903%2013.0256C8.12903%2012.8216%208.2106%2012.626%208.35579%2012.4817C8.50098%2012.3375%208.6979%2012.2564%208.90323%2012.2564H15.0968ZM15.0968%2016.359C15.3021%2016.359%2015.499%2016.44%2015.6442%2016.5843C15.7894%2016.7285%2015.871%2016.9242%2015.871%2017.1282C15.871%2017.3322%2015.7894%2017.5279%2015.6442%2017.6721C15.499%2017.8164%2015.3021%2017.8974%2015.0968%2017.8974H8.90323C8.6979%2017.8974%208.50098%2017.8164%208.35579%2017.6721C8.2106%2017.5279%208.12903%2017.3322%208.12903%2017.1282C8.12903%2016.9242%208.2106%2016.7285%208.35579%2016.5843C8.50098%2016.44%208.6979%2016.359%208.90323%2016.359H15.0968Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20d='M15.75%202.82396C15.75%202.63996%2015.943%202.52296%2016.086%202.63796C16.2073%202.73596%2016.315%202.84996%2016.409%202.97996L19.422%207.17696C19.49%207.27296%2019.416%207.39696%2019.298%207.39696H16C15.9337%207.39696%2015.8701%207.37062%2015.8232%207.32373C15.7763%207.27685%2015.75%207.21326%2015.75%207.14696V2.82396Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",jt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.8421%2015.8636L17.5516%2017.4L16.8411%2018.5091L13.4211%2016.5455V12H14.8421V15.8636ZM21%2015.6364C21%2019.1545%2018.0347%2022%2014.3684%2022C12.5589%2022%2010.9295%2021.3091%209.73579%2020.1818H4.89474C3.84316%2020.1818%203%2019.3727%203%2018.3636V3.81818C3%203.33597%203.19962%202.87351%203.55496%202.53253C3.91029%202.19156%204.39222%202%204.89474%202H5.84211V8.36364L8.21053%207L10.5789%208.36364V2H16.2632C16.7657%202%2017.2476%202.19156%2017.6029%202.53253C17.9583%202.87351%2018.1579%203.33597%2018.1579%203.81818V10.4182C19.8726%2011.5727%2021%2013.4727%2021%2015.6364ZM19.1053%2015.6364C19.1053%2013.1273%2016.9832%2011.0909%2014.3684%2011.0909C11.7537%2011.0909%209.63158%2013.1273%209.63158%2015.6364C9.63158%2018.1455%2011.7537%2020.1818%2014.3684%2020.1818C16.9832%2020.1818%2019.1053%2018.1455%2019.1053%2015.6364Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e";if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}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=n(customElements.define),Promise.resolve().then(()=>require("./TournamentLeaderboard-CXLrlJUG.cjs")).then(({default:r})=>{!customElements.get("tournament-leaderboard")&&customElements.define("tournament-leaderboard",r.element)})}if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}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=n(customElements.define),Promise.resolve().then(()=>require("./TournamentDetails-2nXu_Fl0.cjs")).then(r=>r.TournamentDetails_ce).then(({default:r})=>{!customElements.get("tournament-details")&&customElements.define("tournament-details",r.element)})}if(typeof window!="undefined"){let n=function(r){return function(...t){try{return r.apply(this,t)}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=n(customElements.define),Promise.resolve().then(()=>require("./TournamentGames-54X0-O5B.cjs")).then(({default:r})=>{!customElements.get("tournament-games")&&customElements.define("tournament-games",r.element)})}var At=e.from_html('<span class="Spinner svelte-gxy8gu"></span>'),Ht=e.from_html("<button><!></button>"),It=e.from_html('<div class="TournamemntRulesContent svelte-gxy8gu"><div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="svelte-gxy8gu"><!> <!> <!> <!> <!> <!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div></div>'),Dt=e.from_html('<div class="DetailsWrapper svelte-gxy8gu"><tournament-details></tournament-details> <!></div> <tournament-leaderboard></tournament-leaderboard> <div class="TournamentRulesWrapper svelte-gxy8gu"><button class="TournamentRulesHeader svelte-gxy8gu"><span class="TournamemntRulesTitle svelte-gxy8gu"> </span> <img alt="Icon" class="Icon svelte-gxy8gu"/></button> <!></div> <tournament-games></tournament-games>',3),Wt=e.from_html('<div class="SkeletonWrapper svelte-gxy8gu"><div class="Skeleton Details svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Leaderboard svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Rules svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Games svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div></div>'),Vt=e.from_html('<div class="TournamentDetailsPageWrapper svelte-gxy8gu"><!> <!></div>');const Ft={hash:"svelte-gxy8gu",code:`.svelte-gxy8gu,
|
|
26
26
|
.svelte-gxy8gu::before,
|
|
27
|
-
.svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:6px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-
|
|
27
|
+
.svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:6px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;&.Details {height:400px;}&.Leaderboard {height:400px;}&.Rules {height:150px;}&.Games {height:300px;}}.SkeletonShimmer.svelte-gxy8gu {width:100%;height:100%;background:linear-gradient(
|
|
28
28
|
90deg,
|
|
29
29
|
transparent 0%,
|
|
30
|
-
var(--emw-color-skeleton, #
|
|
30
|
+
var(--emw-color-skeleton, #535353) 50%,
|
|
31
31
|
transparent 100%
|
|
32
32
|
);
|
|
33
33
|
animation: svelte-gxy8gu-loading 1.5s infinite;transform:translateX(-100%);}
|
|
@@ -60,4 +60,4 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@media (min-width: 1000px) {.ButtonPrimary.svelte-gxy8gu {display:block;width:300px;margin:auto;}
|
|
63
|
-
}.TournamentRulesWrapper.svelte-gxy8gu {border:1px solid var(--emw-color-bg-secondary, #333232);border-radius:4px;overflow:hidden;.TournamentRulesHeader:where(.svelte-gxy8gu) {width:100%;padding:10px;background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-weight:500;font-size:14px;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1rem;transition:background 0.2s;}.TournamentRulesHeader:where(.svelte-gxy8gu):hover {background:var(--emw-color-bg-elements, #4A4A4A);}.TournamentRulesHeader:where(.svelte-gxy8gu):active {background-color:var(--emw-color-bg-secondary, #333232);}.Icon:where(.svelte-gxy8gu) {width:15px;height:15px;}.TournamemntRulesContent:where(.svelte-gxy8gu) {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-size:12px;font-weight:200;padding:10px;.TournamentRuleRow:where(.svelte-gxy8gu) {display:flex;gap:10px;margin:6px;.RuleText:where(.svelte-gxy8gu) {align-self:center;}}}}`};function We(n,r){var fe,pe;e.push(r,!0),e.append_styles(n,Ft);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),s=e.prop(r,"initialState"),a=e.prop(r,"endpoint"),u=e.prop(r,"language",7,"en"),c=e.prop(r,"session"),m=e.prop(r,"tournamentid"),b=e.prop(r,"gamesLimit",7,6),R=e.prop(r,"platformProp",7,null);dt({withLocale:"en",translations:{}}),Object.keys(Ce).forEach(l=>{ft(l,Ce[l])});const O=()=>{pt(u())};e.user_effect(()=>{O()});let d=e.state(e.proxy(((fe=s())==null?void 0:fe.tournament)||null)),I=e.state(e.proxy([])),g=e.state(!1),ae=e.state(void 0),z=e.state(!1),le=e.state(!1),ue=e.state(""),D=e.state(!1),ce=e.state(void 0),B=e.state(!1);const W=Pt()?(pe=R())!=null?pe:"dk":De(window.navigator.userAgent),Ve=()=>xe(this,null,function*(){e.set(g,!0);const l=new URL(`${a()}/v1/tournaments/${m()}`),v=new Headers;c()&&v.append("X-SessionId",c());const M={method:"GET",headers:v};l.searchParams.append("language",u()),l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${b()},offset=0)`),l.searchParams.append("platform",W),fetch(l,M).then(f=>f.json()).then(f=>{var y,V,w,L,P;e.set(d,f==null?void 0:f.item,!0),e.set(I,(V=(y=f==null?void 0:f.item)==null?void 0:y.games)==null?void 0:V.items,!0),e.set(ae,(L=(w=f==null?void 0:f.item)==null?void 0:w.games)==null?void 0:L.total,!0),e.set(ce,(P=f==null?void 0:f.item)==null?void 0:P.metadata,!0)}).catch(f=>console.log(f)).finally(()=>{e.set(g,!1)})}),Fe=()=>{fetch(`${a()}/tournaments/${e.get(d).id}`,{headers:{"X-SessionID":c()}}).then(l=>l.json()).then(l=>{var v;(v=l==null?void 0:l.item)!=null&&v.playerEnrolled?e.set(D,!0):(e.set(le,!0),e.set(ue,l.errorMessage,!0))}).catch(l=>console.log(l))},Ue=()=>{e.set(z,!0);const l=new URL(`${a()}/v1/bonus/claim`);l.searchParams.append("language",u()),l.searchParams.append("platform",W);const v=new Headers;v.append("Content-Type","application/json"),v.append("X-SessionID",c());let M={};e.get(d).wallets&&e.get(d).wallets.length>0&&(M={language:u(),bonusCode:e.get(d).wallets[0].code,currency:e.get(d).baseCurrency,type:"tournament"});const f={method:"PUT",headers:v,body:JSON.stringify(M)};fetch(l,f).then(y=>y.json()).then(y=>{y&&(y.success==!0?e.set(D,!0):y.errorMessage.match("VersionMismatchException")&&Fe())}).catch(y=>{console.log(y),e.set(le,!0),e.set(ue,y.errorMessage,!0)}).finally(()=>e.set(z,!1))},Ze=()=>{e.set(B,!e.get(B))};e.onMount(()=>{s()||c()&&m()&&a()&&Ve()});var ze={get initialState(){return s()},set initialState(l){s(l),e.flushSync()},get endpoint(){return a()},set endpoint(l){a(l),e.flushSync()},get language(){return u()},set language(l="en"){u(l),e.flushSync()},get session(){return c()},set session(l){c(l),e.flushSync()},get tournamentid(){return m()},set tournamentid(l){m(l),e.flushSync()},get gamesLimit(){return b()},set gamesLimit(l=6){b(l),e.flushSync()},get platformProp(){return R()},set platformProp(l=null){R(l),e.flushSync()}},q=Vt(),de=e.child(q);{var qe=l=>{var v=Dt(),M=e.first_child(v),f=e.child(M);e.template_effect(()=>e.set_custom_element_data(f,"tournament",e.get(d))),e.template_effect(()=>e.set_custom_element_data(f,"language",u())),e.template_effect(()=>e.set_custom_element_data(f,"enrolled",e.get(d).playerEnrolled)),e.set_class(f,1,"svelte-gxy8gu");var y=e.sibling(f,2);{var V=S=>{var x=
|
|
63
|
+
}.TournamentRulesWrapper.svelte-gxy8gu {border:1px solid var(--emw-color-bg-secondary, #333232);border-radius:4px;overflow:hidden;.TournamentRulesHeader:where(.svelte-gxy8gu) {width:100%;padding:10px;background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-weight:500;font-size:14px;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1rem;transition:background 0.2s;}.TournamentRulesHeader:where(.svelte-gxy8gu):hover {background:var(--emw-color-bg-elements, #4A4A4A);}.TournamentRulesHeader:where(.svelte-gxy8gu):active {background-color:var(--emw-color-bg-secondary, #333232);}.Icon:where(.svelte-gxy8gu) {width:15px;height:15px;}.TournamemntRulesContent:where(.svelte-gxy8gu) {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-size:12px;font-weight:200;padding:10px;.TournamentRuleRow:where(.svelte-gxy8gu) {display:flex;gap:10px;margin:6px;.RuleText:where(.svelte-gxy8gu) {align-self:center;}}}}`};function We(n,r){var fe,pe;e.push(r,!0),e.append_styles(n,Ft);const t=()=>e.store_get(e.$format,"$_",i),[i,o]=e.setup_stores(),s=e.prop(r,"initialState"),a=e.prop(r,"endpoint"),u=e.prop(r,"language",7,"en"),c=e.prop(r,"session"),m=e.prop(r,"tournamentid"),b=e.prop(r,"gamesLimit",7,6),R=e.prop(r,"platformProp",7,null);dt({withLocale:"en",translations:{}}),Object.keys(Ce).forEach(l=>{ft(l,Ce[l])});const O=()=>{pt(u())};e.user_effect(()=>{O()});let d=e.state(e.proxy(((fe=s())==null?void 0:fe.tournament)||null)),I=e.state(e.proxy([])),g=e.state(!1),ae=e.state(void 0),z=e.state(!1),le=e.state(!1),ue=e.state(""),D=e.state(!1),ce=e.state(void 0),B=e.state(!1);const W=Pt()?(pe=R())!=null?pe:"dk":De(window.navigator.userAgent),Ve=()=>xe(this,null,function*(){e.set(g,!0);const l=new URL(`${a()}/v1/tournaments/${m()}`),v=new Headers;c()&&v.append("X-SessionId",c());const M={method:"GET",headers:v};l.searchParams.append("language",u()),l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${b()},offset=0)`),l.searchParams.append("platform",W),fetch(l,M).then(f=>f.json()).then(f=>{var y,V,w,L,P;e.set(d,f==null?void 0:f.item,!0),e.set(I,(V=(y=f==null?void 0:f.item)==null?void 0:y.games)==null?void 0:V.items,!0),e.set(ae,(L=(w=f==null?void 0:f.item)==null?void 0:w.games)==null?void 0:L.total,!0),e.set(ce,(P=f==null?void 0:f.item)==null?void 0:P.metadata,!0)}).catch(f=>console.log(f)).finally(()=>{e.set(g,!1)})}),Fe=()=>{fetch(`${a()}/tournaments/${e.get(d).id}`,{headers:{"X-SessionID":c()}}).then(l=>l.json()).then(l=>{var v;(v=l==null?void 0:l.item)!=null&&v.playerEnrolled?e.set(D,!0):(e.set(le,!0),e.set(ue,l.errorMessage,!0))}).catch(l=>console.log(l))},Ue=()=>{e.set(z,!0);const l=new URL(`${a()}/v1/bonus/claim`);l.searchParams.append("language",u()),l.searchParams.append("platform",W);const v=new Headers;v.append("Content-Type","application/json"),v.append("X-SessionID",c());let M={};e.get(d).wallets&&e.get(d).wallets.length>0&&(M={language:u(),bonusCode:e.get(d).wallets[0].code,currency:e.get(d).baseCurrency,type:"tournament"});const f={method:"PUT",headers:v,body:JSON.stringify(M)};fetch(l,f).then(y=>y.json()).then(y=>{y&&(y.success==!0?e.set(D,!0):y.errorMessage.match("VersionMismatchException")&&Fe())}).catch(y=>{console.log(y),e.set(le,!0),e.set(ue,y.errorMessage,!0)}).finally(()=>e.set(z,!1))},Ze=()=>{e.set(B,!e.get(B))};e.onMount(()=>{s()||c()&&m()&&a()&&Ve()});var ze={get initialState(){return s()},set initialState(l){s(l),e.flushSync()},get endpoint(){return a()},set endpoint(l){a(l),e.flushSync()},get language(){return u()},set language(l="en"){u(l),e.flushSync()},get session(){return c()},set session(l){c(l),e.flushSync()},get tournamentid(){return m()},set tournamentid(l){m(l),e.flushSync()},get gamesLimit(){return b()},set gamesLimit(l=6){b(l),e.flushSync()},get platformProp(){return R()},set platformProp(l=null){R(l),e.flushSync()}},q=Vt(),de=e.child(q);{var qe=l=>{var v=Dt(),M=e.first_child(v),f=e.child(M);e.template_effect(()=>e.set_custom_element_data(f,"tournament",e.get(d))),e.template_effect(()=>e.set_custom_element_data(f,"language",u())),e.template_effect(()=>e.set_custom_element_data(f,"enrolled",e.get(d).playerEnrolled)),e.set_class(f,1,"svelte-gxy8gu");var y=e.sibling(f,2);{var V=S=>{var x=Ht();x.__click=Ue;var j=e.child(x);{var A=T=>{var E=At();e.append(T,E)},X=T=>{var E=e.text();e.template_effect($=>e.set_text(E,$),[()=>t()("joinButton")]),e.append(T,E)};e.if_block(j,T=>{e.get(z)?T(A):T(X,!1)})}e.reset(x),e.template_effect(()=>{e.set_class(x,1,`ButtonPrimary ${e.get(d).playerEnrolled||e.get(D)?"Enrolled":""}`,"svelte-gxy8gu"),x.disabled=e.get(d).playerEnrolled||e.get(D)}),e.append(S,x)};e.if_block(y,S=>{!e.get(d).playerEnrolled&&e.get(d).state!=="Closed"&&S(V)})}e.reset(M);var w=e.sibling(M,2);e.template_effect(()=>e.set_custom_element_data(w,"endpoint",a())),e.template_effect(()=>e.set_custom_element_data(w,"language",u())),e.template_effect(()=>e.set_custom_element_data(w,"session",c())),e.template_effect(()=>e.set_custom_element_data(w,"tournamentid",m())),e.template_effect(()=>e.set_custom_element_data(w,"platform",W)),e.set_class(w,1,"svelte-gxy8gu");var L=e.sibling(w,2),P=e.child(L);P.__click=Ze;var G=e.child(P),Je=e.child(G,!0);e.reset(G);var Ne=e.sibling(G,2);e.reset(P);var Ye=e.sibling(P,2);{var Ke=S=>{var x=It(),j=e.child(x),A=e.child(j),X=e.child(A);e.reset(A);var T=e.sibling(A,2),E=e.child(T);{var $=p=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.mostRounds")),e.append(p,h)};e.if_block(E,p=>{e.get(d).scoreCriteria=="BetCount"&&p($)})}var me=e.sibling(E,2);{var Qe=p=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.winStakeRatio")),e.append(p,h)};e.if_block(me,p=>{e.get(d).scoreCriteria=="WinStakeRatio"&&p(Qe)})}var he=e.sibling(me,2);{var et=p=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.maxWinStakeRatio")),e.append(p,h)};e.if_block(he,p=>{e.get(d).scoreCriteria=="MaxWinStakeRatio"&&p(et)})}var ge=e.sibling(he,2);{var tt=p=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.stake")),e.append(p,h)};e.if_block(ge,p=>{e.get(d).scoreCriteria=="Stake"&&p(tt)})}var ve=e.sibling(ge,2);{var rt=p=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.win")),e.append(p,h)};e.if_block(ve,p=>{e.get(d).scoreCriteria=="Win"&&p(rt)})}var nt=e.sibling(ve,2);{var it=p=>{var h=e.comment(),_=e.first_child(h);e.html(_,()=>t()("scoreCriteriaType.winBetCount")),e.append(p,h)};e.if_block(nt,p=>{e.get(d).scoreCriteria=="WinBetCount"&&p(it)})}e.reset(T),e.reset(j);var J=e.sibling(j,2),N=e.child(J),ot=e.child(N);e.reset(N);var ye=e.sibling(N,2),st=e.child(ye);e.html(st,()=>t()("miniBetCount",{values:{betCount:e.get(d).minBetCount}})),e.reset(ye),e.reset(J);var Y=e.sibling(J,2),K=e.child(Y),at=e.child(K);e.reset(K);var be=e.sibling(K,2),lt=e.child(be);e.html(lt,()=>t()("timePeriod",{values:{startTime:Oe(e.get(d).startTime),endTime:Oe(e.get(d).endTime)}})),e.reset(be),e.reset(Y);var _e=e.sibling(Y,2),Q=e.child(_e),ut=e.child(Q);e.reset(Q);var we=e.sibling(Q,2),ct=e.child(we);e.html(ct,()=>t()("terms",{values:{tcUrl:e.get(d).termsUrl||"#"}})),e.reset(we),e.reset(_e),e.reset(x),e.template_effect(()=>{e.set_attribute(X,"src",Lt),e.set_attribute(ot,"src",Ot),e.set_attribute(at,"src",jt),e.set_attribute(ut,"src",Bt)}),e.append(S,x)};e.if_block(Ye,S=>{e.get(B)&&S(Ke)})}e.reset(L);var C=e.sibling(L,2);e.template_effect(()=>e.set_custom_element_data(C,"endpoint",a())),e.template_effect(()=>e.set_custom_element_data(C,"language",u())),e.template_effect(()=>e.set_custom_element_data(C,"session",c())),e.template_effect(()=>e.set_custom_element_data(C,"tournamentid",m())),e.template_effect(()=>e.set_custom_element_data(C,"platform",W)),e.template_effect(()=>e.set_custom_element_data(C,"initialGames",e.get(I))),e.template_effect(()=>e.set_custom_element_data(C,"totalGames",e.get(ae))),e.template_effect(()=>e.set_custom_element_data(C,"tournamentMetadata",e.get(ce)||{})),e.set_class(C,1,"svelte-gxy8gu"),e.template_effect(S=>{e.set_attribute(P,"aria-expanded",e.get(B)),e.set_text(Je,S),e.set_attribute(Ne,"src",e.get(B)?Et:Rt)},[()=>t()("rules")]),e.append(l,v)};e.if_block(de,l=>{e.get(d)&&l(qe)})}var Ge=e.sibling(de,2);{var Xe=l=>{var v=Wt();e.append(l,v)};e.if_block(Ge,l=>{e.get(g)&&l(Xe)})}e.reset(q),e.append(n,q);var $e=e.pop(ze);return o(),$e}e.delegate(["click"]);customElements.define("tournament-details-page",e.create_custom_element(We,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{}},[],[],!1));const Ut=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"}));exports.TournamentDetailsPage_ce=Ut;exports.getDevice=De;
|