@everymatrix/mini-games-hub 0.2.6 → 0.2.8

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 (74) hide show
  1. package/components/CoinFlip-BOrc1Sgy.cjs +1 -0
  2. package/components/CoinFlip-DgM6tDy5.js +390 -0
  3. package/components/CoinFlip-DiCOvx3Q.cjs +1 -0
  4. package/components/CoinFlip-uc2aguuz.js +355 -0
  5. package/components/CoinRoyale-BH73ZSrU.cjs +734 -0
  6. package/components/CoinRoyale-Bkr3Rd-u.cjs +734 -0
  7. package/components/CoinRoyale-DLL1bCAy.js +1032 -0
  8. package/components/CoinRoyale-fp-xfwl2.js +994 -0
  9. package/components/{GameCard-C-zSlvo1.cjs → GameCard-BiO9Cay-.cjs} +2 -2
  10. package/components/{GameCard-BQ6hFy67.js → GameCard-D78hDMaL.js} +24 -21
  11. package/components/{GameCard-vgoswSWl.cjs → GameCard-Qh_fk15-.cjs} +2 -2
  12. package/components/{GameCard-B3YKo9k6.js → GameCard-jCZ6S2Wu.js} +23 -23
  13. package/components/MiniGamesHub-5tuj6CDm.cjs +16 -0
  14. package/components/{MiniGamesHub-C0q9vZFD.js → MiniGamesHub-Bf2Cd1bB.js} +269 -202
  15. package/components/{MiniGamesHub-D5Y5OYt-.js → MiniGamesHub-KqAdBJEX.js} +231 -167
  16. package/components/MiniGamesHub-SxucWl3S.cjs +16 -0
  17. package/components/{WheelOfFortune-DC57_QGF.js → WheelOfFortune-8HCl7aHv.js} +186 -175
  18. package/components/{WheelOfFortune-u6v6YLc5.js → WheelOfFortune-CBYo6vCg.js} +146 -138
  19. package/components/{WheelOfFortune-2WKhJAdZ.cjs → WheelOfFortune-CDTzbAjp.cjs} +2 -2
  20. package/components/{WheelOfFortune-BJ9iMr53.cjs → WheelOfFortune-XfmUFV3-.cjs} +2 -2
  21. package/components/{WheelOfFortuneDrawResults-BKkTmsVC.cjs → WheelOfFortuneDrawResults-CASEqNiM.cjs} +1 -1
  22. package/components/{WheelOfFortuneDrawResults-D3rgrYi_.js → WheelOfFortuneDrawResults-DqgsImHB.js} +3 -3
  23. package/components/{WheelOfFortuneDrawResults-gx2xkUtF.js → WheelOfFortuneDrawResults-DsfJ3803.js} +3 -3
  24. package/components/{WheelOfFortuneDrawResults-DTufAeXD.cjs → WheelOfFortuneDrawResults-l8iWZa_e.cjs} +1 -1
  25. package/components/WheelOfFortuneHistory-CF8B0i5m.js +213 -0
  26. package/components/WheelOfFortuneHistory-Cnk8otCw.js +213 -0
  27. package/components/WheelOfFortuneHistory-DARohsMs.cjs +12 -0
  28. package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +12 -0
  29. package/components/{WheelOfFortuneRules-DkQOlpqR.js → WheelOfFortuneRules-BZqR4cT9.js} +27 -27
  30. package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +3 -0
  31. package/components/{WheelOfFortuneRules-BM75DT61.js → WheelOfFortuneRules-CRGG3J0S.js} +23 -23
  32. package/components/WheelOfFortuneRules-DLj96pqu.cjs +3 -0
  33. package/components/{WheelOfFortuneWheel-DmTRvIN6.js → WheelOfFortuneWheel-CiyQZNAd.js} +673 -664
  34. package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +3 -0
  35. package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +3 -0
  36. package/components/{WheelOfFortuneWheel-D_tfW-rK.js → WheelOfFortuneWheel-F62aU_CL.js} +186 -178
  37. package/components/bg-scene-Bz42V1FW.cjs +1 -0
  38. package/components/bg-scene-DpHgKCHj.js +4 -0
  39. package/components/coin-heads-BuJOLpyg.cjs +1 -0
  40. package/components/coin-heads-loqcEtH2.js +4 -0
  41. package/components/coin-tails-20vJmhwv.cjs +1 -0
  42. package/components/coin-tails-BTbsTwkz.js +4 -0
  43. package/components/{constants-BYsDpbRv.js → constants-BDSd8ptj.js} +25 -15
  44. package/components/constants-CoPH35Re.cjs +1 -0
  45. package/components/{sparkles-BnriHiyw.cjs → sparkles-9YGw1xiU.cjs} +1 -1
  46. package/components/{sparkles-DplvhrIm.cjs → sparkles-B3XdFovy.cjs} +1 -1
  47. package/components/{sparkles-CSfeD2Zu.js → sparkles-BWGIWWDc.js} +1 -1
  48. package/components/{sparkles-CTrQ372y.js → sparkles-uxV1OTbN.js} +1 -1
  49. package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BXcblJt7.cjs} +1 -1
  50. package/components/{spin-controller-HS3m99tB.cjs → spin-controller-BzO5YNSN.cjs} +1 -1
  51. package/components/{spin-controller-BuBkKrNR.js → spin-controller-CZWa2gmm.js} +2 -2
  52. package/components/{spin-controller-REPdRwaB.js → spin-controller-D3hdDnQ0.js} +2 -2
  53. package/components/{utils-B86dsoC-.js → utils-3LNftCeZ.js} +976 -958
  54. package/components/utils-BxNmJ6YA.cjs +3 -0
  55. package/components/{utils-BtFS7k_l.js → utils-DGrEJJ_K.js} +1063 -1045
  56. package/components/utils-DyVEmMSf.cjs +3 -0
  57. package/es2015/mini-games-hub.cjs +1 -1
  58. package/es2015/mini-games-hub.js +1 -1
  59. package/esnext/mini-games-hub.cjs +1 -1
  60. package/esnext/mini-games-hub.js +1 -1
  61. package/package.json +1 -1
  62. package/components/MiniGamesHub-CfiDjCz7.cjs +0 -16
  63. package/components/MiniGamesHub-DYwmUNTy.cjs +0 -16
  64. package/components/WheelOfFortuneHistory-B-Yadw5p.js +0 -213
  65. package/components/WheelOfFortuneHistory-DdXxYW6M.cjs +0 -12
  66. package/components/WheelOfFortuneHistory-DhFZUmGd.cjs +0 -12
  67. package/components/WheelOfFortuneHistory-IM5H-der.js +0 -213
  68. package/components/WheelOfFortuneRules-D-xnWFIU.cjs +0 -3
  69. package/components/WheelOfFortuneRules-_a2c-LEy.cjs +0 -3
  70. package/components/WheelOfFortuneWheel-CUs0nOjA.cjs +0 -3
  71. package/components/WheelOfFortuneWheel-D9nXwM0H.cjs +0 -3
  72. package/components/constants-DM6Vdc6Z.cjs +0 -1
  73. package/components/utils-By_D2O28.cjs +0 -3
  74. package/components/utils-CSIl6eA7.cjs +0 -3
