@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,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, z as Re, A as Y, B as Z, o as We, i as X, e as C, f as N, g as Me, m as Fe, j as Be, k as Ne, l as E, s as Ge } from "./WheelOfFortuneWheel-C694AcSr.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-CsDXFzBd.js";
4
+ import { C as Oe } from "./CoinRoyale-Cr3FMU-f.js";
5
+ import { G as Ee } from "./GameCard-cglVYPLz.js";
5
6
  const re = {
6
7
  en: {
7
8
  noContent: "You don't have any lottery programs available now.",
@@ -87,7 +88,13 @@ 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
+ flipAgain: "Flip again",
96
+ dragToFlip: "Drag to flip",
97
+ gameCardCoinFlips: "Coin <br/> Flips"
91
98
  },
92
99
  da: {
93
100
  noContent: "Du har ingen lotteriprogrammer tilgængelige lige nu.",
@@ -173,7 +180,13 @@ const re = {
173
180
  single: "{count, plural, one {# Spin} other {# Spins}} den {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} i hver måned - {range}",
174
181
  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
182
  }
176
- }
183
+ },
184
+ coinTitle: "Coin Royale",
185
+ remainingFlips: "Resterende Flips :",
186
+ flipCoin: "Slå Mønt",
187
+ flipAgain: "Slå igen",
188
+ dragToFlip: "Træk for at slå",
189
+ gameCardCoinFlips: "Mønt <br/> Flips"
177
190
  },
178
191
  de: {
179
192
  noContent: "Du hast derzeit keine verfügbaren Lotterieprogramme.",
@@ -259,7 +272,13 @@ const re = {
259
272
  single: "{count, plural, one {# Drehung} other {# Drehungen}} am {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} jeden Monat - {range}",
260
273
  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
274
  }
262
- }
275
+ },
276
+ coinTitle: "Coin Royale",
277
+ remainingFlips: "Verbleibende Würfe :",
278
+ flipCoin: "Münze werfen",
279
+ flipAgain: "Erneut werfen",
280
+ dragToFlip: "Zum Werfen ziehen",
281
+ gameCardCoinFlips: "Münz- <br/> würfe"
263
282
  },
264
283
  nl: {
265
284
  noContent: "Je hebt op dit moment geen loterijprogramma's beschikbaar.",
@@ -345,7 +364,13 @@ const re = {
345
364
  single: "{count, plural, one {# Spin} other {# Spins}} elke {day, selectordinal, one {#e} two {#e} few {#e} other {#e}} van de maand - {range}",
346
365
  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
366
  }
348
- }
367
+ },
368
+ coinTitle: "Coin Royale",
369
+ remainingFlips: "Resterende Flips :",
370
+ flipCoin: "Gooi Munt",
371
+ flipAgain: "Opnieuw gooien",
372
+ dragToFlip: "Sleep om te gooien",
373
+ gameCardCoinFlips: "Munt <br/> Flips"
349
374
  },
350
375
  fr: {
351
376
  noContent: "Vous n'avez actuellement aucun programme de loterie disponible.",
@@ -431,7 +456,13 @@ const re = {
431
456
  single: "{count, plural, one {# Tour} other {# Tours}} le {day, selectordinal, one {#er} two {#} few {#} other {#}} de chaque mois - {range}",
432
457
  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
458
  }
434
- }
459
+ },
460
+ coinTitle: "Coin Royale",
461
+ remainingFlips: "Lancers restants :",
462
+ flipCoin: "Lancer la pièce",
463
+ flipAgain: "Relancer la pièce",
464
+ dragToFlip: "Glissez pour lancer",
465
+ gameCardCoinFlips: "Lancers <br/> de pièce"
435
466
  },
