@everymatrix/tournament-details-page 0.1.29 → 0.2.0

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.
Files changed (63) hide show
  1. package/components/StatusBadge-BVcNxptf.cjs +8 -0
  2. package/components/StatusBadge-BnPuCJnO.js +7097 -0
  3. package/components/StatusBadge-CV5WC0Fx.cjs +8 -0
  4. package/components/StatusBadge-DKawANSc.js +7010 -0
  5. package/components/TournamentDetailsPage-Cy3rGC6M.cjs +27 -0
  6. package/components/TournamentDetailsPage-D4ZDEGSF.cjs +27 -0
  7. package/components/TournamentDetailsPage-DQ5X0Dqc.js +654 -0
  8. package/components/TournamentDetailsPage-LzqcZox2.js +691 -0
  9. package/components/TournamentDetailsSkeleton-CL0BOfFu.js +77 -0
  10. package/components/TournamentDetailsSkeleton-CpEie2Gb.cjs +15 -0
  11. package/components/TournamentDetailsSkeleton-CqfwFamx.js +77 -0
  12. package/components/TournamentDetailsSkeleton-u1WnYDq6.cjs +15 -0
  13. package/components/TournamentGames-B6UkeuiX.js +821 -0
  14. package/components/TournamentGames-CYxz1Jcl.cjs +34 -0
  15. package/components/TournamentGames-DO01jBJs.js +799 -0
  16. package/components/TournamentGames-Dt7xzVBn.cjs +34 -0
  17. package/components/TournamentImage-BeCXYKda.cjs +5 -0
  18. package/components/TournamentImage-BxaewAcW.js +177 -0
  19. package/components/TournamentImage-Cp5BEQ0s.js +180 -0
  20. package/components/TournamentImage-Dx0Km_cw.cjs +5 -0
  21. package/components/TournamentLeaderboard-BufvnLFX.js +1393 -0
  22. package/components/TournamentLeaderboard-D1mX3sal.cjs +38 -0
  23. package/components/TournamentLeaderboard-D9OPwUvy.cjs +38 -0
  24. package/components/TournamentLeaderboard-Dqbb_r0i.js +1451 -0
  25. package/components/TournamentRules-BbxvSZdU.cjs +6 -0
  26. package/components/TournamentRules-Bsxb9Asj.js +144 -0
  27. package/components/TournamentRules-DX1CVsV7.cjs +6 -0
  28. package/components/TournamentRules-SECANCVS.js +149 -0
  29. package/components/TournamentSummary-Ardxi8yJ.js +159 -0
  30. package/components/TournamentSummary-BGk055-K.cjs +3 -0
  31. package/components/TournamentSummary-CizBbtzd.cjs +3 -0
  32. package/components/TournamentSummary-Dnj0Cnzu.js +154 -0
  33. package/components/TournamentTabs-DEQtwaH4.cjs +4 -0
  34. package/components/TournamentTabs-DpLpOYtB.js +57 -0
  35. package/components/TournamentTabs-EGrABVKQ.cjs +4 -0
  36. package/components/TournamentTabs-FzkOjNA3.js +72 -0
  37. package/components/{translations-C9SzZ-OE.js → translations-BQS5XycD.js} +67 -8
  38. package/components/translations-BSe2qToO.cjs +1 -0
  39. package/components/{translations-c-3wA1ZU.js → translations-DPzojb4V.js} +67 -8
  40. package/components/translations-FufS-X5l.cjs +1 -0
  41. package/es2015/tournament-details-page.cjs +1 -1
  42. package/es2015/tournament-details-page.js +2 -2
  43. package/esnext/tournament-details-page.cjs +1 -1
  44. package/esnext/tournament-details-page.js +2 -2
  45. package/package.json +1 -1
  46. package/components/TournamentDetails-Bdjkchis.js +0 -435
  47. package/components/TournamentDetails-CwSpU7kq.cjs +0 -3
  48. package/components/TournamentDetails-D6tJxzxu.cjs +0 -3
  49. package/components/TournamentDetails-lOcRC5BE.js +0 -436
  50. package/components/TournamentDetailsPage-BxjcEVtD.cjs +0 -36
  51. package/components/TournamentDetailsPage-CUrqFYHv.cjs +0 -36
  52. package/components/TournamentDetailsPage-Cq82Ib7k.js +0 -688
  53. package/components/TournamentDetailsPage-iCJFDnnz.js +0 -667
  54. package/components/TournamentGames-BEqAeC0t.js +0 -875
  55. package/components/TournamentGames-BHh4emja.cjs +0 -51
  56. package/components/TournamentGames-BfhpQFgs.cjs +0 -51
  57. package/components/TournamentGames-C-4Yfrqb.js +0 -849
  58. package/components/TournamentLeaderboard-B4cR1pv1.cjs +0 -46
  59. package/components/TournamentLeaderboard-Bn1ci40R.cjs +0 -46
  60. package/components/TournamentLeaderboard-JkZHz84d.js +0 -8028
  61. package/components/TournamentLeaderboard-ZeddBG1C.js +0 -7919
  62. package/components/translations-35-BlfqE.cjs +0 -1
  63. package/components/translations-CQFwGvLj.cjs +0 -1
