@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.
Files changed (135) hide show
  1. package/components/{GameCard-8XBwX5mB.js → GameCard-DTz2IEhm.js} +27 -29
  2. package/components/GameCard-Dfgtrwdb.cjs +3 -0
  3. package/components/{GameCard-SP2WkMe4.js → GameCard-sNqb2_mR.js} +27 -29
  4. package/components/{MiniGamesHub-DKkDXC81.cjs → MiniGamesHub-3XlqpfV_.cjs} +5 -5
  5. package/components/{MiniGamesHub-BEAlx3WE.js → MiniGamesHub-DTPiOtNT.js} +318 -286
  6. package/components/{MiniGamesHub-CrRIFbj_.js → MiniGamesHub-iX9t9vSW.js} +261 -249
  7. package/components/{WheelOfFortune-B7NMoATV.js → WheelOfFortune-BKUcclpm.js} +197 -164
  8. package/components/{WheelOfFortune-0yZoHYHH.js → WheelOfFortune-CbvJZO8-.js} +184 -151
  9. package/components/{WheelOfFortune-BxbFigrE.cjs → WheelOfFortune-DgAgnR_Q.cjs} +27 -6
  10. package/components/WheelOfFortuneDrawResults-AskDnOA6.cjs +1 -0
  11. package/components/WheelOfFortuneDrawResults-C9BcE4Kr.js +262 -0
  12. package/components/WheelOfFortuneDrawResults-DnQPGIPX.js +237 -0
  13. package/components/WheelOfFortuneHistory-BA977Hfx.js +230 -0
  14. package/components/WheelOfFortuneHistory-CT-5jtfe.js +230 -0
  15. package/components/WheelOfFortuneHistory-uP606zLS.cjs +13 -0
  16. package/components/{WheelOfFortuneRules-BI3iP5jZ.js → WheelOfFortuneRules-C16Md0m_.js} +64 -64
  17. package/components/WheelOfFortuneRules-DQcA-d8i.js +128 -0
  18. package/components/WheelOfFortuneRules-zVRcNYIv.cjs +5 -0
  19. package/components/WheelOfFortuneWheel-6j7QTrsf.cjs +3 -0
  20. package/components/WheelOfFortuneWheel-BvI-fAML.js +1980 -0
  21. package/components/WheelOfFortuneWheel-CCmzx2yj.js +1910 -0
  22. package/components/{constants-syi43uVY.js → constants-CWz8CXw2.js} +1 -1
  23. package/components/{constants-B5BwgkMh.cjs → constants-DM6Vdc6Z.cjs} +1 -1
  24. package/components/{sparkles-DMNeGYKa.cjs → sparkles-BnriHiyw.cjs} +1 -1
  25. package/components/{sparkles-Br3hNIM6.js → sparkles-BzZDomk7.js} +1 -1
  26. package/components/{sparkles-CsUJD5iK.js → sparkles-C9wObsYC.js} +1 -1
  27. package/components/{spin-controller-BfbakdA_.js → spin-controller-BjXSz9Me.js} +53 -52
  28. package/components/{spin-controller-Y0nB76qX.js → spin-controller-CETKYiGM.js} +51 -50
  29. package/components/spin-controller-q2CuZMYj.cjs +1 -0
  30. package/components/utils-B53aGsNG.js +6095 -0
  31. package/components/utils-C0oX5v1l.js +6141 -0
  32. package/components/utils-Du65tqU5.cjs +3 -0
  33. package/es2015/mini-games-hub.cjs +1 -1
  34. package/es2015/mini-games-hub.js +1 -1
  35. package/esnext/mini-games-hub.js +1 -1
  36. package/package.json +3 -1
  37. package/components/GameCard-B2Vf_Okb.cjs +0 -3
  38. package/components/GameCard-B2dUYs8D.cjs +0 -3
  39. package/components/GameCard-Bx4TWFNT.js +0 -58
  40. package/components/GameCard-CKlgiS66.cjs +0 -3
  41. package/components/GameCard-DX4XDT2r.js +0 -58
  42. package/components/GameCard-DXX0iD0Z.js +0 -58
  43. package/components/GameCard-Dfi3jlxs.js +0 -58
  44. package/components/GameCard-FmSc9xvG.js +0 -58
  45. package/components/GameCard-lPup4pYJ.js +0 -58
  46. package/components/GameCard-txJxZVfs.cjs +0 -3
  47. package/components/MiniGamesHub-BBCzOhms.js +0 -1269
  48. package/components/MiniGamesHub-BaAiz62L.cjs +0 -94
  49. package/components/MiniGamesHub-BbJIrcsb.cjs +0 -28
  50. package/components/MiniGamesHub-C6Nsfrqn.js +0 -1369
  51. package/components/MiniGamesHub-CLinNS2-.js +0 -1288
  52. package/components/MiniGamesHub-DXmod0OW.cjs +0 -94
  53. package/components/MiniGamesHub-DZHG1XwH.js +0 -1357
  54. package/components/MiniGamesHub-Db8-msnK.js +0 -1338
  55. package/components/MiniGamesHub-DxW3lK75.js +0 -1369
  56. package/components/WheelOfFortune-B-sa8npV.cjs +0 -572
  57. package/components/WheelOfFortune-CdsgfPZg.js +0 -829
  58. package/components/WheelOfFortune-Cfe5KhF-.cjs +0 -588
  59. package/components/WheelOfFortune-Cm-9CaHf.cjs +0 -570
  60. package/components/WheelOfFortune-DDfYKRzu.js +0 -862
  61. package/components/WheelOfFortune-DpMvjI6_.js +0 -811
  62. package/components/WheelOfFortune-Dtoep2n2.js +0 -852
  63. package/components/WheelOfFortune-cD7JyRL5.js +0 -820
  64. package/components/WheelOfFortune-u__JAdi_.js +0 -820
  65. package/components/WheelOfFortuneDrawResults-3S77J9M5.js +0 -292
  66. package/components/WheelOfFortuneDrawResults-B2L6I4Po.cjs +0 -1
  67. package/components/WheelOfFortuneDrawResults-B6RkAQ_i.cjs +0 -1
  68. package/components/WheelOfFortuneDrawResults-BRgQ0mTi.js +0 -261
  69. package/components/WheelOfFortuneDrawResults-BZAetM0L.js +0 -238
  70. package/components/WheelOfFortuneDrawResults-C0J_0fRE.cjs +0 -1
  71. package/components/WheelOfFortuneDrawResults-CKkYMVLn.js +0 -317
  72. package/components/WheelOfFortuneDrawResults-CvyqGbQG.js +0 -292
  73. package/components/WheelOfFortuneDrawResults-DIO74xIg.js +0 -317
  74. package/components/WheelOfFortuneDrawResults-D_QT2RDK.cjs +0 -1
  75. package/components/WheelOfFortuneDrawResults-WD4ZaXdI.js +0 -261
  76. package/components/WheelOfFortuneDrawResults-XiJyW5cc.js +0 -238
  77. package/components/WheelOfFortuneHistory-3lEfr9Yn.cjs +0 -13
  78. package/components/WheelOfFortuneHistory-BE1mGyJn.js +0 -233
  79. package/components/WheelOfFortuneHistory-BagUH_Pn.js +0 -233
  80. package/components/WheelOfFortuneHistory-BpfmGEE1.js +0 -233
  81. package/components/WheelOfFortuneHistory-C_EX6Ecx.js +0 -233
  82. package/components/WheelOfFortuneHistory-CgWvWb5r.js +0 -233
  83. package/components/WheelOfFortuneHistory-CldOJOup.js +0 -233
  84. package/components/WheelOfFortuneHistory-D9EVcaH2.js +0 -233
  85. package/components/WheelOfFortuneHistory-DQ7yysUE.cjs +0 -13
  86. package/components/WheelOfFortuneHistory-DoYx_EbF.js +0 -233
  87. package/components/WheelOfFortuneHistory-mbWa96d6.cjs +0 -13
  88. package/components/WheelOfFortuneHistory-tcBNosXj.cjs +0 -13
  89. package/components/WheelOfFortuneRules-3Pnc2tv_.cjs +0 -5
  90. package/components/WheelOfFortuneRules-ByuqEg7o.js +0 -128
  91. package/components/WheelOfFortuneRules-CD5FcLZh.js +0 -117
  92. package/components/WheelOfFortuneRules-CS1AnNsi.cjs +0 -5
  93. package/components/WheelOfFortuneRules-DEln64Ys.js +0 -117
  94. package/components/WheelOfFortuneRules-DTZ61azL.js +0 -128
  95. package/components/WheelOfFortuneRules-DUjXad1Z.cjs +0 -5
  96. package/components/WheelOfFortuneRules-Dp6015wP.cjs +0 -5
  97. package/components/WheelOfFortuneRules-ICYWgDZn.js +0 -128
  98. package/components/WheelOfFortuneRules-Sa4GsYQ7.js +0 -117
  99. package/components/WheelOfFortuneRules-ssp6aAUp.js +0 -128
  100. package/components/WheelOfFortuneWheel-76dShj7s.cjs +0 -1
  101. package/components/WheelOfFortuneWheel-B-3ALU8u.js +0 -632
  102. package/components/WheelOfFortuneWheel-B0P_kjVI.js +0 -599
  103. package/components/WheelOfFortuneWheel-C2yIQKzY.js +0 -598
  104. package/components/WheelOfFortuneWheel-C6o9ZPV4.js +0 -598
  105. package/components/WheelOfFortuneWheel-JKN_P3ES.cjs +0 -1
  106. package/components/WheelOfFortuneWheel-LXdY_AV0.js +0 -633
  107. package/components/WheelOfFortuneWheel-R5JZFn6S.js +0 -643
  108. package/components/WheelOfFortuneWheel-j83OpEdj.cjs +0 -1
  109. package/components/WheelOfFortuneWheel-jv0TkAX_.js +0 -632
  110. package/components/WheelOfFortuneWheel-le2uV09t.js +0 -609
  111. package/components/WheelOfFortuneWheel-rP-wIp2j.cjs +0 -1
  112. package/components/bonus-BcSq5fV_.cjs +0 -1
  113. package/components/bonus-BroDvSJR.js +0 -4
  114. package/components/coin-DetgSMGn.js +0 -4
  115. package/components/coin-dEAbLQma.cjs +0 -1
  116. package/components/loyalty-Bf3uaVFP.js +0 -4
  117. package/components/loyalty-XDJlZgzx.cjs +0 -1
  118. package/components/noprize-BJ-U8c5U.cjs +0 -1
  119. package/components/noprize-DQHyTDC0.js +0 -4
  120. package/components/role-Bxkn_4_S.cjs +0 -1
  121. package/components/role-CNEtykLr.js +0 -4
  122. package/components/spin-controller-Do0l1eeX.cjs +0 -1
  123. package/components/ticket-DP0fQfPa.cjs +0 -1
  124. package/components/ticket-DcOVRE_N.js +0 -4
  125. package/components/tournament-8UbfkV5I.cjs +0 -1
  126. package/components/tournament-BtKf5Btm.js +0 -4
  127. package/components/utils-BCvapeyS.cjs +0 -5
  128. package/components/utils-CG5ADU6a.cjs +0 -5
  129. package/components/utils-COXr0j7Z.js +0 -6803
  130. package/components/utils-CbMHM9Bv.js +0 -6831
  131. package/components/utils-ClIENp93.js +0 -6906
  132. package/components/utils-Cun_uLlb.js +0 -6890
  133. package/components/utils-D6FQ3_dW.cjs +0 -5
  134. package/components/utils-De4h5fhB.js +0 -6918
  135. package/components/utils-DrFJq1GB.js +0 -6819
