@everymatrix/tournament-details-page 0.1.29 → 0.2.0

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