@everymatrix/mini-games-hub 0.1.13 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GameCard-BmOaK5EP.js +50 -0
- package/components/GameCard-C4koIRhP.js +50 -0
- package/components/{GameCard-BIn8BJ4U.cjs → GameCard-DA-8ladf.cjs} +2 -2
- package/components/{MiniGamesHub-SjsgF4e2.cjs → MiniGamesHub-BM5Vxa9S.cjs} +5 -5
- package/components/{MiniGamesHub-D3BazHMT.js → MiniGamesHub-C7aQh03q.js} +139 -141
- package/components/{MiniGamesHub-Cu8_8yFl.js → MiniGamesHub-Dl3isBzY.js} +149 -151
- package/components/{WheelOfFortune-CnaDpfpq.js → WheelOfFortune-B-Rx_FFX.js} +147 -164
- package/components/{WheelOfFortune-BlHeZ0q7.cjs → WheelOfFortune-CidB6b1w.cjs} +6 -21
- package/components/{WheelOfFortune-Lfc_l9kc.js → WheelOfFortune-DdCajfhn.js} +147 -164
- package/components/WheelOfFortuneDrawResults-C3U-7-aw.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-D54Resid.js +279 -0
- package/components/WheelOfFortuneDrawResults-DZ43Wc7d.js +254 -0
- package/components/WheelOfFortuneHistory-COJdJOvU.js +214 -0
- package/components/WheelOfFortuneHistory-DNb6Y7gj.js +214 -0
- package/components/WheelOfFortuneHistory-tYu_rAD4.cjs +13 -0
- package/components/WheelOfFortuneRules-B1F8hnwG.js +109 -0
- package/components/{WheelOfFortuneRules-VAMAiK0m.cjs → WheelOfFortuneRules-BVcH-eGN.cjs} +2 -2
- package/components/WheelOfFortuneRules-DNJmzmyN.js +120 -0
- package/components/WheelOfFortuneWheel-0b7lq2LJ.cjs +3 -0
- package/components/{WheelOfFortuneWheel-DxFn6jjg.js → WheelOfFortuneWheel-BWPBlDFv.js} +1476 -1111
- package/components/{WheelOfFortuneWheel-BAR98ByP.js → WheelOfFortuneWheel-BuBnw_ev.js} +1412 -1049
- package/components/utils-03vIpDSe.cjs +3 -0
- package/components/{utils-d-JrZBJu.js → utils-C9WIoJIh.js} +2236 -2410
- package/components/utils-I5rI2w_S.js +5867 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/GameCard-D3knomma.js +0 -56
- package/components/GameCard-Ds0FcnPp.js +0 -56
- package/components/WheelOfFortuneDrawResults-1lzyxrks.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-DQweghnp.js +0 -301
- package/components/WheelOfFortuneDrawResults-dOeQDVub.js +0 -276
- package/components/WheelOfFortuneHistory-CQZ9QtVt.js +0 -232
- package/components/WheelOfFortuneHistory-DZNPM57t.cjs +0 -13
- package/components/WheelOfFortuneHistory-DygZEtcR.js +0 -232
- package/components/WheelOfFortuneRules-D3N1c8PX.js +0 -117
- package/components/WheelOfFortuneRules-DuiCet95.js +0 -128
- package/components/WheelOfFortuneWheel-hSjxThyU.cjs +0 -3
- package/components/utils-C7uxZXaZ.js +0 -6045
- package/components/utils-DQIHJIDu.cjs +0 -3
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var Ge = Object.defineProperty,
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ge = Object.defineProperty, Le = Object.defineProperties;
|
|
2
|
+
var Re = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var pe = Object.getOwnPropertySymbols;
|
|
4
|
+
var Me = Object.prototype.hasOwnProperty, Ye = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ce = (l, r, o) => r in l ? Ge(l, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[r] = o, q = (l, r) => {
|
|
6
6
|
for (var o in r || (r = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
10
|
-
|
|
7
|
+
Me.call(r, o) && ce(l, o, r[o]);
|
|
8
|
+
if (pe)
|
|
9
|
+
for (var o of pe(r))
|
|
10
|
+
Ye.call(r, o) && ce(l, o, r[o]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, K = (l, r) => Le(l, Re(r));
|
|
13
|
+
var de = (l, r, o) => new Promise((I, S) => {
|
|
14
|
+
var E = (s) => {
|
|
15
15
|
try {
|
|
16
16
|
c(o.next(s));
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
17
|
+
} catch (h) {
|
|
18
|
+
S(h);
|
|
19
19
|
}
|
|
20
20
|
}, a = (s) => {
|
|
21
21
|
try {
|
|
22
22
|
c(o.throw(s));
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
23
|
+
} catch (h) {
|
|
24
|
+
S(h);
|
|
25
25
|
}
|
|
26
|
-
}, c = (s) => s.done ?
|
|
26
|
+
}, c = (s) => s.done ? I(s.value) : Promise.resolve(s.value).then(E, a);
|
|
27
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 Ie, c as Ee, a as De, v as Xe, p as f, o as He, i as ge, g as Oe, W as Ze, m as _, j as R, u as Ue, n as fe, b as J, f as Q, s as Ve, e as qe, q as Ke, w as Je } from "./WheelOfFortuneWheel-BWPBlDFv.js";
|
|
30
|
+
import { a2 as Ne, b0 as Qe, b1 as v, aQ as $e, aa as en, I as n, aJ as p, b3 as k, b6 as M, aq as N, a6 as nn, bb as Y, b4 as tn, aU as m, bk as rn, b9 as A, ba as C } from "./utils-I5rI2w_S.js";
|
|
31
|
+
import { W as an } from "./WheelOfFortuneHistory-COJdJOvU.js";
|
|
32
|
+
import { W as on } from "./WheelOfFortuneDrawResults-D54Resid.js";
|
|
33
|
+
import { W as sn } from "./WheelOfFortuneRules-DNJmzmyN.js";
|
|
34
|
+
import { p as ln } from "./constants-BYsDpbRv.js";
|
|
35
|
+
var pn = Q('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), cn = Q("<button> </button>"), dn = Q('<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 gn = {
|
|
37
37
|
hash: "svelte-17ly5gn",
|
|
38
38
|
code: `@keyframes svelte-17ly5gn-wheelBob {
|
|
39
39
|
0%, 100% {
|
|
@@ -622,9 +622,7 @@ const dn = {
|
|
|
622
622
|
.wheel-content .spin-button {transition:opacity 0.4s ease, filter 0.4s ease;} .wheel-content.wheel-background-halo {background-image:radial-gradient(circle at 50% 55%, rgba(var(--color-primary-2, 207, 120, 69), 0.78) 0 14%, rgba(var(--color-primary-4, 128, 60, 22), 0.7) 32%, rgba(var(--color-primary-6, 89, 24, 3), 0) 65%);} .wheel-content.is-spin-blocking {touch-action:none;} .wheel-content.is-spin-blocking > *:not(.wheel-container):not(.wheel-video-background),
|
|
623
623
|
.wheel-content.is-spin-blocking .spins-info,
|
|
624
624
|
.wheel-content.is-spin-blocking .spin-button {pointer-events:none;}
|
|
625
|
-
@media (pointer: coarse), (max-width: 640px) { .wheel-content.is-spin-fullscreen {
|
|
626
|
-
animation: svelte-17ly5gn-spinOverlayIn 0.4s ease forwards;touch-action:none;} .wheel-content.is-spin-fullscreen.is-spin-exiting {
|
|
627
|
-
animation: svelte-17ly5gn-spinOverlayOut 0.35s ease forwards;} .wheel-content.is-spin-fullscreen .wheel-container {scale:1.15;margin-block:0;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-block 0.6s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .wheel-content.is-spin-fullscreen > *:not(.wheel-container):not(.wheel-video-background),
|
|
625
|
+
@media (pointer: coarse), (max-width: 640px) { .wheel-content.is-spin-fullscreen {touch-action:none;} .wheel-content.is-spin-fullscreen .wheel-container {scale:1.15;margin-block:0;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-block 0.6s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .wheel-content.is-spin-fullscreen > *:not(.wheel-container):not(.wheel-video-background),
|
|
628
626
|
.wheel-content.is-spin-fullscreen .spins-info,
|
|
629
627
|
.wheel-content.is-spin-fullscreen .spin-button {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;}
|
|
630
628
|
} .wheel-video-background {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
@@ -633,22 +631,9 @@ const dn = {
|
|
|
633
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);}
|
|
634
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);
|
|
635
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%;
|
|
636
|
-
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-
|
|
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-weight:900;cursor:pointer;position:relative;z-index:2;
|
|
637
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 {
|
|
638
|
-
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;}
|
|
639
|
-
@keyframes svelte-17ly5gn-spinOverlayIn {
|
|
640
|
-
from {
|
|
641
|
-
opacity: 0;
|
|
642
|
-
}
|
|
643
|
-
to {
|
|
644
|
-
opacity: 1;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
@keyframes svelte-17ly5gn-spinOverlayOut {
|
|
648
|
-
to {
|
|
649
|
-
opacity: 0;
|
|
650
|
-
}
|
|
651
|
-
} .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
|
|
636
|
+
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;
|
|
652
637
|
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;
|
|
653
638
|
animation: svelte-17ly5gn-successConfettiFall var(--d) cubic-bezier(0.16, 0.68, 0.2, 1) forwards;} .success-confetti-piece.is-diamond {border-radius:2px;transform:rotate(45deg);} .success-confetti-piece.is-ribbon {border-radius:8px 2px;} .draw-result-stack {width:100%;display:grid;justify-items:center;position:relative;z-index:2;transform:translateY(clamp(16px, 5vw, 30px));} .draw-result-stack img {width:60%;max-width:300px;} .draw-result-stack img.lose {filter:saturate(0%);} .coin {width:clamp(140px, 38vw, 196px);height:clamp(142px, 38.5vw, 198px);display:grid;place-items:center;border-radius:0;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);will-change:opacity, transform;
|
|
654
639
|
animation: svelte-17ly5gn-successElementIn 620ms cubic-bezier(0.16, 0.92, 0.22, 1) 90ms both;} .coin svg,
|
|
@@ -658,7 +643,7 @@ const dn = {
|
|
|
658
643
|
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);
|
|
659
644
|
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);
|
|
660
645
|
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%;
|
|
661
|
-
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-
|
|
646
|
+
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;}
|
|
662
647
|
@media (prefers-reduced-motion: reduce) { .coin,
|
|
663
648
|
.draw-result-title,
|
|
664
649
|
.draw-result-description,
|
|
@@ -668,39 +653,39 @@ const dn = {
|
|
|
668
653
|
animation: none;}
|
|
669
654
|
}`
|
|
670
655
|
};
|
|
671
|
-
function
|
|
672
|
-
|
|
673
|
-
const o = () =>
|
|
674
|
-
|
|
675
|
-
const
|
|
656
|
+
function fn(l, r) {
|
|
657
|
+
Ne(r, !0), De(l, gn);
|
|
658
|
+
const o = () => Ve(tn, "$_", I), [I, S] = qe();
|
|
659
|
+
Qe.extend(Xe);
|
|
660
|
+
const E = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", a = f(r, "program", 7, null), c = f(r, "endpoint", 7, null), s = f(r, "session", 7, null), h = f(r, "outerWheelAsset", 7, null), D = f(r, "wheelButtonAsset", 7, null), X = f(r, "backgroundVideoAsset", 7, null), H = f(r, "language", 7, "en"), O = f(r, "showBackButton", 7, !0), w = f(r, "liteMode", 7, !1), x = Y(() => !c() || !a()), me = Y(() => {
|
|
676
661
|
var e, t;
|
|
677
|
-
return !n(
|
|
678
|
-
}),
|
|
662
|
+
return !n(x) && ((t = (e = a()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
|
|
663
|
+
}), be = Y(() => {
|
|
679
664
|
var e, t;
|
|
680
|
-
return n(
|
|
681
|
-
}),
|
|
682
|
-
let
|
|
683
|
-
const
|
|
684
|
-
var t, i, d,
|
|
685
|
-
e !== n(
|
|
665
|
+
return n(x) ? ln : (t = (e = a()) == null ? void 0 : e.partitions) != null ? t : [];
|
|
666
|
+
}), g = ["history", "play", "rules"];
|
|
667
|
+
let b = v($e(g[1]));
|
|
668
|
+
const ue = (e) => {
|
|
669
|
+
var t, i, d, y;
|
|
670
|
+
e !== n(b) && (e === g[0] ? window.postMessage(
|
|
686
671
|
{
|
|
687
672
|
type: "event_wof_history_click",
|
|
688
673
|
name: ((t = a()) == null ? void 0 : t.name) || null
|
|
689
674
|
},
|
|
690
675
|
window.location.href
|
|
691
|
-
) : e ===
|
|
676
|
+
) : e === g[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i = a()) == null ? void 0 : i.name) || null }, window.location.href) : window.postMessage(
|
|
692
677
|
{
|
|
693
678
|
type: "event_wof_accessed",
|
|
694
|
-
isUserLoggedIn: !n(
|
|
679
|
+
isUserLoggedIn: !n(x),
|
|
695
680
|
name: ((d = a()) == null ? void 0 : d.name) || null,
|
|
696
|
-
availableSpins: ((
|
|
681
|
+
availableSpins: ((y = a()) == null ? void 0 : y.remainingTimes) || null
|
|
697
682
|
},
|
|
698
683
|
window.location.href
|
|
699
|
-
), p(Z, !1), p(
|
|
684
|
+
), p(Z, !1), p(b, e, !0));
|
|
700
685
|
};
|
|
701
|
-
let
|
|
702
|
-
|
|
703
|
-
if (!
|
|
686
|
+
let u = v(null), P = v(!1), Z = v(!1), U = v(!1), T = v(!1), W = v(!1);
|
|
687
|
+
en(() => {
|
|
688
|
+
if (!w()) {
|
|
704
689
|
if (n(P))
|
|
705
690
|
p(T, !0), p(W, !1);
|
|
706
691
|
else if (n(T)) {
|
|
@@ -715,43 +700,43 @@ function gn(l, r) {
|
|
|
715
700
|
}
|
|
716
701
|
}
|
|
717
702
|
});
|
|
718
|
-
const
|
|
703
|
+
const he = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), we = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), $ = () => de(this, null, function* () {
|
|
719
704
|
var i, d;
|
|
720
705
|
if (!((i = a()) != null && i.id) || !c()) return;
|
|
721
706
|
const e = new URL(`${c()}/v1/wof/remainingTimes`), t = new Headers();
|
|
722
707
|
s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${a().id}`);
|
|
723
708
|
try {
|
|
724
|
-
const
|
|
725
|
-
let
|
|
726
|
-
if (((d =
|
|
727
|
-
const
|
|
728
|
-
|
|
709
|
+
const z = yield (yield fetch(e, { method: "GET", headers: t })).json();
|
|
710
|
+
let V = 0;
|
|
711
|
+
if (((d = z == null ? void 0 : z.items) == null ? void 0 : d.length) > 0) {
|
|
712
|
+
const le = z.items.find((Fe) => Fe.programId === a().id);
|
|
713
|
+
le && (V = +le.remainingTimes || 0);
|
|
729
714
|
}
|
|
730
|
-
const
|
|
731
|
-
remainingTimes:
|
|
732
|
-
current:
|
|
715
|
+
const je = rn(K(q({}, a()), {
|
|
716
|
+
remainingTimes: V,
|
|
717
|
+
current: K(q({}, a().current), { remainingTimes: V })
|
|
733
718
|
}));
|
|
734
|
-
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data:
|
|
735
|
-
} catch (
|
|
736
|
-
console.log(
|
|
719
|
+
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: je }, "*");
|
|
720
|
+
} catch (y) {
|
|
721
|
+
console.log(y);
|
|
737
722
|
} finally {
|
|
738
|
-
p(
|
|
723
|
+
p(U, !1);
|
|
739
724
|
}
|
|
740
725
|
}), ee = (e) => {
|
|
741
726
|
if (e.data)
|
|
742
727
|
switch (e.data.type) {
|
|
743
728
|
case "SpinAgain":
|
|
744
729
|
case "BackToWheel":
|
|
745
|
-
p(
|
|
730
|
+
p(u, null), e.data.skipFetch ? p(U, !0) : $();
|
|
746
731
|
break;
|
|
747
732
|
}
|
|
748
733
|
};
|
|
749
|
-
|
|
734
|
+
He(() => {
|
|
750
735
|
var e, t;
|
|
751
736
|
return window.postMessage(
|
|
752
737
|
{
|
|
753
738
|
type: "event_wof_accessed",
|
|
754
|
-
isUserLoggedIn: !n(
|
|
739
|
+
isUserLoggedIn: !n(x),
|
|
755
740
|
name: ((e = a()) == null ? void 0 : e.name) || null,
|
|
756
741
|
availableSpins: ((t = a()) == null ? void 0 : t.remainingTimes) || null
|
|
757
742
|
},
|
|
@@ -760,105 +745,103 @@ function gn(l, r) {
|
|
|
760
745
|
window.removeEventListener("message", ee);
|
|
761
746
|
};
|
|
762
747
|
});
|
|
763
|
-
var
|
|
748
|
+
var xe = {
|
|
764
749
|
get program() {
|
|
765
750
|
return a();
|
|
766
751
|
},
|
|
767
752
|
set program(e = null) {
|
|
768
|
-
a(e),
|
|
753
|
+
a(e), m();
|
|
769
754
|
},
|
|
770
755
|
get endpoint() {
|
|
771
756
|
return c();
|
|
772
757
|
},
|
|
773
758
|
set endpoint(e = null) {
|
|
774
|
-
c(e),
|
|
759
|
+
c(e), m();
|
|
775
760
|
},
|
|
776
761
|
get session() {
|
|
777
762
|
return s();
|
|
778
763
|
},
|
|
779
764
|
set session(e = null) {
|
|
780
|
-
s(e),
|
|
765
|
+
s(e), m();
|
|
781
766
|
},
|
|
782
767
|
get outerWheelAsset() {
|
|
783
|
-
return
|
|
768
|
+
return h();
|
|
784
769
|
},
|
|
785
770
|
set outerWheelAsset(e = null) {
|
|
786
|
-
|
|
771
|
+
h(e), m();
|
|
787
772
|
},
|
|
788
773
|
get wheelButtonAsset() {
|
|
789
|
-
return
|
|
774
|
+
return D();
|
|
790
775
|
},
|
|
791
776
|
set wheelButtonAsset(e = null) {
|
|
792
|
-
|
|
777
|
+
D(e), m();
|
|
793
778
|
},
|
|
794
779
|
get backgroundVideoAsset() {
|
|
795
|
-
return
|
|
780
|
+
return X();
|
|
796
781
|
},
|
|
797
782
|
set backgroundVideoAsset(e = null) {
|
|
798
|
-
|
|
783
|
+
X(e), m();
|
|
799
784
|
},
|
|
800
785
|
get language() {
|
|
801
|
-
return
|
|
786
|
+
return H();
|
|
802
787
|
},
|
|
803
788
|
set language(e = "en") {
|
|
804
|
-
|
|
789
|
+
H(e), m();
|
|
805
790
|
},
|
|
806
791
|
get showBackButton() {
|
|
807
|
-
return
|
|
792
|
+
return O();
|
|
808
793
|
},
|
|
809
794
|
set showBackButton(e = !0) {
|
|
810
|
-
|
|
795
|
+
O(e), m();
|
|
811
796
|
},
|
|
812
797
|
get liteMode() {
|
|
813
|
-
return
|
|
798
|
+
return w();
|
|
814
799
|
},
|
|
815
800
|
set liteMode(e = !1) {
|
|
816
|
-
|
|
801
|
+
w(e), m();
|
|
817
802
|
}
|
|
818
|
-
},
|
|
803
|
+
}, j = dn();
|
|
819
804
|
let ne;
|
|
820
|
-
var te =
|
|
805
|
+
var te = M(j);
|
|
821
806
|
{
|
|
822
|
-
var
|
|
823
|
-
var t =
|
|
807
|
+
var ye = (e) => {
|
|
808
|
+
var t = pn();
|
|
824
809
|
let i;
|
|
825
810
|
t.muted = !0;
|
|
826
|
-
var d =
|
|
827
|
-
|
|
828
|
-
i =
|
|
829
|
-
}),
|
|
811
|
+
var d = A(t);
|
|
812
|
+
N(() => {
|
|
813
|
+
i = _(t, 1, "wheel-video-background svelte-17ly5gn", null, i, { "is-ready": n(Z) }), Ke(d, "src", X() || E);
|
|
814
|
+
}), Je("canplay", t, () => p(Z, !0)), J(e, t);
|
|
830
815
|
};
|
|
831
|
-
|
|
832
|
-
!
|
|
816
|
+
ge(te, (e) => {
|
|
817
|
+
!w() && n(b) === g[1] && e(ye);
|
|
833
818
|
});
|
|
834
819
|
}
|
|
835
|
-
var
|
|
820
|
+
var B = k(te, 2);
|
|
836
821
|
let re;
|
|
837
|
-
var
|
|
838
|
-
|
|
839
|
-
var
|
|
840
|
-
let
|
|
841
|
-
var
|
|
842
|
-
|
|
843
|
-
var
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
Xe(j, 20, () => f, (e) => e, (e, t) => {
|
|
848
|
-
var i = pn();
|
|
822
|
+
var ve = k(M(B), 2), ke = A(ve, !0);
|
|
823
|
+
C(B);
|
|
824
|
+
var F = k(B, 2);
|
|
825
|
+
let ae;
|
|
826
|
+
var oe = M(F), ze = A(oe, !0), _e = k(oe, 2), Be = A(_e, !0);
|
|
827
|
+
C(F);
|
|
828
|
+
var G = k(F, 2);
|
|
829
|
+
let ie;
|
|
830
|
+
Oe(G, 20, () => g, (e) => e, (e, t) => {
|
|
831
|
+
var i = cn();
|
|
849
832
|
let d;
|
|
850
|
-
var
|
|
851
|
-
|
|
852
|
-
(
|
|
853
|
-
d =
|
|
833
|
+
var y = A(i, !0);
|
|
834
|
+
N(
|
|
835
|
+
(z) => {
|
|
836
|
+
d = _(i, 1, "tab svelte-17ly5gn", null, d, { active: n(b) === t }), R(y, z);
|
|
854
837
|
},
|
|
855
838
|
[() => o()(t)]
|
|
856
|
-
),
|
|
857
|
-
}),
|
|
858
|
-
var L =
|
|
859
|
-
let
|
|
860
|
-
var
|
|
861
|
-
Ze(
|
|
839
|
+
), fe("click", i, () => ue(t)), J(e, i);
|
|
840
|
+
}), C(G);
|
|
841
|
+
var L = k(G, 2);
|
|
842
|
+
let se;
|
|
843
|
+
var Ae = M(L);
|
|
844
|
+
Ze(Ae, {
|
|
862
845
|
get program() {
|
|
863
846
|
return a();
|
|
864
847
|
},
|
|
@@ -869,32 +852,32 @@ function gn(l, r) {
|
|
|
869
852
|
return s();
|
|
870
853
|
},
|
|
871
854
|
get outerWheelAsset() {
|
|
872
|
-
return
|
|
855
|
+
return h();
|
|
873
856
|
},
|
|
874
857
|
get wheelButtonAsset() {
|
|
875
|
-
return
|
|
858
|
+
return D();
|
|
876
859
|
},
|
|
877
860
|
get wheelSlices() {
|
|
878
|
-
return n(
|
|
861
|
+
return n(be);
|
|
879
862
|
},
|
|
880
863
|
get isPlaceholder() {
|
|
881
|
-
return n(
|
|
864
|
+
return n(x);
|
|
882
865
|
},
|
|
883
866
|
get isWheelAvailable() {
|
|
884
|
-
return n(
|
|
867
|
+
return n(me);
|
|
885
868
|
},
|
|
886
869
|
get liteMode() {
|
|
887
|
-
return
|
|
870
|
+
return w();
|
|
888
871
|
},
|
|
889
872
|
get remainingTimesLoading() {
|
|
890
|
-
return n(
|
|
873
|
+
return n(U);
|
|
891
874
|
},
|
|
892
|
-
onLogin:
|
|
875
|
+
onLogin: he,
|
|
893
876
|
get spinResults() {
|
|
894
|
-
return n(
|
|
877
|
+
return n(u);
|
|
895
878
|
},
|
|
896
879
|
set spinResults(e) {
|
|
897
|
-
p(
|
|
880
|
+
p(u, e, !0);
|
|
898
881
|
},
|
|
899
882
|
get spinActive() {
|
|
900
883
|
return n(P);
|
|
@@ -902,13 +885,13 @@ function gn(l, r) {
|
|
|
902
885
|
set spinActive(e) {
|
|
903
886
|
p(P, e, !0);
|
|
904
887
|
}
|
|
905
|
-
}),
|
|
906
|
-
var
|
|
888
|
+
}), C(L);
|
|
889
|
+
var Ce = k(L, 2);
|
|
907
890
|
{
|
|
908
891
|
var Se = (e) => {
|
|
909
|
-
|
|
892
|
+
on(e, {
|
|
910
893
|
get result() {
|
|
911
|
-
return n(
|
|
894
|
+
return n(u);
|
|
912
895
|
},
|
|
913
896
|
get endpoint() {
|
|
914
897
|
return c();
|
|
@@ -917,17 +900,17 @@ function gn(l, r) {
|
|
|
917
900
|
return s();
|
|
918
901
|
},
|
|
919
902
|
get liteMode() {
|
|
920
|
-
return
|
|
903
|
+
return w();
|
|
921
904
|
},
|
|
922
905
|
onFetchRemainingTimes: $
|
|
923
906
|
});
|
|
924
|
-
},
|
|
907
|
+
}, Pe = (e) => {
|
|
925
908
|
{
|
|
926
|
-
let t =
|
|
909
|
+
let t = Y(() => {
|
|
927
910
|
var i;
|
|
928
911
|
return (i = a()) == null ? void 0 : i.id;
|
|
929
912
|
});
|
|
930
|
-
|
|
913
|
+
an(e, {
|
|
931
914
|
get programId() {
|
|
932
915
|
return n(t);
|
|
933
916
|
},
|
|
@@ -939,29 +922,29 @@ function gn(l, r) {
|
|
|
939
922
|
}
|
|
940
923
|
});
|
|
941
924
|
}
|
|
942
|
-
},
|
|
943
|
-
|
|
925
|
+
}, Te = (e) => {
|
|
926
|
+
sn(e, {
|
|
944
927
|
get program() {
|
|
945
928
|
return a();
|
|
946
929
|
},
|
|
947
930
|
get language() {
|
|
948
|
-
return
|
|
931
|
+
return H();
|
|
949
932
|
}
|
|
950
933
|
});
|
|
951
934
|
};
|
|
952
|
-
|
|
953
|
-
n(
|
|
935
|
+
ge(Ce, (e) => {
|
|
936
|
+
n(u) ? e(Se) : n(b) === g[0] ? e(Pe, 1) : n(b) === g[2] && e(Te, 2);
|
|
954
937
|
});
|
|
955
938
|
}
|
|
956
|
-
|
|
939
|
+
C(j), N(
|
|
957
940
|
(e, t, i) => {
|
|
958
|
-
ne =
|
|
941
|
+
ne = _(j, 1, "wheel-content svelte-17ly5gn", null, ne, {
|
|
959
942
|
"is-spin-blocking": n(P),
|
|
960
943
|
"is-spin-fullscreen": n(T),
|
|
961
944
|
"is-spin-exiting": n(W),
|
|
962
|
-
"wheel-background-halo":
|
|
963
|
-
}), re =
|
|
964
|
-
display: n(
|
|
945
|
+
"wheel-background-halo": w() && n(b) === g[1]
|
|
946
|
+
}), re = _(B, 1, "back-button-container svelte-17ly5gn", null, re, { hidden: n(x) || !O() }), R(ke, e), ae = _(F, 1, "wof-title svelte-17ly5gn", null, ae, { hidden: n(u) }), R(ze, t), R(Be, i), ie = _(G, 1, "wof-tabs svelte-17ly5gn", null, ie, { hidden: n(x) || n(u) }), se = Ue(L, "", se, {
|
|
947
|
+
display: n(b) !== g[1] || n(u) ? "none" : "contents"
|
|
965
948
|
});
|
|
966
949
|
},
|
|
967
950
|
[
|
|
@@ -969,13 +952,13 @@ function gn(l, r) {
|
|
|
969
952
|
() => o()("wofTitle"),
|
|
970
953
|
() => o()("wofSubtitle")
|
|
971
954
|
]
|
|
972
|
-
),
|
|
973
|
-
var
|
|
974
|
-
return
|
|
955
|
+
), fe("click", B, we), J(l, j);
|
|
956
|
+
var We = nn(xe);
|
|
957
|
+
return S(), We;
|
|
975
958
|
}
|
|
976
|
-
|
|
977
|
-
customElements.define("wheel-of-fortune",
|
|
978
|
-
|
|
959
|
+
Ie(["click"]);
|
|
960
|
+
customElements.define("wheel-of-fortune", Ee(
|
|
961
|
+
fn,
|
|
979
962
|
{
|
|
980
963
|
program: {},
|
|
981
964
|
endpoint: {},
|
|
@@ -991,5 +974,5 @@ customElements.define("wheel-of-fortune", Ye(
|
|
|
991
974
|
[]
|
|
992
975
|
));
|
|
993
976
|
export {
|
|
994
|
-
|
|
977
|
+
fn as W
|
|
995
978
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var B=(C,x,a)=>new Promise((E,M)=>{var k=m=>{try{S(a.next(m))}catch(y){M(y)}},j=m=>{try{S(a.throw(m))}catch(y){M(y)}},S=m=>m.done?E(m.value):Promise.resolve(m.value).then(k,j);S((a=a.apply(C,x)).next())});const t=require("./WheelOfFortuneWheel-0b7lq2LJ.cjs"),e=require("./utils-03vIpDSe.cjs"),_e=require("./error-YyYl7p6_.cjs"),pe=require("./sparkles-BnriHiyw.cjs");var G=t.from_html('<span class="button-spinner"></span>'),ue=t.from_html('<div class="confirm-modal-content"><p class="confirm-modal-title"> </p> <p class="confirm-modal-body"></p> <div class="confirm-modal-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"><span> </span> <!></button></div></div>'),I=t.from_html('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>',1),ve=t.from_html('<span class="draw-result-sparkle" aria-hidden="true">✦</span>'),me=t.from_html('<h2 class="draw-result-title"> <!></h2> <p class="draw-result-description"></p> <div class="draw-result-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"> </button></div>',1),ge=t.from_html('<img alt="Error" class="draw-result-error-image"/> <p class="draw-result-description draw-result-description--error"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>',1),he=t.from_html('<div class="draw-result-panel"><div class="draw-result-confetti-layer"></div> <!> <div class="draw-result-stack"><!></div></div>');function Q(C,x){e.push(x,!0);const a=()=>t.store_get(e.$format,"$_",E),[E,M]=t.setup_stores(),k=t.prop(x,"result",7),j=t.prop(x,"endpoint",7),S=t.prop(x,"session",7),m=t.prop(x,"liteMode",7,!1),y=t.prop(x,"onFetchRemainingTimes",7,()=>{}),N=e.user_derived(()=>{var s;return((s=k())==null?void 0:s.success)!==!0}),L=e.user_derived(()=>{var s;return(s=k())==null?void 0:s.type}),U=e.user_derived(()=>e.get(L)==="noprize"),V=new Set(["loyalty"]),D={bonus:a()("prizeBonus"),role:a()("prizeRole"),tournament:a()("prizeTournament"),ticket:a()("prizeTicket"),loyalty:a()("prizeLoyalty"),challenge:a()("prizeChallenge"),custom:a()("prizeCustom")},$=[{t:"-0.7em",l:"5%",s:"0.45em",d:"680ms"},{t:"-0.5em",l:"22%",s:"0.28em",d:"760ms"},{t:"-0.9em",l:"40%",s:"0.38em",d:"820ms"},{t:"-0.6em",l:"58%",s:"0.3em",d:"740ms"},{t:"-0.8em",l:"76%",s:"0.42em",d:"900ms"},{t:"-0.4em",l:"92%",s:"0.25em",d:"860ms"},{t:"0.1em",l:"14%",s:"0.22em",d:"800ms"},{t:"0em",l:"72%",s:"0.2em",d:"950ms"}];let P=e.state(void 0),h=e.state("initial"),d=e.state(null);e.user_effect(()=>{e.get(P)&&e.get(h)==="claimSuccess"&&!m()&&pe.burstSuccessConfetti(e.get(P))}),e.user_effect(()=>{(e.get(U)||e.get(N))&&e.untrack(()=>y()())});const J=s=>{const r=new URL(`${j()}/v1/wof/draw/${k().lotteryProgramID}`),i=new Headers;S()&&i.append("X-SessionId",S()),i.append("Content-Type","application/json");const c={action:s,guid:k().guid};return fetch(r,{method:"PUT",headers:i,body:JSON.stringify(c)}).then(o=>o.json())},H=()=>B(this,null,function*(){e.set(d,"claim");try{const s=yield J(0),r=e.normalizeDrawResult(s,"draw"),i=(r==null?void 0:r.state)==="fulfilled"&&(r==null?void 0:r.completed),c=(r==null?void 0:r.state)==="drawn"&&!(r!=null&&r.completed);i?e.set(h,"claimSuccess"):e.set(h,"claimFailed")}catch(s){console.log(s),e.set(h,"claimFailed")}finally{e.set(d,null),y()()}}),ee=()=>B(this,null,function*(){e.set(d,"reject"),e.set(h,"initial");const s=y();try{window.postMessage({type:"BackToWheel",skipFetch:!0},window.location.href),yield J(2),s==null||s()}catch(r){console.log(r)}finally{e.set(d,null)}}),te=()=>{window.postMessage({type:"BackToWheel"},window.location.href)},O=()=>{window.postMessage({type:"SpinAgain"},window.location.href)};var se={get result(){return k()},set result(s){k(s),e.flushSync()},get endpoint(){return j()},set endpoint(s){j(s),e.flushSync()},get session(){return S()},set session(s){S(s),e.flushSync()},get liteMode(){return m()},set liteMode(s=!1){m(s),e.flushSync()},get onFetchRemainingTimes(){return y()},set onFetchRemainingTimes(s=()=>{}){y(s),e.flushSync()}},q=he(),K=e.child(q);t.bind_this(K,s=>e.set(P,s),()=>e.get(P));var X=e.sibling(K,2);{var re=s=>{var r=ue(),i=e.child(r),c=e.only_child(i,!0),o=e.sibling(i,2);t.html(o,()=>a()("rejectWarningText"),!0),e.reset(o);var _=e.sibling(o,2),n=e.child(_),l=e.child(n);let p;var u=e.only_child(l,!0),b=e.sibling(l,2);{var w=v=>{var T=G();t.append(v,T)};t.if_block(b,v=>{e.get(d)==="claim"&&v(w)})}e.reset(n);var R=e.sibling(n,2),F=e.child(R);let A;var g=e.only_child(F,!0),f=e.sibling(F,2);{var z=v=>{var T=G();t.append(v,T)};t.if_block(f,v=>{e.get(d)==="reject"&&v(z)})}e.reset(R),e.reset(_),e.reset(r),e.template_effect((v,T,W)=>{t.set_text(c,v),n.disabled=!!e.get(d),p=t.set_style(l,"",p,{opacity:e.get(d)==="claim"?0:1}),t.set_text(u,T),R.disabled=!!e.get(d),A=t.set_style(F,"",A,{opacity:e.get(d)==="reject"?0:1}),t.set_text(g,W)},[()=>a()("areYouSure"),()=>a()("keepPrize"),()=>a()("rejectPrize")]),t.delegated("click",n,H),t.delegated("click",R,ee),t.append(s,r)};t.if_block(X,s=>{e.get(h)==="rejectModal"&&s(re)})}var Y=e.sibling(X,2),ae=e.child(Y);{var ie=s=>{var r=I(),i=e.first_child(r),c=e.only_child(i,!0),o=e.sibling(i,2),_=e.only_child(o,!0),n=e.sibling(o,2),l=e.child(n),p=e.only_child(l,!0);e.reset(n),e.template_effect((u,b,w)=>{t.set_text(c,u),t.set_text(_,b),t.set_text(p,w)},[()=>a()("prizeAssignedTitle"),()=>a()("prizeAssigned"),()=>a()("backToGame")]),t.delegated("click",l,te),t.append(s,r)},le=s=>{var r=I(),i=e.first_child(r),c=e.only_child(i,!0),o=e.sibling(i,2),_=e.only_child(o,!0),n=e.sibling(o,2),l=e.child(n),p=e.only_child(l,!0);e.reset(n),e.template_effect((u,b,w)=>{t.set_text(c,u),t.set_text(_,b),t.set_text(p,w)},[()=>a()("drawFailedTitle"),()=>a()("drawFailed"),()=>a()("backToGame")]),t.delegated("click",l,O),t.append(s,r)},ne=s=>{var r=I(),i=e.first_child(r),c=e.only_child(i,!0),o=e.sibling(i,2),_=e.only_child(o,!0),n=e.sibling(o,2),l=e.child(n),p=e.only_child(l,!0);e.reset(n),e.template_effect((u,b,w)=>{t.set_text(c,u),t.set_text(_,b),l.disabled=!!e.get(d),t.set_text(p,w)},[()=>a()("noPrizeTitle"),()=>a()("noPrize"),()=>a()("spinAgain")]),t.delegated("click",l,O),t.append(s,r)},oe=s=>{var r=me(),i=e.first_child(r),c=e.child(i),o=e.sibling(c);t.each(o,17,()=>$,t.index,(g,f)=>{var z=ve();e.template_effect(()=>{var v,T,W,Z;return t.set_style(z,`top:${(v=e.get(f).t)!=null?v:""};left:${(T=e.get(f).l)!=null?T:""};font-size:${(W=e.get(f).s)!=null?W:""};animation-delay:${(Z=e.get(f).d)!=null?Z:""}`)}),t.append(g,z)}),e.reset(i);var _=e.sibling(i,2);t.html(_,()=>a()("success",{values:{prize:D[e.get(L)],form:V.has(e.get(L))?"plural":"singular"}}),!0),e.reset(_);var n=e.sibling(_,2),l=e.child(n),p=e.child(l);let u;var b=e.only_child(p,!0),w=e.sibling(p,2);{var R=g=>{var f=G();t.append(g,f)};t.if_block(w,g=>{e.get(d)==="claim"&&g(R)})}e.reset(l);var F=e.sibling(l,2),A=e.only_child(F,!0);e.reset(n),e.template_effect((g,f,z)=>{t.set_text(c,`${g!=null?g:""} `),l.disabled=!!e.get(d),u=t.set_style(p,"",u,{opacity:e.get(d)==="claim"?0:1}),t.set_text(b,f),F.disabled=!!e.get(d),t.set_text(A,z)},[()=>a()("congratulations"),()=>a()("claimReward"),()=>a()("reject")]),t.delegated("click",l,H),t.delegated("click",F,()=>e.set(h,"rejectModal")),t.append(s,r)},ce=s=>{var r=ge(),i=e.first_child(r),c=e.sibling(i,2),o=e.only_child(c,!0),_=e.sibling(c,2),n=e.child(_),l=e.only_child(n,!0);e.reset(_),e.template_effect((p,u)=>{t.set_attribute(i,"src",_e.Error),t.set_text(o,p),t.set_text(l,u)},[()=>a()("errorJSON"),()=>a()("backToGame")]),t.delegated("click",n,O),t.append(s,r)};t.if_block(ae,s=>{e.get(h)==="claimSuccess"?s(ie):e.get(h)==="claimFailed"?s(le,1):e.get(U)?s(ne,2):e.get(N)?s(ce,-1):s(oe,3)})}e.reset(Y),e.reset(q),t.append(C,q);var de=e.pop(se);return M(),de}t.delegate(["click"]);t.create_custom_element(Q,{result:{},endpoint:{},session:{},liteMode:{},onFetchRemainingTimes:{}},[],[],{mode:"open"});exports.WheelOfFortuneDrawResults=Q;
|