@everymatrix/tournament-details-page 0.1.29 → 0.2.1

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