@everymatrix/mini-games-hub 0.2.8 → 0.2.9
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-BBQbSgPj.js +20 -0
- package/components/ArrowLeftIcon-CK2Rm6IW.cjs +1 -0
- package/components/ArrowLeftIcon-CbMwJALt.js +20 -0
- package/components/ArrowLeftIcon-Ls7P40Uk.cjs +1 -0
- package/components/{CoinFlip-BOrc1Sgy.cjs → CoinFlip-CWv6r8u1.cjs} +1 -1
- package/components/{CoinFlip-DiCOvx3Q.cjs → CoinFlip-CaRkaWEA.cjs} +1 -1
- package/components/{CoinFlip-DgM6tDy5.js → CoinFlip-D3kH_y8b.js} +17 -17
- package/components/{CoinFlip-uc2aguuz.js → CoinFlip-hKLoCmvJ.js} +1 -1
- package/components/{CoinRoyale-fp-xfwl2.js → CoinRoyale-Cr3FMU-f.js} +105 -101
- package/components/{CoinRoyale-Bkr3Rd-u.cjs → CoinRoyale-DcXB88TG.cjs} +4 -4
- package/components/{CoinRoyale-DLL1bCAy.js → CoinRoyale-HFE5DCkQ.js} +120 -116
- package/components/{CoinRoyale-BH73ZSrU.cjs → CoinRoyale-mXlKdlwT.cjs} +4 -4
- package/components/{GameCard-Qh_fk15-.cjs → GameCard-BPoaBZ8h.cjs} +3 -3
- package/components/{GameCard-BiO9Cay-.cjs → GameCard-DfVe9CgG.cjs} +3 -3
- package/components/{GameCard-jCZ6S2Wu.js → GameCard-cglVYPLz.js} +31 -31
- package/components/{GameCard-D78hDMaL.js → GameCard-grRDxpTz.js} +36 -36
- package/components/{MiniGamesHub-Bf2Cd1bB.js → MiniGamesHub-CxhilLzF.js} +157 -88
- package/components/{MiniGamesHub-KqAdBJEX.js → MiniGamesHub-DUICCoYd.js} +137 -68
- package/components/MiniGamesHub-DW82s9I9.cjs +79 -0
- package/components/MiniGamesHub-uuQkACzs.cjs +79 -0
- package/components/{WheelOfFortune-CBYo6vCg.js → WheelOfFortune-CsDXFzBd.js} +19 -19
- package/components/{WheelOfFortune-XfmUFV3-.cjs → WheelOfFortune-DGY-q1LW.cjs} +1 -1
- package/components/{WheelOfFortune-CDTzbAjp.cjs → WheelOfFortune-DfN31a-S.cjs} +1 -1
- package/components/{WheelOfFortune-8HCl7aHv.js → WheelOfFortune-MIjCRllT.js} +28 -28
- package/components/WheelOfFortuneDrawResults-CKN979BS.js +261 -0
- package/components/WheelOfFortuneDrawResults-CmfWdZz0.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-Di5DQfhF.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-Dr-xmM_N.js +286 -0
- package/components/WheelOfFortuneHistory-BL4DV0im.cjs +13 -0
- package/components/WheelOfFortuneHistory-CqRO9Oee.cjs +13 -0
- package/components/WheelOfFortuneHistory-DFn33FhJ.js +222 -0
- package/components/WheelOfFortuneHistory-DvqIUld0.js +223 -0
- package/components/WheelOfFortuneRules-BxMUpX5_.js +120 -0
- package/components/WheelOfFortuneRules-CnS5xZ_B.js +109 -0
- package/components/WheelOfFortuneRules-Cu5CBrl6.cjs +5 -0
- package/components/WheelOfFortuneRules-UZj0hVWC.cjs +5 -0
- package/components/{WheelOfFortuneWheel-F62aU_CL.js → WheelOfFortuneWheel-C694AcSr.js} +280 -263
- package/components/WheelOfFortuneWheel-CvGaRYgu.cjs +3 -0
- package/components/WheelOfFortuneWheel-Dxh6wKCh.cjs +3 -0
- package/components/{WheelOfFortuneWheel-CiyQZNAd.js → WheelOfFortuneWheel-cBswACGf.js} +515 -498
- 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
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { a5 as
|
|
3
|
-
import { W as
|
|
4
|
-
import { W as
|
|
5
|
-
import { W as
|
|
6
|
-
import { C as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { d as Fe, c as Ge, a as Re, p as h, o as Xe, i as E, j as re, q as G, h as D, l as R, u as L, r as oe, e as _, f as j, s as Te, g as Ae, k as Ce } from "./WheelOfFortuneWheel-C694AcSr.js";
|
|
2
|
+
import { a5 as Ie, b1 as X, aQ as Ze, b5 as i, aJ as w, L as n, ar as H, a9 as Me, b6 as x, bc as ie, b3 as Ee, b7 as T, aU as y, O as se, ba as c, bk as De, bm as Le } from "./utils-3LNftCeZ.js";
|
|
3
|
+
import { W as He } from "./WheelOfFortuneHistory-DFn33FhJ.js";
|
|
4
|
+
import { W as Oe } from "./WheelOfFortuneRules-CnS5xZ_B.js";
|
|
5
|
+
import { W as We } from "./WheelOfFortuneDrawResults-CKN979BS.js";
|
|
6
|
+
import { C as $e } from "./CoinFlip-hKLoCmvJ.js";
|
|
7
|
+
import { A as Ue } from "./ArrowLeftIcon-CbMwJALt.js";
|
|
8
|
+
import { b as qe } from "./bg-scene-DpHgKCHj.js";
|
|
9
|
+
var Je = j('<div class="coin-royale__scene-neon svelte-133ej82"></div> <div class="coin-royale__scene-moon svelte-133ej82"></div>', 1), Ke = j("<span></span>"), Qe = j('<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>'), Ne = j('<button role="tab" type="button"> </button>'), Ve = j('<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>');
|
|
10
|
+
const en = {
|
|
10
11
|
hash: "svelte-133ej82",
|
|
11
12
|
code: `@keyframes svelte-133ej82-cr-spinRays {
|
|
12
13
|
to {
|
|
@@ -120,10 +121,10 @@ const Ne = {
|
|
|
120
121
|
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%);}
|
|
121
122
|
@container (min-width: 600px) { .coin-royale__scene,
|
|
122
123
|
.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;}
|
|
123
|
-
} .coin-royale__back {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:
|
|
124
|
+
} .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%;
|
|
124
125
|
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%);
|
|
125
126
|
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;}
|
|
126
|
-
@media (max-width: 767px) { .coin-royale {padding:20px 10px 30px;} .coin-royale__back {
|
|
127
|
+
@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;}
|
|
127
128
|
}
|
|
128
129
|
@keyframes svelte-133ej82-wheelBob {
|
|
129
130
|
0%, 100% {
|
|
@@ -743,11 +744,11 @@ const Ne = {
|
|
|
743
744
|
animation: none;}
|
|
744
745
|
}`
|
|
745
746
|
};
|
|
746
|
-
function
|
|
747
|
-
|
|
748
|
-
const
|
|
749
|
-
let l = X(
|
|
750
|
-
const
|
|
747
|
+
function nn(O, d) {
|
|
748
|
+
Ie(d, !0), Re(O, en);
|
|
749
|
+
const v = () => Te(Ee, "$_", le), [le, pe] = Ae(), a = h(d, "program", 7, null), p = h(d, "endpoint", 7, null), f = h(d, "session", 7, null), A = h(d, "language", 7, "en"), C = h(d, "showBackButton", 7, !0), u = h(d, "liteMode", 7, !1), s = ["history", "play", "rules"];
|
|
750
|
+
let l = X(Ze(s[1])), b = X(null), z = X(!1), I = X(!1);
|
|
751
|
+
const ce = ie(() => !!p() && !!a() && (a()?.remainingTimes ?? 0) > 0), B = (e, t = {}) => window.postMessage(
|
|
751
752
|
{
|
|
752
753
|
type: e,
|
|
753
754
|
name: a()?.name || null,
|
|
@@ -755,16 +756,16 @@ function Ve(O, f) {
|
|
|
755
756
|
...t
|
|
756
757
|
},
|
|
757
758
|
window.location.href
|
|
758
|
-
), W = () => B("event_coins_accessed", { isUserLoggedIn: !0 }),
|
|
759
|
+
), W = () => B("event_coins_accessed", { isUserLoggedIn: !0 }), de = () => B("event_coins_flip"), fe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), be = (e) => {
|
|
759
760
|
e === n(l) || n(z) || (e === s[0] ? B("event_coins_history_click") : e === s[2] ? B("event_coins_rules_click") : W(), w(l, e, !0));
|
|
760
761
|
}, $ = async () => {
|
|
761
762
|
if (!a()?.id || !p()) return;
|
|
762
763
|
const e = new Headers();
|
|
763
|
-
|
|
764
|
+
f() && e.append("X-SessionId", f());
|
|
764
765
|
const t = new URL(`${p()}/v1/wof/remainingTimes`);
|
|
765
766
|
t.searchParams.append("filter", `ProgramId[]=${a().id}`);
|
|
766
767
|
try {
|
|
767
|
-
const r = +(await (await fetch(t, { method: "GET", headers: e })).json())?.items?.find((F) => F.programId === a().id)?.remainingTimes || 0, m =
|
|
768
|
+
const r = +(await (await fetch(t, { method: "GET", headers: e })).json())?.items?.find((F) => F.programId === a().id)?.remainingTimes || 0, m = De({
|
|
768
769
|
...a(),
|
|
769
770
|
remainingTimes: r,
|
|
770
771
|
current: { ...a().current, remainingTimes: r }
|
|
@@ -776,68 +777,68 @@ function Ve(O, f) {
|
|
|
776
777
|
w(I, !1);
|
|
777
778
|
}
|
|
778
779
|
}, U = (e) => {
|
|
779
|
-
e.data?.type !== "SpinAgain" && e.data?.type !== "BackToWheel" || (w(
|
|
780
|
+
e.data?.type !== "SpinAgain" && e.data?.type !== "BackToWheel" || (w(b, null), e.data.skipFetch ? w(I, !0) : $());
|
|
780
781
|
};
|
|
781
|
-
|
|
782
|
+
Xe(() => (W(), window.addEventListener("message", U), () => window.removeEventListener("message", U)));
|
|
782
783
|
var ge = {
|
|
783
784
|
get program() {
|
|
784
785
|
return a();
|
|
785
786
|
},
|
|
786
787
|
set program(e = null) {
|
|
787
|
-
a(e),
|
|
788
|
+
a(e), y();
|
|
788
789
|
},
|
|
789
790
|
get endpoint() {
|
|
790
791
|
return p();
|
|
791
792
|
},
|
|
792
793
|
set endpoint(e = null) {
|
|
793
|
-
p(e),
|
|
794
|
+
p(e), y();
|
|
794
795
|
},
|
|
795
796
|
get session() {
|
|
796
|
-
return
|
|
797
|
+
return f();
|
|
797
798
|
},
|
|
798
799
|
set session(e = null) {
|
|
799
|
-
|
|
800
|
+
f(e), y();
|
|
800
801
|
},
|
|
801
802
|
get language() {
|
|
802
|
-
return
|
|
803
|
+
return A();
|
|
803
804
|
},
|
|
804
805
|
set language(e = "en") {
|
|
805
|
-
|
|
806
|
+
A(e), y();
|
|
806
807
|
},
|
|
807
808
|
get showBackButton() {
|
|
808
|
-
return
|
|
809
|
+
return C();
|
|
809
810
|
},
|
|
810
811
|
set showBackButton(e = !0) {
|
|
811
|
-
|
|
812
|
+
C(e), y();
|
|
812
813
|
},
|
|
813
814
|
get liteMode() {
|
|
814
815
|
return u();
|
|
815
816
|
},
|
|
816
817
|
set liteMode(e = !1) {
|
|
817
|
-
u(e),
|
|
818
|
+
u(e), y();
|
|
818
819
|
}
|
|
819
|
-
}, S =
|
|
820
|
+
}, S = Ve();
|
|
820
821
|
let q;
|
|
821
|
-
var Z = x(S), J = x(Z),
|
|
822
|
+
var Z = x(S), J = x(Z), me = i(J, 2);
|
|
822
823
|
{
|
|
823
|
-
var
|
|
824
|
-
var t =
|
|
825
|
-
|
|
824
|
+
var xe = (e) => {
|
|
825
|
+
var t = Je();
|
|
826
|
+
se(2), _(e, t);
|
|
826
827
|
};
|
|
827
|
-
E(
|
|
828
|
-
u() || e(
|
|
828
|
+
E(me, (e) => {
|
|
829
|
+
u() || e(xe);
|
|
829
830
|
});
|
|
830
831
|
}
|
|
831
|
-
|
|
832
|
+
se(2), c(Z);
|
|
832
833
|
var K = i(Z, 2);
|
|
833
834
|
{
|
|
834
|
-
var
|
|
835
|
-
var t =
|
|
836
|
-
|
|
837
|
-
var m =
|
|
838
|
-
let F,
|
|
835
|
+
var ue = (e) => {
|
|
836
|
+
var t = Qe(), o = i(x(t), 4);
|
|
837
|
+
re(o, 21, () => Le, Ce, (g, r) => {
|
|
838
|
+
var m = Ke();
|
|
839
|
+
let F, ae;
|
|
839
840
|
H(() => {
|
|
840
|
-
F = G(m, 1, "coin-royale__spark svelte-133ej82", null, F, { "coin-royale__spark--blue": n(r).blue }),
|
|
841
|
+
F = G(m, 1, "coin-royale__spark svelte-133ej82", null, F, { "coin-royale__spark--blue": n(r).blue }), ae = L(m, "", ae, {
|
|
841
842
|
left: `${n(r).left ?? ""}%`,
|
|
842
843
|
width: `${n(r).size ?? ""}px`,
|
|
843
844
|
height: `${n(r).size ?? ""}px`,
|
|
@@ -845,37 +846,39 @@ function Ve(O, f) {
|
|
|
845
846
|
"animation-delay": `${n(r).delay ?? ""}s`,
|
|
846
847
|
"--drift": `${n(r).drift ?? ""}px`
|
|
847
848
|
});
|
|
848
|
-
}), _(
|
|
849
|
-
}),
|
|
849
|
+
}), _(g, m);
|
|
850
|
+
}), c(o), c(t), _(e, t);
|
|
850
851
|
};
|
|
851
852
|
E(K, (e) => {
|
|
852
|
-
u() || e(
|
|
853
|
+
u() || e(ue);
|
|
853
854
|
});
|
|
854
855
|
}
|
|
855
856
|
var k = i(K, 2);
|
|
856
857
|
let Q;
|
|
857
|
-
var
|
|
858
|
-
|
|
859
|
-
var
|
|
860
|
-
|
|
861
|
-
var
|
|
862
|
-
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
858
|
+
var N = x(k);
|
|
859
|
+
Ue(N, { class: "coin-royale__back-icon" });
|
|
860
|
+
var he = i(N, 2), we = T(he, !0);
|
|
861
|
+
c(k);
|
|
862
|
+
var M = i(k, 2), V = x(M), ye = T(V, !0), ve = i(V, 2), ke = T(ve, !0);
|
|
863
|
+
c(M);
|
|
864
|
+
var P = i(M, 2), ee = x(P);
|
|
865
|
+
let ne;
|
|
866
|
+
var _e = i(ee, 2);
|
|
867
|
+
re(_e, 16, () => s, (e) => e, (e, t) => {
|
|
868
|
+
var o = Ne();
|
|
869
|
+
let g;
|
|
867
870
|
var r = T(o, !0);
|
|
868
871
|
H(
|
|
869
872
|
(m) => {
|
|
870
|
-
|
|
873
|
+
g = G(o, 1, "coin-royale__tab svelte-133ej82", null, g, { "coin-royale__tab--active": n(l) === t }), D(o, "aria-selected", n(l) === t), R(r, m);
|
|
871
874
|
},
|
|
872
|
-
[() =>
|
|
873
|
-
),
|
|
874
|
-
}),
|
|
875
|
+
[() => v()(t)]
|
|
876
|
+
), oe("click", o, () => be(t)), _(e, o);
|
|
877
|
+
}), c(P);
|
|
875
878
|
var Y = i(P, 2);
|
|
876
|
-
let
|
|
877
|
-
var
|
|
878
|
-
|
|
879
|
+
let te;
|
|
880
|
+
var je = x(Y);
|
|
881
|
+
$e(je, {
|
|
879
882
|
get program() {
|
|
880
883
|
return a();
|
|
881
884
|
},
|
|
@@ -883,20 +886,20 @@ function Ve(O, f) {
|
|
|
883
886
|
return p();
|
|
884
887
|
},
|
|
885
888
|
get session() {
|
|
886
|
-
return
|
|
889
|
+
return f();
|
|
887
890
|
},
|
|
888
891
|
get isAvailable() {
|
|
889
|
-
return n(
|
|
892
|
+
return n(ce);
|
|
890
893
|
},
|
|
891
894
|
get remainingTimesLoading() {
|
|
892
895
|
return n(I);
|
|
893
896
|
},
|
|
894
|
-
onFlip:
|
|
897
|
+
onFlip: de,
|
|
895
898
|
get spinResults() {
|
|
896
|
-
return n(
|
|
899
|
+
return n(b);
|
|
897
900
|
},
|
|
898
901
|
set spinResults(e) {
|
|
899
|
-
w(
|
|
902
|
+
w(b, e, !0);
|
|
900
903
|
},
|
|
901
904
|
get spinActive() {
|
|
902
905
|
return n(z);
|
|
@@ -904,29 +907,30 @@ function Ve(O, f) {
|
|
|
904
907
|
set spinActive(e) {
|
|
905
908
|
w(z, e, !0);
|
|
906
909
|
}
|
|
907
|
-
}),
|
|
908
|
-
var
|
|
910
|
+
}), c(Y);
|
|
911
|
+
var ze = i(Y, 2);
|
|
909
912
|
{
|
|
910
|
-
var
|
|
911
|
-
|
|
913
|
+
var Be = (e) => {
|
|
914
|
+
We(e, {
|
|
912
915
|
get result() {
|
|
913
|
-
return n(
|
|
916
|
+
return n(b);
|
|
914
917
|
},
|
|
915
918
|
get endpoint() {
|
|
916
919
|
return p();
|
|
917
920
|
},
|
|
918
921
|
get session() {
|
|
919
|
-
return
|
|
922
|
+
return f();
|
|
920
923
|
},
|
|
921
924
|
get liteMode() {
|
|
922
925
|
return u();
|
|
923
926
|
},
|
|
927
|
+
playAgainLabel: "flipAgain",
|
|
924
928
|
onFetchRemainingTimes: $
|
|
925
929
|
});
|
|
926
|
-
},
|
|
930
|
+
}, Se = (e) => {
|
|
927
931
|
{
|
|
928
|
-
let t =
|
|
929
|
-
|
|
932
|
+
let t = ie(() => a()?.id);
|
|
933
|
+
He(e, {
|
|
930
934
|
get programId() {
|
|
931
935
|
return n(t);
|
|
932
936
|
},
|
|
@@ -934,49 +938,49 @@ function Ve(O, f) {
|
|
|
934
938
|
return p();
|
|
935
939
|
},
|
|
936
940
|
get session() {
|
|
937
|
-
return
|
|
941
|
+
return f();
|
|
938
942
|
}
|
|
939
943
|
});
|
|
940
944
|
}
|
|
941
|
-
},
|
|
942
|
-
|
|
945
|
+
}, Pe = (e) => {
|
|
946
|
+
Oe(e, {
|
|
943
947
|
get program() {
|
|
944
948
|
return a();
|
|
945
949
|
},
|
|
946
950
|
get language() {
|
|
947
|
-
return
|
|
951
|
+
return A();
|
|
948
952
|
}
|
|
949
953
|
});
|
|
950
954
|
};
|
|
951
|
-
E(
|
|
952
|
-
n(
|
|
955
|
+
E(ze, (e) => {
|
|
956
|
+
n(b) ? e(Be) : n(l) === s[0] ? e(Se, 1) : n(l) === s[2] && e(Pe, 2);
|
|
953
957
|
});
|
|
954
958
|
}
|
|
955
|
-
|
|
956
|
-
(e, t, o,
|
|
959
|
+
c(S), H(
|
|
960
|
+
(e, t, o, g, r) => {
|
|
957
961
|
q = G(S, 1, "coin-royale svelte-133ej82", null, q, {
|
|
958
962
|
"coin-royale--lite": u(),
|
|
959
|
-
"coin-royale--result": !!n(
|
|
960
|
-
"coin-royale--plain":
|
|
963
|
+
"coin-royale--result": !!n(b),
|
|
964
|
+
"coin-royale--plain": n(l) !== s[1],
|
|
961
965
|
"coin-royale--busy": n(z)
|
|
962
|
-
}), D(J, "src",
|
|
963
|
-
display: n(l) !== s[1] || n(
|
|
966
|
+
}), D(J, "src", qe), Q = G(k, 1, "coin-royale__back svelte-133ej82", null, Q, { "coin-royale__back--hidden": !C() }), R(we, e), R(ye, t), R(ke, o), D(P, "aria-label", g), ne = L(ee, "", ne, { transform: r }), te = L(Y, "", te, {
|
|
967
|
+
display: n(l) !== s[1] || n(b) ? "none" : "contents"
|
|
964
968
|
});
|
|
965
969
|
},
|
|
966
970
|
[
|
|
967
|
-
() =>
|
|
968
|
-
() =>
|
|
969
|
-
() =>
|
|
970
|
-
() =>
|
|
971
|
+
() => v()("backToHub"),
|
|
972
|
+
() => v()("coinTitle"),
|
|
973
|
+
() => v()("wofSubtitle"),
|
|
974
|
+
() => v()("coinTitle"),
|
|
971
975
|
() => `translateX(${s.indexOf(n(l)) * 100}%)`
|
|
972
976
|
]
|
|
973
|
-
),
|
|
974
|
-
var
|
|
975
|
-
return
|
|
977
|
+
), oe("click", k, fe), _(O, S);
|
|
978
|
+
var Ye = Me(ge);
|
|
979
|
+
return pe(), Ye;
|
|
976
980
|
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
981
|
+
Fe(["click"]);
|
|
982
|
+
Ge(
|
|
983
|
+
nn,
|
|
980
984
|
{
|
|
981
985
|
program: {},
|
|
982
986
|
endpoint: {},
|
|
@@ -990,5 +994,5 @@ Fe(
|
|
|
990
994
|
{ mode: "open" }
|
|
991
995
|
);
|
|
992
996
|
export {
|
|
993
|
-
|
|
997
|
+
nn as C
|
|
994
998
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("./WheelOfFortuneWheel-
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-Dxh6wKCh.cjs"),e=require("./utils-DyVEmMSf.cjs"),fe=require("./WheelOfFortuneHistory-CqRO9Oee.cjs"),ge=require("./WheelOfFortuneRules-Cu5CBrl6.cjs"),be=require("./WheelOfFortuneDrawResults-Di5DQfhF.cjs"),me=require("./CoinFlip-CaRkaWEA.cjs"),ue=require("./ArrowLeftIcon-CK2Rm6IW.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;
|