436
467
  tr: {
437
468
  noContent: "Şu anda kullanılabilir bir çekiliş programınız yok.",
@@ -517,18 +548,25 @@ const re = {
517
548
  single: "{count, plural, one {# Çevirme} other {# Çevirme}} her ayın {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} günü - {range}",
518
549
  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
550
  }
520
- }
551
+ },
552
+ coinTitle: "Coin Royale",
553
+ remainingFlips: "Kalan Atışlar :",
554
+ flipCoin: "Parayı At",
555
+ flipAgain: "Tekrar at",
556
+ dragToFlip: "Atmak için sürükleyin",
557
+ gameCardCoinFlips: "Para <br/> Atışı"
521
558
  }
522
559
  };
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 = {
560
+ var Ie = N('<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>'), Je = N('<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), Ke = N('<div class="svelte-pzanec"><p class="svelte-pzanec"> </p></div>'), Ue = N('<div class="main-container svelte-pzanec"><!></div>');
561
+ const Ye = {
525
562
  hash: "svelte-pzanec",
526
- code: ` *,
527
- *::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,
529
- .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
- 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));
563
+ code: `.svelte-pzanec,
564
+ .svelte-pzanec::before,
565
+ .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,
566
+ .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);
567
+ 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));
531
568
  animation: svelte-pzanec-spin-ccw 0.75s linear infinite;}
