@everymatrix/tournament-details-page 0.0.4 → 0.0.6
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-BwBvr-th.cjs +7 -0
- package/components/{TournamentDetails-glnpe9gf.js → TournamentDetails-DIfQFrc8.js} +1656 -1655
- package/components/{TournamentDetails-CIK1Vnx8.js → TournamentDetails-wSkU01Xy.js} +1921 -1920
- package/components/{TournamentDetailsPage-D6daHDII.js → TournamentDetailsPage-9QiBj_5p.js} +176 -176
- package/components/{TournamentDetailsPage-85B_WTCl.cjs → TournamentDetailsPage-du8_rjJX.cjs} +6 -6
- package/components/{TournamentDetailsPage-DCB9anwm.js → TournamentDetailsPage-rE5SsAXj.js} +128 -128
- package/components/TournamentGames-Dxvil6j2.js +383 -0
- package/components/TournamentGames-EuHRBJf0.js +355 -0
- package/components/TournamentGames-o7mTC32n.cjs +27 -0
- package/components/TournamentLeaderboard-BgywP9Jb.js +788 -0
- package/components/TournamentLeaderboard-m4CZolTW.cjs +30 -0
- package/components/TournamentLeaderboard-ncHvraaw.js +804 -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/TournamentDetails-AYkmST0l.cjs +0 -7
- package/components/TournamentGames-0RUJ48Xu.js +0 -362
- package/components/TournamentGames-3qu_5rFn.cjs +0 -26
- package/components/TournamentGames-CDfNoeoq.js +0 -335
- package/components/TournamentLeaderboard-5oGHOpP6.js +0 -794
- package/components/TournamentLeaderboard-BUiKtCk5.cjs +0 -36
- package/components/TournamentLeaderboard-CF-QWN1C.js +0 -810
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
var ce = (T, d, m) => new Promise((V, H) => {
|
|
2
|
+
var j = (u) => {
|
|
3
|
+
try {
|
|
4
|
+
x(m.next(u));
|
|
5
|
+
} catch (G) {
|
|
6
|
+
H(G);
|
|
7
|
+
}
|
|
8
|
+
}, W = (u) => {
|
|
9
|
+
try {
|
|
10
|
+
x(m.throw(u));
|
|
11
|
+
} catch (G) {
|
|
12
|
+
H(G);
|
|
13
|
+
}
|
|
14
|
+
}, x = (u) => u.done ? V(u.value) : Promise.resolve(u.value).then(j, W);
|
|
15
|
+
x((m = m.apply(T, d)).next());
|
|
16
|
+
});
|
|
17
|
+
import { a as Fe, $ as Xe, m as Ue, e as Je, p as P, u as de, s as z, f as qe, g as _, r as w, q as i, i as D, n as a, y as B, C as Ke, E as y, A as M, h as c, j as Qe, k as Ve, F as Ye, w as k, l as S, J, K as q, I as K, x as Q, L as oe, t as Ze, v as $e, B as r, D as fe } from "./TournamentDetails-wSkU01Xy.js";
|
|
18
|
+
import { g as et } from "./TournamentDetailsPage-9QiBj_5p.js";
|
|
19
|
+
function tt(T, d) {
|
|
20
|
+
Fe(T, d);
|
|
21
|
+
}
|
|
22
|
+
function ue(T) {
|
|
23
|
+
Xe.set(T);
|
|
24
|
+
}
|
|
25
|
+
const ge = {
|
|
26
|
+
en: {
|
|
27
|
+
previousButton: "Previous",
|
|
28
|
+
nextButton: "Next",
|
|
29
|
+
casinoTab: "Casino",
|
|
30
|
+
sportsbookTab: "Sportsbook",
|
|
31
|
+
gamesDescriptionTitle: "Participating games",
|
|
32
|
+
gamesDescriptionSubtitle: "Discover the games",
|
|
33
|
+
sportsRulesParseError: "Error parsing tournament rules",
|
|
34
|
+
noAvailableGames: "No games have been configured yet!"
|
|
35
|
+
},
|
|
36
|
+
tr: {
|
|
37
|
+
previousButton: "Previous",
|
|
38
|
+
nextButton: "Next",
|
|
39
|
+
casinoTab: "Casino",
|
|
40
|
+
sportsbookTab: "Sportsbook"
|
|
41
|
+
}
|
|
42
|
+
}, at = () => typeof window == "undefined";
|
|
43
|
+
var nt = _('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), ot = _('<p class="svelte-p7mf8l"> </p>'), st = _("<div></div>"), rt = _('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), lt = _('<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>'), it = _('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), pt = _("<button> </button>"), mt = _('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), vt = _("<p> </p>"), ct = _('<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>'), dt = _('<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>');
|
|
44
|
+
const ft = {
|
|
45
|
+
hash: "svelte-p7mf8l",
|
|
46
|
+
code: `.svelte-p7mf8l,
|
|
47
|
+
.svelte-p7mf8l::before,
|
|
48
|
+
.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(
|
|
49
|
+
to top,
|
|
50
|
+
var(--emw-color-primary, #FF1D4E),
|
|
51
|
+
transparent
|
|
52
|
+
);background-size:100% 200%;
|
|
53
|
+
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:35px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.PaginationNumberSkeleton.svelte-p7mf8l {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-bg-elements, #4A4A4A);overflow:hidden;position:relative;}.SkeletonShimmer.svelte-p7mf8l {width:100%;height:100%;background:linear-gradient(
|
|
54
|
+
90deg,
|
|
55
|
+
transparent 0%,
|
|
56
|
+
var(--emw-color-skeleton, #333232) 50%,
|
|
57
|
+
transparent 100%
|
|
58
|
+
);
|
|
59
|
+
animation: svelte-p7mf8l-loading 1.5s infinite;transform:translateX(-100%);}
|
|
60
|
+
|
|
61
|
+
@keyframes svelte-p7mf8l-loading {
|
|
62
|
+
0% {
|
|
63
|
+
transform: translateX(-100%);
|
|
64
|
+
}
|
|
65
|
+
100% {
|
|
66
|
+
transform: translateX(100%);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (min-width: 750px) {.TournamentGamesTabs.svelte-p7mf8l {width:fit-content;}.PaginationWrapper.svelte-p7mf8l, .PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;}.PaginationButton.svelte-p7mf8l {min-width:75px;}.PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-p7mf8l) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:35px;}}
|
|
71
|
+
|
|
72
|
+
}.Hidden.svelte-p7mf8l {display:none;}`
|
|
73
|
+
};
|
|
74
|
+
function ut(T, d) {
|
|
75
|
+
var me;
|
|
76
|
+
Ue(d, !0), Je(T, ft);
|
|
77
|
+
const m = () => Ke(Ye, "$_", V), [V, H] = Ve(), j = P(d, "initialGames"), W = P(d, "endpoint"), x = P(d, "language", 7, "en"), u = P(d, "session"), G = P(d, "tournamentid"), b = P(d, "gamesLimit", 7, 6), C = P(d, "totalGames"), Y = P(d, "platformProp", 7, null), E = P(d, "tournamentMetadata");
|
|
78
|
+
Object.keys(ge).forEach((e) => {
|
|
79
|
+
tt(e, ge[e]);
|
|
80
|
+
}), ue(x());
|
|
81
|
+
const be = () => {
|
|
82
|
+
ue(x());
|
|
83
|
+
};
|
|
84
|
+
de(() => {
|
|
85
|
+
be();
|
|
86
|
+
});
|
|
87
|
+
let R = z(qe(j() || [])), L = z(!1), g = z(0), I = z(void 0);
|
|
88
|
+
const he = at() ? (me = Y()) != null ? me : "dk" : et(window.navigator.userAgent), Z = () => ce(this, null, function* () {
|
|
89
|
+
if ($.has(a(F)))
|
|
90
|
+
return;
|
|
91
|
+
k(L, !0);
|
|
92
|
+
const e = new URL(`${W()}/v1/tournaments/${G()}`), t = new Headers();
|
|
93
|
+
u() && t.append("X-SessionId", u());
|
|
94
|
+
const n = { method: "GET", headers: t };
|
|
95
|
+
e.searchParams.append("filter", `id=${G()}`), e.searchParams.append("language", x()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${b()},offset=${a(g)})`), e.searchParams.append("platform", he), fetch(e, n).then((s) => s.json()).then((s) => {
|
|
96
|
+
var l, o;
|
|
97
|
+
k(R, (o = (l = s == null ? void 0 : s.item) == null ? void 0 : l.games) == null ? void 0 : o.items, !0), $.set(a(F), a(R));
|
|
98
|
+
}).catch((s) => console.log(s)).finally(() => k(L, !1));
|
|
99
|
+
}), _e = () => {
|
|
100
|
+
const e = Math.ceil(C() / b()), t = Math.floor(a(g) / b()) + 1;
|
|
101
|
+
if (e <= 5)
|
|
102
|
+
return Array.from({ length: e }, (s, l) => l + 1);
|
|
103
|
+
const n = [];
|
|
104
|
+
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;
|
|
105
|
+
}, xe = () => {
|
|
106
|
+
a(g) < C() && (k(g, a(g) + b()), Z());
|
|
107
|
+
}, we = () => {
|
|
108
|
+
a(g) !== 0 && (k(g, a(g) - b()), Z());
|
|
109
|
+
}, ye = (e) => {
|
|
110
|
+
k(g, (e - 1) * b()), Z();
|
|
111
|
+
}, ke = oe(_e), F = oe(() => Math.floor(a(g) / b()) + 1);
|
|
112
|
+
let $ = /* @__PURE__ */ new Map([[1, j()]]), Pe = oe(() => {
|
|
113
|
+
var e;
|
|
114
|
+
return (e = $.get(a(F))) != null ? e : [];
|
|
115
|
+
}), A = z("casino");
|
|
116
|
+
const Se = () => {
|
|
117
|
+
var n;
|
|
118
|
+
if (!E()) return;
|
|
119
|
+
const e = (n = E().sports) == null ? void 0 : n.rules;
|
|
120
|
+
let t;
|
|
121
|
+
if (e)
|
|
122
|
+
try {
|
|
123
|
+
t = JSON.parse(e), k(I, t[x()] || t["*"], !0);
|
|
124
|
+
} catch (s) {
|
|
125
|
+
console.log(s), k(I, `${m()("sportsRulesParseError")}`);
|
|
126
|
+
}
|
|
127
|
+
}, Te = (e) => {
|
|
128
|
+
window.postMessage(
|
|
129
|
+
{
|
|
130
|
+
type: "Tournaments:PlayGame",
|
|
131
|
+
launchUrl: e.launchUrl,
|
|
132
|
+
id: e.gameId,
|
|
133
|
+
thumbnail: e.thumbnail,
|
|
134
|
+
name: e.name
|
|
135
|
+
},
|
|
136
|
+
window.location.href
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
de(() => {
|
|
140
|
+
Object.keys(E()).length !== 0 && Se();
|
|
141
|
+
});
|
|
142
|
+
var Ge = {
|
|
143
|
+
get initialGames() {
|
|
144
|
+
return j();
|
|
145
|
+
},
|
|
146
|
+
set initialGames(e) {
|
|
147
|
+
j(e), S();
|
|
148
|
+
},
|
|
149
|
+
get endpoint() {
|
|
150
|
+
return W();
|
|
151
|
+
},
|
|
152
|
+
set endpoint(e) {
|
|
153
|
+
W(e), S();
|
|
154
|
+
},
|
|
155
|
+
get language() {
|
|
156
|
+
return x();
|
|
157
|
+
},
|
|
158
|
+
set language(e = "en") {
|
|
159
|
+
x(e), S();
|
|
160
|
+
},
|
|
161
|
+
get session() {
|
|
162
|
+
return u();
|
|
163
|
+
},
|
|
164
|
+
set session(e) {
|
|
165
|
+
u(e), S();
|
|
166
|
+
},
|
|
167
|
+
get tournamentid() {
|
|
168
|
+
return G();
|
|
169
|
+
},
|
|
170
|
+
set tournamentid(e) {
|
|
171
|
+
G(e), S();
|
|
172
|
+
},
|
|
173
|
+
get gamesLimit() {
|
|
174
|
+
return b();
|
|
175
|
+
},
|
|
176
|
+
set gamesLimit(e = 6) {
|
|
177
|
+
b(e), S();
|
|
178
|
+
},
|
|
179
|
+
get totalGames() {
|
|
180
|
+
return C();
|
|
181
|
+
},
|
|
182
|
+
set totalGames(e) {
|
|
183
|
+
C(e), S();
|
|
184
|
+
},
|
|
185
|
+
get platformProp() {
|
|
186
|
+
return Y();
|
|
187
|
+
},
|
|
188
|
+
set platformProp(e = null) {
|
|
189
|
+
Y(e), S();
|
|
190
|
+
},
|
|
191
|
+
get tournamentMetadata() {
|
|
192
|
+
return E();
|
|
193
|
+
},
|
|
194
|
+
set tournamentMetadata(e) {
|
|
195
|
+
E(e), S();
|
|
196
|
+
}
|
|
197
|
+
}, ee = dt(), te = i(ee), ae = i(te), Ae = i(ae, !0);
|
|
198
|
+
r(ae);
|
|
199
|
+
var se = w(ae, 2), Be = i(se, !0);
|
|
200
|
+
r(se), r(te);
|
|
201
|
+
var re = w(te, 2);
|
|
202
|
+
{
|
|
203
|
+
var Ne = (e) => {
|
|
204
|
+
var t = nt(), n = i(t);
|
|
205
|
+
let s;
|
|
206
|
+
n.__click = () => k(A, "casino");
|
|
207
|
+
var l = i(n, !0);
|
|
208
|
+
r(n);
|
|
209
|
+
var o = w(n, 2);
|
|
210
|
+
let p;
|
|
211
|
+
o.__click = () => k(A, "sports");
|
|
212
|
+
var v = i(o, !0);
|
|
213
|
+
r(o), r(t), B(
|
|
214
|
+
(f, h) => {
|
|
215
|
+
s = M(n, 1, "Tab svelte-p7mf8l", null, s, { Active: a(A) === "casino" }), y(l, f), p = M(o, 1, "Tab svelte-p7mf8l", null, p, { Active: a(A) === "sports" }), y(v, h);
|
|
216
|
+
},
|
|
217
|
+
[() => m()("casinoTab"), () => m()("sportsbookTab")]
|
|
218
|
+
), c(e, t);
|
|
219
|
+
};
|
|
220
|
+
D(re, (e) => {
|
|
221
|
+
Object.keys(E()).length !== 0 && e(Ne);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
var le = w(re, 2);
|
|
225
|
+
{
|
|
226
|
+
var De = (e) => {
|
|
227
|
+
var t = st();
|
|
228
|
+
let n;
|
|
229
|
+
J(t, 21, () => a(I), q, (s, l) => {
|
|
230
|
+
var o = ot(), p = i(o);
|
|
231
|
+
r(o), B((v) => {
|
|
232
|
+
var f;
|
|
233
|
+
return y(p, `${(f = a(l).rule) != null ? f : ""} ${v != null ? v : ""}`);
|
|
234
|
+
}, [() => m()("contribution")]), c(s, o);
|
|
235
|
+
}), r(t), B(() => n = M(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(A) === "casino" })), c(e, t);
|
|
236
|
+
};
|
|
237
|
+
D(le, (e) => {
|
|
238
|
+
a(I) && e(De);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
var X = w(le, 2);
|
|
242
|
+
let ie;
|
|
243
|
+
var Me = i(X);
|
|
244
|
+
{
|
|
245
|
+
var je = (e) => {
|
|
246
|
+
var t = K(), n = Q(t);
|
|
247
|
+
J(n, 17, () => Array(b()), q, (s, l, o, p) => {
|
|
248
|
+
var v = rt();
|
|
249
|
+
c(s, v);
|
|
250
|
+
}), c(e, t);
|
|
251
|
+
}, Ee = (e) => {
|
|
252
|
+
var t = K(), n = Q(t);
|
|
253
|
+
J(n, 17, () => a(Pe), q, (s, l) => {
|
|
254
|
+
var o = lt();
|
|
255
|
+
o.__click = () => Te(a(l));
|
|
256
|
+
var p = i(o), v = i(p), f = w(v, 2), h = i(f), U = i(h, !0);
|
|
257
|
+
r(h), r(f), r(p), r(o), B(
|
|
258
|
+
(ne) => {
|
|
259
|
+
fe(v, "src", `https:${a(l).thumbnail}`), fe(v, "alt", a(l).name), y(U, ne);
|
|
260
|
+
},
|
|
261
|
+
[() => m()("play")]
|
|
262
|
+
), c(s, o);
|
|
263
|
+
}), c(e, t);
|
|
264
|
+
};
|
|
265
|
+
D(Me, (e) => {
|
|
266
|
+
var t;
|
|
267
|
+
a(L) || ((t = a(R)) == null ? void 0 : t.length) === 0 ? e(je) : e(Ee, !1);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
r(X);
|
|
271
|
+
var pe = w(X, 2);
|
|
272
|
+
{
|
|
273
|
+
var Le = (e) => {
|
|
274
|
+
var t = mt();
|
|
275
|
+
let n;
|
|
276
|
+
var s = i(t);
|
|
277
|
+
s.__click = we;
|
|
278
|
+
var l = i(s, !0);
|
|
279
|
+
r(s);
|
|
280
|
+
var o = w(s, 2);
|
|
281
|
+
J(o, 21, () => a(ke), q, (f, h) => {
|
|
282
|
+
var U = K(), ne = Q(U);
|
|
283
|
+
{
|
|
284
|
+
var ze = (O) => {
|
|
285
|
+
var N = it();
|
|
286
|
+
c(O, N);
|
|
287
|
+
}, He = (O) => {
|
|
288
|
+
var N = pt();
|
|
289
|
+
let ve;
|
|
290
|
+
N.__click = () => ye(a(h));
|
|
291
|
+
var Ie = i(N, !0);
|
|
292
|
+
r(N), B(() => {
|
|
293
|
+
ve = M(N, 1, "PaginationButton Number svelte-p7mf8l", null, ve, { Active: a(h) === a(F) }), y(Ie, a(h));
|
|
294
|
+
}), c(O, N);
|
|
295
|
+
};
|
|
296
|
+
D(ne, (O) => {
|
|
297
|
+
typeof a(h) != "number" ? O(ze) : O(He, !1);
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
c(f, U);
|
|
301
|
+
}), r(o);
|
|
302
|
+
var p = w(o, 2);
|
|
303
|
+
p.__click = xe;
|
|
304
|
+
var v = i(p, !0);
|
|
305
|
+
r(p), r(t), B(
|
|
306
|
+
(f, h) => {
|
|
307
|
+
n = M(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(A) === "sports" }), s.disabled = a(g) === 0, y(l, f), p.disabled = a(g) >= C() - b(), y(v, h);
|
|
308
|
+
},
|
|
309
|
+
[() => m()("previousButton"), () => m()("nextButton")]
|
|
310
|
+
), c(e, t);
|
|
311
|
+
}, Oe = (e) => {
|
|
312
|
+
var t = K(), n = Q(t);
|
|
313
|
+
{
|
|
314
|
+
var s = (l) => {
|
|
315
|
+
var o = vt();
|
|
316
|
+
let p;
|
|
317
|
+
var v = i(o, !0);
|
|
318
|
+
r(o), B(
|
|
319
|
+
(f) => {
|
|
320
|
+
p = M(o, 1, "NoGamesAvailable svelte-p7mf8l", null, p, { Hidden: a(A) === "sports" }), y(v, f);
|
|
321
|
+
},
|
|
322
|
+
[() => m()("noAvailableGames")]
|
|
323
|
+
), c(l, o);
|
|
324
|
+
};
|
|
325
|
+
D(
|
|
326
|
+
n,
|
|
327
|
+
(l) => {
|
|
328
|
+
var o;
|
|
329
|
+
!a(L) && ((o = a(R)) == null ? void 0 : o.length) === 0 && l(s);
|
|
330
|
+
},
|
|
331
|
+
!0
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
c(e, t);
|
|
335
|
+
};
|
|
336
|
+
D(pe, (e) => {
|
|
337
|
+
var t;
|
|
338
|
+
!a(L) && ((t = a(R)) == null ? void 0 : t.length) > 0 ? e(Le) : e(Oe, !1);
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
var We = w(pe, 2);
|
|
342
|
+
{
|
|
343
|
+
var Ce = (e) => {
|
|
344
|
+
var t = ct();
|
|
345
|
+
c(e, t);
|
|
346
|
+
};
|
|
347
|
+
D(We, (e) => {
|
|
348
|
+
a(L) && e(Ce);
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
r(ee), B(
|
|
352
|
+
(e, t) => {
|
|
353
|
+
y(Ae, e), y(Be, t), ie = M(X, 1, "TournamentGamesContainer svelte-p7mf8l", null, ie, { Hidden: a(A) === "sports" });
|
|
354
|
+
},
|
|
355
|
+
[
|
|
356
|
+
() => m()("gamesDescriptionTitle"),
|
|
357
|
+
() => m()("gamesDescriptionSubtitle")
|
|
358
|
+
]
|
|
359
|
+
), c(T, ee);
|
|
360
|
+
var Re = Qe(Ge);
|
|
361
|
+
return H(), Re;
|
|
362
|
+
}
|
|
363
|
+
Ze(["click"]);
|
|
364
|
+
customElements.define("tournament-games", $e(
|
|
365
|
+
ut,
|
|
366
|
+
{
|
|
367
|
+
initialGames: {},
|
|
368
|
+
endpoint: {},
|
|
369
|
+
language: {},
|
|
370
|
+
session: {},
|
|
371
|
+
tournamentid: {},
|
|
372
|
+
gamesLimit: {},
|
|
373
|
+
totalGames: {},
|
|
374
|
+
platformProp: {},
|
|
375
|
+
tournamentMetadata: {}
|
|
376
|
+
},
|
|
377
|
+
[],
|
|
378
|
+
[],
|
|
379
|
+
!1
|
|
380
|
+
));
|
|
381
|
+
export {
|
|
382
|
+
ut as default
|
|
383
|
+
};
|