@everymatrix/mini-games-hub 0.2.7 → 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 (84) 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-CWv6r8u1.cjs +1 -0
  6. package/components/CoinFlip-CaRkaWEA.cjs +1 -0
  7. package/components/CoinFlip-D3kH_y8b.js +390 -0
  8. package/components/CoinFlip-hKLoCmvJ.js +355 -0
  9. package/components/CoinRoyale-Cr3FMU-f.js +998 -0
  10. package/components/CoinRoyale-DcXB88TG.cjs +734 -0
  11. package/components/CoinRoyale-HFE5DCkQ.js +1036 -0
  12. package/components/CoinRoyale-mXlKdlwT.cjs +734 -0
  13. package/components/{GameCard-vgoswSWl.cjs → GameCard-BPoaBZ8h.cjs} +3 -3
  14. package/components/{GameCard-C-zSlvo1.cjs → GameCard-DfVe9CgG.cjs} +3 -3
  15. package/components/{GameCard-B3YKo9k6.js → GameCard-cglVYPLz.js} +36 -36
  16. package/components/{GameCard-BQ6hFy67.js → GameCard-grRDxpTz.js} +39 -36
  17. package/components/{MiniGamesHub-C0q9vZFD.js → MiniGamesHub-CxhilLzF.js} +342 -206
  18. package/components/{MiniGamesHub-D5Y5OYt-.js → MiniGamesHub-DUICCoYd.js} +301 -168
  19. package/components/MiniGamesHub-DW82s9I9.cjs +79 -0
  20. package/components/MiniGamesHub-uuQkACzs.cjs +79 -0
  21. package/components/{WheelOfFortune-u6v6YLc5.js → WheelOfFortune-CsDXFzBd.js} +146 -138
  22. package/components/{WheelOfFortune-BJ9iMr53.cjs → WheelOfFortune-DGY-q1LW.cjs} +2 -2
  23. package/components/{WheelOfFortune-2WKhJAdZ.cjs → WheelOfFortune-DfN31a-S.cjs} +2 -2
  24. package/components/{WheelOfFortune-DC57_QGF.js → WheelOfFortune-MIjCRllT.js} +186 -175
  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-D_tfW-rK.js → WheelOfFortuneWheel-C694AcSr.js} +405 -380
  38. package/components/WheelOfFortuneWheel-CvGaRYgu.cjs +3 -0
  39. package/components/WheelOfFortuneWheel-Dxh6wKCh.cjs +3 -0
  40. package/components/{WheelOfFortuneWheel-DmTRvIN6.js → WheelOfFortuneWheel-cBswACGf.js} +545 -519
  41. package/components/bg-scene-Bz42V1FW.cjs +1 -0
  42. package/components/bg-scene-DpHgKCHj.js +4 -0
  43. package/components/coin-heads-BuJOLpyg.cjs +1 -0
  44. package/components/coin-heads-loqcEtH2.js +4 -0
  45. package/components/coin-tails-20vJmhwv.cjs +1 -0
  46. package/components/coin-tails-BTbsTwkz.js +4 -0
  47. package/components/{constants-BYsDpbRv.js → constants-BDSd8ptj.js} +25 -15
  48. package/components/constants-CoPH35Re.cjs +1 -0
  49. package/components/{sparkles-BnriHiyw.cjs → sparkles-9YGw1xiU.cjs} +1 -1
  50. package/components/{sparkles-DplvhrIm.cjs → sparkles-B3XdFovy.cjs} +1 -1
  51. package/components/{sparkles-CSfeD2Zu.js → sparkles-BWGIWWDc.js} +1 -1
  52. package/components/{sparkles-CTrQ372y.js → sparkles-uxV1OTbN.js} +1 -1
  53. package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BXcblJt7.cjs} +1 -1
  54. package/components/{spin-controller-HS3m99tB.cjs → spin-controller-BzO5YNSN.cjs} +1 -1
  55. package/components/{spin-controller-BuBkKrNR.js → spin-controller-CZWa2gmm.js} +2 -2
  56. package/components/{spin-controller-REPdRwaB.js → spin-controller-D3hdDnQ0.js} +2 -2
  57. package/components/{utils-B86dsoC-.js → utils-3LNftCeZ.js} +976 -958
  58. package/components/utils-BxNmJ6YA.cjs +3 -0
  59. package/components/{utils-BtFS7k_l.js → utils-DGrEJJ_K.js} +1063 -1045
  60. package/components/utils-DyVEmMSf.cjs +3 -0
  61. package/es2015/mini-games-hub.cjs +1 -1
  62. package/es2015/mini-games-hub.js +1 -1
  63. package/esnext/mini-games-hub.cjs +1 -1
  64. package/esnext/mini-games-hub.js +1 -1
  65. package/package.json +1 -1
  66. package/components/MiniGamesHub-CfiDjCz7.cjs +0 -16
  67. package/components/MiniGamesHub-DYwmUNTy.cjs +0 -16
  68. package/components/WheelOfFortuneDrawResults-BKkTmsVC.cjs +0 -1
  69. package/components/WheelOfFortuneDrawResults-D3rgrYi_.js +0 -254
  70. package/components/WheelOfFortuneDrawResults-DTufAeXD.cjs +0 -1
  71. package/components/WheelOfFortuneDrawResults-gx2xkUtF.js +0 -279
  72. package/components/WheelOfFortuneHistory-B-Yadw5p.js +0 -213
  73. package/components/WheelOfFortuneHistory-DdXxYW6M.cjs +0 -12
  74. package/components/WheelOfFortuneHistory-DhFZUmGd.cjs +0 -12
  75. package/components/WheelOfFortuneHistory-IM5H-der.js +0 -213
  76. package/components/WheelOfFortuneRules-BM75DT61.js +0 -107
  77. package/components/WheelOfFortuneRules-D-xnWFIU.cjs +0 -3
  78. package/components/WheelOfFortuneRules-DkQOlpqR.js +0 -118
  79. package/components/WheelOfFortuneRules-_a2c-LEy.cjs +0 -3
  80. package/components/WheelOfFortuneWheel-CUs0nOjA.cjs +0 -3
  81. package/components/WheelOfFortuneWheel-D9nXwM0H.cjs +0 -3
  82. package/components/constants-DM6Vdc6Z.cjs +0 -1
  83. package/components/utils-By_D2O28.cjs +0 -3
  84. package/components/utils-CSIl6eA7.cjs +0 -3
