@everymatrix/mini-games-hub 0.1.14 → 0.1.27
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-BmOaK5EP.js +50 -0
- package/components/GameCard-C4koIRhP.js +50 -0
- package/components/{GameCard-BIn8BJ4U.cjs → GameCard-DA-8ladf.cjs} +2 -2
- package/components/{MiniGamesHub-zNncMSFn.cjs → MiniGamesHub-BM5Vxa9S.cjs} +5 -5
- package/components/{MiniGamesHub-D3n-AyD7.js → MiniGamesHub-C7aQh03q.js} +139 -141
- package/components/{MiniGamesHub-BYJ7lK90.js → MiniGamesHub-Dl3isBzY.js} +149 -151
- package/components/{WheelOfFortune-BjNsD2ND.js → WheelOfFortune-B-Rx_FFX.js} +144 -146
- package/components/{WheelOfFortune--4nTtnMR.cjs → WheelOfFortune-CidB6b1w.cjs} +4 -4
- package/components/{WheelOfFortune-DkVQIxzg.js → WheelOfFortune-DdCajfhn.js} +144 -146
- package/components/WheelOfFortuneDrawResults-C3U-7-aw.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-D54Resid.js +279 -0
- package/components/WheelOfFortuneDrawResults-DZ43Wc7d.js +254 -0
- package/components/WheelOfFortuneHistory-COJdJOvU.js +214 -0
- package/components/WheelOfFortuneHistory-DNb6Y7gj.js +214 -0
- package/components/WheelOfFortuneHistory-tYu_rAD4.cjs +13 -0
- package/components/WheelOfFortuneRules-B1F8hnwG.js +109 -0
- package/components/{WheelOfFortuneRules-VAMAiK0m.cjs → WheelOfFortuneRules-BVcH-eGN.cjs} +2 -2
- package/components/WheelOfFortuneRules-DNJmzmyN.js +120 -0
- package/components/WheelOfFortuneWheel-0b7lq2LJ.cjs +3 -0
- package/components/{WheelOfFortuneWheel-DxFn6jjg.js → WheelOfFortuneWheel-BWPBlDFv.js} +1476 -1111
- package/components/{WheelOfFortuneWheel-BAR98ByP.js → WheelOfFortuneWheel-BuBnw_ev.js} +1412 -1049
- package/components/utils-03vIpDSe.cjs +3 -0
- package/components/{utils-d-JrZBJu.js → utils-C9WIoJIh.js} +2236 -2410
- package/components/utils-I5rI2w_S.js +5867 -0
- 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/GameCard-D3knomma.js +0 -56
- package/components/GameCard-Ds0FcnPp.js +0 -56
- package/components/WheelOfFortuneDrawResults-1lzyxrks.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-DQweghnp.js +0 -301
- package/components/WheelOfFortuneDrawResults-dOeQDVub.js +0 -276
- package/components/WheelOfFortuneHistory-CQZ9QtVt.js +0 -232
- package/components/WheelOfFortuneHistory-DZNPM57t.cjs +0 -13
- package/components/WheelOfFortuneHistory-DygZEtcR.js +0 -232
- package/components/WheelOfFortuneRules-D3N1c8PX.js +0 -117
- package/components/WheelOfFortuneRules-DuiCet95.js +0 -128
- package/components/WheelOfFortuneWheel-hSjxThyU.cjs +0 -3
- package/components/utils-C7uxZXaZ.js +0 -6045
- package/components/utils-DQIHJIDu.cjs +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import { W as ge } from "./WheelOfFortune-
|
|
4
|
-
import { G as
|
|
1
|
+
import { a2 as Ve, bl as Ue, aa as Je, b1 as D, aQ as Ye, a6 as Ke, aU as k, b6 as U, I as h, b9 as C, aJ as p, bm as Ze, b2 as se, bf as J, b5 as le, aq as ue, bb as de, b3 as Xe } from "./utils-C9WIoJIh.js";
|
|
2
|
+
import { c as Qe, a as $e, p as S, x as er, y as ce, z as pe, o as rr, i as he, b as q, f as O, e as nr, k as tr, g as ir, h as or, j as Y, s as ar } from "./WheelOfFortuneWheel-BuBnw_ev.js";
|
|
3
|
+
import { W as ge } from "./WheelOfFortune-B-Rx_FFX.js";
|
|
4
|
+
import { G as sr } from "./GameCard-BmOaK5EP.js";
|
|
5
5
|
const fe = {
|
|
6
6
|
en: {
|
|
7
7
|
noContent: "You don't have any lottery programs available now.",
|
|
@@ -534,23 +534,23 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
534
534
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
535
535
|
PERFORMANCE OF THIS SOFTWARE.
|
|
536
536
|
***************************************************************************** */
|
|
537
|
-
var
|
|
538
|
-
return
|
|
537
|
+
var Z = function(n, r) {
|
|
538
|
+
return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
539
539
|
e.__proto__ = t;
|
|
540
540
|
} || function(e, t) {
|
|
541
541
|
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
542
|
-
},
|
|
542
|
+
}, Z(n, r);
|
|
543
543
|
};
|
|
544
|
-
function
|
|
544
|
+
function R(n, r) {
|
|
545
545
|
if (typeof r != "function" && r !== null)
|
|
546
546
|
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
547
|
-
|
|
547
|
+
Z(n, r);
|
|
548
548
|
function e() {
|
|
549
549
|
this.constructor = n;
|
|
550
550
|
}
|
|
551
551
|
n.prototype = r === null ? Object.create(r) : (e.prototype = r.prototype, new e());
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function X(n) {
|
|
554
554
|
var r = typeof Symbol == "function" && Symbol.iterator, e = r && n[r], t = 0;
|
|
555
555
|
if (e) return e.call(n);
|
|
556
556
|
if (n && typeof n.length == "number") return {
|
|
@@ -560,7 +560,7 @@ function Z(n) {
|
|
|
560
560
|
};
|
|
561
561
|
throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Q(n, r) {
|
|
564
564
|
var e = typeof Symbol == "function" && n[Symbol.iterator];
|
|
565
565
|
if (!e) return n;
|
|
566
566
|
var t = e.call(n), i, o = [], a;
|
|
@@ -577,7 +577,7 @@ function X(n, r) {
|
|
|
577
577
|
}
|
|
578
578
|
return o;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function $(n, r, e) {
|
|
581
581
|
if (arguments.length === 2) for (var t = 0, i = r.length, o; t < i; t++)
|
|
582
582
|
(o || !(t in r)) && (o || (o = Array.prototype.slice.call(r, 0, t)), o[t] = r[t]);
|
|
583
583
|
return n.concat(o || r);
|
|
@@ -591,7 +591,7 @@ function Te(n) {
|
|
|
591
591
|
}, e = n(r);
|
|
592
592
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
593
593
|
}
|
|
594
|
-
var
|
|
594
|
+
var K = Te(function(n) {
|
|
595
595
|
return function(e) {
|
|
596
596
|
n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
597
597
|
` + e.map(function(t, i) {
|
|
@@ -600,13 +600,13 @@ var Y = Te(function(n) {
|
|
|
600
600
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
601
601
|
};
|
|
602
602
|
});
|
|
603
|
-
function
|
|
603
|
+
function ee(n, r) {
|
|
604
604
|
if (n) {
|
|
605
605
|
var e = n.indexOf(r);
|
|
606
606
|
0 <= e && n.splice(e, 1);
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
var
|
|
609
|
+
var B = function() {
|
|
610
610
|
function n(r) {
|
|
611
611
|
this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
612
612
|
}
|
|
@@ -618,7 +618,7 @@ var N = function() {
|
|
|
618
618
|
if (a)
|
|
619
619
|
if (this._parentage = null, Array.isArray(a))
|
|
620
620
|
try {
|
|
621
|
-
for (var l =
|
|
621
|
+
for (var l = X(a), u = l.next(); !u.done; u = l.next()) {
|
|
622
622
|
var f = u.value;
|
|
623
623
|
f.remove(this);
|
|
624
624
|
}
|
|
@@ -638,18 +638,18 @@ var N = function() {
|
|
|
638
638
|
try {
|
|
639
639
|
m();
|
|
640
640
|
} catch (g) {
|
|
641
|
-
o = g instanceof
|
|
641
|
+
o = g instanceof K ? g.errors : [g];
|
|
642
642
|
}
|
|
643
643
|
var j = this._finalizers;
|
|
644
644
|
if (j) {
|
|
645
645
|
this._finalizers = null;
|
|
646
646
|
try {
|
|
647
|
-
for (var z =
|
|
648
|
-
var
|
|
647
|
+
for (var z = X(j), w = z.next(); !w.done; w = z.next()) {
|
|
648
|
+
var N = w.value;
|
|
649
649
|
try {
|
|
650
|
-
me(
|
|
650
|
+
me(N);
|
|
651
651
|
} catch (g) {
|
|
652
|
-
o = o ?? [], g instanceof
|
|
652
|
+
o = o ?? [], g instanceof K ? o = $($([], Q(o)), Q(g.errors)) : o.push(g);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
} catch (g) {
|
|
@@ -663,7 +663,7 @@ var N = function() {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
if (o)
|
|
666
|
-
throw new
|
|
666
|
+
throw new K(o);
|
|
667
667
|
}
|
|
668
668
|
}, n.prototype.add = function(r) {
|
|
669
669
|
var e;
|
|
@@ -686,52 +686,52 @@ var N = function() {
|
|
|
686
686
|
this._parentage = Array.isArray(e) ? (e.push(r), e) : e ? [e, r] : r;
|
|
687
687
|
}, n.prototype._removeParent = function(r) {
|
|
688
688
|
var e = this._parentage;
|
|
689
|
-
e === r ? this._parentage = null : Array.isArray(e) &&
|
|
689
|
+
e === r ? this._parentage = null : Array.isArray(e) && ee(e, r);
|
|
690
690
|
}, n.prototype.remove = function(r) {
|
|
691
691
|
var e = this._finalizers;
|
|
692
|
-
e &&
|
|
692
|
+
e && ee(e, r), r instanceof n && r._removeParent(this);
|
|
693
693
|
}, n.EMPTY = function() {
|
|
694
694
|
var r = new n();
|
|
695
695
|
return r.closed = !0, r;
|
|
696
696
|
}(), n;
|
|
697
|
-
}(), ze =
|
|
697
|
+
}(), ze = B.EMPTY;
|
|
698
698
|
function xe(n) {
|
|
699
|
-
return n instanceof
|
|
699
|
+
return n instanceof B || n && "closed" in n && T(n.remove) && T(n.add) && T(n.unsubscribe);
|
|
700
700
|
}
|
|
701
701
|
function me(n) {
|
|
702
702
|
T(n) ? n() : n.unsubscribe();
|
|
703
703
|
}
|
|
704
|
-
var
|
|
704
|
+
var lr = {
|
|
705
705
|
Promise: void 0
|
|
706
|
-
},
|
|
706
|
+
}, ur = {
|
|
707
707
|
setTimeout: function(n, r) {
|
|
708
708
|
for (var e = [], t = 2; t < arguments.length; t++)
|
|
709
709
|
e[t - 2] = arguments[t];
|
|
710
|
-
return setTimeout.apply(void 0,
|
|
710
|
+
return setTimeout.apply(void 0, $([n, r], Q(e)));
|
|
711
711
|
},
|
|
712
712
|
clearTimeout: function(n) {
|
|
713
713
|
return clearTimeout(n);
|
|
714
714
|
},
|
|
715
715
|
delegate: void 0
|
|
716
716
|
};
|
|
717
|
-
function
|
|
718
|
-
|
|
717
|
+
function dr(n) {
|
|
718
|
+
ur.setTimeout(function() {
|
|
719
719
|
throw n;
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
722
|
function ve() {
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function M(n) {
|
|
725
725
|
n();
|
|
726
726
|
}
|
|
727
727
|
var _e = function(n) {
|
|
728
|
-
|
|
728
|
+
R(r, n);
|
|
729
729
|
function r(e) {
|
|
730
730
|
var t = n.call(this) || this;
|
|
731
|
-
return t.isStopped = !1, e ? (t.destination = e, xe(e) && e.add(t)) : t.destination =
|
|
731
|
+
return t.isStopped = !1, e ? (t.destination = e, xe(e) && e.add(t)) : t.destination = hr, t;
|
|
732
732
|
}
|
|
733
733
|
return r.create = function(e, t, i) {
|
|
734
|
-
return new
|
|
734
|
+
return new re(e, t, i);
|
|
735
735
|
}, r.prototype.next = function(e) {
|
|
736
736
|
this.isStopped || this._next(e);
|
|
737
737
|
}, r.prototype.error = function(e) {
|
|
@@ -755,7 +755,7 @@ var _e = function(n) {
|
|
|
755
755
|
this.unsubscribe();
|
|
756
756
|
}
|
|
757
757
|
}, r;
|
|
758
|
-
}(
|
|
758
|
+
}(B), cr = function() {
|
|
759
759
|
function n(r) {
|
|
760
760
|
this.partialObserver = r;
|
|
761
761
|
}
|
|
@@ -765,7 +765,7 @@ var _e = function(n) {
|
|
|
765
765
|
try {
|
|
766
766
|
e.next(r);
|
|
767
767
|
} catch (t) {
|
|
768
|
-
|
|
768
|
+
E(t);
|
|
769
769
|
}
|
|
770
770
|
}, n.prototype.error = function(r) {
|
|
771
771
|
var e = this.partialObserver;
|
|
@@ -773,50 +773,50 @@ var _e = function(n) {
|
|
|
773
773
|
try {
|
|
774
774
|
e.error(r);
|
|
775
775
|
} catch (t) {
|
|
776
|
-
|
|
776
|
+
E(t);
|
|
777
777
|
}
|
|
778
778
|
else
|
|
779
|
-
|
|
779
|
+
E(r);
|
|
780
780
|
}, n.prototype.complete = function() {
|
|
781
781
|
var r = this.partialObserver;
|
|
782
782
|
if (r.complete)
|
|
783
783
|
try {
|
|
784
784
|
r.complete();
|
|
785
785
|
} catch (e) {
|
|
786
|
-
|
|
786
|
+
E(e);
|
|
787
787
|
}
|
|
788
788
|
}, n;
|
|
789
|
-
}(),
|
|
790
|
-
|
|
789
|
+
}(), re = function(n) {
|
|
790
|
+
R(r, n);
|
|
791
791
|
function r(e, t, i) {
|
|
792
792
|
var o = n.call(this) || this, a;
|
|
793
793
|
return T(e) || !e ? a = {
|
|
794
794
|
next: e ?? void 0,
|
|
795
795
|
error: t ?? void 0,
|
|
796
796
|
complete: i ?? void 0
|
|
797
|
-
} : a = e, o.destination = new
|
|
797
|
+
} : a = e, o.destination = new cr(a), o;
|
|
798
798
|
}
|
|
799
799
|
return r;
|
|
800
800
|
}(_e);
|
|
801
|
-
function
|
|
802
|
-
|
|
801
|
+
function E(n) {
|
|
802
|
+
dr(n);
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function pr(n) {
|
|
805
805
|
throw n;
|
|
806
806
|
}
|
|
807
|
-
var
|
|
807
|
+
var hr = {
|
|
808
808
|
closed: !0,
|
|
809
809
|
next: ve,
|
|
810
|
-
error:
|
|
810
|
+
error: pr,
|
|
811
811
|
complete: ve
|
|
812
|
-
},
|
|
812
|
+
}, gr = function() {
|
|
813
813
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
814
814
|
}();
|
|
815
|
-
function
|
|
815
|
+
function fr(n) {
|
|
816
816
|
return n;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
return n.length === 0 ?
|
|
818
|
+
function mr(n) {
|
|
819
|
+
return n.length === 0 ? fr : n.length === 1 ? n[0] : function(e) {
|
|
820
820
|
return n.reduce(function(t, i) {
|
|
821
821
|
return i(t);
|
|
822
822
|
}, e);
|
|
@@ -830,8 +830,8 @@ var be = function() {
|
|
|
830
830
|
var e = new n();
|
|
831
831
|
return e.source = this, e.operator = r, e;
|
|
832
832
|
}, n.prototype.subscribe = function(r, e, t) {
|
|
833
|
-
var i = this, o =
|
|
834
|
-
return
|
|
833
|
+
var i = this, o = br(r) ? r : new re(r, e, t);
|
|
834
|
+
return M(function() {
|
|
835
835
|
var a = i, l = a.operator, u = a.source;
|
|
836
836
|
o.add(l ? l.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
837
837
|
}), o;
|
|
@@ -844,7 +844,7 @@ var be = function() {
|
|
|
844
844
|
}, n.prototype.forEach = function(r, e) {
|
|
845
845
|
var t = this;
|
|
846
846
|
return e = ye(e), new e(function(i, o) {
|
|
847
|
-
var a = new
|
|
847
|
+
var a = new re({
|
|
848
848
|
next: function(l) {
|
|
849
849
|
try {
|
|
850
850
|
r(l);
|
|
@@ -860,12 +860,12 @@ var be = function() {
|
|
|
860
860
|
}, n.prototype._subscribe = function(r) {
|
|
861
861
|
var e;
|
|
862
862
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(r);
|
|
863
|
-
}, n.prototype[
|
|
863
|
+
}, n.prototype[gr] = function() {
|
|
864
864
|
return this;
|
|
865
865
|
}, n.prototype.pipe = function() {
|
|
866
866
|
for (var r = [], e = 0; e < arguments.length; e++)
|
|
867
867
|
r[e] = arguments[e];
|
|
868
|
-
return
|
|
868
|
+
return mr(r)(this);
|
|
869
869
|
}, n.prototype.toPromise = function(r) {
|
|
870
870
|
var e = this;
|
|
871
871
|
return r = ye(r), new r(function(t, i) {
|
|
@@ -884,20 +884,20 @@ var be = function() {
|
|
|
884
884
|
}();
|
|
885
885
|
function ye(n) {
|
|
886
886
|
var r;
|
|
887
|
-
return (r = n ??
|
|
887
|
+
return (r = n ?? lr.Promise) !== null && r !== void 0 ? r : Promise;
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function vr(n) {
|
|
890
890
|
return n && T(n.next) && T(n.error) && T(n.complete);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
893
|
-
return n && n instanceof _e ||
|
|
892
|
+
function br(n) {
|
|
893
|
+
return n && n instanceof _e || vr(n) && xe(n);
|
|
894
894
|
}
|
|
895
|
-
var
|
|
895
|
+
var yr = Te(function(n) {
|
|
896
896
|
return function() {
|
|
897
897
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
898
898
|
};
|
|
899
899
|
}), je = function(n) {
|
|
900
|
-
|
|
900
|
+
R(r, n);
|
|
901
901
|
function r() {
|
|
902
902
|
var e = n.call(this) || this;
|
|
903
903
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -907,15 +907,15 @@ var br = Te(function(n) {
|
|
|
907
907
|
return t.operator = e, t;
|
|
908
908
|
}, r.prototype._throwIfClosed = function() {
|
|
909
909
|
if (this.closed)
|
|
910
|
-
throw new
|
|
910
|
+
throw new yr();
|
|
911
911
|
}, r.prototype.next = function(e) {
|
|
912
912
|
var t = this;
|
|
913
|
-
|
|
913
|
+
M(function() {
|
|
914
914
|
var i, o;
|
|
915
915
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
916
916
|
t.currentObservers || (t.currentObservers = Array.from(t.observers));
|
|
917
917
|
try {
|
|
918
|
-
for (var a =
|
|
918
|
+
for (var a = X(t.currentObservers), l = a.next(); !l.done; l = a.next()) {
|
|
919
919
|
var u = l.value;
|
|
920
920
|
u.next(e);
|
|
921
921
|
}
|
|
@@ -932,7 +932,7 @@ var br = Te(function(n) {
|
|
|
932
932
|
});
|
|
933
933
|
}, r.prototype.error = function(e) {
|
|
934
934
|
var t = this;
|
|
935
|
-
|
|
935
|
+
M(function() {
|
|
936
936
|
if (t._throwIfClosed(), !t.isStopped) {
|
|
937
937
|
t.hasError = t.isStopped = !0, t.thrownError = e;
|
|
938
938
|
for (var i = t.observers; i.length; )
|
|
@@ -941,7 +941,7 @@ var br = Te(function(n) {
|
|
|
941
941
|
});
|
|
942
942
|
}, r.prototype.complete = function() {
|
|
943
943
|
var e = this;
|
|
944
|
-
|
|
944
|
+
M(function() {
|
|
945
945
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
946
946
|
e.isStopped = !0;
|
|
947
947
|
for (var t = e.observers; t.length; )
|
|
@@ -963,8 +963,8 @@ var br = Te(function(n) {
|
|
|
963
963
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
964
964
|
}, r.prototype._innerSubscribe = function(e) {
|
|
965
965
|
var t = this, i = this, o = i.hasError, a = i.isStopped, l = i.observers;
|
|
966
|
-
return o || a ? ze : (this.currentObservers = null, l.push(e), new
|
|
967
|
-
t.currentObservers = null,
|
|
966
|
+
return o || a ? ze : (this.currentObservers = null, l.push(e), new B(function() {
|
|
967
|
+
t.currentObservers = null, ee(l, e);
|
|
968
968
|
}));
|
|
969
969
|
}, r.prototype._checkFinalizedStatuses = function(e) {
|
|
970
970
|
var t = this, i = t.hasError, o = t.thrownError, a = t.isStopped;
|
|
@@ -976,7 +976,7 @@ var br = Te(function(n) {
|
|
|
976
976
|
return new we(e, t);
|
|
977
977
|
}, r;
|
|
978
978
|
}(be), we = function(n) {
|
|
979
|
-
|
|
979
|
+
R(r, n);
|
|
980
980
|
function r(e, t) {
|
|
981
981
|
var i = n.call(this) || this;
|
|
982
982
|
return i.destination = e, i.source = t, i;
|
|
@@ -999,8 +999,8 @@ var br = Te(function(n) {
|
|
|
999
999
|
return (Pe.delegate || Date).now();
|
|
1000
1000
|
},
|
|
1001
1001
|
delegate: void 0
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1002
|
+
}, wr = function(n) {
|
|
1003
|
+
R(r, n);
|
|
1004
1004
|
function r(e, t, i) {
|
|
1005
1005
|
e === void 0 && (e = 1 / 0), t === void 0 && (t = 1 / 0), i === void 0 && (i = Pe);
|
|
1006
1006
|
var o = n.call(this) || this;
|
|
@@ -1023,17 +1023,17 @@ var br = Te(function(n) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
}, r;
|
|
1025
1025
|
}(je);
|
|
1026
|
-
const
|
|
1027
|
-
if (
|
|
1028
|
-
const e = new
|
|
1029
|
-
|
|
1026
|
+
const ke = [], Se = {}, kr = (n, r = 0) => {
|
|
1027
|
+
if (ke.indexOf(n) == -1) {
|
|
1028
|
+
const e = new wr(r);
|
|
1029
|
+
Se[n] = e, ke.push(n);
|
|
1030
1030
|
}
|
|
1031
|
-
return
|
|
1031
|
+
return Se[n];
|
|
1032
1032
|
};
|
|
1033
|
-
window.emWidgets = { topic:
|
|
1033
|
+
typeof window < "u" && (window.emWidgets = { topic: kr });
|
|
1034
1034
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
1035
|
-
var Sr =
|
|
1036
|
-
const
|
|
1035
|
+
var Sr = O('<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>'), Tr = O('<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), zr = O('<div class="svelte-1g2duiq"><p class="svelte-1g2duiq"> </p></div>'), xr = O('<div class="main-container svelte-1g2duiq"><!></div>');
|
|
1036
|
+
const _r = {
|
|
1037
1037
|
hash: "svelte-1g2duiq",
|
|
1038
1038
|
code: `.svelte-1g2duiq,
|
|
1039
1039
|
.svelte-1g2duiq::before,
|
|
@@ -1115,9 +1115,9 @@ const xr = {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
*/`
|
|
1117
1117
|
};
|
|
1118
|
-
function
|
|
1119
|
-
|
|
1120
|
-
const e = () => Xe
|
|
1118
|
+
function jr(n, r) {
|
|
1119
|
+
Ve(r, !0), $e(n, _r);
|
|
1120
|
+
const e = () => ar(Xe, "$_", t), [t, i] = nr(), o = S(r, "endpoint", 7), a = S(r, "session", 7), l = S(r, "requiresOptin", 7, !1), u = S(r, "language", 7, "en"), f = S(r, "outerWheelAsset", 7, null), m = S(r, "wheelButtonAsset", 7, null), j = S(r, "backgroundVideoAsset", 7, null), z = S(r, "liteMode", 7, !1), w = S(r, "translationurl", 7), N = /iPhone|iPad|iPod/.test(navigator.userAgent), g = navigator.deviceMemory ?? 1 / 0, De = navigator.hardwareConcurrency ?? 1 / 0;
|
|
1121
1121
|
function Ae() {
|
|
1122
1122
|
try {
|
|
1123
1123
|
const d = document.createElement("canvas").getContext("webgl");
|
|
@@ -1130,9 +1130,9 @@ function _r(n, r) {
|
|
|
1130
1130
|
return !1;
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
|
-
const qe = !
|
|
1134
|
-
|
|
1135
|
-
const
|
|
1133
|
+
const qe = !N && (g <= 4 || De <= 4 || Ae()), ne = de(() => z() || qe);
|
|
1134
|
+
er({ withLocale: "en", translations: {} });
|
|
1135
|
+
const Re = () => {
|
|
1136
1136
|
let s = new URL(w());
|
|
1137
1137
|
fetch(s.href).then((d) => d.json()).then((d) => {
|
|
1138
1138
|
Object.keys(d).forEach((y) => {
|
|
@@ -1145,15 +1145,15 @@ function _r(n, r) {
|
|
|
1145
1145
|
Object.keys(fe).forEach((s) => {
|
|
1146
1146
|
ce(s, fe[s]);
|
|
1147
1147
|
}), pe(u());
|
|
1148
|
-
const
|
|
1148
|
+
const We = () => {
|
|
1149
1149
|
pe(u());
|
|
1150
1150
|
};
|
|
1151
|
-
|
|
1152
|
-
w() &&
|
|
1153
|
-
}),
|
|
1154
|
-
|
|
1151
|
+
Ue(() => {
|
|
1152
|
+
w() && Re();
|
|
1153
|
+
}), Je(() => {
|
|
1154
|
+
We();
|
|
1155
1155
|
});
|
|
1156
|
-
let x =
|
|
1156
|
+
let x = D(!1), b = D(Ye([])), te = D(!1), G = D(!1), P = D(null), ie = D(!1);
|
|
1157
1157
|
const Ce = async () => {
|
|
1158
1158
|
p(x, !0);
|
|
1159
1159
|
const s = new URL(`${o()}/v1/wof/claimable`), d = new Headers();
|
|
@@ -1161,7 +1161,7 @@ function _r(n, r) {
|
|
|
1161
1161
|
const y = { method: "GET", headers: d, cache: "no-store" };
|
|
1162
1162
|
s.searchParams.append("filter", "wheelOfFortune"), fetch(s, y).then((c) => c.json()).then((c) => {
|
|
1163
1163
|
if (c && c.errorMessage?.trim() === "InvalidSessionId") {
|
|
1164
|
-
p(
|
|
1164
|
+
p(G, !0), p(x, !1);
|
|
1165
1165
|
return;
|
|
1166
1166
|
}
|
|
1167
1167
|
if (c?.items?.program?.canClaim) {
|
|
@@ -1170,7 +1170,7 @@ function _r(n, r) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
p(b, c?.items, !0);
|
|
1172
1172
|
}).catch((c) => {
|
|
1173
|
-
console.log(c), p(
|
|
1173
|
+
console.log(c), p(te, !0);
|
|
1174
1174
|
}).finally(() => p(x, !1));
|
|
1175
1175
|
}, Ee = async () => {
|
|
1176
1176
|
p(x, !0);
|
|
@@ -1179,95 +1179,95 @@ function _r(n, r) {
|
|
|
1179
1179
|
const y = { method: "GET", headers: d, cache: "no-store" };
|
|
1180
1180
|
s.searchParams.append("filter", "Types[]=wheelOfFortune"), fetch(s, y).then((c) => c.json()).then((c) => {
|
|
1181
1181
|
if (c && c.errorMessage?.trim() === "InvalidSessionId") {
|
|
1182
|
-
p(
|
|
1182
|
+
p(G, !0), p(x, !1);
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
|
-
p(b, c?.items.map((
|
|
1185
|
+
p(b, c?.items.map((F) => Ze(F, u())), !0), h(b).length === 1 && (p(P, h(b)[0], !0), p(ie, !0)), h(b).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
|
|
1186
1186
|
}).catch((c) => {
|
|
1187
|
-
console.log(c), p(
|
|
1187
|
+
console.log(c), p(te, !0);
|
|
1188
1188
|
}).finally(() => p(x, !1));
|
|
1189
|
-
},
|
|
1189
|
+
}, oe = (s) => {
|
|
1190
1190
|
if (s.data)
|
|
1191
1191
|
switch (s.data.type) {
|
|
1192
1192
|
case "PlayMiniGame":
|
|
1193
|
-
p(
|
|
1193
|
+
p(P, h(b).find((d) => d.id === s.data.programId), !0);
|
|
1194
1194
|
break;
|
|
1195
1195
|
case "CloseMiniGame":
|
|
1196
|
-
p(
|
|
1196
|
+
p(P, null);
|
|
1197
1197
|
break;
|
|
1198
1198
|
case "PrizeGameRemainingTimesUpdated":
|
|
1199
|
-
p(
|
|
1199
|
+
p(P, s.data.data, !0), p(b, h(b).map((d) => d.id === s.data.data.id ? s.data.data : d), !0);
|
|
1200
1200
|
break;
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
|
-
|
|
1203
|
+
rr(() => (setTimeout(
|
|
1204
1204
|
() => {
|
|
1205
1205
|
window.postMessage({ type: "event_hub_accessed", isLoggedIn: !!a() }, window.location.href);
|
|
1206
1206
|
},
|
|
1207
1207
|
0
|
|
1208
|
-
), a() && (l() ? Ce() : Ee()), window.addEventListener("message",
|
|
1209
|
-
window.removeEventListener("message",
|
|
1208
|
+
), a() && (l() ? Ce() : Ee()), window.addEventListener("message", oe), () => {
|
|
1209
|
+
window.removeEventListener("message", oe);
|
|
1210
1210
|
}));
|
|
1211
1211
|
var Me = {
|
|
1212
1212
|
get endpoint() {
|
|
1213
1213
|
return o();
|
|
1214
1214
|
},
|
|
1215
1215
|
set endpoint(s) {
|
|
1216
|
-
o(s),
|
|
1216
|
+
o(s), k();
|
|
1217
1217
|
},
|
|
1218
1218
|
get session() {
|
|
1219
1219
|
return a();
|
|
1220
1220
|
},
|
|
1221
1221
|
set session(s) {
|
|
1222
|
-
a(s),
|
|
1222
|
+
a(s), k();
|
|
1223
1223
|
},
|
|
1224
1224
|
get requiresOptin() {
|
|
1225
1225
|
return l();
|
|
1226
1226
|
},
|
|
1227
1227
|
set requiresOptin(s = !1) {
|
|
1228
|
-
l(s),
|
|
1228
|
+
l(s), k();
|
|
1229
1229
|
},
|
|
1230
1230
|
get language() {
|
|
1231
1231
|
return u();
|
|
1232
1232
|
},
|
|
1233
1233
|
set language(s = "en") {
|
|
1234
|
-
u(s),
|
|
1234
|
+
u(s), k();
|
|
1235
1235
|
},
|
|
1236
1236
|
get outerWheelAsset() {
|
|
1237
1237
|
return f();
|
|
1238
1238
|
},
|
|
1239
1239
|
set outerWheelAsset(s = null) {
|
|
1240
|
-
f(s),
|
|
1240
|
+
f(s), k();
|
|
1241
1241
|
},
|
|
1242
1242
|
get wheelButtonAsset() {
|
|
1243
1243
|
return m();
|
|
1244
1244
|
},
|
|
1245
1245
|
set wheelButtonAsset(s = null) {
|
|
1246
|
-
m(s),
|
|
1246
|
+
m(s), k();
|
|
1247
1247
|
},
|
|
1248
1248
|
get backgroundVideoAsset() {
|
|
1249
1249
|
return j();
|
|
1250
1250
|
},
|
|
1251
1251
|
set backgroundVideoAsset(s = null) {
|
|
1252
|
-
j(s),
|
|
1252
|
+
j(s), k();
|
|
1253
1253
|
},
|
|
1254
1254
|
get liteMode() {
|
|
1255
1255
|
return z();
|
|
1256
1256
|
},
|
|
1257
1257
|
set liteMode(s = !1) {
|
|
1258
|
-
z(s),
|
|
1258
|
+
z(s), k();
|
|
1259
1259
|
},
|
|
1260
1260
|
get translationurl() {
|
|
1261
1261
|
return w();
|
|
1262
1262
|
},
|
|
1263
1263
|
set translationurl(s) {
|
|
1264
|
-
w(s),
|
|
1264
|
+
w(s), k();
|
|
1265
1265
|
}
|
|
1266
|
-
},
|
|
1266
|
+
}, L = xr(), Oe = U(L);
|
|
1267
1267
|
{
|
|
1268
1268
|
var Be = (s) => {
|
|
1269
1269
|
var d = Sr();
|
|
1270
|
-
|
|
1270
|
+
q(s, d);
|
|
1271
1271
|
}, Ne = (s) => {
|
|
1272
1272
|
var d = tr(), y = se(d);
|
|
1273
1273
|
{
|
|
@@ -1286,15 +1286,15 @@ function _r(n, r) {
|
|
|
1286
1286
|
return u();
|
|
1287
1287
|
},
|
|
1288
1288
|
get liteMode() {
|
|
1289
|
-
return h(
|
|
1289
|
+
return h(ne);
|
|
1290
1290
|
}
|
|
1291
1291
|
});
|
|
1292
|
-
},
|
|
1292
|
+
}, F = (v) => {
|
|
1293
1293
|
{
|
|
1294
|
-
let _ = de(() => !h(
|
|
1294
|
+
let _ = de(() => !h(ie));
|
|
1295
1295
|
ge(v, {
|
|
1296
1296
|
get program() {
|
|
1297
|
-
return h(
|
|
1297
|
+
return h(P);
|
|
1298
1298
|
},
|
|
1299
1299
|
get endpoint() {
|
|
1300
1300
|
return o();
|
|
@@ -1318,48 +1318,46 @@ function _r(n, r) {
|
|
|
1318
1318
|
return h(_);
|
|
1319
1319
|
},
|
|
1320
1320
|
get liteMode() {
|
|
1321
|
-
return h(
|
|
1321
|
+
return h(ne);
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
1325
1325
|
}, Le = (v) => {
|
|
1326
|
-
var _ =
|
|
1327
|
-
|
|
1328
|
-
var oe = le(R, 2), He = W(oe, !0);
|
|
1329
|
-
P(oe), P(A);
|
|
1326
|
+
var _ = Tr(), A = se(_), W = U(A), H = J(W, !0), He = le(W, 2), Ie = J(He, !0);
|
|
1327
|
+
C(A);
|
|
1330
1328
|
var ae = le(A, 2);
|
|
1331
|
-
ir(ae, 21, () => h(b), or, (
|
|
1332
|
-
|
|
1329
|
+
ir(ae, 21, () => h(b), or, (I, V) => {
|
|
1330
|
+
sr(I, {
|
|
1333
1331
|
get program() {
|
|
1334
|
-
return h(
|
|
1332
|
+
return h(V);
|
|
1335
1333
|
}
|
|
1336
1334
|
});
|
|
1337
|
-
}),
|
|
1338
|
-
(
|
|
1339
|
-
|
|
1335
|
+
}), C(ae), ue(
|
|
1336
|
+
(I, V) => {
|
|
1337
|
+
Y(H, I), Y(Ie, V);
|
|
1340
1338
|
},
|
|
1341
1339
|
[() => e()("hubTitle"), () => e()("hubSubtitle")]
|
|
1342
|
-
),
|
|
1340
|
+
), q(v, _);
|
|
1343
1341
|
}, Fe = (v) => {
|
|
1344
|
-
var _ =
|
|
1345
|
-
|
|
1342
|
+
var _ = zr(), A = U(_), W = J(A, !0);
|
|
1343
|
+
C(_), ue((H) => Y(W, H), [() => e()("noContent")]), q(v, _);
|
|
1346
1344
|
};
|
|
1347
1345
|
he(y, (v) => {
|
|
1348
|
-
!a() || h(
|
|
1346
|
+
!a() || h(G) ? v(c) : h(P) ? v(F, 1) : h(b)?.length > 1 ? v(Le, 2) : v(Fe, -1);
|
|
1349
1347
|
});
|
|
1350
1348
|
}
|
|
1351
|
-
|
|
1349
|
+
q(s, d);
|
|
1352
1350
|
};
|
|
1353
1351
|
he(Oe, (s) => {
|
|
1354
1352
|
h(x) ? s(Be) : s(Ne, -1);
|
|
1355
1353
|
});
|
|
1356
1354
|
}
|
|
1357
|
-
|
|
1358
|
-
var Ge =
|
|
1355
|
+
C(L), q(n, L);
|
|
1356
|
+
var Ge = Ke(Me);
|
|
1359
1357
|
return i(), Ge;
|
|
1360
1358
|
}
|
|
1361
|
-
customElements.define("mini-games-hub",
|
|
1362
|
-
|
|
1359
|
+
customElements.define("mini-games-hub", Qe(
|
|
1360
|
+
jr,
|
|
1363
1361
|
{
|
|
1364
1362
|
endpoint: { attribute: "endpoint", type: "String" },
|
|
1365
1363
|
session: { attribute: "session", type: "String" },
|
|
@@ -1375,5 +1373,5 @@ customElements.define("mini-games-hub", $e(
|
|
|
1375
1373
|
[]
|
|
1376
1374
|
));
|
|
1377
1375
|
export {
|
|
1378
|
-
|
|
1376
|
+
jr as M
|
|
1379
1377
|
};
|