@everymatrix/casino-tournaments-list-controller 1.65.1 → 1.65.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/components/{CasinoTournamentsListController-BbMxlacs.js → CasinoTournamentsListController-CwQp-szg.js} +2145 -2152
  2. package/components/{CasinoTournamentsListController-BmResUm1.js → CasinoTournamentsListController-DARzYiXJ.js} +1866 -1791
  3. package/components/CasinoTournamentsListController-FixxxVPw.cjs +28 -0
  4. package/components/{CasinoTournamentsThumbnail-GGpqWUUU.cjs → CasinoTournamentsThumbnail-BE01XfdC.cjs} +1 -1
  5. package/components/{CasinoTournamentsThumbnail-BctgkfiG.js → CasinoTournamentsThumbnail-DBtRh3qP.js} +30 -30
  6. package/components/{CasinoTournamentsThumbnail-BLl6r3kP.js → CasinoTournamentsThumbnail-DGFer4iB.js} +30 -30
  7. package/components/CasinoTournamentsThumbnailController-CiYmD0OC.cjs +3 -0
  8. package/components/{CasinoTournamentsThumbnailController-qtMqHOKR.js → CasinoTournamentsThumbnailController-DgMcOUG-.js} +327 -392
  9. package/components/{CasinoTournamentsThumbnailController-LQRpg-1c.js → CasinoTournamentsThumbnailController-DpEF5YwW.js} +340 -405
  10. package/components/{CasinoTournamentsThumbnailDuration-C5E3xPWt.js → CasinoTournamentsThumbnailDuration-9957mVyI.js} +35 -35
  11. package/components/{CasinoTournamentsThumbnailDuration-CLG474CZ.js → CasinoTournamentsThumbnailDuration-CRsTbsdJ.js} +35 -35
  12. package/components/{CasinoTournamentsThumbnailDuration-BEkKAuX-.cjs → CasinoTournamentsThumbnailDuration-DX9aKZsv.cjs} +1 -1
  13. package/components/{CasinoTournamentsThumbnailGamesSlider-BZPzU1n_.js → CasinoTournamentsThumbnailGamesSlider-2_ISHpMn.js} +56 -56
  14. package/components/{CasinoTournamentsThumbnailGamesSlider-gRsycWHT.js → CasinoTournamentsThumbnailGamesSlider-Cing6yG3.js} +56 -56
  15. package/components/{CasinoTournamentsThumbnailGamesSlider-Cs5RTcj-.cjs → CasinoTournamentsThumbnailGamesSlider-DDxzPtNz.cjs} +1 -1
  16. package/components/{CasinoTournamentsThumbnailPrizes-BGoHCct2.js → CasinoTournamentsThumbnailPrizes-DdUal0Lm.js} +37 -37
  17. package/components/{CasinoTournamentsThumbnailPrizes-BRyr6n6l.js → CasinoTournamentsThumbnailPrizes-DyQGQYuY.js} +37 -37
  18. package/components/{CasinoTournamentsThumbnailPrizes-1UaFyOK_.cjs → CasinoTournamentsThumbnailPrizes-GlkjX8Xm.cjs} +1 -1
  19. package/es2015/casino-tournaments-list-controller.cjs +1 -1
  20. package/es2015/casino-tournaments-list-controller.js +1 -1
  21. package/esnext/casino-tournaments-list-controller.js +1 -1
  22. package/package.json +1 -1
  23. package/stencil/{index-97d17652-BEnqZAxL.js → index-97d17652-ChRvzjAp.js} +186 -186
  24. package/stencil/{index-97d17652-WK_DbPS4.js → index-97d17652-DKsTmN3Z.js} +175 -175
  25. package/stencil/index-97d17652-qWThG1U9.cjs +1 -0
  26. package/stencil/index-b2193545-C1ayEiG4.js +503 -0
  27. package/stencil/index-b2193545-CyidmLE0.cjs +1 -0
  28. package/stencil/index-b2193545-s3PsNboB.js +519 -0
  29. package/stencil/{ui-image-3hy4ZvUC.js → ui-image-ClXqMGwp.js} +1 -1
  30. package/stencil/{ui-image-DE8MJHCZ.cjs → ui-image-Db5QCSmt.cjs} +1 -1
  31. package/stencil/{ui-image-D0wxuPze.js → ui-image-YphrYZtA.js} +1 -1
  32. package/stencil/{ui-image-b7b48fe5-Cf9Vq5pI.js → ui-image-b7b48fe5-B43lELFk.js} +1 -1
  33. package/stencil/{ui-image-b7b48fe5-DCck2kk1.cjs → ui-image-b7b48fe5-CRQDt62Z.cjs} +1 -1
  34. package/stencil/{ui-image-b7b48fe5-V9vp4faA.js → ui-image-b7b48fe5-DVcK_myk.js} +1 -1
  35. package/stencil/{ui-image_2-YkYxLKu7.cjs → ui-image_2-CyHaM9Na.cjs} +1 -1
  36. package/stencil/{ui-image_2-BncuYpLi.js → ui-image_2-Df0q0jE8.js} +2 -2
  37. package/stencil/{ui-image_2-B56t6kXT.js → ui-image_2-EP2dwjfi.js} +2 -2
  38. package/stencil/{ui-skeleton-1cb75d00-B-R8GbLJ.js → ui-skeleton-1cb75d00-U47XWOV2.js} +1 -1
  39. package/stencil/{ui-skeleton-1cb75d00-Dy30RNE6.js → ui-skeleton-1cb75d00-bf7NJcVF.js} +1 -1
  40. package/stencil/{ui-skeleton-1cb75d00-BTnhspbc.cjs → ui-skeleton-1cb75d00-nmwFu55Y.cjs} +1 -1
  41. package/stencil/{ui-skeleton-CVBjRUvi.js → ui-skeleton-DSlZCsjK.js} +2 -2
  42. package/stencil/{ui-skeleton-se83zfWh.cjs → ui-skeleton-DXCQ8Yoq.cjs} +1 -1
  43. package/stencil/{ui-skeleton-RkXNxPG1.js → ui-skeleton-P9Vv-0Vy.js} +2 -2
  44. package/components/CasinoTournamentsListController-QOpDP1gT.cjs +0 -15
  45. package/components/CasinoTournamentsThumbnailController-Bdh5qjnp.cjs +0 -16
  46. package/stencil/index-97d17652-D5_8Vwfn.cjs +0 -1
  47. package/stencil/index-b2193545-BOMvxBzV.js +0 -519
  48. package/stencil/index-b2193545-CFn9dM-v.js +0 -503
  49. package/stencil/index-b2193545-DPygl1Qn.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { a as ge, $ as fe, S as be, i as he, s as pe, f as S, b as ke, n as Y, d as C, c as m, e as _, g, h as y, j as I, k as ye, o as Se, l as D, t as R, m as Ce, p as B, q as _e, r as Ae, u as Te, v as K, w as E, x as ve, y as Me, z as we } from "./CasinoTournamentsListController-BbMxlacs.js";