@@ -1,24 +1,25 @@
1
- var F = (T, t, g) => new Promise((z, v) => {
2
- var h = (o) => {
1
+ var U = (A, t, m) => new Promise((T, w) => {
2
+ var f = (o) => {
3
3
  try {
4
- m(g.next(o));
5
- } catch (c) {
6
- v(c);
4
+ v(m.next(o));
5
+ } catch (b) {
6
+ w(b);
7
7
  }
8
- }, u = (o) => {
8
+ }, l = (o) => {
9
9
  try {
10
- m(g.throw(o));
11
- } catch (c) {
12
- v(c);
10
+ v(m.throw(o));
11
+ } catch (b) {
12
+ w(b);
13
13
  }
14
- }, m = (o) => o.done ? z(o.value) : Promise.resolve(o.value).then(h, u);
15
- m((g = g.apply(T, t)).next());
14
+ }, v = (o) => o.done ? T(o.value) : Promise.resolve(o.value).then(f, l);
15
+ v((m = m.apply(A, t)).next());
16
16
  });
17
- import { a as xe, p as s, x as Pe, y as $, z as ee, o as We, i as ne, b as W, e as Re, f as G, c as le, k as Ce, g as Ne, h as Be, j as O, s as Me } from "./WheelOfFortuneWheel-DmTRvIN6.js";
18
- import { bl as B, bm as Ge, ad as Le, b1 as x, aQ as qe, a9 as ue, aU as l, a5 as de, L as d, aJ as a, bn as He, b6 as E, b2 as re, ba as M, b9 as J, b3 as te, ar as ie, bb as ae, b4 as _e } from "./utils-BtFS7k_l.js";
19
- import { W as oe } from "./WheelOfFortune-DC57_QGF.js";
20
- import { G as Ve } from "./GameCard-B3YKo9k6.js";
21
- const se = {
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
+ const ue = {
22
23
  en: {
23
24
  noContent: "You don't have any lottery programs available now.",
24
25
  hubTitle: "Prize Hub",
@@ -103,7 +104,13 @@ const se = {
103
104
  single: "{count, plural, one {# Spin} other {# Spins}} every {day, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} each month - {range}",
104
105
  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}"
105
106
  }
106
- }
107
+ },
108
+ coinTitle: "Coin Royale",
109
+ remainingFlips: "Remaining Flips :",
110
+ flipCoin: "Flip Coin",
111
+ flipAgain: "Flip again",
112
+ dragToFlip: "Drag to flip",
113
+ gameCardCoinFlips: "Coin <br/> Flips"
107
114
  },
108
115
  da: {
109
116
  noContent: "Du har ingen lotteriprogrammer tilgængelige lige nu.",
@@ -189,7 +196,13 @@ const se = {
189
196
  single: "{count, plural, one {# Spin} other {# Spins}} den {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} i hver måned - {range}",
190
197
  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}"
191
198
  }
192
- }
199
+ },
200
+ coinTitle: "Coin Royale",
201
+ remainingFlips: "Resterende Flips :",
202
+ flipCoin: "Slå Mønt",
203
+ flipAgain: "Slå igen",
204
+ dragToFlip: "Træk for at slå",
205
+ gameCardCoinFlips: "Mønt <br/> Flips"
193
206
  },
