@everymatrix/casino-tournaments-tab 1.75.1 → 1.76.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.
@@ -27,7 +27,7 @@ function or(e, ...t) {
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function L(e, t) {
30
+ function N(e, t) {
31
31
  e.appendChild(t);
32
32
  }
33
33
  function sr(e, t, r) {
@@ -48,7 +48,7 @@ function ar(e) {
48
48
  ) : e.ownerDocument;
49
49
  }
50
50
  function ur(e, t) {
51
- return L(
51
+ return N(
52
52
  /** @type {Document} */
53
53
  e.head || e,
54
54
  t
@@ -493,7 +493,7 @@ function Ie(e) {
493
493
  };
494
494
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
495
495
  }
496
- function Ne(e, t) {
496
+ function Le(e, t) {
497
497
  var r = typeof Symbol == "function" && e[Symbol.iterator];
498
498
  if (!r)
499
499
  return e;
@@ -513,7 +513,7 @@ function Ne(e, t) {
513
513
  }
514
514
  return o;
515
515
  }
516
- function Le(e, t, r) {
516
+ function Ne(e, t, r) {
517
517
  if (arguments.length === 2)
518
518
  for (var n = 0, i = t.length, o; n < i; n++)
519
519
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
@@ -559,8 +559,8 @@ var pe = function() {
559
559
  var u = h.value;
560
560
  u.remove(this);
561
561
  }
562
- } catch (g) {
563
- t = { error: g };
562
+ } catch (v) {
563
+ t = { error: v };
564
564
  } finally {
565
565
  try {
566
566
  h && !h.done && (r = a.return) && r.call(a);
@@ -575,8 +575,8 @@ var pe = function() {
575
575
  if (B(l))
576
576
  try {
577
577
  l();
578
- } catch (g) {
579
- o = g instanceof _e ? g.errors : [g];
578
+ } catch (v) {
579
+ o = v instanceof _e ? v.errors : [v];
580
580
  }
581
581
  var f = this._finalizers;
582
582
  if (f) {
@@ -586,12 +586,12 @@ var pe = function() {
586
586
  var d = p.value;
587
587
  try {
588
588
  et(d);
589
- } catch (g) {
590
- o = o ?? [], g instanceof _e ? o = Le(Le([], Ne(o)), Ne(g.errors)) : o.push(g);
589
+ } catch (v) {
590
+ o = o ?? [], v instanceof _e ? o = Ne(Ne([], Le(o)), Le(v.errors)) : o.push(v);
591
591
  }
592
592
  }
593
- } catch (g) {
594
- n = { error: g };
593
+ } catch (v) {
594
+ n = { error: v };
595
595
  } finally {
596
596
  try {
597
597
  p && !p.done && (i = c.return) && i.call(c);
@@ -646,7 +646,7 @@ var Pr = {
646
646
  setTimeout: function(e, t) {
647
647
  for (var r = [], n = 2; n < arguments.length; n++)
648
648
  r[n - 2] = arguments[n];
649
- return setTimeout.apply(void 0, Le([e, t], Ne(r)));
649
+ return setTimeout.apply(void 0, Ne([e, t], Le(r)));
650
650
  },
651
651
  clearTimeout: function(e) {
652
652
  return clearTimeout(e);
@@ -663,7 +663,7 @@ function tt() {
663
663
  function ae(e) {
664
664
  e();
665
665
  }
666
- var Nt = function(e) {
666
+ var Lt = function(e) {
667
667
  ee(t, e);
668
668
  function t(r) {
669
669
  var n = e.call(this) || this;
@@ -694,7 +694,7 @@ var Nt = function(e) {
694
694
  this.unsubscribe();
695
695
  }
696
696
  }, t;
697
- }(pe), Nr = function() {
697
+ }(pe), Lr = function() {
698
698
  function e(t) {
699
699
  this.partialObserver = t;
700
700
  }
@@ -733,20 +733,20 @@ var Nt = function(e) {
733
733
  next: r ?? void 0,
734
734
  error: n ?? void 0,
735
735
  complete: i ?? void 0
736
- } : s = r, o.destination = new Nr(s), o;
736
+ } : s = r, o.destination = new Lr(s), o;
737
737
  }
738
738
  return t;
739
- }(Nt);
739
+ }(Lt);
740
740
  function ie(e) {
741
741
  Ir(e);
742
742
  }
743
- function Lr(e) {
743
+ function Nr(e) {
744
744
  throw e;
745
745
  }
746
746
  var Cr = {
747
747
  closed: !0,
748
748
  next: tt,
749
- error: Lr,
749
+ error: Nr,
750
750
  complete: tt
751
751
  }, Mr = function() {
752
752
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
@@ -829,13 +829,13 @@ function Ur(e) {
829
829
  return e && B(e.next) && B(e.error) && B(e.complete);
830
830
  }
831
831
  function Dr(e) {
832
- return e && e instanceof Nt || Ur(e) && It(e);
832
+ return e && e instanceof Lt || Ur(e) && It(e);
833
833
  }
834
834
  var Gr = Pt(function(e) {
835
835
  return function() {
836
836
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
837
837
  };
838
- }), Lt = function(e) {
838
+ }), Nt = function(e) {
839
839
  ee(t, e);
840
840
  function t() {
841
841
  var r = e.call(this) || this;
@@ -934,7 +934,7 @@ var Gr = Pt(function(e) {
934
934
  var n, i;
935
935
  return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
936
936
  }, t;
937
- }(Lt), Ct = {
937
+ }(Nt), Ct = {
938
938
  now: function() {
939
939
  return (Ct.delegate || Date).now();
940
940
  },
@@ -962,7 +962,7 @@ var Gr = Pt(function(e) {
962
962
  u && o.splice(0, u + 1);
963
963
  }
964
964
  }, t;
965
- }(Lt);
965
+ }(Nt);
966
966
  const ot = [], st = {}, jr = (e, t = 0) => {
967
967
  if (ot.indexOf(e) == -1) {
968
968
  const r = new Fr(t);
@@ -1017,13 +1017,13 @@ function V(e, t, r) {
1017
1017
  const d = t(n ? u[0] : u, s, a);
1018
1018
  o ? s(d) : f = Xe(d) ? d : T;
1019
1019
  }, p = i.map(
1020
- (d, g) => or(
1020
+ (d, v) => or(
1021
1021
  d,
1022
1022
  (x) => {
1023
- u[g] = x, l &= ~(1 << g), h && c();
1023
+ u[v] = x, l &= ~(1 << v), h && c();
1024
1024
  },
1025
1025
  () => {
1026
- l |= 1 << g;
1026
+ l |= 1 << v;
1027
1027
  }
1028
1028
  )
1029
1029
  );
@@ -3021,7 +3021,7 @@ var Te, Bn = new RegExp("^".concat(Xt.source, "*")), An = new RegExp("".concat(X
3021
3021
  function b(e, t) {
3022
3022
  return { start: e, end: t };
3023
3023
  }
3024
- var Pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, $n = Mn ? Number.isSafeInteger : function(e) {
3024
+ var Pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, $n = Mn ? Number.isSafeInteger : function(e) {
3025
3025
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3026
3026
  }, Ue = !0;
3027
3027
  try {
@@ -3064,7 +3064,7 @@ var ct = Pn ? (
3064
3064
  return r;
3065
3065
  }
3066
3066
  )
3067
- ), Qt = Nn ? (
3067
+ ), Qt = Ln ? (
3068
3068
  // Native
3069
3069
  function(t, r) {
3070
3070
  return t.codePointAt(r);
@@ -3078,7 +3078,7 @@ var ct = Pn ? (
3078
3078
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3079
3079
  }
3080
3080
  }
3081
- ), Un = Ln ? (
3081
+ ), Un = Nn ? (
3082
3082
  // Native
3083
3083
  function(t) {
3084
3084
  return t.trimStart();
@@ -3328,18 +3328,18 @@ var Gn = (
3328
3328
  var d = this.tryParseArgumentClose(i);
3329
3329
  if (d.err)
3330
3330
  return d;
3331
- var g = b(i, this.clonePosition());
3331
+ var v = b(i, this.clonePosition());
3332
3332
  if (u && ct(u?.style, "::", 0)) {
3333
3333
  var x = Un(u.style.slice(2));
3334
3334
  if (a === "number") {
3335
3335
  var f = this.parseNumberSkeletonFromString(x, u.styleLocation);
3336
3336
  return f.err ? f : {
3337
- val: { type: y.number, value: n, location: g, style: f.val },
3337
+ val: { type: y.number, value: n, location: v, style: f.val },
3338
3338
  err: null
3339
3339
  };
3340
3340
  } else {
3341
3341
  if (x.length === 0)
3342
- return this.error(m.EXPECT_DATE_TIME_SKELETON, g);
3342
+ return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
3343
3343
  var I = x;
3344
3344
  this.locale && (I = wn(x, this.locale));
3345
3345
  var c = {
@@ -3347,9 +3347,9 @@ var Gn = (
3347
3347
  pattern: I,
3348
3348
  location: u.styleLocation,
3349
3349
  parsedOptions: this.shouldParseSkeletons ? vn(I) : {}
3350
- }, v = a === "date" ? y.date : y.time;
3350
+ }, g = a === "date" ? y.date : y.time;
3351
3351
  return {
3352
- val: { type: v, value: n, location: g, style: c },
3352
+ val: { type: g, value: n, location: v, style: c },
3353
3353
  err: null
3354
3354
  };
3355
3355
  }
@@ -3358,7 +3358,7 @@ var Gn = (
3358
3358
  val: {
3359
3359
  type: a === "number" ? y.number : a === "date" ? y.date : y.time,
3360
3360
  value: n,
3361
- location: g,
3361
+ location: v,
3362
3362
  style: (o = u?.style) !== null && o !== void 0 ? o : null
3363
3363
  },
3364
3364
  err: null
@@ -3371,7 +3371,7 @@ var Gn = (
3371
3371
  if (this.bumpSpace(), !this.bumpIf(","))
3372
3372
  return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(w, le({}, w)));
3373
3373
  this.bumpSpace();
3374
- var z = this.parseIdentifierIfPossible(), N = 0;
3374
+ var z = this.parseIdentifierIfPossible(), L = 0;
3375
3375
  if (a !== "select" && z.value === "offset") {
3376
3376
  if (!this.bumpIf(":"))
3377
3377
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
@@ -3379,7 +3379,7 @@ var Gn = (
3379
3379
  var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3380
3380
  if (f.err)
3381
3381
  return f;
3382
- this.bumpSpace(), z = this.parseIdentifierIfPossible(), N = f.val;
3382
+ this.bumpSpace(), z = this.parseIdentifierIfPossible(), L = f.val;
3383
3383
  }
3384
3384
  var ne = this.tryParsePluralOrSelectOptions(t, a, r, z);
3385
3385
  if (ne.err)
@@ -3401,7 +3401,7 @@ var Gn = (
3401
3401
  type: y.plural,
3402
3402
  value: n,
3403
3403
  options: pt(ne.val),
3404
- offset: N,
3404
+ offset: L,
3405
3405
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3406
3406
  location: Qe
3407
3407
  },
@@ -3485,9 +3485,9 @@ var Gn = (
3485
3485
  var d = this.parseMessage(t + 1, r, n);
3486
3486
  if (d.err)
3487
3487
  return d;
3488
- var g = this.tryParseArgumentClose(p);
3489
- if (g.err)
3490
- return g;
3488
+ var v = this.tryParseArgumentClose(p);
3489
+ if (v.err)
3490
+ return v;
3491
3491
  a.push([
3492
3492
  u,
3493
3493
  {
@@ -3723,16 +3723,16 @@ function ue(e, t, r, n, i, o, s) {
3723
3723
  continue;
3724
3724
  }
3725
3725
  if (kt(l)) {
3726
- var d = l.children, g = l.value, x = i[g];
3726
+ var d = l.children, v = l.value, x = i[v];
3727
3727
  if (!Zn(x))
3728
- throw new Xn(g, "function", s);
3729
- var I = ue(d, t, r, n, i, o), v = x(I.map(function(N) {
3730
- return N.value;
3728
+ throw new Xn(v, "function", s);
3729
+ var I = ue(d, t, r, n, i, o), g = x(I.map(function(L) {
3730
+ return L.value;
3731
3731
  }));
3732
- Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(N) {
3732
+ Array.isArray(g) || (g = [g]), a.push.apply(a, g.map(function(L) {
3733
3733
  return {
3734
- type: typeof N == "string" ? E.literal : E.object,
3735
- value: N
3734
+ type: typeof L == "string" ? E.literal : E.object,
3735
+ value: L
3736
3736
  };
3737
3737
  }));
3738
3738
  }
@@ -4231,8 +4231,8 @@ V([re], () => Pi);
4231
4231
  V([re], () => Oi);
4232
4232
  V([re, te], () => Ii);
4233
4233
  window.emWidgets = { topic: jr };
4234
- const Ni = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4235
- function Li(e, t) {
4234
+ const Li = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4235
+ function Ni(e, t) {
4236
4236
  if (e) {
4237
4237
  const r = document.createElement("style");
4238
4238
  r.innerHTML = t, e.appendChild(r);
@@ -4316,7 +4316,7 @@ function xt(e) {
4316
4316
  t = O("sup"), r = O("span"), i = ze(n), S(r, "part", "SupText"), S(t, "part", "sup");
4317
4317
  },
4318
4318
  m(o, s) {
4319
- K(o, t, s), L(t, r), L(r, i);
4319
+ K(o, t, s), N(t, r), N(r, i);
4320
4320
  },
4321
4321
  p(o, s) {
4322
4322
  s & /*totalReceiver, __tabs*/
@@ -4364,7 +4364,7 @@ function St(e) {
4364
4364
  e[16] ? "active" : ""));
4365
4365
  },
4366
4366
  m(p, d) {
4367
- K(p, t, d), L(t, r), L(r, i), L(t, o), f && f.m(t, null), L(t, s), u || (l = lr(t, "click", c), u = !0);
4367
+ K(p, t, d), N(t, r), N(r, i), N(t, o), f && f.m(t, null), N(t, s), u || (l = lr(t, "click", c), u = !0);
4368
4368
  },
4369
4369
  p(p, d) {
4370
4370
  e = p, d & /*textReceiver, __tabs*/
@@ -4397,7 +4397,7 @@ function Ri(e) {
4397
4397
  );
4398
4398
  return {
4399
4399
  c() {
4400
- t = O("div"), r && r.c(), S(t, "class", "casino-tournaments-tab " + (Ni(
4400
+ t = O("div"), r && r.c(), S(t, "class", "casino-tournaments-tab " + (Li(
4401
4401
  /*userAgent*/
4402
4402
  e[7]
4403
4403
  ) ? "TabMobile" : "TabDesktop")), S(t, "part", "CustomStylingContainer");
@@ -4419,19 +4419,22 @@ function Ri(e) {
4419
4419
  function Ui(e, t, r) {
4420
4420
  let n, i, { tabs: o = "" } = t, { tab: s = void 0 } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { tid: l = "pageTab" } = t, f, c = !1;
4421
4421
  const p = window.navigator.userAgent;
4422
- let d = {}, g = {};
4422
+ let d = {}, v = {};
4423
4423
  Ar({
4424
- TournamentsTabTotalUpdate: (v) => {
4424
+ TournamentsTabTotalUpdate: (g) => {
4425
4425
  r(3, d = {
4426
4426
  ...d,
4427
- [v.state]: v.total
4427
+ [g.state]: g.total
4428
4428
  });
4429
4429
  },
4430
- TournamentsTabsLocalize: (v) => {
4431
- r(2, c = !0), r(4, g = {
4432
- ...g,
4433
- ...v.tabTitleTranslations
4430
+ TournamentsTabsLocalize: (g) => {
4431
+ r(2, c = !0), r(4, v = {
4432
+ ...v,
4433
+ ...g.tabTitleTranslations
4434
4434
  });
4435
+ },
4436
+ TournamentsTabLocaleTextUpdate: (g) => {
4437
+ r(2, c = !0), r(4, v = { ...v, [g.state]: g.text });
4435
4438
  }
4436
4439
  }), Bt(() => (window.postMessage(
4437
4440
  {
@@ -4441,26 +4444,26 @@ function Ui(e, t, r) {
4441
4444
  window.location.href
4442
4445
  ), () => {
4443
4446
  }));
4444
- const x = (v) => {
4445
- r(5, i = v), window.postMessage(
4447
+ const x = (g) => {
4448
+ r(5, i = g), window.postMessage(
4446
4449
  {
4447
4450
  type: "TournamentsTabSwitch",
4448
- tab: v,
4451
+ tab: g,
4449
4452
  tid: l
4450
4453
  },
4451
4454
  window.location.href
4452
4455
  );
4453
4456
  };
4454
- function I(v) {
4455
- Be[v ? "unshift" : "push"](() => {
4456
- f = v, r(1, f);
4457
+ function I(g) {
4458
+ Be[g ? "unshift" : "push"](() => {
4459
+ f = g, r(1, f);
4457
4460
  });
4458
4461
  }
4459
- return e.$$set = (v) => {
4460
- "tabs" in v && r(8, o = v.tabs), "tab" in v && r(9, s = v.tab), "clientstyling" in v && r(10, a = v.clientstyling), "clientstylingurl" in v && r(11, h = v.clientstylingurl), "mbsource" in v && r(12, u = v.mbsource), "tid" in v && r(0, l = v.tid);
4462
+ return e.$$set = (g) => {
4463
+ "tabs" in g && r(8, o = g.tabs), "tab" in g && r(9, s = g.tab), "clientstyling" in g && r(10, a = g.clientstyling), "clientstylingurl" in g && r(11, h = g.clientstylingurl), "mbsource" in g && r(12, u = g.mbsource), "tid" in g && r(0, l = g.tid);
4461
4464
  }, e.$$.update = () => {
4462
4465
  e.$$.dirty & /*clientstyling, customStylingContainer*/
4463
- 1026 && a && f && Li(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4466
+ 1026 && a && f && Ni(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4464
4467
  2050 && h && f && Ci(f, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4465
4468
  4098 && u && f && Mi(f, `${u}.Style`), e.$$.dirty & /*tabs*/
4466
4469
  256 && r(6, n = o.split(",")), e.$$.dirty & /*tab*/
@@ -4470,7 +4473,7 @@ function Ui(e, t, r) {
4470
4473
  f,
4471
4474
  c,
4472
4475
  d,
4473
- g,
4476
+ v,
4474
4477
  i,
4475
4478
  n,
4476
4479
  p,