@everymatrix/mini-games-hub 0.1.13 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GameCard-BmOaK5EP.js +50 -0
- package/components/GameCard-C4koIRhP.js +50 -0
- package/components/{GameCard-BIn8BJ4U.cjs → GameCard-DA-8ladf.cjs} +2 -2
- package/components/{MiniGamesHub-SjsgF4e2.cjs → MiniGamesHub-BM5Vxa9S.cjs} +5 -5
- package/components/{MiniGamesHub-D3BazHMT.js → MiniGamesHub-C7aQh03q.js} +139 -141
- package/components/{MiniGamesHub-Cu8_8yFl.js → MiniGamesHub-Dl3isBzY.js} +149 -151
- package/components/{WheelOfFortune-CnaDpfpq.js → WheelOfFortune-B-Rx_FFX.js} +147 -164
- package/components/{WheelOfFortune-BlHeZ0q7.cjs → WheelOfFortune-CidB6b1w.cjs} +6 -21
- package/components/{WheelOfFortune-Lfc_l9kc.js → WheelOfFortune-DdCajfhn.js} +147 -164
- package/components/WheelOfFortuneDrawResults-C3U-7-aw.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-D54Resid.js +279 -0
- package/components/WheelOfFortuneDrawResults-DZ43Wc7d.js +254 -0
- package/components/WheelOfFortuneHistory-COJdJOvU.js +214 -0
- package/components/WheelOfFortuneHistory-DNb6Y7gj.js +214 -0
- package/components/WheelOfFortuneHistory-tYu_rAD4.cjs +13 -0
- package/components/WheelOfFortuneRules-B1F8hnwG.js +109 -0
- package/components/{WheelOfFortuneRules-VAMAiK0m.cjs → WheelOfFortuneRules-BVcH-eGN.cjs} +2 -2
- package/components/WheelOfFortuneRules-DNJmzmyN.js +120 -0
- package/components/WheelOfFortuneWheel-0b7lq2LJ.cjs +3 -0
- package/components/{WheelOfFortuneWheel-DxFn6jjg.js → WheelOfFortuneWheel-BWPBlDFv.js} +1476 -1111
- package/components/{WheelOfFortuneWheel-BAR98ByP.js → WheelOfFortuneWheel-BuBnw_ev.js} +1412 -1049
- package/components/utils-03vIpDSe.cjs +3 -0
- package/components/{utils-d-JrZBJu.js → utils-C9WIoJIh.js} +2236 -2410
- package/components/utils-I5rI2w_S.js +5867 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/GameCard-D3knomma.js +0 -56
- package/components/GameCard-Ds0FcnPp.js +0 -56
- package/components/WheelOfFortuneDrawResults-1lzyxrks.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-DQweghnp.js +0 -301
- package/components/WheelOfFortuneDrawResults-dOeQDVub.js +0 -276
- package/components/WheelOfFortuneHistory-CQZ9QtVt.js +0 -232
- package/components/WheelOfFortuneHistory-DZNPM57t.cjs +0 -13
- package/components/WheelOfFortuneHistory-DygZEtcR.js +0 -232
- package/components/WheelOfFortuneRules-D3N1c8PX.js +0 -117
- package/components/WheelOfFortuneRules-DuiCet95.js +0 -128
- package/components/WheelOfFortuneWheel-hSjxThyU.cjs +0 -3
- package/components/utils-C7uxZXaZ.js +0 -6045
- package/components/utils-DQIHJIDu.cjs +0 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import { W as
|
|
4
|
-
import { W as Ve } from "./WheelOfFortuneDrawResults-
|
|
5
|
-
import { W as
|
|
1
|
+
import { d as Ce, c as Se, a as Pe, v as Te, p as l, o as We, i as re, g as je, W as Fe, m as x, j, u as Ge, n as ae, b as H, f as Z, s as Le, e as Re, q as Me, w as Ye } from "./WheelOfFortuneWheel-BuBnw_ev.js";
|
|
2
|
+
import { a2 as Ie, b0 as Ee, b1 as h, aQ as De, aa as Xe, I as n, aJ as a, aq as O, a6 as He, bb as F, b6 as G, b3 as Oe, b5 as w, aU as p, bf as k, b9 as z, bk as Ze } from "./utils-C9WIoJIh.js";
|
|
3
|
+
import { W as Ue } from "./WheelOfFortuneHistory-DNb6Y7gj.js";
|
|
4
|
+
import { W as Ve } from "./WheelOfFortuneDrawResults-DZ43Wc7d.js";
|
|
5
|
+
import { W as qe } from "./WheelOfFortuneRules-B1F8hnwG.js";
|
|
6
6
|
import { p as Ke } from "./constants-BYsDpbRv.js";
|
|
7
|
-
var
|
|
8
|
-
const
|
|
7
|
+
var Je = Z('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), Ne = Z("<button> </button>"), Qe = Z('<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 $e = {
|
|
9
9
|
hash: "svelte-17ly5gn",
|
|
10
10
|
code: `@keyframes svelte-17ly5gn-wheelBob {
|
|
11
11
|
0%, 100% {
|
|
@@ -594,9 +594,7 @@ const Je = {
|
|
|
594
594
|
.wheel-content .spin-button {transition:opacity 0.4s ease, filter 0.4s ease;} .wheel-content.wheel-background-halo {background-image:radial-gradient(circle at 50% 55%, rgba(var(--color-primary-2, 207, 120, 69), 0.78) 0 14%, rgba(var(--color-primary-4, 128, 60, 22), 0.7) 32%, rgba(var(--color-primary-6, 89, 24, 3), 0) 65%);} .wheel-content.is-spin-blocking {touch-action:none;} .wheel-content.is-spin-blocking > *:not(.wheel-container):not(.wheel-video-background),
|
|
595
595
|
.wheel-content.is-spin-blocking .spins-info,
|
|
596
596
|
.wheel-content.is-spin-blocking .spin-button {pointer-events:none;}
|
|
597
|
-
@media (pointer: coarse), (max-width: 640px) { .wheel-content.is-spin-fullscreen {
|
|
598
|
-
animation: svelte-17ly5gn-spinOverlayIn 0.4s ease forwards;touch-action:none;} .wheel-content.is-spin-fullscreen.is-spin-exiting {
|
|
599
|
-
animation: svelte-17ly5gn-spinOverlayOut 0.35s ease forwards;} .wheel-content.is-spin-fullscreen .wheel-container {scale:1.15;margin-block:0;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-block 0.6s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .wheel-content.is-spin-fullscreen > *:not(.wheel-container):not(.wheel-video-background),
|
|
597
|
+
@media (pointer: coarse), (max-width: 640px) { .wheel-content.is-spin-fullscreen {touch-action:none;} .wheel-content.is-spin-fullscreen .wheel-container {scale:1.15;margin-block:0;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-block 0.6s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .wheel-content.is-spin-fullscreen > *:not(.wheel-container):not(.wheel-video-background),
|
|
600
598
|
.wheel-content.is-spin-fullscreen .spins-info,
|
|
601
599
|
.wheel-content.is-spin-fullscreen .spin-button {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;}
|
|
602
600
|
} .wheel-video-background {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
@@ -605,22 +603,9 @@ const Je = {
|
|
|
605
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);}
|
|
606
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);
|
|
607
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%;
|
|
608
|
-
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-
|
|
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-weight:900;cursor:pointer;position:relative;z-index:2;
|
|
609
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 {
|
|
610
|
-
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;}
|
|
611
|
-
@keyframes svelte-17ly5gn-spinOverlayIn {
|
|
612
|
-
from {
|
|
613
|
-
opacity: 0;
|
|
614
|
-
}
|
|
615
|
-
to {
|
|
616
|
-
opacity: 1;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
@keyframes svelte-17ly5gn-spinOverlayOut {
|
|
620
|
-
to {
|
|
621
|
-
opacity: 0;
|
|
622
|
-
}
|
|
623
|
-
} .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
|
|
608
|
+
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;} .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
|
|
624
609
|
animation: svelte-17ly5gn-drawResultPop 420ms cubic-bezier(0.16, 0.92, 0.22, 1.04) both;} .draw-result-confetti-layer {position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;} .success-confetti-piece {--x: 50%;--tx: 0px;--rot: 0deg;--spin: 360deg;--hue: #ffd23e;--w: 8px;--h: 12px;--d: 1800ms;position:absolute;left:var(--x);top:-24px;width:var(--w);height:var(--h);border-radius:3px;background:var(--hue);filter:drop-shadow(0 0 5px rgba(255, 218, 74, 0.24));transform-origin:center;
|
|
625
610
|
animation: svelte-17ly5gn-successConfettiFall var(--d) cubic-bezier(0.16, 0.68, 0.2, 1) forwards;} .success-confetti-piece.is-diamond {border-radius:2px;transform:rotate(45deg);} .success-confetti-piece.is-ribbon {border-radius:8px 2px;} .draw-result-stack {width:100%;display:grid;justify-items:center;position:relative;z-index:2;transform:translateY(clamp(16px, 5vw, 30px));} .draw-result-stack img {width:60%;max-width:300px;} .draw-result-stack img.lose {filter:saturate(0%);} .coin {width:clamp(140px, 38vw, 196px);height:clamp(142px, 38.5vw, 198px);display:grid;place-items:center;border-radius:0;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);will-change:opacity, transform;
|
|
626
611
|
animation: svelte-17ly5gn-successElementIn 620ms cubic-bezier(0.16, 0.92, 0.22, 1) 90ms both;} .coin svg,
|
|
@@ -630,7 +615,7 @@ const Je = {
|
|
|
630
615
|
animation: svelte-17ly5gn-titleSparkle 900ms ease-out forwards;} .draw-result-description {margin:0;color:var(--color-text-default, #ffffff);font-size:clamp(14px, 3.8vw, 17px);line-height:1.55;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
|
|
631
616
|
animation: svelte-17ly5gn-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 390ms both;} .draw-result-description span {font-size:clamp(15px, 4.1vw, 19px);font-weight:900;} .draw-result-error-image {max-width:170px;} .draw-result-description--error {margin:0 20px;} .draw-result-actions {display:grid;justify-items:center;gap:12px;margin-top:clamp(16px, 4.5vw, 26px);opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
|
|
632
617
|
animation: svelte-17ly5gn-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 560ms both;} .button-spinner {position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;width:18px;height:18px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
|
|
633
|
-
animation: svelte-17ly5gn-wofSpinnerRotate 600ms linear infinite;} .primary-cta {position:relative;min-width:clamp(148px, 42vw, 210px);min-height:clamp(42px, 10.5vw, 50px);border:none;border-radius:999px;color:var(--color-text-button-primary, #261d00);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), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4vw, 19px);font-
|
|
618
|
+
animation: svelte-17ly5gn-wofSpinnerRotate 600ms linear infinite;} .primary-cta {position:relative;min-width:clamp(148px, 42vw, 210px);min-height:clamp(42px, 10.5vw, 50px);border:none;border-radius:999px;color:var(--color-text-button-primary, #261d00);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), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4vw, 19px);font-weight:900;cursor:pointer;padding:0 20px;transition:transform 160ms ease, filter 160ms ease;} .primary-cta:hover {filter:brightness(1.06);transform:translateY(-1px);} .primary-cta:active {transform:translateY(2px) scale(0.98);} .secondary-cta {position:relative;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));font:inherit;font-size:clamp(13px, 3.4vw, 15px);font-weight:750;cursor:pointer;border:1px solid var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));border-radius:999px;padding:10px 20px;} .confirm-modal-content {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:10;width:70%;height:85%;max-height:500px;padding:10px 12px;background:rgba(8, 4, 0, 0.95);backdrop-filter:blur(16px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;} .confirm-modal-title {color:#ffffff;font-size:26px;font-weight:700;letter-spacing:0.2px;margin:0 0 4px;} .confirm-modal-body {color:rgba(255, 255, 255, 0.6509803922);font-size:14px;line-height:1.45;margin:0 0 10px;} .confirm-modal-actions {display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;} .confirm-modal-actions button {width:fit-content;}
|
|
634
619
|
@media (prefers-reduced-motion: reduce) { .coin,
|
|
635
620
|
.draw-result-title,
|
|
636
621
|
.draw-result-description,
|
|
@@ -640,39 +625,39 @@ const Je = {
|
|
|
640
625
|
animation: none;}
|
|
641
626
|
}`
|
|
642
627
|
};
|
|
643
|
-
function
|
|
644
|
-
Ie(i, !0),
|
|
645
|
-
const _ = () =>
|
|
646
|
-
|
|
647
|
-
const
|
|
648
|
-
let
|
|
649
|
-
const
|
|
650
|
-
e !== n(
|
|
628
|
+
function en(U, i) {
|
|
629
|
+
Ie(i, !0), Pe(U, $e);
|
|
630
|
+
const _ = () => Le(Oe, "$_", oe), [oe, ie] = Re();
|
|
631
|
+
Ee.extend(Te);
|
|
632
|
+
const se = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", t = l(i, "program", 7, null), c = l(i, "endpoint", 7, null), f = l(i, "session", 7, null), L = l(i, "outerWheelAsset", 7, null), R = l(i, "wheelButtonAsset", 7, null), M = l(i, "backgroundVideoAsset", 7, null), Y = l(i, "language", 7, "en"), I = l(i, "showBackButton", 7, !0), m = l(i, "liteMode", 7, !1), b = F(() => !c() || !t()), le = F(() => !n(b) && (t()?.remainingTimes ?? 0) > 0), pe = F(() => n(b) ? Ke : t()?.partitions ?? []), s = ["history", "play", "rules"];
|
|
633
|
+
let d = h(De(s[1]));
|
|
634
|
+
const ce = (e) => {
|
|
635
|
+
e !== n(d) && (e === s[0] ? window.postMessage(
|
|
651
636
|
{
|
|
652
637
|
type: "event_wof_history_click",
|
|
653
638
|
name: t()?.name || null
|
|
654
639
|
},
|
|
655
640
|
window.location.href
|
|
656
|
-
) : e ===
|
|
641
|
+
) : e === s[2] ? window.postMessage({ type: "event_wof_rules_click", name: t()?.name || null }, window.location.href) : window.postMessage(
|
|
657
642
|
{
|
|
658
643
|
type: "event_wof_accessed",
|
|
659
|
-
isUserLoggedIn: !n(
|
|
644
|
+
isUserLoggedIn: !n(b),
|
|
660
645
|
name: t()?.name || null,
|
|
661
646
|
availableSpins: t()?.remainingTimes || null
|
|
662
647
|
},
|
|
663
648
|
window.location.href
|
|
664
|
-
),
|
|
649
|
+
), a(E, !1), a(d, e, !0));
|
|
665
650
|
};
|
|
666
|
-
let
|
|
667
|
-
|
|
668
|
-
if (!
|
|
651
|
+
let g = h(null), B = h(!1), E = h(!1), D = h(!1), A = h(!1), C = h(!1);
|
|
652
|
+
Xe(() => {
|
|
653
|
+
if (!m()) {
|
|
669
654
|
if (n(B))
|
|
670
|
-
|
|
655
|
+
a(A, !0), a(C, !1);
|
|
671
656
|
else if (n(A)) {
|
|
672
|
-
|
|
657
|
+
a(C, !0);
|
|
673
658
|
const e = setTimeout(
|
|
674
659
|
() => {
|
|
675
|
-
|
|
660
|
+
a(A, !1), a(C, !1);
|
|
676
661
|
},
|
|
677
662
|
350
|
|
678
663
|
);
|
|
@@ -680,247 +665,245 @@ function $e(V, i) {
|
|
|
680
665
|
}
|
|
681
666
|
}
|
|
682
667
|
});
|
|
683
|
-
const
|
|
684
|
-
if (!t()?.id || !
|
|
685
|
-
const e = new URL(`${
|
|
686
|
-
|
|
668
|
+
const de = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), ge = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), V = async () => {
|
|
669
|
+
if (!t()?.id || !c()) return;
|
|
670
|
+
const e = new URL(`${c()}/v1/wof/remainingTimes`), r = new Headers();
|
|
671
|
+
f() && r.append("X-SessionId", f()), e.searchParams.append("filter", `ProgramId[]=${t().id}`);
|
|
687
672
|
try {
|
|
688
|
-
const
|
|
689
|
-
let
|
|
690
|
-
if (
|
|
691
|
-
const
|
|
692
|
-
|
|
673
|
+
const u = await (await fetch(e, { method: "GET", headers: r })).json();
|
|
674
|
+
let v = 0;
|
|
675
|
+
if (u?.items?.length > 0) {
|
|
676
|
+
const te = u.items.find((Ae) => Ae.programId === t().id);
|
|
677
|
+
te && (v = +te.remainingTimes || 0);
|
|
693
678
|
}
|
|
694
|
-
const
|
|
679
|
+
const X = Ze({
|
|
695
680
|
...t(),
|
|
696
|
-
remainingTimes:
|
|
697
|
-
current: { ...t().current, remainingTimes:
|
|
681
|
+
remainingTimes: v,
|
|
682
|
+
current: { ...t().current, remainingTimes: v }
|
|
698
683
|
});
|
|
699
|
-
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data:
|
|
700
|
-
} catch (
|
|
701
|
-
console.log(
|
|
684
|
+
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: X }, "*");
|
|
685
|
+
} catch (o) {
|
|
686
|
+
console.log(o);
|
|
702
687
|
} finally {
|
|
703
|
-
|
|
688
|
+
a(D, !1);
|
|
704
689
|
}
|
|
705
|
-
},
|
|
690
|
+
}, q = (e) => {
|
|
706
691
|
if (e.data)
|
|
707
692
|
switch (e.data.type) {
|
|
708
693
|
case "SpinAgain":
|
|
709
694
|
case "BackToWheel":
|
|
710
|
-
|
|
695
|
+
a(g, null), e.data.skipFetch ? a(D, !0) : V();
|
|
711
696
|
break;
|
|
712
697
|
}
|
|
713
698
|
};
|
|
714
|
-
|
|
699
|
+
We(() => (window.postMessage(
|
|
715
700
|
{
|
|
716
701
|
type: "event_wof_accessed",
|
|
717
|
-
isUserLoggedIn: !n(
|
|
702
|
+
isUserLoggedIn: !n(b),
|
|
718
703
|
name: t()?.name || null,
|
|
719
704
|
availableSpins: t()?.remainingTimes || null
|
|
720
705
|
},
|
|
721
706
|
window.location.href
|
|
722
|
-
), window.addEventListener("message",
|
|
723
|
-
window.removeEventListener("message",
|
|
707
|
+
), window.addEventListener("message", q), () => {
|
|
708
|
+
window.removeEventListener("message", q);
|
|
724
709
|
}));
|
|
725
|
-
var
|
|
710
|
+
var fe = {
|
|
726
711
|
get program() {
|
|
727
712
|
return t();
|
|
728
713
|
},
|
|
729
714
|
set program(e = null) {
|
|
730
|
-
t(e),
|
|
715
|
+
t(e), p();
|
|
731
716
|
},
|
|
732
717
|
get endpoint() {
|
|
733
|
-
return
|
|
718
|
+
return c();
|
|
734
719
|
},
|
|
735
720
|
set endpoint(e = null) {
|
|
736
|
-
|
|
721
|
+
c(e), p();
|
|
737
722
|
},
|
|
738
723
|
get session() {
|
|
739
|
-
return
|
|
724
|
+
return f();
|
|
740
725
|
},
|
|
741
726
|
set session(e = null) {
|
|
742
|
-
|
|
727
|
+
f(e), p();
|
|
743
728
|
},
|
|
744
729
|
get outerWheelAsset() {
|
|
745
|
-
return
|
|
730
|
+
return L();
|
|
746
731
|
},
|
|
747
732
|
set outerWheelAsset(e = null) {
|
|
748
|
-
|
|
733
|
+
L(e), p();
|
|
749
734
|
},
|
|
750
735
|
get wheelButtonAsset() {
|
|
751
|
-
return
|
|
736
|
+
return R();
|
|
752
737
|
},
|
|
753
738
|
set wheelButtonAsset(e = null) {
|
|
754
|
-
|
|
739
|
+
R(e), p();
|
|
755
740
|
},
|
|
756
741
|
get backgroundVideoAsset() {
|
|
757
|
-
return
|
|
742
|
+
return M();
|
|
758
743
|
},
|
|
759
744
|
set backgroundVideoAsset(e = null) {
|
|
760
|
-
|
|
745
|
+
M(e), p();
|
|
761
746
|
},
|
|
762
747
|
get language() {
|
|
763
|
-
return
|
|
748
|
+
return Y();
|
|
764
749
|
},
|
|
765
750
|
set language(e = "en") {
|
|
766
|
-
|
|
751
|
+
Y(e), p();
|
|
767
752
|
},
|
|
768
753
|
get showBackButton() {
|
|
769
|
-
return
|
|
754
|
+
return I();
|
|
770
755
|
},
|
|
771
756
|
set showBackButton(e = !0) {
|
|
772
|
-
|
|
757
|
+
I(e), p();
|
|
773
758
|
},
|
|
774
759
|
get liteMode() {
|
|
775
|
-
return
|
|
760
|
+
return m();
|
|
776
761
|
},
|
|
777
762
|
set liteMode(e = !1) {
|
|
778
|
-
|
|
763
|
+
m(e), p();
|
|
779
764
|
}
|
|
780
|
-
},
|
|
781
|
-
let
|
|
782
|
-
var
|
|
765
|
+
}, S = Qe();
|
|
766
|
+
let K;
|
|
767
|
+
var J = G(S);
|
|
783
768
|
{
|
|
784
|
-
var
|
|
785
|
-
var r =
|
|
786
|
-
let
|
|
769
|
+
var me = (e) => {
|
|
770
|
+
var r = Je();
|
|
771
|
+
let o;
|
|
787
772
|
r.muted = !0;
|
|
788
|
-
var
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
}),
|
|
773
|
+
var u = k(r);
|
|
774
|
+
O(() => {
|
|
775
|
+
o = x(r, 1, "wheel-video-background svelte-17ly5gn", null, o, { "is-ready": n(E) }), Me(u, "src", M() || se);
|
|
776
|
+
}), Ye("canplay", r, () => a(E, !0)), H(e, r);
|
|
792
777
|
};
|
|
793
|
-
|
|
794
|
-
!
|
|
778
|
+
re(J, (e) => {
|
|
779
|
+
!m() && n(d) === s[1] && e(me);
|
|
795
780
|
});
|
|
796
781
|
}
|
|
797
|
-
var
|
|
798
|
-
let
|
|
799
|
-
var
|
|
800
|
-
|
|
801
|
-
var P = y
|
|
802
|
-
let
|
|
803
|
-
var
|
|
804
|
-
|
|
805
|
-
var
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
var
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
(D) => {
|
|
815
|
-
w = v(a, 1, "tab svelte-17ly5gn", null, w, { active: n(f) === r }), F(z, D);
|
|
782
|
+
var y = w(J, 2);
|
|
783
|
+
let N;
|
|
784
|
+
var be = w(G(y), 2), ue = k(be, !0);
|
|
785
|
+
z(y);
|
|
786
|
+
var P = w(y, 2);
|
|
787
|
+
let Q;
|
|
788
|
+
var $ = G(P), he = k($, !0), we = w($, 2), xe = k(we, !0);
|
|
789
|
+
z(P);
|
|
790
|
+
var T = w(P, 2);
|
|
791
|
+
let ee;
|
|
792
|
+
je(T, 20, () => s, (e) => e, (e, r) => {
|
|
793
|
+
var o = Ne();
|
|
794
|
+
let u;
|
|
795
|
+
var v = k(o, !0);
|
|
796
|
+
O(
|
|
797
|
+
(X) => {
|
|
798
|
+
u = x(o, 1, "tab svelte-17ly5gn", null, u, { active: n(d) === r }), j(v, X);
|
|
816
799
|
},
|
|
817
800
|
[() => _()(r)]
|
|
818
|
-
),
|
|
819
|
-
}),
|
|
820
|
-
var W =
|
|
821
|
-
let
|
|
822
|
-
var
|
|
823
|
-
Fe(
|
|
801
|
+
), ae("click", o, () => ce(r)), H(e, o);
|
|
802
|
+
}), z(T);
|
|
803
|
+
var W = w(T, 2);
|
|
804
|
+
let ne;
|
|
805
|
+
var ye = G(W);
|
|
806
|
+
Fe(ye, {
|
|
824
807
|
get program() {
|
|
825
808
|
return t();
|
|
826
809
|
},
|
|
827
810
|
get endpoint() {
|
|
828
|
-
return
|
|
811
|
+
return c();
|
|
829
812
|
},
|
|
830
813
|
get session() {
|
|
831
|
-
return
|
|
814
|
+
return f();
|
|
832
815
|
},
|
|
833
816
|
get outerWheelAsset() {
|
|
834
|
-
return
|
|
817
|
+
return L();
|
|
835
818
|
},
|
|
836
819
|
get wheelButtonAsset() {
|
|
837
|
-
return
|
|
820
|
+
return R();
|
|
838
821
|
},
|
|
839
822
|
get wheelSlices() {
|
|
840
|
-
return n(
|
|
823
|
+
return n(pe);
|
|
841
824
|
},
|
|
842
825
|
get isPlaceholder() {
|
|
843
|
-
return n(
|
|
826
|
+
return n(b);
|
|
844
827
|
},
|
|
845
828
|
get isWheelAvailable() {
|
|
846
|
-
return n(
|
|
829
|
+
return n(le);
|
|
847
830
|
},
|
|
848
831
|
get liteMode() {
|
|
849
|
-
return
|
|
832
|
+
return m();
|
|
850
833
|
},
|
|
851
834
|
get remainingTimesLoading() {
|
|
852
|
-
return n(
|
|
835
|
+
return n(D);
|
|
853
836
|
},
|
|
854
|
-
onLogin:
|
|
837
|
+
onLogin: de,
|
|
855
838
|
get spinResults() {
|
|
856
|
-
return n(
|
|
839
|
+
return n(g);
|
|
857
840
|
},
|
|
858
841
|
set spinResults(e) {
|
|
859
|
-
|
|
842
|
+
a(g, e, !0);
|
|
860
843
|
},
|
|
861
844
|
get spinActive() {
|
|
862
845
|
return n(B);
|
|
863
846
|
},
|
|
864
847
|
set spinActive(e) {
|
|
865
|
-
|
|
848
|
+
a(B, e, !0);
|
|
866
849
|
}
|
|
867
|
-
}),
|
|
868
|
-
var
|
|
850
|
+
}), z(W);
|
|
851
|
+
var ve = w(W, 2);
|
|
869
852
|
{
|
|
870
|
-
var
|
|
853
|
+
var ke = (e) => {
|
|
871
854
|
Ve(e, {
|
|
872
855
|
get result() {
|
|
873
|
-
return n(
|
|
856
|
+
return n(g);
|
|
874
857
|
},
|
|
875
858
|
get endpoint() {
|
|
876
|
-
return
|
|
859
|
+
return c();
|
|
877
860
|
},
|
|
878
861
|
get session() {
|
|
879
|
-
return
|
|
862
|
+
return f();
|
|
880
863
|
},
|
|
881
864
|
get liteMode() {
|
|
882
|
-
return
|
|
865
|
+
return m();
|
|
883
866
|
},
|
|
884
|
-
onFetchRemainingTimes:
|
|
867
|
+
onFetchRemainingTimes: V
|
|
885
868
|
});
|
|
886
|
-
},
|
|
869
|
+
}, ze = (e) => {
|
|
887
870
|
{
|
|
888
|
-
let r =
|
|
889
|
-
|
|
871
|
+
let r = F(() => t()?.id);
|
|
872
|
+
Ue(e, {
|
|
890
873
|
get programId() {
|
|
891
874
|
return n(r);
|
|
892
875
|
},
|
|
893
876
|
get endpoint() {
|
|
894
|
-
return
|
|
877
|
+
return c();
|
|
895
878
|
},
|
|
896
879
|
get session() {
|
|
897
|
-
return
|
|
880
|
+
return f();
|
|
898
881
|
}
|
|
899
882
|
});
|
|
900
883
|
}
|
|
901
|
-
},
|
|
902
|
-
|
|
884
|
+
}, _e = (e) => {
|
|
885
|
+
qe(e, {
|
|
903
886
|
get program() {
|
|
904
887
|
return t();
|
|
905
888
|
},
|
|
906
889
|
get language() {
|
|
907
|
-
return
|
|
890
|
+
return Y();
|
|
908
891
|
}
|
|
909
892
|
});
|
|
910
893
|
};
|
|
911
|
-
|
|
912
|
-
n(
|
|
894
|
+
re(ve, (e) => {
|
|
895
|
+
n(g) ? e(ke) : n(d) === s[0] ? e(ze, 1) : n(d) === s[2] && e(_e, 2);
|
|
913
896
|
});
|
|
914
897
|
}
|
|
915
|
-
|
|
916
|
-
(e, r,
|
|
917
|
-
|
|
898
|
+
z(S), O(
|
|
899
|
+
(e, r, o) => {
|
|
900
|
+
K = x(S, 1, "wheel-content svelte-17ly5gn", null, K, {
|
|
918
901
|
"is-spin-blocking": n(B),
|
|
919
902
|
"is-spin-fullscreen": n(A),
|
|
920
|
-
"is-spin-exiting": n(
|
|
921
|
-
"wheel-background-halo":
|
|
922
|
-
}),
|
|
923
|
-
display: n(
|
|
903
|
+
"is-spin-exiting": n(C),
|
|
904
|
+
"wheel-background-halo": m() && n(d) === s[1]
|
|
905
|
+
}), N = x(y, 1, "back-button-container svelte-17ly5gn", null, N, { hidden: n(b) || !I() }), j(ue, e), Q = x(P, 1, "wof-title svelte-17ly5gn", null, Q, { hidden: n(g) }), j(he, r), j(xe, o), ee = x(T, 1, "wof-tabs svelte-17ly5gn", null, ee, { hidden: n(b) || n(g) }), ne = Ge(W, "", ne, {
|
|
906
|
+
display: n(d) !== s[1] || n(g) ? "none" : "contents"
|
|
924
907
|
});
|
|
925
908
|
},
|
|
926
909
|
[
|
|
@@ -928,13 +911,13 @@ function $e(V, i) {
|
|
|
928
911
|
() => _()("wofTitle"),
|
|
929
912
|
() => _()("wofSubtitle")
|
|
930
913
|
]
|
|
931
|
-
),
|
|
932
|
-
var
|
|
933
|
-
return
|
|
914
|
+
), ae("click", y, ge), H(U, S);
|
|
915
|
+
var Be = He(fe);
|
|
916
|
+
return ie(), Be;
|
|
934
917
|
}
|
|
935
|
-
|
|
918
|
+
Ce(["click"]);
|
|
936
919
|
customElements.define("wheel-of-fortune", Se(
|
|
937
|
-
|
|
920
|
+
en,
|
|
938
921
|
{
|
|
939
922
|
program: {},
|
|
940
923
|
endpoint: {},
|
|
@@ -950,5 +933,5 @@ customElements.define("wheel-of-fortune", Se(
|
|
|
950
933
|
[]
|
|
951
934
|
));
|
|
952
935
|
export {
|
|
953
|
-
|
|
936
|
+
en as W
|
|
954
937
|
};
|