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