@everymatrix/mini-games-hub 0.2.8 → 0.2.10
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/ArrowLeftIcon--eD-7fsx.cjs +1 -0
- package/components/ArrowLeftIcon-Bfs5TaL6.js +20 -0
- package/components/ArrowLeftIcon-D98iyiSl.js +20 -0
- package/components/ArrowLeftIcon-Ypzji-S_.cjs +1 -0
- package/components/{CoinFlip-BOrc1Sgy.cjs → CoinFlip-BI2KQoYz.cjs} +1 -1
- package/components/{CoinFlip-uc2aguuz.js → CoinFlip-BxeM60kP.js} +2 -2
- package/components/{CoinFlip-DgM6tDy5.js → CoinFlip-CIqBL9-4.js} +18 -18
- package/components/{CoinFlip-DiCOvx3Q.cjs → CoinFlip-tTQwMgSv.cjs} +1 -1
- package/components/{CoinRoyale-DLL1bCAy.js → CoinRoyale-AIjHyYRF.js} +120 -116
- package/components/{CoinRoyale-Bkr3Rd-u.cjs → CoinRoyale-B08ETrbd.cjs} +4 -4
- package/components/{CoinRoyale-BH73ZSrU.cjs → CoinRoyale-DqOsokVD.cjs} +4 -4
- package/components/{CoinRoyale-fp-xfwl2.js → CoinRoyale-gjCYpNk5.js} +105 -101
- package/components/{GameCard-D78hDMaL.js → GameCard-BAO-RWT9.js} +36 -36
- package/components/{GameCard-BiO9Cay-.cjs → GameCard-CehoUog_.cjs} +3 -3
- package/components/{GameCard-Qh_fk15-.cjs → GameCard-DfHnwOqs.cjs} +3 -3
- package/components/{GameCard-jCZ6S2Wu.js → GameCard-pddtwXsP.js} +31 -31
- package/components/{MiniGamesHub-Bf2Cd1bB.js → MiniGamesHub-BPYHmhQ0.js} +157 -88
- package/components/{MiniGamesHub-KqAdBJEX.js → MiniGamesHub-CJjxsGLO.js} +138 -69
- package/components/MiniGamesHub-DzY6bqFU.cjs +79 -0
- package/components/MiniGamesHub-rHaCMzIp.cjs +79 -0
- package/components/{WheelOfFortune-CBYo6vCg.js → WheelOfFortune-Bz-AxMjO.js} +20 -20
- package/components/{WheelOfFortune-CDTzbAjp.cjs → WheelOfFortune-C0aA8AWD.cjs} +1 -1
- package/components/{WheelOfFortune-8HCl7aHv.js → WheelOfFortune-CBD1u1Ya.js} +29 -29
- package/components/{WheelOfFortune-XfmUFV3-.cjs → WheelOfFortune-D3EtOxbR.cjs} +1 -1
- package/components/WheelOfFortuneDrawResults-BBd3dkqS.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-D7SxQsQ4.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-Dg54Kewh.js +286 -0
- package/components/WheelOfFortuneDrawResults-XxUjXAw4.js +261 -0
- package/components/WheelOfFortuneHistory-C8xiNova.js +222 -0
- package/components/WheelOfFortuneHistory-KBjh_Fju.cjs +13 -0
- package/components/WheelOfFortuneHistory-QwT2V9EM.cjs +13 -0
- package/components/WheelOfFortuneHistory-txMyUapV.js +223 -0
- package/components/WheelOfFortuneRules-BJENXLzh.cjs +5 -0
- package/components/WheelOfFortuneRules-BtC1z4Di.js +109 -0
- package/components/WheelOfFortuneRules-C3McWywL.js +120 -0
- package/components/WheelOfFortuneRules-YSDAQ18X.cjs +5 -0
- package/components/{WheelOfFortuneWheel-F62aU_CL.js → WheelOfFortuneWheel-B11sYKJn.js} +364 -346
- package/components/{WheelOfFortuneWheel-CiyQZNAd.js → WheelOfFortuneWheel-D1cbM2SU.js} +718 -700
- package/components/WheelOfFortuneWheel-DB0BZCUo.cjs +3 -0
- package/components/WheelOfFortuneWheel-DWAdby4o.cjs +3 -0
- package/components/utils-BqkCy2Rz.cjs +3 -0
- package/components/{utils-3LNftCeZ.js → utils-CzSqbDv1.js} +633 -639
- package/components/{utils-DGrEJJ_K.js → utils-UAFcjwcH.js} +1737 -1745
- package/components/utils-uE8V9ar8.cjs +3 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.cjs +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/MiniGamesHub-5tuj6CDm.cjs +0 -16
- package/components/MiniGamesHub-SxucWl3S.cjs +0 -16
- package/components/WheelOfFortuneDrawResults-CASEqNiM.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-DqgsImHB.js +0 -254
- package/components/WheelOfFortuneDrawResults-DsfJ3803.js +0 -279
- package/components/WheelOfFortuneDrawResults-l8iWZa_e.cjs +0 -1
- package/components/WheelOfFortuneHistory-CF8B0i5m.js +0 -213
- package/components/WheelOfFortuneHistory-Cnk8otCw.js +0 -213
- package/components/WheelOfFortuneHistory-DARohsMs.cjs +0 -12
- package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +0 -12
- package/components/WheelOfFortuneRules-BZqR4cT9.js +0 -118
- package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +0 -3
- package/components/WheelOfFortuneRules-CRGG3J0S.js +0 -107
- package/components/WheelOfFortuneRules-DLj96pqu.cjs +0 -3
- package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +0 -3
- package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +0 -3
- package/components/utils-BxNmJ6YA.cjs +0 -3
- package/components/utils-DyVEmMSf.cjs +0 -3
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var De = Object.defineProperty, Le = Object.defineProperties;
|
|
2
|
+
var He = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ge = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Oe = Object.prototype.hasOwnProperty, We = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var me = (l, a, o) => a in l ? De(l, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[a] = o, I = (l, a) => {
|
|
6
6
|
for (var o in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
Oe.call(a, o) && me(l, o, a[o]);
|
|
8
8
|
if (ge)
|
|
9
9
|
for (var o of ge(a))
|
|
10
|
-
|
|
10
|
+
We.call(a, o) && me(l, o, a[o]);
|
|
11
11
|
return l;
|
|
12
|
-
}, $ = (l, a) =>
|
|
13
|
-
var
|
|
12
|
+
}, $ = (l, a) => Le(l, He(a));
|
|
13
|
+
var xe = (l, a, o) => new Promise((L, Y) => {
|
|
14
14
|
var s = (d) => {
|
|
15
15
|
try {
|
|
16
16
|
c(o.next(d));
|
|
17
|
-
} catch (
|
|
18
|
-
Y(
|
|
17
|
+
} catch (h) {
|
|
18
|
+
Y(h);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, b = (d) => {
|
|
21
21
|
try {
|
|
22
22
|
c(o.throw(d));
|
|
23
|
-
} catch (
|
|
24
|
-
Y(
|
|
23
|
+
} catch (h) {
|
|
24
|
+
Y(h);
|
|
25
25
|
}
|
|
26
|
-
}, c = (d) => d.done ? L(d.value) : Promise.resolve(d.value).then(s,
|
|
26
|
+
}, c = (d) => d.done ? L(d.value) : Promise.resolve(d.value).then(s, b);
|
|
27
27
|
c((o = o.apply(l, a)).next());
|
|
28
28
|
});
|
|
29
|
-
import { d as
|
|
30
|
-
import { a5 as
|
|
31
|
-
import { W as
|
|
32
|
-
import { W as
|
|
33
|
-
import { W as
|
|
34
|
-
import { C as
|
|
35
|
-
import {
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
import { d as $e, c as Ue, a as qe, p as k, o as Je, i as U, h as ue, q as Z, m as q, k as M, u as J, r as he, e as S, f as P, s as Ke, g as Qe, j as Ne } from "./WheelOfFortuneWheel-D1cbM2SU.js";
|
|
30
|
+
import { a5 as Ve, b1 as E, aQ as en, b3 as f, aJ as _, L as n, ar as K, a9 as nn, b6 as y, bb as we, b4 as tn, b7 as D, aU as j, bk as an, O as ye, ba as u, bm as rn } from "./utils-UAFcjwcH.js";
|
|
31
|
+
import { W as on } from "./WheelOfFortuneHistory-txMyUapV.js";
|
|
32
|
+
import { W as sn } from "./WheelOfFortuneRules-C3McWywL.js";
|
|
33
|
+
import { W as ln } from "./WheelOfFortuneDrawResults-Dg54Kewh.js";
|
|
34
|
+
import { C as pn } from "./CoinFlip-CIqBL9-4.js";
|
|
35
|
+
import { A as cn } from "./ArrowLeftIcon-D98iyiSl.js";
|
|
36
|
+
import { b as dn } from "./bg-scene-DpHgKCHj.js";
|
|
37
|
+
var fn = P('<div class="coin-royale__scene-neon svelte-133ej82"></div> <div class="coin-royale__scene-moon svelte-133ej82"></div>', 1), bn = P("<span></span>"), gn = P('<div class="coin-royale__ambient svelte-133ej82" aria-hidden="true"><div class="coin-royale__rays svelte-133ej82"></div> <div class="coin-royale__glow svelte-133ej82"></div> <div class="coin-royale__particles svelte-133ej82"></div></div>'), mn = P('<button role="tab" type="button"> </button>'), xn = P('<div><div class="coin-royale__scene svelte-133ej82" aria-hidden="true"><img class="coin-royale__scene-img svelte-133ej82" alt="" draggable="false"/> <!> <div class="coin-royale__scene-veil svelte-133ej82"></div></div> <!> <button type="button"><!> <p class="coin-royale__back-label svelte-133ej82"> </p></button> <div class="coin-royale__heading svelte-133ej82"><h3 class="coin-royale__title svelte-133ej82"> </h3> <p class="coin-royale__subtitle svelte-133ej82"> </p></div> <div class="coin-royale__tabs svelte-133ej82" role="tablist"><div class="coin-royale__tab-indicator svelte-133ej82"></div> <!></div> <div class="svelte-133ej82"><!></div> <!></div>');
|
|
38
|
+
const un = {
|
|
38
39
|
hash: "svelte-133ej82",
|
|
39
40
|
code: `@keyframes svelte-133ej82-cr-spinRays {
|
|
40
41
|
to {
|
|
@@ -148,10 +149,10 @@ const mn = {
|
|
|
148
149
|
animation: svelte-133ej82-cr-breathe 6s ease-in-out infinite;} .coin-royale__scene-veil {position:absolute;inset:0;background:radial-gradient(70% 45% at 50% 42%, rgba(6, 12, 32, 0.15) 0%, rgba(6, 12, 32, 0.55) 70%), linear-gradient(180deg, rgba(6, 12, 32, 0.55) 0%, rgba(6, 12, 32, 0.1) 22%, rgba(6, 12, 32, 0.25) 60%, rgba(4, 8, 22, 0.92) 100%);}
|
|
149
150
|
@container (min-width: 600px) { .coin-royale__scene,
|
|
150
151
|
.coin-royale__ambient {left:50%;right:auto;width:min(var(--cr-bg-w), 100cqw);transform:translateX(-50%);-webkit-mask-image:linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);mask-composite:intersect;}
|
|
151
|
-
} .coin-royale__back {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:
|
|
152
|
+
} .coin-royale__back {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:6px;width:100%;max-width:700px;height:52px;flex-shrink:0;margin:0 auto;padding:10px;line-height:20px;border-radius:6px;background:transparent;border:none;color:var(--white);cursor:pointer;font-size:16px;} .coin-royale__back--hidden {display:none;} .coin-royale__back-icon {width:25px;height:25px;padding:7px;border-radius:50%;background:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));box-sizing:border-box;transition:transform 0.12s ease;} .coin-royale__back:active .coin-royale__back-icon {transform:scale(0.92);} .coin-royale__back-label {margin:0;} .coin-royale__heading {position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:6px;} .coin-royale__title {margin:0;text-align:center;font-size:clamp(20px, 5.5vw, 28px);font-weight:900;line-height:1.05;color:var(--yellow);text-shadow:0 3px 14px rgba(0, 0, 0, 0.35);} .coin-royale__subtitle {margin:0 0 clamp(10px, 3vw, 16px);text-align:center;font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;color:var(--white);opacity:0.92;} .coin-royale__tabs {position:relative;z-index:2;display:flex;justify-content:center;width:90%;max-width:700px;margin-bottom:12px;padding:6px;border-radius:50px;background:var(--color-tabs, rgba(255, 255, 255, 0.1));box-shadow:inset 0 0 0 1px var(--color-border-subtle, rgba(255, 255, 255, 0.08)), inset 0 2px 6px rgba(0, 0, 0, 0.25);height:46px;} .coin-royale__tab-indicator {position:absolute;top:6px;bottom:6px;left:6px;width:calc((100% - 12px) / 3);border-radius:50px;background:var(--color-tabs-selected, linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)));box-shadow:0 2px 8px rgba(0, 0, 0, 0.25);transition:transform 0.32s var(--ease);pointer-events:none;} .coin-royale__tab {position:relative;z-index:1;width:100%;padding:5px;border:none;border-radius:50px;background:transparent;color:var(--white);cursor:pointer;opacity:0.75;transition:opacity 0.15s ease, transform 0.1s ease;font-size:16px;} .coin-royale__tab--active {opacity:1;} .coin-royale__tab:active {transform:scale(0.95);} .coin-royale__play {position:relative;z-index:1;width:var(--wof-size, clamp(276px, 100vw, 430px));margin-block:clamp(-18px, -4vw, -32px);} .coin-royale__flips {position:relative;z-index:2;display:flex;align-items:center;gap:8px;margin:0;font-size:clamp(14px, 4vw, 19px);font-weight:400;color:var(--white);} .coin-royale__flips-count {display:flex;align-items:center;gap:6px;font-size:clamp(16px, 4.5vw, 20px);font-weight:900;color:var(--yellow);} .coin-royale__flips-icon {width:20px;height:20px;transform:rotateX(52deg) rotateZ(-18deg);filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));} .coin-royale__flips-loader {display:inline-block;width:14px;height:14px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
|
|
152
153
|
animation: svelte-133ej82-cr-loaderSpin 600ms linear infinite;} .coin-royale__cta {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;color:var(--color-text-button-primary, #0a2140);background:linear-gradient(180deg, color-mix(in srgb, var(--color-button-primary, #ffd400) 70%, white) 0%, var(--color-button-primary, #ffd400) 55%, var(--color-button-primary-hover, #e0b400) 100%);box-shadow:none;cursor:pointer;transition:transform 0.15s ease, filter 0.15s ease;} .coin-royale__cta::before {content:"";position:absolute;inset:-7px;z-index:-1;border-radius:999px;background:radial-gradient(circle, rgba(255, 212, 0, 0.35), rgba(255, 212, 0, 0) 70%);
|
|
153
154
|
animation: svelte-133ej82-cr-ctaGlow 2.6s ease-in-out infinite;} .coin-royale__cta:active {transform:translateY(2px);} .coin-royale__cta:disabled {filter:grayscale(0.5) brightness(0.75);cursor:default;} .coin-royale__cta:disabled::before {animation-play-state:paused;opacity:0.15;}
|
|
154
|
-
@media (max-width: 767px) { .coin-royale {padding:20px 10px 30px;} .coin-royale__back {
|
|
155
|
+
@media (max-width: 767px) { .coin-royale {padding:20px 10px 30px;} .coin-royale__back {align-self:stretch;width:auto;height:44px;margin:-8px 2px 12px;padding:6px 14px;background:var(--color-tabs, rgba(255, 255, 255, 0.1));} .coin-royale__tabs {width:100%;margin:0 auto;} .coin-royale__tab {font-size:12px;}
|
|
155
156
|
}
|
|
156
157
|
@keyframes svelte-133ej82-wheelBob {
|
|
157
158
|
0%, 100% {
|
|
@@ -771,13 +772,13 @@ const mn = {
|
|
|
771
772
|
animation: none;}
|
|
772
773
|
}`
|
|
773
774
|
};
|
|
774
|
-
function
|
|
775
|
-
|
|
776
|
-
const o = () =>
|
|
777
|
-
let m = E(
|
|
778
|
-
const ve =
|
|
775
|
+
function hn(l, a) {
|
|
776
|
+
Ve(a, !0), qe(l, un);
|
|
777
|
+
const o = () => Ke(tn, "$_", L), [L, Y] = Qe(), s = k(a, "program", 7, null), b = k(a, "endpoint", 7, null), c = k(a, "session", 7, null), d = k(a, "language", 7, "en"), h = k(a, "showBackButton", 7, !0), v = k(a, "liteMode", 7, !1), g = ["history", "play", "rules"];
|
|
778
|
+
let m = E(en(g[1])), w = E(null), F = E(!1), H = E(!1);
|
|
779
|
+
const ve = we(() => {
|
|
779
780
|
var e, t;
|
|
780
|
-
return !!
|
|
781
|
+
return !!b() && !!s() && ((t = (e = s()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
|
|
781
782
|
}), G = (e, t = {}) => {
|
|
782
783
|
var r, p, i;
|
|
783
784
|
return window.postMessage(
|
|
@@ -788,21 +789,21 @@ function xn(l, a) {
|
|
|
788
789
|
}, t),
|
|
789
790
|
window.location.href
|
|
790
791
|
);
|
|
791
|
-
}, Q = () => G("event_coins_accessed", { isUserLoggedIn: !0 }),
|
|
792
|
-
e === n(m) || n(F) || (e ===
|
|
793
|
-
}, N = () =>
|
|
792
|
+
}, Q = () => G("event_coins_accessed", { isUserLoggedIn: !0 }), ke = () => G("event_coins_flip"), _e = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), je = (e) => {
|
|
793
|
+
e === n(m) || n(F) || (e === g[0] ? G("event_coins_history_click") : e === g[2] ? G("event_coins_rules_click") : Q(), _(m, e, !0));
|
|
794
|
+
}, N = () => xe(this, null, function* () {
|
|
794
795
|
var r, p;
|
|
795
|
-
if (!((r = s()) != null && r.id) || !
|
|
796
|
+
if (!((r = s()) != null && r.id) || !b()) return;
|
|
796
797
|
const e = new Headers();
|
|
797
798
|
c() && e.append("X-SessionId", c());
|
|
798
|
-
const t = new URL(`${
|
|
799
|
+
const t = new URL(`${b()}/v1/wof/remainingTimes`);
|
|
799
800
|
t.searchParams.append("filter", `ProgramId[]=${s().id}`);
|
|
800
801
|
try {
|
|
801
|
-
const i = yield (yield fetch(t, { method: "GET", headers: e })).json(), x = (p = i == null ? void 0 : i.items) == null ? void 0 : p.find((
|
|
802
|
+
const i = yield (yield fetch(t, { method: "GET", headers: e })).json(), x = (p = i == null ? void 0 : i.items) == null ? void 0 : p.find((C) => C.programId === s().id), B = +(x == null ? void 0 : x.remainingTimes) || 0, A = an($(I({}, s()), {
|
|
802
803
|
remainingTimes: B,
|
|
803
804
|
current: $(I({}, s().current), { remainingTimes: B })
|
|
804
805
|
}));
|
|
805
|
-
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data:
|
|
806
|
+
window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: A }, window.location.href);
|
|
806
807
|
} catch (i) {
|
|
807
808
|
console.log(i);
|
|
808
809
|
} finally {
|
|
@@ -810,10 +811,10 @@ function xn(l, a) {
|
|
|
810
811
|
}
|
|
811
812
|
}), V = (e) => {
|
|
812
813
|
var t, r;
|
|
813
|
-
((t = e.data) == null ? void 0 : t.type) !== "SpinAgain" && ((r = e.data) == null ? void 0 : r.type) !== "BackToWheel" || (_(
|
|
814
|
+
((t = e.data) == null ? void 0 : t.type) !== "SpinAgain" && ((r = e.data) == null ? void 0 : r.type) !== "BackToWheel" || (_(w, null), e.data.skipFetch ? _(H, !0) : N());
|
|
814
815
|
};
|
|
815
|
-
|
|
816
|
-
var
|
|
816
|
+
Je(() => (Q(), window.addEventListener("message", V), () => window.removeEventListener("message", V)));
|
|
817
|
+
var ze = {
|
|
817
818
|
get program() {
|
|
818
819
|
return s();
|
|
819
820
|
},
|
|
@@ -821,10 +822,10 @@ function xn(l, a) {
|
|
|
821
822
|
s(e), j();
|
|
822
823
|
},
|
|
823
824
|
get endpoint() {
|
|
824
|
-
return
|
|
825
|
+
return b();
|
|
825
826
|
},
|
|
826
827
|
set endpoint(e = null) {
|
|
827
|
-
|
|
828
|
+
b(e), j();
|
|
828
829
|
},
|
|
829
830
|
get session() {
|
|
830
831
|
return c();
|
|
@@ -839,83 +840,85 @@ function xn(l, a) {
|
|
|
839
840
|
d(e), j();
|
|
840
841
|
},
|
|
841
842
|
get showBackButton() {
|
|
842
|
-
return
|
|
843
|
+
return h();
|
|
843
844
|
},
|
|
844
845
|
set showBackButton(e = !0) {
|
|
845
|
-
|
|
846
|
+
h(e), j();
|
|
846
847
|
},
|
|
847
848
|
get liteMode() {
|
|
848
|
-
return
|
|
849
|
+
return v();
|
|
849
850
|
},
|
|
850
851
|
set liteMode(e = !1) {
|
|
851
|
-
|
|
852
|
+
v(e), j();
|
|
852
853
|
}
|
|
853
|
-
}, R =
|
|
854
|
+
}, R = xn();
|
|
854
855
|
let ee;
|
|
855
|
-
var O =
|
|
856
|
+
var O = y(R), ne = y(O), Be = f(ne, 2);
|
|
856
857
|
{
|
|
857
|
-
var
|
|
858
|
-
var t =
|
|
859
|
-
|
|
858
|
+
var Se = (e) => {
|
|
859
|
+
var t = fn();
|
|
860
|
+
ye(2), S(e, t);
|
|
860
861
|
};
|
|
861
|
-
U(
|
|
862
|
-
|
|
862
|
+
U(Be, (e) => {
|
|
863
|
+
v() || e(Se);
|
|
863
864
|
});
|
|
864
865
|
}
|
|
865
|
-
|
|
866
|
+
ye(2), u(O);
|
|
866
867
|
var te = f(O, 2);
|
|
867
868
|
{
|
|
868
|
-
var
|
|
869
|
-
var t =
|
|
870
|
-
|
|
871
|
-
var x =
|
|
872
|
-
let B,
|
|
869
|
+
var Pe = (e) => {
|
|
870
|
+
var t = gn(), r = f(y(t), 4);
|
|
871
|
+
ue(r, 21, () => rn, Ne, (p, i) => {
|
|
872
|
+
var x = bn();
|
|
873
|
+
let B, A;
|
|
873
874
|
K(() => {
|
|
874
|
-
var
|
|
875
|
-
B = Z(x, 1, "coin-royale__spark svelte-133ej82", null, B, { "coin-royale__spark--blue": n(i).blue }),
|
|
876
|
-
left: `${(
|
|
877
|
-
width: `${(
|
|
878
|
-
height: `${(
|
|
879
|
-
"animation-duration": `${(
|
|
880
|
-
"animation-delay": `${(
|
|
881
|
-
"--drift": `${(
|
|
875
|
+
var C, pe, ce, de, fe, be;
|
|
876
|
+
B = Z(x, 1, "coin-royale__spark svelte-133ej82", null, B, { "coin-royale__spark--blue": n(i).blue }), A = J(x, "", A, {
|
|
877
|
+
left: `${(C = n(i).left) != null ? C : ""}%`,
|
|
878
|
+
width: `${(pe = n(i).size) != null ? pe : ""}px`,
|
|
879
|
+
height: `${(ce = n(i).size) != null ? ce : ""}px`,
|
|
880
|
+
"animation-duration": `${(de = n(i).duration) != null ? de : ""}s`,
|
|
881
|
+
"animation-delay": `${(fe = n(i).delay) != null ? fe : ""}s`,
|
|
882
|
+
"--drift": `${(be = n(i).drift) != null ? be : ""}px`
|
|
882
883
|
});
|
|
883
884
|
}), S(p, x);
|
|
884
|
-
}),
|
|
885
|
+
}), u(r), u(t), S(e, t);
|
|
885
886
|
};
|
|
886
887
|
U(te, (e) => {
|
|
887
|
-
|
|
888
|
+
v() || e(Pe);
|
|
888
889
|
});
|
|
889
890
|
}
|
|
890
891
|
var z = f(te, 2);
|
|
891
892
|
let ae;
|
|
892
|
-
var
|
|
893
|
-
|
|
894
|
-
var
|
|
895
|
-
|
|
896
|
-
var
|
|
897
|
-
|
|
898
|
-
var
|
|
899
|
-
|
|
900
|
-
|
|
893
|
+
var re = y(z);
|
|
894
|
+
cn(re, { class: "coin-royale__back-icon" });
|
|
895
|
+
var Ye = f(re, 2), Fe = D(Ye, !0);
|
|
896
|
+
u(z);
|
|
897
|
+
var W = f(z, 2), oe = y(W), Ge = D(oe, !0), Re = f(oe, 2), Xe = D(Re, !0);
|
|
898
|
+
u(W);
|
|
899
|
+
var X = f(W, 2), ie = y(X);
|
|
900
|
+
let se;
|
|
901
|
+
var Te = f(ie, 2);
|
|
902
|
+
ue(Te, 16, () => g, (e) => e, (e, t) => {
|
|
903
|
+
var r = mn();
|
|
901
904
|
let p;
|
|
902
905
|
var i = D(r, !0);
|
|
903
906
|
K(
|
|
904
907
|
(x) => {
|
|
905
|
-
p = Z(r, 1, "coin-royale__tab svelte-133ej82", null, p, { "coin-royale__tab--active": n(m) === t }), q(r, "aria-selected", n(m) === t),
|
|
908
|
+
p = Z(r, 1, "coin-royale__tab svelte-133ej82", null, p, { "coin-royale__tab--active": n(m) === t }), q(r, "aria-selected", n(m) === t), M(i, x);
|
|
906
909
|
},
|
|
907
910
|
[() => o()(t)]
|
|
908
|
-
),
|
|
909
|
-
}),
|
|
911
|
+
), he("click", r, () => je(t)), S(e, r);
|
|
912
|
+
}), u(X);
|
|
910
913
|
var T = f(X, 2);
|
|
911
|
-
let
|
|
912
|
-
var
|
|
913
|
-
|
|
914
|
+
let le;
|
|
915
|
+
var Ae = y(T);
|
|
916
|
+
pn(Ae, {
|
|
914
917
|
get program() {
|
|
915
918
|
return s();
|
|
916
919
|
},
|
|
917
920
|
get endpoint() {
|
|
918
|
-
return
|
|
921
|
+
return b();
|
|
919
922
|
},
|
|
920
923
|
get session() {
|
|
921
924
|
return c();
|
|
@@ -926,12 +929,12 @@ function xn(l, a) {
|
|
|
926
929
|
get remainingTimesLoading() {
|
|
927
930
|
return n(H);
|
|
928
931
|
},
|
|
929
|
-
onFlip:
|
|
932
|
+
onFlip: ke,
|
|
930
933
|
get spinResults() {
|
|
931
|
-
return n(
|
|
934
|
+
return n(w);
|
|
932
935
|
},
|
|
933
936
|
set spinResults(e) {
|
|
934
|
-
_(
|
|
937
|
+
_(w, e, !0);
|
|
935
938
|
},
|
|
936
939
|
get spinActive() {
|
|
937
940
|
return n(F);
|
|
@@ -939,45 +942,46 @@ function xn(l, a) {
|
|
|
939
942
|
set spinActive(e) {
|
|
940
943
|
_(F, e, !0);
|
|
941
944
|
}
|
|
942
|
-
}),
|
|
945
|
+
}), u(T);
|
|
943
946
|
var Ce = f(T, 2);
|
|
944
947
|
{
|
|
945
|
-
var
|
|
946
|
-
|
|
948
|
+
var Ie = (e) => {
|
|
949
|
+
ln(e, {
|
|
947
950
|
get result() {
|
|
948
|
-
return n(
|
|
951
|
+
return n(w);
|
|
949
952
|
},
|
|
950
953
|
get endpoint() {
|
|
951
|
-
return
|
|
954
|
+
return b();
|
|
952
955
|
},
|
|
953
956
|
get session() {
|
|
954
957
|
return c();
|
|
955
958
|
},
|
|
956
959
|
get liteMode() {
|
|
957
|
-
return
|
|
960
|
+
return v();
|
|
958
961
|
},
|
|
962
|
+
playAgainLabel: "flipAgain",
|
|
959
963
|
onFetchRemainingTimes: N
|
|
960
964
|
});
|
|
961
|
-
},
|
|
965
|
+
}, Ze = (e) => {
|
|
962
966
|
{
|
|
963
|
-
let t =
|
|
967
|
+
let t = we(() => {
|
|
964
968
|
var r;
|
|
965
969
|
return (r = s()) == null ? void 0 : r.id;
|
|
966
970
|
});
|
|
967
|
-
|
|
971
|
+
on(e, {
|
|
968
972
|
get programId() {
|
|
969
973
|
return n(t);
|
|
970
974
|
},
|
|
971
975
|
get endpoint() {
|
|
972
|
-
return
|
|
976
|
+
return b();
|
|
973
977
|
},
|
|
974
978
|
get session() {
|
|
975
979
|
return c();
|
|
976
980
|
}
|
|
977
981
|
});
|
|
978
982
|
}
|
|
979
|
-
},
|
|
980
|
-
|
|
983
|
+
}, Me = (e) => {
|
|
984
|
+
sn(e, {
|
|
981
985
|
get program() {
|
|
982
986
|
return s();
|
|
983
987
|
},
|
|
@@ -987,18 +991,18 @@ function xn(l, a) {
|
|
|
987
991
|
});
|
|
988
992
|
};
|
|
989
993
|
U(Ce, (e) => {
|
|
990
|
-
n(
|
|
994
|
+
n(w) ? e(Ie) : n(m) === g[0] ? e(Ze, 1) : n(m) === g[2] && e(Me, 2);
|
|
991
995
|
});
|
|
992
996
|
}
|
|
993
|
-
|
|
997
|
+
u(R), K(
|
|
994
998
|
(e, t, r, p, i) => {
|
|
995
999
|
ee = Z(R, 1, "coin-royale svelte-133ej82", null, ee, {
|
|
996
|
-
"coin-royale--lite":
|
|
997
|
-
"coin-royale--result": !!n(
|
|
998
|
-
"coin-royale--plain":
|
|
1000
|
+
"coin-royale--lite": v(),
|
|
1001
|
+
"coin-royale--result": !!n(w),
|
|
1002
|
+
"coin-royale--plain": n(m) !== g[1],
|
|
999
1003
|
"coin-royale--busy": n(F)
|
|
1000
|
-
}), q(ne, "src",
|
|
1001
|
-
display: n(m) !==
|
|
1004
|
+
}), q(ne, "src", dn), ae = Z(z, 1, "coin-royale__back svelte-133ej82", null, ae, { "coin-royale__back--hidden": !h() }), M(Fe, e), M(Ge, t), M(Xe, r), q(X, "aria-label", p), se = J(ie, "", se, { transform: i }), le = J(T, "", le, {
|
|
1005
|
+
display: n(m) !== g[1] || n(w) ? "none" : "contents"
|
|
1002
1006
|
});
|
|
1003
1007
|
},
|
|
1004
1008
|
[
|
|
@@ -1006,15 +1010,15 @@ function xn(l, a) {
|
|
|
1006
1010
|
() => o()("coinTitle"),
|
|
1007
1011
|
() => o()("wofSubtitle"),
|
|
1008
1012
|
() => o()("coinTitle"),
|
|
1009
|
-
() => `translateX(${
|
|
1013
|
+
() => `translateX(${g.indexOf(n(m)) * 100}%)`
|
|
1010
1014
|
]
|
|
1011
|
-
),
|
|
1012
|
-
var
|
|
1013
|
-
return Y(),
|
|
1015
|
+
), he("click", z, _e), S(l, R);
|
|
1016
|
+
var Ee = nn(ze);
|
|
1017
|
+
return Y(), Ee;
|
|
1014
1018
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1019
|
+
$e(["click"]);
|
|
1020
|
+
Ue(
|
|
1021
|
+
hn,
|
|
1018
1022
|
{
|
|
1019
1023
|
program: {},
|
|
1020
1024
|
endpoint: {},
|
|
@@ -1028,5 +1032,5 @@ $e(
|
|
|
1028
1032
|
{ mode: "open" }
|
|
1029
1033
|
);
|
|
1030
1034
|
export {
|
|
1031
|
-
|
|
1035
|
+
hn as C
|
|
1032
1036
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("./WheelOfFortuneWheel-
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-DB0BZCUo.cjs"),e=require("./utils-BqkCy2Rz.cjs"),fe=require("./WheelOfFortuneHistory-KBjh_Fju.cjs"),ge=require("./WheelOfFortuneRules-YSDAQ18X.cjs"),be=require("./WheelOfFortuneDrawResults-BBd3dkqS.cjs"),me=require("./CoinFlip-tTQwMgSv.cjs"),ue=require("./ArrowLeftIcon--eD-7fsx.cjs"),xe=require("./bg-scene-Bz42V1FW.cjs");var he=t.from_html('<div class="coin-royale__scene-neon svelte-133ej82"></div> <div class="coin-royale__scene-moon svelte-133ej82"></div>',1),we=t.from_html("<span></span>"),ye=t.from_html('<div class="coin-royale__ambient svelte-133ej82" aria-hidden="true"><div class="coin-royale__rays svelte-133ej82"></div> <div class="coin-royale__glow svelte-133ej82"></div> <div class="coin-royale__particles svelte-133ej82"></div></div>'),ve=t.from_html('<button role="tab" type="button"> </button>'),_e=t.from_html('<div><div class="coin-royale__scene svelte-133ej82" aria-hidden="true"><img class="coin-royale__scene-img svelte-133ej82" alt="" draggable="false"/> <!> <div class="coin-royale__scene-veil svelte-133ej82"></div></div> <!> <button type="button"><!> <p class="coin-royale__back-label svelte-133ej82"> </p></button> <div class="coin-royale__heading svelte-133ej82"><h3 class="coin-royale__title svelte-133ej82"> </h3> <p class="coin-royale__subtitle svelte-133ej82"> </p></div> <div class="coin-royale__tabs svelte-133ej82" role="tablist"><div class="coin-royale__tab-indicator svelte-133ej82"></div> <!></div> <div class="svelte-133ej82"><!></div> <!></div>');const ke={hash:"svelte-133ej82",code:`@keyframes svelte-133ej82-cr-spinRays {
|
|
2
2
|
to {
|
|
3
3
|
transform: rotate(360deg);
|
|
4
4
|
}
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
animation: svelte-133ej82-cr-breathe 6s ease-in-out infinite;} .coin-royale__scene-veil {position:absolute;inset:0;background:radial-gradient(70% 45% at 50% 42%, rgba(6, 12, 32, 0.15) 0%, rgba(6, 12, 32, 0.55) 70%), linear-gradient(180deg, rgba(6, 12, 32, 0.55) 0%, rgba(6, 12, 32, 0.1) 22%, rgba(6, 12, 32, 0.25) 60%, rgba(4, 8, 22, 0.92) 100%);}
|
|
111
111
|
@container (min-width: 600px) { .coin-royale__scene,
|
|
112
112
|
.coin-royale__ambient {left:50%;right:auto;width:min(var(--cr-bg-w), 100cqw);transform:translateX(-50%);-webkit-mask-image:linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);mask-composite:intersect;}
|
|
113
|
-
} .coin-royale__back {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:
|
|
113
|
+
} .coin-royale__back {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:6px;width:100%;max-width:700px;height:52px;flex-shrink:0;margin:0 auto;padding:10px;line-height:20px;border-radius:6px;background:transparent;border:none;color:var(--white);cursor:pointer;font-size:16px;} .coin-royale__back--hidden {display:none;} .coin-royale__back-icon {width:25px;height:25px;padding:7px;border-radius:50%;background:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));box-sizing:border-box;transition:transform 0.12s ease;} .coin-royale__back:active .coin-royale__back-icon {transform:scale(0.92);} .coin-royale__back-label {margin:0;} .coin-royale__heading {position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:6px;} .coin-royale__title {margin:0;text-align:center;font-size:clamp(20px, 5.5vw, 28px);font-weight:900;line-height:1.05;color:var(--yellow);text-shadow:0 3px 14px rgba(0, 0, 0, 0.35);} .coin-royale__subtitle {margin:0 0 clamp(10px, 3vw, 16px);text-align:center;font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;color:var(--white);opacity:0.92;} .coin-royale__tabs {position:relative;z-index:2;display:flex;justify-content:center;width:90%;max-width:700px;margin-bottom:12px;padding:6px;border-radius:50px;background:var(--color-tabs, rgba(255, 255, 255, 0.1));box-shadow:inset 0 0 0 1px var(--color-border-subtle, rgba(255, 255, 255, 0.08)), inset 0 2px 6px rgba(0, 0, 0, 0.25);height:46px;} .coin-royale__tab-indicator {position:absolute;top:6px;bottom:6px;left:6px;width:calc((100% - 12px) / 3);border-radius:50px;background:var(--color-tabs-selected, linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)));box-shadow:0 2px 8px rgba(0, 0, 0, 0.25);transition:transform 0.32s var(--ease);pointer-events:none;} .coin-royale__tab {position:relative;z-index:1;width:100%;padding:5px;border:none;border-radius:50px;background:transparent;color:var(--white);cursor:pointer;opacity:0.75;transition:opacity 0.15s ease, transform 0.1s ease;font-size:16px;} .coin-royale__tab--active {opacity:1;} .coin-royale__tab:active {transform:scale(0.95);} .coin-royale__play {position:relative;z-index:1;width:var(--wof-size, clamp(276px, 100vw, 430px));margin-block:clamp(-18px, -4vw, -32px);} .coin-royale__flips {position:relative;z-index:2;display:flex;align-items:center;gap:8px;margin:0;font-size:clamp(14px, 4vw, 19px);font-weight:400;color:var(--white);} .coin-royale__flips-count {display:flex;align-items:center;gap:6px;font-size:clamp(16px, 4.5vw, 20px);font-weight:900;color:var(--yellow);} .coin-royale__flips-icon {width:20px;height:20px;transform:rotateX(52deg) rotateZ(-18deg);filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));} .coin-royale__flips-loader {display:inline-block;width:14px;height:14px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
|
|
114
114
|
animation: svelte-133ej82-cr-loaderSpin 600ms linear infinite;} .coin-royale__cta {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;color:var(--color-text-button-primary, #0a2140);background:linear-gradient(180deg, color-mix(in srgb, var(--color-button-primary, #ffd400) 70%, white) 0%, var(--color-button-primary, #ffd400) 55%, var(--color-button-primary-hover, #e0b400) 100%);box-shadow:none;cursor:pointer;transition:transform 0.15s ease, filter 0.15s ease;} .coin-royale__cta::before {content:"";position:absolute;inset:-7px;z-index:-1;border-radius:999px;background:radial-gradient(circle, rgba(255, 212, 0, 0.35), rgba(255, 212, 0, 0) 70%);
|
|
115
115
|
animation: svelte-133ej82-cr-ctaGlow 2.6s ease-in-out infinite;} .coin-royale__cta:active {transform:translateY(2px);} .coin-royale__cta:disabled {filter:grayscale(0.5) brightness(0.75);cursor:default;} .coin-royale__cta:disabled::before {animation-play-state:paused;opacity:0.15;}
|
|
116
|
-
@media (max-width: 767px) { .coin-royale {padding:20px 10px 30px;} .coin-royale__back {
|
|
116
|
+
@media (max-width: 767px) { .coin-royale {padding:20px 10px 30px;} .coin-royale__back {align-self:stretch;width:auto;height:44px;margin:-8px 2px 12px;padding:6px 14px;background:var(--color-tabs, rgba(255, 255, 255, 0.1));} .coin-royale__tabs {width:100%;margin:0 auto;} .coin-royale__tab {font-size:12px;}
|
|
117
117
|
}
|
|
118
118
|
@keyframes svelte-133ej82-wheelBob {
|
|
119
119
|
0%, 100% {
|
|
@@ -731,4 +731,4 @@
|
|
|
731
731
|
.coin img {
|
|
732
732
|
animation: none;} .success-confetti-piece {
|
|
733
733
|
animation: none;}
|
|
734
|
-
}`};function
|
|
734
|
+
}`};function q(P,c){e.push(c,!0),t.append_styles(P,ke);const u=()=>t.store_get(e.$format,"$_",L),[L,W]=t.setup_stores(),a=t.prop(c,"program",7,null),p=t.prop(c,"endpoint",7,null),d=t.prop(c,"session",7,null),j=t.prop(c,"language",7,"en"),z=t.prop(c,"showBackButton",7,!0),m=t.prop(c,"liteMode",7,!1),s=["history","play","rules"];let l=e.state(e.proxy(s[1])),f=e.state(null),h=e.state(!1),S=e.state(!1);const H=e.user_derived(()=>!!p()&&!!a()&&(a()?.remainingTimes??0)>0),w=(n,r={})=>window.postMessage({type:n,name:a()?.name||null,availableSpins:a()?.remainingTimes??null,...r},window.location.href),Y=()=>w("event_coins_accessed",{isUserLoggedIn:!0}),$=()=>w("event_coins_flip"),U=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),K=n=>{n===e.get(l)||e.get(h)||(n===s[0]?w("event_coins_history_click"):n===s[2]?w("event_coins_rules_click"):Y(),e.set(l,n,!0))},R=async()=>{if(!a()?.id||!p())return;const n=new Headers;d()&&n.append("X-SessionId",d());const r=new URL(`${p()}/v1/wof/remainingTimes`);r.searchParams.append("filter",`ProgramId[]=${a().id}`);try{const o=+(await(await fetch(r,{method:"GET",headers:n})).json())?.items?.find(k=>k.programId===a().id)?.remainingTimes||0,b=e.snapshot({...a(),remainingTimes:o,current:{...a().current,remainingTimes:o}});window.postMessage({type:"PrizeGameRemainingTimesUpdated",data:b},window.location.href)}catch(i){console.log(i)}finally{e.set(S,!1)}},G=n=>{n.data?.type!=="SpinAgain"&&n.data?.type!=="BackToWheel"||(e.set(f,null),n.data.skipFetch?e.set(S,!0):R())};t.onMount(()=>(Y(),window.addEventListener("message",G),()=>window.removeEventListener("message",G)));var J={get program(){return a()},set program(n=null){a(n),e.flushSync()},get endpoint(){return p()},set endpoint(n=null){p(n),e.flushSync()},get session(){return d()},set session(n=null){d(n),e.flushSync()},get language(){return j()},set language(n="en"){j(n),e.flushSync()},get showBackButton(){return z()},set showBackButton(n=!0){z(n),e.flushSync()},get liteMode(){return m()},set liteMode(n=!1){m(n),e.flushSync()}},y=_e();let X;var B=e.child(y),T=e.child(B),N=e.sibling(T,2);{var Q=n=>{var r=he();e.next(2),t.append(n,r)};t.if_block(N,n=>{m()||n(Q)})}e.next(2),e.reset(B);var A=e.sibling(B,2);{var V=n=>{var r=ye(),i=e.sibling(e.child(r),4);t.each(i,21,()=>e.SPARKS,t.index,(g,o)=>{var b=we();let k,O;e.template_effect(()=>{k=t.set_class(b,1,"coin-royale__spark svelte-133ej82",null,k,{"coin-royale__spark--blue":e.get(o).blue}),O=t.set_style(b,"",O,{left:`${e.get(o).left??""}%`,width:`${e.get(o).size??""}px`,height:`${e.get(o).size??""}px`,"animation-duration":`${e.get(o).duration??""}s`,"animation-delay":`${e.get(o).delay??""}s`,"--drift":`${e.get(o).drift??""}px`})}),t.append(g,b)}),e.reset(i),e.reset(r),t.append(n,r)};t.if_block(A,n=>{m()||n(V)})}var x=e.sibling(A,2);let I;var C=e.child(x);ue.ArrowLeftIcon(C,{class:"coin-royale__back-icon"});var ee=e.sibling(C,2),ne=e.only_child(ee,!0);e.reset(x);var F=e.sibling(x,2),Z=e.child(F),te=e.only_child(Z,!0),re=e.sibling(Z,2),ae=e.only_child(re,!0);e.reset(F);var v=e.sibling(F,2),M=e.child(v);let E;var oe=e.sibling(M,2);t.each(oe,16,()=>s,n=>n,(n,r)=>{var i=ve();let g;var o=e.only_child(i,!0);e.template_effect(b=>{g=t.set_class(i,1,"coin-royale__tab svelte-133ej82",null,g,{"coin-royale__tab--active":e.get(l)===r}),t.set_attribute(i,"aria-selected",e.get(l)===r),t.set_text(o,b)},[()=>u()(r)]),t.delegated("click",i,()=>K(r)),t.append(n,i)}),e.reset(v);var _=e.sibling(v,2);let D;var ie=e.child(_);me.CoinFlip(ie,{get program(){return a()},get endpoint(){return p()},get session(){return d()},get isAvailable(){return e.get(H)},get remainingTimesLoading(){return e.get(S)},onFlip:$,get spinResults(){return e.get(f)},set spinResults(n){e.set(f,n,!0)},get spinActive(){return e.get(h)},set spinActive(n){e.set(h,n,!0)}}),e.reset(_);var se=e.sibling(_,2);{var le=n=>{be.WheelOfFortuneDrawResults(n,{get result(){return e.get(f)},get endpoint(){return p()},get session(){return d()},get liteMode(){return m()},playAgainLabel:"flipAgain",onFetchRemainingTimes:R})},pe=n=>{{let r=e.user_derived(()=>a()?.id);fe.WheelOfFortuneHistory(n,{get programId(){return e.get(r)},get endpoint(){return p()},get session(){return d()}})}},ce=n=>{ge.WheelOfFortuneRules(n,{get program(){return a()},get language(){return j()}})};t.if_block(se,n=>{e.get(f)?n(le):e.get(l)===s[0]?n(pe,1):e.get(l)===s[2]&&n(ce,2)})}e.reset(y),e.template_effect((n,r,i,g,o)=>{X=t.set_class(y,1,"coin-royale svelte-133ej82",null,X,{"coin-royale--lite":m(),"coin-royale--result":!!e.get(f),"coin-royale--plain":e.get(l)!==s[1],"coin-royale--busy":e.get(h)}),t.set_attribute(T,"src",xe.bgScene),I=t.set_class(x,1,"coin-royale__back svelte-133ej82",null,I,{"coin-royale__back--hidden":!z()}),t.set_text(ne,n),t.set_text(te,r),t.set_text(ae,i),t.set_attribute(v,"aria-label",g),E=t.set_style(M,"",E,{transform:o}),D=t.set_style(_,"",D,{display:e.get(l)!==s[1]||e.get(f)?"none":"contents"})},[()=>u()("backToHub"),()=>u()("coinTitle"),()=>u()("wofSubtitle"),()=>u()("coinTitle"),()=>`translateX(${s.indexOf(e.get(l))*100}%)`]),t.delegated("click",x,U),t.append(P,y);var de=e.pop(J);return W(),de}t.delegate(["click"]);t.create_custom_element(q,{program:{},endpoint:{},session:{},language:{},showBackButton:{},liteMode:{}},[],[],{mode:"open"});exports.CoinRoyale=q;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ke=Object.defineProperty,je=Object.defineProperties;var ze=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var ee=(p,a,i)=>a in p?ke(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,Y=(p,a)=>{for(var i in a||(a={}))Se.call(a,i)&&ee(p,i,a[i]);if(V)for(var i of V(a))Be.call(a,i)&&ee(p,i,a[i]);return p},A=(p,a)=>je(p,ze(a));var ne=(p,a,i)=>new Promise((R,_)=>{var l=f=>{try{d(i.next(f))}catch(x){_(x)}},g=f=>{try{d(i.throw(f))}catch(x){_(x)}},d=f=>f.done?R(f.value):Promise.resolve(f.value).then(l,g);d((i=i.apply(p,a)).next())});const t=require("./WheelOfFortuneWheel-DWAdby4o.cjs"),e=require("./utils-uE8V9ar8.cjs"),Fe=require("./WheelOfFortuneHistory-QwT2V9EM.cjs"),Pe=require("./WheelOfFortuneRules-BJENXLzh.cjs"),Ye=require("./WheelOfFortuneDrawResults-D7SxQsQ4.cjs"),Re=require("./CoinFlip-BI2KQoYz.cjs"),Ge=require("./ArrowLeftIcon-Ypzji-S_.cjs"),Xe=require("./bg-scene-Bz42V1FW.cjs");var Te=t.from_html('<div class="coin-royale__scene-neon svelte-133ej82"></div> <div class="coin-royale__scene-moon svelte-133ej82"></div>',1),Ae=t.from_html("<span></span>"),Ie=t.from_html('<div class="coin-royale__ambient svelte-133ej82" aria-hidden="true"><div class="coin-royale__rays svelte-133ej82"></div> <div class="coin-royale__glow svelte-133ej82"></div> <div class="coin-royale__particles svelte-133ej82"></div></div>'),Ce=t.from_html('<button role="tab" type="button"> </button>'),Ze=t.from_html('<div><div class="coin-royale__scene svelte-133ej82" aria-hidden="true"><img class="coin-royale__scene-img svelte-133ej82" alt="" draggable="false"/> <!> <div class="coin-royale__scene-veil svelte-133ej82"></div></div> <!> <button type="button"><!> <p class="coin-royale__back-label svelte-133ej82"> </p></button> <div class="coin-royale__heading svelte-133ej82"><h3 class="coin-royale__title svelte-133ej82"> </h3> <p class="coin-royale__subtitle svelte-133ej82"> </p></div> <div class="coin-royale__tabs svelte-133ej82" role="tablist"><div class="coin-royale__tab-indicator svelte-133ej82"></div> <!></div> <div class="svelte-133ej82"><!></div> <!></div>');const Me={hash:"svelte-133ej82",code:`@keyframes svelte-133ej82-cr-spinRays {
|
|
2
2
|
to {
|
|
3
3
|
transform: rotate(360deg);
|
|
4
4
|
}
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
animation: svelte-133ej82-cr-breathe 6s ease-in-out infinite;} .coin-royale__scene-veil {position:absolute;inset:0;background:radial-gradient(70% 45% at 50% 42%, rgba(6, 12, 32, 0.15) 0%, rgba(6, 12, 32, 0.55) 70%), linear-gradient(180deg, rgba(6, 12, 32, 0.55) 0%, rgba(6, 12, 32, 0.1) 22%, rgba(6, 12, 32, 0.25) 60%, rgba(4, 8, 22, 0.92) 100%);}
|
|
111
111
|
@container (min-width: 600px) { .coin-royale__scene,
|
|
112
112
|
.coin-royale__ambient {left:50%;right:auto;width:min(var(--cr-bg-w), 100cqw);transform:translateX(-50%);-webkit-mask-image:linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);mask-composite:intersect;}
|
|
113
|
-
} .coin-royale__back {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:
|
|
113
|
+
} .coin-royale__back {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:6px;width:100%;max-width:700px;height:52px;flex-shrink:0;margin:0 auto;padding:10px;line-height:20px;border-radius:6px;background:transparent;border:none;color:var(--white);cursor:pointer;font-size:16px;} .coin-royale__back--hidden {display:none;} .coin-royale__back-icon {width:25px;height:25px;padding:7px;border-radius:50%;background:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));box-sizing:border-box;transition:transform 0.12s ease;} .coin-royale__back:active .coin-royale__back-icon {transform:scale(0.92);} .coin-royale__back-label {margin:0;} .coin-royale__heading {position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:6px;} .coin-royale__title {margin:0;text-align:center;font-size:clamp(20px, 5.5vw, 28px);font-weight:900;line-height:1.05;color:var(--yellow);text-shadow:0 3px 14px rgba(0, 0, 0, 0.35);} .coin-royale__subtitle {margin:0 0 clamp(10px, 3vw, 16px);text-align:center;font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;color:var(--white);opacity:0.92;} .coin-royale__tabs {position:relative;z-index:2;display:flex;justify-content:center;width:90%;max-width:700px;margin-bottom:12px;padding:6px;border-radius:50px;background:var(--color-tabs, rgba(255, 255, 255, 0.1));box-shadow:inset 0 0 0 1px var(--color-border-subtle, rgba(255, 255, 255, 0.08)), inset 0 2px 6px rgba(0, 0, 0, 0.25);height:46px;} .coin-royale__tab-indicator {position:absolute;top:6px;bottom:6px;left:6px;width:calc((100% - 12px) / 3);border-radius:50px;background:var(--color-tabs-selected, linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)));box-shadow:0 2px 8px rgba(0, 0, 0, 0.25);transition:transform 0.32s var(--ease);pointer-events:none;} .coin-royale__tab {position:relative;z-index:1;width:100%;padding:5px;border:none;border-radius:50px;background:transparent;color:var(--white);cursor:pointer;opacity:0.75;transition:opacity 0.15s ease, transform 0.1s ease;font-size:16px;} .coin-royale__tab--active {opacity:1;} .coin-royale__tab:active {transform:scale(0.95);} .coin-royale__play {position:relative;z-index:1;width:var(--wof-size, clamp(276px, 100vw, 430px));margin-block:clamp(-18px, -4vw, -32px);} .coin-royale__flips {position:relative;z-index:2;display:flex;align-items:center;gap:8px;margin:0;font-size:clamp(14px, 4vw, 19px);font-weight:400;color:var(--white);} .coin-royale__flips-count {display:flex;align-items:center;gap:6px;font-size:clamp(16px, 4.5vw, 20px);font-weight:900;color:var(--yellow);} .coin-royale__flips-icon {width:20px;height:20px;transform:rotateX(52deg) rotateZ(-18deg);filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));} .coin-royale__flips-loader {display:inline-block;width:14px;height:14px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
|
|
114
114
|
animation: svelte-133ej82-cr-loaderSpin 600ms linear infinite;} .coin-royale__cta {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;color:var(--color-text-button-primary, #0a2140);background:linear-gradient(180deg, color-mix(in srgb, var(--color-button-primary, #ffd400) 70%, white) 0%, var(--color-button-primary, #ffd400) 55%, var(--color-button-primary-hover, #e0b400) 100%);box-shadow:none;cursor:pointer;transition:transform 0.15s ease, filter 0.15s ease;} .coin-royale__cta::before {content:"";position:absolute;inset:-7px;z-index:-1;border-radius:999px;background:radial-gradient(circle, rgba(255, 212, 0, 0.35), rgba(255, 212, 0, 0) 70%);
|
|
115
115
|
animation: svelte-133ej82-cr-ctaGlow 2.6s ease-in-out infinite;} .coin-royale__cta:active {transform:translateY(2px);} .coin-royale__cta:disabled {filter:grayscale(0.5) brightness(0.75);cursor:default;} .coin-royale__cta:disabled::before {animation-play-state:paused;opacity:0.15;}
|
|
116
|
-
@media (max-width: 767px) { .coin-royale {padding:20px 10px 30px;} .coin-royale__back {
|
|
116
|
+
@media (max-width: 767px) { .coin-royale {padding:20px 10px 30px;} .coin-royale__back {align-self:stretch;width:auto;height:44px;margin:-8px 2px 12px;padding:6px 14px;background:var(--color-tabs, rgba(255, 255, 255, 0.1));} .coin-royale__tabs {width:100%;margin:0 auto;} .coin-royale__tab {font-size:12px;}
|
|
117
117
|
}
|
|
118
118
|
@keyframes svelte-133ej82-wheelBob {
|
|
119
119
|
0%, 100% {
|
|
@@ -731,4 +731,4 @@
|
|
|
731
731
|
.coin img {
|
|
732
732
|
animation: none;} .success-confetti-piece {
|
|
733
733
|
animation: none;}
|
|
734
|
-
}`};function
|
|
734
|
+
}`};function te(p,a){e.push(a,!0),t.append_styles(p,Me);const i=()=>t.store_get(e.$format,"$_",R),[R,_]=t.setup_stores(),l=t.prop(a,"program",7,null),g=t.prop(a,"endpoint",7,null),d=t.prop(a,"session",7,null),f=t.prop(a,"language",7,"en"),x=t.prop(a,"showBackButton",7,!0),w=t.prop(a,"liteMode",7,!1),b=["history","play","rules"];let m=e.state(e.proxy(b[1])),h=e.state(null),k=e.state(!1),G=e.state(!1);const re=e.user_derived(()=>{var n,r;return!!g()&&!!l()&&((r=(n=l())==null?void 0:n.remainingTimes)!=null?r:0)>0}),j=(n,r={})=>{var o,c,s;return window.postMessage(Y({type:n,name:((o=l())==null?void 0:o.name)||null,availableSpins:(s=(c=l())==null?void 0:c.remainingTimes)!=null?s:null},r),window.location.href)},I=()=>j("event_coins_accessed",{isUserLoggedIn:!0}),ae=()=>j("event_coins_flip"),oe=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),ie=n=>{n===e.get(m)||e.get(k)||(n===b[0]?j("event_coins_history_click"):n===b[2]?j("event_coins_rules_click"):I(),e.set(m,n,!0))},C=()=>ne(this,null,function*(){var o,c;if(!((o=l())!=null&&o.id)||!g())return;const n=new Headers;d()&&n.append("X-SessionId",d());const r=new URL(`${g()}/v1/wof/remainingTimes`);r.searchParams.append("filter",`ProgramId[]=${l().id}`);try{const s=yield(yield fetch(r,{method:"GET",headers:n})).json(),u=(c=s==null?void 0:s.items)==null?void 0:c.find(P=>P.programId===l().id),v=+(u==null?void 0:u.remainingTimes)||0,F=e.snapshot(A(Y({},l()),{remainingTimes:v,current:A(Y({},l().current),{remainingTimes:v})}));window.postMessage({type:"PrizeGameRemainingTimesUpdated",data:F},window.location.href)}catch(s){console.log(s)}finally{e.set(G,!1)}}),Z=n=>{var r,o;((r=n.data)==null?void 0:r.type)!=="SpinAgain"&&((o=n.data)==null?void 0:o.type)!=="BackToWheel"||(e.set(h,null),n.data.skipFetch?e.set(G,!0):C())};t.onMount(()=>(I(),window.addEventListener("message",Z),()=>window.removeEventListener("message",Z)));var se={get program(){return l()},set program(n=null){l(n),e.flushSync()},get endpoint(){return g()},set endpoint(n=null){g(n),e.flushSync()},get session(){return d()},set session(n=null){d(n),e.flushSync()},get language(){return f()},set language(n="en"){f(n),e.flushSync()},get showBackButton(){return x()},set showBackButton(n=!0){x(n),e.flushSync()},get liteMode(){return w()},set liteMode(n=!1){w(n),e.flushSync()}},z=Ze();let M;var X=e.child(z),E=e.child(X),le=e.sibling(E,2);{var pe=n=>{var r=Te();e.next(2),t.append(n,r)};t.if_block(le,n=>{w()||n(pe)})}e.next(2),e.reset(X);var D=e.sibling(X,2);{var ce=n=>{var r=Ie(),o=e.sibling(e.child(r),4);t.each(o,21,()=>e.SPARKS,t.index,(c,s)=>{var u=Ae();let v,F;e.template_effect(()=>{var P,U,K,J,N,Q;v=t.set_class(u,1,"coin-royale__spark svelte-133ej82",null,v,{"coin-royale__spark--blue":e.get(s).blue}),F=t.set_style(u,"",F,{left:`${(P=e.get(s).left)!=null?P:""}%`,width:`${(U=e.get(s).size)!=null?U:""}px`,height:`${(K=e.get(s).size)!=null?K:""}px`,"animation-duration":`${(J=e.get(s).duration)!=null?J:""}s`,"animation-delay":`${(N=e.get(s).delay)!=null?N:""}s`,"--drift":`${(Q=e.get(s).drift)!=null?Q:""}px`})}),t.append(c,u)}),e.reset(o),e.reset(r),t.append(n,r)};t.if_block(D,n=>{w()||n(ce)})}var y=e.sibling(D,2);let O;var q=e.child(y);Ge.ArrowLeftIcon(q,{class:"coin-royale__back-icon"});var de=e.sibling(q,2),fe=e.only_child(de,!0);e.reset(y);var T=e.sibling(y,2),L=e.child(T),ge=e.only_child(L,!0),be=e.sibling(L,2),me=e.only_child(be,!0);e.reset(T);var S=e.sibling(T,2),W=e.child(S);let H;var ue=e.sibling(W,2);t.each(ue,16,()=>b,n=>n,(n,r)=>{var o=Ce();let c;var s=e.only_child(o,!0);e.template_effect(u=>{c=t.set_class(o,1,"coin-royale__tab svelte-133ej82",null,c,{"coin-royale__tab--active":e.get(m)===r}),t.set_attribute(o,"aria-selected",e.get(m)===r),t.set_text(s,u)},[()=>i()(r)]),t.delegated("click",o,()=>ie(r)),t.append(n,o)}),e.reset(S);var B=e.sibling(S,2);let $;var xe=e.child(B);Re.CoinFlip(xe,{get program(){return l()},get endpoint(){return g()},get session(){return d()},get isAvailable(){return e.get(re)},get remainingTimesLoading(){return e.get(G)},onFlip:ae,get spinResults(){return e.get(h)},set spinResults(n){e.set(h,n,!0)},get spinActive(){return e.get(k)},set spinActive(n){e.set(k,n,!0)}}),e.reset(B);var he=e.sibling(B,2);{var we=n=>{Ye.WheelOfFortuneDrawResults(n,{get result(){return e.get(h)},get endpoint(){return g()},get session(){return d()},get liteMode(){return w()},playAgainLabel:"flipAgain",onFetchRemainingTimes:C})},ye=n=>{{let r=e.user_derived(()=>{var o;return(o=l())==null?void 0:o.id});Fe.WheelOfFortuneHistory(n,{get programId(){return e.get(r)},get endpoint(){return g()},get session(){return d()}})}},ve=n=>{Pe.WheelOfFortuneRules(n,{get program(){return l()},get language(){return f()}})};t.if_block(he,n=>{e.get(h)?n(we):e.get(m)===b[0]?n(ye,1):e.get(m)===b[2]&&n(ve,2)})}e.reset(z),e.template_effect((n,r,o,c,s)=>{M=t.set_class(z,1,"coin-royale svelte-133ej82",null,M,{"coin-royale--lite":w(),"coin-royale--result":!!e.get(h),"coin-royale--plain":e.get(m)!==b[1],"coin-royale--busy":e.get(k)}),t.set_attribute(E,"src",Xe.bgScene),O=t.set_class(y,1,"coin-royale__back svelte-133ej82",null,O,{"coin-royale__back--hidden":!x()}),t.set_text(fe,n),t.set_text(ge,r),t.set_text(me,o),t.set_attribute(S,"aria-label",c),H=t.set_style(W,"",H,{transform:s}),$=t.set_style(B,"",$,{display:e.get(m)!==b[1]||e.get(h)?"none":"contents"})},[()=>i()("backToHub"),()=>i()("coinTitle"),()=>i()("wofSubtitle"),()=>i()("coinTitle"),()=>`translateX(${b.indexOf(e.get(m))*100}%)`]),t.delegated("click",y,oe),t.append(p,z);var _e=e.pop(se);return _(),_e}t.delegate(["click"]);t.create_custom_element(te,{program:{},endpoint:{},session:{},language:{},showBackButton:{},liteMode:{}},[],[],{mode:"open"});exports.CoinRoyale=te;
|