@everymatrix/mini-games-hub 0.1.7 → 0.1.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.
- package/components/{GameCard-Dfgtrwdb.cjs → GameCard-BdIf8taI.cjs} +2 -2
- package/components/{GameCard-DTz2IEhm.js → GameCard-D6sU2V3q.js} +30 -30
- package/components/{GameCard-sNqb2_mR.js → GameCard-kF0UN5td.js} +30 -30
- package/components/{MiniGamesHub-DTPiOtNT.js → MiniGamesHub-BVcmk4IU.js} +129 -117
- package/components/MiniGamesHub-C0rZSf6S.cjs +94 -0
- package/components/{MiniGamesHub-iX9t9vSW.js → MiniGamesHub-qecVNQ2u.js} +100 -88
- package/components/WheelOfFortune-B4iD3e8L.js +970 -0
- package/components/WheelOfFortune-DSi81Ef6.js +932 -0
- package/components/WheelOfFortune-TbQMnCAv.cjs +629 -0
- package/components/WheelOfFortuneDrawResults-Cr_Opm7D.js +259 -0
- package/components/WheelOfFortuneDrawResults-DtaD6Bbg.js +284 -0
- package/components/WheelOfFortuneDrawResults-k4Kh8Rs5.cjs +1 -0
- package/components/WheelOfFortuneHistory-awqUiE50.js +232 -0
- package/components/WheelOfFortuneHistory-yRqy0iaU.cjs +13 -0
- package/components/WheelOfFortuneHistory-z3M9_gS4.js +232 -0
- package/components/WheelOfFortuneRules-BrDcDT04.js +117 -0
- package/components/WheelOfFortuneRules-Dey_I6Ft.js +128 -0
- package/components/WheelOfFortuneRules-YS6b_8jm.cjs +5 -0
- package/components/{WheelOfFortuneWheel-CCmzx2yj.js → WheelOfFortuneWheel-6tNP0FcW.js} +734 -769
- package/components/{WheelOfFortuneWheel-BvI-fAML.js → WheelOfFortuneWheel-B0fH6QZt.js} +962 -997
- package/components/WheelOfFortuneWheel-Dol3euDD.cjs +3 -0
- package/components/{constants-CWz8CXw2.js → constants-BYsDpbRv.js} +7 -7
- package/components/{sparkles-BzZDomk7.js → sparkles-CSfeD2Zu.js} +1 -1
- package/components/{sparkles-C9wObsYC.js → sparkles-CTrQ372y.js} +1 -1
- package/components/spin-controller-DorW7-xf.cjs +1 -0
- package/components/{spin-controller-CETKYiGM.js → spin-controller-WAwdTCCW.js} +42 -39
- package/components/spin-controller-cbMEvhN0.js +164 -0
- package/components/utils-B7DHb9g0.cjs +3 -0
- package/components/{utils-C0oX5v1l.js → utils-B7FniaI2.js} +2499 -2597
- package/components/{utils-B53aGsNG.js → utils-CSOcFUAz.js} +2387 -2487
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/MiniGamesHub-3XlqpfV_.cjs +0 -94
- package/components/WheelOfFortune-BKUcclpm.js +0 -895
- package/components/WheelOfFortune-CbvJZO8-.js +0 -885
- package/components/WheelOfFortune-DgAgnR_Q.cjs +0 -609
- package/components/WheelOfFortuneDrawResults-AskDnOA6.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-C9BcE4Kr.js +0 -262
- package/components/WheelOfFortuneDrawResults-DnQPGIPX.js +0 -237
- package/components/WheelOfFortuneHistory-BA977Hfx.js +0 -230
- package/components/WheelOfFortuneHistory-CT-5jtfe.js +0 -230
- package/components/WheelOfFortuneHistory-uP606zLS.cjs +0 -13
- package/components/WheelOfFortuneRules-C16Md0m_.js +0 -117
- package/components/WheelOfFortuneRules-DQcA-d8i.js +0 -128
- package/components/WheelOfFortuneRules-zVRcNYIv.cjs +0 -5
- package/components/WheelOfFortuneWheel-6j7QTrsf.cjs +0 -3
- package/components/spin-controller-BjXSz9Me.js +0 -161
- package/components/spin-controller-q2CuZMYj.cjs +0 -1
- package/components/utils-Du65tqU5.cjs +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as $e, a as er, p as k, v as rr, w as ce, x as pe, o as nr, i as he, b as
|
|
3
|
-
import { W as ge } from "./WheelOfFortune-
|
|
4
|
-
import { G as ar } from "./GameCard-
|
|
1
|
+
import { A as Ie, b4 as Ve, P as Ue, aK as q, ax as Je, F as Ye, aB as S, aO as Ke, aR as R, X as h, aU as P, ap as p, b5 as Ze, aL as se, aQ as le, ac as ue, aW as de, aM as Xe, aN as Qe } from "./utils-CSOcFUAz.js";
|
|
2
|
+
import { c as $e, a as er, p as k, v as rr, w as ce, x as pe, o as nr, i as he, b as C, f as B, h as tr, e as ir, g as or, s as J } from "./WheelOfFortuneWheel-6tNP0FcW.js";
|
|
3
|
+
import { W as ge } from "./WheelOfFortune-DSi81Ef6.js";
|
|
4
|
+
import { G as ar } from "./GameCard-kF0UN5td.js";
|
|
5
5
|
const fe = {
|
|
6
6
|
en: {
|
|
7
7
|
noContent: "You don't have any lottery programs available now.",
|
|
@@ -24,10 +24,12 @@ const fe = {
|
|
|
24
24
|
prizeTicket: "Mini Game Chance",
|
|
25
25
|
prizeLoyalty: "Loyalty Points",
|
|
26
26
|
prizeChallenge: "Challenge",
|
|
27
|
+
prizeCustom: "Custom Prize",
|
|
27
28
|
congratulations: "Congratulations!",
|
|
28
29
|
success: "You won a <span>{prize}</span>!",
|
|
29
30
|
noPrizeTitle: "Not This Time!",
|
|
30
31
|
noPrize: "Don't Worry! Your turn might come next. Try Again!",
|
|
32
|
+
noWin: "No Win",
|
|
31
33
|
prizeAssignedTitle: "Success!",
|
|
32
34
|
prizeAssigned: "Your prize has been assigned!",
|
|
33
35
|
drawFailedTitle: "Contact Support",
|
|
@@ -108,10 +110,12 @@ const fe = {
|
|
|
108
110
|
prizeTicket: "Mini-spilchance",
|
|
109
111
|
prizeLoyalty: "Loyalitetspoint",
|
|
110
112
|
prizeChallenge: "Udfordring",
|
|
113
|
+
prizeCustom: "Specialpræmie",
|
|
111
114
|
congratulations: "Tillykke!",
|
|
112
115
|
success: "Du vandt en <span>{prize}</span>!",
|
|
113
116
|
noPrizeTitle: "Ikke Denne Gang!",
|
|
114
117
|
noPrize: "Bare rolig! Din tur kommer måske næste gang. Prøv igen!",
|
|
118
|
+
noWin: "Ingen Gevinst",
|
|
115
119
|
prizeAssignedTitle: "Succes!",
|
|
116
120
|
prizeAssigned: "Din præmie er blevet tildelt!",
|
|
117
121
|
drawFailedTitle: "Kontakt Support",
|
|
@@ -192,10 +196,12 @@ const fe = {
|
|
|
192
196
|
prizeTicket: "Mini-Spiel-Chance",
|
|
193
197
|
prizeLoyalty: "Treuepunkte",
|
|
194
198
|
prizeChallenge: "Herausforderung",
|
|
199
|
+
prizeCustom: "Sonderpreis",
|
|
195
200
|
congratulations: "Herzlichen Glückwunsch!",
|
|
196
201
|
success: "Du hast einen <span>{prize}</span> gewonnen!",
|
|
197
202
|
noPrizeTitle: "Diesmal Nicht!",
|
|
198
203
|
noPrize: "Keine Sorge! Du bist vielleicht beim nächsten Mal dran. Versuch es noch einmal!",
|
|
204
|
+
noWin: "Kein Gewinn",
|
|
199
205
|
prizeAssignedTitle: "Erfolg!",
|
|
200
206
|
prizeAssigned: "Dein Preis wurde erfolgreich vergeben!",
|
|
201
207
|
drawFailedTitle: "Support Kontaktieren",
|
|
@@ -276,10 +282,12 @@ const fe = {
|
|
|
276
282
|
prizeTicket: "Mini Game Kans",
|
|
277
283
|
prizeLoyalty: "Loyaliteitspunten",
|
|
278
284
|
prizeChallenge: "Uitdaging",
|
|
285
|
+
prizeCustom: "Aangepaste Prijs",
|
|
279
286
|
congratulations: "Gefeliciteerd!",
|
|
280
287
|
success: "Je hebt een <span>{prize}</span> gewonnen!",
|
|
281
288
|
noPrizeTitle: "Deze Keer Niet!",
|
|
282
289
|
noPrize: "Geen zorgen! Jouw beurt komt misschien de volgende keer. Probeer het opnieuw!",
|
|
290
|
+
noWin: "Geen Winst",
|
|
283
291
|
prizeAssignedTitle: "Gelukt!",
|
|
284
292
|
prizeAssigned: "Je prijs is succesvol toegewezen!",
|
|
285
293
|
drawFailedTitle: "Neem Contact op met Support",
|
|
@@ -360,10 +368,12 @@ const fe = {
|
|
|
360
368
|
prizeTicket: "Chance mini-jeu",
|
|
361
369
|
prizeLoyalty: "Points de Fidélité",
|
|
362
370
|
prizeChallenge: "Défi",
|
|
371
|
+
prizeCustom: "Prix Personnalisé",
|
|
363
372
|
congratulations: "Félicitations !",
|
|
364
373
|
success: "Vous avez gagné un <span>{prize}</span> !",
|
|
365
374
|
noPrizeTitle: "Pas Cette Fois !",
|
|
366
375
|
noPrize: "Ne vous inquiétez pas ! Votre tour viendra peut-être la prochaine fois. Réessayez !",
|
|
376
|
+
noWin: "Aucun Gain",
|
|
367
377
|
prizeAssignedTitle: "Succès !",
|
|
368
378
|
prizeAssigned: "Votre prix a été assigné avec succès !",
|
|
369
379
|
drawFailedTitle: "Contacter le Support",
|
|
@@ -444,10 +454,12 @@ const fe = {
|
|
|
444
454
|
prizeTicket: "Mini Oyun Şansı",
|
|
445
455
|
prizeLoyalty: "Sadakat Puanı",
|
|
446
456
|
prizeChallenge: "Meydan Okuma",
|
|
457
|
+
prizeCustom: "Özel Ödül",
|
|
447
458
|
congratulations: "Tebrikler!",
|
|
448
459
|
success: "<span>{prize}</span> kazandınız!",
|
|
449
460
|
noPrizeTitle: "Bu Sefer Olmadı!",
|
|
450
461
|
noPrize: "Endişelenmeyin! Sıra bir dahaki sefere sizde olabilir. Tekrar deneyin!",
|
|
462
|
+
noWin: "Kazanma Yok",
|
|
451
463
|
prizeAssignedTitle: "Başarılı!",
|
|
452
464
|
prizeAssigned: "Ödülünüz başarıyla atandı!",
|
|
453
465
|
drawFailedTitle: "Desteğe Başvurun",
|
|
@@ -529,7 +541,7 @@ var K = function(n, r) {
|
|
|
529
541
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
530
542
|
}, K(n, r);
|
|
531
543
|
};
|
|
532
|
-
function
|
|
544
|
+
function E(n, r) {
|
|
533
545
|
if (typeof r != "function" && r !== null)
|
|
534
546
|
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
535
547
|
K(n, r);
|
|
@@ -594,7 +606,7 @@ function $(n, r) {
|
|
|
594
606
|
0 <= e && n.splice(e, 1);
|
|
595
607
|
}
|
|
596
608
|
}
|
|
597
|
-
var
|
|
609
|
+
var N = function() {
|
|
598
610
|
function n(r) {
|
|
599
611
|
this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
600
612
|
}
|
|
@@ -632,10 +644,10 @@ var W = function() {
|
|
|
632
644
|
if (j) {
|
|
633
645
|
this._finalizers = null;
|
|
634
646
|
try {
|
|
635
|
-
for (var z = Z(j),
|
|
636
|
-
var
|
|
647
|
+
for (var z = Z(j), w = z.next(); !w.done; w = z.next()) {
|
|
648
|
+
var G = w.value;
|
|
637
649
|
try {
|
|
638
|
-
me(
|
|
650
|
+
me(G);
|
|
639
651
|
} catch (g) {
|
|
640
652
|
o = o ?? [], g instanceof Y ? o = Q(Q([], X(o)), X(g.errors)) : o.push(g);
|
|
641
653
|
}
|
|
@@ -644,7 +656,7 @@ var W = function() {
|
|
|
644
656
|
t = { error: g };
|
|
645
657
|
} finally {
|
|
646
658
|
try {
|
|
647
|
-
|
|
659
|
+
w && !w.done && (i = z.return) && i.call(z);
|
|
648
660
|
} finally {
|
|
649
661
|
if (t) throw t.error;
|
|
650
662
|
}
|
|
@@ -682,9 +694,9 @@ var W = function() {
|
|
|
682
694
|
var r = new n();
|
|
683
695
|
return r.closed = !0, r;
|
|
684
696
|
}(), n;
|
|
685
|
-
}(), ze =
|
|
697
|
+
}(), ze = N.EMPTY;
|
|
686
698
|
function xe(n) {
|
|
687
|
-
return n instanceof
|
|
699
|
+
return n instanceof N || n && "closed" in n && T(n.remove) && T(n.add) && T(n.unsubscribe);
|
|
688
700
|
}
|
|
689
701
|
function me(n) {
|
|
690
702
|
T(n) ? n() : n.unsubscribe();
|
|
@@ -713,7 +725,7 @@ function O(n) {
|
|
|
713
725
|
n();
|
|
714
726
|
}
|
|
715
727
|
var _e = function(n) {
|
|
716
|
-
|
|
728
|
+
E(r, n);
|
|
717
729
|
function r(e) {
|
|
718
730
|
var t = n.call(this) || this;
|
|
719
731
|
return t.isStopped = !1, e ? (t.destination = e, xe(e) && e.add(t)) : t.destination = pr, t;
|
|
@@ -743,7 +755,7 @@ var _e = function(n) {
|
|
|
743
755
|
this.unsubscribe();
|
|
744
756
|
}
|
|
745
757
|
}, r;
|
|
746
|
-
}(
|
|
758
|
+
}(N), dr = function() {
|
|
747
759
|
function n(r) {
|
|
748
760
|
this.partialObserver = r;
|
|
749
761
|
}
|
|
@@ -775,7 +787,7 @@ var _e = function(n) {
|
|
|
775
787
|
}
|
|
776
788
|
}, n;
|
|
777
789
|
}(), ee = function(n) {
|
|
778
|
-
|
|
790
|
+
E(r, n);
|
|
779
791
|
function r(e, t, i) {
|
|
780
792
|
var o = n.call(this) || this, a;
|
|
781
793
|
return T(e) || !e ? a = {
|
|
@@ -885,7 +897,7 @@ var br = Te(function(n) {
|
|
|
885
897
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
886
898
|
};
|
|
887
899
|
}), je = function(n) {
|
|
888
|
-
|
|
900
|
+
E(r, n);
|
|
889
901
|
function r() {
|
|
890
902
|
var e = n.call(this) || this;
|
|
891
903
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -951,7 +963,7 @@ var br = Te(function(n) {
|
|
|
951
963
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
952
964
|
}, r.prototype._innerSubscribe = function(e) {
|
|
953
965
|
var t = this, i = this, o = i.hasError, a = i.isStopped, l = i.observers;
|
|
954
|
-
return o || a ? ze : (this.currentObservers = null, l.push(e), new
|
|
966
|
+
return o || a ? ze : (this.currentObservers = null, l.push(e), new N(function() {
|
|
955
967
|
t.currentObservers = null, $(l, e);
|
|
956
968
|
}));
|
|
957
969
|
}, r.prototype._checkFinalizedStatuses = function(e) {
|
|
@@ -964,7 +976,7 @@ var br = Te(function(n) {
|
|
|
964
976
|
return new we(e, t);
|
|
965
977
|
}, r;
|
|
966
978
|
}(be), we = function(n) {
|
|
967
|
-
|
|
979
|
+
E(r, n);
|
|
968
980
|
function r(e, t) {
|
|
969
981
|
var i = n.call(this) || this;
|
|
970
982
|
return i.destination = e, i.source = t, i;
|
|
@@ -988,7 +1000,7 @@ var br = Te(function(n) {
|
|
|
988
1000
|
},
|
|
989
1001
|
delegate: void 0
|
|
990
1002
|
}, yr = function(n) {
|
|
991
|
-
|
|
1003
|
+
E(r, n);
|
|
992
1004
|
function r(e, t, i) {
|
|
993
1005
|
e === void 0 && (e = 1 / 0), t === void 0 && (t = 1 / 0), i === void 0 && (i = Pe);
|
|
994
1006
|
var o = n.call(this) || this;
|
|
@@ -1020,14 +1032,14 @@ const Se = [], ke = {}, wr = (n, r = 0) => {
|
|
|
1020
1032
|
};
|
|
1021
1033
|
window.emWidgets = { topic: wr };
|
|
1022
1034
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
1023
|
-
var Sr =
|
|
1035
|
+
var Sr = B('<div class="loader-container svelte-1g2duiq"><div class="loader svelte-1g2duiq"><div class="loader-ring-outer svelte-1g2duiq"></div> <div class="loader-ring-inner svelte-1g2duiq"></div></div></div>'), kr = B('<div class="prize-hub-container svelte-1g2duiq"><h3 class="svelte-1g2duiq"> </h3> <p class="svelte-1g2duiq"> </p></div> <div class="mini-games-card-list svelte-1g2duiq"></div>', 1), Tr = B('<div class="svelte-1g2duiq"><p class="svelte-1g2duiq"> </p></div>'), zr = B('<div class="main-container svelte-1g2duiq"><!></div>');
|
|
1024
1036
|
const xr = {
|
|
1025
1037
|
hash: "svelte-1g2duiq",
|
|
1026
1038
|
code: `.svelte-1g2duiq,
|
|
1027
1039
|
.svelte-1g2duiq::before,
|
|
1028
|
-
.svelte-1g2duiq::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;}.
|
|
1029
|
-
.
|
|
1030
|
-
animation: svelte-1g2duiq-spin-cw 1s linear infinite;}.
|
|
1040
|
+
.svelte-1g2duiq::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-1g2duiq {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.svelte-1g2duiq {display:flex;flex-direction:column;gap:12px;width:100%;padding:0 10px;}.prize-hub-container.svelte-1g2duiq {display:flex;flex-direction:column;width:100%;padding:12px;gap:8px;margin:8px 0;}.prize-hub-container.svelte-1g2duiq h3:where(.svelte-1g2duiq) {color:var(--color-text-brand, #ffcc00);font-weight:700;font-size:14px;}.prize-hub-container.svelte-1g2duiq p:where(.svelte-1g2duiq) {color:var(--color-text-default, #ffffff);font-size:12px;font-weight:400;}.loader-container.svelte-1g2duiq {display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;}.loader.svelte-1g2duiq {position:relative;width:64px;height:64px;}.loader-ring-outer.svelte-1g2duiq,
|
|
1041
|
+
.loader-ring-inner.svelte-1g2duiq {position:absolute;border-radius:50%;border:3px solid transparent;}.loader-ring-outer.svelte-1g2duiq {width:64px;height:64px;top:0;left:0;border-top-color:var(--loader-color-primary, #ffcc00);
|
|
1042
|
+
animation: svelte-1g2duiq-spin-cw 1s linear infinite;}.loader-ring-inner.svelte-1g2duiq {width:42px;height:42px;top:11px;left:11px;border-top-color:var(--loader-color-secondary, rgba(255, 255, 255, 0.5019607843));
|
|
1031
1043
|
animation: svelte-1g2duiq-spin-ccw 0.75s linear infinite;}
|
|
1032
1044
|
|
|
1033
1045
|
@keyframes svelte-1g2duiq-spin-cw {
|
|
@@ -1051,29 +1063,29 @@ const xr = {
|
|
|
1051
1063
|
}
|
|
1052
1064
|
}
|
|
1053
1065
|
|
|
1054
|
-
.
|
|
1066
|
+
.skeleton-row {
|
|
1055
1067
|
pointer-events: none;
|
|
1056
1068
|
}
|
|
1057
1069
|
|
|
1058
|
-
.
|
|
1070
|
+
.skeleton-bone {
|
|
1059
1071
|
display: block;
|
|
1060
1072
|
border-radius: 4px;
|
|
1061
1073
|
background-color: var(--color-overlay-neutral-2, #fbfbfb33);
|
|
1062
1074
|
animation: skeleton-pulse 1.4s ease-in-out infinite;
|
|
1063
1075
|
}
|
|
1064
1076
|
|
|
1065
|
-
.
|
|
1077
|
+
.skeleton-title {
|
|
1066
1078
|
width: 40%;
|
|
1067
1079
|
height: 22px;
|
|
1068
1080
|
margin-bottom: 8px;
|
|
1069
1081
|
}
|
|
1070
1082
|
|
|
1071
|
-
.
|
|
1083
|
+
.skeleton-subtitle {
|
|
1072
1084
|
width: 60%;
|
|
1073
1085
|
height: 14px;
|
|
1074
1086
|
}
|
|
1075
1087
|
|
|
1076
|
-
.
|
|
1088
|
+
.skeleton-card {
|
|
1077
1089
|
display: flex;
|
|
1078
1090
|
flex-direction: column;
|
|
1079
1091
|
height: 115px;
|
|
@@ -1083,13 +1095,13 @@ const xr = {
|
|
|
1083
1095
|
overflow: hidden;
|
|
1084
1096
|
}
|
|
1085
1097
|
|
|
1086
|
-
.
|
|
1098
|
+
.skeleton-card-image {
|
|
1087
1099
|
width: 100%;
|
|
1088
1100
|
height: 70px;
|
|
1089
1101
|
border-radius: 0;
|
|
1090
1102
|
}
|
|
1091
1103
|
|
|
1092
|
-
.
|
|
1104
|
+
.skeleton-card-body {
|
|
1093
1105
|
display: flex;
|
|
1094
1106
|
justify-content: end;
|
|
1095
1107
|
height: 50px;
|
|
@@ -1097,7 +1109,7 @@ const xr = {
|
|
|
1097
1109
|
padding: 12px;
|
|
1098
1110
|
}
|
|
1099
1111
|
|
|
1100
|
-
.
|
|
1112
|
+
.skeleton-card-button {
|
|
1101
1113
|
width: 30%;
|
|
1102
1114
|
height: 25px;
|
|
1103
1115
|
}
|
|
@@ -1105,26 +1117,26 @@ const xr = {
|
|
|
1105
1117
|
};
|
|
1106
1118
|
function _r(n, r) {
|
|
1107
1119
|
Ie(r, !0), er(n, xr);
|
|
1108
|
-
const e = () => Xe(Qe, "$_", t), [t, i] = Ke(), o = k(r, "endpoint", 7), a = k(r, "session", 7), l = k(r, "requiresOptin", 7, !1), u = k(r, "language", 7, "en"), f = k(r, "outerWheelAsset", 7, null), m = k(r, "wheelButtonAsset", 7, null), j = k(r, "backgroundVideoAsset", 7, null), z = k(r, "liteMode", 7, !1),
|
|
1109
|
-
function
|
|
1120
|
+
const e = () => Xe(Qe, "$_", t), [t, i] = Ke(), o = k(r, "endpoint", 7), a = k(r, "session", 7), l = k(r, "requiresOptin", 7, !1), u = k(r, "language", 7, "en"), f = k(r, "outerWheelAsset", 7, null), m = k(r, "wheelButtonAsset", 7, null), j = k(r, "backgroundVideoAsset", 7, null), z = k(r, "liteMode", 7, !1), w = k(r, "translationurl", 7), G = /iPhone|iPad|iPod/.test(navigator.userAgent), g = navigator.deviceMemory ?? 1 / 0, Ae = navigator.hardwareConcurrency ?? 1 / 0;
|
|
1121
|
+
function De() {
|
|
1110
1122
|
try {
|
|
1111
1123
|
const d = document.createElement("canvas").getContext("webgl");
|
|
1112
1124
|
if (!d) return !1;
|
|
1113
|
-
const
|
|
1114
|
-
if (!
|
|
1115
|
-
const c = d.getParameter(
|
|
1125
|
+
const y = d.getExtension("WEBGL_debug_renderer_info");
|
|
1126
|
+
if (!y) return !1;
|
|
1127
|
+
const c = d.getParameter(y.UNMASKED_RENDERER_WEBGL).toLowerCase();
|
|
1116
1128
|
return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(c);
|
|
1117
1129
|
} catch {
|
|
1118
1130
|
return !1;
|
|
1119
1131
|
}
|
|
1120
1132
|
}
|
|
1121
|
-
const
|
|
1133
|
+
const qe = !G && (g <= 4 || Ae <= 4 || De()), re = de(() => z() || qe);
|
|
1122
1134
|
rr({ withLocale: "en", translations: {} });
|
|
1123
|
-
const
|
|
1124
|
-
let s = new URL(
|
|
1135
|
+
const Re = () => {
|
|
1136
|
+
let s = new URL(w());
|
|
1125
1137
|
fetch(s.href).then((d) => d.json()).then((d) => {
|
|
1126
|
-
Object.keys(d).forEach((
|
|
1127
|
-
ce(
|
|
1138
|
+
Object.keys(d).forEach((y) => {
|
|
1139
|
+
ce(y, d[y]);
|
|
1128
1140
|
});
|
|
1129
1141
|
}).catch((d) => {
|
|
1130
1142
|
console.log(d);
|
|
@@ -1133,44 +1145,44 @@ function _r(n, r) {
|
|
|
1133
1145
|
Object.keys(fe).forEach((s) => {
|
|
1134
1146
|
ce(s, fe[s]);
|
|
1135
1147
|
}), pe(u());
|
|
1136
|
-
const
|
|
1148
|
+
const We = () => {
|
|
1137
1149
|
pe(u());
|
|
1138
1150
|
};
|
|
1139
1151
|
Ve(() => {
|
|
1140
|
-
|
|
1152
|
+
w() && Re();
|
|
1141
1153
|
}), Ue(() => {
|
|
1142
|
-
|
|
1154
|
+
We();
|
|
1143
1155
|
});
|
|
1144
|
-
let x =
|
|
1145
|
-
const
|
|
1156
|
+
let x = q(!1), b = q(Je([])), ne = q(!1), L = q(!1), A = q(null), te = q(!1);
|
|
1157
|
+
const Ce = async () => {
|
|
1146
1158
|
p(x, !0);
|
|
1147
1159
|
const s = new URL(`${o()}/v1/wof/claimable`), d = new Headers();
|
|
1148
1160
|
a() && d.append("X-SessionId", a());
|
|
1149
|
-
const
|
|
1150
|
-
s.searchParams.append("filter", "wheelOfFortune"), fetch(s,
|
|
1161
|
+
const y = { method: "GET", headers: d, cache: "no-store" };
|
|
1162
|
+
s.searchParams.append("filter", "wheelOfFortune"), fetch(s, y).then((c) => c.json()).then((c) => {
|
|
1151
1163
|
if (c && c.errorMessage?.trim() === "InvalidSessionId") {
|
|
1152
|
-
p(
|
|
1164
|
+
p(L, !0), p(x, !1);
|
|
1153
1165
|
return;
|
|
1154
1166
|
}
|
|
1155
1167
|
if (c?.items?.program?.canClaim) {
|
|
1156
|
-
p(
|
|
1168
|
+
p(b, c?.items?.program, !0), p(x, !1);
|
|
1157
1169
|
return;
|
|
1158
1170
|
}
|
|
1159
|
-
p(
|
|
1171
|
+
p(b, c?.items, !0);
|
|
1160
1172
|
}).catch((c) => {
|
|
1161
1173
|
console.log(c), p(ne, !0);
|
|
1162
1174
|
}).finally(() => p(x, !1));
|
|
1163
|
-
},
|
|
1175
|
+
}, Ee = async () => {
|
|
1164
1176
|
p(x, !0);
|
|
1165
1177
|
const s = new URL(`${o()}/v1/wof/lotteries`), d = new Headers();
|
|
1166
1178
|
a() && d.append("X-SessionId", a());
|
|
1167
|
-
const
|
|
1168
|
-
s.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(s,
|
|
1179
|
+
const y = { method: "GET", headers: d, cache: "no-store" };
|
|
1180
|
+
s.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(s, y).then((c) => c.json()).then((c) => {
|
|
1169
1181
|
if (c && c.errorMessage?.trim() === "InvalidSessionId") {
|
|
1170
|
-
p(
|
|
1182
|
+
p(L, !0), p(x, !1);
|
|
1171
1183
|
return;
|
|
1172
1184
|
}
|
|
1173
|
-
p(
|
|
1185
|
+
p(b, c?.items.map((H) => Ze(H, u())), !0), h(b).length === 1 && (p(A, h(b)[0], !0), p(te, !0)), h(b).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
|
|
1174
1186
|
}).catch((c) => {
|
|
1175
1187
|
console.log(c), p(ne, !0);
|
|
1176
1188
|
}).finally(() => p(x, !1));
|
|
@@ -1178,17 +1190,17 @@ function _r(n, r) {
|
|
|
1178
1190
|
if (s.data)
|
|
1179
1191
|
switch (s.data.type) {
|
|
1180
1192
|
case "PlayMiniGame":
|
|
1181
|
-
p(
|
|
1193
|
+
p(A, h(b).find((d) => d.id === s.data.programId), !0);
|
|
1182
1194
|
break;
|
|
1183
1195
|
case "CloseMiniGame":
|
|
1184
|
-
p(
|
|
1196
|
+
p(A, null);
|
|
1185
1197
|
break;
|
|
1186
1198
|
case "PrizeGameRemainingTimesUpdated":
|
|
1187
|
-
p(
|
|
1199
|
+
p(A, s.data.data, !0), p(b, h(b).map((d) => d.id === s.data.data.id ? s.data.data : d), !0);
|
|
1188
1200
|
break;
|
|
1189
1201
|
}
|
|
1190
1202
|
};
|
|
1191
|
-
nr(() => (a() && (l() ?
|
|
1203
|
+
nr(() => (a() && (l() ? Ce() : Ee()), window.postMessage({ type: "event_hub_accessed", isLoggedIn: !!a() }, window.location.href), window.addEventListener("message", ie), () => {
|
|
1192
1204
|
window.removeEventListener("message", ie);
|
|
1193
1205
|
}));
|
|
1194
1206
|
var Me = {
|
|
@@ -1241,18 +1253,18 @@ function _r(n, r) {
|
|
|
1241
1253
|
z(s), S();
|
|
1242
1254
|
},
|
|
1243
1255
|
get translationurl() {
|
|
1244
|
-
return
|
|
1256
|
+
return w();
|
|
1245
1257
|
},
|
|
1246
1258
|
set translationurl(s) {
|
|
1247
|
-
|
|
1259
|
+
w(s), S();
|
|
1248
1260
|
}
|
|
1249
|
-
},
|
|
1261
|
+
}, F = zr(), Oe = R(F);
|
|
1250
1262
|
{
|
|
1251
|
-
var
|
|
1263
|
+
var Be = (s) => {
|
|
1252
1264
|
var d = Sr();
|
|
1253
|
-
|
|
1254
|
-
},
|
|
1255
|
-
var d = tr(),
|
|
1265
|
+
C(s, d);
|
|
1266
|
+
}, Ne = (s) => {
|
|
1267
|
+
var d = tr(), y = se(d);
|
|
1256
1268
|
{
|
|
1257
1269
|
var c = (v) => {
|
|
1258
1270
|
ge(v, {
|
|
@@ -1272,12 +1284,12 @@ function _r(n, r) {
|
|
|
1272
1284
|
return h(re);
|
|
1273
1285
|
}
|
|
1274
1286
|
});
|
|
1275
|
-
},
|
|
1287
|
+
}, H = (v) => {
|
|
1276
1288
|
{
|
|
1277
1289
|
let _ = de(() => !h(te));
|
|
1278
1290
|
ge(v, {
|
|
1279
1291
|
get program() {
|
|
1280
|
-
return h(
|
|
1292
|
+
return h(A);
|
|
1281
1293
|
},
|
|
1282
1294
|
get endpoint() {
|
|
1283
1295
|
return o();
|
|
@@ -1305,13 +1317,13 @@ function _r(n, r) {
|
|
|
1305
1317
|
}
|
|
1306
1318
|
});
|
|
1307
1319
|
}
|
|
1308
|
-
},
|
|
1309
|
-
var _ = kr(),
|
|
1310
|
-
P(
|
|
1311
|
-
var oe = le(
|
|
1312
|
-
P(oe), P(
|
|
1313
|
-
var ae = le(
|
|
1314
|
-
ir(ae, 21, () => h(
|
|
1320
|
+
}, Le = (v) => {
|
|
1321
|
+
var _ = kr(), D = se(_), W = R(D), I = R(W, !0);
|
|
1322
|
+
P(W);
|
|
1323
|
+
var oe = le(W, 2), He = R(oe, !0);
|
|
1324
|
+
P(oe), P(D);
|
|
1325
|
+
var ae = le(D, 2);
|
|
1326
|
+
ir(ae, 21, () => h(b), or, (V, U) => {
|
|
1315
1327
|
ar(V, {
|
|
1316
1328
|
get program() {
|
|
1317
1329
|
return h(U);
|
|
@@ -1319,27 +1331,27 @@ function _r(n, r) {
|
|
|
1319
1331
|
});
|
|
1320
1332
|
}), P(ae), ue(
|
|
1321
1333
|
(V, U) => {
|
|
1322
|
-
J(I, V), J(
|
|
1334
|
+
J(I, V), J(He, U);
|
|
1323
1335
|
},
|
|
1324
1336
|
[() => e()("hubTitle"), () => e()("hubSubtitle")]
|
|
1325
|
-
),
|
|
1326
|
-
},
|
|
1327
|
-
var _ = Tr(),
|
|
1328
|
-
P(
|
|
1337
|
+
), C(v, _);
|
|
1338
|
+
}, Fe = (v) => {
|
|
1339
|
+
var _ = Tr(), D = R(_), W = R(D, !0);
|
|
1340
|
+
P(D), P(_), ue((I) => J(W, I), [() => e()("noContent")]), C(v, _);
|
|
1329
1341
|
};
|
|
1330
|
-
he(
|
|
1331
|
-
!a() || h(
|
|
1342
|
+
he(y, (v) => {
|
|
1343
|
+
!a() || h(L) ? v(c) : h(A) ? v(H, 1) : h(b)?.length > 1 ? v(Le, 2) : v(Fe, -1);
|
|
1332
1344
|
});
|
|
1333
1345
|
}
|
|
1334
|
-
|
|
1346
|
+
C(s, d);
|
|
1335
1347
|
};
|
|
1336
1348
|
he(Oe, (s) => {
|
|
1337
|
-
h(x) ? s(
|
|
1349
|
+
h(x) ? s(Be) : s(Ne, -1);
|
|
1338
1350
|
});
|
|
1339
1351
|
}
|
|
1340
|
-
P(
|
|
1341
|
-
var
|
|
1342
|
-
return i(),
|
|
1352
|
+
P(F), C(n, F);
|
|
1353
|
+
var Ge = Ye(Me);
|
|
1354
|
+
return i(), Ge;
|
|
1343
1355
|
}
|
|
1344
1356
|
customElements.define("mini-games-hub", $e(
|
|
1345
1357
|
_r,
|