@everymatrix/mini-games-hub 0.2.7 → 0.2.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/ArrowLeftIcon-BBQbSgPj.js +20 -0
- package/components/ArrowLeftIcon-CK2Rm6IW.cjs +1 -0
- package/components/ArrowLeftIcon-CbMwJALt.js +20 -0
- package/components/ArrowLeftIcon-Ls7P40Uk.cjs +1 -0
- package/components/CoinFlip-CWv6r8u1.cjs +1 -0
- package/components/CoinFlip-CaRkaWEA.cjs +1 -0
- package/components/CoinFlip-D3kH_y8b.js +390 -0
- package/components/CoinFlip-hKLoCmvJ.js +355 -0
- package/components/CoinRoyale-Cr3FMU-f.js +998 -0
- package/components/CoinRoyale-DcXB88TG.cjs +734 -0
- package/components/CoinRoyale-HFE5DCkQ.js +1036 -0
- package/components/CoinRoyale-mXlKdlwT.cjs +734 -0
- package/components/{GameCard-vgoswSWl.cjs → GameCard-BPoaBZ8h.cjs} +3 -3
- package/components/{GameCard-C-zSlvo1.cjs → GameCard-DfVe9CgG.cjs} +3 -3
- package/components/{GameCard-B3YKo9k6.js → GameCard-cglVYPLz.js} +36 -36
- package/components/{GameCard-BQ6hFy67.js → GameCard-grRDxpTz.js} +39 -36
- package/components/{MiniGamesHub-C0q9vZFD.js → MiniGamesHub-CxhilLzF.js} +342 -206
- package/components/{MiniGamesHub-D5Y5OYt-.js → MiniGamesHub-DUICCoYd.js} +301 -168
- package/components/MiniGamesHub-DW82s9I9.cjs +79 -0
- package/components/MiniGamesHub-uuQkACzs.cjs +79 -0
- package/components/{WheelOfFortune-u6v6YLc5.js → WheelOfFortune-CsDXFzBd.js} +146 -138
- package/components/{WheelOfFortune-BJ9iMr53.cjs → WheelOfFortune-DGY-q1LW.cjs} +2 -2
- package/components/{WheelOfFortune-2WKhJAdZ.cjs → WheelOfFortune-DfN31a-S.cjs} +2 -2
- package/components/{WheelOfFortune-DC57_QGF.js → WheelOfFortune-MIjCRllT.js} +186 -175
- package/components/WheelOfFortuneDrawResults-CKN979BS.js +261 -0
- package/components/WheelOfFortuneDrawResults-CmfWdZz0.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-Di5DQfhF.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-Dr-xmM_N.js +286 -0
- package/components/WheelOfFortuneHistory-BL4DV0im.cjs +13 -0
- package/components/WheelOfFortuneHistory-CqRO9Oee.cjs +13 -0
- package/components/WheelOfFortuneHistory-DFn33FhJ.js +222 -0
- package/components/WheelOfFortuneHistory-DvqIUld0.js +223 -0
- package/components/WheelOfFortuneRules-BxMUpX5_.js +120 -0
- package/components/WheelOfFortuneRules-CnS5xZ_B.js +109 -0
- package/components/WheelOfFortuneRules-Cu5CBrl6.cjs +5 -0
- package/components/WheelOfFortuneRules-UZj0hVWC.cjs +5 -0
- package/components/{WheelOfFortuneWheel-D_tfW-rK.js → WheelOfFortuneWheel-C694AcSr.js} +405 -380
- package/components/WheelOfFortuneWheel-CvGaRYgu.cjs +3 -0
- package/components/WheelOfFortuneWheel-Dxh6wKCh.cjs +3 -0
- package/components/{WheelOfFortuneWheel-DmTRvIN6.js → WheelOfFortuneWheel-cBswACGf.js} +545 -519
- 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/WheelOfFortuneDrawResults-BKkTmsVC.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-D3rgrYi_.js +0 -254
- package/components/WheelOfFortuneDrawResults-DTufAeXD.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-gx2xkUtF.js +0 -279
- 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-BM75DT61.js +0 -107
- package/components/WheelOfFortuneRules-D-xnWFIU.cjs +0 -3
- package/components/WheelOfFortuneRules-DkQOlpqR.js +0 -118
- 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, z as Re, A as Y, B as Z, o as We, i as X, e as C, f as N, g as Me, m as Fe, j as Be, k as Ne, l as E, s as Ge } from "./WheelOfFortuneWheel-C694AcSr.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-CsDXFzBd.js";
|
|
4
|
+
import { C as Oe } from "./CoinRoyale-Cr3FMU-f.js";
|
|
5
|
+
import { G as Ee } from "./GameCard-cglVYPLz.js";
|
|
5
6
|
const re = {
|
|
6
7
|
en: {
|
|
7
8
|
noContent: "You don't have any lottery programs available now.",
|
|
@@ -87,7 +88,13 @@ 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
|
+
flipAgain: "Flip again",
|
|
96
|
+
dragToFlip: "Drag to flip",
|
|
97
|
+
gameCardCoinFlips: "Coin <br/> Flips"
|
|
91
98
|
},
|
|
92
99
|
da: {
|
|
93
100
|
noContent: "Du har ingen lotteriprogrammer tilgængelige lige nu.",
|
|
@@ -173,7 +180,13 @@ const re = {
|
|
|
173
180
|
single: "{count, plural, one {# Spin} other {# Spins}} den {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} i hver måned - {range}",
|
|
174
181
|
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
182
|
}
|
|
176
|
-
}
|
|
183
|
+
},
|
|
184
|
+
coinTitle: "Coin Royale",
|
|
185
|
+
remainingFlips: "Resterende Flips :",
|
|
186
|
+
flipCoin: "Slå Mønt",
|
|
187
|
+
flipAgain: "Slå igen",
|
|
188
|
+
dragToFlip: "Træk for at slå",
|
|
189
|
+
gameCardCoinFlips: "Mønt <br/> Flips"
|
|
177
190
|
},
|
|
178
191
|
de: {
|
|
179
192
|
noContent: "Du hast derzeit keine verfügbaren Lotterieprogramme.",
|
|
@@ -259,7 +272,13 @@ const re = {
|
|
|
259
272
|
single: "{count, plural, one {# Drehung} other {# Drehungen}} am {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} jeden Monat - {range}",
|
|
260
273
|
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
274
|
}
|
|
262
|
-
}
|
|
275
|
+
},
|
|
276
|
+
coinTitle: "Coin Royale",
|
|
277
|
+
remainingFlips: "Verbleibende Würfe :",
|
|
278
|
+
flipCoin: "Münze werfen",
|
|
279
|
+
flipAgain: "Erneut werfen",
|
|
280
|
+
dragToFlip: "Zum Werfen ziehen",
|
|
281
|
+
gameCardCoinFlips: "Münz- <br/> würfe"
|
|
263
282
|
},
|
|
264
283
|
nl: {
|
|
265
284
|
noContent: "Je hebt op dit moment geen loterijprogramma's beschikbaar.",
|
|
@@ -345,7 +364,13 @@ const re = {
|
|
|
345
364
|
single: "{count, plural, one {# Spin} other {# Spins}} elke {day, selectordinal, one {#e} two {#e} few {#e} other {#e}} van de maand - {range}",
|
|
346
365
|
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
366
|
}
|
|
348
|
-
}
|
|
367
|
+
},
|
|
368
|
+
coinTitle: "Coin Royale",
|
|
369
|
+
remainingFlips: "Resterende Flips :",
|
|
370
|
+
flipCoin: "Gooi Munt",
|
|
371
|
+
flipAgain: "Opnieuw gooien",
|
|
372
|
+
dragToFlip: "Sleep om te gooien",
|
|
373
|
+
gameCardCoinFlips: "Munt <br/> Flips"
|
|
349
374
|
},
|
|
350
375
|
fr: {
|
|
351
376
|
noContent: "Vous n'avez actuellement aucun programme de loterie disponible.",
|
|
@@ -431,7 +456,13 @@ const re = {
|
|
|
431
456
|
single: "{count, plural, one {# Tour} other {# Tours}} le {day, selectordinal, one {#er} two {#} few {#} other {#}} de chaque mois - {range}",
|
|
432
457
|
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
458
|
}
|
|
434
|
-
}
|
|
459
|
+
},
|
|
460
|
+
coinTitle: "Coin Royale",
|
|
461
|
+
remainingFlips: "Lancers restants :",
|
|
462
|
+
flipCoin: "Lancer la pièce",
|
|
463
|
+
flipAgain: "Relancer la pièce",
|
|
464
|
+
dragToFlip: "Glissez pour lancer",
|
|
465
|
+
gameCardCoinFlips: "Lancers <br/> de pièce"
|
|
435
466
|
},
|
|
436
467
|
tr: {
|
|
437
468
|
noContent: "Şu anda kullanılabilir bir çekiliş programınız yok.",
|
|
@@ -517,18 +548,25 @@ const re = {
|
|
|
517
548
|
single: "{count, plural, one {# Çevirme} other {# Çevirme}} her ayın {day, selectordinal, one {#.} two {#.} few {#.} other {#.}} günü - {range}",
|
|
518
549
|
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
550
|
}
|
|
520
|
-
}
|
|
551
|
+
},
|
|
552
|
+
coinTitle: "Coin Royale",
|
|
553
|
+
remainingFlips: "Kalan Atışlar :",
|
|
554
|
+
flipCoin: "Parayı At",
|
|
555
|
+
flipAgain: "Tekrar at",
|
|
556
|
+
dragToFlip: "Atmak için sürükleyin",
|
|
557
|
+
gameCardCoinFlips: "Para <br/> Atışı"
|
|
521
558
|
}
|
|
522
559
|
};
|
|
523
|
-
var
|
|
524
|
-
const
|
|
560
|
+
var Ie = N('<div class="loader-container svelte-pzanec"><div class="loader svelte-pzanec"><div class="loader-ring-outer svelte-pzanec"></div> <div class="loader-ring-inner svelte-pzanec"></div></div></div>'), Je = N('<div class="prize-hub-container svelte-pzanec"><h3 class="svelte-pzanec"> </h3> <p class="svelte-pzanec"> </p></div> <div class="mini-games-card-list svelte-pzanec"></div>', 1), Ke = N('<div class="svelte-pzanec"><p class="svelte-pzanec"> </p></div>'), Ue = N('<div class="main-container svelte-pzanec"><!></div>');
|
|
561
|
+
const Ye = {
|
|
525
562
|
hash: "svelte-pzanec",
|
|
526
|
-
code:
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
animation: svelte-pzanec-spin-cw 1s linear infinite;}
|
|
563
|
+
code: `.svelte-pzanec,
|
|
564
|
+
.svelte-pzanec::before,
|
|
565
|
+
.svelte-pzanec::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-pzanec {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.svelte-pzanec {display:flex;flex-direction:column;gap:12px;width:100%;padding:0 10px;}.prize-hub-container.svelte-pzanec {display:flex;flex-direction:column;width:100%;padding:12px;gap:8px;margin:8px 0;}.prize-hub-container.svelte-pzanec h3:where(.svelte-pzanec) {color:var(--color-text-brand, #ffcc00);font-weight:700;font-size:14px;}.prize-hub-container.svelte-pzanec p:where(.svelte-pzanec) {color:var(--color-text-default, #ffffff);font-size:12px;font-weight:400;}.loader-container.svelte-pzanec {display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;}.loader.svelte-pzanec {position:relative;width:64px;height:64px;}.loader-ring-outer.svelte-pzanec,
|
|
566
|
+
.loader-ring-inner.svelte-pzanec {position:absolute;border-radius:50%;border:3px solid transparent;}.loader-ring-outer.svelte-pzanec {width:64px;height:64px;top:0;left:0;border-top-color:var(--loader-color-primary, #ffcc00);
|
|
567
|
+
animation: svelte-pzanec-spin-cw 1s linear infinite;}.loader-ring-inner.svelte-pzanec {width:42px;height:42px;top:11px;left:11px;border-top-color:var(--loader-color-secondary, rgba(255, 255, 255, 0.5019607843));
|
|
531
568
|
animation: svelte-pzanec-spin-ccw 0.75s linear infinite;}
|
|
569
|
+
|
|
532
570
|
@keyframes svelte-pzanec-spin-cw {
|
|
533
571
|
to {
|
|
534
572
|
transform: rotate(360deg);
|
|
@@ -538,102 +576,173 @@ const Oe = {
|
|
|
538
576
|
to {
|
|
539
577
|
transform: rotate(-360deg);
|
|
540
578
|
}
|
|
541
|
-
}
|
|
579
|
+
}
|
|
580
|
+
/* Skeleton (kept for reference, replaced by loader above)
|
|
581
|
+
@keyframes skeleton-pulse {
|
|
582
|
+
0%,
|
|
583
|
+
100% {
|
|
584
|
+
opacity: 0.3;
|
|
585
|
+
}
|
|
586
|
+
50% {
|
|
587
|
+
opacity: 0.6;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.skeleton-row {
|
|
592
|
+
pointer-events: none;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.skeleton-bone {
|
|
596
|
+
display: block;
|
|
597
|
+
border-radius: 4px;
|
|
598
|
+
background-color: var(--color-overlay-neutral-2, #fbfbfb33);
|
|
599
|
+
animation: skeleton-pulse 1.4s ease-in-out infinite;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.skeleton-title {
|
|
603
|
+
width: 40%;
|
|
604
|
+
height: 22px;
|
|
605
|
+
margin-bottom: 8px;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.skeleton-subtitle {
|
|
609
|
+
width: 60%;
|
|
610
|
+
height: 14px;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.skeleton-card {
|
|
614
|
+
display: flex;
|
|
615
|
+
flex-direction: column;
|
|
616
|
+
height: 115px;
|
|
617
|
+
border: 1px solid var(--color-border-subtle, #fbfbfb0d);
|
|
618
|
+
border-radius: 14px;
|
|
619
|
+
background-color: var(--color-overlay-neutral-1, #fbfbfb1a);
|
|
620
|
+
overflow: hidden;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.skeleton-card-image {
|
|
624
|
+
width: 100%;
|
|
625
|
+
height: 70px;
|
|
626
|
+
border-radius: 0;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.skeleton-card-body {
|
|
630
|
+
display: flex;
|
|
631
|
+
justify-content: end;
|
|
632
|
+
height: 50px;
|
|
633
|
+
gap: 8px;
|
|
634
|
+
padding: 12px;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.skeleton-card-button {
|
|
638
|
+
width: 30%;
|
|
639
|
+
height: 25px;
|
|
640
|
+
}
|
|
641
|
+
*/`
|
|
542
642
|
};
|
|
543
|
-
function oe(
|
|
544
|
-
ie(
|
|
545
|
-
const v = () =>
|
|
643
|
+
function oe(D, t) {
|
|
644
|
+
ie(t, !0), Pe(D, Ye);
|
|
645
|
+
const v = () => Ge(Ve, "$_", S), [S, A] = Me(), h = o(t, "endpoint", 7), l = o(t, "session", 7), k = o(t, "requiresOptin", 7, !1), c = o(t, "language", 7, "en"), b = o(t, "outerWheelAsset", 7, null), y = o(t, "wheelButtonAsset", 7, null), z = o(t, "backgroundVideoAsset", 7, null), i = o(t, "liteMode", 7, !1), j = 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
646
|
function de() {
|
|
547
647
|
try {
|
|
548
648
|
const n = document.createElement("canvas").getContext("webgl");
|
|
549
649
|
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(
|
|
650
|
+
const g = n.getExtension("WEBGL_debug_renderer_info");
|
|
651
|
+
if (!g) return !1;
|
|
652
|
+
const u = n.getParameter(g.UNMASKED_RENDERER_WEBGL).toLowerCase();
|
|
653
|
+
return /mali-g[0-7]\d(?!\d)|xclipse [0-5]\d\d|adreno \(tm\) [2-6]\d\d/.test(u);
|
|
554
654
|
} catch {
|
|
555
655
|
return !1;
|
|
556
656
|
}
|
|
557
657
|
}
|
|
558
|
-
const pe = !
|
|
559
|
-
|
|
658
|
+
const pe = !M() && !se && (le <= 4 || ue <= 4 || de()), G = B(() => i() || pe);
|
|
659
|
+
Re({ withLocale: "en", translations: {} });
|
|
560
660
|
const ge = () => {
|
|
561
|
-
let e = new URL(
|
|
661
|
+
let e = new URL(j());
|
|
562
662
|
fetch(e.href).then((n) => n.json()).then((n) => {
|
|
563
|
-
Object.keys(n).forEach((
|
|
564
|
-
|
|
663
|
+
Object.keys(n).forEach((g) => {
|
|
664
|
+
Y(g, n[g]);
|
|
565
665
|
});
|
|
566
666
|
}).catch((n) => {
|
|
567
667
|
console.log(n);
|
|
568
668
|
});
|
|
569
669
|
};
|
|
570
670
|
Object.keys(re).forEach((e) => {
|
|
571
|
-
|
|
572
|
-
}),
|
|
671
|
+
Y(e, re[e]);
|
|
672
|
+
}), Z(c());
|
|
573
673
|
const ce = () => {
|
|
574
|
-
|
|
674
|
+
Z(c());
|
|
575
675
|
};
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}),
|
|
676
|
+
Le(() => {
|
|
677
|
+
j() && ge();
|
|
678
|
+
}), qe(() => {
|
|
579
679
|
ce();
|
|
580
680
|
});
|
|
581
|
-
let
|
|
681
|
+
let w = T(!1), p = T(He([])), L = T(!1), P = T(!1), f = T(null), q = T(!1);
|
|
582
682
|
const he = async () => {
|
|
583
|
-
a(
|
|
683
|
+
a(w, !0);
|
|
584
684
|
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(
|
|
685
|
+
l() && n.append("X-SessionId", l());
|
|
686
|
+
const g = { method: "GET", headers: n, cache: "no-store" };
|
|
687
|
+
e.searchParams.append("filter", "wheelOfFortune"), fetch(e, g).then((u) => u.json()).then((u) => {
|
|
688
|
+
if (u && u.errorMessage?.trim() === "InvalidSessionId") {
|
|
689
|
+
a(P, !0), a(w, !1);
|
|
590
690
|
return;
|
|
591
691
|
}
|
|
592
|
-
if (
|
|
593
|
-
a(
|
|
692
|
+
if (u?.items?.program?.canClaim) {
|
|
693
|
+
a(p, u?.items?.program, !0), a(w, !1);
|
|
594
694
|
return;
|
|
595
695
|
}
|
|
596
|
-
a(
|
|
597
|
-
}).catch((
|
|
598
|
-
console.log(
|
|
599
|
-
}).finally(() =>
|
|
600
|
-
|
|
601
|
-
|
|
696
|
+
a(p, u?.items, !0);
|
|
697
|
+
}).catch((u) => {
|
|
698
|
+
console.log(u), a(L, !0);
|
|
699
|
+
}).finally(() => {
|
|
700
|
+
a(w, !1), R();
|
|
701
|
+
});
|
|
702
|
+
}, me = ["wheelOfFortune", "flipCoin"].map((e) => `Types[]=${e}`).join(","), fe = async () => {
|
|
703
|
+
a(w, !0);
|
|
602
704
|
const e = new URL(`${h()}/v1/wof/lotteries`), n = new Headers();
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
if (
|
|
607
|
-
a(
|
|
705
|
+
l() && n.append("X-SessionId", l()), e.searchParams.append("filter", me);
|
|
706
|
+
try {
|
|
707
|
+
const g = await (await fetch(e, { method: "GET", headers: n, cache: "no-store" })).json();
|
|
708
|
+
if (g?.errorMessage?.trim() === "InvalidSessionId") {
|
|
709
|
+
a(P, !0);
|
|
608
710
|
return;
|
|
609
711
|
}
|
|
610
|
-
a(
|
|
611
|
-
}
|
|
612
|
-
console.log(
|
|
613
|
-
}
|
|
614
|
-
|
|
712
|
+
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);
|
|
713
|
+
} catch (g) {
|
|
714
|
+
console.log(g), a(L, !0);
|
|
715
|
+
} finally {
|
|
716
|
+
a(w, !1), R();
|
|
717
|
+
}
|
|
718
|
+
}, be = (e) => e?.type?.toLowerCase() === "flipcoin", R = () => {
|
|
719
|
+
const e = Array.isArray(r(p)) ? r(p).length : r(p) ? 1 : 0, n = !!l() && !r(P);
|
|
720
|
+
window.postMessage(
|
|
721
|
+
{
|
|
722
|
+
type: "event_hub_accessed",
|
|
723
|
+
isLoggedIn: n,
|
|
724
|
+
hasMiniGames: n && !r(L) ? e > 0 : null
|
|
725
|
+
},
|
|
726
|
+
window.location.href
|
|
727
|
+
);
|
|
728
|
+
}, K = (e) => {
|
|
615
729
|
if (e.data)
|
|
616
730
|
switch (e.data.type) {
|
|
617
731
|
case "PlayMiniGame":
|
|
618
|
-
a(
|
|
732
|
+
a(f, r(p).find((n) => n.id === e.data.programId), !0);
|
|
619
733
|
break;
|
|
620
734
|
case "CloseMiniGame":
|
|
621
|
-
a(
|
|
735
|
+
a(f, null), R();
|
|
622
736
|
break;
|
|
623
737
|
case "PrizeGameRemainingTimesUpdated":
|
|
624
|
-
a(
|
|
738
|
+
a(f, e.data.data, !0), a(p, r(p).map((n) => n.id === e.data.data.id ? e.data.data : n), !0);
|
|
625
739
|
break;
|
|
626
740
|
}
|
|
627
741
|
};
|
|
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);
|
|
742
|
+
We(() => (l() || setTimeout(R, 0), l() && (k() ? he() : fe()), window.addEventListener("message", K), () => {
|
|
743
|
+
window.removeEventListener("message", K);
|
|
635
744
|
}));
|
|
636
|
-
var
|
|
745
|
+
var ye = {
|
|
637
746
|
get endpoint() {
|
|
638
747
|
return h();
|
|
639
748
|
},
|
|
@@ -641,10 +750,10 @@ function oe(x, r) {
|
|
|
641
750
|
h(e), s();
|
|
642
751
|
},
|
|
643
752
|
get session() {
|
|
644
|
-
return
|
|
753
|
+
return l();
|
|
645
754
|
},
|
|
646
755
|
set session(e) {
|
|
647
|
-
|
|
756
|
+
l(e), s();
|
|
648
757
|
},
|
|
649
758
|
get requiresOptin() {
|
|
650
759
|
return k();
|
|
@@ -653,133 +762,157 @@ function oe(x, r) {
|
|
|
653
762
|
k(e), s();
|
|
654
763
|
},
|
|
655
764
|
get language() {
|
|
656
|
-
return
|
|
765
|
+
return c();
|
|
657
766
|
},
|
|
658
767
|
set language(e = "en") {
|
|
659
|
-
|
|
768
|
+
c(e), s();
|
|
660
769
|
},
|
|
661
770
|
get outerWheelAsset() {
|
|
662
|
-
return
|
|
771
|
+
return b();
|
|
663
772
|
},
|
|
664
773
|
set outerWheelAsset(e = null) {
|
|
665
|
-
|
|
774
|
+
b(e), s();
|
|
666
775
|
},
|
|
667
776
|
get wheelButtonAsset() {
|
|
668
|
-
return
|
|
777
|
+
return y();
|
|
669
778
|
},
|
|
670
779
|
set wheelButtonAsset(e = null) {
|
|
671
|
-
|
|
780
|
+
y(e), s();
|
|
672
781
|
},
|
|
673
782
|
get backgroundVideoAsset() {
|
|
674
|
-
return
|
|
783
|
+
return z();
|
|
675
784
|
},
|
|
676
785
|
set backgroundVideoAsset(e = null) {
|
|
677
|
-
|
|
786
|
+
z(e), s();
|
|
678
787
|
},
|
|
679
788
|
get liteMode() {
|
|
680
|
-
return
|
|
789
|
+
return i();
|
|
681
790
|
},
|
|
682
791
|
set liteMode(e = !1) {
|
|
683
|
-
|
|
792
|
+
i(e), s();
|
|
684
793
|
},
|
|
685
794
|
get translationurl() {
|
|
686
|
-
return
|
|
795
|
+
return j();
|
|
687
796
|
},
|
|
688
797
|
set translationurl(e) {
|
|
689
|
-
|
|
798
|
+
j(e), s();
|
|
690
799
|
}
|
|
691
|
-
},
|
|
800
|
+
}, H = Ue(), ve = I(H);
|
|
692
801
|
{
|
|
693
|
-
var
|
|
694
|
-
var n =
|
|
695
|
-
|
|
696
|
-
},
|
|
697
|
-
var n =
|
|
802
|
+
var ke = (e) => {
|
|
803
|
+
var n = Ie();
|
|
804
|
+
C(e, n);
|
|
805
|
+
}, we = (e) => {
|
|
806
|
+
var n = Fe(), g = Q(n);
|
|
698
807
|
{
|
|
699
|
-
var
|
|
808
|
+
var u = (d) => {
|
|
700
809
|
ne(d, {
|
|
701
810
|
get outerWheelAsset() {
|
|
702
|
-
return
|
|
811
|
+
return b();
|
|
703
812
|
},
|
|
704
813
|
get wheelButtonAsset() {
|
|
705
|
-
return
|
|
814
|
+
return y();
|
|
706
815
|
},
|
|
707
816
|
get backgroundVideoAsset() {
|
|
708
|
-
return
|
|
817
|
+
return z();
|
|
709
818
|
},
|
|
710
819
|
get language() {
|
|
711
|
-
return
|
|
820
|
+
return c();
|
|
712
821
|
},
|
|
713
822
|
get liteMode() {
|
|
714
|
-
return
|
|
823
|
+
return r(G);
|
|
715
824
|
}
|
|
716
825
|
});
|
|
717
|
-
},
|
|
826
|
+
}, Te = (d) => {
|
|
827
|
+
{
|
|
828
|
+
let m = B(() => !r(q));
|
|
829
|
+
Oe(d, {
|
|
830
|
+
get program() {
|
|
831
|
+
return r(f);
|
|
832
|
+
},
|
|
833
|
+
get endpoint() {
|
|
834
|
+
return h();
|
|
835
|
+
},
|
|
836
|
+
get language() {
|
|
837
|
+
return c();
|
|
838
|
+
},
|
|
839
|
+
get session() {
|
|
840
|
+
return l();
|
|
841
|
+
},
|
|
842
|
+
get showBackButton() {
|
|
843
|
+
return r(m);
|
|
844
|
+
},
|
|
845
|
+
get liteMode() {
|
|
846
|
+
return r(G);
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
}, Se = B(() => r(f) && be(r(f))), Ae = (d) => {
|
|
718
851
|
{
|
|
719
|
-
let
|
|
852
|
+
let m = B(() => !r(q));
|
|
720
853
|
ne(d, {
|
|
721
854
|
get program() {
|
|
722
|
-
return
|
|
855
|
+
return r(f);
|
|
723
856
|
},
|
|
724
857
|
get endpoint() {
|
|
725
858
|
return h();
|
|
726
859
|
},
|
|
727
860
|
get language() {
|
|
728
|
-
return
|
|
861
|
+
return c();
|
|
729
862
|
},
|
|
730
863
|
get session() {
|
|
731
|
-
return
|
|
864
|
+
return l();
|
|
732
865
|
},
|
|
733
866
|
get outerWheelAsset() {
|
|
734
|
-
return
|
|
867
|
+
return b();
|
|
735
868
|
},
|
|
736
869
|
get wheelButtonAsset() {
|
|
737
|
-
return
|
|
870
|
+
return y();
|
|
738
871
|
},
|
|
739
872
|
get backgroundVideoAsset() {
|
|
740
|
-
return
|
|
873
|
+
return z();
|
|
741
874
|
},
|
|
742
875
|
get showBackButton() {
|
|
743
|
-
return
|
|
876
|
+
return r(m);
|
|
744
877
|
},
|
|
745
878
|
get liteMode() {
|
|
746
|
-
return
|
|
879
|
+
return r(G);
|
|
747
880
|
}
|
|
748
881
|
});
|
|
749
882
|
}
|
|
750
|
-
},
|
|
751
|
-
var
|
|
752
|
-
|
|
753
|
-
var U =
|
|
754
|
-
|
|
755
|
-
|
|
883
|
+
}, xe = (d) => {
|
|
884
|
+
var m = Je(), x = Q(m), W = I(x), _ = J(W, !0), De = $(W, 2), je = J(De, !0);
|
|
885
|
+
F(x);
|
|
886
|
+
var U = $(x, 2);
|
|
887
|
+
Be(U, 21, () => r(p), Ne, (V, O) => {
|
|
888
|
+
Ee(V, {
|
|
756
889
|
get program() {
|
|
757
|
-
return
|
|
890
|
+
return r(O);
|
|
758
891
|
}
|
|
759
892
|
});
|
|
760
|
-
}),
|
|
761
|
-
(
|
|
762
|
-
_
|
|
893
|
+
}), F(U), ee(
|
|
894
|
+
(V, O) => {
|
|
895
|
+
E(_, V), E(je, O);
|
|
763
896
|
},
|
|
764
897
|
[() => v()("hubTitle"), () => v()("hubSubtitle")]
|
|
765
|
-
),
|
|
766
|
-
},
|
|
767
|
-
var
|
|
768
|
-
|
|
898
|
+
), C(d, m);
|
|
899
|
+
}, Ce = (d) => {
|
|
900
|
+
var m = Ke(), x = I(m), W = J(x, !0);
|
|
901
|
+
F(m), ee((_) => E(W, _), [() => v()("noContent")]), C(d, m);
|
|
769
902
|
};
|
|
770
|
-
|
|
771
|
-
!
|
|
903
|
+
X(g, (d) => {
|
|
904
|
+
!l() || r(P) ? d(u) : r(Se) ? d(Te, 1) : r(f) ? d(Ae, 2) : r(p)?.length > 1 ? d(xe, 3) : d(Ce, -1);
|
|
772
905
|
});
|
|
773
906
|
}
|
|
774
|
-
|
|
907
|
+
C(e, n);
|
|
775
908
|
};
|
|
776
|
-
|
|
777
|
-
|
|
909
|
+
X(ve, (e) => {
|
|
910
|
+
r(w) ? e(ke) : e(we, -1);
|
|
778
911
|
});
|
|
779
912
|
}
|
|
780
|
-
|
|
781
|
-
var
|
|
782
|
-
return
|
|
913
|
+
F(H), C(D, H);
|
|
914
|
+
var ze = ae(ye);
|
|
915
|
+
return A(), ze;
|
|
783
916
|
}
|
|
784
917
|
te(
|
|
785
918
|
oe,
|
|
@@ -798,97 +931,97 @@ te(
|
|
|
798
931
|
[],
|
|
799
932
|
{ mode: "open" }
|
|
800
933
|
);
|
|
801
|
-
function
|
|
802
|
-
ie(
|
|
803
|
-
let v = o(
|
|
804
|
-
var
|
|
934
|
+
function Ze(D, t) {
|
|
935
|
+
ie(t, !0);
|
|
936
|
+
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), k = o(t, "wheelButtonAsset", 7, null), c = o(t, "backgroundVideoAsset", 7, null), b = o(t, "liteMode", 7, !1), y = o(t, "translationurl", 7);
|
|
937
|
+
var z = {
|
|
805
938
|
get endpoint() {
|
|
806
939
|
return v();
|
|
807
940
|
},
|
|
808
|
-
set endpoint(
|
|
809
|
-
v(
|
|
941
|
+
set endpoint(i) {
|
|
942
|
+
v(i), s();
|
|
810
943
|
},
|
|
811
944
|
get session() {
|
|
812
|
-
return
|
|
945
|
+
return S();
|
|
813
946
|
},
|
|
814
|
-
set session(
|
|
815
|
-
|
|
947
|
+
set session(i) {
|
|
948
|
+
S(i), s();
|
|
816
949
|
},
|
|
817
950
|
get requiresOptin() {
|
|
818
|
-
return
|
|
951
|
+
return A();
|
|
819
952
|
},
|
|
820
|
-
set requiresOptin(
|
|
821
|
-
|
|
953
|
+
set requiresOptin(i = !1) {
|
|
954
|
+
A(i), s();
|
|
822
955
|
},
|
|
823
956
|
get language() {
|
|
824
957
|
return h();
|
|
825
958
|
},
|
|
826
|
-
set language(
|
|
827
|
-
h(
|
|
959
|
+
set language(i = "en") {
|
|
960
|
+
h(i), s();
|
|
828
961
|
},
|
|
829
962
|
get outerWheelAsset() {
|
|
830
|
-
return
|
|
963
|
+
return l();
|
|
831
964
|
},
|
|
832
|
-
set outerWheelAsset(
|
|
833
|
-
|
|
965
|
+
set outerWheelAsset(i = null) {
|
|
966
|
+
l(i), s();
|
|
834
967
|
},
|
|
835
968
|
get wheelButtonAsset() {
|
|
836
969
|
return k();
|
|
837
970
|
},
|
|
838
|
-
set wheelButtonAsset(
|
|
839
|
-
k(
|
|
971
|
+
set wheelButtonAsset(i = null) {
|
|
972
|
+
k(i), s();
|
|
840
973
|
},
|
|
841
974
|
get backgroundVideoAsset() {
|
|
842
|
-
return
|
|
975
|
+
return c();
|
|
843
976
|
},
|
|
844
|
-
set backgroundVideoAsset(
|
|
845
|
-
|
|
977
|
+
set backgroundVideoAsset(i = null) {
|
|
978
|
+
c(i), s();
|
|
846
979
|
},
|
|
847
980
|
get liteMode() {
|
|
848
|
-
return
|
|
981
|
+
return b();
|
|
849
982
|
},
|
|
850
|
-
set liteMode(
|
|
851
|
-
|
|
983
|
+
set liteMode(i = !1) {
|
|
984
|
+
b(i), s();
|
|
852
985
|
},
|
|
853
986
|
get translationurl() {
|
|
854
|
-
return
|
|
987
|
+
return y();
|
|
855
988
|
},
|
|
856
|
-
set translationurl(
|
|
857
|
-
|
|
989
|
+
set translationurl(i) {
|
|
990
|
+
y(i), s();
|
|
858
991
|
}
|
|
859
992
|
};
|
|
860
|
-
return oe(
|
|
993
|
+
return oe(D, {
|
|
861
994
|
get endpoint() {
|
|
862
995
|
return v();
|
|
863
996
|
},
|
|
864
997
|
get session() {
|
|
865
|
-
return
|
|
998
|
+
return S();
|
|
866
999
|
},
|
|
867
1000
|
get requiresOptin() {
|
|
868
|
-
return
|
|
1001
|
+
return A();
|
|
869
1002
|
},
|
|
870
1003
|
get language() {
|
|
871
1004
|
return h();
|
|
872
1005
|
},
|
|
873
1006
|
get outerWheelAsset() {
|
|
874
|
-
return
|
|
1007
|
+
return l();
|
|
875
1008
|
},
|
|
876
1009
|
get wheelButtonAsset() {
|
|
877
1010
|
return k();
|
|
878
1011
|
},
|
|
879
1012
|
get backgroundVideoAsset() {
|
|
880
|
-
return
|
|
1013
|
+
return c();
|
|
881
1014
|
},
|
|
882
1015
|
get liteMode() {
|
|
883
|
-
return
|
|
1016
|
+
return b();
|
|
884
1017
|
},
|
|
885
1018
|
get translationurl() {
|
|
886
|
-
return
|
|
1019
|
+
return y();
|
|
887
1020
|
}
|
|
888
|
-
}), ae(
|
|
1021
|
+
}), ae(z);
|
|
889
1022
|
}
|
|
890
1023
|
customElements.define("mini-games-hub", te(
|
|
891
|
-
|
|
1024
|
+
Ze,
|
|
892
1025
|
{
|
|
893
1026
|
endpoint: { attribute: "endpoint", type: "String" },
|
|
894
1027
|
session: { attribute: "session", type: "String" },
|
|
@@ -904,5 +1037,5 @@ customElements.define("mini-games-hub", te(
|
|
|
904
1037
|
[]
|
|
905
1038
|
));
|
|
906
1039
|
export {
|
|
907
|
-
|
|
1040
|
+
Ze as M
|
|
908
1041
|
};
|