@@ -1,7 +1,8 @@
1
- import { c as te, a as De, p as o, x as Ae, y as K, z as Y, o as je, i as Z, b as j, f as M, e as xe, k as Pe, g as We, h as Re, j as _, s as Ce } from "./WheelOfFortuneWheel-D_tfW-rK.js";
2
- import { a5 as ie, bl as R, bm as Me, ad as Ne, b1 as S, aQ as Be, a9 as ae, aU as s, b6 as V, L as l, b9 as C, aJ as a, bn as Ge, b2 as X, bf as F, b5 as Q, ar as $, bb as ee, b3 as Le } from "./utils-B86dsoC-.js";
3
- import { W as ne } from "./WheelOfFortune-u6v6YLc5.js";
4
- import { G as qe } from "./GameCard-BQ6hFy67.js";
1
+ import { c as te, a as Pe, p as o, y as Re, z as Y, A as Z, o as We, i as X, b as D, f as N, e as Me, l as Fe, h as Be, j as Ne, k as E, s as Ge } from "./WheelOfFortuneWheel-F62aU_CL.js";
2
+ import { a5 as ie, bn as M, bo as Le, ad as qe, b1 as T, aQ as He, a9 as ae, aU as s, b6 as I, L as r, ba as F, aJ as a, bp as _e, b2 as Q, bc as B, b7 as J, b5 as $, ar as ee, b3 as Ve } from "./utils-3LNftCeZ.js";
3
+ import { W as ne } from "./WheelOfFortune-CBYo6vCg.js";
4
+ import { C as Oe } from "./CoinRoyale-fp-xfwl2.js";
5
+ import { G as Ee } from "./GameCard-jCZ6S2Wu.js";
5
6
  const re = {
6
7
  en: {
7
8
  noContent: "You don't have any lottery programs available now.",
@@ -87,7 +88,12 @@ const re = {
87
88
  single: "{count, plural, one {# Spin} other {# Spins}} every {day, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} each month - {range}",
88
89
  range: "{count, plural, one {# Spin} other {# Spins}} from {dayFrom, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} to {dayTo, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} each month - {range}"
89
90
  }
90
- }
91
+ },
92
+ coinTitle: "Coin Royale",
93
+ remainingFlips: "Remaining Flips :",
94
+ flipCoin: "Flip Coin",
95
+ dragToFlip: "Drag to flip",
96
+ gameCardCoinFlips: "Coin <br/> Flips"
91
97
  },