@@ -1,11 +1,11 @@
1
- import { d as xe, W as ye } from "./WheelOfFortuneWheel-C2yIQKzY.js";
2
- import { d as ve, e as we, p as ke, U as We, f as Be, h as d, s as F, i as ze, V as Ce, o as Se, k as S, j as n, m as I, t as J, q as y, v as _, Y as _e, w as D, x as De, G as $, E as c, L as A, y as Ae, z as Ge, D as b, C as g, A as Le, K as a, T as N, l as Q } from "./utils-CbMHM9Bv.js";
3
- import { W as Re } from "./WheelOfFortuneHistory-D9EVcaH2.js";
4
- import { W as Te } from "./WheelOfFortuneDrawResults-CvyqGbQG.js";
5
- import { W as Pe } from "./WheelOfFortuneRules-BI3iP5jZ.js";
6
- import { p as je } from "./constants-syi43uVY.js";
7
- var He = $("<button> </button>"), Ye = $('<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 Fe = {
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
- } .WofLottiePlayer {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;} .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;} .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%);transition:transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);} .WheelContent.WheelBackgroundHalo > *:not(.WheelContainer),
574
- .WheelContent.WheelBackgroundHalo .SpinsInfo {transition:opacity 0.4s ease, filter 0.4s ease;} .WheelContent.WheelBackgroundHalo.is-spin-fullscreen .WheelContainer {scale:1.15;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .WheelContent.WheelBackgroundHalo.is-spin-fullscreen > *:not(.WheelContainer),
575
- .WheelContent.WheelBackgroundHalo.is-spin-fullscreen .SpinsInfo,
576
- .WheelContent.WheelBackgroundHalo.is-spin-fullscreen .SpinButton {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;} .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);
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 Ie(M, o) {
600
- ke(o, !0), We(M, Fe);
601
- const v = () => Ae(Ge, "$_", ee), [ee, ne] = Le();
602
- Be.extend(xe);
603
- const t = d(o, "program", 7, null), f = d(o, "endpoint", 7, null), h = d(o, "session", 7, null), G = d(o, "outerWheelAsset", 7, null), L = d(o, "wheelButtonAsset", 7, null), R = d(o, "language", 7, "en"), T = d(o, "showBackButton", 7, !0), m = A(() => !f() || !t()), te = A(() => !n(m) && (t()?.remainingTimes ?? 0) > 0), re = A(() => n(m) ? je : t()?.partitions ?? []), s = ["history", "play", "rules"];
604
- let u = F(ze(s[1]));
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: t()?.name || null
630
+ name: r()?.name || null
610
631
  },
