@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
|
@@ -14,10 +14,10 @@ var K = (n, r, e) => new Promise((t, i) => {
|
|
|
14
14
|
}, l = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(o, a);
|
|
15
15
|
l((e = e.apply(n, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
18
|
-
import { a as nr, p as T, v as tr, w as me, x as ve, o as ir, i as be, b as O, f as
|
|
19
|
-
import { W as ye } from "./WheelOfFortune-
|
|
20
|
-
import { G as ur } from "./GameCard-
|
|
17
|
+
import { b4 as Je, P as Ye, aK as W, ax as Ke, F as Ze, aP as Xe, aB as k, A as Qe, X as g, ap as p, b5 as $e, aR as C, aL as pe, aU as A, aM as he, ac as ge, aV as fe, aN as er, aO as rr } from "./utils-B7FniaI2.js";
|
|
18
|
+
import { a as nr, p as T, v as tr, w as me, x as ve, o as ir, i as be, b as O, f as L, c as or, h as ar, e as sr, g as lr, s as Z } from "./WheelOfFortuneWheel-B0fH6QZt.js";
|
|
19
|
+
import { W as ye } from "./WheelOfFortune-B4iD3e8L.js";
|
|
20
|
+
import { G as ur } from "./GameCard-D6sU2V3q.js";
|
|
21
21
|
const we = {
|
|
22
22
|
en: {
|
|
23
23
|
noContent: "You don't have any lottery programs available now.",
|
|
@@ -40,10 +40,12 @@ const we = {
|
|
|
40
40
|
prizeTicket: "Mini Game Chance",
|
|
41
41
|
prizeLoyalty: "Loyalty Points",
|
|
42
42
|
prizeChallenge: "Challenge",
|
|
43
|
+
prizeCustom: "Custom Prize",
|
|
43
44
|
congratulations: "Congratulations!",
|
|
44
45
|
success: "You won a <span>{prize}</span>!",
|
|
45
46
|
noPrizeTitle: "Not This Time!",
|
|
46
47
|
noPrize: "Don't Worry! Your turn might come next. Try Again!",
|
|
48
|
+
noWin: "No Win",
|
|
47
49
|
prizeAssignedTitle: "Success!",
|
|
48
50
|
prizeAssigned: "Your prize has been assigned!",
|
|
49
51
|
drawFailedTitle: "Contact Support",
|
|
@@ -124,10 +126,12 @@ const we = {
|
|
|
124
126
|
prizeTicket: "Mini-spilchance",
|
|
125
127
|
prizeLoyalty: "Loyalitetspoint",
|
|
126
128
|
prizeChallenge: "Udfordring",
|
|
129
|
+
prizeCustom: "Specialpræmie",
|
|
127
130
|
congratulations: "Tillykke!",
|
|
128
131
|
success: "Du vandt en <span>{prize}</span>!",
|
|
129
132
|
noPrizeTitle: "Ikke Denne Gang!",
|
|
130
133
|
noPrize: "Bare rolig! Din tur kommer måske næste gang. Prøv igen!",
|
|
134
|
+
noWin: "Ingen Gevinst",
|
|
131
135
|
prizeAssignedTitle: "Succes!",
|
|
132
136
|
prizeAssigned: "Din præmie er blevet tildelt!",
|
|
133
137
|
drawFailedTitle: "Kontakt Support",
|
|
@@ -208,10 +212,12 @@ const we = {
|
|
|
208
212
|
prizeTicket: "Mini-Spiel-Chance",
|
|
209
213
|
prizeLoyalty: "Treuepunkte",
|
|
210
214
|
prizeChallenge: "Herausforderung",
|
|
215
|
+
prizeCustom: "Sonderpreis",
|
|
211
216
|
congratulations: "Herzlichen Glückwunsch!",
|
|
212
217
|
success: "Du hast einen <span>{prize}</span> gewonnen!",
|
|
213
218
|
noPrizeTitle: "Diesmal Nicht!",
|
|
214
219
|
noPrize: "Keine Sorge! Du bist vielleicht beim nächsten Mal dran. Versuch es noch einmal!",
|
|
220
|
+
noWin: "Kein Gewinn",
|
|
215
221
|
prizeAssignedTitle: "Erfolg!",
|
|
216
222
|
prizeAssigned: "Dein Preis wurde erfolgreich vergeben!",
|
|
217
223
|
drawFailedTitle: "Support Kontaktieren",
|
|
@@ -292,10 +298,12 @@ const we = {
|
|
|
292
298
|
prizeTicket: "Mini Game Kans",
|
|
293
299
|
prizeLoyalty: "Loyaliteitspunten",
|
|
294
300
|
prizeChallenge: "Uitdaging",
|
|
301
|
+
prizeCustom: "Aangepaste Prijs",
|
|
295
302
|
congratulations: "Gefeliciteerd!",
|
|
296
303
|
success: "Je hebt een <span>{prize}</span> gewonnen!",
|
|
297
304
|
noPrizeTitle: "Deze Keer Niet!",
|
|
298
305
|
noPrize: "Geen zorgen! Jouw beurt komt misschien de volgende keer. Probeer het opnieuw!",
|
|
306
|
+
noWin: "Geen Winst",
|
|
299
307
|
prizeAssignedTitle: "Gelukt!",
|
|
300
308
|
prizeAssigned: "Je prijs is succesvol toegewezen!",
|
|
301
309
|
drawFailedTitle: "Neem Contact op met Support",
|
|
@@ -376,10 +384,12 @@ const we = {
|
|
|
376
384
|
prizeTicket: "Chance mini-jeu",
|
|
377
385
|
prizeLoyalty: "Points de Fidélité",
|
|
378
386
|
prizeChallenge: "Défi",
|
|
387
|
+
prizeCustom: "Prix Personnalisé",
|
|
379
388
|
congratulations: "Félicitations !",
|
|
380
389
|
success: "Vous avez gagné un <span>{prize}</span> !",
|
|
381
390
|
noPrizeTitle: "Pas Cette Fois !",
|
|
382
391
|
noPrize: "Ne vous inquiétez pas ! Votre tour viendra peut-être la prochaine fois. Réessayez !",
|
|
392
|
+
noWin: "Aucun Gain",
|
|
383
393
|
prizeAssignedTitle: "Succès !",
|
|
384
394
|
prizeAssigned: "Votre prix a été assigné avec succès !",
|
|
385
395
|
drawFailedTitle: "Contacter le Support",
|
|
@@ -460,10 +470,12 @@ const we = {
|
|
|
460
470
|
prizeTicket: "Mini Oyun Şansı",
|
|
461
471
|
prizeLoyalty: "Sadakat Puanı",
|
|
462
472
|
prizeChallenge: "Meydan Okuma",
|
|
473
|
+
prizeCustom: "Özel Ödül",
|
|
463
474
|
congratulations: "Tebrikler!",
|
|
464
475
|
success: "<span>{prize}</span> kazandınız!",
|
|
465
476
|
noPrizeTitle: "Bu Sefer Olmadı!",
|
|
466
477
|
noPrize: "Endişelenmeyin! Sıra bir dahaki sefere sizde olabilir. Tekrar deneyin!",
|
|
478
|
+
noWin: "Kazanma Yok",
|
|
467
479
|
prizeAssignedTitle: "Başarılı!",
|
|
468
480
|
prizeAssigned: "Ödülünüz başarıyla atandı!",
|
|
469
481
|
drawFailedTitle: "Desteğe Başvurun",
|
|
@@ -545,7 +557,7 @@ var Q = function(n, r) {
|
|
|
545
557
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
546
558
|
}, Q(n, r);
|
|
547
559
|
};
|
|
548
|
-
function
|
|
560
|
+
function B(n, r) {
|
|
549
561
|
if (typeof r != "function" && r !== null)
|
|
550
562
|
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
551
563
|
Q(n, r);
|
|
@@ -610,7 +622,7 @@ function ne(n, r) {
|
|
|
610
622
|
0 <= e && n.splice(e, 1);
|
|
611
623
|
}
|
|
612
624
|
}
|
|
613
|
-
var
|
|
625
|
+
var F = function() {
|
|
614
626
|
function n(r) {
|
|
615
627
|
this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
616
628
|
}
|
|
@@ -648,10 +660,10 @@ var H = function() {
|
|
|
648
660
|
if (j) {
|
|
649
661
|
this._finalizers = null;
|
|
650
662
|
try {
|
|
651
|
-
for (var x = $(j),
|
|
652
|
-
var
|
|
663
|
+
for (var x = $(j), S = x.next(); !S.done; S = x.next()) {
|
|
664
|
+
var H = S.value;
|
|
653
665
|
try {
|
|
654
|
-
Se(
|
|
666
|
+
Se(H);
|
|
655
667
|
} catch (m) {
|
|
656
668
|
o = o != null ? o : [], m instanceof X ? o = re(re([], ee(o)), ee(m.errors)) : o.push(m);
|
|
657
669
|
}
|
|
@@ -660,7 +672,7 @@ var H = function() {
|
|
|
660
672
|
t = { error: m };
|
|
661
673
|
} finally {
|
|
662
674
|
try {
|
|
663
|
-
|
|
675
|
+
S && !S.done && (i = x.return) && i.call(x);
|
|
664
676
|
} finally {
|
|
665
677
|
if (t) throw t.error;
|
|
666
678
|
}
|
|
@@ -698,9 +710,9 @@ var H = function() {
|
|
|
698
710
|
var r = new n();
|
|
699
711
|
return r.closed = !0, r;
|
|
700
712
|
}(), n;
|
|
701
|
-
}(),
|
|
702
|
-
function
|
|
703
|
-
return n instanceof
|
|
713
|
+
}(), Ae = F.EMPTY;
|
|
714
|
+
function De(n) {
|
|
715
|
+
return n instanceof F || n && "closed" in n && z(n.remove) && z(n.add) && z(n.unsubscribe);
|
|
704
716
|
}
|
|
705
717
|
function Se(n) {
|
|
706
718
|
z(n) ? n() : n.unsubscribe();
|
|
@@ -725,14 +737,14 @@ function pr(n) {
|
|
|
725
737
|
}
|
|
726
738
|
function ke() {
|
|
727
739
|
}
|
|
728
|
-
function
|
|
740
|
+
function G(n) {
|
|
729
741
|
n();
|
|
730
742
|
}
|
|
731
|
-
var
|
|
732
|
-
|
|
743
|
+
var qe = function(n) {
|
|
744
|
+
B(r, n);
|
|
733
745
|
function r(e) {
|
|
734
746
|
var t = n.call(this) || this;
|
|
735
|
-
return t.isStopped = !1, e ? (t.destination = e,
|
|
747
|
+
return t.isStopped = !1, e ? (t.destination = e, De(e) && e.add(t)) : t.destination = fr, t;
|
|
736
748
|
}
|
|
737
749
|
return r.create = function(e, t, i) {
|
|
738
750
|
return new te(e, t, i);
|
|
@@ -759,7 +771,7 @@ var Re = function(n) {
|
|
|
759
771
|
this.unsubscribe();
|
|
760
772
|
}
|
|
761
773
|
}, r;
|
|
762
|
-
}(
|
|
774
|
+
}(F), hr = function() {
|
|
763
775
|
function n(r) {
|
|
764
776
|
this.partialObserver = r;
|
|
765
777
|
}
|
|
@@ -769,7 +781,7 @@ var Re = function(n) {
|
|
|
769
781
|
try {
|
|
770
782
|
e.next(r);
|
|
771
783
|
} catch (t) {
|
|
772
|
-
|
|
784
|
+
N(t);
|
|
773
785
|
}
|
|
774
786
|
}, n.prototype.error = function(r) {
|
|
775
787
|
var e = this.partialObserver;
|
|
@@ -777,21 +789,21 @@ var Re = function(n) {
|
|
|
777
789
|
try {
|
|
778
790
|
e.error(r);
|
|
779
791
|
} catch (t) {
|
|
780
|
-
|
|
792
|
+
N(t);
|
|
781
793
|
}
|
|
782
794
|
else
|
|
783
|
-
|
|
795
|
+
N(r);
|
|
784
796
|
}, n.prototype.complete = function() {
|
|
785
797
|
var r = this.partialObserver;
|
|
786
798
|
if (r.complete)
|
|
787
799
|
try {
|
|
788
800
|
r.complete();
|
|
789
801
|
} catch (e) {
|
|
790
|
-
|
|
802
|
+
N(e);
|
|
791
803
|
}
|
|
792
804
|
}, n;
|
|
793
805
|
}(), te = function(n) {
|
|
794
|
-
|
|
806
|
+
B(r, n);
|
|
795
807
|
function r(e, t, i) {
|
|
796
808
|
var o = n.call(this) || this, a;
|
|
797
809
|
return z(e) || !e ? a = {
|
|
@@ -801,8 +813,8 @@ var Re = function(n) {
|
|
|
801
813
|
} : a = e, o.destination = new hr(a), o;
|
|
802
814
|
}
|
|
803
815
|
return r;
|
|
804
|
-
}(
|
|
805
|
-
function
|
|
816
|
+
}(qe);
|
|
817
|
+
function N(n) {
|
|
806
818
|
pr(n);
|
|
807
819
|
}
|
|
808
820
|
function gr(n) {
|
|
@@ -835,7 +847,7 @@ var Te = function() {
|
|
|
835
847
|
return e.source = this, e.operator = r, e;
|
|
836
848
|
}, n.prototype.subscribe = function(r, e, t) {
|
|
837
849
|
var i = this, o = wr(r) ? r : new te(r, e, t);
|
|
838
|
-
return
|
|
850
|
+
return G(function() {
|
|
839
851
|
var a = i, l = a.operator, u = a.source;
|
|
840
852
|
o.add(l ? l.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
841
853
|
}), o;
|
|
@@ -894,14 +906,14 @@ function yr(n) {
|
|
|
894
906
|
return n && z(n.next) && z(n.error) && z(n.complete);
|
|
895
907
|
}
|
|
896
908
|
function wr(n) {
|
|
897
|
-
return n && n instanceof
|
|
909
|
+
return n && n instanceof qe || yr(n) && De(n);
|
|
898
910
|
}
|
|
899
911
|
var Sr = Pe(function(n) {
|
|
900
912
|
return function() {
|
|
901
913
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
902
914
|
};
|
|
903
|
-
}),
|
|
904
|
-
|
|
915
|
+
}), Re = function(n) {
|
|
916
|
+
B(r, n);
|
|
905
917
|
function r() {
|
|
906
918
|
var e = n.call(this) || this;
|
|
907
919
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -914,7 +926,7 @@ var Sr = Pe(function(n) {
|
|
|
914
926
|
throw new Sr();
|
|
915
927
|
}, r.prototype.next = function(e) {
|
|
916
928
|
var t = this;
|
|
917
|
-
|
|
929
|
+
G(function() {
|
|
918
930
|
var i, o;
|
|
919
931
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
920
932
|
t.currentObservers || (t.currentObservers = Array.from(t.observers));
|
|
@@ -936,7 +948,7 @@ var Sr = Pe(function(n) {
|
|
|
936
948
|
});
|
|
937
949
|
}, r.prototype.error = function(e) {
|
|
938
950
|
var t = this;
|
|
939
|
-
|
|
951
|
+
G(function() {
|
|
940
952
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
941
953
|
t.hasError = t.isStopped = !0, t.thrownError = e;
|
|
942
954
|
for (var i = t.observers; i.length; )
|
|
@@ -945,7 +957,7 @@ var Sr = Pe(function(n) {
|
|
|
945
957
|
});
|
|
946
958
|
}, r.prototype.complete = function() {
|
|
947
959
|
var e = this;
|
|
948
|
-
|
|
960
|
+
G(function() {
|
|
949
961
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
950
962
|
e.isStopped = !0;
|
|
951
963
|
for (var t = e.observers; t.length; )
|
|
@@ -967,7 +979,7 @@ var Sr = Pe(function(n) {
|
|
|
967
979
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
968
980
|
}, r.prototype._innerSubscribe = function(e) {
|
|
969
981
|
var t = this, i = this, o = i.hasError, a = i.isStopped, l = i.observers;
|
|
970
|
-
return o || a ?
|
|
982
|
+
return o || a ? Ae : (this.currentObservers = null, l.push(e), new F(function() {
|
|
971
983
|
t.currentObservers = null, ne(l, e);
|
|
972
984
|
}));
|
|
973
985
|
}, r.prototype._checkFinalizedStatuses = function(e) {
|
|
@@ -980,7 +992,7 @@ var Sr = Pe(function(n) {
|
|
|
980
992
|
return new xe(e, t);
|
|
981
993
|
}, r;
|
|
982
994
|
}(Te), xe = function(n) {
|
|
983
|
-
|
|
995
|
+
B(r, n);
|
|
984
996
|
function r(e, t) {
|
|
985
997
|
var i = n.call(this) || this;
|
|
986
998
|
return i.destination = e, i.source = t, i;
|
|
@@ -996,17 +1008,17 @@ var Sr = Pe(function(n) {
|
|
|
996
1008
|
(t = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || t === void 0 || t.call(e);
|
|
997
1009
|
}, r.prototype._subscribe = function(e) {
|
|
998
1010
|
var t, i;
|
|
999
|
-
return (i = (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e)) !== null && i !== void 0 ? i :
|
|
1011
|
+
return (i = (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e)) !== null && i !== void 0 ? i : Ae;
|
|
1000
1012
|
}, r;
|
|
1001
|
-
}(
|
|
1013
|
+
}(Re), We = {
|
|
1002
1014
|
now: function() {
|
|
1003
|
-
return (
|
|
1015
|
+
return (We.delegate || Date).now();
|
|
1004
1016
|
},
|
|
1005
1017
|
delegate: void 0
|
|
1006
1018
|
}, kr = function(n) {
|
|
1007
|
-
|
|
1019
|
+
B(r, n);
|
|
1008
1020
|
function r(e, t, i) {
|
|
1009
|
-
e === void 0 && (e = 1 / 0), t === void 0 && (t = 1 / 0), i === void 0 && (i =
|
|
1021
|
+
e === void 0 && (e = 1 / 0), t === void 0 && (t = 1 / 0), i === void 0 && (i = We);
|
|
1010
1022
|
var o = n.call(this) || this;
|
|
1011
1023
|
return o._bufferSize = e, o._windowTime = t, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = t === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, t), o;
|
|
1012
1024
|
}
|
|
@@ -1026,7 +1038,7 @@ var Sr = Pe(function(n) {
|
|
|
1026
1038
|
h && o.splice(0, h + 1);
|
|
1027
1039
|
}
|
|
1028
1040
|
}, r;
|
|
1029
|
-
}(
|
|
1041
|
+
}(Re);
|
|
1030
1042
|
const _e = [], je = {}, Tr = (n, r = 0) => {
|
|
1031
1043
|
if (_e.indexOf(n) == -1) {
|
|
1032
1044
|
const e = new kr(r);
|
|
@@ -1036,14 +1048,14 @@ const _e = [], je = {}, Tr = (n, r = 0) => {
|
|
|
1036
1048
|
};
|
|
1037
1049
|
window.emWidgets = { topic: Tr };
|
|
1038
1050
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
1039
|
-
var zr =
|
|
1051
|
+
var zr = L('<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>'), xr = L('<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), _r = L('<div class="svelte-1g2duiq"><p class="svelte-1g2duiq"> </p></div>'), jr = L('<div class="main-container svelte-1g2duiq"><!></div>');
|
|
1040
1052
|
const Pr = {
|
|
1041
1053
|
hash: "svelte-1g2duiq",
|
|
1042
1054
|
code: `.svelte-1g2duiq,
|
|
1043
1055
|
.svelte-1g2duiq::before,
|
|
1044
|
-
.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;}.
|
|
1045
|
-
.
|
|
1046
|
-
animation: svelte-1g2duiq-spin-cw 1s linear infinite;}.
|
|
1056
|
+
.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,
|
|
1057
|
+
.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);
|
|
1058
|
+
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));
|
|
1047
1059
|
animation: svelte-1g2duiq-spin-ccw 0.75s linear infinite;}
|
|
1048
1060
|
|
|
1049
1061
|
@keyframes svelte-1g2duiq-spin-cw {
|
|
@@ -1067,29 +1079,29 @@ const Pr = {
|
|
|
1067
1079
|
}
|
|
1068
1080
|
}
|
|
1069
1081
|
|
|
1070
|
-
.
|
|
1082
|
+
.skeleton-row {
|
|
1071
1083
|
pointer-events: none;
|
|
1072
1084
|
}
|
|
1073
1085
|
|
|
1074
|
-
.
|
|
1086
|
+
.skeleton-bone {
|
|
1075
1087
|
display: block;
|
|
1076
1088
|
border-radius: 4px;
|
|
1077
1089
|
background-color: var(--color-overlay-neutral-2, #fbfbfb33);
|
|
1078
1090
|
animation: skeleton-pulse 1.4s ease-in-out infinite;
|
|
1079
1091
|
}
|
|
1080
1092
|
|
|
1081
|
-
.
|
|
1093
|
+
.skeleton-title {
|
|
1082
1094
|
width: 40%;
|
|
1083
1095
|
height: 22px;
|
|
1084
1096
|
margin-bottom: 8px;
|
|
1085
1097
|
}
|
|
1086
1098
|
|
|
1087
|
-
.
|
|
1099
|
+
.skeleton-subtitle {
|
|
1088
1100
|
width: 60%;
|
|
1089
1101
|
height: 14px;
|
|
1090
1102
|
}
|
|
1091
1103
|
|
|
1092
|
-
.
|
|
1104
|
+
.skeleton-card {
|
|
1093
1105
|
display: flex;
|
|
1094
1106
|
flex-direction: column;
|
|
1095
1107
|
height: 115px;
|
|
@@ -1099,13 +1111,13 @@ const Pr = {
|
|
|
1099
1111
|
overflow: hidden;
|
|
1100
1112
|
}
|
|
1101
1113
|
|
|
1102
|
-
.
|
|
1114
|
+
.skeleton-card-image {
|
|
1103
1115
|
width: 100%;
|
|
1104
1116
|
height: 70px;
|
|
1105
1117
|
border-radius: 0;
|
|
1106
1118
|
}
|
|
1107
1119
|
|
|
1108
|
-
.
|
|
1120
|
+
.skeleton-card-body {
|
|
1109
1121
|
display: flex;
|
|
1110
1122
|
justify-content: end;
|
|
1111
1123
|
height: 50px;
|
|
@@ -1113,35 +1125,35 @@ const Pr = {
|
|
|
1113
1125
|
padding: 12px;
|
|
1114
1126
|
}
|
|
1115
1127
|
|
|
1116
|
-
.
|
|
1128
|
+
.skeleton-card-button {
|
|
1117
1129
|
width: 30%;
|
|
1118
1130
|
height: 25px;
|
|
1119
1131
|
}
|
|
1120
1132
|
*/`
|
|
1121
1133
|
};
|
|
1122
|
-
function
|
|
1134
|
+
function Ar(n, r) {
|
|
1123
1135
|
var le, ue;
|
|
1124
1136
|
Qe(r, !0), nr(n, Pr);
|
|
1125
|
-
const e = () => er(rr, "$_", t), [t, i] = Xe(), o = T(r, "endpoint", 7), a = T(r, "session", 7), l = T(r, "requiresOptin", 7, !1), u = T(r, "language", 7, "en"), h = T(r, "outerWheelAsset", 7, null), v = T(r, "wheelButtonAsset", 7, null), j = T(r, "backgroundVideoAsset", 7, null), x = T(r, "liteMode", 7, !1),
|
|
1126
|
-
function
|
|
1137
|
+
const e = () => er(rr, "$_", t), [t, i] = Xe(), o = T(r, "endpoint", 7), a = T(r, "session", 7), l = T(r, "requiresOptin", 7, !1), u = T(r, "language", 7, "en"), h = T(r, "outerWheelAsset", 7, null), v = T(r, "wheelButtonAsset", 7, null), j = T(r, "backgroundVideoAsset", 7, null), x = T(r, "liteMode", 7, !1), S = T(r, "translationurl", 7), H = /iPhone|iPad|iPod/.test(navigator.userAgent), m = (le = navigator.deviceMemory) != null ? le : 1 / 0, Ce = (ue = navigator.hardwareConcurrency) != null ? ue : 1 / 0;
|
|
1138
|
+
function Ee() {
|
|
1127
1139
|
try {
|
|
1128
1140
|
const c = document.createElement("canvas").getContext("webgl");
|
|
1129
1141
|
if (!c) return !1;
|
|
1130
|
-
const
|
|
1131
|
-
if (!
|
|
1132
|
-
const d = c.getParameter(
|
|
1142
|
+
const y = c.getExtension("WEBGL_debug_renderer_info");
|
|
1143
|
+
if (!y) return !1;
|
|
1144
|
+
const d = c.getParameter(y.UNMASKED_RENDERER_WEBGL).toLowerCase();
|
|
1133
1145
|
return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(d);
|
|
1134
1146
|
} catch (s) {
|
|
1135
1147
|
return !1;
|
|
1136
1148
|
}
|
|
1137
1149
|
}
|
|
1138
|
-
const Oe = !
|
|
1150
|
+
const Oe = !H && (m <= 4 || Ce <= 4 || Ee()), ie = fe(() => x() || Oe);
|
|
1139
1151
|
tr({ withLocale: "en", translations: {} });
|
|
1140
|
-
const
|
|
1141
|
-
let s = new URL(
|
|
1152
|
+
const Be = () => {
|
|
1153
|
+
let s = new URL(S());
|
|
1142
1154
|
fetch(s.href).then((c) => c.json()).then((c) => {
|
|
1143
|
-
Object.keys(c).forEach((
|
|
1144
|
-
me(
|
|
1155
|
+
Object.keys(c).forEach((y) => {
|
|
1156
|
+
me(y, c[y]);
|
|
1145
1157
|
});
|
|
1146
1158
|
}).catch((c) => {
|
|
1147
1159
|
console.log(c);
|
|
@@ -1154,42 +1166,42 @@ function Dr(n, r) {
|
|
|
1154
1166
|
ve(u());
|
|
1155
1167
|
};
|
|
1156
1168
|
Je(() => {
|
|
1157
|
-
|
|
1169
|
+
S() && Be();
|
|
1158
1170
|
}), Ye(() => {
|
|
1159
1171
|
Me();
|
|
1160
1172
|
});
|
|
1161
|
-
let _ =
|
|
1162
|
-
const
|
|
1173
|
+
let _ = W(!1), b = W(Ke([])), oe = W(!1), I = W(!1), D = W(null), ae = W(!1);
|
|
1174
|
+
const Ne = () => K(this, null, function* () {
|
|
1163
1175
|
p(_, !0);
|
|
1164
1176
|
const s = new URL(`${o()}/v1/wof/claimable`), c = new Headers();
|
|
1165
1177
|
a() && c.append("X-SessionId", a());
|
|
1166
|
-
const
|
|
1167
|
-
s.searchParams.append("filter", "wheelOfFortune"), fetch(s,
|
|
1168
|
-
var P,
|
|
1178
|
+
const y = { method: "GET", headers: c, cache: "no-store" };
|
|
1179
|
+
s.searchParams.append("filter", "wheelOfFortune"), fetch(s, y).then((d) => d.json()).then((d) => {
|
|
1180
|
+
var P, q, M, f;
|
|
1169
1181
|
if (d && ((P = d.errorMessage) == null ? void 0 : P.trim()) === "InvalidSessionId") {
|
|
1170
1182
|
p(I, !0), p(_, !1);
|
|
1171
1183
|
return;
|
|
1172
1184
|
}
|
|
1173
|
-
if ((M = (
|
|
1174
|
-
p(
|
|
1185
|
+
if ((M = (q = d == null ? void 0 : d.items) == null ? void 0 : q.program) != null && M.canClaim) {
|
|
1186
|
+
p(b, (f = d == null ? void 0 : d.items) == null ? void 0 : f.program, !0), p(_, !1);
|
|
1175
1187
|
return;
|
|
1176
1188
|
}
|
|
1177
|
-
p(
|
|
1189
|
+
p(b, d == null ? void 0 : d.items, !0);
|
|
1178
1190
|
}).catch((d) => {
|
|
1179
1191
|
console.log(d), p(oe, !0);
|
|
1180
1192
|
}).finally(() => p(_, !1));
|
|
1181
|
-
}),
|
|
1193
|
+
}), Ge = () => K(this, null, function* () {
|
|
1182
1194
|
p(_, !0);
|
|
1183
1195
|
const s = new URL(`${o()}/v1/wof/lotteries`), c = new Headers();
|
|
1184
1196
|
a() && c.append("X-SessionId", a());
|
|
1185
|
-
const
|
|
1186
|
-
s.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(s,
|
|
1197
|
+
const y = { method: "GET", headers: c, cache: "no-store" };
|
|
1198
|
+
s.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(s, y).then((d) => d.json()).then((d) => {
|
|
1187
1199
|
var P;
|
|
1188
1200
|
if (d && ((P = d.errorMessage) == null ? void 0 : P.trim()) === "InvalidSessionId") {
|
|
1189
1201
|
p(I, !0), p(_, !1);
|
|
1190
1202
|
return;
|
|
1191
1203
|
}
|
|
1192
|
-
p(
|
|
1204
|
+
p(b, d == null ? void 0 : d.items.map((q) => $e(q, u())), !0), g(b).length === 1 && (p(D, g(b)[0], !0), p(ae, !0)), g(b).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
|
|
1193
1205
|
}).catch((d) => {
|
|
1194
1206
|
console.log(d), p(oe, !0);
|
|
1195
1207
|
}).finally(() => p(_, !1));
|
|
@@ -1197,20 +1209,20 @@ function Dr(n, r) {
|
|
|
1197
1209
|
if (s.data)
|
|
1198
1210
|
switch (s.data.type) {
|
|
1199
1211
|
case "PlayMiniGame":
|
|
1200
|
-
p(
|
|
1212
|
+
p(D, g(b).find((c) => c.id === s.data.programId), !0);
|
|
1201
1213
|
break;
|
|
1202
1214
|
case "CloseMiniGame":
|
|
1203
|
-
p(
|
|
1215
|
+
p(D, null);
|
|
1204
1216
|
break;
|
|
1205
1217
|
case "PrizeGameRemainingTimesUpdated":
|
|
1206
|
-
p(
|
|
1218
|
+
p(D, s.data.data, !0), p(b, g(b).map((c) => c.id === s.data.data.id ? s.data.data : c), !0);
|
|
1207
1219
|
break;
|
|
1208
1220
|
}
|
|
1209
1221
|
};
|
|
1210
|
-
ir(() => (a() && (l() ?
|
|
1222
|
+
ir(() => (a() && (l() ? Ne() : Ge()), window.postMessage({ type: "event_hub_accessed", isLoggedIn: !!a() }, window.location.href), window.addEventListener("message", se), () => {
|
|
1211
1223
|
window.removeEventListener("message", se);
|
|
1212
1224
|
}));
|
|
1213
|
-
var
|
|
1225
|
+
var Le = {
|
|
1214
1226
|
get endpoint() {
|
|
1215
1227
|
return o();
|
|
1216
1228
|
},
|
|
@@ -1260,21 +1272,21 @@ function Dr(n, r) {
|
|
|
1260
1272
|
x(s), k();
|
|
1261
1273
|
},
|
|
1262
1274
|
get translationurl() {
|
|
1263
|
-
return
|
|
1275
|
+
return S();
|
|
1264
1276
|
},
|
|
1265
1277
|
set translationurl(s) {
|
|
1266
|
-
|
|
1278
|
+
S(s), k();
|
|
1267
1279
|
}
|
|
1268
|
-
}, V = jr(),
|
|
1280
|
+
}, V = jr(), Fe = C(V);
|
|
1269
1281
|
{
|
|
1270
|
-
var
|
|
1282
|
+
var He = (s) => {
|
|
1271
1283
|
var c = zr();
|
|
1272
1284
|
O(s, c);
|
|
1273
1285
|
}, Ie = (s) => {
|
|
1274
|
-
var c = ar(),
|
|
1286
|
+
var c = ar(), y = pe(c);
|
|
1275
1287
|
{
|
|
1276
|
-
var d = (
|
|
1277
|
-
ye(
|
|
1288
|
+
var d = (f) => {
|
|
1289
|
+
ye(f, {
|
|
1278
1290
|
get outerWheelAsset() {
|
|
1279
1291
|
return h();
|
|
1280
1292
|
},
|
|
@@ -1288,15 +1300,15 @@ function Dr(n, r) {
|
|
|
1288
1300
|
return u();
|
|
1289
1301
|
},
|
|
1290
1302
|
get liteMode() {
|
|
1291
|
-
return
|
|
1303
|
+
return g(ie);
|
|
1292
1304
|
}
|
|
1293
1305
|
});
|
|
1294
|
-
}, P = (
|
|
1306
|
+
}, P = (f) => {
|
|
1295
1307
|
{
|
|
1296
|
-
let
|
|
1297
|
-
ye(
|
|
1308
|
+
let w = fe(() => !g(ae));
|
|
1309
|
+
ye(f, {
|
|
1298
1310
|
get program() {
|
|
1299
|
-
return
|
|
1311
|
+
return g(D);
|
|
1300
1312
|
},
|
|
1301
1313
|
get endpoint() {
|
|
1302
1314
|
return o();
|
|
@@ -1317,52 +1329,52 @@ function Dr(n, r) {
|
|
|
1317
1329
|
return j();
|
|
1318
1330
|
},
|
|
1319
1331
|
get showBackButton() {
|
|
1320
|
-
return
|
|
1332
|
+
return g(w);
|
|
1321
1333
|
},
|
|
1322
1334
|
get liteMode() {
|
|
1323
|
-
return
|
|
1335
|
+
return g(ie);
|
|
1324
1336
|
}
|
|
1325
1337
|
});
|
|
1326
1338
|
}
|
|
1327
|
-
},
|
|
1328
|
-
var
|
|
1329
|
-
|
|
1330
|
-
var de = he(
|
|
1331
|
-
|
|
1332
|
-
var ce = he(
|
|
1333
|
-
sr(ce, 21, () =>
|
|
1339
|
+
}, q = (f) => {
|
|
1340
|
+
var w = xr(), R = pe(w), E = C(R), U = C(E, !0);
|
|
1341
|
+
A(E);
|
|
1342
|
+
var de = he(E, 2), Ue = C(de, !0);
|
|
1343
|
+
A(de), A(R);
|
|
1344
|
+
var ce = he(R, 2);
|
|
1345
|
+
sr(ce, 21, () => g(b), lr, (J, Y) => {
|
|
1334
1346
|
ur(J, {
|
|
1335
1347
|
get program() {
|
|
1336
|
-
return
|
|
1348
|
+
return g(Y);
|
|
1337
1349
|
}
|
|
1338
1350
|
});
|
|
1339
|
-
}),
|
|
1351
|
+
}), A(ce), ge(
|
|
1340
1352
|
(J, Y) => {
|
|
1341
1353
|
Z(U, J), Z(Ue, Y);
|
|
1342
1354
|
},
|
|
1343
1355
|
[() => e()("hubTitle"), () => e()("hubSubtitle")]
|
|
1344
|
-
), O(
|
|
1345
|
-
}, M = (
|
|
1346
|
-
var
|
|
1347
|
-
|
|
1356
|
+
), O(f, w);
|
|
1357
|
+
}, M = (f) => {
|
|
1358
|
+
var w = _r(), R = C(w), E = C(R, !0);
|
|
1359
|
+
A(R), A(w), ge((U) => Z(E, U), [() => e()("noContent")]), O(f, w);
|
|
1348
1360
|
};
|
|
1349
|
-
be(
|
|
1350
|
-
var
|
|
1351
|
-
!a() ||
|
|
1361
|
+
be(y, (f) => {
|
|
1362
|
+
var w;
|
|
1363
|
+
!a() || g(I) ? f(d) : g(D) ? f(P, 1) : ((w = g(b)) == null ? void 0 : w.length) > 1 ? f(q, 2) : f(M, -1);
|
|
1352
1364
|
});
|
|
1353
1365
|
}
|
|
1354
1366
|
O(s, c);
|
|
1355
1367
|
};
|
|
1356
|
-
be(
|
|
1357
|
-
|
|
1368
|
+
be(Fe, (s) => {
|
|
1369
|
+
g(_) ? s(He) : s(Ie, -1);
|
|
1358
1370
|
});
|
|
1359
1371
|
}
|
|
1360
|
-
|
|
1361
|
-
var Ve = Ze(
|
|
1372
|
+
A(V), O(n, V);
|
|
1373
|
+
var Ve = Ze(Le);
|
|
1362
1374
|
return i(), Ve;
|
|
1363
1375
|
}
|
|
1364
1376
|
customElements.define("mini-games-hub", or(
|
|
1365
|
-
|
|
1377
|
+
Ar,
|
|
1366
1378
|
{
|
|
1367
1379
|
endpoint: { attribute: "endpoint", type: "String" },
|
|
1368
1380
|
session: { attribute: "session", type: "String" },
|
|
@@ -1378,5 +1390,5 @@ customElements.define("mini-games-hub", or(
|
|
|
1378
1390
|
[]
|
|
1379
1391
|
));
|
|
1380
1392
|
export {
|
|
1381
|
-
|
|
1393
|
+
Ar as default
|
|
1382
1394
|
};
|