@everymatrix/tournament-details-page 0.2.0 → 0.2.2

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