@everymatrix/mini-games-hub 0.1.11 → 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/{MiniGamesHub-DhyHje6i.js → MiniGamesHub-4Wuwyw8q.js} +38 -33
- package/components/MiniGamesHub-C2510DM7.cjs +94 -0
- package/components/{MiniGamesHub-CyrBtxoA.js → MiniGamesHub-C3xyZRdn.js} +2 -2
- package/components/MiniGamesHub-CQIi4Jso.js +1399 -0
- package/components/{MiniGamesHub-A_QU55Ox.js → MiniGamesHub-CSZ3An74.js} +50 -45
- package/components/MiniGamesHub-CuvJDQTm.js +1379 -0
- package/components/{MiniGamesHub-Bbot9Iek.js → MiniGamesHub-DFNKphI6.js} +2 -2
- package/components/{MiniGamesHub-IU3nBLWZ.cjs → MiniGamesHub-DeVy4J4_.cjs} +2 -2
- package/components/MiniGamesHub-Du6B-YVK.cjs +94 -0
- package/components/{WheelOfFortune-C3QPcM9_.js → WheelOfFortune-BV0VEpvD.js} +143 -124
- package/components/{WheelOfFortune-Dq5uFse9.cjs → WheelOfFortune-BWKtsKH4.cjs} +6 -5
- package/components/{WheelOfFortune-DIKqqSN0.js → WheelOfFortune-B_ZNJW34.js} +190 -168
- package/components/{WheelOfFortune-DszXhJZX.cjs → WheelOfFortune-DgJ0luD8.cjs} +2 -2
- package/components/{WheelOfFortune-DkHRFbuq.js → WheelOfFortune-Dr-yB2xY.js} +89 -78
- package/components/{WheelOfFortune-BY3MYTwt.js → WheelOfFortune-p9qTycTU.js} +47 -39
- 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-B5IhlV0M.js +0 -56
- package/components/GameCard-Ct6vyiQG.cjs +0 -3
- package/components/GameCard-uj5ulL7F.js +0 -56
- 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-BbRdBjji.js +0 -232
- package/components/WheelOfFortuneHistory-CupBnftz.js +0 -232
- package/components/WheelOfFortuneHistory-D0a33HzR.cjs +0 -13
- package/components/WheelOfFortuneRules-CIeBfSfY.js +0 -128
- package/components/WheelOfFortuneRules-CkNKWZhj.js +0 -117
- package/components/WheelOfFortuneRules-DHwDQaVu.cjs +0 -5
- package/components/WheelOfFortuneWheel-B6_1ieZG.js +0 -1875
- package/components/WheelOfFortuneWheel-BHsFZqlw.cjs +0 -3
- package/components/WheelOfFortuneWheel-EAdiCZNZ.js +0 -1945
- package/components/utils-B7DHb9g0.cjs +0 -3
- package/components/utils-B7FniaI2.js +0 -6043
- package/components/utils-CSOcFUAz.js +0 -5995
|
@@ -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
|
-
switch (e.data.type) {
|
|
705
|
+
switch (console.log(e.data, "--- fuck"), 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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ke=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var $=(p,a,i)=>a in p?ye(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,M=(p,a)=>{for(var i in a||(a={}))ze.call(a,i)&&$(p,i,a[i]);if(Q)for(var i of Q(a))_e.call(a,i)&&$(p,i,a[i]);return p},Y=(p,a)=>ve(p,ke(a));var ee=(p,a,i)=>new Promise((C,v)=>{var F=l=>{try{c(i.next(l))}catch(u){v(u)}},o=l=>{try{c(i.throw(l))}catch(u){v(u)}},c=l=>l.done?C(l.value):Promise.resolve(l.value).then(F,o);c((i=i.apply(p,a)).next())});const t=require("./WheelOfFortuneWheel-CqMnfWH6.cjs"),e=require("./utils-DQIHJIDu.cjs"),Be=require("./WheelOfFortuneHistory-Cda9YIPp.cjs"),Se=require("./WheelOfFortuneDrawResults-Ban46vUc.cjs"),Ae=require("./WheelOfFortuneRules-CeD2_BcF.cjs"),Ce=require("./constants-DM6Vdc6Z.cjs");var Fe=t.from_html('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>',2),Pe=t.from_html("<button> </button>"),We=t.from_html('<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>');const Te={hash:"svelte-17ly5gn",code:`@keyframes svelte-17ly5gn-wheelBob {
|
|
2
2
|
0%, 100% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
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);
|
|
539
539
|
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) {
|
|
540
540
|
animation: svelte-17ly5gn-middleButtonIdleZoomGlow 1450ms ease-in-out infinite;} .center-button.is-pressing {
|
|
541
|
-
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) {
|
|
541
|
+
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) {
|
|
542
542
|
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);
|
|
543
543
|
animation: svelte-17ly5gn-wofSpinnerRotate 900ms linear infinite;} .wheel-wrapper.is-assets-loading ~ .wheel-loading-spinner {
|
|
544
544
|
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%;
|
|
@@ -592,8 +592,9 @@
|
|
|
592
592
|
@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);}
|
|
593
593
|
}
|
|
594
594
|
@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);}
|
|
595
|
-
} .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);
|
|
596
|
-
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);} .
|
|
595
|
+
} .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);
|
|
596
|
+
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%;
|
|
597
|
+
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;
|
|
597
598
|
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 {
|
|
598
599
|
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;}
|
|
599
600
|
@keyframes svelte-17ly5gn-spinOverlayIn {
|
|
@@ -626,4 +627,4 @@
|
|
|
626
627
|
.coin img {
|
|
627
628
|
animation: none;} .success-confetti-piece {
|
|
628
629
|
animation: none;}
|
|
629
|
-
}`};function
|
|
630
|
+
}`};function ne(p,a){e.push(a,!0),t.append_styles(p,Te);const i=()=>e.store_get(e.$format,"$_",C),[C,v]=e.setup_stores();e.dayjs.extend(t.duration);const F="https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",o=t.prop(a,"program",7,null),c=t.prop(a,"endpoint",7,null),l=t.prop(a,"session",7,null),u=t.prop(a,"outerWheelAsset",7,null),P=t.prop(a,"wheelButtonAsset",7,null),W=t.prop(a,"backgroundVideoAsset",7,null),T=t.prop(a,"language",7,"en"),G=t.prop(a,"showBackButton",7,!0),b=t.prop(a,"liteMode",7,!1),h=e.user_derived(()=>!c()||!o()),te=e.user_derived(()=>{var n,r;return!e.get(h)&&((r=(n=o())==null?void 0:n.remainingTimes)!=null?r:0)>0}),re=e.user_derived(()=>{var n,r;return e.get(h)?Ce.placeholderWheelSlices:(r=(n=o())==null?void 0:n.partitions)!=null?r:[]}),g=["history","play","rules"];let f=e.state(e.proxy(g[1]));const ae=n=>{var r,s,d,w;n!==e.get(f)&&(n===g[0]?window.postMessage({type:"event_wof_history_click",name:((r=o())==null?void 0:r.name)||null},window.location.href):n===g[2]?window.postMessage({type:"event_wof_rules_click",name:((s=o())==null?void 0:s.name)||null},window.location.href):window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(h),name:((d=o())==null?void 0:d.name)||null,availableSpins:((w=o())==null?void 0:w.remainingTimes)||null},window.location.href),e.set(R,!1),e.set(f,n,!0))};let m=e.state(null),O=e.state(!1),R=e.state(!1),j=e.state(!1),k=e.state(!1),z=e.state(!1);e.user_effect(()=>{if(!b()){if(e.get(O))e.set(k,!0),e.set(z,!1);else if(e.get(k)){e.set(z,!0);const n=setTimeout(()=>{e.set(k,!1),e.set(z,!1)},350);return()=>clearTimeout(n)}}});const oe=()=>window.postMessage({type:"LuckyWheel:GoToLogin"},window.location.href),ie=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),E=()=>ee(this,null,function*(){var s,d;if(!((s=o())!=null&&s.id)||!c())return;const n=new URL(`${c()}/v1/wof/remainingTimes`),r=new Headers;l()&&r.append("X-SessionId",l()),n.searchParams.append("filter",`ProgramId[]=${o().id}`);try{const x=yield(yield fetch(n,{method:"GET",headers:r})).json();let I=0;if(((d=x==null?void 0:x.items)==null?void 0:d.length)>0){const J=x.items.find(xe=>xe.programId===o().id);J&&(I=+J.remainingTimes||0)}const we=e.snapshot(Y(M({},o()),{remainingTimes:I,current:Y(M({},o().current),{remainingTimes:I})}));window.postMessage({type:"PrizeGameRemainingTimesUpdated",data:we},"*")}catch(w){console.log(w)}finally{e.set(j,!1)}}),D=n=>{if(n.data)switch(console.log(n.data,"--- fuck"),n.data.type){case"SpinAgain":case"BackToWheel":e.set(m,null),n.data.skipFetch?e.set(j,!0):E();break}};t.onMount(()=>{var n,r;return window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(h),name:((n=o())==null?void 0:n.name)||null,availableSpins:((r=o())==null?void 0:r.remainingTimes)||null},window.location.href),window.addEventListener("message",D),()=>{window.removeEventListener("message",D)}});var se={get program(){return o()},set program(n=null){o(n),e.flushSync()},get endpoint(){return c()},set endpoint(n=null){c(n),e.flushSync()},get session(){return l()},set session(n=null){l(n),e.flushSync()},get outerWheelAsset(){return u()},set outerWheelAsset(n=null){u(n),e.flushSync()},get wheelButtonAsset(){return P()},set wheelButtonAsset(n=null){P(n),e.flushSync()},get backgroundVideoAsset(){return W()},set backgroundVideoAsset(n=null){W(n),e.flushSync()},get language(){return T()},set language(n="en"){T(n),e.flushSync()},get showBackButton(){return G()},set showBackButton(n=!0){G(n),e.flushSync()},get liteMode(){return b()},set liteMode(n=!1){b(n),e.flushSync()}},_=We();let H;var X=e.child(_);{var le=n=>{var r=Fe();let s;r.muted=!0;var d=e.child(r);e.reset(r),e.template_effect(()=>{s=t.set_class(r,1,"wheel-video-background svelte-17ly5gn",null,s,{"is-ready":e.get(R)}),t.set_attribute(d,"src",W()||F)}),t.event("canplay",r,()=>e.set(R,!0)),t.append(n,r)};t.if_block(X,n=>{!b()&&e.get(f)===g[1]&&n(le)})}var y=e.sibling(X,2);let Z;var q=e.sibling(e.child(y),2),pe=e.child(q,!0);e.reset(q),e.reset(y);var B=e.sibling(y,2);let V;var L=e.child(B),ce=e.child(L,!0);e.reset(L);var U=e.sibling(L,2),de=e.child(U,!0);e.reset(U),e.reset(B);var S=e.sibling(B,2);let K;t.each(S,20,()=>g,n=>n,(n,r)=>{var s=Pe();let d;var w=e.child(s,!0);e.reset(s),e.template_effect(x=>{d=t.set_class(s,1,"tab svelte-17ly5gn",null,d,{active:e.get(f)===r}),t.set_text(w,x)},[()=>i()(r)]),t.delegated("click",s,()=>ae(r)),t.append(n,s)}),e.reset(S);var A=e.sibling(S,2);let N;var ge=e.child(A);t.WheelOfFortuneWheel(ge,{get program(){return o()},get endpoint(){return c()},get session(){return l()},get outerWheelAsset(){return u()},get wheelButtonAsset(){return P()},get wheelSlices(){return e.get(re)},get isPlaceholder(){return e.get(h)},get isWheelAvailable(){return e.get(te)},get liteMode(){return b()},get remainingTimesLoading(){return e.get(j)},onLogin:oe,get spinResults(){return e.get(m)},set spinResults(n){e.set(m,n,!0)},get spinActive(){return e.get(O)},set spinActive(n){e.set(O,n,!0)}}),e.reset(A);var fe=e.sibling(A,2);{var me=n=>{Se.WheelOfFortuneDrawResults(n,{get result(){return e.get(m)},get endpoint(){return c()},get session(){return l()},get liteMode(){return b()},onFetchRemainingTimes:E})},ue=n=>{{let r=e.user_derived(()=>{var s;return(s=o())==null?void 0:s.id});Be.WheelOfFortuneHistory(n,{get programId(){return e.get(r)},get endpoint(){return c()},get session(){return l()}})}},be=n=>{Ae.WheelOfFortuneRules(n,{get program(){return o()},get language(){return T()}})};t.if_block(fe,n=>{e.get(m)?n(me):e.get(f)===g[0]?n(ue,1):e.get(f)===g[2]&&n(be,2)})}e.reset(_),e.template_effect((n,r,s)=>{H=t.set_class(_,1,"wheel-content svelte-17ly5gn",null,H,{"is-spin-fullscreen":e.get(k),"is-spin-exiting":e.get(z),"wheel-background-halo":b()&&e.get(f)===g[1]}),Z=t.set_class(y,1,"back-button-container svelte-17ly5gn",null,Z,{hidden:e.get(h)||!G()}),t.set_text(pe,n),V=t.set_class(B,1,"wof-title svelte-17ly5gn",null,V,{hidden:e.get(m)}),t.set_text(ce,r),t.set_text(de,s),K=t.set_class(S,1,"wof-tabs svelte-17ly5gn",null,K,{hidden:e.get(h)||e.get(m)}),N=t.set_style(A,"",N,{display:e.get(f)!==g[1]||e.get(m)?"none":"contents"})},[()=>i()("backToHub"),()=>i()("wofTitle"),()=>i()("wofSubtitle")]),t.delegated("click",y,ie),t.append(p,_);var he=e.pop(se);return v(),he}t.delegate(["click"]);customElements.define("wheel-of-fortune",t.create_custom_element(ne,{program:{},endpoint:{},session:{},outerWheelAsset:{},wheelButtonAsset:{},backgroundVideoAsset:{},language:{},showBackButton:{},liteMode:{}},[],[]));exports.WheelOfFortune=ne;
|