194
207
  de: {
195
208
  noContent: "Du hast derzeit keine verfügbaren Lotterieprogramme.",
@@ -275,7 +288,13 @@ const se = {
275
288
  single: "{count, plural, one {# Drehung} other {# Drehungen}} am {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} jeden Monat - {range}",
276
289
  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}"
277
290
  }
278
- }
291
+ },
292
+ coinTitle: "Coin Royale",
293
+ remainingFlips: "Verbleibende Würfe :",
294
+ flipCoin: "Münze werfen",
295
+ flipAgain: "Erneut werfen",
296
+ dragToFlip: "Zum Werfen ziehen",
297
+ gameCardCoinFlips: "Münz- <br/> würfe"
279
298
  },
280
299
  nl: {
281
300
  noContent: "Je hebt op dit moment geen loterijprogramma's beschikbaar.",
@@ -361,7 +380,13 @@ const se = {
361
380
  single: "{count, plural, one {# Spin} other {# Spins}} elke {day, selectordinal, one {#e} two {#e} few {#e} other {#e}} van de maand - {range}",
362
381
  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}"
363
382
  }
364
- }
383
+ },
384
+ coinTitle: "Coin Royale",
385
+ remainingFlips: "Resterende Flips :",
386
+ flipCoin: "Gooi Munt",
387
+ flipAgain: "Opnieuw gooien",
388
+ dragToFlip: "Sleep om te gooien",
389
+ gameCardCoinFlips: "Munt <br/> Flips"
365
390
  },
366
391
  fr: {
367
392
  noContent: "Vous n'avez actuellement aucun programme de loterie disponible.",
@@ -447,7 +472,13 @@ const se = {
447
472
  single: "{count, plural, one {# Tour} other {# Tours}} le {day, selectordinal, one {#er} two {#} few {#} other {#}} de chaque mois - {range}",
448
473
  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}"
449
474
  }
450
- }
475
+ },
476
+ coinTitle: "Coin Royale",
477
+ remainingFlips: "Lancers restants :",
478
+ flipCoin: "Lancer la pièce",
479
+ flipAgain: "Relancer la pièce",
480
+ dragToFlip: "Glissez pour lancer",
481
+ gameCardCoinFlips: "Lancers <br/> de pièce"
451
482
  },
452
483
  tr: {
453
484
  noContent: "Şu anda kullanılabilir bir çekiliş programınız yok.",
@@ -533,18 +564,25 @@ const se = {
533
564
  single: "{count, plural, one {# Çevirme} other {# Çevirme}} her ayın {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} günü - {range}",
534
565
  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}"
535
566
  }
536
- }
567
+ },
568
+ coinTitle: "Coin Royale",
569
+ remainingFlips: "Kalan Atışlar :",
570
+ flipCoin: "Parayı At",
571
+ flipAgain: "Tekrar at",
572
+ dragToFlip: "Atmak için sürükleyin",
573
+ gameCardCoinFlips: "Para <br/> Atışı"
537
574
  }
