@everymatrix/mini-games-hub 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/components/ArrowLeftIcon-BBQbSgPj.js +20 -0
  2. package/components/ArrowLeftIcon-CK2Rm6IW.cjs +1 -0
  3. package/components/ArrowLeftIcon-CbMwJALt.js +20 -0
  4. package/components/ArrowLeftIcon-Ls7P40Uk.cjs +1 -0
  5. package/components/{CoinFlip-BOrc1Sgy.cjs → CoinFlip-CWv6r8u1.cjs} +1 -1
  6. package/components/{CoinFlip-DiCOvx3Q.cjs → CoinFlip-CaRkaWEA.cjs} +1 -1
  7. package/components/{CoinFlip-DgM6tDy5.js → CoinFlip-D3kH_y8b.js} +17 -17
  8. package/components/{CoinFlip-uc2aguuz.js → CoinFlip-hKLoCmvJ.js} +1 -1
  9. package/components/{CoinRoyale-fp-xfwl2.js → CoinRoyale-Cr3FMU-f.js} +105 -101
  10. package/components/{CoinRoyale-Bkr3Rd-u.cjs → CoinRoyale-DcXB88TG.cjs} +4 -4
  11. package/components/{CoinRoyale-DLL1bCAy.js → CoinRoyale-HFE5DCkQ.js} +120 -116
  12. package/components/{CoinRoyale-BH73ZSrU.cjs → CoinRoyale-mXlKdlwT.cjs} +4 -4
  13. package/components/{GameCard-Qh_fk15-.cjs → GameCard-BPoaBZ8h.cjs} +3 -3
  14. package/components/{GameCard-BiO9Cay-.cjs → GameCard-DfVe9CgG.cjs} +3 -3
  15. package/components/{GameCard-jCZ6S2Wu.js → GameCard-cglVYPLz.js} +31 -31
  16. package/components/{GameCard-D78hDMaL.js → GameCard-grRDxpTz.js} +36 -36
  17. package/components/{MiniGamesHub-Bf2Cd1bB.js → MiniGamesHub-CxhilLzF.js} +157 -88
  18. package/components/{MiniGamesHub-KqAdBJEX.js → MiniGamesHub-DUICCoYd.js} +137 -68
  19. package/components/MiniGamesHub-DW82s9I9.cjs +79 -0
  20. package/components/MiniGamesHub-uuQkACzs.cjs +79 -0
  21. package/components/{WheelOfFortune-CBYo6vCg.js → WheelOfFortune-CsDXFzBd.js} +19 -19
  22. package/components/{WheelOfFortune-XfmUFV3-.cjs → WheelOfFortune-DGY-q1LW.cjs} +1 -1
  23. package/components/{WheelOfFortune-CDTzbAjp.cjs → WheelOfFortune-DfN31a-S.cjs} +1 -1
  24. package/components/{WheelOfFortune-8HCl7aHv.js → WheelOfFortune-MIjCRllT.js} +28 -28
  25. package/components/WheelOfFortuneDrawResults-CKN979BS.js +261 -0
  26. package/components/WheelOfFortuneDrawResults-CmfWdZz0.cjs +1 -0
  27. package/components/WheelOfFortuneDrawResults-Di5DQfhF.cjs +1 -0
  28. package/components/WheelOfFortuneDrawResults-Dr-xmM_N.js +286 -0
  29. package/components/WheelOfFortuneHistory-BL4DV0im.cjs +13 -0
  30. package/components/WheelOfFortuneHistory-CqRO9Oee.cjs +13 -0
  31. package/components/WheelOfFortuneHistory-DFn33FhJ.js +222 -0
  32. package/components/WheelOfFortuneHistory-DvqIUld0.js +223 -0
  33. package/components/WheelOfFortuneRules-BxMUpX5_.js +120 -0
  34. package/components/WheelOfFortuneRules-CnS5xZ_B.js +109 -0
  35. package/components/WheelOfFortuneRules-Cu5CBrl6.cjs +5 -0
  36. package/components/WheelOfFortuneRules-UZj0hVWC.cjs +5 -0
  37. package/components/{WheelOfFortuneWheel-F62aU_CL.js → WheelOfFortuneWheel-C694AcSr.js} +280 -263
  38. package/components/WheelOfFortuneWheel-CvGaRYgu.cjs +3 -0
  39. package/components/WheelOfFortuneWheel-Dxh6wKCh.cjs +3 -0
  40. package/components/{WheelOfFortuneWheel-CiyQZNAd.js → WheelOfFortuneWheel-cBswACGf.js} +515 -498
  41. package/es2015/mini-games-hub.cjs +1 -1
  42. package/es2015/mini-games-hub.js +1 -1
  43. package/esnext/mini-games-hub.cjs +1 -1
  44. package/esnext/mini-games-hub.js +1 -1
  45. package/package.json +1 -1
  46. package/components/MiniGamesHub-5tuj6CDm.cjs +0 -16
  47. package/components/MiniGamesHub-SxucWl3S.cjs +0 -16
  48. package/components/WheelOfFortuneDrawResults-CASEqNiM.cjs +0 -1
  49. package/components/WheelOfFortuneDrawResults-DqgsImHB.js +0 -254
  50. package/components/WheelOfFortuneDrawResults-DsfJ3803.js +0 -279
  51. package/components/WheelOfFortuneDrawResults-l8iWZa_e.cjs +0 -1
  52. package/components/WheelOfFortuneHistory-CF8B0i5m.js +0 -213
  53. package/components/WheelOfFortuneHistory-Cnk8otCw.js +0 -213
  54. package/components/WheelOfFortuneHistory-DARohsMs.cjs +0 -12
  55. package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +0 -12
  56. package/components/WheelOfFortuneRules-BZqR4cT9.js +0 -118
  57. package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +0 -3
  58. package/components/WheelOfFortuneRules-CRGG3J0S.js +0 -107
  59. package/components/WheelOfFortuneRules-DLj96pqu.cjs +0 -3
  60. package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +0 -3
  61. package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +0 -3
