@everymatrix/mini-games-hub 0.2.8 → 0.2.9

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 (61) hide show
  1. package/components/ArrowLeftIcon-BBQbSgPj.js +20 -0
  2. package/components/ArrowLeftIcon-CK2Rm6IW.cjs +1 -0
  3. package/components/ArrowLeftIcon-CbMwJALt.js +20 -0
  4. package/components/ArrowLeftIcon-Ls7P40Uk.cjs +1 -0
  5. package/components/{CoinFlip-BOrc1Sgy.cjs → CoinFlip-CWv6r8u1.cjs} +1 -1
  6. package/components/{CoinFlip-DiCOvx3Q.cjs → CoinFlip-CaRkaWEA.cjs} +1 -1
  7. package/components/{CoinFlip-DgM6tDy5.js → CoinFlip-D3kH_y8b.js} +17 -17
  8. package/components/{CoinFlip-uc2aguuz.js → CoinFlip-hKLoCmvJ.js} +1 -1
  9. package/components/{CoinRoyale-fp-xfwl2.js → CoinRoyale-Cr3FMU-f.js} +105 -101
  10. package/components/{CoinRoyale-Bkr3Rd-u.cjs → CoinRoyale-DcXB88TG.cjs} +4 -4
  11. package/components/{CoinRoyale-DLL1bCAy.js → CoinRoyale-HFE5DCkQ.js} +120 -116
  12. package/components/{CoinRoyale-BH73ZSrU.cjs → CoinRoyale-mXlKdlwT.cjs} +4 -4
  13. package/components/{GameCard-Qh_fk15-.cjs → GameCard-BPoaBZ8h.cjs} +3 -3
  14. package/components/{GameCard-BiO9Cay-.cjs → GameCard-DfVe9CgG.cjs} +3 -3
  15. package/components/{GameCard-jCZ6S2Wu.js → GameCard-cglVYPLz.js} +31 -31
  16. package/components/{GameCard-D78hDMaL.js → GameCard-grRDxpTz.js} +36 -36
  17. package/components/{MiniGamesHub-Bf2Cd1bB.js → MiniGamesHub-CxhilLzF.js} +157 -88
  18. package/components/{MiniGamesHub-KqAdBJEX.js → MiniGamesHub-DUICCoYd.js} +137 -68
  19. package/components/MiniGamesHub-DW82s9I9.cjs +79 -0
  20. package/components/MiniGamesHub-uuQkACzs.cjs +79 -0
  21. package/components/{WheelOfFortune-CBYo6vCg.js → WheelOfFortune-CsDXFzBd.js} +19 -19
  22. package/components/{WheelOfFortune-XfmUFV3-.cjs → WheelOfFortune-DGY-q1LW.cjs} +1 -1
  23. package/components/{WheelOfFortune-CDTzbAjp.cjs → WheelOfFortune-DfN31a-S.cjs} +1 -1
  24. package/components/{WheelOfFortune-8HCl7aHv.js → WheelOfFortune-MIjCRllT.js} +28 -28
  25. package/components/WheelOfFortuneDrawResults-CKN979BS.js +261 -0
  26. package/components/WheelOfFortuneDrawResults-CmfWdZz0.cjs +1 -0
  27. package/components/WheelOfFortuneDrawResults-Di5DQfhF.cjs +1 -0
  28. package/components/WheelOfFortuneDrawResults-Dr-xmM_N.js +286 -0
  29. package/components/WheelOfFortuneHistory-BL4DV0im.cjs +13 -0
  30. package/components/WheelOfFortuneHistory-CqRO9Oee.cjs +13 -0
  31. package/components/WheelOfFortuneHistory-DFn33FhJ.js +222 -0
  32. package/components/WheelOfFortuneHistory-DvqIUld0.js +223 -0
  33. package/components/WheelOfFortuneRules-BxMUpX5_.js +120 -0
  34. package/components/WheelOfFortuneRules-CnS5xZ_B.js +109 -0
  35. package/components/WheelOfFortuneRules-Cu5CBrl6.cjs +5 -0
  36. package/components/WheelOfFortuneRules-UZj0hVWC.cjs +5 -0
  37. package/components/{WheelOfFortuneWheel-F62aU_CL.js → WheelOfFortuneWheel-C694AcSr.js} +280 -263
  38. package/components/WheelOfFortuneWheel-CvGaRYgu.cjs +3 -0
  39. package/components/WheelOfFortuneWheel-Dxh6wKCh.cjs +3 -0
  40. package/components/{WheelOfFortuneWheel-CiyQZNAd.js → WheelOfFortuneWheel-cBswACGf.js} +515 -498
  41. package/es2015/mini-games-hub.cjs +1 -1
  42. package/es2015/mini-games-hub.js +1 -1
  43. package/esnext/mini-games-hub.cjs +1 -1
  44. package/esnext/mini-games-hub.js +1 -1
  45. package/package.json +1 -1
  46. package/components/MiniGamesHub-5tuj6CDm.cjs +0 -16
  47. package/components/MiniGamesHub-SxucWl3S.cjs +0 -16
  48. package/components/WheelOfFortuneDrawResults-CASEqNiM.cjs +0 -1
  49. package/components/WheelOfFortuneDrawResults-DqgsImHB.js +0 -254
  50. package/components/WheelOfFortuneDrawResults-DsfJ3803.js +0 -279
  51. package/components/WheelOfFortuneDrawResults-l8iWZa_e.cjs +0 -1
  52. package/components/WheelOfFortuneHistory-CF8B0i5m.js +0 -213
  53. package/components/WheelOfFortuneHistory-Cnk8otCw.js +0 -213
  54. package/components/WheelOfFortuneHistory-DARohsMs.cjs +0 -12
  55. package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +0 -12
  56. package/components/WheelOfFortuneRules-BZqR4cT9.js +0 -118
  57. package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +0 -3
  58. package/components/WheelOfFortuneRules-CRGG3J0S.js +0 -107
  59. package/components/WheelOfFortuneRules-DLj96pqu.cjs +0 -3
  60. package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +0 -3
  61. package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +0 -3
