@everymatrix/mini-games-hub 0.1.14 → 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-zNncMSFn.cjs → MiniGamesHub-BM5Vxa9S.cjs} +5 -5
  5. package/components/{MiniGamesHub-D3n-AyD7.js → MiniGamesHub-C7aQh03q.js} +139 -141
  6. package/components/{MiniGamesHub-BYJ7lK90.js → MiniGamesHub-Dl3isBzY.js} +149 -151
  7. package/components/{WheelOfFortune-BjNsD2ND.js → WheelOfFortune-B-Rx_FFX.js} +144 -146
  8. package/components/{WheelOfFortune--4nTtnMR.cjs → WheelOfFortune-CidB6b1w.cjs} +4 -4
  9. package/components/{WheelOfFortune-DkVQIxzg.js → WheelOfFortune-DdCajfhn.js} +144 -146
  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,39 +1,39 @@
1
- var Ge = Object.defineProperty, je = Object.defineProperties;
2
- var Le = Object.getOwnPropertyDescriptors;
3
- var ce = Object.getOwnPropertySymbols;
4
- var Re = Object.prototype.hasOwnProperty, Me = Object.prototype.propertyIsEnumerable;
5
- var de = (l, r, o) => r in l ? Ge(l, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[r] = o, K = (l, r) => {
1
+ var Ge = Object.defineProperty, Le = Object.defineProperties;
2
+ var Re = Object.getOwnPropertyDescriptors;
3
+ var pe = Object.getOwnPropertySymbols;
4
+ var Me = Object.prototype.hasOwnProperty, Ye = Object.prototype.propertyIsEnumerable;
5
+ var ce = (l, r, o) => r in l ? Ge(l, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : l[r] = o, q = (l, r) => {
6
6
  for (var o in r || (r = {}))
7
- Re.call(r, o) && de(l, o, r[o]);
8
- if (ce)
9
- for (var o of ce(r))
10
- Me.call(r, o) && de(l, o, r[o]);
7
+ Me.call(r, o) && ce(l, o, r[o]);
8
+ if (pe)
9
+ for (var o of pe(r))
10
+ Ye.call(r, o) && ce(l, o, r[o]);
11
11
  return l;
12
- }, N = (l, r) => je(l, Le(r));
13
- var ge = (l, r, o) => new Promise((Y, C) => {
14
- var I = (s) => {
12
+ }, K = (l, r) => Le(l, Re(r));
13
+ var de = (l, r, o) => new Promise((I, S) => {
14
+ var E = (s) => {
15
15
  try {
16
16
  c(o.next(s));
17
- } catch (x) {
18
- C(x);
17
+ } catch (h) {
18
+ S(h);
19
19
  }
20
20
  }, a = (s) => {
21
21
  try {
22
22
  c(o.throw(s));
23
- } catch (x) {
24
- C(x);
23
+ } catch (h) {
24
+ S(h);
25
25
  }
26
- }, c = (s) => s.done ? Y(s.value) : Promise.resolve(s.value).then(I, a);
26
+ }, c = (s) => s.done ? I(s.value) : Promise.resolve(s.value).then(E, a);
27
27
  c((o = o.apply(l, r)).next());
28
28
  });
29
- import { d as Ye, c as Ie, a as Ee, t as De, p as m, o as Xe, i as fe, e as Oe, W as Ze, k as A, s as R, r as He, l as me, b as Q, f as J, m as Ve, u as Ue } from "./WheelOfFortuneWheel-DxFn6jjg.js";
30
- import { D as Ke, aL as Ne, aM as z, az as Qe, S as qe, Z as n, ar as p, aO as _, aT as b, ae as q, I as Je, aX as M, aP as $e, aQ as en, aD as u, aR as nn, b5 as tn, aW as g } from "./utils-C7uxZXaZ.js";
31
- import { W as rn } from "./WheelOfFortuneHistory-DygZEtcR.js";
32
- import { W as an } from "./WheelOfFortuneDrawResults-DQweghnp.js";
33
- import { W as on } from "./WheelOfFortuneRules-DuiCet95.js";
34
- import { p as sn } from "./constants-BYsDpbRv.js";
35
- var ln = J('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), pn = J("<button> </button>"), cn = J('<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>');
36
- const dn = {
29
+ import { d as Ie, c as Ee, a as De, v as Xe, p as f, o as He, i as ge, g as Oe, W as Ze, m as _, j as R, u as Ue, n as fe, b as J, f as Q, s as Ve, e as qe, q as Ke, w as Je } from "./WheelOfFortuneWheel-BWPBlDFv.js";
30
+ import { a2 as Ne, b0 as Qe, b1 as v, aQ as $e, aa as en, I as n, aJ as p, b3 as k, b6 as M, aq as N, a6 as nn, bb as Y, b4 as tn, aU as m, bk as rn, b9 as A, ba as C } from "./utils-I5rI2w_S.js";
31
+ import { W as an } from "./WheelOfFortuneHistory-COJdJOvU.js";
32
+ import { W as on } from "./WheelOfFortuneDrawResults-D54Resid.js";
33
+ import { W as sn } from "./WheelOfFortuneRules-DNJmzmyN.js";
34
+ import { p as ln } from "./constants-BYsDpbRv.js";
35
+ var pn = Q('<video autoplay="" loop="" playsinline=""><source type="video/mp4" class="svelte-17ly5gn"/></video>', 2), cn = Q("<button> </button>"), dn = Q('<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>');
36
+ const gn = {
37
37
  hash: "svelte-17ly5gn",
38
38
  code: `@keyframes svelte-17ly5gn-wheelBob {
39
39
  0%, 100% {
@@ -631,7 +631,7 @@ const dn = {
631
631
  @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);}
632
632
  } .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);
633
633
  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%;
634
- 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;
634
+ 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;
635
635
  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 {
636
636
  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;
637
637
  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;
@@ -643,7 +643,7 @@ const dn = {
643
643
  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);
644
644
  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);
645
645
  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%;
646
- 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;}
646
+ 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;}
647
647
  @media (prefers-reduced-motion: reduce) { .coin,
648
648
  .draw-result-title,
649
649
  .draw-result-description,
@@ -653,39 +653,39 @@ const dn = {
653
653
  animation: none;}
654
654
  }`
655
655
  };
656
- function gn(l, r) {
657
- Ke(r, !0), Ee(l, dn);
658
- const o = () => $e(en, "$_", Y), [Y, C] = nn();
659
- Ne.extend(De);
660
- const I = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", a = m(r, "program", 7, null), c = m(r, "endpoint", 7, null), s = m(r, "session", 7, null), x = m(r, "outerWheelAsset", 7, null), E = m(r, "wheelButtonAsset", 7, null), D = m(r, "backgroundVideoAsset", 7, null), X = m(r, "language", 7, "en"), O = m(r, "showBackButton", 7, !0), y = m(r, "liteMode", 7, !1), v = M(() => !c() || !a()), be = M(() => {
656
+ function fn(l, r) {
657
+ Ne(r, !0), De(l, gn);
658
+ const o = () => Ve(tn, "$_", I), [I, S] = qe();
659
+ Qe.extend(Xe);
660
+ const E = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", a = f(r, "program", 7, null), c = f(r, "endpoint", 7, null), s = f(r, "session", 7, null), h = f(r, "outerWheelAsset", 7, null), D = f(r, "wheelButtonAsset", 7, null), X = f(r, "backgroundVideoAsset", 7, null), H = f(r, "language", 7, "en"), O = f(r, "showBackButton", 7, !0), w = f(r, "liteMode", 7, !1), x = Y(() => !c() || !a()), me = Y(() => {
661
661
  var e, t;
662
- return !n(v) && ((t = (e = a()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
663
- }), ue = M(() => {
662
+ return !n(x) && ((t = (e = a()) == null ? void 0 : e.remainingTimes) != null ? t : 0) > 0;
663
+ }), be = Y(() => {
664
664
  var e, t;
665
- return n(v) ? sn : (t = (e = a()) == null ? void 0 : e.partitions) != null ? t : [];
666
- }), f = ["history", "play", "rules"];
667
- let h = z(Qe(f[1]));
668
- const he = (e) => {
669
- var t, i, d, k;
670
- e !== n(h) && (e === f[0] ? window.postMessage(
665
+ return n(x) ? ln : (t = (e = a()) == null ? void 0 : e.partitions) != null ? t : [];
666
+ }), g = ["history", "play", "rules"];
667
+ let b = v($e(g[1]));
668
+ const ue = (e) => {
669
+ var t, i, d, y;
670
+ e !== n(b) && (e === g[0] ? window.postMessage(
671
671
  {
672
672
  type: "event_wof_history_click",
673
673
  name: ((t = a()) == null ? void 0 : t.name) || null
674
674
  },
675
675
  window.location.href
676
- ) : e === f[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i = a()) == null ? void 0 : i.name) || null }, window.location.href) : window.postMessage(
676
+ ) : e === g[2] ? window.postMessage({ type: "event_wof_rules_click", name: ((i = a()) == null ? void 0 : i.name) || null }, window.location.href) : window.postMessage(
677
677
  {
678
678
  type: "event_wof_accessed",
679
- isUserLoggedIn: !n(v),
679
+ isUserLoggedIn: !n(x),
680
680
  name: ((d = a()) == null ? void 0 : d.name) || null,
681
- availableSpins: ((k = a()) == null ? void 0 : k.remainingTimes) || null
681
+ availableSpins: ((y = a()) == null ? void 0 : y.remainingTimes) || null
682
682
  },
683
683
  window.location.href
684
- ), p(Z, !1), p(h, e, !0));
684
+ ), p(Z, !1), p(b, e, !0));
685
685
  };
686
- let w = z(null), P = z(!1), Z = z(!1), H = z(!1), T = z(!1), W = z(!1);
687
- qe(() => {
688
- if (!y()) {
686
+ let u = v(null), P = v(!1), Z = v(!1), U = v(!1), T = v(!1), W = v(!1);
687
+ en(() => {
688
+ if (!w()) {
689
689
  if (n(P))
690
690
  p(T, !0), p(W, !1);
691
691
  else if (n(T)) {
@@ -700,43 +700,43 @@ function gn(l, r) {
700
700
  }
701
701
  }
702
702
  });
703
- const we = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), xe = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), $ = () => ge(this, null, function* () {
703
+ const he = () => window.postMessage({ type: "LuckyWheel:GoToLogin" }, window.location.href), we = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), $ = () => de(this, null, function* () {
704
704
  var i, d;
705
705
  if (!((i = a()) != null && i.id) || !c()) return;
706
706
  const e = new URL(`${c()}/v1/wof/remainingTimes`), t = new Headers();
707
707
  s() && t.append("X-SessionId", s()), e.searchParams.append("filter", `ProgramId[]=${a().id}`);
708
708
  try {
709
- const B = yield (yield fetch(e, { method: "GET", headers: t })).json();
710
- let U = 0;
711
- if (((d = B == null ? void 0 : B.items) == null ? void 0 : d.length) > 0) {
712
- const pe = B.items.find((Fe) => Fe.programId === a().id);
713
- pe && (U = +pe.remainingTimes || 0);
709
+ const z = yield (yield fetch(e, { method: "GET", headers: t })).json();
710
+ let V = 0;
711
+ if (((d = z == null ? void 0 : z.items) == null ? void 0 : d.length) > 0) {
712
+ const le = z.items.find((Fe) => Fe.programId === a().id);
713
+ le && (V = +le.remainingTimes || 0);
714
714
  }
715
- const We = tn(N(K({}, a()), {
716
- remainingTimes: U,
717
- current: N(K({}, a().current), { remainingTimes: U })
715
+ const je = rn(K(q({}, a()), {
716
+ remainingTimes: V,
717
+ current: K(q({}, a().current), { remainingTimes: V })
718
718
  }));
719
- window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: We }, "*");
720
- } catch (k) {
721
- console.log(k);
719
+ window.postMessage({ type: "PrizeGameRemainingTimesUpdated", data: je }, "*");
720
+ } catch (y) {
721
+ console.log(y);
722
722
  } finally {
723
- p(H, !1);
723
+ p(U, !1);
724
724
  }
725
725
  }), ee = (e) => {
726
726
  if (e.data)
727
727
  switch (e.data.type) {
728
728
  case "SpinAgain":
729
729
  case "BackToWheel":
730
- p(w, null), e.data.skipFetch ? p(H, !0) : $();
730
+ p(u, null), e.data.skipFetch ? p(U, !0) : $();
731
731
  break;
732
732
  }
733
733
  };
734
- Xe(() => {
734
+ He(() => {
735
735
  var e, t;
736
736
  return window.postMessage(
737
737
  {
738
738
  type: "event_wof_accessed",
739
- isUserLoggedIn: !n(v),
739
+ isUserLoggedIn: !n(x),
740
740
  name: ((e = a()) == null ? void 0 : e.name) || null,
741
741
  availableSpins: ((t = a()) == null ? void 0 : t.remainingTimes) || null
742
742
  },
@@ -745,105 +745,103 @@ function gn(l, r) {
745
745
  window.removeEventListener("message", ee);
746
746
  };
747
747
  });
748
- var ye = {
748
+ var xe = {
749
749
  get program() {
750
750
  return a();
751
751
  },
752
752
  set program(e = null) {
753
- a(e), u();
753
+ a(e), m();
754
754
  },
755
755
  get endpoint() {
756
756
  return c();
757
757
  },
758
758
  set endpoint(e = null) {
759
- c(e), u();
759
+ c(e), m();
760
760
  },
761
761
  get session() {
762
762
  return s();
763
763
  },
764
764
  set session(e = null) {
765
- s(e), u();
765
+ s(e), m();
766
766
  },
767
767
  get outerWheelAsset() {
768
- return x();
768
+ return h();
769
769
  },
770
770
  set outerWheelAsset(e = null) {
771
- x(e), u();
771
+ h(e), m();
772
772
  },
773
773
  get wheelButtonAsset() {
774
- return E();
774
+ return D();
775
775
  },
776
776
  set wheelButtonAsset(e = null) {
777
- E(e), u();
777
+ D(e), m();
778
778
  },
779
779
  get backgroundVideoAsset() {
780
- return D();
780
+ return X();
781
781
  },
782
782
  set backgroundVideoAsset(e = null) {
783
- D(e), u();
783
+ X(e), m();
784
784
  },
785
785
  get language() {
786
- return X();
786
+ return H();
787
787
  },
788
788
  set language(e = "en") {
789
- X(e), u();
789
+ H(e), m();
790
790
  },
791
791
  get showBackButton() {
792
792
  return O();
793
793
  },
794
794
  set showBackButton(e = !0) {
795
- O(e), u();
795
+ O(e), m();
796
796
  },
797
797
  get liteMode() {
798
- return y();
798
+ return w();
799
799
  },
800
800
  set liteMode(e = !1) {
801
- y(e), u();
801
+ w(e), m();
802
802
  }
803
- }, F = cn();
803
+ }, j = dn();
804
804
  let ne;
805
- var te = b(F);
805
+ var te = M(j);
806
806
  {
807
- var ve = (e) => {
808
- var t = ln();
807
+ var ye = (e) => {
808
+ var t = pn();
809
809
  let i;
810
810
  t.muted = !0;
811
- var d = b(t);
812
- g(t), q(() => {
813
- i = A(t, 1, "wheel-video-background svelte-17ly5gn", null, i, { "is-ready": n(Z) }), Ve(d, "src", D() || I);
814
- }), Ue("canplay", t, () => p(Z, !0)), Q(e, t);
811
+ var d = A(t);
812
+ N(() => {
813
+ i = _(t, 1, "wheel-video-background svelte-17ly5gn", null, i, { "is-ready": n(Z) }), Ke(d, "src", X() || E);
814
+ }), Je("canplay", t, () => p(Z, !0)), J(e, t);
815
815
  };
816
- fe(te, (e) => {
817
- !y() && n(h) === f[1] && e(ve);
816
+ ge(te, (e) => {
817
+ !w() && n(b) === g[1] && e(ye);
818
818
  });
819
819
  }
820
- var S = _(te, 2);
820
+ var B = k(te, 2);
821
821
  let re;
822
- var ae = _(b(S), 2), ke = b(ae, !0);
823
- g(ae), g(S);
824
- var G = _(S, 2);
825
- let oe;
826
- var V = b(G), ze = b(V, !0);
827
- g(V);
828
- var ie = _(V, 2), _e = b(ie, !0);
829
- g(ie), g(G);
830
- var j = _(G, 2);
831
- let se;
832
- Oe(j, 20, () => f, (e) => e, (e, t) => {
833
- var i = pn();
822
+ var ve = k(M(B), 2), ke = A(ve, !0);
823
+ C(B);
824
+ var F = k(B, 2);
825
+ let ae;
826
+ var oe = M(F), ze = A(oe, !0), _e = k(oe, 2), Be = A(_e, !0);
827
+ C(F);
828
+ var G = k(F, 2);
829
+ let ie;
830
+ Oe(G, 20, () => g, (e) => e, (e, t) => {
831
+ var i = cn();
834
832
  let d;
835
- var k = b(i, !0);
836
- g(i), q(
837
- (B) => {
838
- d = A(i, 1, "tab svelte-17ly5gn", null, d, { active: n(h) === t }), R(k, B);
833
+ var y = A(i, !0);
834
+ N(
835
+ (z) => {
836
+ d = _(i, 1, "tab svelte-17ly5gn", null, d, { active: n(b) === t }), R(y, z);
839
837
  },
840
838
  [() => o()(t)]
841
- ), me("click", i, () => he(t)), Q(e, i);
842
- }), g(j);
843
- var L = _(j, 2);
844
- let le;
845
- var Be = b(L);
846
- Ze(Be, {
839
+ ), fe("click", i, () => ue(t)), J(e, i);
840
+ }), C(G);
841
+ var L = k(G, 2);
842
+ let se;
843
+ var Ae = M(L);
844
+ Ze(Ae, {
847
845
  get program() {
848
846
  return a();
849
847
  },
@@ -854,32 +852,32 @@ function gn(l, r) {
854
852
  return s();
855
853
  },
856
854
  get outerWheelAsset() {
857
- return x();
855
+ return h();
858
856
  },
859
857
  get wheelButtonAsset() {
860
- return E();
858
+ return D();
861
859
  },
862
860
  get wheelSlices() {
863
- return n(ue);
861
+ return n(be);
864
862
  },
865
863
  get isPlaceholder() {
866
- return n(v);
864
+ return n(x);
867
865
  },
868
866
  get isWheelAvailable() {
869
- return n(be);
867
+ return n(me);
870
868
  },
871
869
  get liteMode() {
872
- return y();
870
+ return w();
873
871
  },
874
872
  get remainingTimesLoading() {
875
- return n(H);
873
+ return n(U);
876
874
  },
877
- onLogin: we,
875
+ onLogin: he,
878
876
  get spinResults() {
879
- return n(w);
877
+ return n(u);
880
878
  },
881
879
  set spinResults(e) {
882
- p(w, e, !0);
880
+ p(u, e, !0);
883
881
  },
884
882
  get spinActive() {
885
883
  return n(P);
@@ -887,13 +885,13 @@ function gn(l, r) {
887
885
  set spinActive(e) {
888
886
  p(P, e, !0);
889
887
  }
890
- }), g(L);
891
- var Ae = _(L, 2);
888
+ }), C(L);
889
+ var Ce = k(L, 2);
892
890
  {
893
891
  var Se = (e) => {
894
- an(e, {
892
+ on(e, {
895
893
  get result() {
896
- return n(w);
894
+ return n(u);
897
895
  },
898
896
  get endpoint() {
899
897
  return c();
@@ -902,17 +900,17 @@ function gn(l, r) {
902
900
  return s();
903
901
  },
904
902
  get liteMode() {
905
- return y();
903
+ return w();
906
904
  },
907
905
  onFetchRemainingTimes: $
908
906
  });
909
- }, Ce = (e) => {
907
+ }, Pe = (e) => {
910
908
  {
911
- let t = M(() => {
909
+ let t = Y(() => {
912
910
  var i;
913
911
  return (i = a()) == null ? void 0 : i.id;
914
912
  });
915
- rn(e, {
913
+ an(e, {
916
914
  get programId() {
917
915
  return n(t);
918
916
  },
@@ -924,29 +922,29 @@ function gn(l, r) {
924
922
  }
925
923
  });
926
924
  }
927
- }, Pe = (e) => {
928
- on(e, {
925
+ }, Te = (e) => {
926
+ sn(e, {
929
927
  get program() {
930
928
  return a();
931
929
  },
932
930
  get language() {
933
- return X();
931
+ return H();
934
932
  }
935
933
  });
936
934
  };
937
- fe(Ae, (e) => {
938
- n(w) ? e(Se) : n(h) === f[0] ? e(Ce, 1) : n(h) === f[2] && e(Pe, 2);
935
+ ge(Ce, (e) => {
936
+ n(u) ? e(Se) : n(b) === g[0] ? e(Pe, 1) : n(b) === g[2] && e(Te, 2);
939
937
  });
940
938
  }
941
- g(F), q(
939
+ C(j), N(
942
940
  (e, t, i) => {
943
- ne = A(F, 1, "wheel-content svelte-17ly5gn", null, ne, {
941
+ ne = _(j, 1, "wheel-content svelte-17ly5gn", null, ne, {
944
942
  "is-spin-blocking": n(P),
945
943
  "is-spin-fullscreen": n(T),
946
944
  "is-spin-exiting": n(W),
947
- "wheel-background-halo": y() && n(h) === f[1]
948
- }), re = A(S, 1, "back-button-container svelte-17ly5gn", null, re, { hidden: n(v) || !O() }), R(ke, e), oe = A(G, 1, "wof-title svelte-17ly5gn", null, oe, { hidden: n(w) }), R(ze, t), R(_e, i), se = A(j, 1, "wof-tabs svelte-17ly5gn", null, se, { hidden: n(v) || n(w) }), le = He(L, "", le, {
949
- display: n(h) !== f[1] || n(w) ? "none" : "contents"
945
+ "wheel-background-halo": w() && n(b) === g[1]
946
+ }), re = _(B, 1, "back-button-container svelte-17ly5gn", null, re, { hidden: n(x) || !O() }), R(ke, e), ae = _(F, 1, "wof-title svelte-17ly5gn", null, ae, { hidden: n(u) }), R(ze, t), R(Be, i), ie = _(G, 1, "wof-tabs svelte-17ly5gn", null, ie, { hidden: n(x) || n(u) }), se = Ue(L, "", se, {
947
+ display: n(b) !== g[1] || n(u) ? "none" : "contents"
950
948
  });
951
949
  },
952
950
  [
@@ -954,13 +952,13 @@ function gn(l, r) {
954
952
  () => o()("wofTitle"),
955
953
  () => o()("wofSubtitle")
956
954
  ]
957
- ), me("click", S, xe), Q(l, F);
958
- var Te = Je(ye);
959
- return C(), Te;
955
+ ), fe("click", B, we), J(l, j);
956
+ var We = nn(xe);
957
+ return S(), We;
960
958
  }
961
- Ye(["click"]);
962
- customElements.define("wheel-of-fortune", Ie(
963
- gn,
959
+ Ie(["click"]);
960
+ customElements.define("wheel-of-fortune", Ee(
961
+ fn,
964
962
  {
965
963
  program: {},
966
964
  endpoint: {},
@@ -976,5 +974,5 @@ customElements.define("wheel-of-fortune", Ie(
976
974
  []
977
975
  ));
978
976
  export {
979
- gn as W
977
+ fn as W
980
978
  };
@@ -0,0 +1 @@
1
+ "use strict";var B=(C,x,a)=>new Promise((E,M)=>{var k=m=>{try{S(a.next(m))}catch(y){M(y)}},j=m=>{try{S(a.throw(m))}catch(y){M(y)}},S=m=>m.done?E(m.value):Promise.resolve(m.value).then(k,j);S((a=a.apply(C,x)).next())});const t=require("./WheelOfFortuneWheel-0b7lq2LJ.cjs"),e=require("./utils-03vIpDSe.cjs"),_e=require("./error-YyYl7p6_.cjs"),pe=require("./sparkles-BnriHiyw.cjs");var G=t.from_html('<span class="button-spinner"></span>'),ue=t.from_html('<div class="confirm-modal-content"><p class="confirm-modal-title"> </p> <p class="confirm-modal-body"></p> <div class="confirm-modal-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"><span> </span> <!></button></div></div>'),I=t.from_html('<h2 class="draw-result-title"> </h2> <p class="draw-result-description"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>',1),ve=t.from_html('<span class="draw-result-sparkle" aria-hidden="true">✦</span>'),me=t.from_html('<h2 class="draw-result-title"> <!></h2> <p class="draw-result-description"></p> <div class="draw-result-actions"><button class="primary-cta"><span> </span> <!></button> <button class="secondary-cta"> </button></div>',1),ge=t.from_html('<img alt="Error" class="draw-result-error-image"/> <p class="draw-result-description draw-result-description--error"> </p> <div class="draw-result-actions"><button class="secondary-cta"> </button></div>',1),he=t.from_html('<div class="draw-result-panel"><div class="draw-result-confetti-layer"></div> <!> <div class="draw-result-stack"><!></div></div>');function Q(C,x){e.push(x,!0);const a=()=>t.store_get(e.$format,"$_",E),[E,M]=t.setup_stores(),k=t.prop(x,"result",7),j=t.prop(x,"endpoint",7),S=t.prop(x,"session",7),m=t.prop(x,"liteMode",7,!1),y=t.prop(x,"onFetchRemainingTimes",7,()=>{}),N=e.user_derived(()=>{var s;return((s=k())==null?void 0:s.success)!==!0}),L=e.user_derived(()=>{var s;return(s=k())==null?void 0:s.type}),U=e.user_derived(()=>e.get(L)==="noprize"),V=new Set(["loyalty"]),D={bonus:a()("prizeBonus"),role:a()("prizeRole"),tournament:a()("prizeTournament"),ticket:a()("prizeTicket"),loyalty:a()("prizeLoyalty"),challenge:a()("prizeChallenge"),custom:a()("prizeCustom")},$=[{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 P=e.state(void 0),h=e.state("initial"),d=e.state(null);e.user_effect(()=>{e.get(P)&&e.get(h)==="claimSuccess"&&!m()&&pe.burstSuccessConfetti(e.get(P))}),e.user_effect(()=>{(e.get(U)||e.get(N))&&e.untrack(()=>y()())});const J=s=>{const r=new URL(`${j()}/v1/wof/draw/${k().lotteryProgramID}`),i=new Headers;S()&&i.append("X-SessionId",S()),i.append("Content-Type","application/json");const c={action:s,guid:k().guid};return fetch(r,{method:"PUT",headers:i,body:JSON.stringify(c)}).then(o=>o.json())},H=()=>B(this,null,function*(){e.set(d,"claim");try{const s=yield J(0),r=e.normalizeDrawResult(s,"draw"),i=(r==null?void 0:r.state)==="fulfilled"&&(r==null?void 0:r.completed),c=(r==null?void 0:r.state)==="drawn"&&!(r!=null&&r.completed);i?e.set(h,"claimSuccess"):e.set(h,"claimFailed")}catch(s){console.log(s),e.set(h,"claimFailed")}finally{e.set(d,null),y()()}}),ee=()=>B(this,null,function*(){e.set(d,"reject"),e.set(h,"initial");const s=y();try{window.postMessage({type:"BackToWheel",skipFetch:!0},window.location.href),yield J(2),s==null||s()}catch(r){console.log(r)}finally{e.set(d,null)}}),te=()=>{window.postMessage({type:"BackToWheel"},window.location.href)},O=()=>{window.postMessage({type:"SpinAgain"},window.location.href)};var se={get result(){return k()},set result(s){k(s),e.flushSync()},get endpoint(){return j()},set endpoint(s){j(s),e.flushSync()},get session(){return S()},set session(s){S(s),e.flushSync()},get liteMode(){return m()},set liteMode(s=!1){m(s),e.flushSync()},get onFetchRemainingTimes(){return y()},set onFetchRemainingTimes(s=()=>{}){y(s),e.flushSync()}},q=he(),K=e.child(q);t.bind_this(K,s=>e.set(P,s),()=>e.get(P));var X=e.sibling(K,2);{var re=s=>{var r=ue(),i=e.child(r),c=e.only_child(i,!0),o=e.sibling(i,2);t.html(o,()=>a()("rejectWarningText"),!0),e.reset(o);var _=e.sibling(o,2),n=e.child(_),l=e.child(n);let p;var u=e.only_child(l,!0),b=e.sibling(l,2);{var w=v=>{var T=G();t.append(v,T)};t.if_block(b,v=>{e.get(d)==="claim"&&v(w)})}e.reset(n);var R=e.sibling(n,2),F=e.child(R);let A;var g=e.only_child(F,!0),f=e.sibling(F,2);{var z=v=>{var T=G();t.append(v,T)};t.if_block(f,v=>{e.get(d)==="reject"&&v(z)})}e.reset(R),e.reset(_),e.reset(r),e.template_effect((v,T,W)=>{t.set_text(c,v),n.disabled=!!e.get(d),p=t.set_style(l,"",p,{opacity:e.get(d)==="claim"?0:1}),t.set_text(u,T),R.disabled=!!e.get(d),A=t.set_style(F,"",A,{opacity:e.get(d)==="reject"?0:1}),t.set_text(g,W)},[()=>a()("areYouSure"),()=>a()("keepPrize"),()=>a()("rejectPrize")]),t.delegated("click",n,H),t.delegated("click",R,ee),t.append(s,r)};t.if_block(X,s=>{e.get(h)==="rejectModal"&&s(re)})}var Y=e.sibling(X,2),ae=e.child(Y);{var ie=s=>{var r=I(),i=e.first_child(r),c=e.only_child(i,!0),o=e.sibling(i,2),_=e.only_child(o,!0),n=e.sibling(o,2),l=e.child(n),p=e.only_child(l,!0);e.reset(n),e.template_effect((u,b,w)=>{t.set_text(c,u),t.set_text(_,b),t.set_text(p,w)},[()=>a()("prizeAssignedTitle"),()=>a()("prizeAssigned"),()=>a()("backToGame")]),t.delegated("click",l,te),t.append(s,r)},le=s=>{var r=I(),i=e.first_child(r),c=e.only_child(i,!0),o=e.sibling(i,2),_=e.only_child(o,!0),n=e.sibling(o,2),l=e.child(n),p=e.only_child(l,!0);e.reset(n),e.template_effect((u,b,w)=>{t.set_text(c,u),t.set_text(_,b),t.set_text(p,w)},[()=>a()("drawFailedTitle"),()=>a()("drawFailed"),()=>a()("backToGame")]),t.delegated("click",l,O),t.append(s,r)},ne=s=>{var r=I(),i=e.first_child(r),c=e.only_child(i,!0),o=e.sibling(i,2),_=e.only_child(o,!0),n=e.sibling(o,2),l=e.child(n),p=e.only_child(l,!0);e.reset(n),e.template_effect((u,b,w)=>{t.set_text(c,u),t.set_text(_,b),l.disabled=!!e.get(d),t.set_text(p,w)},[()=>a()("noPrizeTitle"),()=>a()("noPrize"),()=>a()("spinAgain")]),t.delegated("click",l,O),t.append(s,r)},oe=s=>{var r=me(),i=e.first_child(r),c=e.child(i),o=e.sibling(c);t.each(o,17,()=>$,t.index,(g,f)=>{var z=ve();e.template_effect(()=>{var v,T,W,Z;return t.set_style(z,`top:${(v=e.get(f).t)!=null?v:""};left:${(T=e.get(f).l)!=null?T:""};font-size:${(W=e.get(f).s)!=null?W:""};animation-delay:${(Z=e.get(f).d)!=null?Z:""}`)}),t.append(g,z)}),e.reset(i);var _=e.sibling(i,2);t.html(_,()=>a()("success",{values:{prize:D[e.get(L)],form:V.has(e.get(L))?"plural":"singular"}}),!0),e.reset(_);var n=e.sibling(_,2),l=e.child(n),p=e.child(l);let u;var b=e.only_child(p,!0),w=e.sibling(p,2);{var R=g=>{var f=G();t.append(g,f)};t.if_block(w,g=>{e.get(d)==="claim"&&g(R)})}e.reset(l);var F=e.sibling(l,2),A=e.only_child(F,!0);e.reset(n),e.template_effect((g,f,z)=>{t.set_text(c,`${g!=null?g:""} `),l.disabled=!!e.get(d),u=t.set_style(p,"",u,{opacity:e.get(d)==="claim"?0:1}),t.set_text(b,f),F.disabled=!!e.get(d),t.set_text(A,z)},[()=>a()("congratulations"),()=>a()("claimReward"),()=>a()("reject")]),t.delegated("click",l,H),t.delegated("click",F,()=>e.set(h,"rejectModal")),t.append(s,r)},ce=s=>{var r=ge(),i=e.first_child(r),c=e.sibling(i,2),o=e.only_child(c,!0),_=e.sibling(c,2),n=e.child(_),l=e.only_child(n,!0);e.reset(_),e.template_effect((p,u)=>{t.set_attribute(i,"src",_e.Error),t.set_text(o,p),t.set_text(l,u)},[()=>a()("errorJSON"),()=>a()("backToGame")]),t.delegated("click",n,O),t.append(s,r)};t.if_block(ae,s=>{e.get(h)==="claimSuccess"?s(ie):e.get(h)==="claimFailed"?s(le,1):e.get(U)?s(ne,2):e.get(N)?s(ce,-1):s(oe,3)})}e.reset(Y),e.reset(q),t.append(C,q);var de=e.pop(se);return M(),de}t.delegate(["click"]);t.create_custom_element(Q,{result:{},endpoint:{},session:{},liteMode:{},onFetchRemainingTimes:{}},[],[],{mode:"open"});exports.WheelOfFortuneDrawResults=Q;