611
632
  window.location.href
612
- ) : e === s[2] ? window.postMessage({ type: "event_wof_rules_click", name: t()?.name || null }, window.location.href) : window.postMessage(
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(m),
616
- name: t()?.name || null,
617
- availableSpins: t()?.remainingTimes || null
636
+ isUserLoggedIn: !n(u),
637
+ name: r()?.name || null,
638
+ availableSpins: r()?.remainingTimes || null
618
639
  },
619
640
  window.location.href
620
- ), S(u, e, !0);
641
+ ), h(F, !1), h(f, e, !0);
621
642
  };
622
- let i = F(null), P = F(!1);
623
- const oe = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), se = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), E = (e) => {
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
- S(i, null);
658
+ h(d, null);
629
659
  break;
630
660
  }
631
661
  };
632
- Ce(() => (window.addEventListener("message", E), () => {
633
- window.removeEventListener("message", E);
662
+ Be(() => (window.addEventListener("message", H), () => {
663
+ window.removeEventListener("message", H);
634
664
  }));
635
- var ie = {
665
+ var se = {
636
666
  get program() {
637
- return t();
667
+ return r();
638
668
  },
639
669
  set program(e = null) {
640
- t(e), g();
670
+ r(e), c();
641
671
  },
642
672
  get endpoint() {
643
- return f();
673
+ return m();
644
674
  },
645
675
  set endpoint(e = null) {
646
- f(e), g();
676
+ m(e), c();
647
677
  },
648
678
  get session() {
649
- return h();
679
+ return x();
650
680
  },
651
681
  set session(e = null) {
652
- h(e), g();
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), g();
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), g();
694
+ L(e), c();
665
695
  },
666
- get language() {
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
- R(e), g();
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), g();
712
+ T(e), c();
713
+ },
714
+ get liteMode() {
715
+ return y();
716
+ },
717
+ set liteMode(e = !1) {
718
+ y(e), c();
677
719
  }
678
- }, w = Ye();
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 x = c(w);
681
- let Z;
682
- x.__click = se;
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 j = c(k), pe = c(j, !0);
688
- a(j);
689
- var q = b(j, 2), ce = c(q, !0);
690
- a(q), a(k);
691
- var W = b(k, 2);
692
- let K;
693
- Se(W, 20, () => s, (e) => e, (e, l) => {
694
- var r = He();
695
- let z;
696
- r.__click = () => ae(l);
697
- var H = c(r, !0);
698
- a(r), J(
699
- (p) => {
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
- [() => v()(l)]
703
- ), D(e, r);
704
- }), a(W);
705
- var B = b(W, 2);
706
- let V;
707
- var de = c(B);
708
- ye(de, {
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 t();
765
+ return r();
711
766
  },
712
767
  get endpoint() {
713
- return f();
768
+ return m();
714
769
  },
715
770
  get session() {
716
- return h();
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(m);
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(i);
793
+ return n(d);
736
794
  },
737
795
  set spinResults(e) {
738
- S(i, e, !0);
796
+ h(d, e, !0);
739
797
  },
740
798
  get spinActive() {
741
- return n(P);
799
+ return n(k);
742
800
  },
743
801
  set spinActive(e) {
744
- S(P, e, !0);
802
+ h(k, e, !0);
745
803
  }
746
- }), a(B);
747
- var ge = b(B, 2);
804
+ }), i(z);
805
+ var ge = g(z, 2);
748
806
  {
749
- var fe = (e) => {
750
- Te(e, {
807
+ var me = (e) => {
808
+ je(e, {
751
809
  get result() {
752
- return n(i);
810
+ return n(d);
753
811
  },
754
812
  get endpoint() {
755
- return f();
813
+ return m();
756
814
  },
757
815
  get session() {
758
- return h();
816
+ return x();
759
817
  }
760
818
  });
761
- }, me = (e) => {
762
- var l = N(), r = Q(l);
819
+ }, ue = (e) => {
763
820
  {
764
- var z = (p) => {
765
- {
766
- let C = A(() => t()?.id);
767
- Re(p, {
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
- !0
808
- );
826
+ get endpoint() {
827
+ return m();
828
+ },
829
+ get session() {
830
+ return x();
831
+ }
832
+ });
809
833
  }
810
- D(e, l);
834
+ }, be = (e) => {
835
+ Ie(e, {
836
+ get program() {
837
+ return r();
838
+ },
839
+ get language() {
840
+ return P();
841
+ }
842
+ });
811
843
  };
812
- I(ge, (e) => {
813
- n(i) ? e(fe) : e(me, !1);
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
- a(w), J(
817
- (e, l, r) => {
818
- X = y(w, 1, "WheelContent svelte-17ly5gn", null, X, {
819
- WheelBackgroundHalo: n(u) === s[1],
820
- "is-spin-fullscreen": n(P)
821
- }), Z = y(x, 1, "BackButtonContainer svelte-17ly5gn", null, Z, { Hidden: n(m) || !T() }), _(le, e), U = y(k, 1, "WofTitle svelte-17ly5gn", null, U, { Hidden: n(i) }), _(pe, l), _(ce, r), K = y(W, 1, "WofTabs svelte-17ly5gn", null, K, { Hidden: n(m) || n(i) }), V = _e(B, "", V, {
822
- display: n(u) !== s[1] || n(i) ? "none" : "contents"
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
- () => v()("backToHub"),
827
- () => v()("wofTitle"),
828
- () => v()("wofSubtitle")
858
+ () => w()("backToHub"),
859
+ () => w()("wofTitle"),
860
+ () => w()("wofSubtitle")
829
861
  ]
830
- ), D(M, w);
831
- var ue = De(ie);
832
- return ne(), ue;
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
- Ie,
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
- Ie as W
884
+ Ze as W
852
885
  };
@@ -1,4 +1,4 @@
1
- "use strict";const Y=require("./WheelOfFortuneWheel-rP-wIp2j.cjs"),e=require("./utils-D6FQ3_dW.cjs"),ae=require("./WheelOfFortuneHistory-DQ7yysUE.cjs"),oe=require("./WheelOfFortuneDrawResults-B6RkAQ_i.cjs"),se=require("./WheelOfFortuneRules-Dp6015wP.cjs"),ie=require("./constants-B5BwgkMh.cjs");var le=e.from_html("<button> </button>"),pe=e.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 ce={hash:"svelte-17ly5gn",code:`@keyframes svelte-17ly5gn-wheelBob {
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
- } .WofLottiePlayer {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;} .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;} .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%);transition:transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);} .WheelContent.WheelBackgroundHalo > *:not(.WheelContainer),
565
- .WheelContent.WheelBackgroundHalo .SpinsInfo {transition:opacity 0.4s ease, filter 0.4s ease;} .WheelContent.WheelBackgroundHalo.is-spin-fullscreen .WheelContainer {scale:1.15;transition:scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);animation-play-state:paused;} .WheelContent.WheelBackgroundHalo.is-spin-fullscreen > *:not(.WheelContainer),
566
- .WheelContent.WheelBackgroundHalo.is-spin-fullscreen .SpinsInfo,
567
- .WheelContent.WheelBackgroundHalo.is-spin-fullscreen .SpinButton {opacity:0;pointer-events:none;filter:blur(4px);transition:opacity 0.5s ease, filter 0.5s ease;} .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);
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(R,o){e.push(o,!0),e.append_styles(R,ce);const b=()=>e.store_get(e.$format,"$_",M),[M,O]=e.setup_stores();e.dayjs.extend(Y.duration);const r=e.prop(o,"program",7,null),c=e.prop(o,"endpoint",7,null),m=e.prop(o,"session",7,null),W=e.prop(o,"outerWheelAsset",7,null),B=e.prop(o,"wheelButtonAsset",7,null),z=e.prop(o,"language",7,"en"),C=e.prop(o,"showBackButton",7,!0),d=e.user_derived(()=>!c()||!r()),E=e.user_derived(()=>{var n,t;return!e.get(d)&&((t=(n=r())==null?void 0:n.remainingTimes)!=null?t:0)>0}),X=e.user_derived(()=>{var n,t;return e.get(d)?ie.placeholderWheelSlices:(t=(n=r())==null?void 0:n.partitions)!=null?t:[]}),s=["history","play","rules"];let g=e.state(e.proxy(s[1]));const Z=n=>{var t,a,p,f;n===s[0]?window.postMessage({type:"event_wof_history_click",name:((t=r())==null?void 0:t.name)||null},window.location.href):n===s[2]?window.postMessage({type:"event_wof_rules_click",name:((a=r())==null?void 0:a.name)||null},window.location.href):window.postMessage({type:"event_wof_accessed",isUserLoggedIn:!e.get(d),name:((p=r())==null?void 0:p.name)||null,availableSpins:((f=r())==null?void 0:f.remainingTimes)||null},window.location.href),e.set(g,n,!0)};let i=e.state(null),S=e.state(!1);const q=()=>window.postMessage({type:"LuckyWheel:GoToLogin"},window.location.href),U=()=>window.postMessage({type:"CloseMiniGame"},window.location.href),A=n=>{if(n.data)switch(n.data.type){case"SpinAgain":case"BackToWheel":e.set(i,null);break}};e.onMount(()=>(window.addEventListener("message",A),()=>{window.removeEventListener("message",A)}));var J={get program(){return r()},set program(n=null){r(n),e.flushSync()},get endpoint(){return c()},set endpoint(n=null){c(n),e.flushSync()},get session(){return m()},set session(n=null){m(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 language(){return z()},set language(n="en"){z(n),e.flushSync()},get showBackButton(){return C()},set showBackButton(n=!0){C(n),e.flushSync()}},h=pe();let G;var u=e.child(h);let L;u.__click=U;var T=e.sibling(e.child(u),2),K=e.child(T,!0);e.reset(T),e.reset(u);var x=e.sibling(u,2);let P;var _=e.child(x),N=e.child(_,!0);e.reset(_);var F=e.sibling(_,2),Q=e.child(F,!0);e.reset(F),e.reset(x);var y=e.sibling(x,2);let H;e.each(y,20,()=>s,n=>n,(n,t)=>{var a=le();let p;a.__click=()=>Z(t);var f=e.child(a,!0);e.reset(a),e.template_effect(l=>{p=e.set_class(a,1,"Tab svelte-17ly5gn",null,p,{Active:e.get(g)===t}),e.set_text(f,l)},[()=>b()(t)]),e.append(n,a)}),e.reset(y);var v=e.sibling(y,2);let j;var V=e.child(v);Y.WheelOfFortuneWheel(V,{get program(){return r()},get endpoint(){return c()},get session(){return m()},get outerWheelAsset(){return W()},get wheelButtonAsset(){return B()},get wheelSlices(){return e.get(X)},get isPlaceholder(){return e.get(d)},get isWheelAvailable(){return e.get(E)},onLogin:q,get spinResults(){return e.get(i)},set spinResults(n){e.set(i,n,!0)},get spinActive(){return e.get(S)},set spinActive(n){e.set(S,n,!0)}}),e.reset(v);var $=e.sibling(v,2);{var ee=n=>{oe.WheelOfFortuneDrawResults(n,{get result(){return e.get(i)},get endpoint(){return c()},get session(){return m()}})},ne=n=>{var t=e.comment(),a=e.first_child(t);{var p=l=>{{let w=e.user_derived(()=>{var k;return(k=r())==null?void 0:k.id});ae.WheelOfFortuneHistory(l,{get programId(){return e.get(w)},get endpoint(){return c()},get session(){return m()}})}},f=l=>{var w=e.comment(),k=e.first_child(w);{var re=D=>{se.WheelOfFortuneRules(D,{get program(){return r()},get language(){return z()}})};e.if_block(k,D=>{e.get(g)===s[2]&&D(re)},!0)}e.append(l,w)};e.if_block(a,l=>{e.get(g)===s[0]?l(p):l(f,!1)},!0)}e.append(n,t)};e.if_block($,n=>{e.get(i)?n(ee):n(ne,!1)})}e.reset(h),e.template_effect((n,t,a)=>{G=e.set_class(h,1,"WheelContent svelte-17ly5gn",null,G,{WheelBackgroundHalo:e.get(g)===s[1],"is-spin-fullscreen":e.get(S)}),L=e.set_class(u,1,"BackButtonContainer svelte-17ly5gn",null,L,{Hidden:e.get(d)||!C()}),e.set_text(K,n),P=e.set_class(x,1,"WofTitle svelte-17ly5gn",null,P,{Hidden:e.get(i)}),e.set_text(N,t),e.set_text(Q,a),H=e.set_class(y,1,"WofTabs svelte-17ly5gn",null,H,{Hidden:e.get(d)||e.get(i)}),j=e.set_style(v,"",j,{display:e.get(g)!==s[1]||e.get(i)?"none":"contents"})},[()=>b()("backToHub"),()=>b()("wofTitle"),()=>b()("wofSubtitle")]),e.append(R,h);var te=e.pop(J);return O(),te}e.delegate(["click"]);customElements.define("wheel-of-fortune",e.create_custom_element(I,{program:{},endpoint:{},session:{},outerWheelAsset:{},wheelButtonAsset:{},language:{},showBackButton:{}},[],[],!1));exports.WheelOfFortune=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;