@everymatrix/tournament-details-page 0.0.8 → 0.0.9

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.
@@ -0,0 +1,403 @@
1
+ var ge = (A, p, m) => new Promise((te, C) => {
2
+ var L = (f) => {
3
+ try {
4
+ y(m.next(f));
5
+ } catch (B) {
6
+ C(B);
7
+ }
8
+ }, z = (f) => {
9
+ try {
10
+ y(m.throw(f));
11
+ } catch (B) {
12
+ C(B);
13
+ }
14
+ }, y = (f) => f.done ? te(f.value) : Promise.resolve(f.value).then(L, z);
15
+ y((m = m.apply(A, p)).next());
16
+ });
17
+ import { a as Ke, $ as qe, n as Xe, e as Qe, p as w, f as Ve, u as be, s as W, g as Ye, h as x, t as k, r as l, i as M, q as a, B as D, y as Ze, G as P, D as E, j as c, k as $e, l as et, z as tt, x as _, m as T, K as Y, L as Z, J as $, A as ee, M as pe, v as at, w as nt, E as i, F as he } from "./TournamentDetails-CKMkVYxd.js";
18
+ import { g as ot } from "./TournamentDetailsPage-0JKgpPb4.js";
19
+ function _e(A, p) {
20
+ Ke(A, p);
21
+ }
22
+ function xe(A) {
23
+ qe.set(A);
24
+ }
25
+ const ye = {
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: "Önceki",
38
+ nextButton: "Sonraki",
39
+ casinoTab: "Casino",
40
+ sportsbookTab: "Spor Bahisleri",
41
+ gamesDescriptionTitle: "Katılımcı oyunlar",
42
+ gamesDescriptionSubtitle: "Oyunları keşfedin",
43
+ sportsRulesParseError: "Turnuva kuralları ayrıştırma hatası",
44
+ noAvailableGames: "Henüz oyun yapılandırılmamış!"
45
+ }
46
+ }, rt = () => typeof window == "undefined";
47
+ var st = x('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), it = x('<p class="svelte-p7mf8l"> </p>'), lt = x("<div></div>"), pt = x('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), mt = x("<p> </p>"), ct = 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>'), vt = x('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), ut = x("<button> </button>"), dt = x('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), ft = x('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationSkeletonButton svelte-p7mf8l"></div></div>'), gt = 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>');
48
+ const bt = {
49
+ hash: "svelte-p7mf8l",
50
+ code: `.svelte-p7mf8l,
51
+ .svelte-p7mf8l::before,
52
+ .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;min-height:150px;}.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(
53
+ to top,
54
+ var(--emw-color-primary, #FF1D4E),
55
+ transparent
56
+ );background-size:100% 200%;
57
+ animation: svelte-p7mf8l-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:where(.svelte-p7mf8l) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
58
+ animation: svelte-p7mf8l-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
59
+ animation: svelte-p7mf8l-pulse 1s infinite;}}
60
+
61
+ @keyframes svelte-p7mf8l-pulse {
62
+ 0% {
63
+ opacity: 0;
64
+ }
65
+ 50% {
66
+ opacity: 1;
67
+ }
68
+ 100% {
69
+ opacity: 0;
70
+ }
71
+ }
72
+
73
+
74
+ @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;}}
75
+
76
+ }.Hidden.svelte-p7mf8l {display:none;}`
77
+ };
78
+ function ht(A, p) {
79
+ var fe;
80
+ Xe(p, !0), Qe(A, bt);
81
+ const m = () => Ze(tt, "$_", te), [te, C] = et(), L = w(p, "initialGames"), z = w(p, "endpoint"), y = w(p, "language", 7, "en"), f = w(p, "session"), B = w(p, "tournamentid"), g = w(p, "gamesLimit", 7, 6), O = w(p, "totalGames"), ae = w(p, "platformProp", 7, null), R = w(p, "tournamentMetadata"), F = w(p, "translationurl"), we = () => {
82
+ let e = new URL(F());
83
+ fetch(e.href).then((t) => t.json()).then((t) => {
84
+ Object.keys(t).forEach((n) => {
85
+ _e(n, t[n]);
86
+ });
87
+ }).catch((t) => {
88
+ console.log(t);
89
+ });
90
+ };
91
+ Object.keys(ye).forEach((e) => {
92
+ _e(e, ye[e]);
93
+ }), xe(y());
94
+ const ke = () => {
95
+ xe(y());
96
+ };
97
+ Ve(() => {
98
+ F() && we();
99
+ }), be(() => {
100
+ ke();
101
+ });
102
+ let ne = W(Ye(L() || [])), I = W(!1), b = W(0), U = W(void 0), J = W(!0);
103
+ const Pe = rt() ? (fe = ae()) != null ? fe : "dk" : ot(window.navigator.userAgent), oe = () => ge(this, null, function* () {
104
+ if (re.has(a(K)))
105
+ return;
106
+ _(I, !0);
107
+ const e = new URL(`${z()}/v1/tournaments/${B()}`), t = new Headers();
108
+ f() && t.append("X-SessionId", f());
109
+ const n = { method: "GET", headers: t };
110
+ e.searchParams.append("filter", `id=${B()}`), e.searchParams.append("language", y()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${g()},offset=${a(b)})`), e.searchParams.append("platform", Pe), fetch(e, n).then((o) => o.json()).then((o) => {
111
+ var d, r;
112
+ _(ne, (r = (d = o == null ? void 0 : o.item) == null ? void 0 : d.games) == null ? void 0 : r.items, !0), re.set(a(K), a(ne)), a(J) || _(J, !0);
113
+ }).catch((o) => console.log(o)).finally(() => _(I, !1));
114
+ }), Te = () => {
115
+ const e = Math.ceil(O() / g()), t = Math.floor(a(b) / g()) + 1;
116
+ if (e <= 5)
117
+ return Array.from({ length: e }, (o, d) => d + 1);
118
+ const n = [];
119
+ 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;
120
+ }, Ge = () => {
121
+ a(b) < O() && (_(b, a(b) + g()), oe());
122
+ }, Se = () => {
123
+ a(b) !== 0 && (_(b, a(b) - g()), oe());
124
+ }, Ae = (e) => {
125
+ _(b, (e - 1) * g()), oe();
126
+ }, Be = pe(Te), K = pe(() => Math.floor(a(b) / g()) + 1);
127
+ let re = /* @__PURE__ */ new Map([[1, L()]]), Ne = pe(() => {
128
+ var e;
129
+ return (e = re.get(a(K))) != null ? e : [];
130
+ }), N = W("casino");
131
+ const De = () => {
132
+ var n;
133
+ if (!R()) return;
134
+ const e = (n = R().sports) == null ? void 0 : n.rules;
135
+ let t;
136
+ if (e)
137
+ try {
138
+ t = JSON.parse(e), _(U, t[y()] || t["*"], !0);
139
+ } catch (o) {
140
+ console.log(o), _(U, `${m()("sportsRulesParseError")}`);
141
+ }
142
+ }, je = (e) => {
143
+ window.postMessage(
144
+ {
145
+ type: "Tournaments:PlayGame",
146
+ launchUrl: e.launchUrl,
147
+ id: e.gameId,
148
+ thumbnail: e.thumbnail,
149
+ name: e.name
150
+ },
151
+ window.location.href
152
+ );
153
+ };
154
+ be(() => {
155
+ Object.keys(R()).length !== 0 && De();
156
+ });
157
+ var Me = {
158
+ get initialGames() {
159
+ return L();
160
+ },
161
+ set initialGames(e) {
162
+ L(e), T();
163
+ },
164
+ get endpoint() {
165
+ return z();
166
+ },
167
+ set endpoint(e) {
168
+ z(e), T();
169
+ },
170
+ get language() {
171
+ return y();
172
+ },
173
+ set language(e = "en") {
174
+ y(e), T();
175
+ },
176
+ get session() {
177
+ return f();
178
+ },
179
+ set session(e) {
180
+ f(e), T();
181
+ },
182
+ get tournamentid() {
183
+ return B();
184
+ },
185
+ set tournamentid(e) {
186
+ B(e), T();
187
+ },
188
+ get gamesLimit() {
189
+ return g();
190
+ },
191
+ set gamesLimit(e = 6) {
192
+ g(e), T();
193
+ },
194
+ get totalGames() {
195
+ return O();
196
+ },
197
+ set totalGames(e) {
198
+ O(e), T();
199
+ },
200
+ get platformProp() {
201
+ return ae();
202
+ },
203
+ set platformProp(e = null) {
204
+ ae(e), T();
205
+ },
206
+ get tournamentMetadata() {
207
+ return R();
208
+ },
209
+ set tournamentMetadata(e) {
210
+ R(e), T();
211
+ },
212
+ get translationurl() {
213
+ return F();
214
+ },
215
+ set translationurl(e) {
216
+ F(e), T();
217
+ }
218
+ }, se = gt(), ie = l(se), le = l(ie), Ee = l(le, !0);
219
+ i(le);
220
+ var me = k(le, 2), Le = l(me, !0);
221
+ i(me), i(ie);
222
+ var ce = k(ie, 2);
223
+ {
224
+ var Oe = (e) => {
225
+ var t = st(), n = l(t);
226
+ let o;
227
+ n.__click = () => _(N, "casino");
228
+ var d = l(n, !0);
229
+ i(n);
230
+ var r = k(n, 2);
231
+ let s;
232
+ r.__click = () => _(N, "sports");
233
+ var v = l(r, !0);
234
+ i(r), i(t), D(
235
+ (h, u) => {
236
+ o = E(n, 1, "Tab svelte-p7mf8l", null, o, { Active: a(N) === "casino" }), P(d, h), s = E(r, 1, "Tab svelte-p7mf8l", null, s, { Active: a(N) === "sports" }), P(v, u);
237
+ },
238
+ [() => m()("casinoTab"), () => m()("sportsbookTab")]
239
+ ), c(e, t);
240
+ };
241
+ M(ce, (e) => {
242
+ Object.keys(R()).length !== 0 && e(Oe);
243
+ });
244
+ }
245
+ var ve = k(ce, 2);
246
+ {
247
+ var Re = (e) => {
248
+ var t = lt();
249
+ let n;
250
+ Y(t, 21, () => a(U), Z, (o, d) => {
251
+ var r = it(), s = l(r);
252
+ i(r), D((v) => {
253
+ var h;
254
+ return P(s, `${(h = a(d).rule) != null ? h : ""} ${v != null ? v : ""}`);
255
+ }, [() => m()("contribution")]), c(o, r);
256
+ }), i(t), D(() => n = E(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(N) === "casino" })), c(e, t);
257
+ };
258
+ M(ve, (e) => {
259
+ a(U) && e(Re);
260
+ });
261
+ }
262
+ var q = k(ve, 2);
263
+ let ue;
264
+ var We = l(q);
265
+ {
266
+ var ze = (e) => {
267
+ var t = $(), n = ee(t);
268
+ Y(n, 17, () => Array(g()), Z, (o, d, r, s) => {
269
+ var v = pt();
270
+ c(o, v);
271
+ }), c(e, t);
272
+ }, He = (e) => {
273
+ var t = $(), n = ee(t);
274
+ {
275
+ var o = (r) => {
276
+ var s = mt();
277
+ let v;
278
+ var h = l(s, !0);
279
+ i(s), D(
280
+ (u) => {
281
+ v = E(s, 1, "NoGamesAvailable svelte-p7mf8l", null, v, { Hidden: a(N) === "sports" }), P(h, u);
282
+ },
283
+ [() => m()("noAvailableGames")]
284
+ ), c(r, s);
285
+ }, d = (r) => {
286
+ var s = $(), v = ee(s);
287
+ Y(v, 17, () => a(Ne), Z, (h, u) => {
288
+ var j = ct();
289
+ j.__click = () => je(a(u));
290
+ var X = l(j), H = l(X), Q = k(H, 2), G = l(Q), S = l(G, !0);
291
+ i(G), i(Q), i(X), i(j), D(
292
+ (V) => {
293
+ he(H, "src", `https:${a(u).thumbnail}`), he(H, "alt", a(u).name), P(S, V);
294
+ },
295
+ [() => m()("play")]
296
+ ), c(h, j);
297
+ }), c(r, s);
298
+ };
299
+ M(
300
+ n,
301
+ (r) => {
302
+ var s;
303
+ !a(I) && ((s = a(ne)) == null ? void 0 : s.length) === 0 ? r(o) : r(d, !1);
304
+ },
305
+ !0
306
+ );
307
+ }
308
+ c(e, t);
309
+ };
310
+ M(We, (e) => {
311
+ a(I) ? e(ze) : e(He, !1);
312
+ });
313
+ }
314
+ i(q);
315
+ var de = k(q, 2);
316
+ {
317
+ var Ce = (e) => {
318
+ var t = dt();
319
+ let n;
320
+ var o = l(t);
321
+ o.__click = Se;
322
+ var d = l(o, !0);
323
+ i(o);
324
+ var r = k(o, 2);
325
+ Y(r, 21, () => a(Be), Z, (h, u) => {
326
+ var j = $(), X = ee(j);
327
+ {
328
+ var H = (G) => {
329
+ var S = vt();
330
+ c(G, S);
331
+ }, Q = (G) => {
332
+ var S = ut();
333
+ let V;
334
+ S.__click = () => Ae(a(u));
335
+ var Je = l(S, !0);
336
+ i(S), D(() => {
337
+ V = E(S, 1, "PaginationButton Number svelte-p7mf8l", null, V, { Active: a(u) === a(K) }), P(Je, a(u));
338
+ }), c(G, S);
339
+ };
340
+ M(X, (G) => {
341
+ typeof a(u) != "number" ? G(H) : G(Q, !1);
342
+ });
343
+ }
344
+ c(h, j);
345
+ }), i(r);
346
+ var s = k(r, 2);
347
+ s.__click = Ge;
348
+ var v = l(s, !0);
349
+ i(s), i(t), D(
350
+ (h, u) => {
351
+ n = E(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(N) === "sports" }), o.disabled = a(b) === 0, P(d, h), s.disabled = a(b) >= O() - g(), P(v, u);
352
+ },
353
+ [() => m()("previousButton"), () => m()("nextButton")]
354
+ ), c(e, t);
355
+ };
356
+ M(de, (e) => {
357
+ a(J) && O() > g() && e(Ce);
358
+ });
359
+ }
360
+ var Fe = k(de, 2);
361
+ {
362
+ var Ie = (e) => {
363
+ var t = ft();
364
+ c(e, t);
365
+ };
366
+ M(Fe, (e) => {
367
+ a(J) || e(Ie);
368
+ });
369
+ }
370
+ i(se), D(
371
+ (e, t) => {
372
+ P(Ee, e), P(Le, t), ue = E(q, 1, "TournamentGamesContainer svelte-p7mf8l", null, ue, { Hidden: a(N) === "sports" });
373
+ },
374
+ [
375
+ () => m()("gamesDescriptionTitle"),
376
+ () => m()("gamesDescriptionSubtitle")
377
+ ]
378
+ ), c(A, se);
379
+ var Ue = $e(Me);
380
+ return C(), Ue;
381
+ }
382
+ at(["click"]);
383
+ customElements.define("tournament-games", nt(
384
+ ht,
385
+ {
386
+ initialGames: {},
387
+ endpoint: {},
388
+ language: {},
389
+ session: {},
390
+ tournamentid: {},
391
+ gamesLimit: {},
392
+ totalGames: {},
393
+ platformProp: {},
394
+ tournamentMetadata: {},
395
+ translationurl: {}
396
+ },
397
+ [],
398
+ [],
399
+ !1
400
+ ));
401
+ export {
402
+ ht as default
403
+ };
@@ -0,0 +1,27 @@
1
+ "use strict";var Z=(_,l,i)=>new Promise((W,A)=>{var k=d=>{try{g(i.next(d))}catch(x){A(x)}},S=d=>{try{g(i.throw(d))}catch(x){A(x)}},g=d=>d.done?W(d.value):Promise.resolve(d.value).then(k,S);g((i=i.apply(_,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TournamentDetails-nG7lN2NT.cjs"),Ge=require("./TournamentDetailsPage-CNDHXiDn.cjs");function $(_,l){e.addMessages(_,l)}function ee(_){e.$locale.set(_)}const te={en:{previousButton:"Previous",nextButton:"Next",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Participating games",gamesDescriptionSubtitle:"Discover the games",sportsRulesParseError:"Error parsing tournament rules",noAvailableGames:"No games have been configured yet!"},tr:{previousButton:"Önceki",nextButton:"Sonraki",casinoTab:"Casino",sportsbookTab:"Spor Bahisleri",gamesDescriptionTitle:"Katılımcı oyunlar",gamesDescriptionSubtitle:"Oyunları keşfedin",sportsRulesParseError:"Turnuva kuralları ayrıştırma hatası",noAvailableGames:"Henüz oyun yapılandırılmamış!"}},Ae=()=>typeof window=="undefined";var Be=e.from_html('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'),Ne=e.from_html('<p class="svelte-p7mf8l"> </p>'),De=e.from_html("<div></div>"),je=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'),Me=e.from_html("<p> </p>"),Ee=e.from_html('<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>'),Le=e.from_html('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'),Oe=e.from_html("<button> </button>"),Re=e.from_html('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'),We=e.from_html('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationSkeletonButton svelte-p7mf8l"></div></div>'),ze=e.from_html('<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>');const He={hash:"svelte-p7mf8l",code:`.svelte-p7mf8l,
2
+ .svelte-p7mf8l::before,
3
+ .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;min-height:150px;}.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(
4
+ to top,
5
+ var(--emw-color-primary, #FF1D4E),
6
+ transparent
7
+ );background-size:100% 200%;
8
+ animation: svelte-p7mf8l-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:where(.svelte-p7mf8l) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
9
+ animation: svelte-p7mf8l-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
10
+ animation: svelte-p7mf8l-pulse 1s infinite;}}
11
+
12
+ @keyframes svelte-p7mf8l-pulse {
13
+ 0% {
14
+ opacity: 0;
15
+ }
16
+ 50% {
17
+ opacity: 1;
18
+ }
19
+ 100% {
20
+ opacity: 0;
21
+ }
22
+ }
23
+
24
+
25
+ @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;}}
26
+
27
+ }.Hidden.svelte-p7mf8l {display:none;}`};function ae(_,l){var Y;e.push(l,!0),e.append_styles(_,He);const i=()=>e.store_get(e.$format,"$_",W),[W,A]=e.setup_stores(),k=e.prop(l,"initialGames"),S=e.prop(l,"endpoint"),g=e.prop(l,"language",7,"en"),d=e.prop(l,"session"),x=e.prop(l,"tournamentid"),f=e.prop(l,"gamesLimit",7,6),P=e.prop(l,"totalGames"),z=e.prop(l,"platformProp",7,null),T=e.prop(l,"tournamentMetadata"),B=e.prop(l,"translationurl"),ne=()=>{let t=new URL(B());fetch(t.href).then(a=>a.json()).then(a=>{Object.keys(a).forEach(n=>{$(n,a[n])})}).catch(a=>{console.log(a)})};Object.keys(te).forEach(t=>{$(t,te[t])}),ee(g());const re=()=>{ee(g())};e.user_pre_effect(()=>{B()&&ne()}),e.user_effect(()=>{re()});let H=e.state(e.proxy(k()||[])),N=e.state(!1),u=e.state(0),D=e.state(void 0),j=e.state(!0);const se=Ae()?(Y=z())!=null?Y:"dk":Ge.getDevice(window.navigator.userAgent),C=()=>Z(this,null,function*(){if(I.has(e.get(M)))return;e.set(N,!0);const t=new URL(`${S()}/v1/tournaments/${x()}`),a=new Headers;d()&&a.append("X-SessionId",d());const n={method:"GET",headers:a};t.searchParams.append("filter",`id=${x()}`),t.searchParams.append("language",g()),t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=${f()},offset=${e.get(u)})`),t.searchParams.append("platform",se),fetch(t,n).then(r=>r.json()).then(r=>{var m,s;e.set(H,(s=(m=r==null?void 0:r.item)==null?void 0:m.games)==null?void 0:s.items,!0),I.set(e.get(M),e.get(H)),e.get(j)||e.set(j,!0)}).catch(r=>console.log(r)).finally(()=>e.set(N,!1))}),oe=()=>{const t=Math.ceil(P()/f()),a=Math.floor(e.get(u)/f())+1;if(t<=5)return Array.from({length:t},(r,m)=>m+1);const n=[];return n.push(1),a<=3?(n.push(2,3),n.push("..."),n.push(t)):a>=t-2?(n.push("..."),n.push(t-2,t-1,t)):(n.push("..."),n.push(a-1,a,a+1),n.push("..."),n.push(t)),n},le=()=>{e.get(u)<P()&&(e.set(u,e.get(u)+f()),C())},ie=()=>{e.get(u)!==0&&(e.set(u,e.get(u)-f()),C())},pe=t=>{e.set(u,(t-1)*f()),C()},ce=e.user_derived(oe),M=e.user_derived(()=>Math.floor(e.get(u)/f())+1);let I=new Map([[1,k()]]),me=e.user_derived(()=>{var t;return(t=I.get(e.get(M)))!=null?t:[]}),y=e.state("casino");const de=()=>{var n;if(!T())return;const t=(n=T().sports)==null?void 0:n.rules;let a;if(t)try{a=JSON.parse(t),e.set(D,a[g()]||a["*"],!0)}catch(r){console.log(r),e.set(D,`${i()("sportsRulesParseError")}`)}},fe=t=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:t.launchUrl,id:t.gameId,thumbnail:t.thumbnail,name:t.name},window.location.href)};e.user_effect(()=>{Object.keys(T()).length!==0&&de()});var ue={get initialGames(){return k()},set initialGames(t){k(t),e.flushSync()},get endpoint(){return S()},set endpoint(t){S(t),e.flushSync()},get language(){return g()},set language(t="en"){g(t),e.flushSync()},get session(){return d()},set session(t){d(t),e.flushSync()},get tournamentid(){return x()},set tournamentid(t){x(t),e.flushSync()},get gamesLimit(){return f()},set gamesLimit(t=6){f(t),e.flushSync()},get totalGames(){return P()},set totalGames(t){P(t),e.flushSync()},get platformProp(){return z()},set platformProp(t=null){z(t),e.flushSync()},get tournamentMetadata(){return T()},set tournamentMetadata(t){T(t),e.flushSync()},get translationurl(){return B()},set translationurl(t){B(t),e.flushSync()}},U=ze(),F=e.child(U),q=e.child(F),ve=e.child(q,!0);e.reset(q);var J=e.sibling(q,2),ge=e.child(J,!0);e.reset(J),e.reset(F);var K=e.sibling(F,2);{var he=t=>{var a=Be(),n=e.child(a);let r;n.__click=()=>e.set(y,"casino");var m=e.child(n,!0);e.reset(n);var s=e.sibling(n,2);let o;s.__click=()=>e.set(y,"sports");var p=e.child(s,!0);e.reset(s),e.reset(a),e.template_effect((v,c)=>{r=e.set_class(n,1,"Tab svelte-p7mf8l",null,r,{Active:e.get(y)==="casino"}),e.set_text(m,v),o=e.set_class(s,1,"Tab svelte-p7mf8l",null,o,{Active:e.get(y)==="sports"}),e.set_text(p,c)},[()=>i()("casinoTab"),()=>i()("sportsbookTab")]),e.append(t,a)};e.if_block(K,t=>{Object.keys(T()).length!==0&&t(he)})}var X=e.sibling(K,2);{var be=t=>{var a=De();let n;e.each(a,21,()=>e.get(D),e.index,(r,m)=>{var s=Ne(),o=e.child(s);e.reset(s),e.template_effect(p=>{var v;return e.set_text(o,`${(v=e.get(m).rule)!=null?v:""} ${p!=null?p:""}`)},[()=>i()("contribution")]),e.append(r,s)}),e.reset(a),e.template_effect(()=>n=e.set_class(a,1,"TournamentRulesWrapper svelte-p7mf8l",null,n,{Hidden:e.get(y)==="casino"})),e.append(t,a)};e.if_block(X,t=>{e.get(D)&&t(be)})}var E=e.sibling(X,2);let Q;var _e=e.child(E);{var xe=t=>{var a=e.comment(),n=e.first_child(a);e.each(n,17,()=>Array(f()),e.index,(r,m,s,o)=>{var p=je();e.append(r,p)}),e.append(t,a)},ye=t=>{var a=e.comment(),n=e.first_child(a);{var r=s=>{var o=Me();let p;var v=e.child(o,!0);e.reset(o),e.template_effect(c=>{p=e.set_class(o,1,"NoGamesAvailable svelte-p7mf8l",null,p,{Hidden:e.get(y)==="sports"}),e.set_text(v,c)},[()=>i()("noAvailableGames")]),e.append(s,o)},m=s=>{var o=e.comment(),p=e.first_child(o);e.each(p,17,()=>e.get(me),e.index,(v,c)=>{var w=Ee();w.__click=()=>fe(e.get(c));var L=e.child(w),G=e.child(L),O=e.sibling(G,2),h=e.child(O),b=e.child(h,!0);e.reset(h),e.reset(O),e.reset(L),e.reset(w),e.template_effect(R=>{e.set_attribute(G,"src",`https:${e.get(c).thumbnail}`),e.set_attribute(G,"alt",e.get(c).name),e.set_text(b,R)},[()=>i()("play")]),e.append(v,w)}),e.append(s,o)};e.if_block(n,s=>{var o;!e.get(N)&&((o=e.get(H))==null?void 0:o.length)===0?s(r):s(m,!1)},!0)}e.append(t,a)};e.if_block(_e,t=>{e.get(N)?t(xe):t(ye,!1)})}e.reset(E);var V=e.sibling(E,2);{var we=t=>{var a=Re();let n;var r=e.child(a);r.__click=ie;var m=e.child(r,!0);e.reset(r);var s=e.sibling(r,2);e.each(s,21,()=>e.get(ce),e.index,(v,c)=>{var w=e.comment(),L=e.first_child(w);{var G=h=>{var b=Le();e.append(h,b)},O=h=>{var b=Oe();let R;b.__click=()=>pe(e.get(c));var Se=e.child(b,!0);e.reset(b),e.template_effect(()=>{R=e.set_class(b,1,"PaginationButton Number svelte-p7mf8l",null,R,{Active:e.get(c)===e.get(M)}),e.set_text(Se,e.get(c))}),e.append(h,b)};e.if_block(L,h=>{typeof e.get(c)!="number"?h(G):h(O,!1)})}e.append(v,w)}),e.reset(s);var o=e.sibling(s,2);o.__click=le;var p=e.child(o,!0);e.reset(o),e.reset(a),e.template_effect((v,c)=>{n=e.set_class(a,1,"PaginationWrapper svelte-p7mf8l",null,n,{Hidden:e.get(y)==="sports"}),r.disabled=e.get(u)===0,e.set_text(m,v),o.disabled=e.get(u)>=P()-f(),e.set_text(p,c)},[()=>i()("previousButton"),()=>i()("nextButton")]),e.append(t,a)};e.if_block(V,t=>{e.get(j)&&P()>f()&&t(we)})}var ke=e.sibling(V,2);{var Pe=t=>{var a=We();e.append(t,a)};e.if_block(ke,t=>{e.get(j)||t(Pe)})}e.reset(U),e.template_effect((t,a)=>{e.set_text(ve,t),e.set_text(ge,a),Q=e.set_class(E,1,"TournamentGamesContainer svelte-p7mf8l",null,Q,{Hidden:e.get(y)==="sports"})},[()=>i()("gamesDescriptionTitle"),()=>i()("gamesDescriptionSubtitle")]),e.append(_,U);var Te=e.pop(ue);return A(),Te}e.delegate(["click"]);customElements.define("tournament-games",e.create_custom_element(ae,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],!1));exports.default=ae;
@@ -7,7 +7,7 @@
7
7
  `,k+=Z):Y==="id"?R=Z:Y==="event"?T=Z:Y==="retry"?(l=ye(Z,l),h=l):Y==="heartbeatTimeout"&&(c=ye(Z,c),f!==0&&(te(f),f=G(function(){C()},c)))}if(E===q){if(k!==""){w=R,T===""&&(T="message");var be=new Ae(T,{data:k.slice(1),lastEventId:R});if(t.dispatchEvent(be),T==="open"?se(t,t.onopen,be):T==="message"?se(t,t.onmessage,be):T==="error"&&se(t,t.onerror,be),g===ve)return}k="",T=""}E=U===13?je:q}else E===q&&(S=L,E=ue),E===ue?U===58&&(x=L+1,E=Se):E===Se&&(E=De)}}},X=function(m){if(g===oe||g===z){g=ae,f!==0&&(te(f),f=0),f=G(function(){C()},h),h=pe(Math.min(l*16,h*2)),t.readyState=z;var y=new Le("error",{error:m});t.dispatchEvent(y),se(t,t.onerror,y),m!=null&&console.error(m)}},M=function(){g=ve,v!=null&&(v.abort(),v=void 0),f!==0&&(te(f),f=0),t.readyState=ve},C=function(){if(f=0,g!==ae){if(!u&&v!=null)X(new Error("No activity within "+c+" milliseconds. "+(g===z?"No response received.":r+" chars received.")+" Reconnecting.")),v!=null&&(v.abort(),v=void 0);else{var m=Math.max((u||Date.now())+c-Date.now(),1);u=!1,f=G(function(){C()},m)}return}u=!1,r=0,f=G(function(){C()},c),g=z,k="",T="",R=w,H="",S=0,x=0,E=q;var y=o;if(o.slice(0,5)!=="data:"&&o.slice(0,5)!=="blob:"&&w!==""){var D=o.indexOf("?");y=D===-1?o:o.slice(0,D+1)+o.slice(D+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Z,be){return be===d?"":Z}),y+=(o.indexOf("?")===-1?"?":"&")+d+"="+encodeURIComponent(w)}var U=t.withCredentials,F={};F.Accept="text/event-stream";var L=t.headers;if(L!=null)for(var Y in L)Object.prototype.hasOwnProperty.call(L,Y)&&(F[Y]=L[Y]);try{v=j.open(p,N,Q,X,y,U,F)}catch(Z){throw M(),Z}};t.url=o,t.readyState=z,t.withCredentials=a,t.headers=n,t._close=M,C()}O.prototype=Object.create(fe.prototype),O.prototype.CONNECTING=z,O.prototype.OPEN=oe,O.prototype.CLOSED=ve,O.prototype.close=function(){this._close()},O.CONNECTING=z,O.OPEN=oe,O.CLOSED=ve,O.prototype.withCredentials=void 0;var Pe=K;P!=null&&(K==null||!("withCredentials"in K.prototype))&&(Pe=O),function(t){{var o=t(W);o!==void 0&&(ee.exports=o)}}(function(t){t.EventSourcePolyfill=O,t.NativeEventSource=K,t.EventSource=Pe})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Ie,Ie.exports);var qe=Ie.exports,We=e.from_html('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span>',1),Xe=e.from_html('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh">—</span> <span class="svelte-75jgrh">—</span>',1),Ge=e.from_html('<p class="svelte-75jgrh"> </p>'),Ve=e.from_html('<div class="PlayerRankWrapper svelte-75jgrh"><div class="PlayerRankLabels svelte-75jgrh"><span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span></div> <div class="PlayerRankData svelte-75jgrh"><!></div></div>'),$e=e.from_html('<div class="PlayerRankSkeletonWrapper svelte-75jgrh"><div class="PlayerRankSkeleton svelte-75jgrh"></div> <div class="PlayerRankSkeleton svelte-75jgrh"></div></div>'),Ke=e.from_html('<tr class="SkeletonRow svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"></td></tr>'),Je=e.from_html('<tr><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td></tr>'),Qe=e.from_html('<tr class="svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"><div class="EmptyLeaderboard svelte-75jgrh"><p class="svelte-75jgrh"> </p></div></td></tr>'),Ye=e.from_html('<div class="PaginationSkeleton svelte-75jgrh"><div class="PaginationSkeletonButton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationNumberSkeleton svelte-75jgrh"></div> <div class="PaginationSkeletonButton svelte-75jgrh"></div></div>'),Ze=e.from_html('<span class="PaginationButton Elipsis svelte-75jgrh">...</span>'),et=e.from_html("<button> </button>"),tt=e.from_html('<div class="PaginationWrapper svelte-75jgrh"><button class="PaginationButton svelte-75jgrh"> </button> <div class="PageNumberWrapper svelte-75jgrh"></div> <button class="PaginationButton svelte-75jgrh"> </button></div>'),rt=e.from_html('<div class="LeaderboardWrapper svelte-75jgrh"><div class="RankingWrapper svelte-75jgrh"><!> <table class="LeaderboardTable svelte-75jgrh"><thead class="LeaderboardTableHeader svelte-75jgrh"><tr class="svelte-75jgrh"><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th></tr></thead><tbody class="LeaderboardTableBody svelte-75jgrh"><!></tbody></table></div> <!> <!></div>');const nt={hash:"svelte-75jgrh",code:`.svelte-75jgrh,
