@everymatrix/casino-game-overlay 1.91.0 → 1.91.2
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/{CasinoCoinroyaleContainer-DWB4R3Yr.js → CasinoCoinroyaleContainer-CLLpK1Ed.js} +4 -4
- package/components/{CasinoCoinroyaleContainer-Dd3WuhZB.cjs → CasinoCoinroyaleContainer-DHTzWkTJ.cjs} +1 -1
- package/components/{CasinoCoinroyaleContainer-CYo6yViq.js → CasinoCoinroyaleContainer-DqnKbBE7.js} +4 -4
- package/components/{CasinoCoinroyaleDetails-DSCo5sxs.js → CasinoCoinroyaleDetails-BdVDEPTm.js} +35 -35
- package/components/{CasinoCoinroyaleDetails-M-nsYaMC.cjs → CasinoCoinroyaleDetails-Em4xQoca.cjs} +1 -1
- package/components/{CasinoCoinroyaleDetails-BUuIGEfN.js → CasinoCoinroyaleDetails-X9TUrtj4.js} +33 -33
- package/components/{CasinoCoinroyaleList-nxJ_snBZ.cjs → CasinoCoinroyaleList-C6hKfOYw.cjs} +1 -1
- package/components/{CasinoCoinroyaleList-OFDWkS10.js → CasinoCoinroyaleList-DVSWGc29.js} +82 -82
- package/components/{CasinoCoinroyaleList-Ptn_lFhJ.js → CasinoCoinroyaleList-IplknfV1.js} +78 -78
- package/components/{CasinoGameOverlay-BW5pLP3w.js → CasinoGameOverlay-BtzBFnKd.js} +956 -611
- package/components/CasinoGameOverlay-DcfvouvT.cjs +4 -0
- package/components/{CasinoGameOverlay-BpgkV_Qf.js → CasinoGameOverlay-V7LdfRMk.js} +884 -540
- package/components/{CasinoMysteryChestContainer-BKyPp7ed.js → CasinoMysteryChestContainer-2q39nbfp.js} +4 -4
- package/components/{CasinoMysteryChestContainer-CoWCxXc4.cjs → CasinoMysteryChestContainer-BckJ8kSf.cjs} +1 -1
- package/components/{CasinoMysteryChestContainer-24nFpYMD.js → CasinoMysteryChestContainer-Bu5soH27.js} +4 -4
- package/components/{CasinoMysteryChestDetails-2vpt5ay2.js → CasinoMysteryChestDetails-B29xnOYi.js} +103 -101
- package/components/CasinoMysteryChestDetails-DJ6gz5xx.cjs +2 -0
- package/components/{CasinoMysteryChestDetails-YKYKG04E.js → CasinoMysteryChestDetails-Dd_ZCPFZ.js} +88 -86
- package/components/{CasinoMysteryChestModal-Bdgv0LOT.cjs → CasinoMysteryChestModal-CPrsQruR.cjs} +1 -1
- package/components/{CasinoMysteryChestModal-COfIacO_.js → CasinoMysteryChestModal-D8hCr0GS.js} +1 -1
- package/components/{CasinoMysteryChestModal-BzmBgt4C.js → CasinoMysteryChestModal-liWPvZLw.js} +1 -1
- package/components/{CasinoMysteryChestsList-DpPvplqH.js → CasinoMysteryChestsList-Bn1f7GtL.js} +35 -35
- package/components/{CasinoMysteryChestsList-DGb9yJ0g.js → CasinoMysteryChestsList-CV29Ly-U.js} +39 -39
- package/components/{CasinoMysteryChestsList-CdV3_k_m.cjs → CasinoMysteryChestsList-ZlpUP-_c.cjs} +1 -1
- package/components/{LotteryProgramWof-HYEpHNkB.js → LotteryProgramWof-BKlE0kKR.js} +2923 -2229
- package/components/LotteryProgramWof-BXO9ySHI.cjs +36 -0
- package/components/{LotteryProgramWof-D3ipu58U.js → LotteryProgramWof-CONWAs8w.js} +3386 -2518
- package/components/PrizeEngineChest-BpgJBZ-Y.cjs +1 -0
- package/components/PrizeEngineChest-D-GSJmRs.js +243 -0
- package/components/PrizeEngineChest-DQ2V6oL0.js +265 -0
- package/components/PrizeEngineCoin-C7AvFwNL.js +294 -0
- package/components/PrizeEngineCoin-DMf_jPUy.cjs +1 -0
- package/components/PrizeEngineCoin-jRTdpoLr.js +272 -0
- package/components/PrizeEngineDetails-B32Oyuua.cjs +1 -0
- package/components/PrizeEngineDetails-Bok3RJt0.js +1956 -0
- package/components/PrizeEngineDetails-BwwbWZIV.js +1996 -0
- package/components/PrizeEngineHistory--7ch2ibC.js +561 -0
- package/components/PrizeEngineHistory-BS2YDAR_.cjs +1 -0
- package/components/PrizeEngineHistory-CT4oW3nn.js +531 -0
- package/components/PrizeEngineList-BtST-Ok-.js +473 -0
- package/components/PrizeEngineList-C8K3okMV.js +439 -0
- package/components/PrizeEngineList-CzJMqs2M.cjs +1 -0
- package/components/PrizeEngineLuckywheel-B_dOeIeL.cjs +1 -0
- package/components/PrizeEngineLuckywheel-CDAcodqf.js +273 -0
- package/components/PrizeEngineLuckywheel-sIZh84m_.js +273 -0
- package/components/PrizeEngineSuite-CZAGeW2x.cjs +1 -0
- package/components/PrizeEngineSuite-MfBz9bMX.js +713 -0
- package/components/PrizeEngineSuite-SzG6RFWp.js +713 -0
- package/components/WheelSVG-BKSG01DQ.js +1476 -0
- package/components/WheelSVG-BVu6Gymg.cjs +34 -0
- package/components/WheelSVG-ClHiUv-P.js +1442 -0
- package/es2015/casino-game-overlay.cjs +1 -1
- package/es2015/casino-game-overlay.js +1 -1
- package/esnext/casino-game-overlay.js +1 -1
- package/package.json +1 -1
- package/components/CasinoGameOverlay-DhfutTdf.cjs +0 -1
- package/components/CasinoMysteryChestDetails-DUuxpGjN.cjs +0 -2
- package/components/LotteryProgramWof-BwjH4rzJ.cjs +0 -35
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
var ne = Object.defineProperty;
|
|
2
|
+
var Z = Object.getOwnPropertySymbols;
|
|
3
|
+
var oe = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var K = (l, e, t) => e in l ? ne(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, M = (l, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
oe.call(e, t) && K(l, t, e[t]);
|
|
7
|
+
if (Z)
|
|
8
|
+
for (var t of Z(e))
|
|
9
|
+
ae.call(e, t) && K(l, t, e[t]);
|
|
10
|
+
return l;
|
|
11
|
+
};
|
|
12
|
+
var S = (l, e, t) => new Promise((s, r) => {
|
|
13
|
+
var o = (h) => {
|
|
14
|
+
try {
|
|
15
|
+
n(t.next(h));
|
|
16
|
+
} catch (m) {
|
|
17
|
+
r(m);
|
|
18
|
+
}
|
|
19
|
+
}, i = (h) => {
|
|
20
|
+
try {
|
|
21
|
+
n(t.throw(h));
|
|
22
|
+
} catch (m) {
|
|
23
|
+
r(m);
|
|
24
|
+
}
|
|
25
|
+
}, n = (h) => h.done ? s(h.value) : Promise.resolve(h.value).then(o, i);
|
|
26
|
+
n((t = t.apply(l, e)).next());
|
|
27
|
+
});
|
|
28
|
+
import { S as ce, b as he, s as ue, f as z, c as fe, n as T, d as I, C as me, D as ye, e as H, m as v, k as g, l as d, N as re, w as de, o as ve, A as ge, L as C, M as j, h as pe, E, F as D, g as O, j as V, q as P, I as _e, J as be, K as we, t as xe } from "./CasinoGameOverlay-BtzBFnKd.js";
|
|
29
|
+
import { f as Le } from "./LotteryProgramWof-CONWAs8w.js";
|
|
30
|
+
import { $ as F, b as ke, a as Ie, i as He, c as ze } from "./CasinoMysteryChestContainer-2q39nbfp.js";
|
|
31
|
+
import { f as Oe } from "./CasinoMysteryChestsList-CV29Ly-U.js";
|
|
32
|
+
import "../stencil/ui-skeleton-xXZA3rYO.js";
|
|
33
|
+
const Q = {
|
|
34
|
+
en: {
|
|
35
|
+
History: "History",
|
|
36
|
+
NoHistories: "No histories"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
function Se({ withLocale: l, translations: e }) {
|
|
40
|
+
F.subscribe((t) => {
|
|
41
|
+
t == null && (ke.set(e), F.set(l));
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function ie(l, e) {
|
|
45
|
+
Ie(l, e);
|
|
46
|
+
}
|
|
47
|
+
function Ce(l) {
|
|
48
|
+
F.set(l);
|
|
49
|
+
}
|
|
50
|
+
const Ne = () => {
|
|
51
|
+
Se({ withLocale: "en", translations: {} }), Object.keys(Q).forEach((l) => {
|
|
52
|
+
ie(l, Q[l]);
|
|
53
|
+
});
|
|
54
|
+
}, X = (r, o, i, ...n) => S(void 0, [r, o, i, ...n], function* (l, e, t, s = {}) {
|
|
55
|
+
const h = new URL(l + "/v1" + e);
|
|
56
|
+
s.params && Object.keys(s.params).forEach((y) => h.searchParams.append(y, s.params[y]));
|
|
57
|
+
const m = {
|
|
58
|
+
method: s.method || "GET",
|
|
59
|
+
headers: M(M({
|
|
60
|
+
"Content-Type": "application/json",
|
|
61
|
+
Accept: "text/plain"
|
|
62
|
+
}, t ? { "x-SessionId": t } : {}), s.headers),
|
|
63
|
+
body: s.body
|
|
64
|
+
}, u = yield (yield fetch(h.toString(), m)).text();
|
|
65
|
+
return JSON.parse(u);
|
|
66
|
+
}), Me = {
|
|
67
|
+
fetchLotteries: (l, e, t) => S(void 0, null, function* () {
|
|
68
|
+
return yield X(l, "/wof/lotteries", e, {
|
|
69
|
+
params: t != null && t.length ? { filter: t.map((s) => `Types[]=${s}`).join(",") } : { filter: "Types[]=wheelOfFortune" }
|
|
70
|
+
});
|
|
71
|
+
}),
|
|
72
|
+
fetchFullHistory: (l, e, t, s) => S(void 0, null, function* () {
|
|
73
|
+
const r = (a) => {
|
|
74
|
+
const _ = new URL(l + "/v1" + a);
|
|
75
|
+
return s != null && s.length && s.forEach((w) => _.searchParams.append("filter", `Types[]=${w}`)), _.toString();
|
|
76
|
+
}, o = (a) => S(void 0, null, function* () {
|
|
77
|
+
return (yield fetch(r(a), {
|
|
78
|
+
headers: M({
|
|
79
|
+
"Content-Type": "application/json",
|
|
80
|
+
Accept: "text/plain"
|
|
81
|
+
}, e ? { "x-SessionId": e } : {})
|
|
82
|
+
})).json();
|
|
83
|
+
}), [i, n] = yield Promise.all([
|
|
84
|
+
o("/wof/lotteryHistory"),
|
|
85
|
+
o("/wof/lotteries")
|
|
86
|
+
]), h = (n == null ? void 0 : n.items) || [], m = (i == null ? void 0 : i.items) || [], f = new Set(h.map((a) => a.program.id)), u = m.map((a) => a.programID).filter((a) => f.has(a));
|
|
87
|
+
return u.length === 0 ? [] : (yield Promise.all(
|
|
88
|
+
u.map((a) => S(void 0, null, function* () {
|
|
89
|
+
var p, x, c;
|
|
90
|
+
const _ = yield X(l, `/wof/outcome/${a}`, e), w = h.find((k) => k.program.id === a);
|
|
91
|
+
if (!((p = _ == null ? void 0 : _.items) != null && p.length))
|
|
92
|
+
return null;
|
|
93
|
+
const L = _.items.map((k) => {
|
|
94
|
+
var A, G, U, B, q, R, J, W;
|
|
95
|
+
const N = k.draw.result.wheelOfFortunePartitionIndex, b = (G = (A = w == null ? void 0 : w.program) == null ? void 0 : A.wheelOfFortune) == null ? void 0 : G.partitions[N];
|
|
96
|
+
return {
|
|
97
|
+
prizeName: ((U = b == null ? void 0 : b.name) == null ? void 0 : U[t]) || ((B = b == null ? void 0 : b.name) == null ? void 0 : B["*"]),
|
|
98
|
+
prizeImage: ((q = b == null ? void 0 : b.prizeImage) == null ? void 0 : q[t]) || ((R = b == null ? void 0 : b.prizeImage) == null ? void 0 : R["*"]) || ((J = b == null ? void 0 : b.image1) == null ? void 0 : J[t]) || ((W = b == null ? void 0 : b.image1) == null ? void 0 : W["*"]),
|
|
99
|
+
state: k.draw.state === "fulfilled",
|
|
100
|
+
date: Oe(new Date(k.draw.time), "LLL d, yyyy HH:mm:ss")
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
return {
|
|
104
|
+
id: a,
|
|
105
|
+
name: ((x = w == null ? void 0 : w.program) == null ? void 0 : x.name[t]) || ((c = w == null ? void 0 : w.program) == null ? void 0 : c.name["*"]) || "Unknown Game",
|
|
106
|
+
outcomes: L
|
|
107
|
+
};
|
|
108
|
+
}))
|
|
109
|
+
)).filter((a) => a !== null);
|
|
110
|
+
})
|
|
111
|
+
}, Y = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", $ = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e";
|
|
112
|
+
function Pe(l) {
|
|
113
|
+
fe(l, "svelte-1r6yeh4", ':host{display:block;height:100%;flex-grow:1}.PrizeHistoryContent.svelte-1r6yeh4.svelte-1r6yeh4{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif);margin:30px auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{overflow-y:auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar{width:4px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track{background:transparent}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{flex-grow:1;display:flex;flex-direction:column;gap:24px;padding-right:10px;padding-bottom:50px}.HistoryItem.svelte-1r6yeh4.svelte-1r6yeh4{margin-bottom:40px;flex-shrink:0}.GroupName.svelte-1r6yeh4.svelte-1r6yeh4{color:var(--emw--color-white, #ffffff);font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:18px;margin-bottom:16px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4{max-height:215px;display:flex;flex-direction:column}.OutcomeItem.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--emw--color-gray-transparency-20, rgba(114, 151, 135, 0.2));color:var(--emw--color-primary-variant, #a9ccbe);min-height:40px}.OutcomeItem.svelte-1r6yeh4 .OutcomeLeft.svelte-1r6yeh4{display:flex;align-items:center;gap:16px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo.svelte-1r6yeh4{display:flex;align-items:center;gap:8px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .PrizeImg.svelte-1r6yeh4{height:20px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .StatusIcon.svelte-1r6yeh4{height:16px}.OutcomeItem.svelte-1r6yeh4 .Date.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.HistoryLoader.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999);--emw-skeleton-text-width:255px}.HistoryLoader.svelte-1r6yeh4 .GroupLoader.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .LoaderBody.svelte-1r6yeh4{display:flex;justify-content:space-between}.HistoryLoader.svelte-1r6yeh4 .LoaderLeft.svelte-1r6yeh4{display:flex}.HistoryLoader.svelte-1r6yeh4 .Dot.svelte-1r6yeh4 .Skeleton{border-radius:50%;margin-right:10px}.HistoryLoader.svelte-1r6yeh4 .Text.svelte-1r6yeh4 .Skeleton{margin-right:20px}.HistoryLoader.Mobile.svelte-1r6yeh4 .Skeleton{--emw-skeleton-text-width:235px}.EmptyState.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:center;align-items:center;height:200px;color:var(--emw--color-secondary-variant, #a9ccbe)}.Mobile.svelte-1r6yeh4 .GroupName.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.Mobile.svelte-1r6yeh4 .OutcomeItem.svelte-1r6yeh4{font-size:var(--emw--font-size-x-small, 12px);padding:0}.Mobile.svelte-1r6yeh4 .OutcomeItem .Date.svelte-1r6yeh4{font-size:11px}');
|
|
114
|
+
}
|
|
115
|
+
function ee(l, e, t) {
|
|
116
|
+
const s = l.slice();
|
|
117
|
+
return s[21] = e[t], s;
|
|
118
|
+
}
|
|
119
|
+
function te(l, e, t) {
|
|
120
|
+
const s = l.slice();
|
|
121
|
+
return s[24] = e[t], s[26] = t, s;
|
|
122
|
+
}
|
|
123
|
+
function Te(l, e, t) {
|
|
124
|
+
const s = l.slice();
|
|
125
|
+
return s[16] = e[t], s;
|
|
126
|
+
}
|
|
127
|
+
function je(l, e, t) {
|
|
128
|
+
const s = l.slice();
|
|
129
|
+
return s[16] = e[t], s;
|
|
130
|
+
}
|
|
131
|
+
function Ee(l) {
|
|
132
|
+
let e, t, s = (
|
|
133
|
+
/*$_*/
|
|
134
|
+
l[3]("NoHistories") + ""
|
|
135
|
+
), r;
|
|
136
|
+
return {
|
|
137
|
+
c() {
|
|
138
|
+
e = g("div"), t = g("p"), r = D(s), d(e, "class", "EmptyState svelte-1r6yeh4");
|
|
139
|
+
},
|
|
140
|
+
m(o, i) {
|
|
141
|
+
H(o, e, i), v(e, t), v(t, r);
|
|
142
|
+
},
|
|
143
|
+
p(o, i) {
|
|
144
|
+
i & /*$_*/
|
|
145
|
+
8 && s !== (s = /*$_*/
|
|
146
|
+
o[3]("NoHistories") + "") && E(r, s);
|
|
147
|
+
},
|
|
148
|
+
d(o) {
|
|
149
|
+
o && I(e);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function De(l) {
|
|
154
|
+
let e, t = C(
|
|
155
|
+
/*historyData*/
|
|
156
|
+
l[2]
|
|
157
|
+
), s = [];
|
|
158
|
+
for (let r = 0; r < t.length; r += 1)
|
|
159
|
+
s[r] = le(ee(l, t, r));
|
|
160
|
+
return {
|
|
161
|
+
c() {
|
|
162
|
+
for (let r = 0; r < s.length; r += 1)
|
|
163
|
+
s[r].c();
|
|
164
|
+
e = pe();
|
|
165
|
+
},
|
|
166
|
+
m(r, o) {
|
|
167
|
+
for (let i = 0; i < s.length; i += 1)
|
|
168
|
+
s[i] && s[i].m(r, o);
|
|
169
|
+
H(r, e, o);
|
|
170
|
+
},
|
|
171
|
+
p(r, o) {
|
|
172
|
+
if (o & /*historyData*/
|
|
173
|
+
4) {
|
|
174
|
+
t = C(
|
|
175
|
+
/*historyData*/
|
|
176
|
+
r[2]
|
|
177
|
+
);
|
|
178
|
+
let i;
|
|
179
|
+
for (i = 0; i < t.length; i += 1) {
|
|
180
|
+
const n = ee(r, t, i);
|
|
181
|
+
s[i] ? s[i].p(n, o) : (s[i] = le(n), s[i].c(), s[i].m(e.parentNode, e));
|
|
182
|
+
}
|
|
183
|
+
for (; i < s.length; i += 1)
|
|
184
|
+
s[i].d(1);
|
|
185
|
+
s.length = t.length;
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
d(r) {
|
|
189
|
+
r && I(e), j(s, r);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function Fe(l) {
|
|
194
|
+
let e, t = C([1, 2, 3]), s = [];
|
|
195
|
+
for (let r = 0; r < 3; r += 1)
|
|
196
|
+
s[r] = Be(Te(l, t, r));
|
|
197
|
+
return {
|
|
198
|
+
c() {
|
|
199
|
+
e = g("div");
|
|
200
|
+
for (let r = 0; r < 3; r += 1)
|
|
201
|
+
s[r].c();
|
|
202
|
+
d(e, "class", "HistoryLoader svelte-1r6yeh4"), re(
|
|
203
|
+
e,
|
|
204
|
+
"Mobile",
|
|
205
|
+
/*mobileView*/
|
|
206
|
+
l[4]
|
|
207
|
+
);
|
|
208
|
+
},
|
|
209
|
+
m(r, o) {
|
|
210
|
+
H(r, e, o);
|
|
211
|
+
for (let i = 0; i < 3; i += 1)
|
|
212
|
+
s[i] && s[i].m(e, null);
|
|
213
|
+
},
|
|
214
|
+
p: T,
|
|
215
|
+
d(r) {
|
|
216
|
+
r && I(e), j(s, r);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function Ae(l) {
|
|
221
|
+
let e, t;
|
|
222
|
+
return {
|
|
223
|
+
c() {
|
|
224
|
+
e = g("img"), P(e.src, t = /*outcome*/
|
|
225
|
+
l[24].prizeImage) || d(e, "src", t), d(e, "alt", "prize"), d(e, "class", "PrizeImg svelte-1r6yeh4");
|
|
226
|
+
},
|
|
227
|
+
m(s, r) {
|
|
228
|
+
H(s, e, r);
|
|
229
|
+
},
|
|
230
|
+
p(s, r) {
|
|
231
|
+
r & /*historyData*/
|
|
232
|
+
4 && !P(e.src, t = /*outcome*/
|
|
233
|
+
s[24].prizeImage) && d(e, "src", t);
|
|
234
|
+
},
|
|
235
|
+
d(s) {
|
|
236
|
+
s && I(e);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function Ge(l) {
|
|
241
|
+
let e, t = (
|
|
242
|
+
/*outcome*/
|
|
243
|
+
l[24].prizeName + ""
|
|
244
|
+
), s;
|
|
245
|
+
return {
|
|
246
|
+
c() {
|
|
247
|
+
e = g("span"), s = D(t);
|
|
248
|
+
},
|
|
249
|
+
m(r, o) {
|
|
250
|
+
H(r, e, o), v(e, s);
|
|
251
|
+
},
|
|
252
|
+
p(r, o) {
|
|
253
|
+
o & /*historyData*/
|
|
254
|
+
4 && t !== (t = /*outcome*/
|
|
255
|
+
r[24].prizeName + "") && E(s, t);
|
|
256
|
+
},
|
|
257
|
+
d(r) {
|
|
258
|
+
r && I(e);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function se(l) {
|
|
263
|
+
let e, t, s, r, o, i, n, h, m, f, u, y = (
|
|
264
|
+
/*outcome*/
|
|
265
|
+
l[24].date + ""
|
|
266
|
+
), a, _;
|
|
267
|
+
function w(x, c) {
|
|
268
|
+
if (
|
|
269
|
+
/*outcome*/
|
|
270
|
+
x[24].prizeName
|
|
271
|
+
)
|
|
272
|
+
return Ge;
|
|
273
|
+
if (
|
|
274
|
+
/*outcome*/
|
|
275
|
+
x[24].prizeImage
|
|
276
|
+
)
|
|
277
|
+
return Ae;
|
|
278
|
+
}
|
|
279
|
+
let L = w(l), p = L && L(l);
|
|
280
|
+
return {
|
|
281
|
+
c() {
|
|
282
|
+
e = g("div"), t = g("div"), s = g("span"), s.textContent = `${/*index*/
|
|
283
|
+
l[26] + 1}`, r = O(), o = g("div"), p && p.c(), i = O(), n = g("img"), m = O(), f = g("div"), u = g("span"), a = D(y), _ = O(), d(s, "class", "Index"), P(n.src, h = /*outcome*/
|
|
284
|
+
l[24].state ? Y : $) || d(n, "src", h), d(n, "alt", "status"), d(n, "class", "StatusIcon svelte-1r6yeh4"), d(o, "class", "PrizeInfo svelte-1r6yeh4"), d(t, "class", "OutcomeLeft svelte-1r6yeh4"), d(u, "class", "Date svelte-1r6yeh4"), d(f, "class", "OutcomeRight"), d(e, "class", "OutcomeItem svelte-1r6yeh4");
|
|
285
|
+
},
|
|
286
|
+
m(x, c) {
|
|
287
|
+
H(x, e, c), v(e, t), v(t, s), v(t, r), v(t, o), p && p.m(o, null), v(o, i), v(o, n), v(e, m), v(e, f), v(f, u), v(u, a), v(e, _);
|
|
288
|
+
},
|
|
289
|
+
p(x, c) {
|
|
290
|
+
L === (L = w(x)) && p ? p.p(x, c) : (p && p.d(1), p = L && L(x), p && (p.c(), p.m(o, i))), c & /*historyData*/
|
|
291
|
+
4 && !P(n.src, h = /*outcome*/
|
|
292
|
+
x[24].state ? Y : $) && d(n, "src", h), c & /*historyData*/
|
|
293
|
+
4 && y !== (y = /*outcome*/
|
|
294
|
+
x[24].date + "") && E(a, y);
|
|
295
|
+
},
|
|
296
|
+
d(x) {
|
|
297
|
+
x && I(e), p && p.d();
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
function le(l) {
|
|
302
|
+
let e, t, s = (
|
|
303
|
+
/*group*/
|
|
304
|
+
l[21].name + ""
|
|
305
|
+
), r, o, i, n, h, m = C(
|
|
306
|
+
/*group*/
|
|
307
|
+
l[21].outcomes
|
|
308
|
+
), f = [];
|
|
309
|
+
for (let u = 0; u < m.length; u += 1)
|
|
310
|
+
f[u] = se(te(l, m, u));
|
|
311
|
+
return {
|
|
312
|
+
c() {
|
|
313
|
+
e = g("div"), t = g("div"), r = D(s), o = O(), i = g("div");
|
|
314
|
+
for (let u = 0; u < f.length; u += 1)
|
|
315
|
+
f[u].c();
|
|
316
|
+
h = O(), d(t, "class", "GroupName svelte-1r6yeh4"), d(i, "class", "OutcomesList svelte-1r6yeh4"), d(i, "style", n = /*group*/
|
|
317
|
+
l[21].outcomes.length <= 5 ? "overflow: hidden;" : ""), d(e, "class", "HistoryItem svelte-1r6yeh4");
|
|
318
|
+
},
|
|
319
|
+
m(u, y) {
|
|
320
|
+
H(u, e, y), v(e, t), v(t, r), v(e, o), v(e, i);
|
|
321
|
+
for (let a = 0; a < f.length; a += 1)
|
|
322
|
+
f[a] && f[a].m(i, null);
|
|
323
|
+
v(e, h);
|
|
324
|
+
},
|
|
325
|
+
p(u, y) {
|
|
326
|
+
if (y & /*historyData*/
|
|
327
|
+
4 && s !== (s = /*group*/
|
|
328
|
+
u[21].name + "") && E(r, s), y & /*historyData*/
|
|
329
|
+
4) {
|
|
330
|
+
m = C(
|
|
331
|
+
/*group*/
|
|
332
|
+
u[21].outcomes
|
|
333
|
+
);
|
|
334
|
+
let a;
|
|
335
|
+
for (a = 0; a < m.length; a += 1) {
|
|
336
|
+
const _ = te(u, m, a);
|
|
337
|
+
f[a] ? f[a].p(_, y) : (f[a] = se(_), f[a].c(), f[a].m(i, null));
|
|
338
|
+
}
|
|
339
|
+
for (; a < f.length; a += 1)
|
|
340
|
+
f[a].d(1);
|
|
341
|
+
f.length = m.length;
|
|
342
|
+
}
|
|
343
|
+
y & /*historyData*/
|
|
344
|
+
4 && n !== (n = /*group*/
|
|
345
|
+
u[21].outcomes.length <= 5 ? "overflow: hidden;" : "") && d(i, "style", n);
|
|
346
|
+
},
|
|
347
|
+
d(u) {
|
|
348
|
+
u && I(e), j(f, u);
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
function Ue(l) {
|
|
353
|
+
let e;
|
|
354
|
+
return {
|
|
355
|
+
c() {
|
|
356
|
+
e = g("div"), e.innerHTML = '<div class="LoaderLeft svelte-1r6yeh4"><ui-skeleton class="Dot svelte-1r6yeh4" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" width="50px" height="16px"></ui-skeleton>', d(e, "class", "LoaderBody svelte-1r6yeh4");
|
|
357
|
+
},
|
|
358
|
+
m(t, s) {
|
|
359
|
+
H(t, e, s);
|
|
360
|
+
},
|
|
361
|
+
p: T,
|
|
362
|
+
d(t) {
|
|
363
|
+
t && I(e);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function Be(l) {
|
|
368
|
+
let e, t, s, r, o = C([1, 2, 3]), i = [];
|
|
369
|
+
for (let n = 0; n < 3; n += 1)
|
|
370
|
+
i[n] = Ue(je(l, o, n));
|
|
371
|
+
return {
|
|
372
|
+
c() {
|
|
373
|
+
e = g("div"), t = g("ui-skeleton"), s = O();
|
|
374
|
+
for (let n = 0; n < 3; n += 1)
|
|
375
|
+
i[n].c();
|
|
376
|
+
r = O(), V(t, "structure", "text"), V(t, "height", "16px"), d(e, "class", "GroupLoader svelte-1r6yeh4");
|
|
377
|
+
},
|
|
378
|
+
m(n, h) {
|
|
379
|
+
H(n, e, h), v(e, t), v(e, s);
|
|
380
|
+
for (let m = 0; m < 3; m += 1)
|
|
381
|
+
i[m] && i[m].m(e, null);
|
|
382
|
+
v(e, r);
|
|
383
|
+
},
|
|
384
|
+
p: T,
|
|
385
|
+
d(n) {
|
|
386
|
+
n && I(e), j(i, n);
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function qe(l) {
|
|
391
|
+
let e, t, s;
|
|
392
|
+
function r(n, h) {
|
|
393
|
+
return (
|
|
394
|
+
/*loading*/
|
|
395
|
+
n[1] ? Fe : (
|
|
396
|
+
/*historyData*/
|
|
397
|
+
n[2].length > 0 ? De : Ee
|
|
398
|
+
)
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
let o = r(l), i = o(l);
|
|
402
|
+
return {
|
|
403
|
+
c() {
|
|
404
|
+
e = g("div"), t = g("div"), i.c(), d(t, "class", "HistoryList svelte-1r6yeh4"), d(e, "class", "PrizeHistoryContent svelte-1r6yeh4"), re(
|
|
405
|
+
e,
|
|
406
|
+
"Mobile",
|
|
407
|
+
/*mobileView*/
|
|
408
|
+
l[4]
|
|
409
|
+
);
|
|
410
|
+
},
|
|
411
|
+
m(n, h) {
|
|
412
|
+
H(n, e, h), v(e, t), i.m(t, null), l[13](e);
|
|
413
|
+
},
|
|
414
|
+
p(n, [h]) {
|
|
415
|
+
o === (o = r(n)) && i ? i.p(n, h) : (i.d(1), i = o(n), i && (i.c(), i.m(t, null)));
|
|
416
|
+
},
|
|
417
|
+
i(n) {
|
|
418
|
+
n && (s || me(() => {
|
|
419
|
+
s = ye(e, Le, { duration: 300 }), s.start();
|
|
420
|
+
}));
|
|
421
|
+
},
|
|
422
|
+
o: T,
|
|
423
|
+
d(n) {
|
|
424
|
+
n && I(e), i.d(), l[13](null);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
let Re = null;
|
|
429
|
+
function Je(l, e, t) {
|
|
430
|
+
let s;
|
|
431
|
+
de(l, ze, (c) => t(3, s = c));
|
|
432
|
+
let { endpoint: r = "" } = e, { session: o = "" } = e, { lang: i = "en" } = e, { clientstyling: n = "" } = e, { clientstylingurl: h = "" } = e, { translationurl: m = "" } = e, { mbsource: f = "" } = e, { type: u = "wheelOfFortune" } = e, y;
|
|
433
|
+
const a = He(window.navigator.userAgent);
|
|
434
|
+
let _ = !0, w = [];
|
|
435
|
+
Ne();
|
|
436
|
+
const L = () => {
|
|
437
|
+
fetch(m).then((k) => k.json()).then((k) => {
|
|
438
|
+
Object.keys(k).forEach((N) => {
|
|
439
|
+
ie(N, k[N]);
|
|
440
|
+
});
|
|
441
|
+
});
|
|
442
|
+
}, p = () => S(this, null, function* () {
|
|
443
|
+
if (!(!r || !o)) {
|
|
444
|
+
t(1, _ = !0);
|
|
445
|
+
try {
|
|
446
|
+
t(2, w = yield Me.fetchFullHistory(r, o, i, [u]));
|
|
447
|
+
} catch (c) {
|
|
448
|
+
console.error("[PrizeEngineHistory] Fetch failed", c);
|
|
449
|
+
} finally {
|
|
450
|
+
t(1, _ = !1);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
ve(() => () => {
|
|
455
|
+
});
|
|
456
|
+
function x(c) {
|
|
457
|
+
ge[c ? "unshift" : "push"](() => {
|
|
458
|
+
y = c, t(0, y);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
return l.$$set = (c) => {
|
|
462
|
+
"endpoint" in c && t(5, r = c.endpoint), "session" in c && t(6, o = c.session), "lang" in c && t(7, i = c.lang), "clientstyling" in c && t(8, n = c.clientstyling), "clientstylingurl" in c && t(9, h = c.clientstylingurl), "translationurl" in c && t(10, m = c.translationurl), "mbsource" in c && t(11, f = c.mbsource), "type" in c && t(12, u = c.type);
|
|
463
|
+
}, l.$$.update = () => {
|
|
464
|
+
l.$$.dirty & /*lang*/
|
|
465
|
+
128 && i && Ce(i), l.$$.dirty & /*translationurl*/
|
|
466
|
+
1024 && m && L(), l.$$.dirty & /*endpoint, session, type*/
|
|
467
|
+
4192 && r && o && u && p(), l.$$.dirty & /*clientstyling, rootContainer*/
|
|
468
|
+
257 && n && y && _e(y, n), l.$$.dirty & /*clientstylingurl, rootContainer*/
|
|
469
|
+
513 && h && y && be(y, h), l.$$.dirty & /*mbsource, rootContainer*/
|
|
470
|
+
2049 && f && y && we(y, `${f}.Style`, Re);
|
|
471
|
+
}, [
|
|
472
|
+
y,
|
|
473
|
+
_,
|
|
474
|
+
w,
|
|
475
|
+
s,
|
|
476
|
+
a,
|
|
477
|
+
r,
|
|
478
|
+
o,
|
|
479
|
+
i,
|
|
480
|
+
n,
|
|
481
|
+
h,
|
|
482
|
+
m,
|
|
483
|
+
f,
|
|
484
|
+
u,
|
|
485
|
+
x
|
|
486
|
+
];
|
|
487
|
+
}
|
|
488
|
+
class We extends ce {
|
|
489
|
+
constructor(e) {
|
|
490
|
+
super(), he(
|
|
491
|
+
this,
|
|
492
|
+
e,
|
|
493
|
+
Je,
|
|
494
|
+
qe,
|
|
495
|
+
ue,
|
|
496
|
+
{
|
|
497
|
+
endpoint: 5,
|
|
498
|
+
session: 6,
|
|
499
|
+
lang: 7,
|
|
500
|
+
clientstyling: 8,
|
|
501
|
+
clientstylingurl: 9,
|
|
502
|
+
translationurl: 10,
|
|
503
|
+
mbsource: 11,
|
|
504
|
+
type: 12
|
|
505
|
+
},
|
|
506
|
+
Pe
|
|
507
|
+
);
|
|
508
|
+
}
|
|
509
|
+
get endpoint() {
|
|
510
|
+
return this.$$.ctx[5];
|
|
511
|
+
}
|
|
512
|
+
set endpoint(e) {
|
|
513
|
+
this.$$set({ endpoint: e }), z();
|
|
514
|
+
}
|
|
515
|
+
get session() {
|
|
516
|
+
return this.$$.ctx[6];
|
|
517
|
+
}
|
|
518
|
+
set session(e) {
|
|
519
|
+
this.$$set({ session: e }), z();
|
|
520
|
+
}
|
|
521
|
+
get lang() {
|
|
522
|
+
return this.$$.ctx[7];
|
|
523
|
+
}
|
|
524
|
+
set lang(e) {
|
|
525
|
+
this.$$set({ lang: e }), z();
|
|
526
|
+
}
|
|
527
|
+
get clientstyling() {
|
|
528
|
+
return this.$$.ctx[8];
|
|
529
|
+
}
|
|
530
|
+
set clientstyling(e) {
|
|
531
|
+
this.$$set({ clientstyling: e }), z();
|
|
532
|
+
}
|
|
533
|
+
get clientstylingurl() {
|
|
534
|
+
return this.$$.ctx[9];
|
|
535
|
+
}
|
|
536
|
+
set clientstylingurl(e) {
|
|
537
|
+
this.$$set({ clientstylingurl: e }), z();
|
|
538
|
+
}
|
|
539
|
+
get translationurl() {
|
|
540
|
+
return this.$$.ctx[10];
|
|
541
|
+
}
|
|
542
|
+
set translationurl(e) {
|
|
543
|
+
this.$$set({ translationurl: e }), z();
|
|
544
|
+
}
|
|
545
|
+
get mbsource() {
|
|
546
|
+
return this.$$.ctx[11];
|
|
547
|
+
}
|
|
548
|
+
set mbsource(e) {
|
|
549
|
+
this.$$set({ mbsource: e }), z();
|
|
550
|
+
}
|
|
551
|
+
get type() {
|
|
552
|
+
return this.$$.ctx[12];
|
|
553
|
+
}
|
|
554
|
+
set type(e) {
|
|
555
|
+
this.$$set({ type: e }), z();
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
customElements.define("prize-engine-history", xe(We, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
|
|
559
|
+
export {
|
|
560
|
+
We as default
|
|
561
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var J=Object.defineProperty;var j=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var q=(s,t,r)=>t in s?J(s,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[t]=r,H=(s,t)=>{for(var r in t||(t={}))V.call(t,r)&&q(s,r,t[r]);if(j)for(var r of j(t))K.call(t,r)&&q(s,r,t[r]);return s};var k=(s,t,r)=>new Promise((l,n)=>{var o=u=>{try{a(r.next(u))}catch(y){n(y)}},i=u=>{try{a(r.throw(u))}catch(y){n(y)}},a=u=>u.done?l(u.value):Promise.resolve(u.value).then(o,i);a((r=r.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-DcfvouvT.cjs"),Q=require("./LotteryProgramWof-BXO9ySHI.cjs"),L=require("./CasinoMysteryChestContainer-BckJ8kSf.cjs"),X=require("./CasinoMysteryChestsList-ZlpUP-_c.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const E={en:{History:"History",NoHistories:"No histories"}};function Y({withLocale:s,translations:t}){L.$locale.subscribe(r=>{r==null&&(L.$dictionary.set(t),L.$locale.set(s))})}function W(s,t){L.addMessages(s,t)}function $(s){L.$locale.set(s)}const ee=()=>{Y({withLocale:"en",translations:{}}),Object.keys(E).forEach(s=>{W(s,E[s])})},D=(n,o,i,...a)=>k(exports,[n,o,i,...a],function*(s,t,r,l={}){const u=new URL(s+"/v1"+t);l.params&&Object.keys(l.params).forEach(f=>u.searchParams.append(f,l.params[f]));const y={method:l.method||"GET",headers:H(H({"Content-Type":"application/json",Accept:"text/plain"},r?{"x-SessionId":r}:{}),l.headers),body:l.body},d=yield(yield fetch(u.toString(),y)).text();return JSON.parse(d)}),te={fetchLotteries:(s,t,r)=>k(exports,null,function*(){return yield D(s,"/wof/lotteries",t,{params:r!=null&&r.length?{filter:r.map(l=>`Types[]=${l}`).join(",")}:{filter:"Types[]=wheelOfFortune"}})}),fetchFullHistory:(s,t,r,l)=>k(exports,null,function*(){const n=c=>{const v=new URL(s+"/v1"+c);return l!=null&&l.length&&l.forEach(_=>v.searchParams.append("filter",`Types[]=${_}`)),v.toString()},o=c=>k(exports,null,function*(){return(yield fetch(n(c),{headers:H({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})})).json()}),[i,a]=yield Promise.all([o("/wof/lotteryHistory"),o("/wof/lotteries")]),u=(a==null?void 0:a.items)||[],y=(i==null?void 0:i.items)||[],m=new Set(u.map(c=>c.program.id)),d=y.map(c=>c.programID).filter(c=>m.has(c));return d.length===0?[]:(yield Promise.all(d.map(c=>k(exports,null,function*(){var p,b,h;const v=yield D(s,`/wof/outcome/${c}`,t),_=u.find(x=>x.program.id===c);if(!((p=v==null?void 0:v.items)!=null&&p.length))return null;const w=v.items.map(x=>{var z,O,C,S,M,P,N,T;const I=x.draw.result.wheelOfFortunePartitionIndex,g=(O=(z=_==null?void 0:_.program)==null?void 0:z.wheelOfFortune)==null?void 0:O.partitions[I];return{prizeName:((C=g==null?void 0:g.name)==null?void 0:C[r])||((S=g==null?void 0:g.name)==null?void 0:S["*"]),prizeImage:((M=g==null?void 0:g.prizeImage)==null?void 0:M[r])||((P=g==null?void 0:g.prizeImage)==null?void 0:P["*"])||((N=g==null?void 0:g.image1)==null?void 0:N[r])||((T=g==null?void 0:g.image1)==null?void 0:T["*"]),state:x.draw.state==="fulfilled",date:X.format(new Date(x.draw.time),"LLL d, yyyy HH:mm:ss")}});return{id:c,name:((b=_==null?void 0:_.program)==null?void 0:b.name[r])||((h=_==null?void 0:_.program)==null?void 0:h.name["*"])||"Unknown Game",outcomes:w}})))).filter(c=>c!==null)})},F="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e",G="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e";function re(s){e.append_styles(s,"svelte-1r6yeh4",':host{display:block;height:100%;flex-grow:1}.PrizeHistoryContent.svelte-1r6yeh4.svelte-1r6yeh4{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif);margin:30px auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{overflow-y:auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar{width:4px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track{background:transparent}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{flex-grow:1;display:flex;flex-direction:column;gap:24px;padding-right:10px;padding-bottom:50px}.HistoryItem.svelte-1r6yeh4.svelte-1r6yeh4{margin-bottom:40px;flex-shrink:0}.GroupName.svelte-1r6yeh4.svelte-1r6yeh4{color:var(--emw--color-white, #ffffff);font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:18px;margin-bottom:16px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4{max-height:215px;display:flex;flex-direction:column}.OutcomeItem.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--emw--color-gray-transparency-20, rgba(114, 151, 135, 0.2));color:var(--emw--color-primary-variant, #a9ccbe);min-height:40px}.OutcomeItem.svelte-1r6yeh4 .OutcomeLeft.svelte-1r6yeh4{display:flex;align-items:center;gap:16px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo.svelte-1r6yeh4{display:flex;align-items:center;gap:8px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .PrizeImg.svelte-1r6yeh4{height:20px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .StatusIcon.svelte-1r6yeh4{height:16px}.OutcomeItem.svelte-1r6yeh4 .Date.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.HistoryLoader.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999);--emw-skeleton-text-width:255px}.HistoryLoader.svelte-1r6yeh4 .GroupLoader.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .LoaderBody.svelte-1r6yeh4{display:flex;justify-content:space-between}.HistoryLoader.svelte-1r6yeh4 .LoaderLeft.svelte-1r6yeh4{display:flex}.HistoryLoader.svelte-1r6yeh4 .Dot.svelte-1r6yeh4 .Skeleton{border-radius:50%;margin-right:10px}.HistoryLoader.svelte-1r6yeh4 .Text.svelte-1r6yeh4 .Skeleton{margin-right:20px}.HistoryLoader.Mobile.svelte-1r6yeh4 .Skeleton{--emw-skeleton-text-width:235px}.EmptyState.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:center;align-items:center;height:200px;color:var(--emw--color-secondary-variant, #a9ccbe)}.Mobile.svelte-1r6yeh4 .GroupName.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.Mobile.svelte-1r6yeh4 .OutcomeItem.svelte-1r6yeh4{font-size:var(--emw--font-size-x-small, 12px);padding:0}.Mobile.svelte-1r6yeh4 .OutcomeItem .Date.svelte-1r6yeh4{font-size:11px}')}function U(s,t,r){const l=s.slice();return l[21]=t[r],l}function A(s,t,r){const l=s.slice();return l[24]=t[r],l[26]=r,l}function le(s,t,r){const l=s.slice();return l[16]=t[r],l}function se(s,t,r){const l=s.slice();return l[16]=t[r],l}function ne(s){let t,r,l=s[3]("NoHistories")+"",n;return{c(){t=e.element("div"),r=e.element("p"),n=e.text(l),e.attr(t,"class","EmptyState svelte-1r6yeh4")},m(o,i){e.insert(o,t,i),e.append(t,r),e.append(r,n)},p(o,i){i&8&&l!==(l=o[3]("NoHistories")+"")&&e.set_data(n,l)},d(o){o&&e.detach(t)}}}function ie(s){let t,r=e.ensure_array_like(s[2]),l=[];for(let n=0;n<r.length;n+=1)l[n]=R(U(s,r,n));return{c(){for(let n=0;n<l.length;n+=1)l[n].c();t=e.empty()},m(n,o){for(let i=0;i<l.length;i+=1)l[i]&&l[i].m(n,o);e.insert(n,t,o)},p(n,o){if(o&4){r=e.ensure_array_like(n[2]);let i;for(i=0;i<r.length;i+=1){const a=U(n,r,i);l[i]?l[i].p(a,o):(l[i]=R(a),l[i].c(),l[i].m(t.parentNode,t))}for(;i<l.length;i+=1)l[i].d(1);l.length=r.length}},d(n){n&&e.detach(t),e.destroy_each(l,n)}}}function ae(s){let t,r=e.ensure_array_like([1,2,3]),l=[];for(let n=0;n<3;n+=1)l[n]=ue(le(s,r,n));return{c(){t=e.element("div");for(let n=0;n<3;n+=1)l[n].c();e.attr(t,"class","HistoryLoader svelte-1r6yeh4"),e.toggle_class(t,"Mobile",s[4])},m(n,o){e.insert(n,t,o);for(let i=0;i<3;i+=1)l[i]&&l[i].m(t,null)},p:e.noop,d(n){n&&e.detach(t),e.destroy_each(l,n)}}}function oe(s){let t,r;return{c(){t=e.element("img"),e.src_url_equal(t.src,r=s[24].prizeImage)||e.attr(t,"src",r),e.attr(t,"alt","prize"),e.attr(t,"class","PrizeImg svelte-1r6yeh4")},m(l,n){e.insert(l,t,n)},p(l,n){n&4&&!e.src_url_equal(t.src,r=l[24].prizeImage)&&e.attr(t,"src",r)},d(l){l&&e.detach(t)}}}function ce(s){let t,r=s[24].prizeName+"",l;return{c(){t=e.element("span"),l=e.text(r)},m(n,o){e.insert(n,t,o),e.append(t,l)},p(n,o){o&4&&r!==(r=n[24].prizeName+"")&&e.set_data(l,r)},d(n){n&&e.detach(t)}}}function B(s){let t,r,l,n,o,i,a,u,y,m,d,f=s[24].date+"",c,v;function _(b,h){if(b[24].prizeName)return ce;if(b[24].prizeImage)return oe}let w=_(s),p=w&&w(s);return{c(){t=e.element("div"),r=e.element("div"),l=e.element("span"),l.textContent=`${s[26]+1}`,n=e.space(),o=e.element("div"),p&&p.c(),i=e.space(),a=e.element("img"),y=e.space(),m=e.element("div"),d=e.element("span"),c=e.text(f),v=e.space(),e.attr(l,"class","Index"),e.src_url_equal(a.src,u=s[24].state?F:G)||e.attr(a,"src",u),e.attr(a,"alt","status"),e.attr(a,"class","StatusIcon svelte-1r6yeh4"),e.attr(o,"class","PrizeInfo svelte-1r6yeh4"),e.attr(r,"class","OutcomeLeft svelte-1r6yeh4"),e.attr(d,"class","Date svelte-1r6yeh4"),e.attr(m,"class","OutcomeRight"),e.attr(t,"class","OutcomeItem svelte-1r6yeh4")},m(b,h){e.insert(b,t,h),e.append(t,r),e.append(r,l),e.append(r,n),e.append(r,o),p&&p.m(o,null),e.append(o,i),e.append(o,a),e.append(t,y),e.append(t,m),e.append(m,d),e.append(d,c),e.append(t,v)},p(b,h){w===(w=_(b))&&p?p.p(b,h):(p&&p.d(1),p=w&&w(b),p&&(p.c(),p.m(o,i))),h&4&&!e.src_url_equal(a.src,u=b[24].state?F:G)&&e.attr(a,"src",u),h&4&&f!==(f=b[24].date+"")&&e.set_data(c,f)},d(b){b&&e.detach(t),p&&p.d()}}}function R(s){let t,r,l=s[21].name+"",n,o,i,a,u,y=e.ensure_array_like(s[21].outcomes),m=[];for(let d=0;d<y.length;d+=1)m[d]=B(A(s,y,d));return{c(){t=e.element("div"),r=e.element("div"),n=e.text(l),o=e.space(),i=e.element("div");for(let d=0;d<m.length;d+=1)m[d].c();u=e.space(),e.attr(r,"class","GroupName svelte-1r6yeh4"),e.attr(i,"class","OutcomesList svelte-1r6yeh4"),e.attr(i,"style",a=s[21].outcomes.length<=5?"overflow: hidden;":""),e.attr(t,"class","HistoryItem svelte-1r6yeh4")},m(d,f){e.insert(d,t,f),e.append(t,r),e.append(r,n),e.append(t,o),e.append(t,i);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(i,null);e.append(t,u)},p(d,f){if(f&4&&l!==(l=d[21].name+"")&&e.set_data(n,l),f&4){y=e.ensure_array_like(d[21].outcomes);let c;for(c=0;c<y.length;c+=1){const v=A(d,y,c);m[c]?m[c].p(v,f):(m[c]=B(v),m[c].c(),m[c].m(i,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=y.length}f&4&&a!==(a=d[21].outcomes.length<=5?"overflow: hidden;":"")&&e.attr(i,"style",a)},d(d){d&&e.detach(t),e.destroy_each(m,d)}}}function he(s){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="LoaderLeft svelte-1r6yeh4"><ui-skeleton class="Dot svelte-1r6yeh4" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" width="50px" height="16px"></ui-skeleton>',e.attr(t,"class","LoaderBody svelte-1r6yeh4")},m(r,l){e.insert(r,t,l)},p:e.noop,d(r){r&&e.detach(t)}}}function ue(s){let t,r,l,n,o=e.ensure_array_like([1,2,3]),i=[];for(let a=0;a<3;a+=1)i[a]=he(se(s,o,a));return{c(){t=e.element("div"),r=e.element("ui-skeleton"),l=e.space();for(let a=0;a<3;a+=1)i[a].c();n=e.space(),e.set_custom_element_data(r,"structure","text"),e.set_custom_element_data(r,"height","16px"),e.attr(t,"class","GroupLoader svelte-1r6yeh4")},m(a,u){e.insert(a,t,u),e.append(t,r),e.append(t,l);for(let y=0;y<3;y+=1)i[y]&&i[y].m(t,null);e.append(t,n)},p:e.noop,d(a){a&&e.detach(t),e.destroy_each(i,a)}}}function de(s){let t,r,l;function n(a,u){return a[1]?ae:a[2].length>0?ie:ne}let o=n(s),i=o(s);return{c(){t=e.element("div"),r=e.element("div"),i.c(),e.attr(r,"class","HistoryList svelte-1r6yeh4"),e.attr(t,"class","PrizeHistoryContent svelte-1r6yeh4"),e.toggle_class(t,"Mobile",s[4])},m(a,u){e.insert(a,t,u),e.append(t,r),i.m(r,null),s[13](t)},p(a,[u]){o===(o=n(a))&&i?i.p(a,u):(i.d(1),i=o(a),i&&(i.c(),i.m(r,null)))},i(a){a&&(l||e.add_render_callback(()=>{l=e.create_in_transition(t,Q.fade,{duration:300}),l.start()}))},o:e.noop,d(a){a&&e.detach(t),i.d(),s[13](null)}}}let me=null;function ye(s,t,r){let l;e.component_subscribe(s,L.$format,h=>r(3,l=h));let{endpoint:n=""}=t,{session:o=""}=t,{lang:i="en"}=t,{clientstyling:a=""}=t,{clientstylingurl:u=""}=t,{translationurl:y=""}=t,{mbsource:m=""}=t,{type:d="wheelOfFortune"}=t,f;const c=L.isMobile(window.navigator.userAgent);let v=!0,_=[];ee();const w=()=>{fetch(y).then(x=>x.json()).then(x=>{Object.keys(x).forEach(I=>{W(I,x[I])})})},p=()=>k(this,null,function*(){if(!(!n||!o)){r(1,v=!0);try{r(2,_=yield te.fetchFullHistory(n,o,i,[d]))}catch(h){console.error("[PrizeEngineHistory] Fetch failed",h)}finally{r(1,v=!1)}}});e.onMount(()=>()=>{});function b(h){e.binding_callbacks[h?"unshift":"push"](()=>{f=h,r(0,f)})}return s.$$set=h=>{"endpoint"in h&&r(5,n=h.endpoint),"session"in h&&r(6,o=h.session),"lang"in h&&r(7,i=h.lang),"clientstyling"in h&&r(8,a=h.clientstyling),"clientstylingurl"in h&&r(9,u=h.clientstylingurl),"translationurl"in h&&r(10,y=h.translationurl),"mbsource"in h&&r(11,m=h.mbsource),"type"in h&&r(12,d=h.type)},s.$$.update=()=>{s.$$.dirty&128&&i&&$(i),s.$$.dirty&1024&&y&&w(),s.$$.dirty&4192&&n&&o&&d&&p(),s.$$.dirty&257&&a&&f&&e.setClientStyling(f,a),s.$$.dirty&513&&u&&f&&e.setClientStylingURL(f,u),s.$$.dirty&2049&&m&&f&&e.setStreamStyling(f,`${m}.Style`,me)},[f,v,_,l,c,n,o,i,a,u,y,m,d,b]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ye,de,e.safe_not_equal,{endpoint:5,session:6,lang:7,clientstyling:8,clientstylingurl:9,translationurl:10,mbsource:11,type:12},re)}get endpoint(){return this.$$.ctx[5]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[6]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[7]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[12]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-history",e.create_custom_element(Z,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=Z;
|