@everymatrix/mini-games-hub 0.1.10 → 0.1.12
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-B5IhlV0M.js → GameCard-CXYqCpVb.js} +17 -17
- package/components/{GameCard-Ct6vyiQG.cjs → GameCard-gg1cVpsy.cjs} +1 -1
- package/components/{GameCard-uj5ulL7F.js → GameCard-ohf1jOQF.js} +10 -10
- package/components/MiniGamesHub-4Wuwyw8q.js +1379 -0
- package/components/MiniGamesHub-C2510DM7.cjs +94 -0
- package/components/{MiniGamesHub-DhyHje6i.js → MiniGamesHub-C3xyZRdn.js} +33 -33
- package/components/MiniGamesHub-CQIi4Jso.js +1399 -0
- package/components/MiniGamesHub-CSZ3An74.js +1399 -0
- package/components/MiniGamesHub-CuvJDQTm.js +1379 -0
- package/components/{MiniGamesHub-A_QU55Ox.js → MiniGamesHub-DFNKphI6.js} +45 -45
- package/components/MiniGamesHub-DeVy4J4_.cjs +94 -0
- package/components/MiniGamesHub-Du6B-YVK.cjs +94 -0
- package/components/{WheelOfFortune-Dq5uFse9.cjs → WheelOfFortune-BV0VEpvD.js} +327 -5
- package/components/WheelOfFortune-BWKtsKH4.cjs +630 -0
- package/components/WheelOfFortune-B_ZNJW34.js +992 -0
- package/components/WheelOfFortune-DgJ0luD8.cjs +630 -0
- package/components/{WheelOfFortune-DIKqqSN0.js → WheelOfFortune-Dr-yB2xY.js} +189 -167
- package/components/{WheelOfFortune-C3QPcM9_.js → WheelOfFortune-p9qTycTU.js} +142 -123
- package/components/WheelOfFortuneDrawResults-B7udZBEV.js +301 -0
- package/components/WheelOfFortuneDrawResults-Ban46vUc.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-CYRN0Phi.js +276 -0
- package/components/{WheelOfFortuneHistory-CupBnftz.js → WheelOfFortuneHistory-COB7C1nL.js} +92 -92
- package/components/WheelOfFortuneHistory-Cda9YIPp.cjs +13 -0
- package/components/{WheelOfFortuneHistory-BbRdBjji.js → WheelOfFortuneHistory-T7NjHsHw.js} +82 -82
- package/components/{WheelOfFortuneRules-DHwDQaVu.cjs → WheelOfFortuneRules-CeD2_BcF.cjs} +1 -1
- package/components/{WheelOfFortuneRules-CIeBfSfY.js → WheelOfFortuneRules-DodXc6sB.js} +43 -43
- package/components/{WheelOfFortuneRules-CkNKWZhj.js → WheelOfFortuneRules-Dyq7AefM.js} +37 -37
- package/components/{WheelOfFortuneWheel-B6_1ieZG.js → WheelOfFortuneWheel-B7DOhfW5.js} +696 -671
- package/components/WheelOfFortuneWheel-CqMnfWH6.cjs +3 -0
- package/components/{WheelOfFortuneWheel-EAdiCZNZ.js → WheelOfFortuneWheel-D2fKZ64n.js} +778 -754
- package/components/{utils-B7FniaI2.js → utils-C7uxZXaZ.js} +109 -107
- package/components/{utils-B7DHb9g0.cjs → utils-DQIHJIDu.cjs} +2 -2
- package/components/{utils-CSOcFUAz.js → utils-d-JrZBJu.js} +106 -104
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/MiniGamesHub-D7WWtj1H.cjs +0 -94
- package/components/WheelOfFortuneDrawResults-BLYsEy7G.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-BOTcT7OI.js +0 -259
- package/components/WheelOfFortuneDrawResults-CL3AjYJb.js +0 -284
- package/components/WheelOfFortuneHistory-D0a33HzR.cjs +0 -13
- package/components/WheelOfFortuneWheel-BHsFZqlw.cjs +0 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import { W as He } from "./WheelOfFortuneHistory-
|
|
4
|
-
import { W as
|
|
5
|
-
import { W as
|
|
6
|
-
import { p as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
1
|
+
import { d as Ae, c as Se, a as Ce, t as Pe, p, o as Te, i as ae, e as We, W as Fe, k as v, s as W, r as Ge, l as oe, b as X, f as H, m as je, u as Le } from "./WheelOfFortuneWheel-B7DOhfW5.js";
|
|
2
|
+
import { D as Ie, aL as Me, aM as x, az as Re, S as Ye, Z as n, ar as o, ae as Z, I as Oe, aY as F, aT as c, aO as Ee, aP as De, aS as y, aD as d, aQ as Xe, aW as s, b5 as Ze } from "./utils-d-JrZBJu.js";
|
|
3
|
+
import { W as He } from "./WheelOfFortuneHistory-COB7C1nL.js";
|
|
4
|
+
import { W as Ve } from "./WheelOfFortuneDrawResults-CYRN0Phi.js";
|
|
5
|
+
import { W as Ue } from "./WheelOfFortuneRules-Dyq7AefM.js";
|
|
6
|
+
import { p as Ke } from "./constants-BYsDpbRv.js";
|
|
7
|
+
var Ne = H('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), Qe = H("<button> </button>"), qe = H('<div><!> <button><svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-17ly5gn"><path d="M6.41602 0.508789C6.52096 0.508793 6.59652 0.539241 6.66797 0.602539C6.7386 0.67644 6.76557 0.747068 6.76562 0.837891C6.76562 0.932337 6.7377 1.00571 6.66113 1.08203H6.66016L2.52344 5.21777L1.6543 6.08691H12.3633C12.475 6.08691 12.5456 6.11894 12.6084 6.18164C12.6712 6.24445 12.7034 6.31429 12.7031 6.4248C12.7029 6.53664 12.67 6.60779 12.6064 6.67188C12.5449 6.73387 12.4767 6.76611 12.3662 6.76562H1.6543L2.52344 7.63477L6.68066 11.791C6.75777 11.8681 6.77865 11.933 6.77637 12.0098C6.77383 12.0944 6.7457 12.1683 6.66797 12.249C6.58857 12.3195 6.50864 12.3512 6.40918 12.3545C6.33349 12.357 6.26929 12.3368 6.19238 12.2598L0.592773 6.66016C0.553631 6.62101 0.537222 6.59146 0.530273 6.57227C0.516661 6.53445 0.508264 6.48865 0.508789 6.43164C0.509411 6.36947 0.519283 6.31813 0.53418 6.27539C0.539753 6.25947 0.553255 6.23167 0.591797 6.19336L6.19238 0.592773C6.24602 0.539241 6.30834 0.508789 6.41602 0.508789Z" stroke="white" stroke-width="1.018" class="svelte-17ly5gn"></path></svg> <p class="svelte-17ly5gn"> </p></button> <div><h3 class="svelte-17ly5gn"> </h3> <p class="svelte-17ly5gn"> </p></div> <div></div> <div class="svelte-17ly5gn"><!></div> <!></div>');
|
|
8
|
+
const Je = {
|
|
9
9
|
hash: "svelte-17ly5gn",
|
|
10
10
|
code: `@keyframes svelte-17ly5gn-wheelBob {
|
|
11
11
|
0%, 100% {
|
|
@@ -547,7 +547,7 @@ const Qe = {
|
|
|
547
547
|
animation: svelte-17ly5gn-glowPulse 1700ms ease-in-out infinite;pointer-events:none;mix-blend-mode:screen;} .button-glow::before, .button-glow::after {content:"";position:absolute;inset:6%;border-radius:50%;background:radial-gradient(circle, rgba(255, 239, 127, 0.62), transparent 62%);filter:blur(16px);
|
|
548
548
|
animation: svelte-17ly5gn-glowRing 2300ms ease-in-out infinite;} .button-glow::after {inset:-10%;opacity:0.55;animation-duration:2900ms;animation-delay:-900ms;} .center-button {position:absolute;z-index:5;width:17%;left:50%;top:54%;translate:-50% -50%;padding:0;border:none;background:transparent;pointer-events:auto;user-select:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34));transform:scale(1);transform-origin:center;transition:filter 180ms ease, transform 180ms cubic-bezier(0.2, 0.9, 0.22, 1);} .center-button img {width:100%;height:auto;display:block;pointer-events:none;} .center-button:not(.is-pressing) {
|
|
549
549
|
animation: svelte-17ly5gn-middleButtonIdleZoomGlow 1450ms ease-in-out infinite;} .center-button.is-pressing {
|
|
550
|
-
animation: svelte-17ly5gn-middleButtonPress 560ms cubic-bezier(0.16, 0.95, 0.22, 1) both;} .center-button:hover {filter:drop-shadow(0 10px 16px rgba(0, 0, 0, 0.36)) brightness(1.05);} .center-button:active {transform:scale(0.94);filter:drop-shadow(0 5px 9px rgba(0, 0, 0, 0.32)) brightness(0.98);} .center-button:focus-visible {outline:3px solid rgba(255, 237, 126, 0.78);outline-offset:5px;border-radius:50%;} .wheel-wrapper.is-spin-active .center-button:not(.is-pressing) {
|
|
550
|
+
animation: svelte-17ly5gn-middleButtonPress 560ms cubic-bezier(0.16, 0.95, 0.22, 1) both;} .center-button:hover {filter:drop-shadow(0 10px 16px rgba(0, 0, 0, 0.36)) brightness(1.05);} .center-button:active {transform:scale(0.94);filter:drop-shadow(0 5px 9px rgba(0, 0, 0, 0.32)) brightness(0.98);} .center-button:focus-visible {outline:3px solid rgba(255, 237, 126, 0.78);outline-offset:5px;border-radius:50%;} .center-button:disabled {pointer-events:none;} .wheel-wrapper.is-spin-active .center-button:not(.is-pressing) {
|
|
551
551
|
animation: svelte-17ly5gn-centerButtonSpinBreath 1050ms ease-in-out infinite;} .session-badge {position:absolute;top:55%;left:50%;transform:translate(-50%, -50%);z-index:8;width:58%;padding:10px 12px;background:rgba(8, 4, 0, 0.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;} .session-badge .session-badge-title {color:#ffffff;font-size:12px;font-weight:700;letter-spacing:0.2px;} .session-badge .session-badge-body {color:rgba(255, 255, 255, 0.6509803922);font-size:10px;line-height:1.45;margin:0;} .session-badge .session-badge-close {margin-top:8px;padding:4px 14px;background:rgba(255, 255, 255, 0.12);border:1px solid rgba(255, 255, 255, 0.22);border-radius:6px;color:#ffffff;font-size:11px;font-weight:600;cursor:pointer;transition:background 150ms ease;} .session-badge .session-badge-close:hover {background:rgba(255, 255, 255, 0.2);} .wheel-loading-spinner {position:absolute;top:54%;left:50%;translate:-50% -50%;opacity:0;transition:opacity 300ms ease;pointer-events:none;z-index:10;} .wheel-loading-spinner::before {content:"";display:block;width:clamp(44px, 11vw, 60px);height:clamp(44px, 11vw, 60px);border-radius:50%;border:2px solid rgba(255, 220, 100, 0.12);border-top-color:rgba(255, 210, 50, 0.65);
|
|
552
552
|
animation: svelte-17ly5gn-wofSpinnerRotate 900ms linear infinite;} .wheel-wrapper.is-assets-loading ~ .wheel-loading-spinner {
|
|
553
553
|
animation: svelte-17ly5gn-wofSpinnerFadeIn 300ms ease 700ms forwards;} .swipe-hint-wrap {position:absolute;inset:0;z-index:8;pointer-events:none;transition:opacity 600ms ease, transform 600ms ease;} .swipe-hint {position:relative;width:100%;height:70%;display:flex;align-items:center;justify-content:center;} .swipe-hand {display:inline-block;font-size:clamp(52px, 14vw, 72px);line-height:1;filter:drop-shadow(0 4px 14px rgba(0, 0, 0, 0.873));transform-origin:50% 80%;
|
|
@@ -601,8 +601,9 @@ const Qe = {
|
|
|
601
601
|
@media (max-width: 719px) { .wheel-video-background {-webkit-mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);}
|
|
602
602
|
}
|
|
603
603
|
@media (min-width: 720px) { .wheel-video-background {-webkit-mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);}
|
|
604
|
-
} .wheel-video-background.is-ready {opacity:0.2;} .back-button-container {display:flex;align-items:center;justify-content:start;line-height:20px;gap:6px;width:100%;padding:10px;background-color:transparent;color:var(--color-text-default, white);border:none;} .back-button-container svg {background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));padding:5px;width:15px;height:15px;border-radius:50%;} .wof-title {display:flex;flex-direction:column;justify-content:center;gap:6px;position:relative;z-index:2;} .wof-title h3 {text-align:center;margin:0;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(20px, 5.5vw, 28px);line-height:1.05;} .wof-title p {text-align:center;margin:0 0 clamp(10px, 3vw, 16px);color:var(--color-text-default, rgba(238, 246, 255, 0.96));font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;} .wof-tabs {display:flex;border-radius:50px;background-color:var(--color-tabs, rgba(251, 251, 251, 0.1019607843));padding:6px;width:90%;justify-content:center;margin-bottom:12px;} .wof-tabs .tab {padding:5px;width:100%;color:var(--color-text-default, #ffffff);border-radius:50px;background-color:transparent;border:none;cursor:pointer;} .wof-tabs .active {background-color:var(--color-tabs-selected, rgba(251, 251, 251, 0.2));} .hidden {display:none !important;} .wheel-container {width:var(--wof-size, clamp(276px, 100vw, 430px));position:relative;z-index:1;margin-block:clamp(-18px, -4vw, -32px);
|
|
605
|
-
animation: svelte-17ly5gn-wheelBob 5000ms ease-in-out infinite;will-change:transform;} .spins-info {display:flex;align-items:center;gap:8px;font-size:clamp(14px, 4vw, 19px);font-weight:400;color:var(--color-text-default, rgba(238, 246, 255, 0.86));position:relative;z-index:2;} .spins-info .spins-count {display:flex;align-items:center;gap:6px;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(16px, 4.5vw, 20px);} .
|
|
604
|
+
} .wheel-video-background.is-ready {opacity:0.2;} .back-button-container {display:flex;align-items:center;justify-content:start;line-height:20px;gap:6px;width:100%;padding:10px;background-color:transparent;color:var(--color-text-default, white);border:none;} .back-button-container svg {background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));padding:5px;width:15px;height:15px;border-radius:50%;} .wof-title {display:flex;flex-direction:column;justify-content:center;gap:6px;position:relative;z-index:2;} .wof-title h3 {text-align:center;margin:0;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(20px, 5.5vw, 28px);line-height:1.05;} .wof-title p {text-align:center;margin:0 0 clamp(10px, 3vw, 16px);color:var(--color-text-default, rgba(238, 246, 255, 0.96));font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;} .wof-tabs {display:flex;border-radius:50px;background-color:var(--color-tabs, rgba(251, 251, 251, 0.1019607843));padding:6px;width:90%;justify-content:center;margin-bottom:12px;position:relative;z-index:2;} .wof-tabs .tab {padding:5px;width:100%;color:var(--color-text-default, #ffffff);border-radius:50px;background-color:transparent;border:none;cursor:pointer;} .wof-tabs .active {background-color:var(--color-tabs-selected, rgba(251, 251, 251, 0.2));} .hidden {display:none !important;} .wheel-container {width:var(--wof-size, clamp(276px, 100vw, 430px));position:relative;z-index:1;margin-block:clamp(-18px, -4vw, -32px);
|
|
605
|
+
animation: svelte-17ly5gn-wheelBob 5000ms ease-in-out infinite;will-change:transform;} .spins-info {display:flex;align-items:center;gap:8px;font-size:clamp(14px, 4vw, 19px);font-weight:400;color:var(--color-text-default, rgba(238, 246, 255, 0.86));position:relative;z-index:2;} .spins-info .spins-count {display:flex;align-items:center;gap:6px;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(16px, 4.5vw, 20px);} .spins-info .spins-count-loader {display:inline-block;width:14px;height:14px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
|
|
606
|
+
animation: svelte-17ly5gn-wofSpinnerRotate 600ms linear infinite;} .countdown-text {color:var(--color-overlay-neutral-4, rgba(255, 255, 255, 0.6509803922));font-size:clamp(13px, 3.8vw, 18px);text-align:center;position:relative;z-index:2;} .countdown-text .time-segment {font-variant-numeric:tabular-nums;} .spin-button {min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-style:italic;font-weight:900;cursor:pointer;position:relative;z-index:2;
|
|
606
607
|
animation: svelte-17ly5gn-spinButtonZoomGlow 1800ms ease-in-out infinite;transform-origin:50% 50%;transition:opacity 260ms ease, transform 160ms ease, filter 160ms ease;} .spin-button:active {transform:translateY(2px) scale(0.98);animation-play-state:paused;} .spin-button:disabled {
|
|
607
608
|
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;}
|
|
608
609
|
@keyframes svelte-17ly5gn-spinOverlayIn {
|
|
@@ -637,13 +638,13 @@ const Qe = {
|
|
|
637
638
|
animation: none;}
|
|
638
639
|
}`
|
|
639
640
|
};
|
|
640
|
-
function
|
|
641
|
-
|
|
642
|
-
const _ = () =>
|
|
643
|
-
|
|
644
|
-
const
|
|
645
|
-
let f =
|
|
646
|
-
const
|
|
641
|
+
function $e(V, i) {
|
|
642
|
+
Ie(i, !0), Ce(V, Je);
|
|
643
|
+
const _ = () => Ee(De, "$_", ie), [ie, se] = Xe();
|
|
644
|
+
Me.extend(Pe);
|
|
645
|
+
const le = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", t = p(i, "program", 7, null), g = p(i, "endpoint", 7, null), b = p(i, "session", 7, null), G = p(i, "outerWheelAsset", 7, null), j = p(i, "wheelButtonAsset", 7, null), L = p(i, "backgroundVideoAsset", 7, null), I = p(i, "language", 7, "en"), M = p(i, "showBackButton", 7, !0), u = p(i, "liteMode", 7, !1), h = F(() => !g() || !t()), pe = F(() => !n(h) && (t()?.remainingTimes ?? 0) > 0), ce = F(() => n(h) ? Ke : t()?.partitions ?? []), l = ["history", "play", "rules"];
|
|
646
|
+
let f = x(Re(l[1]));
|
|
647
|
+
const de = (e) => {
|
|
647
648
|
e !== n(f) && (e === l[0] ? window.postMessage(
|
|
648
649
|
{
|
|
649
650
|
type: "event_wof_history_click",
|
|
@@ -653,61 +654,73 @@ function qe(Z, i) {
|
|
|
653
654
|
) : e === l[2] ? window.postMessage({ type: "event_wof_rules_click", name: t()?.name || null }, window.location.href) : window.postMessage(
|
|
654
655
|
{
|
|
655
656
|
type: "event_wof_accessed",
|
|
656
|
-
isUserLoggedIn: !n(
|
|
657
|
+
isUserLoggedIn: !n(h),
|
|
657
658
|
name: t()?.name || null,
|
|
658
659
|
availableSpins: t()?.remainingTimes || null
|
|
659
660
|
},
|
|
660
661
|
window.location.href
|
|
661
|
-
), o(
|
|
662
|
+
), o(Y, !1), o(f, e, !0));
|
|
662
663
|
};
|
|
663
|
-
let m =
|
|
664
|
-
|
|
665
|
-
if (
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
664
|
+
let m = x(null), R = x(!1), Y = x(!1), O = x(!1), B = x(!1), A = x(!1);
|
|
665
|
+
Ye(() => {
|
|
666
|
+
if (!u()) {
|
|
667
|
+
if (n(R))
|
|
668
|
+
o(B, !0), o(A, !1);
|
|
669
|
+
else if (n(B)) {
|
|
670
|
+
o(A, !0);
|
|
671
|
+
const e = setTimeout(
|
|
672
|
+
() => {
|
|
673
|
+
o(B, !1), o(A, !1);
|
|
674
|
+
},
|
|
675
|
+
350
|
|
676
|
+
);
|
|
677
|
+
return () => clearTimeout(e);
|
|
678
|
+
}
|
|
676
679
|
}
|
|
677
680
|
});
|
|
678
|
-
const
|
|
681
|
+
const ge = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), fe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), U = async () => {
|
|
679
682
|
if (!t()?.id || !g()) return;
|
|
680
683
|
const e = new URL(`${g()}/v1/wof/remainingTimes`), r = new Headers();
|
|
681
684
|
b() && r.append("X-SessionId", b()), e.searchParams.append("filter", `ProgramId[]=${t().id}`);
|
|
682
685
|
try {
|
|
683
|
-
const
|
|
686
|
+
const w = await (await fetch(e, { method: "GET", headers: r })).json();
|
|
684
687
|
let z = 0;
|
|
685
|
-
if (
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
+
if (w?.items?.length > 0) {
|
|
689
|
+
const re = w.items.find((Be) => Be.programId === t().id);
|
|
690
|
+
re && (z = +re.remainingTimes || 0);
|
|
688
691
|
}
|
|
689
|
-
const
|
|
692
|
+
const D = Ze({
|
|
690
693
|
...t(),
|
|
691
694
|
remainingTimes: z,
|
|
692
695
|
current: { ...t().current, remainingTimes: z }
|
|
693
696
|
});
|
|
694
|
-
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data:
|
|
697
|
+
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: D }, "*");
|
|
695
698
|
} catch (a) {
|
|
696
699
|
console.log(a);
|
|
700
|
+
} finally {
|
|
701
|
+
o(O, !1);
|
|
697
702
|
}
|
|
698
|
-
},
|
|
703
|
+
}, K = (e) => {
|
|
699
704
|
if (e.data)
|
|
700
705
|
switch (e.data.type) {
|
|
701
706
|
case "SpinAgain":
|
|
702
707
|
case "BackToWheel":
|
|
703
|
-
o(m, null),
|
|
708
|
+
o(m, null), e.data.skipFetch ? o(O, !0) : U();
|
|
704
709
|
break;
|
|
705
710
|
}
|
|
706
711
|
};
|
|
707
|
-
|
|
708
|
-
|
|
712
|
+
Te(() => (window.postMessage(
|
|
713
|
+
{
|
|
714
|
+
type: "event_wof_accessed",
|
|
715
|
+
isUserLoggedIn: !n(h),
|
|
716
|
+
name: t()?.name || null,
|
|
717
|
+
availableSpins: t()?.remainingTimes || null
|
|
718
|
+
},
|
|
719
|
+
window.location.href
|
|
720
|
+
), window.addEventListener("message", K), () => {
|
|
721
|
+
window.removeEventListener("message", K);
|
|
709
722
|
}));
|
|
710
|
-
var
|
|
723
|
+
var me = {
|
|
711
724
|
get program() {
|
|
712
725
|
return t();
|
|
713
726
|
},
|
|
@@ -727,85 +740,85 @@ function qe(Z, i) {
|
|
|
727
740
|
b(e), d();
|
|
728
741
|
},
|
|
729
742
|
get outerWheelAsset() {
|
|
730
|
-
return
|
|
743
|
+
return G();
|
|
731
744
|
},
|
|
732
745
|
set outerWheelAsset(e = null) {
|
|
733
|
-
|
|
746
|
+
G(e), d();
|
|
734
747
|
},
|
|
735
748
|
get wheelButtonAsset() {
|
|
736
|
-
return
|
|
749
|
+
return j();
|
|
737
750
|
},
|
|
738
751
|
set wheelButtonAsset(e = null) {
|
|
739
|
-
|
|
752
|
+
j(e), d();
|
|
740
753
|
},
|
|
741
754
|
get backgroundVideoAsset() {
|
|
742
|
-
return
|
|
755
|
+
return L();
|
|
743
756
|
},
|
|
744
757
|
set backgroundVideoAsset(e = null) {
|
|
745
|
-
|
|
758
|
+
L(e), d();
|
|
746
759
|
},
|
|
747
760
|
get language() {
|
|
748
|
-
return
|
|
761
|
+
return I();
|
|
749
762
|
},
|
|
750
763
|
set language(e = "en") {
|
|
751
|
-
|
|
764
|
+
I(e), d();
|
|
752
765
|
},
|
|
753
766
|
get showBackButton() {
|
|
754
|
-
return
|
|
767
|
+
return M();
|
|
755
768
|
},
|
|
756
769
|
set showBackButton(e = !0) {
|
|
757
|
-
|
|
770
|
+
M(e), d();
|
|
758
771
|
},
|
|
759
772
|
get liteMode() {
|
|
760
|
-
return
|
|
773
|
+
return u();
|
|
761
774
|
},
|
|
762
775
|
set liteMode(e = !1) {
|
|
763
|
-
|
|
776
|
+
u(e), d();
|
|
764
777
|
}
|
|
765
|
-
},
|
|
766
|
-
let
|
|
767
|
-
var
|
|
778
|
+
}, S = qe();
|
|
779
|
+
let N;
|
|
780
|
+
var Q = c(S);
|
|
768
781
|
{
|
|
769
|
-
var
|
|
770
|
-
var r =
|
|
782
|
+
var be = (e) => {
|
|
783
|
+
var r = Ne();
|
|
771
784
|
let a;
|
|
772
785
|
r.muted = !0;
|
|
773
|
-
var
|
|
774
|
-
s(r),
|
|
775
|
-
a =
|
|
776
|
-
}),
|
|
786
|
+
var w = c(r);
|
|
787
|
+
s(r), Z(() => {
|
|
788
|
+
a = v(r, 1, "wheel-video-background svelte-17ly5gn", null, a, { "is-ready": n(Y) }), je(w, "src", L() || le);
|
|
789
|
+
}), Le("canplay", r, () => o(Y, !0)), X(e, r);
|
|
777
790
|
};
|
|
778
|
-
|
|
779
|
-
!
|
|
791
|
+
ae(Q, (e) => {
|
|
792
|
+
!u() && n(f) === l[1] && e(be);
|
|
780
793
|
});
|
|
781
794
|
}
|
|
782
|
-
var k =
|
|
783
|
-
let J;
|
|
784
|
-
var Q = h(c(k), 2), be = c(Q, !0);
|
|
785
|
-
s(Q), s(k);
|
|
786
|
-
var C = h(k, 2);
|
|
795
|
+
var k = y(Q, 2);
|
|
787
796
|
let q;
|
|
788
|
-
var
|
|
789
|
-
s(
|
|
790
|
-
var
|
|
791
|
-
|
|
792
|
-
var
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
+
var J = y(c(k), 2), ue = c(J, !0);
|
|
798
|
+
s(J), s(k);
|
|
799
|
+
var C = y(k, 2);
|
|
800
|
+
let $;
|
|
801
|
+
var E = c(C), he = c(E, !0);
|
|
802
|
+
s(E);
|
|
803
|
+
var ee = y(E, 2), we = c(ee, !0);
|
|
804
|
+
s(ee), s(C);
|
|
805
|
+
var P = y(C, 2);
|
|
806
|
+
let ne;
|
|
807
|
+
We(P, 20, () => l, (e) => e, (e, r) => {
|
|
808
|
+
var a = Qe();
|
|
809
|
+
let w;
|
|
797
810
|
var z = c(a, !0);
|
|
798
|
-
s(a),
|
|
799
|
-
(
|
|
800
|
-
|
|
811
|
+
s(a), Z(
|
|
812
|
+
(D) => {
|
|
813
|
+
w = v(a, 1, "tab svelte-17ly5gn", null, w, { active: n(f) === r }), W(z, D);
|
|
801
814
|
},
|
|
802
815
|
[() => _()(r)]
|
|
803
|
-
),
|
|
804
|
-
}), s(
|
|
805
|
-
var
|
|
806
|
-
let
|
|
807
|
-
var
|
|
808
|
-
Fe(
|
|
816
|
+
), oe("click", a, () => de(r)), X(e, a);
|
|
817
|
+
}), s(P);
|
|
818
|
+
var T = y(P, 2);
|
|
819
|
+
let te;
|
|
820
|
+
var xe = c(T);
|
|
821
|
+
Fe(xe, {
|
|
809
822
|
get program() {
|
|
810
823
|
return t();
|
|
811
824
|
},
|
|
@@ -816,24 +829,27 @@ function qe(Z, i) {
|
|
|
816
829
|
return b();
|
|
817
830
|
},
|
|
818
831
|
get outerWheelAsset() {
|
|
819
|
-
return
|
|
832
|
+
return G();
|
|
820
833
|
},
|
|
821
834
|
get wheelButtonAsset() {
|
|
822
|
-
return
|
|
835
|
+
return j();
|
|
823
836
|
},
|
|
824
837
|
get wheelSlices() {
|
|
825
|
-
return n(
|
|
838
|
+
return n(ce);
|
|
826
839
|
},
|
|
827
840
|
get isPlaceholder() {
|
|
828
|
-
return n(
|
|
841
|
+
return n(h);
|
|
829
842
|
},
|
|
830
843
|
get isWheelAvailable() {
|
|
831
|
-
return n(
|
|
844
|
+
return n(pe);
|
|
832
845
|
},
|
|
833
846
|
get liteMode() {
|
|
834
|
-
return
|
|
847
|
+
return u();
|
|
835
848
|
},
|
|
836
|
-
|
|
849
|
+
get remainingTimesLoading() {
|
|
850
|
+
return n(O);
|
|
851
|
+
},
|
|
852
|
+
onLogin: ge,
|
|
837
853
|
get spinResults() {
|
|
838
854
|
return n(m);
|
|
839
855
|
},
|
|
@@ -841,16 +857,16 @@ function qe(Z, i) {
|
|
|
841
857
|
o(m, e, !0);
|
|
842
858
|
},
|
|
843
859
|
get spinActive() {
|
|
844
|
-
return n(
|
|
860
|
+
return n(R);
|
|
845
861
|
},
|
|
846
862
|
set spinActive(e) {
|
|
847
|
-
o(
|
|
863
|
+
o(R, e, !0);
|
|
848
864
|
}
|
|
849
|
-
}), s(
|
|
850
|
-
var
|
|
865
|
+
}), s(T);
|
|
866
|
+
var ye = y(T, 2);
|
|
851
867
|
{
|
|
852
|
-
var
|
|
853
|
-
|
|
868
|
+
var ve = (e) => {
|
|
869
|
+
Ve(e, {
|
|
854
870
|
get result() {
|
|
855
871
|
return n(m);
|
|
856
872
|
},
|
|
@@ -860,11 +876,14 @@ function qe(Z, i) {
|
|
|
860
876
|
get session() {
|
|
861
877
|
return b();
|
|
862
878
|
},
|
|
863
|
-
|
|
879
|
+
get liteMode() {
|
|
880
|
+
return u();
|
|
881
|
+
},
|
|
882
|
+
onFetchRemainingTimes: U
|
|
864
883
|
});
|
|
865
|
-
},
|
|
884
|
+
}, ke = (e) => {
|
|
866
885
|
{
|
|
867
|
-
let r =
|
|
886
|
+
let r = F(() => t()?.id);
|
|
868
887
|
He(e, {
|
|
869
888
|
get programId() {
|
|
870
889
|
return n(r);
|
|
@@ -877,27 +896,27 @@ function qe(Z, i) {
|
|
|
877
896
|
}
|
|
878
897
|
});
|
|
879
898
|
}
|
|
880
|
-
},
|
|
881
|
-
|
|
899
|
+
}, ze = (e) => {
|
|
900
|
+
Ue(e, {
|
|
882
901
|
get program() {
|
|
883
902
|
return t();
|
|
884
903
|
},
|
|
885
904
|
get language() {
|
|
886
|
-
return
|
|
905
|
+
return I();
|
|
887
906
|
}
|
|
888
907
|
});
|
|
889
908
|
};
|
|
890
|
-
|
|
891
|
-
n(m) ? e(
|
|
909
|
+
ae(ye, (e) => {
|
|
910
|
+
n(m) ? e(ve) : n(f) === l[0] ? e(ke, 1) : n(f) === l[2] && e(ze, 2);
|
|
892
911
|
});
|
|
893
912
|
}
|
|
894
|
-
s(
|
|
913
|
+
s(S), Z(
|
|
895
914
|
(e, r, a) => {
|
|
896
|
-
|
|
915
|
+
N = v(S, 1, "wheel-content svelte-17ly5gn", null, N, {
|
|
897
916
|
"is-spin-fullscreen": n(B),
|
|
898
917
|
"is-spin-exiting": n(A),
|
|
899
|
-
"wheel-background-halo":
|
|
900
|
-
}),
|
|
918
|
+
"wheel-background-halo": u() && n(f) === l[1]
|
|
919
|
+
}), q = v(k, 1, "back-button-container svelte-17ly5gn", null, q, { hidden: n(h) || !M() }), W(ue, e), $ = v(C, 1, "wof-title svelte-17ly5gn", null, $, { hidden: n(m) }), W(he, r), W(we, a), ne = v(P, 1, "wof-tabs svelte-17ly5gn", null, ne, { hidden: n(h) || n(m) }), te = Ge(T, "", te, {
|
|
901
920
|
display: n(f) !== l[1] || n(m) ? "none" : "contents"
|
|
902
921
|
});
|
|
903
922
|
},
|
|
@@ -906,13 +925,13 @@ function qe(Z, i) {
|
|
|
906
925
|
() => _()("wofTitle"),
|
|
907
926
|
() => _()("wofSubtitle")
|
|
908
927
|
]
|
|
909
|
-
),
|
|
910
|
-
var
|
|
911
|
-
return
|
|
928
|
+
), oe("click", k, fe), X(V, S);
|
|
929
|
+
var _e = Oe(me);
|
|
930
|
+
return se(), _e;
|
|
912
931
|
}
|
|
913
|
-
|
|
914
|
-
customElements.define("wheel-of-fortune",
|
|
915
|
-
|
|
932
|
+
Ae(["click"]);
|
|
933
|
+
customElements.define("wheel-of-fortune", Se(
|
|
934
|
+
$e,
|
|
916
935
|
{
|
|
917
936
|
program: {},
|
|
918
937
|
endpoint: {},
|
|
@@ -928,5 +947,5 @@ customElements.define("wheel-of-fortune", Ae(
|
|
|
928
947
|
[]
|
|
929
948
|
));
|
|
930
949
|
export {
|
|
931
|
-
|
|
950
|
+
$e as W
|
|
932
951
|
};
|