@everymatrix/mini-games-hub 0.1.13 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/components/GameCard-BmOaK5EP.js +50 -0
  2. package/components/GameCard-C4koIRhP.js +50 -0
  3. package/components/{GameCard-BIn8BJ4U.cjs → GameCard-DA-8ladf.cjs} +2 -2
  4. package/components/{MiniGamesHub-SjsgF4e2.cjs → MiniGamesHub-BM5Vxa9S.cjs} +5 -5
  5. package/components/{MiniGamesHub-D3BazHMT.js → MiniGamesHub-C7aQh03q.js} +139 -141
  6. package/components/{MiniGamesHub-Cu8_8yFl.js → MiniGamesHub-Dl3isBzY.js} +149 -151
  7. package/components/{WheelOfFortune-CnaDpfpq.js → WheelOfFortune-B-Rx_FFX.js} +147 -164
  8. package/components/{WheelOfFortune-BlHeZ0q7.cjs → WheelOfFortune-CidB6b1w.cjs} +6 -21
  9. package/components/{WheelOfFortune-Lfc_l9kc.js → WheelOfFortune-DdCajfhn.js} +147 -164
  10. package/components/WheelOfFortuneDrawResults-C3U-7-aw.cjs +1 -0
  11. package/components/WheelOfFortuneDrawResults-D54Resid.js +279 -0
  12. package/components/WheelOfFortuneDrawResults-DZ43Wc7d.js +254 -0
  13. package/components/WheelOfFortuneHistory-COJdJOvU.js +214 -0
  14. package/components/WheelOfFortuneHistory-DNb6Y7gj.js +214 -0
  15. package/components/WheelOfFortuneHistory-tYu_rAD4.cjs +13 -0
  16. package/components/WheelOfFortuneRules-B1F8hnwG.js +109 -0
  17. package/components/{WheelOfFortuneRules-VAMAiK0m.cjs → WheelOfFortuneRules-BVcH-eGN.cjs} +2 -2
  18. package/components/WheelOfFortuneRules-DNJmzmyN.js +120 -0
  19. package/components/WheelOfFortuneWheel-0b7lq2LJ.cjs +3 -0
  20. package/components/{WheelOfFortuneWheel-DxFn6jjg.js → WheelOfFortuneWheel-BWPBlDFv.js} +1476 -1111
  21. package/components/{WheelOfFortuneWheel-BAR98ByP.js → WheelOfFortuneWheel-BuBnw_ev.js} +1412 -1049
  22. package/components/utils-03vIpDSe.cjs +3 -0
  23. package/components/{utils-d-JrZBJu.js → utils-C9WIoJIh.js} +2236 -2410
  24. package/components/utils-I5rI2w_S.js +5867 -0
  25. package/es2015/mini-games-hub.cjs +1 -1
  26. package/es2015/mini-games-hub.js +1 -1
  27. package/esnext/mini-games-hub.js +1 -1
  28. package/package.json +1 -1
  29. package/components/GameCard-D3knomma.js +0 -56
  30. package/components/GameCard-Ds0FcnPp.js +0 -56
  31. package/components/WheelOfFortuneDrawResults-1lzyxrks.cjs +0 -1
  32. package/components/WheelOfFortuneDrawResults-DQweghnp.js +0 -301
  33. package/components/WheelOfFortuneDrawResults-dOeQDVub.js +0 -276
  34. package/components/WheelOfFortuneHistory-CQZ9QtVt.js +0 -232
  35. package/components/WheelOfFortuneHistory-DZNPM57t.cjs +0 -13
  36. package/components/WheelOfFortuneHistory-DygZEtcR.js +0 -232
  37. package/components/WheelOfFortuneRules-D3N1c8PX.js +0 -117
  38. package/components/WheelOfFortuneRules-DuiCet95.js +0 -128
  39. package/components/WheelOfFortuneWheel-hSjxThyU.cjs +0 -3
  40. package/components/utils-C7uxZXaZ.js +0 -6045
  41. package/components/utils-DQIHJIDu.cjs +0 -3
