@everymatrix/casino-tournaments-list-controller 1.0.69 → 1.0.71

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.
@@ -0,0 +1,1841 @@
1
+ var ae = (i, t, e) => new Promise((r, n) => {
2
+ var o = (c) => {
3
+ try {
4
+ l(e.next(c));
5
+ } catch (h) {
6
+ n(h);
7
+ }
8
+ }, s = (c) => {
9
+ try {
10
+ l(e.throw(c));
11
+ } catch (h) {
12
+ n(h);
13
+ }
14
+ }, l = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, s);
15
+ l((e = e.apply(i, t)).next());
16
+ });
17
+ import { _ as fe, z as me, A as de, B as W, $ as Me, C as kt, a as St, S as Ft, i as Ct, f as S, c as Et, s as jt, b as Bt, e as F, g as f, h as _, n as he, l as T, m as Pt, o as Ot, w as Dt, d as B, D as u, j as y, p as xt, r as It, t as O, k as D, y as At, u as J, q as et, v as Mt, E as I } from "./CasinoTournamentsListController-CWLfTxVT.js";
18
+ function P(i) {
19
+ return typeof i == "function";
20
+ }
21
+ function tt(i) {
22
+ var t = function(r) {
23
+ Error.call(r), r.stack = new Error().stack;
24
+ }, e = i(t);
25
+ return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
26
+ }
27
+ var ue = tt(function(i) {
28
+ return function(e) {
29
+ i(this), this.message = e ? e.length + ` errors occurred during unsubscription:
30
+ ` + e.map(function(r, n) {
31
+ return n + 1 + ") " + r.toString();
32
+ }).join(`
33
+ `) : "", this.name = "UnsubscriptionError", this.errors = e;
34
+ };
35
+ });
36
+ function pe(i, t) {
37
+ if (i) {
38
+ var e = i.indexOf(t);
39
+ 0 <= e && i.splice(e, 1);
40
+ }
41
+ }
42
+ var ee = function() {
43
+ function i(t) {
44
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
45
+ }
46
+ return i.prototype.unsubscribe = function() {
47
+ var t, e, r, n, o;
48
+ if (!this.closed) {
49
+ this.closed = !0;
50
+ var s = this._parentage;
51
+ if (s)
52
+ if (this._parentage = null, Array.isArray(s))
53
+ try {
54
+ for (var l = fe(s), c = l.next(); !c.done; c = l.next()) {
55
+ var h = c.value;
56
+ h.remove(this);
57
+ }
58
+ } catch (p) {
59
+ t = { error: p };
60
+ } finally {
61
+ try {
62
+ c && !c.done && (e = l.return) && e.call(l);
63
+ } finally {
64
+ if (t) throw t.error;
65
+ }
66
+ }
67
+ else
68
+ s.remove(this);
69
+ var d = this.initialTeardown;
70
+ if (P(d))
71
+ try {
72
+ d();
73
+ } catch (p) {
74
+ o = p instanceof ue ? p.errors : [p];
75
+ }
76
+ var b = this._finalizers;
77
+ if (b) {
78
+ this._finalizers = null;
79
+ try {
80
+ for (var k = fe(b), z = k.next(); !z.done; z = k.next()) {
81
+ var w = z.value;
82
+ try {
83
+ Le(w);
84
+ } catch (p) {
85
+ o = o != null ? o : [], p instanceof ue ? o = me(me([], de(o)), de(p.errors)) : o.push(p);
86
+ }
87
+ }
88
+ } catch (p) {
89
+ r = { error: p };
90
+ } finally {
91
+ try {
92
+ z && !z.done && (n = k.return) && n.call(k);
93
+ } finally {
94
+ if (r) throw r.error;
95
+ }
96
+ }
97
+ }
98
+ if (o)
99
+ throw new ue(o);
100
+ }
101
+ }, i.prototype.add = function(t) {
102
+ var e;
103
+ if (t && t !== this)
104
+ if (this.closed)
105
+ Le(t);
106
+ else {
107
+ if (t instanceof i) {
108
+ if (t.closed || t._hasParent(this))
109
+ return;
110
+ t._addParent(this);
111
+ }
112
+ (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
113
+ }
114
+ }, i.prototype._hasParent = function(t) {
115
+ var e = this._parentage;
116
+ return e === t || Array.isArray(e) && e.includes(t);
117
+ }, i.prototype._addParent = function(t) {
118
+ var e = this._parentage;
119
+ this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
120
+ }, i.prototype._removeParent = function(t) {
121
+ var e = this._parentage;
122
+ e === t ? this._parentage = null : Array.isArray(e) && pe(e, t);
123
+ }, i.prototype.remove = function(t) {
124
+ var e = this._finalizers;
125
+ e && pe(e, t), t instanceof i && t._removeParent(this);
126
+ }, i.EMPTY = function() {
127
+ var t = new i();
128
+ return t.closed = !0, t;
129
+ }(), i;
130
+ }(), it = ee.EMPTY;
131
+ function rt(i) {
132
+ return i instanceof ee || i && "closed" in i && P(i.remove) && P(i.add) && P(i.unsubscribe);
133
+ }
134
+ function Le(i) {
135
+ P(i) ? i() : i.unsubscribe();
136
+ }
137
+ var nt = {
138
+ onUnhandledError: null,
139
+ onStoppedNotification: null,
140
+ Promise: void 0,
141
+ useDeprecatedSynchronousErrorHandling: !1,
142
+ useDeprecatedNextContext: !1
143
+ }, ot = {
144
+ setTimeout: function(i, t) {
145
+ for (var e = [], r = 2; r < arguments.length; r++)
146
+ e[r - 2] = arguments[r];
147
+ return setTimeout.apply(void 0, me([i, t], de(e)));
148
+ },
149
+ clearTimeout: function(i) {
150
+ var t = ot.delegate;
151
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(i);
152
+ },
153
+ delegate: void 0
154
+ };
155
+ function Lt(i) {
156
+ ot.setTimeout(function() {
157
+ throw i;
158
+ });
159
+ }
160
+ function Re() {
161
+ }
162
+ function $(i) {
163
+ i();
164
+ }
165
+ var st = function(i) {
166
+ W(t, i);
167
+ function t(e) {
168
+ var r = i.call(this) || this;
169
+ return r.isStopped = !1, e ? (r.destination = e, rt(e) && e.add(r)) : r.destination = Wt, r;
170
+ }
171
+ return t.create = function(e, r, n) {
172
+ return new ve(e, r, n);
173
+ }, t.prototype.next = function(e) {
174
+ this.isStopped || this._next(e);
175
+ }, t.prototype.error = function(e) {
176
+ this.isStopped || (this.isStopped = !0, this._error(e));
177
+ }, t.prototype.complete = function() {
178
+ this.isStopped || (this.isStopped = !0, this._complete());
179
+ }, t.prototype.unsubscribe = function() {
180
+ this.closed || (this.isStopped = !0, i.prototype.unsubscribe.call(this), this.destination = null);
181
+ }, t.prototype._next = function(e) {
182
+ this.destination.next(e);
183
+ }, t.prototype._error = function(e) {
184
+ try {
185
+ this.destination.error(e);
186
+ } finally {
187
+ this.unsubscribe();
188
+ }
189
+ }, t.prototype._complete = function() {
190
+ try {
191
+ this.destination.complete();
192
+ } finally {
193
+ this.unsubscribe();
194
+ }
195
+ }, t;
196
+ }(ee), Rt = Function.prototype.bind;
197
+ function ce(i, t) {
198
+ return Rt.call(i, t);
199
+ }
200
+ var Ut = function() {
201
+ function i(t) {
202
+ this.partialObserver = t;
203
+ }
204
+ return i.prototype.next = function(t) {
205
+ var e = this.partialObserver;
206
+ if (e.next)
207
+ try {
208
+ e.next(t);
209
+ } catch (r) {
210
+ Q(r);
211
+ }
212
+ }, i.prototype.error = function(t) {
213
+ var e = this.partialObserver;
214
+ if (e.error)
215
+ try {
216
+ e.error(t);
217
+ } catch (r) {
218
+ Q(r);
219
+ }
220
+ else
221
+ Q(t);
222
+ }, i.prototype.complete = function() {
223
+ var t = this.partialObserver;
224
+ if (t.complete)
225
+ try {
226
+ t.complete();
227
+ } catch (e) {
228
+ Q(e);
229
+ }
230
+ }, i;
231
+ }(), ve = function(i) {
232
+ W(t, i);
233
+ function t(e, r, n) {
234
+ var o = i.call(this) || this, s;
235
+ if (P(e) || !e)
236
+ s = {
237
+ next: e != null ? e : void 0,
238
+ error: r != null ? r : void 0,
239
+ complete: n != null ? n : void 0
240
+ };
241
+ else {
242
+ var l;
243
+ o && nt.useDeprecatedNextContext ? (l = Object.create(e), l.unsubscribe = function() {
244
+ return o.unsubscribe();
245
+ }, s = {
246
+ next: e.next && ce(e.next, l),
247
+ error: e.error && ce(e.error, l),
248
+ complete: e.complete && ce(e.complete, l)
249
+ }) : s = e;
250
+ }
251
+ return o.destination = new Ut(s), o;
252
+ }
253
+ return t;
254
+ }(st);
255
+ function Q(i) {
256
+ Lt(i);
257
+ }
258
+ function Jt(i) {
259
+ throw i;
260
+ }
261
+ var Wt = {
262
+ closed: !0,
263
+ next: Re,
264
+ error: Jt,
265
+ complete: Re
266
+ }, Ht = function() {
267
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
268
+ }();
269
+ function qt(i) {
270
+ return i;
271
+ }
272
+ function Gt(i) {
273
+ return i.length === 0 ? qt : i.length === 1 ? i[0] : function(e) {
274
+ return i.reduce(function(r, n) {
275
+ return n(r);
276
+ }, e);
277
+ };
278
+ }
279
+ var Ue = function() {
280
+ function i(t) {
281
+ t && (this._subscribe = t);
282
+ }
283
+ return i.prototype.lift = function(t) {
284
+ var e = new i();
285
+ return e.source = this, e.operator = t, e;
286
+ }, i.prototype.subscribe = function(t, e, r) {
287
+ var n = this, o = Kt(t) ? t : new ve(t, e, r);
288
+ return $(function() {
289
+ var s = n, l = s.operator, c = s.source;
290
+ o.add(l ? l.call(o, c) : c ? n._subscribe(o) : n._trySubscribe(o));
291
+ }), o;
292
+ }, i.prototype._trySubscribe = function(t) {
293
+ try {
294
+ return this._subscribe(t);
295
+ } catch (e) {
296
+ t.error(e);
297
+ }
298
+ }, i.prototype.forEach = function(t, e) {
299
+ var r = this;
300
+ return e = Je(e), new e(function(n, o) {
301
+ var s = new ve({
302
+ next: function(l) {
303
+ try {
304
+ t(l);
305
+ } catch (c) {
306
+ o(c), s.unsubscribe();
307
+ }
308
+ },
309
+ error: o,
310
+ complete: n
311
+ });
312
+ r.subscribe(s);
313
+ });
314
+ }, i.prototype._subscribe = function(t) {
315
+ var e;
316
+ return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
317
+ }, i.prototype[Ht] = function() {
318
+ return this;
319
+ }, i.prototype.pipe = function() {
320
+ for (var t = [], e = 0; e < arguments.length; e++)
321
+ t[e] = arguments[e];
322
+ return Gt(t)(this);
323
+ }, i.prototype.toPromise = function(t) {
324
+ var e = this;
325
+ return t = Je(t), new t(function(r, n) {
326
+ var o;
327
+ e.subscribe(function(s) {
328
+ return o = s;
329
+ }, function(s) {
330
+ return n(s);
331
+ }, function() {
332
+ return r(o);
333
+ });
334
+ });
335
+ }, i.create = function(t) {
336
+ return new i(t);
337
+ }, i;
338
+ }();
339
+ function Je(i) {
340
+ var t;
341
+ return (t = i != null ? i : nt.Promise) !== null && t !== void 0 ? t : Promise;
342
+ }
343
+ function Yt(i) {
344
+ return i && P(i.next) && P(i.error) && P(i.complete);
345
+ }
346
+ function Kt(i) {
347
+ return i && i instanceof st || Yt(i) && rt(i);
348
+ }
349
+ var Vt = tt(function(i) {
350
+ return function() {
351
+ i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
352
+ };
353
+ }), lt = function(i) {
354
+ W(t, i);
355
+ function t() {
356
+ var e = i.call(this) || this;
357
+ return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
358
+ }
359
+ return t.prototype.lift = function(e) {
360
+ var r = new We(this, this);
361
+ return r.operator = e, r;
362
+ }, t.prototype._throwIfClosed = function() {
363
+ if (this.closed)
364
+ throw new Vt();
365
+ }, t.prototype.next = function(e) {
366
+ var r = this;
367
+ $(function() {
368
+ var n, o;
369
+ if (r._throwIfClosed(), !r.isStopped) {
370
+ r.currentObservers || (r.currentObservers = Array.from(r.observers));
371
+ try {
372
+ for (var s = fe(r.currentObservers), l = s.next(); !l.done; l = s.next()) {
373
+ var c = l.value;
374
+ c.next(e);
375
+ }
376
+ } catch (h) {
377
+ n = { error: h };
378
+ } finally {
379
+ try {
380
+ l && !l.done && (o = s.return) && o.call(s);
381
+ } finally {
382
+ if (n) throw n.error;
383
+ }
384
+ }
385
+ }
386
+ });
387
+ }, t.prototype.error = function(e) {
388
+ var r = this;
389
+ $(function() {
390
+ if (r._throwIfClosed(), !r.isStopped) {
391
+ r.hasError = r.isStopped = !0, r.thrownError = e;
392
+ for (var n = r.observers; n.length; )
393
+ n.shift().error(e);
394
+ }
395
+ });
396
+ }, t.prototype.complete = function() {
397
+ var e = this;
398
+ $(function() {
399
+ if (e._throwIfClosed(), !e.isStopped) {
400
+ e.isStopped = !0;
401
+ for (var r = e.observers; r.length; )
402
+ r.shift().complete();
403
+ }
404
+ });
405
+ }, t.prototype.unsubscribe = function() {
406
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
407
+ }, Object.defineProperty(t.prototype, "observed", {
408
+ get: function() {
409
+ var e;
410
+ return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
411
+ },
412
+ enumerable: !1,
413
+ configurable: !0
414
+ }), t.prototype._trySubscribe = function(e) {
415
+ return this._throwIfClosed(), i.prototype._trySubscribe.call(this, e);
416
+ }, t.prototype._subscribe = function(e) {
417
+ return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
418
+ }, t.prototype._innerSubscribe = function(e) {
419
+ var r = this, n = this, o = n.hasError, s = n.isStopped, l = n.observers;
420
+ return o || s ? it : (this.currentObservers = null, l.push(e), new ee(function() {
421
+ r.currentObservers = null, pe(l, e);
422
+ }));
423
+ }, t.prototype._checkFinalizedStatuses = function(e) {
424
+ var r = this, n = r.hasError, o = r.thrownError, s = r.isStopped;
425
+ n ? e.error(o) : s && e.complete();
426
+ }, t.prototype.asObservable = function() {
427
+ var e = new Ue();
428
+ return e.source = this, e;
429
+ }, t.create = function(e, r) {
430
+ return new We(e, r);
431
+ }, t;
432
+ }(Ue), We = function(i) {
433
+ W(t, i);
434
+ function t(e, r) {
435
+ var n = i.call(this) || this;
436
+ return n.destination = e, n.source = r, n;
437
+ }
438
+ return t.prototype.next = function(e) {
439
+ var r, n;
440
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || n === void 0 || n.call(r, e);
441
+ }, t.prototype.error = function(e) {
442
+ var r, n;
443
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || n === void 0 || n.call(r, e);
444
+ }, t.prototype.complete = function() {
445
+ var e, r;
446
+ (r = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || r === void 0 || r.call(e);
447
+ }, t.prototype._subscribe = function(e) {
448
+ var r, n;
449
+ return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && n !== void 0 ? n : it;
450
+ }, t;
451
+ }(lt), at = {
452
+ now: function() {
453
+ return (at.delegate || Date).now();
454
+ },
455
+ delegate: void 0
456
+ }, Xt = function(i) {
457
+ W(t, i);
458
+ function t(e, r, n) {
459
+ e === void 0 && (e = 1 / 0), r === void 0 && (r = 1 / 0), n === void 0 && (n = at);
460
+ var o = i.call(this) || this;
461
+ return o._bufferSize = e, o._windowTime = r, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, r), o;
462
+ }
463
+ return t.prototype.next = function(e) {
464
+ var r = this, n = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, l = r._timestampProvider, c = r._windowTime;
465
+ n || (o.push(e), !s && o.push(l.now() + c)), this._trimBuffer(), i.prototype.next.call(this, e);
466
+ }, t.prototype._subscribe = function(e) {
467
+ this._throwIfClosed(), this._trimBuffer();
468
+ for (var r = this._innerSubscribe(e), n = this, o = n._infiniteTimeWindow, s = n._buffer, l = s.slice(), c = 0; c < l.length && !e.closed; c += o ? 1 : 2)
469
+ e.next(l[c]);
470
+ return this._checkFinalizedStatuses(e), r;
471
+ }, t.prototype._trimBuffer = function() {
472
+ var e = this, r = e._bufferSize, n = e._timestampProvider, o = e._buffer, s = e._infiniteTimeWindow, l = (s ? 1 : 2) * r;
473
+ if (r < 1 / 0 && l < o.length && o.splice(0, o.length - l), !s) {
474
+ for (var c = n.now(), h = 0, d = 1; d < o.length && o[d] <= c; d += 2)
475
+ h = d;
476
+ h && o.splice(0, h + 1);
477
+ }
478
+ }, t;
479
+ }(lt);
480
+ const He = [], qe = {}, Nt = (i, t = 0) => {
481
+ if (He.indexOf(i) == -1) {
482
+ const e = new Xt(t);
483
+ qe[i] = e, He.push(i);
484
+ }
485
+ return qe[i];
486
+ };
487
+ window.emWidgets = { topic: Nt };
488
+ const Ge = (i) => i.toLowerCase().match(/android/i) ? "Android" : i.toLowerCase().match(/iphone/i) ? "iPhone" : i.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
489
+ function Zt({ withLocale: i, translations: t }) {
490
+ Me.subscribe((e) => {
491
+ e == null && (kt.set(t), Me.set(i));
492
+ });
493
+ }
494
+ function Ye(i, t) {
495
+ St(i, t);
496
+ }
497
+ const Ke = {
498
+ en: {
499
+ tournamentsThController: {
500
+ login: "Log in",
501
+ register: "Register",
502
+ details: "Details",
503
+ enrolled: "Enrolled",
504
+ join: "Join",
505
+ joinerror: "An error occurred while registering in the tournament, please try again."
506
+ }
507
+ },
508
+ hr: {
509
+ tournamentsThController: {
510
+ login: "Prijava",
511
+ register: "Registracija",
512
+ details: "Detalji",
513
+ enrolled: "Upisan",
514
+ join: "Pridruži se",
515
+ joinerror: "Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."
516
+ }
517
+ },
518
+ "zh-hk": {
519
+ tournamentsThController: {
520
+ login: "登錄",
521
+ register: "登記",
522
+ details: "細節",
523
+ enrolled: "已註冊",
524
+ join: "加入",
525
+ joinerror: "加入錦標賽時出錯,請重試"
526
+ }
527
+ },
528
+ fr: {
529
+ tournamentsThController: {
530
+ login: "Connexion",
531
+ register: "Enregistre",
532
+ details: "Détails",
533
+ enrolled: "Inscrits",
534
+ join: "Rejoignez",
535
+ joinerror: "Une erreur s'est produite lors de l'inscription au tournoi"
536
+ }
537
+ },
538
+ ro: {
539
+ tournamentsThController: {
540
+ login: "Autentificare",
541
+ register: "Înregistrare",
542
+ details: "Detalii",
543
+ enrolled: "Înscris",
544
+ join: "Participă",
545
+ joinerror: "A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."
546
+ }
547
+ },
548
+ tr: {
549
+ tournamentsThController: {
550
+ login: "Giriş yapmak",
551
+ register: "Kayıt olmak",
552
+ details: "Detaylar",
553
+ enrolled: "Katıldın",
554
+ join: "Katılmak",
555
+ joinerror: "Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."
556
+ }
557
+ },
558
+ el: {
559
+ tournamentsThController: {
560
+ login: "Είσοδος",
561
+ register: "Εγγραφή",
562
+ details: "Λεπτομέρειες",
563
+ enrolled: "Εγγεγραμμένος",
564
+ join: "Συμμετοχή",
565
+ joinerror: "Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."
566
+ }
567
+ },
568
+ es: {
569
+ tournamentsThController: {
570
+ login: "Iniciar sesión",
571
+ register: "Regístrate",
572
+ details: "Detalles",
573
+ enrolled: "Participando",
574
+ join: "Unirse",
575
+ joinerror: "Ha ocurrido un error mientras se registra en el Torneo"
576
+ }
577
+ },
578
+ hu: {
579
+ tournamentsThController: {
580
+ login: "Bejelentkezés",
581
+ register: "Regisztráció",
582
+ details: "Adatok",
583
+ enrolled: "Feliratkozott",
584
+ join: "Csatlakozás",
585
+ joinerror: "Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."
586
+ }
587
+ },
588
+ pt: {
589
+ tournamentsThController: {
590
+ login: "Entrar",
591
+ register: "Registro",
592
+ details: "Detalhes",
593
+ enrolled: "Inscrito",
594
+ join: "Junte-se",
595
+ joinerror: "Ocorreu um erro ao entrar no torneio"
596
+ }
597
+ }
598
+ };
599
+ if (typeof window != "undefined") {
600
+ let i = function(t) {
601
+ return function(...e) {
602
+ try {
603
+ return t.apply(this, e);
604
+ } catch (r) {
605
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
606
+ return !1;
607
+ throw r;
608
+ }
609
+ };
610
+ };
611
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnail-mcL0JjXT.js").then(({ default: t }) => {
612
+ !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
613
+ });
614
+ }
615
+ if (typeof window != "undefined") {
616
+ let i = function(t) {
617
+ return function(...e) {
618
+ try {
619
+ return t.apply(this, e);
620
+ } catch (r) {
621
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
622
+ return !1;
623
+ throw r;
624
+ }
625
+ };
626
+ };
627
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnailDuration-Dl-XBfi1.js").then(({ default: t }) => {
628
+ !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
629
+ "casino-tournaments-thumbnail-duration",
630
+ t.element
631
+ );
632
+ });
633
+ }
634
+ if (typeof window != "undefined") {
635
+ let i = function(t) {
636
+ return function(...e) {
637
+ try {
638
+ return t.apply(this, e);
639
+ } catch (r) {
640
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
641
+ return !1;
642
+ throw r;
643
+ }
644
+ };
645
+ };
646
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BESiwP4Y.js").then(({ default: t }) => {
647
+ !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
648
+ });
649
+ }
650
+ if (typeof window != "undefined") {
651
+ let i = function(t) {
652
+ return function(...e) {
653
+ try {
654
+ return t.apply(this, e);
655
+ } catch (r) {
656
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
657
+ return !1;
658
+ throw r;
659
+ }
660
+ };
661
+ };
662
+ customElements.define = i(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-BscFDLzy.js").then(
663
+ ({ default: t }) => {
664
+ !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
665
+ "casino-tournaments-thumbnail-games-slider",
666
+ t.element
667
+ );
668
+ }
669
+ );
670
+ }
671
+ function Qt(i) {
672
+ Bt(i, "svelte-m5izi2", '.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::before,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.TournamentCard.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.CardMaxWidth.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{max-width:600px}.TournamentButtons.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons.svelte-m5izi2 button.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.EnrolledButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.ErrorText.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::after,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::before{box-sizing:border-box}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:svelte-m5izi2-phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item.svelte-m5izi2>.svelte-m5izi2.svelte-m5izi2{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row.svelte-m5izi2 div.svelte-m5izi2.svelte-m5izi2{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row.svelte-m5izi2 .big.svelte-m5izi2.svelte-m5izi2{height:20px}.ph-row.svelte-m5izi2 .empty.svelte-m5izi2.svelte-m5izi2{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 33.3333333333%}.ph-col-6.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 50%}.ph-col-8.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 66.6666666667%}.ph-col-12.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 100%}[class*=ph-col].svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{direction:ltr}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.ph-row.svelte-m5izi2{margin-top:0}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.svelte-m5izi2{margin-top:7.5px}.ph-picture.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes svelte-m5izi2-phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner.svelte-m5izi2 circle.svelte-m5izi2.svelte-m5izi2{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:svelte-m5izi2-spinner 2s linear infinite;-moz-animation:svelte-m5izi2-spinner 2s linear infinite;-ms-animation:svelte-m5izi2-spinner 2s linear infinite;-o-animation:svelte-m5izi2-spinner 2s linear infinite;animation:svelte-m5izi2-spinner 2s linear infinite}@-webkit-keyframes svelte-m5izi2-spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes svelte-m5izi2-spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes svelte-m5izi2-spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes svelte-m5izi2-spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes svelte-m5izi2-spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadein 2s linear forwards;animation:svelte-m5izi2-fadein 2s linear forwards}.elementToFadeOut.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadeout 0.1s ease-out forwards;animation:svelte-m5izi2-fadeout 0.1s ease-out forwards}');
673
+ }
674
+ function $t(i) {
675
+ let t, e, r, n, o, s, l, c, h, d = (
676
+ /*isLoggedIn*/
677
+ i[13] && Ve(i)
678
+ );
679
+ function b(m, v) {
680
+ if (!/*isLoggedIn*/
681
+ m[13]) return ri;
682
+ if (
683
+ /*status*/
684
+ m[22] != "Closed" && /*status*/
685
+ m[22] != "Closing"
686
+ ) return ii;
687
+ if (
688
+ /*showdetails*/
689
+ m[3] == "true"
690
+ ) return ti;
691
+ }
692
+ let k = b(i), z = k && k(i), w = (
693
+ /*errorJoin*/
694
+ (i[16] || /*errorJoinConcurrently*/
695
+ i[18]) && Qe(i)
696
+ ), p = (
697
+ /*showslider*/
698
+ i[4] == "true" && $e(i)
699
+ );
700
+ return {
701
+ c() {
702
+ t = F("div"), e = F("casino-tournaments-thumbnail"), r = B(), d && d.c(), n = B(), o = F("div"), z && z.c(), s = B(), w && w.c(), l = B(), p && p.c(), u(
703
+ e,
704
+ "session",
705
+ /*session*/
706
+ i[0]
707
+ ), u(
708
+ e,
709
+ "userid",
710
+ /*userid*/
711
+ i[1]
712
+ ), u(
713
+ e,
714
+ "title",
715
+ /*title*/
716
+ i[19]
717
+ ), u(
718
+ e,
719
+ "status",
720
+ /*status*/
721
+ i[22]
722
+ ), u(
723
+ e,
724
+ "startdate",
725
+ /*startdate*/
726
+ i[20]
727
+ ), u(
728
+ e,
729
+ "tourid",
730
+ /*tourid*/
731
+ i[23]
732
+ ), u(
733
+ e,
734
+ "scorecriteria",
735
+ /*scorecriteria*/
736
+ i[26]
737
+ ), u(
738
+ e,
739
+ "minbetcount",
740
+ /*minbetcount*/
741
+ i[27]
742
+ ), u(
743
+ e,
744
+ "thumbnail",
745
+ /*thumbnail*/
746
+ i[24]
747
+ ), u(
748
+ e,
749
+ "userenrolled",
750
+ /*userenrolled*/
751
+ i[25]
752
+ ), u(
753
+ e,
754
+ "showenrolled",
755
+ /*showenrolled*/
756
+ i[5]
757
+ ), u(
758
+ e,
759
+ "gameurl",
760
+ /*gameurl*/
761
+ i[29]
762
+ ), u(
763
+ e,
764
+ "clientstyling",
765
+ /*clientstyling*/
766
+ i[10]
767
+ ), u(
768
+ e,
769
+ "clientstylingurl",
770
+ /*clientstylingurl*/
771
+ i[11]
772
+ ), u(
773
+ e,
774
+ "lang",
775
+ /*lang*/
776
+ i[8]
777
+ ), u(
778
+ e,
779
+ "keepbrowsercontext",
780
+ /*keepbrowsercontext*/
781
+ i[9]
782
+ ), u(e, "exportparts", "Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"), u(e, "class", "svelte-m5izi2"), f(o, "class", "TournamentButtons svelte-m5izi2"), f(o, "part", "TournamentButtons"), f(t, "class", c = "TournamentCard " + /*maxwidth*/
783
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
784
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
785
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2"), f(t, "part", h = "TournamentCard " + /*maxwidth*/
786
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
787
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
788
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
789
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn"));
790
+ },
791
+ m(m, v) {
792
+ _(m, t, v), y(t, e), y(t, r), d && d.m(t, null), y(t, n), y(t, o), z && z.m(o, null), y(t, s), w && w.m(t, null), y(t, l), p && p.m(t, null);
793
+ },
794
+ p(m, v) {
795
+ v[0] & /*session*/
796
+ 1 && u(
797
+ e,
798
+ "session",
799
+ /*session*/
800
+ m[0]
801
+ ), v[0] & /*userid*/
802
+ 2 && u(
803
+ e,
804
+ "userid",
805
+ /*userid*/
806
+ m[1]
807
+ ), v[0] & /*title*/
808
+ 524288 && u(
809
+ e,
810
+ "title",
811
+ /*title*/
812
+ m[19]
813
+ ), v[0] & /*status*/
814
+ 4194304 && u(
815
+ e,
816
+ "status",
817
+ /*status*/
818
+ m[22]
819
+ ), v[0] & /*startdate*/
820
+ 1048576 && u(
821
+ e,
822
+ "startdate",
823
+ /*startdate*/
824
+ m[20]
825
+ ), v[0] & /*tourid*/
826
+ 8388608 && u(
827
+ e,
828
+ "tourid",
829
+ /*tourid*/
830
+ m[23]
831
+ ), v[0] & /*scorecriteria*/
832
+ 67108864 && u(
833
+ e,
834
+ "scorecriteria",
835
+ /*scorecriteria*/
836
+ m[26]
837
+ ), v[0] & /*minbetcount*/
838
+ 134217728 && u(
839
+ e,
840
+ "minbetcount",
841
+ /*minbetcount*/
842
+ m[27]
843
+ ), v[0] & /*thumbnail*/
844
+ 16777216 && u(
845
+ e,
846
+ "thumbnail",
847
+ /*thumbnail*/
848
+ m[24]
849
+ ), v[0] & /*userenrolled*/
850
+ 33554432 && u(
851
+ e,
852
+ "userenrolled",
853
+ /*userenrolled*/
854
+ m[25]
855
+ ), v[0] & /*showenrolled*/
856
+ 32 && u(
857
+ e,
858
+ "showenrolled",
859
+ /*showenrolled*/
860
+ m[5]
861
+ ), v[0] & /*gameurl*/
862
+ 536870912 && u(
863
+ e,
864
+ "gameurl",
865
+ /*gameurl*/
866
+ m[29]
867
+ ), v[0] & /*clientstyling*/
868
+ 1024 && u(
869
+ e,
870
+ "clientstyling",
871
+ /*clientstyling*/
872
+ m[10]
873
+ ), v[0] & /*clientstylingurl*/
874
+ 2048 && u(
875
+ e,
876
+ "clientstylingurl",
877
+ /*clientstylingurl*/
878
+ m[11]
879
+ ), v[0] & /*lang*/
880
+ 256 && u(
881
+ e,
882
+ "lang",
883
+ /*lang*/
884
+ m[8]
885
+ ), v[0] & /*keepbrowsercontext*/
886
+ 512 && u(
887
+ e,
888
+ "keepbrowsercontext",
889
+ /*keepbrowsercontext*/
890
+ m[9]
891
+ ), /*isLoggedIn*/
892
+ m[13] ? d ? d.p(m, v) : (d = Ve(m), d.c(), d.m(t, n)) : d && (d.d(1), d = null), k === (k = b(m)) && z ? z.p(m, v) : (z && z.d(1), z = k && k(m), z && (z.c(), z.m(o, null))), /*errorJoin*/
893
+ m[16] || /*errorJoinConcurrently*/
894
+ m[18] ? w ? w.p(m, v) : (w = Qe(m), w.c(), w.m(t, l)) : w && (w.d(1), w = null), /*showslider*/
895
+ m[4] == "true" ? p ? p.p(m, v) : (p = $e(m), p.c(), p.m(t, null)) : p && (p.d(1), p = null), v[0] & /*maxwidth, fullsize, isChanging*/
896
+ 1073742016 && c !== (c = "TournamentCard " + /*maxwidth*/
897
+ (m[6] ? "CardMaxWidth" : "") + /*fullsize*/
898
+ (m[7] ? "CardFullSize" : "") + " " + /*isChanging*/
899
+ (m[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2") && f(t, "class", c), v[0] & /*maxwidth, fullsize, isChanging*/
900
+ 1073742016 && h !== (h = "TournamentCard " + /*maxwidth*/
901
+ (m[6] ? "CardMaxWidth" : "") + /*fullsize*/
902
+ (m[7] ? "CardFullSize" : "") + " " + /*isChanging*/
903
+ (m[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
904
+ (m[30] ? "elementToFadeOut" : "elementToFadeIn")) && f(t, "part", h);
905
+ },
906
+ d(m) {
907
+ m && T(t), d && d.d(), z && z.d(), w && w.d(), p && p.d();
908
+ }
909
+ };
910
+ }
911
+ function ei(i) {
912
+ let t, e, r, n;
913
+ return {
914
+ c() {
915
+ t = F("div"), e = F("div"), e.innerHTML = '<div class="ph-col-12 svelte-m5izi2" part="ph-col-12"><div class="ph-picture svelte-m5izi2" part="ph-picture"></div> <div class="ph-row svelte-m5izi2" part="ph-row"><div class="ph-col-6 big svelte-m5izi2" part="ph-col-6 big"></div> <div class="ph-col-4 empty big svelte-m5izi2" part="ph-col-4 empty big"></div> <div class="ph-col-4 svelte-m5izi2" part="ph-col-4"></div> <div class="ph-col-8 empty svelte-m5izi2" part="ph-col-8 empty"></div> <div class="ph-col-6 svelte-m5izi2" part="ph-col-6"></div> <div class="ph-col-6 empty svelte-m5izi2" part="ph-col-6 empty"></div> <div class="ph-col-12 svelte-m5izi2" part="ph-col-12"></div></div></div>', f(e, "class", "ph-item svelte-m5izi2"), f(e, "part", "ph-item"), f(t, "class", r = "TournamentCard " + /*maxwidth*/
916
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
917
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
918
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2"), f(t, "part", n = "TournamentCard " + /*maxwidth*/
919
+ (i[6] ? "CardMaxWidth" : "") + /*fullsize*/
920
+ (i[7] ? "CardFullSize" : "") + " " + /*isChanging*/
921
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
922
+ (i[30] ? "elementToFadeOut" : "elementToFadeIn"));
923
+ },
924
+ m(o, s) {
925
+ _(o, t, s), y(t, e);
926
+ },
927
+ p(o, s) {
928
+ s[0] & /*maxwidth, fullsize, isChanging*/
929
+ 1073742016 && r !== (r = "TournamentCard " + /*maxwidth*/
930
+ (o[6] ? "CardMaxWidth" : "") + /*fullsize*/
931
+ (o[7] ? "CardFullSize" : "") + " " + /*isChanging*/
932
+ (o[30] ? "elementToFadeOut" : "elementToFadeIn") + " svelte-m5izi2") && f(t, "class", r), s[0] & /*maxwidth, fullsize, isChanging*/
933
+ 1073742016 && n !== (n = "TournamentCard " + /*maxwidth*/
934
+ (o[6] ? "CardMaxWidth" : "") + /*fullsize*/
935
+ (o[7] ? "CardFullSize" : "") + " " + /*isChanging*/
936
+ (o[30] ? "elementToFadeOut" : "elementToFadeIn") + " " + /*isChanging*/
937
+ (o[30] ? "elementToFadeOut" : "elementToFadeIn")) && f(t, "part", n);
938
+ },
939
+ d(o) {
940
+ o && T(t);
941
+ }
942
+ };
943
+ }
944
+ function Ve(i) {
945
+ let t, e, r = (
946
+ /*tourid*/
947
+ i[23] && Xe(i)
948
+ );
949
+ return {
950
+ c() {
951
+ r && r.c(), t = B(), e = F("casino-tournaments-thumbnail-duration"), u(
952
+ e,
953
+ "clientstyling",
954
+ /*clientstyling*/
955
+ i[10]
956
+ ), u(
957
+ e,
958
+ "clientstylingurl",
959
+ /*clientstylingurl*/
960
+ i[11]
961
+ ), u(
962
+ e,
963
+ "status",
964
+ /*status*/
965
+ i[22]
966
+ ), u(
967
+ e,
968
+ "startdate",
969
+ /*startdate*/
970
+ i[20]
971
+ ), u(
972
+ e,
973
+ "lang",
974
+ /*lang*/
975
+ i[8]
976
+ ), u(
977
+ e,
978
+ "enddate",
979
+ /*enddate*/
980
+ i[21]
981
+ ), u(e, "exportparts", "TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"), u(e, "class", "svelte-m5izi2");
982
+ },
983
+ m(n, o) {
984
+ r && r.m(n, o), _(n, t, o), _(n, e, o);
985
+ },
986
+ p(n, o) {
987
+ /*tourid*/
988
+ n[23] ? r ? r.p(n, o) : (r = Xe(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null), o[0] & /*clientstyling*/
989
+ 1024 && u(
990
+ e,
991
+ "clientstyling",
992
+ /*clientstyling*/
993
+ n[10]
994
+ ), o[0] & /*clientstylingurl*/
995
+ 2048 && u(
996
+ e,
997
+ "clientstylingurl",
998
+ /*clientstylingurl*/
999
+ n[11]
1000
+ ), o[0] & /*status*/
1001
+ 4194304 && u(
1002
+ e,
1003
+ "status",
1004
+ /*status*/
1005
+ n[22]
1006
+ ), o[0] & /*startdate*/
1007
+ 1048576 && u(
1008
+ e,
1009
+ "startdate",
1010
+ /*startdate*/
1011
+ n[20]
1012
+ ), o[0] & /*lang*/
1013
+ 256 && u(
1014
+ e,
1015
+ "lang",
1016
+ /*lang*/
1017
+ n[8]
1018
+ ), o[0] & /*enddate*/
1019
+ 2097152 && u(
1020
+ e,
1021
+ "enddate",
1022
+ /*enddate*/
1023
+ n[21]
1024
+ );
1025
+ },
1026
+ d(n) {
1027
+ n && (T(t), T(e)), r && r.d(n);
1028
+ }
1029
+ };
1030
+ }
1031
+ function Xe(i) {
1032
+ let t, e, r, n;
1033
+ return {
1034
+ c() {
1035
+ t = F("casino-tournaments-thumbnail-prizes"), u(
1036
+ t,
1037
+ "tourid",
1038
+ /*tourid*/
1039
+ i[23]
1040
+ ), u(
1041
+ t,
1042
+ "clientstyling",
1043
+ /*clientstyling*/
1044
+ i[10]
1045
+ ), u(
1046
+ t,
1047
+ "clientstylingurl",
1048
+ /*clientstylingurl*/
1049
+ i[11]
1050
+ ), u(t, "exportparts", "TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper"), u(t, "class", "svelte-m5izi2");
1051
+ },
1052
+ m(o, s) {
1053
+ _(o, t, s), r || (n = xt(e = /*sendTournamentPrizes*/
1054
+ i[36].call(
1055
+ null,
1056
+ t,
1057
+ /*tourid*/
1058
+ i[23]
1059
+ )), r = !0);
1060
+ },
1061
+ p(o, s) {
1062
+ s[0] & /*tourid*/
1063
+ 8388608 && u(
1064
+ t,
1065
+ "tourid",
1066
+ /*tourid*/
1067
+ o[23]
1068
+ ), s[0] & /*clientstyling*/
1069
+ 1024 && u(
1070
+ t,
1071
+ "clientstyling",
1072
+ /*clientstyling*/
1073
+ o[10]
1074
+ ), s[0] & /*clientstylingurl*/
1075
+ 2048 && u(
1076
+ t,
1077
+ "clientstylingurl",
1078
+ /*clientstylingurl*/
1079
+ o[11]
1080
+ ), e && It(e.update) && s[0] & /*tourid*/
1081
+ 8388608 && e.update.call(
1082
+ null,
1083
+ /*tourid*/
1084
+ o[23]
1085
+ );
1086
+ },
1087
+ d(o) {
1088
+ o && T(t), r = !1, n();
1089
+ }
1090
+ };
1091
+ }
1092
+ function ti(i) {
1093
+ let t, e = (
1094
+ /*$_*/
1095
+ i[31]("tournamentsThController.details") + ""
1096
+ ), r, n, o;
1097
+ return {
1098
+ c() {
1099
+ t = F("button"), r = O(e), f(t, "class", "DetailsLargeButton svelte-m5izi2"), f(t, "part", "DetailsLargeButton");
1100
+ },
1101
+ m(s, l) {
1102
+ _(s, t, l), y(t, r), n || (o = J(
1103
+ t,
1104
+ "click",
1105
+ /*click_handler_4*/
1106
+ i[50]
1107
+ ), n = !0);
1108
+ },
1109
+ p(s, l) {
1110
+ l[1] & /*$_*/
1111
+ 1 && e !== (e = /*$_*/
1112
+ s[31]("tournamentsThController.details") + "") && D(r, e);
1113
+ },
1114
+ d(s) {
1115
+ s && T(t), n = !1, o();
1116
+ }
1117
+ };
1118
+ }
1119
+ function ii(i) {
1120
+ let t, e, r = (
1121
+ /*showdetails*/
1122
+ i[3] == "true" && Ne(i)
1123
+ );
1124
+ function n(l, c) {
1125
+ return (
1126
+ /*userenrolled*/
1127
+ l[25] == !0 ? oi : ni
1128
+ );
1129
+ }
1130
+ let o = n(i), s = o(i);
1131
+ return {
1132
+ c() {
1133
+ r && r.c(), t = B(), s.c(), e = et();
1134
+ },
1135
+ m(l, c) {
1136
+ r && r.m(l, c), _(l, t, c), s.m(l, c), _(l, e, c);
1137
+ },
1138
+ p(l, c) {
1139
+ /*showdetails*/
1140
+ l[3] == "true" ? r ? r.p(l, c) : (r = Ne(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null), o === (o = n(l)) && s ? s.p(l, c) : (s.d(1), s = o(l), s && (s.c(), s.m(e.parentNode, e)));
1141
+ },
1142
+ d(l) {
1143
+ l && (T(t), T(e)), r && r.d(l), s.d(l);
1144
+ }
1145
+ };
1146
+ }
1147
+ function ri(i) {
1148
+ let t, e = (
1149
+ /*$_*/
1150
+ i[31]("tournamentsThController.login") + ""
1151
+ ), r, n, o, s = (
1152
+ /*$_*/
1153
+ i[31]("tournamentsThController.register") + ""
1154
+ ), l, c, h;
1155
+ return {
1156
+ c() {
1157
+ t = F("button"), r = O(e), n = B(), o = F("button"), l = O(s), f(t, "class", "LoginButton svelte-m5izi2"), f(t, "part", "LoginButton"), f(o, "class", "RegisterButton svelte-m5izi2"), f(o, "part", "RegisterButton");
1158
+ },
1159
+ m(d, b) {
1160
+ _(d, t, b), y(t, r), _(d, n, b), _(d, o, b), y(o, l), c || (h = [
1161
+ J(
1162
+ t,
1163
+ "click",
1164
+ /*click_handler*/
1165
+ i[46]
1166
+ ),
1167
+ J(
1168
+ o,
1169
+ "click",
1170
+ /*click_handler_1*/
1171
+ i[47]
1172
+ )
1173
+ ], c = !0);
1174
+ },
1175
+ p(d, b) {
1176
+ b[1] & /*$_*/
1177
+ 1 && e !== (e = /*$_*/
1178
+ d[31]("tournamentsThController.login") + "") && D(r, e), b[1] & /*$_*/
1179
+ 1 && s !== (s = /*$_*/
1180
+ d[31]("tournamentsThController.register") + "") && D(l, s);
1181
+ },
1182
+ d(d) {
1183
+ d && (T(t), T(n), T(o)), c = !1, Mt(h);
1184
+ }
1185
+ };
1186
+ }
1187
+ function Ne(i) {
1188
+ let t, e = (
1189
+ /*$_*/
1190
+ i[31]("tournamentsThController.details") + ""
1191
+ ), r, n, o;
1192
+ return {
1193
+ c() {
1194
+ t = F("button"), r = O(e), f(t, "class", "DetailsButton svelte-m5izi2"), f(t, "part", "DetailsButton");
1195
+ },
1196
+ m(s, l) {
1197
+ _(s, t, l), y(t, r), n || (o = J(
1198
+ t,
1199
+ "click",
1200
+ /*click_handler_2*/
1201
+ i[48]
1202
+ ), n = !0);
1203
+ },
1204
+ p(s, l) {
1205
+ l[1] & /*$_*/
1206
+ 1 && e !== (e = /*$_*/
1207
+ s[31]("tournamentsThController.details") + "") && D(r, e);
1208
+ },
1209
+ d(s) {
1210
+ s && T(t), n = !1, o();
1211
+ }
1212
+ };
1213
+ }
1214
+ function ni(i) {
1215
+ let t, e, r, n, o;
1216
+ function s(h, d) {
1217
+ return (
1218
+ /*joinButtonLoading*/
1219
+ h[15] == !0 ? li : si
1220
+ );
1221
+ }
1222
+ let l = s(i), c = l(i);
1223
+ return {
1224
+ c() {
1225
+ t = F("button"), c.c(), f(t, "class", e = "JoinButton " + /*fullsize*/
1226
+ (i[7] ? "JoinButtonFullSize" : "") + " svelte-m5izi2"), f(t, "part", r = "JoinButton " + /*fullsize*/
1227
+ (i[7] ? "JoinButtonFullSize" : "")), t.disabled = /*errorJoin*/
1228
+ i[16];
1229
+ },
1230
+ m(h, d) {
1231
+ _(h, t, d), c.m(t, null), n || (o = J(
1232
+ t,
1233
+ "click",
1234
+ /*click_handler_3*/
1235
+ i[49]
1236
+ ), n = !0);
1237
+ },
1238
+ p(h, d) {
1239
+ l === (l = s(h)) && c ? c.p(h, d) : (c.d(1), c = l(h), c && (c.c(), c.m(t, null))), d[0] & /*fullsize*/
1240
+ 128 && e !== (e = "JoinButton " + /*fullsize*/
1241
+ (h[7] ? "JoinButtonFullSize" : "") + " svelte-m5izi2") && f(t, "class", e), d[0] & /*fullsize*/
1242
+ 128 && r !== (r = "JoinButton " + /*fullsize*/
1243
+ (h[7] ? "JoinButtonFullSize" : "")) && f(t, "part", r), d[0] & /*errorJoin*/
1244
+ 65536 && (t.disabled = /*errorJoin*/
1245
+ h[16]);
1246
+ },
1247
+ d(h) {
1248
+ h && T(t), c.d(), n = !1, o();
1249
+ }
1250
+ };
1251
+ }
1252
+ function oi(i) {
1253
+ let t, e = (
1254
+ /*showdetails*/
1255
+ i[3] == "true" && Ze(i)
1256
+ );
1257
+ return {
1258
+ c() {
1259
+ e && e.c(), t = et();
1260
+ },
1261
+ m(r, n) {
1262
+ e && e.m(r, n), _(r, t, n);
1263
+ },
1264
+ p(r, n) {
1265
+ /*showdetails*/
1266
+ r[3] == "true" ? e ? e.p(r, n) : (e = Ze(r), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
1267
+ },
1268
+ d(r) {
1269
+ r && T(t), e && e.d(r);
1270
+ }
1271
+ };
1272
+ }
1273
+ function si(i) {
1274
+ let t, e = (
1275
+ /*$_*/
1276
+ i[31]("tournamentsThController.join") + ""
1277
+ ), r, n, o, s, l, c, h, d;
1278
+ return {
1279
+ c() {
1280
+ t = F("span"), r = O(e), n = B(), o = I("svg"), s = I("defs"), l = I("style"), c = O(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"), h = I("g"), d = I("path"), f(t, "part", "JoinButtonSpan"), f(t, "class", "svelte-m5izi2"), f(l, "class", "svelte-m5izi2"), f(s, "class", "svelte-m5izi2"), f(d, "class", "a svelte-m5izi2"), f(d, "part", "a JoinButtonSvgA"), f(d, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"), f(d, "transform", "translate(26 26) rotate(180)"), f(h, "transform", "translate(26 26) rotate(180)"), f(h, "class", "svelte-m5izi2"), f(o, "part", "JoinButtonSvg"), f(o, "xmlns", "http://www.w3.org/2000/svg"), f(o, "width", "26"), f(o, "height", "26"), f(o, "viewBox", "0 0 26 26"), f(o, "class", "svelte-m5izi2");
1281
+ },
1282
+ m(b, k) {
1283
+ _(b, t, k), y(t, r), _(b, n, k), _(b, o, k), y(o, s), y(s, l), y(l, c), y(o, h), y(h, d);
1284
+ },
1285
+ p(b, k) {
1286
+ k[1] & /*$_*/
1287
+ 1 && e !== (e = /*$_*/
1288
+ b[31]("tournamentsThController.join") + "") && D(r, e);
1289
+ },
1290
+ d(b) {
1291
+ b && (T(t), T(n), T(o));
1292
+ }
1293
+ };
1294
+ }
1295
+ function li(i) {
1296
+ let t, e;
1297
+ return {
1298
+ c() {
1299
+ t = I("svg"), e = I("circle"), f(e, "cx", "20"), f(e, "cy", "20"), f(e, "r", "18"), f(e, "class", "svelte-m5izi2"), f(t, "class", "spinner svelte-m5izi2"), f(t, "part", "spinner");
1300
+ },
1301
+ m(r, n) {
1302
+ _(r, t, n), y(t, e);
1303
+ },
1304
+ p: he,
1305
+ d(r) {
1306
+ r && T(t);
1307
+ }
1308
+ };
1309
+ }
1310
+ function Ze(i) {
1311
+ let t, e = (
1312
+ /*$_*/
1313
+ i[31]("tournamentsThController.enrolled") + ""
1314
+ ), r;
1315
+ return {
1316
+ c() {
1317
+ t = F("button"), r = O(e), f(t, "class", "EnrolledButton svelte-m5izi2"), f(t, "part", "EnrolledButton"), t.disabled = !0;
1318
+ },
1319
+ m(n, o) {
1320
+ _(n, t, o), y(t, r);
1321
+ },
1322
+ p(n, o) {
1323
+ o[1] & /*$_*/
1324
+ 1 && e !== (e = /*$_*/
1325
+ n[31]("tournamentsThController.enrolled") + "") && D(r, e);
1326
+ },
1327
+ d(n) {
1328
+ n && T(t);
1329
+ }
1330
+ };
1331
+ }
1332
+ function Qe(i) {
1333
+ let t, e = (
1334
+ /*$_*/
1335
+ i[31]("tournamentsThController.joinerror") + ""
1336
+ ), r, n, o;
1337
+ return {
1338
+ c() {
1339
+ t = F("span"), r = O(e), n = B(), o = O(
1340
+ /*errorJoinText*/
1341
+ i[17]
1342
+ ), f(t, "class", "ErrorText svelte-m5izi2"), f(t, "part", "ErrorText");
1343
+ },
1344
+ m(s, l) {
1345
+ _(s, t, l), y(t, r), y(t, n), y(t, o);
1346
+ },
1347
+ p(s, l) {
1348
+ l[1] & /*$_*/
1349
+ 1 && e !== (e = /*$_*/
1350
+ s[31]("tournamentsThController.joinerror") + "") && D(r, e), l[0] & /*errorJoinText*/
1351
+ 131072 && D(
1352
+ o,
1353
+ /*errorJoinText*/
1354
+ s[17]
1355
+ );
1356
+ },
1357
+ d(s) {
1358
+ s && T(t);
1359
+ }
1360
+ };
1361
+ }
1362
+ function $e(i) {
1363
+ let t;
1364
+ return {
1365
+ c() {
1366
+ t = F("casino-tournaments-thumbnail-games-slider"), u(
1367
+ t,
1368
+ "clientstyling",
1369
+ /*clientstyling*/
1370
+ i[10]
1371
+ ), u(
1372
+ t,
1373
+ "clientstylingurl",
1374
+ /*clientstylingurl*/
1375
+ i[11]
1376
+ ), u(
1377
+ t,
1378
+ "tournamenturl",
1379
+ /*tournamenturl*/
1380
+ i[2]
1381
+ ), u(
1382
+ t,
1383
+ "lang",
1384
+ /*lang*/
1385
+ i[8]
1386
+ ), u(t, "scrollby", "2"), u(t, "exportparts", "TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton"), u(t, "class", "svelte-m5izi2");
1387
+ },
1388
+ m(e, r) {
1389
+ _(e, t, r);
1390
+ },
1391
+ p(e, r) {
1392
+ r[0] & /*clientstyling*/
1393
+ 1024 && u(
1394
+ t,
1395
+ "clientstyling",
1396
+ /*clientstyling*/
1397
+ e[10]
1398
+ ), r[0] & /*clientstylingurl*/
1399
+ 2048 && u(
1400
+ t,
1401
+ "clientstylingurl",
1402
+ /*clientstylingurl*/
1403
+ e[11]
1404
+ ), r[0] & /*tournamenturl*/
1405
+ 4 && u(
1406
+ t,
1407
+ "tournamenturl",
1408
+ /*tournamenturl*/
1409
+ e[2]
1410
+ ), r[0] & /*lang*/
1411
+ 256 && u(
1412
+ t,
1413
+ "lang",
1414
+ /*lang*/
1415
+ e[8]
1416
+ );
1417
+ },
1418
+ d(e) {
1419
+ e && T(t);
1420
+ }
1421
+ };
1422
+ }
1423
+ function ai(i) {
1424
+ let t;
1425
+ function e(o, s) {
1426
+ if (
1427
+ /*isLoading*/
1428
+ o[14]
1429
+ ) return ei;
1430
+ if (
1431
+ /*title*/
1432
+ o[19]
1433
+ ) return $t;
1434
+ }
1435
+ let r = e(i), n = r && r(i);
1436
+ return {
1437
+ c() {
1438
+ t = F("div"), n && n.c(), f(t, "class", "svelte-m5izi2");
1439
+ },
1440
+ m(o, s) {
1441
+ _(o, t, s), n && n.m(t, null), i[51](t);
1442
+ },
1443
+ p(o, s) {
1444
+ r === (r = e(o)) && n ? n.p(o, s) : (n && n.d(1), n = r && r(o), n && (n.c(), n.m(t, null)));
1445
+ },
1446
+ i: he,
1447
+ o: he,
1448
+ d(o) {
1449
+ o && T(t), n && n.d(), i[51](null);
1450
+ }
1451
+ };
1452
+ }
1453
+ function ui(i, t, e) {
1454
+ let r;
1455
+ Pt(i, At, (a) => e(31, r = a));
1456
+ let { session: n = "" } = t, { userid: o = "" } = t, { tournamenturl: s = "" } = t, { touridx: l } = t, { endpoint: c = "" } = t, { showdetails: h = "" } = t, { showslider: d = "" } = t, { showenrolled: b = "" } = t, { maxwidth: k = "" } = t, { fullsize: z = "" } = t, { lang: w = "" } = t, { loginevent: p = "" } = t, { registerevent: m = "" } = t, { loginurl: v = "" } = t, { registerurl: H = "" } = t, { currency: te = "" } = t, { keepbrowsercontext: ge = "false" } = t, { clientstyling: q = "" } = t, { clientstylingurl: G = "" } = t, { translationurl: Y = "" } = t, x, M = !1, K = "", L = !0, be = window.navigator.userAgent, V = !1, X = !1, ze = "There was an error while trying to join the tournament", ie = !1, we, ye, _e, R, j, Te, re, ke, Se, Fe = [], ne = [], Ce = "#", oe, N = !1;
1457
+ Zt({ withLocale: "en", translations: {} });
1458
+ const ct = () => {
1459
+ fetch(Y).then((g) => g.json()).then((g) => {
1460
+ Object.keys(g).forEach((C) => {
1461
+ Ye(C, g[C]);
1462
+ });
1463
+ }).catch((g) => {
1464
+ console.log(g);
1465
+ });
1466
+ };
1467
+ Object.keys(Ke).forEach((a) => {
1468
+ Ye(a, Ke[a]);
1469
+ });
1470
+ const Ee = (a) => {
1471
+ ft(a), xe(a), De(this, j);
1472
+ }, je = (a) => {
1473
+ if (a.data && a.data.type == "UserSessionID" && (e(13, M = !0), K = a.data.session), a.data.type == "UpdateTournamentView") {
1474
+ let g = a.data.tournamentData;
1475
+ if (j && j != g.id)
1476
+ return;
1477
+ Ee(g);
1478
+ }
1479
+ if (a.data && a.data.type == `UpdateSingleTournament_${l}`) {
1480
+ let g = a.data.tournamentData, C = l < 4 ? l * 100 : Math.random() * 300 + 300;
1481
+ e(30, N = l == 1), setTimeout(
1482
+ () => {
1483
+ e(30, N = !0), e(23, j = g.id), Ee(g);
1484
+ },
1485
+ C
1486
+ ), setTimeout(
1487
+ () => {
1488
+ e(30, N = !1);
1489
+ },
1490
+ C + 200
1491
+ );
1492
+ }
1493
+ }, ft = (a) => {
1494
+ a.state != R && (e(22, R = a.state), window.postMessage(
1495
+ {
1496
+ type: `TournamentStatus_${j}`,
1497
+ status: R
1498
+ },
1499
+ window.location.href
1500
+ ));
1501
+ }, Be = () => {
1502
+ p && (window.postMessage({ type: p, transition: "Login" }, window.location.href), typeof gtag == "function" && gtag("event", "OpenLoginModal", {
1503
+ context: "TournamentsThumbnailController"
1504
+ })), v && (window.location = v);
1505
+ }, Pe = () => {
1506
+ m && (window.postMessage(
1507
+ {
1508
+ type: m,
1509
+ transition: "Register"
1510
+ },
1511
+ window.location.href
1512
+ ), typeof gtag == "function" && gtag("event", "OpenRegisterModal", {
1513
+ context: "TournamentsThumbnailController"
1514
+ })), H && (window.location = H);
1515
+ }, se = (a) => {
1516
+ window.postMessage(
1517
+ {
1518
+ type: "TournamentDetailsClicked",
1519
+ tournamentId: a,
1520
+ showLeaderboard: !0
1521
+ },
1522
+ window.location.href
1523
+ );
1524
+ }, Oe = (a, g) => ae(this, null, function* () {
1525
+ var Ae;
1526
+ e(16, X = !1), e(18, ie = !1), window.postMessage(
1527
+ {
1528
+ type: "TournamentJoinRequest",
1529
+ tournamentId: a
1530
+ },
1531
+ window.location.href
1532
+ ), e(15, V = !0);
1533
+ let C = new URL(`${c}/v1/bonus/claim`), Z = new Headers(), A = {};
1534
+ C.searchParams.append("language", w), C.searchParams.append("platform", Ge(be)), Z.append("Content-Type", "application/json"), Z.append("X-SessionID", K), g && g.length >= 1 && (A = {
1535
+ language: w,
1536
+ bonusCode: g[0].code,
1537
+ currency: te,
1538
+ type: "tournament"
1539
+ });
1540
+ let Tt = {
1541
+ method: "PUT",
1542
+ headers: Z,
1543
+ body: JSON.stringify(A)
1544
+ };
1545
+ const Ie = () => {
1546
+ e(15, V = !1), e(25, re = !0);
1547
+ }, le = (E) => {
1548
+ e(15, V = !1), E && e(17, ze = E), e(16, X = !0);
1549
+ }, U = yield ae(this, null, function* () {
1550
+ let E;
1551
+ try {
1552
+ E = yield fetch(C, Tt), E = yield E.json();
1553
+ } catch (fi) {
1554
+ le();
1555
+ }
1556
+ return E;
1557
+ });
1558
+ if (U)
1559
+ if (U.success == !0)
1560
+ Ie();
1561
+ else if (U.errorMessage.match("VersionMismatchException")) {
1562
+ let E;
1563
+ E = yield fetch(`${c}/tournaments/${j}`, { headers: { "X-SessionID": n } }), E = yield E.json(), (Ae = E == null ? void 0 : E.item) != null && Ae.playerEnrolled ? Ie() : (le(U.errorMessage), e(18, ie = !0), e(16, X = !1));
1564
+ } else
1565
+ le(U.errorMessage);
1566
+ }), De = (a, g) => {
1567
+ window.postMessage(
1568
+ {
1569
+ type: `TournamentPrizes_${g}`,
1570
+ prizes: Fe
1571
+ },
1572
+ window.location.href
1573
+ );
1574
+ }, xe = (a) => {
1575
+ a && (e(19, we = a.nameOrTitle || ""), e(20, ye = a.startTime), e(21, _e = a.endTime), e(22, R = a.state), e(23, j = a.id), e(24, Te = a.thumbnail), e(25, re = a.playerEnrolled || !1), e(26, ke = a.scoreCriteria), e(27, Se = a.minBetCount), Fe = a.prizes, e(28, ne = a.wallets || []), e(29, Ce = a.termsUrl || "#"));
1576
+ }, mt = (a) => {
1577
+ e(14, L = !0);
1578
+ let g = new URL(a), C = new Headers();
1579
+ g.searchParams.append("language", w), g.searchParams.append("platform", Ge(be)), M && C.append("X-SessionID", K), fetch(g, { method: "GET", headers: C }).then((A) => A.json()).then((A) => {
1580
+ e(14, L = !1), xe(A.item);
1581
+ });
1582
+ }, dt = () => {
1583
+ n.length > 0 && n != "false" ? (K = n, e(13, M = !0)) : e(13, M = !1);
1584
+ }, ht = () => {
1585
+ e(14, L = !0), mt(s);
1586
+ }, pt = () => {
1587
+ let a = document.createElement("style");
1588
+ a.innerHTML = q, x.appendChild(a);
1589
+ }, vt = () => {
1590
+ let a = new URL(G), g = document.createElement("style");
1591
+ fetch(a.href).then((C) => C.text()).then((C) => {
1592
+ g.innerHTML = C, setTimeout(
1593
+ () => {
1594
+ x.appendChild(g);
1595
+ },
1596
+ 1
1597
+ ), setTimeout(
1598
+ () => {
1599
+ },
1600
+ 500
1601
+ );
1602
+ });
1603
+ };
1604
+ Ot(() => (e(14, L = !1), window.addEventListener("message", je, !1), () => {
1605
+ window.removeEventListener("message", je);
1606
+ }));
1607
+ const gt = () => Be(), bt = () => Pe(), zt = () => se(j), wt = () => Oe(j, ne), yt = () => se(j);
1608
+ function _t(a) {
1609
+ Dt[a ? "unshift" : "push"](() => {
1610
+ x = a, e(12, x);
1611
+ });
1612
+ }
1613
+ return i.$$set = (a) => {
1614
+ "session" in a && e(0, n = a.session), "userid" in a && e(1, o = a.userid), "tournamenturl" in a && e(2, s = a.tournamenturl), "touridx" in a && e(37, l = a.touridx), "endpoint" in a && e(38, c = a.endpoint), "showdetails" in a && e(3, h = a.showdetails), "showslider" in a && e(4, d = a.showslider), "showenrolled" in a && e(5, b = a.showenrolled), "maxwidth" in a && e(6, k = a.maxwidth), "fullsize" in a && e(7, z = a.fullsize), "lang" in a && e(8, w = a.lang), "loginevent" in a && e(39, p = a.loginevent), "registerevent" in a && e(40, m = a.registerevent), "loginurl" in a && e(41, v = a.loginurl), "registerurl" in a && e(42, H = a.registerurl), "currency" in a && e(43, te = a.currency), "keepbrowsercontext" in a && e(9, ge = a.keepbrowsercontext), "clientstyling" in a && e(10, q = a.clientstyling), "clientstylingurl" in a && e(11, G = a.clientstylingurl), "translationurl" in a && e(44, Y = a.translationurl);
1615
+ }, i.$$.update = () => {
1616
+ i.$$.dirty[0] & /*customStylingContainer, clientstyling*/
1617
+ 5120 && x && q && pt(), i.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
1618
+ 6144 && x && G && vt(), i.$$.dirty[1] & /*translationurl*/
1619
+ 8192 && Y && ct(), i.$$.dirty[0] & /*session*/
1620
+ 1 && n && dt(), i.$$.dirty[0] & /*tournamenturl, lang*/
1621
+ 260 && e(45, oe = s && w), i.$$.dirty[1] & /*initialParameters*/
1622
+ 16384 && oe && ht();
1623
+ }, [
1624
+ n,
1625
+ o,
1626
+ s,
1627
+ h,
1628
+ d,
1629
+ b,
1630
+ k,
1631
+ z,
1632
+ w,
1633
+ ge,
1634
+ q,
1635
+ G,
1636
+ x,
1637
+ M,
1638
+ L,
1639
+ V,
1640
+ X,
1641
+ ze,
1642
+ ie,
1643
+ we,
1644
+ ye,
1645
+ _e,
1646
+ R,
1647
+ j,
1648
+ Te,
1649
+ re,
1650
+ ke,
1651
+ Se,
1652
+ ne,
1653
+ Ce,
1654
+ N,
1655
+ r,
1656
+ Be,
1657
+ Pe,
1658
+ se,
1659
+ Oe,
1660
+ De,
1661
+ l,
1662
+ c,
1663
+ p,
1664
+ m,
1665
+ v,
1666
+ H,
1667
+ te,
1668
+ Y,
1669
+ oe,
1670
+ gt,
1671
+ bt,
1672
+ zt,
1673
+ wt,
1674
+ yt,
1675
+ _t
1676
+ ];
1677
+ }
1678
+ class ut extends Ft {
1679
+ constructor(t) {
1680
+ super(), Ct(
1681
+ this,
1682
+ t,
1683
+ ui,
1684
+ ai,
1685
+ jt,
1686
+ {
1687
+ session: 0,
1688
+ userid: 1,
1689
+ tournamenturl: 2,
1690
+ touridx: 37,
1691
+ endpoint: 38,
1692
+ showdetails: 3,
1693
+ showslider: 4,
1694
+ showenrolled: 5,
1695
+ maxwidth: 6,
1696
+ fullsize: 7,
1697
+ lang: 8,
1698
+ loginevent: 39,
1699
+ registerevent: 40,
1700
+ loginurl: 41,
1701
+ registerurl: 42,
1702
+ currency: 43,
1703
+ keepbrowsercontext: 9,
1704
+ clientstyling: 10,
1705
+ clientstylingurl: 11,
1706
+ translationurl: 44
1707
+ },
1708
+ Qt,
1709
+ [-1, -1, -1]
1710
+ );
1711
+ }
1712
+ get session() {
1713
+ return this.$$.ctx[0];
1714
+ }
1715
+ set session(t) {
1716
+ this.$$set({ session: t }), S();
1717
+ }
1718
+ get userid() {
1719
+ return this.$$.ctx[1];
1720
+ }
1721
+ set userid(t) {
1722
+ this.$$set({ userid: t }), S();
1723
+ }
1724
+ get tournamenturl() {
1725
+ return this.$$.ctx[2];
1726
+ }
1727
+ set tournamenturl(t) {
1728
+ this.$$set({ tournamenturl: t }), S();
1729
+ }
1730
+ get touridx() {
1731
+ return this.$$.ctx[37];
1732
+ }
1733
+ set touridx(t) {
1734
+ this.$$set({ touridx: t }), S();
1735
+ }
1736
+ get endpoint() {
1737
+ return this.$$.ctx[38];
1738
+ }
1739
+ set endpoint(t) {
1740
+ this.$$set({ endpoint: t }), S();
1741
+ }
1742
+ get showdetails() {
1743
+ return this.$$.ctx[3];
1744
+ }
1745
+ set showdetails(t) {
1746
+ this.$$set({ showdetails: t }), S();
1747
+ }
1748
+ get showslider() {
1749
+ return this.$$.ctx[4];
1750
+ }
1751
+ set showslider(t) {
1752
+ this.$$set({ showslider: t }), S();
1753
+ }
1754
+ get showenrolled() {
1755
+ return this.$$.ctx[5];
1756
+ }
1757
+ set showenrolled(t) {
1758
+ this.$$set({ showenrolled: t }), S();
1759
+ }
1760
+ get maxwidth() {
1761
+ return this.$$.ctx[6];
1762
+ }
1763
+ set maxwidth(t) {
1764
+ this.$$set({ maxwidth: t }), S();
1765
+ }
1766
+ get fullsize() {
1767
+ return this.$$.ctx[7];
1768
+ }
1769
+ set fullsize(t) {
1770
+ this.$$set({ fullsize: t }), S();
1771
+ }
1772
+ get lang() {
1773
+ return this.$$.ctx[8];
1774
+ }
1775
+ set lang(t) {
1776
+ this.$$set({ lang: t }), S();
1777
+ }
1778
+ get loginevent() {
1779
+ return this.$$.ctx[39];
1780
+ }
1781
+ set loginevent(t) {
1782
+ this.$$set({ loginevent: t }), S();
1783
+ }
1784
+ get registerevent() {
1785
+ return this.$$.ctx[40];
1786
+ }
1787
+ set registerevent(t) {
1788
+ this.$$set({ registerevent: t }), S();
1789
+ }
1790
+ get loginurl() {
1791
+ return this.$$.ctx[41];
1792
+ }
1793
+ set loginurl(t) {
1794
+ this.$$set({ loginurl: t }), S();
1795
+ }
1796
+ get registerurl() {
1797
+ return this.$$.ctx[42];
1798
+ }
1799
+ set registerurl(t) {
1800
+ this.$$set({ registerurl: t }), S();
1801
+ }
1802
+ get currency() {
1803
+ return this.$$.ctx[43];
1804
+ }
1805
+ set currency(t) {
1806
+ this.$$set({ currency: t }), S();
1807
+ }
1808
+ get keepbrowsercontext() {
1809
+ return this.$$.ctx[9];
1810
+ }
1811
+ set keepbrowsercontext(t) {
1812
+ this.$$set({ keepbrowsercontext: t }), S();
1813
+ }
1814
+ get clientstyling() {
1815
+ return this.$$.ctx[10];
1816
+ }
1817
+ set clientstyling(t) {
1818
+ this.$$set({ clientstyling: t }), S();
1819
+ }
1820
+ get clientstylingurl() {
1821
+ return this.$$.ctx[11];
1822
+ }
1823
+ set clientstylingurl(t) {
1824
+ this.$$set({ clientstylingurl: t }), S();
1825
+ }
1826
+ get translationurl() {
1827
+ return this.$$.ctx[44];
1828
+ }
1829
+ set translationurl(t) {
1830
+ this.$$set({ translationurl: t }), S();
1831
+ }
1832
+ }
1833
+ Et(ut, { session: {}, userid: {}, tournamenturl: {}, touridx: {}, endpoint: {}, showdetails: {}, showslider: {}, showenrolled: {}, maxwidth: {}, fullsize: {}, lang: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
1834
+ const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1835
+ __proto__: null,
1836
+ default: ut
1837
+ }, Symbol.toStringTag, { value: "Module" }));
1838
+ export {
1839
+ hi as C,
1840
+ Ge as g
1841
+ };