8
8
  .svelte-75jgrh::before,
9
9
  .svelte-75jgrh::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-75jgrh {display:flex;flex-direction:column;gap:5px;min-height:60px;.PlayerRankLabels:where(.svelte-75jgrh), .PlayerRankData:where(.svelte-75jgrh) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);opacity:70%;font-size:14px;font-weight:400;& > span:where(.svelte-75jgrh):last-child{justify-self:end;}p:where(.svelte-75jgrh) {width:max-content;}}.PlayerRankData:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-75jgrh {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-75jgrh) {display:flex;gap:6px;}.PaginationButton:where(.svelte-75jgrh) {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;}}}.LeaderboardTable.svelte-75jgrh {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-75jgrh) {color:#F9C408;}thead:where(.svelte-75jgrh) th:where(.svelte-75jgrh) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-75jgrh) tr:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(2) {width:35%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(3) {width:20%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-75jgrh), td:where(.svelte-75jgrh) {text-align:center;vertical-align:middle;}tbody:where(.svelte-75jgrh) tr.Gold:where(.svelte-75jgrh){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Silver:where(.svelte-75jgrh) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Bronze:where(.svelte-75jgrh) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;}.SkeletonRow.svelte-75jgrh {height:41px;overflow:hidden;background-color:var(--emw-color-skeleton, #535353);
10
- animation: svelte-75jgrh-pulse 1s infinite;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
10
+ animation: svelte-75jgrh-pulse 1.5s infinite;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
11
11
  animation: svelte-75jgrh-pulse 1s infinite;}}.PaginationSkeleton.svelte-75jgrh {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
12
12
  animation: svelte-75jgrh-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
13
13
  animation: svelte-75jgrh-pulse 1s infinite;}}
