@everymatrix/mini-games-hub 0.2.8 → 0.2.10
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.
- package/components/ArrowLeftIcon--eD-7fsx.cjs +1 -0
- package/components/ArrowLeftIcon-Bfs5TaL6.js +20 -0
- package/components/ArrowLeftIcon-D98iyiSl.js +20 -0
- package/components/ArrowLeftIcon-Ypzji-S_.cjs +1 -0
- package/components/{CoinFlip-BOrc1Sgy.cjs → CoinFlip-BI2KQoYz.cjs} +1 -1
- package/components/{CoinFlip-uc2aguuz.js → CoinFlip-BxeM60kP.js} +2 -2
- package/components/{CoinFlip-DgM6tDy5.js → CoinFlip-CIqBL9-4.js} +18 -18
- package/components/{CoinFlip-DiCOvx3Q.cjs → CoinFlip-tTQwMgSv.cjs} +1 -1
- package/components/{CoinRoyale-DLL1bCAy.js → CoinRoyale-AIjHyYRF.js} +120 -116
- package/components/{CoinRoyale-Bkr3Rd-u.cjs → CoinRoyale-B08ETrbd.cjs} +4 -4
- package/components/{CoinRoyale-BH73ZSrU.cjs → CoinRoyale-DqOsokVD.cjs} +4 -4
- package/components/{CoinRoyale-fp-xfwl2.js → CoinRoyale-gjCYpNk5.js} +105 -101
- package/components/{GameCard-D78hDMaL.js → GameCard-BAO-RWT9.js} +36 -36
- package/components/{GameCard-BiO9Cay-.cjs → GameCard-CehoUog_.cjs} +3 -3
- package/components/{GameCard-Qh_fk15-.cjs → GameCard-DfHnwOqs.cjs} +3 -3
- package/components/{GameCard-jCZ6S2Wu.js → GameCard-pddtwXsP.js} +31 -31
- package/components/{MiniGamesHub-Bf2Cd1bB.js → MiniGamesHub-BPYHmhQ0.js} +157 -88
- package/components/{MiniGamesHub-KqAdBJEX.js → MiniGamesHub-CJjxsGLO.js} +138 -69
- package/components/MiniGamesHub-DzY6bqFU.cjs +79 -0
- package/components/MiniGamesHub-rHaCMzIp.cjs +79 -0
- package/components/{WheelOfFortune-CBYo6vCg.js → WheelOfFortune-Bz-AxMjO.js} +20 -20
- package/components/{WheelOfFortune-CDTzbAjp.cjs → WheelOfFortune-C0aA8AWD.cjs} +1 -1
- package/components/{WheelOfFortune-8HCl7aHv.js → WheelOfFortune-CBD1u1Ya.js} +29 -29
- package/components/{WheelOfFortune-XfmUFV3-.cjs → WheelOfFortune-D3EtOxbR.cjs} +1 -1
- package/components/WheelOfFortuneDrawResults-BBd3dkqS.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-D7SxQsQ4.cjs +1 -0
- package/components/WheelOfFortuneDrawResults-Dg54Kewh.js +286 -0
- package/components/WheelOfFortuneDrawResults-XxUjXAw4.js +261 -0
- package/components/WheelOfFortuneHistory-C8xiNova.js +222 -0
- package/components/WheelOfFortuneHistory-KBjh_Fju.cjs +13 -0
- package/components/WheelOfFortuneHistory-QwT2V9EM.cjs +13 -0
- package/components/WheelOfFortuneHistory-txMyUapV.js +223 -0
- package/components/WheelOfFortuneRules-BJENXLzh.cjs +5 -0
- package/components/WheelOfFortuneRules-BtC1z4Di.js +109 -0
- package/components/WheelOfFortuneRules-C3McWywL.js +120 -0
- package/components/WheelOfFortuneRules-YSDAQ18X.cjs +5 -0
- package/components/{WheelOfFortuneWheel-F62aU_CL.js → WheelOfFortuneWheel-B11sYKJn.js} +364 -346
- package/components/{WheelOfFortuneWheel-CiyQZNAd.js → WheelOfFortuneWheel-D1cbM2SU.js} +718 -700
- package/components/WheelOfFortuneWheel-DB0BZCUo.cjs +3 -0
- package/components/WheelOfFortuneWheel-DWAdby4o.cjs +3 -0
- package/components/utils-BqkCy2Rz.cjs +3 -0
- package/components/{utils-3LNftCeZ.js → utils-CzSqbDv1.js} +633 -639
- package/components/{utils-DGrEJJ_K.js → utils-UAFcjwcH.js} +1737 -1745
- package/components/utils-uE8V9ar8.cjs +3 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.cjs +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
- package/components/MiniGamesHub-5tuj6CDm.cjs +0 -16
- package/components/MiniGamesHub-SxucWl3S.cjs +0 -16
- package/components/WheelOfFortuneDrawResults-CASEqNiM.cjs +0 -1
- package/components/WheelOfFortuneDrawResults-DqgsImHB.js +0 -254
- package/components/WheelOfFortuneDrawResults-DsfJ3803.js +0 -279
- package/components/WheelOfFortuneDrawResults-l8iWZa_e.cjs +0 -1
- package/components/WheelOfFortuneHistory-CF8B0i5m.js +0 -213
- package/components/WheelOfFortuneHistory-Cnk8otCw.js +0 -213
- package/components/WheelOfFortuneHistory-DARohsMs.cjs +0 -12
- package/components/WheelOfFortuneHistory-ld2sGzjI.cjs +0 -12
- package/components/WheelOfFortuneRules-BZqR4cT9.js +0 -118
- package/components/WheelOfFortuneRules-Bv-d_VAp.cjs +0 -3
- package/components/WheelOfFortuneRules-CRGG3J0S.js +0 -107
- package/components/WheelOfFortuneRules-DLj96pqu.cjs +0 -3
- package/components/WheelOfFortuneWheel-CrRAYCB1.cjs +0 -3
- package/components/WheelOfFortuneWheel-DGD-zfeE.cjs +0 -3
- package/components/utils-BxNmJ6YA.cjs +0 -3
- package/components/utils-DyVEmMSf.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 p, k as fa, l as va, m as _a, n as Ua, q as ca } from "./WheelOfFortuneWheel-CiyQZNAd.js";
|
|
2
|
-
import { a5 as qa, b1 as N, aQ as Ja, L as a, ar as M, a9 as Qa, aJ as H, b9 as Xa, b6 as u, aU as da, b4 as $a, b2 as V, b3 as s, b7 as v, ba as g, O as Ka, bh as xa, bb as ha } from "./utils-DGrEJJ_K.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"> </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">…</span>'), ee = m("<button> </button>"), te = m('<div class="lucky-wheel-pagination svelte-4la0az"><button class="pagination-button pagination-nav svelte-4la0az">‹</button> <div class="pagination-pages svelte-4la0az"></div> <button class="pagination-button pagination-nav svelte-4la0az">›</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($a, "$_", 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(Ja([])), 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 }, (n, x) => x + 1);
|
|
38
|
-
const r = [], h = a(d);
|
|
39
|
-
r.push(1), h > 3 && r.push("...");
|
|
40
|
-
const i = Math.max(2, h - 1), L = Math.min(e - 1, h + 1);
|
|
41
|
-
for (let n = i; n <= L; n++)
|
|
42
|
-
r.push(n);
|
|
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((i) => i.json()).then((i) => {
|
|
50
|
-
H(f, i == null ? void 0 : i.items.map((L) => Xa(L, "history")), !0), H(d, 1);
|
|
51
|
-
}).catch((i) => {
|
|
52
|
-
console.log(i), 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), i = s(u(h), 2), L = v(i, !0), n = s(i, 2), x = v(n, !0), z = s(n, 2), E = v(z, !0), ta = s(z, 2), q = v(ta, !0);
|
|
81
|
-
g(h);
|
|
82
|
-
var sa = s(h, 2);
|
|
83
|
-
na(sa, 17, () => Array(S), pa, (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
|
-
p(L, T), p(x, J), p(E, W), p(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 i = (n) => {
|
|
101
|
-
var x = se(), z = V(x), E = s(u(z), 2), ta = v(E, !0), q = s(E, 2), sa = v(q, !0), T = s(q, 2), J = v(T, !0), W = s(T, 2), Q = v(W, !0);
|
|
102
|
-
g(z);
|
|
103
|
-
var P = s(z, 2);
|
|
104
|
-
na(P, 17, () => a(ka), pa, (I, c, w) => {
|
|
105
|
-
var y = Ya(), R = u(y), A = v(R), b = s(R, 2), $ = v(b, !0), F = s(b, 2), K = u(F), oa = v(K, !0), k = s(K, 2), C = v(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(c).state === "drawn" || a(c).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(c).completed && a(c).state === "fulfilled" ? o(Sa) : o(Wa, -1);
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
g(ua), g(y), M(
|
|
135
|
-
(o, _) => {
|
|
136
|
-
p(A, `${(a(d) - 1) * S + w + 1}.`), p($, Ca[a(c).type] || "-"), p(oa, o), p(C, _);
|
|
137
|
-
},
|
|
138
|
-
[
|
|
139
|
-
() => xa(a(c).time).date,
|
|
140
|
-
() => xa(a(c).time).time
|
|
141
|
-
]
|
|
142
|
-
), l(I, y);
|
|
143
|
-
});
|
|
144
|
-
var X = s(P, 2);
|
|
145
|
-
{
|
|
146
|
-
var ra = (I) => {
|
|
147
|
-
var c = te(), w = u(c), y = s(w, 2);
|
|
148
|
-
na(y, 21, () => a(La), pa, (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 = v(C, !0);
|
|
158
|
-
M(() => {
|
|
159
|
-
j = Ua(C, 1, "pagination-button pagination-page svelte-4la0az", null, j, { active: a(d) === a(b) }), p(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(c), M(
|
|
170
|
-
(A, b) => {
|
|
171
|
-
w.disabled = a(d) === 1, va(w, "aria-label", A), R.disabled = a(d) === a(G), va(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, c);
|
|
175
|
-
};
|
|
176
|
-
B(X, (I) => {
|
|
177
|
-
a(G) > 1 && I(ra);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
M(
|
|
181
|
-
(I, c, w, y) => {
|
|
182
|
-
p(ta, I), p(sa, c), p(J, w), p(Q, y);
|
|
183
|
-
},
|
|
184
|
-
[
|
|
185
|
-
() => t()("name"),
|
|
186
|
-
() => t()("date"),
|
|
187
|
-
() => t()("spin"),
|
|
188
|
-
() => t()("assigned")
|
|
189
|
-
]
|
|
190
|
-
), l(n, x);
|
|
191
|
-
}, L = (n) => {
|
|
192
|
-
var x = re(), z = v(x, !0);
|
|
193
|
-
M((E) => p(z, E), [() => t()("noHistory")]), l(n, x);
|
|
194
|
-
};
|
|
195
|
-
B(h, (n) => {
|
|
196
|
-
a(f) && a(f).length > 0 ? n(i) : n(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(() => va(U, "aria-busy", a(D))), l(ga, U);
|
|
206
|
-
var Ra = Qa(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,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"> </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">…</span>'), ee = m("<button> </button>"), te = m('<div class="lucky-wheel-pagination svelte-4la0az"><button class="pagination-button pagination-nav svelte-4la0az">‹</button> <div class="pagination-pages svelte-4la0az"></div> <button class="pagination-button pagination-nav svelte-4la0az">›</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"> </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">…</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">‹</button> <div class="pagination-pages svelte-4la0az"></div> <button class="pagination-button pagination-nav svelte-4la0az">›</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"> </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">…</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">‹</button> <div class="pagination-pages svelte-4la0az"></div> <button class="pagination-button pagination-nav svelte-4la0az">›</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
|
-
};
|