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