538
575
  };
539
- var Fe = G('<div class="loader-container"><div class="loader"><div class="loader-ring-outer"></div> <div class="loader-ring-inner"></div></div></div>'), Oe = G('<div class="prize-hub-container"><h3> </h3> <p> </p></div> <div class="mini-games-card-list"></div>', 1), Ee = G("<div><p> </p></div>"), Je = G('<div class="main-container"><!></div>');
540
- const Ie = {
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>');
577
+ const Qe = {
541
578
  hash: "svelte-pzanec",
542
- code: ` *,
543
- *::before,
544
- *::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,
545
- .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);
546
- 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));
547
584
  animation: svelte-pzanec-spin-ccw 0.75s linear infinite;}
585
+
548
586
  @keyframes svelte-pzanec-spin-cw {
549
587
  to {
550
588
  transform: rotate(360deg);
@@ -554,255 +592,353 @@ const Ie = {
554
592
  to {
555
593
  transform: rotate(-360deg);
556
594
  }
557
- }`
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
+ */`
558
658
  };
559
- function pe(T, t) {
560
- var Z, X;
561
- de(t, !0), xe(T, Ie);
562
- const g = () => Me(_e, "$_", z), [z, v] = Re(), h = s(t, "endpoint", 7), u = s(t, "session", 7), m = s(t, "requiresOptin", 7, !1), o = s(t, "language", 7, "en"), c = s(t, "outerWheelAsset", 7, null), k = s(t, "wheelButtonAsset", 7, null), D = s(t, "backgroundVideoAsset", 7, null), i = s(t, "liteMode", 7, !1), R = s(t, "translationurl", 7), ge = !B() && /iPhone|iPad|iPod/.test(navigator.userAgent), ce = B() ? 1 / 0 : (Z = navigator.deviceMemory) != null ? Z : 1 / 0, he = B() ? 1 / 0 : (X = navigator.hardwareConcurrency) != null ? X : 1 / 0;
563
- function me() {
659
+ function ce(A, t) {
660
+ var $, ee;
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() {
564
664
  try {
565
- const r = document.createElement("canvas").getContext("webgl");
566
- if (!r) return !1;
567
- const y = r.getExtension("WEBGL_debug_renderer_info");
665
+ const n = document.createElement("canvas").getContext("webgl");
666
+ if (!n) return !1;
667
+ const y = n.getExtension("WEBGL_debug_renderer_info");
568
668
  if (!y) return !1;
569
- const n = r.getParameter(y.UNMASKED_RENDERER_WEBGL).toLowerCase();
570
- return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(n);
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);
571
671
  } catch (e) {
572
672
  return !1;
573
673
  }
574
674
  }
575
- const fe = !B() && !ge && (ce <= 4 || he <= 4 || me()), I = ae(() => i() || fe);
576
- Pe({ withLocale: "en", translations: {} });
577
- const ye = () => {
675
+ const ye = !G() && !he && (me <= 4 || fe <= 4 || be()), _ = q(() => a() || ye);
676
+ Fe({ withLocale: "en", translations: {} });
677
+ const ve = () => {
578
678
  let e = new URL(R());
579
- fetch(e.href).then((r) => r.json()).then((r) => {
580
- Object.keys(r).forEach((y) => {
581
- $(y, r[y]);
679
+ fetch(e.href).then((n) => n.json()).then((n) => {
680
+ Object.keys(n).forEach((y) => {
681
+ re(y, n[y]);
582
682
  });
583
- }).catch((r) => {
584
- console.log(r);
683
+ }).catch((n) => {
684
+ console.log(n);
585
685
  });
586
686
  };
587
- Object.keys(se).forEach((e) => {
588
- $(e, se[e]);
589
- }), ee(o());
590
- const be = () => {
591
- ee(o());
687
+ Object.keys(ue).forEach((e) => {
688
+ re(e, ue[e]);
689
+ }), te(o());
690
+ const ke = () => {
691
+ te(o());
592
692
  };
593
- Ge(() => {
594
- R() && ye();
595
- }), Le(() => {
596
- be();
693
+ _e(() => {
694
+ R() && ve();
695
+ }), Ve(() => {
696
+ ke();
597
697
  });
598
- let w = x(!1), f = x(qe([])), U = x(!1), L = x(!1), A = x(null), K = x(!1);
599
- const ve = () => F(this, null, function* () {
600
- a(w, !0);
601
- const e = new URL(`${h()}/v1/wof/claimable`), r = new Headers();
602
- u() && r.append("X-SessionId", u());
603
- const y = { method: "GET", headers: r, cache: "no-store" };
604
- e.searchParams.append("filter", "wheelOfFortune"), fetch(e, y).then((n) => n.json()).then((n) => {
605
- var S, j, C, p;
606
- if (n && ((S = n.errorMessage) == null ? void 0 : S.trim()) === "InvalidSessionId") {
607
- a(L, !0), a(w, !1);
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* () {
700
+ s(S, !0);
701
+ const e = new URL(`${f()}/v1/wof/claimable`), n = new Headers();
702
+ l() && n.append("X-SessionId", l());
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") {
707
+ s(W, !0), s(S, !1);
608
708
  return;
609
709
  }
610
- if ((C = (j = n == null ? void 0 : n.items) == null ? void 0 : j.program) != null && C.canClaim) {
611
- a(f, (p = n == null ? void 0 : n.items) == null ? void 0 : p.program, !0), a(w, !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);
612
712
  return;
613
713
  }
614
- a(f, n == null ? void 0 : n.items, !0);
615
- }).catch((n) => {
616
- console.log(n), a(U, !0);
617
- }).finally(() => a(w, !1));
618
- }), ke = () => F(this, null, function* () {
619
- a(w, !0);
620
- const e = new URL(`${h()}/v1/wof/lotteries`), r = new Headers();
621
- u() && r.append("X-SessionId", u());
622
- const y = { method: "GET", headers: r, cache: "no-store" };
623
- e.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(e, y).then((n) => n.json()).then((n) => {
624
- var S;
625
- if (n && ((S = n.errorMessage) == null ? void 0 : S.trim()) === "InvalidSessionId") {
626
- a(L, !0), a(w, !1);
714
+ s(g, i == null ? void 0 : i.items, !0);
715
+ }).catch((i) => {
716
+ console.log(i), s(V, !0);
717
+ }).finally(() => {
718
+ s(S, !1), M();
719
+ });
720
+ }), ze = ["wheelOfFortune", "flipCoin"].map((e) => `Types[]=${e}`).join(","), Te = () => U(this, null, function* () {
721
+ var y, i;
722
+ s(S, !0);
723
+ const e = new URL(`${f()}/v1/wof/lotteries`), n = new Headers();
724
+ l() && n.append("X-SessionId", l()), e.searchParams.append("filter", ze);
725
+ try {
726
+ const c = yield (yield fetch(e, { method: "GET", headers: n, cache: "no-store" })).json();
727
+ if (((y = c == null ? void 0 : c.errorMessage) == null ? void 0 : y.trim()) === "InvalidSessionId") {
728
+ s(W, !0);
627
729
  return;
628
730
  }
629
- a(f, n == null ? void 0 : n.items.map((j) => He(j, o())), !0), d(f).length === 1 && (a(A, d(f)[0], !0), a(K, !0)), d(f).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
630
- }).catch((n) => {
631
- console.log(n), a(U, !0);
632
- }).finally(() => a(w, !1));
633
- }), Y = (e) => {
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);
732
+ } catch (c) {
733
+ console.log(c), s(V, !0);
734
+ } finally {
735
+ s(S, !1), M();
736
+ }
737
+ }), Se = (e) => {
738
+ var n;
739
+ return ((n = e == null ? void 0 : e.type) == null ? void 0 : n.toLowerCase()) === "flipcoin";
740
+ }, M = () => {
741
+ const e = Array.isArray(r(g)) ? r(g).length : r(g) ? 1 : 0, n = !!l() && !r(W);
742
+ window.postMessage(
743
+ {
744
+ type: "event_hub_accessed",
745
+ isLoggedIn: n,
746
+ hasMiniGames: n && !r(V) ? e > 0 : null
747
+ },
748
+ window.location.href
749
+ );
750
+ }, Q = (e) => {
634
751
  if (e.data)
635
752
  switch (e.data.type) {
636
753
  case "PlayMiniGame":
637
- a(A, d(f).find((r) => r.id === e.data.programId), !0);
754
+ s(k, r(g).find((n) => n.id === e.data.programId), !0);
638
755
  break;
639
756
  case "CloseMiniGame":
640
- a(A, null);
757
+ s(k, null), M();
641
758
  break;
642
759
  case "PrizeGameRemainingTimesUpdated":
643
- a(A, e.data.data, !0), a(f, d(f).map((r) => r.id === e.data.data.id ? e.data.data : r), !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);
644
761
  break;
645
762
  }
646
763
  };
647
- We(() => (setTimeout(
648
- () => {
649
- window.postMessage({ type: "event_hub_accessed", isLoggedIn: !!u() }, window.location.href);
650
- },
651
- 0
652
- ), u() && (m() ? ve() : ke()), window.addEventListener("message", Y), () => {
653
- window.removeEventListener("message", Y);
764
+ Be(() => (l() || setTimeout(M, 0), l() && (v() ? we() : Te()), window.addEventListener("message", Q), () => {
765
+ window.removeEventListener("message", Q);
654
766
  }));
655
- var we = {
767
+ var Ae = {
656
768
  get endpoint() {
657
- return h();
769
+ return f();
658
770
  },
659
771
  set endpoint(e) {
660
- h(e), l();
772
+ f(e), d();
661
773
  },
662
774
  get session() {
663
- return u();
775
+ return l();
664
776
  },
665
777
  set session(e) {
666
- u(e), l();
778
+ l(e), d();
667
779
  },
668
780
  get requiresOptin() {
669
- return m();
781
+ return v();
670
782
  },
671
783
  set requiresOptin(e = !1) {
672
- m(e), l();
784
+ v(e), d();
673
785
  },
674
786
  get language() {
675
787
  return o();
676
788
  },
677
789
  set language(e = "en") {
678
- o(e), l();
790
+ o(e), d();
679
791
  },
680
792
  get outerWheelAsset() {
681
- return c();
793
+ return b();
682
794
  },
683
795
  set outerWheelAsset(e = null) {
684
- c(e), l();
796
+ b(e), d();
685
797
  },
686
798
  get wheelButtonAsset() {
687
- return k();
799
+ return z();
688
800
  },
689
801
  set wheelButtonAsset(e = null) {
690
- k(e), l();
802
+ z(e), d();
691
803
  },
692
804
  get backgroundVideoAsset() {
693
- return D();
805
+ return x();
694
806
  },
695
807
  set backgroundVideoAsset(e = null) {
696
- D(e), l();
808
+ x(e), d();
697
809
  },
698
810
  get liteMode() {
699
- return i();
811
+ return a();
700
812
  },
701
813
  set liteMode(e = !1) {
702
- i(e), l();
814
+ a(e), d();
703
815
  },
704
816
  get translationurl() {
705
817
  return R();
706
818
  },
707
819
  set translationurl(e) {
708
- R(e), l();
820
+ R(e), d();
709
821
  }
710
- }, q = Je(), ze = E(q);
822
+ }, E = Xe(), xe = Z(E);
711
823
  {
712
- var Se = (e) => {
713
- var r = Fe();
714
- W(e, r);
715
- }, Te = (e) => {
716
- var r = Ce(), y = re(r);
824
+ var Ce = (e) => {
825
+ var n = Ue();
826
+ P(e, n);
827
+ }, De = (e) => {
828
+ var n = Ge(), y = ae(n);
717
829
  {
718
- var n = (p) => {
719
- oe(p, {
830
+ var i = (p) => {
831
+ le(p, {
720
832
  get outerWheelAsset() {
721
- return c();
833
+ return b();
722
834
  },
723
835
  get wheelButtonAsset() {
724
- return k();
836
+ return z();
725
837
  },
726
838
  get backgroundVideoAsset() {
727
- return D();
839
+ return x();
728
840
  },
729
841
  get language() {
730
842
  return o();
731
843
  },
732
844
  get liteMode() {
733
- return d(I);
845
+ return r(_);
734
846
  }
735
847
  });
736
- }, S = (p) => {
848
+ }, c = (p) => {
737
849
  {
738
- let b = ae(() => !d(K));
739
- oe(p, {
850
+ let h = q(() => !r(O));
851
+ Je(p, {
740
852
  get program() {
741
- return d(A);
853
+ return r(k);
742
854
  },
743
855
  get endpoint() {
744
- return h();
856
+ return f();
745
857
  },
746
858
  get language() {
747
859
  return o();
748
860
  },
749
861
  get session() {
750
- return u();
862
+ return l();
863
+ },
864
+ get showBackButton() {
865
+ return r(h);
866
+ },
867
+ get liteMode() {
868
+ return r(_);
869
+ }
870
+ });
871
+ }
872
+ }, C = q(() => r(k) && Se(r(k))), F = (p) => {
873
+ {
874
+ let h = q(() => !r(O));
875
+ le(p, {
876
+ get program() {
877
+ return r(k);
878
+ },
879
+ get endpoint() {
880
+ return f();
881
+ },
882
+ get language() {
883
+ return o();
884
+ },
885
+ get session() {
886
+ return l();
751
887
  },
752
888
  get outerWheelAsset() {
753
- return c();
889
+ return b();
754
890
  },
755
891
  get wheelButtonAsset() {
756
- return k();
892
+ return z();
757
893
  },
758
894
  get backgroundVideoAsset() {
759
- return D();
895
+ return x();
760
896
  },
761
897
  get showBackButton() {
762
- return d(b);
898
+ return r(h);
763
899
  },
764
900
  get liteMode() {
765
- return d(I);
901
+ return r(_);
766
902
  }
767
903
  });
768
904
  }
769
- }, j = (p) => {
770
- var b = Oe(), P = re(b), N = E(P), H = J(N, !0), Ae = te(N, 2), je = J(Ae, !0);
771
- M(P);
772
- var Q = te(P, 2);
773
- Ne(Q, 21, () => d(f), Be, (_, V) => {
774
- Ve(_, {
905
+ }, B = (p) => {
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);
909
+ Le(ne, 21, () => r(g), qe, (J, K) => {
910
+ Ke(J, {
775
911
  get program() {
776
- return d(V);
912
+ return r(K);
777
913
  }
778
914
  });
779
- }), M(Q), ie(
780
- (_, V) => {
781
- O(H, _), O(je, V);
915
+ }), L(ne), se(
916
+ (J, K) => {
917
+ Y(I, J), Y(We, K);
782
918
  },
783
- [() => g()("hubTitle"), () => g()("hubSubtitle")]
784
- ), W(p, b);
785
- }, C = (p) => {
786
- var b = Ee(), P = E(b), N = J(P, !0);
787
- M(b), ie((H) => O(N, H), [() => g()("noContent")]), W(p, b);
919
+ [() => m()("hubTitle"), () => m()("hubSubtitle")]
920
+ ), P(p, h);
921
+ }, Pe = (p) => {
922
+ var h = Ze(), j = Z(h), N = X(j, !0);
923
+ L(h), se((I) => Y(N, I), [() => m()("noContent")]), P(p, h);
788
924
  };
789
- ne(y, (p) => {
790
- var b;
791
- !u() || d(L) ? p(n) : d(A) ? p(S, 1) : ((b = d(f)) == null ? void 0 : b.length) > 1 ? p(j, 2) : p(C, -1);
925
+ ie(y, (p) => {
926
+ var h;
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);
792
928
  });
793
929
  }
794
- W(e, r);
930
+ P(e, n);
795
931
  };
796
- ne(ze, (e) => {
797
- d(w) ? e(Se) : e(Te, -1);
932
+ ie(xe, (e) => {
933
+ r(S) ? e(Ce) : e(De, -1);
798
934
  });
799
935
  }
800
- M(q), W(T, q);
801
- var De = ue(we);
802
- return v(), De;
936
+ L(E), P(A, E);
937
+ var je = pe(Ae);
938
+ return w(), je;
803
939
  }
804
- le(
805
- pe,
940
+ de(
941
+ ce,
806
942
  {
807
943
  endpoint: {},
808
944
  session: {},
@@ -818,97 +954,97 @@ le(
818
954
  [],
819
955
  { mode: "open" }
820
956
  );
821
- function Ue(T, t) {
822
- de(t, !0);
823
- let g = s(t, "endpoint", 7), z = s(t, "session", 7), v = s(t, "requiresOptin", 7, !1), h = s(t, "language", 7, "en"), u = s(t, "outerWheelAsset", 7, null), m = s(t, "wheelButtonAsset", 7, null), o = s(t, "backgroundVideoAsset", 7, null), c = s(t, "liteMode", 7, !1), k = s(t, "translationurl", 7);
824
- var D = {
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 = {
825
961
  get endpoint() {
826
- return g();
962
+ return m();
827
963
  },
828
- set endpoint(i) {
829
- g(i), l();
964
+ set endpoint(a) {
965
+ m(a), d();
830
966
  },
831
967
  get session() {
832
- return z();
968
+ return T();
833
969
  },
834
- set session(i) {
835
- z(i), l();
970
+ set session(a) {
971
+ T(a), d();
836
972
  },
837
973
  get requiresOptin() {
838
- return v();
974
+ return w();
839
975
  },
840
- set requiresOptin(i = !1) {
841
- v(i), l();
976
+ set requiresOptin(a = !1) {
977
+ w(a), d();
842
978
  },
843
979
  get language() {
844
- return h();
980
+ return f();
845
981
  },
846
- set language(i = "en") {
847
- h(i), l();
982
+ set language(a = "en") {
983
+ f(a), d();
848
984
  },
849
985
  get outerWheelAsset() {
850
- return u();
986
+ return l();
851
987
  },
852
- set outerWheelAsset(i = null) {
853
- u(i), l();
988
+ set outerWheelAsset(a = null) {
989
+ l(a), d();
854
990
  },
855
991
  get wheelButtonAsset() {
856
- return m();
992
+ return v();
857
993
  },
858
- set wheelButtonAsset(i = null) {
859
- m(i), l();
994
+ set wheelButtonAsset(a = null) {
995
+ v(a), d();
860
996
  },
861
997
  get backgroundVideoAsset() {
862
998
  return o();
863
999
  },
864
- set backgroundVideoAsset(i = null) {
865
- o(i), l();
1000
+ set backgroundVideoAsset(a = null) {
1001
+ o(a), d();
866
1002
  },
867
1003
  get liteMode() {
868
- return c();
1004
+ return b();
869
1005
  },
870
- set liteMode(i = !1) {
871
- c(i), l();
1006
+ set liteMode(a = !1) {
1007
+ b(a), d();
872
1008
  },
873
1009
  get translationurl() {
874
- return k();
1010
+ return z();
875
1011
  },
876
- set translationurl(i) {
877
- k(i), l();
1012
+ set translationurl(a) {
1013
+ z(a), d();
878
1014
  }
879
1015
  };
880
- return pe(T, {
1016
+ return ce(A, {
881
1017
  get endpoint() {
882
- return g();
1018
+ return m();
883
1019
  },
884
1020
  get session() {
885
- return z();
1021
+ return T();
886
1022
  },
887
1023
  get requiresOptin() {
888
- return v();
1024
+ return w();
889
1025
  },
890
1026
  get language() {
891
- return h();
1027
+ return f();
892
1028
  },
893
1029
  get outerWheelAsset() {
894
- return u();
1030
+ return l();
895
1031
  },
896
1032
  get wheelButtonAsset() {
897
- return m();
1033
+ return v();
898
1034
  },
899
1035
  get backgroundVideoAsset() {
900
1036
  return o();
901
1037
  },
902
1038
  get liteMode() {
903
- return c();
1039
+ return b();
904
1040
  },
905
1041
  get translationurl() {
906
- return k();
1042
+ return z();
907
1043
  }
908
- }), ue(D);
1044
+ }), pe(x);
909
1045
  }
910
- customElements.define("mini-games-hub", le(
911
- Ue,
1046
+ customElements.define("mini-games-hub", de(
1047
+ $e,
912
1048
  {
913
1049
  endpoint: { attribute: "endpoint", type: "String" },
914
1050
  session: { attribute: "session", type: "String" },
@@ -924,5 +1060,5 @@ customElements.define("mini-games-hub", le(
924
1060
  []
925
1061
  ));
926
1062
  export {
927
- Ue as default
1063
+ $e as default
928
1064
  };