@everymatrix/casino-tournaments-thumbnail-controller 1.87.11 → 1.87.12

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.
@@ -87,13 +87,13 @@ function ye(n, t, e) {
87
87
  function B(n) {
88
88
  return typeof n == "function";
89
89
  }
90
- function rt(n) {
90
+ function it(n) {
91
91
  var t = function(r) {
92
92
  Error.call(r), r.stack = new Error().stack;
93
93
  }, e = n(t);
94
94
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
95
95
  }
96
- var he = rt(function(n) {
96
+ var he = it(function(n) {
97
97
  return function(e) {
98
98
  n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
99
99
  ` + e.map(function(r, i) {
@@ -150,7 +150,7 @@ var re = function() {
150
150
  for (var d = be(c), _ = d.next(); !_.done; _ = d.next()) {
151
151
  var m = _.value;
152
152
  try {
153
- Je(m);
153
+ We(m);
154
154
  } catch (b) {
155
155
  o = o != null ? o : [], b instanceof he ? o = ye(ye([], we(o)), we(b.errors)) : o.push(b);
156
156
  }
@@ -173,7 +173,7 @@ var re = function() {
173
173
  var e;
174
174
  if (t && t !== this)
175
175
  if (this.closed)
176
- Je(t);
176
+ We(t);
177
177
  else {
178
178
  if (t instanceof n) {
179
179
  if (t.closed || t._hasParent(this))
@@ -198,11 +198,11 @@ var re = function() {
198
198
  var t = new n();
199
199
  return t.closed = !0, t;
200
200
  }(), n;
201
- }(), it = re.EMPTY;
202
- function ot(n) {
201
+ }(), ot = re.EMPTY;
202
+ function st(n) {
203
203
  return n instanceof re || n && "closed" in n && B(n.remove) && B(n.add) && B(n.unsubscribe);
204
204
  }
205
- function Je(n) {
205
+ function We(n) {
206
206
  B(n) ? n() : n.unsubscribe();
207
207
  }
208
208
  var Lt = {
@@ -223,16 +223,16 @@ function Mt(n) {
223
223
  throw n;
224
224
  });
225
225
  }
226
- function We() {
226
+ function He() {
227
227
  }
228
228
  function te(n) {
229
229
  n();
230
230
  }
231
- var st = function(n) {
231
+ var at = function(n) {
232
232
  J(t, n);
233
233
  function t(e) {
234
234
  var r = n.call(this) || this;
235
- return r.isStopped = !1, e ? (r.destination = e, ot(e) && e.add(r)) : r.destination = Jt, r;
235
+ return r.isStopped = !1, e ? (r.destination = e, st(e) && e.add(r)) : r.destination = Jt, r;
236
236
  }
237
237
  return t.create = function(e, r, i) {
238
238
  return new _e(e, r, i);
@@ -301,7 +301,7 @@ var st = function(n) {
301
301
  } : s = e, o.destination = new Rt(s), o;
302
302
  }
303
303
  return t;
304
- }(st);
304
+ }(at);
305
305
  function ee(n) {
306
306
  Mt(n);
307
307
  }
@@ -310,9 +310,9 @@ function Ut(n) {
310
310
  }
311
311
  var Jt = {
312
312
  closed: !0,
313
- next: We,
313
+ next: He,
314
314
  error: Ut,
315
- complete: We
315
+ complete: He
316
316
  }, Wt = function() {
317
317
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
318
318
  }();
@@ -326,7 +326,7 @@ function Gt(n) {
326
326
  }, e);
327
327
  };
328
328
  }
329
- var He = function() {
329
+ var Ge = function() {
330
330
  function n(t) {
331
331
  t && (this._subscribe = t);
332
332
  }
@@ -347,7 +347,7 @@ var He = function() {
347
347
  }
348
348
  }, n.prototype.forEach = function(t, e) {
349
349
  var r = this;
350
- return e = Ge(e), new e(function(i, o) {
350
+ return e = Ne(e), new e(function(i, o) {
351
351
  var s = new _e({
352
352
  next: function(l) {
353
353
  try {
@@ -372,7 +372,7 @@ var He = function() {
372
372
  return Gt(t)(this);
373
373
  }, n.prototype.toPromise = function(t) {
374
374
  var e = this;
375
- return t = Ge(t), new t(function(r, i) {
375
+ return t = Ne(t), new t(function(r, i) {
376
376
  var o;
377
377
  e.subscribe(function(s) {
378
378
  return o = s;
@@ -386,7 +386,7 @@ var He = function() {
386
386
  return new n(t);
387
387
  }, n;
388
388
  }();
389
- function Ge(n) {
389
+ function Ne(n) {
390
390
  var t;
391
391
  return (t = n != null ? n : Lt.Promise) !== null && t !== void 0 ? t : Promise;
392
392
  }
@@ -394,20 +394,20 @@ function Nt(n) {
394
394
  return n && B(n.next) && B(n.error) && B(n.complete);
395
395
  }
396
396
  function qt(n) {
397
- return n && n instanceof st || Nt(n) && ot(n);
397
+ return n && n instanceof at || Nt(n) && st(n);
398
398
  }
399
- var Xt = rt(function(n) {
399
+ var Xt = it(function(n) {
400
400
  return function() {
401
401
  n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
402
402
  };
403
- }), at = function(n) {
403
+ }), lt = function(n) {
404
404
  J(t, n);
405
405
  function t() {
406
406
  var e = n.call(this) || this;
407
407
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
408
408
  }
409
409
  return t.prototype.lift = function(e) {
410
- var r = new Ne(this, this);
410
+ var r = new qe(this, this);
411
411
  return r.operator = e, r;
412
412
  }, t.prototype._throwIfClosed = function() {
413
413
  if (this.closed)
@@ -468,19 +468,19 @@ var Xt = rt(function(n) {
468
468
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
469
469
  }, t.prototype._innerSubscribe = function(e) {
470
470
  var r = this, i = this, o = i.hasError, s = i.isStopped, l = i.observers;
471
- return o || s ? it : (this.currentObservers = null, l.push(e), new re(function() {
471
+ return o || s ? ot : (this.currentObservers = null, l.push(e), new re(function() {
472
472
  r.currentObservers = null, ve(l, e);
473
473
  }));
474
474
  }, t.prototype._checkFinalizedStatuses = function(e) {
475
475
  var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
476
476
  i ? e.error(o) : s && e.complete();
477
477
  }, t.prototype.asObservable = function() {
478
- var e = new He();
478
+ var e = new Ge();
479
479
  return e.source = this, e;
480
480
  }, t.create = function(e, r) {
481
- return new Ne(e, r);
481
+ return new qe(e, r);
482
482
  }, t;
483
- }(He), Ne = function(n) {
483
+ }(Ge), qe = function(n) {
484
484
  J(t, n);
485
485
  function t(e, r) {
486
486
  var i = n.call(this) || this;
@@ -497,17 +497,17 @@ var Xt = rt(function(n) {
497
497
  (r = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || r === void 0 || r.call(e);
498
498
  }, t.prototype._subscribe = function(e) {
499
499
  var r, i;
500
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && i !== void 0 ? i : it;
500
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && i !== void 0 ? i : ot;
501
501
  }, t;
502
- }(at), lt = {
502
+ }(lt), ut = {
503
503
  now: function() {
504
- return (lt.delegate || Date).now();
504
+ return (ut.delegate || Date).now();
505
505
  },
506
506
  delegate: void 0
507
507
  }, Yt = function(n) {
508
508
  J(t, n);
509
509
  function t(e, r, i) {
510
- e === void 0 && (e = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = lt);
510
+ e === void 0 && (e = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = ut);
511
511
  var o = n.call(this) || this;
512
512
  return o._bufferSize = e, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, r), o;
513
513
  }
@@ -527,29 +527,29 @@ var Xt = rt(function(n) {
527
527
  g && o.splice(0, g + 1);
528
528
  }
529
529
  }, t;
530
- }(at);
531
- const qe = [], Xe = {}, Kt = (n, t = 0) => {
532
- if (qe.indexOf(n) == -1) {
530
+ }(lt);
531
+ const Xe = [], Ye = {}, Kt = (n, t = 0) => {
532
+ if (Xe.indexOf(n) == -1) {
533
533
  const e = new Yt(t);
534
- Xe[n] = e, qe.push(n);
534
+ Ye[n] = e, Xe.push(n);
535
535
  }
536
- return Xe[n];
536
+ return Ye[n];
537
537
  };
538
538
  window.emWidgets = { topic: Kt };
539
- const Ye = (n) => n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
539
+ const Ke = (n) => n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
540
540
  String(Number.MAX_SAFE_INTEGER).length;
541
541
  function Vt({ withLocale: n, translations: t }) {
542
542
  pe.subscribe((e) => {
543
543
  e == null && (vt.set(t), pe.set(n));
544
544
  });
545
545
  }
546
- function Ke(n, t) {
546
+ function Ve(n, t) {
547
547
  _t(n, t);
548
548
  }
549
549
  function Zt(n) {
550
550
  pe.set(n);
551
551
  }
552
- const Ve = {
552
+ const Ze = {
553
553
  en: {
554
554
  login: "Log in",
555
555
  register: "Register",
@@ -702,7 +702,7 @@ if (typeof window != "undefined") {
702
702
  }
703
703
  };
704
704
  };
705
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-99PdtvAe.js").then(
705
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-Cgv7W0xp.js").then(
706
706
  ({ default: t }) => {
707
707
  !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
708
708
  "casino-tournaments-thumbnail-games-slider",
@@ -717,7 +717,7 @@ function Qt(n) {
717
717
  function $t(n) {
718
718
  let t, e, r, i, o, s, l, u = (
719
719
  /*tourid*/
720
- n[25] && Ze(n)
720
+ n[25] && Qe(n)
721
721
  );
722
722
  function g(m, b) {
723
723
  if (!/*isLoggedIn*/
@@ -738,10 +738,10 @@ function $t(n) {
738
738
  let h = g(n), c = h && h(n), d = (
739
739
  /*errorJoin*/
740
740
  (n[18] || /*errorJoinConcurrently*/
741
- n[20]) && et(n)
741
+ n[20]) && tt(n)
742
742
  ), _ = (
743
743
  /*showslider*/
744
- n[3] == "true" && tt(n)
744
+ n[3] == "true" && nt(n)
745
745
  );
746
746
  return {
747
747
  c() {
@@ -792,7 +792,7 @@ function $t(n) {
792
792
  },
793
793
  p(m, b) {
794
794
  /*tourid*/
795
- m[25] ? u ? u.p(m, b) : (u = Ze(m), u.c(), u.m(t.parentNode, t)) : u && (u.d(1), u = null), b[0] & /*clientstyling*/
795
+ m[25] ? u ? u.p(m, b) : (u = Qe(m), u.c(), u.m(t.parentNode, t)) : u && (u.d(1), u = null), b[0] & /*clientstyling*/
796
796
  1024 && f(
797
797
  e,
798
798
  "clientstyling",
@@ -842,8 +842,8 @@ function $t(n) {
842
842
  m[23]
843
843
  ), h === (h = g(m)) && c ? c.p(m, b) : (c && c.d(1), c = h && h(m), c && (c.c(), c.m(i, null))), /*errorJoin*/
844
844
  m[18] || /*errorJoinConcurrently*/
845
- m[20] ? d ? d.p(m, b) : (d = et(m), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null), /*showslider*/
846
- m[3] == "true" ? _ ? _.p(m, b) : (_ = tt(m), _.c(), _.m(l.parentNode, l)) : _ && (_.d(1), _ = null);
845
+ m[20] ? d ? d.p(m, b) : (d = tt(m), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null), /*showslider*/
846
+ m[3] == "true" ? _ ? _.p(m, b) : (_ = nt(m), _.c(), _.m(l.parentNode, l)) : _ && (_.d(1), _ = null);
847
847
  },
848
848
  d(m) {
849
849
  m && (w(t), w(e), w(r), w(i), w(o), w(s), w(l)), u && u.d(m), c && c.d(), d && d.d(m), _ && _.d(m);
@@ -865,7 +865,7 @@ function en(n) {
865
865
  }
866
866
  };
867
867
  }
868
- function Ze(n) {
868
+ function Qe(n) {
869
869
  let t, e, r, i;
870
870
  return {
871
871
  c() {
@@ -986,7 +986,7 @@ function tn(n) {
986
986
  function nn(n) {
987
987
  let t, e, r = (
988
988
  /*showdetails*/
989
- n[2] == "true" && Qe(n)
989
+ n[2] == "true" && $e(n)
990
990
  );
991
991
  function i(l, u) {
992
992
  return (
@@ -1004,7 +1004,7 @@ function nn(n) {
1004
1004
  },
1005
1005
  p(l, u) {
1006
1006
  /*showdetails*/
1007
- l[2] == "true" ? r ? r.p(l, u) : (r = Qe(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null), o === (o = i(l)) && s ? s.p(l, u) : (s.d(1), s = o(l), s && (s.c(), s.m(e.parentNode, e)));
1007
+ l[2] == "true" ? r ? r.p(l, u) : (r = $e(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null), o === (o = i(l)) && s ? s.p(l, u) : (s.d(1), s = o(l), s && (s.c(), s.m(e.parentNode, e)));
1008
1008
  },
1009
1009
  d(l) {
1010
1010
  l && (w(t), w(e)), r && r.d(l), s.d(l);
@@ -1051,7 +1051,7 @@ function rn(n) {
1051
1051
  }
1052
1052
  };
1053
1053
  }
1054
- function Qe(n) {
1054
+ function $e(n) {
1055
1055
  let t, e = (
1056
1056
  /*$_*/
1057
1057
  n[33]("details") + ""
@@ -1127,7 +1127,7 @@ function on(n) {
1127
1127
  function sn(n) {
1128
1128
  let t, e = (
1129
1129
  /*showdetails*/
1130
- n[2] == "true" && $e(n)
1130
+ n[2] == "true" && et(n)
1131
1131
  );
1132
1132
  return {
1133
1133
  c() {
@@ -1138,7 +1138,7 @@ function sn(n) {
1138
1138
  },
1139
1139
  p(r, i) {
1140
1140
  /*showdetails*/
1141
- r[2] == "true" ? e ? e.p(r, i) : (e = $e(r), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
1141
+ r[2] == "true" ? e ? e.p(r, i) : (e = et(r), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
1142
1142
  },
1143
1143
  d(r) {
1144
1144
  r && w(t), e && e.d(r);
@@ -1182,7 +1182,7 @@ function ln(n) {
1182
1182
  }
1183
1183
  };
1184
1184
  }
1185
- function $e(n) {
1185
+ function et(n) {
1186
1186
  let t, e = (
1187
1187
  /*$_*/
1188
1188
  n[33]("enrolled") + ""
@@ -1204,7 +1204,7 @@ function $e(n) {
1204
1204
  }
1205
1205
  };
1206
1206
  }
1207
- function et(n) {
1207
+ function tt(n) {
1208
1208
  let t, e = (
1209
1209
  /*$_*/
1210
1210
  n[33]("joinerror") + ""
@@ -1234,10 +1234,10 @@ function et(n) {
1234
1234
  }
1235
1235
  };
1236
1236
  }
1237
- function tt(n) {
1237
+ function nt(n) {
1238
1238
  let t, e, r = (
1239
1239
  /*isLoading*/
1240
- n[16] && nt()
1240
+ n[16] && rt()
1241
1241
  );
1242
1242
  return {
1243
1243
  c() {
@@ -1278,7 +1278,7 @@ function tt(n) {
1278
1278
  },
1279
1279
  p(i, o) {
1280
1280
  /*isLoading*/
1281
- i[16] ? r || (r = nt(), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null), o[0] & /*clientstyling*/
1281
+ i[16] ? r || (r = rt(), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null), o[0] & /*clientstyling*/
1282
1282
  1024 && f(
1283
1283
  e,
1284
1284
  "clientstyling",
@@ -1321,7 +1321,7 @@ function tt(n) {
1321
1321
  }
1322
1322
  };
1323
1323
  }
1324
- function nt(n) {
1324
+ function rt(n) {
1325
1325
  let t;
1326
1326
  return {
1327
1327
  c() {
@@ -1585,22 +1585,22 @@ function fn(n, t, e) {
1585
1585
  jt(n, Ot, (a) => e(33, r = a));
1586
1586
  let { session: i = "" } = t, { userid: o = "" } = t, { tournamenturl: s = "" } = t, { touridx: l } = t, { endpoint: u = "" } = t, { showdetails: g = "" } = t, { showslider: h = "" } = t, { showenrolled: c = "" } = t, { maxwidth: d = "" } = t, { fullsize: _ = "" } = t, { lang: m = "" } = t, { loginevent: b = "" } = t, { registerevent: W = "" } = t, { detailsevent: Te = "" } = t, { loginurl: H = "" } = t, { registerurl: G = "" } = t, { currency: ie = "" } = t, { keepbrowsercontext: Fe = "false" } = t, { clientstyling: N = "" } = t, { clientstylingurl: q = "" } = t, { translationurl: X = "" } = t, { tournamentinfo: Y } = t, { mbsource: K } = t, { tournamentid: oe } = t, z, D = !1, V = "", L = !0, Ee = window.navigator.userAgent, Z = !1, Q = !1, je = "There was an error while trying to join the tournament", se = !1, ae, ze, Pe, I, P, Be, le, Ce, Oe, xe = [], ue = [], Ae = "#", $ = !1;
1587
1587
  Vt({ withLocale: "en", translations: {} });
1588
- const ft = () => {
1588
+ const ct = () => {
1589
1589
  fetch(X).then((k) => k.json()).then((k) => {
1590
1590
  Object.keys(k).forEach((E) => {
1591
- Ke(E, k[E]);
1591
+ Ve(E, k[E]);
1592
1592
  });
1593
1593
  }).catch((k) => {
1594
1594
  console.log(k);
1595
1595
  });
1596
1596
  };
1597
- Object.keys(Ve).forEach((a) => {
1598
- Ke(a, Ve[a]);
1597
+ Object.keys(Ze).forEach((a) => {
1598
+ Ve(a, Ze[a]);
1599
1599
  });
1600
1600
  const De = (a) => {
1601
- ct(a), fe(a), Me(this, P);
1601
+ dt(a), fe(a), Me(this, P);
1602
1602
  }, Le = (a) => {
1603
- if (a.data && a.data.type == "UserSessionID" && (e(15, D = !0), V = a.data.session), a.data.type == "UpdateTournamentView") {
1603
+ if (a.data && a.data.type == "UserSessionID" && (e(15, D = !0), V = a.data.session, Re(u)), a.data.type == "UpdateTournamentView") {
1604
1604
  let k = a.data.tournamentData;
1605
1605
  if (P && P != k.id)
1606
1606
  return;
@@ -1620,7 +1620,7 @@ function fn(n, t, e) {
1620
1620
  E + 200
1621
1621
  );
1622
1622
  }
1623
- }, ct = (a) => {
1623
+ }, dt = (a) => {
1624
1624
  a.state != I && (e(24, I = a.state), window.postMessage(
1625
1625
  {
1626
1626
  type: `TournamentStatus_${P}`,
@@ -1628,11 +1628,11 @@ function fn(n, t, e) {
1628
1628
  },
1629
1629
  window.location.href
1630
1630
  ));
1631
- }, dt = () => {
1631
+ }, mt = () => {
1632
1632
  b && (window.postMessage({ type: b, transition: "Login" }, window.location.href), typeof gtag == "function" && gtag("event", "OpenLoginModal", {
1633
1633
  context: "TournamentsThumbnailController"
1634
1634
  })), H && (window.location = H);
1635
- }, mt = () => {
1635
+ }, ht = () => {
1636
1636
  W && (window.postMessage(
1637
1637
  {
1638
1638
  type: W,
@@ -1642,7 +1642,7 @@ function fn(n, t, e) {
1642
1642
  ), typeof gtag == "function" && gtag("event", "OpenRegisterModal", {
1643
1643
  context: "TournamentsThumbnailController"
1644
1644
  })), G && (window.location = G);
1645
- }, ht = (a) => {
1645
+ }, pt = (a) => {
1646
1646
  window.postMessage(
1647
1647
  {
1648
1648
  type: "TournamentDetailsClicked",
@@ -1652,7 +1652,7 @@ function fn(n, t, e) {
1652
1652
  window.location.href
1653
1653
  );
1654
1654
  }, Ie = (a, k) => me(this, null, function* () {
1655
- var Ue;
1655
+ var Je;
1656
1656
  e(18, Q = !1), e(20, se = !1), window.postMessage(
1657
1657
  {
1658
1658
  type: "TournamentJoinRequest",
@@ -1661,7 +1661,7 @@ function fn(n, t, e) {
1661
1661
  window.location.href
1662
1662
  ), e(17, Z = !0);
1663
1663
  let E = new URL(`${u}/v1/bonus/claim`), A = new Headers(), ce = {};
1664
- E.searchParams.append("language", m), E.searchParams.append("platform", Ye(Ee)), A.append("Content-Type", "application/json"), A.append("X-SessionID", V), k && k.length >= 1 && (ce = {
1664
+ E.searchParams.append("language", m), E.searchParams.append("platform", Ke(Ee)), A.append("Content-Type", "application/json"), A.append("X-SessionID", V), k && k.length >= 1 && (ce = {
1665
1665
  language: m,
1666
1666
  bonusCode: k[0].code,
1667
1667
  currency: ie,
@@ -1672,7 +1672,7 @@ function fn(n, t, e) {
1672
1672
  headers: A,
1673
1673
  body: JSON.stringify(ce)
1674
1674
  };
1675
- const Re = () => {
1675
+ const Ue = () => {
1676
1676
  e(17, Z = !1), e(27, le = !0);
1677
1677
  }, de = (F) => {
1678
1678
  e(17, Z = !1), F && e(19, je = F), e(18, Q = !0);
@@ -1687,10 +1687,10 @@ function fn(n, t, e) {
1687
1687
  });
1688
1688
  if (R)
1689
1689
  if (R.success == !0)
1690
- Re();
1690
+ Ue();
1691
1691
  else if (R.errorMessage.match("VersionMismatchException")) {
1692
1692
  let F;
1693
- F = yield fetch(`${u}/tournaments/${P}`, { headers: { "X-SessionID": i } }), F = yield F.json(), (Ue = F == null ? void 0 : F.item) != null && Ue.playerEnrolled ? Re() : (de(R.errorMessage), e(20, se = !0), e(18, Q = !1));
1693
+ F = yield fetch(`${u}/tournaments/${P}`, { headers: { "X-SessionID": i } }), F = yield F.json(), (Je = F == null ? void 0 : F.item) != null && Je.playerEnrolled ? Ue() : (de(R.errorMessage), e(20, se = !0), e(18, Q = !1));
1694
1694
  } else
1695
1695
  de(R.errorMessage);
1696
1696
  }), Me = (a, k) => {
@@ -1703,10 +1703,10 @@ function fn(n, t, e) {
1703
1703
  );
1704
1704
  }, fe = (a) => {
1705
1705
  a && (e(21, ae = a.nameOrTitle || ""), e(22, ze = a.startTime), e(23, Pe = a.endTime), e(24, I = a.state), e(25, P = a.id), e(26, Be = a.thumbnail), e(27, le = a.playerEnrolled === "true" || a.playerEnrolled == !0 || !1), e(28, Ce = a.scoreCriteria), e(29, Oe = a.minBetCount), xe = a.prizes, e(30, ue = a.wallets || []), e(31, Ae = a.termsUrl || "#"));
1706
- }, pt = (a) => {
1706
+ }, Re = (a) => {
1707
1707
  e(16, L = !0);
1708
1708
  const k = a ? `${a}/v1/tournaments/${oe}` : s, E = new URL(k), A = new Headers();
1709
- E.searchParams.append("language", m), E.searchParams.append("platform", Ye(Ee)), D && A.append("X-SessionID", V), fetch(E, { method: "GET", headers: A }).then((M) => M.json()).then((M) => {
1709
+ E.searchParams.append("language", m), E.searchParams.append("platform", Ke(Ee)), D && A.append("X-SessionID", V), fetch(E, { method: "GET", headers: A }).then((M) => M.json()).then((M) => {
1710
1710
  fe(M.item);
1711
1711
  }).finally(() => {
1712
1712
  e(16, L = !1);
@@ -1718,7 +1718,7 @@ function fn(n, t, e) {
1718
1718
  fe(Y);
1719
1719
  return;
1720
1720
  }
1721
- e(16, L = !0), pt(u);
1721
+ e(16, L = !0), Re(u);
1722
1722
  };
1723
1723
  zt(() => (e(16, L = !ae), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", Le, !1), () => {
1724
1724
  window.removeEventListener("message", Le);
@@ -1734,7 +1734,7 @@ function fn(n, t, e) {
1734
1734
  }, n.$$.update = () => {
1735
1735
  n.$$.dirty[0] & /*lang*/
1736
1736
  128 && m && Zt(m), n.$$.dirty[0] & /*translationurl*/
1737
- 4096 && X && ft(), n.$$.dirty[1] & /*session*/
1737
+ 4096 && X && ct(), n.$$.dirty[1] & /*session*/
1738
1738
  256 && i && gt(), n.$$.dirty[0] & /*tournamenturl, lang*/
1739
1739
  130 && s && m && bt(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1740
1740
  17408 && N && z && xt(z, N), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
@@ -1775,9 +1775,9 @@ function fn(n, t, e) {
1775
1775
  Ae,
1776
1776
  $,
1777
1777
  r,
1778
- dt,
1779
1778
  mt,
1780
1779
  ht,
1780
+ pt,
1781
1781
  Ie,
1782
1782
  Me,
1783
1783
  i,
@@ -1794,7 +1794,7 @@ function fn(n, t, e) {
1794
1794
  yt
1795
1795
  ];
1796
1796
  }
1797
- class ut extends kt {
1797
+ class ft extends kt {
1798
1798
  constructor(t) {
1799
1799
  super(), St(
1800
1800
  this,
@@ -1977,12 +1977,12 @@ class ut extends kt {
1977
1977
  this.$$set({ tournamentid: t }), v();
1978
1978
  }
1979
1979
  }
1980
- Ft(ut, { session: {}, userid: {}, tournamenturl: {}, touridx: {}, endpoint: {}, showdetails: {}, showslider: {}, showenrolled: {}, maxwidth: {}, fullsize: {}, lang: {}, loginevent: {}, registerevent: {}, detailsevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tournamentinfo: {}, mbsource: {}, tournamentid: {} }, [], [], !0);
1980
+ Ft(ft, { session: {}, userid: {}, tournamenturl: {}, touridx: {}, endpoint: {}, showdetails: {}, showslider: {}, showenrolled: {}, maxwidth: {}, fullsize: {}, lang: {}, loginevent: {}, registerevent: {}, detailsevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tournamentinfo: {}, mbsource: {}, tournamentid: {} }, [], [], !0);
1981
1981
  const pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1982
1982
  __proto__: null,
1983
- default: ut
1983
+ default: ft
1984
1984
  }, Symbol.toStringTag, { value: "Module" }));
1985
1985
  export {
1986
1986
  pn as C,
1987
- Ye as g
1987
+ Ke as g
1988
1988
  };