@@ -1,24 +1,24 @@
1
- var U = (A, i, m) => new Promise((T, k) => {
1
+ var U = (A, t, m) => new Promise((T, w) => {
2
2
  var f = (o) => {
3
3
  try {
4
4
  v(m.next(o));
5
- } catch (y) {
6
- k(y);
5
+ } catch (b) {
6
+ w(b);
7
7
  }
8
8
  }, l = (o) => {
9
9
  try {
10
10
  v(m.throw(o));
11
- } catch (y) {
12
- k(y);
11
+ } catch (b) {
12
+ w(b);
13
13
  }
14
14
  }, v = (o) => o.done ? T(o.value) : Promise.resolve(o.value).then(f, l);
15
- v((m = m.apply(A, i)).next());
15
+ v((m = m.apply(A, t)).next());
16
16
  });
17
- import { a as Me, p as u, y as Fe, z as re, A as ie, o as Be, i as te, b as P, e as Ne, f as H, c as de, k as Ge, g as Le, h as qe, j as Y, s as He } from "./WheelOfFortuneWheel-CiyQZNAd.js";
18
- import { bn as G, bo as _e, ad as Ve, b1 as j, aQ as Oe, a9 as pe, aU as d, a5 as ge, L as r, aJ as s, bp as Ee, b6 as Z, b2 as ae, ba as L, bb as q, b7 as X, b3 as oe, ar as se, b4 as Ie } from "./utils-DGrEJJ_K.js";
19
- import { W as le } from "./WheelOfFortune-8HCl7aHv.js";
20
- import { C as Je } from "./CoinRoyale-DLL1bCAy.js";
21
- import { G as Ke } from "./GameCard-D78hDMaL.js";
17
+ import { a as Me, p as u, z as Fe, A as re, B as te, o as Be, i as ie, e as P, g as Ne, f as H, c as de, l as Ge, h as Le, j as qe, k as Y, s as He } from "./WheelOfFortuneWheel-cBswACGf.js";
18
+ import { bn as G, bo as _e, ad as Ve, b1 as D, aQ as Oe, a9 as pe, aU as d, a5 as ge, L as r, aJ as s, bp as Ee, b6 as Z, b2 as ae, ba as L, bb as q, b7 as X, b3 as oe, ar as se, b4 as Ie } from "./utils-DGrEJJ_K.js";
19
+ import { W as le } from "./WheelOfFortune-MIjCRllT.js";
20
+ import { C as Je } from "./CoinRoyale-HFE5DCkQ.js";
21
+ import { G as Ke } from "./GameCard-grRDxpTz.js";
22
22
  const ue = {
23
23
  en: {
24
24
  noContent: "You don't have any lottery programs available now.",
@@ -108,6 +108,7 @@ const ue = {
108
108
  coinTitle: "Coin Royale",
109
109
  remainingFlips: "Remaining Flips :",
110
110
  flipCoin: "Flip Coin",
111
+ flipAgain: "Flip again",
111
112
  dragToFlip: "Drag to flip",
112
113
  gameCardCoinFlips: "Coin <br/> Flips"
113
114
  },
@@ -199,6 +200,7 @@ const ue = {
199
200
  coinTitle: "Coin Royale",
200
201
  remainingFlips: "Resterende Flips :",
201
202
  flipCoin: "Slå Mønt",
203
+ flipAgain: "Slå igen",
202
204
  dragToFlip: "Træk for at slå",
203
205
  gameCardCoinFlips: "Mønt <br/> Flips"
204
206
  },
@@ -290,6 +292,7 @@ const ue = {
290
292
  coinTitle: "Coin Royale",
291
293
  remainingFlips: "Verbleibende Würfe :",
292
294
  flipCoin: "Münze werfen",
295
+ flipAgain: "Erneut werfen",
293
296
  dragToFlip: "Zum Werfen ziehen",
294
297
  gameCardCoinFlips: "Münz- <br/> würfe"
295
298
  },
@@ -381,6 +384,7 @@ const ue = {
381
384
  coinTitle: "Coin Royale",
382
385
  remainingFlips: "Resterende Flips :",
383
386
  flipCoin: "Gooi Munt",
387
+ flipAgain: "Opnieuw gooien",
384
388
  dragToFlip: "Sleep om te gooien",
385
389
  gameCardCoinFlips: "Munt <br/> Flips"
386
390
  },
@@ -472,6 +476,7 @@ const ue = {
472
476
  coinTitle: "Coin Royale",
473
477
  remainingFlips: "Lancers restants :",
474
478
  flipCoin: "Lancer la pièce",
479
+ flipAgain: "Relancer la pièce",
475
480
  dragToFlip: "Glissez pour lancer",
476
481
  gameCardCoinFlips: "Lancers <br/> de pièce"
477
482
  },
@@ -563,19 +568,21 @@ const ue = {
563
568
  coinTitle: "Coin Royale",
564
569
  remainingFlips: "Kalan Atışlar :",
565
570
  flipCoin: "Parayı At",
571
+ flipAgain: "Tekrar at",
566
572
  dragToFlip: "Atmak için sürükleyin",
567
573
  gameCardCoinFlips: "Para <br/> Atışı"
568
574
  }
569
575
  };
570
- var Ue = H('<div class="loader-container"><div class="loader"><div class="loader-ring-outer"></div> <div class="loader-ring-inner"></div></div></div>'), Ye = H('<div class="prize-hub-container"><h3> </h3> <p> </p></div> <div class="mini-games-card-list"></div>', 1), Ze = H("<div><p> </p></div>"), Xe = H('<div class="main-container"><!></div>');
576
+ var Ue = H('<div class="loader-container svelte-pzanec"><div class="loader svelte-pzanec"><div class="loader-ring-outer svelte-pzanec"></div> <div class="loader-ring-inner svelte-pzanec"></div></div></div>'), Ye = H('<div class="prize-hub-container svelte-pzanec"><h3 class="svelte-pzanec"> </h3> <p class="svelte-pzanec"> </p></div> <div class="mini-games-card-list svelte-pzanec"></div>', 1), Ze = H('<div class="svelte-pzanec"><p class="svelte-pzanec"> </p></div>'), Xe = H('<div class="main-container svelte-pzanec"><!></div>');
571
577
  const Qe = {
572
578
  hash: "svelte-pzanec",
573
- code: ` *,
574
- *::before,
575
- *::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;-webkit-tap-highlight-color:transparent;} .main-container {background-color:transparent;width:100%;height:100%;min-height:100%;color:var(--color-text-default, #ffffff);display:flex;flex-direction:column;gap:5px;max-width:700px;margin:0 auto;} .mini-games-card-list {display:flex;flex-direction:column;gap:12px;width:100%;padding:0 10px;} .prize-hub-container {display:flex;flex-direction:column;width:100%;padding:12px;gap:8px;margin:8px 0;} .prize-hub-container h3 {color:var(--color-text-brand, #ffcc00);font-weight:700;font-size:14px;} .prize-hub-container p {color:var(--color-text-default, #ffffff);font-size:12px;font-weight:400;} .loader-container {display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;} .loader {position:relative;width:64px;height:64px;} .loader-ring-outer,
576
- .loader-ring-inner {position:absolute;border-radius:50%;border:3px solid transparent;} .loader-ring-outer {width:64px;height:64px;top:0;left:0;border-top-color:var(--loader-color-primary, #ffcc00);
577
- animation: svelte-pzanec-spin-cw 1s linear infinite;} .loader-ring-inner {width:42px;height:42px;top:11px;left:11px;border-top-color:var(--loader-color-secondary, rgba(255, 255, 255, 0.5019607843));
579
+ code: `.svelte-pzanec,
580
+ .svelte-pzanec::before,
581
+ .svelte-pzanec::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;-webkit-tap-highlight-color:transparent;}.main-container.svelte-pzanec {background-color:transparent;width:100%;height:100%;min-height:100%;color:var(--color-text-default, #ffffff);display:flex;flex-direction:column;gap:5px;max-width:700px;margin:0 auto;}.mini-games-card-list.svelte-pzanec {display:flex;flex-direction:column;gap:12px;width:100%;padding:0 10px;}.prize-hub-container.svelte-pzanec {display:flex;flex-direction:column;width:100%;padding:12px;gap:8px;margin:8px 0;}.prize-hub-container.svelte-pzanec h3:where(.svelte-pzanec) {color:var(--color-text-brand, #ffcc00);font-weight:700;font-size:14px;}.prize-hub-container.svelte-pzanec p:where(.svelte-pzanec) {color:var(--color-text-default, #ffffff);font-size:12px;font-weight:400;}.loader-container.svelte-pzanec {display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;}.loader.svelte-pzanec {position:relative;width:64px;height:64px;}.loader-ring-outer.svelte-pzanec,
582
+ .loader-ring-inner.svelte-pzanec {position:absolute;border-radius:50%;border:3px solid transparent;}.loader-ring-outer.svelte-pzanec {width:64px;height:64px;top:0;left:0;border-top-color:var(--loader-color-primary, #ffcc00);
583
+ animation: svelte-pzanec-spin-cw 1s linear infinite;}.loader-ring-inner.svelte-pzanec {width:42px;height:42px;top:11px;left:11px;border-top-color:var(--loader-color-secondary, rgba(255, 255, 255, 0.5019607843));
578
584
  animation: svelte-pzanec-spin-ccw 0.75s linear infinite;}
585
+
579
586
  @keyframes svelte-pzanec-spin-cw {
580
587
  to {
581
588
  transform: rotate(360deg);
@@ -585,31 +592,93 @@ const Qe = {
585
592
  to {
586
593
  transform: rotate(-360deg);
587
594
  }
588
- }`
595
+ }
596
+ /* Skeleton (kept for reference, replaced by loader above)
597
+ @keyframes skeleton-pulse {
598
+ 0%,
599
+ 100% {
600
+ opacity: 0.3;
601
+ }
602
+ 50% {
603
+ opacity: 0.6;
604
+ }
605
+ }
606
+
607
+ .skeleton-row {
608
+ pointer-events: none;
609
+ }
610
+
611
+ .skeleton-bone {
612
+ display: block;
613
+ border-radius: 4px;
614
+ background-color: var(--color-overlay-neutral-2, #fbfbfb33);
615
+ animation: skeleton-pulse 1.4s ease-in-out infinite;
616
+ }
617
+
618
+ .skeleton-title {
619
+ width: 40%;
620
+ height: 22px;
621
+ margin-bottom: 8px;
622
+ }
623
+
624
+ .skeleton-subtitle {
625
+ width: 60%;
626
+ height: 14px;
627
+ }
628
+
629
+ .skeleton-card {
630
+ display: flex;
631
+ flex-direction: column;
632
+ height: 115px;
633
+ border: 1px solid var(--color-border-subtle, #fbfbfb0d);
634
+ border-radius: 14px;
635
+ background-color: var(--color-overlay-neutral-1, #fbfbfb1a);
636
+ overflow: hidden;
637
+ }
638
+
639
+ .skeleton-card-image {
640
+ width: 100%;
641
+ height: 70px;
642
+ border-radius: 0;
643
+ }
644
+
645
+ .skeleton-card-body {
646
+ display: flex;
647
+ justify-content: end;
648
+ height: 50px;
649
+ gap: 8px;
650
+ padding: 12px;
651
+ }
652
+
653
+ .skeleton-card-button {
654
+ width: 30%;
655
+ height: 25px;
656
+ }
657
+ */`
589
658
  };
590
- function ce(A, i) {
659
+ function ce(A, t) {
591
660
  var $, ee;
592
- ge(i, !0), Me(A, Qe);
593
- const m = () => He(Ie, "$_", T), [T, k] = Ne(), f = u(i, "endpoint", 7), l = u(i, "session", 7), v = u(i, "requiresOptin", 7, !1), o = u(i, "language", 7, "en"), y = u(i, "outerWheelAsset", 7, null), z = u(i, "wheelButtonAsset", 7, null), C = u(i, "backgroundVideoAsset", 7, null), a = u(i, "liteMode", 7, !1), R = u(i, "translationurl", 7), he = !G() && /iPhone|iPad|iPod/.test(navigator.userAgent), me = G() ? 1 / 0 : ($ = navigator.deviceMemory) != null ? $ : 1 / 0, fe = G() ? 1 / 0 : (ee = navigator.hardwareConcurrency) != null ? ee : 1 / 0;
594
- function ye() {
661
+ ge(t, !0), Me(A, Qe);
662
+ const m = () => He(Ie, "$_", T), [T, w] = Ne(), f = u(t, "endpoint", 7), l = u(t, "session", 7), v = u(t, "requiresOptin", 7, !1), o = u(t, "language", 7, "en"), b = u(t, "outerWheelAsset", 7, null), z = u(t, "wheelButtonAsset", 7, null), x = u(t, "backgroundVideoAsset", 7, null), a = u(t, "liteMode", 7, !1), R = u(t, "translationurl", 7), he = !G() && /iPhone|iPad|iPod/.test(navigator.userAgent), me = G() ? 1 / 0 : ($ = navigator.deviceMemory) != null ? $ : 1 / 0, fe = G() ? 1 / 0 : (ee = navigator.hardwareConcurrency) != null ? ee : 1 / 0;
663
+ function be() {
595
664
  try {
596
665
  const n = document.createElement("canvas").getContext("webgl");
597
666
  if (!n) return !1;
598
- const b = n.getExtension("WEBGL_debug_renderer_info");
599
- if (!b) return !1;
600
- const t = n.getParameter(b.UNMASKED_RENDERER_WEBGL).toLowerCase();
601
- return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(t);
667
+ const y = n.getExtension("WEBGL_debug_renderer_info");
668
+ if (!y) return !1;
669
+ const i = n.getParameter(y.UNMASKED_RENDERER_WEBGL).toLowerCase();
670
+ return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(i);
602
671
  } catch (e) {
603
672
  return !1;
604
673
  }
605
674
  }
606
- const be = !G() && !he && (me <= 4 || fe <= 4 || ye()), _ = q(() => a() || be);
675
+ const ye = !G() && !he && (me <= 4 || fe <= 4 || be()), _ = q(() => a() || ye);
607
676
  Fe({ withLocale: "en", translations: {} });
608
677
  const ve = () => {
609
678
  let e = new URL(R());
610
679
  fetch(e.href).then((n) => n.json()).then((n) => {
611
- Object.keys(n).forEach((b) => {
612
- re(b, n[b]);
680
+ Object.keys(n).forEach((y) => {
681
+ re(y, n[y]);
613
682
  });
614
683
  }).catch((n) => {
615
684
  console.log(n);
@@ -617,49 +686,49 @@ function ce(A, i) {
617
686
  };
618
687
  Object.keys(ue).forEach((e) => {
619
688
  re(e, ue[e]);
620
- }), ie(o());
621
- const we = () => {
622
- ie(o());
689
+ }), te(o());
690
+ const ke = () => {
691
+ te(o());
623
692
  };
624
693
  _e(() => {
625
694
  R() && ve();
626
695
  }), Ve(() => {
627
- we();
696
+ ke();
628
697
  });
629
- let S = j(!1), g = j(Oe([])), V = j(!1), W = j(!1), w = j(null), O = j(!1);
630
- const ke = () => U(this, null, function* () {
698
+ let S = D(!1), g = D(Oe([])), V = D(!1), W = D(!1), k = D(null), O = D(!1);
699
+ const we = () => U(this, null, function* () {
631
700
  s(S, !0);
632
701
  const e = new URL(`${f()}/v1/wof/claimable`), n = new Headers();
633
702
  l() && n.append("X-SessionId", l());
634
- const b = { method: "GET", headers: n, cache: "no-store" };
635
- e.searchParams.append("filter", "wheelOfFortune"), fetch(e, b).then((t) => t.json()).then((t) => {
636
- var c, D, F, B;
637
- if (t && ((c = t.errorMessage) == null ? void 0 : c.trim()) === "InvalidSessionId") {
703
+ const y = { method: "GET", headers: n, cache: "no-store" };
704
+ e.searchParams.append("filter", "wheelOfFortune"), fetch(e, y).then((i) => i.json()).then((i) => {
705
+ var c, C, F, B;
706
+ if (i && ((c = i.errorMessage) == null ? void 0 : c.trim()) === "InvalidSessionId") {
638
707
  s(W, !0), s(S, !1);
639
708
  return;
640
709
  }
641
- if ((F = (D = t == null ? void 0 : t.items) == null ? void 0 : D.program) != null && F.canClaim) {
642
- s(g, (B = t == null ? void 0 : t.items) == null ? void 0 : B.program, !0), s(S, !1);
710
+ if ((F = (C = i == null ? void 0 : i.items) == null ? void 0 : C.program) != null && F.canClaim) {
711
+ s(g, (B = i == null ? void 0 : i.items) == null ? void 0 : B.program, !0), s(S, !1);
643
712
  return;
644
713
  }
645
- s(g, t == null ? void 0 : t.items, !0);
646
- }).catch((t) => {
647
- console.log(t), s(V, !0);
714
+ s(g, i == null ? void 0 : i.items, !0);
715
+ }).catch((i) => {
716
+ console.log(i), s(V, !0);
648
717
  }).finally(() => {
649
718
  s(S, !1), M();
650
719
  });
651
720
  }), ze = ["wheelOfFortune", "flipCoin"].map((e) => `Types[]=${e}`).join(","), Te = () => U(this, null, function* () {
652
- var b, t;
721
+ var y, i;
653
722
  s(S, !0);
654
723
  const e = new URL(`${f()}/v1/wof/lotteries`), n = new Headers();
655
724
  l() && n.append("X-SessionId", l()), e.searchParams.append("filter", ze);
656
725
  try {
657
726
  const c = yield (yield fetch(e, { method: "GET", headers: n, cache: "no-store" })).json();
658
- if (((b = c == null ? void 0 : c.errorMessage) == null ? void 0 : b.trim()) === "InvalidSessionId") {
727
+ if (((y = c == null ? void 0 : c.errorMessage) == null ? void 0 : y.trim()) === "InvalidSessionId") {
659
728
  s(W, !0);
660
729
  return;
661
730
  }
662
- s(g, ((t = c == null ? void 0 : c.items) != null ? t : []).map((D) => Ee(D, o())), !0), r(g).length === 1 && (s(w, r(g)[0], !0), s(O, !0)), r(g).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
731
+ s(g, ((i = c == null ? void 0 : c.items) != null ? i : []).map((C) => Ee(C, o())), !0), r(g).length === 1 && (s(k, r(g)[0], !0), s(O, !0)), r(g).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
663
732
  } catch (c) {
664
733
  console.log(c), s(V, !0);
665
734
  } finally {
@@ -682,17 +751,17 @@ function ce(A, i) {
682
751
  if (e.data)
683
752
  switch (e.data.type) {
684
753
  case "PlayMiniGame":
685
- s(w, r(g).find((n) => n.id === e.data.programId), !0);
754
+ s(k, r(g).find((n) => n.id === e.data.programId), !0);
686
755
  break;
687
756
  case "CloseMiniGame":
688
- s(w, null), M();
757
+ s(k, null), M();
689
758
  break;
690
759
  case "PrizeGameRemainingTimesUpdated":
691
- s(w, e.data.data, !0), s(g, r(g).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
760
+ s(k, e.data.data, !0), s(g, r(g).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
692
761
  break;
693
762
  }
694
763
  };
695
- Be(() => (l() || setTimeout(M, 0), l() && (v() ? ke() : Te()), window.addEventListener("message", Q), () => {
764
+ Be(() => (l() || setTimeout(M, 0), l() && (v() ? we() : Te()), window.addEventListener("message", Q), () => {
696
765
  window.removeEventListener("message", Q);
697
766
  }));
698
767
  var Ae = {
@@ -721,10 +790,10 @@ function ce(A, i) {
721
790
  o(e), d();
722
791
  },
723
792
  get outerWheelAsset() {
724
- return y();
793
+ return b();
725
794
  },
726
795
  set outerWheelAsset(e = null) {
727
- y(e), d();
796
+ b(e), d();
728
797
  },
729
798
  get wheelButtonAsset() {
730
799
  return z();
@@ -733,10 +802,10 @@ function ce(A, i) {
733
802
  z(e), d();
734
803
  },
735
804
  get backgroundVideoAsset() {
736
- return C();
805
+ return x();
737
806
  },
738
807
  set backgroundVideoAsset(e = null) {
739
- C(e), d();
808
+ x(e), d();
740
809
  },
741
810
  get liteMode() {
742
811
  return a();
@@ -750,24 +819,24 @@ function ce(A, i) {
750
819
  set translationurl(e) {
751
820
  R(e), d();
752
821
  }
753
- }, E = Xe(), Ce = Z(E);
822
+ }, E = Xe(), xe = Z(E);
754
823
  {
755
- var De = (e) => {
824
+ var Ce = (e) => {
756
825
  var n = Ue();
757
826
  P(e, n);
758
- }, je = (e) => {
759
- var n = Ge(), b = ae(n);
827
+ }, De = (e) => {
828
+ var n = Ge(), y = ae(n);
760
829
  {
761
- var t = (p) => {
830
+ var i = (p) => {
762
831
  le(p, {
763
832
  get outerWheelAsset() {
764
- return y();
833
+ return b();
765
834
  },
766
835
  get wheelButtonAsset() {
767
836
  return z();
768
837
  },
769
838
  get backgroundVideoAsset() {
770
- return C();
839
+ return x();
771
840
  },
772
841
  get language() {
773
842
  return o();
@@ -781,7 +850,7 @@ function ce(A, i) {
781
850
  let h = q(() => !r(O));
782
851
  Je(p, {
783
852
  get program() {
784
- return r(w);
853
+ return r(k);
785
854
  },
786
855
  get endpoint() {
787
856
  return f();
@@ -800,12 +869,12 @@ function ce(A, i) {
800
869
  }
801
870
  });
802
871
  }
803
- }, D = q(() => r(w) && Se(r(w))), F = (p) => {
872
+ }, C = q(() => r(k) && Se(r(k))), F = (p) => {
804
873
  {
805
874
  let h = q(() => !r(O));
806
875
  le(p, {
807
876
  get program() {
808
- return r(w);
877
+ return r(k);
809
878
  },
810
879
  get endpoint() {
811
880
  return f();
@@ -817,13 +886,13 @@ function ce(A, i) {
817
886
  return l();
818
887
  },
819
888
  get outerWheelAsset() {
820
- return y();
889
+ return b();
821
890
  },
822
891
  get wheelButtonAsset() {
823
892
  return z();
824
893
  },
825
894
  get backgroundVideoAsset() {
826
- return C();
895
+ return x();
827
896
  },
828
897
  get showBackButton() {
829
898
  return r(h);
@@ -834,9 +903,9 @@ function ce(A, i) {
834
903
  });
835
904
  }
836
905
  }, B = (p) => {
837
- var h = Ye(), x = ae(h), N = Z(x), I = X(N, !0), Re = oe(N, 2), We = X(Re, !0);
838
- L(x);
839
- var ne = oe(x, 2);
906
+ var h = Ye(), j = ae(h), N = Z(j), I = X(N, !0), Re = oe(N, 2), We = X(Re, !0);
907
+ L(j);
908
+ var ne = oe(j, 2);
840
909
  Le(ne, 21, () => r(g), qe, (J, K) => {
841
910
  Ke(J, {
842
911
  get program() {
@@ -850,23 +919,23 @@ function ce(A, i) {
850
919
  [() => m()("hubTitle"), () => m()("hubSubtitle")]
851
920
  ), P(p, h);
852
921
  }, Pe = (p) => {
853
- var h = Ze(), x = Z(h), N = X(x, !0);
922
+ var h = Ze(), j = Z(h), N = X(j, !0);
854
923
  L(h), se((I) => Y(N, I), [() => m()("noContent")]), P(p, h);
855
924
  };
856
- te(b, (p) => {
925
+ ie(y, (p) => {
857
926
  var h;
858
- !l() || r(W) ? p(t) : r(D) ? p(c, 1) : r(w) ? p(F, 2) : ((h = r(g)) == null ? void 0 : h.length) > 1 ? p(B, 3) : p(Pe, -1);
927
+ !l() || r(W) ? p(i) : r(C) ? p(c, 1) : r(k) ? p(F, 2) : ((h = r(g)) == null ? void 0 : h.length) > 1 ? p(B, 3) : p(Pe, -1);
859
928
  });
860
929
  }
861
930
  P(e, n);
862
931
  };
863
- te(Ce, (e) => {
864
- r(S) ? e(De) : e(je, -1);
932
+ ie(xe, (e) => {
933
+ r(S) ? e(Ce) : e(De, -1);
865
934
  });
866
935
  }
867
936
  L(E), P(A, E);
868
- var xe = pe(Ae);
869
- return k(), xe;
937
+ var je = pe(Ae);
938
+ return w(), je;
870
939
  }
871
940
  de(
872
941
  ce,
@@ -885,10 +954,10 @@ de(
885
954
  [],
886
955
  { mode: "open" }
887
956
  );
888
- function $e(A, i) {
889
- ge(i, !0);
890
- let m = u(i, "endpoint", 7), T = u(i, "session", 7), k = u(i, "requiresOptin", 7, !1), f = u(i, "language", 7, "en"), l = u(i, "outerWheelAsset", 7, null), v = u(i, "wheelButtonAsset", 7, null), o = u(i, "backgroundVideoAsset", 7, null), y = u(i, "liteMode", 7, !1), z = u(i, "translationurl", 7);
891
- var C = {
957
+ function $e(A, t) {
958
+ ge(t, !0);
959
+ let m = u(t, "endpoint", 7), T = u(t, "session", 7), w = u(t, "requiresOptin", 7, !1), f = u(t, "language", 7, "en"), l = u(t, "outerWheelAsset", 7, null), v = u(t, "wheelButtonAsset", 7, null), o = u(t, "backgroundVideoAsset", 7, null), b = u(t, "liteMode", 7, !1), z = u(t, "translationurl", 7);
960
+ var x = {
892
961
  get endpoint() {
893
962
  return m();
894
963
  },
@@ -902,10 +971,10 @@ function $e(A, i) {
902
971
  T(a), d();
903
972
  },
904
973
  get requiresOptin() {
905
- return k();
974
+ return w();
906
975
  },
907
976
  set requiresOptin(a = !1) {
908
- k(a), d();
977
+ w(a), d();
909
978
  },
910
979
  get language() {
911
980
  return f();
@@ -932,10 +1001,10 @@ function $e(A, i) {
932
1001
  o(a), d();
933
1002
  },
934
1003
  get liteMode() {
935
- return y();
1004
+ return b();
936
1005
  },
937
1006
  set liteMode(a = !1) {
938
- y(a), d();
1007
+ b(a), d();
939
1008
  },
940
1009
  get translationurl() {
941
1010
  return z();
@@ -952,7 +1021,7 @@ function $e(A, i) {
952
1021
  return T();
953
1022
  },
954
1023
  get requiresOptin() {
955
- return k();
1024
+ return w();
956
1025
  },
957
1026
  get language() {
958
1027
  return f();
@@ -967,12 +1036,12 @@ function $e(A, i) {
967
1036
  return o();
968
1037
  },
969
1038
  get liteMode() {
970
- return y();
1039
+ return b();
971
1040
  },
972
1041
  get translationurl() {
973
1042
  return z();
974
1043
  }
975
- }), pe(C);
1044
+ }), pe(x);
976
1045
  }
977
1046
  customElements.define("mini-games-hub", de(
978
1047
  $e,