569
+
532
570
  @keyframes svelte-pzanec-spin-cw {
533
571
  to {
534
572
  transform: rotate(360deg);
@@ -538,102 +576,173 @@ const Oe = {
538
576
  to {
539
577
  transform: rotate(-360deg);
540
578
  }
541
- }`
579
+ }
580
+ /* Skeleton (kept for reference, replaced by loader above)
581
+ @keyframes skeleton-pulse {
582
+ 0%,
583
+ 100% {
584
+ opacity: 0.3;
585
+ }
586
+ 50% {
587
+ opacity: 0.6;
588
+ }
589
+ }
590
+
591
+ .skeleton-row {
592
+ pointer-events: none;
593
+ }
594
+
595
+ .skeleton-bone {
596
+ display: block;
597
+ border-radius: 4px;
598
+ background-color: var(--color-overlay-neutral-2, #fbfbfb33);
599
+ animation: skeleton-pulse 1.4s ease-in-out infinite;
600
+ }
601
+
602
+ .skeleton-title {
603
+ width: 40%;
604
+ height: 22px;
605
+ margin-bottom: 8px;
606
+ }
607
+
608
+ .skeleton-subtitle {
609
+ width: 60%;
610
+ height: 14px;
611
+ }
612
+
613
+ .skeleton-card {
614
+ display: flex;
615
+ flex-direction: column;
616
+ height: 115px;
617
+ border: 1px solid var(--color-border-subtle, #fbfbfb0d);
618
+ border-radius: 14px;
619
+ background-color: var(--color-overlay-neutral-1, #fbfbfb1a);
620
+ overflow: hidden;
621
+ }
622
+
623
+ .skeleton-card-image {
624
+ width: 100%;
625
+ height: 70px;
626
+ border-radius: 0;
627
+ }
628
+
629
+ .skeleton-card-body {
630
+ display: flex;
631
+ justify-content: end;
632
+ height: 50px;
633
+ gap: 8px;
634
+ padding: 12px;
635
+ }
636
+
637
+ .skeleton-card-button {
638
+ width: 30%;
639
+ height: 25px;
640
+ }
641
+ */`
542
642
  };
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;
643
+ function oe(D, t) {
644
+ ie(t, !0), Pe(D, Ye);
645
+ const v = () => Ge(Ve, "$_", S), [S, A] = Me(), h = o(t, "endpoint", 7), l = o(t, "session", 7), k = o(t, "requiresOptin", 7, !1), c = o(t, "language", 7, "en"), b = o(t, "outerWheelAsset", 7, null), y = o(t, "wheelButtonAsset", 7, null), z = o(t, "backgroundVideoAsset", 7, null), i = o(t, "liteMode", 7, !1), j = 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
646
  function de() {
547
647
  try {
548
648
  const n = document.createElement("canvas").getContext("webgl");
549
649
  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);
650
+ const g = n.getExtension("WEBGL_debug_renderer_info");
651
+ if (!g) return !1;
652
+ const u = n.getParameter(g.UNMASKED_RENDERER_WEBGL).toLowerCase();
653
+ return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(u);
554
654
  } catch {
555
655
  return !1;
556
656
  }
557
657
  }
558
- const pe = !R() && !se && (le <= 4 || ue <= 4 || de()), O = ee(() => t() || pe);
559
- Ae({ withLocale: "en", translations: {} });
658
+ const pe = !M() && !se && (le <= 4 || ue <= 4 || de()), G = B(() => i() || pe);
659
+ Re({ withLocale: "en", translations: {} });
560
660
  const ge = () => {
561
- let e = new URL(P());
661
+ let e = new URL(j());
562
662
  fetch(e.href).then((n) => n.json()).then((n) => {
563
- Object.keys(n).forEach((c) => {
564
- K(c, n[c]);
663
+ Object.keys(n).forEach((g) => {
664
+ Y(g, n[g]);
565
665
  });
566
666
  }).catch((n) => {
567
667
  console.log(n);
568
668
  });
569
669
  };
570
670
  Object.keys(re).forEach((e) => {
571
- K(e, re[e]);
572
- }), Y(p());
671
+ Y(e, re[e]);
672
+ }), Z(c());
573
673
  const ce = () => {
574
- Y(p());
674
+ Z(c());
575
675
  };
576
- Me(() => {
577
- P() && ge();
578
- }), Ne(() => {
676
+ Le(() => {
677
+ j() && ge();
678
+ }), qe(() => {
579
679
  ce();
580
680
  });
581
- let y = S(!1), g = S(Be([])), E = S(!1), N = S(!1), z = S(null), J = S(!1);
681
+ let w = T(!1), p = T(He([])), L = T(!1), P = T(!1), f = T(null), q = T(!1);
582
682
  const he = async () => {
583
- a(y, !0);
683
+ a(w, !0);
584
684
  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);
685
+ l() && n.append("X-SessionId", l());
686
+ const g = { method: "GET", headers: n, cache: "no-store" };
687
+ e.searchParams.append("filter", "wheelOfFortune"), fetch(e, g).then((u) => u.json()).then((u) => {
688
+ if (u && u.errorMessage?.trim() === "InvalidSessionId") {
689
+ a(P, !0), a(w, !1);
590
690
  return;
591
691
  }
592
- if (i?.items?.program?.canClaim) {
593
- a(g, i?.items?.program, !0), a(y, !1);
692
+ if (u?.items?.program?.canClaim) {
693
+ a(p, u?.items?.program, !0), a(w, !1);
594
694
  return;
595
695
  }
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);
696
+ a(p, u?.items, !0);
697
+ }).catch((u) => {
698
+ console.log(u), a(L, !0);
699
+ }).finally(() => {
700
+ a(w, !1), R();
701
+ });
702
+ }, me = ["wheelOfFortune", "flipCoin"].map((e) => `Types[]=${e}`).join(","), fe = async () => {
703
+ a(w, !0);
602
704
  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);
705
+ l() && n.append("X-SessionId", l()), e.searchParams.append("filter", me);
706
+ try {
707
+ const g = await (await fetch(e, { method: "GET", headers: n, cache: "no-store" })).json();
708
+ if (g?.errorMessage?.trim() === "InvalidSessionId") {
709
+ a(P, !0);
608
710
  return;
609
711
  }
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) => {
712
+ 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);
713
+ } catch (g) {
714
+ console.log(g), a(L, !0);
715
+ } finally {
716
+ a(w, !1), R();
717
+ }
718
+ }, be = (e) => e?.type?.toLowerCase() === "flipcoin", R = () => {
719
+ const e = Array.isArray(r(p)) ? r(p).length : r(p) ? 1 : 0, n = !!l() && !r(P);
720
+ window.postMessage(
721
+ {
722
+ type: "event_hub_accessed",
723
+ isLoggedIn: n,
724
+ hasMiniGames: n && !r(L) ? e > 0 : null
725
+ },
726
+ window.location.href
727
+ );
728
+ }, K = (e) => {
615
729
  if (e.data)
616
730
  switch (e.data.type) {
617
731
  case "PlayMiniGame":
618
- a(z, l(g).find((n) => n.id === e.data.programId), !0);
732
+ a(f, r(p).find((n) => n.id === e.data.programId), !0);
619
733
  break;
620
734
  case "CloseMiniGame":
621
- a(z, null);
735
+ a(f, null), R();
622
736
  break;
623
737
  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);
738
+ a(f, e.data.data, !0), a(p, r(p).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
625
739
  break;
626
740
  }
627
741
  };
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);
742
+ We(() => (l() || setTimeout(R, 0), l() && (k() ? he() : fe()), window.addEventListener("message", K), () => {
743
+ window.removeEventListener("message", K);
635
744
  }));
