@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,24 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var U = (A, i, m) => new Promise((T, k) => {
|
|
2
|
+
var f = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
m
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
v(m.next(o));
|
|
5
|
+
} catch (y) {
|
|
6
|
+
k(y);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, l = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
m
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
v(m.throw(o));
|
|
11
|
+
} catch (y) {
|
|
12
|
+
k(y);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, v = (o) => o.done ? T(o.value) : Promise.resolve(o.value).then(f, l);
|
|
15
|
+
v((m = m.apply(A, i)).next());
|
|
16
16
|
});
|
|
17
|
-
import { a as
|
|
18
|
-
import {
|
|
19
|
-
import { W as
|
|
20
|
-
import {
|
|
21
|
-
|
|
17
|
+
import { a as Me, p as u, y as Fe, z as re, A as ie, o as Be, i as te, b as P, e as Ne, f as H, c as de, k as Ge, g as Le, h as qe, j as Y, s as He } from "./WheelOfFortuneWheel-CiyQZNAd.js";
|
|
18
|
+
import { bn as G, bo as _e, ad as Ve, b1 as j, aQ as Oe, a9 as pe, aU as d, a5 as ge, L as r, aJ as s, bp as Ee, b6 as Z, b2 as ae, ba as L, bb as q, b7 as X, b3 as oe, ar as se, b4 as Ie } from "./utils-DGrEJJ_K.js";
|
|
19
|
+
import { W as le } from "./WheelOfFortune-8HCl7aHv.js";
|
|
20
|
+
import { C as Je } from "./CoinRoyale-DLL1bCAy.js";
|
|
21
|
+
import { G as Ke } from "./GameCard-D78hDMaL.js";
|
|
22
|
+
const ue = {
|
|
22
23
|
en: {
|
|
23
24
|
noContent: "You don't have any lottery programs available now.",
|
|
24
25
|
hubTitle: "Prize Hub",
|
|
@@ -103,7 +104,12 @@ const se = {
|
|
|
103
104
|
single: "{count, plural, one {# Spin} other {# Spins}} every {day, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} each month - {range}",
|
|
104
105
|
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}"
|
|
105
106
|
}
|
|
106
|
-
}
|
|
107
|
+
},
|
|
108
|
+
coinTitle: "Coin Royale",
|
|
109
|
+
remainingFlips: "Remaining Flips :",
|
|
110
|
+
flipCoin: "Flip Coin",
|
|
111
|
+
dragToFlip: "Drag to flip",
|
|
112
|
+
gameCardCoinFlips: "Coin <br/> Flips"
|
|
107
113
|
},
|
|
108
114
|
da: {
|
|
109
115
|
noContent: "Du har ingen lotteriprogrammer tilgængelige lige nu.",
|
|
@@ -189,7 +195,12 @@ const se = {
|
|
|
189
195
|
single: "{count, plural, one {# Spin} other {# Spins}} den {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} i hver måned - {range}",
|
|
190
196
|
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}"
|
|
191
197
|
}
|
|
192
|
-
}
|
|
198
|
+
},
|
|
199
|
+
coinTitle: "Coin Royale",
|
|
200
|
+
remainingFlips: "Resterende Flips :",
|
|
201
|
+
flipCoin: "Slå Mønt",
|
|
202
|
+
dragToFlip: "Træk for at slå",
|
|
203
|
+
gameCardCoinFlips: "Mønt <br/> Flips"
|
|
193
204
|
},
|
|
194
205
|
de: {
|
|
195
206
|
noContent: "Du hast derzeit keine verfügbaren Lotterieprogramme.",
|
|
@@ -275,7 +286,12 @@ const se = {
|
|
|
275
286
|
single: "{count, plural, one {# Drehung} other {# Drehungen}} am {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} jeden Monat - {range}",
|
|
276
287
|
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}"
|
|
277
288
|
}
|
|
278
|
-
}
|
|
289
|
+
},
|
|
290
|
+
coinTitle: "Coin Royale",
|
|
291
|
+
remainingFlips: "Verbleibende Würfe :",
|
|
292
|
+
flipCoin: "Münze werfen",
|
|
293
|
+
dragToFlip: "Zum Werfen ziehen",
|
|
294
|
+
gameCardCoinFlips: "Münz- <br/> würfe"
|
|
279
295
|
},
|
|
280
296
|
nl: {
|
|
281
297
|
noContent: "Je hebt op dit moment geen loterijprogramma's beschikbaar.",
|
|
@@ -361,7 +377,12 @@ const se = {
|
|
|
361
377
|
single: "{count, plural, one {# Spin} other {# Spins}} elke {day, selectordinal, one {#e} two {#e} few {#e} other {#e}} van de maand - {range}",
|
|
362
378
|
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}"
|
|
363
379
|
}
|
|
364
|
-
}
|
|
380
|
+
},
|
|
381
|
+
coinTitle: "Coin Royale",
|
|
382
|
+
remainingFlips: "Resterende Flips :",
|
|
383
|
+
flipCoin: "Gooi Munt",
|
|
384
|
+
dragToFlip: "Sleep om te gooien",
|
|
385
|
+
gameCardCoinFlips: "Munt <br/> Flips"
|
|
365
386
|
},
|
|
366
387
|
fr: {
|
|
367
388
|
noContent: "Vous n'avez actuellement aucun programme de loterie disponible.",
|
|
@@ -447,7 +468,12 @@ const se = {
|
|
|
447
468
|
single: "{count, plural, one {# Tour} other {# Tours}} le {day, selectordinal, one {#er} two {#} few {#} other {#}} de chaque mois - {range}",
|
|
448
469
|
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}"
|
|
449
470
|
}
|
|
450
|
-
}
|
|
471
|
+
},
|
|
472
|
+
coinTitle: "Coin Royale",
|
|
473
|
+
remainingFlips: "Lancers restants :",
|
|
474
|
+
flipCoin: "Lancer la pièce",
|
|
475
|
+
dragToFlip: "Glissez pour lancer",
|
|
476
|
+
gameCardCoinFlips: "Lancers <br/> de pièce"
|
|
451
477
|
},
|
|
452
478
|
tr: {
|
|
453
479
|
noContent: "Şu anda kullanılabilir bir çekiliş programınız yok.",
|
|
@@ -533,15 +559,20 @@ const se = {
|
|
|
533
559
|
single: "{count, plural, one {# Çevirme} other {# Çevirme}} her ayın {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} günü - {range}",
|
|
534
560
|
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}"
|
|
535
561
|
}
|
|
536
|
-
}
|
|
562
|
+
},
|
|
563
|
+
coinTitle: "Coin Royale",
|
|
564
|
+
remainingFlips: "Kalan Atışlar :",
|
|
565
|
+
flipCoin: "Parayı At",
|
|
566
|
+
dragToFlip: "Atmak için sürükleyin",
|
|
567
|
+
gameCardCoinFlips: "Para <br/> Atışı"
|
|
537
568
|
}
|
|
538
569
|
};
|
|
539
|
-
var
|
|
540
|
-
const
|
|
570
|
+
var Ue = H('<div class="loader-container"><div class="loader"><div class="loader-ring-outer"></div> <div class="loader-ring-inner"></div></div></div>'), Ye = H('<div class="prize-hub-container"><h3> </h3> <p> </p></div> <div class="mini-games-card-list"></div>', 1), Ze = H("<div><p> </p></div>"), Xe = H('<div class="main-container"><!></div>');
|
|
571
|
+
const Qe = {
|
|
541
572
|
hash: "svelte-pzanec",
|
|
542
573
|
code: ` *,
|
|
543
574
|
*::before,
|
|
544
|
-
*::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;
|
|
575
|
+
*::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,
|
|
545
576
|
.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);
|
|
546
577
|
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));
|
|
547
578
|
animation: svelte-pzanec-spin-ccw 0.75s linear infinite;}
|
|
@@ -556,253 +587,289 @@ const Ie = {
|
|
|
556
587
|
}
|
|
557
588
|
}`
|
|
558
589
|
};
|
|
559
|
-
function
|
|
560
|
-
var
|
|
561
|
-
|
|
562
|
-
const
|
|
563
|
-
function
|
|
590
|
+
function ce(A, i) {
|
|
591
|
+
var $, ee;
|
|
592
|
+
ge(i, !0), Me(A, Qe);
|
|
593
|
+
const m = () => He(Ie, "$_", T), [T, k] = Ne(), f = u(i, "endpoint", 7), l = u(i, "session", 7), v = u(i, "requiresOptin", 7, !1), o = u(i, "language", 7, "en"), y = u(i, "outerWheelAsset", 7, null), z = u(i, "wheelButtonAsset", 7, null), C = u(i, "backgroundVideoAsset", 7, null), a = u(i, "liteMode", 7, !1), R = u(i, "translationurl", 7), he = !G() && /iPhone|iPad|iPod/.test(navigator.userAgent), me = G() ? 1 / 0 : ($ = navigator.deviceMemory) != null ? $ : 1 / 0, fe = G() ? 1 / 0 : (ee = navigator.hardwareConcurrency) != null ? ee : 1 / 0;
|
|
594
|
+
function ye() {
|
|
564
595
|
try {
|
|
565
|
-
const
|
|
566
|
-
if (!
|
|
567
|
-
const
|
|
568
|
-
if (!
|
|
569
|
-
const
|
|
570
|
-
return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(
|
|
596
|
+
const n = document.createElement("canvas").getContext("webgl");
|
|
597
|
+
if (!n) return !1;
|
|
598
|
+
const b = n.getExtension("WEBGL_debug_renderer_info");
|
|
599
|
+
if (!b) return !1;
|
|
600
|
+
const t = n.getParameter(b.UNMASKED_RENDERER_WEBGL).toLowerCase();
|
|
601
|
+
return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(t);
|
|
571
602
|
} catch (e) {
|
|
572
603
|
return !1;
|
|
573
604
|
}
|
|
574
605
|
}
|
|
575
|
-
const
|
|
576
|
-
|
|
577
|
-
const
|
|
606
|
+
const be = !G() && !he && (me <= 4 || fe <= 4 || ye()), _ = q(() => a() || be);
|
|
607
|
+
Fe({ withLocale: "en", translations: {} });
|
|
608
|
+
const ve = () => {
|
|
578
609
|
let e = new URL(R());
|
|
579
|
-
fetch(e.href).then((
|
|
580
|
-
Object.keys(
|
|
581
|
-
|
|
610
|
+
fetch(e.href).then((n) => n.json()).then((n) => {
|
|
611
|
+
Object.keys(n).forEach((b) => {
|
|
612
|
+
re(b, n[b]);
|
|
582
613
|
});
|
|
583
|
-
}).catch((
|
|
584
|
-
console.log(
|
|
614
|
+
}).catch((n) => {
|
|
615
|
+
console.log(n);
|
|
585
616
|
});
|
|
586
617
|
};
|
|
587
|
-
Object.keys(
|
|
588
|
-
|
|
589
|
-
}),
|
|
590
|
-
const
|
|
591
|
-
|
|
618
|
+
Object.keys(ue).forEach((e) => {
|
|
619
|
+
re(e, ue[e]);
|
|
620
|
+
}), ie(o());
|
|
621
|
+
const we = () => {
|
|
622
|
+
ie(o());
|
|
592
623
|
};
|
|
593
|
-
|
|
594
|
-
R() &&
|
|
595
|
-
}),
|
|
596
|
-
|
|
624
|
+
_e(() => {
|
|
625
|
+
R() && ve();
|
|
626
|
+
}), Ve(() => {
|
|
627
|
+
we();
|
|
597
628
|
});
|
|
598
|
-
let
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
const e = new URL(`${
|
|
602
|
-
|
|
603
|
-
const
|
|
604
|
-
e.searchParams.append("filter", "wheelOfFortune"), fetch(e,
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
|
|
629
|
+
let S = j(!1), g = j(Oe([])), V = j(!1), W = j(!1), w = j(null), O = j(!1);
|
|
630
|
+
const ke = () => U(this, null, function* () {
|
|
631
|
+
s(S, !0);
|
|
632
|
+
const e = new URL(`${f()}/v1/wof/claimable`), n = new Headers();
|
|
633
|
+
l() && n.append("X-SessionId", l());
|
|
634
|
+
const b = { method: "GET", headers: n, cache: "no-store" };
|
|
635
|
+
e.searchParams.append("filter", "wheelOfFortune"), fetch(e, b).then((t) => t.json()).then((t) => {
|
|
636
|
+
var c, D, F, B;
|
|
637
|
+
if (t && ((c = t.errorMessage) == null ? void 0 : c.trim()) === "InvalidSessionId") {
|
|
638
|
+
s(W, !0), s(S, !1);
|
|
608
639
|
return;
|
|
609
640
|
}
|
|
610
|
-
if ((
|
|
611
|
-
|
|
641
|
+
if ((F = (D = t == null ? void 0 : t.items) == null ? void 0 : D.program) != null && F.canClaim) {
|
|
642
|
+
s(g, (B = t == null ? void 0 : t.items) == null ? void 0 : B.program, !0), s(S, !1);
|
|
612
643
|
return;
|
|
613
644
|
}
|
|
614
|
-
|
|
615
|
-
}).catch((
|
|
616
|
-
console.log(
|
|
617
|
-
}).finally(() =>
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
e
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
645
|
+
s(g, t == null ? void 0 : t.items, !0);
|
|
646
|
+
}).catch((t) => {
|
|
647
|
+
console.log(t), s(V, !0);
|
|
648
|
+
}).finally(() => {
|
|
649
|
+
s(S, !1), M();
|
|
650
|
+
});
|
|
651
|
+
}), ze = ["wheelOfFortune", "flipCoin"].map((e) => `Types[]=${e}`).join(","), Te = () => U(this, null, function* () {
|
|
652
|
+
var b, t;
|
|
653
|
+
s(S, !0);
|
|
654
|
+
const e = new URL(`${f()}/v1/wof/lotteries`), n = new Headers();
|
|
655
|
+
l() && n.append("X-SessionId", l()), e.searchParams.append("filter", ze);
|
|
656
|
+
try {
|
|
657
|
+
const c = yield (yield fetch(e, { method: "GET", headers: n, cache: "no-store" })).json();
|
|
658
|
+
if (((b = c == null ? void 0 : c.errorMessage) == null ? void 0 : b.trim()) === "InvalidSessionId") {
|
|
659
|
+
s(W, !0);
|
|
627
660
|
return;
|
|
628
661
|
}
|
|
629
|
-
|
|
630
|
-
}
|
|
631
|
-
console.log(
|
|
632
|
-
}
|
|
633
|
-
|
|
662
|
+
s(g, ((t = c == null ? void 0 : c.items) != null ? t : []).map((D) => Ee(D, o())), !0), r(g).length === 1 && (s(w, r(g)[0], !0), s(O, !0)), r(g).length === 0 && window.postMessage({ type: "event_wof_no_programs" }, window.location.href);
|
|
663
|
+
} catch (c) {
|
|
664
|
+
console.log(c), s(V, !0);
|
|
665
|
+
} finally {
|
|
666
|
+
s(S, !1), M();
|
|
667
|
+
}
|
|
668
|
+
}), Se = (e) => {
|
|
669
|
+
var n;
|
|
670
|
+
return ((n = e == null ? void 0 : e.type) == null ? void 0 : n.toLowerCase()) === "flipcoin";
|
|
671
|
+
}, M = () => {
|
|
672
|
+
const e = Array.isArray(r(g)) ? r(g).length : r(g) ? 1 : 0, n = !!l() && !r(W);
|
|
673
|
+
window.postMessage(
|
|
674
|
+
{
|
|
675
|
+
type: "event_hub_accessed",
|
|
676
|
+
isLoggedIn: n,
|
|
677
|
+
hasMiniGames: n && !r(V) ? e > 0 : null
|
|
678
|
+
},
|
|
679
|
+
window.location.href
|
|
680
|
+
);
|
|
681
|
+
}, Q = (e) => {
|
|
634
682
|
if (e.data)
|
|
635
683
|
switch (e.data.type) {
|
|
636
684
|
case "PlayMiniGame":
|
|
637
|
-
|
|
685
|
+
s(w, r(g).find((n) => n.id === e.data.programId), !0);
|
|
638
686
|
break;
|
|
639
687
|
case "CloseMiniGame":
|
|
640
|
-
|
|
688
|
+
s(w, null), M();
|
|
641
689
|
break;
|
|
642
690
|
case "PrizeGameRemainingTimesUpdated":
|
|
643
|
-
|
|
691
|
+
s(w, e.data.data, !0), s(g, r(g).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
|
|
644
692
|
break;
|
|
645
693
|
}
|
|
646
694
|
};
|
|
647
|
-
|
|
648
|
-
()
|
|
649
|
-
window.postMessage({ type: "event_hub_accessed", isLoggedIn: !!u() }, window.location.href);
|
|
650
|
-
},
|
|
651
|
-
0
|
|
652
|
-
), u() && (m() ? ve() : ke()), window.addEventListener("message", Y), () => {
|
|
653
|
-
window.removeEventListener("message", Y);
|
|
695
|
+
Be(() => (l() || setTimeout(M, 0), l() && (v() ? ke() : Te()), window.addEventListener("message", Q), () => {
|
|
696
|
+
window.removeEventListener("message", Q);
|
|
654
697
|
}));
|
|
655
|
-
var
|
|
698
|
+
var Ae = {
|
|
656
699
|
get endpoint() {
|
|
657
|
-
return
|
|
700
|
+
return f();
|
|
658
701
|
},
|
|
659
702
|
set endpoint(e) {
|
|
660
|
-
|
|
703
|
+
f(e), d();
|
|
661
704
|
},
|
|
662
705
|
get session() {
|
|
663
|
-
return
|
|
706
|
+
return l();
|
|
664
707
|
},
|
|
665
708
|
set session(e) {
|
|
666
|
-
|
|
709
|
+
l(e), d();
|
|
667
710
|
},
|
|
668
711
|
get requiresOptin() {
|
|
669
|
-
return
|
|
712
|
+
return v();
|
|
670
713
|
},
|
|
671
714
|
set requiresOptin(e = !1) {
|
|
672
|
-
|
|
715
|
+
v(e), d();
|
|
673
716
|
},
|
|
674
717
|
get language() {
|
|
675
718
|
return o();
|
|
676
719
|
},
|
|
677
720
|
set language(e = "en") {
|
|
678
|
-
o(e),
|
|
721
|
+
o(e), d();
|
|
679
722
|
},
|
|
680
723
|
get outerWheelAsset() {
|
|
681
|
-
return
|
|
724
|
+
return y();
|
|
682
725
|
},
|
|
683
726
|
set outerWheelAsset(e = null) {
|
|
684
|
-
|
|
727
|
+
y(e), d();
|
|
685
728
|
},
|
|
686
729
|
get wheelButtonAsset() {
|
|
687
|
-
return
|
|
730
|
+
return z();
|
|
688
731
|
},
|
|
689
732
|
set wheelButtonAsset(e = null) {
|
|
690
|
-
|
|
733
|
+
z(e), d();
|
|
691
734
|
},
|
|
692
735
|
get backgroundVideoAsset() {
|
|
693
|
-
return
|
|
736
|
+
return C();
|
|
694
737
|
},
|
|
695
738
|
set backgroundVideoAsset(e = null) {
|
|
696
|
-
|
|
739
|
+
C(e), d();
|
|
697
740
|
},
|
|
698
741
|
get liteMode() {
|
|
699
|
-
return
|
|
742
|
+
return a();
|
|
700
743
|
},
|
|
701
744
|
set liteMode(e = !1) {
|
|
702
|
-
|
|
745
|
+
a(e), d();
|
|
703
746
|
},
|
|
704
747
|
get translationurl() {
|
|
705
748
|
return R();
|
|
706
749
|
},
|
|
707
750
|
set translationurl(e) {
|
|
708
|
-
R(e),
|
|
751
|
+
R(e), d();
|
|
709
752
|
}
|
|
710
|
-
},
|
|
753
|
+
}, E = Xe(), Ce = Z(E);
|
|
711
754
|
{
|
|
712
|
-
var
|
|
713
|
-
var
|
|
714
|
-
|
|
715
|
-
},
|
|
716
|
-
var
|
|
755
|
+
var De = (e) => {
|
|
756
|
+
var n = Ue();
|
|
757
|
+
P(e, n);
|
|
758
|
+
}, je = (e) => {
|
|
759
|
+
var n = Ge(), b = ae(n);
|
|
717
760
|
{
|
|
718
|
-
var
|
|
719
|
-
|
|
761
|
+
var t = (p) => {
|
|
762
|
+
le(p, {
|
|
720
763
|
get outerWheelAsset() {
|
|
721
|
-
return
|
|
764
|
+
return y();
|
|
722
765
|
},
|
|
723
766
|
get wheelButtonAsset() {
|
|
724
|
-
return
|
|
767
|
+
return z();
|
|
725
768
|
},
|
|
726
769
|
get backgroundVideoAsset() {
|
|
727
|
-
return
|
|
770
|
+
return C();
|
|
728
771
|
},
|
|
729
772
|
get language() {
|
|
730
773
|
return o();
|
|
731
774
|
},
|
|
732
775
|
get liteMode() {
|
|
733
|
-
return
|
|
776
|
+
return r(_);
|
|
734
777
|
}
|
|
735
778
|
});
|
|
736
|
-
},
|
|
779
|
+
}, c = (p) => {
|
|
780
|
+
{
|
|
781
|
+
let h = q(() => !r(O));
|
|
782
|
+
Je(p, {
|
|
783
|
+
get program() {
|
|
784
|
+
return r(w);
|
|
785
|
+
},
|
|
786
|
+
get endpoint() {
|
|
787
|
+
return f();
|
|
788
|
+
},
|
|
789
|
+
get language() {
|
|
790
|
+
return o();
|
|
791
|
+
},
|
|
792
|
+
get session() {
|
|
793
|
+
return l();
|
|
794
|
+
},
|
|
795
|
+
get showBackButton() {
|
|
796
|
+
return r(h);
|
|
797
|
+
},
|
|
798
|
+
get liteMode() {
|
|
799
|
+
return r(_);
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
}, D = q(() => r(w) && Se(r(w))), F = (p) => {
|
|
737
804
|
{
|
|
738
|
-
let
|
|
739
|
-
|
|
805
|
+
let h = q(() => !r(O));
|
|
806
|
+
le(p, {
|
|
740
807
|
get program() {
|
|
741
|
-
return
|
|
808
|
+
return r(w);
|
|
742
809
|
},
|
|
743
810
|
get endpoint() {
|
|
744
|
-
return
|
|
811
|
+
return f();
|
|
745
812
|
},
|
|
746
813
|
get language() {
|
|
747
814
|
return o();
|
|
748
815
|
},
|
|
749
816
|
get session() {
|
|
750
|
-
return
|
|
817
|
+
return l();
|
|
751
818
|
},
|
|
752
819
|
get outerWheelAsset() {
|
|
753
|
-
return
|
|
820
|
+
return y();
|
|
754
821
|
},
|
|
755
822
|
get wheelButtonAsset() {
|
|
756
|
-
return
|
|
823
|
+
return z();
|
|
757
824
|
},
|
|
758
825
|
get backgroundVideoAsset() {
|
|
759
|
-
return
|
|
826
|
+
return C();
|
|
760
827
|
},
|
|
761
828
|
get showBackButton() {
|
|
762
|
-
return
|
|
829
|
+
return r(h);
|
|
763
830
|
},
|
|
764
831
|
get liteMode() {
|
|
765
|
-
return
|
|
832
|
+
return r(_);
|
|
766
833
|
}
|
|
767
834
|
});
|
|
768
835
|
}
|
|
769
|
-
},
|
|
770
|
-
var
|
|
771
|
-
|
|
772
|
-
var
|
|
773
|
-
|
|
774
|
-
|
|
836
|
+
}, B = (p) => {
|
|
837
|
+
var h = Ye(), x = ae(h), N = Z(x), I = X(N, !0), Re = oe(N, 2), We = X(Re, !0);
|
|
838
|
+
L(x);
|
|
839
|
+
var ne = oe(x, 2);
|
|
840
|
+
Le(ne, 21, () => r(g), qe, (J, K) => {
|
|
841
|
+
Ke(J, {
|
|
775
842
|
get program() {
|
|
776
|
-
return
|
|
843
|
+
return r(K);
|
|
777
844
|
}
|
|
778
845
|
});
|
|
779
|
-
}),
|
|
780
|
-
(
|
|
781
|
-
|
|
846
|
+
}), L(ne), se(
|
|
847
|
+
(J, K) => {
|
|
848
|
+
Y(I, J), Y(We, K);
|
|
782
849
|
},
|
|
783
|
-
[() =>
|
|
784
|
-
),
|
|
785
|
-
},
|
|
786
|
-
var
|
|
787
|
-
|
|
850
|
+
[() => m()("hubTitle"), () => m()("hubSubtitle")]
|
|
851
|
+
), P(p, h);
|
|
852
|
+
}, Pe = (p) => {
|
|
853
|
+
var h = Ze(), x = Z(h), N = X(x, !0);
|
|
854
|
+
L(h), se((I) => Y(N, I), [() => m()("noContent")]), P(p, h);
|
|
788
855
|
};
|
|
789
|
-
|
|
790
|
-
var
|
|
791
|
-
!
|
|
856
|
+
te(b, (p) => {
|
|
857
|
+
var h;
|
|
858
|
+
!l() || r(W) ? p(t) : r(D) ? p(c, 1) : r(w) ? p(F, 2) : ((h = r(g)) == null ? void 0 : h.length) > 1 ? p(B, 3) : p(Pe, -1);
|
|
792
859
|
});
|
|
793
860
|
}
|
|
794
|
-
|
|
861
|
+
P(e, n);
|
|
795
862
|
};
|
|
796
|
-
|
|
797
|
-
|
|
863
|
+
te(Ce, (e) => {
|
|
864
|
+
r(S) ? e(De) : e(je, -1);
|
|
798
865
|
});
|
|
799
866
|
}
|
|
800
|
-
|
|
801
|
-
var
|
|
802
|
-
return
|
|
867
|
+
L(E), P(A, E);
|
|
868
|
+
var xe = pe(Ae);
|
|
869
|
+
return k(), xe;
|
|
803
870
|
}
|
|
804
|
-
|
|
805
|
-
|
|
871
|
+
de(
|
|
872
|
+
ce,
|
|
806
873
|
{
|
|
807
874
|
endpoint: {},
|
|
808
875
|
session: {},
|
|
@@ -818,97 +885,97 @@ le(
|
|
|
818
885
|
[],
|
|
819
886
|
{ mode: "open" }
|
|
820
887
|
);
|
|
821
|
-
function
|
|
822
|
-
|
|
823
|
-
let
|
|
824
|
-
var
|
|
888
|
+
function $e(A, i) {
|
|
889
|
+
ge(i, !0);
|
|
890
|
+
let m = u(i, "endpoint", 7), T = u(i, "session", 7), k = u(i, "requiresOptin", 7, !1), f = u(i, "language", 7, "en"), l = u(i, "outerWheelAsset", 7, null), v = u(i, "wheelButtonAsset", 7, null), o = u(i, "backgroundVideoAsset", 7, null), y = u(i, "liteMode", 7, !1), z = u(i, "translationurl", 7);
|
|
891
|
+
var C = {
|
|
825
892
|
get endpoint() {
|
|
826
|
-
return
|
|
893
|
+
return m();
|
|
827
894
|
},
|
|
828
|
-
set endpoint(
|
|
829
|
-
|
|
895
|
+
set endpoint(a) {
|
|
896
|
+
m(a), d();
|
|
830
897
|
},
|
|
831
898
|
get session() {
|
|
832
|
-
return
|
|
899
|
+
return T();
|
|
833
900
|
},
|
|
834
|
-
set session(
|
|
835
|
-
|
|
901
|
+
set session(a) {
|
|
902
|
+
T(a), d();
|
|
836
903
|
},
|
|
837
904
|
get requiresOptin() {
|
|
838
|
-
return
|
|
905
|
+
return k();
|
|
839
906
|
},
|
|
840
|
-
set requiresOptin(
|
|
841
|
-
|
|
907
|
+
set requiresOptin(a = !1) {
|
|
908
|
+
k(a), d();
|
|
842
909
|
},
|
|
843
910
|
get language() {
|
|
844
|
-
return
|
|
911
|
+
return f();
|
|
845
912
|
},
|
|
846
|
-
set language(
|
|
847
|
-
|
|
913
|
+
set language(a = "en") {
|
|
914
|
+
f(a), d();
|
|
848
915
|
},
|
|
849
916
|
get outerWheelAsset() {
|
|
850
|
-
return
|
|
917
|
+
return l();
|
|
851
918
|
},
|
|
852
|
-
set outerWheelAsset(
|
|
853
|
-
|
|
919
|
+
set outerWheelAsset(a = null) {
|
|
920
|
+
l(a), d();
|
|
854
921
|
},
|
|
855
922
|
get wheelButtonAsset() {
|
|
856
|
-
return
|
|
923
|
+
return v();
|
|
857
924
|
},
|
|
858
|
-
set wheelButtonAsset(
|
|
859
|
-
|
|
925
|
+
set wheelButtonAsset(a = null) {
|
|
926
|
+
v(a), d();
|
|
860
927
|
},
|
|
861
928
|
get backgroundVideoAsset() {
|
|
862
929
|
return o();
|
|
863
930
|
},
|
|
864
|
-
set backgroundVideoAsset(
|
|
865
|
-
o(
|
|
931
|
+
set backgroundVideoAsset(a = null) {
|
|
932
|
+
o(a), d();
|
|
866
933
|
},
|
|
867
934
|
get liteMode() {
|
|
868
|
-
return
|
|
935
|
+
return y();
|
|
869
936
|
},
|
|
870
|
-
set liteMode(
|
|
871
|
-
|
|
937
|
+
set liteMode(a = !1) {
|
|
938
|
+
y(a), d();
|
|
872
939
|
},
|
|
873
940
|
get translationurl() {
|
|
874
|
-
return
|
|
941
|
+
return z();
|
|
875
942
|
},
|
|
876
|
-
set translationurl(
|
|
877
|
-
|
|
943
|
+
set translationurl(a) {
|
|
944
|
+
z(a), d();
|
|
878
945
|
}
|
|
879
946
|
};
|
|
880
|
-
return
|
|
947
|
+
return ce(A, {
|
|
881
948
|
get endpoint() {
|
|
882
|
-
return
|
|
949
|
+
return m();
|
|
883
950
|
},
|
|
884
951
|
get session() {
|
|
885
|
-
return
|
|
952
|
+
return T();
|
|
886
953
|
},
|
|
887
954
|
get requiresOptin() {
|
|
888
|
-
return
|
|
955
|
+
return k();
|
|
889
956
|
},
|
|
890
957
|
get language() {
|
|
891
|
-
return
|
|
958
|
+
return f();
|
|
892
959
|
},
|
|
893
960
|
get outerWheelAsset() {
|
|
894
|
-
return
|
|
961
|
+
return l();
|
|
895
962
|
},
|
|
896
963
|
get wheelButtonAsset() {
|
|
897
|
-
return
|
|
964
|
+
return v();
|
|
898
965
|
},
|
|
899
966
|
get backgroundVideoAsset() {
|
|
900
967
|
return o();
|
|
901
968
|
},
|
|
902
969
|
get liteMode() {
|
|
903
|
-
return
|
|
970
|
+
return y();
|
|
904
971
|
},
|
|
905
972
|
get translationurl() {
|
|
906
|
-
return
|
|
973
|
+
return z();
|
|
907
974
|
}
|
|
908
|
-
}),
|
|
975
|
+
}), pe(C);
|
|
909
976
|
}
|
|
910
|
-
customElements.define("mini-games-hub",
|
|
911
|
-
|
|
977
|
+
customElements.define("mini-games-hub", de(
|
|
978
|
+
$e,
|
|
912
979
|
{
|
|
913
980
|
endpoint: { attribute: "endpoint", type: "String" },
|
|
914
981
|
session: { attribute: "session", type: "String" },
|
|
@@ -924,5 +991,5 @@ customElements.define("mini-games-hub", le(
|
|
|
924
991
|
[]
|
|
925
992
|
));
|
|
926
993
|
export {
|
|
927
|
-
|
|
994
|
+
$e as default
|
|
928
995
|
};
|