@everymatrix/tournament-details-page 0.2.1 → 0.2.3

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 (101) hide show
  1. package/components/ChartIcon-Bhz3dlNt.js +32 -0
  2. package/components/ChartIcon-Bpak0Ha5.js +32 -0
  3. package/components/ChartIcon-CQ9xzPNv.cjs +1 -0
  4. package/components/ChartIcon-jHYM_pz4.cjs +1 -0
  5. package/components/CoinStackIcon-6LCcPwql.js +32 -0
  6. package/components/CoinStackIcon-Ccp3qOAA.js +32 -0
  7. package/components/CoinStackIcon-gHBgq0A7.cjs +1 -0
  8. package/components/CoinStackIcon-w0E7Vjou.cjs +1 -0
  9. package/components/DocumentsIcon-CCY_TgTL.js +32 -0
  10. package/components/DocumentsIcon-D7v18JHm.cjs +1 -0
  11. package/components/DocumentsIcon-SkzMlDao.js +32 -0
  12. package/components/DocumentsIcon-TikJpiUM.cjs +1 -0
  13. package/components/FootballIcon-2V3-bZP6.cjs +1 -0
  14. package/components/FootballIcon-BxC3qLd6.cjs +1 -0
  15. package/components/FootballIcon-CNGC-ysJ.js +32 -0
  16. package/components/FootballIcon-DiVQPE5J.js +32 -0
  17. package/components/PeopleIcon-CIePqv40.cjs +1 -0
  18. package/components/PeopleIcon-CeTcZT9N.js +32 -0
  19. package/components/PeopleIcon-DE_VDpzu.js +32 -0
  20. package/components/PeopleIcon-nbIehGXq.cjs +1 -0
  21. package/components/RankArrowIcon-CwlkgpW2.js +32 -0
  22. package/components/RankArrowIcon-DeVP6SqV.js +32 -0
  23. package/components/RankArrowIcon-Dfflx6jx.cjs +1 -0
  24. package/components/RankArrowIcon-N3Rja8qO.cjs +1 -0
  25. package/components/SlotMachineIcon-B8LXNyS_.cjs +1 -0
  26. package/components/SlotMachineIcon-BB--rwxm.cjs +1 -0
  27. package/components/SlotMachineIcon-Bcda_Xmo.js +32 -0
  28. package/components/SlotMachineIcon-BfZMN8W8.js +32 -0
  29. package/components/{StatusBadge-BnPuCJnO.js → StatusBadge-48pKkesj.js} +1893 -1831
  30. package/components/{StatusBadge-DKawANSc.js → StatusBadge-BUU_5AgK.js} +1469 -1407
  31. package/components/StatusBadge-Bi4UTGIK.cjs +11 -0
  32. package/components/StatusBadge-CiBujliJ.cjs +11 -0
  33. package/components/TournamentActions-CZGHUCTG.js +110 -0
  34. package/components/TournamentActions-DYS3Zas8.cjs +18 -0
  35. package/components/TournamentActions-DrwI70Qj.js +108 -0
  36. package/components/TournamentActions-yR_aN1JY.cjs +18 -0
  37. package/components/{TournamentDetailsPage-DQ5X0Dqc.js → TournamentDetailsPage-Bp60Uk-8.js} +300 -217
  38. package/components/{TournamentDetailsPage-Cy3rGC6M.cjs → TournamentDetailsPage-BuiUVQhu.cjs} +4 -4
  39. package/components/{TournamentDetailsPage-D4ZDEGSF.cjs → TournamentDetailsPage-DEpxQPEA.cjs} +4 -4
  40. package/components/{TournamentDetailsPage-LzqcZox2.js → TournamentDetailsPage-Dnv8IQ1B.js} +347 -264
  41. package/components/{TournamentDetailsSkeleton-CpEie2Gb.cjs → TournamentDetailsSkeleton-B7Qc2qaP.cjs} +1 -1
  42. package/components/{TournamentDetailsSkeleton-u1WnYDq6.cjs → TournamentDetailsSkeleton-CFgmljN6.cjs} +1 -1
  43. package/components/{TournamentDetailsSkeleton-CL0BOfFu.js → TournamentDetailsSkeleton-Dn6_fjHV.js} +17 -17
  44. package/components/{TournamentDetailsSkeleton-CqfwFamx.js → TournamentDetailsSkeleton-qTpuepan.js} +17 -17
  45. package/components/TournamentGames-BHzZyU1T.cjs +19 -0
  46. package/components/TournamentGames-BSbbbGfz.js +313 -0
  47. package/components/TournamentGames-D9NuiZl1.js +291 -0
  48. package/components/TournamentGames-Zkp7iS-3.cjs +19 -0
  49. package/components/{TournamentImage-BxaewAcW.js → TournamentImage-B8k7urkf.js} +61 -51
  50. package/components/{TournamentImage-BeCXYKda.cjs → TournamentImage-BxojXrGF.cjs} +2 -2
  51. package/components/{TournamentImage-Dx0Km_cw.cjs → TournamentImage-By_eps51.cjs} +2 -2
  52. package/components/{TournamentImage-Cp5BEQ0s.js → TournamentImage-DAfP40BM.js} +59 -49
  53. package/components/TournamentLeaderboard-BHGPwbuz.cjs +44 -0
  54. package/components/TournamentLeaderboard-Bk72WFe2.js +1500 -0
  55. package/components/TournamentLeaderboard-C1uFc5GZ.cjs +44 -0
  56. package/components/TournamentLeaderboard-cnaAJbty.js +1561 -0
  57. package/components/TournamentRules-B392M3KD.js +138 -0
  58. package/components/TournamentRules-BpcwEy6C.cjs +6 -0
  59. package/components/TournamentRules-D8ePsXfz.js +143 -0
  60. package/components/TournamentRules-DRhqdG_B.cjs +6 -0
  61. package/components/TournamentSummary-BvxGV6na.cjs +3 -0
  62. package/components/TournamentSummary-DAVQCaqt.js +145 -0
  63. package/components/TournamentSummary-DPIK4FyI.cjs +3 -0
  64. package/components/TournamentSummary-DRt9iIEz.js +150 -0
  65. package/components/{TournamentTabs-DpLpOYtB.js → TournamentTabs-BVNuWoQ4.js} +14 -14
  66. package/components/{TournamentTabs-DEQtwaH4.cjs → TournamentTabs-C5mZ8N3x.cjs} +1 -1
  67. package/components/{TournamentTabs-EGrABVKQ.cjs → TournamentTabs-D4lAhT6v.cjs} +1 -1
  68. package/components/{TournamentTabs-FzkOjNA3.js → TournamentTabs-DOIFHU3l.js} +18 -18
  69. package/components/TrophyIcon-95ROc4Lc.cjs +1 -0
  70. package/components/TrophyIcon-BolnMSK-.js +32 -0
  71. package/components/TrophyIcon-BqeMso6k.js +32 -0
  72. package/components/TrophyIcon-BuT5Q6K0.cjs +1 -0
  73. package/components/translations-Bgd_tQSB.cjs +1 -0
  74. package/components/translations-CPDBBwzN.cjs +1 -0
  75. package/components/{translations-BQS5XycD.js → translations-CoULEJN6.js} +37 -5
  76. package/components/{translations-DPzojb4V.js → translations-CzV51BzW.js} +37 -5
  77. package/es2015/tournament-details-page.cjs +1 -1
  78. package/es2015/tournament-details-page.js +2 -2
  79. package/esnext/tournament-details-page.cjs +1 -1
  80. package/esnext/tournament-details-page.js +2 -2
  81. package/package.json +1 -1
  82. package/components/StatusBadge-BVcNxptf.cjs +0 -8
  83. package/components/StatusBadge-CV5WC0Fx.cjs +0 -8
  84. package/components/TournamentGames-B6UkeuiX.js +0 -821
  85. package/components/TournamentGames-CYxz1Jcl.cjs +0 -34
  86. package/components/TournamentGames-DO01jBJs.js +0 -799
  87. package/components/TournamentGames-Dt7xzVBn.cjs +0 -34
  88. package/components/TournamentLeaderboard-BufvnLFX.js +0 -1393
  89. package/components/TournamentLeaderboard-D1mX3sal.cjs +0 -38
  90. package/components/TournamentLeaderboard-D9OPwUvy.cjs +0 -38
  91. package/components/TournamentLeaderboard-Dqbb_r0i.js +0 -1451
  92. package/components/TournamentRules-BbxvSZdU.cjs +0 -6
  93. package/components/TournamentRules-Bsxb9Asj.js +0 -144
  94. package/components/TournamentRules-DX1CVsV7.cjs +0 -6
  95. package/components/TournamentRules-SECANCVS.js +0 -149
  96. package/components/TournamentSummary-Ardxi8yJ.js +0 -159
  97. package/components/TournamentSummary-BGk055-K.cjs +0 -3
  98. package/components/TournamentSummary-CizBbtzd.cjs +0 -3
  99. package/components/TournamentSummary-Dnj0Cnzu.js +0 -154
  100. package/components/translations-BSe2qToO.cjs +0 -1
  101. package/components/translations-FufS-X5l.cjs +0 -1
@@ -1,799 +0,0 @@
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
- };