92
98
  da: {
93
99
  noContent: "Du har ingen lotteriprogrammer tilgængelige lige nu.",
@@ -173,7 +179,12 @@ const re = {
173
179
  single: "{count, plural, one {# Spin} other {# Spins}} den {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} i hver måned - {range}",
174
180
  range: "{count, plural, one {# Spin} other {# Spins}} fra {dayFrom, selectordinal, one {#.} two {#.} few {#.} other {#.}} til {dayTo, selectordinal, one {#.} two {#.} few {#.} other {#.}} i hver måned - {range}"
175
181
  }
176
- }
182
+ },
183
+ coinTitle: "Coin Royale",
184
+ remainingFlips: "Resterende Flips :",
185
+ flipCoin: "Slå Mønt",
186
+ dragToFlip: "Træk for at slå",
187
+ gameCardCoinFlips: "Mønt <br/> Flips"
177
188
  },
178
189
  de: {
179
190
  noContent: "Du hast derzeit keine verfügbaren Lotterieprogramme.",
@@ -259,7 +270,12 @@ const re = {
259
270
  single: "{count, plural, one {# Drehung} other {# Drehungen}} am {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} jeden Monat - {range}",
260
271
  range: "{count, plural, one {# Drehung} other {# Drehungen}} vom {dayFrom, selectordinal, one {#.} two {#.} few {#.} other {#.}} bis zum {dayTo, selectordinal, one {#.} two {#.} few {#.} other {#.}} jeden Monat - {range}"
261
272
  }
262
- }
273
+ },
274
+ coinTitle: "Coin Royale",
275
+ remainingFlips: "Verbleibende Würfe :",
276
+ flipCoin: "Münze werfen",
277
+ dragToFlip: "Zum Werfen ziehen",
278
+ gameCardCoinFlips: "Münz- <br/> würfe"
263
279
  },
264
280
  nl: {
265
281
  noContent: "Je hebt op dit moment geen loterijprogramma's beschikbaar.",
@@ -345,7 +361,12 @@ const re = {
345
361
  single: "{count, plural, one {# Spin} other {# Spins}} elke {day, selectordinal, one {#e} two {#e} few {#e} other {#e}} van de maand - {range}",
346
362
  range: "{count, plural, one {# Spin} other {# Spins}} van {dayFrom, selectordinal, one {#e} two {#e} few {#e} other {#e}} tot {dayTo, selectordinal, one {#e} two {#e} few {#e} other {#e}} van de maand - {range}"
347
363
  }
348
- }
364
+ },
365
+ coinTitle: "Coin Royale",
366
+ remainingFlips: "Resterende Flips :",
367
+ flipCoin: "Gooi Munt",
368
+ dragToFlip: "Sleep om te gooien",
369
+ gameCardCoinFlips: "Munt <br/> Flips"
349
370
  },
350
371
  fr: {
351
372
  noContent: "Vous n'avez actuellement aucun programme de loterie disponible.",
@@ -431,7 +452,12 @@ const re = {
431
452
  single: "{count, plural, one {# Tour} other {# Tours}} le {day, selectordinal, one {#er} two {#} few {#} other {#}} de chaque mois - {range}",
432
453
  range: "{count, plural, one {# Tour} other {# Tours}} du {dayFrom, selectordinal, one {#er} two {#} few {#} other {#}} au {dayTo, selectordinal, one {#er} two {#} few {#} other {#}} de chaque mois - {range}"
433
454
  }
434
- }
455
+ },
456
+ coinTitle: "Coin Royale",
457
+ remainingFlips: "Lancers restants :",
458
+ flipCoin: "Lancer la pièce",
459
+ dragToFlip: "Glissez pour lancer",
460
+ gameCardCoinFlips: "Lancers <br/> de pièce"
435
461
  },