@@ -0,0 +1,799 @@
1
+ import { B as le, c as ce, g as pe, a as fe, p as g, C as he, D as Tt, E as de, K as ve, F as me, q as Y, G as ut, i as J, R as be, b as v, d as ge, f as S, v as _, J as _e, h as N, j as l, s as W, r as F, o as q, N as R, t as D, k as Ot, l as K, O as L, T as lt, V as Pt, P as ct, L as pt, M as ft, m as H, U as ye, $ as xe, H as we, W as Se, Q as Ee } from "./StatusBadge-DKawANSc.js";
2
+ import { i as Te, s as Oe, G as At, f as Pe, a as Ae } from "./TournamentLeaderboard-BufvnLFX.js";
3
+ import { a as Me } from "./translations-BQS5XycD.js";
4
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
5
+ }, globalThis.customElements = { define() {
6
+ }, get() {
7
+ }, whenDefined() {
8
+ } });
9
+ const ke = (r, e = !1) => {
10
+ if (!r)
11
+ return;
12
+ const t = parseFloat(getComputedStyle(r).scrollMarginTop) || 0;
13
+ if (e && r.getBoundingClientRect().top >= t)
14
+ return;
15
+ const n = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
16
+ r.scrollIntoView({ behavior: n ? "auto" : "smooth", block: "start" });
17
+ };
18
+ /*! *****************************************************************************
19
+ Copyright (c) Microsoft Corporation.
20
+
21
+ Permission to use, copy, modify, and/or distribute this software for any
22
+ purpose with or without fee is hereby granted.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
25
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
26
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
27
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
28
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
29
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
30
+ PERFORMANCE OF THIS SOFTWARE.
31
+ ***************************************************************************** */
32
+ var dt = function(r, e) {
33
+ return dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
34
+ t.__proto__ = n;
35
+ } || function(t, n) {
36
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
37
+ }, dt(r, e);
38
+ };
39
+ function Q(r, e) {
40
+ if (typeof e != "function" && e !== null)
41
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
42
+ dt(r, e);
43
+ function t() {
44
+ this.constructor = r;
45
+ }
46
+ r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
47
+ }
48
+ function vt(r) {
49
+ var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
50
+ if (t) return t.call(r);
51
+ if (r && typeof r.length == "number") return {
52
+ next: function() {
53
+ return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
54
+ }
55
+ };
56
+ throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
57
+ }
58
+ function mt(r, e) {
59
+ var t = typeof Symbol == "function" && r[Symbol.iterator];
60
+ if (!t) return r;
61
+ var n = t.call(r), o, a = [], s;
62
+ try {
63
+ for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) a.push(o.value);
64
+ } catch (u) {
65
+ s = { error: u };
66
+ } finally {
67
+ try {
68
+ o && !o.done && (t = n.return) && t.call(n);
69
+ } finally {
70
+ if (s) throw s.error;
71
+ }
72
+ }
73
+ return a;
74
+ }
75
+ function bt(r, e, t) {
76
+ if (arguments.length === 2) for (var n = 0, o = e.length, a; n < o; n++)
77
+ (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
78
+ return r.concat(a || e);
79
+ }
80
+ function T(r) {
81
+ return typeof r == "function";
82
+ }
83
+ function zt(r) {
84
+ var e = function(n) {
85
+ Error.call(n), n.stack = new Error().stack;
86
+ }, t = r(e);
87
+ return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
88
+ }
89
+ var ht = zt(function(r) {
90
+ return function(t) {
91
+ r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
92
+ ` + t.map(function(n, o) {
93
+ return o + 1 + ") " + n.toString();
94
+ }).join(`
95
+ `) : "", this.name = "UnsubscriptionError", this.errors = t;
96
+ };
97
+ });
98
+ function gt(r, e) {
99
+ if (r) {
100
+ var t = r.indexOf(e);
101
+ 0 <= t && r.splice(t, 1);
102
+ }
103
+ }
104
+ var et = function() {
105
+ function r(e) {
106
+ this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
107
+ }
108
+ return r.prototype.unsubscribe = function() {
109
+ var e, t, n, o, a;
110
+ if (!this.closed) {
111
+ this.closed = !0;
112
+ var s = this._parentage;
113
+ if (s)
114
+ if (this._parentage = null, Array.isArray(s))
115
+ try {
116
+ for (var u = vt(s), c = u.next(); !c.done; c = u.next()) {
117
+ var m = c.value;
118
+ m.remove(this);
119
+ }
120
+ } catch (f) {
121
+ e = { error: f };
122
+ } finally {
123
+ try {
124
+ c && !c.done && (t = u.return) && t.call(u);
125
+ } finally {
126
+ if (e) throw e.error;
127
+ }
128
+ }
129
+ else
130
+ s.remove(this);
131
+ var b = this.initialTeardown;
132
+ if (T(b))
133
+ try {
134
+ b();
135
+ } catch (f) {
136
+ a = f instanceof ht ? f.errors : [f];
137
+ }
138
+ var z = this._finalizers;
139
+ if (z) {
140
+ this._finalizers = null;
141
+ try {
142
+ for (var O = vt(z), y = O.next(); !y.done; y = O.next()) {
143
+ var j = y.value;
144
+ try {
145
+ Mt(j);
146
+ } catch (f) {
147
+ a = a ?? [], f instanceof ht ? a = bt(bt([], mt(a)), mt(f.errors)) : a.push(f);
148
+ }
149
+ }
150
+ } catch (f) {
151
+ n = { error: f };
152
+ } finally {
153
+ try {
154
+ y && !y.done && (o = O.return) && o.call(O);
155
+ } finally {
156
+ if (n) throw n.error;
157
+ }
158
+ }
159
+ }
160
+ if (a)
161
+ throw new ht(a);
162
+ }
163
+ }, r.prototype.add = function(e) {
164
+ var t;
165
+ if (e && e !== this)
166
+ if (this.closed)
167
+ Mt(e);
168
+ else {
169
+ if (e instanceof r) {
170
+ if (e.closed || e._hasParent(this))
171
+ return;
172
+ e._addParent(this);
173
+ }
174
+ (this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(e);
175
+ }
176
+ }, r.prototype._hasParent = function(e) {
177
+ var t = this._parentage;
178
+ return t === e || Array.isArray(t) && t.includes(e);
179
+ }, r.prototype._addParent = function(e) {
180
+ var t = this._parentage;
181
+ this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
182
+ }, r.prototype._removeParent = function(e) {
183
+ var t = this._parentage;
184
+ t === e ? this._parentage = null : Array.isArray(t) && gt(t, e);
185
+ }, r.prototype.remove = function(e) {
186
+ var t = this._finalizers;
187
+ t && gt(t, e), e instanceof r && e._removeParent(this);
188
+ }, r.EMPTY = function() {
189
+ var e = new r();
190
+ return e.closed = !0, e;
191
+ }(), r;
192
+ }(), Bt = et.EMPTY;
193
+ function Ut(r) {
194
+ return r instanceof et || r && "closed" in r && T(r.remove) && T(r.add) && T(r.unsubscribe);
195
+ }
196
+ function Mt(r) {
197
+ T(r) ? r() : r.unsubscribe();
198
+ }
199
+ var je = {
200
+ Promise: void 0
201
+ }, Ie = {
202
+ setTimeout: function(r, e) {
203
+ for (var t = [], n = 2; n < arguments.length; n++)
204
+ t[n - 2] = arguments[n];
205
+ return setTimeout.apply(void 0, bt([r, e], mt(t)));
206
+ },
207
+ clearTimeout: function(r) {
208
+ return clearTimeout(r);
209
+ },
210
+ delegate: void 0
211
+ };
212
+ function Ge(r) {
213
+ Ie.setTimeout(function() {
214
+ throw r;
215
+ });
216
+ }
217
+ function kt() {
218
+ }
219
+ function tt(r) {
220
+ r();
221
+ }
222
+ var Wt = function(r) {
223
+ Q(e, r);
224
+ function e(t) {
225
+ var n = r.call(this) || this;
226
+ return n.isStopped = !1, t ? (n.destination = t, Ut(t) && t.add(n)) : n.destination = Le, n;
227
+ }
228
+ return e.create = function(t, n, o) {
229
+ return new _t(t, n, o);
230
+ }, e.prototype.next = function(t) {
231
+ this.isStopped || this._next(t);
232
+ }, e.prototype.error = function(t) {
233
+ this.isStopped || (this.isStopped = !0, this._error(t));
234
+ }, e.prototype.complete = function() {
235
+ this.isStopped || (this.isStopped = !0, this._complete());
236
+ }, e.prototype.unsubscribe = function() {
237
+ this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
238
+ }, e.prototype._next = function(t) {
239
+ this.destination.next(t);
240
+ }, e.prototype._error = function(t) {
241
+ try {
242
+ this.destination.error(t);
243
+ } finally {
244
+ this.unsubscribe();
245
+ }
246
+ }, e.prototype._complete = function() {
247
+ try {
248
+ this.destination.complete();
249
+ } finally {
250
+ this.unsubscribe();
251
+ }
252
+ }, e;
253
+ }(et), Ce = function() {
254
+ function r(e) {
255
+ this.partialObserver = e;
256
+ }
257
+ return r.prototype.next = function(e) {
258
+ var t = this.partialObserver;
259
+ if (t.next)
260
+ try {
261
+ t.next(e);
262
+ } catch (n) {
263
+ $(n);
264
+ }
265
+ }, r.prototype.error = function(e) {
266
+ var t = this.partialObserver;
267
+ if (t.error)
268
+ try {
269
+ t.error(e);
270
+ } catch (n) {
271
+ $(n);
272
+ }
273
+ else
274
+ $(e);
275
+ }, r.prototype.complete = function() {
276
+ var e = this.partialObserver;
277
+ if (e.complete)
278
+ try {
279
+ e.complete();
280
+ } catch (t) {
281
+ $(t);
282
+ }
283
+ }, r;
284
+ }(), _t = function(r) {
285
+ Q(e, r);
286
+ function e(t, n, o) {
287
+ var a = r.call(this) || this, s;
288
+ return T(t) || !t ? s = {
289
+ next: t ?? void 0,
290
+ error: n ?? void 0,
291
+ complete: o ?? void 0
292
+ } : s = t, a.destination = new Ce(s), a;
293
+ }
294
+ return e;
295
+ }(Wt);
296
+ function $(r) {
297
+ Ge(r);
298
+ }
299
+ function Re(r) {
300
+ throw r;
301
+ }
302
+ var Le = {
303
+ closed: !0,
304
+ next: kt,
305
+ error: Re,
306
+ complete: kt
307
+ }, ze = function() {
308
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
309
+ }();
310
+ function Be(r) {
311
+ return r;
312
+ }
313
+ function Ue(r) {
314
+ return r.length === 0 ? Be : r.length === 1 ? r[0] : function(t) {
315
+ return r.reduce(function(n, o) {
316
+ return o(n);
317
+ }, t);
318
+ };
319
+ }
320
+ var jt = function() {
321
+ function r(e) {
322
+ e && (this._subscribe = e);
323
+ }
324
+ return r.prototype.lift = function(e) {
325
+ var t = new r();
326
+ return t.source = this, t.operator = e, t;
327
+ }, r.prototype.subscribe = function(e, t, n) {
328
+ var o = this, a = Fe(e) ? e : new _t(e, t, n);
329
+ return tt(function() {
330
+ var s = o, u = s.operator, c = s.source;
331
+ a.add(u ? u.call(a, c) : c ? o._subscribe(a) : o._trySubscribe(a));
332
+ }), a;
333
+ }, r.prototype._trySubscribe = function(e) {
334
+ try {
335
+ return this._subscribe(e);
336
+ } catch (t) {
337
+ e.error(t);
338
+ }
339
+ }, r.prototype.forEach = function(e, t) {
340
+ var n = this;
341
+ return t = It(t), new t(function(o, a) {
342
+ var s = new _t({
343
+ next: function(u) {
344
+ try {
345
+ e(u);
346
+ } catch (c) {
347
+ a(c), s.unsubscribe();
348
+ }
349
+ },
350
+ error: a,
351
+ complete: o
352
+ });
353
+ n.subscribe(s);
354
+ });
355
+ }, r.prototype._subscribe = function(e) {
356
+ var t;
357
+ return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
358
+ }, r.prototype[ze] = function() {
359
+ return this;
360
+ }, r.prototype.pipe = function() {
361
+ for (var e = [], t = 0; t < arguments.length; t++)
362
+ e[t] = arguments[t];
363
+ return Ue(e)(this);
364
+ }, r.prototype.toPromise = function(e) {
365
+ var t = this;
366
+ return e = It(e), new e(function(n, o) {
367
+ var a;
368
+ t.subscribe(function(s) {
369
+ return a = s;
370
+ }, function(s) {
371
+ return o(s);
372
+ }, function() {
373
+ return n(a);
374
+ });
375
+ });
376
+ }, r.create = function(e) {
377
+ return new r(e);
378
+ }, r;
379
+ }();
380
+ function It(r) {
381
+ var e;
382
+ return (e = r ?? je.Promise) !== null && e !== void 0 ? e : Promise;
383
+ }
384
+ function We(r) {
385
+ return r && T(r.next) && T(r.error) && T(r.complete);
386
+ }
387
+ function Fe(r) {
388
+ return r && r instanceof Wt || We(r) && Ut(r);
389
+ }
390
+ var De = zt(function(r) {
391
+ return function() {
392
+ r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
+ };
394
+ }), Ft = function(r) {
395
+ Q(e, r);
396
+ function e() {
397
+ var t = r.call(this) || this;
398
+ return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
399
+ }
400
+ return e.prototype.lift = function(t) {
401
+ var n = new Gt(this, this);
402
+ return n.operator = t, n;
403
+ }, e.prototype._throwIfClosed = function() {
404
+ if (this.closed)
405
+ throw new De();
406
+ }, e.prototype.next = function(t) {
407
+ var n = this;
408
+ tt(function() {
409
+ var o, a;
410
+ if (n._throwIfClosed(), !n.isStopped) {
411
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
412
+ try {
413
+ for (var s = vt(n.currentObservers), u = s.next(); !u.done; u = s.next()) {
414
+ var c = u.value;
415
+ c.next(t);
416
+ }
417
+ } catch (m) {
418
+ o = { error: m };
419
+ } finally {
420
+ try {
421
+ u && !u.done && (a = s.return) && a.call(s);
422
+ } finally {
423
+ if (o) throw o.error;
424
+ }
425
+ }
426
+ }
427
+ });
428
+ }, e.prototype.error = function(t) {
429
+ var n = this;
430
+ tt(function() {
431
+ if (n._throwIfClosed(), !n.isStopped) {
432
+ n.hasError = n.isStopped = !0, n.thrownError = t;
433
+ for (var o = n.observers; o.length; )
434
+ o.shift().error(t);
435
+ }
436
+ });
437
+ }, e.prototype.complete = function() {
438
+ var t = this;
439
+ tt(function() {
440
+ if (t._throwIfClosed(), !t.isStopped) {
441
+ t.isStopped = !0;
442
+ for (var n = t.observers; n.length; )
443
+ n.shift().complete();
444
+ }
445
+ });
446
+ }, e.prototype.unsubscribe = function() {
447
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
448
+ }, Object.defineProperty(e.prototype, "observed", {
449
+ get: function() {
450
+ var t;
451
+ return ((t = this.observers) === null || t === void 0 ? void 0 : t.length) > 0;
452
+ },
453
+ enumerable: !1,
454
+ configurable: !0
455
+ }), e.prototype._trySubscribe = function(t) {
456
+ return this._throwIfClosed(), r.prototype._trySubscribe.call(this, t);
457
+ }, e.prototype._subscribe = function(t) {
458
+ return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
459
+ }, e.prototype._innerSubscribe = function(t) {
460
+ var n = this, o = this, a = o.hasError, s = o.isStopped, u = o.observers;
461
+ return a || s ? Bt : (this.currentObservers = null, u.push(t), new et(function() {
462
+ n.currentObservers = null, gt(u, t);
463
+ }));
464
+ }, e.prototype._checkFinalizedStatuses = function(t) {
465
+ var n = this, o = n.hasError, a = n.thrownError, s = n.isStopped;
466
+ o ? t.error(a) : s && t.complete();
467
+ }, e.prototype.asObservable = function() {
468
+ var t = new jt();
469
+ return t.source = this, t;
470
+ }, e.create = function(t, n) {
471
+ return new Gt(t, n);
472
+ }, e;
473
+ }(jt), Gt = function(r) {
474
+ Q(e, r);
475
+ function e(t, n) {
476
+ var o = r.call(this) || this;
477
+ return o.destination = t, o.source = n, o;
478
+ }
479
+ return e.prototype.next = function(t) {
480
+ var n, o;
481
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, t);
482
+ }, e.prototype.error = function(t) {
483
+ var n, o;
484
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, t);
485
+ }, e.prototype.complete = function() {
486
+ var t, n;
487
+ (n = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || n === void 0 || n.call(t);
488
+ }, e.prototype._subscribe = function(t) {
489
+ var n, o;
490
+ return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && o !== void 0 ? o : Bt;
491
+ }, e;
492
+ }(Ft), Dt = {
493
+ now: function() {
494
+ return (Dt.delegate || Date).now();
495
+ },
496
+ delegate: void 0
497
+ }, He = function(r) {
498
+ Q(e, r);
499
+ function e(t, n, o) {
500
+ t === void 0 && (t = 1 / 0), n === void 0 && (n = 1 / 0), o === void 0 && (o = Dt);
501
+ var a = r.call(this) || this;
502
+ return a._bufferSize = t, a._windowTime = n, a._timestampProvider = o, a._buffer = [], a._infiniteTimeWindow = !0, a._infiniteTimeWindow = n === 1 / 0, a._bufferSize = Math.max(1, t), a._windowTime = Math.max(1, n), a;
503
+ }
504
+ return e.prototype.next = function(t) {
505
+ var n = this, o = n.isStopped, a = n._buffer, s = n._infiniteTimeWindow, u = n._timestampProvider, c = n._windowTime;
506
+ o || (a.push(t), !s && a.push(u.now() + c)), this._trimBuffer(), r.prototype.next.call(this, t);
507
+ }, e.prototype._subscribe = function(t) {
508
+ this._throwIfClosed(), this._trimBuffer();
509
+ for (var n = this._innerSubscribe(t), o = this, a = o._infiniteTimeWindow, s = o._buffer, u = s.slice(), c = 0; c < u.length && !t.closed; c += a ? 1 : 2)
510
+ t.next(u[c]);
511
+ return this._checkFinalizedStatuses(t), n;
512
+ }, e.prototype._trimBuffer = function() {
513
+ var t = this, n = t._bufferSize, o = t._timestampProvider, a = t._buffer, s = t._infiniteTimeWindow, u = (s ? 1 : 2) * n;
514
+ if (n < 1 / 0 && u < a.length && a.splice(0, a.length - u), !s) {
515
+ for (var c = o.now(), m = 0, b = 1; b < a.length && a[b] <= c; b += 2)
516
+ m = b;
517
+ m && a.splice(0, m + 1);
518
+ }
519
+ }, e;
520
+ }(Ft);
521
+ const Ct = [], Rt = {}, Ve = (r, e = 0) => {
522
+ if (Ct.indexOf(r) == -1) {
523
+ const t = new He(e);
524
+ Rt[r] = t, Ct.push(r);
525
+ }
526
+ return Rt[r];
527
+ };
528
+ typeof window < "u" && (window.emWidgets = { topic: Ve });
529
+ const Ye = (r) => r.toLowerCase().match(/android/i) ? "Android" : r.toLowerCase().match(/iphone/i) ? "iPhone" : r.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
530
+ String(Number.MAX_SAFE_INTEGER).length;
531
+ var Je = S('<div class="tournament-games__tabs svelte-49hxa3" role="tablist"><button type="button" role="tab"> </button> <button type="button" role="tab"> </button></div>'), Lt = S('<p class="tournament-games__empty svelte-49hxa3"> </p>'), Ne = S('<span class="tournament-games__badge svelte-49hxa3"> </span>'), qe = S('<button type="button" class="tournament-games__game svelte-49hxa3"><img class="tournament-games__image svelte-49hxa3" loading="lazy"/> <span class="tournament-games__play svelte-49hxa3" aria-hidden="true"><span class="tournament-games__play-button svelte-49hxa3"> </span></span> <!></button>'), Ke = S('<span class="tournament-games__game tournament-games__game--placeholder svelte-49hxa3" aria-hidden="true"></span>'), Qe = S('<div class="tournament-games__sentinel svelte-49hxa3"></div>'), Xe = S('<div class="tournament-games__grid svelte-49hxa3"><!> <!></div> <!>', 1), Ze = S('<li class="svelte-49hxa3"> </li>'), $e = S('<ul class="tournament-games__events svelte-49hxa3"></ul>'), tr = S('<div class="tournament-games svelte-49hxa3"><!> <!></div>');
532
+ const er = {
533
+ hash: "svelte-49hxa3",
534
+ code: `.tournament-games.svelte-49hxa3 {scroll-margin-top:80px;display:flex;flex-direction:column;gap:20px;color:var(--text-subtle, rgba(223, 227, 232, 1));.tournament-games__tabs:where(.svelte-49hxa3) {display:flex;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));width:max-content;max-width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {position:relative;flex:0 0 auto;height:31px;padding:0 10px;border:0;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:145%;min-width:206px;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:700;&::after {content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}.tournament-games__grid:where(.svelte-49hxa3) {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-games__game:where(.svelte-49hxa3) {position:relative;display:block;width:100%;align-self:start;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;line-height:0;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}&:focus-visible .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
535
+
536
+ @media (hover: hover) {&:hover .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
537
+ }}.tournament-games__play:where(.svelte-49hxa3) {position:absolute;inset:0;z-index:2;display:flex;justify-content:center;align-items:center;border-radius:6px;background:rgba(0, 0, 0, 0.6);line-height:1;opacity:0;transition:opacity 0.2s ease;}.tournament-games__play-button:where(.svelte-49hxa3) {display:flex;justify-content:center;align-items:center;min-width:50%;padding:8px 16px;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, rgba(38, 29, 0, 1));font-size:13px;font-weight:600;}.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:120px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));cursor:default;
538
+ animation: svelte-49hxa3-tournament-games-pulse 1.2s ease-in-out infinite;}.tournament-games__image:where(.svelte-49hxa3) {display:block;width:100%;height:120px;object-fit:cover;border-radius:6px;}.tournament-games__badge:where(.svelte-49hxa3) {position:absolute;top:10px;left:9.6px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--primary-400, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}.tournament-games__sentinel:where(.svelte-49hxa3) {height:1px;margin-top:-16px;}.tournament-games__events:where(.svelte-49hxa3) {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;font-size:12px;line-height:1.4;list-style:none;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.tournament-games__empty:where(.svelte-49hxa3) {margin:0;padding:32px 0;text-align:center;}}
539
+
540
+ @keyframes svelte-49hxa3-tournament-games-pulse {
541
+ 50% {
542
+ opacity: 0.5;
543
+ }
544
+ }
545
+
546
+ @media (max-width: 767px) {.tournament-games.svelte-49hxa3 {.tournament-games__tabs:where(.svelte-49hxa3) {width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {flex:1;min-width:0;font-size:12px;font-weight:400;}.tournament-games__grid:where(.svelte-49hxa3) {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-games__image:where(.svelte-49hxa3),
547
+ .tournament-games__game--placeholder:where(.svelte-49hxa3) {height:75px;}.tournament-games__badge:where(.svelte-49hxa3) {top:5px;left:4.67px;}}
548
+ }
549
+
550
+ @media (prefers-reduced-motion: reduce) {.tournament-games.svelte-49hxa3 .tournament-games__game--placeholder:where(.svelte-49hxa3) {
551
+ animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
552
+ }`
553
+ };
554
+ function rr(r, e) {
555
+ pe(e, !0), fe(r, er);
556
+ const t = () => ye(xe, "$_", n), [n, o] = _e(), a = g(e, "initialGames", 7), s = g(e, "endpoint", 7), u = g(e, "language", 7, "en"), c = g(e, "session", 7), m = g(e, "tournamentid", 7), b = g(e, "totalGames", 7), z = g(e, "platformProp", 7, null), O = g(e, "tournamentMetadata", 7), y = g(e, "translationurl", 7), j = g(e, "hasCasino", 7, !0), f = g(e, "hasSports", 7, !1);
557
+ he(Me), Tt(u());
558
+ const Ht = () => {
559
+ Tt(u());
560
+ };
561
+ de(() => {
562
+ y() && ve(y());
563
+ }), me(() => {
564
+ Ht();
565
+ });
566
+ const Vt = Te() ? z() ?? "dk" : Ye(window.navigator.userAgent);
567
+ let P = Y(ut(a() || [])), X = Y(ut(b() ?? (a()?.length || 0))), rt = Y(!1), I = Y(ut(j() || !f() ? "casino" : "sports")), nt = Y(null);
568
+ const yt = (i) => {
569
+ i !== l(I) && (H(I, i, !0), we().then(() => ke(l(nt), !0)));
570
+ }, xt = q(() => j() && f()), Yt = q(() => l(xt) ? l(I) === "casino" : !f() || j()), ot = q(() => l(P).length < l(X)), Jt = q(() => Math.min(Math.max(l(X) - l(P).length, 0), At)), wt = q(() => {
571
+ const i = O()?.sports?.rules;
572
+ if (!i)
573
+ return [];
574
+ try {
575
+ const p = JSON.parse(i);
576
+ return p[u()] || p["*"] || [];
577
+ } catch (p) {
578
+ return console.log(p), [];
579
+ }
580
+ }), Nt = async () => {
581
+ if (!(!l(ot) || l(rt))) {
582
+ H(rt, !0);
583
+ try {
584
+ const i = await Pe({
585
+ endpoint: s(),
586
+ language: u(),
587
+ platform: Vt,
588
+ session: c(),
589
+ tournamentid: m(),
590
+ filterById: !0,
591
+ gamesLimit: At,
592
+ gamesOffset: l(P).length
593
+ });
594
+ H(P, [...l(P), ...i?.games?.items ?? []], !0), H(X, i?.games?.total ?? l(X), !0);
595
+ } catch (i) {
596
+ console.log(i);
597
+ } finally {
598
+ H(rt, !1);
599
+ }
600
+ }
601
+ }, qt = (i, p) => {
602
+ const h = new IntersectionObserver(
603
+ (x) => {
604
+ x.some((A) => A.isIntersecting) && p();
605
+ },
606
+ { rootMargin: Ae }
607
+ );
608
+ return h.observe(i), {
609
+ destroy() {
610
+ h.disconnect();
611
+ }
612
+ };
613
+ }, Kt = (i) => {
614
+ Oe(i, m());
615
+ };
616
+ var Qt = {
617
+ get initialGames() {
618
+ return a();
619
+ },
620
+ set initialGames(i) {
621
+ a(i), _();
622
+ },
623
+ get endpoint() {
624
+ return s();
625
+ },
626
+ set endpoint(i) {
627
+ s(i), _();
628
+ },
629
+ get language() {
630
+ return u();
631
+ },
632
+ set language(i = "en") {
633
+ u(i), _();
634
+ },
635
+ get session() {
636
+ return c();
637
+ },
638
+ set session(i) {
639
+ c(i), _();
640
+ },
641
+ get tournamentid() {
642
+ return m();
643
+ },
644
+ set tournamentid(i) {
645
+ m(i), _();
646
+ },
647
+ get totalGames() {
648
+ return b();
649
+ },
650
+ set totalGames(i) {
651
+ b(i), _();
652
+ },
653
+ get platformProp() {
654
+ return z();
655
+ },
656
+ set platformProp(i = null) {
657
+ z(i), _();
658
+ },
659
+ get tournamentMetadata() {
660
+ return O();
661
+ },
662
+ set tournamentMetadata(i) {
663
+ O(i), _();
664
+ },
665
+ get translationurl() {
666
+ return y();
667
+ },
668
+ set translationurl(i) {
669
+ y(i), _();
670
+ },
671
+ get hasCasino() {
672
+ return j();
673
+ },
674
+ set hasCasino(i = !0) {
675
+ j(i), _();
676
+ },
677
+ get hasSports() {
678
+ return f();
679
+ },
680
+ set hasSports(i = !1) {
681
+ f(i), _();
682
+ }
683
+ }, Z = tr(), St = N(Z);
684
+ {
685
+ var Xt = (i) => {
686
+ var p = Je(), h = N(p);
687
+ let x;
688
+ var A = R(h, !0), d = W(h, 2);
689
+ let w;
690
+ var G = R(d, !0);
691
+ F(p), D(
692
+ (B, at) => {
693
+ x = Ot(h, 1, "tournament-games__tab svelte-49hxa3", null, x, { active: l(I) === "casino" }), K(h, "aria-selected", l(I) === "casino"), L(A, B), w = Ot(d, 1, "tournament-games__tab svelte-49hxa3", null, w, { active: l(I) === "sports" }), K(d, "aria-selected", l(I) === "sports"), L(G, at);
694
+ },
695
+ [() => t()("casinoTab"), () => t()("sportsTab")]
696
+ ), lt("click", h, () => yt("casino")), lt("click", d, () => yt("sports")), v(i, p);
697
+ };
698
+ J(St, (i) => {
699
+ l(xt) && i(Xt);
700
+ });
701
+ }
702
+ var Zt = W(St, 2);
703
+ {
704
+ var $t = (i) => {
705
+ var p = Pt(), h = ct(p);
706
+ {
707
+ var x = (d) => {
708
+ var w = Lt(), G = R(w, !0);
709
+ D((B) => L(G, B), [() => t()("noAvailableGames")]), v(d, w);
710
+ }, A = (d) => {
711
+ var w = Xe(), G = ct(w), B = N(G);
712
+ pt(B, 17, () => l(P), ft, (C, E) => {
713
+ var M = qe(), U = N(M), k = W(U, 2), it = N(k), st = R(it, !0);
714
+ F(k);
715
+ var ae = W(k, 2);
716
+ {
717
+ var ie = (V) => {
718
+ var Et = Ne(), se = R(Et, !0);
719
+ D((ue) => L(se, ue), [() => t()("newBadge")]), v(V, Et);
720
+ };
721
+ J(ae, (V) => {
722
+ l(E).isNew && V(ie);
723
+ });
724
+ }
725
+ F(M), D(
726
+ (V) => {
727
+ K(M, "title", l(E).name), K(U, "src", `https:${l(E).thumbnail}`), K(U, "alt", l(E).name), L(st, V);
728
+ },
729
+ [() => t()("play")]
730
+ ), lt("click", M, () => Kt(l(E))), v(C, M);
731
+ });
732
+ var at = W(B, 2);
733
+ pt(at, 17, () => Array(l(Jt)), ft, (C, E, M, U) => {
734
+ var k = Ke();
735
+ v(C, k);
736
+ }), F(G);
737
+ var ne = W(G, 2);
738
+ {
739
+ var oe = (C) => {
740
+ var E = Pt(), M = ct(E);
741
+ Se(M, () => l(P).length, (U) => {
742
+ var k = Qe();
743
+ Ee(k, (it, st) => qt?.(it, st), () => Nt), v(U, k);
744
+ }), v(C, E);
745
+ };
746
+ J(ne, (C) => {
747
+ l(ot) && C(oe);
748
+ });
749
+ }
750
+ v(d, w);
751
+ };
752
+ J(h, (d) => {
753
+ l(P).length === 0 && !l(ot) ? d(x) : d(A, -1);
754
+ });
755
+ }
756
+ v(i, p);
757
+ }, te = (i) => {
758
+ var p = Lt(), h = R(p, !0);
759
+ D((x) => L(h, x), [() => t()("noAvailableEvents")]), v(i, p);
760
+ }, ee = (i) => {
761
+ var p = $e();
762
+ pt(p, 21, () => l(wt), ft, (h, x) => {
763
+ var A = Ze(), d = R(A);
764
+ D((w) => L(d, `${l(x).rule ?? ""} ${w ?? ""}`), [() => t()("contribution")]), v(h, A);
765
+ }), F(p), v(i, p);
766
+ };
767
+ J(Zt, (i) => {
768
+ l(Yt) ? i($t) : l(wt).length === 0 ? i(te, 1) : i(ee, -1);
769
+ });
770
+ }
771
+ F(Z), be(Z, (i) => H(nt, i), () => l(nt)), v(r, Z);
772
+ var re = ge(Qt);
773
+ return o(), re;
774
+ }
775
+ le(["click"]);
776
+ ce(
777
+ rr,
778
+ {
779
+ initialGames: {},
780
+ endpoint: {},
781
+ language: {},
782
+ session: {},
783
+ tournamentid: {},
784
+ totalGames: {},
785
+ platformProp: {},
786
+ tournamentMetadata: {},
787
+ translationurl: {},
788
+ hasCasino: {},
789
+ hasSports: {}
790
+ },
791
+ [],
792
+ [],
793
+ { mode: "open" }
794
+ );
795
+ export {
796
+ rr as T,
797
+ Ye as g,
798
+ ke as s
799
+ };