@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,4 +1,4 @@
1
- "use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ke=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var $=(p,a,i)=>a in p?ye(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,M=(p,a)=>{for(var i in a||(a={}))ze.call(a,i)&&$(p,i,a[i]);if(Q)for(var i of Q(a))_e.call(a,i)&&$(p,i,a[i]);return p},Y=(p,a)=>ve(p,ke(a));var ee=(p,a,i)=>new Promise((F,v)=>{var P=l=>{try{c(i.next(l))}catch(b){v(b)}},o=l=>{try{c(i.throw(l))}catch(b){v(b)}},c=l=>l.done?F(l.value):Promise.resolve(l.value).then(P,o);c((i=i.apply(p,a)).next())});const t=require("./WheelOfFortuneWheel-hSjxThyU.cjs"),e=require("./utils-DQIHJIDu.cjs"),Be=require("./WheelOfFortuneHistory-DZNPM57t.cjs"),Se=require("./WheelOfFortuneDrawResults-1lzyxrks.cjs"),Ae=require("./WheelOfFortuneRules-VAMAiK0m.cjs"),Ce=require("./constants-DM6Vdc6Z.cjs");var Fe=t.from_html('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>',2),Pe=t.from_html("<button> </button>"),We=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 Te={hash:"svelte-17ly5gn",code:`@keyframes svelte-17ly5gn-wheelBob {
1
+ "use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ke=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var J=(p,a,i)=>a in p?ye(p,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):p[a]=i,Y=(p,a)=>{for(var i in a||(a={}))ze.call(a,i)&&J(p,i,a[i]);if(N)for(var i of N(a))_e.call(a,i)&&J(p,i,a[i]);return p},I=(p,a)=>ve(p,ke(a));var Q=(p,a,i)=>new Promise((F,v)=>{var P=l=>{try{c(i.next(l))}catch(b){v(b)}},o=l=>{try{c(i.throw(l))}catch(b){v(b)}},c=l=>l.done?F(l.value):Promise.resolve(l.value).then(P,o);c((i=i.apply(p,a)).next())});const t=require("./WheelOfFortuneWheel-0b7lq2LJ.cjs"),e=require("./utils-03vIpDSe.cjs"),Be=require("./WheelOfFortuneHistory-tYu_rAD4.cjs"),Se=require("./WheelOfFortuneDrawResults-C3U-7-aw.cjs"),Ae=require("./WheelOfFortuneRules-BVcH-eGN.cjs"),Ce=require("./constants-DM6Vdc6Z.cjs");var Fe=t.from_html('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>',2),Pe=t.from_html("<button> </button>"),We=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 Te={hash:"svelte-17ly5gn",code:`@keyframes svelte-17ly5gn-wheelBob {
2
2
  0%, 100% {
3
3
  transform: translateY(0);
4
4
  }
@@ -585,9 +585,7 @@
585
585
  .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),
586
586
  .wheel-content.is-spin-blocking .spins-info,
587
587
  .wheel-content.is-spin-blocking .spin-button {pointer-events:none;}
588
- @media (pointer: coarse), (max-width: 640px) { .wheel-content.is-spin-fullscreen {
589
- animation: svelte-17ly5gn-spinOverlayIn 0.4s ease forwards;touch-action:none;} .wheel-content.is-spin-fullscreen.is-spin-exiting {
590
- 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),
588
+ @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),
591
589
  .wheel-content.is-spin-fullscreen .spins-info,
592
590
  .wheel-content.is-spin-fullscreen .spin-button {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;}
593
591
  } .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;}
@@ -596,22 +594,9 @@
596
594
  @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);}
597
595
  } .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);
598
596
  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%;
599
- 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;
597
+ 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;
600
598
  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 {
601
- animation: none;filter:saturate(0%);box-shadow:none;pointer-events:none;}
602
- @keyframes svelte-17ly5gn-spinOverlayIn {
603
- from {
604
- opacity: 0;
605
- }
606
- to {
607
- opacity: 1;
608
- }
609
- }
610
- @keyframes svelte-17ly5gn-spinOverlayOut {
611
- to {
612
- opacity: 0;
613
- }
614
- } .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
599
+ 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;
615
600
  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;
616
601
  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;
617
602
  animation: svelte-17ly5gn-successElementIn 620ms cubic-bezier(0.16, 0.92, 0.22, 1) 90ms both;} .coin svg,