@@ -1,11 +1,11 @@
1
- import { d as Ae, c as Se, a as Ce, t as Pe, p, o as Te, i as ae, e as We, W as Fe, k as v, s as F, r as Ge, l as oe, b as X, f as H, m as je, u as Le } from "./WheelOfFortuneWheel-BAR98ByP.js";
2
- import { D as Ie, aL as Me, aM as x, az as Re, S as Ye, Z as n, ar as o, ae as Z, I as Oe, aY as G, aT as c, aO as Ee, aP as De, aS as y, aD as d, aQ as Xe, aW as s, b5 as Ze } from "./utils-d-JrZBJu.js";
3
- import { W as He } from "./WheelOfFortuneHistory-CQZ9QtVt.js";
4
- import { W as Ve } from "./WheelOfFortuneDrawResults-dOeQDVub.js";
5
- import { W as Ue } from "./WheelOfFortuneRules-D3N1c8PX.js";
1
+ import { d as Ce, c as Se, a as Pe, v as Te, p as l, o as We, i as re, g as je, W as Fe, m as x, j, u as Ge, n as ae, b as H, f as Z, s as Le, e as Re, q as Me, w as Ye } from "./WheelOfFortuneWheel-BuBnw_ev.js";
2
+ import { a2 as Ie, b0 as Ee, b1 as h, aQ as De, aa as Xe, I as n, aJ as a, aq as O, a6 as He, bb as F, b6 as G, b3 as Oe, b5 as w, aU as p, bf as k, b9 as z, bk as Ze } from "./utils-C9WIoJIh.js";
3
+ import { W as Ue } from "./WheelOfFortuneHistory-DNb6Y7gj.js";
4
+ import { W as Ve } from "./WheelOfFortuneDrawResults-DZ43Wc7d.js";
5
+ import { W as qe } from "./WheelOfFortuneRules-B1F8hnwG.js";
6
6
  import { p as Ke } from "./constants-BYsDpbRv.js";