636
- var fe = {
745
+ var ye = {
637
746
  get endpoint() {
638
747
  return h();
639
748
  },
@@ -641,10 +750,10 @@ function oe(x, r) {
641
750
  h(e), s();
642
751
  },
643
752
  get session() {
644
- return u();
753
+ return l();
645
754
  },
646
755
  set session(e) {
647
- u(e), s();
756
+ l(e), s();
648
757
  },
649
758
  get requiresOptin() {
650
759
  return k();
@@ -653,133 +762,157 @@ function oe(x, r) {
653
762
  k(e), s();
654
763
  },
655
764
  get language() {
656
- return p();
765
+ return c();
657
766
  },
658
767
  set language(e = "en") {
659
- p(e), s();
768
+ c(e), s();
660
769
  },
661
770
  get outerWheelAsset() {
662
- return m();
771
+ return b();
663
772
  },
664
773
  set outerWheelAsset(e = null) {
665
- m(e), s();
774
+ b(e), s();
666
775
  },
667
776
  get wheelButtonAsset() {
668
- return f();
777
+ return y();
669
778
  },
670
779
  set wheelButtonAsset(e = null) {
671
- f(e), s();
780
+ y(e), s();
672
781
  },
673
782
  get backgroundVideoAsset() {
674
- return w();
783
+ return z();
675
784
  },
676
785
  set backgroundVideoAsset(e = null) {
677
- w(e), s();
786
+ z(e), s();
678
787
  },
679
788
  get liteMode() {
680
- return t();
789
+ return i();
681
790
  },
682
791
  set liteMode(e = !1) {
683
- t(e), s();
792
+ i(e), s();
684
793
  },
685
794
  get translationurl() {
686
- return P();
795
+ return j();
687
796
  },
688
797
  set translationurl(e) {
689
- P(e), s();
798
+ j(e), s();
690
799
  }
691
- }, B = Fe(), ye = V(B);
800
+ }, H = Ue(), ve = I(H);
692
801
  {
693
- var be = (e) => {
694
- var n = He();
695
- j(e, n);
696
- }, ve = (e) => {
697
- var n = Pe(), c = X(n);
802
+ var ke = (e) => {
803
+ var n = Ie();
804
+ C(e, n);
805
+ }, we = (e) => {
806
+ var n = Fe(), g = Q(n);
698
807
  {
699
- var i = (d) => {
808
+ var u = (d) => {
700
809
  ne(d, {
701
810
  get outerWheelAsset() {
702
- return m();
811
+ return b();
703
812
  },
704
813
  get wheelButtonAsset() {
705
- return f();
814
+ return y();
706
815
  },
707
816
  get backgroundVideoAsset() {
708
- return w();
817
+ return z();
709
818
  },
710
819
  get language() {
711
- return p();
820
+ return c();
712
821
  },
713
822
  get liteMode() {
714
- return l(O);
823
+ return r(G);
715
824
  }
716
825
  });
717
- }, G = (d) => {
826
+ }, Te = (d) => {
827
+ {
828
+ let m = B(() => !r(q));
829
+ Oe(d, {
830
+ get program() {
831
+ return r(f);
832
+ },
833
+ get endpoint() {
834
+ return h();
835
+ },
836
+ get language() {
837
+ return c();
838
+ },
839
+ get session() {
840
+ return l();
841
+ },
842
+ get showBackButton() {
843
+ return r(m);
844
+ },
845
+ get liteMode() {
846
+ return r(G);
847
+ }
848
+ });
849
+ }
850
+ }, Se = B(() => r(f) && be(r(f))), Ae = (d) => {
718
851
  {
719
- let b = ee(() => !l(J));
852
+ let m = B(() => !r(q));
720
853
  ne(d, {
721
854
  get program() {
722
- return l(z);
855
+ return r(f);
723
856
  },
724
857
  get endpoint() {
725
858
  return h();
726
859
  },
727
860
  get language() {
728
- return p();
861
+ return c();
729
862
  },
730
863
  get session() {
731
- return u();
864
+ return l();
732
865
  },
733
866
  get outerWheelAsset() {
734
- return m();
867
+ return b();
735
868
  },
736
869
  get wheelButtonAsset() {
737
- return f();
870
+ return y();
738
871
  },
739
872
  get backgroundVideoAsset() {
740
- return w();
873
+ return z();
741
874
  },
742
875
  get showBackButton() {
743
- return l(b);
876
+ return r(m);
744
877
  },
745
878
  get liteMode() {
746
- return l(O);
879
+ return r(G);
747
880
  }
748
881
  });
749
882
  }
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, {
883
+ }, xe = (d) => {
884
+ var m = Je(), x = Q(m), W = I(x), _ = J(W, !0), De = $(W, 2), je = J(De, !0);
885
+ F(x);
886
+ var U = $(x, 2);
887
+ Be(U, 21, () => r(p), Ne, (V, O) => {
888
+ Ee(V, {
756
889
  get program() {
757
- return l(H);
890
+ return r(O);
758
891
  }
759
892
  });
760
- }), C(U), $(
761
- (q, H) => {
762
- _(L, q), _(Te, H);
893
+ }), F(U), ee(
894
+ (V, O) => {
895
+ E(_, V), E(je, O);
763
896
  },
764
897
  [() => 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);
898
+ ), C(d, m);
899
+ }, Ce = (d) => {
900
+ var m = Ke(), x = I(m), W = J(x, !0);
901
+ F(m), ee((_) => E(W, _), [() => v()("noContent")]), C(d, m);
769
902
  };
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);
903
+ X(g, (d) => {
904
+ !l() || r(P) ? d(u) : r(Se) ? d(Te, 1) : r(f) ? d(Ae, 2) : r(p)?.length > 1 ? d(xe, 3) : d(Ce, -1);
772
905
  });
773
906
  }
774
- j(e, n);
907
+ C(e, n);
775
908
  };
776
- Z(ye, (e) => {
777
- l(y) ? e(be) : e(ve, -1);
909
+ X(ve, (e) => {
910
+ r(w) ? e(ke) : e(we, -1);
778
911
  });
779
912
  }
780
- C(B), j(x, B);
781
- var ke = ae(fe);
782
- return D(), ke;
913
+ F(H), C(D, H);
914
+ var ze = ae(ye);
915
+ return A(), ze;
783
916
  }
784
917
  te(
785
918
  oe,
@@ -798,97 +931,97 @@ te(
798
931
  [],
799
932
  { mode: "open" }
800
933
  );
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 = {
934
+ function Ze(D, t) {
935
+ ie(t, !0);
936
+ 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), k = o(t, "wheelButtonAsset", 7, null), c = o(t, "backgroundVideoAsset", 7, null), b = o(t, "liteMode", 7, !1), y = o(t, "translationurl", 7);
937
+ var z = {
805
938
  get endpoint() {
806
939
  return v();
807
940
  },
808
- set endpoint(t) {
809
- v(t), s();
941
+ set endpoint(i) {
942
+ v(i), s();
810
943
  },
811
944
  get session() {
812
- return T();
945
+ return S();
813
946
  },
814
- set session(t) {
815
- T(t), s();
947
+ set session(i) {
948
+ S(i), s();
816
949
  },
817
950
  get requiresOptin() {
818
- return D();
951
+ return A();
819
952
  },
820
- set requiresOptin(t = !1) {
821
- D(t), s();
953
+ set requiresOptin(i = !1) {
954
+ A(i), s();
822
955
  },
823
956
  get language() {
824
957
  return h();
825
958
  },
826
- set language(t = "en") {
827
- h(t), s();
959
+ set language(i = "en") {
960
+ h(i), s();
828
961
  },
829
962
  get outerWheelAsset() {
830
- return u();
963
+ return l();
831
964
  },
832
- set outerWheelAsset(t = null) {
833
- u(t), s();
965
+ set outerWheelAsset(i = null) {
966
+ l(i), s();
834
967
  },
835
968
  get wheelButtonAsset() {
836
969
  return k();
837
970
  },
838
- set wheelButtonAsset(t = null) {
839
- k(t), s();
971
+ set wheelButtonAsset(i = null) {
972
+ k(i), s();
840
973
  },
841
974
  get backgroundVideoAsset() {
842
- return p();
975
+ return c();
843
976
  },
844
- set backgroundVideoAsset(t = null) {
845
- p(t), s();
977
+ set backgroundVideoAsset(i = null) {
978
+ c(i), s();
846
979
  },
847
980
  get liteMode() {
848
- return m();
981
+ return b();
849
982
  },
850
- set liteMode(t = !1) {
851
- m(t), s();
983
+ set liteMode(i = !1) {
984
+ b(i), s();
852
985
  },
853
986
  get translationurl() {
854
- return f();
987
+ return y();
855
988
  },
856
- set translationurl(t) {
857
- f(t), s();
989
+ set translationurl(i) {
990
+ y(i), s();
858
991
  }
859
992
  };
860
- return oe(x, {
993
+ return oe(D, {
861
994
  get endpoint() {
862
995
  return v();
863
996
  },
864
997
  get session() {
865
- return T();
998
+ return S();
866
999
  },
867
1000
  get requiresOptin() {
868
- return D();
1001
+ return A();
869
1002
  },
870
1003
  get language() {
871
1004
  return h();
872
1005
  },
873
1006
  get outerWheelAsset() {
874
- return u();
1007
+ return l();
875
1008
  },
876
1009
  get wheelButtonAsset() {
877
1010
  return k();
878
1011
  },
879
1012
  get backgroundVideoAsset() {
880
- return p();
1013
+ return c();
881
1014
  },
882
1015
  get liteMode() {
883
- return m();
1016
+ return b();
884
1017
  },
885
1018
  get translationurl() {
886
- return f();
1019
+ return y();
887
1020
  }
888
- }), ae(w);
1021
+ }), ae(z);
889
1022
  }
890
1023
  customElements.define("mini-games-hub", te(
891
- Ee,
1024
+ Ze,
892
1025
  {
893
1026
  endpoint: { attribute: "endpoint", type: "String" },
894
1027
  session: { attribute: "session", type: "String" },
@@ -904,5 +1037,5 @@ customElements.define("mini-games-hub", te(
904
1037
  []
905
1038
  ));
906
1039
  export {
907
- Ee as M
1040
+ Ze as M
908
1041
  };