@everymatrix/tournament-details-page 0.2.2 → 0.2.3
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-DpI8g8MS.js → ChartIcon-Bhz3dlNt.js} +1 -1
- package/components/{ChartIcon-BnuWrPCu.js → ChartIcon-Bpak0Ha5.js} +1 -1
- package/components/{ChartIcon-BOJYO_mg.cjs → ChartIcon-CQ9xzPNv.cjs} +1 -1
- package/components/{ChartIcon-RZGJve9X.cjs → ChartIcon-jHYM_pz4.cjs} +1 -1
- package/components/{CoinStackIcon-D7VDNLPL.js → CoinStackIcon-6LCcPwql.js} +1 -1
- package/components/{CoinStackIcon-JPra1r-T.js → CoinStackIcon-Ccp3qOAA.js} +1 -1
- package/components/{CoinStackIcon-D9m5o_fi.cjs → CoinStackIcon-gHBgq0A7.cjs} +1 -1
- package/components/{CoinStackIcon-DFr0r7ql.cjs → CoinStackIcon-w0E7Vjou.cjs} +1 -1
- package/components/{DocumentsIcon-DFbkU_nq.js → DocumentsIcon-CCY_TgTL.js} +1 -1
- package/components/{DocumentsIcon-BMHGy7l5.cjs → DocumentsIcon-D7v18JHm.cjs} +1 -1
- package/components/{DocumentsIcon-CbpU2Gyn.js → DocumentsIcon-SkzMlDao.js} +1 -1
- package/components/{DocumentsIcon-BGDIx1Br.cjs → DocumentsIcon-TikJpiUM.cjs} +1 -1
- package/components/{FootballIcon-Dh004HAn.cjs → FootballIcon-2V3-bZP6.cjs} +1 -1
- package/components/{FootballIcon-Ba3k9QwJ.cjs → FootballIcon-BxC3qLd6.cjs} +1 -1
- package/components/{FootballIcon-BXfYxMAS.js → FootballIcon-CNGC-ysJ.js} +1 -1
- package/components/{FootballIcon-t-RiDqHO.js → FootballIcon-DiVQPE5J.js} +1 -1
- package/components/{PeopleIcon-Dij57H9Y.cjs → PeopleIcon-CIePqv40.cjs} +1 -1
- package/components/{PeopleIcon-2b-6fziq.js → PeopleIcon-CeTcZT9N.js} +1 -1
- package/components/{PeopleIcon-BL0lywpf.js → PeopleIcon-DE_VDpzu.js} +1 -1
- package/components/{PeopleIcon-Bi5uKQ9t.cjs → PeopleIcon-nbIehGXq.cjs} +1 -1
- package/components/{RankArrowIcon-DxqeIh-2.js → RankArrowIcon-CwlkgpW2.js} +1 -1
- package/components/{RankArrowIcon-BLPI8Ihl.js → RankArrowIcon-DeVP6SqV.js} +1 -1
- package/components/{RankArrowIcon-C1FqD2OV.cjs → RankArrowIcon-Dfflx6jx.cjs} +1 -1
- package/components/{RankArrowIcon-D9MUkVQC.cjs → RankArrowIcon-N3Rja8qO.cjs} +1 -1
- package/components/{SlotMachineIcon-_w58r-b5.cjs → SlotMachineIcon-B8LXNyS_.cjs} +1 -1
- package/components/{SlotMachineIcon-Cuv-0tTj.cjs → SlotMachineIcon-BB--rwxm.cjs} +1 -1
- package/components/{SlotMachineIcon-DbLnS5Dy.js → SlotMachineIcon-Bcda_Xmo.js} +1 -1
- package/components/{SlotMachineIcon-rm59GZar.js → SlotMachineIcon-BfZMN8W8.js} +1 -1
- package/components/{StatusBadge-94g1_G1j.js → StatusBadge-48pKkesj.js} +1801 -1768
- package/components/{StatusBadge-DuF7NK69.js → StatusBadge-BUU_5AgK.js} +1415 -1382
- package/components/StatusBadge-Bi4UTGIK.cjs +11 -0
- package/components/StatusBadge-CiBujliJ.cjs +11 -0
- package/components/TournamentActions-CZGHUCTG.js +110 -0
- package/components/TournamentActions-DYS3Zas8.cjs +18 -0
- package/components/TournamentActions-DrwI70Qj.js +108 -0
- package/components/TournamentActions-yR_aN1JY.cjs +18 -0
- package/components/{TournamentDetailsPage-BknZ3XLG.js → TournamentDetailsPage-Bp60Uk-8.js} +291 -207
- package/components/{TournamentDetailsPage-DbL7sBZM.cjs → TournamentDetailsPage-BuiUVQhu.cjs} +4 -4
- package/components/{TournamentDetailsPage-DKQGDSr1.cjs → TournamentDetailsPage-DEpxQPEA.cjs} +4 -4
- package/components/{TournamentDetailsPage-AkoBgtU-.js → TournamentDetailsPage-Dnv8IQ1B.js} +342 -258
- package/components/{TournamentDetailsSkeleton-BTCHrmxN.cjs → TournamentDetailsSkeleton-B7Qc2qaP.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-Dtd2H__T.cjs → TournamentDetailsSkeleton-CFgmljN6.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-CmKNNW5d.js → TournamentDetailsSkeleton-Dn6_fjHV.js} +17 -17
- package/components/{TournamentDetailsSkeleton-D0L8P1tb.js → TournamentDetailsSkeleton-qTpuepan.js} +17 -17
- package/components/TournamentGames-BHzZyU1T.cjs +19 -0
- package/components/{TournamentGames-BGr8V4Dd.js → TournamentGames-BSbbbGfz.js} +154 -147
- package/components/{TournamentGames-BhXlS-fA.js → TournamentGames-D9NuiZl1.js} +133 -126
- package/components/TournamentGames-Zkp7iS-3.cjs +19 -0
- package/components/{TournamentImage-BFh29Z7_.js → TournamentImage-B8k7urkf.js} +61 -51
- package/components/{TournamentImage-CxfcEUy6.cjs → TournamentImage-BxojXrGF.cjs} +2 -2
- package/components/{TournamentImage-D26UWHyP.cjs → TournamentImage-By_eps51.cjs} +2 -2
- package/components/{TournamentImage-Hm-i2BLZ.js → TournamentImage-DAfP40BM.js} +59 -49
- package/components/TournamentLeaderboard-BHGPwbuz.cjs +44 -0
- package/components/TournamentLeaderboard-Bk72WFe2.js +1500 -0
- package/components/TournamentLeaderboard-C1uFc5GZ.cjs +44 -0
- package/components/TournamentLeaderboard-cnaAJbty.js +1561 -0
- package/components/{TournamentRules-DwcmzDOu.js → TournamentRules-B392M3KD.js} +69 -69
- package/components/{TournamentRules-iglqjP1P.cjs → TournamentRules-BpcwEy6C.cjs} +3 -3
- package/components/{TournamentRules-Dxup5GZ2.js → TournamentRules-D8ePsXfz.js} +72 -72
- package/components/{TournamentRules-Bu4jfxhb.cjs → TournamentRules-DRhqdG_B.cjs} +3 -3
- package/components/TournamentSummary-BvxGV6na.cjs +3 -0
- package/components/TournamentSummary-DAVQCaqt.js +145 -0
- package/components/TournamentSummary-DPIK4FyI.cjs +3 -0
- package/components/TournamentSummary-DRt9iIEz.js +150 -0
- package/components/{TournamentTabs-DHZPrDgf.js → TournamentTabs-BVNuWoQ4.js} +14 -14
- package/components/{TournamentTabs-ryceiGS3.cjs → TournamentTabs-C5mZ8N3x.cjs} +1 -1
- package/components/{TournamentTabs-BVEr7PbQ.cjs → TournamentTabs-D4lAhT6v.cjs} +1 -1
- package/components/{TournamentTabs-B5Hc7DnJ.js → TournamentTabs-DOIFHU3l.js} +18 -18
- package/components/{TrophyIcon-DddCZpjC.cjs → TrophyIcon-95ROc4Lc.cjs} +1 -1
- package/components/{TrophyIcon-DbEHhyTe.js → TrophyIcon-BolnMSK-.js} +4 -4
- package/components/{TrophyIcon-DJyC3k-2.js → TrophyIcon-BqeMso6k.js} +4 -4
- package/components/{TrophyIcon-eLIudkPn.cjs → TrophyIcon-BuT5Q6K0.cjs} +1 -1
- package/components/translations-Bgd_tQSB.cjs +1 -0
- package/components/translations-CPDBBwzN.cjs +1 -0
- package/components/{translations-BQS5XycD.js → translations-CoULEJN6.js} +37 -5
- package/components/{translations-DPzojb4V.js → translations-CzV51BzW.js} +37 -5
- 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/StatusBadge-Bdc22cMY.cjs +0 -8
- package/components/StatusBadge-BsjzjNer.cjs +0 -8
- package/components/TournamentGames-Ch4ODv3u.cjs +0 -19
- package/components/TournamentGames-D8h0gDfK.cjs +0 -19
- package/components/TournamentLeaderboard-1i-FoUCN.cjs +0 -38
- package/components/TournamentLeaderboard-B6IMbAZ_.cjs +0 -38
- package/components/TournamentLeaderboard-BJ0mlW5c.js +0 -1384
- package/components/TournamentLeaderboard-BM3HZ0jQ.js +0 -1441
- package/components/TournamentSummary-B7I6gN81.js +0 -145
- package/components/TournamentSummary-C24QhbUw.cjs +0 -3
- package/components/TournamentSummary-HgOjtkW2.cjs +0 -3
- package/components/TournamentSummary-ozfHjUkk.js +0 -150
- package/components/translations-BSe2qToO.cjs +0 -1
- package/components/translations-FufS-X5l.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as
|
|
3
|
-
import { a as
|
|
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
4
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
5
5
|
}, globalThis.customElements = { define() {
|
|
6
6
|
}, get() {
|
|
7
7
|
}, whenDefined() {
|
|
8
8
|
} });
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
9
|
+
const rt = (b, n = !1) => {
|
|
10
|
+
if (!b)
|
|
11
11
|
return;
|
|
12
|
-
const d = parseFloat(getComputedStyle(
|
|
13
|
-
if (
|
|
12
|
+
const d = parseFloat(getComputedStyle(b).scrollMarginTop) || 0;
|
|
13
|
+
if (n && b.getBoundingClientRect().top >= d)
|
|
14
14
|
return;
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const q = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
16
|
+
b.scrollIntoView({ behavior: q ? "auto" : "smooth", block: "start" });
|
|
17
17
|
};
|
|
18
|
-
var
|
|
19
|
-
const
|
|
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
20
|
hash: "svelte-49hxa3",
|
|
21
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
22
|
|
|
@@ -38,121 +38,127 @@ const ct = {
|
|
|
38
38
|
animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
|
|
39
39
|
}`
|
|
40
40
|
};
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
const d = () =>
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
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
47
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
|
|
48
|
+
Fe(() => {
|
|
49
|
+
D() && Je(D());
|
|
50
|
+
}), qe(() => {
|
|
51
|
+
be();
|
|
52
52
|
});
|
|
53
|
-
let h =
|
|
54
|
-
const
|
|
55
|
-
e !== t(
|
|
56
|
-
},
|
|
57
|
-
const e =
|
|
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
58
|
if (!e)
|
|
59
59
|
return [];
|
|
60
60
|
try {
|
|
61
61
|
const a = JSON.parse(e);
|
|
62
|
-
return a[
|
|
62
|
+
return a[G()] || a["*"] || [];
|
|
63
63
|
} catch (a) {
|
|
64
64
|
return console.log(a), [];
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
67
|
-
if (!(!t(
|
|
68
|
-
|
|
66
|
+
}), we = async () => {
|
|
67
|
+
if (!(!t(ee) || t(Z))) {
|
|
68
|
+
E(Z, !0);
|
|
69
69
|
try {
|
|
70
|
-
const e = await
|
|
71
|
-
endpoint:
|
|
72
|
-
language:
|
|
73
|
-
platform:
|
|
74
|
-
session:
|
|
75
|
-
tournamentid:
|
|
70
|
+
const e = await at({
|
|
71
|
+
endpoint: K(),
|
|
72
|
+
language: G(),
|
|
73
|
+
platform: W(),
|
|
74
|
+
session: Q(),
|
|
75
|
+
tournamentid: O(),
|
|
76
76
|
filterById: !0,
|
|
77
|
-
gamesLimit:
|
|
77
|
+
gamesLimit: ve,
|
|
78
78
|
gamesOffset: t(h).length
|
|
79
79
|
});
|
|
80
|
-
|
|
80
|
+
E(h, [...t(h), ...e?.games?.items ?? []], !0), E(F, e?.games?.total ?? t(F), !0);
|
|
81
81
|
} catch (e) {
|
|
82
82
|
console.log(e);
|
|
83
83
|
} finally {
|
|
84
|
-
|
|
84
|
+
E(Z, !1);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
},
|
|
88
|
-
const
|
|
87
|
+
}, Te = (e, a) => {
|
|
88
|
+
const s = new IntersectionObserver(
|
|
89
89
|
(m) => {
|
|
90
|
-
m.some((
|
|
90
|
+
m.some((v) => v.isIntersecting) && a();
|
|
91
91
|
},
|
|
92
|
-
{ rootMargin:
|
|
92
|
+
{ rootMargin: nt }
|
|
93
93
|
);
|
|
94
|
-
return
|
|
94
|
+
return s.observe(e), {
|
|
95
95
|
destroy() {
|
|
96
|
-
|
|
96
|
+
s.disconnect();
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
}, Ge = (e) => {
|
|
100
|
-
|
|
100
|
+
tt(e, { id: O(), nameOrTitle: V() }, t($) ? t(p) : void 0);
|
|
101
101
|
};
|
|
102
|
-
var
|
|
102
|
+
var ke = {
|
|
103
103
|
get initialGames() {
|
|
104
|
-
return
|
|
104
|
+
return H();
|
|
105
105
|
},
|
|
106
106
|
set initialGames(e) {
|
|
107
|
-
|
|
107
|
+
H(e), l();
|
|
108
108
|
},
|
|
109
109
|
get endpoint() {
|
|
110
|
-
return
|
|
110
|
+
return K();
|
|
111
111
|
},
|
|
112
112
|
set endpoint(e) {
|
|
113
|
-
|
|
113
|
+
K(e), l();
|
|
114
114
|
},
|
|
115
115
|
get language() {
|
|
116
|
-
return
|
|
116
|
+
return G();
|
|
117
117
|
},
|
|
118
118
|
set language(e = "en") {
|
|
119
|
-
|
|
119
|
+
G(e), l();
|
|
120
120
|
},
|
|
121
121
|
get session() {
|
|
122
|
-
return
|
|
122
|
+
return Q();
|
|
123
123
|
},
|
|
124
124
|
set session(e) {
|
|
125
|
-
|
|
125
|
+
Q(e), l();
|
|
126
126
|
},
|
|
127
127
|
get tournamentid() {
|
|
128
|
-
return
|
|
128
|
+
return O();
|
|
129
129
|
},
|
|
130
130
|
set tournamentid(e) {
|
|
131
|
-
|
|
131
|
+
O(e), l();
|
|
132
|
+
},
|
|
133
|
+
get tournamentname() {
|
|
134
|
+
return V();
|
|
135
|
+
},
|
|
136
|
+
set tournamentname(e = "") {
|
|
137
|
+
V(e), l();
|
|
132
138
|
},
|
|
133
139
|
get totalGames() {
|
|
134
|
-
return
|
|
140
|
+
return U();
|
|
135
141
|
},
|
|
136
142
|
set totalGames(e) {
|
|
137
|
-
|
|
143
|
+
U(e), l();
|
|
138
144
|
},
|
|
139
145
|
get platform() {
|
|
140
|
-
return
|
|
146
|
+
return W();
|
|
141
147
|
},
|
|
142
148
|
set platform(e) {
|
|
143
|
-
|
|
149
|
+
W(e), l();
|
|
144
150
|
},
|
|
145
151
|
get tournamentMetadata() {
|
|
146
|
-
return
|
|
152
|
+
return X();
|
|
147
153
|
},
|
|
148
154
|
set tournamentMetadata(e) {
|
|
149
|
-
|
|
155
|
+
X(e), l();
|
|
150
156
|
},
|
|
151
157
|
get translationurl() {
|
|
152
|
-
return
|
|
158
|
+
return D();
|
|
153
159
|
},
|
|
154
160
|
set translationurl(e) {
|
|
155
|
-
|
|
161
|
+
D(e), l();
|
|
156
162
|
},
|
|
157
163
|
get hasCasino() {
|
|
158
164
|
return z();
|
|
@@ -161,112 +167,113 @@ function ht(x, s) {
|
|
|
161
167
|
z(e), l();
|
|
162
168
|
},
|
|
163
169
|
get hasSports() {
|
|
164
|
-
return
|
|
170
|
+
return I();
|
|
165
171
|
},
|
|
166
172
|
set hasSports(e = !1) {
|
|
167
|
-
|
|
173
|
+
I(e), l();
|
|
168
174
|
}
|
|
169
|
-
},
|
|
175
|
+
}, J = ht(), ge = j(J);
|
|
170
176
|
{
|
|
171
|
-
var
|
|
172
|
-
var a =
|
|
177
|
+
var Me = (e) => {
|
|
178
|
+
var a = ot(), s = j(a);
|
|
173
179
|
let m;
|
|
174
|
-
var
|
|
180
|
+
var v = w(s, !0), r = S(s, 2);
|
|
175
181
|
let u;
|
|
176
182
|
var f = w(r, !0);
|
|
177
|
-
A(a),
|
|
178
|
-
(k,
|
|
179
|
-
m =
|
|
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);
|
|
180
186
|
},
|
|
181
187
|
[() => d()("casinoTab"), () => d()("sportsTab")]
|
|
182
|
-
),
|
|
188
|
+
), re("click", s, () => me("casino")), re("click", r, () => me("sports")), o(e, a);
|
|
183
189
|
};
|
|
184
|
-
|
|
185
|
-
t(
|
|
190
|
+
R(ge, (e) => {
|
|
191
|
+
t($) && e(Me);
|
|
186
192
|
});
|
|
187
193
|
}
|
|
188
|
-
var
|
|
194
|
+
var Se = S(ge, 2);
|
|
189
195
|
{
|
|
190
|
-
var
|
|
191
|
-
var a =
|
|
196
|
+
var Ae = (e) => {
|
|
197
|
+
var a = pe(), s = oe(a);
|
|
192
198
|
{
|
|
193
199
|
var m = (r) => {
|
|
194
|
-
var u =
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
var u =
|
|
198
|
-
|
|
199
|
-
var
|
|
200
|
-
A(
|
|
201
|
-
var
|
|
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);
|
|
202
208
|
{
|
|
203
|
-
var
|
|
204
|
-
var
|
|
205
|
-
|
|
209
|
+
var Ne = (L) => {
|
|
210
|
+
var de = it(), Re = w(de, !0);
|
|
211
|
+
C((je) => T(Re, je), [() => d()("newBadge")]), o(L, de);
|
|
206
212
|
};
|
|
207
|
-
|
|
208
|
-
t(c).isNew &&
|
|
213
|
+
R(Le, (L) => {
|
|
214
|
+
t(c).isNew && L(Ne);
|
|
209
215
|
});
|
|
210
216
|
}
|
|
211
|
-
A(
|
|
212
|
-
(
|
|
213
|
-
B(
|
|
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);
|
|
214
220
|
},
|
|
215
221
|
[() => d()("play")]
|
|
216
|
-
),
|
|
222
|
+
), re("click", _, () => Ge(t(c))), o(y, _);
|
|
217
223
|
});
|
|
218
|
-
var
|
|
219
|
-
|
|
220
|
-
var
|
|
221
|
-
o(y,
|
|
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);
|
|
222
228
|
}), A(f);
|
|
223
229
|
var ze = S(f, 2);
|
|
224
230
|
{
|
|
225
|
-
var
|
|
226
|
-
var c =
|
|
227
|
-
|
|
228
|
-
var
|
|
229
|
-
|
|
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);
|
|
230
236
|
}), o(y, c);
|
|
231
237
|
};
|
|
232
|
-
|
|
233
|
-
t(
|
|
238
|
+
R(ze, (y) => {
|
|
239
|
+
t(ee) && y(Ie);
|
|
234
240
|
});
|
|
235
241
|
}
|
|
236
242
|
o(r, u);
|
|
237
243
|
};
|
|
238
|
-
|
|
239
|
-
t(h).length === 0 && !t(
|
|
244
|
+
R(s, (r) => {
|
|
245
|
+
t(h).length === 0 && !t(ee) ? r(m) : r(v, -1);
|
|
240
246
|
});
|
|
241
247
|
}
|
|
242
248
|
o(e, a);
|
|
243
|
-
},
|
|
244
|
-
var a =
|
|
245
|
-
|
|
249
|
+
}, Ce = (e) => {
|
|
250
|
+
var a = _e(), s = w(a, !0);
|
|
251
|
+
C((m) => T(s, m), [() => d()("noAvailableEvents")]), o(e, a);
|
|
246
252
|
}, Ee = (e) => {
|
|
247
|
-
var a =
|
|
248
|
-
|
|
249
|
-
var
|
|
250
|
-
|
|
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);
|
|
251
257
|
}), A(a), o(e, a);
|
|
252
258
|
};
|
|
253
|
-
|
|
254
|
-
t(
|
|
259
|
+
R(Se, (e) => {
|
|
260
|
+
t(fe) ? e(Ae) : t(ue).length === 0 ? e(Ce, 1) : e(Ee, -1);
|
|
255
261
|
});
|
|
256
262
|
}
|
|
257
|
-
A(
|
|
258
|
-
var
|
|
259
|
-
return
|
|
263
|
+
A(J), Ke(J, (e) => E(Y, e), () => t(Y)), o(b, J);
|
|
264
|
+
var Oe = Qe(ke);
|
|
265
|
+
return xe(), Oe;
|
|
260
266
|
}
|
|
261
|
-
|
|
267
|
+
Pe(["click"]);
|
|
262
268
|
Be(
|
|
263
|
-
|
|
269
|
+
vt,
|
|
264
270
|
{
|
|
265
271
|
initialGames: {},
|
|
266
272
|
endpoint: {},
|
|
267
273
|
language: {},
|
|
268
274
|
session: {},
|
|
269
275
|
tournamentid: {},
|
|
276
|
+
tournamentname: {},
|
|
270
277
|
totalGames: {},
|
|
271
278
|
platform: {},
|
|
272
279
|
tournamentMetadata: {},
|
|
@@ -279,6 +286,6 @@ Be(
|
|
|
279
286
|
{ mode: "open" }
|
|
280
287
|
);
|
|
281
288
|
export {
|
|
282
|
-
|
|
283
|
-
|
|
289
|
+
vt as T,
|
|
290
|
+
rt as s
|
|
284
291
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|