@@ -486,7 +486,7 @@ const Ft = {
486
486
  code: `.svelte-75jgrh,
487
487
  .svelte-75jgrh::before,
488
488
  .svelte-75jgrh::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-75jgrh {display:flex;flex-direction:column;gap:5px;min-height:60px;.PlayerRankLabels:where(.svelte-75jgrh), .PlayerRankData:where(.svelte-75jgrh) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);opacity:70%;font-size:14px;font-weight:400;& > span:where(.svelte-75jgrh):last-child{justify-self:end;}p:where(.svelte-75jgrh) {width:max-content;}}.PlayerRankData:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-75jgrh {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-75jgrh) {display:flex;gap:6px;}.PaginationButton:where(.svelte-75jgrh) {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;}}}.LeaderboardTable.svelte-75jgrh {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-75jgrh) {color:#F9C408;}thead:where(.svelte-75jgrh) th:where(.svelte-75jgrh) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-75jgrh) tr:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(2) {width:35%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(3) {width:20%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-75jgrh), td:where(.svelte-75jgrh) {text-align:center;vertical-align:middle;}tbody:where(.svelte-75jgrh) tr.Gold:where(.svelte-75jgrh){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Silver:where(.svelte-75jgrh) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Bronze:where(.svelte-75jgrh) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;}.SkeletonRow.svelte-75jgrh {height:41px;overflow:hidden;background-color:var(--emw-color-skeleton, #535353);
489
- animation: svelte-75jgrh-pulse 1s infinite;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
489
+ animation: svelte-75jgrh-pulse 1.5s infinite;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
490
490
  animation: svelte-75jgrh-pulse 1s infinite;}}.PaginationSkeleton.svelte-75jgrh {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
491
491
  animation: svelte-75jgrh-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
492
492
  animation: svelte-75jgrh-pulse 1s infinite;}}
@@ -486,7 +486,7 @@ const Ft = {
486
486
  code: `.svelte-75jgrh,
487
487
  .svelte-75jgrh::before,
488
488
  .svelte-75jgrh::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-75jgrh {display:flex;flex-direction:column;gap:5px;min-height:60px;.PlayerRankLabels:where(.svelte-75jgrh), .PlayerRankData:where(.svelte-75jgrh) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);opacity:70%;font-size:14px;font-weight:400;& > span:where(.svelte-75jgrh):last-child{justify-self:end;}p:where(.svelte-75jgrh) {width:max-content;}}.PlayerRankData:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-75jgrh {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-75jgrh) {display:flex;gap:6px;}.PaginationButton:where(.svelte-75jgrh) {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;}}}.LeaderboardTable.svelte-75jgrh {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-75jgrh) {color:#F9C408;}thead:where(.svelte-75jgrh) th:where(.svelte-75jgrh) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-75jgrh) tr:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(2) {width:35%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(3) {width:20%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-75jgrh), td:where(.svelte-75jgrh) {text-align:center;vertical-align:middle;}tbody:where(.svelte-75jgrh) tr.Gold:where(.svelte-75jgrh){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Silver:where(.svelte-75jgrh) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Bronze:where(.svelte-75jgrh) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;}.SkeletonRow.svelte-75jgrh {height:41px;overflow:hidden;background-color:var(--emw-color-skeleton, #535353);
489
- animation: svelte-75jgrh-pulse 1s infinite;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
489
+ animation: svelte-75jgrh-pulse 1.5s infinite;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
490
490
  animation: svelte-75jgrh-pulse 1s infinite;}}.PaginationSkeleton.svelte-75jgrh {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-75jgrh) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
491
491
  animation: svelte-75jgrh-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-75jgrh) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
492
492
  animation: svelte-75jgrh-pulse 1s infinite;}}
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/TournamentDetailsPage-DrDTbkUX.cjs")).then(e=>e.TournamentDetailsPage_ce).then(({default:e})=>{!customElements.get("tournament-details-page")&&customElements.define("tournament-details-page",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/TournamentDetailsPage-CNDHXiDn.cjs")).then(e=>e.TournamentDetailsPage_ce).then(({default:e})=>{!customElements.get("tournament-details-page")&&customElements.define("tournament-details-page",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/TournamentDetailsPage-B5bbvugX.js").then((e) => e.T).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/TournamentDetailsPage-0JKgpPb4.js").then((e) => e.T).then(({ default: e }) => {
14
14
  !customElements.get("tournament-details-page") && customElements.define("tournament-details-page", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { T as s } from "../components/TournamentDetailsPage-CjBmguAV.js";
1
+ import { T as s } from "../components/TournamentDetailsPage-D-pwFR-w.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/tournament-details-page",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "main": "es2015/tournament-details-page.cjs",
6
6
  "module": "esnext/tournament-details-page.js",