@everymatrix/mini-games-hub 0.1.5 → 0.1.7
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-8XBwX5mB.js → GameCard-DTz2IEhm.js} +27 -29
- package/components/GameCard-Dfgtrwdb.cjs +3 -0
- package/components/{GameCard-SP2WkMe4.js → GameCard-sNqb2_mR.js} +27 -29
- package/components/{MiniGamesHub-DKkDXC81.cjs → MiniGamesHub-3XlqpfV_.cjs} +5 -5
- package/components/{MiniGamesHub-BEAlx3WE.js → MiniGamesHub-DTPiOtNT.js} +318 -286
- package/components/{MiniGamesHub-CrRIFbj_.js → MiniGamesHub-iX9t9vSW.js} +261 -249
- package/components/{WheelOfFortune-B7NMoATV.js → WheelOfFortune-BKUcclpm.js} +197 -164
- package/components/{WheelOfFortune-0yZoHYHH.js → WheelOfFortune-CbvJZO8-.js} +184 -151
- package/components/{WheelOfFortune-BxbFigrE.cjs → WheelOfFortune-DgAgnR_Q.cjs} +27 -6
- package/components/WheelOfFortuneDrawResults-AskDnOA6.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-C9BcE4Kr.js +262 -0
- package/components/WheelOfFortuneDrawResults-DnQPGIPX.js +237 -0
- package/components/WheelOfFortuneHistory-BA977Hfx.js +230 -0
- package/components/WheelOfFortuneHistory-CT-5jtfe.js +230 -0
- package/components/WheelOfFortuneHistory-uP606zLS.cjs +13 -0
- package/components/{WheelOfFortuneRules-BI3iP5jZ.js → WheelOfFortuneRules-C16Md0m_.js} +64 -64
- package/components/WheelOfFortuneRules-DQcA-d8i.js +128 -0
- package/components/WheelOfFortuneRules-zVRcNYIv.cjs +5 -0
- package/components/WheelOfFortuneWheel-6j7QTrsf.cjs +3 -0
- package/components/WheelOfFortuneWheel-BvI-fAML.js +1980 -0
- package/components/WheelOfFortuneWheel-CCmzx2yj.js +1910 -0
- package/components/{constants-syi43uVY.js → constants-CWz8CXw2.js} +1 -1
- package/components/{constants-B5BwgkMh.cjs → constants-DM6Vdc6Z.cjs} +1 -1
- package/components/{sparkles-DMNeGYKa.cjs → sparkles-BnriHiyw.cjs} +1 -1
- package/components/{sparkles-Br3hNIM6.js → sparkles-BzZDomk7.js} +1 -1
- package/components/{sparkles-CsUJD5iK.js → sparkles-C9wObsYC.js} +1 -1
- package/components/{spin-controller-BfbakdA_.js → spin-controller-BjXSz9Me.js} +53 -52
- package/components/{spin-controller-Y0nB76qX.js → spin-controller-CETKYiGM.js} +51 -50
- package/components/spin-controller-q2CuZMYj.cjs +1 -0
- package/components/utils-B53aGsNG.js +6095 -0
- package/components/utils-C0oX5v1l.js +6141 -0
- package/components/utils-Du65tqU5.cjs +3 -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 +3 -1
- package/components/GameCard-B2Vf_Okb.cjs +0 -3
- package/components/GameCard-B2dUYs8D.cjs +0 -3
- package/components/GameCard-Bx4TWFNT.js +0 -58
- package/components/GameCard-CKlgiS66.cjs +0 -3
- package/components/GameCard-DX4XDT2r.js +0 -58
- package/components/GameCard-DXX0iD0Z.js +0 -58
- package/components/GameCard-Dfi3jlxs.js +0 -58
- package/components/GameCard-FmSc9xvG.js +0 -58
- package/components/GameCard-lPup4pYJ.js +0 -58
- package/components/GameCard-txJxZVfs.cjs +0 -3
- package/components/MiniGamesHub-BBCzOhms.js +0 -1269
- package/components/MiniGamesHub-BaAiz62L.cjs +0 -94
- package/components/MiniGamesHub-BbJIrcsb.cjs +0 -28
- package/components/MiniGamesHub-C6Nsfrqn.js +0 -1369
- package/components/MiniGamesHub-CLinNS2-.js +0 -1288
- package/components/MiniGamesHub-DXmod0OW.cjs +0 -94
- package/components/MiniGamesHub-DZHG1XwH.js +0 -1357
- package/components/MiniGamesHub-Db8-msnK.js +0 -1338
- package/components/MiniGamesHub-DxW3lK75.js +0 -1369
- package/components/WheelOfFortune-B-sa8npV.cjs +0 -572
- package/components/WheelOfFortune-CdsgfPZg.js +0 -829
- package/components/WheelOfFortune-Cfe5KhF-.cjs +0 -588
- package/components/WheelOfFortune-Cm-9CaHf.cjs +0 -570
- package/components/WheelOfFortune-DDfYKRzu.js +0 -862
- package/components/WheelOfFortune-DpMvjI6_.js +0 -811
- package/components/WheelOfFortune-Dtoep2n2.js +0 -852
- package/components/WheelOfFortune-cD7JyRL5.js +0 -820
- package/components/WheelOfFortune-u__JAdi_.js +0 -820
- package/components/WheelOfFortuneDrawResults-3S77J9M5.js +0 -292
- package/components/WheelOfFortuneDrawResults-B2L6I4Po.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-B6RkAQ_i.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-BRgQ0mTi.js +0 -261
- package/components/WheelOfFortuneDrawResults-BZAetM0L.js +0 -238
- package/components/WheelOfFortuneDrawResults-C0J_0fRE.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-CKkYMVLn.js +0 -317
- package/components/WheelOfFortuneDrawResults-CvyqGbQG.js +0 -292
- package/components/WheelOfFortuneDrawResults-DIO74xIg.js +0 -317
- package/components/WheelOfFortuneDrawResults-D_QT2RDK.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-WD4ZaXdI.js +0 -261
- package/components/WheelOfFortuneDrawResults-XiJyW5cc.js +0 -238
- package/components/WheelOfFortuneHistory-3lEfr9Yn.cjs +0 -13
- package/components/WheelOfFortuneHistory-BE1mGyJn.js +0 -233
- package/components/WheelOfFortuneHistory-BagUH_Pn.js +0 -233
- package/components/WheelOfFortuneHistory-BpfmGEE1.js +0 -233
- package/components/WheelOfFortuneHistory-C_EX6Ecx.js +0 -233
- package/components/WheelOfFortuneHistory-CgWvWb5r.js +0 -233
- package/components/WheelOfFortuneHistory-CldOJOup.js +0 -233
- package/components/WheelOfFortuneHistory-D9EVcaH2.js +0 -233
- package/components/WheelOfFortuneHistory-DQ7yysUE.cjs +0 -13
- package/components/WheelOfFortuneHistory-DoYx_EbF.js +0 -233
- package/components/WheelOfFortuneHistory-mbWa96d6.cjs +0 -13
- package/components/WheelOfFortuneHistory-tcBNosXj.cjs +0 -13
- package/components/WheelOfFortuneRules-3Pnc2tv_.cjs +0 -5
- package/components/WheelOfFortuneRules-ByuqEg7o.js +0 -128
- package/components/WheelOfFortuneRules-CD5FcLZh.js +0 -117
- package/components/WheelOfFortuneRules-CS1AnNsi.cjs +0 -5
- package/components/WheelOfFortuneRules-DEln64Ys.js +0 -117
- package/components/WheelOfFortuneRules-DTZ61azL.js +0 -128
- package/components/WheelOfFortuneRules-DUjXad1Z.cjs +0 -5
- package/components/WheelOfFortuneRules-Dp6015wP.cjs +0 -5
- package/components/WheelOfFortuneRules-ICYWgDZn.js +0 -128
- package/components/WheelOfFortuneRules-Sa4GsYQ7.js +0 -117
- package/components/WheelOfFortuneRules-ssp6aAUp.js +0 -128
- package/components/WheelOfFortuneWheel-76dShj7s.cjs +0 -1
- package/components/WheelOfFortuneWheel-B-3ALU8u.js +0 -632
- package/components/WheelOfFortuneWheel-B0P_kjVI.js +0 -599
- package/components/WheelOfFortuneWheel-C2yIQKzY.js +0 -598
- package/components/WheelOfFortuneWheel-C6o9ZPV4.js +0 -598
- package/components/WheelOfFortuneWheel-JKN_P3ES.cjs +0 -1
- package/components/WheelOfFortuneWheel-LXdY_AV0.js +0 -633
- package/components/WheelOfFortuneWheel-R5JZFn6S.js +0 -643
- package/components/WheelOfFortuneWheel-j83OpEdj.cjs +0 -1
- package/components/WheelOfFortuneWheel-jv0TkAX_.js +0 -632
- package/components/WheelOfFortuneWheel-le2uV09t.js +0 -609
- package/components/WheelOfFortuneWheel-rP-wIp2j.cjs +0 -1
- package/components/bonus-BcSq5fV_.cjs +0 -1
- package/components/bonus-BroDvSJR.js +0 -4
- package/components/coin-DetgSMGn.js +0 -4
- package/components/coin-dEAbLQma.cjs +0 -1
- package/components/loyalty-Bf3uaVFP.js +0 -4
- package/components/loyalty-XDJlZgzx.cjs +0 -1
- package/components/noprize-BJ-U8c5U.cjs +0 -1
- package/components/noprize-DQHyTDC0.js +0 -4
- package/components/role-Bxkn_4_S.cjs +0 -1
- package/components/role-CNEtykLr.js +0 -4
- package/components/spin-controller-Do0l1eeX.cjs +0 -1
- package/components/ticket-DP0fQfPa.cjs +0 -1
- package/components/ticket-DcOVRE_N.js +0 -4
- package/components/tournament-8UbfkV5I.cjs +0 -1
- package/components/tournament-BtKf5Btm.js +0 -4
- package/components/utils-BCvapeyS.cjs +0 -5
- package/components/utils-CG5ADU6a.cjs +0 -5
- package/components/utils-COXr0j7Z.js +0 -6803
- package/components/utils-CbMHM9Bv.js +0 -6831
- package/components/utils-ClIENp93.js +0 -6906
- package/components/utils-Cun_uLlb.js +0 -6890
- package/components/utils-D6FQ3_dW.cjs +0 -5
- package/components/utils-De4h5fhB.js +0 -6918
- package/components/utils-DrFJq1GB.js +0 -6819
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import { W as
|
|
4
|
-
import { W as
|
|
5
|
-
import { W as
|
|
6
|
-
import { p as
|
|
7
|
-
var He =
|
|
8
|
-
const
|
|
1
|
+
import { d as ve, c as we, a as ke, t as We, p as l, o as Be, i as q, e as Ce, W as ze, k as b, s as _, r as Se, l as J, b as Y, f as I, m as _e, u as De } from "./WheelOfFortuneWheel-CCmzx2yj.js";
|
|
2
|
+
import { B as Ae, aN as Ge, aO as D, aB as Le, Q as Re, Y as n, at as h, ad as j, G as Pe, a_ as A, aV as p, aQ as Te, aR as Fe, aU as g, aF as c, aS as Me, aY as i } from "./utils-B53aGsNG.js";
|
|
3
|
+
import { W as Ye } from "./WheelOfFortuneHistory-CT-5jtfe.js";
|
|
4
|
+
import { W as je } from "./WheelOfFortuneDrawResults-DnQPGIPX.js";
|
|
5
|
+
import { W as Ie } from "./WheelOfFortuneRules-C16Md0m_.js";
|
|
6
|
+
import { p as Ee } from "./constants-CWz8CXw2.js";
|
|
7
|
+
var He = I('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), Oe = I("<button> </button>"), Ve = I('<div><!> <button><svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-17ly5gn"><path d="M6.41602 0.508789C6.52096 0.508793 6.59652 0.539241 6.66797 0.602539C6.7386 0.67644 6.76557 0.747068 6.76562 0.837891C6.76562 0.932337 6.7377 1.00571 6.66113 1.08203H6.66016L2.52344 5.21777L1.6543 6.08691H12.3633C12.475 6.08691 12.5456 6.11894 12.6084 6.18164C12.6712 6.24445 12.7034 6.31429 12.7031 6.4248C12.7029 6.53664 12.67 6.60779 12.6064 6.67188C12.5449 6.73387 12.4767 6.76611 12.3662 6.76562H1.6543L2.52344 7.63477L6.68066 11.791C6.75777 11.8681 6.77865 11.933 6.77637 12.0098C6.77383 12.0944 6.7457 12.1683 6.66797 12.249C6.58857 12.3195 6.50864 12.3512 6.40918 12.3545C6.33349 12.357 6.26929 12.3368 6.19238 12.2598L0.592773 6.66016C0.553631 6.62101 0.537222 6.59146 0.530273 6.57227C0.516661 6.53445 0.508264 6.48865 0.508789 6.43164C0.509411 6.36947 0.519283 6.31813 0.53418 6.27539C0.539753 6.25947 0.553255 6.23167 0.591797 6.19336L6.19238 0.592773C6.24602 0.539241 6.30834 0.508789 6.41602 0.508789Z" stroke="white" stroke-width="1.018" class="svelte-17ly5gn"></path></svg> <p class="svelte-17ly5gn"> </p></button> <div><h3 class="svelte-17ly5gn"> </h3> <p class="svelte-17ly5gn"> </p></div> <div></div> <div class="svelte-17ly5gn"><!></div> <!></div>');
|
|
8
|
+
const Xe = {
|
|
9
9
|
hash: "svelte-17ly5gn",
|
|
10
10
|
code: `@keyframes svelte-17ly5gn-wheelBob {
|
|
11
11
|
0%, 100% {
|
|
@@ -570,10 +570,31 @@ const Fe = {
|
|
|
570
570
|
.CenterButton {filter:none !important;} .segment-hit-fill,
|
|
571
571
|
.segment-hit-edge,
|
|
572
572
|
.segment-hit-spark-edge {animation-duration:1800ms !important;}
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
573
|
+
}
|
|
574
|
+
@keyframes svelte-17ly5gn-liteHitPulse {
|
|
575
|
+
0%, 100% {
|
|
576
|
+
opacity: 0.5;
|
|
577
|
+
}
|
|
578
|
+
50% {
|
|
579
|
+
opacity: 1;
|
|
580
|
+
}
|
|
581
|
+
} .WheelContainer.is-lite .WheelWrapper {
|
|
582
|
+
animation: svelte-17ly5gn-wheelBob 3200ms ease-in-out infinite !important;will-change:transform;filter:none;} .WheelContainer.is-lite .WheelWrapper::before, .WheelContainer.is-lite .WheelWrapper::after {
|
|
583
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .DropWrap {filter:drop-shadow(0 12px 14px rgba(0, 0, 0, 0.34));} .WheelContainer.is-lite .DropWrap::before {
|
|
584
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .SparkleLayer {display:none;} .WheelContainer.is-lite .ButtonGlow {
|
|
585
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .ButtonGlow::before, .WheelContainer.is-lite .ButtonGlow::after {
|
|
586
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .CenterButton {
|
|
587
|
+
animation: none !important;filter:drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) !important;} .WheelContainer.is-lite .CenterButton.is-pressing {
|
|
588
|
+
animation: svelte-17ly5gn-middleButtonPress 560ms cubic-bezier(0.16, 0.95, 0.22, 1) both !important;} .WheelContainer.is-lite .WheelWrapper.is-spin-active .CenterButton:not(.is-pressing) {
|
|
589
|
+
animation: none !important;} .WheelContainer.is-lite .segment-hit-fill {filter:none !important;
|
|
590
|
+
animation: svelte-17ly5gn-liteHitPulse 1200ms ease-in-out infinite !important;} .WheelContainer.is-lite .SessionBadge {backdrop-filter:none;-webkit-backdrop-filter:none;} .WheelContainer.is-lite .Outer {filter:none;} .WheelContainer.is-lite .sparkle,
|
|
591
|
+
.WheelContainer.is-lite .confetti {display:none;} .SpinButton.is-lite {
|
|
592
|
+
animation: svelte-17ly5gn-buttonBreath 2400ms ease-in-out infinite !important;} .WheelContent {background-color:var(--color-primary-6, #301200);display:flex;flex-direction:column;align-items:center;width:100%;max-width:720px;margin:0 auto;isolation:isolate;gap:clamp(6px, 2vw, 12px);padding-bottom:clamp(20px, 15vw, 50px);overflow:hidden;min-height:max-content;position:relative;transition:transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);} .WheelContent > *:not(.WheelContainer):not(.WheelVideoBackground),
|
|
593
|
+
.WheelContent .SpinsInfo {transition:opacity 0.4s ease, filter 0.4s ease;} .WheelContent.WheelBackgroundHalo {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%);} .WheelContent.is-spin-fullscreen .WheelContainer {scale:1.15;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .WheelContent.is-spin-fullscreen > *:not(.WheelContainer):not(.WheelVideoBackground),
|
|
594
|
+
.WheelContent.is-spin-fullscreen .SpinsInfo,
|
|
595
|
+
.WheelContent.is-spin-fullscreen .SpinButton {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;} .WheelVideoBackground {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
596
|
+
@media (min-width: 720px) { .WheelVideoBackground {-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);}
|
|
597
|
+
} .WheelVideoBackground.is-ready {opacity:0.2;} .BackButtonContainer {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;} .BackButtonContainer svg {background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));padding:5px;width:15px;height:15px;border-radius:50%;} .WofTitle {display:flex;flex-direction:column;justify-content:center;gap:6px;position:relative;z-index:2;} .WofTitle 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;} .WofTitle 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;} .WofTabs {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;} .WofTabs .Tab {padding:5px;width:100%;color:var(--color-text-default, #ffffff);border-radius:50px;background-color:transparent;border:none;cursor:pointer;} .WofTabs .Active {background-color:var(--color-tabs-selected, rgba(251, 251, 251, 0.2));} .Hidden {display:none !important;} .WheelContainer {width:var(--wof-size, clamp(276px, 100vw, 430px));position:relative;z-index:1;margin-block:clamp(-18px, -4vw, -32px);
|
|
577
598
|
animation: svelte-17ly5gn-wheelBob 5000ms ease-in-out infinite;will-change:transform;} .SpinsInfo {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;} .SpinsInfo .SpinsCount {display:flex;align-items:center;gap:6px;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(16px, 4.5vw, 20px);} .CountdownText {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;} .CountdownText .TimeSegment {font-variant-numeric:tabular-nums;} .SpinButton {min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-style:italic;font-weight:900;cursor:pointer;position:relative;z-index:2;
|
|
578
599
|
animation: svelte-17ly5gn-spinButtonZoomGlow 1800ms ease-in-out infinite;transform-origin:50% 50%;transition:opacity 260ms ease, transform 160ms ease, filter 160ms ease;} .SpinButton:active {transform:translateY(2px) scale(0.98);animation-play-state:paused;} .SpinButton:disabled {
|
|
579
600
|
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;} .DrawResultPanel {inset:0;z-index:20;display:grid;place-items:center;padding:70px 20px;text-align:center;overflow:hidden;width:100%;height:100%;min-height:50dvh;background:transparent;
|
|
@@ -596,124 +617,158 @@ const Fe = {
|
|
|
596
617
|
animation: none;}
|
|
597
618
|
}`
|
|
598
619
|
};
|
|
599
|
-
function
|
|
600
|
-
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
const
|
|
604
|
-
let
|
|
620
|
+
function Ze(E, a) {
|
|
621
|
+
Ae(a, !0), ke(E, Xe);
|
|
622
|
+
const w = () => Te(Fe, "$_", $), [$, ee] = Me();
|
|
623
|
+
Ge.extend(We);
|
|
624
|
+
const ne = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", r = l(a, "program", 7, null), m = l(a, "endpoint", 7, null), x = l(a, "session", 7, null), G = l(a, "outerWheelAsset", 7, null), L = l(a, "wheelButtonAsset", 7, null), R = l(a, "backgroundVideoAsset", 7, null), P = l(a, "language", 7, "en"), T = l(a, "showBackButton", 7, !0), y = l(a, "liteMode", 7, !1), u = A(() => !m() || !r()), te = A(() => !n(u) && (r()?.remainingTimes ?? 0) > 0), re = A(() => n(u) ? Ee : r()?.partitions ?? []), s = ["history", "play", "rules"];
|
|
625
|
+
let f = D(Le(s[1]));
|
|
605
626
|
const ae = (e) => {
|
|
606
627
|
e === s[0] ? window.postMessage(
|
|
607
628
|
{
|
|
608
629
|
type: "event_wof_history_click",
|
|
609
|
-
name:
|
|
630
|
+
name: r()?.name || null
|
|
610
631
|
},
|
|
611
632
|
window.location.href
|
|
612
|
-
) : e === s[2] ? window.postMessage({ type: "event_wof_rules_click", name:
|
|
633
|
+
) : e === s[2] ? window.postMessage({ type: "event_wof_rules_click", name: r()?.name || null }, window.location.href) : window.postMessage(
|
|
613
634
|
{
|
|
614
635
|
type: "event_wof_accessed",
|
|
615
|
-
isUserLoggedIn: !n(
|
|
616
|
-
name:
|
|
617
|
-
availableSpins:
|
|
636
|
+
isUserLoggedIn: !n(u),
|
|
637
|
+
name: r()?.name || null,
|
|
638
|
+
availableSpins: r()?.remainingTimes || null
|
|
618
639
|
},
|
|
619
640
|
window.location.href
|
|
620
|
-
),
|
|
641
|
+
), h(F, !1), h(f, e, !0);
|
|
621
642
|
};
|
|
622
|
-
let
|
|
623
|
-
|
|
643
|
+
let d = D(null), k = D(!1), F = D(!1);
|
|
644
|
+
Re(() => {
|
|
645
|
+
if (n(k)) {
|
|
646
|
+
document.body.style.overflow = "hidden";
|
|
647
|
+
const e = (t) => t.preventDefault();
|
|
648
|
+
return document.addEventListener("touchmove", e, { passive: !1 }), () => {
|
|
649
|
+
document.body.style.overflow = "", document.removeEventListener("touchmove", e);
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
const oe = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), ie = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), H = (e) => {
|
|
624
654
|
if (e.data)
|
|
625
655
|
switch (e.data.type) {
|
|
626
656
|
case "SpinAgain":
|
|
627
657
|
case "BackToWheel":
|
|
628
|
-
|
|
658
|
+
h(d, null);
|
|
629
659
|
break;
|
|
630
660
|
}
|
|
631
661
|
};
|
|
632
|
-
|
|
633
|
-
window.removeEventListener("message",
|
|
662
|
+
Be(() => (window.addEventListener("message", H), () => {
|
|
663
|
+
window.removeEventListener("message", H);
|
|
634
664
|
}));
|
|
635
|
-
var
|
|
665
|
+
var se = {
|
|
636
666
|
get program() {
|
|
637
|
-
return
|
|
667
|
+
return r();
|
|
638
668
|
},
|
|
639
669
|
set program(e = null) {
|
|
640
|
-
|
|
670
|
+
r(e), c();
|
|
641
671
|
},
|
|
642
672
|
get endpoint() {
|
|
643
|
-
return
|
|
673
|
+
return m();
|
|
644
674
|
},
|
|
645
675
|
set endpoint(e = null) {
|
|
646
|
-
|
|
676
|
+
m(e), c();
|
|
647
677
|
},
|
|
648
678
|
get session() {
|
|
649
|
-
return
|
|
679
|
+
return x();
|
|
650
680
|
},
|
|
651
681
|
set session(e = null) {
|
|
652
|
-
|
|
682
|
+
x(e), c();
|
|
653
683
|
},
|
|
654
684
|
get outerWheelAsset() {
|
|
655
685
|
return G();
|
|
656
686
|
},
|
|
657
687
|
set outerWheelAsset(e = null) {
|
|
658
|
-
G(e),
|
|
688
|
+
G(e), c();
|
|
659
689
|
},
|
|
660
690
|
get wheelButtonAsset() {
|
|
661
691
|
return L();
|
|
662
692
|
},
|
|
663
693
|
set wheelButtonAsset(e = null) {
|
|
664
|
-
L(e),
|
|
694
|
+
L(e), c();
|
|
665
695
|
},
|
|
666
|
-
get
|
|
696
|
+
get backgroundVideoAsset() {
|
|
667
697
|
return R();
|
|
668
698
|
},
|
|
699
|
+
set backgroundVideoAsset(e = null) {
|
|
700
|
+
R(e), c();
|
|
701
|
+
},
|
|
702
|
+
get language() {
|
|
703
|
+
return P();
|
|
704
|
+
},
|
|
669
705
|
set language(e = "en") {
|
|
670
|
-
|
|
706
|
+
P(e), c();
|
|
671
707
|
},
|
|
672
708
|
get showBackButton() {
|
|
673
709
|
return T();
|
|
674
710
|
},
|
|
675
711
|
set showBackButton(e = !0) {
|
|
676
|
-
T(e),
|
|
712
|
+
T(e), c();
|
|
713
|
+
},
|
|
714
|
+
get liteMode() {
|
|
715
|
+
return y();
|
|
716
|
+
},
|
|
717
|
+
set liteMode(e = !1) {
|
|
718
|
+
y(e), c();
|
|
677
719
|
}
|
|
678
|
-
},
|
|
720
|
+
}, W = Ve();
|
|
721
|
+
let O;
|
|
722
|
+
var V = p(W);
|
|
723
|
+
{
|
|
724
|
+
var le = (e) => {
|
|
725
|
+
var t = He();
|
|
726
|
+
let o;
|
|
727
|
+
t.muted = !0;
|
|
728
|
+
var S = p(t);
|
|
729
|
+
i(t), j(() => {
|
|
730
|
+
o = b(t, 1, "WheelVideoBackground svelte-17ly5gn", null, o, { "is-ready": n(F) }), _e(S, "src", R() || ne);
|
|
731
|
+
}), De("canplay", t, () => h(F, !0)), Y(e, t);
|
|
732
|
+
};
|
|
733
|
+
q(V, (e) => {
|
|
734
|
+
!y() && n(f) === s[1] && e(le);
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
var v = g(V, 2);
|
|
679
738
|
let X;
|
|
680
|
-
var
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
var O = b(c(x), 2), le = c(O, !0);
|
|
684
|
-
a(O), a(x);
|
|
685
|
-
var k = b(x, 2);
|
|
739
|
+
var Z = g(p(v), 2), pe = p(Z, !0);
|
|
740
|
+
i(Z), i(v);
|
|
741
|
+
var B = g(v, 2);
|
|
686
742
|
let U;
|
|
687
|
-
var
|
|
688
|
-
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
var
|
|
692
|
-
let
|
|
693
|
-
|
|
694
|
-
var
|
|
695
|
-
let
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
z = y(r, 1, "Tab svelte-17ly5gn", null, z, { Active: n(u) === l }), _(H, p);
|
|
743
|
+
var M = p(B), ce = p(M, !0);
|
|
744
|
+
i(M);
|
|
745
|
+
var K = g(M, 2), de = p(K, !0);
|
|
746
|
+
i(K), i(B);
|
|
747
|
+
var C = g(B, 2);
|
|
748
|
+
let N;
|
|
749
|
+
Ce(C, 20, () => s, (e) => e, (e, t) => {
|
|
750
|
+
var o = Oe();
|
|
751
|
+
let S;
|
|
752
|
+
var xe = p(o, !0);
|
|
753
|
+
i(o), j(
|
|
754
|
+
(ye) => {
|
|
755
|
+
S = b(o, 1, "Tab svelte-17ly5gn", null, S, { Active: n(f) === t }), _(xe, ye);
|
|
701
756
|
},
|
|
702
|
-
[() =>
|
|
703
|
-
),
|
|
704
|
-
}),
|
|
705
|
-
var
|
|
706
|
-
let
|
|
707
|
-
var
|
|
708
|
-
|
|
757
|
+
[() => w()(t)]
|
|
758
|
+
), J("click", o, () => ae(t)), Y(e, o);
|
|
759
|
+
}), i(C);
|
|
760
|
+
var z = g(C, 2);
|
|
761
|
+
let Q;
|
|
762
|
+
var fe = p(z);
|
|
763
|
+
ze(fe, {
|
|
709
764
|
get program() {
|
|
710
|
-
return
|
|
765
|
+
return r();
|
|
711
766
|
},
|
|
712
767
|
get endpoint() {
|
|
713
|
-
return
|
|
768
|
+
return m();
|
|
714
769
|
},
|
|
715
770
|
get session() {
|
|
716
|
-
return
|
|
771
|
+
return x();
|
|
717
772
|
},
|
|
718
773
|
get outerWheelAsset() {
|
|
719
774
|
return G();
|
|
@@ -725,128 +780,106 @@ function Ie(M, o) {
|
|
|
725
780
|
return n(re);
|
|
726
781
|
},
|
|
727
782
|
get isPlaceholder() {
|
|
728
|
-
return n(
|
|
783
|
+
return n(u);
|
|
729
784
|
},
|
|
730
785
|
get isWheelAvailable() {
|
|
731
786
|
return n(te);
|
|
732
787
|
},
|
|
788
|
+
get liteMode() {
|
|
789
|
+
return y();
|
|
790
|
+
},
|
|
733
791
|
onLogin: oe,
|
|
734
792
|
get spinResults() {
|
|
735
|
-
return n(
|
|
793
|
+
return n(d);
|
|
736
794
|
},
|
|
737
795
|
set spinResults(e) {
|
|
738
|
-
|
|
796
|
+
h(d, e, !0);
|
|
739
797
|
},
|
|
740
798
|
get spinActive() {
|
|
741
|
-
return n(
|
|
799
|
+
return n(k);
|
|
742
800
|
},
|
|
743
801
|
set spinActive(e) {
|
|
744
|
-
|
|
802
|
+
h(k, e, !0);
|
|
745
803
|
}
|
|
746
|
-
}),
|
|
747
|
-
var ge =
|
|
804
|
+
}), i(z);
|
|
805
|
+
var ge = g(z, 2);
|
|
748
806
|
{
|
|
749
|
-
var
|
|
750
|
-
|
|
807
|
+
var me = (e) => {
|
|
808
|
+
je(e, {
|
|
751
809
|
get result() {
|
|
752
|
-
return n(
|
|
810
|
+
return n(d);
|
|
753
811
|
},
|
|
754
812
|
get endpoint() {
|
|
755
|
-
return
|
|
813
|
+
return m();
|
|
756
814
|
},
|
|
757
815
|
get session() {
|
|
758
|
-
return
|
|
816
|
+
return x();
|
|
759
817
|
}
|
|
760
818
|
});
|
|
761
|
-
},
|
|
762
|
-
var l = N(), r = Q(l);
|
|
819
|
+
}, ue = (e) => {
|
|
763
820
|
{
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
get programId() {
|
|
769
|
-
return n(C);
|
|
770
|
-
},
|
|
771
|
-
get endpoint() {
|
|
772
|
-
return f();
|
|
773
|
-
},
|
|
774
|
-
get session() {
|
|
775
|
-
return h();
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
}, H = (p) => {
|
|
780
|
-
var C = N(), be = Q(C);
|
|
781
|
-
{
|
|
782
|
-
var he = (Y) => {
|
|
783
|
-
Pe(Y, {
|
|
784
|
-
get program() {
|
|
785
|
-
return t();
|
|
786
|
-
},
|
|
787
|
-
get language() {
|
|
788
|
-
return R();
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
};
|
|
792
|
-
I(
|
|
793
|
-
be,
|
|
794
|
-
(Y) => {
|
|
795
|
-
n(u) === s[2] && Y(he);
|
|
796
|
-
},
|
|
797
|
-
!0
|
|
798
|
-
);
|
|
799
|
-
}
|
|
800
|
-
D(p, C);
|
|
801
|
-
};
|
|
802
|
-
I(
|
|
803
|
-
r,
|
|
804
|
-
(p) => {
|
|
805
|
-
n(u) === s[0] ? p(z) : p(H, !1);
|
|
821
|
+
let t = A(() => r()?.id);
|
|
822
|
+
Ye(e, {
|
|
823
|
+
get programId() {
|
|
824
|
+
return n(t);
|
|
806
825
|
},
|
|
807
|
-
|
|
808
|
-
|
|
826
|
+
get endpoint() {
|
|
827
|
+
return m();
|
|
828
|
+
},
|
|
829
|
+
get session() {
|
|
830
|
+
return x();
|
|
831
|
+
}
|
|
832
|
+
});
|
|
809
833
|
}
|
|
810
|
-
|
|
834
|
+
}, be = (e) => {
|
|
835
|
+
Ie(e, {
|
|
836
|
+
get program() {
|
|
837
|
+
return r();
|
|
838
|
+
},
|
|
839
|
+
get language() {
|
|
840
|
+
return P();
|
|
841
|
+
}
|
|
842
|
+
});
|
|
811
843
|
};
|
|
812
|
-
|
|
813
|
-
n(
|
|
844
|
+
q(ge, (e) => {
|
|
845
|
+
n(d) ? e(me) : n(f) === s[0] ? e(ue, 1) : n(f) === s[2] && e(be, 2);
|
|
814
846
|
});
|
|
815
847
|
}
|
|
816
|
-
|
|
817
|
-
(e,
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
}),
|
|
822
|
-
display: n(
|
|
848
|
+
i(W), j(
|
|
849
|
+
(e, t, o) => {
|
|
850
|
+
O = b(W, 1, "WheelContent svelte-17ly5gn", null, O, {
|
|
851
|
+
"is-spin-fullscreen": n(k),
|
|
852
|
+
WheelBackgroundHalo: y() && n(f) === s[1]
|
|
853
|
+
}), X = b(v, 1, "BackButtonContainer svelte-17ly5gn", null, X, { Hidden: n(u) || !T() }), _(pe, e), U = b(B, 1, "WofTitle svelte-17ly5gn", null, U, { Hidden: n(d) }), _(ce, t), _(de, o), N = b(C, 1, "WofTabs svelte-17ly5gn", null, N, { Hidden: n(u) || n(d) }), Q = Se(z, "", Q, {
|
|
854
|
+
display: n(f) !== s[1] || n(d) ? "none" : "contents"
|
|
823
855
|
});
|
|
824
856
|
},
|
|
825
857
|
[
|
|
826
|
-
() =>
|
|
827
|
-
() =>
|
|
828
|
-
() =>
|
|
858
|
+
() => w()("backToHub"),
|
|
859
|
+
() => w()("wofTitle"),
|
|
860
|
+
() => w()("wofSubtitle")
|
|
829
861
|
]
|
|
830
|
-
),
|
|
831
|
-
var
|
|
832
|
-
return
|
|
862
|
+
), J("click", v, ie), Y(E, W);
|
|
863
|
+
var he = Pe(se);
|
|
864
|
+
return ee(), he;
|
|
833
865
|
}
|
|
834
866
|
ve(["click"]);
|
|
835
867
|
customElements.define("wheel-of-fortune", we(
|
|
836
|
-
|
|
868
|
+
Ze,
|
|
837
869
|
{
|
|
838
870
|
program: {},
|
|
839
871
|
endpoint: {},
|
|
840
872
|
session: {},
|
|
841
873
|
outerWheelAsset: {},
|
|
842
874
|
wheelButtonAsset: {},
|
|
875
|
+
backgroundVideoAsset: {},
|
|
843
876
|
language: {},
|
|
844
|
-
showBackButton: {}
|
|
877
|
+
showBackButton: {},
|
|
878
|
+
liteMode: {}
|
|
845
879
|
},
|
|
846
880
|
[],
|
|
847
|
-
[]
|
|
848
|
-
!1
|
|
881
|
+
[]
|
|
849
882
|
));
|
|
850
883
|
export {
|
|
851
|
-
|
|
884
|
+
Ze as W
|
|
852
885
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-6j7QTrsf.cjs"),e=require("./utils-Du65tqU5.cjs"),se=require("./WheelOfFortuneHistory-uP606zLS.cjs"),le=require("./WheelOfFortuneDrawResults-AskDnOA6.cjs"),pe=require("./WheelOfFortuneRules-zVRcNYIv.cjs"),ce=require("./constants-DM6Vdc6Z.cjs");var de=t.from_html('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>',2),ge=t.from_html("<button> </button>"),fe=t.from_html('<div><!> <button><svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-17ly5gn"><path d="M6.41602 0.508789C6.52096 0.508793 6.59652 0.539241 6.66797 0.602539C6.7386 0.67644 6.76557 0.747068 6.76562 0.837891C6.76562 0.932337 6.7377 1.00571 6.66113 1.08203H6.66016L2.52344 5.21777L1.6543 6.08691H12.3633C12.475 6.08691 12.5456 6.11894 12.6084 6.18164C12.6712 6.24445 12.7034 6.31429 12.7031 6.4248C12.7029 6.53664 12.67 6.60779 12.6064 6.67188C12.5449 6.73387 12.4767 6.76611 12.3662 6.76562H1.6543L2.52344 7.63477L6.68066 11.791C6.75777 11.8681 6.77865 11.933 6.77637 12.0098C6.77383 12.0944 6.7457 12.1683 6.66797 12.249C6.58857 12.3195 6.50864 12.3512 6.40918 12.3545C6.33349 12.357 6.26929 12.3368 6.19238 12.2598L0.592773 6.66016C0.553631 6.62101 0.537222 6.59146 0.530273 6.57227C0.516661 6.53445 0.508264 6.48865 0.508789 6.43164C0.509411 6.36947 0.519283 6.31813 0.53418 6.27539C0.539753 6.25947 0.553255 6.23167 0.591797 6.19336L6.19238 0.592773C6.24602 0.539241 6.30834 0.508789 6.41602 0.508789Z" stroke="white" stroke-width="1.018" class="svelte-17ly5gn"></path></svg> <p class="svelte-17ly5gn"> </p></button> <div><h3 class="svelte-17ly5gn"> </h3> <p class="svelte-17ly5gn"> </p></div> <div></div> <div class="svelte-17ly5gn"><!></div> <!></div>');const me={hash:"svelte-17ly5gn",code:`@keyframes svelte-17ly5gn-wheelBob {
|
|
2
2
|
0%, 100% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -561,10 +561,31 @@
|
|
|
561
561
|
.CenterButton {filter:none !important;} .segment-hit-fill,
|
|
562
562
|
.segment-hit-edge,
|
|
563
563
|
.segment-hit-spark-edge {animation-duration:1800ms !important;}
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
564
|
+
}
|
|
565
|
+
@keyframes svelte-17ly5gn-liteHitPulse {
|
|
566
|
+
0%, 100% {
|
|
567
|
+
opacity: 0.5;
|
|
568
|
+
}
|
|
569
|
+
50% {
|
|
570
|
+
opacity: 1;
|
|
571
|
+
}
|
|
572
|
+
} .WheelContainer.is-lite .WheelWrapper {
|
|
573
|
+
animation: svelte-17ly5gn-wheelBob 3200ms ease-in-out infinite !important;will-change:transform;filter:none;} .WheelContainer.is-lite .WheelWrapper::before, .WheelContainer.is-lite .WheelWrapper::after {
|
|
574
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .DropWrap {filter:drop-shadow(0 12px 14px rgba(0, 0, 0, 0.34));} .WheelContainer.is-lite .DropWrap::before {
|
|
575
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .SparkleLayer {display:none;} .WheelContainer.is-lite .ButtonGlow {
|
|
576
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .ButtonGlow::before, .WheelContainer.is-lite .ButtonGlow::after {
|
|
577
|
+
animation: none !important;filter:none !important;opacity:0 !important;} .WheelContainer.is-lite .CenterButton {
|
|
578
|
+
animation: none !important;filter:drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) !important;} .WheelContainer.is-lite .CenterButton.is-pressing {
|
|
579
|
+
animation: svelte-17ly5gn-middleButtonPress 560ms cubic-bezier(0.16, 0.95, 0.22, 1) both !important;} .WheelContainer.is-lite .WheelWrapper.is-spin-active .CenterButton:not(.is-pressing) {
|
|
580
|
+
animation: none !important;} .WheelContainer.is-lite .segment-hit-fill {filter:none !important;
|
|
581
|
+
animation: svelte-17ly5gn-liteHitPulse 1200ms ease-in-out infinite !important;} .WheelContainer.is-lite .SessionBadge {backdrop-filter:none;-webkit-backdrop-filter:none;} .WheelContainer.is-lite .Outer {filter:none;} .WheelContainer.is-lite .sparkle,
|
|
582
|
+
.WheelContainer.is-lite .confetti {display:none;} .SpinButton.is-lite {
|
|
583
|
+
animation: svelte-17ly5gn-buttonBreath 2400ms ease-in-out infinite !important;} .WheelContent {background-color:var(--color-primary-6, #301200);display:flex;flex-direction:column;align-items:center;width:100%;max-width:720px;margin:0 auto;isolation:isolate;gap:clamp(6px, 2vw, 12px);padding-bottom:clamp(20px, 15vw, 50px);overflow:hidden;min-height:max-content;position:relative;transition:transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);} .WheelContent > *:not(.WheelContainer):not(.WheelVideoBackground),
|
|
584
|
+
.WheelContent .SpinsInfo {transition:opacity 0.4s ease, filter 0.4s ease;} .WheelContent.WheelBackgroundHalo {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%);} .WheelContent.is-spin-fullscreen .WheelContainer {scale:1.15;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .WheelContent.is-spin-fullscreen > *:not(.WheelContainer):not(.WheelVideoBackground),
|
|
585
|
+
.WheelContent.is-spin-fullscreen .SpinsInfo,
|
|
586
|
+
.WheelContent.is-spin-fullscreen .SpinButton {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;} .WheelVideoBackground {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
587
|
+
@media (min-width: 720px) { .WheelVideoBackground {-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);}
|
|
588
|
+
} .WheelVideoBackground.is-ready {opacity:0.2;} .BackButtonContainer {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;} .BackButtonContainer svg {background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));padding:5px;width:15px;height:15px;border-radius:50%;} .WofTitle {display:flex;flex-direction:column;justify-content:center;gap:6px;position:relative;z-index:2;} .WofTitle 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;} .WofTitle 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;} .WofTabs {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;} .WofTabs .Tab {padding:5px;width:100%;color:var(--color-text-default, #ffffff);border-radius:50px;background-color:transparent;border:none;cursor:pointer;} .WofTabs .Active {background-color:var(--color-tabs-selected, rgba(251, 251, 251, 0.2));} .Hidden {display:none !important;} .WheelContainer {width:var(--wof-size, clamp(276px, 100vw, 430px));position:relative;z-index:1;margin-block:clamp(-18px, -4vw, -32px);
|
|
568
589
|
animation: svelte-17ly5gn-wheelBob 5000ms ease-in-out infinite;will-change:transform;} .SpinsInfo {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;} .SpinsInfo .SpinsCount {display:flex;align-items:center;gap:6px;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(16px, 4.5vw, 20px);} .CountdownText {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;} .CountdownText .TimeSegment {font-variant-numeric:tabular-nums;} .SpinButton {min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-style:italic;font-weight:900;cursor:pointer;position:relative;z-index:2;
|
|
569
590
|
animation: svelte-17ly5gn-spinButtonZoomGlow 1800ms ease-in-out infinite;transform-origin:50% 50%;transition:opacity 260ms ease, transform 160ms ease, filter 160ms ease;} .SpinButton:active {transform:translateY(2px) scale(0.98);animation-play-state:paused;} .SpinButton:disabled {
|
|
570
591
|
animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;} .DrawResultPanel {inset:0;z-index:20;display:grid;place-items:center;padding:70px 20px;text-align:center;overflow:hidden;width:100%;height:100%;min-height:50dvh;background:transparent;
|
|
@@ -585,4 +606,4 @@
|
|
|
585
606
|
.Coin img {
|
|
586
607
|
animation: none;} .success-confetti-piece {
|
|
587
608
|
animation: none;}
|
|
588
|
-
}`};function I(
|
|
609
|
+
}`};function I(A,i){e.push(i,!0),t.append_styles(A,me);const h=()=>e.store_get(e.$format,"$_",O),[O,H]=e.setup_stores();e.dayjs.extend(t.duration);const E="https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",o=t.prop(i,"program",7,null),d=t.prop(i,"endpoint",7,null),f=t.prop(i,"session",7,null),W=t.prop(i,"outerWheelAsset",7,null),B=t.prop(i,"wheelButtonAsset",7,null),C=t.prop(i,"backgroundVideoAsset",7,null),z=t.prop(i,"language",7,"en"),S=t.prop(i,"showBackButton",7,!0),m=t.prop(i,"liteMode",7,!1),g=e.user_derived(()=>!d()||!o()),V=e.user_derived(()=>{var n,r;return!e.get(g)&&((r=(n=o())==null?void 0:n.remainingTimes)!=null?r:0)>0}),X=e.user_derived(()=>{var n,r;return e.get(g)?ce.placeholderWheelSlices:(r=(n=o())==null?void 0:n.partitions)!=null?r:[]}),s=["history","play","rules"];let p=e.state(e.proxy(s[1]));const Z=n=>{var r,a,c,k;n===s[0]?window.postMessage({type:"event_wof_history_click",name:((r=o())==null?void 0:r.name)||null},window.location.href):n===s[2]?window.postMessage({type:"event_wof_rules_click",name:((a=o())==null?void 0:a.name)||null},window.location.href):window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(g),name:((c=o())==null?void 0:c.name)||null,availableSpins:((k=o())==null?void 0:k.remainingTimes)||null},window.location.href),e.set(_,!1),e.set(p,n,!0)};let l=e.state(null),b=e.state(!1),_=e.state(!1);e.user_effect(()=>{if(e.get(b)){document.body.style.overflow="hidden";const n=r=>r.preventDefault();return document.addEventListener("touchmove",n,{passive:!1}),()=>{document.body.style.overflow="",document.removeEventListener("touchmove",n)}}});const q=()=>window.postMessage({type:"LuckyWheel:GoToLogin"},window.location.href),K=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),G=n=>{if(n.data)switch(n.data.type){case"SpinAgain":case"BackToWheel":e.set(l,null);break}};t.onMount(()=>(window.addEventListener("message",G),()=>{window.removeEventListener("message",G)}));var U={get program(){return o()},set program(n=null){o(n),e.flushSync()},get endpoint(){return d()},set endpoint(n=null){d(n),e.flushSync()},get session(){return f()},set session(n=null){f(n),e.flushSync()},get outerWheelAsset(){return W()},set outerWheelAsset(n=null){W(n),e.flushSync()},get wheelButtonAsset(){return B()},set wheelButtonAsset(n=null){B(n),e.flushSync()},get backgroundVideoAsset(){return C()},set backgroundVideoAsset(n=null){C(n),e.flushSync()},get language(){return z()},set language(n="en"){z(n),e.flushSync()},get showBackButton(){return S()},set showBackButton(n=!0){S(n),e.flushSync()},get liteMode(){return m()},set liteMode(n=!1){m(n),e.flushSync()}},x=fe();let R;var L=e.child(x);{var N=n=>{var r=de();let a;r.muted=!0;var c=e.child(r);e.reset(r),e.template_effect(()=>{a=t.set_class(r,1,"WheelVideoBackground svelte-17ly5gn",null,a,{"is-ready":e.get(_)}),t.set_attribute(c,"src",C()||E)}),t.event("canplay",r,()=>e.set(_,!0)),t.append(n,r)};t.if_block(L,n=>{!m()&&e.get(p)===s[1]&&n(N)})}var u=e.sibling(L,2);let P;var T=e.sibling(e.child(u),2),J=e.child(T,!0);e.reset(T),e.reset(u);var y=e.sibling(u,2);let F;var D=e.child(y),Q=e.child(D,!0);e.reset(D);var M=e.sibling(D,2),$=e.child(M,!0);e.reset(M),e.reset(y);var v=e.sibling(y,2);let j;t.each(v,20,()=>s,n=>n,(n,r)=>{var a=ge();let c;var k=e.child(a,!0);e.reset(a),e.template_effect(ie=>{c=t.set_class(a,1,"Tab svelte-17ly5gn",null,c,{Active:e.get(p)===r}),t.set_text(k,ie)},[()=>h()(r)]),t.delegated("click",a,()=>Z(r)),t.append(n,a)}),e.reset(v);var w=e.sibling(v,2);let Y;var ee=e.child(w);t.WheelOfFortuneWheel(ee,{get program(){return o()},get endpoint(){return d()},get session(){return f()},get outerWheelAsset(){return W()},get wheelButtonAsset(){return B()},get wheelSlices(){return e.get(X)},get isPlaceholder(){return e.get(g)},get isWheelAvailable(){return e.get(V)},get liteMode(){return m()},onLogin:q,get spinResults(){return e.get(l)},set spinResults(n){e.set(l,n,!0)},get spinActive(){return e.get(b)},set spinActive(n){e.set(b,n,!0)}}),e.reset(w);var ne=e.sibling(w,2);{var te=n=>{le.WheelOfFortuneDrawResults(n,{get result(){return e.get(l)},get endpoint(){return d()},get session(){return f()}})},re=n=>{{let r=e.user_derived(()=>{var a;return(a=o())==null?void 0:a.id});se.WheelOfFortuneHistory(n,{get programId(){return e.get(r)},get endpoint(){return d()},get session(){return f()}})}},ae=n=>{pe.WheelOfFortuneRules(n,{get program(){return o()},get language(){return z()}})};t.if_block(ne,n=>{e.get(l)?n(te):e.get(p)===s[0]?n(re,1):e.get(p)===s[2]&&n(ae,2)})}e.reset(x),e.template_effect((n,r,a)=>{R=t.set_class(x,1,"WheelContent svelte-17ly5gn",null,R,{"is-spin-fullscreen":e.get(b),WheelBackgroundHalo:m()&&e.get(p)===s[1]}),P=t.set_class(u,1,"BackButtonContainer svelte-17ly5gn",null,P,{Hidden:e.get(g)||!S()}),t.set_text(J,n),F=t.set_class(y,1,"WofTitle svelte-17ly5gn",null,F,{Hidden:e.get(l)}),t.set_text(Q,r),t.set_text($,a),j=t.set_class(v,1,"WofTabs svelte-17ly5gn",null,j,{Hidden:e.get(g)||e.get(l)}),Y=t.set_style(w,"",Y,{display:e.get(p)!==s[1]||e.get(l)?"none":"contents"})},[()=>h()("backToHub"),()=>h()("wofTitle"),()=>h()("wofSubtitle")]),t.delegated("click",u,K),t.append(A,x);var oe=e.pop(U);return H(),oe}t.delegate(["click"]);customElements.define("wheel-of-fortune",t.create_custom_element(I,{program:{},endpoint:{},session:{},outerWheelAsset:{},wheelButtonAsset:{},backgroundVideoAsset:{},language:{},showBackButton:{},liteMode:{}},[],[]));exports.WheelOfFortune=I;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var L=(M,S,a)=>new Promise((W,A)=>{var x=f=>{try{k(a.next(f))}catch(C){A(C)}},z=f=>{try{k(a.throw(f))}catch(C){A(C)}},k=f=>f.done?W(f.value):Promise.resolve(f.value).then(x,z);k((a=a.apply(M,S)).next())});const t=require("./WheelOfFortuneWheel-6j7QTrsf.cjs"),e=require("./utils-Du65tqU5.cjs"),ce=require("./error-YyYl7p6_.cjs"),oe=require("./sparkles-BnriHiyw.cjs");var O=t.from_html('<span class="ButtonSpinner"></span>'),de=t.from_html('<div class="ConfirmModalContent"><p class="ConfirmModalTitle"> </p> <p class="ConfirmModalBody"></p> <div class="ConfirmModalActions"><button class="PrimaryCta"><span> </span> <!></button> <button class="SecondaryCta"><span> </span> <!></button></div></div>'),q=t.from_html('<h2 class="DrawResultTitle"> </h2> <p class="DrawResultDescription"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>',1),pe=t.from_html('<span class="DrawResultSparkle" aria-hidden="true">✦</span>'),_e=t.from_html('<h2 class="DrawResultTitle"> <!></h2> <p class="DrawResultDescription"></p> <div class="DrawResultActions"><button class="PrimaryCta"><span> </span> <!></button> <button class="SecondaryCta"> </button></div>',1),ve=t.from_html('<img alt="Error" class="DrawResultErrorImage"/> <p class="DrawResultDescription DrawResultDescription--error"> </p> <div class="DrawResultActions"><button class="SecondaryCta"> </button></div>',1),ue=t.from_html('<div class="DrawResultPanel"><div class="DrawResultConfettiLayer"></div> <!> <div class="DrawResultStack"><!></div></div>');function K(M,S){e.push(S,!0);const a=()=>e.store_get(e.$format,"$_",W),[W,A]=e.setup_stores(),x=t.prop(S,"result",7),z=t.prop(S,"endpoint",7),k=t.prop(S,"session",7),f=e.user_derived(()=>{var s;return((s=x())==null?void 0:s.success)!==!0}),C=e.user_derived(()=>{var s;return(s=x())==null?void 0:s.type}),X=e.user_derived(()=>e.get(C)==="noprize"),Y={bonus:a()("prizeBonus"),role:a()("prizeRole"),tournament:a()("prizeTournament"),ticket:a()("prizeTicket"),loyalty:a()("prizeLoyalty"),challenge:a()("prizeChallenge")},Q=[{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 j=e.state(void 0),g=e.state("initial"),d=e.state(null);e.user_effect(()=>{e.get(j)&&e.get(g)==="claimSuccess"&&oe.burstSuccessConfetti(e.get(j))});const G=s=>{const r=new URL(`${z()}/v1/wof/draw/${x().lotteryProgramID}`),i=new Headers;k()&&i.append("X-SessionId",k()),i.append("Content-Type","application/json");const o={action:s,guid:x().guid};return fetch(r,{method:"PUT",headers:i,body:JSON.stringify(o)}).then(n=>n.json())},I=()=>L(this,null,function*(){e.set(d,"claim");try{const s=yield G(0),r=e.normalizeDrawResult(s,"draw"),i=(r==null?void 0:r.state)==="fulfilled"&&(r==null?void 0:r.completed),o=(r==null?void 0:r.state)==="drawn"&&!(r!=null&&r.completed);i?e.set(g,"claimSuccess"):e.set(g,"claimFailed")}catch(s){console.log(s),e.set(g,"claimFailed")}finally{e.set(d,null)}}),V=()=>L(this,null,function*(){e.set(d,"reject"),e.set(g,"initial");try{yield G(2),window.postMessage({type:"BackToWheel"},window.location.href)}catch(s){console.log(s)}finally{e.set(d,null)}}),Z=()=>{window.postMessage({type:"BackToWheel"},window.location.href)},B=()=>{window.postMessage({type:"SpinAgain"},window.location.href)};var $={get result(){return x()},set result(s){x(s),e.flushSync()},get endpoint(){return z()},set endpoint(s){z(s),e.flushSync()},get session(){return k()},set session(s){k(s),e.flushSync()}},E=ue(),N=e.child(E);t.bind_this(N,s=>e.set(j,s),()=>e.get(j));var J=e.sibling(N,2);{var ee=s=>{var r=de(),i=e.child(r),o=e.child(i,!0);e.reset(i);var n=e.sibling(i,2);t.html(n,()=>a()("rejectWarningText"),!0),e.reset(n);var p=e.sibling(n,2),c=e.child(p),l=e.child(c);let _;var v=e.child(l,!0);e.reset(l);var b=e.sibling(l,2);{var y=u=>{var R=O();t.append(u,R)};t.if_block(b,u=>{e.get(d)==="claim"&&u(y)})}e.reset(c);var T=e.sibling(c,2),w=e.child(T);let P;var m=e.child(w,!0);e.reset(w);var h=e.sibling(w,2);{var D=u=>{var R=O();t.append(u,R)};t.if_block(h,u=>{e.get(d)==="reject"&&u(D)})}e.reset(T),e.reset(p),e.reset(r),e.template_effect((u,R,F)=>{t.set_text(o,u),c.disabled=!!e.get(d),_=t.set_style(l,"",_,{opacity:e.get(d)==="claim"?0:1}),t.set_text(v,R),T.disabled=!!e.get(d),P=t.set_style(w,"",P,{opacity:e.get(d)==="reject"?0:1}),t.set_text(m,F)},[()=>a()("areYouSure"),()=>a()("keepPrize"),()=>a()("rejectPrize")]),t.delegated("click",c,I),t.delegated("click",T,V),t.append(s,r)};t.if_block(J,s=>{e.get(g)==="rejectModal"&&s(ee)})}var U=e.sibling(J,2),te=e.child(U);{var se=s=>{var r=q(),i=e.first_child(r),o=e.child(i,!0);e.reset(i);var n=e.sibling(i,2),p=e.child(n,!0);e.reset(n);var c=e.sibling(n,2),l=e.child(c),_=e.child(l,!0);e.reset(l),e.reset(c),e.template_effect((v,b,y)=>{t.set_text(o,v),t.set_text(p,b),t.set_text(_,y)},[()=>a()("prizeAssignedTitle"),()=>a()("prizeAssigned"),()=>a()("backToGame")]),t.delegated("click",l,Z),t.append(s,r)},re=s=>{var r=q(),i=e.first_child(r),o=e.child(i,!0);e.reset(i);var n=e.sibling(i,2),p=e.child(n,!0);e.reset(n);var c=e.sibling(n,2),l=e.child(c),_=e.child(l,!0);e.reset(l),e.reset(c),e.template_effect((v,b,y)=>{t.set_text(o,v),t.set_text(p,b),t.set_text(_,y)},[()=>a()("drawFailedTitle"),()=>a()("drawFailed"),()=>a()("backToGame")]),t.delegated("click",l,B),t.append(s,r)},ae=s=>{var r=q(),i=e.first_child(r),o=e.child(i,!0);e.reset(i);var n=e.sibling(i,2),p=e.child(n,!0);e.reset(n);var c=e.sibling(n,2),l=e.child(c),_=e.child(l,!0);e.reset(l),e.reset(c),e.template_effect((v,b,y)=>{t.set_text(o,v),t.set_text(p,b),l.disabled=!!e.get(d),t.set_text(_,y)},[()=>a()("noPrizeTitle"),()=>a()("noPrize"),()=>a()("spinAgain")]),t.delegated("click",l,B),t.append(s,r)},ie=s=>{var r=_e(),i=e.first_child(r),o=e.child(i),n=e.sibling(o);t.each(n,17,()=>Q,t.index,(m,h)=>{var D=pe();e.template_effect(()=>{var u,R,F,H;return t.set_style(D,`top:${(u=e.get(h).t)!=null?u:""};left:${(R=e.get(h).l)!=null?R:""};font-size:${(F=e.get(h).s)!=null?F:""};animation-delay:${(H=e.get(h).d)!=null?H:""}`)}),t.append(m,D)}),e.reset(i);var p=e.sibling(i,2);t.html(p,()=>a()("success",{values:{prize:Y[e.get(C)]}}),!0),e.reset(p);var c=e.sibling(p,2),l=e.child(c),_=e.child(l);let v;var b=e.child(_,!0);e.reset(_);var y=e.sibling(_,2);{var T=m=>{var h=O();t.append(m,h)};t.if_block(y,m=>{e.get(d)==="claim"&&m(T)})}e.reset(l);var w=e.sibling(l,2),P=e.child(w,!0);e.reset(w),e.reset(c),e.template_effect((m,h,D)=>{t.set_text(o,`${m!=null?m:""} `),l.disabled=!!e.get(d),v=t.set_style(_,"",v,{opacity:e.get(d)==="claim"?0:1}),t.set_text(b,h),w.disabled=!!e.get(d),t.set_text(P,D)},[()=>a()("congratulations"),()=>a()("claimReward"),()=>a()("reject")]),t.delegated("click",l,I),t.delegated("click",w,()=>e.set(g,"rejectModal")),t.append(s,r)},le=s=>{var r=ve(),i=e.first_child(r),o=e.sibling(i,2),n=e.child(o,!0);e.reset(o);var p=e.sibling(o,2),c=e.child(p),l=e.child(c,!0);e.reset(c),e.reset(p),e.template_effect((_,v)=>{t.set_attribute(i,"src",ce.Error),t.set_text(n,_),t.set_text(l,v)},[()=>a()("errorJSON"),()=>a()("backToGame")]),t.delegated("click",c,B),t.append(s,r)};t.if_block(te,s=>{e.get(g)==="claimSuccess"?s(se):e.get(g)==="claimFailed"?s(re,1):e.get(X)?s(ae,2):e.get(f)?s(le,-1):s(ie,3)})}e.reset(U),e.reset(E),t.append(M,E);var ne=e.pop($);return A(),ne}t.delegate(["click"]);t.create_custom_element(K,{result:{},endpoint:{},session:{}},[],[],{mode:"open"});exports.WheelOfFortuneDrawResults=K;
|