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