@everymatrix/mini-games-hub 0.2.6 → 0.2.8
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/CoinFlip-BOrc1Sgy.cjs +1 -0
- package/components/CoinFlip-DgM6tDy5.js +390 -0
- package/components/CoinFlip-DiCOvx3Q.cjs +1 -0
- package/components/CoinFlip-uc2aguuz.js +355 -0
- package/components/CoinRoyale-BH73ZSrU.cjs +734 -0
- package/components/CoinRoyale-Bkr3Rd-u.cjs +734 -0
- package/components/CoinRoyale-DLL1bCAy.js +1032 -0
- package/components/CoinRoyale-fp-xfwl2.js +994 -0
- package/components/{GameCard-C-zSlvo1.cjs → GameCard-BiO9Cay-.cjs} +2 -2
- package/components/{GameCard-BQ6hFy67.js → GameCard-D78hDMaL.js} +24 -21
- package/components/{GameCard-vgoswSWl.cjs → GameCard-Qh_fk15-.cjs} +2 -2
- package/components/{GameCard-B3YKo9k6.js → GameCard-jCZ6S2Wu.js} +23 -23
- package/components/MiniGamesHub-5tuj6CDm.cjs +16 -0
- package/components/{MiniGamesHub-C0q9vZFD.js → MiniGamesHub-Bf2Cd1bB.js} +269 -202
- package/components/{MiniGamesHub-D5Y5OYt-.js → MiniGamesHub-KqAdBJEX.js} +231 -167
- package/components/MiniGamesHub-SxucWl3S.cjs +16 -0
- package/components/{WheelOfFortune-DC57_QGF.js → WheelOfFortune-8HCl7aHv.js} +186 -175
- package/components/{WheelOfFortune-u6v6YLc5.js → WheelOfFortune-CBYo6vCg.js} +146 -138
- package/components/{WheelOfFortune-2WKhJAdZ.cjs → WheelOfFortune-CDTzbAjp.cjs} +2 -2
- package/components/{WheelOfFortune-BJ9iMr53.cjs → WheelOfFortune-XfmUFV3-.cjs} +2 -2
- package/components/{WheelOfFortuneDrawResults-BKkTmsVC.cjs → WheelOfFortuneDrawResults-CASEqNiM.cjs} +1 -1
- package/components/{WheelOfFortuneDrawResults-D3rgrYi_.js → WheelOfFortuneDrawResults-DqgsImHB.js} +3 -3
- package/components/{WheelOfFortuneDrawResults-gx2xkUtF.js → WheelOfFortuneDrawResults-DsfJ3803.js} +3 -3
- package/components/{WheelOfFortuneDrawResults-DTufAeXD.cjs → WheelOfFortuneDrawResults-l8iWZa_e.cjs} +1 -1
- package/components/WheelOfFortuneHistory-CF8B0i5m.js +213 -0
- package/components/WheelOfFortuneHistory-Cnk8otCw.js +213 -0
- package/components/WheelOfFortuneHistory-DARohsMs.cjs +12 -0
- package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +12 -0
- package/components/{WheelOfFortuneRules-DkQOlpqR.js → WheelOfFortuneRules-BZqR4cT9.js} +27 -27
- package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +3 -0
- package/components/{WheelOfFortuneRules-BM75DT61.js → WheelOfFortuneRules-CRGG3J0S.js} +23 -23
- package/components/WheelOfFortuneRules-DLj96pqu.cjs +3 -0
- package/components/{WheelOfFortuneWheel-DmTRvIN6.js → WheelOfFortuneWheel-CiyQZNAd.js} +673 -664
- package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +3 -0
- package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +3 -0
- package/components/{WheelOfFortuneWheel-D_tfW-rK.js → WheelOfFortuneWheel-F62aU_CL.js} +186 -178
- package/components/bg-scene-Bz42V1FW.cjs +1 -0
- package/components/bg-scene-DpHgKCHj.js +4 -0
- package/components/coin-heads-BuJOLpyg.cjs +1 -0
- package/components/coin-heads-loqcEtH2.js +4 -0
- package/components/coin-tails-20vJmhwv.cjs +1 -0
- package/components/coin-tails-BTbsTwkz.js +4 -0
- package/components/{constants-BYsDpbRv.js → constants-BDSd8ptj.js} +25 -15
- package/components/constants-CoPH35Re.cjs +1 -0
- package/components/{sparkles-BnriHiyw.cjs → sparkles-9YGw1xiU.cjs} +1 -1
- package/components/{sparkles-DplvhrIm.cjs → sparkles-B3XdFovy.cjs} +1 -1
- package/components/{sparkles-CSfeD2Zu.js → sparkles-BWGIWWDc.js} +1 -1
- package/components/{sparkles-CTrQ372y.js → sparkles-uxV1OTbN.js} +1 -1
- package/components/{spin-controller-CIshWmlA.cjs → spin-controller-BXcblJt7.cjs} +1 -1
- package/components/{spin-controller-HS3m99tB.cjs → spin-controller-BzO5YNSN.cjs} +1 -1
- package/components/{spin-controller-BuBkKrNR.js → spin-controller-CZWa2gmm.js} +2 -2
- package/components/{spin-controller-REPdRwaB.js → spin-controller-D3hdDnQ0.js} +2 -2
- package/components/{utils-B86dsoC-.js → utils-3LNftCeZ.js} +976 -958
- package/components/utils-BxNmJ6YA.cjs +3 -0
- package/components/{utils-BtFS7k_l.js → utils-DGrEJJ_K.js} +1063 -1045
- package/components/utils-DyVEmMSf.cjs +3 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.cjs +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/MiniGamesHub-CfiDjCz7.cjs +0 -16
- package/components/MiniGamesHub-DYwmUNTy.cjs +0 -16
- package/components/WheelOfFortuneHistory-B-Yadw5p.js +0 -213
- package/components/WheelOfFortuneHistory-DdXxYW6M.cjs +0 -12
- package/components/WheelOfFortuneHistory-DhFZUmGd.cjs +0 -12
- package/components/WheelOfFortuneHistory-IM5H-der.js +0 -213
- package/components/WheelOfFortuneRules-D-xnWFIU.cjs +0 -3
- package/components/WheelOfFortuneRules-_a2c-LEy.cjs +0 -3
- package/components/WheelOfFortuneWheel-CUs0nOjA.cjs +0 -3
- package/components/WheelOfFortuneWheel-D9nXwM0H.cjs +0 -3
- package/components/constants-DM6Vdc6Z.cjs +0 -1
- package/components/utils-By_D2O28.cjs +0 -3
- package/components/utils-CSIl6eA7.cjs +0 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { c as te, a as
|
|
2
|
-
import { a5 as ie,
|
|
3
|
-
import { W as ne } from "./WheelOfFortune-
|
|
4
|
-
import {
|
|
1
|
+
import { c as te, a as Pe, p as o, y as Re, z as Y, A as Z, o as We, i as X, b as D, f as N, e as Me, l as Fe, h as Be, j as Ne, k as E, s as Ge } from "./WheelOfFortuneWheel-F62aU_CL.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-CBYo6vCg.js";
|
|
4
|
+
import { C as Oe } from "./CoinRoyale-fp-xfwl2.js";
|
|
5
|
+
import { G as Ee } from "./GameCard-jCZ6S2Wu.js";
|
|
5
6
|
const re = {
|
|
6
7
|
en: {
|
|
7
8
|
noContent: "You don't have any lottery programs available now.",
|
|
@@ -87,7 +88,12 @@ 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
|
+
dragToFlip: "Drag to flip",
|
|
96
|
+
gameCardCoinFlips: "Coin <br/> Flips"
|
|
91
97
|
},
|
|
92
98
|
da: {
|
|
93
99
|
noContent: "Du har ingen lotteriprogrammer tilgængelige lige nu.",
|
|
@@ -173,7 +179,12 @@ const re = {
|
|
|
173
179
|
single: "{count, plural, one {# Spin} other {# Spins}} den {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} i hver måned - {range}",
|
|
174
180
|
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
181
|
}
|
|
176
|
-
}
|
|
182
|
+
},
|
|
183
|
+
coinTitle: "Coin Royale",
|
|
184
|
+
remainingFlips: "Resterende Flips :",
|
|
185
|
+
flipCoin: "Slå Mønt",
|
|
186
|
+
dragToFlip: "Træk for at slå",
|
|
187
|
+
gameCardCoinFlips: "Mønt <br/> Flips"
|
|
177
188
|
},
|
|
178
189
|
de: {
|
|
179
190
|
noContent: "Du hast derzeit keine verfügbaren Lotterieprogramme.",
|
|
@@ -259,7 +270,12 @@ const re = {
|
|
|
259
270
|
single: "{count, plural, one {# Drehung} other {# Drehungen}} am {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} jeden Monat - {range}",
|
|
260
271
|
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
272
|
}
|
|
262
|
-
}
|
|
273
|
+
},
|
|
274
|
+
coinTitle: "Coin Royale",
|
|
275
|
+
remainingFlips: "Verbleibende Würfe :",
|
|
276
|
+
flipCoin: "Münze werfen",
|
|
277
|
+
dragToFlip: "Zum Werfen ziehen",
|
|
278
|
+
gameCardCoinFlips: "Münz- <br/> würfe"
|
|
263
279
|
},
|
|
264
280
|
nl: {
|
|
265
281
|
noContent: "Je hebt op dit moment geen loterijprogramma's beschikbaar.",
|
|
@@ -345,7 +361,12 @@ const re = {
|
|
|
345
361
|
single: "{count, plural, one {# Spin} other {# Spins}} elke {day, selectordinal, one {#e} two {#e} few {#e} other {#e}} van de maand - {range}",
|
|
346
362
|
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
363
|
}
|
|
348
|
-
}
|
|
364
|
+
},
|
|
365
|
+
coinTitle: "Coin Royale",
|
|
366
|
+
remainingFlips: "Resterende Flips :",
|
|
367
|
+
flipCoin: "Gooi Munt",
|
|
368
|
+
dragToFlip: "Sleep om te gooien",
|
|
369
|
+
gameCardCoinFlips: "Munt <br/> Flips"
|
|
349
370
|
},
|
|
350
371
|
fr: {
|
|
351
372
|
noContent: "Vous n'avez actuellement aucun programme de loterie disponible.",
|
|
@@ -431,7 +452,12 @@ const re = {
|
|
|
431
452
|
single: "{count, plural, one {# Tour} other {# Tours}} le {day, selectordinal, one {#er} two {#} few {#} other {#}} de chaque mois - {range}",
|
|
432
453
|
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
454
|
}
|
|
434
|
-
}
|
|
455
|
+
},
|
|
456
|
+
coinTitle: "Coin Royale",
|
|
457
|
+
remainingFlips: "Lancers restants :",
|
|
458
|
+
flipCoin: "Lancer la pièce",
|
|
459
|
+
dragToFlip: "Glissez pour lancer",
|
|
460
|
+
gameCardCoinFlips: "Lancers <br/> de pièce"
|
|
435
461
|
},
|
|
436
462
|
tr: {
|
|
437
463
|
noContent: "Şu anda kullanılabilir bir çekiliş programınız yok.",
|
|
@@ -517,15 +543,20 @@ const re = {
|
|
|
517
543
|
single: "{count, plural, one {# Çevirme} other {# Çevirme}} her ayın {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} günü - {range}",
|
|
518
544
|
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
545
|
}
|
|
520
|
-
}
|
|
546
|
+
},
|
|
547
|
+
coinTitle: "Coin Royale",
|
|
548
|
+
remainingFlips: "Kalan Atışlar :",
|
|
549
|
+
flipCoin: "Parayı At",
|
|
550
|
+
dragToFlip: "Atmak için sürükleyin",
|
|
551
|
+
gameCardCoinFlips: "Para <br/> Atışı"
|
|
521
552
|
}
|
|
522
553
|
};
|
|
523
|
-
var
|
|
524
|
-
const
|
|
554
|
+
var Ie = N('<div class="loader-container"><div class="loader"><div class="loader-ring-outer"></div> <div class="loader-ring-inner"></div></div></div>'), Je = N('<div class="prize-hub-container"><h3> </h3> <p> </p></div> <div class="mini-games-card-list"></div>', 1), Ke = N("<div><p> </p></div>"), Ue = N('<div class="main-container"><!></div>');
|
|
555
|
+
const Ye = {
|
|
525
556
|
hash: "svelte-pzanec",
|
|
526
557
|
code: ` *,
|
|
527
558
|
*::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;
|
|
559
|
+
*::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;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
560
|
.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
561
|
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));
|
|
531
562
|
animation: svelte-pzanec-spin-ccw 0.75s linear infinite;}
|
|
@@ -540,100 +571,109 @@ const Oe = {
|
|
|
540
571
|
}
|
|
541
572
|
}`
|
|
542
573
|
};
|
|
543
|
-
function oe(
|
|
544
|
-
ie(
|
|
545
|
-
const v = () =>
|
|
574
|
+
function oe(j, t) {
|
|
575
|
+
ie(t, !0), Pe(j, Ye);
|
|
576
|
+
const v = () => Ge(Ve, "$_", S), [S, A] = Me(), h = o(t, "endpoint", 7), l = o(t, "session", 7), w = o(t, "requiresOptin", 7, !1), c = o(t, "language", 7, "en"), y = o(t, "outerWheelAsset", 7, null), b = o(t, "wheelButtonAsset", 7, null), z = o(t, "backgroundVideoAsset", 7, null), i = o(t, "liteMode", 7, !1), x = 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
577
|
function de() {
|
|
547
578
|
try {
|
|
548
579
|
const n = document.createElement("canvas").getContext("webgl");
|
|
549
580
|
if (!n) return !1;
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
552
|
-
const
|
|
553
|
-
return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(
|
|
581
|
+
const g = n.getExtension("WEBGL_debug_renderer_info");
|
|
582
|
+
if (!g) return !1;
|
|
583
|
+
const u = n.getParameter(g.UNMASKED_RENDERER_WEBGL).toLowerCase();
|
|
584
|
+
return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(u);
|
|
554
585
|
} catch {
|
|
555
586
|
return !1;
|
|
556
587
|
}
|
|
557
588
|
}
|
|
558
|
-
const pe = !
|
|
559
|
-
|
|
589
|
+
const pe = !M() && !se && (le <= 4 || ue <= 4 || de()), G = B(() => i() || pe);
|
|
590
|
+
Re({ withLocale: "en", translations: {} });
|
|
560
591
|
const ge = () => {
|
|
561
|
-
let e = new URL(
|
|
592
|
+
let e = new URL(x());
|
|
562
593
|
fetch(e.href).then((n) => n.json()).then((n) => {
|
|
563
|
-
Object.keys(n).forEach((
|
|
564
|
-
|
|
594
|
+
Object.keys(n).forEach((g) => {
|
|
595
|
+
Y(g, n[g]);
|
|
565
596
|
});
|
|
566
597
|
}).catch((n) => {
|
|
567
598
|
console.log(n);
|
|
568
599
|
});
|
|
569
600
|
};
|
|
570
601
|
Object.keys(re).forEach((e) => {
|
|
571
|
-
|
|
572
|
-
}),
|
|
602
|
+
Y(e, re[e]);
|
|
603
|
+
}), Z(c());
|
|
573
604
|
const ce = () => {
|
|
574
|
-
|
|
605
|
+
Z(c());
|
|
575
606
|
};
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}),
|
|
607
|
+
Le(() => {
|
|
608
|
+
x() && ge();
|
|
609
|
+
}), qe(() => {
|
|
579
610
|
ce();
|
|
580
611
|
});
|
|
581
|
-
let
|
|
612
|
+
let k = T(!1), p = T(He([])), L = T(!1), P = T(!1), f = T(null), q = T(!1);
|
|
582
613
|
const he = async () => {
|
|
583
|
-
a(
|
|
614
|
+
a(k, !0);
|
|
584
615
|
const e = new URL(`${h()}/v1/wof/claimable`), n = new Headers();
|
|
585
|
-
|
|
586
|
-
const
|
|
587
|
-
e.searchParams.append("filter", "wheelOfFortune"), fetch(e,
|
|
588
|
-
if (
|
|
589
|
-
a(
|
|
616
|
+
l() && n.append("X-SessionId", l());
|
|
617
|
+
const g = { method: "GET", headers: n, cache: "no-store" };
|
|
618
|
+
e.searchParams.append("filter", "wheelOfFortune"), fetch(e, g).then((u) => u.json()).then((u) => {
|
|
619
|
+
if (u && u.errorMessage?.trim() === "InvalidSessionId") {
|
|
620
|
+
a(P, !0), a(k, !1);
|
|
590
621
|
return;
|
|
591
622
|
}
|
|
592
|
-
if (
|
|
593
|
-
a(
|
|
623
|
+
if (u?.items?.program?.canClaim) {
|
|
624
|
+
a(p, u?.items?.program, !0), a(k, !1);
|
|
594
625
|
return;
|
|
595
626
|
}
|
|
596
|
-
a(
|
|
597
|
-
}).catch((
|
|
598
|
-
console.log(
|
|
599
|
-
}).finally(() =>
|
|
600
|
-
|
|
601
|
-
|
|
627
|
+
a(p, u?.items, !0);
|
|
628
|
+
}).catch((u) => {
|
|
629
|
+
console.log(u), a(L, !0);
|
|
630
|
+
}).finally(() => {
|
|
631
|
+
a(k, !1), R();
|
|
632
|
+
});
|
|
633
|
+
}, me = ["wheelOfFortune", "flipCoin"].map((e) => `Types[]=${e}`).join(","), fe = async () => {
|
|
634
|
+
a(k, !0);
|
|
602
635
|
const e = new URL(`${h()}/v1/wof/lotteries`), n = new Headers();
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
if (
|
|
607
|
-
a(
|
|
636
|
+
l() && n.append("X-SessionId", l()), e.searchParams.append("filter", me);
|
|
637
|
+
try {
|
|
638
|
+
const g = await (await fetch(e, { method: "GET", headers: n, cache: "no-store" })).json();
|
|
639
|
+
if (g?.errorMessage?.trim() === "InvalidSessionId") {
|
|
640
|
+
a(P, !0);
|
|
608
641
|
return;
|
|
609
642
|
}
|
|
610
|
-
a(
|
|
611
|
-
}
|
|
612
|
-
console.log(
|
|
613
|
-
}
|
|
614
|
-
|
|
643
|
+
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);
|
|
644
|
+
} catch (g) {
|
|
645
|
+
console.log(g), a(L, !0);
|
|
646
|
+
} finally {
|
|
647
|
+
a(k, !1), R();
|
|
648
|
+
}
|
|
649
|
+
}, ye = (e) => e?.type?.toLowerCase() === "flipcoin", R = () => {
|
|
650
|
+
const e = Array.isArray(r(p)) ? r(p).length : r(p) ? 1 : 0, n = !!l() && !r(P);
|
|
651
|
+
window.postMessage(
|
|
652
|
+
{
|
|
653
|
+
type: "event_hub_accessed",
|
|
654
|
+
isLoggedIn: n,
|
|
655
|
+
hasMiniGames: n && !r(L) ? e > 0 : null
|
|
656
|
+
},
|
|
657
|
+
window.location.href
|
|
658
|
+
);
|
|
659
|
+
}, K = (e) => {
|
|
615
660
|
if (e.data)
|
|
616
661
|
switch (e.data.type) {
|
|
617
662
|
case "PlayMiniGame":
|
|
618
|
-
a(
|
|
663
|
+
a(f, r(p).find((n) => n.id === e.data.programId), !0);
|
|
619
664
|
break;
|
|
620
665
|
case "CloseMiniGame":
|
|
621
|
-
a(
|
|
666
|
+
a(f, null), R();
|
|
622
667
|
break;
|
|
623
668
|
case "PrizeGameRemainingTimesUpdated":
|
|
624
|
-
a(
|
|
669
|
+
a(f, e.data.data, !0), a(p, r(p).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
|
|
625
670
|
break;
|
|
626
671
|
}
|
|
627
672
|
};
|
|
628
|
-
|
|
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);
|
|
673
|
+
We(() => (l() || setTimeout(R, 0), l() && (w() ? he() : fe()), window.addEventListener("message", K), () => {
|
|
674
|
+
window.removeEventListener("message", K);
|
|
635
675
|
}));
|
|
636
|
-
var
|
|
676
|
+
var be = {
|
|
637
677
|
get endpoint() {
|
|
638
678
|
return h();
|
|
639
679
|
},
|
|
@@ -641,145 +681,169 @@ function oe(x, r) {
|
|
|
641
681
|
h(e), s();
|
|
642
682
|
},
|
|
643
683
|
get session() {
|
|
644
|
-
return
|
|
684
|
+
return l();
|
|
645
685
|
},
|
|
646
686
|
set session(e) {
|
|
647
|
-
|
|
687
|
+
l(e), s();
|
|
648
688
|
},
|
|
649
689
|
get requiresOptin() {
|
|
650
|
-
return
|
|
690
|
+
return w();
|
|
651
691
|
},
|
|
652
692
|
set requiresOptin(e = !1) {
|
|
653
|
-
|
|
693
|
+
w(e), s();
|
|
654
694
|
},
|
|
655
695
|
get language() {
|
|
656
|
-
return
|
|
696
|
+
return c();
|
|
657
697
|
},
|
|
658
698
|
set language(e = "en") {
|
|
659
|
-
|
|
699
|
+
c(e), s();
|
|
660
700
|
},
|
|
661
701
|
get outerWheelAsset() {
|
|
662
|
-
return
|
|
702
|
+
return y();
|
|
663
703
|
},
|
|
664
704
|
set outerWheelAsset(e = null) {
|
|
665
|
-
|
|
705
|
+
y(e), s();
|
|
666
706
|
},
|
|
667
707
|
get wheelButtonAsset() {
|
|
668
|
-
return
|
|
708
|
+
return b();
|
|
669
709
|
},
|
|
670
710
|
set wheelButtonAsset(e = null) {
|
|
671
|
-
|
|
711
|
+
b(e), s();
|
|
672
712
|
},
|
|
673
713
|
get backgroundVideoAsset() {
|
|
674
|
-
return
|
|
714
|
+
return z();
|
|
675
715
|
},
|
|
676
716
|
set backgroundVideoAsset(e = null) {
|
|
677
|
-
|
|
717
|
+
z(e), s();
|
|
678
718
|
},
|
|
679
719
|
get liteMode() {
|
|
680
|
-
return
|
|
720
|
+
return i();
|
|
681
721
|
},
|
|
682
722
|
set liteMode(e = !1) {
|
|
683
|
-
|
|
723
|
+
i(e), s();
|
|
684
724
|
},
|
|
685
725
|
get translationurl() {
|
|
686
|
-
return
|
|
726
|
+
return x();
|
|
687
727
|
},
|
|
688
728
|
set translationurl(e) {
|
|
689
|
-
|
|
729
|
+
x(e), s();
|
|
690
730
|
}
|
|
691
|
-
},
|
|
731
|
+
}, H = Ue(), ve = I(H);
|
|
692
732
|
{
|
|
693
|
-
var
|
|
694
|
-
var n =
|
|
695
|
-
|
|
696
|
-
},
|
|
697
|
-
var n =
|
|
733
|
+
var we = (e) => {
|
|
734
|
+
var n = Ie();
|
|
735
|
+
D(e, n);
|
|
736
|
+
}, ke = (e) => {
|
|
737
|
+
var n = Fe(), g = Q(n);
|
|
698
738
|
{
|
|
699
|
-
var
|
|
739
|
+
var u = (d) => {
|
|
700
740
|
ne(d, {
|
|
701
741
|
get outerWheelAsset() {
|
|
702
|
-
return
|
|
742
|
+
return y();
|
|
703
743
|
},
|
|
704
744
|
get wheelButtonAsset() {
|
|
705
|
-
return
|
|
745
|
+
return b();
|
|
706
746
|
},
|
|
707
747
|
get backgroundVideoAsset() {
|
|
708
|
-
return
|
|
748
|
+
return z();
|
|
709
749
|
},
|
|
710
750
|
get language() {
|
|
711
|
-
return
|
|
751
|
+
return c();
|
|
712
752
|
},
|
|
713
753
|
get liteMode() {
|
|
714
|
-
return
|
|
754
|
+
return r(G);
|
|
715
755
|
}
|
|
716
756
|
});
|
|
717
|
-
},
|
|
757
|
+
}, Te = (d) => {
|
|
758
|
+
{
|
|
759
|
+
let m = B(() => !r(q));
|
|
760
|
+
Oe(d, {
|
|
761
|
+
get program() {
|
|
762
|
+
return r(f);
|
|
763
|
+
},
|
|
764
|
+
get endpoint() {
|
|
765
|
+
return h();
|
|
766
|
+
},
|
|
767
|
+
get language() {
|
|
768
|
+
return c();
|
|
769
|
+
},
|
|
770
|
+
get session() {
|
|
771
|
+
return l();
|
|
772
|
+
},
|
|
773
|
+
get showBackButton() {
|
|
774
|
+
return r(m);
|
|
775
|
+
},
|
|
776
|
+
get liteMode() {
|
|
777
|
+
return r(G);
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
}, Se = B(() => r(f) && ye(r(f))), Ae = (d) => {
|
|
718
782
|
{
|
|
719
|
-
let
|
|
783
|
+
let m = B(() => !r(q));
|
|
720
784
|
ne(d, {
|
|
721
785
|
get program() {
|
|
722
|
-
return
|
|
786
|
+
return r(f);
|
|
723
787
|
},
|
|
724
788
|
get endpoint() {
|
|
725
789
|
return h();
|
|
726
790
|
},
|
|
727
791
|
get language() {
|
|
728
|
-
return
|
|
792
|
+
return c();
|
|
729
793
|
},
|
|
730
794
|
get session() {
|
|
731
|
-
return
|
|
795
|
+
return l();
|
|
732
796
|
},
|
|
733
797
|
get outerWheelAsset() {
|
|
734
|
-
return
|
|
798
|
+
return y();
|
|
735
799
|
},
|
|
736
800
|
get wheelButtonAsset() {
|
|
737
|
-
return
|
|
801
|
+
return b();
|
|
738
802
|
},
|
|
739
803
|
get backgroundVideoAsset() {
|
|
740
|
-
return
|
|
804
|
+
return z();
|
|
741
805
|
},
|
|
742
806
|
get showBackButton() {
|
|
743
|
-
return
|
|
807
|
+
return r(m);
|
|
744
808
|
},
|
|
745
809
|
get liteMode() {
|
|
746
|
-
return
|
|
810
|
+
return r(G);
|
|
747
811
|
}
|
|
748
812
|
});
|
|
749
813
|
}
|
|
750
|
-
},
|
|
751
|
-
var
|
|
752
|
-
C
|
|
753
|
-
var U =
|
|
754
|
-
|
|
755
|
-
|
|
814
|
+
}, Ce = (d) => {
|
|
815
|
+
var m = Je(), C = Q(m), W = I(C), _ = J(W, !0), je = $(W, 2), xe = J(je, !0);
|
|
816
|
+
F(C);
|
|
817
|
+
var U = $(C, 2);
|
|
818
|
+
Be(U, 21, () => r(p), Ne, (V, O) => {
|
|
819
|
+
Ee(V, {
|
|
756
820
|
get program() {
|
|
757
|
-
return
|
|
821
|
+
return r(O);
|
|
758
822
|
}
|
|
759
823
|
});
|
|
760
|
-
}),
|
|
761
|
-
(
|
|
762
|
-
_
|
|
824
|
+
}), F(U), ee(
|
|
825
|
+
(V, O) => {
|
|
826
|
+
E(_, V), E(xe, O);
|
|
763
827
|
},
|
|
764
828
|
[() => v()("hubTitle"), () => v()("hubSubtitle")]
|
|
765
|
-
),
|
|
766
|
-
},
|
|
767
|
-
var
|
|
768
|
-
|
|
829
|
+
), D(d, m);
|
|
830
|
+
}, De = (d) => {
|
|
831
|
+
var m = Ke(), C = I(m), W = J(C, !0);
|
|
832
|
+
F(m), ee((_) => E(W, _), [() => v()("noContent")]), D(d, m);
|
|
769
833
|
};
|
|
770
|
-
|
|
771
|
-
!
|
|
834
|
+
X(g, (d) => {
|
|
835
|
+
!l() || r(P) ? d(u) : r(Se) ? d(Te, 1) : r(f) ? d(Ae, 2) : r(p)?.length > 1 ? d(Ce, 3) : d(De, -1);
|
|
772
836
|
});
|
|
773
837
|
}
|
|
774
|
-
|
|
838
|
+
D(e, n);
|
|
775
839
|
};
|
|
776
|
-
|
|
777
|
-
|
|
840
|
+
X(ve, (e) => {
|
|
841
|
+
r(k) ? e(we) : e(ke, -1);
|
|
778
842
|
});
|
|
779
843
|
}
|
|
780
|
-
|
|
781
|
-
var
|
|
782
|
-
return
|
|
844
|
+
F(H), D(j, H);
|
|
845
|
+
var ze = ae(be);
|
|
846
|
+
return A(), ze;
|
|
783
847
|
}
|
|
784
848
|
te(
|
|
785
849
|
oe,
|
|
@@ -798,97 +862,97 @@ te(
|
|
|
798
862
|
[],
|
|
799
863
|
{ mode: "open" }
|
|
800
864
|
);
|
|
801
|
-
function
|
|
802
|
-
ie(
|
|
803
|
-
let v = o(
|
|
804
|
-
var
|
|
865
|
+
function Ze(j, t) {
|
|
866
|
+
ie(t, !0);
|
|
867
|
+
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), w = o(t, "wheelButtonAsset", 7, null), c = o(t, "backgroundVideoAsset", 7, null), y = o(t, "liteMode", 7, !1), b = o(t, "translationurl", 7);
|
|
868
|
+
var z = {
|
|
805
869
|
get endpoint() {
|
|
806
870
|
return v();
|
|
807
871
|
},
|
|
808
|
-
set endpoint(
|
|
809
|
-
v(
|
|
872
|
+
set endpoint(i) {
|
|
873
|
+
v(i), s();
|
|
810
874
|
},
|
|
811
875
|
get session() {
|
|
812
|
-
return
|
|
876
|
+
return S();
|
|
813
877
|
},
|
|
814
|
-
set session(
|
|
815
|
-
|
|
878
|
+
set session(i) {
|
|
879
|
+
S(i), s();
|
|
816
880
|
},
|
|
817
881
|
get requiresOptin() {
|
|
818
|
-
return
|
|
882
|
+
return A();
|
|
819
883
|
},
|
|
820
|
-
set requiresOptin(
|
|
821
|
-
|
|
884
|
+
set requiresOptin(i = !1) {
|
|
885
|
+
A(i), s();
|
|
822
886
|
},
|
|
823
887
|
get language() {
|
|
824
888
|
return h();
|
|
825
889
|
},
|
|
826
|
-
set language(
|
|
827
|
-
h(
|
|
890
|
+
set language(i = "en") {
|
|
891
|
+
h(i), s();
|
|
828
892
|
},
|
|
829
893
|
get outerWheelAsset() {
|
|
830
|
-
return
|
|
894
|
+
return l();
|
|
831
895
|
},
|
|
832
|
-
set outerWheelAsset(
|
|
833
|
-
|
|
896
|
+
set outerWheelAsset(i = null) {
|
|
897
|
+
l(i), s();
|
|
834
898
|
},
|
|
835
899
|
get wheelButtonAsset() {
|
|
836
|
-
return
|
|
900
|
+
return w();
|
|
837
901
|
},
|
|
838
|
-
set wheelButtonAsset(
|
|
839
|
-
|
|
902
|
+
set wheelButtonAsset(i = null) {
|
|
903
|
+
w(i), s();
|
|
840
904
|
},
|
|
841
905
|
get backgroundVideoAsset() {
|
|
842
|
-
return
|
|
906
|
+
return c();
|
|
843
907
|
},
|
|
844
|
-
set backgroundVideoAsset(
|
|
845
|
-
|
|
908
|
+
set backgroundVideoAsset(i = null) {
|
|
909
|
+
c(i), s();
|
|
846
910
|
},
|
|
847
911
|
get liteMode() {
|
|
848
|
-
return
|
|
912
|
+
return y();
|
|
849
913
|
},
|
|
850
|
-
set liteMode(
|
|
851
|
-
|
|
914
|
+
set liteMode(i = !1) {
|
|
915
|
+
y(i), s();
|
|
852
916
|
},
|
|
853
917
|
get translationurl() {
|
|
854
|
-
return
|
|
918
|
+
return b();
|
|
855
919
|
},
|
|
856
|
-
set translationurl(
|
|
857
|
-
|
|
920
|
+
set translationurl(i) {
|
|
921
|
+
b(i), s();
|
|
858
922
|
}
|
|
859
923
|
};
|
|
860
|
-
return oe(
|
|
924
|
+
return oe(j, {
|
|
861
925
|
get endpoint() {
|
|
862
926
|
return v();
|
|
863
927
|
},
|
|
864
928
|
get session() {
|
|
865
|
-
return
|
|
929
|
+
return S();
|
|
866
930
|
},
|
|
867
931
|
get requiresOptin() {
|
|
868
|
-
return
|
|
932
|
+
return A();
|
|
869
933
|
},
|
|
870
934
|
get language() {
|
|
871
935
|
return h();
|
|
872
936
|
},
|
|
873
937
|
get outerWheelAsset() {
|
|
874
|
-
return
|
|
938
|
+
return l();
|
|
875
939
|
},
|
|
876
940
|
get wheelButtonAsset() {
|
|
877
|
-
return
|
|
941
|
+
return w();
|
|
878
942
|
},
|
|
879
943
|
get backgroundVideoAsset() {
|
|
880
|
-
return
|
|
944
|
+
return c();
|
|
881
945
|
},
|
|
882
946
|
get liteMode() {
|
|
883
|
-
return
|
|
947
|
+
return y();
|
|
884
948
|
},
|
|
885
949
|
get translationurl() {
|
|
886
|
-
return
|
|
950
|
+
return b();
|
|
887
951
|
}
|
|
888
|
-
}), ae(
|
|
952
|
+
}), ae(z);
|
|
889
953
|
}
|
|
890
954
|
customElements.define("mini-games-hub", te(
|
|
891
|
-
|
|
955
|
+
Ze,
|
|
892
956
|
{
|
|
893
957
|
endpoint: { attribute: "endpoint", type: "String" },
|
|
894
958
|
session: { attribute: "session", type: "String" },
|
|
@@ -904,5 +968,5 @@ customElements.define("mini-games-hub", te(
|
|
|
904
968
|
[]
|
|
905
969
|
));
|
|
906
970
|
export {
|
|
907
|
-
|
|
971
|
+
Ze as M
|
|
908
972
|
};
|