7
- var Ne = H('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), Qe = H("<button> </button>"), qe = H('<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 Je = {
7
+ var Je = Z('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), Ne = Z("<button> </button>"), Qe = Z('<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 $e = {
9
9
  hash: "svelte-17ly5gn",
10
10
  code: `@keyframes svelte-17ly5gn-wheelBob {
11
11
  0%, 100% {
@@ -594,9 +594,7 @@ const Je = {
594
594
  .wheel-content .spin-button {transition:opacity 0.4s ease, filter 0.4s ease;} .wheel-content.wheel-background-halo {background-image:radial-gradient(circle at 50% 55%, rgba(var(--color-primary-2, 207, 120, 69), 0.78) 0 14%, rgba(var(--color-primary-4, 128, 60, 22), 0.7) 32%, rgba(var(--color-primary-6, 89, 24, 3), 0) 65%);} .wheel-content.is-spin-blocking {touch-action:none;} .wheel-content.is-spin-blocking > *:not(.wheel-container):not(.wheel-video-background),
595
595
  .wheel-content.is-spin-blocking .spins-info,
596
596
  .wheel-content.is-spin-blocking .spin-button {pointer-events:none;}
597
- @media (pointer: coarse), (max-width: 640px) { .wheel-content.is-spin-fullscreen {
598
- animation: svelte-17ly5gn-spinOverlayIn 0.4s ease forwards;touch-action:none;} .wheel-content.is-spin-fullscreen.is-spin-exiting {
599
- animation: svelte-17ly5gn-spinOverlayOut 0.35s ease forwards;} .wheel-content.is-spin-fullscreen .wheel-container {scale:1.15;margin-block:0;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-block 0.6s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .wheel-content.is-spin-fullscreen > *:not(.wheel-container):not(.wheel-video-background),
597
+ @media (pointer: coarse), (max-width: 640px) { .wheel-content.is-spin-fullscreen {touch-action:none;} .wheel-content.is-spin-fullscreen .wheel-container {scale:1.15;margin-block:0;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-block 0.6s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .wheel-content.is-spin-fullscreen > *:not(.wheel-container):not(.wheel-video-background),
600
598
  .wheel-content.is-spin-fullscreen .spins-info,
601
599
  .wheel-content.is-spin-fullscreen .spin-button {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;}
602
600
  } .wheel-video-background {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
@@ -605,22 +603,9 @@ const Je = {
605
603
  @media (min-width: 720px) { .wheel-video-background {-webkit-mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);}
606
604
  } .wheel-video-background.is-ready {opacity:0.2;} .back-button-container {display:flex;align-items:center;justify-content:start;line-height:20px;gap:6px;width:100%;padding:10px;background-color:transparent;color:var(--color-text-default, white);border:none;} .back-button-container svg {background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));padding:5px;width:15px;height:15px;border-radius:50%;} .wof-title {display:flex;flex-direction:column;justify-content:center;gap:6px;position:relative;z-index:2;} .wof-title h3 {text-align:center;margin:0;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(20px, 5.5vw, 28px);line-height:1.05;} .wof-title p {text-align:center;margin:0 0 clamp(10px, 3vw, 16px);color:var(--color-text-default, rgba(238, 246, 255, 0.96));font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;} .wof-tabs {display:flex;border-radius:50px;background-color:var(--color-tabs, rgba(251, 251, 251, 0.1019607843));padding:6px;width:90%;justify-content:center;margin-bottom:12px;position:relative;z-index:2;} .wof-tabs .tab {padding:5px;width:100%;color:var(--color-text-default, #ffffff);border-radius:50px;background-color:transparent;border:none;cursor:pointer;} .wof-tabs .active {background-color:var(--color-tabs-selected, rgba(251, 251, 251, 0.2));} .hidden {display:none !important;} .wheel-container {width:var(--wof-size, clamp(276px, 100vw, 430px));position:relative;z-index:1;margin-block:clamp(-18px, -4vw, -32px);
607
605
  animation: svelte-17ly5gn-wheelBob 5000ms ease-in-out infinite;will-change:transform;} .spins-info {display:flex;align-items:center;gap:8px;font-size:clamp(14px, 4vw, 19px);font-weight:400;color:var(--color-text-default, rgba(238, 246, 255, 0.86));position:relative;z-index:2;} .spins-info .spins-count {display:flex;align-items:center;gap:6px;color:var(--color-text-brand, #ffcc00);font-weight:900;font-size:clamp(16px, 4.5vw, 20px);} .spins-info .spins-count-loader {display:inline-block;width:14px;height:14px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
608
- animation: svelte-17ly5gn-wofSpinnerRotate 600ms linear infinite;} .countdown-text {color:var(--color-overlay-neutral-4, rgba(255, 255, 255, 0.6509803922));font-size:clamp(13px, 3.8vw, 18px);text-align:center;position:relative;z-index:2;} .countdown-text .time-segment {font-variant-numeric:tabular-nums;} .spin-button {min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-style:italic;font-weight:900;cursor:pointer;position:relative;z-index:2;
606
+ animation: svelte-17ly5gn-wofSpinnerRotate 600ms linear infinite;} .countdown-text {color:var(--color-overlay-neutral-4, rgba(255, 255, 255, 0.6509803922));font-size:clamp(13px, 3.8vw, 18px);text-align:center;position:relative;z-index:2;} .countdown-text .time-segment {font-variant-numeric:tabular-nums;} .spin-button {min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;cursor:pointer;position:relative;z-index:2;
609
607
  animation: svelte-17ly5gn-spinButtonZoomGlow 1800ms ease-in-out infinite;transform-origin:50% 50%;transition:opacity 260ms ease, transform 160ms ease, filter 160ms ease;} .spin-button:active {transform:translateY(2px) scale(0.98);animation-play-state:paused;} .spin-button:disabled {
610
- animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;}
611
- @keyframes svelte-17ly5gn-spinOverlayIn {
612
- from {
613
- opacity: 0;
614
- }
615
- to {
616
- opacity: 1;
617
- }
618
- }
619
- @keyframes svelte-17ly5gn-spinOverlayOut {
620
- to {
621
- opacity: 0;
622
- }
623
- } .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
608
+ animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;} .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
624
609
  animation: svelte-17ly5gn-drawResultPop 420ms cubic-bezier(0.16, 0.92, 0.22, 1.04) both;} .draw-result-confetti-layer {position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;} .success-confetti-piece {--x: 50%;--tx: 0px;--rot: 0deg;--spin: 360deg;--hue: #ffd23e;--w: 8px;--h: 12px;--d: 1800ms;position:absolute;left:var(--x);top:-24px;width:var(--w);height:var(--h);border-radius:3px;background:var(--hue);filter:drop-shadow(0 0 5px rgba(255, 218, 74, 0.24));transform-origin:center;
625
610
  animation: svelte-17ly5gn-successConfettiFall var(--d) cubic-bezier(0.16, 0.68, 0.2, 1) forwards;} .success-confetti-piece.is-diamond {border-radius:2px;transform:rotate(45deg);} .success-confetti-piece.is-ribbon {border-radius:8px 2px;} .draw-result-stack {width:100%;display:grid;justify-items:center;position:relative;z-index:2;transform:translateY(clamp(16px, 5vw, 30px));} .draw-result-stack img {width:60%;max-width:300px;} .draw-result-stack img.lose {filter:saturate(0%);} .coin {width:clamp(140px, 38vw, 196px);height:clamp(142px, 38.5vw, 198px);display:grid;place-items:center;border-radius:0;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);will-change:opacity, transform;
626
611
  animation: svelte-17ly5gn-successElementIn 620ms cubic-bezier(0.16, 0.92, 0.22, 1) 90ms both;} .coin svg,
@@ -630,7 +615,7 @@ const Je = {
630
615
  animation: svelte-17ly5gn-titleSparkle 900ms ease-out forwards;} .draw-result-description {margin:0;color:var(--color-text-default, #ffffff);font-size:clamp(14px, 3.8vw, 17px);line-height:1.55;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
631
616
  animation: svelte-17ly5gn-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 390ms both;} .draw-result-description span {font-size:clamp(15px, 4.1vw, 19px);font-weight:900;} .draw-result-error-image {max-width:170px;} .draw-result-description--error {margin:0 20px;} .draw-result-actions {display:grid;justify-items:center;gap:12px;margin-top:clamp(16px, 4.5vw, 26px);opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
632
617
  animation: svelte-17ly5gn-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 560ms both;} .button-spinner {position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;width:18px;height:18px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
633
- animation: svelte-17ly5gn-wofSpinnerRotate 600ms linear infinite;} .primary-cta {position:relative;min-width:clamp(148px, 42vw, 210px);min-height:clamp(42px, 10.5vw, 50px);border:none;border-radius:999px;color:var(--color-text-button-primary, #261d00);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4vw, 19px);font-style:italic;font-weight:900;cursor:pointer;padding:0 20px;transition:transform 160ms ease, filter 160ms ease;} .primary-cta:hover {filter:brightness(1.06);transform:translateY(-1px);} .primary-cta:active {transform:translateY(2px) scale(0.98);} .secondary-cta {position:relative;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));font:inherit;font-size:clamp(13px, 3.4vw, 15px);font-weight:750;cursor:pointer;border:1px solid var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));border-radius:999px;padding:10px 20px;} .confirm-modal-content {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:10;width:70%;height:85%;max-height:500px;padding:10px 12px;background:rgba(8, 4, 0, 0.95);backdrop-filter:blur(16px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;} .confirm-modal-title {color:#ffffff;font-size:26px;font-weight:700;letter-spacing:0.2px;margin:0 0 4px;} .confirm-modal-body {color:rgba(255, 255, 255, 0.6509803922);font-size:14px;font-style:italic;line-height:1.45;margin:0 0 10px;} .confirm-modal-actions {display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;} .confirm-modal-actions button {width:fit-content;}
618
+ animation: svelte-17ly5gn-wofSpinnerRotate 600ms linear infinite;} .primary-cta {position:relative;min-width:clamp(148px, 42vw, 210px);min-height:clamp(42px, 10.5vw, 50px);border:none;border-radius:999px;color:var(--color-text-button-primary, #261d00);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4vw, 19px);font-weight:900;cursor:pointer;padding:0 20px;transition:transform 160ms ease, filter 160ms ease;} .primary-cta:hover {filter:brightness(1.06);transform:translateY(-1px);} .primary-cta:active {transform:translateY(2px) scale(0.98);} .secondary-cta {position:relative;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));font:inherit;font-size:clamp(13px, 3.4vw, 15px);font-weight:750;cursor:pointer;border:1px solid var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));border-radius:999px;padding:10px 20px;} .confirm-modal-content {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:10;width:70%;height:85%;max-height:500px;padding:10px 12px;background:rgba(8, 4, 0, 0.95);backdrop-filter:blur(16px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;} .confirm-modal-title {color:#ffffff;font-size:26px;font-weight:700;letter-spacing:0.2px;margin:0 0 4px;} .confirm-modal-body {color:rgba(255, 255, 255, 0.6509803922);font-size:14px;line-height:1.45;margin:0 0 10px;} .confirm-modal-actions {display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;} .confirm-modal-actions button {width:fit-content;}
634
619
  @media (prefers-reduced-motion: reduce) { .coin,
635
620
  .draw-result-title,
636
621
  .draw-result-description,
@@ -640,39 +625,39 @@ const Je = {
640
625
  animation: none;}
641
626
  }`
642
627
  };
643
- function $e(V, i) {
644
- Ie(i, !0), Ce(V, Je);
645
- const _ = () => Ee(De, "$_", ie), [ie, se] = Xe();
646
- Me.extend(Pe);
647
- const le = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", t = p(i, "program", 7, null), g = p(i, "endpoint", 7, null), b = p(i, "session", 7, null), j = p(i, "outerWheelAsset", 7, null), L = p(i, "wheelButtonAsset", 7, null), I = p(i, "backgroundVideoAsset", 7, null), M = p(i, "language", 7, "en"), R = p(i, "showBackButton", 7, !0), u = p(i, "liteMode", 7, !1), h = G(() => !g() || !t()), pe = G(() => !n(h) && (t()?.remainingTimes ?? 0) > 0), ce = G(() => n(h) ? Ke : t()?.partitions ?? []), l = ["history", "play", "rules"];
648
- let f = x(Re(l[1]));
649
- const de = (e) => {
650
- e !== n(f) && (e === l[0] ? window.postMessage(
628
+ function en(U, i) {
629
+ Ie(i, !0), Pe(U, $e);
630
+ const _ = () => Le(Oe, "$_", oe), [oe, ie] = Re();
631
+ Ee.extend(Te);
632
+ const se = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", t = l(i, "program", 7, null), c = l(i, "endpoint", 7, null), f = l(i, "session", 7, null), L = l(i, "outerWheelAsset", 7, null), R = l(i, "wheelButtonAsset", 7, null), M = l(i, "backgroundVideoAsset", 7, null), Y = l(i, "language", 7, "en"), I = l(i, "showBackButton", 7, !0), m = l(i, "liteMode", 7, !1), b = F(() => !c() || !t()), le = F(() => !n(b) && (t()?.remainingTimes ?? 0) > 0), pe = F(() => n(b) ? Ke : t()?.partitions ?? []), s = ["history", "play", "rules"];
633
+ let d = h(De(s[1]));
634
+ const ce = (e) => {
635
+ e !== n(d) && (e === s[0] ? window.postMessage(
651
636
  {
652
637
  type: "event_wof_history_click",
653
638
  name: t()?.name || null
654
639
  },
655
640
  window.location.href
656
- ) : e === l[2] ? window.postMessage({ type: "event_wof_rules_click", name: t()?.name || null }, window.location.href) : window.postMessage(
641
+ ) : e === s[2] ? window.postMessage({ type: "event_wof_rules_click", name: t()?.name || null }, window.location.href) : window.postMessage(
657
642
  {
658
643
  type: "event_wof_accessed",
659
- isUserLoggedIn: !n(h),
644
+ isUserLoggedIn: !n(b),
660
645
  name: t()?.name || null,
661
646
  availableSpins: t()?.remainingTimes || null
662
647
  },
663
648
  window.location.href
664
- ), o(Y, !1), o(f, e, !0));
649
+ ), a(E, !1), a(d, e, !0));
665
650
  };
666
- let m = x(null), B = x(!1), Y = x(!1), O = x(!1), A = x(!1), S = x(!1);
667
- Ye(() => {
668
- if (!u()) {
651
+ let g = h(null), B = h(!1), E = h(!1), D = h(!1), A = h(!1), C = h(!1);
652
+ Xe(() => {
653
+ if (!m()) {
669
654
  if (n(B))
670
- o(A, !0), o(S, !1);
655
+ a(A, !0), a(C, !1);
671
656
  else if (n(A)) {
672
- o(S, !0);
657
+ a(C, !0);
673
658
  const e = setTimeout(
674
659
  () => {
675
- o(A, !1), o(S, !1);
660
+ a(A, !1), a(C, !1);
676
661
  },
677
662
  350
678
663
  );
@@ -680,247 +665,245 @@ function $e(V, i) {
680
665
  }
681
666
  }
682
667
  });
683
- const ge = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), fe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), U = async () => {
684
- if (!t()?.id || !g()) return;
685
- const e = new URL(`${g()}/v1/wof/remainingTimes`), r = new Headers();
686
- b() && r.append("X-SessionId", b()), e.searchParams.append("filter", `ProgramId[]=${t().id}`);
668
+ const de = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), ge = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), V = async () => {
669
+ if (!t()?.id || !c()) return;
670
+ const e = new URL(`${c()}/v1/wof/remainingTimes`), r = new Headers();
671
+ f() && r.append("X-SessionId", f()), e.searchParams.append("filter", `ProgramId[]=${t().id}`);
687
672
  try {
688
- const w = await (await fetch(e, { method: "GET", headers: r })).json();
689
- let z = 0;
690
- if (w?.items?.length > 0) {
691
- const re = w.items.find((Be) => Be.programId === t().id);
692
- re && (z = +re.remainingTimes || 0);
673
+ const u = await (await fetch(e, { method: "GET", headers: r })).json();
674
+ let v = 0;
675
+ if (u?.items?.length > 0) {
676
+ const te = u.items.find((Ae) => Ae.programId === t().id);
677
+ te && (v = +te.remainingTimes || 0);
693
678
  }
694
- const D = Ze({
679
+ const X = Ze({
695
680
  ...t(),
696
- remainingTimes: z,
697
- current: { ...t().current, remainingTimes: z }
681
+ remainingTimes: v,
682
+ current: { ...t().current, remainingTimes: v }
698
683
  });
699
- window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: D }, "*");
700
- } catch (a) {
701
- console.log(a);
684
+ window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: X }, "*");
685
+ } catch (o) {
686
+ console.log(o);
702
687
  } finally {
703
- o(O, !1);
688
+ a(D, !1);
704
689
  }
705
- }, K = (e) => {
690
+ }, q = (e) => {
706
691
  if (e.data)
707
692
  switch (e.data.type) {
708
693
  case "SpinAgain":
709
694
  case "BackToWheel":
710
- o(m, null), e.data.skipFetch ? o(O, !0) : U();
695
+ a(g, null), e.data.skipFetch ? a(D, !0) : V();
711
696
  break;
712
697
  }
713
698
  };
714
- Te(() => (window.postMessage(
699
+ We(() => (window.postMessage(
715
700
  {
716
701
  type: "event_wof_accessed",
717
- isUserLoggedIn: !n(h),
702
+ isUserLoggedIn: !n(b),
718
703
  name: t()?.name || null,
719
704
  availableSpins: t()?.remainingTimes || null
720
705
  },
721
706
  window.location.href
722
- ), window.addEventListener("message", K), () => {
723
- window.removeEventListener("message", K);
707
+ ), window.addEventListener("message", q), () => {
708
+ window.removeEventListener("message", q);
724
709
  }));
725
- var me = {
710
+ var fe = {
726
711
  get program() {
727
712
  return t();
728
713
  },
729
714
  set program(e = null) {
730
- t(e), d();
715
+ t(e), p();
731
716
  },
732
717
  get endpoint() {
733
- return g();
718
+ return c();
734
719
  },
735
720
  set endpoint(e = null) {
736
- g(e), d();
721
+ c(e), p();
737
722
  },
738
723
  get session() {
739
- return b();
724
+ return f();
740
725
  },
741
726
  set session(e = null) {
742
- b(e), d();
727
+ f(e), p();
743
728
  },
744
729
  get outerWheelAsset() {
745
- return j();
730
+ return L();
746
731
  },
747
732
  set outerWheelAsset(e = null) {
748
- j(e), d();
733
+ L(e), p();
749
734
  },
750
735
  get wheelButtonAsset() {
751
- return L();
736
+ return R();
752
737
  },
753
738
  set wheelButtonAsset(e = null) {
754
- L(e), d();
739
+ R(e), p();
755
740
  },
756
741
  get backgroundVideoAsset() {
757
- return I();
742
+ return M();
758
743
  },
759
744
  set backgroundVideoAsset(e = null) {
760
- I(e), d();
745
+ M(e), p();
761
746
  },
762
747
  get language() {
763
- return M();
748
+ return Y();
764
749
  },
765
750
  set language(e = "en") {
766
- M(e), d();
751
+ Y(e), p();
767
752
  },
768
753
  get showBackButton() {
769
- return R();
754
+ return I();
770
755
  },
771
756
  set showBackButton(e = !0) {
772
- R(e), d();
757
+ I(e), p();
773
758
  },
774
759
  get liteMode() {
775
- return u();
760
+ return m();
776
761
  },
777
762
  set liteMode(e = !1) {
778
- u(e), d();
763
+ m(e), p();
779
764
  }
780
- }, C = qe();
781
- let N;
782
- var Q = c(C);
765
+ }, S = Qe();
766
+ let K;
767
+ var J = G(S);
783
768
  {
784
- var be = (e) => {
785
- var r = Ne();
786
- let a;
769
+ var me = (e) => {
770
+ var r = Je();
771
+ let o;
787
772
  r.muted = !0;
788
- var w = c(r);
789
- s(r), Z(() => {
790
- a = v(r, 1, "wheel-video-background svelte-17ly5gn", null, a, { "is-ready": n(Y) }), je(w, "src", I() || le);
791
- }), Le("canplay", r, () => o(Y, !0)), X(e, r);
773
+ var u = k(r);
774
+ O(() => {
775
+ o = x(r, 1, "wheel-video-background svelte-17ly5gn", null, o, { "is-ready": n(E) }), Me(u, "src", M() || se);
776
+ }), Ye("canplay", r, () => a(E, !0)), H(e, r);
792
777
  };
793
- ae(Q, (e) => {
794
- !u() && n(f) === l[1] && e(be);
778
+ re(J, (e) => {
779
+ !m() && n(d) === s[1] && e(me);
795
780
  });
796
781
  }
797
- var k = y(Q, 2);
798
- let q;
799
- var J = y(c(k), 2), ue = c(J, !0);
800
- s(J), s(k);
801
- var P = y(k, 2);
802
- let $;
803
- var E = c(P), he = c(E, !0);
804
- s(E);
805
- var ee = y(E, 2), we = c(ee, !0);
806
- s(ee), s(P);
807
- var T = y(P, 2);
808
- let ne;
809
- We(T, 20, () => l, (e) => e, (e, r) => {
810
- var a = Qe();
811
- let w;
812
- var z = c(a, !0);
813
- s(a), Z(
814
- (D) => {
815
- w = v(a, 1, "tab svelte-17ly5gn", null, w, { active: n(f) === r }), F(z, D);
782
+ var y = w(J, 2);
783
+ let N;
784
+ var be = w(G(y), 2), ue = k(be, !0);
785
+ z(y);
786
+ var P = w(y, 2);
787
+ let Q;
788
+ var $ = G(P), he = k($, !0), we = w($, 2), xe = k(we, !0);
789
+ z(P);
790
+ var T = w(P, 2);
791
+ let ee;
792
+ je(T, 20, () => s, (e) => e, (e, r) => {
793
+ var o = Ne();
794
+ let u;
795
+ var v = k(o, !0);
796
+ O(
797
+ (X) => {
798
+ u = x(o, 1, "tab svelte-17ly5gn", null, u, { active: n(d) === r }), j(v, X);
816
799
  },
817
800
  [() => _()(r)]
818
- ), oe("click", a, () => de(r)), X(e, a);
819
- }), s(T);
820
- var W = y(T, 2);
821
- let te;
822
- var xe = c(W);
823
- Fe(xe, {
801
+ ), ae("click", o, () => ce(r)), H(e, o);
802
+ }), z(T);
803
+ var W = w(T, 2);
804
+ let ne;
805
+ var ye = G(W);
806
+ Fe(ye, {
824
807
  get program() {
825
808
  return t();
826
809
  },
827
810
  get endpoint() {
828
- return g();
811
+ return c();
829
812
  },
830
813
  get session() {
831
- return b();
814
+ return f();
832
815
  },
833
816
  get outerWheelAsset() {
834
- return j();
817
+ return L();
835
818
  },
836
819
  get wheelButtonAsset() {
837
- return L();
820
+ return R();
838
821
  },
839
822
  get wheelSlices() {
840
- return n(ce);
823
+ return n(pe);
841
824
  },
842
825
  get isPlaceholder() {
843
- return n(h);
826
+ return n(b);
844
827
  },
845
828
  get isWheelAvailable() {
846
- return n(pe);
829
+ return n(le);
847
830
  },
848
831
  get liteMode() {
849
- return u();
832
+ return m();
850
833
  },
851
834
  get remainingTimesLoading() {
852
- return n(O);
835
+ return n(D);
853
836
  },
854
- onLogin: ge,
837
+ onLogin: de,
855
838
  get spinResults() {
856
- return n(m);
839
+ return n(g);
857
840
  },
858
841
  set spinResults(e) {
859
- o(m, e, !0);
842
+ a(g, e, !0);
860
843
  },
861
844
  get spinActive() {
862
845
  return n(B);
863
846
  },
864
847
  set spinActive(e) {
865
- o(B, e, !0);
848
+ a(B, e, !0);
866
849
  }
867
- }), s(W);
868
- var ye = y(W, 2);
850
+ }), z(W);
851
+ var ve = w(W, 2);
869
852
  {
870
- var ve = (e) => {
853
+ var ke = (e) => {
871
854
  Ve(e, {
872
855
  get result() {
873
- return n(m);
856
+ return n(g);
874
857
  },
875
858
  get endpoint() {
876
- return g();
859
+ return c();
877
860
  },
878
861
  get session() {
879
- return b();
862
+ return f();
880
863
  },
881
864
  get liteMode() {
882
- return u();
865
+ return m();
883
866
  },
884
- onFetchRemainingTimes: U
867
+ onFetchRemainingTimes: V
885
868
  });
886
- }, ke = (e) => {
869
+ }, ze = (e) => {
887
870
  {
888
- let r = G(() => t()?.id);
889
- He(e, {
871
+ let r = F(() => t()?.id);
872
+ Ue(e, {
890
873
  get programId() {
891
874
  return n(r);
892
875
  },
893
876
  get endpoint() {
894
- return g();
877
+ return c();
895
878
  },
896
879
  get session() {
897
- return b();
880
+ return f();
898
881
  }
899
882
  });
900
883
  }
901
- }, ze = (e) => {
902
- Ue(e, {
884
+ }, _e = (e) => {
885
+ qe(e, {
903
886
  get program() {
904
887
  return t();
905
888
  },
906
889
  get language() {
907
- return M();
890
+ return Y();
908
891
  }
909
892
  });
910
893
  };
911
- ae(ye, (e) => {
912
- n(m) ? e(ve) : n(f) === l[0] ? e(ke, 1) : n(f) === l[2] && e(ze, 2);
894
+ re(ve, (e) => {
895
+ n(g) ? e(ke) : n(d) === s[0] ? e(ze, 1) : n(d) === s[2] && e(_e, 2);
913
896
  });
914
897
  }
915
- s(C), Z(
916
- (e, r, a) => {
917
- N = v(C, 1, "wheel-content svelte-17ly5gn", null, N, {
898
+ z(S), O(
899
+ (e, r, o) => {
900
+ K = x(S, 1, "wheel-content svelte-17ly5gn", null, K, {
918
901
  "is-spin-blocking": n(B),
919
902
  "is-spin-fullscreen": n(A),
920
- "is-spin-exiting": n(S),
921
- "wheel-background-halo": u() && n(f) === l[1]
922
- }), q = v(k, 1, "back-button-container svelte-17ly5gn", null, q, { hidden: n(h) || !R() }), F(ue, e), $ = v(P, 1, "wof-title svelte-17ly5gn", null, $, { hidden: n(m) }), F(he, r), F(we, a), ne = v(T, 1, "wof-tabs svelte-17ly5gn", null, ne, { hidden: n(h) || n(m) }), te = Ge(W, "", te, {
923
- display: n(f) !== l[1] || n(m) ? "none" : "contents"
903
+ "is-spin-exiting": n(C),
904
+ "wheel-background-halo": m() && n(d) === s[1]
905
+ }), N = x(y, 1, "back-button-container svelte-17ly5gn", null, N, { hidden: n(b) || !I() }), j(ue, e), Q = x(P, 1, "wof-title svelte-17ly5gn", null, Q, { hidden: n(g) }), j(he, r), j(xe, o), ee = x(T, 1, "wof-tabs svelte-17ly5gn", null, ee, { hidden: n(b) || n(g) }), ne = Ge(W, "", ne, {
906
+ display: n(d) !== s[1] || n(g) ? "none" : "contents"
924
907
  });
925
908
  },
926
909
  [
@@ -928,13 +911,13 @@ function $e(V, i) {
928
911
  () => _()("wofTitle"),
929
912
  () => _()("wofSubtitle")
930
913
  ]
931
- ), oe("click", k, fe), X(V, C);
932
- var _e = Oe(me);
933
- return se(), _e;
914
+ ), ae("click", y, ge), H(U, S);
915
+ var Be = He(fe);
916
+ return ie(), Be;
934
917
  }
935
- Ae(["click"]);
918
+ Ce(["click"]);
936
919
  customElements.define("wheel-of-fortune", Se(
937
- $e,
920
+ en,
938
921
  {
939
922
  program: {},
940
923
  endpoint: {},
@@ -950,5 +933,5 @@ customElements.define("wheel-of-fortune", Se(
950
933
  []
951
934
  ));
952
935
  export {
953
- $e as W
936
+ en as W
954
937
  };