@@ -621,7 +606,7 @@
621
606
  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);
622
607
  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);
623
608
  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%;
624
- 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;}
609
+ 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;}
625
610
  @media (prefers-reduced-motion: reduce) { .coin,
626
611
  .draw-result-title,
627
612
  .draw-result-description,
@@ -629,4 +614,4 @@
629
614
  .coin img {
630
615
  animation: none;} .success-confetti-piece {
631
616
  animation: none;}
632
- }`};function ne(p,a){e.push(a,!0),t.append_styles(p,Te);const i=()=>e.store_get(e.$format,"$_",F),[F,v]=e.setup_stores();e.dayjs.extend(t.duration);const P="https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",o=t.prop(a,"program",7,null),c=t.prop(a,"endpoint",7,null),l=t.prop(a,"session",7,null),b=t.prop(a,"outerWheelAsset",7,null),W=t.prop(a,"wheelButtonAsset",7,null),T=t.prop(a,"backgroundVideoAsset",7,null),G=t.prop(a,"language",7,"en"),O=t.prop(a,"showBackButton",7,!0),u=t.prop(a,"liteMode",7,!1),h=e.user_derived(()=>!c()||!o()),te=e.user_derived(()=>{var n,r;return!e.get(h)&&((r=(n=o())==null?void 0:n.remainingTimes)!=null?r:0)>0}),re=e.user_derived(()=>{var n,r;return e.get(h)?Ce.placeholderWheelSlices:(r=(n=o())==null?void 0:n.partitions)!=null?r:[]}),g=["history","play","rules"];let f=e.state(e.proxy(g[1]));const ae=n=>{var r,s,d,w;n!==e.get(f)&&(n===g[0]?window.postMessage({type:"event_wof_history_click",name:((r=o())==null?void 0:r.name)||null},window.location.href):n===g[2]?window.postMessage({type:"event_wof_rules_click",name:((s=o())==null?void 0:s.name)||null},window.location.href):window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(h),name:((d=o())==null?void 0:d.name)||null,availableSpins:((w=o())==null?void 0:w.remainingTimes)||null},window.location.href),e.set(R,!1),e.set(f,n,!0))};let m=e.state(null),k=e.state(!1),R=e.state(!1),j=e.state(!1),z=e.state(!1),_=e.state(!1);e.user_effect(()=>{if(!u()){if(e.get(k))e.set(z,!0),e.set(_,!1);else if(e.get(z)){e.set(_,!0);const n=setTimeout(()=>{e.set(z,!1),e.set(_,!1)},350);return()=>clearTimeout(n)}}});const oe=()=>window.postMessage({type:"LuckyWheel:GoToLogin"},window.location.href),ie=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),E=()=>ee(this,null,function*(){var s,d;if(!((s=o())!=null&&s.id)||!c())return;const n=new URL(`${c()}/v1/wof/remainingTimes`),r=new Headers;l()&&r.append("X-SessionId",l()),n.searchParams.append("filter",`ProgramId[]=${o().id}`);try{const x=yield(yield fetch(n,{method:"GET",headers:r})).json();let I=0;if(((d=x==null?void 0:x.items)==null?void 0:d.length)>0){const J=x.items.find(xe=>xe.programId===o().id);J&&(I=+J.remainingTimes||0)}const we=e.snapshot(Y(M({},o()),{remainingTimes:I,current:Y(M({},o().current),{remainingTimes:I})}));window.postMessage({type:"PrizeGameRemainingTimesUpdated",data:we},"*")}catch(w){console.log(w)}finally{e.set(j,!1)}}),D=n=>{if(n.data)switch(n.data.type){case"SpinAgain":case"BackToWheel":e.set(m,null),n.data.skipFetch?e.set(j,!0):E();break}};t.onMount(()=>{var n,r;return window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(h),name:((n=o())==null?void 0:n.name)||null,availableSpins:((r=o())==null?void 0:r.remainingTimes)||null},window.location.href),window.addEventListener("message",D),()=>{window.removeEventListener("message",D)}});var se={get program(){return o()},set program(n=null){o(n),e.flushSync()},get endpoint(){return c()},set endpoint(n=null){c(n),e.flushSync()},get session(){return l()},set session(n=null){l(n),e.flushSync()},get outerWheelAsset(){return b()},set outerWheelAsset(n=null){b(n),e.flushSync()},get wheelButtonAsset(){return W()},set wheelButtonAsset(n=null){W(n),e.flushSync()},get backgroundVideoAsset(){return T()},set backgroundVideoAsset(n=null){T(n),e.flushSync()},get language(){return G()},set language(n="en"){G(n),e.flushSync()},get showBackButton(){return O()},set showBackButton(n=!0){O(n),e.flushSync()},get liteMode(){return u()},set liteMode(n=!1){u(n),e.flushSync()}},B=We();let H;var X=e.child(B);{var le=n=>{var r=Fe();let s;r.muted=!0;var d=e.child(r);e.reset(r),e.template_effect(()=>{s=t.set_class(r,1,"wheel-video-background svelte-17ly5gn",null,s,{"is-ready":e.get(R)}),t.set_attribute(d,"src",T()||P)}),t.event("canplay",r,()=>e.set(R,!0)),t.append(n,r)};t.if_block(X,n=>{!u()&&e.get(f)===g[1]&&n(le)})}var y=e.sibling(X,2);let Z;var q=e.sibling(e.child(y),2),pe=e.child(q,!0);e.reset(q),e.reset(y);var S=e.sibling(y,2);let V;var L=e.child(S),ce=e.child(L,!0);e.reset(L);var U=e.sibling(L,2),de=e.child(U,!0);e.reset(U),e.reset(S);var A=e.sibling(S,2);let K;t.each(A,20,()=>g,n=>n,(n,r)=>{var s=Pe();let d;var w=e.child(s,!0);e.reset(s),e.template_effect(x=>{d=t.set_class(s,1,"tab svelte-17ly5gn",null,d,{active:e.get(f)===r}),t.set_text(w,x)},[()=>i()(r)]),t.delegated("click",s,()=>ae(r)),t.append(n,s)}),e.reset(A);var C=e.sibling(A,2);let N;var ge=e.child(C);t.WheelOfFortuneWheel(ge,{get program(){return o()},get endpoint(){return c()},get session(){return l()},get outerWheelAsset(){return b()},get wheelButtonAsset(){return W()},get wheelSlices(){return e.get(re)},get isPlaceholder(){return e.get(h)},get isWheelAvailable(){return e.get(te)},get liteMode(){return u()},get remainingTimesLoading(){return e.get(j)},onLogin:oe,get spinResults(){return e.get(m)},set spinResults(n){e.set(m,n,!0)},get spinActive(){return e.get(k)},set spinActive(n){e.set(k,n,!0)}}),e.reset(C);var fe=e.sibling(C,2);{var me=n=>{Se.WheelOfFortuneDrawResults(n,{get result(){return e.get(m)},get endpoint(){return c()},get session(){return l()},get liteMode(){return u()},onFetchRemainingTimes:E})},be=n=>{{let r=e.user_derived(()=>{var s;return(s=o())==null?void 0:s.id});Be.WheelOfFortuneHistory(n,{get programId(){return e.get(r)},get endpoint(){return c()},get session(){return l()}})}},ue=n=>{Ae.WheelOfFortuneRules(n,{get program(){return o()},get language(){return G()}})};t.if_block(fe,n=>{e.get(m)?n(me):e.get(f)===g[0]?n(be,1):e.get(f)===g[2]&&n(ue,2)})}e.reset(B),e.template_effect((n,r,s)=>{H=t.set_class(B,1,"wheel-content svelte-17ly5gn",null,H,{"is-spin-blocking":e.get(k),"is-spin-fullscreen":e.get(z),"is-spin-exiting":e.get(_),"wheel-background-halo":u()&&e.get(f)===g[1]}),Z=t.set_class(y,1,"back-button-container svelte-17ly5gn",null,Z,{hidden:e.get(h)||!O()}),t.set_text(pe,n),V=t.set_class(S,1,"wof-title svelte-17ly5gn",null,V,{hidden:e.get(m)}),t.set_text(ce,r),t.set_text(de,s),K=t.set_class(A,1,"wof-tabs svelte-17ly5gn",null,K,{hidden:e.get(h)||e.get(m)}),N=t.set_style(C,"",N,{display:e.get(f)!==g[1]||e.get(m)?"none":"contents"})},[()=>i()("backToHub"),()=>i()("wofTitle"),()=>i()("wofSubtitle")]),t.delegated("click",y,ie),t.append(p,B);var he=e.pop(se);return v(),he}t.delegate(["click"]);customElements.define("wheel-of-fortune",t.create_custom_element(ne,{program:{},endpoint:{},session:{},outerWheelAsset:{},wheelButtonAsset:{},backgroundVideoAsset:{},language:{},showBackButton:{},liteMode:{}},[],[]));exports.WheelOfFortune=ne;
617
+ }`};function $(p,a){e.push(a,!0),t.append_styles(p,Te);const i=()=>t.store_get(e.$format,"$_",F),[F,v]=t.setup_stores();e.dayjs.extend(t.duration);const P="https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",o=t.prop(a,"program",7,null),c=t.prop(a,"endpoint",7,null),l=t.prop(a,"session",7,null),b=t.prop(a,"outerWheelAsset",7,null),W=t.prop(a,"wheelButtonAsset",7,null),T=t.prop(a,"backgroundVideoAsset",7,null),G=t.prop(a,"language",7,"en"),R=t.prop(a,"showBackButton",7,!0),u=t.prop(a,"liteMode",7,!1),h=e.user_derived(()=>!c()||!o()),ee=e.user_derived(()=>{var n,r;return!e.get(h)&&((r=(n=o())==null?void 0:n.remainingTimes)!=null?r:0)>0}),ne=e.user_derived(()=>{var n,r;return e.get(h)?Ce.placeholderWheelSlices:(r=(n=o())==null?void 0:n.partitions)!=null?r:[]}),g=["history","play","rules"];let f=e.state(e.proxy(g[1]));const te=n=>{var r,s,d,w;n!==e.get(f)&&(n===g[0]?window.postMessage({type:"event_wof_history_click",name:((r=o())==null?void 0:r.name)||null},window.location.href):n===g[2]?window.postMessage({type:"event_wof_rules_click",name:((s=o())==null?void 0:s.name)||null},window.location.href):window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(h),name:((d=o())==null?void 0:d.name)||null,availableSpins:((w=o())==null?void 0:w.remainingTimes)||null},window.location.href),e.set(j,!1),e.set(f,n,!0))};let m=e.state(null),k=e.state(!1),j=e.state(!1),L=e.state(!1),z=e.state(!1),_=e.state(!1);e.user_effect(()=>{if(!u()){if(e.get(k))e.set(z,!0),e.set(_,!1);else if(e.get(z)){e.set(_,!0);const n=setTimeout(()=>{e.set(z,!1),e.set(_,!1)},350);return()=>clearTimeout(n)}}});const re=()=>window.postMessage({type:"LuckyWheel:GoToLogin"},window.location.href),ae=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),O=()=>Q(this,null,function*(){var s,d;if(!((s=o())!=null&&s.id)||!c())return;const n=new URL(`${c()}/v1/wof/remainingTimes`),r=new Headers;l()&&r.append("X-SessionId",l()),n.searchParams.append("filter",`ProgramId[]=${o().id}`);try{const x=yield(yield fetch(n,{method:"GET",headers:r})).json();let M=0;if(((d=x==null?void 0:x.items)==null?void 0:d.length)>0){const K=x.items.find(xe=>xe.programId===o().id);K&&(M=+K.remainingTimes||0)}const we=e.snapshot(I(Y({},o()),{remainingTimes:M,current:I(Y({},o().current),{remainingTimes:M})}));window.postMessage({type:"PrizeGameRemainingTimesUpdated",data:we},"*")}catch(w){console.log(w)}finally{e.set(L,!1)}}),E=n=>{if(n.data)switch(n.data.type){case"SpinAgain":case"BackToWheel":e.set(m,null),n.data.skipFetch?e.set(L,!0):O();break}};t.onMount(()=>{var n,r;return window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(h),name:((n=o())==null?void 0:n.name)||null,availableSpins:((r=o())==null?void 0:r.remainingTimes)||null},window.location.href),window.addEventListener("message",E),()=>{window.removeEventListener("message",E)}});var oe={get program(){return o()},set program(n=null){o(n),e.flushSync()},get endpoint(){return c()},set endpoint(n=null){c(n),e.flushSync()},get session(){return l()},set session(n=null){l(n),e.flushSync()},get outerWheelAsset(){return b()},set outerWheelAsset(n=null){b(n),e.flushSync()},get wheelButtonAsset(){return W()},set wheelButtonAsset(n=null){W(n),e.flushSync()},get backgroundVideoAsset(){return T()},set backgroundVideoAsset(n=null){T(n),e.flushSync()},get language(){return G()},set language(n="en"){G(n),e.flushSync()},get showBackButton(){return R()},set showBackButton(n=!0){R(n),e.flushSync()},get liteMode(){return u()},set liteMode(n=!1){u(n),e.flushSync()}},B=We();let D;var H=e.child(B);{var ie=n=>{var r=Fe();let s;r.muted=!0;var d=e.only_child(r);e.template_effect(()=>{s=t.set_class(r,1,"wheel-video-background svelte-17ly5gn",null,s,{"is-ready":e.get(j)}),t.set_attribute(d,"src",T()||P)}),t.event("canplay",r,()=>e.set(j,!0)),t.append(n,r)};t.if_block(H,n=>{!u()&&e.get(f)===g[1]&&n(ie)})}var y=e.sibling(H,2);let X;var se=e.sibling(e.child(y),2),le=e.only_child(se,!0);e.reset(y);var S=e.sibling(y,2);let Z;var q=e.child(S),pe=e.only_child(q,!0),ce=e.sibling(q,2),de=e.only_child(ce,!0);e.reset(S);var A=e.sibling(S,2);let V;t.each(A,20,()=>g,n=>n,(n,r)=>{var s=Pe();let d;var w=e.only_child(s,!0);e.template_effect(x=>{d=t.set_class(s,1,"tab svelte-17ly5gn",null,d,{active:e.get(f)===r}),t.set_text(w,x)},[()=>i()(r)]),t.delegated("click",s,()=>te(r)),t.append(n,s)}),e.reset(A);var C=e.sibling(A,2);let U;var ge=e.child(C);t.WheelOfFortuneWheel(ge,{get program(){return o()},get endpoint(){return c()},get session(){return l()},get outerWheelAsset(){return b()},get wheelButtonAsset(){return W()},get wheelSlices(){return e.get(ne)},get isPlaceholder(){return e.get(h)},get isWheelAvailable(){return e.get(ee)},get liteMode(){return u()},get remainingTimesLoading(){return e.get(L)},onLogin:re,get spinResults(){return e.get(m)},set spinResults(n){e.set(m,n,!0)},get spinActive(){return e.get(k)},set spinActive(n){e.set(k,n,!0)}}),e.reset(C);var fe=e.sibling(C,2);{var me=n=>{Se.WheelOfFortuneDrawResults(n,{get result(){return e.get(m)},get endpoint(){return c()},get session(){return l()},get liteMode(){return u()},onFetchRemainingTimes:O})},be=n=>{{let r=e.user_derived(()=>{var s;return(s=o())==null?void 0:s.id});Be.WheelOfFortuneHistory(n,{get programId(){return e.get(r)},get endpoint(){return c()},get session(){return l()}})}},ue=n=>{Ae.WheelOfFortuneRules(n,{get program(){return o()},get language(){return G()}})};t.if_block(fe,n=>{e.get(m)?n(me):e.get(f)===g[0]?n(be,1):e.get(f)===g[2]&&n(ue,2)})}e.reset(B),e.template_effect((n,r,s)=>{D=t.set_class(B,1,"wheel-content svelte-17ly5gn",null,D,{"is-spin-blocking":e.get(k),"is-spin-fullscreen":e.get(z),"is-spin-exiting":e.get(_),"wheel-background-halo":u()&&e.get(f)===g[1]}),X=t.set_class(y,1,"back-button-container svelte-17ly5gn",null,X,{hidden:e.get(h)||!R()}),t.set_text(le,n),Z=t.set_class(S,1,"wof-title svelte-17ly5gn",null,Z,{hidden:e.get(m)}),t.set_text(pe,r),t.set_text(de,s),V=t.set_class(A,1,"wof-tabs svelte-17ly5gn",null,V,{hidden:e.get(h)||e.get(m)}),U=t.set_style(C,"",U,{display:e.get(f)!==g[1]||e.get(m)?"none":"contents"})},[()=>i()("backToHub"),()=>i()("wofTitle"),()=>i()("wofSubtitle")]),t.delegated("click",y,ae),t.append(p,B);var he=e.pop(oe);return v(),he}t.delegate(["click"]);customElements.define("wheel-of-fortune",t.create_custom_element($,{program:{},endpoint:{},session:{},outerWheelAsset:{},wheelButtonAsset:{},backgroundVideoAsset:{},language:{},showBackButton:{},liteMode:{}},[],[]));exports.WheelOfFortune=$;