@everymatrix/tournament-details-page 0.0.2 → 0.0.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/{TournamentDetails-upe3WFia.cjs → TournamentDetails-AYkmST0l.cjs} +5 -5
- package/components/{TournamentDetails-CJVSWVXD.js → TournamentDetails-CIK1Vnx8.js} +684 -684
- package/components/{TournamentDetails-amGR_-Hv.js → TournamentDetails-glnpe9gf.js} +306 -306
- package/components/TournamentDetailsPage-85B_WTCl.cjs +63 -0
- package/components/{TournamentDetailsPage-B21wsWnv.js → TournamentDetailsPage-D6daHDII.js} +116 -116
- package/components/{TournamentDetailsPage-DW00w9RP.js → TournamentDetailsPage-DCB9anwm.js} +153 -153
- package/components/TournamentGames-0RUJ48Xu.js +362 -0
- package/components/TournamentGames-3qu_5rFn.cjs +26 -0
- package/components/TournamentGames-CDfNoeoq.js +335 -0
- package/components/TournamentLeaderboard-5oGHOpP6.js +794 -0
- package/components/TournamentLeaderboard-BUiKtCk5.cjs +36 -0
- package/components/TournamentLeaderboard-CF-QWN1C.js +810 -0
- 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
- package/components/TournamentDetailsPage-BlWvqhbK.js +0 -953
- package/components/TournamentDetailsPage-BsjnqhIP.cjs +0 -63
- package/components/TournamentDetailsPage-DnknTo0Y.js +0 -976
- package/components/TournamentDetailsPage-FO-PGATk.cjs +0 -63
- package/components/TournamentGames-B0ap9lHo.cjs +0 -26
- package/components/TournamentGames-BqZd-C9h.js +0 -351
- package/components/TournamentGames-C0-voJOi.js +0 -324
- package/components/TournamentGames-Cb2LP2tF.js +0 -324
- package/components/TournamentGames-D5Nyb0Nx.cjs +0 -26
- package/components/TournamentGames-DIIgfZ-E.js +0 -351
- package/components/TournamentLeaderboard-BjmkrtNX.js +0 -800
- package/components/TournamentLeaderboard-C1tIH5FA.js +0 -784
- package/components/TournamentLeaderboard-DWYhqHPh.cjs +0 -36
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { b as Re, $ as Ie, p as Fe, g as He, h as w, u as pe, s as L, i as Xe, j as g, l as h, m as l, k as N, z as P, C as Ue, E as _, B as D, w as a, n as i, q as Je, r as qe, F as Ke, t as x, v as y, e as Qe, f as Ve, x as s, J as X, K as U, I as ee, y as te, L as ae, D as me } from "./TournamentDetails-glnpe9gf.js";
|
|
2
|
+
import { g as Ye } from "./TournamentDetailsPage-DCB9anwm.js";
|
|
3
|
+
function Ze(G, m) {
|
|
4
|
+
Re(G, m);
|
|
5
|
+
}
|
|
6
|
+
function $e(G) {
|
|
7
|
+
Ie.set(G);
|
|
8
|
+
}
|
|
9
|
+
const ve = {
|
|
10
|
+
en: {
|
|
11
|
+
previousButton: "Previous",
|
|
12
|
+
nextButton: "Next",
|
|
13
|
+
casinoTab: "Casino",
|
|
14
|
+
sportsbookTab: "Sportsbook",
|
|
15
|
+
gamesDescriptionTitle: "Participating games",
|
|
16
|
+
gamesDescriptionSubtitle: "Discover the games",
|
|
17
|
+
sportsRulesParseError: "Error parsing tournament rules",
|
|
18
|
+
noAvailableGames: "No games have been configured yet!"
|
|
19
|
+
},
|
|
20
|
+
tr: {
|
|
21
|
+
previousButton: "Previous",
|
|
22
|
+
nextButton: "Next",
|
|
23
|
+
casinoTab: "Casino",
|
|
24
|
+
sportsbookTab: "Sportsbook"
|
|
25
|
+
}
|
|
26
|
+
}, et = () => typeof window > "u";
|
|
27
|
+
var tt = g('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), at = g('<p class="svelte-p7mf8l"> </p>'), nt = g("<div></div>"), ot = g('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), st = g('<div class="TournamentGameThumbnail svelte-p7mf8l"><div class="ImageContainer svelte-p7mf8l"><img class="svelte-p7mf8l"/> <div class="PlayButtonOverlay svelte-p7mf8l"><button class="PlayGameButton svelte-p7mf8l"> </button></div></div></div>'), rt = g('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), lt = g("<button> </button>"), it = g('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), pt = g('<p class="NoGamesAvailable svelte-p7mf8l"> </p>'), mt = g('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div> <div class="PaginationSkeletonButton svelte-p7mf8l"><div class="SkeletonShimmer svelte-p7mf8l"></div></div></div>'), vt = g('<div class="TournamentGamesWrapper svelte-p7mf8l"><div class="GamesDescription svelte-p7mf8l"><p class="GamesDescriptionTitle svelte-p7mf8l"> </p> <p class="GamesDescriptionSubTitle svelte-p7mf8l"> </p></div> <!> <!> <div><!></div> <!> <!></div>');
|
|
28
|
+
const ct = {
|
|
29
|
+
hash: "svelte-p7mf8l",
|
|
30
|
+
code: `.svelte-p7mf8l,
|
|
31
|
+
.svelte-p7mf8l::before,
|
|
32
|
+
.svelte-p7mf8l::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-p7mf8l {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-p7mf8l {display:flex;border-radius:50px;background-color:var(--emw-color-bg-section, #434343);padding:6px;margin-bottom:6px;width:100%;justify-content:center;.Tab:where(.svelte-p7mf8l) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;}.TournamentGamesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-p7mf8l {display:grid;gap:12px;grid-template-columns:repeat(auto-fit, minmax(min(150px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
|
|
33
|
+
to top,
|
|
34
|
+
var(--emw-color-primary, #FF1D4E),
|
|
35
|
+
transparent
|
|
36
|
+
);background-size:100% 200%;
|
|
37
|
+
animation: pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-p7mf8l {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-p7mf8l) {display:flex;gap:3px;}.PaginationButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-p7mf8l {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-p7mf8l {display:flex;justify-content:space-between;gap:6px;}.PaginationSkeletonButton.svelte-p7mf8l {width:80px;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #333232);overflow:hidden;position:relative;}.PaginationNumberSkeleton.svelte-p7mf8l {width:40px;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #333232);overflow:hidden;position:relative;}.SkeletonShimmer.svelte-p7mf8l {width:100%;height:100%;background:linear-gradient(
|
|
38
|
+
90deg,
|
|
39
|
+
transparent 0%,
|
|
40
|
+
var(--emw-color-skeleton, #333232) 50%,
|
|
41
|
+
transparent 100%
|
|
42
|
+
);
|
|
43
|
+
animation: svelte-p7mf8l-loading 1.5s infinite;transform:translateX(-100%);}
|
|
44
|
+
|
|
45
|
+
@keyframes svelte-p7mf8l-loading {
|
|
46
|
+
0% {
|
|
47
|
+
transform: translateX(-100%);
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
transform: translateX(100%);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (min-width: 750px) {.TournamentGamesTabs.svelte-p7mf8l {width:fit-content;}.PaginationWrapper.svelte-p7mf8l {justify-content:end;gap:10px;}.PaginationButton.svelte-p7mf8l {width:auto;min-width:75px;}
|
|
55
|
+
}.Hidden.svelte-p7mf8l {display:none;}`
|
|
56
|
+
};
|
|
57
|
+
function dt(G, m) {
|
|
58
|
+
Fe(m, !0), He(G, ct);
|
|
59
|
+
const b = () => Ue(Ke, "$_", ce), [ce, de] = qe(), O = w(m, "initialGames"), J = w(m, "endpoint"), M = w(m, "language", 7, "en"), W = w(m, "session"), z = w(m, "tournamentid"), d = w(m, "gamesLimit", 7, 6), j = w(m, "totalGames"), q = w(m, "platformProp", 7, null), A = w(m, "tournamentMetadata");
|
|
60
|
+
Object.keys(ve).forEach((e) => {
|
|
61
|
+
Ze(e, ve[e]);
|
|
62
|
+
});
|
|
63
|
+
const fe = () => {
|
|
64
|
+
$e(M());
|
|
65
|
+
};
|
|
66
|
+
pe(() => {
|
|
67
|
+
fe();
|
|
68
|
+
});
|
|
69
|
+
let C = L(Xe(O() || [])), E = L(!1), v = L(0), R = L(void 0);
|
|
70
|
+
const ue = et() ? q() ?? "dk" : Ye(window.navigator.userAgent), K = async () => {
|
|
71
|
+
if (Q.has(a(I)))
|
|
72
|
+
return;
|
|
73
|
+
x(E, !0);
|
|
74
|
+
const e = new URL(`${J()}/v1/tournaments/${z()}`), t = new Headers();
|
|
75
|
+
W() && t.append("X-SessionId", W());
|
|
76
|
+
const n = { method: "GET", headers: t };
|
|
77
|
+
e.searchParams.append("filter", `id=${z()}`), e.searchParams.append("language", M()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${d()},offset=${a(v)})`), e.searchParams.append("platform", ue), fetch(e, n).then((o) => o.json()).then((o) => {
|
|
78
|
+
x(C, o?.item?.games?.items, !0), Q.set(a(I), a(C));
|
|
79
|
+
}).catch((o) => console.log(o)).finally(() => x(E, !1));
|
|
80
|
+
}, ge = () => {
|
|
81
|
+
const e = Math.ceil(j() / d()), t = Math.floor(a(v) / d()) + 1;
|
|
82
|
+
if (e <= 5)
|
|
83
|
+
return Array.from({ length: e }, (o, c) => c + 1);
|
|
84
|
+
const n = [];
|
|
85
|
+
return n.push(1), t <= 3 ? (n.push(2, 3), n.push("..."), n.push(e)) : t >= e - 2 ? (n.push("..."), n.push(e - 2, e - 1, e)) : (n.push("..."), n.push(t - 1, t, t + 1), n.push("..."), n.push(e)), n;
|
|
86
|
+
}, be = () => {
|
|
87
|
+
a(v) < j() && (x(v, a(v) + d()), K());
|
|
88
|
+
}, he = () => {
|
|
89
|
+
a(v) !== 0 && (x(v, a(v) - d()), K());
|
|
90
|
+
}, _e = (e) => {
|
|
91
|
+
x(v, (e - 1) * d()), K();
|
|
92
|
+
}, xe = ae(ge), I = ae(() => Math.floor(a(v) / d()) + 1);
|
|
93
|
+
let Q = /* @__PURE__ */ new Map([[1, O()]]), we = ae(() => Q.get(a(I)) ?? []), S = L("casino");
|
|
94
|
+
const ye = () => {
|
|
95
|
+
if (!A()) return;
|
|
96
|
+
const e = A().sports?.rules;
|
|
97
|
+
let t;
|
|
98
|
+
if (e)
|
|
99
|
+
try {
|
|
100
|
+
t = JSON.parse(e), x(R, t[M()] || t["*"], !0);
|
|
101
|
+
} catch (n) {
|
|
102
|
+
console.log(n), x(R, `${b()("sportsRulesParseError")}`);
|
|
103
|
+
}
|
|
104
|
+
}, ke = (e) => {
|
|
105
|
+
window.postMessage(
|
|
106
|
+
{
|
|
107
|
+
type: "Tournaments:PlayGame",
|
|
108
|
+
launchUrl: e.launchUrl,
|
|
109
|
+
id: e.gameId,
|
|
110
|
+
platform: e.platform,
|
|
111
|
+
thumbnail: e.thumbnail,
|
|
112
|
+
name: e.name
|
|
113
|
+
},
|
|
114
|
+
window.location.href
|
|
115
|
+
);
|
|
116
|
+
};
|
|
117
|
+
pe(() => {
|
|
118
|
+
Object.keys(A()).length !== 0 && ye();
|
|
119
|
+
});
|
|
120
|
+
var Pe = {
|
|
121
|
+
get initialGames() {
|
|
122
|
+
return O();
|
|
123
|
+
},
|
|
124
|
+
set initialGames(e) {
|
|
125
|
+
O(e), y();
|
|
126
|
+
},
|
|
127
|
+
get endpoint() {
|
|
128
|
+
return J();
|
|
129
|
+
},
|
|
130
|
+
set endpoint(e) {
|
|
131
|
+
J(e), y();
|
|
132
|
+
},
|
|
133
|
+
get language() {
|
|
134
|
+
return M();
|
|
135
|
+
},
|
|
136
|
+
set language(e = "en") {
|
|
137
|
+
M(e), y();
|
|
138
|
+
},
|
|
139
|
+
get session() {
|
|
140
|
+
return W();
|
|
141
|
+
},
|
|
142
|
+
set session(e) {
|
|
143
|
+
W(e), y();
|
|
144
|
+
},
|
|
145
|
+
get tournamentid() {
|
|
146
|
+
return z();
|
|
147
|
+
},
|
|
148
|
+
set tournamentid(e) {
|
|
149
|
+
z(e), y();
|
|
150
|
+
},
|
|
151
|
+
get gamesLimit() {
|
|
152
|
+
return d();
|
|
153
|
+
},
|
|
154
|
+
set gamesLimit(e = 6) {
|
|
155
|
+
d(e), y();
|
|
156
|
+
},
|
|
157
|
+
get totalGames() {
|
|
158
|
+
return j();
|
|
159
|
+
},
|
|
160
|
+
set totalGames(e) {
|
|
161
|
+
j(e), y();
|
|
162
|
+
},
|
|
163
|
+
get platformProp() {
|
|
164
|
+
return q();
|
|
165
|
+
},
|
|
166
|
+
set platformProp(e = null) {
|
|
167
|
+
q(e), y();
|
|
168
|
+
},
|
|
169
|
+
get tournamentMetadata() {
|
|
170
|
+
return A();
|
|
171
|
+
},
|
|
172
|
+
set tournamentMetadata(e) {
|
|
173
|
+
A(e), y();
|
|
174
|
+
}
|
|
175
|
+
}, V = vt(), Y = l(V), Z = l(Y), Se = l(Z, !0);
|
|
176
|
+
s(Z);
|
|
177
|
+
var ne = h(Z, 2), Te = l(ne, !0);
|
|
178
|
+
s(ne), s(Y);
|
|
179
|
+
var oe = h(Y, 2);
|
|
180
|
+
{
|
|
181
|
+
var Ge = (e) => {
|
|
182
|
+
var t = tt(), n = l(t);
|
|
183
|
+
let o;
|
|
184
|
+
n.__click = () => x(S, "casino");
|
|
185
|
+
var c = l(n, !0);
|
|
186
|
+
s(n);
|
|
187
|
+
var r = h(n, 2);
|
|
188
|
+
let p;
|
|
189
|
+
r.__click = () => x(S, "sports");
|
|
190
|
+
var f = l(r, !0);
|
|
191
|
+
s(r), s(t), P(
|
|
192
|
+
(k, u) => {
|
|
193
|
+
o = D(n, 1, "Tab svelte-p7mf8l", null, o, { Active: a(S) === "casino" }), _(c, k), p = D(r, 1, "Tab svelte-p7mf8l", null, p, { Active: a(S) === "sports" }), _(f, u);
|
|
194
|
+
},
|
|
195
|
+
[() => b()("casinoTab"), () => b()("sportsbookTab")]
|
|
196
|
+
), i(e, t);
|
|
197
|
+
};
|
|
198
|
+
N(oe, (e) => {
|
|
199
|
+
Object.keys(A()).length !== 0 && e(Ge);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
var se = h(oe, 2);
|
|
203
|
+
{
|
|
204
|
+
var Ae = (e) => {
|
|
205
|
+
var t = nt();
|
|
206
|
+
let n;
|
|
207
|
+
X(t, 21, () => a(R), U, (o, c) => {
|
|
208
|
+
var r = at(), p = l(r);
|
|
209
|
+
s(r), P((f) => _(p, `${a(c).rule ?? ""} ${f ?? ""}`), [() => b()("contribution")]), i(o, r);
|
|
210
|
+
}), s(t), P(() => n = D(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(S) === "casino" })), i(e, t);
|
|
211
|
+
};
|
|
212
|
+
N(se, (e) => {
|
|
213
|
+
a(R) && e(Ae);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
var F = h(se, 2);
|
|
217
|
+
let re;
|
|
218
|
+
var Be = l(F);
|
|
219
|
+
{
|
|
220
|
+
var Ne = (e) => {
|
|
221
|
+
var t = ee(), n = te(t);
|
|
222
|
+
X(n, 17, () => Array(d()), U, (o, c, r, p) => {
|
|
223
|
+
var f = ot();
|
|
224
|
+
i(o, f);
|
|
225
|
+
}), i(e, t);
|
|
226
|
+
}, De = (e) => {
|
|
227
|
+
var t = ee(), n = te(t);
|
|
228
|
+
X(n, 17, () => a(we), U, (o, c) => {
|
|
229
|
+
var r = st();
|
|
230
|
+
r.__click = () => ke(a(c));
|
|
231
|
+
var p = l(r), f = l(p), k = h(f, 2), u = l(k), H = l(u, !0);
|
|
232
|
+
s(u), s(k), s(p), s(r), P(
|
|
233
|
+
($) => {
|
|
234
|
+
me(f, "src", `https:${a(c).thumbnail}`), me(f, "alt", a(c).name), _(H, $);
|
|
235
|
+
},
|
|
236
|
+
[() => b()("play")]
|
|
237
|
+
), i(o, r);
|
|
238
|
+
}), i(e, t);
|
|
239
|
+
};
|
|
240
|
+
N(Be, (e) => {
|
|
241
|
+
a(E) && a(C)?.length === 0 ? e(Ne) : e(De, !1);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
s(F);
|
|
245
|
+
var le = h(F, 2);
|
|
246
|
+
{
|
|
247
|
+
var Me = (e) => {
|
|
248
|
+
var t = it();
|
|
249
|
+
let n;
|
|
250
|
+
var o = l(t);
|
|
251
|
+
o.__click = he;
|
|
252
|
+
var c = l(o, !0);
|
|
253
|
+
s(o);
|
|
254
|
+
var r = h(o, 2);
|
|
255
|
+
X(r, 21, () => a(xe), U, (k, u) => {
|
|
256
|
+
var H = ee(), $ = te(H);
|
|
257
|
+
{
|
|
258
|
+
var We = (B) => {
|
|
259
|
+
var T = rt();
|
|
260
|
+
i(B, T);
|
|
261
|
+
}, ze = (B) => {
|
|
262
|
+
var T = lt();
|
|
263
|
+
let ie;
|
|
264
|
+
T.__click = () => _e(a(u));
|
|
265
|
+
var Ce = l(T, !0);
|
|
266
|
+
s(T), P(() => {
|
|
267
|
+
ie = D(T, 1, "PaginationButton Number svelte-p7mf8l", null, ie, { Active: a(u) === a(I) }), _(Ce, a(u));
|
|
268
|
+
}), i(B, T);
|
|
269
|
+
};
|
|
270
|
+
N($, (B) => {
|
|
271
|
+
typeof a(u) != "number" ? B(We) : B(ze, !1);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
i(k, H);
|
|
275
|
+
}), s(r);
|
|
276
|
+
var p = h(r, 2);
|
|
277
|
+
p.__click = be;
|
|
278
|
+
var f = l(p, !0);
|
|
279
|
+
s(p), s(t), P(
|
|
280
|
+
(k, u) => {
|
|
281
|
+
n = D(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(S) === "sports" }), o.disabled = a(v) === 0, _(c, k), p.disabled = a(v) >= j() - d(), _(f, u);
|
|
282
|
+
},
|
|
283
|
+
[() => b()("previousButton"), () => b()("nextButton")]
|
|
284
|
+
), i(e, t);
|
|
285
|
+
}, je = (e) => {
|
|
286
|
+
var t = pt(), n = l(t, !0);
|
|
287
|
+
s(t), P((o) => _(n, o), [() => b()("noAvailableGames")]), i(e, t);
|
|
288
|
+
};
|
|
289
|
+
N(le, (e) => {
|
|
290
|
+
!a(E) && a(C)?.length > 0 ? e(Me) : e(je, !1);
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
var Ee = h(le, 2);
|
|
294
|
+
{
|
|
295
|
+
var Le = (e) => {
|
|
296
|
+
var t = mt();
|
|
297
|
+
i(e, t);
|
|
298
|
+
};
|
|
299
|
+
N(Ee, (e) => {
|
|
300
|
+
a(E) && e(Le);
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
s(V), P(
|
|
304
|
+
(e, t) => {
|
|
305
|
+
_(Se, e), _(Te, t), re = D(F, 1, "TournamentGamesContainer svelte-p7mf8l", null, re, { Hidden: a(S) === "sports" });
|
|
306
|
+
},
|
|
307
|
+
[
|
|
308
|
+
() => b()("gamesDescriptionTitle"),
|
|
309
|
+
() => b()("gamesDescriptionSubtitle")
|
|
310
|
+
]
|
|
311
|
+
), i(G, V);
|
|
312
|
+
var Oe = Je(Pe);
|
|
313
|
+
return de(), Oe;
|
|
314
|
+
}
|
|
315
|
+
Qe(["click"]);
|
|
316
|
+
customElements.define("tournament-games", Ve(
|
|
317
|
+
dt,
|
|
318
|
+
{
|
|
319
|
+
initialGames: {},
|
|
320
|
+
endpoint: {},
|
|
321
|
+
language: {},
|
|
322
|
+
session: {},
|
|
323
|
+
tournamentid: {},
|
|
324
|
+
gamesLimit: {},
|
|
325
|
+
totalGames: {},
|
|
326
|
+
platformProp: {},
|
|
327
|
+
tournamentMetadata: {}
|
|
328
|
+
},
|
|
329
|
+
[],
|
|
330
|
+
[],
|
|
331
|
+
!1
|
|
332
|
+
));
|
|
333
|
+
export {
|
|
334
|
+
dt as default
|
|
335
|
+
};
|