@everymatrix/mini-games-hub 0.1.14 → 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-zNncMSFn.cjs → MiniGamesHub-BM5Vxa9S.cjs} +5 -5
- package/components/{MiniGamesHub-D3n-AyD7.js → MiniGamesHub-C7aQh03q.js} +139 -141
- package/components/{MiniGamesHub-BYJ7lK90.js → MiniGamesHub-Dl3isBzY.js} +149 -151
- package/components/{WheelOfFortune-BjNsD2ND.js → WheelOfFortune-B-Rx_FFX.js} +144 -146
- package/components/{WheelOfFortune--4nTtnMR.cjs → WheelOfFortune-CidB6b1w.cjs} +4 -4
- package/components/{WheelOfFortune-DkVQIxzg.js → WheelOfFortune-DdCajfhn.js} +144 -146
- 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% {
|
|
@@ -603,7 +603,7 @@ const Je = {
|
|
|
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
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
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-
|
|
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;
|
|
607
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 {
|
|
608
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;
|
|
609
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;
|
|
@@ -615,7 +615,7 @@ const Je = {
|
|
|
615
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);
|
|
616
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);
|
|
617
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%;
|
|
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-
|
|
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;}
|
|
619
619
|
@media (prefers-reduced-motion: reduce) { .coin,
|
|
620
620
|
.draw-result-title,
|
|
621
621
|
.draw-result-description,
|
|
@@ -625,39 +625,39 @@ const Je = {
|
|
|
625
625
|
animation: none;}
|
|
626
626
|
}`
|
|
627
627
|
};
|
|
628
|
-
function
|
|
629
|
-
|
|
630
|
-
const _ = () =>
|
|
631
|
-
|
|
632
|
-
const
|
|
633
|
-
let
|
|
634
|
-
const
|
|
635
|
-
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(
|
|
636
636
|
{
|
|
637
637
|
type: "event_wof_history_click",
|
|
638
638
|
name: t()?.name || null
|
|
639
639
|
},
|
|
640
640
|
window.location.href
|
|
641
|
-
) : e ===
|
|
641
|
+
) : e === s[2] ? window.postMessage({ type: "event_wof_rules_click", name: t()?.name || null }, window.location.href) : window.postMessage(
|
|
642
642
|
{
|
|
643
643
|
type: "event_wof_accessed",
|
|
644
|
-
isUserLoggedIn: !n(
|
|
644
|
+
isUserLoggedIn: !n(b),
|
|
645
645
|
name: t()?.name || null,
|
|
646
646
|
availableSpins: t()?.remainingTimes || null
|
|
647
647
|
},
|
|
648
648
|
window.location.href
|
|
649
|
-
),
|
|
649
|
+
), a(E, !1), a(d, e, !0));
|
|
650
650
|
};
|
|
651
|
-
let
|
|
652
|
-
|
|
653
|
-
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()) {
|
|
654
654
|
if (n(B))
|
|
655
|
-
|
|
655
|
+
a(A, !0), a(C, !1);
|
|
656
656
|
else if (n(A)) {
|
|
657
|
-
|
|
657
|
+
a(C, !0);
|
|
658
658
|
const e = setTimeout(
|
|
659
659
|
() => {
|
|
660
|
-
|
|
660
|
+
a(A, !1), a(C, !1);
|
|
661
661
|
},
|
|
662
662
|
350
|
|
663
663
|
);
|
|
@@ -665,247 +665,245 @@ function $e(V, i) {
|
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
const
|
|
669
|
-
if (!t()?.id || !
|
|
670
|
-
const e = new URL(`${
|
|
671
|
-
|
|
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}`);
|
|
672
672
|
try {
|
|
673
|
-
const
|
|
674
|
-
let
|
|
675
|
-
if (
|
|
676
|
-
const
|
|
677
|
-
|
|
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);
|
|
678
678
|
}
|
|
679
|
-
const
|
|
679
|
+
const X = Ze({
|
|
680
680
|
...t(),
|
|
681
|
-
remainingTimes:
|
|
682
|
-
current: { ...t().current, remainingTimes:
|
|
681
|
+
remainingTimes: v,
|
|
682
|
+
current: { ...t().current, remainingTimes: v }
|
|
683
683
|
});
|
|
684
|
-
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data:
|
|
685
|
-
} catch (
|
|
686
|
-
console.log(
|
|
684
|
+
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: X }, "*");
|
|
685
|
+
} catch (o) {
|
|
686
|
+
console.log(o);
|
|
687
687
|
} finally {
|
|
688
|
-
|
|
688
|
+
a(D, !1);
|
|
689
689
|
}
|
|
690
|
-
},
|
|
690
|
+
}, q = (e) => {
|
|
691
691
|
if (e.data)
|
|
692
692
|
switch (e.data.type) {
|
|
693
693
|
case "SpinAgain":
|
|
694
694
|
case "BackToWheel":
|
|
695
|
-
|
|
695
|
+
a(g, null), e.data.skipFetch ? a(D, !0) : V();
|
|
696
696
|
break;
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
|
-
|
|
699
|
+
We(() => (window.postMessage(
|
|
700
700
|
{
|
|
701
701
|
type: "event_wof_accessed",
|
|
702
|
-
isUserLoggedIn: !n(
|
|
702
|
+
isUserLoggedIn: !n(b),
|
|
703
703
|
name: t()?.name || null,
|
|
704
704
|
availableSpins: t()?.remainingTimes || null
|
|
705
705
|
},
|
|
706
706
|
window.location.href
|
|
707
|
-
), window.addEventListener("message",
|
|
708
|
-
window.removeEventListener("message",
|
|
707
|
+
), window.addEventListener("message", q), () => {
|
|
708
|
+
window.removeEventListener("message", q);
|
|
709
709
|
}));
|
|
710
|
-
var
|
|
710
|
+
var fe = {
|
|
711
711
|
get program() {
|
|
712
712
|
return t();
|
|
713
713
|
},
|
|
714
714
|
set program(e = null) {
|
|
715
|
-
t(e),
|
|
715
|
+
t(e), p();
|
|
716
716
|
},
|
|
717
717
|
get endpoint() {
|
|
718
|
-
return
|
|
718
|
+
return c();
|
|
719
719
|
},
|
|
720
720
|
set endpoint(e = null) {
|
|
721
|
-
|
|
721
|
+
c(e), p();
|
|
722
722
|
},
|
|
723
723
|
get session() {
|
|
724
|
-
return
|
|
724
|
+
return f();
|
|
725
725
|
},
|
|
726
726
|
set session(e = null) {
|
|
727
|
-
|
|
727
|
+
f(e), p();
|
|
728
728
|
},
|
|
729
729
|
get outerWheelAsset() {
|
|
730
|
-
return
|
|
730
|
+
return L();
|
|
731
731
|
},
|
|
732
732
|
set outerWheelAsset(e = null) {
|
|
733
|
-
|
|
733
|
+
L(e), p();
|
|
734
734
|
},
|
|
735
735
|
get wheelButtonAsset() {
|
|
736
|
-
return
|
|
736
|
+
return R();
|
|
737
737
|
},
|
|
738
738
|
set wheelButtonAsset(e = null) {
|
|
739
|
-
|
|
739
|
+
R(e), p();
|
|
740
740
|
},
|
|
741
741
|
get backgroundVideoAsset() {
|
|
742
742
|
return M();
|
|
743
743
|
},
|
|
744
744
|
set backgroundVideoAsset(e = null) {
|
|
745
|
-
M(e),
|
|
745
|
+
M(e), p();
|
|
746
746
|
},
|
|
747
747
|
get language() {
|
|
748
|
-
return
|
|
748
|
+
return Y();
|
|
749
749
|
},
|
|
750
750
|
set language(e = "en") {
|
|
751
|
-
|
|
751
|
+
Y(e), p();
|
|
752
752
|
},
|
|
753
753
|
get showBackButton() {
|
|
754
|
-
return
|
|
754
|
+
return I();
|
|
755
755
|
},
|
|
756
756
|
set showBackButton(e = !0) {
|
|
757
|
-
|
|
757
|
+
I(e), p();
|
|
758
758
|
},
|
|
759
759
|
get liteMode() {
|
|
760
|
-
return
|
|
760
|
+
return m();
|
|
761
761
|
},
|
|
762
762
|
set liteMode(e = !1) {
|
|
763
|
-
|
|
763
|
+
m(e), p();
|
|
764
764
|
}
|
|
765
|
-
},
|
|
766
|
-
let
|
|
767
|
-
var
|
|
765
|
+
}, S = Qe();
|
|
766
|
+
let K;
|
|
767
|
+
var J = G(S);
|
|
768
768
|
{
|
|
769
|
-
var
|
|
770
|
-
var r =
|
|
771
|
-
let
|
|
769
|
+
var me = (e) => {
|
|
770
|
+
var r = Je();
|
|
771
|
+
let o;
|
|
772
772
|
r.muted = !0;
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
}),
|
|
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);
|
|
777
777
|
};
|
|
778
|
-
|
|
779
|
-
!
|
|
778
|
+
re(J, (e) => {
|
|
779
|
+
!m() && n(d) === s[1] && e(me);
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
|
-
var
|
|
783
|
-
let
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
var P = y
|
|
787
|
-
let
|
|
788
|
-
var
|
|
789
|
-
|
|
790
|
-
var
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
(O) => {
|
|
800
|
-
w = v(a, 1, "tab svelte-17ly5gn", null, w, { active: n(f) === r }), F(z, O);
|
|
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);
|
|
801
799
|
},
|
|
802
800
|
[() => _()(r)]
|
|
803
|
-
),
|
|
804
|
-
}),
|
|
805
|
-
var W =
|
|
806
|
-
let
|
|
807
|
-
var
|
|
808
|
-
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, {
|
|
809
807
|
get program() {
|
|
810
808
|
return t();
|
|
811
809
|
},
|
|
812
810
|
get endpoint() {
|
|
813
|
-
return
|
|
811
|
+
return c();
|
|
814
812
|
},
|
|
815
813
|
get session() {
|
|
816
|
-
return
|
|
814
|
+
return f();
|
|
817
815
|
},
|
|
818
816
|
get outerWheelAsset() {
|
|
819
|
-
return
|
|
817
|
+
return L();
|
|
820
818
|
},
|
|
821
819
|
get wheelButtonAsset() {
|
|
822
|
-
return
|
|
820
|
+
return R();
|
|
823
821
|
},
|
|
824
822
|
get wheelSlices() {
|
|
825
|
-
return n(
|
|
823
|
+
return n(pe);
|
|
826
824
|
},
|
|
827
825
|
get isPlaceholder() {
|
|
828
|
-
return n(
|
|
826
|
+
return n(b);
|
|
829
827
|
},
|
|
830
828
|
get isWheelAvailable() {
|
|
831
|
-
return n(
|
|
829
|
+
return n(le);
|
|
832
830
|
},
|
|
833
831
|
get liteMode() {
|
|
834
|
-
return
|
|
832
|
+
return m();
|
|
835
833
|
},
|
|
836
834
|
get remainingTimesLoading() {
|
|
837
|
-
return n(
|
|
835
|
+
return n(D);
|
|
838
836
|
},
|
|
839
|
-
onLogin:
|
|
837
|
+
onLogin: de,
|
|
840
838
|
get spinResults() {
|
|
841
|
-
return n(
|
|
839
|
+
return n(g);
|
|
842
840
|
},
|
|
843
841
|
set spinResults(e) {
|
|
844
|
-
|
|
842
|
+
a(g, e, !0);
|
|
845
843
|
},
|
|
846
844
|
get spinActive() {
|
|
847
845
|
return n(B);
|
|
848
846
|
},
|
|
849
847
|
set spinActive(e) {
|
|
850
|
-
|
|
848
|
+
a(B, e, !0);
|
|
851
849
|
}
|
|
852
|
-
}),
|
|
853
|
-
var
|
|
850
|
+
}), z(W);
|
|
851
|
+
var ve = w(W, 2);
|
|
854
852
|
{
|
|
855
|
-
var
|
|
853
|
+
var ke = (e) => {
|
|
856
854
|
Ve(e, {
|
|
857
855
|
get result() {
|
|
858
|
-
return n(
|
|
856
|
+
return n(g);
|
|
859
857
|
},
|
|
860
858
|
get endpoint() {
|
|
861
|
-
return
|
|
859
|
+
return c();
|
|
862
860
|
},
|
|
863
861
|
get session() {
|
|
864
|
-
return
|
|
862
|
+
return f();
|
|
865
863
|
},
|
|
866
864
|
get liteMode() {
|
|
867
|
-
return
|
|
865
|
+
return m();
|
|
868
866
|
},
|
|
869
|
-
onFetchRemainingTimes:
|
|
867
|
+
onFetchRemainingTimes: V
|
|
870
868
|
});
|
|
871
|
-
},
|
|
869
|
+
}, ze = (e) => {
|
|
872
870
|
{
|
|
873
|
-
let r =
|
|
874
|
-
|
|
871
|
+
let r = F(() => t()?.id);
|
|
872
|
+
Ue(e, {
|
|
875
873
|
get programId() {
|
|
876
874
|
return n(r);
|
|
877
875
|
},
|
|
878
876
|
get endpoint() {
|
|
879
|
-
return
|
|
877
|
+
return c();
|
|
880
878
|
},
|
|
881
879
|
get session() {
|
|
882
|
-
return
|
|
880
|
+
return f();
|
|
883
881
|
}
|
|
884
882
|
});
|
|
885
883
|
}
|
|
886
|
-
},
|
|
887
|
-
|
|
884
|
+
}, _e = (e) => {
|
|
885
|
+
qe(e, {
|
|
888
886
|
get program() {
|
|
889
887
|
return t();
|
|
890
888
|
},
|
|
891
889
|
get language() {
|
|
892
|
-
return
|
|
890
|
+
return Y();
|
|
893
891
|
}
|
|
894
892
|
});
|
|
895
893
|
};
|
|
896
|
-
|
|
897
|
-
n(
|
|
894
|
+
re(ve, (e) => {
|
|
895
|
+
n(g) ? e(ke) : n(d) === s[0] ? e(ze, 1) : n(d) === s[2] && e(_e, 2);
|
|
898
896
|
});
|
|
899
897
|
}
|
|
900
|
-
|
|
901
|
-
(e, r,
|
|
902
|
-
|
|
898
|
+
z(S), O(
|
|
899
|
+
(e, r, o) => {
|
|
900
|
+
K = x(S, 1, "wheel-content svelte-17ly5gn", null, K, {
|
|
903
901
|
"is-spin-blocking": n(B),
|
|
904
902
|
"is-spin-fullscreen": n(A),
|
|
905
|
-
"is-spin-exiting": n(
|
|
906
|
-
"wheel-background-halo":
|
|
907
|
-
}),
|
|
908
|
-
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"
|
|
909
907
|
});
|
|
910
908
|
},
|
|
911
909
|
[
|
|
@@ -913,13 +911,13 @@ function $e(V, i) {
|
|
|
913
911
|
() => _()("wofTitle"),
|
|
914
912
|
() => _()("wofSubtitle")
|
|
915
913
|
]
|
|
916
|
-
),
|
|
917
|
-
var
|
|
918
|
-
return
|
|
914
|
+
), ae("click", y, ge), H(U, S);
|
|
915
|
+
var Be = He(fe);
|
|
916
|
+
return ie(), Be;
|
|
919
917
|
}
|
|
920
|
-
|
|
918
|
+
Ce(["click"]);
|
|
921
919
|
customElements.define("wheel-of-fortune", Se(
|
|
922
|
-
|
|
920
|
+
en,
|
|
923
921
|
{
|
|
924
922
|
program: {},
|
|
925
923
|
endpoint: {},
|
|
@@ -935,5 +933,5 @@ customElements.define("wheel-of-fortune", Se(
|
|
|
935
933
|
[]
|
|
936
934
|
));
|
|
937
935
|
export {
|
|
938
|
-
|
|
936
|
+
en as W
|
|
939
937
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ke=Object.getOwnPropertyDescriptors;var
|
|
1
|
+
"use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ke=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var J=(p,a,i)=>a in p?ye(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,Y=(p,a)=>{for(var i in a||(a={}))ze.call(a,i)&&J(p,i,a[i]);if(N)for(var i of N(a))_e.call(a,i)&&J(p,i,a[i]);return p},I=(p,a)=>ve(p,ke(a));var Q=(p,a,i)=>new Promise((F,v)=>{var P=l=>{try{c(i.next(l))}catch(b){v(b)}},o=l=>{try{c(i.throw(l))}catch(b){v(b)}},c=l=>l.done?F(l.value):Promise.resolve(l.value).then(P,o);c((i=i.apply(p,a)).next())});const t=require("./WheelOfFortuneWheel-0b7lq2LJ.cjs"),e=require("./utils-03vIpDSe.cjs"),Be=require("./WheelOfFortuneHistory-tYu_rAD4.cjs"),Se=require("./WheelOfFortuneDrawResults-C3U-7-aw.cjs"),Ae=require("./WheelOfFortuneRules-BVcH-eGN.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
|
}
|
|
@@ -594,7 +594,7 @@
|
|
|
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
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
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-
|
|
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-weight:900;cursor:pointer;position:relative;z-index:2;
|
|
598
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 {
|
|
599
599
|
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;
|
|
600
600
|
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;
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
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);
|
|
607
607
|
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);
|
|
608
608
|
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%;
|
|
609
|
-
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-
|
|
609
|
+
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;}
|
|
610
610
|
@media (prefers-reduced-motion: reduce) { .coin,
|
|
611
611
|
.draw-result-title,
|
|
612
612
|
.draw-result-description,
|
|
@@ -614,4 +614,4 @@
|
|
|
614
614
|
.coin img {
|
|
615
615
|
animation: none;} .success-confetti-piece {
|
|
616
616
|
animation: none;}
|
|
617
|
-
}`};function
|
|
617
|
+
}`};function $(p,a){e.push(a,!0),t.append_styles(p,Te);const i=()=>t.store_get(e.$format,"$_",F),[F,v]=t.setup_stores();e.dayjs.extend(t.duration);const P="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),b=t.prop(a,"outerWheelAsset",7,null),W=t.prop(a,"wheelButtonAsset",7,null),T=t.prop(a,"backgroundVideoAsset",7,null),G=t.prop(a,"language",7,"en"),R=t.prop(a,"showBackButton",7,!0),u=t.prop(a,"liteMode",7,!1),h=e.user_derived(()=>!c()||!o()),ee=e.user_derived(()=>{var n,r;return!e.get(h)&&((r=(n=o())==null?void 0:n.remainingTimes)!=null?r:0)>0}),ne=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 te=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(j,!1),e.set(f,n,!0))};let m=e.state(null),k=e.state(!1),j=e.state(!1),L=e.state(!1),z=e.state(!1),_=e.state(!1);e.user_effect(()=>{if(!u()){if(e.get(k))e.set(z,!0),e.set(_,!1);else if(e.get(z)){e.set(_,!0);const n=setTimeout(()=>{e.set(z,!1),e.set(_,!1)},350);return()=>clearTimeout(n)}}});const re=()=>window.postMessage({type:"LuckyWheel:GoToLogin"},window.location.href),ae=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),O=()=>Q(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 M=0;if(((d=x==null?void 0:x.items)==null?void 0:d.length)>0){const K=x.items.find(xe=>xe.programId===o().id);K&&(M=+K.remainingTimes||0)}const we=e.snapshot(I(Y({},o()),{remainingTimes:M,current:I(Y({},o().current),{remainingTimes:M})}));window.postMessage({type:"PrizeGameRemainingTimesUpdated",data:we},"*")}catch(w){console.log(w)}finally{e.set(L,!1)}}),E=n=>{if(n.data)switch(n.data.type){case"SpinAgain":case"BackToWheel":e.set(m,null),n.data.skipFetch?e.set(L,!0):O();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",E),()=>{window.removeEventListener("message",E)}});var oe={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 b()},set outerWheelAsset(n=null){b(n),e.flushSync()},get wheelButtonAsset(){return W()},set wheelButtonAsset(n=null){W(n),e.flushSync()},get backgroundVideoAsset(){return T()},set backgroundVideoAsset(n=null){T(n),e.flushSync()},get language(){return G()},set language(n="en"){G(n),e.flushSync()},get showBackButton(){return R()},set showBackButton(n=!0){R(n),e.flushSync()},get liteMode(){return u()},set liteMode(n=!1){u(n),e.flushSync()}},B=We();let D;var H=e.child(B);{var ie=n=>{var r=Fe();let s;r.muted=!0;var d=e.only_child(r);e.template_effect(()=>{s=t.set_class(r,1,"wheel-video-background svelte-17ly5gn",null,s,{"is-ready":e.get(j)}),t.set_attribute(d,"src",T()||P)}),t.event("canplay",r,()=>e.set(j,!0)),t.append(n,r)};t.if_block(H,n=>{!u()&&e.get(f)===g[1]&&n(ie)})}var y=e.sibling(H,2);let X;var se=e.sibling(e.child(y),2),le=e.only_child(se,!0);e.reset(y);var S=e.sibling(y,2);let Z;var q=e.child(S),pe=e.only_child(q,!0),ce=e.sibling(q,2),de=e.only_child(ce,!0);e.reset(S);var A=e.sibling(S,2);let V;t.each(A,20,()=>g,n=>n,(n,r)=>{var s=Pe();let d;var w=e.only_child(s,!0);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,()=>te(r)),t.append(n,s)}),e.reset(A);var C=e.sibling(A,2);let U;var ge=e.child(C);t.WheelOfFortuneWheel(ge,{get program(){return o()},get endpoint(){return c()},get session(){return l()},get outerWheelAsset(){return b()},get wheelButtonAsset(){return W()},get wheelSlices(){return e.get(ne)},get isPlaceholder(){return e.get(h)},get isWheelAvailable(){return e.get(ee)},get liteMode(){return u()},get remainingTimesLoading(){return e.get(L)},onLogin:re,get spinResults(){return e.get(m)},set spinResults(n){e.set(m,n,!0)},get spinActive(){return e.get(k)},set spinActive(n){e.set(k,n,!0)}}),e.reset(C);var fe=e.sibling(C,2);{var me=n=>{Se.WheelOfFortuneDrawResults(n,{get result(){return e.get(m)},get endpoint(){return c()},get session(){return l()},get liteMode(){return u()},onFetchRemainingTimes:O})},be=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()}})}},ue=n=>{Ae.WheelOfFortuneRules(n,{get program(){return o()},get language(){return G()}})};t.if_block(fe,n=>{e.get(m)?n(me):e.get(f)===g[0]?n(be,1):e.get(f)===g[2]&&n(ue,2)})}e.reset(B),e.template_effect((n,r,s)=>{D=t.set_class(B,1,"wheel-content svelte-17ly5gn",null,D,{"is-spin-blocking":e.get(k),"is-spin-fullscreen":e.get(z),"is-spin-exiting":e.get(_),"wheel-background-halo":u()&&e.get(f)===g[1]}),X=t.set_class(y,1,"back-button-container svelte-17ly5gn",null,X,{hidden:e.get(h)||!R()}),t.set_text(le,n),Z=t.set_class(S,1,"wof-title svelte-17ly5gn",null,Z,{hidden:e.get(m)}),t.set_text(pe,r),t.set_text(de,s),V=t.set_class(A,1,"wof-tabs svelte-17ly5gn",null,V,{hidden:e.get(h)||e.get(m)}),U=t.set_style(C,"",U,{display:e.get(f)!==g[1]||e.get(m)?"none":"contents"})},[()=>i()("backToHub"),()=>i()("wofTitle"),()=>i()("wofSubtitle")]),t.delegated("click",y,ae),t.append(p,B);var he=e.pop(oe);return v(),he}t.delegate(["click"]);customElements.define("wheel-of-fortune",t.create_custom_element($,{program:{},endpoint:{},session:{},outerWheelAsset:{},wheelButtonAsset:{},backgroundVideoAsset:{},language:{},showBackButton:{},liteMode:{}},[],[]));exports.WheelOfFortune=$;
|