2
- import "../stencil/ui-skeleton-CVBjRUvi.js";
3
- import "../stencil/ui-image-3hy4ZvUC.js";
1
+ import { a as ge, $ as fe, S as be, i as he, f as S, c as pe, s as ke, b as ye, e as y, d as I, g as m, h as C, j as g, n as Y, k as _, l as Se, o as Ce, t as R, m as D, p as B, q as _e, r as Ae, u as Te, v as ve, w as Me, x as K, y as E, z as we } from "./CasinoTournamentsListController-CwQp-szg.js";
2
+ import "../stencil/ui-skeleton-P9Vv-0Vy.js";
3
+ import "../stencil/ui-image-YphrYZtA.js";
4
4
  function Z(i, e) {
5
5
  ge(i, e);
6
6
  }
@@ -340,7 +340,7 @@ const Q = {
340
340
  }
341
341
  };
342
342
  function Je(i) {
343
- ke(i, "svelte-1ymu8a4", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
343
+ ye(i, "svelte-1ymu8a4", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
344
344
  }
345
345
  function X(i) {
346
346
  let e, t, n;
@@ -349,10 +349,10 @@ function X(i) {
349
349
  e = y("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', t = I(), n = y("div"), n.innerHTML = '<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>', m(e, "class", "Skeleton CardImg"), m(n, "class", "Details"), m(n, "part", "Details");
350
350
  },
351
351
  m(a, s) {
352
- _(a, e, s), _(a, t, s), _(a, n, s);
352
+ C(a, e, s), C(a, t, s), C(a, n, s);
353
353
  },
354
354
  d(a) {
355
- a && (C(e), C(t), C(n));
355
+ a && (_(e), _(t), _(n));
356
356
  }
357
357
  };
358
358
  }
@@ -385,7 +385,7 @@ function $(i) {
385
385
  ), d = I(), p && p.c(), l = I(), f && f.c(), m(s, "class", "Title"), m(s, "part", "Title"), m(a, "class", "Details"), m(a, "part", "Details");
386
386
  },
387
387
  m(o, b) {
388
- c && c.m(o, b), _(o, e, b), h && h.m(o, b), _(o, t, b), T.m(o, b), _(o, n, b), _(o, a, b), g(a, s), g(s, u), g(a, d), p && p.m(a, null), g(a, l), f && f.m(a, null);
388
+ c && c.m(o, b), C(o, e, b), h && h.m(o, b), C(o, t, b), T.m(o, b), C(o, n, b), C(o, a, b), g(a, s), g(s, u), g(a, d), p && p.m(a, null), g(a, l), f && f.m(a, null);
389
389
  },
390
390
  p(o, b) {
391
391
  /*status*/
@@ -400,7 +400,7 @@ function $(i) {
400
400
  o[12] ? f ? f.p(o, b) : (f = ne(o), f.c(), f.m(a, null)) : f && (f.d(1), f = null);
401
401
  },
402
402
  d(o) {
403
- o && (C(e), C(t), C(n), C(a)), c && c.d(o), h && h.d(o), T.d(o), p && p.d(), f && f.d();
403
+ o && (_(e), _(t), _(n), _(a)), c && c.d(o), h && h.d(o), T.d(o), p && p.d(), f && f.d();
404
404
  }
405
405
  };
406
406
  }
@@ -416,7 +416,7 @@ function ee(i) {
416
416
  i[15]);
417
417
  },
418
418
  m(d, l) {
419
- _(d, e, l), g(e, t), s || (u = B(
419
+ C(d, e, l), g(e, t), s || (u = B(
420
420
  /*matchStatus*/
421
421
  i[18].call(null, e)
422
422
  ), s = !0);
@@ -434,7 +434,7 @@ function ee(i) {
434
434
  d[15]) && m(e, "part", a);
435
435
  },
436
436
  d(d) {
437
- d && C(e), s = !1, u();
437
+ d && _(e), s = !1, u();
438
438
  }
439
439
  };
440
440
  }
@@ -448,14 +448,14 @@ function te(i) {
448
448
  t && t.c(), e = _e();
449
449
  },
450
450
  m(n, a) {
451
- t && t.m(n, a), _(n, e, a);
451
+ t && t.m(n, a), C(n, e, a);
452
452
  },
453
453
  p(n, a) {
454
454
  /*userenrolled*/
455
455
  n[5] ? t ? t.p(n, a) : (t = ie(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
456
456
  },
457
457
  d(n) {
458
- n && C(e), t && t.d(n);
458
+ n && _(e), t && t.d(n);
459
459
  }
460
460
  };
461
461
  }
@@ -469,7 +469,7 @@ function ie(i) {
469
469
  e = y("div"), n = R(t), m(e, "class", "Enrolled"), m(e, "part", "Enrolled");
470
470
  },
471
471
  m(a, s) {
472
- _(a, e, s), g(e, n);
472
+ C(a, e, s), g(e, n);
473
473
  },
474
474
  p(a, s) {
475
475
  s[0] & /*$_*/
@@ -477,7 +477,7 @@ function ie(i) {
477
477
  a[16]("enrolled") + "") && D(n, t);
478
478
  },
479
479
  d(a) {
480
- a && C(e);
480
+ a && _(e);
481
481
  }
482
482
  };
483
483
  }
@@ -492,7 +492,7 @@ function De(i) {
492
492
  i[0] == "Closed" ? "CardImgFinished" : ""));
493
493
  },
494
494
  m(l, c) {
495
- _(l, e, c), g(e, t), u || (d = B(
495
+ C(l, e, c), g(e, t), u || (d = B(
496
496
  /*matchStatus*/
497
497
  i[18].call(null, e)
498
498
  ), u = !0);
@@ -507,7 +507,7 @@ function De(i) {
507
507
  l[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "part", s);
508
508
  },
509
509
  d(l) {
510
- l && C(e), u = !1, d();
510
+ l && _(e), u = !1, d();
511
511
  }
512
512
  };
513
513
  }
@@ -523,7 +523,7 @@ function Ie(i) {
523
523
  i[0] == "Closed" ? "CardImgFinished" : ""));
