@everymatrix/mini-games-hub 0.2.4 → 0.2.5

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 (44) hide show
  1. package/components/{GameCard-CYdVVTcL.js → GameCard-B3YKo9k6.js} +30 -30
  2. package/components/{GameCard-QmoS59XQ.js → GameCard-BQ6hFy67.js} +30 -30
  3. package/components/{GameCard-8BFvabU5.cjs → GameCard-C-zSlvo1.cjs} +3 -3
  4. package/components/GameCard-vgoswSWl.cjs +3 -0
  5. package/components/{MiniGamesHub-C9am57eJ.js → MiniGamesHub-C0q9vZFD.js} +287 -736
  6. package/components/MiniGamesHub-CfiDjCz7.cjs +16 -0
  7. package/components/{MiniGamesHub-DyGuSoR2.js → MiniGamesHub-D5Y5OYt-.js} +267 -756
  8. package/components/MiniGamesHub-DYwmUNTy.cjs +16 -0
  9. package/components/WheelOfFortune-2WKhJAdZ.cjs +617 -0
  10. package/components/{WheelOfFortune-RHE9xBAC.cjs → WheelOfFortune-BJ9iMr53.cjs} +1 -1
  11. package/components/{WheelOfFortune-kaN0fwVR.js → WheelOfFortune-DC57_QGF.js} +5 -5
  12. package/components/{WheelOfFortune-ZxcSVMfw.js → WheelOfFortune-u6v6YLc5.js} +5 -5
  13. package/components/WheelOfFortuneDrawResults-BKkTmsVC.cjs +1 -0
  14. package/components/{WheelOfFortuneDrawResults-N4gTWA1Q.js → WheelOfFortuneDrawResults-D3rgrYi_.js} +2 -2
  15. package/components/{WheelOfFortuneDrawResults-DWNjltAi.cjs → WheelOfFortuneDrawResults-DTufAeXD.cjs} +1 -1
  16. package/components/{WheelOfFortuneDrawResults-BkeJ179O.js → WheelOfFortuneDrawResults-gx2xkUtF.js} +2 -2
  17. package/components/WheelOfFortuneHistory-B-Yadw5p.js +213 -0
  18. package/components/{WheelOfFortuneHistory-ClStJRIB.cjs → WheelOfFortuneHistory-DdXxYW6M.cjs} +5 -6
  19. package/components/WheelOfFortuneHistory-DhFZUmGd.cjs +12 -0
  20. package/components/{WheelOfFortuneHistory-D1EcBSTP.js → WheelOfFortuneHistory-IM5H-der.js} +77 -78
  21. package/components/WheelOfFortuneRules-BM75DT61.js +107 -0
  22. package/components/WheelOfFortuneRules-D-xnWFIU.cjs +3 -0
  23. package/components/WheelOfFortuneRules-DkQOlpqR.js +118 -0
  24. package/components/WheelOfFortuneRules-_a2c-LEy.cjs +3 -0
  25. package/components/WheelOfFortuneWheel-CUs0nOjA.cjs +3 -0
  26. package/components/{WheelOfFortuneWheel-C7SxKPAD.cjs → WheelOfFortuneWheel-D9nXwM0H.cjs} +1 -1
  27. package/components/{WheelOfFortuneWheel-COOZH6--.js → WheelOfFortuneWheel-D_tfW-rK.js} +1 -1
  28. package/components/{WheelOfFortuneWheel-D8QRG4xb.js → WheelOfFortuneWheel-DmTRvIN6.js} +1 -1
  29. package/components/sparkles-DplvhrIm.cjs +1 -0
  30. package/components/spin-controller-HS3m99tB.cjs +1 -0
  31. package/components/{utils-wnIzjZal.js → utils-B86dsoC-.js} +22 -21
  32. package/components/{utils-d6rcfAwp.js → utils-BtFS7k_l.js} +22 -21
  33. package/components/utils-By_D2O28.cjs +3 -0
  34. package/components/{utils-BAUifQls.cjs → utils-CSIl6eA7.cjs} +1 -1
  35. package/es2015/mini-games-hub.cjs +1 -1
  36. package/es2015/mini-games-hub.js +1 -1
  37. package/esnext/mini-games-hub.cjs +1 -0
  38. package/esnext/mini-games-hub.js +1 -1
  39. package/package.json +12 -11
  40. package/components/MiniGamesHub-ym_blJPQ.cjs +0 -94
  41. package/components/WheelOfFortuneHistory-BuSnWEtS.js +0 -214
  42. package/components/WheelOfFortuneRules-C6rN9zFn.cjs +0 -5
  43. package/components/WheelOfFortuneRules-DmdPkzHe.js +0 -109
  44. package/components/WheelOfFortuneRules-L9sAOXJI.js +0 -120