@@ -1,213 +0,0 @@
1
- import { d as Aa, c as Fa, a as Oa, p as ia, o as Za, i as B, b as l, s as Da, f as m, e as Ga, g as na, h as pa, j as va, k as n, l as fa, m as _a, n as Ua, q as ca } from "./WheelOfFortuneWheel-F62aU_CL.js";
2
- import { b1 as N, aQ as qa, ar as M, a9 as Ja, aU as da, a5 as Qa, b3 as Xa, b6 as u, L as a, ba as g, aJ as H, b9 as $a, b2 as V, b5 as s, b7 as p, O as Ka, bh as xa, bc as ha } from "./utils-3LNftCeZ.js";
3
- var Na = m('<div class="lucky-wheel-history-item history-grid history-skeleton-row svelte-4la0az" aria-hidden="true"><p class="svelte-4la0az"><span class="history-skeleton-bar svelte-4la0az"></span></p> <p class="svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--name svelte-4la0az">&nbsp;</span></p> <div class="date-time-cell svelte-4la0az"><span class="history-skeleton-bar svelte-4la0az">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-4la0az">00:00:00</span></div> <div class="history-icon svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-4la0az"></span></div> <div class="history-icon svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-4la0az"></span></div></div>'), Va = 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), ya = _a('<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>'), ba = _a('<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>'), Ya = 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>'), ae = m('<span class="pagination-ellipsis svelte-4la0az">&hellip;</span>'), ee = m("<button> </button>"), te = 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>'), se = 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), re = m('<h2 class="no-history svelte-4la0az"> </h2>'), oe = m('<div class="history-list svelte-4la0az"><!></div>');
4
- const le = {
5
- hash: "svelte-4la0az",
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:100%;max-width:700px;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;}
9
- @keyframes svelte-4la0az-skeleton-pulse {
10
- 0%, 100% {
11
- opacity: 0.3;
12
- }
13
- 50% {
14
- opacity: 0.6;
15
- }
16
- } .history-skeleton-row {pointer-events:none;
17
- animation: svelte-4la0az-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`
18
- };
19
- function ie(ga, O) {
20
- Qa(O, !0), Oa(ga, le);
21
- const t = () => Da(Xa, "$_", ma), [ma, za] = Ga(), Y = ia(O, "programId", 7), aa = ia(O, "endpoint", 7), Z = ia(O, "session", 7);
22
- let D = N(!0), f = N(qa([])), wa = N(!1);
23
- const S = 10;
24
- let d = N(1);
25
- const G = ha(() => a(f) && a(f).length > 0 ? Math.ceil(a(f).length / S) : 1), ka = ha(() => a(f) && a(f).length > 0 ? a(f).slice((a(d) - 1) * S, a(d) * S) : []), Ca = {
26
- bonus: t()("prizeBonus"),
27
- role: t()("prizeRole"),
28
- tournament: t()("prizeTournament"),
29
- ticket: t()("prizeTicket"),
30
- loyalty: t()("prizeLoyalty"),
31
- challenge: t()("prizeChallenge"),
32
- noprize: t()("noWin"),
33
- custom: t()("prizeCustom")
34
- }, La = ha(() => {
35
- const e = a(G);
36
- if (e <= 5)
37
- return Array.from({ length: e }, (i, x) => x + 1);
38
- const r = [], h = a(d);
39
- r.push(1), h > 3 && r.push("...");
40
- const c = Math.max(2, h - 1), L = Math.min(e - 1, h + 1);
41
- for (let i = c; i <= L; i++)
42
- r.push(i);
43
- return h < e - 2 && r.push("..."), e > 1 && r.push(e), r;
44
- }), ea = (e) => {
45
- e < 1 || e > a(G) || (H(d, e, !0), window.scrollTo({ top: 0, behavior: "smooth" }));
46
- }, Ia = () => {
47
- H(D, !0);
48
- const e = new URL(`${aa()}/v1/wof/outcome/${Y()}`), r = new Headers();
49
- Z() && r.append("X-SessionId", Z()), fetch(e, { method: "GET", headers: r, cache: "no-store" }).then((c) => c.json()).then((c) => {
50
- H(f, c?.items.map((L) => $a(L, "history")), !0), H(d, 1);
51
- }).catch((c) => {
52
- console.log(c), H(wa, !0);
53
- }).finally(() => H(D, !1));
54
- };
55
- Za(() => {
56
- Ia();
57
- });
58
- var Ma = {
59
- get programId() {
60
- return Y();
61
- },
62
- set programId(e) {
63
- Y(e), da();
64
- },
65
- get endpoint() {
66
- return aa();
67
- },
68
- set endpoint(e) {
69
- aa(e), da();
70
- },
71
- get session() {
72
- return Z();
73
- },
74
- set session(e) {
75
- Z(e), da();
76
- }
77
- }, U = oe(), Ea = u(U);
78
- {
79
- var Ta = (e) => {
80
- var r = Va(), h = V(r), c = s(u(h), 2), L = p(c, !0), i = s(c, 2), x = p(i, !0), z = s(i, 2), E = p(z, !0), ta = s(z, 2), q = p(ta, !0);
81
- g(h);
82
- var sa = s(h, 2);
83
- pa(sa, 17, () => Array(S), va, (T, J, W, Q) => {
84
- var P = Na(), X = u(P), ra = u(X);
85
- ra.textContent = `${W + 1}.`, g(X), Ka(8), g(P), l(T, P);
86
- }), M(
87
- (T, J, W, Q) => {
88
- n(L, T), n(x, J), n(E, W), n(q, Q);
89
- },
90
- [
91
- () => t()("name"),
92
- () => t()("date"),
93
- () => t()("spin"),
94
- () => t()("assigned")
95
- ]
96
- ), l(e, r);
97
- }, Pa = (e) => {
98
- var r = fa(), h = V(r);
99
- {
100
- var c = (i) => {
101
- var x = se(), z = V(x), E = s(u(z), 2), ta = p(E, !0), q = s(E, 2), sa = p(q, !0), T = s(q, 2), J = p(T, !0), W = s(T, 2), Q = p(W, !0);
102
- g(z);
103
- var P = s(z, 2);
104
- pa(P, 17, () => a(ka), va, (I, v, w) => {
105
- var y = Ya(), R = u(y), A = p(R), b = s(R, 2), $ = p(b, !0), F = s(b, 2), K = u(F), oa = p(K, !0), k = s(K, 2), C = p(k, !0);
106
- g(F);
107
- var j = s(F, 2), la = u(j);
108
- {
109
- var ja = (o) => {
110
- var _ = ya();
111
- l(o, _);
112
- }, Ba = (o) => {
113
- var _ = ba();
114
- l(o, _);
115
- };
116
- B(la, (o) => {
117
- a(v).state === "drawn" || a(v).state === "fulfilled" ? o(ja) : o(Ba, -1);
118
- });
119
- }
120
- g(j);
121
- var ua = s(j, 2), Ha = u(ua);
122
- {
123
- var Sa = (o) => {
124
- var _ = ya();
125
- l(o, _);
126
- }, Wa = (o) => {
127
- var _ = ba();
128
- l(o, _);
129
- };
130
- B(Ha, (o) => {
131
- a(v).completed && a(v).state === "fulfilled" ? o(Sa) : o(Wa, -1);
132
- });
133
- }
134
- g(ua), g(y), M(
135
- (o, _) => {
136
- n(A, `${(a(d) - 1) * S + w + 1}.`), n($, Ca[a(v).type] || "-"), n(oa, o), n(C, _);
137
- },
138
- [
139
- () => xa(a(v).time).date,
140
- () => xa(a(v).time).time
141
- ]
142
- ), l(I, y);
143
- });
144
- var X = s(P, 2);
145
- {
146
- var ra = (I) => {
147
- var v = te(), w = u(v), y = s(w, 2);
148
- pa(y, 21, () => a(La), va, (A, b) => {
149
- var $ = fa(), F = V($);
150
- {
151
- var K = (k) => {
152
- var C = ae();
153
- l(k, C);
154
- }, oa = (k) => {
155
- var C = ee();
156
- let j;
157
- var la = p(C, !0);
158
- M(() => {
159
- j = Ua(C, 1, "pagination-button pagination-page svelte-4la0az", null, j, { active: a(d) === a(b) }), n(la, a(b));
160
- }), ca("click", C, () => ea(a(b))), l(k, C);
161
- };
162
- B(F, (k) => {
163
- a(b) === "..." ? k(K) : k(oa, -1);
164
- });
165
- }
166
- l(A, $);
167
- }), g(y);
168
- var R = s(y, 2);
169
- g(v), M(
170
- (A, b) => {
171
- w.disabled = a(d) === 1, na(w, "aria-label", A), R.disabled = a(d) === a(G), na(R, "aria-label", b);
172
- },
173
- [() => t()("previous"), () => t()("next")]
174
- ), ca("click", w, () => ea(a(d) - 1)), ca("click", R, () => ea(a(d) + 1)), l(I, v);
175
- };
176
- B(X, (I) => {
177
- a(G) > 1 && I(ra);
178
- });
179
- }
180
- M(
181
- (I, v, w, y) => {
182
- n(ta, I), n(sa, v), n(J, w), n(Q, y);
183
- },
184
- [
185
- () => t()("name"),
186
- () => t()("date"),
187
- () => t()("spin"),
188
- () => t()("assigned")
189
- ]
190
- ), l(i, x);
191
- }, L = (i) => {
192
- var x = re(), z = p(x, !0);
193
- M((E) => n(z, E), [() => t()("noHistory")]), l(i, x);
194
- };
195
- B(h, (i) => {
196
- a(f) && a(f).length > 0 ? i(c) : i(L, -1);
197
- });
198
- }
199
- l(e, r);
200
- };
201
- B(Ea, (e) => {
202
- a(D) ? e(Ta) : e(Pa, -1);
203
- });
204
- }
205
- g(U), M(() => na(U, "aria-busy", a(D))), l(ga, U);
206
- var Ra = Ja(Ma);
207
- return za(), Ra;
208
- }
209
- Aa(["click"]);
210
- Fa(ie, { programId: {}, endpoint: {}, session: {} }, [], [], { mode: "open" });
211
- export {
212
- ie as W
213
- };
@@ -1,12 +0,0 @@
1
- "use strict";const t=require("./WheelOfFortuneWheel-CrRAYCB1.cjs"),e=require("./utils-DyVEmMSf.cjs");var me=t.from_html('<div class="lucky-wheel-history-item history-grid history-skeleton-row svelte-4la0az" aria-hidden="true"><p class="svelte-4la0az"><span class="history-skeleton-bar svelte-4la0az"></span></p> <p class="svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--name svelte-4la0az">&nbsp;</span></p> <div class="date-time-cell svelte-4la0az"><span class="history-skeleton-bar svelte-4la0az">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-4la0az">00:00:00</span></div> <div class="history-icon svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-4la0az"></span></div> <div class="history-icon svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-4la0az"></span></div></div>'),xe=t.from_html('<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),V=t.from_svg('<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>'),Y=t.from_svg('<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=t.from_html('<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>'),be=t.from_html('<span class="pagination-ellipsis svelte-4la0az">&hellip;</span>'),ze=t.from_html("<button> </button>"),ke=t.from_html('<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>'),we=t.from_html('<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),Ce=t.from_html('<h2 class="no-history svelte-4la0az"> </h2>'),Le=t.from_html('<div class="history-list svelte-4la0az"><!></div>');const Ie={hash:"svelte-4la0az",code:` *,
2
- *::before,
3
- *::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:100%;max-width:700px;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;}
4
- @keyframes svelte-4la0az-skeleton-pulse {
5
- 0%, 100% {
6
- opacity: 0.3;
7
- }
8
- 50% {
9
- opacity: 0.6;
10
- }
11
- } .history-skeleton-row {pointer-events:none;
12
- animation: svelte-4la0az-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`};function ee(N,F){e.push(F,!0),t.append_styles(N,Ie);const s=()=>t.store_get(e.$format,"$_",te),[te,ae]=t.setup_stores(),Z=t.prop(F,"programId",7),q=t.prop(F,"endpoint",7),H=t.prop(F,"session",7);let S=e.state(!0),d=e.state(e.proxy([])),se=e.state(!1);const I=10;let p=e.state(1);const W=e.user_derived(()=>e.get(d)&&e.get(d).length>0?Math.ceil(e.get(d).length/I):1),le=e.user_derived(()=>e.get(d)&&e.get(d).length>0?e.get(d).slice((e.get(p)-1)*I,e.get(p)*I):[]),ie={bonus:s()("prizeBonus"),role:s()("prizeRole"),tournament:s()("prizeTournament"),ticket:s()("prizeTicket"),loyalty:s()("prizeLoyalty"),challenge:s()("prizeChallenge"),noprize:s()("noWin"),custom:s()("prizeCustom")},re=e.user_derived(()=>{const a=e.get(W);if(a<=5)return Array.from({length:a},(r,v)=>v+1);const l=[],c=e.get(p);l.push(1),c>3&&l.push("...");const n=Math.max(2,c-1),y=Math.min(a-1,c+1);for(let r=n;r<=y;r++)l.push(r);return c<a-2&&l.push("..."),a>1&&l.push(a),l}),G=a=>{a<1||a>e.get(W)||(e.set(p,a,!0),window.scrollTo({top:0,behavior:"smooth"}))},oe=()=>{e.set(S,!0);const a=new URL(`${q()}/v1/wof/outcome/${Z()}`),l=new Headers;H()&&l.append("X-SessionId",H()),fetch(a,{method:"GET",headers:l,cache:"no-store"}).then(n=>n.json()).then(n=>{e.set(d,n?.items.map(y=>e.normalizeDrawResult(y,"history")),!0),e.set(p,1)}).catch(n=>{console.log(n),e.set(se,!0)}).finally(()=>e.set(S,!1))};t.onMount(()=>{oe()});var ne={get programId(){return Z()},set programId(a){Z(a),e.flushSync()},get endpoint(){return q()},set endpoint(a){q(a),e.flushSync()},get session(){return H()},set session(a){H(a),e.flushSync()}},P=Le(),pe=e.child(P);{var ce=a=>{var l=xe(),c=e.first_child(l),n=e.sibling(e.child(c),2),y=e.only_child(n,!0),r=e.sibling(n,2),v=e.only_child(r,!0),_=e.sibling(r,2),z=e.only_child(_,!0),U=e.sibling(_,2),R=e.only_child(U,!0);e.reset(c);var X=e.sibling(c,2);t.each(X,17,()=>Array(I),t.index,(k,B,M,O)=>{var w=me(),j=e.child(w),$=e.child(j);$.textContent=`${M+1}.`,e.reset(j),e.next(8),e.reset(w),t.append(k,w)}),e.template_effect((k,B,M,O)=>{t.set_text(y,k),t.set_text(v,B),t.set_text(z,M),t.set_text(R,O)},[()=>s()("name"),()=>s()("date"),()=>s()("spin"),()=>s()("assigned")]),t.append(a,l)},de=a=>{var l=t.comment(),c=e.first_child(l);{var n=r=>{var v=we(),_=e.first_child(v),z=e.sibling(e.child(_),2),U=e.only_child(z,!0),R=e.sibling(z,2),X=e.only_child(R,!0),k=e.sibling(R,2),B=e.only_child(k,!0),M=e.sibling(k,2),O=e.only_child(M,!0);e.reset(_);var w=e.sibling(_,2);t.each(w,17,()=>e.get(le),t.index,(b,o,u)=>{var g=ye(),C=e.child(g),T=e.only_child(C),h=e.sibling(C,2),A=e.only_child(h,!0),E=e.sibling(h,2),D=e.child(E),J=e.only_child(D,!0),m=e.sibling(D,2),x=e.only_child(m,!0);e.reset(E);var L=e.sibling(E,2),K=e.child(L);{var ge=i=>{var f=V();t.append(i,f)},he=i=>{var f=Y();t.append(i,f)};t.if_block(K,i=>{e.get(o).state==="drawn"||e.get(o).state==="fulfilled"?i(ge):i(he,-1)})}e.reset(L);var Q=e.sibling(L,2),fe=e.child(Q);{var _e=i=>{var f=V();t.append(i,f)},ue=i=>{var f=Y();t.append(i,f)};t.if_block(fe,i=>{e.get(o).completed&&e.get(o).state==="fulfilled"?i(_e):i(ue,-1)})}e.reset(Q),e.reset(g),e.template_effect((i,f)=>{t.set_text(T,`${(e.get(p)-1)*I+u+1}.`),t.set_text(A,ie[e.get(o).type]||"-"),t.set_text(J,i),t.set_text(x,f)},[()=>e.formatDateTimeForHistory(e.get(o).time).date,()=>e.formatDateTimeForHistory(e.get(o).time).time]),t.append(b,g)});var j=e.sibling(w,2);{var $=b=>{var o=ke(),u=e.child(o),g=e.sibling(u,2);t.each(g,21,()=>e.get(re),t.index,(T,h)=>{var A=t.comment(),E=e.first_child(A);{var D=m=>{var x=be();t.append(m,x)},J=m=>{var x=ze();let L;var K=e.only_child(x,!0);e.template_effect(()=>{L=t.set_class(x,1,"pagination-button pagination-page svelte-4la0az",null,L,{active:e.get(p)===e.get(h)}),t.set_text(K,e.get(h))}),t.delegated("click",x,()=>G(e.get(h))),t.append(m,x)};t.if_block(E,m=>{e.get(h)==="..."?m(D):m(J,-1)})}t.append(T,A)}),e.reset(g);var C=e.sibling(g,2);e.reset(o),e.template_effect((T,h)=>{u.disabled=e.get(p)===1,t.set_attribute(u,"aria-label",T),C.disabled=e.get(p)===e.get(W),t.set_attribute(C,"aria-label",h)},[()=>s()("previous"),()=>s()("next")]),t.delegated("click",u,()=>G(e.get(p)-1)),t.delegated("click",C,()=>G(e.get(p)+1)),t.append(b,o)};t.if_block(j,b=>{e.get(W)>1&&b($)})}e.template_effect((b,o,u,g)=>{t.set_text(U,b),t.set_text(X,o),t.set_text(B,u),t.set_text(O,g)},[()=>s()("name"),()=>s()("date"),()=>s()("spin"),()=>s()("assigned")]),t.append(r,v)},y=r=>{var v=Ce(),_=e.only_child(v,!0);e.template_effect(z=>t.set_text(_,z),[()=>s()("noHistory")]),t.append(r,v)};t.if_block(c,r=>{e.get(d)&&e.get(d).length>0?r(n):r(y,-1)})}t.append(a,l)};t.if_block(pe,a=>{e.get(S)?a(ce):a(de,-1)})}e.reset(P),e.template_effect(()=>t.set_attribute(P,"aria-busy",e.get(S))),t.append(N,P);var ve=e.pop(ne);return ae(),ve}t.delegate(["click"]);t.create_custom_element(ee,{programId:{},endpoint:{},session:{}},[],[],{mode:"open"});exports.WheelOfFortuneHistory=ee;
@@ -1,12 +0,0 @@
1
- "use strict";const t=require("./WheelOfFortuneWheel-DGD-zfeE.cjs"),e=require("./utils-BxNmJ6YA.cjs");var me=t.from_html('<div class="lucky-wheel-history-item history-grid history-skeleton-row svelte-4la0az" aria-hidden="true"><p class="svelte-4la0az"><span class="history-skeleton-bar svelte-4la0az"></span></p> <p class="svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--name svelte-4la0az">&nbsp;</span></p> <div class="date-time-cell svelte-4la0az"><span class="history-skeleton-bar svelte-4la0az">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-4la0az">00:00:00</span></div> <div class="history-icon svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-4la0az"></span></div> <div class="history-icon svelte-4la0az"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-4la0az"></span></div></div>'),xe=t.from_html('<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),V=t.from_svg('<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>'),Y=t.from_svg('<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=t.from_html('<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>'),be=t.from_html('<span class="pagination-ellipsis svelte-4la0az">&hellip;</span>'),ze=t.from_html("<button> </button>"),ke=t.from_html('<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>'),we=t.from_html('<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),Ce=t.from_html('<h2 class="no-history svelte-4la0az"> </h2>'),Le=t.from_html('<div class="history-list svelte-4la0az"><!></div>');const Ie={hash:"svelte-4la0az",code:` *,
2
- *::before,
3
- *::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:100%;max-width:700px;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;}
4
- @keyframes svelte-4la0az-skeleton-pulse {
5
- 0%, 100% {
6
- opacity: 0.3;
7
- }
8
- 50% {
9
- opacity: 0.6;
10
- }
11
- } .history-skeleton-row {pointer-events:none;
12
- animation: svelte-4la0az-skeleton-pulse 1.4s ease-in-out infinite;} .history-skeleton-bar {display:inline-block;max-width:100%;border-radius:4px;background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));color:transparent;user-select:none;} .history-skeleton-bar--name {width:70%;} .history-skeleton-bar--icon {width:12px;height:12px;}`};function ee(N,F){e.push(F,!0),t.append_styles(N,Ie);const s=()=>t.store_get(e.$format,"$_",te),[te,ae]=t.setup_stores(),Z=t.prop(F,"programId",7),q=t.prop(F,"endpoint",7),H=t.prop(F,"session",7);let S=e.state(!0),d=e.state(e.proxy([])),se=e.state(!1);const I=10;let p=e.state(1);const W=e.user_derived(()=>e.get(d)&&e.get(d).length>0?Math.ceil(e.get(d).length/I):1),le=e.user_derived(()=>e.get(d)&&e.get(d).length>0?e.get(d).slice((e.get(p)-1)*I,e.get(p)*I):[]),ie={bonus:s()("prizeBonus"),role:s()("prizeRole"),tournament:s()("prizeTournament"),ticket:s()("prizeTicket"),loyalty:s()("prizeLoyalty"),challenge:s()("prizeChallenge"),noprize:s()("noWin"),custom:s()("prizeCustom")},re=e.user_derived(()=>{const a=e.get(W);if(a<=5)return Array.from({length:a},(o,v)=>v+1);const l=[],c=e.get(p);l.push(1),c>3&&l.push("...");const r=Math.max(2,c-1),y=Math.min(a-1,c+1);for(let o=r;o<=y;o++)l.push(o);return c<a-2&&l.push("..."),a>1&&l.push(a),l}),G=a=>{a<1||a>e.get(W)||(e.set(p,a,!0),window.scrollTo({top:0,behavior:"smooth"}))},oe=()=>{e.set(S,!0);const a=new URL(`${q()}/v1/wof/outcome/${Z()}`),l=new Headers;H()&&l.append("X-SessionId",H()),fetch(a,{method:"GET",headers:l,cache:"no-store"}).then(r=>r.json()).then(r=>{e.set(d,r==null?void 0:r.items.map(y=>e.normalizeDrawResult(y,"history")),!0),e.set(p,1)}).catch(r=>{console.log(r),e.set(se,!0)}).finally(()=>e.set(S,!1))};t.onMount(()=>{oe()});var ne={get programId(){return Z()},set programId(a){Z(a),e.flushSync()},get endpoint(){return q()},set endpoint(a){q(a),e.flushSync()},get session(){return H()},set session(a){H(a),e.flushSync()}},P=Le(),pe=e.child(P);{var ce=a=>{var l=xe(),c=e.first_child(l),r=e.sibling(e.child(c),2),y=e.only_child(r,!0),o=e.sibling(r,2),v=e.only_child(o,!0),_=e.sibling(o,2),z=e.only_child(_,!0),U=e.sibling(_,2),R=e.only_child(U,!0);e.reset(c);var X=e.sibling(c,2);t.each(X,17,()=>Array(I),t.index,(k,B,M,O)=>{var w=me(),j=e.child(w),$=e.child(j);$.textContent=`${M+1}.`,e.reset(j),e.next(8),e.reset(w),t.append(k,w)}),e.template_effect((k,B,M,O)=>{t.set_text(y,k),t.set_text(v,B),t.set_text(z,M),t.set_text(R,O)},[()=>s()("name"),()=>s()("date"),()=>s()("spin"),()=>s()("assigned")]),t.append(a,l)},de=a=>{var l=t.comment(),c=e.first_child(l);{var r=o=>{var v=we(),_=e.first_child(v),z=e.sibling(e.child(_),2),U=e.only_child(z,!0),R=e.sibling(z,2),X=e.only_child(R,!0),k=e.sibling(R,2),B=e.only_child(k,!0),M=e.sibling(k,2),O=e.only_child(M,!0);e.reset(_);var w=e.sibling(_,2);t.each(w,17,()=>e.get(le),t.index,(b,n,u)=>{var g=ye(),C=e.child(g),T=e.only_child(C),h=e.sibling(C,2),A=e.only_child(h,!0),E=e.sibling(h,2),D=e.child(E),J=e.only_child(D,!0),m=e.sibling(D,2),x=e.only_child(m,!0);e.reset(E);var L=e.sibling(E,2),K=e.child(L);{var ge=i=>{var f=V();t.append(i,f)},he=i=>{var f=Y();t.append(i,f)};t.if_block(K,i=>{e.get(n).state==="drawn"||e.get(n).state==="fulfilled"?i(ge):i(he,-1)})}e.reset(L);var Q=e.sibling(L,2),fe=e.child(Q);{var _e=i=>{var f=V();t.append(i,f)},ue=i=>{var f=Y();t.append(i,f)};t.if_block(fe,i=>{e.get(n).completed&&e.get(n).state==="fulfilled"?i(_e):i(ue,-1)})}e.reset(Q),e.reset(g),e.template_effect((i,f)=>{t.set_text(T,`${(e.get(p)-1)*I+u+1}.`),t.set_text(A,ie[e.get(n).type]||"-"),t.set_text(J,i),t.set_text(x,f)},[()=>e.formatDateTimeForHistory(e.get(n).time).date,()=>e.formatDateTimeForHistory(e.get(n).time).time]),t.append(b,g)});var j=e.sibling(w,2);{var $=b=>{var n=ke(),u=e.child(n),g=e.sibling(u,2);t.each(g,21,()=>e.get(re),t.index,(T,h)=>{var A=t.comment(),E=e.first_child(A);{var D=m=>{var x=be();t.append(m,x)},J=m=>{var x=ze();let L;var K=e.only_child(x,!0);e.template_effect(()=>{L=t.set_class(x,1,"pagination-button pagination-page svelte-4la0az",null,L,{active:e.get(p)===e.get(h)}),t.set_text(K,e.get(h))}),t.delegated("click",x,()=>G(e.get(h))),t.append(m,x)};t.if_block(E,m=>{e.get(h)==="..."?m(D):m(J,-1)})}t.append(T,A)}),e.reset(g);var C=e.sibling(g,2);e.reset(n),e.template_effect((T,h)=>{u.disabled=e.get(p)===1,t.set_attribute(u,"aria-label",T),C.disabled=e.get(p)===e.get(W),t.set_attribute(C,"aria-label",h)},[()=>s()("previous"),()=>s()("next")]),t.delegated("click",u,()=>G(e.get(p)-1)),t.delegated("click",C,()=>G(e.get(p)+1)),t.append(b,n)};t.if_block(j,b=>{e.get(W)>1&&b($)})}e.template_effect((b,n,u,g)=>{t.set_text(U,b),t.set_text(X,n),t.set_text(B,u),t.set_text(O,g)},[()=>s()("name"),()=>s()("date"),()=>s()("spin"),()=>s()("assigned")]),t.append(o,v)},y=o=>{var v=Ce(),_=e.only_child(v,!0);e.template_effect(z=>t.set_text(_,z),[()=>s()("noHistory")]),t.append(o,v)};t.if_block(c,o=>{e.get(d)&&e.get(d).length>0?o(r):o(y,-1)})}t.append(a,l)};t.if_block(pe,a=>{e.get(S)?a(ce):a(de,-1)})}e.reset(P),e.template_effect(()=>t.set_attribute(P,"aria-busy",e.get(S))),t.append(N,P);var ve=e.pop(ne);return ae(),ve}t.delegate(["click"]);t.create_custom_element(ee,{programId:{},endpoint:{},session:{}},[],[],{mode:"open"});exports.WheelOfFortuneHistory=ee;
@@ -1,118 +0,0 @@
1
- import { c as ne, a as le, p as C, i as w, j as d, b as p, f as m, s as de, e as pe, l as E, k as G, g as H, h as I } from "./WheelOfFortuneWheel-CiyQZNAd.js";
2
- import { a5 as ve, b3 as g, ar as _, bi as J, a9 as fe, b6 as s, b4 as ce, aU as K, b7 as v, ba as i, b2 as M, bj as ge, L as x } from "./utils-DGrEJJ_K.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:100%;max-width:700px;margin:0 auto;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 = () => de(ce, "$_", N), [N, Q] = pe(), 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), K();
19
- },
20
- get language() {
21
- return b();
22
- },
23
- set language(e = "en") {
24
- b(e), K();
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), d(t, r);
33
- },
34
- [() => u()("terms")]
35
- ), p(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), O = s(W), Z = v(O, !0), $ = g(O, 2), ee = v($);
42
- i(W), i(j);
43
- var P = g(j, 2);
44
- {
45
- var ae = (e) => {
46
- var a = G(), n = M(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
- d(R, T), d(c, oe);
52
- },
53
- [
54
- () => u()("recurrenceLabel"),
55
- () => ge(x(r))
56
- ]
57
- ), p(t, f);
58
- }), p(e, a);
59
- };
60
- w(P, (e) => {
61
- var a;
62
- (a = o()) != null && a.periods && e(ae);
63
- });
64
- }
65
- var S = g(P, 2), q = s(S), A = s(q), te = v(A, !0), B = g(A, 2), re = s(B);
66
- {
67
- var se = (e) => {
68
- var a = G(), n = M(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
- _(() => d(T, x(r).name["*"] || x(r).name[b()])), p(l, c);
78
- }, R = (l) => {
79
- var c = _e();
80
- _(() => E(c, "src", x(r).image1["*"] || x(r).image1[b()])), p(l, c);
81
- };
82
- w(h, (l) => {
83
- x(r).name["*"] ? l(y) : l(R, -1);
84
- });
85
- }
86
- i(f), p(t, f);
87
- }), p(e, a);
88
- };
89
- w(re, (e) => {
90
- var a;
91
- (a = o()) != null && a.partitions && e(se);
92
- });
93
- }
94
- i(B), i(q), i(S), i(L), i(z), _(
95
- (e, a, n, t, r) => {
96
- d(X, e), d(Z, a), d(ee, `${n != null ? n : ""} ~ ${t != null ? t : ""}`), d(te, r);
97
- },
98
- [
99
- () => u()("rulesDescription"),
100
- () => u()("availablePeriod"),
101
- () => {
102
- var e;
103
- return J((e = o()) == null ? void 0 : e.startTime);
104
- },
105
- () => {
106
- var e;
107
- return J((e = o()) == null ? void 0 : e.endTime);
108
- },
109
- () => u()("topRewards")
110
- ]
111
- ), p(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
- };
@@ -1,3 +0,0 @@
1
- "use strict";const t=require("./WheelOfFortuneWheel-CrRAYCB1.cjs"),e=require("./utils-DyVEmMSf.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:100%;max-width:700px;margin:0 auto;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;
@@ -1,107 +0,0 @@
1
- import { c as ne, a as le, p as B, i as w, k as n, b as l, f as m, s as de, e as pe, g as C, l as E, h as G, j as H } from "./WheelOfFortuneWheel-F62aU_CL.js";
2
- import { a5 as ve, ar as _, bi as I, a9 as fe, b3 as ce, aU as J, b6 as r, b7 as d, b5 as g, ba as s, b2 as K, bj as ge, L as x } from "./utils-3LNftCeZ.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:100%;max-width:700px;margin:0 auto;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 = () => de(ce, "$_", M), [M, N] = pe(), 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), J();
19
- },
20
- get language() {
21
- return b();
22
- },
23
- set language(e = "en") {
24
- b(e), J();
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), n(v, t);
33
- },
34
- [() => u()("terms")]
35
- ), l(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 O = 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
- n(j, R), n(c, oe);
52
- },
53
- [
54
- () => u()("recurrenceLabel"),
55
- () => ge(x(t))
56
- ]
57
- ), l(v, f);
58
- }), l(e, a);
59
- };
60
- w(O, (e) => {
61
- i()?.periods && e(ae);
62
- });
63
- }
64
- var P = g(O, 2), S = r(P), q = r(S), te = d(q, !0), A = g(q, 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
- _(() => n(R, x(t).name["*"] || x(t).name[b()])), l(o, c);
74
- }, j = (o) => {
75
- var c = _e();
76
- _(() => C(c, "src", x(t).image1["*"] || x(t).image1[b()])), l(o, c);
77
- };
78
- w(h, (o) => {
79
- x(t).name["*"] ? o(y) : o(j, -1);
80
- });
81
- }
82
- s(f), l(v, f);
83
- }), l(e, a);
84
- };
85
- w(re, (e) => {
86
- i()?.partitions && e(se);
87
- });
88
- }
89
- s(A), s(S), s(P), s(F), s(k), _(
90
- (e, a, p, v, t) => {
91
- n(V, e), n(Y, a), n(ee, `${p ?? ""} ~ ${v ?? ""}`), n(te, t);
92
- },
93
- [
94
- () => u()("rulesDescription"),
95
- () => u()("availablePeriod"),
96
- () => I(i()?.startTime),
97
- () => I(i()?.endTime),
98
- () => u()("topRewards")
99
- ]
100
- ), l(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
- };
@@ -1,3 +0,0 @@
1
- "use strict";const t=require("./WheelOfFortuneWheel-DGD-zfeE.cjs"),e=require("./utils-BxNmJ6YA.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:100%;max-width:700px;margin:0 auto;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;