524
524
  },
525
525
  m(l, c) {
526
- _(l, e, c), g(e, t), u || (d = B(
526
+ C(l, e, c), g(e, t), u || (d = B(
527
527
  /*matchStatus*/
528
528
  i[18].call(null, e)
529
529
  ), u = !0);
@@ -540,7 +540,7 @@ function Ie(i) {
540
540
  l[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "part", s);
541
541
  },
542
542
  d(l) {
543
- l && C(e), u = !1, d();
543
+ l && _(e), u = !1, d();
544
544
  }
545
545
  };
546
546
  }
@@ -554,7 +554,7 @@ function ae(i) {
554
554
  ), m(e, "class", "Date"), m(e, "part", "Date");
555
555
  },
556
556
  m(u, d) {
557
- _(u, e, d), g(e, t), a || (s = B(n = /*formatDate*/
557
+ C(u, e, d), g(e, t), a || (s = B(n = /*formatDate*/
558
558
  i[17].call(
559
559
  null,
560
560
  e,
@@ -568,7 +568,7 @@ function ae(i) {
568
568
  t,
569
569
  /*shownDate*/
570
570
  u[11]
571
- ), n && ve(n.update) && d[0] & /*startdate*/
571
+ ), n && Ae(n.update) && d[0] & /*startdate*/
572
572
  4 && n.update.call(
573
573
  null,
574
574
  /*startdate*/
@@ -576,7 +576,7 @@ function ae(i) {
576
576
  );
577
577
  },
578
578
  d(u) {
579
- u && C(e), a = !1, s();
579
+ u && _(e), a = !1, s();
580
580
  }
581
581
  };
582
582
  }
@@ -614,7 +614,7 @@ function ne(i) {
614
614
  i[9] === "true" ? "_self" : "_blank"), m(o, "part", "GamesP"), m(f, "class", "Games"), m(f, "part", "Games");
615
615
  },
616
616
  m(k, w) {
617
- _(k, e, w), g(e, t), g(t, a), g(t, s), g(t, u), g(u, d), g(t, l), g(t, h), g(t, z), g(t, A), g(t, T), _(k, p, w), _(k, f, w), g(f, o), g(o, j), g(o, x), g(o, M), g(M, L), N || (W = [
617
+ C(k, e, w), g(e, t), g(t, a), g(t, s), g(t, u), g(u, d), g(t, l), g(t, h), g(t, z), g(t, A), g(t, T), C(k, p, w), C(k, f, w), g(f, o), g(o, j), g(o, x), g(o, M), g(M, L), N || (W = [
618
618
  B(
619
619
  /*matchScoreCriteria*/
620
620
  i[19].call(null, u)
@@ -657,7 +657,7 @@ function ne(i) {
657
657
  k[9] === "true" ? "_self" : "_blank") && m(M, "target", F);
658
658
  },
659
659
  d(k) {
660
- k && (C(e), C(p), C(f)), N = !1, Ae(W);
660
+ k && (_(e), _(p), _(f)), N = !1, ve(W);
661
661
  }
662
662
  };
663
663
  }
@@ -675,7 +675,7 @@ function Fe(i) {
675
675
  i[1] === "undefined" ? "Loading" : ""}`), m(e, "part", "Thumbnail");
676
676
  },
677
677
  m(u, d) {
678
- _(u, e, d), a && a.m(e, null), g(e, t), s && s.m(e, null), i[29](e);
678
+ C(u, e, d), a && a.m(e, null), g(e, t), s && s.m(e, null), i[29](e);
679
679
  },
680
680
  p(u, d) {
681
681
  /*title*/
@@ -687,13 +687,13 @@ function Fe(i) {
687
687
  i: Y,
688
688
  o: Y,
689
689
  d(u) {
690
- u && C(e), a && a.d(), s && s.d(), i[29](null);
690
+ u && _(e), a && a.d(), s && s.d(), i[29](null);
691
691
  }
692
692
  };
693
693
  }
694
694
  function ze(i, e, t) {
695
695
  let n;
696
- ye(i, we, (r) => t(16, n = r));
696
+ Se(i, we, (r) => t(16, n = r));
697
697
  let { session: a = "" } = e, { userid: s = "" } = e, { title: u = "" } = e, { startdate: d = "" } = e, { status: l = "" } = e, { tourid: c = "" } = e, { thumbnail: h = "" } = e, { userenrolled: z = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: T = "" } = e, { showenrolled: p = "false" } = e, { gameurl: f = "" } = e, { lang: o = "en" } = e, { keepbrowsercontext: b = "false" } = e, { clientstyling: j = "" } = e, { clientstylingurl: x = "" } = e, { translationurl: M = "" } = e, J, L = "", F = !1, N = "", W = "", k = "";
698
698
  const w = () => {
699
699
  fetch(M).then((v) => v.json()).then((v) => {
@@ -744,14 +744,14 @@ function ze(i, e, t) {
744
744
  );
745
745
  });
746
746
  };
747
- Se(() => (setTimeout(() => q(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", H, !1), () => {
747
+ Ce(() => (setTimeout(() => q(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", H, !1), () => {
748
748
  window.removeEventListener("message", H);
749
749
  }));
750
750
  const q = () => {
751
751
  Re(o), G(), U(), d && P();
752
752
  }, oe = () => V();
753
753
  function ue(r) {
754
- Ce[r ? "unshift" : "push"](() => {
754
+ Me[r ? "unshift" : "push"](() => {
755
755
  J = r, t(10, J);
756
756
  });
757
757
  }
@@ -807,7 +807,7 @@ class je extends be {
807
807
  e,
808
808
  ze,
809
809
  Fe,
810
- pe,
810
+ ke,
811
811
  {
812
812
  session: 21,
813
813
  userid: 22,
@@ -934,7 +934,7 @@ class je extends be {
934
934
  this.$$set({ translationurl: e }), S();
935
935
  }
936
936
  }
937
- Me(je, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
937
+ pe(je, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
938
938
  export {
939
939
  je as default
940
940
  };
@@ -1,6 +1,6 @@
1
- import { a as ge, $ as fe, S as be, i as he, s as pe, f as S, b as ke, n as Y, d as C, c as m, e as _, g, h as y, j as I, k as ye, o as Se, l as D, t as R, m as Ce, p as B, q as _e, r as Ae, u as Te, v as K, w as E, x as ve, y as Me, z as we } from "./CasinoTournamentsListController-BmResUm1.js";
2
- import "../stencil/ui-skeleton-RkXNxPG1.js";
3
- import "../stencil/ui-image-D0wxuPze.js";
1
+ import { a as ge, $ as fe, S as be, i as he, f as S, c as pe, s as ke, b as ye, e as y, d as I, g as m, h as C, j as g, n as Y, k as _, l as Se, o as Ce, t as R, m as D, p as B, q as _e, r as Ae, u as Te, v as ve, w as Me, x as K, y as E, z as we } from "./CasinoTournamentsListController-DARzYiXJ.js";
2
+ import "../stencil/ui-skeleton-DSlZCsjK.js";
3
+ import "../stencil/ui-image-ClXqMGwp.js";
4
4
  function Z(i, e) {
5
5
  ge(i, e);
6
6
  }
@@ -340,7 +340,7 @@ const Q = {
340
340
  }
341
341
  };
342
342
  function Je(i) {
343
- ke(i, "svelte-1ymu8a4", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
343
+ ye(i, "svelte-1ymu8a4", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
344
344
  }
345
345
  function X(i) {
346
346
  let e, t, n;
@@ -349,10 +349,10 @@ function X(i) {
349
349
  e = y("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>', t = I(), n = y("div"), n.innerHTML = '<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>', m(e, "class", "Skeleton CardImg"), m(n, "class", "Details"), m(n, "part", "Details");
350
350
  },
351
351
  m(a, s) {
352
- _(a, e, s), _(a, t, s), _(a, n, s);
352
+ C(a, e, s), C(a, t, s), C(a, n, s);
353
353
  },
354
354
  d(a) {
355
- a && (C(e), C(t), C(n));
355
+ a && (_(e), _(t), _(n));
356
356
  }
357
357
  };
358
358
  }
@@ -385,7 +385,7 @@ function $(i) {
385
385
  ), d = I(), p && p.c(), l = I(), f && f.c(), m(s, "class", "Title"), m(s, "part", "Title"), m(a, "class", "Details"), m(a, "part", "Details");
386
386
  },
387
387
  m(o, b) {
388
- c && c.m(o, b), _(o, e, b), h && h.m(o, b), _(o, t, b), T.m(o, b), _(o, n, b), _(o, a, b), g(a, s), g(s, u), g(a, d), p && p.m(a, null), g(a, l), f && f.m(a, null);
388
+ c && c.m(o, b), C(o, e, b), h && h.m(o, b), C(o, t, b), T.m(o, b), C(o, n, b), C(o, a, b), g(a, s), g(s, u), g(a, d), p && p.m(a, null), g(a, l), f && f.m(a, null);
389
389
  },
390
390
  p(o, b) {
391
391
  /*status*/
@@ -400,7 +400,7 @@ function $(i) {
400
400
  o[12] ? f ? f.p(o, b) : (f = ne(o), f.c(), f.m(a, null)) : f && (f.d(1), f = null);
401
401
  },
402
402
  d(o) {
403
- o && (C(e), C(t), C(n), C(a)), c && c.d(o), h && h.d(o), T.d(o), p && p.d(), f && f.d();
403
+ o && (_(e), _(t), _(n), _(a)), c && c.d(o), h && h.d(o), T.d(o), p && p.d(), f && f.d();
404
404
  }
405
405
  };
406
406
  }
@@ -416,7 +416,7 @@ function ee(i) {
416
416
  i[15]);
417
417
  },
418
418
  m(d, l) {
419
- _(d, e, l), g(e, t), s || (u = B(
419
+ C(d, e, l), g(e, t), s || (u = B(
420
420
  /*matchStatus*/
421
421
  i[18].call(null, e)
422
422
  ), s = !0);
@@ -434,7 +434,7 @@ function ee(i) {
434
434
  d[15]) && m(e, "part", a);
435
435
  },
436
436
  d(d) {
437
- d && C(e), s = !1, u();
437
+ d && _(e), s = !1, u();
438
438
  }
439
439
  };
440
440
  }
@@ -448,14 +448,14 @@ function te(i) {
448
448
  t && t.c(), e = _e();
449
449
  },
450
450
  m(n, a) {
451
- t && t.m(n, a), _(n, e, a);
451
+ t && t.m(n, a), C(n, e, a);
452
452
  },
453
453
  p(n, a) {
454
454
  /*userenrolled*/
455
455
  n[5] ? t ? t.p(n, a) : (t = ie(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
456
456
  },
457
457
  d(n) {
458
- n && C(e), t && t.d(n);
458
+ n && _(e), t && t.d(n);
459
459
  }
460
460
  };
461
461
  }
@@ -469,7 +469,7 @@ function ie(i) {
469
469
  e = y("div"), n = R(t), m(e, "class", "Enrolled"), m(e, "part", "Enrolled");
470
470
  },
471
471
  m(a, s) {
472
- _(a, e, s), g(e, n);
472
+ C(a, e, s), g(e, n);
473
473
  },
474
474
  p(a, s) {
475
475
  s[0] & /*$_*/
@@ -477,7 +477,7 @@ function ie(i) {
477
477
  a[16]("enrolled") + "") && D(n, t);
478
478
  },
479
479
  d(a) {
480
- a && C(e);
480
+ a && _(e);
481
481
  }
482
482
  };
483
483
  }
@@ -492,7 +492,7 @@ function De(i) {
492
492
  i[0] == "Closed" ? "CardImgFinished" : ""));
493
493
  },
494
494
  m(l, c) {
495
- _(l, e, c), g(e, t), u || (d = B(
495
+ C(l, e, c), g(e, t), u || (d = B(
496
496
  /*matchStatus*/
497
497
  i[18].call(null, e)
498
498
  ), u = !0);
@@ -507,7 +507,7 @@ function De(i) {
507
507
  l[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "part", s);
508
508
  },
509
509
  d(l) {
510
- l && C(e), u = !1, d();
510
+ l && _(e), u = !1, d();
511
511
  }
512
512
  };
513
513
  }
@@ -523,7 +523,7 @@ function Ie(i) {
523
523
  i[0] == "Closed" ? "CardImgFinished" : ""));
524
524
  },
525
525
  m(l, c) {
526
- _(l, e, c), g(e, t), u || (d = B(
526
+ C(l, e, c), g(e, t), u || (d = B(
527
527
  /*matchStatus*/
528
528
  i[18].call(null, e)
529
529
  ), u = !0);
@@ -540,7 +540,7 @@ function Ie(i) {
540
540
  l[0] == "Closed" ? "CardImgFinished" : "")) && m(e, "part", s);
541
541
  },
542
542
  d(l) {
543
- l && C(e), u = !1, d();
543
+ l && _(e), u = !1, d();
544
544
  }
545
545
  };
546
546
  }
@@ -554,7 +554,7 @@ function ae(i) {
554
554
  ), m(e, "class", "Date"), m(e, "part", "Date");
555
555
  },
556
556
  m(u, d) {
557
- _(u, e, d), g(e, t), a || (s = B(n = /*formatDate*/
557
+ C(u, e, d), g(e, t), a || (s = B(n = /*formatDate*/
558
558
  i[17].call(
559
559
  null,
560
560
  e,
@@ -568,7 +568,7 @@ function ae(i) {
568
568
  t,
569
569
  /*shownDate*/
570
570
  u[11]
571
- ), n && ve(n.update) && d[0] & /*startdate*/
571
+ ), n && Ae(n.update) && d[0] & /*startdate*/
572
572
  4 && n.update.call(
573
573
  null,
574
574
  /*startdate*/
@@ -576,7 +576,7 @@ function ae(i) {
576
576
  );
577
577
  },
578
578
  d(u) {
579
- u && C(e), a = !1, s();
579
+ u && _(e), a = !1, s();
580
580
  }
581
581
  };
582
582
  }
@@ -614,7 +614,7 @@ function ne(i) {
614
614
  i[9] === "true" ? "_self" : "_blank"), m(o, "part", "GamesP"), m(f, "class", "Games"), m(f, "part", "Games");
615
615
  },
616
616
  m(k, w) {
617
- _(k, e, w), g(e, t), g(t, a), g(t, s), g(t, u), g(u, d), g(t, l), g(t, h), g(t, z), g(t, A), g(t, T), _(k, p, w), _(k, f, w), g(f, o), g(o, j), g(o, x), g(o, M), g(M, L), N || (W = [
617
+ C(k, e, w), g(e, t), g(t, a), g(t, s), g(t, u), g(u, d), g(t, l), g(t, h), g(t, z), g(t, A), g(t, T), C(k, p, w), C(k, f, w), g(f, o), g(o, j), g(o, x), g(o, M), g(M, L), N || (W = [
618
618
  B(
619
619
  /*matchScoreCriteria*/
620
620
  i[19].call(null, u)
@@ -657,7 +657,7 @@ function ne(i) {
657
657
  k[9] === "true" ? "_self" : "_blank") && m(M, "target", F);
658
658
  },
659
659
  d(k) {
660
- k && (C(e), C(p), C(f)), N = !1, Ae(W);
660
+ k && (_(e), _(p), _(f)), N = !1, ve(W);
661
661
  }
662
662
  };
663
663
  }
@@ -675,7 +675,7 @@ function Fe(i) {
675
675
  i[1] === "undefined" ? "Loading" : ""}`), m(e, "part", "Thumbnail");
676
676
  },
677
677
  m(u, d) {
678
- _(u, e, d), a && a.m(e, null), g(e, t), s && s.m(e, null), i[29](e);
678
+ C(u, e, d), a && a.m(e, null), g(e, t), s && s.m(e, null), i[29](e);
679
679
  },
680
680
  p(u, d) {
681
681
  /*title*/
@@ -687,13 +687,13 @@ function Fe(i) {
687
687
  i: Y,
688
688
  o: Y,
689
689
  d(u) {
690
- u && C(e), a && a.d(), s && s.d(), i[29](null);
690
+ u && _(e), a && a.d(), s && s.d(), i[29](null);
691
691
  }
692
692
  };
693
693
  }
694
694
  function ze(i, e, t) {
695
695
  let n;
696
- ye(i, we, (r) => t(16, n = r));
696
+ Se(i, we, (r) => t(16, n = r));
697
697
  let { session: a = "" } = e, { userid: s = "" } = e, { title: u = "" } = e, { startdate: d = "" } = e, { status: l = "" } = e, { tourid: c = "" } = e, { thumbnail: h = "" } = e, { userenrolled: z = "" } = e, { scorecriteria: A = "" } = e, { minbetcount: T = "" } = e, { showenrolled: p = "false" } = e, { gameurl: f = "" } = e, { lang: o = "en" } = e, { keepbrowsercontext: b = "false" } = e, { clientstyling: j = "" } = e, { clientstylingurl: x = "" } = e, { translationurl: M = "" } = e, J, L = "", F = !1, N = "", W = "", k = "";
698
698
  const w = () => {
699
699
  fetch(M).then((v) => v.json()).then((v) => {
@@ -744,14 +744,14 @@ function ze(i, e, t) {
744
744
  );
745
745
  });
746
746
  };
747
- Se(() => (setTimeout(() => q(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", H, !1), () => {
747
+ Ce(() => (setTimeout(() => q(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", H, !1), () => {
748
748
  window.removeEventListener("message", H);
749
749
  }));
750
750
  const q = () => {
751
751
  Re(o), G(), U(), d && P();
752
752
  }, oe = () => V();
753
753
  function ue(r) {
754
- Ce[r ? "unshift" : "push"](() => {
754
+ Me[r ? "unshift" : "push"](() => {
755
755
  J = r, t(10, J);
756
756
  });
757
757
  }
@@ -807,7 +807,7 @@ class je extends be {
807
807
  e,
808
808
  ze,
809
809
  Fe,
810
- pe,
810
+ ke,
811
811
  {
812
812
  session: 21,
813
813
  userid: 22,
@@ -934,7 +934,7 @@ class je extends be {
934
934
  this.$$set({ translationurl: e }), S();
935
935
  }
936
936
  }
937
- Me(je, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
937
+ pe(je, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
938
938
  export {
939
939
  je as default
940
940
  };
@@ -0,0 +1,3 @@
1
+ "use strict";var ee=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{u(e.next(c))}catch(d){o(d)}},a=c=>{try{u(e.throw(c))}catch(d){o(d)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(i,t)).next())});const n=require("./CasinoTournamentsListController-FixxxVPw.cjs");function j(i){return typeof i=="function"}function Re(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var te=Re(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(r,o){return o+1+") "+r.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function ne(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var G=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=n.__values(a),c=u.next();!c.done;c=u.next()){var d=c.value;d.remove(this)}}catch(w){t={error:w}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var m=this.initialTeardown;if(j(m))try{m()}catch(w){s=w instanceof te?w.errors:[w]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var k=n.__values(p),b=k.next();!b.done;b=k.next()){var _=b.value;try{ke(_)}catch(w){s=s!=null?s:[],w instanceof te?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(w.errors)):s.push(w)}}}catch(w){r={error:w}}finally{try{b&&!b.done&&(o=k.return)&&o.call(k)}finally{if(r)throw r.error}}}if(s)throw new te(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ke(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ne(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&ne(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ue=G.EMPTY;function Je(i){return i instanceof G||i&&"closed"in i&&j(i.remove)&&j(i.add)&&j(i.unsubscribe)}function ke(i){j(i)?i():i.unsubscribe()}var st={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},at={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,n.__spreadArray([i,t],n.__read(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function lt(i){at.setTimeout(function(){throw i})}function Te(){}function q(i){i()}var He=function(i){n.__extends(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Je(e)&&e.add(r)):r.destination=ft,r}return t.create=function(e,r,o){return new re(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(G),ut=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){W(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){W(r)}else W(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){W(e)}},i}(),re=function(i){n.__extends(t,i);function t(e,r,o){var s=i.call(this)||this,a;return j(e)||!e?a={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new ut(a),s}return t}(He);function W(i){lt(i)}function ct(i){throw i}var ft={closed:!0,next:Te,error:ct,complete:Te},dt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mt(i){return i}function ht(i){return i.length===0?mt:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var Se=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var o=this,s=_t(t)?t:new re(t,e,r);return q(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=Fe(e),new e(function(o,s){var a=new re({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});r.subscribe(a)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[dt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ht(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Fe(t),new t(function(r,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function Fe(i){var t;return(t=i!=null?i:st.Promise)!==null&&t!==void 0?t:Promise}function pt(i){return i&&j(i.next)&&j(i.error)&&j(i.complete)}function _t(i){return i&&i instanceof He||pt(i)&&Je(i)}var gt=Re(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),We=function(i){n.__extends(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Ee(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new gt},t.prototype.next=function(e){var r=this;q(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=n.__values(r.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(d){o={error:d}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;q(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?Ue:(this.currentObservers=null,u.push(e),new G(function(){r.currentObservers=null,ne(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,a=r.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Se;return e.source=this,e},t.create=function(e,r){return new Ee(e,r)},t}(Se),Ee=function(i){n.__extends(t,i);function t(e,r){var o=i.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Ue},t}(We),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},bt=function(i){n.__extends(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=qe);var s=i.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,u=r._timestampProvider,c=r._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*r;if(r<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),d=0,m=1;m<s.length&&s[m]<=c;m+=2)d=m;d&&s.splice(0,d+1)}},t}(We);const xe=[],je={},wt=(i,t=0)=>{if(xe.indexOf(i)==-1){const e=new bt(t);je[i]=e,xe.push(i)}return je[i]};window.emWidgets={topic:wt};const ie=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function yt({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function ze(i,t){n.addMessages(i,t)}function vt(i){n.$locale.set(i)}const Pe={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-BE01XfdC.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-DX9aKZsv.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-GlkjX8Xm.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-DDxzPtNz.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function kt(i){n.append_styles(i,"svelte-chi6uq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .Rectangle.Skeleton,.Loading .TournamentPrizes .Rectangle.Skeleton,.Loading .TournamentsGamesSlider .Rectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::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(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--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:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes 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 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 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 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 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 fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Ce(i){let t;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Be(i){let t,e,r=i[24]&&Oe(i);return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"status",i[23]),n.set_custom_element_data(e,"startdate",i[21]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"enddate",i[22]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[24]?r?r.p(o,s):(r=Oe(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&n.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&n.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&n.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function Oe(i){let t,e,r,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",i[24]),n.set_custom_element_data(t,"clientstyling",i[10]),n.set_custom_element_data(t,"clientstylingurl",i[11]),n.set_custom_element_data(t,"translationurl",i[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),r||(o=n.action_destroyer(e=i[37].call(null,t,i[24])),r=!0)},p(s,a){a[0]&16777216&&n.set_custom_element_data(t,"tourid",s[24]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&16777216&&e.update.call(null,s[24])},d(s){s&&n.detach(t),r=!1,o()}}}function Tt(i){let t,e=i[32]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,r),o||(s=n.listen(t,"click",i[51]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function St(i){let t,e,r=i[3]=="true"&&De(i);function o(u,c){return u[26]?xt:Et}let s=o(i),a=s(i);return{c(){r&&r.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){r&&r.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[3]=="true"?r?r.p(u,c):(r=De(u),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),r&&r.d(u),a.d(u)}}}function Ft(i){let t,e=i[32]("login")+"",r,o,s,a=i[32]("register")+"",u,c,d;return{c(){t=n.element("button"),r=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(m,p){n.insert(m,t,p),n.append(t,r),n.insert(m,o,p),n.insert(m,s,p),n.append(s,u),c||(d=[n.listen(t,"click",i[47]),n.listen(s,"click",i[48])],c=!0)},p(m,p){p[1]&2&&e!==(e=m[32]("login")+"")&&n.set_data(r,e),p[1]&2&&a!==(a=m[32]("register")+"")&&n.set_data(u,a)},d(m){m&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(d)}}}function De(i){let t,e=i[32]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,r),o||(s=n.listen(t,"click",i[49]),o=!0)},p(a,u){u[1]&2&&e!==(e=a[32]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(i){let t,e,r,o,s;function a(d,m){return d[16]==!0?zt:jt}let u=a(i),c=u(i);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(i[7]?"JoinButtonFullSize":"")),n.attr(t,"part",r="JoinButton "+(i[7]?"JoinButtonFullSize":"")),t.disabled=i[17]},m(d,m){n.insert(d,t,m),c.m(t,null),o||(s=n.listen(t,"click",i[50]),o=!0)},p(d,m){u===(u=a(d))&&c?c.p(d,m):(c.d(1),c=u(d),c&&(c.c(),c.m(t,null))),m[0]&128&&e!==(e="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),m[0]&128&&r!==(r="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),m[0]&131072&&(t.disabled=d[17])},d(d){d&&n.detach(t),c.d(),o=!1,s()}}}function xt(i){let t,e=i[3]=="true"&&Le(i);return{c(){e&&e.c(),t=n.empty()},m(r,o){e&&e.m(r,o),n.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=Le(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&n.detach(t),e&&e.d(r)}}}function jt(i){let t,e=i[32]("join")+"",r,o,s,a,u,c,d,m;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),d=n.svg_element("g"),m=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(m,"class","a"),n.attr(m,"part","a JoinButtonSvgA"),n.attr(m,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(m,"transform","translate(26 26) rotate(180)"),n.attr(d,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(p,k){n.insert(p,t,k),n.append(t,r),n.insert(p,o,k),n.insert(p,s,k),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,d),n.append(d,m)},p(p,k){k[1]&2&&e!==(e=p[32]("join")+"")&&n.set_data(r,e)},d(p){p&&(n.detach(t),n.detach(o),n.detach(s))}}}function zt(i){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(r,o){n.insert(r,t,o),n.append(t,e)},p:n.noop,d(r){r&&n.detach(t)}}}function Le(i){let t,e=i[32]("enrolled")+"",r;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,r)},p(o,s){s[1]&2&&e!==(e=o[32]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function Ae(i){let t,e=i[32]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[18]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,r),n.append(t,o),n.append(t,s)},p(a,u){u[1]&2&&e!==(e=a[32]("joinerror")+"")&&n.set_data(r,e),u[0]&262144&&n.set_data(s,a[18])},d(a){a&&n.detach(t)}}}function Ie(i){let t,e,r=i[15]&&Me();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[10]),n.set_custom_element_data(e,"clientstylingurl",i[11]),n.set_custom_element_data(e,"translationurl",i[12]),n.set_custom_element_data(e,"tournamenturl",i[2]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[15]?r||(r=Me(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function Me(i){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function Pt(i){let t,e,r,o,s,a,u,c,d,m,p,k,b=i[15]&&Ce(),_=i[14]&&Be(i);function w(f,h){if(!f[14])return Ft;if(f[23]!="Closed"&&f[23]!="Closing")return St;if(f[3]=="true")return Tt}let E=w(i),y=E&&E(i),v=(i[17]||i[19])&&Ae(i),T=i[4]=="true"&&Ie(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),b&&b.c(),s=n.space(),_&&_.c(),a=n.space(),u=n.element("div"),y&&y.c(),c=n.space(),v&&v.c(),d=n.space(),T&&T.c(),n.set_custom_element_data(r,"session",i[0]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[20]),n.set_custom_element_data(r,"status",i[23]),n.set_custom_element_data(r,"startdate",i[21]),n.set_custom_element_data(r,"tourid",i[24]),n.set_custom_element_data(r,"scorecriteria",i[27]),n.set_custom_element_data(r,"minbetcount",i[28]),n.set_custom_element_data(r,"thumbnail",i[25]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[30]),n.set_custom_element_data(r,"userenrolled",i[26]),n.set_custom_element_data(r,"clientstyling",i[10]),n.set_custom_element_data(r,"clientstylingurl",i[11]),n.set_custom_element_data(r,"translationurl",i[12]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[9]),n.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(u,"class","TournamentButtons"),n.attr(u,"part","TournamentButtons"),n.attr(e,"class",m="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",p="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")+" "+(i[31]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",k=`${i[15]?"Loading":""}`)},m(f,h){n.insert(f,t,h),n.append(t,e),n.append(e,r),n.append(e,o),b&&b.m(e,null),n.append(e,s),_&&_.m(e,null),n.append(e,a),n.append(e,u),y&&y.m(u,null),n.append(e,c),v&&v.m(e,null),n.append(e,d),T&&T.m(e,null),i[52](t)},p(f,h){h[0]&1&&n.set_custom_element_data(r,"session",f[0]),h[0]&2&&n.set_custom_element_data(r,"userid",f[1]),h[0]&1048576&&n.set_custom_element_data(r,"title",f[20]),h[0]&8388608&&n.set_custom_element_data(r,"status",f[23]),h[0]&2097152&&n.set_custom_element_data(r,"startdate",f[21]),h[0]&16777216&&n.set_custom_element_data(r,"tourid",f[24]),h[0]&134217728&&n.set_custom_element_data(r,"scorecriteria",f[27]),h[0]&268435456&&n.set_custom_element_data(r,"minbetcount",f[28]),h[0]&33554432&&n.set_custom_element_data(r,"thumbnail",f[25]),h[0]&32&&n.set_custom_element_data(r,"showenrolled",f[5]),h[0]&1073741824&&n.set_custom_element_data(r,"gameurl",f[30]),h[0]&67108864&&n.set_custom_element_data(r,"userenrolled",f[26]),h[0]&1024&&n.set_custom_element_data(r,"clientstyling",f[10]),h[0]&2048&&n.set_custom_element_data(r,"clientstylingurl",f[11]),h[0]&4096&&n.set_custom_element_data(r,"translationurl",f[12]),h[0]&256&&n.set_custom_element_data(r,"lang",f[8]),h[0]&512&&n.set_custom_element_data(r,"keepbrowsercontext",f[9]),f[15]?b||(b=Ce(),b.c(),b.m(e,s)):b&&(b.d(1),b=null),f[14]?_?_.p(f,h):(_=Be(f),_.c(),_.m(e,a)):_&&(_.d(1),_=null),E===(E=w(f))&&y?y.p(f,h):(y&&y.d(1),y=E&&E(f),y&&(y.c(),y.m(u,null))),f[17]||f[19]?v?v.p(f,h):(v=Ae(f),v.c(),v.m(e,d)):v&&(v.d(1),v=null),f[4]=="true"?T?T.p(f,h):(T=Ie(f),T.c(),T.m(e,null)):T&&(T.d(1),T=null),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",m),h[0]&192|h[1]&1&&p!==(p="TournamentCard "+(f[6]?"CardMaxWidth":"")+(f[7]?"CardFullSize":"")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn")+" "+(f[31]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",p),h[0]&32768&&k!==(k=`${f[15]?"Loading":""}`)&&n.attr(t,"class",k)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),b&&b.d(),_&&_.d(),y&&y.d(),v&&v.d(),T&&T.d(),i[52](null)}}}function Ct(i,t,e){let r;n.component_subscribe(i,n.$format,l=>e(32,r=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:d=""}=t,{showslider:m=""}=t,{showenrolled:p=""}=t,{maxwidth:k=""}=t,{fullsize:b=""}=t,{lang:_=""}=t,{loginevent:w=""}=t,{registerevent:E=""}=t,{loginurl:y=""}=t,{registerurl:v=""}=t,{currency:T=""}=t,{keepbrowsercontext:f="false"}=t,{clientstyling:h=""}=t,{clientstylingurl:L=""}=t,{translationurl:A=""}=t,{tournamentinfo:I}=t,z,C=!1,M="",B=!0,oe=window.navigator.userAgent,R=!1,U=!1,se="There was an error while trying to join the tournament",N=!1,Y,ae,le,O,x,ue,K,ce,fe,de=[],V=[],me="#",X,J=!1;yt({withLocale:"en",translations:{}});const Ne=()=>{fetch(A).then(g=>g.json()).then(g=>{Object.keys(g).forEach(S=>{ze(S,g[S])})}).catch(g=>{console.log(g)})};Object.keys(Pe).forEach(l=>{ze(l,Pe[l])});const he=l=>{Ye(l),Q(l),we(this,x)},pe=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(14,C=!0),M=l.data.session),l.data.type=="UpdateTournamentView"){let g=l.data.tournamentData;if(x&&x!=g.id)return;he(g)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let g=l.data.tournamentData,S=u<4?u*100:Math.random()*300+300;e(31,J=u==1),setTimeout(()=>{e(31,J=!0),e(24,x=g.id),he(g)},S),setTimeout(()=>{e(31,J=!1)},S+200)}},Ye=l=>{l.state!=O&&(e(23,O=l.state),window.postMessage({type:`TournamentStatus_${x}`,status:O},window.location.href))},_e=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),typeof gtag=="function"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),y&&(window.location=y)},ge=()=>{E&&(window.postMessage({type:E,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),v&&(window.location=v)},Z=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},be=(l,g)=>ee(this,null,function*(){var ve;e(17,U=!1),e(19,N=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(16,R=!0);let S=new URL(`${c}/v1/bonus/claim`),H=new Headers,P={};S.searchParams.append("language",_),S.searchParams.append("platform",ie(oe)),H.append("Content-Type","application/json"),H.append("X-SessionID",M),g&&g.length>=1&&(P={language:_,bonusCode:g[0].code,currency:T,type:"tournament"});let ot={method:"PUT",headers:H,body:JSON.stringify(P)};const ye=()=>{e(16,R=!1),e(26,K=!0)},$=F=>{e(16,R=!1),F&&e(18,se=F),e(17,U=!0)},D=yield ee(this,null,function*(){let F;try{F=yield fetch(S,ot),F=yield F.json()}catch(Dt){$()}return F});if(D)if(D.success==!0)ye();else if(D.errorMessage.match("VersionMismatchException")){let F;F=yield fetch(`${c}/tournaments/${x}`,{headers:{"X-SessionID":o}}),F=yield F.json(),(ve=F==null?void 0:F.item)!=null&&ve.playerEnrolled?ye():($(D.errorMessage),e(19,N=!0),e(17,U=!1))}else $(D.errorMessage)}),we=(l,g)=>{window.postMessage({type:`TournamentPrizes_${g}`,prizes:de},window.location.href)},Q=l=>{l&&(e(20,Y=l.nameOrTitle||""),e(21,ae=l.startTime),e(22,le=l.endTime),e(23,O=l.state),e(24,x=l.id),e(25,ue=l.thumbnail),e(26,K=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(27,ce=l.scoreCriteria),e(28,fe=l.minBetCount),de=l.prizes,e(29,V=l.wallets||[]),e(30,me=l.termsUrl||"#"))},Ke=l=>{e(15,B=!0);let g=new URL(l),S=new Headers;g.searchParams.append("language",_),g.searchParams.append("platform",ie(oe)),C&&S.append("X-SessionID",M),fetch(g,{method:"GET",headers:S}).then(P=>P.json()).then(P=>{Q(P.item)}).finally(()=>{e(15,B=!1)})},Ve=()=>{o.length>0&&o!="false"?(M=o,e(14,C=!0)):e(14,C=!1)},Xe=()=>{if(I){Q(I);return}e(15,B=!0),Ke(a)},Ze=()=>{let l=document.createElement("style");l.innerHTML=h,z.appendChild(l)},Qe=()=>{let l=new URL(L),g=document.createElement("style");fetch(l.href).then(S=>S.text()).then(S=>{g.innerHTML=S,setTimeout(()=>{z.appendChild(g)},1),setTimeout(()=>{},500)})};n.onMount(()=>(e(15,B=!Y),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",pe,!1),()=>{window.removeEventListener("message",pe)}));const $e=()=>_e(),et=()=>ge(),tt=()=>Z(x),nt=()=>be(x,V),rt=()=>Z(x);function it(l){n.binding_callbacks[l?"unshift":"push"](()=>{z=l,e(13,z)})}return i.$$set=l=>{"session"in l&&e(0,o=l.session),"userid"in l&&e(1,s=l.userid),"tournamenturl"in l&&e(2,a=l.tournamenturl),"touridx"in l&&e(38,u=l.touridx),"endpoint"in l&&e(39,c=l.endpoint),"showdetails"in l&&e(3,d=l.showdetails),"showslider"in l&&e(4,m=l.showslider),"showenrolled"in l&&e(5,p=l.showenrolled),"maxwidth"in l&&e(6,k=l.maxwidth),"fullsize"in l&&e(7,b=l.fullsize),"lang"in l&&e(8,_=l.lang),"loginevent"in l&&e(40,w=l.loginevent),"registerevent"in l&&e(41,E=l.registerevent),"loginurl"in l&&e(42,y=l.loginurl),"registerurl"in l&&e(43,v=l.registerurl),"currency"in l&&e(44,T=l.currency),"keepbrowsercontext"in l&&e(9,f=l.keepbrowsercontext),"clientstyling"in l&&e(10,h=l.clientstyling),"clientstylingurl"in l&&e(11,L=l.clientstylingurl),"translationurl"in l&&e(12,A=l.translationurl),"tournamentinfo"in l&&e(45,I=l.tournamentinfo)},i.$$.update=()=>{i.$$.dirty[0]&256&&_&&vt(_),i.$$.dirty[0]&9216&&z&&h&&Ze(),i.$$.dirty[0]&10240&&z&&L&&Qe(),i.$$.dirty[0]&4096&&A&&Ne(),i.$$.dirty[0]&1&&o&&Ve(),i.$$.dirty[0]&260&&e(46,X=a&&_),i.$$.dirty[1]&32768&&X&&Xe()},[o,s,a,d,m,p,k,b,_,f,h,L,A,z,C,B,R,U,se,N,Y,ae,le,O,x,ue,K,ce,fe,V,me,J,r,_e,ge,Z,be,we,u,c,w,E,y,v,T,I,X,$e,et,tt,nt,rt,it]}class Ge extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Ct,Pt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},kt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[38]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[39]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[40]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[41]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get loginurl(){return this.$$.ctx[42]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[43]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[44]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}}n.create_custom_element(Ge,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Bt;exports.getDevice=ie;