@everymatrix/tournament-details-page 0.2.3 → 0.2.4
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/{ChartIcon-CQ9xzPNv.cjs → ChartIcon-Befgjhbq.cjs} +1 -1
- package/components/{ChartIcon-Bpak0Ha5.js → ChartIcon-Cijyoj4D.js} +1 -1
- package/components/{ChartIcon-jHYM_pz4.cjs → ChartIcon-DHA4OiwS.cjs} +1 -1
- package/components/{ChartIcon-Bhz3dlNt.js → ChartIcon-R4lVwti5.js} +1 -1
- package/components/{CoinStackIcon-w0E7Vjou.cjs → CoinStackIcon-BJ5Cza44.cjs} +1 -1
- package/components/{CoinStackIcon-Ccp3qOAA.js → CoinStackIcon-C1F7M7aX.js} +1 -1
- package/components/{CoinStackIcon-6LCcPwql.js → CoinStackIcon-D3SYgfiW.js} +1 -1
- package/components/{CoinStackIcon-gHBgq0A7.cjs → CoinStackIcon-DaTufppr.cjs} +1 -1
- package/components/{DocumentsIcon-SkzMlDao.js → DocumentsIcon-B8czAvSb.js} +1 -1
- package/components/{DocumentsIcon-D7v18JHm.cjs → DocumentsIcon-C-xeVT_v.cjs} +1 -1
- package/components/{DocumentsIcon-CCY_TgTL.js → DocumentsIcon-DNlyMYIU.js} +1 -1
- package/components/{DocumentsIcon-TikJpiUM.cjs → DocumentsIcon-SuePRQNo.cjs} +1 -1
- package/components/{FootballIcon-BxC3qLd6.cjs → FootballIcon-B8X-AjbG.cjs} +1 -1
- package/components/{FootballIcon-2V3-bZP6.cjs → FootballIcon-C4eNGKY4.cjs} +1 -1
- package/components/{FootballIcon-DiVQPE5J.js → FootballIcon-DVZ96gIt.js} +1 -1
- package/components/{FootballIcon-CNGC-ysJ.js → FootballIcon-u7l6pKui.js} +1 -1
- package/components/{PeopleIcon-nbIehGXq.cjs → PeopleIcon-BflWZAxo.cjs} +1 -1
- package/components/{PeopleIcon-CeTcZT9N.js → PeopleIcon-DLW94oOG.js} +1 -1
- package/components/{PeopleIcon-CIePqv40.cjs → PeopleIcon-DciAxL_a.cjs} +1 -1
- package/components/{PeopleIcon-DE_VDpzu.js → PeopleIcon-s7Ccyi1V.js} +1 -1
- package/components/{RankArrowIcon-CwlkgpW2.js → RankArrowIcon-97fk5fg5.js} +1 -1
- package/components/{RankArrowIcon-DeVP6SqV.js → RankArrowIcon-FXyB2gGq.js} +1 -1
- package/components/{RankArrowIcon-N3Rja8qO.cjs → RankArrowIcon-SoYkNu_W.cjs} +1 -1
- package/components/{RankArrowIcon-Dfflx6jx.cjs → RankArrowIcon-hrpZ9ET-.cjs} +1 -1
- package/components/{SlotMachineIcon-BfZMN8W8.js → SlotMachineIcon-BNa44gB0.js} +1 -1
- package/components/{SlotMachineIcon-B8LXNyS_.cjs → SlotMachineIcon-CaTi0xrT.cjs} +1 -1
- package/components/{SlotMachineIcon-Bcda_Xmo.js → SlotMachineIcon-CpTV5Gjw.js} +1 -1
- package/components/{SlotMachineIcon-BB--rwxm.cjs → SlotMachineIcon-DyoJSpjm.cjs} +1 -1
- package/components/{StatusBadge-48pKkesj.js → StatusBadge-1cAE-BMW.js} +1 -1
- package/components/{StatusBadge-CiBujliJ.cjs → StatusBadge-CMV-2nkA.cjs} +1 -1
- package/components/{StatusBadge-Bi4UTGIK.cjs → StatusBadge-DYQwo1l2.cjs} +1 -1
- package/components/{StatusBadge-BUU_5AgK.js → StatusBadge-Dz7gL5NT.js} +1 -1
- package/components/{TournamentActions-CZGHUCTG.js → TournamentActions-B4XIKdGS.js} +3 -3
- package/components/{TournamentActions-DrwI70Qj.js → TournamentActions-CIe9g5tR.js} +3 -3
- package/components/{TournamentActions-DYS3Zas8.cjs → TournamentActions-D0kIKeFb.cjs} +1 -1
- package/components/{TournamentActions-yR_aN1JY.cjs → TournamentActions-DHAVf_xi.cjs} +1 -1
- package/components/{TournamentDetailsPage-DEpxQPEA.cjs → TournamentDetailsPage-5vGjPG32.cjs} +2 -2
- package/components/{TournamentDetailsPage-Bp60Uk-8.js → TournamentDetailsPage-CQdLNEwc.js} +10 -10
- package/components/{TournamentDetailsPage-BuiUVQhu.cjs → TournamentDetailsPage-CdsWSXuQ.cjs} +2 -2
- package/components/{TournamentDetailsPage-Dnv8IQ1B.js → TournamentDetailsPage-DdXVtbXN.js} +10 -10
- package/components/{TournamentDetailsSkeleton-B7Qc2qaP.cjs → TournamentDetailsSkeleton-Ck8yL46X.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-qTpuepan.js → TournamentDetailsSkeleton-DA318hry.js} +8 -8
- package/components/{TournamentDetailsSkeleton-CFgmljN6.cjs → TournamentDetailsSkeleton-DYzVvOUN.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-Dn6_fjHV.js → TournamentDetailsSkeleton-DthtZKyT.js} +8 -8
- package/components/TournamentGames-CM0_tj8g.cjs +19 -0
- package/components/TournamentGames-D4b31JLG.cjs +19 -0
- package/components/TournamentGames-VQKGwemr.js +325 -0
- package/components/TournamentGames-n4c8SvY_.js +303 -0
- package/components/{TournamentImage-B8k7urkf.js → TournamentImage-87bhDEnk.js} +1 -1
- package/components/{TournamentImage-DAfP40BM.js → TournamentImage-D0na0-p6.js} +1 -1
- package/components/{TournamentImage-By_eps51.cjs → TournamentImage-D6eLaW4m.cjs} +1 -1
- package/components/{TournamentImage-BxojXrGF.cjs → TournamentImage-DK1HgudW.cjs} +1 -1
- package/components/{TournamentLeaderboard-C1uFc5GZ.cjs → TournamentLeaderboard-C3iblI14.cjs} +9 -9
- package/components/{TournamentLeaderboard-Bk72WFe2.js → TournamentLeaderboard-Cc-xMiwP.js} +179 -179
- package/components/{TournamentLeaderboard-cnaAJbty.js → TournamentLeaderboard-DvvnA47t.js} +252 -252
- package/components/{TournamentLeaderboard-BHGPwbuz.cjs → TournamentLeaderboard-NEJ1wTBv.cjs} +2 -2
- package/components/TournamentRules-CyqSU5RQ.js +147 -0
- package/components/TournamentRules-D9R2cmXK.js +152 -0
- package/components/TournamentRules-DDlD1tXH.cjs +6 -0
- package/components/TournamentRules-OGoN3OYX.cjs +6 -0
- package/components/{TournamentSummary-DPIK4FyI.cjs → TournamentSummary-BY9YlM53.cjs} +1 -1
- package/components/{TournamentSummary-DRt9iIEz.js → TournamentSummary-CewShnfd.js} +6 -6
- package/components/{TournamentSummary-DAVQCaqt.js → TournamentSummary-D_DLGxO7.js} +6 -6
- package/components/{TournamentSummary-BvxGV6na.cjs → TournamentSummary-Dy6cHmly.cjs} +1 -1
- package/components/{TournamentTabs-D4lAhT6v.cjs → TournamentTabs-3OdZuIOf.cjs} +1 -1
- package/components/{TournamentTabs-C5mZ8N3x.cjs → TournamentTabs-BDsQomg2.cjs} +1 -1
- package/components/{TournamentTabs-DOIFHU3l.js → TournamentTabs-mlb4UDEZ.js} +2 -2
- package/components/{TournamentTabs-BVNuWoQ4.js → TournamentTabs-yOsQleAI.js} +2 -2
- package/components/{TrophyIcon-95ROc4Lc.cjs → TrophyIcon-CUdep5Qu.cjs} +1 -1
- package/components/{TrophyIcon-BqeMso6k.js → TrophyIcon-D6xEdEIW.js} +1 -1
- package/components/{TrophyIcon-BuT5Q6K0.cjs → TrophyIcon-DJDEDfa7.cjs} +1 -1
- package/components/{TrophyIcon-BolnMSK-.js → TrophyIcon-rK1Ad8lv.js} +1 -1
- package/components/{translations-CPDBBwzN.cjs → translations-B2zzqYUc.cjs} +1 -1
- package/components/{translations-CzV51BzW.js → translations-BPv4iAvC.js} +10 -7
- package/components/{translations-CoULEJN6.js → translations-BY4crXAR.js} +10 -7
- package/components/{translations-Bgd_tQSB.cjs → translations-CmWDttoq.cjs} +1 -1
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentGames-BHzZyU1T.cjs +0 -19
- package/components/TournamentGames-BSbbbGfz.js +0 -313
- package/components/TournamentGames-D9NuiZl1.js +0 -291
- package/components/TournamentGames-Zkp7iS-3.cjs +0 -19
- package/components/TournamentRules-B392M3KD.js +0 -138
- package/components/TournamentRules-BpcwEy6C.cjs +0 -6
- package/components/TournamentRules-D8ePsXfz.js +0 -143
- package/components/TournamentRules-DRhqdG_B.cjs +0 -6
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
var _e = (_, r, i) => new Promise((L, q) => {
|
|
2
|
-
var S = (c) => {
|
|
3
|
-
try {
|
|
4
|
-
h(i.next(c));
|
|
5
|
-
} catch (x) {
|
|
6
|
-
q(x);
|
|
7
|
-
}
|
|
8
|
-
}, N = (c) => {
|
|
9
|
-
try {
|
|
10
|
-
h(i.throw(c));
|
|
11
|
-
} catch (x) {
|
|
12
|
-
q(x);
|
|
13
|
-
}
|
|
14
|
-
}, h = (c) => c.done ? L(c.value) : Promise.resolve(c.value).then(S, N);
|
|
15
|
-
h((i = i.apply(_, r)).next());
|
|
16
|
-
});
|
|
17
|
-
import { C as De, c as Fe, g as Je, a as qe, p as g, D as Ke, E as xe, F as Qe, J as Ue, G as Ve, o as B, H as oe, i as H, T as We, b as m, d as Xe, f as v, q as d, I as Ze, h as D, j as t, s as E, r as O, u as F, M as k, t as z, k as be, l as J, N as M, U as ie, W as fe, Q as le, O as me, P as ue, m as I, V as Ye, $ as $e, K as et, X as tt, R as at } from "./StatusBadge-48pKkesj.js";
|
|
18
|
-
import { s as nt, a as st, G as ye, f as rt, b as ot } from "./TournamentLeaderboard-cnaAJbty.js";
|
|
19
|
-
import { a as it } from "./translations-CzV51BzW.js";
|
|
20
|
-
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
21
|
-
}, globalThis.customElements = { define() {
|
|
22
|
-
}, get() {
|
|
23
|
-
}, whenDefined() {
|
|
24
|
-
} });
|
|
25
|
-
const lt = (_, r = !1) => {
|
|
26
|
-
if (!_)
|
|
27
|
-
return;
|
|
28
|
-
const i = parseFloat(getComputedStyle(_).scrollMarginTop) || 0;
|
|
29
|
-
if (r && _.getBoundingClientRect().top >= i)
|
|
30
|
-
return;
|
|
31
|
-
const L = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
32
|
-
_.scrollIntoView({ behavior: L ? "auto" : "smooth", block: "start" });
|
|
33
|
-
};
|
|
34
|
-
var mt = v('<div class="tournament-games__tabs svelte-49hxa3" role="tablist"><button type="button" role="tab"> </button> <button type="button" role="tab"> </button></div>'), we = v('<p class="tournament-games__empty svelte-49hxa3"> </p>'), ut = v('<span class="tournament-games__badge svelte-49hxa3"> </span>'), gt = v('<button type="button" class="tournament-games__game svelte-49hxa3"><img class="tournament-games__image svelte-49hxa3" loading="lazy"/> <span class="tournament-games__play svelte-49hxa3" aria-hidden="true"><span class="tournament-games__play-button svelte-49hxa3"> </span></span> <!></button>'), dt = v('<span class="tournament-games__game tournament-games__game--placeholder svelte-49hxa3" aria-hidden="true"></span>'), ct = v('<div class="tournament-games__sentinel svelte-49hxa3"></div>'), ht = v('<div class="tournament-games__grid svelte-49hxa3"><!> <!></div> <!>', 1), pt = v('<li class="svelte-49hxa3"> </li>'), vt = v('<ul class="tournament-games__events svelte-49hxa3"></ul>'), _t = v('<div class="tournament-games svelte-49hxa3"><!> <!></div>');
|
|
35
|
-
const xt = {
|
|
36
|
-
hash: "svelte-49hxa3",
|
|
37
|
-
code: `.tournament-games.svelte-49hxa3 {scroll-margin-top:80px;display:flex;flex-direction:column;gap:20px;color:var(--text-subtle, rgba(223, 227, 232, 1));.tournament-games__tabs:where(.svelte-49hxa3) {display:flex;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));width:max-content;max-width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {position:relative;flex:0 0 auto;height:31px;padding:0 10px;border:0;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:145%;min-width:206px;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:700;&::after {content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}.tournament-games__grid:where(.svelte-49hxa3) {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-games__game:where(.svelte-49hxa3) {position:relative;display:block;width:100%;align-self:start;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;line-height:0;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}&:focus-visible .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
38
|
-
|
|
39
|
-
@media (hover: hover) {&:hover .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
40
|
-
}}.tournament-games__play:where(.svelte-49hxa3) {position:absolute;inset:0;z-index:2;display:flex;justify-content:center;align-items:center;border-radius:6px;background:rgba(0, 0, 0, 0.6);line-height:1;opacity:0;transition:opacity 0.2s ease;}.tournament-games__play-button:where(.svelte-49hxa3) {display:flex;justify-content:center;align-items:center;min-width:50%;padding:8px 16px;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, rgba(38, 29, 0, 1));font-size:13px;font-weight:600;}.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:120px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));cursor:default;
|
|
41
|
-
animation: svelte-49hxa3-tournament-games-pulse 1.2s ease-in-out infinite;}.tournament-games__image:where(.svelte-49hxa3) {display:block;width:100%;height:120px;object-fit:cover;border-radius:6px;}.tournament-games__badge:where(.svelte-49hxa3) {position:absolute;top:10px;left:9.6px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--primary-400, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}.tournament-games__sentinel:where(.svelte-49hxa3) {height:1px;margin-top:-16px;}.tournament-games__events:where(.svelte-49hxa3) {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;font-size:12px;line-height:1.4;list-style:none;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.tournament-games__empty:where(.svelte-49hxa3) {margin:0;padding:32px 0;text-align:center;}}
|
|
42
|
-
|
|
43
|
-
@keyframes svelte-49hxa3-tournament-games-pulse {
|
|
44
|
-
50% {
|
|
45
|
-
opacity: 0.5;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (max-width: 767px) {.tournament-games.svelte-49hxa3 {.tournament-games__tabs:where(.svelte-49hxa3) {width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {flex:1;min-width:0;font-size:12px;font-weight:400;}.tournament-games__grid:where(.svelte-49hxa3) {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-games__image:where(.svelte-49hxa3),
|
|
50
|
-
.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:75px;}.tournament-games__badge:where(.svelte-49hxa3) {top:5px;left:4.67px;}}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@media (prefers-reduced-motion: reduce) {.tournament-games.svelte-49hxa3 .tournament-games__game--placeholder:where(.svelte-49hxa3) {
|
|
54
|
-
animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
|
|
55
|
-
}`
|
|
56
|
-
};
|
|
57
|
-
function bt(_, r) {
|
|
58
|
-
var he, pe;
|
|
59
|
-
Je(r, !0), qe(_, xt);
|
|
60
|
-
const i = () => Ye($e, "$_", L), [L, q] = Ze(), S = g(r, "initialGames", 7), N = g(r, "endpoint", 7), h = g(r, "language", 7, "en"), c = g(r, "session", 7), x = g(r, "tournamentid", 7), K = g(r, "tournamentname", 7, ""), W = g(r, "totalGames", 7), X = g(r, "platform", 7), Z = g(r, "tournamentMetadata", 7), Q = g(r, "translationurl", 7), R = g(r, "hasCasino", 7, !0), j = g(r, "hasSports", 7, !1);
|
|
61
|
-
Ke(it), xe(h());
|
|
62
|
-
const Te = () => {
|
|
63
|
-
xe(h());
|
|
64
|
-
};
|
|
65
|
-
Qe(() => {
|
|
66
|
-
Q() && Ue(Q());
|
|
67
|
-
}), Ve(() => {
|
|
68
|
-
Te();
|
|
69
|
-
});
|
|
70
|
-
let f = B(oe(S() || [])), U = B(oe((pe = W()) != null ? pe : ((he = S()) == null ? void 0 : he.length) || 0)), Y = B(!1), y = B(oe(R() || !j() ? "casino" : "sports")), $ = B(null);
|
|
71
|
-
const ge = (e) => {
|
|
72
|
-
e !== t(y) && (I(y, e, !0), nt({ id: x(), nameOrTitle: K() }, e), et().then(() => lt(t($), !0)));
|
|
73
|
-
}, ee = F(() => R() && j()), Ge = F(() => t(ee) ? t(y) === "casino" : !j() || R()), te = F(() => t(f).length < t(U)), ke = F(() => Math.min(Math.max(t(U) - t(f).length, 0), ye)), de = F(() => {
|
|
74
|
-
var a, n;
|
|
75
|
-
const e = (n = (a = Z()) == null ? void 0 : a.sports) == null ? void 0 : n.rules;
|
|
76
|
-
if (!e)
|
|
77
|
-
return [];
|
|
78
|
-
try {
|
|
79
|
-
const s = JSON.parse(e);
|
|
80
|
-
return s[h()] || s["*"] || [];
|
|
81
|
-
} catch (s) {
|
|
82
|
-
return console.log(s), [];
|
|
83
|
-
}
|
|
84
|
-
}), Me = () => _e(this, null, function* () {
|
|
85
|
-
var e, a, n, s;
|
|
86
|
-
if (!(!t(te) || t(Y))) {
|
|
87
|
-
I(Y, !0);
|
|
88
|
-
try {
|
|
89
|
-
const o = yield rt({
|
|
90
|
-
endpoint: N(),
|
|
91
|
-
language: h(),
|
|
92
|
-
platform: X(),
|
|
93
|
-
session: c(),
|
|
94
|
-
tournamentid: x(),
|
|
95
|
-
filterById: !0,
|
|
96
|
-
gamesLimit: ye,
|
|
97
|
-
gamesOffset: t(f).length
|
|
98
|
-
});
|
|
99
|
-
I(f, [...t(f), ...(a = (e = o == null ? void 0 : o.games) == null ? void 0 : e.items) != null ? a : []], !0), I(U, (s = (n = o == null ? void 0 : o.games) == null ? void 0 : n.total) != null ? s : t(U), !0);
|
|
100
|
-
} catch (o) {
|
|
101
|
-
console.log(o);
|
|
102
|
-
} finally {
|
|
103
|
-
I(Y, !1);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}), ae = (e, a) => {
|
|
107
|
-
const n = new IntersectionObserver(
|
|
108
|
-
(s) => {
|
|
109
|
-
s.some((o) => o.isIntersecting) && a();
|
|
110
|
-
},
|
|
111
|
-
{ rootMargin: ot }
|
|
112
|
-
);
|
|
113
|
-
return n.observe(e), {
|
|
114
|
-
destroy() {
|
|
115
|
-
n.disconnect();
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}, Se = (e) => {
|
|
119
|
-
st(e, { id: x(), nameOrTitle: K() }, t(ee) ? t(y) : void 0);
|
|
120
|
-
};
|
|
121
|
-
var Ae = {
|
|
122
|
-
get initialGames() {
|
|
123
|
-
return S();
|
|
124
|
-
},
|
|
125
|
-
set initialGames(e) {
|
|
126
|
-
S(e), d();
|
|
127
|
-
},
|
|
128
|
-
get endpoint() {
|
|
129
|
-
return N();
|
|
130
|
-
},
|
|
131
|
-
set endpoint(e) {
|
|
132
|
-
N(e), d();
|
|
133
|
-
},
|
|
134
|
-
get language() {
|
|
135
|
-
return h();
|
|
136
|
-
},
|
|
137
|
-
set language(e = "en") {
|
|
138
|
-
h(e), d();
|
|
139
|
-
},
|
|
140
|
-
get session() {
|
|
141
|
-
return c();
|
|
142
|
-
},
|
|
143
|
-
set session(e) {
|
|
144
|
-
c(e), d();
|
|
145
|
-
},
|
|
146
|
-
get tournamentid() {
|
|
147
|
-
return x();
|
|
148
|
-
},
|
|
149
|
-
set tournamentid(e) {
|
|
150
|
-
x(e), d();
|
|
151
|
-
},
|
|
152
|
-
get tournamentname() {
|
|
153
|
-
return K();
|
|
154
|
-
},
|
|
155
|
-
set tournamentname(e = "") {
|
|
156
|
-
K(e), d();
|
|
157
|
-
},
|
|
158
|
-
get totalGames() {
|
|
159
|
-
return W();
|
|
160
|
-
},
|
|
161
|
-
set totalGames(e) {
|
|
162
|
-
W(e), d();
|
|
163
|
-
},
|
|
164
|
-
get platform() {
|
|
165
|
-
return X();
|
|
166
|
-
},
|
|
167
|
-
set platform(e) {
|
|
168
|
-
X(e), d();
|
|
169
|
-
},
|
|
170
|
-
get tournamentMetadata() {
|
|
171
|
-
return Z();
|
|
172
|
-
},
|
|
173
|
-
set tournamentMetadata(e) {
|
|
174
|
-
Z(e), d();
|
|
175
|
-
},
|
|
176
|
-
get translationurl() {
|
|
177
|
-
return Q();
|
|
178
|
-
},
|
|
179
|
-
set translationurl(e) {
|
|
180
|
-
Q(e), d();
|
|
181
|
-
},
|
|
182
|
-
get hasCasino() {
|
|
183
|
-
return R();
|
|
184
|
-
},
|
|
185
|
-
set hasCasino(e = !0) {
|
|
186
|
-
R(e), d();
|
|
187
|
-
},
|
|
188
|
-
get hasSports() {
|
|
189
|
-
return j();
|
|
190
|
-
},
|
|
191
|
-
set hasSports(e = !1) {
|
|
192
|
-
j(e), d();
|
|
193
|
-
}
|
|
194
|
-
}, V = _t(), ce = D(V);
|
|
195
|
-
{
|
|
196
|
-
var Ce = (e) => {
|
|
197
|
-
var a = mt(), n = D(a);
|
|
198
|
-
let s;
|
|
199
|
-
var o = k(n, !0), l = E(n, 2);
|
|
200
|
-
let u;
|
|
201
|
-
var p = k(l, !0);
|
|
202
|
-
O(a), z(
|
|
203
|
-
(A, ne) => {
|
|
204
|
-
s = be(n, 1, "tournament-games__tab svelte-49hxa3", null, s, { active: t(y) === "casino" }), J(n, "aria-selected", t(y) === "casino"), M(o, A), u = be(l, 1, "tournament-games__tab svelte-49hxa3", null, u, { active: t(y) === "sports" }), J(l, "aria-selected", t(y) === "sports"), M(p, ne);
|
|
205
|
-
},
|
|
206
|
-
[() => i()("casinoTab"), () => i()("sportsTab")]
|
|
207
|
-
), ie("click", n, () => ge("casino")), ie("click", l, () => ge("sports")), m(e, a);
|
|
208
|
-
};
|
|
209
|
-
H(ce, (e) => {
|
|
210
|
-
t(ee) && e(Ce);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
var Ee = E(ce, 2);
|
|
214
|
-
{
|
|
215
|
-
var Oe = (e) => {
|
|
216
|
-
var a = fe(), n = le(a);
|
|
217
|
-
{
|
|
218
|
-
var s = (l) => {
|
|
219
|
-
var u = we(), p = k(u, !0);
|
|
220
|
-
z((A) => M(p, A), [() => i()("noAvailableGames")]), m(l, u);
|
|
221
|
-
}, o = (l) => {
|
|
222
|
-
var u = ht(), p = le(u), A = D(p);
|
|
223
|
-
me(A, 17, () => t(f), ue, (G, b) => {
|
|
224
|
-
var w = gt(), C = D(w), T = E(C, 2), se = D(T), re = k(se, !0);
|
|
225
|
-
O(T);
|
|
226
|
-
var je = E(T, 2);
|
|
227
|
-
{
|
|
228
|
-
var Pe = (P) => {
|
|
229
|
-
var ve = ut(), Be = k(ve, !0);
|
|
230
|
-
z((He) => M(Be, He), [() => i()("newBadge")]), m(P, ve);
|
|
231
|
-
};
|
|
232
|
-
H(je, (P) => {
|
|
233
|
-
t(b).isNew && P(Pe);
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
O(w), z(
|
|
237
|
-
(P) => {
|
|
238
|
-
J(w, "title", t(b).name), J(C, "src", `https:${t(b).thumbnail}`), J(C, "alt", t(b).name), M(re, P);
|
|
239
|
-
},
|
|
240
|
-
[() => i()("play")]
|
|
241
|
-
), ie("click", w, () => Se(t(b))), m(G, w);
|
|
242
|
-
});
|
|
243
|
-
var ne = E(A, 2);
|
|
244
|
-
me(ne, 17, () => Array(t(ke)), ue, (G, b, w, C) => {
|
|
245
|
-
var T = dt();
|
|
246
|
-
m(G, T);
|
|
247
|
-
}), O(p);
|
|
248
|
-
var Ne = E(p, 2);
|
|
249
|
-
{
|
|
250
|
-
var Re = (G) => {
|
|
251
|
-
var b = fe(), w = le(b);
|
|
252
|
-
tt(w, () => t(f).length, (C) => {
|
|
253
|
-
var T = ct();
|
|
254
|
-
at(T, (se, re) => ae == null ? void 0 : ae(se, re), () => Me), m(C, T);
|
|
255
|
-
}), m(G, b);
|
|
256
|
-
};
|
|
257
|
-
H(Ne, (G) => {
|
|
258
|
-
t(te) && G(Re);
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
m(l, u);
|
|
262
|
-
};
|
|
263
|
-
H(n, (l) => {
|
|
264
|
-
t(f).length === 0 && !t(te) ? l(s) : l(o, -1);
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
m(e, a);
|
|
268
|
-
}, ze = (e) => {
|
|
269
|
-
var a = we(), n = k(a, !0);
|
|
270
|
-
z((s) => M(n, s), [() => i()("noAvailableEvents")]), m(e, a);
|
|
271
|
-
}, Ie = (e) => {
|
|
272
|
-
var a = vt();
|
|
273
|
-
me(a, 21, () => t(de), ue, (n, s) => {
|
|
274
|
-
var o = pt(), l = k(o);
|
|
275
|
-
z((u) => {
|
|
276
|
-
var p;
|
|
277
|
-
return M(l, `${(p = t(s).rule) != null ? p : ""} ${u != null ? u : ""}`);
|
|
278
|
-
}, [() => i()("contribution")]), m(n, o);
|
|
279
|
-
}), O(a), m(e, a);
|
|
280
|
-
};
|
|
281
|
-
H(Ee, (e) => {
|
|
282
|
-
t(Ge) ? e(Oe) : t(de).length === 0 ? e(ze, 1) : e(Ie, -1);
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
O(V), We(V, (e) => I($, e), () => t($)), m(_, V);
|
|
286
|
-
var Le = Xe(Ae);
|
|
287
|
-
return q(), Le;
|
|
288
|
-
}
|
|
289
|
-
De(["click"]);
|
|
290
|
-
Fe(
|
|
291
|
-
bt,
|
|
292
|
-
{
|
|
293
|
-
initialGames: {},
|
|
294
|
-
endpoint: {},
|
|
295
|
-
language: {},
|
|
296
|
-
session: {},
|
|
297
|
-
tournamentid: {},
|
|
298
|
-
tournamentname: {},
|
|
299
|
-
totalGames: {},
|
|
300
|
-
platform: {},
|
|
301
|
-
tournamentMetadata: {},
|
|
302
|
-
translationurl: {},
|
|
303
|
-
hasCasino: {},
|
|
304
|
-
hasSports: {}
|
|
305
|
-
},
|
|
306
|
-
[],
|
|
307
|
-
[],
|
|
308
|
-
{ mode: "open" }
|
|
309
|
-
);
|
|
310
|
-
export {
|
|
311
|
-
bt as T,
|
|
312
|
-
lt as s
|
|
313
|
-
};
|
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { C as Pe, c as Be, g as He, a as Ve, p as i, D as De, E as ce, F as Fe, J as Je, G as qe, o as N, H as se, i as R, T as Ke, b as o, d as Qe, f as g, q as l, I as Ue, h as j, j as t, s as S, r as A, u as P, M as w, t as C, k as he, l as B, N as T, U as re, W as pe, Q as oe, O as ie, P as le, m as E, V as We, $ as Xe, K as Ze, X as Ye, R as $e } from "./StatusBadge-BUU_5AgK.js";
|
|
2
|
-
import { s as et, a as tt, G as ve, f as at, b as nt } from "./TournamentLeaderboard-Bk72WFe2.js";
|
|
3
|
-
import { a as st } from "./translations-CoULEJN6.js";
|
|
4
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
5
|
-
}, globalThis.customElements = { define() {
|
|
6
|
-
}, get() {
|
|
7
|
-
}, whenDefined() {
|
|
8
|
-
} });
|
|
9
|
-
const rt = (b, n = !1) => {
|
|
10
|
-
if (!b)
|
|
11
|
-
return;
|
|
12
|
-
const d = parseFloat(getComputedStyle(b).scrollMarginTop) || 0;
|
|
13
|
-
if (n && b.getBoundingClientRect().top >= d)
|
|
14
|
-
return;
|
|
15
|
-
const q = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
16
|
-
b.scrollIntoView({ behavior: q ? "auto" : "smooth", block: "start" });
|
|
17
|
-
};
|
|
18
|
-
var ot = g('<div class="tournament-games__tabs svelte-49hxa3" role="tablist"><button type="button" role="tab"> </button> <button type="button" role="tab"> </button></div>'), _e = g('<p class="tournament-games__empty svelte-49hxa3"> </p>'), it = g('<span class="tournament-games__badge svelte-49hxa3"> </span>'), lt = g('<button type="button" class="tournament-games__game svelte-49hxa3"><img class="tournament-games__image svelte-49hxa3" loading="lazy"/> <span class="tournament-games__play svelte-49hxa3" aria-hidden="true"><span class="tournament-games__play-button svelte-49hxa3"> </span></span> <!></button>'), mt = g('<span class="tournament-games__game tournament-games__game--placeholder svelte-49hxa3" aria-hidden="true"></span>'), ut = g('<div class="tournament-games__sentinel svelte-49hxa3"></div>'), gt = g('<div class="tournament-games__grid svelte-49hxa3"><!> <!></div> <!>', 1), dt = g('<li class="svelte-49hxa3"> </li>'), ct = g('<ul class="tournament-games__events svelte-49hxa3"></ul>'), ht = g('<div class="tournament-games svelte-49hxa3"><!> <!></div>');
|
|
19
|
-
const pt = {
|
|
20
|
-
hash: "svelte-49hxa3",
|
|
21
|
-
code: `.tournament-games.svelte-49hxa3 {scroll-margin-top:80px;display:flex;flex-direction:column;gap:20px;color:var(--text-subtle, rgba(223, 227, 232, 1));.tournament-games__tabs:where(.svelte-49hxa3) {display:flex;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));width:max-content;max-width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {position:relative;flex:0 0 auto;height:31px;padding:0 10px;border:0;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:145%;min-width:206px;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:700;&::after {content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}.tournament-games__grid:where(.svelte-49hxa3) {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-games__game:where(.svelte-49hxa3) {position:relative;display:block;width:100%;align-self:start;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;line-height:0;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}&:focus-visible .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
22
|
-
|
|
23
|
-
@media (hover: hover) {&:hover .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
24
|
-
}}.tournament-games__play:where(.svelte-49hxa3) {position:absolute;inset:0;z-index:2;display:flex;justify-content:center;align-items:center;border-radius:6px;background:rgba(0, 0, 0, 0.6);line-height:1;opacity:0;transition:opacity 0.2s ease;}.tournament-games__play-button:where(.svelte-49hxa3) {display:flex;justify-content:center;align-items:center;min-width:50%;padding:8px 16px;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, rgba(38, 29, 0, 1));font-size:13px;font-weight:600;}.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:120px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));cursor:default;
|
|
25
|
-
animation: svelte-49hxa3-tournament-games-pulse 1.2s ease-in-out infinite;}.tournament-games__image:where(.svelte-49hxa3) {display:block;width:100%;height:120px;object-fit:cover;border-radius:6px;}.tournament-games__badge:where(.svelte-49hxa3) {position:absolute;top:10px;left:9.6px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--primary-400, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}.tournament-games__sentinel:where(.svelte-49hxa3) {height:1px;margin-top:-16px;}.tournament-games__events:where(.svelte-49hxa3) {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;font-size:12px;line-height:1.4;list-style:none;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.tournament-games__empty:where(.svelte-49hxa3) {margin:0;padding:32px 0;text-align:center;}}
|
|
26
|
-
|
|
27
|
-
@keyframes svelte-49hxa3-tournament-games-pulse {
|
|
28
|
-
50% {
|
|
29
|
-
opacity: 0.5;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@media (max-width: 767px) {.tournament-games.svelte-49hxa3 {.tournament-games__tabs:where(.svelte-49hxa3) {width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {flex:1;min-width:0;font-size:12px;font-weight:400;}.tournament-games__grid:where(.svelte-49hxa3) {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-games__image:where(.svelte-49hxa3),
|
|
34
|
-
.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:75px;}.tournament-games__badge:where(.svelte-49hxa3) {top:5px;left:4.67px;}}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media (prefers-reduced-motion: reduce) {.tournament-games.svelte-49hxa3 .tournament-games__game--placeholder:where(.svelte-49hxa3) {
|
|
38
|
-
animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
|
|
39
|
-
}`
|
|
40
|
-
};
|
|
41
|
-
function vt(b, n) {
|
|
42
|
-
He(n, !0), Ve(b, pt);
|
|
43
|
-
const d = () => We(Xe, "$_", q), [q, xe] = Ue(), H = i(n, "initialGames", 7), K = i(n, "endpoint", 7), G = i(n, "language", 7, "en"), Q = i(n, "session", 7), O = i(n, "tournamentid", 7), V = i(n, "tournamentname", 7, ""), U = i(n, "totalGames", 7), W = i(n, "platform", 7), X = i(n, "tournamentMetadata", 7), D = i(n, "translationurl", 7), z = i(n, "hasCasino", 7, !0), I = i(n, "hasSports", 7, !1);
|
|
44
|
-
De(st), ce(G());
|
|
45
|
-
const be = () => {
|
|
46
|
-
ce(G());
|
|
47
|
-
};
|
|
48
|
-
Fe(() => {
|
|
49
|
-
D() && Je(D());
|
|
50
|
-
}), qe(() => {
|
|
51
|
-
be();
|
|
52
|
-
});
|
|
53
|
-
let h = N(se(H() || [])), F = N(se(U() ?? (H()?.length || 0))), Z = N(!1), p = N(se(z() || !I() ? "casino" : "sports")), Y = N(null);
|
|
54
|
-
const me = (e) => {
|
|
55
|
-
e !== t(p) && (E(p, e, !0), et({ id: O(), nameOrTitle: V() }, e), Ze().then(() => rt(t(Y), !0)));
|
|
56
|
-
}, $ = P(() => z() && I()), fe = P(() => t($) ? t(p) === "casino" : !I() || z()), ee = P(() => t(h).length < t(F)), ye = P(() => Math.min(Math.max(t(F) - t(h).length, 0), ve)), ue = P(() => {
|
|
57
|
-
const e = X()?.sports?.rules;
|
|
58
|
-
if (!e)
|
|
59
|
-
return [];
|
|
60
|
-
try {
|
|
61
|
-
const a = JSON.parse(e);
|
|
62
|
-
return a[G()] || a["*"] || [];
|
|
63
|
-
} catch (a) {
|
|
64
|
-
return console.log(a), [];
|
|
65
|
-
}
|
|
66
|
-
}), we = async () => {
|
|
67
|
-
if (!(!t(ee) || t(Z))) {
|
|
68
|
-
E(Z, !0);
|
|
69
|
-
try {
|
|
70
|
-
const e = await at({
|
|
71
|
-
endpoint: K(),
|
|
72
|
-
language: G(),
|
|
73
|
-
platform: W(),
|
|
74
|
-
session: Q(),
|
|
75
|
-
tournamentid: O(),
|
|
76
|
-
filterById: !0,
|
|
77
|
-
gamesLimit: ve,
|
|
78
|
-
gamesOffset: t(h).length
|
|
79
|
-
});
|
|
80
|
-
E(h, [...t(h), ...e?.games?.items ?? []], !0), E(F, e?.games?.total ?? t(F), !0);
|
|
81
|
-
} catch (e) {
|
|
82
|
-
console.log(e);
|
|
83
|
-
} finally {
|
|
84
|
-
E(Z, !1);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}, Te = (e, a) => {
|
|
88
|
-
const s = new IntersectionObserver(
|
|
89
|
-
(m) => {
|
|
90
|
-
m.some((v) => v.isIntersecting) && a();
|
|
91
|
-
},
|
|
92
|
-
{ rootMargin: nt }
|
|
93
|
-
);
|
|
94
|
-
return s.observe(e), {
|
|
95
|
-
destroy() {
|
|
96
|
-
s.disconnect();
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}, Ge = (e) => {
|
|
100
|
-
tt(e, { id: O(), nameOrTitle: V() }, t($) ? t(p) : void 0);
|
|
101
|
-
};
|
|
102
|
-
var ke = {
|
|
103
|
-
get initialGames() {
|
|
104
|
-
return H();
|
|
105
|
-
},
|
|
106
|
-
set initialGames(e) {
|
|
107
|
-
H(e), l();
|
|
108
|
-
},
|
|
109
|
-
get endpoint() {
|
|
110
|
-
return K();
|
|
111
|
-
},
|
|
112
|
-
set endpoint(e) {
|
|
113
|
-
K(e), l();
|
|
114
|
-
},
|
|
115
|
-
get language() {
|
|
116
|
-
return G();
|
|
117
|
-
},
|
|
118
|
-
set language(e = "en") {
|
|
119
|
-
G(e), l();
|
|
120
|
-
},
|
|
121
|
-
get session() {
|
|
122
|
-
return Q();
|
|
123
|
-
},
|
|
124
|
-
set session(e) {
|
|
125
|
-
Q(e), l();
|
|
126
|
-
},
|
|
127
|
-
get tournamentid() {
|
|
128
|
-
return O();
|
|
129
|
-
},
|
|
130
|
-
set tournamentid(e) {
|
|
131
|
-
O(e), l();
|
|
132
|
-
},
|
|
133
|
-
get tournamentname() {
|
|
134
|
-
return V();
|
|
135
|
-
},
|
|
136
|
-
set tournamentname(e = "") {
|
|
137
|
-
V(e), l();
|
|
138
|
-
},
|
|
139
|
-
get totalGames() {
|
|
140
|
-
return U();
|
|
141
|
-
},
|
|
142
|
-
set totalGames(e) {
|
|
143
|
-
U(e), l();
|
|
144
|
-
},
|
|
145
|
-
get platform() {
|
|
146
|
-
return W();
|
|
147
|
-
},
|
|
148
|
-
set platform(e) {
|
|
149
|
-
W(e), l();
|
|
150
|
-
},
|
|
151
|
-
get tournamentMetadata() {
|
|
152
|
-
return X();
|
|
153
|
-
},
|
|
154
|
-
set tournamentMetadata(e) {
|
|
155
|
-
X(e), l();
|
|
156
|
-
},
|
|
157
|
-
get translationurl() {
|
|
158
|
-
return D();
|
|
159
|
-
},
|
|
160
|
-
set translationurl(e) {
|
|
161
|
-
D(e), l();
|
|
162
|
-
},
|
|
163
|
-
get hasCasino() {
|
|
164
|
-
return z();
|
|
165
|
-
},
|
|
166
|
-
set hasCasino(e = !0) {
|
|
167
|
-
z(e), l();
|
|
168
|
-
},
|
|
169
|
-
get hasSports() {
|
|
170
|
-
return I();
|
|
171
|
-
},
|
|
172
|
-
set hasSports(e = !1) {
|
|
173
|
-
I(e), l();
|
|
174
|
-
}
|
|
175
|
-
}, J = ht(), ge = j(J);
|
|
176
|
-
{
|
|
177
|
-
var Me = (e) => {
|
|
178
|
-
var a = ot(), s = j(a);
|
|
179
|
-
let m;
|
|
180
|
-
var v = w(s, !0), r = S(s, 2);
|
|
181
|
-
let u;
|
|
182
|
-
var f = w(r, !0);
|
|
183
|
-
A(a), C(
|
|
184
|
-
(k, te) => {
|
|
185
|
-
m = he(s, 1, "tournament-games__tab svelte-49hxa3", null, m, { active: t(p) === "casino" }), B(s, "aria-selected", t(p) === "casino"), T(v, k), u = he(r, 1, "tournament-games__tab svelte-49hxa3", null, u, { active: t(p) === "sports" }), B(r, "aria-selected", t(p) === "sports"), T(f, te);
|
|
186
|
-
},
|
|
187
|
-
[() => d()("casinoTab"), () => d()("sportsTab")]
|
|
188
|
-
), re("click", s, () => me("casino")), re("click", r, () => me("sports")), o(e, a);
|
|
189
|
-
};
|
|
190
|
-
R(ge, (e) => {
|
|
191
|
-
t($) && e(Me);
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
var Se = S(ge, 2);
|
|
195
|
-
{
|
|
196
|
-
var Ae = (e) => {
|
|
197
|
-
var a = pe(), s = oe(a);
|
|
198
|
-
{
|
|
199
|
-
var m = (r) => {
|
|
200
|
-
var u = _e(), f = w(u, !0);
|
|
201
|
-
C((k) => T(f, k), [() => d()("noAvailableGames")]), o(r, u);
|
|
202
|
-
}, v = (r) => {
|
|
203
|
-
var u = gt(), f = oe(u), k = j(f);
|
|
204
|
-
ie(k, 17, () => t(h), le, (y, c) => {
|
|
205
|
-
var _ = lt(), M = j(_), x = S(M, 2), ae = j(x), ne = w(ae, !0);
|
|
206
|
-
A(x);
|
|
207
|
-
var Le = S(x, 2);
|
|
208
|
-
{
|
|
209
|
-
var Ne = (L) => {
|
|
210
|
-
var de = it(), Re = w(de, !0);
|
|
211
|
-
C((je) => T(Re, je), [() => d()("newBadge")]), o(L, de);
|
|
212
|
-
};
|
|
213
|
-
R(Le, (L) => {
|
|
214
|
-
t(c).isNew && L(Ne);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
A(_), C(
|
|
218
|
-
(L) => {
|
|
219
|
-
B(_, "title", t(c).name), B(M, "src", `https:${t(c).thumbnail}`), B(M, "alt", t(c).name), T(ne, L);
|
|
220
|
-
},
|
|
221
|
-
[() => d()("play")]
|
|
222
|
-
), re("click", _, () => Ge(t(c))), o(y, _);
|
|
223
|
-
});
|
|
224
|
-
var te = S(k, 2);
|
|
225
|
-
ie(te, 17, () => Array(t(ye)), le, (y, c, _, M) => {
|
|
226
|
-
var x = mt();
|
|
227
|
-
o(y, x);
|
|
228
|
-
}), A(f);
|
|
229
|
-
var ze = S(f, 2);
|
|
230
|
-
{
|
|
231
|
-
var Ie = (y) => {
|
|
232
|
-
var c = pe(), _ = oe(c);
|
|
233
|
-
Ye(_, () => t(h).length, (M) => {
|
|
234
|
-
var x = ut();
|
|
235
|
-
$e(x, (ae, ne) => Te?.(ae, ne), () => we), o(M, x);
|
|
236
|
-
}), o(y, c);
|
|
237
|
-
};
|
|
238
|
-
R(ze, (y) => {
|
|
239
|
-
t(ee) && y(Ie);
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
o(r, u);
|
|
243
|
-
};
|
|
244
|
-
R(s, (r) => {
|
|
245
|
-
t(h).length === 0 && !t(ee) ? r(m) : r(v, -1);
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
o(e, a);
|
|
249
|
-
}, Ce = (e) => {
|
|
250
|
-
var a = _e(), s = w(a, !0);
|
|
251
|
-
C((m) => T(s, m), [() => d()("noAvailableEvents")]), o(e, a);
|
|
252
|
-
}, Ee = (e) => {
|
|
253
|
-
var a = ct();
|
|
254
|
-
ie(a, 21, () => t(ue), le, (s, m) => {
|
|
255
|
-
var v = dt(), r = w(v);
|
|
256
|
-
C((u) => T(r, `${t(m).rule ?? ""} ${u ?? ""}`), [() => d()("contribution")]), o(s, v);
|
|
257
|
-
}), A(a), o(e, a);
|
|
258
|
-
};
|
|
259
|
-
R(Se, (e) => {
|
|
260
|
-
t(fe) ? e(Ae) : t(ue).length === 0 ? e(Ce, 1) : e(Ee, -1);
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
A(J), Ke(J, (e) => E(Y, e), () => t(Y)), o(b, J);
|
|
264
|
-
var Oe = Qe(ke);
|
|
265
|
-
return xe(), Oe;
|
|
266
|
-
}
|
|
267
|
-
Pe(["click"]);
|
|
268
|
-
Be(
|
|
269
|
-
vt,
|
|
270
|
-
{
|
|
271
|
-
initialGames: {},
|
|
272
|
-
endpoint: {},
|
|
273
|
-
language: {},
|
|
274
|
-
session: {},
|
|
275
|
-
tournamentid: {},
|
|
276
|
-
tournamentname: {},
|
|
277
|
-
totalGames: {},
|
|
278
|
-
platform: {},
|
|
279
|
-
tournamentMetadata: {},
|
|
280
|
-
translationurl: {},
|
|
281
|
-
hasCasino: {},
|
|
282
|
-
hasSports: {}
|
|
283
|
-
},
|
|
284
|
-
[],
|
|
285
|
-
[],
|
|
286
|
-
{ mode: "open" }
|
|
287
|
-
);
|
|
288
|
-
export {
|
|
289
|
-
vt as T,
|
|
290
|
-
rt as s
|
|
291
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-CiBujliJ.cjs"),y=require("./TournamentLeaderboard-BHGPwbuz.cjs"),ve=require("./translations-Bgd_tQSB.cjs"),U=(h,n=!1)=>{if(!h)return;const i=parseFloat(getComputedStyle(h).scrollMarginTop)||0;if(n&&h.getBoundingClientRect().top>=i)return;const L=window.matchMedia("(prefers-reduced-motion: reduce)").matches;h.scrollIntoView({behavior:L?"auto":"smooth",block:"start"})};var fe=e.from_html('<div class="tournament-games__tabs svelte-49hxa3" role="tablist"><button type="button" role="tab"> </button> <button type="button" role="tab"> </button></div>'),Q=e.from_html('<p class="tournament-games__empty svelte-49hxa3"> </p>'),xe=e.from_html('<span class="tournament-games__badge svelte-49hxa3"> </span>'),be=e.from_html('<button type="button" class="tournament-games__game svelte-49hxa3"><img class="tournament-games__image svelte-49hxa3" loading="lazy"/> <span class="tournament-games__play svelte-49hxa3" aria-hidden="true"><span class="tournament-games__play-button svelte-49hxa3"> </span></span> <!></button>'),ye=e.from_html('<span class="tournament-games__game tournament-games__game--placeholder svelte-49hxa3" aria-hidden="true"></span>'),we=e.from_html('<div class="tournament-games__sentinel svelte-49hxa3"></div>'),Se=e.from_html('<div class="tournament-games__grid svelte-49hxa3"><!> <!></div> <!>',1),Te=e.from_html('<li class="svelte-49hxa3"> </li>'),ke=e.from_html('<ul class="tournament-games__events svelte-49hxa3"></ul>'),Ge=e.from_html('<div class="tournament-games svelte-49hxa3"><!> <!></div>');const Me={hash:"svelte-49hxa3",code:`.tournament-games.svelte-49hxa3 {scroll-margin-top:80px;display:flex;flex-direction:column;gap:20px;color:var(--text-subtle, rgba(223, 227, 232, 1));.tournament-games__tabs:where(.svelte-49hxa3) {display:flex;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));width:max-content;max-width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {position:relative;flex:0 0 auto;height:31px;padding:0 10px;border:0;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:145%;min-width:206px;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:700;&::after {content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}.tournament-games__grid:where(.svelte-49hxa3) {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-games__game:where(.svelte-49hxa3) {position:relative;display:block;width:100%;align-self:start;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;line-height:0;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}&:focus-visible .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
2
|
-
|
|
3
|
-
@media (hover: hover) {&:hover .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
4
|
-
}}.tournament-games__play:where(.svelte-49hxa3) {position:absolute;inset:0;z-index:2;display:flex;justify-content:center;align-items:center;border-radius:6px;background:rgba(0, 0, 0, 0.6);line-height:1;opacity:0;transition:opacity 0.2s ease;}.tournament-games__play-button:where(.svelte-49hxa3) {display:flex;justify-content:center;align-items:center;min-width:50%;padding:8px 16px;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, rgba(38, 29, 0, 1));font-size:13px;font-weight:600;}.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:120px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));cursor:default;
|
|
5
|
-
animation: svelte-49hxa3-tournament-games-pulse 1.2s ease-in-out infinite;}.tournament-games__image:where(.svelte-49hxa3) {display:block;width:100%;height:120px;object-fit:cover;border-radius:6px;}.tournament-games__badge:where(.svelte-49hxa3) {position:absolute;top:10px;left:9.6px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--primary-400, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}.tournament-games__sentinel:where(.svelte-49hxa3) {height:1px;margin-top:-16px;}.tournament-games__events:where(.svelte-49hxa3) {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;font-size:12px;line-height:1.4;list-style:none;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.tournament-games__empty:where(.svelte-49hxa3) {margin:0;padding:32px 0;text-align:center;}}
|
|
6
|
-
|
|
7
|
-
@keyframes svelte-49hxa3-tournament-games-pulse {
|
|
8
|
-
50% {
|
|
9
|
-
opacity: 0.5;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@media (max-width: 767px) {.tournament-games.svelte-49hxa3 {.tournament-games__tabs:where(.svelte-49hxa3) {width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {flex:1;min-width:0;font-size:12px;font-weight:400;}.tournament-games__grid:where(.svelte-49hxa3) {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-games__image:where(.svelte-49hxa3),
|
|
14
|
-
.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:75px;}.tournament-games__badge:where(.svelte-49hxa3) {top:5px;left:4.67px;}}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@media (prefers-reduced-motion: reduce) {.tournament-games.svelte-49hxa3 .tournament-games__game--placeholder:where(.svelte-49hxa3) {
|
|
18
|
-
animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
|
|
19
|
-
}`};function W(h,n){e.push(n,!0),e.append_styles(h,Me);const i=()=>e.store_get(e.$format,"$_",L),[L,X]=e.setup_stores(),G=e.prop(n,"initialGames",7),z=e.prop(n,"endpoint",7),f=e.prop(n,"language",7,"en"),I=e.prop(n,"session",7),w=e.prop(n,"tournamentid",7),M=e.prop(n,"tournamentname",7,""),O=e.prop(n,"totalGames",7),N=e.prop(n,"platform",7),R=e.prop(n,"tournamentMetadata",7),A=e.prop(n,"translationurl",7),S=e.prop(n,"hasCasino",7,!0),T=e.prop(n,"hasSports",7,!1);e.registerTranslations(ve.TRANSLATIONS$1),e.setLocale(f());const Y=()=>{e.setLocale(f())};e.user_pre_effect(()=>{A()&&e.loadTranslations(A())}),e.user_effect(()=>{Y()});let u=e.state(e.proxy(G()||[])),E=e.state(e.proxy(O()??(G()?.length||0))),j=e.state(!1),g=e.state(e.proxy(S()||!T()?"casino":"sports")),B=e.state(null);const D=t=>{t!==e.get(g)&&(e.set(g,t,!0),y.sendGamesSubTabClicked({id:w(),nameOrTitle:M()},t),e.tick().then(()=>U(e.get(B),!0)))},P=e.user_derived(()=>S()&&T()),$=e.user_derived(()=>e.get(P)?e.get(g)==="casino":!T()||S()),q=e.user_derived(()=>e.get(u).length<e.get(E)),ee=e.user_derived(()=>Math.min(Math.max(e.get(E)-e.get(u).length,0),y.GAMES_PAGE_SIZE)),F=e.user_derived(()=>{const t=R()?.sports?.rules;if(!t)return[];try{const a=JSON.parse(t);return a[f()]||a["*"]||[]}catch(a){return console.log(a),[]}}),te=async()=>{if(!(!e.get(q)||e.get(j))){e.set(j,!0);try{const t=await y.fetchTournament({endpoint:z(),language:f(),platform:N(),session:I(),tournamentid:w(),filterById:!0,gamesLimit:y.GAMES_PAGE_SIZE,gamesOffset:e.get(u).length});e.set(u,[...e.get(u),...t?.games?.items??[]],!0),e.set(E,t?.games?.total??e.get(E),!0)}catch(t){console.log(t)}finally{e.set(j,!1)}}},ae=(t,a)=>{const r=new IntersectionObserver(o=>{o.some(d=>d.isIntersecting)&&a()},{rootMargin:y.GAMES_ROOT_MARGIN});return r.observe(t),{destroy(){r.disconnect()}}},ne=t=>{y.sendPlayGame(t,{id:w(),nameOrTitle:M()},e.get(P)?e.get(g):void 0)};var re={get initialGames(){return G()},set initialGames(t){G(t),e.flushSync()},get endpoint(){return z()},set endpoint(t){z(t),e.flushSync()},get language(){return f()},set language(t="en"){f(t),e.flushSync()},get session(){return I()},set session(t){I(t),e.flushSync()},get tournamentid(){return w()},set tournamentid(t){w(t),e.flushSync()},get tournamentname(){return M()},set tournamentname(t=""){M(t),e.flushSync()},get totalGames(){return O()},set totalGames(t){O(t),e.flushSync()},get platform(){return N()},set platform(t){N(t),e.flushSync()},get tournamentMetadata(){return R()},set tournamentMetadata(t){R(t),e.flushSync()},get translationurl(){return A()},set translationurl(t){A(t),e.flushSync()},get hasCasino(){return S()},set hasCasino(t=!0){S(t),e.flushSync()},get hasSports(){return T()},set hasSports(t=!1){T(t),e.flushSync()}},C=Ge(),J=e.child(C);{var se=t=>{var a=fe(),r=e.child(a);let o;var d=e.only_child(r,!0),s=e.sibling(r,2);let l;var _=e.only_child(s,!0);e.reset(a),e.template_effect((x,H)=>{o=e.set_class(r,1,"tournament-games__tab svelte-49hxa3",null,o,{active:e.get(g)==="casino"}),e.set_attribute(r,"aria-selected",e.get(g)==="casino"),e.set_text(d,x),l=e.set_class(s,1,"tournament-games__tab svelte-49hxa3",null,l,{active:e.get(g)==="sports"}),e.set_attribute(s,"aria-selected",e.get(g)==="sports"),e.set_text(_,H)},[()=>i()("casinoTab"),()=>i()("sportsTab")]),e.delegated("click",r,()=>D("casino")),e.delegated("click",s,()=>D("sports")),e.append(t,a)};e.if_block(J,t=>{e.get(P)&&t(se)})}var oe=e.sibling(J,2);{var le=t=>{var a=e.comment(),r=e.first_child(a);{var o=s=>{var l=Q(),_=e.only_child(l,!0);e.template_effect(x=>e.set_text(_,x),[()=>i()("noAvailableGames")]),e.append(s,l)},d=s=>{var l=Se(),_=e.first_child(l),x=e.child(_);e.each(x,17,()=>e.get(u),e.index,(v,m)=>{var c=be(),b=e.child(c),p=e.sibling(b,2),V=e.child(p),Z=e.only_child(V,!0);e.reset(p);var ce=e.sibling(p,2);{var pe=k=>{var K=xe(),he=e.only_child(K,!0);e.template_effect(_e=>e.set_text(he,_e),[()=>i()("newBadge")]),e.append(k,K)};e.if_block(ce,k=>{e.get(m).isNew&&k(pe)})}e.reset(c),e.template_effect(k=>{e.set_attribute(c,"title",e.get(m).name),e.set_attribute(b,"src",`https:${e.get(m).thumbnail}`),e.set_attribute(b,"alt",e.get(m).name),e.set_text(Z,k)},[()=>i()("play")]),e.delegated("click",c,()=>ne(e.get(m))),e.append(v,c)});var H=e.sibling(x,2);e.each(H,17,()=>Array(e.get(ee)),e.index,(v,m,c,b)=>{var p=ye();e.append(v,p)}),e.reset(_);var ge=e.sibling(_,2);{var de=v=>{var m=e.comment(),c=e.first_child(m);e.key(c,()=>e.get(u).length,b=>{var p=we();e.action(p,(V,Z)=>ae?.(V,Z),()=>te),e.append(b,p)}),e.append(v,m)};e.if_block(ge,v=>{e.get(q)&&v(de)})}e.append(s,l)};e.if_block(r,s=>{e.get(u).length===0&&!e.get(q)?s(o):s(d,-1)})}e.append(t,a)},ie=t=>{var a=Q(),r=e.only_child(a,!0);e.template_effect(o=>e.set_text(r,o),[()=>i()("noAvailableEvents")]),e.append(t,a)},me=t=>{var a=ke();e.each(a,21,()=>e.get(F),e.index,(r,o)=>{var d=Te(),s=e.only_child(d);e.template_effect(l=>e.set_text(s,`${e.get(o).rule??""} ${l??""}`),[()=>i()("contribution")]),e.append(r,d)}),e.reset(a),e.append(t,a)};e.if_block(oe,t=>{e.get($)?t(le):e.get(F).length===0?t(ie,1):t(me,-1)})}e.reset(C),e.bind_this(C,t=>e.set(B,t),()=>e.get(B)),e.append(h,C);var ue=e.pop(re);return X(),ue}e.delegate(["click"]);e.create_custom_element(W,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},tournamentname:{},totalGames:{},platform:{},tournamentMetadata:{},translationurl:{},hasCasino:{},hasSports:{}},[],[],{mode:"open"});exports.TournamentGames=W;exports.scrollToSection=U;
|