@@ -1,12 +1,11 @@
1
- import { d as Ae, c as Fe, a as Ze, p as re, o as De, i as R, b as o, s as Ge, f as m, e as Ue, g as oe, h as ie, j as v, k as ge, l as _e, m as qe, n as ne, q as fe } from "./WheelOfFortuneWheel-D8QRG4xb.js";
2
- import { a5 as Je, b1 as X, aQ as Oe, L as e, a9 as Qe, aJ as j, b8 as Xe, b6 as k, aU as ve, b4 as Ke, b2 as K, b3 as s, b9 as p, ba as z, ar as B, bh as ue, bb as pe } from "./utils-d6rcfAwp.js";
3
- var Ne = m('<div class="lucky-wheel-history-item skeleton-row svelte-4la0az"></div>'), Ve = m('<div class="lucky-wheel-history-header history-grid svelte-4la0az"><p class="svelte-4la0az">#</p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p></div> <!>', 1), he = _e('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-4la0az"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-4la0az"></path></svg>'), xe = _e('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-4la0az"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-4la0az"></path></svg>'), Ye = m('<div class="lucky-wheel-history-item history-grid svelte-4la0az"><p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <div class="date-time-cell svelte-4la0az"><span class="svelte-4la0az"> </span> <span class="svelte-4la0az"> </span></div> <div class="history-icon svelte-4la0az"><!></div> <div class="history-icon svelte-4la0az"><!></div></div>'), $e = m('<span class="pagination-ellipsis svelte-4la0az">&hellip;</span>'), ea = m("<button> </button>"), aa = m('<div class="lucky-wheel-pagination svelte-4la0az"><button class="pagination-button pagination-nav svelte-4la0az">&#8249;</button> <div class="pagination-pages svelte-4la0az"></div> <button class="pagination-button pagination-nav svelte-4la0az">&#8250;</button></div>'), ta = m('<div class="lucky-wheel-history-header history-grid svelte-4la0az"><p class="svelte-4la0az">#</p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p></div> <!> <!>', 1), sa = m('<h2 class="no-history svelte-4la0az"> </h2>'), la = m('<div class="history-list svelte-4la0az"><!></div>');
4
- const ra = {
1
+ import { d as Ae, c as Fe, a as Ze, p as oe, o as De, i as R, b as l, s as Ge, f as b, e as Ue, g as le, h as ie, j as p, k as ge, l as _e, m as qe, n as ne, q as fe } from "./WheelOfFortuneWheel-DmTRvIN6.js";
2
+ import { a5 as Je, b1 as X, aQ as Oe, L as e, a9 as Qe, aJ as j, b8 as Xe, b6 as k, aU as pe, b4 as Ke, b2 as K, b3 as s, b9 as v, ba as m, ar as B, bh as ue, bb as ve } from "./utils-BtFS7k_l.js";
3
+ var Ne = b('<div class="lucky-wheel-history-item skeleton-row svelte-4la0az"></div>'), Ve = b('<div class="lucky-wheel-history-header history-grid svelte-4la0az"><p class="svelte-4la0az">#</p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p></div> <!>', 1), he = _e('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-4la0az"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.3977 2.60225C10.6174 2.82192 10.6174 3.17808 10.3977 3.39775L4.89775 8.89775C4.67808 9.11742 4.32192 9.11742 4.10225 8.89775L1.60225 6.39775C1.38258 6.17808 1.38258 5.82192 1.60225 5.60225C1.82192 5.38258 2.17808 5.38258 2.39775 5.60225L4.5 7.7045L9.60225 2.60225C9.82192 2.38258 10.1781 2.38258 10.3977 2.60225Z" fill="#29CF00" class="svelte-4la0az"></path></svg>'), xe = _e('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-4la0az"><path d="M6.73367 6.0952L9.82534 3.0327C9.92639 2.92941 9.98768 2.79371 9.99835 2.6496C10.009 2.50549 9.96841 2.36225 9.88367 2.2452C9.83646 2.1749 9.77377 2.11636 9.70041 2.07407C9.62705 2.03178 9.54498 2.00686 9.46049 2.00123C9.376 1.99559 9.29135 2.0094 9.21302 2.04158C9.1347 2.07376 9.06479 2.12346 9.00867 2.18686L5.91701 5.27853L2.82534 2.18686C2.76922 2.12346 2.69931 2.07376 2.62099 2.04158C2.54266 2.0094 2.45801 1.99559 2.37352 2.00123C2.28903 2.00686 2.20696 2.03178 2.1336 2.07407C2.06024 2.11636 1.99755 2.1749 1.95034 2.2452C1.8656 2.36225 1.82498 2.50549 1.83566 2.6496C1.84633 2.79371 1.90762 2.92941 2.00867 3.0327L5.10034 6.0952L2.00867 9.1577C1.90762 9.26099 1.84633 9.39668 1.83566 9.54079C1.82498 9.6849 1.8656 9.82814 1.95034 9.9452C1.99755 10.0155 2.06024 10.074 2.1336 10.1163C2.20696 10.1586 2.28903 10.1835 2.37352 10.1892C2.45801 10.1948 2.54266 10.181 2.62099 10.1488C2.69931 10.1166 2.76922 10.0669 2.82534 10.0035L5.91701 6.91186L9.00867 10.0035C9.06479 10.0669 9.1347 10.1166 9.21302 10.1488C9.29135 10.181 9.376 10.1948 9.46049 10.1892C9.54498 10.1835 9.62705 10.1586 9.70041 10.1163C9.77377 10.074 9.83646 10.0155 9.88367 9.9452C9.96841 9.82814 10.009 9.6849 9.99835 9.54079C9.98768 9.39668 9.92639 9.26099 9.82534 9.1577L6.73367 6.0952Z" fill="#EB0000" class="svelte-4la0az"></path></svg>'), Ye = b('<div class="lucky-wheel-history-item history-grid svelte-4la0az"><p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <div class="date-time-cell svelte-4la0az"><span class="svelte-4la0az"> </span> <span class="svelte-4la0az"> </span></div> <div class="history-icon svelte-4la0az"><!></div> <div class="history-icon svelte-4la0az"><!></div></div>'), $e = b('<span class="pagination-ellipsis svelte-4la0az">&hellip;</span>'), ea = b("<button> </button>"), aa = b('<div class="lucky-wheel-pagination svelte-4la0az"><button class="pagination-button pagination-nav svelte-4la0az">&#8249;</button> <div class="pagination-pages svelte-4la0az"></div> <button class="pagination-button pagination-nav svelte-4la0az">&#8250;</button></div>'), ta = b('<div class="lucky-wheel-history-header history-grid svelte-4la0az"><p class="svelte-4la0az">#</p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p> <p class="svelte-4la0az"> </p></div> <!> <!>', 1), sa = b('<h2 class="no-history svelte-4la0az"> </h2>'), ra = b('<div class="history-list svelte-4la0az"><!></div>');
4
+ const oa = {
5
5
  hash: "svelte-4la0az",
6
- code: `.svelte-4la0az,
7
- .svelte-4la0az::before,
8
- .svelte-4la0az::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.history-list.svelte-4la0az {display:flex;flex-direction:column;gap:6px;width:90%;margin:0 auto;}.history-grid.svelte-4la0az {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;}.date-time-cell.svelte-4la0az {display:flex;flex-direction:column;gap:2px;}.date-time-cell.svelte-4la0az span:where(.svelte-4la0az):last-child {opacity:0.6;font-size:10px;}.lucky-wheel-history-item.svelte-4la0az {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;}.lucky-wheel-history-header.svelte-4la0az {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;}.history-icon.svelte-4la0az {display:flex;align-items:center;justify-content:center;}.no-history.svelte-4la0az {width:100%;font-size:14px;font-weight:400;margin-top:12px;}.lucky-wheel-pagination.svelte-4la0az {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;}.pagination-pages.svelte-4la0az {display:flex;align-items:center;gap:4px;}.pagination-ellipsis.svelte-4la0az {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;}.pagination-button.svelte-4la0az {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;}.pagination-button.svelte-4la0az:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));}.pagination-button.svelte-4la0az:disabled {opacity:0.4;cursor:not-allowed;}.pagination-page.svelte-4la0az {min-width:32px;text-align:center;padding:6px 8px;}.pagination-nav.svelte-4la0az {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;}.pagination-page.active.svelte-4la0az {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
9
-
6
+ code: ` *,
7
+ *::before,
8
+ *::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .history-list {display:flex;flex-direction:column;gap:6px;width:90%;margin:0 auto;} .history-grid {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;} .date-time-cell {display:flex;flex-direction:column;gap:2px;} .date-time-cell span:last-child {opacity:0.6;font-size:10px;} .lucky-wheel-history-item {width:100%;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);font-size:12px;} .lucky-wheel-history-header {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;} .history-icon {display:flex;align-items:center;justify-content:center;} .no-history {width:100%;font-size:14px;font-weight:400;margin-top:12px;} .lucky-wheel-pagination {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;} .pagination-pages {display:flex;align-items:center;gap:4px;} .pagination-ellipsis {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;} .pagination-button {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;} .pagination-button:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .pagination-button:disabled {opacity:0.4;cursor:not-allowed;} .pagination-page {min-width:32px;text-align:center;padding:6px 8px;} .pagination-nav {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;} .pagination-page.active {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
10
9
  @keyframes svelte-4la0az-skeleton-pulse {
11
10
  0%, 100% {
12
11
  opacity: 0.3;
@@ -14,16 +13,16 @@ const ra = {
14
13
  50% {
15
14
  opacity: 0.6;
16
15
  }
17
- }.skeleton-row.svelte-4la0az {pointer-events:none;
16
+ } .skeleton-row {pointer-events:none;
18
17
  animation: svelte-4la0az-skeleton-pulse 1.4s ease-in-out infinite;height:40px;}`
19
18
  };
20
- function oa(ce, A) {
21
- Je(A, !0), Ze(ce, ra);
22
- const t = () => Ge(Ke, "$_", ze), [ze, me] = Ue(), N = re(A, "programId", 7), V = re(A, "endpoint", 7), F = re(A, "session", 7);
23
- let Y = X(!0), f = X(Oe([])), be = X(!1);
19
+ function la(ce, A) {
20
+ Je(A, !0), Ze(ce, oa);
21
+ const t = () => Ge(Ke, "$_", me), [me, be] = Ue(), N = oe(A, "programId", 7), V = oe(A, "endpoint", 7), F = oe(A, "session", 7);
22
+ let Y = X(!0), f = X(Oe([])), ye = X(!1);
24
23
  const H = 10;
25
24
  let d = X(1);
26
- const Z = pe(() => e(f) && e(f).length > 0 ? Math.ceil(e(f).length / H) : 1), ye = pe(() => e(f) && e(f).length > 0 ? e(f).slice((e(d) - 1) * H, e(d) * H) : []), we = {
25
+ const Z = ve(() => e(f) && e(f).length > 0 ? Math.ceil(e(f).length / H) : 1), ze = ve(() => e(f) && e(f).length > 0 ? e(f).slice((e(d) - 1) * H, e(d) * H) : []), we = {
27
26
  bonus: t()("prizeBonus"),
28
27
  role: t()("prizeRole"),
29
28
  tournament: t()("prizeTournament"),
@@ -32,25 +31,25 @@ function oa(ce, A) {
32
31
  challenge: t()("prizeChallenge"),
33
32
  noprize: t()("noWin"),
34
33
  custom: t()("prizeCustom")
35
- }, Ce = pe(() => {
34
+ }, Ce = ve(() => {
36
35
  const a = e(Z);
37
36
  if (a <= 5)
38
37
  return Array.from({ length: a }, (n, u) => u + 1);
39
- const l = [], g = e(d);
40
- l.push(1), g > 3 && l.push("...");
38
+ const r = [], g = e(d);
39
+ r.push(1), g > 3 && r.push("...");
41
40
  const i = Math.max(2, g - 1), L = Math.min(a - 1, g + 1);
42
41
  for (let n = i; n <= L; n++)
43
- l.push(n);
44
- return g < a - 2 && l.push("..."), a > 1 && l.push(a), l;
42
+ r.push(n);
43
+ return g < a - 2 && r.push("..."), a > 1 && r.push(a), r;
45
44
  }), $ = (a) => {
46
45
  a < 1 || a > e(Z) || (j(d, a, !0), window.scrollTo({ top: 0, behavior: "smooth" }));
47
46
  }, ke = () => {
48
47
  j(Y, !0);
49
- const a = new URL(`${V()}/v1/wof/outcome/${N()}`), l = new Headers();
50
- F() && l.append("X-SessionId", F()), fetch(a, { method: "GET", headers: l, cache: "no-store" }).then((i) => i.json()).then((i) => {
48
+ const a = new URL(`${V()}/v1/wof/outcome/${N()}`), r = new Headers();
49
+ F() && r.append("X-SessionId", F()), fetch(a, { method: "GET", headers: r, cache: "no-store" }).then((i) => i.json()).then((i) => {
51
50
  j(f, i == null ? void 0 : i.items.map((L) => Xe(L, "history")), !0), j(d, 1);
52
51
  }).catch((i) => {
53
- console.log(i), j(be, !0);
52
+ console.log(i), j(ye, !0);
54
53
  }).finally(() => j(Y, !1));
55
54
  };
56
55
  De(() => {
@@ -61,32 +60,32 @@ function oa(ce, A) {
61
60
  return N();
62
61
  },
63
62
  set programId(a) {
64
- N(a), ve();
63
+ N(a), pe();
65
64
  },
66
65
  get endpoint() {
67
66
  return V();
68
67
  },
69
68
  set endpoint(a) {
70
- V(a), ve();
69
+ V(a), pe();
71
70
  },
72
71
  get session() {
73
72
  return F();
74
73
  },
75
74
  set session(a) {
76
- F(a), ve();
75
+ F(a), pe();
77
76
  }
78
- }, ee = la(), Ie = k(ee);
77
+ }, ee = ra(), Ie = k(ee);
79
78
  {
80
79
  var Me = (a) => {
81
- var l = Ve(), g = K(l), i = s(k(g), 2), L = p(i, !0), n = s(i, 2), u = p(n, !0), b = s(n, 2), M = p(b, !0), ae = s(b, 2), D = p(ae, !0);
82
- z(g);
80
+ var r = Ve(), g = K(r), i = s(k(g), 2), L = v(i, !0), n = s(i, 2), u = v(n, !0), y = s(n, 2), M = v(y, !0), ae = s(y, 2), D = v(ae, !0);
81
+ m(g);
83
82
  var te = s(g, 2);
84
- oe(te, 17, () => Array(H), ie, (E, G, U, q) => {
83
+ le(te, 17, () => Array(H), ie, (E, G, U, q) => {
85
84
  var J = Ne();
86
- o(E, J);
85
+ l(E, J);
87
86
  }), B(
88
87
  (E, G, U, q) => {
89
- v(L, E), v(u, G), v(M, U), v(D, q);
88
+ p(L, E), p(u, G), p(M, U), p(D, q);
90
89
  },
91
90
  [
92
91
  () => t()("name"),
@@ -94,93 +93,93 @@ function oa(ce, A) {
94
93
  () => t()("spin"),
95
94
  () => t()("assigned")
96
95
  ]
97
- ), o(a, l);
96
+ ), l(a, r);
98
97
  }, Ee = (a) => {
99
- var l = ge(), g = K(l);
98
+ var r = ge(), g = K(r);
100
99
  {
101
100
  var i = (n) => {
102
- var u = ta(), b = K(u), M = s(k(b), 2), ae = p(M, !0), D = s(M, 2), te = p(D, !0), E = s(D, 2), G = p(E, !0), U = s(E, 2), q = p(U, !0);
103
- z(b);
104
- var J = s(b, 2);
105
- oe(J, 17, () => e(ye), ie, (I, c, y) => {
106
- var h = Ye(), T = k(h), S = p(T), x = s(T, 2), O = p(x, !0), W = s(x, 2), Q = k(W), se = p(Q, !0), w = s(Q, 2), C = p(w, !0);
107
- z(W);
108
- var P = s(W, 2), le = k(P);
101
+ var u = ta(), y = K(u), M = s(k(y), 2), ae = v(M, !0), D = s(M, 2), te = v(D, !0), E = s(D, 2), G = v(E, !0), U = s(E, 2), q = v(U, !0);
102
+ m(y);
103
+ var J = s(y, 2);
104
+ le(J, 17, () => e(ze), ie, (I, c, z) => {
105
+ var h = Ye(), T = k(h), S = v(T), x = s(T, 2), O = v(x, !0), W = s(x, 2), Q = k(W), se = v(Q, !0), w = s(Q, 2), C = v(w, !0);
106
+ m(W);
107
+ var P = s(W, 2), re = k(P);
109
108
  {
110
- var je = (r) => {
109
+ var je = (o) => {
111
110
  var _ = he();
112
- o(r, _);
113
- }, Be = (r) => {
111
+ l(o, _);
112
+ }, Be = (o) => {
114
113
  var _ = xe();
115
- o(r, _);
114
+ l(o, _);
116
115
  };
117
- R(le, (r) => {
118
- e(c).state === "drawn" || e(c).state === "fulfilled" ? r(je) : r(Be, -1);
116
+ R(re, (o) => {
117
+ e(c).state === "drawn" || e(c).state === "fulfilled" ? o(je) : o(Be, -1);
119
118
  });
120
119
  }
121
- z(P);
120
+ m(P);
122
121
  var de = s(P, 2), He = k(de);
123
122
  {
124
- var Se = (r) => {
123
+ var Se = (o) => {
125
124
  var _ = he();
126
- o(r, _);
127
- }, We = (r) => {
125
+ l(o, _);
126
+ }, We = (o) => {
128
127
  var _ = xe();
129
- o(r, _);
128
+ l(o, _);
130
129
  };
131
- R(He, (r) => {
132
- e(c).completed && e(c).state === "fulfilled" ? r(Se) : r(We, -1);
130
+ R(He, (o) => {
131
+ e(c).completed && e(c).state === "fulfilled" ? o(Se) : o(We, -1);
133
132
  });
134
133
  }
135
- z(de), z(h), B(
136
- (r, _) => {
137
- v(S, `${(e(d) - 1) * H + y + 1}.`), v(O, we[e(c).type] || "-"), v(se, r), v(C, _);
134
+ m(de), m(h), B(
135
+ (o, _) => {
136
+ p(S, `${(e(d) - 1) * H + z + 1}.`), p(O, we[e(c).type] || "-"), p(se, o), p(C, _);
138
137
  },
139
138
  [
140
139
  () => ue(e(c).time).date,
141
140
  () => ue(e(c).time).time
142
141
  ]
143
- ), o(I, h);
142
+ ), l(I, h);
144
143
  });
145
144
  var Pe = s(J, 2);
146
145
  {
147
146
  var Re = (I) => {
148
- var c = aa(), y = k(c), h = s(y, 2);
149
- oe(h, 21, () => e(Ce), ie, (S, x) => {
147
+ var c = aa(), z = k(c), h = s(z, 2);
148
+ le(h, 21, () => e(Ce), ie, (S, x) => {
150
149
  var O = ge(), W = K(O);
151
150
  {
152
151
  var Q = (w) => {
153
152
  var C = $e();
154
- o(w, C);
153
+ l(w, C);
155
154
  }, se = (w) => {
156
155
  var C = ea();
157
156
  let P;
158
- var le = p(C, !0);
157
+ var re = v(C, !0);
159
158
  B(() => {
160
- P = qe(C, 1, "pagination-button pagination-page svelte-4la0az", null, P, { active: e(d) === e(x) }), v(le, e(x));
161
- }), ne("click", C, () => $(e(x))), o(w, C);
159
+ P = qe(C, 1, "pagination-button pagination-page svelte-4la0az", null, P, { active: e(d) === e(x) }), p(re, e(x));
160
+ }), ne("click", C, () => $(e(x))), l(w, C);
162
161
  };
163
162
  R(W, (w) => {
164
163
  e(x) === "..." ? w(Q) : w(se, -1);
165
164
  });
166
165
  }
167
- o(S, O);
168
- }), z(h);
166
+ l(S, O);
167
+ }), m(h);
169
168
  var T = s(h, 2);
170
- z(c), B(
169
+ m(c), B(
171
170
  (S, x) => {
172
- y.disabled = e(d) === 1, fe(y, "aria-label", S), T.disabled = e(d) === e(Z), fe(T, "aria-label", x);
171
+ z.disabled = e(d) === 1, fe(z, "aria-label", S), T.disabled = e(d) === e(Z), fe(T, "aria-label", x);
173
172
  },
174
173
  [() => t()("previous"), () => t()("next")]
175
- ), ne("click", y, () => $(e(d) - 1)), ne("click", T, () => $(e(d) + 1)), o(I, c);
174
+ ), ne("click", z, () => $(e(d) - 1)), ne("click", T, () => $(e(d) + 1)), l(I, c);
176
175
  };
177
176
  R(Pe, (I) => {
178
177
  e(Z) > 1 && I(Re);
179
178
  });
180
179
  }
181
180
  B(
182
- (I, c, y, h) => {
183
- v(ae, I), v(te, c), v(G, y), v(q, h);
181
+ (I, c, z, h) => {
182
+ p(ae, I), p(te, c), p(G, z), p(q, h);
184
183
  },
185
184
  [
186
185
  () => t()("name"),
@@ -188,27 +187,27 @@ function oa(ce, A) {
188
187
  () => t()("spin"),
189
188
  () => t()("assigned")
190
189
  ]
191
- ), o(n, u);
190
+ ), l(n, u);
192
191
  }, L = (n) => {
193
- var u = sa(), b = p(u, !0);
194
- B((M) => v(b, M), [() => t()("noHistory")]), o(n, u);
192
+ var u = sa(), y = v(u, !0);
193
+ B((M) => p(y, M), [() => t()("noHistory")]), l(n, u);
195
194
  };
196
195
  R(g, (n) => {
197
196
  e(f) && e(f).length > 0 ? n(i) : n(L, -1);
198
197
  });
199
198
  }
200
- o(a, l);
199
+ l(a, r);
201
200
  };
202
201
  R(Ie, (a) => {
203
202
  e(Y) ? a(Me) : a(Ee, -1);
204
203
  });
205
204
  }
206
- z(ee), o(ce, ee);
205
+ m(ee), l(ce, ee);
207
206
  var Te = Qe(Le);
208
- return me(), Te;
207
+ return be(), Te;
209
208
  }
210
209
  Ae(["click"]);
211
- Fe(oa, { programId: {}, endpoint: {}, session: {} }, [], [], { mode: "open" });
210
+ Fe(la, { programId: {}, endpoint: {}, session: {} }, [], [], { mode: "open" });
212
211
  export {
213
- oa as W
212
+ la as W
214
213
  };
@@ -0,0 +1,107 @@
1
+ import { c as ne, a as le, p as B, i as w, b as n, f as m, e as de, j as l, s as pe, q as C, k as E, g as G, h as H } from "./WheelOfFortuneWheel-D_tfW-rK.js";
2
+ import { a5 as ve, ar as _, a9 as fe, aU as I, b6 as r, bf as d, b5 as g, b9 as s, bi as J, b3 as ce, b2 as K, bj as ge, L as x } from "./utils-B86dsoC-.js";
3
+ var xe = m('<a class="terms-link" target="_blank" rel="noopener"><span> </span></a>'), me = m('<div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div>'), ue = m('<span class="reward-label"> </span>'), _e = m('<img class="reward-icon" alt=""/>'), be = m('<span class="reward-item"><!></span>'), he = m('<div class="rules-content"><div class="game-description"> </div> <!> <div class="rules-details"><div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div> <!> <div class="detail-item rewards"><div class="detail-text"><strong> </strong> <span class="reward-list"><!></span></div></div></div></div>');
4
+ const ye = {
5
+ hash: "svelte-1b0ztto",
6
+ code: ` *,
7
+ *::before,
8
+ *::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .rules-content {display:flex;flex-direction:column;gap:16px;width:90%;color:var(--color-text-default, #ffffff);font-family:inherit;} .game-description {font-size:12px;color:var(--color-text-default, #ffffff);} .terms-link {display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-style:italic;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--color-text-default, #ffffff);cursor:pointer;} .rules-details {display:flex;flex-direction:column;gap:12px;} .detail-item {display:flex;width:100%;gap:10px;justify-content:space-between;align-items:flex-start;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);} .detail-item .icon {flex:0 0 auto;width:18px;height:18px;margin-top:2px;opacity:0.85;} .detail-text {display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0;} .detail-text strong {font-size:14px;font-weight:700;opacity:0.9;} .detail-text > span {font-size:12px;opacity:0.95;font-style:italic;} .reward-list {display:flex;flex-direction:column;gap:10px;} .reward-item {display:flex;align-items:center;gap:10px;} .reward-label {font-size:12px;} .reward-icon {width:22px;height:22px;object-fit:contain;}`
9
+ };
10
+ function we(T, $) {
11
+ ve($, !0), le(T, ye);
12
+ const u = () => pe(ce, "$_", M), [M, N] = de(), i = B($, "program", 7), b = B($, "language", 7, "en");
13
+ var Q = {
14
+ get program() {
15
+ return i();
16
+ },
17
+ set program(e) {
18
+ i(e), I();
19
+ },
20
+ get language() {
21
+ return b();
22
+ },
23
+ set language(e = "en") {
24
+ b(e), I();
25
+ }
26
+ }, k = he(), U = r(k), V = d(U, !0), D = g(U, 2);
27
+ {
28
+ var X = (e) => {
29
+ var a = xe(), p = r(a), v = d(p, !0);
30
+ s(a), _(
31
+ (t) => {
32
+ C(a, "href", i().termsUrl), l(v, t);
33
+ },
34
+ [() => u()("terms")]
35
+ ), n(e, a);
36
+ };
37
+ w(D, (e) => {
38
+ i().termsUrl && e(X);
39
+ });
40
+ }
41
+ var F = g(D, 2), z = r(F), L = r(z), W = r(L), Y = d(W, !0), Z = g(W, 2), ee = d(Z);
42
+ s(L), s(z);
43
+ var q = g(z, 2);
44
+ {
45
+ var ae = (e) => {
46
+ var a = E(), p = K(a);
47
+ G(p, 17, () => i().periods, H, (v, t) => {
48
+ var f = me(), h = r(f), y = r(h), j = d(y, !0), o = g(y, 2), c = d(o, !0);
49
+ s(h), s(f), _(
50
+ (R, oe) => {
51
+ l(j, R), l(c, oe);
52
+ },
53
+ [
54
+ () => u()("recurrenceLabel"),
55
+ () => ge(x(t))
56
+ ]
57
+ ), n(v, f);
58
+ }), n(e, a);
59
+ };
60
+ w(q, (e) => {
61
+ i()?.periods && e(ae);
62
+ });
63
+ }
64
+ var O = g(q, 2), P = r(O), S = r(P), te = d(S, !0), A = g(S, 2), re = r(A);
65
+ {
66
+ var se = (e) => {
67
+ var a = E(), p = K(a);
68
+ G(p, 17, () => i()?.partitions, H, (v, t) => {
69
+ var f = be(), h = r(f);
70
+ {
71
+ var y = (o) => {
72
+ var c = ue(), R = d(c, !0);
73
+ _(() => l(R, x(t).name["*"] || x(t).name[b()])), n(o, c);
74
+ }, j = (o) => {
75
+ var c = _e();
76
+ _(() => C(c, "src", x(t).image1["*"] || x(t).image1[b()])), n(o, c);
77
+ };
78
+ w(h, (o) => {
79
+ x(t).name["*"] ? o(y) : o(j, -1);
80
+ });
81
+ }
82
+ s(f), n(v, f);
83
+ }), n(e, a);
84
+ };
85
+ w(re, (e) => {
86
+ i()?.partitions && e(se);
87
+ });
88
+ }
89
+ s(A), s(P), s(O), s(F), s(k), _(
90
+ (e, a, p, v, t) => {
91
+ l(V, e), l(Y, a), l(ee, `${p ?? ""} ~ ${v ?? ""}`), l(te, t);
92
+ },
93
+ [
94
+ () => u()("rulesDescription"),
95
+ () => u()("availablePeriod"),
96
+ () => J(i()?.startTime),
97
+ () => J(i()?.endTime),
98
+ () => u()("topRewards")
99
+ ]
100
+ ), n(T, k);
101
+ var ie = fe(Q);
102
+ return N(), ie;
103
+ }
104
+ ne(we, { program: {}, language: {} }, [], [], { mode: "open" });
105
+ export {
106
+ we as W
107
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";const t=require("./WheelOfFortuneWheel-CUs0nOjA.cjs"),e=require("./utils-By_D2O28.cjs");var K=t.from_html('<a class="terms-link" target="_blank" rel="noopener"><span> </span></a>'),M=t.from_html('<div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div>'),N=t.from_html('<span class="reward-label"> </span>'),Q=t.from_html('<img class="reward-icon" alt=""/>'),V=t.from_html('<span class="reward-item"><!></span>'),X=t.from_html('<div class="rules-content"><div class="game-description"> </div> <!> <div class="rules-details"><div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div> <!> <div class="detail-item rewards"><div class="detail-text"><strong> </strong> <span class="reward-list"><!></span></div></div></div></div>');const Y={hash:"svelte-1b0ztto",code:` *,
2
+ *::before,
3
+ *::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .rules-content {display:flex;flex-direction:column;gap:16px;width:90%;color:var(--color-text-default, #ffffff);font-family:inherit;} .game-description {font-size:12px;color:var(--color-text-default, #ffffff);} .terms-link {display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-style:italic;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--color-text-default, #ffffff);cursor:pointer;} .rules-details {display:flex;flex-direction:column;gap:12px;} .detail-item {display:flex;width:100%;gap:10px;justify-content:space-between;align-items:flex-start;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);} .detail-item .icon {flex:0 0 auto;width:18px;height:18px;margin-top:2px;opacity:0.85;} .detail-text {display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0;} .detail-text strong {font-size:14px;font-weight:700;opacity:0.9;} .detail-text > span {font-size:12px;opacity:0.95;font-style:italic;} .reward-list {display:flex;flex-direction:column;gap:10px;} .reward-item {display:flex;align-items:center;gap:10px;} .reward-label {font-size:12px;} .reward-icon {width:22px;height:22px;object-fit:contain;}`};function T(b,g){e.push(g,!0),t.append_styles(b,Y);const p=()=>t.store_get(e.$format,"$_",j),[j,q]=t.setup_stores(),l=t.prop(g,"program",7),f=t.prop(g,"language",7,"en");var S={get program(){return l()},set program(r){l(r),e.flushSync()},get language(){return f()},set language(r="en"){f(r),e.flushSync()}},m=X(),y=e.child(m),U=e.only_child(y,!0),w=e.sibling(y,2);{var L=r=>{var a=K(),n=e.child(a),o=e.only_child(n,!0);e.reset(a),e.template_effect(i=>{t.set_attribute(a,"href",l().termsUrl),t.set_text(o,i)},[()=>p()("terms")]),t.append(r,a)};t.if_block(w,r=>{l().termsUrl&&r(L)})}var k=e.sibling(w,2),x=e.child(k),$=e.child(x),z=e.child($),P=e.only_child(z,!0),A=e.sibling(z,2),B=e.only_child(A);e.reset($),e.reset(x);var F=e.sibling(x,2);{var C=r=>{var a=t.comment(),n=e.first_child(a);t.each(n,17,()=>l().periods,t.index,(o,i)=>{var d=M(),v=e.child(d),_=e.child(v),u=e.only_child(_,!0),s=e.sibling(_,2),c=e.only_child(s,!0);e.reset(v),e.reset(d),e.template_effect((h,J)=>{t.set_text(u,h),t.set_text(c,J)},[()=>p()("recurrenceLabel"),()=>e.getRecurrenceText(e.get(i))]),t.append(o,d)}),t.append(r,a)};t.if_block(F,r=>{l()?.periods&&r(C)})}var R=e.sibling(F,2),W=e.child(R),D=e.child(W),E=e.only_child(D,!0),O=e.sibling(D,2),G=e.child(O);{var H=r=>{var a=t.comment(),n=e.first_child(a);t.each(n,17,()=>l()?.partitions,t.index,(o,i)=>{var d=V(),v=e.child(d);{var _=s=>{var c=N(),h=e.only_child(c,!0);e.template_effect(()=>t.set_text(h,e.get(i).name["*"]||e.get(i).name[f()])),t.append(s,c)},u=s=>{var c=Q();e.template_effect(()=>t.set_attribute(c,"src",e.get(i).image1["*"]||e.get(i).image1[f()])),t.append(s,c)};t.if_block(v,s=>{e.get(i).name["*"]?s(_):s(u,-1)})}e.reset(d),t.append(o,d)}),t.append(r,a)};t.if_block(G,r=>{l()?.partitions&&r(H)})}e.reset(O),e.reset(W),e.reset(R),e.reset(k),e.reset(m),e.template_effect((r,a,n,o,i)=>{t.set_text(U,r),t.set_text(P,a),t.set_text(B,`${n??""} ~ ${o??""}`),t.set_text(E,i)},[()=>p()("rulesDescription"),()=>p()("availablePeriod"),()=>e.getFormattedDate(l()?.startTime),()=>e.getFormattedDate(l()?.endTime),()=>p()("topRewards")]),t.append(b,m);var I=e.pop(S);return q(),I}t.create_custom_element(T,{program:{},language:{}},[],[],{mode:"open"});exports.WheelOfFortuneRules=T;
@@ -0,0 +1,118 @@
1
+ import { c as ne, a as le, p as C, i as w, b as d, f as m, e as de, q as E, j as p, k as G, g as H, h as I, s as pe } from "./WheelOfFortuneWheel-DmTRvIN6.js";
2
+ import { a5 as ve, b3 as g, ar as _, a9 as fe, b6 as s, aU as J, b9 as v, ba as i, b2 as K, bi as ce, L as x, bj as M, b4 as ge } from "./utils-BtFS7k_l.js";
3
+ var xe = m('<a class="terms-link" target="_blank" rel="noopener"><span> </span></a>'), me = m('<div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div>'), ue = m('<span class="reward-label"> </span>'), _e = m('<img class="reward-icon" alt=""/>'), be = m('<span class="reward-item"><!></span>'), he = m('<div class="rules-content"><div class="game-description"> </div> <!> <div class="rules-details"><div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div> <!> <div class="detail-item rewards"><div class="detail-text"><strong> </strong> <span class="reward-list"><!></span></div></div></div></div>');
4
+ const ye = {
5
+ hash: "svelte-1b0ztto",
6
+ code: ` *,
7
+ *::before,
8
+ *::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .rules-content {display:flex;flex-direction:column;gap:16px;width:90%;color:var(--color-text-default, #ffffff);font-family:inherit;} .game-description {font-size:12px;color:var(--color-text-default, #ffffff);} .terms-link {display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-style:italic;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--color-text-default, #ffffff);cursor:pointer;} .rules-details {display:flex;flex-direction:column;gap:12px;} .detail-item {display:flex;width:100%;gap:10px;justify-content:space-between;align-items:flex-start;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);} .detail-item .icon {flex:0 0 auto;width:18px;height:18px;margin-top:2px;opacity:0.85;} .detail-text {display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0;} .detail-text strong {font-size:14px;font-weight:700;opacity:0.9;} .detail-text > span {font-size:12px;opacity:0.95;font-style:italic;} .reward-list {display:flex;flex-direction:column;gap:10px;} .reward-item {display:flex;align-items:center;gap:10px;} .reward-label {font-size:12px;} .reward-icon {width:22px;height:22px;object-fit:contain;}`
9
+ };
10
+ function we(U, k) {
11
+ ve(k, !0), le(U, ye);
12
+ const u = () => pe(ge, "$_", N), [N, Q] = de(), o = C(k, "program", 7), b = C(k, "language", 7, "en");
13
+ var V = {
14
+ get program() {
15
+ return o();
16
+ },
17
+ set program(e) {
18
+ o(e), J();
19
+ },
20
+ get language() {
21
+ return b();
22
+ },
23
+ set language(e = "en") {
24
+ b(e), J();
25
+ }
26
+ }, z = he(), D = s(z), X = v(D, !0), F = g(D, 2);
27
+ {
28
+ var Y = (e) => {
29
+ var a = xe(), n = s(a), t = v(n, !0);
30
+ i(a), _(
31
+ (r) => {
32
+ E(a, "href", o().termsUrl), p(t, r);
33
+ },
34
+ [() => u()("terms")]
35
+ ), d(e, a);
36
+ };
37
+ w(F, (e) => {
38
+ o().termsUrl && e(Y);
39
+ });
40
+ }
41
+ var L = g(F, 2), j = s(L), W = s(j), q = s(W), Z = v(q, !0), $ = g(q, 2), ee = v($);
42
+ i(W), i(j);
43
+ var O = g(j, 2);
44
+ {
45
+ var ae = (e) => {
46
+ var a = G(), n = K(a);
47
+ H(n, 17, () => o().periods, I, (t, r) => {
48
+ var f = me(), h = s(f), y = s(h), R = v(y, !0), l = g(y, 2), c = v(l, !0);
49
+ i(h), i(f), _(
50
+ (T, oe) => {
51
+ p(R, T), p(c, oe);
52
+ },
53
+ [
54
+ () => u()("recurrenceLabel"),
55
+ () => ce(x(r))
56
+ ]
57
+ ), d(t, f);
58
+ }), d(e, a);
59
+ };
60
+ w(O, (e) => {
61
+ var a;
62
+ (a = o()) != null && a.periods && e(ae);
63
+ });
64
+ }
65
+ var P = g(O, 2), S = s(P), A = s(S), te = v(A, !0), B = g(A, 2), re = s(B);
66
+ {
67
+ var se = (e) => {
68
+ var a = G(), n = K(a);
69
+ H(n, 17, () => {
70
+ var t;
71
+ return (t = o()) == null ? void 0 : t.partitions;
72
+ }, I, (t, r) => {
73
+ var f = be(), h = s(f);
74
+ {
75
+ var y = (l) => {
76
+ var c = ue(), T = v(c, !0);
77
+ _(() => p(T, x(r).name["*"] || x(r).name[b()])), d(l, c);
78
+ }, R = (l) => {
79
+ var c = _e();
80
+ _(() => E(c, "src", x(r).image1["*"] || x(r).image1[b()])), d(l, c);
81
+ };
82
+ w(h, (l) => {
83
+ x(r).name["*"] ? l(y) : l(R, -1);
84
+ });
85
+ }
86
+ i(f), d(t, f);
87
+ }), d(e, a);
88
+ };
89
+ w(re, (e) => {
90
+ var a;
91
+ (a = o()) != null && a.partitions && e(se);
92
+ });
93
+ }
94
+ i(B), i(S), i(P), i(L), i(z), _(
95
+ (e, a, n, t, r) => {
96
+ p(X, e), p(Z, a), p(ee, `${n != null ? n : ""} ~ ${t != null ? t : ""}`), p(te, r);
97
+ },
98
+ [
99
+ () => u()("rulesDescription"),
100
+ () => u()("availablePeriod"),
101
+ () => {
102
+ var e;
103
+ return M((e = o()) == null ? void 0 : e.startTime);
104
+ },
105
+ () => {
106
+ var e;
107
+ return M((e = o()) == null ? void 0 : e.endTime);
108
+ },
109
+ () => u()("topRewards")
110
+ ]
111
+ ), d(U, z);
112
+ var ie = fe(V);
113
+ return Q(), ie;
114
+ }
115
+ ne(we, { program: {}, language: {} }, [], [], { mode: "open" });
116
+ export {
117
+ we as W
118
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";const t=require("./WheelOfFortuneWheel-D9nXwM0H.cjs"),e=require("./utils-CSIl6eA7.cjs");var M=t.from_html('<a class="terms-link" target="_blank" rel="noopener"><span> </span></a>'),N=t.from_html('<div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div>'),Q=t.from_html('<span class="reward-label"> </span>'),V=t.from_html('<img class="reward-icon" alt=""/>'),X=t.from_html('<span class="reward-item"><!></span>'),Y=t.from_html('<div class="rules-content"><div class="game-description"> </div> <!> <div class="rules-details"><div class="detail-item"><div class="detail-text"><strong> </strong> <span> </span></div></div> <!> <div class="detail-item rewards"><div class="detail-text"><strong> </strong> <span class="reward-list"><!></span></div></div></div></div>');const Z={hash:"svelte-1b0ztto",code:` *,
2
+ *::before,
3
+ *::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;} .rules-content {display:flex;flex-direction:column;gap:16px;width:90%;color:var(--color-text-default, #ffffff);font-family:inherit;} .game-description {font-size:12px;color:var(--color-text-default, #ffffff);} .terms-link {display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-style:italic;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--color-text-default, #ffffff);cursor:pointer;} .rules-details {display:flex;flex-direction:column;gap:12px;} .detail-item {display:flex;width:100%;gap:10px;justify-content:space-between;align-items:flex-start;border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:8px 12px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);} .detail-item .icon {flex:0 0 auto;width:18px;height:18px;margin-top:2px;opacity:0.85;} .detail-text {display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0;} .detail-text strong {font-size:14px;font-weight:700;opacity:0.9;} .detail-text > span {font-size:12px;opacity:0.95;font-style:italic;} .reward-list {display:flex;flex-direction:column;gap:10px;} .reward-item {display:flex;align-items:center;gap:10px;} .reward-label {font-size:12px;} .reward-icon {width:22px;height:22px;object-fit:contain;}`};function j(b,g){e.push(g,!0),t.append_styles(b,Z);const p=()=>t.store_get(e.$format,"$_",q),[q,S]=t.setup_stores(),s=t.prop(g,"program",7),f=t.prop(g,"language",7,"en");var U={get program(){return s()},set program(r){s(r),e.flushSync()},get language(){return f()},set language(r="en"){f(r),e.flushSync()}},m=Y(),y=e.child(m),L=e.only_child(y,!0),w=e.sibling(y,2);{var P=r=>{var a=M(),n=e.child(a),i=e.only_child(n,!0);e.reset(a),e.template_effect(l=>{t.set_attribute(a,"href",s().termsUrl),t.set_text(i,l)},[()=>p()("terms")]),t.append(r,a)};t.if_block(w,r=>{s().termsUrl&&r(P)})}var k=e.sibling(w,2),x=e.child(k),z=e.child(x),F=e.child(z),A=e.only_child(F,!0),B=e.sibling(F,2),C=e.only_child(B);e.reset(z),e.reset(x);var R=e.sibling(x,2);{var E=r=>{var a=t.comment(),n=e.first_child(a);t.each(n,17,()=>s().periods,t.index,(i,l)=>{var d=N(),v=e.child(d),_=e.child(v),u=e.only_child(_,!0),o=e.sibling(_,2),c=e.only_child(o,!0);e.reset(v),e.reset(d),e.template_effect((h,K)=>{t.set_text(u,h),t.set_text(c,K)},[()=>p()("recurrenceLabel"),()=>e.getRecurrenceText(e.get(l))]),t.append(i,d)}),t.append(r,a)};t.if_block(R,r=>{var a;(a=s())!=null&&a.periods&&r(E)})}var W=e.sibling(R,2),D=e.child(W),O=e.child(D),G=e.only_child(O,!0),T=e.sibling(O,2),H=e.child(T);{var I=r=>{var a=t.comment(),n=e.first_child(a);t.each(n,17,()=>{var i;return(i=s())==null?void 0:i.partitions},t.index,(i,l)=>{var d=X(),v=e.child(d);{var _=o=>{var c=Q(),h=e.only_child(c,!0);e.template_effect(()=>t.set_text(h,e.get(l).name["*"]||e.get(l).name[f()])),t.append(o,c)},u=o=>{var c=V();e.template_effect(()=>t.set_attribute(c,"src",e.get(l).image1["*"]||e.get(l).image1[f()])),t.append(o,c)};t.if_block(v,o=>{e.get(l).name["*"]?o(_):o(u,-1)})}e.reset(d),t.append(i,d)}),t.append(r,a)};t.if_block(H,r=>{var a;(a=s())!=null&&a.partitions&&r(I)})}e.reset(T),e.reset(D),e.reset(W),e.reset(k),e.reset(m),e.template_effect((r,a,n,i,l)=>{t.set_text(L,r),t.set_text(A,a),t.set_text(C,`${n!=null?n:""} ~ ${i!=null?i:""}`),t.set_text(G,l)},[()=>p()("rulesDescription"),()=>p()("availablePeriod"),()=>{var r;return e.getFormattedDate((r=s())==null?void 0:r.startTime)},()=>{var r;return e.getFormattedDate((r=s())==null?void 0:r.endTime)},()=>p()("topRewards")]),t.append(b,m);var J=e.pop(U);return S(),J}t.create_custom_element(j,{program:{},language:{}},[],[],{mode:"open"});exports.WheelOfFortuneRules=j;