@everymatrix/mini-games-hub 0.1.18 → 0.1.20
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/BackButton-BrfBWRIr.js +38 -0
- package/components/BackButton-DWyr6ELs.js +39 -0
- package/components/CoinFlip-CqHlL4t9.js +367 -0
- package/components/CoinFlip-zzM-FtUg.js +402 -0
- package/components/CoinRoyale-BJWVsEJj.cjs +759 -0
- package/components/CoinRoyale-BfaHdSQN.cjs +757 -0
- package/components/CoinRoyale-Bgl4Ea3N.js +1018 -0
- package/components/CoinRoyale-CuEAflkt.cjs +757 -0
- package/components/CoinRoyale-DKWXkm3P.js +1040 -0
- package/components/CoinRoyale-Y2G7RWga.js +1020 -0
- package/components/CoinRoyale-hmGqx4pF.cjs +759 -0
- package/components/CoinRoyale-t3opSEHv.js +1038 -0
- package/components/DrawResult-DXaJYat3.js +343 -0
- package/components/DrawResult-FwuHCP-y.js +373 -0
- package/components/GameCard-45tJnqY3.cjs +3 -0
- package/components/GameCard-C1IfKCWx.js +66 -0
- package/components/GameCard-CLXODhBl.js +63 -0
- package/components/GameCard-DZm1MFqf.cjs +3 -0
- package/components/GameHistory-9Xh7Sb6S.cjs +13 -0
- package/components/GameHistory-B6MiGA9Z.js +240 -0
- package/components/GameHistory-BmChILXB.js +241 -0
- package/components/GameHistory-DioZWMQ8.cjs +13 -0
- package/components/GamePlaceholder-2C54MJXM.js +87 -0
- package/components/GamePlaceholder-BPZQa2uj.cjs +18 -0
- package/components/GamePlaceholder-CXixYEW3.cjs +18 -0
- package/components/GamePlaceholder-zLYrDd0k.js +88 -0
- package/components/GameRules-DNete4N3.js +117 -0
- package/components/GameRules-DOPgbqxU.cjs +5 -0
- package/components/GameRules-DbfGxBGR.cjs +5 -0
- package/components/GameRules-lzdMrQZY.js +128 -0
- package/components/MiniGamesHub-9mWWh3N1.js +1111 -0
- package/components/MiniGamesHub-CQ1jWyWR.js +1111 -0
- package/components/MiniGamesHub-CWV1acJR.cjs +79 -0
- package/components/MiniGamesHub-CfeP3fA-.cjs +79 -0
- package/components/MiniGamesHub-ChMf3rL7.js +1141 -0
- package/components/MiniGamesHub-Cv7rxLAO.cjs +79 -0
- package/components/MiniGamesHub-D4fNnQ70.js +1141 -0
- package/components/MiniGamesHub-gVFlxi4x.cjs +79 -0
- package/components/MysteryChest-Bq1NBRQI.cjs +739 -0
- package/components/MysteryChest-BsUxRwj9.js +1248 -0
- package/components/MysteryChest-C1jSQFBT.cjs +741 -0
- package/components/MysteryChest-Cg48wdP6.cjs +741 -0
- package/components/MysteryChest-Cq77jWfV.cjs +739 -0
- package/components/MysteryChest-D5OWiZfM.js +1250 -0
- package/components/MysteryChest-DE2NS9aL.js +1299 -0
- package/components/MysteryChest-pWptmU6O.js +1297 -0
- package/components/WheelOfFortune-CriOHAfp.cjs +627 -0
- package/components/WheelOfFortune-D2AVLv8r.js +934 -0
- package/components/WheelOfFortune-Dsr3jMxy.cjs +627 -0
- package/components/WheelOfFortune-uTfPiHqd.js +950 -0
- package/components/WheelOfFortuneWheel-C91V0Bho.js +1741 -0
- package/components/WheelOfFortuneWheel-CDjrztMA.js +1812 -0
- package/components/countdown-Bn5Dj09X.js +157 -0
- package/components/utils-DT23SX1f.js +6007 -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
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { d as Ze, c as je, a as Ae, p as ne, o as Fe, i as R, b as We, e as d, f as C, g as ve, h as de, s as f, j as ue, k as pe, l as K, m as De, n as fe } from "./WheelOfFortuneWheel-CDjrztMA.js";
|
|
2
|
+
import { G as Oe, aM as D, aC as Xe, a0 as e, ah as B, L as Ne, aP as Qe, au as I, aV as Ue, aT as a, aG as ce, aR as Ve, aQ as Ye, aN as J, aO as l, aW as s, b1 as $e, b2 as me, aX as ge } from "./utils-BJHloM10.js";
|
|
3
|
+
var qe = C('<div class="game-history-item history-grid history-skeleton-row svelte-1rfwd7v" aria-hidden="true"><p class="svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v"></span></p> <p class="svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--name svelte-1rfwd7v"> </span></p> <div class="date-time-cell svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-1rfwd7v">00:00:00</span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div></div>'), Je = C('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!>', 1), Ke = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'), et = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'), tt = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'), st = K('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'), at = C('<div class="game-history-item history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <div class="date-time-cell svelte-1rfwd7v"><span class="svelte-1rfwd7v"> </span> <span class="svelte-1rfwd7v"> </span></div> <div class="history-icon svelte-1rfwd7v"><!></div> <div class="history-icon svelte-1rfwd7v"><!></div></div>'), rt = C('<span class="pagination-ellipsis svelte-1rfwd7v">…</span>'), ot = C("<button> </button>"), lt = C('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">‹</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">›</button></div>'), it = C('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!> <!>', 1), nt = C('<h2 class="no-history svelte-1rfwd7v"> </h2>'), vt = C('<div class="history-list svelte-1rfwd7v"><!></div>');
|
|
4
|
+
const dt = {
|
|
5
|
+
hash: "svelte-1rfwd7v",
|
|
6
|
+
code: `.svelte-1rfwd7v,
|
|
7
|
+
.svelte-1rfwd7v::before,
|
|
8
|
+
.svelte-1rfwd7v::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.history-list.svelte-1rfwd7v {display:flex;flex-direction:column;gap:6px;width:100%;max-width:700px;margin:0 auto;}.history-grid.svelte-1rfwd7v {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;}.date-time-cell.svelte-1rfwd7v {display:flex;flex-direction:column;gap:2px;}.date-time-cell.svelte-1rfwd7v span:where(.svelte-1rfwd7v):last-child {opacity:0.6;font-size:10px;}.game-history-item.svelte-1rfwd7v {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;}.game-history-header.svelte-1rfwd7v {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;}.history-icon.svelte-1rfwd7v {display:flex;align-items:center;justify-content:center;}.no-history.svelte-1rfwd7v {width:100%;font-size:14px;font-weight:400;margin-top:12px;}.game-history-pagination.svelte-1rfwd7v {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;}.pagination-pages.svelte-1rfwd7v {display:flex;align-items:center;gap:4px;}.pagination-ellipsis.svelte-1rfwd7v {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;}.pagination-button.svelte-1rfwd7v {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;}.pagination-button.svelte-1rfwd7v:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));}.pagination-button.svelte-1rfwd7v:disabled {opacity:0.4;cursor:not-allowed;}.pagination-page.svelte-1rfwd7v {min-width:32px;text-align:center;padding:6px 8px;}.pagination-nav.svelte-1rfwd7v {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;}.pagination-page.active.svelte-1rfwd7v {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
|
|
9
|
+
|
|
10
|
+
@keyframes svelte-1rfwd7v-skeleton-pulse {
|
|
11
|
+
0%, 100% {
|
|
12
|
+
opacity: 0.3;
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
opacity: 0.6;
|
|
16
|
+
}
|
|
17
|
+
}.history-skeleton-row.svelte-1rfwd7v {pointer-events:none;
|
|
18
|
+
animation: svelte-1rfwd7v-skeleton-pulse 1.4s ease-in-out infinite;}.history-skeleton-bar.svelte-1rfwd7v {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.svelte-1rfwd7v {width:70%;}.history-skeleton-bar--icon.svelte-1rfwd7v {width:12px;height:12px;}`
|
|
19
|
+
};
|
|
20
|
+
function pt(he, O) {
|
|
21
|
+
Oe(O, !0), Ae(he, dt);
|
|
22
|
+
const o = () => Qe(Ye, "$_", xe), [xe, _e] = Ve(), ee = ne(O, "programId", 7), te = ne(O, "endpoint", 7), X = ne(O, "session", 7);
|
|
23
|
+
let N = D(!0), u = D(Xe([])), ye = D(!1);
|
|
24
|
+
const S = 10;
|
|
25
|
+
let g = D(1);
|
|
26
|
+
const Q = ge(() => e(u) && e(u).length > 0 ? Math.ceil(e(u).length / S) : 1), be = ge(() => e(u) && e(u).length > 0 ? e(u).slice((e(g) - 1) * S, e(g) * S) : []), Ce = {
|
|
27
|
+
bonus: o()("prizeBonus"),
|
|
28
|
+
role: o()("prizeRole"),
|
|
29
|
+
tournament: o()("prizeTournament"),
|
|
30
|
+
ticket: o()("prizeTicket"),
|
|
31
|
+
loyalty: o()("prizeLoyalty"),
|
|
32
|
+
challenge: o()("prizeChallenge"),
|
|
33
|
+
noprize: o()("noWin"),
|
|
34
|
+
custom: o()("prizeCustom")
|
|
35
|
+
}, ke = ge(() => {
|
|
36
|
+
const t = e(Q);
|
|
37
|
+
if (t <= 5)
|
|
38
|
+
return Array.from({ length: t }, (n, h) => h + 1);
|
|
39
|
+
const r = [], p = e(g);
|
|
40
|
+
r.push(1), p > 3 && r.push("...");
|
|
41
|
+
const i = Math.max(2, p - 1), L = Math.min(t - 1, p + 1);
|
|
42
|
+
for (let n = i; n <= L; n++)
|
|
43
|
+
r.push(n);
|
|
44
|
+
return p < t - 2 && r.push("..."), t > 1 && r.push(t), r;
|
|
45
|
+
});
|
|
46
|
+
let se = D(void 0);
|
|
47
|
+
const Le = () => {
|
|
48
|
+
var t;
|
|
49
|
+
for (let r = (t = e(se)) == null ? void 0 : t.parentElement; r; r = r.parentElement) {
|
|
50
|
+
const { overflowY: p } = getComputedStyle(r);
|
|
51
|
+
(p === "auto" || p === "scroll") && r.scrollHeight > r.clientHeight && r.scrollTo({ top: 0, behavior: "smooth" });
|
|
52
|
+
}
|
|
53
|
+
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
54
|
+
}, ae = (t) => {
|
|
55
|
+
t < 1 || t > e(Q) || (I(g, t, !0), Le());
|
|
56
|
+
}, ze = () => {
|
|
57
|
+
I(N, !0);
|
|
58
|
+
const t = new URL(`${te()}/v1/wof/outcome/${ee()}`), r = new Headers();
|
|
59
|
+
X() && r.append("X-SessionId", X()), fetch(t, { method: "GET", headers: r, cache: "no-store" }).then((i) => i.json()).then((i) => {
|
|
60
|
+
I(u, i == null ? void 0 : i.items.map((L) => Ue(L, "history")), !0), I(g, 1);
|
|
61
|
+
}).catch((i) => {
|
|
62
|
+
console.log(i), I(ye, !0);
|
|
63
|
+
}).finally(() => I(N, !1));
|
|
64
|
+
};
|
|
65
|
+
Fe(() => {
|
|
66
|
+
ze();
|
|
67
|
+
});
|
|
68
|
+
var Ee = {
|
|
69
|
+
get programId() {
|
|
70
|
+
return ee();
|
|
71
|
+
},
|
|
72
|
+
set programId(t) {
|
|
73
|
+
ee(t), ce();
|
|
74
|
+
},
|
|
75
|
+
get endpoint() {
|
|
76
|
+
return te();
|
|
77
|
+
},
|
|
78
|
+
set endpoint(t) {
|
|
79
|
+
te(t), ce();
|
|
80
|
+
},
|
|
81
|
+
get session() {
|
|
82
|
+
return X();
|
|
83
|
+
},
|
|
84
|
+
set session(t) {
|
|
85
|
+
X(t), ce();
|
|
86
|
+
}
|
|
87
|
+
}, Z = vt(), Me = a(Z);
|
|
88
|
+
{
|
|
89
|
+
var Te = (t) => {
|
|
90
|
+
var r = Je(), p = J(r), i = l(a(p), 2), L = a(i, !0);
|
|
91
|
+
s(i);
|
|
92
|
+
var n = l(i, 2), h = a(n, !0);
|
|
93
|
+
s(n);
|
|
94
|
+
var m = l(n, 2), z = a(m, !0);
|
|
95
|
+
s(m);
|
|
96
|
+
var U = l(m, 2), j = a(U, !0);
|
|
97
|
+
s(U), s(p);
|
|
98
|
+
var re = l(p, 2);
|
|
99
|
+
ve(re, 17, () => Array(S), de, (E, V, G, Y) => {
|
|
100
|
+
var H = qe(), $ = a(H), oe = a($);
|
|
101
|
+
oe.textContent = `${G + 1}.`, s($), $e(8), s(H), d(E, H);
|
|
102
|
+
}), B(
|
|
103
|
+
(E, V, G, Y) => {
|
|
104
|
+
f(L, E), f(h, V), f(z, G), f(j, Y);
|
|
105
|
+
},
|
|
106
|
+
[
|
|
107
|
+
() => o()("name"),
|
|
108
|
+
() => o()("date"),
|
|
109
|
+
() => o()("spin"),
|
|
110
|
+
() => o()("assigned")
|
|
111
|
+
]
|
|
112
|
+
), d(t, r);
|
|
113
|
+
}, Be = (t) => {
|
|
114
|
+
var r = ue(), p = J(r);
|
|
115
|
+
{
|
|
116
|
+
var i = (n) => {
|
|
117
|
+
var h = it(), m = J(h), z = l(a(m), 2), U = a(z, !0);
|
|
118
|
+
s(z);
|
|
119
|
+
var j = l(z, 2), re = a(j, !0);
|
|
120
|
+
s(j);
|
|
121
|
+
var E = l(j, 2), V = a(E, !0);
|
|
122
|
+
s(E);
|
|
123
|
+
var G = l(E, 2), Y = a(G, !0);
|
|
124
|
+
s(G), s(m);
|
|
125
|
+
var H = l(m, 2);
|
|
126
|
+
ve(H, 17, () => e(be), de, (M, c, k) => {
|
|
127
|
+
var x = at(), T = a(x), A = a(T);
|
|
128
|
+
s(T);
|
|
129
|
+
var w = l(T, 2), q = a(w, !0);
|
|
130
|
+
s(w);
|
|
131
|
+
var F = l(w, 2), W = a(F), le = a(W, !0);
|
|
132
|
+
s(W);
|
|
133
|
+
var _ = l(W, 2), y = a(_, !0);
|
|
134
|
+
s(_), s(F);
|
|
135
|
+
var P = l(F, 2), ie = a(P);
|
|
136
|
+
{
|
|
137
|
+
var Ge = (v) => {
|
|
138
|
+
var b = Ke();
|
|
139
|
+
d(v, b);
|
|
140
|
+
}, He = (v) => {
|
|
141
|
+
var b = et();
|
|
142
|
+
d(v, b);
|
|
143
|
+
};
|
|
144
|
+
R(ie, (v) => {
|
|
145
|
+
e(c).state === "drawn" || e(c).state === "fulfilled" ? v(Ge) : v(He, -1);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
s(P);
|
|
149
|
+
var we = l(P, 2), Pe = a(we);
|
|
150
|
+
{
|
|
151
|
+
var Re = (v) => {
|
|
152
|
+
var b = tt();
|
|
153
|
+
d(v, b);
|
|
154
|
+
}, Se = (v) => {
|
|
155
|
+
var b = st();
|
|
156
|
+
d(v, b);
|
|
157
|
+
};
|
|
158
|
+
R(Pe, (v) => {
|
|
159
|
+
e(c).completed && e(c).state === "fulfilled" ? v(Re) : v(Se, -1);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
s(we), s(x), B(
|
|
163
|
+
(v, b) => {
|
|
164
|
+
f(A, `${(e(g) - 1) * S + k + 1}.`), f(q, Ce[e(c).type] || "-"), f(le, v), f(y, b);
|
|
165
|
+
},
|
|
166
|
+
[
|
|
167
|
+
() => me(e(c).time).date,
|
|
168
|
+
() => me(e(c).time).time
|
|
169
|
+
]
|
|
170
|
+
), d(M, x);
|
|
171
|
+
});
|
|
172
|
+
var $ = l(H, 2);
|
|
173
|
+
{
|
|
174
|
+
var oe = (M) => {
|
|
175
|
+
var c = lt(), k = a(c), x = l(k, 2);
|
|
176
|
+
ve(x, 21, () => e(ke), de, (A, w) => {
|
|
177
|
+
var q = ue(), F = J(q);
|
|
178
|
+
{
|
|
179
|
+
var W = (_) => {
|
|
180
|
+
var y = rt();
|
|
181
|
+
d(_, y);
|
|
182
|
+
}, le = (_) => {
|
|
183
|
+
var y = ot();
|
|
184
|
+
let P;
|
|
185
|
+
var ie = a(y, !0);
|
|
186
|
+
s(y), B(() => {
|
|
187
|
+
P = De(y, 1, "pagination-button pagination-page svelte-1rfwd7v", null, P, { active: e(g) === e(w) }), f(ie, e(w));
|
|
188
|
+
}), fe("click", y, () => ae(e(w))), d(_, y);
|
|
189
|
+
};
|
|
190
|
+
R(F, (_) => {
|
|
191
|
+
e(w) === "..." ? _(W) : _(le, -1);
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
d(A, q);
|
|
195
|
+
}), s(x);
|
|
196
|
+
var T = l(x, 2);
|
|
197
|
+
s(c), B(
|
|
198
|
+
(A, w) => {
|
|
199
|
+
k.disabled = e(g) === 1, pe(k, "aria-label", A), T.disabled = e(g) === e(Q), pe(T, "aria-label", w);
|
|
200
|
+
},
|
|
201
|
+
[() => o()("previous"), () => o()("next")]
|
|
202
|
+
), fe("click", k, () => ae(e(g) - 1)), fe("click", T, () => ae(e(g) + 1)), d(M, c);
|
|
203
|
+
};
|
|
204
|
+
R($, (M) => {
|
|
205
|
+
e(Q) > 1 && M(oe);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
B(
|
|
209
|
+
(M, c, k, x) => {
|
|
210
|
+
f(U, M), f(re, c), f(V, k), f(Y, x);
|
|
211
|
+
},
|
|
212
|
+
[
|
|
213
|
+
() => o()("name"),
|
|
214
|
+
() => o()("date"),
|
|
215
|
+
() => o()("spin"),
|
|
216
|
+
() => o()("assigned")
|
|
217
|
+
]
|
|
218
|
+
), d(n, h);
|
|
219
|
+
}, L = (n) => {
|
|
220
|
+
var h = nt(), m = a(h, !0);
|
|
221
|
+
s(h), B((z) => f(m, z), [() => o()("noHistory")]), d(n, h);
|
|
222
|
+
};
|
|
223
|
+
R(p, (n) => {
|
|
224
|
+
e(u) && e(u).length > 0 ? n(i) : n(L, -1);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
d(t, r);
|
|
228
|
+
};
|
|
229
|
+
R(Me, (t) => {
|
|
230
|
+
e(N) ? t(Te) : t(Be, -1);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
s(Z), We(Z, (t) => I(se, t), () => e(se)), B(() => pe(Z, "aria-busy", e(N))), d(he, Z);
|
|
234
|
+
var Ie = Ne(Ee);
|
|
235
|
+
return _e(), Ie;
|
|
236
|
+
}
|
|
237
|
+
Ze(["click"]);
|
|
238
|
+
je(pt, { programId: {}, endpoint: {}, session: {} }, [], [], { mode: "open" });
|
|
239
|
+
export {
|
|
240
|
+
pt as G
|
|
241
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-BoZ9evN7.cjs"),e=require("./utils-8EFTHKcu.cjs");var ue=t.from_html('<div class="game-history-item history-grid history-skeleton-row svelte-1rfwd7v" aria-hidden="true"><p class="svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v"></span></p> <p class="svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--name svelte-1rfwd7v"> </span></p> <div class="date-time-cell svelte-1rfwd7v"><span class="history-skeleton-bar svelte-1rfwd7v">Oct 00, 0000</span> <span class="history-skeleton-bar svelte-1rfwd7v">00:00:00</span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div> <div class="history-icon svelte-1rfwd7v"><span class="history-skeleton-bar history-skeleton-bar--icon svelte-1rfwd7v"></span></div></div>'),me=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!>',1),xe=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'),be=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'),ye=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'),Ce=t.from_svg('<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1rfwd7v"><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-1rfwd7v"></path></svg>'),ke=t.from_html('<div class="game-history-item history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <div class="date-time-cell svelte-1rfwd7v"><span class="svelte-1rfwd7v"> </span> <span class="svelte-1rfwd7v"> </span></div> <div class="history-icon svelte-1rfwd7v"><!></div> <div class="history-icon svelte-1rfwd7v"><!></div></div>'),Le=t.from_html('<span class="pagination-ellipsis svelte-1rfwd7v">…</span>'),ze=t.from_html("<button> </button>"),Ee=t.from_html('<div class="game-history-pagination svelte-1rfwd7v"><button class="pagination-button pagination-nav svelte-1rfwd7v">‹</button> <div class="pagination-pages svelte-1rfwd7v"></div> <button class="pagination-button pagination-nav svelte-1rfwd7v">›</button></div>'),Te=t.from_html('<div class="game-history-header history-grid svelte-1rfwd7v"><p class="svelte-1rfwd7v">#</p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p> <p class="svelte-1rfwd7v"> </p></div> <!> <!>',1),Me=t.from_html('<h2 class="no-history svelte-1rfwd7v"> </h2>'),He=t.from_html('<div class="history-list svelte-1rfwd7v"><!></div>');const Be={hash:"svelte-1rfwd7v",code:`.svelte-1rfwd7v,
|
|
2
|
+
.svelte-1rfwd7v::before,
|
|
3
|
+
.svelte-1rfwd7v::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.history-list.svelte-1rfwd7v {display:flex;flex-direction:column;gap:6px;width:100%;max-width:700px;margin:0 auto;}.history-grid.svelte-1rfwd7v {display:grid;grid-template-columns:28px 1fr 1fr 44px 60px;align-items:center;gap:8px;}.date-time-cell.svelte-1rfwd7v {display:flex;flex-direction:column;gap:2px;}.date-time-cell.svelte-1rfwd7v span:where(.svelte-1rfwd7v):last-child {opacity:0.6;font-size:10px;}.game-history-item.svelte-1rfwd7v {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;}.game-history-header.svelte-1rfwd7v {width:100%;padding:6px 12px;color:var(--color-text-default, #ffffff);opacity:0.6;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;}.history-icon.svelte-1rfwd7v {display:flex;align-items:center;justify-content:center;}.no-history.svelte-1rfwd7v {width:100%;font-size:14px;font-weight:400;margin-top:12px;}.game-history-pagination.svelte-1rfwd7v {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:8px;}.pagination-pages.svelte-1rfwd7v {display:flex;align-items:center;gap:4px;}.pagination-ellipsis.svelte-1rfwd7v {color:var(--color-text-default, #ffffff);padding:0 2px;user-select:none;opacity:0.6;font-size:14px;line-height:32px;}.pagination-button.svelte-1rfwd7v {border:1px solid var(--color-border-subtle, rgba(251, 251, 251, 0.0509803922));border-radius:6px;padding:6px 10px;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-default, #ffffff);cursor:pointer;transition:background-color 0.15s ease;font-size:13px;line-height:1;}.pagination-button.svelte-1rfwd7v:hover:not(:disabled) {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));}.pagination-button.svelte-1rfwd7v:disabled {opacity:0.4;cursor:not-allowed;}.pagination-page.svelte-1rfwd7v {min-width:32px;text-align:center;padding:6px 8px;}.pagination-nav.svelte-1rfwd7v {min-width:32px;text-align:center;font-size:16px;padding:4px 8px;flex-shrink:0;}.pagination-page.active.svelte-1rfwd7v {background-color:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));border-color:var(--color-text-default, #ffffff);font-weight:600;}
|
|
4
|
+
|
|
5
|
+
@keyframes svelte-1rfwd7v-skeleton-pulse {
|
|
6
|
+
0%, 100% {
|
|
7
|
+
opacity: 0.3;
|
|
8
|
+
}
|
|
9
|
+
50% {
|
|
10
|
+
opacity: 0.6;
|
|
11
|
+
}
|
|
12
|
+
}.history-skeleton-row.svelte-1rfwd7v {pointer-events:none;
|
|
13
|
+
animation: svelte-1rfwd7v-skeleton-pulse 1.4s ease-in-out infinite;}.history-skeleton-bar.svelte-1rfwd7v {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.svelte-1rfwd7v {width:70%;}.history-skeleton-bar--icon.svelte-1rfwd7v {width:12px;height:12px;}`};function V(N,F){e.push(F,!0),t.append_styles(N,Be);const r=()=>e.store_get(e.$format,"$_",ee),[ee,te]=e.setup_stores(),q=t.prop(F,"programId",7),O=t.prop(F,"endpoint",7),P=t.prop(F,"session",7);let R=e.state(!0),f=e.state(e.proxy([])),se=e.state(!1);const T=10;let v=e.state(1);const Z=e.user_derived(()=>e.get(f)&&e.get(f).length>0?Math.ceil(e.get(f).length/T):1),re=e.user_derived(()=>e.get(f)&&e.get(f).length>0?e.get(f).slice((e.get(v)-1)*T,e.get(v)*T):[]),ae={bonus:r()("prizeBonus"),role:r()("prizeRole"),tournament:r()("prizeTournament"),ticket:r()("prizeTicket"),loyalty:r()("prizeLoyalty"),challenge:r()("prizeChallenge"),noprize:r()("noWin"),custom:r()("prizeCustom")},ie=e.user_derived(()=>{const s=e.get(Z);if(s<=5)return Array.from({length:s},(i,p)=>p+1);const a=[],d=e.get(v);a.push(1),d>3&&a.push("...");const o=Math.max(2,d-1),x=Math.min(s-1,d+1);for(let i=o;i<=x;i++)a.push(i);return d<s-2&&a.push("..."),s>1&&a.push(s),a});let U=e.state(void 0);const le=()=>{for(let s=e.get(U)?.parentElement;s;s=s.parentElement){const{overflowY:a}=getComputedStyle(s);(a==="auto"||a==="scroll")&&s.scrollHeight>s.clientHeight&&s.scrollTo({top:0,behavior:"smooth"})}window.scrollTo({top:0,behavior:"smooth"})},X=s=>{s<1||s>e.get(Z)||(e.set(v,s,!0),le())},oe=()=>{e.set(R,!0);const s=new URL(`${O()}/v1/wof/outcome/${q()}`),a=new Headers;P()&&a.append("X-SessionId",P()),fetch(s,{method:"GET",headers:a,cache:"no-store"}).then(o=>o.json()).then(o=>{e.set(f,o?.items.map(x=>e.normalizeDrawResult(x,"history")),!0),e.set(v,1)}).catch(o=>{console.log(o),e.set(se,!0)}).finally(()=>e.set(R,!1))};t.onMount(()=>{oe()});var ne={get programId(){return q()},set programId(s){q(s),e.flushSync()},get endpoint(){return O()},set endpoint(s){O(s),e.flushSync()},get session(){return P()},set session(s){P(s),e.flushSync()}},M=He(),ve=e.child(M);{var de=s=>{var a=me(),d=e.first_child(a),o=e.sibling(e.child(d),2),x=e.child(o,!0);e.reset(o);var i=e.sibling(o,2),p=e.child(i,!0);e.reset(i);var g=e.sibling(i,2),b=e.child(g,!0);e.reset(g);var G=e.sibling(g,2),H=e.child(G,!0);e.reset(G),e.reset(d);var Y=e.sibling(d,2);t.each(Y,17,()=>Array(T),t.index,(y,W,L,j)=>{var z=ue(),A=e.child(z),$=e.child(A);$.textContent=`${L+1}.`,e.reset(A),e.next(8),e.reset(z),t.append(y,z)}),e.template_effect((y,W,L,j)=>{t.set_text(x,y),t.set_text(p,W),t.set_text(b,L),t.set_text(H,j)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(s,a)},pe=s=>{var a=t.comment(),d=e.first_child(a);{var o=i=>{var p=Te(),g=e.first_child(p),b=e.sibling(e.child(g),2),G=e.child(b,!0);e.reset(b);var H=e.sibling(b,2),Y=e.child(H,!0);e.reset(H);var y=e.sibling(H,2),W=e.child(y,!0);e.reset(y);var L=e.sibling(y,2),j=e.child(L,!0);e.reset(L),e.reset(g);var z=e.sibling(g,2);t.each(z,17,()=>e.get(re),t.index,(C,n,m)=>{var h=ke(),k=e.child(h),B=e.child(k);e.reset(k);var c=e.sibling(k,2),D=e.child(c,!0);e.reset(c);var I=e.sibling(c,2),S=e.child(I),J=e.child(S,!0);e.reset(S);var w=e.sibling(S,2),_=e.child(w,!0);e.reset(w),e.reset(I);var E=e.sibling(I,2),K=e.child(E);{var fe=l=>{var u=xe();t.append(l,u)},ge=l=>{var u=be();t.append(l,u)};t.if_block(K,l=>{e.get(n).state==="drawn"||e.get(n).state==="fulfilled"?l(fe):l(ge,-1)})}e.reset(E);var Q=e.sibling(E,2),he=e.child(Q);{var we=l=>{var u=ye();t.append(l,u)},_e=l=>{var u=Ce();t.append(l,u)};t.if_block(he,l=>{e.get(n).completed&&e.get(n).state==="fulfilled"?l(we):l(_e,-1)})}e.reset(Q),e.reset(h),e.template_effect((l,u)=>{t.set_text(B,`${(e.get(v)-1)*T+m+1}.`),t.set_text(D,ae[e.get(n).type]||"-"),t.set_text(J,l),t.set_text(_,u)},[()=>e.formatDateTimeForHistory(e.get(n).time).date,()=>e.formatDateTimeForHistory(e.get(n).time).time]),t.append(C,h)});var A=e.sibling(z,2);{var $=C=>{var n=Ee(),m=e.child(n),h=e.sibling(m,2);t.each(h,21,()=>e.get(ie),t.index,(B,c)=>{var D=t.comment(),I=e.first_child(D);{var S=w=>{var _=Le();t.append(w,_)},J=w=>{var _=ze();let E;var K=e.child(_,!0);e.reset(_),e.template_effect(()=>{E=t.set_class(_,1,"pagination-button pagination-page svelte-1rfwd7v",null,E,{active:e.get(v)===e.get(c)}),t.set_text(K,e.get(c))}),t.delegated("click",_,()=>X(e.get(c))),t.append(w,_)};t.if_block(I,w=>{e.get(c)==="..."?w(S):w(J,-1)})}t.append(B,D)}),e.reset(h);var k=e.sibling(h,2);e.reset(n),e.template_effect((B,c)=>{m.disabled=e.get(v)===1,t.set_attribute(m,"aria-label",B),k.disabled=e.get(v)===e.get(Z),t.set_attribute(k,"aria-label",c)},[()=>r()("previous"),()=>r()("next")]),t.delegated("click",m,()=>X(e.get(v)-1)),t.delegated("click",k,()=>X(e.get(v)+1)),t.append(C,n)};t.if_block(A,C=>{e.get(Z)>1&&C($)})}e.template_effect((C,n,m,h)=>{t.set_text(G,C),t.set_text(Y,n),t.set_text(W,m),t.set_text(j,h)},[()=>r()("name"),()=>r()("date"),()=>r()("spin"),()=>r()("assigned")]),t.append(i,p)},x=i=>{var p=Me(),g=e.child(p,!0);e.reset(p),e.template_effect(b=>t.set_text(g,b),[()=>r()("noHistory")]),t.append(i,p)};t.if_block(d,i=>{e.get(f)&&e.get(f).length>0?i(o):i(x,-1)})}t.append(s,a)};t.if_block(ve,s=>{e.get(R)?s(de):s(pe,-1)})}e.reset(M),t.bind_this(M,s=>e.set(U,s),()=>e.get(U)),e.template_effect(()=>t.set_attribute(M,"aria-busy",e.get(R))),t.append(N,M);var ce=e.pop(ne);return te(),ce}t.delegate(["click"]);t.create_custom_element(V,{programId:{},endpoint:{},session:{}},[],[],{mode:"open"});exports.GameHistory=V;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { d as I, c as D, a as O, p as v, i as R, j as b, n as B, e as y, f as q, m as C, s as K, t as T } from "./WheelOfFortuneWheel-C91V0Bho.js";
|
|
2
|
+
import { G as E, aO as h, ah as j, L as N, aT as t, aP as Q, aQ as S, aG as u, aR as U, aW as o, a0 as W, au as Y, aM as H } from "./utils-DT23SX1f.js";
|
|
3
|
+
var J = q('<video autoplay="" loop="" playsinline=""><source type="video/mp4"/></video>', 2), X = q('<div class="game-placeholder svelte-1j7eq9g"><!> <div class="game-placeholder__badge svelte-1j7eq9g"><p class="game-placeholder__badge-title svelte-1j7eq9g"> </p> <p class="game-placeholder__badge-body svelte-1j7eq9g"> </p></div> <button class="game-placeholder__cta svelte-1j7eq9g" type="button"> </button></div>');
|
|
4
|
+
const Z = {
|
|
5
|
+
hash: "svelte-1j7eq9g",
|
|
6
|
+
code: `.game-placeholder.svelte-1j7eq9g {position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:100%;padding:40px 16px;overflow:hidden;}.game-placeholder__video.svelte-1j7eq9g {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
7
|
+
|
|
8
|
+
@media (max-width: 719px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (min-width: 720px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);}
|
|
12
|
+
}.game-placeholder__video.is-ready.svelte-1j7eq9g {opacity:0.6;}
|
|
13
|
+
|
|
14
|
+
@keyframes svelte-1j7eq9g-gamePlaceholderFadeIn {
|
|
15
|
+
from {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
opacity: 1;
|
|
20
|
+
}
|
|
21
|
+
}.game-placeholder__badge.svelte-1j7eq9g {position:relative;z-index:2;max-width:320px;padding:14px 18px;background:rgba(8, 4, 0, 0.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;
|
|
22
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 500ms ease-out both;}.game-placeholder__badge-title.svelte-1j7eq9g {margin:0;color:#ffffff;font-size:14px;font-weight:700;letter-spacing:0.2px;}.game-placeholder__badge-body.svelte-1j7eq9g {margin:6px 0 0;color:rgba(255, 255, 255, 0.6509803922);font-size:12px;line-height:1.45;}.game-placeholder__cta.svelte-1j7eq9g {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;cursor:pointer;
|
|
23
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 220ms ease-out 80ms both;transition:transform 160ms ease, filter 160ms ease;}.game-placeholder__cta.svelte-1j7eq9g:active {transform:translateY(2px) scale(0.98);}`
|
|
24
|
+
};
|
|
25
|
+
function ee(_, r) {
|
|
26
|
+
E(r, !0), O(_, Z);
|
|
27
|
+
const n = () => Q(S, "$_", w), [w, A] = U(), L = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", i = v(r, "backgroundVideoAsset", 7, null), l = v(r, "liteMode", 7, !1), d = v(r, "onLogin", 7);
|
|
28
|
+
let f = H(!1);
|
|
29
|
+
var z = {
|
|
30
|
+
get backgroundVideoAsset() {
|
|
31
|
+
return i();
|
|
32
|
+
},
|
|
33
|
+
set backgroundVideoAsset(e = null) {
|
|
34
|
+
i(e), u();
|
|
35
|
+
},
|
|
36
|
+
get liteMode() {
|
|
37
|
+
return l();
|
|
38
|
+
},
|
|
39
|
+
set liteMode(e = !1) {
|
|
40
|
+
l(e), u();
|
|
41
|
+
},
|
|
42
|
+
get onLogin() {
|
|
43
|
+
return d();
|
|
44
|
+
},
|
|
45
|
+
set onLogin(e) {
|
|
46
|
+
d(e), u();
|
|
47
|
+
}
|
|
48
|
+
}, p = X(), x = t(p);
|
|
49
|
+
{
|
|
50
|
+
var M = (e) => {
|
|
51
|
+
var a = J();
|
|
52
|
+
let s;
|
|
53
|
+
a.muted = !0;
|
|
54
|
+
var F = t(a);
|
|
55
|
+
o(a), j(() => {
|
|
56
|
+
s = C(a, 1, "game-placeholder__video svelte-1j7eq9g", null, s, { "is-ready": W(f) }), K(F, "src", i() || L);
|
|
57
|
+
}), T("canplay", a, () => Y(f, !0)), y(e, a);
|
|
58
|
+
};
|
|
59
|
+
R(x, (e) => {
|
|
60
|
+
l() || e(M);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
var c = h(x, 2), g = t(c), V = t(g, !0);
|
|
64
|
+
o(g);
|
|
65
|
+
var k = h(g, 2), G = t(k, !0);
|
|
66
|
+
o(k), o(c);
|
|
67
|
+
var m = h(c, 2), P = t(m, !0);
|
|
68
|
+
o(m), o(p), j(
|
|
69
|
+
(e, a, s) => {
|
|
70
|
+
b(V, e), b(G, a), b(P, s);
|
|
71
|
+
},
|
|
72
|
+
[
|
|
73
|
+
() => n()("loginTitle"),
|
|
74
|
+
() => n()("loginDescription"),
|
|
75
|
+
() => n()("login")
|
|
76
|
+
]
|
|
77
|
+
), B("click", m, function(...e) {
|
|
78
|
+
d()?.apply(this, e);
|
|
79
|
+
}), y(_, p);
|
|
80
|
+
var $ = N(z);
|
|
81
|
+
return A(), $;
|
|
82
|
+
}
|
|
83
|
+
I(["click"]);
|
|
84
|
+
D(ee, { backgroundVideoAsset: {}, liteMode: {}, onLogin: {} }, [], [], { mode: "open" });
|
|
85
|
+
export {
|
|
86
|
+
ee as G
|
|
87
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-BoZ9evN7.cjs"),e=require("./utils-8EFTHKcu.cjs");var V=t.from_html('<video autoplay="" loop="" playsinline=""><source type="video/mp4"/></video>',2),F=t.from_html('<div class="game-placeholder svelte-1j7eq9g"><!> <div class="game-placeholder__badge svelte-1j7eq9g"><p class="game-placeholder__badge-title svelte-1j7eq9g"> </p> <p class="game-placeholder__badge-body svelte-1j7eq9g"> </p></div> <button class="game-placeholder__cta svelte-1j7eq9g" type="button"> </button></div>');const M={hash:"svelte-1j7eq9g",code:`.game-placeholder.svelte-1j7eq9g {position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:100%;padding:40px 16px;overflow:hidden;}.game-placeholder__video.svelte-1j7eq9g {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
2
|
+
|
|
3
|
+
@media (max-width: 719px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);}
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@media (min-width: 720px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);}
|
|
7
|
+
}.game-placeholder__video.is-ready.svelte-1j7eq9g {opacity:0.6;}
|
|
8
|
+
|
|
9
|
+
@keyframes svelte-1j7eq9g-gamePlaceholderFadeIn {
|
|
10
|
+
from {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
to {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
}.game-placeholder__badge.svelte-1j7eq9g {position:relative;z-index:2;max-width:320px;padding:14px 18px;background:rgba(8, 4, 0, 0.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;
|
|
17
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 500ms ease-out both;}.game-placeholder__badge-title.svelte-1j7eq9g {margin:0;color:#ffffff;font-size:14px;font-weight:700;letter-spacing:0.2px;}.game-placeholder__badge-body.svelte-1j7eq9g {margin:6px 0 0;color:rgba(255, 255, 255, 0.6509803922);font-size:12px;line-height:1.45;}.game-placeholder__cta.svelte-1j7eq9g {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;cursor:pointer;
|
|
18
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 220ms ease-out 80ms both;transition:transform 160ms ease, filter 160ms ease;}.game-placeholder__cta.svelte-1j7eq9g:active {transform:translateY(2px) scale(0.98);}`};function _(v,r){e.push(r,!0),t.append_styles(v,M);const n=()=>e.store_get(e.$format,"$_",f),[f,x]=e.setup_stores(),k="https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",i=t.prop(r,"backgroundVideoAsset",7,null),s=t.prop(r,"liteMode",7,!1),d=t.prop(r,"onLogin",7);let b=e.state(!1);var y={get backgroundVideoAsset(){return i()},set backgroundVideoAsset(a=null){i(a),e.flushSync()},get liteMode(){return s()},set liteMode(a=!1){s(a),e.flushSync()},get onLogin(){return d()},set onLogin(a){d(a),e.flushSync()}},c=F(),h=e.child(c);{var j=a=>{var o=V();let l;o.muted=!0;var z=e.child(o);e.reset(o),e.template_effect(()=>{l=t.set_class(o,1,"game-placeholder__video svelte-1j7eq9g",null,l,{"is-ready":e.get(b)}),t.set_attribute(z,"src",i()||k)}),t.event("canplay",o,()=>e.set(b,!0)),t.append(a,o)};t.if_block(h,a=>{s()||a(j)})}var p=e.sibling(h,2),g=e.child(p),q=e.child(g,!0);e.reset(g);var u=e.sibling(g,2),w=e.child(u,!0);e.reset(u),e.reset(p);var m=e.sibling(p,2),A=e.child(m,!0);e.reset(m),e.reset(c),e.template_effect((a,o,l)=>{t.set_text(q,a),t.set_text(w,o),t.set_text(A,l)},[()=>n()("loginTitle"),()=>n()("loginDescription"),()=>n()("login")]),t.delegated("click",m,function(...a){d()?.apply(this,a)}),t.append(v,c);var L=e.pop(y);return x(),L}t.delegate(["click"]);t.create_custom_element(_,{backgroundVideoAsset:{},liteMode:{},onLogin:{}},[],[],{mode:"open"});exports.GamePlaceholder=_;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";const t=require("./WheelOfFortuneWheel-7PqVvd_8.cjs"),e=require("./utils-C1uNHR_J.cjs");var V=t.from_html('<video autoplay="" loop="" playsinline=""><source type="video/mp4"/></video>',2),F=t.from_html('<div class="game-placeholder svelte-1j7eq9g"><!> <div class="game-placeholder__badge svelte-1j7eq9g"><p class="game-placeholder__badge-title svelte-1j7eq9g"> </p> <p class="game-placeholder__badge-body svelte-1j7eq9g"> </p></div> <button class="game-placeholder__cta svelte-1j7eq9g" type="button"> </button></div>');const M={hash:"svelte-1j7eq9g",code:`.game-placeholder.svelte-1j7eq9g {position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:100%;padding:40px 16px;overflow:hidden;}.game-placeholder__video.svelte-1j7eq9g {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
2
|
+
|
|
3
|
+
@media (max-width: 719px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);}
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@media (min-width: 720px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);}
|
|
7
|
+
}.game-placeholder__video.is-ready.svelte-1j7eq9g {opacity:0.6;}
|
|
8
|
+
|
|
9
|
+
@keyframes svelte-1j7eq9g-gamePlaceholderFadeIn {
|
|
10
|
+
from {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
to {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
}.game-placeholder__badge.svelte-1j7eq9g {position:relative;z-index:2;max-width:320px;padding:14px 18px;background:rgba(8, 4, 0, 0.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;
|
|
17
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 500ms ease-out both;}.game-placeholder__badge-title.svelte-1j7eq9g {margin:0;color:#ffffff;font-size:14px;font-weight:700;letter-spacing:0.2px;}.game-placeholder__badge-body.svelte-1j7eq9g {margin:6px 0 0;color:rgba(255, 255, 255, 0.6509803922);font-size:12px;line-height:1.45;}.game-placeholder__cta.svelte-1j7eq9g {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;cursor:pointer;
|
|
18
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 220ms ease-out 80ms both;transition:transform 160ms ease, filter 160ms ease;}.game-placeholder__cta.svelte-1j7eq9g:active {transform:translateY(2px) scale(0.98);}`};function _(v,r){e.push(r,!0),t.append_styles(v,M);const n=()=>e.store_get(e.$format,"$_",f),[f,x]=e.setup_stores(),k="https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4",i=t.prop(r,"backgroundVideoAsset",7,null),s=t.prop(r,"liteMode",7,!1),d=t.prop(r,"onLogin",7);let b=e.state(!1);var y={get backgroundVideoAsset(){return i()},set backgroundVideoAsset(a=null){i(a),e.flushSync()},get liteMode(){return s()},set liteMode(a=!1){s(a),e.flushSync()},get onLogin(){return d()},set onLogin(a){d(a),e.flushSync()}},c=F(),h=e.child(c);{var j=a=>{var o=V();let l;o.muted=!0;var z=e.child(o);e.reset(o),e.template_effect(()=>{l=t.set_class(o,1,"game-placeholder__video svelte-1j7eq9g",null,l,{"is-ready":e.get(b)}),t.set_attribute(z,"src",i()||k)}),t.event("canplay",o,()=>e.set(b,!0)),t.append(a,o)};t.if_block(h,a=>{s()||a(j)})}var p=e.sibling(h,2),g=e.child(p),q=e.child(g,!0);e.reset(g);var u=e.sibling(g,2),w=e.child(u,!0);e.reset(u),e.reset(p);var m=e.sibling(p,2),A=e.child(m,!0);e.reset(m),e.reset(c),e.template_effect((a,o,l)=>{t.set_text(q,a),t.set_text(w,o),t.set_text(A,l)},[()=>n()("loginTitle"),()=>n()("loginDescription"),()=>n()("login")]),t.delegated("click",m,function(...a){var o;(o=d())==null||o.apply(this,a)}),t.append(v,c);var L=e.pop(y);return x(),L}t.delegate(["click"]);t.create_custom_element(_,{backgroundVideoAsset:{},liteMode:{},onLogin:{}},[],[],{mode:"open"});exports.GamePlaceholder=_;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { d as I, c as D, a as O, p as v, i as R, s as b, n as B, e as y, f as q, m as C, k as K, t as T } from "./WheelOfFortuneWheel-CDjrztMA.js";
|
|
2
|
+
import { G as E, aO as h, ah as j, L as N, aT as t, aP as Q, aQ as S, aG as u, aR as U, aW as o, a0 as W, au as Y, aM as H } from "./utils-BJHloM10.js";
|
|
3
|
+
var J = q('<video autoplay="" loop="" playsinline=""><source type="video/mp4"/></video>', 2), X = q('<div class="game-placeholder svelte-1j7eq9g"><!> <div class="game-placeholder__badge svelte-1j7eq9g"><p class="game-placeholder__badge-title svelte-1j7eq9g"> </p> <p class="game-placeholder__badge-body svelte-1j7eq9g"> </p></div> <button class="game-placeholder__cta svelte-1j7eq9g" type="button"> </button></div>');
|
|
4
|
+
const Z = {
|
|
5
|
+
hash: "svelte-1j7eq9g",
|
|
6
|
+
code: `.game-placeholder.svelte-1j7eq9g {position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:100%;padding:40px 16px;overflow:hidden;}.game-placeholder__video.svelte-1j7eq9g {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0;pointer-events:none;transition:opacity 0.3s ease;}
|
|
7
|
+
|
|
8
|
+
@media (max-width: 719px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (min-width: 720px) {.game-placeholder__video.svelte-1j7eq9g {-webkit-mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);mask-image:linear-gradient(to right, transparent, black 15%, black 85%, transparent);}
|
|
12
|
+
}.game-placeholder__video.is-ready.svelte-1j7eq9g {opacity:0.6;}
|
|
13
|
+
|
|
14
|
+
@keyframes svelte-1j7eq9g-gamePlaceholderFadeIn {
|
|
15
|
+
from {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
opacity: 1;
|
|
20
|
+
}
|
|
21
|
+
}.game-placeholder__badge.svelte-1j7eq9g {position:relative;z-index:2;max-width:320px;padding:14px 18px;background:rgba(8, 4, 0, 0.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;
|
|
22
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 500ms ease-out both;}.game-placeholder__badge-title.svelte-1j7eq9g {margin:0;color:#ffffff;font-size:14px;font-weight:700;letter-spacing:0.2px;}.game-placeholder__badge-body.svelte-1j7eq9g {margin:6px 0 0;color:rgba(255, 255, 255, 0.6509803922);font-size:12px;line-height:1.45;}.game-placeholder__cta.svelte-1j7eq9g {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;cursor:pointer;
|
|
23
|
+
animation: svelte-1j7eq9g-gamePlaceholderFadeIn 220ms ease-out 80ms both;transition:transform 160ms ease, filter 160ms ease;}.game-placeholder__cta.svelte-1j7eq9g:active {transform:translateY(2px) scale(0.98);}`
|
|
24
|
+
};
|
|
25
|
+
function ee(_, r) {
|
|
26
|
+
E(r, !0), O(_, Z);
|
|
27
|
+
const n = () => Q(S, "$_", w), [w, A] = U(), L = "https://eclectic-starship-bbd011.netlify.app/assets/city-wheel-background.mp4", i = v(r, "backgroundVideoAsset", 7, null), l = v(r, "liteMode", 7, !1), d = v(r, "onLogin", 7);
|
|
28
|
+
let f = H(!1);
|
|
29
|
+
var z = {
|
|
30
|
+
get backgroundVideoAsset() {
|
|
31
|
+
return i();
|
|
32
|
+
},
|
|
33
|
+
set backgroundVideoAsset(e = null) {
|
|
34
|
+
i(e), u();
|
|
35
|
+
},
|
|
36
|
+
get liteMode() {
|
|
37
|
+
return l();
|
|
38
|
+
},
|
|
39
|
+
set liteMode(e = !1) {
|
|
40
|
+
l(e), u();
|
|
41
|
+
},
|
|
42
|
+
get onLogin() {
|
|
43
|
+
return d();
|
|
44
|
+
},
|
|
45
|
+
set onLogin(e) {
|
|
46
|
+
d(e), u();
|
|
47
|
+
}
|
|
48
|
+
}, p = X(), x = t(p);
|
|
49
|
+
{
|
|
50
|
+
var M = (e) => {
|
|
51
|
+
var a = J();
|
|
52
|
+
let s;
|
|
53
|
+
a.muted = !0;
|
|
54
|
+
var F = t(a);
|
|
55
|
+
o(a), j(() => {
|
|
56
|
+
s = C(a, 1, "game-placeholder__video svelte-1j7eq9g", null, s, { "is-ready": W(f) }), K(F, "src", i() || L);
|
|
57
|
+
}), T("canplay", a, () => Y(f, !0)), y(e, a);
|
|
58
|
+
};
|
|
59
|
+
R(x, (e) => {
|
|
60
|
+
l() || e(M);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
var c = h(x, 2), g = t(c), V = t(g, !0);
|
|
64
|
+
o(g);
|
|
65
|
+
var k = h(g, 2), G = t(k, !0);
|
|
66
|
+
o(k), o(c);
|
|
67
|
+
var m = h(c, 2), P = t(m, !0);
|
|
68
|
+
o(m), o(p), j(
|
|
69
|
+
(e, a, s) => {
|
|
70
|
+
b(V, e), b(G, a), b(P, s);
|
|
71
|
+
},
|
|
72
|
+
[
|
|
73
|
+
() => n()("loginTitle"),
|
|
74
|
+
() => n()("loginDescription"),
|
|
75
|
+
() => n()("login")
|
|
76
|
+
]
|
|
77
|
+
), B("click", m, function(...e) {
|
|
78
|
+
var a;
|
|
79
|
+
(a = d()) == null || a.apply(this, e);
|
|
80
|
+
}), y(_, p);
|
|
81
|
+
var $ = N(z);
|
|
82
|
+
return A(), $;
|
|
83
|
+
}
|
|
84
|
+
I(["click"]);
|
|
85
|
+
D(ee, { backgroundVideoAsset: {}, liteMode: {}, onLogin: {} }, [], [], { mode: "open" });
|
|
86
|
+
export {
|
|
87
|
+
ee as G
|
|
88
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { c as le, a as ie, p as W, i as w, j as m, e as v, f as g, s as q, k as A, g as B, h as C } from "./WheelOfFortuneWheel-C91V0Bho.js";
|
|
2
|
+
import { G as ne, ah as _, b3 as E, L as me, aP as ve, aQ as de, aG as H, aR as pe, aT as e, aW as t, aO as c, aN as I, b4 as ce, a0 as f } from "./utils-DT23SX1f.js";
|
|
3
|
+
var fe = g('<a class="terms-link svelte-m07om" target="_blank" rel="noopener"><span class="svelte-m07om"> </span></a>'), ge = g('<div class="detail-item svelte-m07om"><div class="detail-text svelte-m07om"><strong class="svelte-m07om"> </strong> <span class="svelte-m07om"> </span></div></div>'), xe = g('<span class="reward-label svelte-m07om"> </span>'), ue = g('<img class="reward-icon svelte-m07om" alt=""/>'), _e = g('<span class="reward-item svelte-m07om"><!></span>'), be = g('<div class="rules-content svelte-m07om"><div class="game-description svelte-m07om"> </div> <!> <div class="rules-details svelte-m07om"><div class="detail-item svelte-m07om"><div class="detail-text svelte-m07om"><strong class="svelte-m07om"> </strong> <span class="svelte-m07om"> </span></div></div> <!> <div class="detail-item rewards svelte-m07om"><div class="detail-text svelte-m07om"><strong class="svelte-m07om"> </strong> <span class="reward-list svelte-m07om"><!></span></div></div></div></div>');
|
|
4
|
+
const he = {
|
|
5
|
+
hash: "svelte-m07om",
|
|
6
|
+
code: `.svelte-m07om,
|
|
7
|
+
.svelte-m07om::before,
|
|
8
|
+
.svelte-m07om::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.rules-content.svelte-m07om {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.svelte-m07om {font-size:12px;color:var(--color-text-default, #ffffff);}.terms-link.svelte-m07om {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.svelte-m07om {display:flex;flex-direction:column;gap:12px;}.detail-item.svelte-m07om {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-text.svelte-m07om {display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0;}.detail-text.svelte-m07om strong:where(.svelte-m07om) {font-size:14px;font-weight:700;opacity:0.9;}.detail-text.svelte-m07om > span:where(.svelte-m07om) {font-size:12px;opacity:0.95;font-style:italic;}
|
|
9
|
+
|
|
10
|
+
/* Rewards list */.reward-list.svelte-m07om {display:flex;flex-direction:column;gap:10px;}.reward-item.svelte-m07om {display:flex;align-items:center;gap:10px;}.reward-label.svelte-m07om {font-size:12px;}.reward-icon.svelte-m07om {width:22px;height:22px;object-fit:contain;}`
|
|
11
|
+
};
|
|
12
|
+
function we(D, y) {
|
|
13
|
+
ne(y, !0), ie(D, he);
|
|
14
|
+
const x = () => ve(de, "$_", J), [J, K] = pe(), o = W(y, "program", 7), b = W(y, "language", 7, "en");
|
|
15
|
+
var M = {
|
|
16
|
+
get program() {
|
|
17
|
+
return o();
|
|
18
|
+
},
|
|
19
|
+
set program(a) {
|
|
20
|
+
o(a), H();
|
|
21
|
+
},
|
|
22
|
+
get language() {
|
|
23
|
+
return b();
|
|
24
|
+
},
|
|
25
|
+
set language(a = "en") {
|
|
26
|
+
b(a), H();
|
|
27
|
+
}
|
|
28
|
+
}, $ = be(), k = e($), V = e(k, !0);
|
|
29
|
+
t(k);
|
|
30
|
+
var L = c(k, 2);
|
|
31
|
+
{
|
|
32
|
+
var X = (a) => {
|
|
33
|
+
var s = fe(), i = e(s), d = e(i, !0);
|
|
34
|
+
t(i), t(s), _(
|
|
35
|
+
(r) => {
|
|
36
|
+
q(s, "href", o().termsUrl), m(d, r);
|
|
37
|
+
},
|
|
38
|
+
[() => x()("terms")]
|
|
39
|
+
), v(a, s);
|
|
40
|
+
};
|
|
41
|
+
w(L, (a) => {
|
|
42
|
+
o().termsUrl && a(X);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
var P = c(L, 2), z = e(P), U = e(z), R = e(U), Y = e(R, !0);
|
|
46
|
+
t(R);
|
|
47
|
+
var F = c(R, 2), Z = e(F);
|
|
48
|
+
t(F), t(U), t(z);
|
|
49
|
+
var N = c(z, 2);
|
|
50
|
+
{
|
|
51
|
+
var ee = (a) => {
|
|
52
|
+
var s = A(), i = I(s);
|
|
53
|
+
B(i, 17, () => o().periods, C, (d, r) => {
|
|
54
|
+
var p = ge(), h = e(p), u = e(h), T = e(u, !0);
|
|
55
|
+
t(u);
|
|
56
|
+
var l = c(u, 2), n = e(l, !0);
|
|
57
|
+
t(l), t(h), t(p), _(
|
|
58
|
+
(j, oe) => {
|
|
59
|
+
m(T, j), m(n, oe);
|
|
60
|
+
},
|
|
61
|
+
[
|
|
62
|
+
() => x()("recurrenceLabel"),
|
|
63
|
+
() => ce(f(r))
|
|
64
|
+
]
|
|
65
|
+
), v(d, p);
|
|
66
|
+
}), v(a, s);
|
|
67
|
+
};
|
|
68
|
+
w(N, (a) => {
|
|
69
|
+
o()?.periods && a(ee);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
var O = c(N, 2), Q = e(O), G = e(Q), te = e(G, !0);
|
|
73
|
+
t(G);
|
|
74
|
+
var S = c(G, 2), ae = e(S);
|
|
75
|
+
{
|
|
76
|
+
var se = (a) => {
|
|
77
|
+
var s = A(), i = I(s);
|
|
78
|
+
B(i, 17, () => o()?.partitions, C, (d, r) => {
|
|
79
|
+
var p = _e(), h = e(p);
|
|
80
|
+
{
|
|
81
|
+
var u = (l) => {
|
|
82
|
+
var n = xe(), j = e(n, !0);
|
|
83
|
+
t(n), _(() => m(j, f(r).name["*"] || f(r).name[b()])), v(l, n);
|
|
84
|
+
}, T = (l) => {
|
|
85
|
+
var n = ue();
|
|
86
|
+
_(() => q(n, "src", f(r).image1["*"] || f(r).image1[b()])), v(l, n);
|
|
87
|
+
};
|
|
88
|
+
w(h, (l) => {
|
|
89
|
+
f(r).name["*"] ? l(u) : l(T, -1);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
t(p), v(d, p);
|
|
93
|
+
}), v(a, s);
|
|
94
|
+
};
|
|
95
|
+
w(ae, (a) => {
|
|
96
|
+
o()?.partitions && a(se);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
t(S), t(Q), t(O), t(P), t($), _(
|
|
100
|
+
(a, s, i, d, r) => {
|
|
101
|
+
m(V, a), m(Y, s), m(Z, `${i ?? ""} ~ ${d ?? ""}`), m(te, r);
|
|
102
|
+
},
|
|
103
|
+
[
|
|
104
|
+
() => x()("rulesDescription"),
|
|
105
|
+
() => x()("availablePeriod"),
|
|
106
|
+
() => E(o()?.startTime),
|
|
107
|
+
() => E(o()?.endTime),
|
|
108
|
+
() => x()("topRewards")
|
|
109
|
+
]
|
|
110
|
+
), v(D, $);
|
|
111
|
+
var re = me(M);
|
|
112
|
+
return K(), re;
|
|
113
|
+
}
|
|
114
|
+
le(we, { program: {}, language: {} }, [], [], { mode: "open" });
|
|
115
|
+
export {
|
|
116
|
+
we as G
|
|
117
|
+
};
|