436
462
  tr: {
437
463
  noContent: "Şu anda kullanılabilir bir çekiliş programınız yok.",
@@ -517,15 +543,20 @@ const re = {
517
543
  single: "{count, plural, one {# Çevirme} other {# Çevirme}} her ayın {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} günü - {range}",
518
544
  range: "{count, plural, one {# Çevirme} other {# Çevirme}} her ayın {dayFrom, selectordinal, one {#.} two {#.} few {#.} other {#.}} - {dayTo, selectordinal, one {#.} two {#.} few {#.} other {#.}} günleri arası - {range}"
519
545
  }
520
- }
546
+ },
547
+ coinTitle: "Coin Royale",
548
+ remainingFlips: "Kalan Atışlar :",
549
+ flipCoin: "Parayı At",
550
+ dragToFlip: "Atmak için sürükleyin",
551
+ gameCardCoinFlips: "Para <br/> Atışı"
521
552
  }
522
553
  };
523
- var He = M('<div class="loader-container"><div class="loader"><div class="loader-ring-outer"></div> <div class="loader-ring-inner"></div></div></div>'), _e = M('<div class="prize-hub-container"><h3> </h3> <p> </p></div> <div class="mini-games-card-list"></div>', 1), Ve = M("<div><p> </p></div>"), Fe = M('<div class="main-container"><!></div>');
524
- const Oe = {
554
+ var Ie = N('<div class="loader-container"><div class="loader"><div class="loader-ring-outer"></div> <div class="loader-ring-inner"></div></div></div>'), Je = N('<div class="prize-hub-container"><h3> </h3> <p> </p></div> <div class="mini-games-card-list"></div>', 1), Ke = N("<div><p> </p></div>"), Ue = N('<div class="main-container"><!></div>');
555
+ const Ye = {
525
556
  hash: "svelte-pzanec",
526
557
  code: ` *,
527
558
  *::before,
528
- *::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;padding-top:20px;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,
559
+ *::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,
529
560
  .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);
530
561
  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));
531
562
  animation: svelte-pzanec-spin-ccw 0.75s linear infinite;}
@@ -540,100 +571,109 @@ const Oe = {
540
571
  }
541
572
  }`
542
573
  };
543
- function oe(x, r) {
544
- ie(r, !0), De(x, Oe);
545
- const v = () => Ce(Le, "$_", T), [T, D] = xe(), h = o(r, "endpoint", 7), u = o(r, "session", 7), k = o(r, "requiresOptin", 7, !1), p = o(r, "language", 7, "en"), m = o(r, "outerWheelAsset", 7, null), f = o(r, "wheelButtonAsset", 7, null), w = o(r, "backgroundVideoAsset", 7, null), t = o(r, "liteMode", 7, !1), P = o(r, "translationurl", 7), se = !R() && /iPhone|iPad|iPod/.test(navigator.userAgent), le = R() ? 1 / 0 : navigator.deviceMemory ?? 1 / 0, ue = R() ? 1 / 0 : navigator.hardwareConcurrency ?? 1 / 0;
574
+ function oe(j, t) {
575
+ ie(t, !0), Pe(j, Ye);
576
+ const v = () => Ge(Ve, "$_", S), [S, A] = Me(), h = o(t, "endpoint", 7), l = o(t, "session", 7), w = o(t, "requiresOptin", 7, !1), c = o(t, "language", 7, "en"), y = o(t, "outerWheelAsset", 7, null), b = o(t, "wheelButtonAsset", 7, null), z = o(t, "backgroundVideoAsset", 7, null), i = o(t, "liteMode", 7, !1), x = o(t, "translationurl", 7), se = !M() && /iPhone|iPad|iPod/.test(navigator.userAgent), le = M() ? 1 / 0 : navigator.deviceMemory ?? 1 / 0, ue = M() ? 1 / 0 : navigator.hardwareConcurrency ?? 1 / 0;
546
577
  function de() {
547
578
  try {
548
579
  const n = document.createElement("canvas").getContext("webgl");
549
580
  if (!n) return !1;
550
- const c = n.getExtension("WEBGL_debug_renderer_info");
551
- if (!c) return !1;
552
- const i = n.getParameter(c.UNMASKED_RENDERER_WEBGL).toLowerCase();
553
- return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(i);
581
+ const g = n.getExtension("WEBGL_debug_renderer_info");
582
+ if (!g) return !1;
583
+ const u = n.getParameter(g.UNMASKED_RENDERER_WEBGL).toLowerCase();
584
+ return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(u);
554
585
  } catch {
555
586
  return !1;
556
587
  }
557
588
  }
558
- const pe = !R() && !se && (le <= 4 || ue <= 4 || de()), O = ee(() => t() || pe);
559
- Ae({ withLocale: "en", translations: {} });
589
+ const pe = !M() && !se && (le <= 4 || ue <= 4 || de()), G = B(() => i() || pe);
590
+ Re({ withLocale: "en", translations: {} });
560
591
  const ge = () => {
561
- let e = new URL(P());
592
+ let e = new URL(x());
562
593
  fetch(e.href).then((n) => n.json()).then((n) => {
563
- Object.keys(n).forEach((c) => {
564
- K(c, n[c]);
594
+ Object.keys(n).forEach((g) => {
595
+ Y(g, n[g]);
565
596
  });
566
597
  }).catch((n) => {
567
598
  console.log(n);
568
599
  });
569
600
  };
570
601
  Object.keys(re).forEach((e) => {
571
- K(e, re[e]);
572
- }), Y(p());
602
+ Y(e, re[e]);
603
+ }), Z(c());
573
604
  const ce = () => {
574
- Y(p());
605
+ Z(c());
575
606
  };
576
- Me(() => {
577
- P() && ge();
578
- }), Ne(() => {
607
+ Le(() => {
608
+ x() && ge();
609
+ }), qe(() => {
579
610
  ce();
580
611
  });
581
- let y = S(!1), g = S(Be([])), E = S(!1), N = S(!1), z = S(null), J = S(!1);
612
+ let k = T(!1), p = T(He([])), L = T(!1), P = T(!1), f = T(null), q = T(!1);
582
613
  const he = async () => {
583
- a(y, !0);
614
+ a(k, !0);
584
615
  const e = new URL(`${h()}/v1/wof/claimable`), n = new Headers();
585
- u() && n.append("X-SessionId", u());
586
- const c = { method: "GET", headers: n, cache: "no-store" };
587
- e.searchParams.append("filter", "wheelOfFortune"), fetch(e, c).then((i) => i.json()).then((i) => {
588
- if (i && i.errorMessage?.trim() === "InvalidSessionId") {
589
- a(N, !0), a(y, !1);
616
+ l() && n.append("X-SessionId", l());
617
+ const g = { method: "GET", headers: n, cache: "no-store" };
618
+ e.searchParams.append("filter", "wheelOfFortune"), fetch(e, g).then((u) => u.json()).then((u) => {
619
+ if (u && u.errorMessage?.trim() === "InvalidSessionId") {
620
+ a(P, !0), a(k, !1);
590
621
  return;
591
622
  }
592
- if (i?.items?.program?.canClaim) {
593
- a(g, i?.items?.program, !0), a(y, !1);
623
+ if (u?.items?.program?.canClaim) {
624
+ a(p, u?.items?.program, !0), a(k, !1);
594
625
  return;
595
626
  }
596
- a(g, i?.items, !0);
597
- }).catch((i) => {
598
- console.log(i), a(E, !0);
599
- }).finally(() => a(y, !1));
600
- }, me = async () => {
601
- a(y, !0);
627
+ a(p, u?.items, !0);
628
+ }).catch((u) => {
629
+ console.log(u), a(L, !0);
630
+ }).finally(() => {
631
+ a(k, !1), R();
632
+ });
633
+ }, me = ["wheelOfFortune", "flipCoin"].map((e) => `Types[]=${e}`).join(","), fe = async () => {
634
+ a(k, !0);
602
635
  const e = new URL(`${h()}/v1/wof/lotteries`), n = new Headers();
603
- u() && n.append("X-SessionId", u());
604
- const c = { method: "GET", headers: n, cache: "no-store" };
605
- e.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(e, c).then((i) => i.json()).then((i) => {
606
- if (i && i.errorMessage?.trim() === "InvalidSessionId") {
607
- a(N, !0), a(y, !1);
636
+ l() && n.append("X-SessionId", l()), e.searchParams.append("filter", me);
637
+ try {
638
+ const g = await (await fetch(e, { method: "GET", headers: n, cache: "no-store" })).json();
639
+ if (g?.errorMessage?.trim() === "InvalidSessionId") {
640
+ a(P, !0);
608
641
  return;
609
642
  }
610
- a(g, i?.items.map((G) => Ge(G, p())), !0), l(g).length === 1 && (a(z, l(g)[0], !0), a(J, !0)), l(g).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
611
- }).catch((i) => {
612
- console.log(i), a(E, !0);
613
- }).finally(() => a(y, !1));
614
- }, I = (e) => {
643
+ a(p, (g?.items ?? []).map((u) => _e(u, c())), !0), r(p).length === 1 && (a(f, r(p)[0], !0), a(q, !0)), r(p).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
644
+ } catch (g) {
645
+ console.log(g), a(L, !0);
646
+ } finally {
647
+ a(k, !1), R();
648
+ }
649
+ }, ye = (e) => e?.type?.toLowerCase() === "flipcoin", R = () => {
650
+ const e = Array.isArray(r(p)) ? r(p).length : r(p) ? 1 : 0, n = !!l() && !r(P);
651
+ window.postMessage(
652
+ {
653
+ type: "event_hub_accessed",
654
+ isLoggedIn: n,
655
+ hasMiniGames: n && !r(L) ? e > 0 : null
656
+ },
657
+ window.location.href
658
+ );
659
+ }, K = (e) => {
615
660
  if (e.data)
616
661
  switch (e.data.type) {
617
662
  case "PlayMiniGame":
618
- a(z, l(g).find((n) => n.id === e.data.programId), !0);
663
+ a(f, r(p).find((n) => n.id === e.data.programId), !0);
619
664
  break;
620
665
  case "CloseMiniGame":
621
- a(z, null);
666
+ a(f, null), R();
622
667
  break;
623
668
  case "PrizeGameRemainingTimesUpdated":
624
- a(z, e.data.data, !0), a(g, l(g).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
669
+ a(f, e.data.data, !0), a(p, r(p).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
625
670
  break;
626
671
  }
627
672
  };
628
- je(() => (setTimeout(
629
- () => {
630
- window.postMessage({ type: "event_hub_accessed", isLoggedIn: !!u() }, window.location.href);
631
- },
632
- 0
633
- ), u() && (k() ? he() : me()), window.addEventListener("message", I), () => {
634
- window.removeEventListener("message", I);
673
+ We(() => (l() || setTimeout(R, 0), l() && (w() ? he() : fe()), window.addEventListener("message", K), () => {
674
+ window.removeEventListener("message", K);
635
675
  }));
636
- var fe = {
676
+ var be = {
637
677
  get endpoint() {
638
678
  return h();
639
679
  },
@@ -641,145 +681,169 @@ function oe(x, r) {
641
681
  h(e), s();
642
682
  },
643
683
  get session() {
644
- return u();
684
+ return l();
645
685
  },
646
686
  set session(e) {
647
- u(e), s();
687
+ l(e), s();
648
688
  },
649
689
  get requiresOptin() {
650
- return k();
690
+ return w();
651
691
  },
652
692
  set requiresOptin(e = !1) {
653
- k(e), s();
693
+ w(e), s();
654
694
  },
655
695
  get language() {
656
- return p();
696
+ return c();
657
697
  },
658
698
  set language(e = "en") {
659
- p(e), s();
699
+ c(e), s();
660
700
  },
661
701
  get outerWheelAsset() {
662
- return m();
702
+ return y();
663
703
  },
664
704
  set outerWheelAsset(e = null) {
665
- m(e), s();
705
+ y(e), s();
666
706
  },
667
707
  get wheelButtonAsset() {
668
- return f();
708
+ return b();
669
709
  },
670
710
  set wheelButtonAsset(e = null) {
671
- f(e), s();
711
+ b(e), s();
672
712
  },
673
713
  get backgroundVideoAsset() {
674
- return w();
714
+ return z();
675
715
  },
676
716
  set backgroundVideoAsset(e = null) {
677
- w(e), s();
717
+ z(e), s();
678
718
  },
679
719
  get liteMode() {
680
- return t();
720
+ return i();
681
721
  },
682
722
  set liteMode(e = !1) {
683
- t(e), s();
723
+ i(e), s();
684
724
  },
685
725
  get translationurl() {
686
- return P();
726
+ return x();
687
727
  },
688
728
  set translationurl(e) {
689
- P(e), s();
729
+ x(e), s();
690
730
  }
691
- }, B = Fe(), ye = V(B);
731
+ }, H = Ue(), ve = I(H);
692
732
  {
693
- var be = (e) => {
694
- var n = He();
695
- j(e, n);
696
- }, ve = (e) => {
697
- var n = Pe(), c = X(n);
733
+ var we = (e) => {
734
+ var n = Ie();
735
+ D(e, n);
736
+ }, ke = (e) => {
737
+ var n = Fe(), g = Q(n);
698
738
  {
699
- var i = (d) => {
739
+ var u = (d) => {
700
740
  ne(d, {
701
741
  get outerWheelAsset() {
702
- return m();
742
+ return y();
703
743
  },
704
744
  get wheelButtonAsset() {
705
- return f();
745
+ return b();
706
746
  },
707
747
  get backgroundVideoAsset() {
708
- return w();
748
+ return z();
709
749
  },
710
750
  get language() {
711
- return p();
751
+ return c();
712
752
  },
713
753
  get liteMode() {
714
- return l(O);
754
+ return r(G);
715
755
  }
716
756
  });
717
- }, G = (d) => {
757
+ }, Te = (d) => {
758
+ {
759
+ let m = B(() => !r(q));
760
+ Oe(d, {
761
+ get program() {
762
+ return r(f);
763
+ },
764
+ get endpoint() {
765
+ return h();
766
+ },
767
+ get language() {
768
+ return c();
769
+ },
770
+ get session() {
771
+ return l();
772
+ },
773
+ get showBackButton() {
774
+ return r(m);
775
+ },
776
+ get liteMode() {
777
+ return r(G);
778
+ }
779
+ });
780
+ }
781
+ }, Se = B(() => r(f) && ye(r(f))), Ae = (d) => {
718
782
  {
719
- let b = ee(() => !l(J));
783
+ let m = B(() => !r(q));
720
784
  ne(d, {
721
785
  get program() {
722
- return l(z);
786
+ return r(f);
723
787
  },
724
788
  get endpoint() {
725
789
  return h();
726
790
  },
727
791
  get language() {
728
- return p();
792
+ return c();
729
793
  },
730
794
  get session() {
731
- return u();
795
+ return l();
732
796
  },
733
797
  get outerWheelAsset() {
734
- return m();
798
+ return y();
735
799
  },
736
800
  get wheelButtonAsset() {
737
- return f();
801
+ return b();
738
802
  },
739
803
  get backgroundVideoAsset() {
740
- return w();
804
+ return z();
741
805
  },
742
806
  get showBackButton() {
743
- return l(b);
807
+ return r(m);
744
808
  },
745
809
  get liteMode() {
746
- return l(O);
810
+ return r(G);
747
811
  }
748
812
  });
749
813
  }
750
- }, we = (d) => {
751
- var b = _e(), A = X(b), W = V(A), L = F(W, !0), Se = Q(W, 2), Te = F(Se, !0);
752
- C(A);
753
- var U = Q(A, 2);
754
- We(U, 21, () => l(g), Re, (q, H) => {
755
- qe(q, {
814
+ }, Ce = (d) => {
815
+ var m = Je(), C = Q(m), W = I(C), _ = J(W, !0), je = $(W, 2), xe = J(je, !0);
816
+ F(C);
817
+ var U = $(C, 2);
818
+ Be(U, 21, () => r(p), Ne, (V, O) => {
819
+ Ee(V, {
756
820
  get program() {
757
- return l(H);
821
+ return r(O);
758
822
  }
759
823
  });
760
- }), C(U), $(
761
- (q, H) => {
762
- _(L, q), _(Te, H);
824
+ }), F(U), ee(
825
+ (V, O) => {
826
+ E(_, V), E(xe, O);
763
827
  },
764
828
  [() => v()("hubTitle"), () => v()("hubSubtitle")]
765
- ), j(d, b);
766
- }, ze = (d) => {
767
- var b = Ve(), A = V(b), W = F(A, !0);
768
- C(b), $((L) => _(W, L), [() => v()("noContent")]), j(d, b);
829
+ ), D(d, m);
830
+ }, De = (d) => {
831
+ var m = Ke(), C = I(m), W = J(C, !0);
832
+ F(m), ee((_) => E(W, _), [() => v()("noContent")]), D(d, m);
769
833
  };
770
- Z(c, (d) => {
771
- !u() || l(N) ? d(i) : l(z) ? d(G, 1) : l(g)?.length > 1 ? d(we, 2) : d(ze, -1);
834
+ X(g, (d) => {
835
+ !l() || r(P) ? d(u) : r(Se) ? d(Te, 1) : r(f) ? d(Ae, 2) : r(p)?.length > 1 ? d(Ce, 3) : d(De, -1);
772
836
  });
773
837
  }
774
- j(e, n);
838
+ D(e, n);
775
839
  };
776
- Z(ye, (e) => {
777
- l(y) ? e(be) : e(ve, -1);
840
+ X(ve, (e) => {
841
+ r(k) ? e(we) : e(ke, -1);
778
842
  });
779
843
  }
780
- C(B), j(x, B);
781
- var ke = ae(fe);
782
- return D(), ke;
844
+ F(H), D(j, H);
845
+ var ze = ae(be);
846
+ return A(), ze;
783
847
  }
784
848
  te(
785
849
  oe,
@@ -798,97 +862,97 @@ te(
798
862
  [],
799
863
  { mode: "open" }
800
864
  );
801
- function Ee(x, r) {
802
- ie(r, !0);
803
- let v = o(r, "endpoint", 7), T = o(r, "session", 7), D = o(r, "requiresOptin", 7, !1), h = o(r, "language", 7, "en"), u = o(r, "outerWheelAsset", 7, null), k = o(r, "wheelButtonAsset", 7, null), p = o(r, "backgroundVideoAsset", 7, null), m = o(r, "liteMode", 7, !1), f = o(r, "translationurl", 7);
804
- var w = {
865
+ function Ze(j, t) {
866
+ ie(t, !0);
867
+ let v = o(t, "endpoint", 7), S = o(t, "session", 7), A = o(t, "requiresOptin", 7, !1), h = o(t, "language", 7, "en"), l = o(t, "outerWheelAsset", 7, null), w = o(t, "wheelButtonAsset", 7, null), c = o(t, "backgroundVideoAsset", 7, null), y = o(t, "liteMode", 7, !1), b = o(t, "translationurl", 7);
868
+ var z = {
805
869
  get endpoint() {
806
870
  return v();
807
871
  },
808
- set endpoint(t) {
809
- v(t), s();
872
+ set endpoint(i) {
873
+ v(i), s();
810
874
  },
811
875
  get session() {
812
- return T();
876
+ return S();
813
877
  },
814
- set session(t) {
815
- T(t), s();
878
+ set session(i) {
879
+ S(i), s();
816
880
  },
817
881
  get requiresOptin() {
818
- return D();
882
+ return A();
819
883
  },
820
- set requiresOptin(t = !1) {
821
- D(t), s();
884
+ set requiresOptin(i = !1) {
885
+ A(i), s();
822
886
  },
823
887
  get language() {
824
888
  return h();
825
889
  },
826
- set language(t = "en") {
827
- h(t), s();
890
+ set language(i = "en") {
891
+ h(i), s();
828
892
  },
829
893
  get outerWheelAsset() {
830
- return u();
894
+ return l();
831
895
  },
832
- set outerWheelAsset(t = null) {
833
- u(t), s();
896
+ set outerWheelAsset(i = null) {
897
+ l(i), s();
834
898
  },
835
899
  get wheelButtonAsset() {
836
- return k();
900
+ return w();
837
901
  },
838
- set wheelButtonAsset(t = null) {
839
- k(t), s();
902
+ set wheelButtonAsset(i = null) {
903
+ w(i), s();
840
904
  },
841
905
  get backgroundVideoAsset() {
842
- return p();
906
+ return c();
843
907
  },
844
- set backgroundVideoAsset(t = null) {
845
- p(t), s();
908
+ set backgroundVideoAsset(i = null) {
909
+ c(i), s();
846
910
  },
847
911
  get liteMode() {
848
- return m();
912
+ return y();
849
913
  },
850
- set liteMode(t = !1) {
851
- m(t), s();
914
+ set liteMode(i = !1) {
915
+ y(i), s();
852
916
  },
853
917
  get translationurl() {
854
- return f();
918
+ return b();
855
919
  },
856
- set translationurl(t) {
857
- f(t), s();
920
+ set translationurl(i) {
921
+ b(i), s();
858
922
  }
859
923
  };
860
- return oe(x, {
924
+ return oe(j, {
861
925
  get endpoint() {
862
926
  return v();
863
927
  },
864
928
  get session() {
865
- return T();
929
+ return S();
866
930
  },
867
931
  get requiresOptin() {
868
- return D();
932
+ return A();
869
933
  },
870
934
  get language() {
871
935
  return h();
872
936
  },
873
937
  get outerWheelAsset() {
874
- return u();
938
+ return l();
875
939
  },
876
940
  get wheelButtonAsset() {
877
- return k();
941
+ return w();
878
942
  },
879
943
  get backgroundVideoAsset() {
880
- return p();
944
+ return c();
881
945
  },
882
946
  get liteMode() {
883
- return m();
947
+ return y();
884
948
  },
885
949
  get translationurl() {
886
- return f();
950
+ return b();
887
951
  }
888
- }), ae(w);
952
+ }), ae(z);
889
953
  }
890
954
  customElements.define("mini-games-hub", te(
891
- Ee,
955
+ Ze,
892
956
  {
893
957
  endpoint: { attribute: "endpoint", type: "String" },
894
958
  session: { attribute: "session", type: "String" },
@@ -904,5 +968,5 @@ customElements.define("mini-games-hub", te(
904
968
  []
905
969
  ));
906
970
  export {
907
- Ee as M
971
+ Ze as M
908
972
  };