@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,39 +1,39 @@
|
|
|
1
1
|
var Ge = Object.defineProperty, je = Object.defineProperties;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
2
|
+
var Le = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ce = Object.getOwnPropertySymbols;
|
|
4
|
+
var Re = Object.prototype.hasOwnProperty, Ie = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var de = (l, r, o) => r in l ? Ge(l, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[r] = o, K = (l, r) => {
|
|
6
|
+
for (var o in r || (r = {}))
|
|
7
|
+
Re.call(r, o) && de(l, o, r[o]);
|
|
8
|
+
if (ce)
|
|
9
|
+
for (var o of ce(r))
|
|
10
|
+
Ie.call(r, o) && de(l, o, r[o]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, N = (l, r) => je(l, Le(r));
|
|
13
|
+
var ge = (l, r, o) => new Promise((I, C) => {
|
|
14
14
|
var M = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
c(o.next(s));
|
|
17
17
|
} catch (x) {
|
|
18
18
|
C(x);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, a = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
c(o.throw(s));
|
|
23
23
|
} catch (x) {
|
|
24
24
|
C(x);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, c = (s) => s.done ? I(s.value) : Promise.resolve(s.value).then(M, a);
|
|
27
|
+
c((o = o.apply(l, r)).next());
|
|
28
28
|
});
|
|
29
|
-
import { d as
|
|
30
|
-
import {
|
|
31
|
-
import { W as
|
|
32
|
-
import { W as
|
|
33
|
-
import { W as
|
|
34
|
-
import { p as
|
|
35
|
-
var
|
|
36
|
-
const
|
|
29
|
+
import { d as Me, c as Ye, a as Oe, t as Ee, p as m, o as De, i as fe, e as Xe, W as Ze, k as A, s as L, r as He, l as me, b as Q, f as J, m as Ve, u as Ue } from "./WheelOfFortuneWheel-D2fKZ64n.js";
|
|
30
|
+
import { D as Ke, aL as Ne, aM as z, az as Qe, S as qe, Z as n, ar as p, aO as _, aT as b, ae as q, I as Je, aX as R, aP as $e, aQ as en, aD as u, aR as nn, b5 as tn, aW as g } from "./utils-C7uxZXaZ.js";
|
|
31
|
+
import { W as rn } from "./WheelOfFortuneHistory-T7NjHsHw.js";
|
|
32
|
+
import { W as an } from "./WheelOfFortuneDrawResults-B7udZBEV.js";
|
|
33
|
+
import { W as on } from "./WheelOfFortuneRules-DodXc6sB.js";
|
|
34
|
+
import { p as sn } from "./constants-BYsDpbRv.js";
|
|
35
|
+
var ln = J('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), pn = J("<button> </button>"), cn = J('<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>');
|
|
36
|
+
const dn = {
|
|
37
37
|
hash: "svelte-17ly5gn",
|
|
38
38
|
code: `@keyframes svelte-17ly5gn-wheelBob {
|
|
39
39
|
0%, 100% {
|
|
@@ -575,7 +575,7 @@ const cn = {
|
|
|
575
575
|
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);
|
|
576
576
|
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) {
|
|
577
577
|
animation: svelte-17ly5gn-middleButtonIdleZoomGlow 1450ms ease-in-out infinite;} .center-button.is-pressing {
|
|
578
|
-
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) {
|
|
578
|
+
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) {
|
|
579
579
|
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);
|
|
580
580
|
animation: svelte-17ly5gn-wofSpinnerRotate 900ms linear infinite;} .wheel-wrapper.is-assets-loading ~ .wheel-loading-spinner {
|
|
581
581
|
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%;
|
|
@@ -629,8 +629,9 @@ const cn = {
|
|
|
629
629
|
@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);}
|
|
630
630
|
}
|
|
631
631
|
@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);}
|
|
632
|
-
} .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);
|
|
633
|
-
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);} .
|
|
632
|
+
} .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);
|
|
633
|
+
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%;
|
|
634
|
+
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;
|
|
634
635
|
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 {
|
|
635
636
|
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;}
|
|
636
637
|
@keyframes svelte-17ly5gn-spinOverlayIn {
|
|
@@ -665,95 +666,110 @@ const cn = {
|
|
|
665
666
|
animation: none;}
|
|
666
667
|
}`
|
|
667
668
|
};
|
|
668
|
-
function
|
|
669
|
-
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
const M = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",
|
|
669
|
+
function gn(l, r) {
|
|
670
|
+
Ke(r, !0), Oe(l, dn);
|
|
671
|
+
const o = () => $e(en, "$_", I), [I, C] = nn();
|
|
672
|
+
Ne.extend(Ee);
|
|
673
|
+
const M = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", a = m(r, "program", 7, null), c = m(r, "endpoint", 7, null), s = m(r, "session", 7, null), x = m(r, "outerWheelAsset", 7, null), Y = m(r, "wheelButtonAsset", 7, null), O = m(r, "backgroundVideoAsset", 7, null), E = m(r, "language", 7, "en"), D = m(r, "showBackButton", 7, !0), y = m(r, "liteMode", 7, !1), v = R(() => !c() || !a()), be = R(() => {
|
|
673
674
|
var e, t;
|
|
674
|
-
return !n(
|
|
675
|
-
}),
|
|
675
|
+
return !n(v) && ((t = (e = a()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
|
|
676
|
+
}), ue = R(() => {
|
|
676
677
|
var e, t;
|
|
677
|
-
return n(
|
|
678
|
+
return n(v) ? sn : (t = (e = a()) == null ? void 0 : e.partitions) != null ? t : [];
|
|
678
679
|
}), f = ["history", "play", "rules"];
|
|
679
|
-
let h =
|
|
680
|
-
const
|
|
681
|
-
var t, i, d,
|
|
680
|
+
let h = z(Qe(f[1]));
|
|
681
|
+
const he = (e) => {
|
|
682
|
+
var t, i, d, k;
|
|
682
683
|
e !== n(h) && (e === f[0] ? window.postMessage(
|
|
683
684
|
{
|
|
684
685
|
type: "event_wof_history_click",
|
|
685
|
-
name: ((t =
|
|
686
|
+
name: ((t = a()) == null ? void 0 : t.name) || null
|
|
686
687
|
},
|
|
687
688
|
window.location.href
|
|
688
|
-
) : e === f[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i =
|
|
689
|
+
) : e === f[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i = a()) == null ? void 0 : i.name) || null }, window.location.href) : window.postMessage(
|
|
689
690
|
{
|
|
690
691
|
type: "event_wof_accessed",
|
|
691
|
-
isUserLoggedIn: !n(
|
|
692
|
-
name: ((d =
|
|
693
|
-
availableSpins: ((
|
|
692
|
+
isUserLoggedIn: !n(v),
|
|
693
|
+
name: ((d = a()) == null ? void 0 : d.name) || null,
|
|
694
|
+
availableSpins: ((k = a()) == null ? void 0 : k.remainingTimes) || null
|
|
694
695
|
},
|
|
695
696
|
window.location.href
|
|
696
|
-
),
|
|
697
|
+
), p(Z, !1), p(h, e, !0));
|
|
697
698
|
};
|
|
698
|
-
let w =
|
|
699
|
-
|
|
700
|
-
if (
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
699
|
+
let w = z(null), X = z(!1), Z = z(!1), H = z(!1), P = z(!1), T = z(!1);
|
|
700
|
+
qe(() => {
|
|
701
|
+
if (!y()) {
|
|
702
|
+
if (n(X))
|
|
703
|
+
p(P, !0), p(T, !1);
|
|
704
|
+
else if (n(P)) {
|
|
705
|
+
p(T, !0);
|
|
706
|
+
const e = setTimeout(
|
|
707
|
+
() => {
|
|
708
|
+
p(P, !1), p(T, !1);
|
|
709
|
+
},
|
|
710
|
+
350
|
|
711
|
+
);
|
|
712
|
+
return () => clearTimeout(e);
|
|
713
|
+
}
|
|
711
714
|
}
|
|
712
715
|
});
|
|
713
|
-
const
|
|
716
|
+
const we = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), xe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), $ = () => ge(this, null, function* () {
|
|
714
717
|
var i, d;
|
|
715
|
-
if (!((i =
|
|
716
|
-
const e = new URL(`${
|
|
717
|
-
s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${
|
|
718
|
+
if (!((i = a()) != null && i.id) || !c()) return;
|
|
719
|
+
const e = new URL(`${c()}/v1/wof/remainingTimes`), t = new Headers();
|
|
720
|
+
s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${a().id}`);
|
|
718
721
|
try {
|
|
719
|
-
const
|
|
720
|
-
let
|
|
721
|
-
if (((d =
|
|
722
|
-
const
|
|
723
|
-
|
|
722
|
+
const B = yield (yield fetch(e, { method: "GET", headers: t })).json();
|
|
723
|
+
let U = 0;
|
|
724
|
+
if (((d = B == null ? void 0 : B.items) == null ? void 0 : d.length) > 0) {
|
|
725
|
+
const pe = B.items.find((Fe) => Fe.programId === a().id);
|
|
726
|
+
pe && (U = +pe.remainingTimes || 0);
|
|
724
727
|
}
|
|
725
|
-
const We =
|
|
726
|
-
remainingTimes:
|
|
727
|
-
current: K(
|
|
728
|
+
const We = tn(N(K({}, a()), {
|
|
729
|
+
remainingTimes: U,
|
|
730
|
+
current: N(K({}, a().current), { remainingTimes: U })
|
|
728
731
|
}));
|
|
729
732
|
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: We }, "*");
|
|
730
|
-
} catch (
|
|
731
|
-
console.log(
|
|
733
|
+
} catch (k) {
|
|
734
|
+
console.log(k);
|
|
735
|
+
} finally {
|
|
736
|
+
p(H, !1);
|
|
732
737
|
}
|
|
733
|
-
}),
|
|
738
|
+
}), ee = (e) => {
|
|
734
739
|
if (e.data)
|
|
735
|
-
switch (e.data.type) {
|
|
740
|
+
switch (console.log(e.data, "--- fuck"), e.data.type) {
|
|
736
741
|
case "SpinAgain":
|
|
737
742
|
case "BackToWheel":
|
|
738
|
-
|
|
743
|
+
p(w, null), e.data.skipFetch ? p(H, !0) : $();
|
|
739
744
|
break;
|
|
740
745
|
}
|
|
741
746
|
};
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
747
|
+
De(() => {
|
|
748
|
+
var e, t;
|
|
749
|
+
return window.postMessage(
|
|
750
|
+
{
|
|
751
|
+
type: "event_wof_accessed",
|
|
752
|
+
isUserLoggedIn: !n(v),
|
|
753
|
+
name: ((e = a()) == null ? void 0 : e.name) || null,
|
|
754
|
+
availableSpins: ((t = a()) == null ? void 0 : t.remainingTimes) || null
|
|
755
|
+
},
|
|
756
|
+
window.location.href
|
|
757
|
+
), window.addEventListener("message", ee), () => {
|
|
758
|
+
window.removeEventListener("message", ee);
|
|
759
|
+
};
|
|
760
|
+
});
|
|
761
|
+
var ye = {
|
|
746
762
|
get program() {
|
|
747
|
-
return
|
|
763
|
+
return a();
|
|
748
764
|
},
|
|
749
765
|
set program(e = null) {
|
|
750
|
-
|
|
766
|
+
a(e), u();
|
|
751
767
|
},
|
|
752
768
|
get endpoint() {
|
|
753
|
-
return
|
|
769
|
+
return c();
|
|
754
770
|
},
|
|
755
771
|
set endpoint(e = null) {
|
|
756
|
-
|
|
772
|
+
c(e), u();
|
|
757
773
|
},
|
|
758
774
|
get session() {
|
|
759
775
|
return s();
|
|
@@ -768,16 +784,16 @@ function dn(l, r) {
|
|
|
768
784
|
x(e), u();
|
|
769
785
|
},
|
|
770
786
|
get wheelButtonAsset() {
|
|
771
|
-
return
|
|
787
|
+
return Y();
|
|
772
788
|
},
|
|
773
789
|
set wheelButtonAsset(e = null) {
|
|
774
|
-
|
|
790
|
+
Y(e), u();
|
|
775
791
|
},
|
|
776
792
|
get backgroundVideoAsset() {
|
|
777
|
-
return
|
|
793
|
+
return O();
|
|
778
794
|
},
|
|
779
795
|
set backgroundVideoAsset(e = null) {
|
|
780
|
-
|
|
796
|
+
O(e), u();
|
|
781
797
|
},
|
|
782
798
|
get language() {
|
|
783
799
|
return E();
|
|
@@ -786,66 +802,66 @@ function dn(l, r) {
|
|
|
786
802
|
E(e), u();
|
|
787
803
|
},
|
|
788
804
|
get showBackButton() {
|
|
789
|
-
return
|
|
805
|
+
return D();
|
|
790
806
|
},
|
|
791
807
|
set showBackButton(e = !0) {
|
|
792
|
-
|
|
808
|
+
D(e), u();
|
|
793
809
|
},
|
|
794
810
|
get liteMode() {
|
|
795
|
-
return
|
|
811
|
+
return y();
|
|
796
812
|
},
|
|
797
813
|
set liteMode(e = !1) {
|
|
798
|
-
|
|
814
|
+
y(e), u();
|
|
799
815
|
}
|
|
800
|
-
},
|
|
801
|
-
let
|
|
802
|
-
var
|
|
816
|
+
}, W = cn();
|
|
817
|
+
let ne;
|
|
818
|
+
var te = b(W);
|
|
803
819
|
{
|
|
804
|
-
var
|
|
805
|
-
var t =
|
|
820
|
+
var ve = (e) => {
|
|
821
|
+
var t = ln();
|
|
806
822
|
let i;
|
|
807
823
|
t.muted = !0;
|
|
808
824
|
var d = b(t);
|
|
809
|
-
g(t),
|
|
810
|
-
i =
|
|
811
|
-
}),
|
|
825
|
+
g(t), q(() => {
|
|
826
|
+
i = A(t, 1, "wheel-video-background svelte-17ly5gn", null, i, { "is-ready": n(Z) }), Ve(d, "src", O() || M);
|
|
827
|
+
}), Ue("canplay", t, () => p(Z, !0)), Q(e, t);
|
|
812
828
|
};
|
|
813
|
-
|
|
814
|
-
!
|
|
829
|
+
fe(te, (e) => {
|
|
830
|
+
!y() && n(h) === f[1] && e(ve);
|
|
815
831
|
});
|
|
816
832
|
}
|
|
817
|
-
var
|
|
818
|
-
let
|
|
819
|
-
var
|
|
820
|
-
g(
|
|
821
|
-
var
|
|
822
|
-
let
|
|
823
|
-
var
|
|
824
|
-
g(
|
|
825
|
-
var
|
|
826
|
-
g(
|
|
827
|
-
var
|
|
828
|
-
let
|
|
829
|
-
Xe(
|
|
830
|
-
var i =
|
|
833
|
+
var S = _(te, 2);
|
|
834
|
+
let re;
|
|
835
|
+
var ae = _(b(S), 2), ke = b(ae, !0);
|
|
836
|
+
g(ae), g(S);
|
|
837
|
+
var F = _(S, 2);
|
|
838
|
+
let oe;
|
|
839
|
+
var V = b(F), ze = b(V, !0);
|
|
840
|
+
g(V);
|
|
841
|
+
var ie = _(V, 2), _e = b(ie, !0);
|
|
842
|
+
g(ie), g(F);
|
|
843
|
+
var G = _(F, 2);
|
|
844
|
+
let se;
|
|
845
|
+
Xe(G, 20, () => f, (e) => e, (e, t) => {
|
|
846
|
+
var i = pn();
|
|
831
847
|
let d;
|
|
832
|
-
var
|
|
833
|
-
g(i),
|
|
834
|
-
(
|
|
835
|
-
d =
|
|
848
|
+
var k = b(i, !0);
|
|
849
|
+
g(i), q(
|
|
850
|
+
(B) => {
|
|
851
|
+
d = A(i, 1, "tab svelte-17ly5gn", null, d, { active: n(h) === t }), L(k, B);
|
|
836
852
|
},
|
|
837
|
-
[() =>
|
|
838
|
-
),
|
|
839
|
-
}), g(
|
|
840
|
-
var
|
|
841
|
-
let
|
|
842
|
-
var
|
|
843
|
-
|
|
853
|
+
[() => o()(t)]
|
|
854
|
+
), me("click", i, () => he(t)), Q(e, i);
|
|
855
|
+
}), g(G);
|
|
856
|
+
var j = _(G, 2);
|
|
857
|
+
let le;
|
|
858
|
+
var Be = b(j);
|
|
859
|
+
Ze(Be, {
|
|
844
860
|
get program() {
|
|
845
|
-
return
|
|
861
|
+
return a();
|
|
846
862
|
},
|
|
847
863
|
get endpoint() {
|
|
848
|
-
return
|
|
864
|
+
return c();
|
|
849
865
|
},
|
|
850
866
|
get session() {
|
|
851
867
|
return s();
|
|
@@ -854,103 +870,109 @@ function dn(l, r) {
|
|
|
854
870
|
return x();
|
|
855
871
|
},
|
|
856
872
|
get wheelButtonAsset() {
|
|
857
|
-
return
|
|
873
|
+
return Y();
|
|
858
874
|
},
|
|
859
875
|
get wheelSlices() {
|
|
860
|
-
return n(
|
|
876
|
+
return n(ue);
|
|
861
877
|
},
|
|
862
878
|
get isPlaceholder() {
|
|
863
|
-
return n(
|
|
879
|
+
return n(v);
|
|
864
880
|
},
|
|
865
881
|
get isWheelAvailable() {
|
|
866
|
-
return n(
|
|
882
|
+
return n(be);
|
|
867
883
|
},
|
|
868
884
|
get liteMode() {
|
|
869
|
-
return
|
|
885
|
+
return y();
|
|
886
|
+
},
|
|
887
|
+
get remainingTimesLoading() {
|
|
888
|
+
return n(H);
|
|
870
889
|
},
|
|
871
|
-
onLogin:
|
|
890
|
+
onLogin: we,
|
|
872
891
|
get spinResults() {
|
|
873
892
|
return n(w);
|
|
874
893
|
},
|
|
875
894
|
set spinResults(e) {
|
|
876
|
-
|
|
895
|
+
p(w, e, !0);
|
|
877
896
|
},
|
|
878
897
|
get spinActive() {
|
|
879
|
-
return n(
|
|
898
|
+
return n(X);
|
|
880
899
|
},
|
|
881
900
|
set spinActive(e) {
|
|
882
|
-
|
|
901
|
+
p(X, e, !0);
|
|
883
902
|
}
|
|
884
|
-
}), g(
|
|
885
|
-
var
|
|
903
|
+
}), g(j);
|
|
904
|
+
var Ae = _(j, 2);
|
|
886
905
|
{
|
|
887
|
-
var
|
|
888
|
-
|
|
906
|
+
var Se = (e) => {
|
|
907
|
+
an(e, {
|
|
889
908
|
get result() {
|
|
890
909
|
return n(w);
|
|
891
910
|
},
|
|
892
911
|
get endpoint() {
|
|
893
|
-
return
|
|
912
|
+
return c();
|
|
894
913
|
},
|
|
895
914
|
get session() {
|
|
896
915
|
return s();
|
|
897
916
|
},
|
|
898
|
-
|
|
917
|
+
get liteMode() {
|
|
918
|
+
return y();
|
|
919
|
+
},
|
|
920
|
+
onFetchRemainingTimes: $
|
|
899
921
|
});
|
|
900
|
-
},
|
|
922
|
+
}, Ce = (e) => {
|
|
901
923
|
{
|
|
902
|
-
let t =
|
|
924
|
+
let t = R(() => {
|
|
903
925
|
var i;
|
|
904
|
-
return (i =
|
|
926
|
+
return (i = a()) == null ? void 0 : i.id;
|
|
905
927
|
});
|
|
906
|
-
|
|
928
|
+
rn(e, {
|
|
907
929
|
get programId() {
|
|
908
930
|
return n(t);
|
|
909
931
|
},
|
|
910
932
|
get endpoint() {
|
|
911
|
-
return
|
|
933
|
+
return c();
|
|
912
934
|
},
|
|
913
935
|
get session() {
|
|
914
936
|
return s();
|
|
915
937
|
}
|
|
916
938
|
});
|
|
917
939
|
}
|
|
918
|
-
},
|
|
919
|
-
|
|
940
|
+
}, Pe = (e) => {
|
|
941
|
+
on(e, {
|
|
920
942
|
get program() {
|
|
921
|
-
return
|
|
943
|
+
return a();
|
|
922
944
|
},
|
|
923
945
|
get language() {
|
|
924
946
|
return E();
|
|
925
947
|
}
|
|
926
948
|
});
|
|
927
949
|
};
|
|
928
|
-
|
|
929
|
-
n(w) ? e(
|
|
950
|
+
fe(Ae, (e) => {
|
|
951
|
+
n(w) ? e(Se) : n(h) === f[0] ? e(Ce, 1) : n(h) === f[2] && e(Pe, 2);
|
|
930
952
|
});
|
|
931
953
|
}
|
|
932
|
-
g(
|
|
954
|
+
g(W), q(
|
|
933
955
|
(e, t, i) => {
|
|
934
|
-
|
|
935
|
-
"is-spin-fullscreen": n(
|
|
936
|
-
"is-spin-exiting": n(
|
|
937
|
-
"wheel-background-halo":
|
|
938
|
-
}),
|
|
956
|
+
ne = A(W, 1, "wheel-content svelte-17ly5gn", null, ne, {
|
|
957
|
+
"is-spin-fullscreen": n(P),
|
|
958
|
+
"is-spin-exiting": n(T),
|
|
959
|
+
"wheel-background-halo": y() && n(h) === f[1]
|
|
960
|
+
}), re = A(S, 1, "back-button-container svelte-17ly5gn", null, re, { hidden: n(v) || !D() }), L(ke, e), oe = A(F, 1, "wof-title svelte-17ly5gn", null, oe, { hidden: n(w) }), L(ze, t), L(_e, i), se = A(G, 1, "wof-tabs svelte-17ly5gn", null, se, { hidden: n(v) || n(w) }), le = He(j, "", le, {
|
|
939
961
|
display: n(h) !== f[1] || n(w) ? "none" : "contents"
|
|
940
962
|
});
|
|
941
963
|
},
|
|
942
964
|
[
|
|
943
|
-
() =>
|
|
944
|
-
() =>
|
|
945
|
-
() =>
|
|
965
|
+
() => o()("backToHub"),
|
|
966
|
+
() => o()("wofTitle"),
|
|
967
|
+
() => o()("wofSubtitle")
|
|
946
968
|
]
|
|
947
|
-
),
|
|
948
|
-
var
|
|
949
|
-
return C(),
|
|
969
|
+
), me("click", S, xe), Q(l, W);
|
|
970
|
+
var Te = Je(ye);
|
|
971
|
+
return C(), Te;
|
|
950
972
|
}
|
|
951
|
-
|
|
952
|
-
customElements.define("wheel-of-fortune",
|
|
953
|
-
|
|
973
|
+
Me(["click"]);
|
|
974
|
+
customElements.define("wheel-of-fortune", Ye(
|
|
975
|
+
gn,
|
|
954
976
|
{
|
|
955
977
|
program: {},
|
|
956
978
|
endpoint: {},
|
|
@@ -966,5 +988,5 @@ customElements.define("wheel-of-fortune", Me(
|
|
|
966
988
|
[]
|
|
967
989
|
));
|
|
968
990
|
export {
|
|
969
|
-
|
|
991
|
+
gn as W
|
|
970
992
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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(b){v(b)}},o=l=>{try{c(i.throw(l))}catch(b){v(b)}},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
|
}
|
|
@@ -627,4 +627,4 @@
|
|
|
627
627
|
.coin img {
|
|
628
628
|
animation: none;} .success-confetti-piece {
|
|
629
629
|
animation: none;}
|
|
630
|
-
}`};function ne(p,a){e.push(a,!0),t.append_styles(p,
|
|
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),b=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),u=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(!u()){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(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 b()},set outerWheelAsset(n=null){b(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 u()},set liteMode(n=!1){u(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=>{!u()&&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 b()},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 u()},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 u()},onFetchRemainingTimes:E})},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 T()}})};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(_),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":u()&&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;
|