@everymatrix/prize-engine-suite 0.0.1
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/README.md +138 -0
- package/components/PrizeEngineChest-BVPAgurG.js +309 -0
- package/components/PrizeEngineChest-C0N7lnkh.js +331 -0
- package/components/PrizeEngineChest-IjXQ3Npg.cjs +1 -0
- package/components/PrizeEngineCoin-BSbJruG-.js +293 -0
- package/components/PrizeEngineCoin-CfvghnNb.js +271 -0
- package/components/PrizeEngineCoin-DSfNslVg.cjs +1 -0
- package/components/PrizeEngineDetails-3-kB4O56.js +2000 -0
- package/components/PrizeEngineDetails-BB_QSozG.cjs +1 -0
- package/components/PrizeEngineDetails-CjKeFIuU.js +1960 -0
- package/components/PrizeEngineHistory-60ER0uV1.js +1786 -0
- package/components/PrizeEngineHistory-BpILiR5F.cjs +1 -0
- package/components/PrizeEngineHistory-DN5bFRQB.js +1816 -0
- package/components/PrizeEngineList-DQ8Mn6nB.js +471 -0
- package/components/PrizeEngineList-QzCyrAut.cjs +1 -0
- package/components/PrizeEngineList-mINVnC_b.js +437 -0
- package/components/PrizeEngineLuckywheel-BgWt7wEl.cjs +1 -0
- package/components/PrizeEngineLuckywheel-BncCaQEg.js +272 -0
- package/components/PrizeEngineLuckywheel-CTlHcFBH.js +272 -0
- package/components/PrizeEngineSuite-BhF-GlCv.js +5378 -0
- package/components/PrizeEngineSuite-DNby9KuV.cjs +23 -0
- package/components/PrizeEngineSuite-DWvvEtv_.js +5337 -0
- package/components/WheelSVG-BxjEfPQo.js +1475 -0
- package/components/WheelSVG-DYz6PQPq.cjs +34 -0
- package/components/WheelSVG-MY7KdRdd.js +1441 -0
- package/es2015/prize-engine-suite.cjs +1 -0
- package/es2015/prize-engine-suite.js +16 -0
- package/esnext/prize-engine-suite.js +14 -0
- package/package.json +25 -0
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-b2193545-9K-aI7zC.cjs +1 -0
- package/stencil/index-b2193545-DsMHU6jb.js +519 -0
- package/stencil/index-b2193545-R7ZoV-kY.js +503 -0
- package/stencil/ui-skeleton-BreIU6e5.cjs +1 -0
- package/stencil/ui-skeleton-W50o8tfg.js +11 -0
- package/stencil/ui-skeleton-ed169f8f-CVY4B-CP.js +155 -0
- package/stencil/ui-skeleton-ed169f8f-CpiCXJrP.cjs +55 -0
- package/stencil/ui-skeleton-ed169f8f-D3TjbVKy.js +155 -0
- package/stencil/ui-skeleton-xXZA3rYO.js +29 -0
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
var ee = Object.defineProperty;
|
|
2
|
+
var G = Object.getOwnPropertySymbols;
|
|
3
|
+
var te = Object.prototype.hasOwnProperty, le = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var V = (l, e, t) => e in l ? ee(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, Y = (l, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
te.call(e, t) && V(l, t, e[t]);
|
|
7
|
+
if (G)
|
|
8
|
+
for (var t of G(e))
|
|
9
|
+
le.call(e, t) && V(l, t, e[t]);
|
|
10
|
+
return l;
|
|
11
|
+
};
|
|
12
|
+
var D = (l, e, t) => new Promise((r, n) => {
|
|
13
|
+
var s = (c) => {
|
|
14
|
+
try {
|
|
15
|
+
a(t.next(c));
|
|
16
|
+
} catch (w) {
|
|
17
|
+
n(w);
|
|
18
|
+
}
|
|
19
|
+
}, i = (c) => {
|
|
20
|
+
try {
|
|
21
|
+
a(t.throw(c));
|
|
22
|
+
} catch (w) {
|
|
23
|
+
n(w);
|
|
24
|
+
}
|
|
25
|
+
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(s, i);
|
|
26
|
+
a((t = t.apply(l, e)).next());
|
|
27
|
+
});
|
|
28
|
+
import { $ as N, a as re, b as ne, S as ie, i as se, s as oe, f as x, c as ae, n as O, d as j, e as ce, g as de, B as ue, h as L, j as d, k as g, l as u, t as X, m as ge, o as pe, p as he, q as me, r as H, u as q, w as E, x as F, Q as P, L as fe, y as I, C as ve, D as we, E as be, F as Ce, G as ye } from "./PrizeEngineSuite-BhF-GlCv.js";
|
|
29
|
+
import "../stencil/ui-skeleton-xXZA3rYO.js";
|
|
30
|
+
const R = {
|
|
31
|
+
en: {
|
|
32
|
+
Title: "Prize Games",
|
|
33
|
+
RemainingTimes: "Remaining Times",
|
|
34
|
+
NoContent: "No games available at the moment",
|
|
35
|
+
Loading: "Loading games...",
|
|
36
|
+
Error: "Failed to load games",
|
|
37
|
+
WheelOfFortune: "Lucky Wheel",
|
|
38
|
+
MysteryChest: "Mystery Chest",
|
|
39
|
+
FlipCoin: "Flip Coin",
|
|
40
|
+
Dice: "Dices"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
function ke({ withLocale: l, translations: e }) {
|
|
44
|
+
N.subscribe((t) => {
|
|
45
|
+
t == null && (re.set(e), N.set(l));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function J(l, e) {
|
|
49
|
+
ne(l, e);
|
|
50
|
+
}
|
|
51
|
+
function xe(l) {
|
|
52
|
+
N.set(l);
|
|
53
|
+
}
|
|
54
|
+
const je = () => {
|
|
55
|
+
ke({ withLocale: "en", translations: {} }), Object.keys(R).forEach((l) => {
|
|
56
|
+
J(l, R[l]);
|
|
57
|
+
});
|
|
58
|
+
}, Le = (r) => D(void 0, [r], function* ({ endpoint: l, session: e, types: t }) {
|
|
59
|
+
const n = new URL(`${l}/v1/wof/lotteries`);
|
|
60
|
+
t && t.length > 0 && t.forEach((i) => n.searchParams.append("filter", `Types[]=${i}`));
|
|
61
|
+
const s = yield fetch(n.toString(), {
|
|
62
|
+
method: "GET",
|
|
63
|
+
headers: Y({
|
|
64
|
+
"Content-Type": "application/json",
|
|
65
|
+
Accept: "text/plain"
|
|
66
|
+
}, e ? { "x-SessionId": e } : {})
|
|
67
|
+
});
|
|
68
|
+
if (!s.ok)
|
|
69
|
+
throw new Error(`Failed to fetch lotteries: ${s.statusText}`);
|
|
70
|
+
return s.json();
|
|
71
|
+
}), _e = {
|
|
72
|
+
lotteries: (l, e, t) => D(void 0, null, function* () {
|
|
73
|
+
const r = yield Le({ endpoint: l, session: e, types: t });
|
|
74
|
+
return (r == null ? void 0 : r.items) || [];
|
|
75
|
+
})
|
|
76
|
+
}, Ae = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMVSURBVHgBbVTNThNRGD3fnSmYYNLizhVl4ZriC9AhcUFcWDYmbsQuiCsT0aioJJRogrJhacJC0MSwMsALMIUHsDQxYSeDCVspiWA7befz3Jm2AnGSm7k/3+85517Bf75F9fMOoikXjTzHkIO6OAgrnFcdNLaK8mjzso+cX5S0kk2h9ZHGeUNnOtY4MlzDRVjjP801DBpBG83xorwMur6mO3ml33MCqSg0r4h2Beo9kduDCtDYHDyUKc5lPAI+03z4CvTbFy3lLgSa1f2sC9dngWk6HjbQLjyTW+VOyb2qp2W6LGg95rRGu0EX2F7X2WwvkEG/z0oyHCesJNuHlF9SP2PPNA6hcbBVXeWeTQh7FgiiwRS344Sv9ehOhMami+aag7MZ/n3iMGLQrKZw4hloxUFTB3B2k7j4BD5HvPZa+O0NoL1BEsYitMdNC1qQOLP5VJLRWgunHtdVZssp+ivEbYhVDocwv2hGTEzQguMVpVSL+WExKeh9kxxK7a3ciDEpicdgraLGTant3zoEBHm30+NQF7O78mbHQI6ZKC/P9UjdmN7mgYM/pDxU0svew7QgXHgqEwvW6YOuUhoh2w6HDMJD6+PEo06iQvp3ACXl5p+4RJN9rXaDGBjLKiuUAIh6NCQfhcGKWEkzvSjZa93t97pbYFYC2ThwUd/heYGZM8wcOEiNFqVY69p+1RfHBDww7K9saZzT/XxH3ZkIMt+xGya4U8yYkViYFrNTf1WXY2ms6xx9lNqTPWPgrHFCEJ15G4RZfbY2wsL3BIaB9CfPgz7oKH33OEZctBmsxKsjUzxjDnfLLMp1Iq87QDtPx4plMSI2Z6R4RiaCJAlg23HQ5zFwlUlyV5D6Qck8YNJgUpY2Y4BTkCI3KHvN8n8c4qpnZYCeqhPwE2xangWccA/y7JgBvN4VKclwYBKD+A7143R5SbfHOhxq94qs6Ar33A3ECVFjB+OT8i5ImD73LfIZiXgNqKMsWeo+HZlEJ3XOwzTX9nkpU3fFe+eekQuBLtFfsHeOziNO/DaRYkqB/zU+bOXLPn8BG6xnv5+RMCQAAAAASUVORK5CYII=", Ie = "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%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Me = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
77
|
+
function Se(l) {
|
|
78
|
+
ae(l, "svelte-ljc7r7", `:host{display:block;height:100%;flex-grow:1}.PrizeListContent.svelte-ljc7r7.svelte-ljc7r7{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7{flex-grow:1;overflow-y:auto}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar{width:4px}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.LuckyWheelList.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;gap:24px;padding:0;margin:0;list-style:none}.LuckyWheelListItem.svelte-ljc7r7.svelte-ljc7r7{width:100%}.ItemButton.svelte-ljc7r7.svelte-ljc7r7{padding:16px;border-radius:16px;border:1px solid var(--emw--color-teal-10, rgba(117, 255, 233, 0.1019607843));color:var(--emw--color-primary, #d3ffed);width:100%;height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-sizing:border-box;cursor:pointer;text-align:left;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);background:var(--emw--color-teal-05, rgba(117, 255, 233, 0.0509803922));position:relative}.ItemButton.svelte-ljc7r7.svelte-ljc7r7:hover,.ItemButton.svelte-ljc7r7.svelte-ljc7r7:active{background:var(--emw--color-teal-08, rgba(117, 255, 233, 0.0784313725));border:1px solid transparent;background-image:linear-gradient(var(--emw--color-background, #213841), var(--emw--color-background, #213841)), linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);background-origin:border-box;background-clip:padding-box, border-box}.ItemButton.svelte-ljc7r7:hover .IconButton.Chevron.svelte-ljc7r7,.ItemButton.svelte-ljc7r7:active .IconButton.Chevron.svelte-ljc7r7{background-color:var(--emw--color-green, #b2ff6d);background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%230C1A1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');border-radius:50%}.ItemTitleRow.svelte-ljc7r7.svelte-ljc7r7{display:flex;justify-content:space-between;align-items:center;width:100%}.ItemTitle.svelte-ljc7r7.svelte-ljc7r7{font-weight:700;font-size:var(--emw--font-size-medium-plus, 18px);background:linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ItemDetails.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:12px;align-items:center}.ItemKeys.svelte-ljc7r7.svelte-ljc7r7,.ItemValidity.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:400;color:var(--emw--color-secondary-variant, #729787)}.ItemKeys.svelte-ljc7r7 span.svelte-ljc7r7:last-child,.ItemValidity.svelte-ljc7r7 span.svelte-ljc7r7:last-child{color:var(--emw--color-primary, #d3ffed)}.SmallIcon.svelte-ljc7r7.svelte-ljc7r7{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--emw--color-secondary-variant, #729787);flex-shrink:0}.SmallIcon.Wheel.svelte-ljc7r7.svelte-ljc7r7{background-position:center;background-repeat:no-repeat;background-size:16px 16px;width:16px;height:16px}.IconButton.Chevron.svelte-ljc7r7.svelte-ljc7r7{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background:center/18px 18px url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.LoaderWrap.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;width:100%}.LoaderWrap.svelte-ljc7r7 .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)}.LoaderWrap.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.LoaderWrap.Mobile.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:16px;padding:25px 20px;line-height:15px}.LoaderWrap.Mobile.svelte-ljc7r7 .Skeleton.SkeletonText{width:135px}.EmptyState.svelte-ljc7r7.svelte-ljc7r7{width:100%;display:flex;flex-direction:column;color:var(--emw--color-secondary-variant, #a9ccbe);font-size:var(--emw--font-size-medium, 16px);align-items:center;justify-content:center;height:200px}.Mobile.svelte-ljc7r7 .ItemButton.svelte-ljc7r7{height:72px;padding:16px 20px;border-radius:16px}.Mobile.svelte-ljc7r7 .ItemButton .ItemTitle.svelte-ljc7r7{font-size:var(--emw--font-size-medium, 16px)}.Mobile.svelte-ljc7r7 .ItemButton .ItemDetails.svelte-ljc7r7{font-size:var(--emw--font-size-x-small, 12px)}.Mobile.svelte-ljc7r7 .IconButton.Chevron.svelte-ljc7r7{width:24px;height:24px;background-size:14px 14px}.Mobile.svelte-ljc7r7 .SmallIcon.Wheel.svelte-ljc7r7{background-size:14px 14px;width:14px;height:14px}`);
|
|
79
|
+
}
|
|
80
|
+
function Z(l, e, t) {
|
|
81
|
+
const r = l.slice();
|
|
82
|
+
return r[23] = e[t], r;
|
|
83
|
+
}
|
|
84
|
+
function Be(l, e, t) {
|
|
85
|
+
const r = l.slice();
|
|
86
|
+
return r[20] = e[t], r;
|
|
87
|
+
}
|
|
88
|
+
function Te(l) {
|
|
89
|
+
let e, t, r = (
|
|
90
|
+
/*$_*/
|
|
91
|
+
l[5]("NoContent") + ""
|
|
92
|
+
), n;
|
|
93
|
+
return {
|
|
94
|
+
c() {
|
|
95
|
+
e = g("div"), t = g("p"), n = F(r), u(e, "class", "EmptyState svelte-ljc7r7");
|
|
96
|
+
},
|
|
97
|
+
m(s, i) {
|
|
98
|
+
L(s, e, i), d(e, t), d(t, n);
|
|
99
|
+
},
|
|
100
|
+
p(s, i) {
|
|
101
|
+
i & /*$_*/
|
|
102
|
+
32 && r !== (r = /*$_*/
|
|
103
|
+
s[5]("NoContent") + "") && E(n, r);
|
|
104
|
+
},
|
|
105
|
+
d(s) {
|
|
106
|
+
s && j(e);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function ze(l) {
|
|
111
|
+
let e, t = H(
|
|
112
|
+
/*programs*/
|
|
113
|
+
l[3]
|
|
114
|
+
), r = [];
|
|
115
|
+
for (let n = 0; n < t.length; n += 1)
|
|
116
|
+
r[n] = K(Z(l, t, n));
|
|
117
|
+
return {
|
|
118
|
+
c() {
|
|
119
|
+
e = g("ul");
|
|
120
|
+
for (let n = 0; n < r.length; n += 1)
|
|
121
|
+
r[n].c();
|
|
122
|
+
u(e, "class", "LuckyWheelList svelte-ljc7r7");
|
|
123
|
+
},
|
|
124
|
+
m(n, s) {
|
|
125
|
+
L(n, e, s);
|
|
126
|
+
for (let i = 0; i < r.length; i += 1)
|
|
127
|
+
r[i] && r[i].m(e, null);
|
|
128
|
+
},
|
|
129
|
+
p(n, s) {
|
|
130
|
+
if (s & /*openGame, programs, formatValidity, dynamicIcon, lang*/
|
|
131
|
+
409) {
|
|
132
|
+
t = H(
|
|
133
|
+
/*programs*/
|
|
134
|
+
n[3]
|
|
135
|
+
);
|
|
136
|
+
let i;
|
|
137
|
+
for (i = 0; i < t.length; i += 1) {
|
|
138
|
+
const a = Z(n, t, i);
|
|
139
|
+
r[i] ? r[i].p(a, s) : (r[i] = K(a), r[i].c(), r[i].m(e, null));
|
|
140
|
+
}
|
|
141
|
+
for (; i < r.length; i += 1)
|
|
142
|
+
r[i].d(1);
|
|
143
|
+
r.length = t.length;
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
d(n) {
|
|
147
|
+
n && j(e), q(r, n);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function We(l) {
|
|
152
|
+
let e, t = H([1, 2, 3, 4, 5]), r = [];
|
|
153
|
+
for (let n = 0; n < 5; n += 1)
|
|
154
|
+
r[n] = De(Be(l, t, n));
|
|
155
|
+
return {
|
|
156
|
+
c() {
|
|
157
|
+
e = g("div");
|
|
158
|
+
for (let n = 0; n < 5; n += 1)
|
|
159
|
+
r[n].c();
|
|
160
|
+
u(e, "class", "LoaderWrap svelte-ljc7r7"), X(
|
|
161
|
+
e,
|
|
162
|
+
"Mobile",
|
|
163
|
+
/*mobileView*/
|
|
164
|
+
l[6]
|
|
165
|
+
);
|
|
166
|
+
},
|
|
167
|
+
m(n, s) {
|
|
168
|
+
L(n, e, s);
|
|
169
|
+
for (let i = 0; i < 5; i += 1)
|
|
170
|
+
r[i] && r[i].m(e, null);
|
|
171
|
+
},
|
|
172
|
+
p: O,
|
|
173
|
+
d(n) {
|
|
174
|
+
n && j(e), q(r, n);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function Q(l) {
|
|
179
|
+
let e, t, r, n, s = (
|
|
180
|
+
/*formatValidity*/
|
|
181
|
+
l[7](
|
|
182
|
+
/*program*/
|
|
183
|
+
l[23].current.expiryTime
|
|
184
|
+
) + ""
|
|
185
|
+
), i;
|
|
186
|
+
return {
|
|
187
|
+
c() {
|
|
188
|
+
e = g("div"), t = g("span"), t.innerHTML = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="14" r="7" stroke="currentColor" stroke-width="1.5"></circle><path d="M12 11V14L14 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 4V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 4H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7L18 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>', r = I(), n = g("span"), i = F(s), u(t, "class", "SmallIcon Timer svelte-ljc7r7"), u(n, "class", "svelte-ljc7r7"), u(e, "class", "ItemValidity svelte-ljc7r7");
|
|
189
|
+
},
|
|
190
|
+
m(a, c) {
|
|
191
|
+
L(a, e, c), d(e, t), d(e, r), d(e, n), d(n, i);
|
|
192
|
+
},
|
|
193
|
+
p(a, c) {
|
|
194
|
+
c & /*programs*/
|
|
195
|
+
8 && s !== (s = /*formatValidity*/
|
|
196
|
+
a[7](
|
|
197
|
+
/*program*/
|
|
198
|
+
a[23].current.expiryTime
|
|
199
|
+
) + "") && E(i, s);
|
|
200
|
+
},
|
|
201
|
+
d(a) {
|
|
202
|
+
a && j(e);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function K(l) {
|
|
207
|
+
var o, C;
|
|
208
|
+
let e, t, r, n, s = (
|
|
209
|
+
/*program*/
|
|
210
|
+
(l[23].program.name[
|
|
211
|
+
/*lang*/
|
|
212
|
+
l[0]
|
|
213
|
+
] || /*program*/
|
|
214
|
+
l[23].program.name["*"] || "Unknown Game") + ""
|
|
215
|
+
), i, a, c, w, m, b, f, v, _, k = (
|
|
216
|
+
/*program*/
|
|
217
|
+
(((o = l[23].current) == null ? void 0 : o.remainingTimes) || 0) + ""
|
|
218
|
+
), A, B, T, M, S, p = (
|
|
219
|
+
/*program*/
|
|
220
|
+
((C = l[23].current) == null ? void 0 : C.expiryTime) && Q(l)
|
|
221
|
+
);
|
|
222
|
+
function U() {
|
|
223
|
+
return (
|
|
224
|
+
/*click_handler*/
|
|
225
|
+
l[16](
|
|
226
|
+
/*program*/
|
|
227
|
+
l[23]
|
|
228
|
+
)
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
c() {
|
|
233
|
+
e = g("li"), t = g("button"), r = g("div"), n = g("span"), i = F(s), a = I(), c = g("span"), w = I(), m = g("div"), b = g("div"), f = g("span"), v = I(), _ = g("span"), A = F(k), B = I(), p && p.c(), T = I(), u(n, "class", "ItemTitle svelte-ljc7r7"), u(c, "class", "IconButton Chevron svelte-ljc7r7"), u(r, "class", "ItemTitleRow svelte-ljc7r7"), u(f, "class", "SmallIcon Wheel svelte-ljc7r7"), P(f, "background-image", "url(" + /*dynamicIcon*/
|
|
234
|
+
l[4] + ")"), u(_, "class", "svelte-ljc7r7"), u(b, "class", "ItemKeys svelte-ljc7r7"), u(m, "class", "ItemDetails svelte-ljc7r7"), u(t, "type", "button"), u(t, "class", "ItemButton svelte-ljc7r7"), u(e, "class", "LuckyWheelListItem svelte-ljc7r7");
|
|
235
|
+
},
|
|
236
|
+
m(h, y) {
|
|
237
|
+
L(h, e, y), d(e, t), d(t, r), d(r, n), d(n, i), d(r, a), d(r, c), d(t, w), d(t, m), d(m, b), d(b, f), d(b, v), d(b, _), d(_, A), d(m, B), p && p.m(m, null), d(e, T), M || (S = fe(t, "click", U), M = !0);
|
|
238
|
+
},
|
|
239
|
+
p(h, y) {
|
|
240
|
+
var z, W;
|
|
241
|
+
l = h, y & /*programs, lang*/
|
|
242
|
+
9 && s !== (s = /*program*/
|
|
243
|
+
(l[23].program.name[
|
|
244
|
+
/*lang*/
|
|
245
|
+
l[0]
|
|
246
|
+
] || /*program*/
|
|
247
|
+
l[23].program.name["*"] || "Unknown Game") + "") && E(i, s), y & /*dynamicIcon*/
|
|
248
|
+
16 && P(f, "background-image", "url(" + /*dynamicIcon*/
|
|
249
|
+
l[4] + ")"), y & /*programs*/
|
|
250
|
+
8 && k !== (k = /*program*/
|
|
251
|
+
(((z = l[23].current) == null ? void 0 : z.remainingTimes) || 0) + "") && E(A, k), /*program*/
|
|
252
|
+
(W = l[23].current) != null && W.expiryTime ? p ? p.p(l, y) : (p = Q(l), p.c(), p.m(m, null)) : p && (p.d(1), p = null);
|
|
253
|
+
},
|
|
254
|
+
d(h) {
|
|
255
|
+
h && j(e), p && p.d(), M = !1, S();
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
function De(l) {
|
|
260
|
+
let e;
|
|
261
|
+
return {
|
|
262
|
+
c() {
|
|
263
|
+
e = g("div"), e.innerHTML = '<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ', u(e, "class", "WheelLoader svelte-ljc7r7");
|
|
264
|
+
},
|
|
265
|
+
m(t, r) {
|
|
266
|
+
L(t, e, r);
|
|
267
|
+
},
|
|
268
|
+
p: O,
|
|
269
|
+
d(t) {
|
|
270
|
+
t && j(e);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
function Ee(l) {
|
|
275
|
+
let e, t, r;
|
|
276
|
+
function n(a, c) {
|
|
277
|
+
return (
|
|
278
|
+
/*loading*/
|
|
279
|
+
a[2] ? We : (
|
|
280
|
+
/*programs*/
|
|
281
|
+
a[3].length > 0 ? ze : Te
|
|
282
|
+
)
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
let s = n(l), i = s(l);
|
|
286
|
+
return {
|
|
287
|
+
c() {
|
|
288
|
+
e = g("div"), t = g("div"), i.c(), u(t, "class", "ListScrollArea svelte-ljc7r7"), u(e, "class", "PrizeListContent svelte-ljc7r7"), X(
|
|
289
|
+
e,
|
|
290
|
+
"Mobile",
|
|
291
|
+
/*mobileView*/
|
|
292
|
+
l[6]
|
|
293
|
+
);
|
|
294
|
+
},
|
|
295
|
+
m(a, c) {
|
|
296
|
+
L(a, e, c), d(e, t), i.m(t, null), l[17](e);
|
|
297
|
+
},
|
|
298
|
+
p(a, [c]) {
|
|
299
|
+
s === (s = n(a)) && i ? i.p(a, c) : (i.d(1), i = s(a), i && (i.c(), i.m(t, null)));
|
|
300
|
+
},
|
|
301
|
+
i(a) {
|
|
302
|
+
a && (r || ce(() => {
|
|
303
|
+
r = de(e, ue, { duration: 300 }), r.start();
|
|
304
|
+
}));
|
|
305
|
+
},
|
|
306
|
+
o: O,
|
|
307
|
+
d(a) {
|
|
308
|
+
a && j(e), i.d(), l[17](null);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
let Fe = null;
|
|
313
|
+
function Ue(l, e, t) {
|
|
314
|
+
let r, n;
|
|
315
|
+
ge(l, ye, (o) => t(5, n = o));
|
|
316
|
+
let { endpoint: s = "" } = e, { session: i = "" } = e, { lang: a = "en" } = e, { clientstyling: c = "" } = e, { clientstylingurl: w = "" } = e, { translationurl: m = "" } = e, { mbsource: b = "" } = e, { type: f = "wheelOfFortune" } = e, v;
|
|
317
|
+
const _ = pe(window.navigator.userAgent);
|
|
318
|
+
let k = !0, A = [];
|
|
319
|
+
je();
|
|
320
|
+
const B = () => {
|
|
321
|
+
fetch(m).then((C) => C.json()).then((C) => {
|
|
322
|
+
Object.keys(C).forEach((h) => {
|
|
323
|
+
J(h, C[h]);
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
}, T = (o) => {
|
|
327
|
+
if (!o)
|
|
328
|
+
return "";
|
|
329
|
+
const C = new Date(o).getTime(), h = Date.now(), y = C - h;
|
|
330
|
+
if (y <= 0)
|
|
331
|
+
return "";
|
|
332
|
+
const z = Math.floor(y / (1e3 * 60 * 60 * 24)), W = Math.floor(y % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), $ = Math.floor(y % (1e3 * 60 * 60) / (1e3 * 60));
|
|
333
|
+
return `${z.toString().padStart(2, "0")}d:${W.toString().padStart(2, "0")}h:${$.toString().padStart(2, "0")}m`;
|
|
334
|
+
}, M = () => D(this, null, function* () {
|
|
335
|
+
if (!(!s || !i)) {
|
|
336
|
+
t(2, k = !0);
|
|
337
|
+
try {
|
|
338
|
+
const o = yield _e.lotteries(s, i, [f]);
|
|
339
|
+
window.postMessage(
|
|
340
|
+
{
|
|
341
|
+
type: "PrizeProgramsLoaded",
|
|
342
|
+
data: o
|
|
343
|
+
},
|
|
344
|
+
"*"
|
|
345
|
+
), t(3, A = o.filter((C) => {
|
|
346
|
+
var h;
|
|
347
|
+
return (Number((h = C.current) == null ? void 0 : h.remainingTimes) || 0) > 0;
|
|
348
|
+
}));
|
|
349
|
+
} catch (o) {
|
|
350
|
+
console.error("[PrizeEngineList] Fetch failed", o);
|
|
351
|
+
} finally {
|
|
352
|
+
t(2, k = !1);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}), S = (o) => {
|
|
356
|
+
window.postMessage({ type: "OpenPrizeGame", data: o }, "*");
|
|
357
|
+
};
|
|
358
|
+
he(() => () => {
|
|
359
|
+
});
|
|
360
|
+
const p = (o) => S(o);
|
|
361
|
+
function U(o) {
|
|
362
|
+
me[o ? "unshift" : "push"](() => {
|
|
363
|
+
v = o, t(1, v);
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
return l.$$set = (o) => {
|
|
367
|
+
"endpoint" in o && t(9, s = o.endpoint), "session" in o && t(10, i = o.session), "lang" in o && t(0, a = o.lang), "clientstyling" in o && t(11, c = o.clientstyling), "clientstylingurl" in o && t(12, w = o.clientstylingurl), "translationurl" in o && t(13, m = o.translationurl), "mbsource" in o && t(14, b = o.mbsource), "type" in o && t(15, f = o.type);
|
|
368
|
+
}, l.$$.update = () => {
|
|
369
|
+
l.$$.dirty & /*lang*/
|
|
370
|
+
1 && a && xe(a), l.$$.dirty & /*translationurl*/
|
|
371
|
+
8192 && m && B(), l.$$.dirty & /*type*/
|
|
372
|
+
32768 && t(4, r = f === "flipCoin" ? Ie : f === "mysteryChest" ? Me : Ae), l.$$.dirty & /*endpoint, session, type*/
|
|
373
|
+
34304 && s && i && f && M(), l.$$.dirty & /*clientstyling, rootContainer*/
|
|
374
|
+
2050 && c && v && ve(v, c), l.$$.dirty & /*clientstylingurl, rootContainer*/
|
|
375
|
+
4098 && w && v && we(v, w), l.$$.dirty & /*mbsource, rootContainer*/
|
|
376
|
+
16386 && b && v && be(v, `${b}.Style`, Fe);
|
|
377
|
+
}, [
|
|
378
|
+
a,
|
|
379
|
+
v,
|
|
380
|
+
k,
|
|
381
|
+
A,
|
|
382
|
+
r,
|
|
383
|
+
n,
|
|
384
|
+
_,
|
|
385
|
+
T,
|
|
386
|
+
S,
|
|
387
|
+
s,
|
|
388
|
+
i,
|
|
389
|
+
c,
|
|
390
|
+
w,
|
|
391
|
+
m,
|
|
392
|
+
b,
|
|
393
|
+
f,
|
|
394
|
+
p,
|
|
395
|
+
U
|
|
396
|
+
];
|
|
397
|
+
}
|
|
398
|
+
class Ne extends ie {
|
|
399
|
+
constructor(e) {
|
|
400
|
+
super(), se(
|
|
401
|
+
this,
|
|
402
|
+
e,
|
|
403
|
+
Ue,
|
|
404
|
+
Ee,
|
|
405
|
+
oe,
|
|
406
|
+
{
|
|
407
|
+
endpoint: 9,
|
|
408
|
+
session: 10,
|
|
409
|
+
lang: 0,
|
|
410
|
+
clientstyling: 11,
|
|
411
|
+
clientstylingurl: 12,
|
|
412
|
+
translationurl: 13,
|
|
413
|
+
mbsource: 14,
|
|
414
|
+
type: 15
|
|
415
|
+
},
|
|
416
|
+
Se
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
get endpoint() {
|
|
420
|
+
return this.$$.ctx[9];
|
|
421
|
+
}
|
|
422
|
+
set endpoint(e) {
|
|
423
|
+
this.$$set({ endpoint: e }), x();
|
|
424
|
+
}
|
|
425
|
+
get session() {
|
|
426
|
+
return this.$$.ctx[10];
|
|
427
|
+
}
|
|
428
|
+
set session(e) {
|
|
429
|
+
this.$$set({ session: e }), x();
|
|
430
|
+
}
|
|
431
|
+
get lang() {
|
|
432
|
+
return this.$$.ctx[0];
|
|
433
|
+
}
|
|
434
|
+
set lang(e) {
|
|
435
|
+
this.$$set({ lang: e }), x();
|
|
436
|
+
}
|
|
437
|
+
get clientstyling() {
|
|
438
|
+
return this.$$.ctx[11];
|
|
439
|
+
}
|
|
440
|
+
set clientstyling(e) {
|
|
441
|
+
this.$$set({ clientstyling: e }), x();
|
|
442
|
+
}
|
|
443
|
+
get clientstylingurl() {
|
|
444
|
+
return this.$$.ctx[12];
|
|
445
|
+
}
|
|
446
|
+
set clientstylingurl(e) {
|
|
447
|
+
this.$$set({ clientstylingurl: e }), x();
|
|
448
|
+
}
|
|
449
|
+
get translationurl() {
|
|
450
|
+
return this.$$.ctx[13];
|
|
451
|
+
}
|
|
452
|
+
set translationurl(e) {
|
|
453
|
+
this.$$set({ translationurl: e }), x();
|
|
454
|
+
}
|
|
455
|
+
get mbsource() {
|
|
456
|
+
return this.$$.ctx[14];
|
|
457
|
+
}
|
|
458
|
+
set mbsource(e) {
|
|
459
|
+
this.$$set({ mbsource: e }), x();
|
|
460
|
+
}
|
|
461
|
+
get type() {
|
|
462
|
+
return this.$$.ctx[15];
|
|
463
|
+
}
|
|
464
|
+
set type(e) {
|
|
465
|
+
this.$$set({ type: e }), x();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
customElements.define("prize-engine-list", Ce(Ne, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
|
|
469
|
+
export {
|
|
470
|
+
Ne as default
|
|
471
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var H=Object.defineProperty;var B=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var T=(r,t,l)=>t in r?H(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,z=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&T(r,l,t[l]);if(B)for(var l of B(t))V.call(t,l)&&T(r,l,t[l]);return r};var M=(r,t,l)=>new Promise((n,i)=>{var o=d=>{try{c(l.next(d))}catch(f){i(f)}},s=d=>{try{c(l.throw(d))}catch(f){i(f)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);c((l=l.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PrizeEngineSuite-DNby9KuV.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const W={en:{Title:"Prize Games",RemainingTimes:"Remaining Times",NoContent:"No games available at the moment",Loading:"Loading games...",Error:"Failed to load games",WheelOfFortune:"Lucky Wheel",MysteryChest:"Mystery Chest",FlipCoin:"Flip Coin",Dice:"Dices"}};function G({withLocale:r,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function U(r,t){e.addMessages(r,t)}function Y(r){e.$locale.set(r)}const R=()=>{G({withLocale:"en",translations:{}}),Object.keys(W).forEach(r=>{U(r,W[r])})},Z=n=>M(exports,[n],function*({endpoint:r,session:t,types:l}){const i=new URL(`${r}/v1/wof/lotteries`);l&&l.length>0&&l.forEach(s=>i.searchParams.append("filter",`Types[]=${s}`));const o=yield fetch(i.toString(),{method:"GET",headers:z({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})});if(!o.ok)throw new Error(`Failed to fetch lotteries: ${o.statusText}`);return o.json()}),Q={lotteries:(r,t,l)=>M(exports,null,function*(){const n=yield Z({endpoint:r,session:t,types:l});return(n==null?void 0:n.items)||[]})},K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMVSURBVHgBbVTNThNRGD3fnSmYYNLizhVl4ZriC9AhcUFcWDYmbsQuiCsT0aioJJRogrJhacJC0MSwMsALMIUHsDQxYSeDCVspiWA7befz3Jm2AnGSm7k/3+85517Bf75F9fMOoikXjTzHkIO6OAgrnFcdNLaK8mjzso+cX5S0kk2h9ZHGeUNnOtY4MlzDRVjjP801DBpBG83xorwMur6mO3ml33MCqSg0r4h2Beo9kduDCtDYHDyUKc5lPAI+03z4CvTbFy3lLgSa1f2sC9dngWk6HjbQLjyTW+VOyb2qp2W6LGg95rRGu0EX2F7X2WwvkEG/z0oyHCesJNuHlF9SP2PPNA6hcbBVXeWeTQh7FgiiwRS344Sv9ehOhMami+aag7MZ/n3iMGLQrKZw4hloxUFTB3B2k7j4BD5HvPZa+O0NoL1BEsYitMdNC1qQOLP5VJLRWgunHtdVZssp+ivEbYhVDocwv2hGTEzQguMVpVSL+WExKeh9kxxK7a3ciDEpicdgraLGTant3zoEBHm30+NQF7O78mbHQI6ZKC/P9UjdmN7mgYM/pDxU0svew7QgXHgqEwvW6YOuUhoh2w6HDMJD6+PEo06iQvp3ACXl5p+4RJN9rXaDGBjLKiuUAIh6NCQfhcGKWEkzvSjZa93t97pbYFYC2ThwUd/heYGZM8wcOEiNFqVY69p+1RfHBDww7K9saZzT/XxH3ZkIMt+xGya4U8yYkViYFrNTf1WXY2ms6xx9lNqTPWPgrHFCEJ15G4RZfbY2wsL3BIaB9CfPgz7oKH33OEZctBmsxKsjUzxjDnfLLMp1Iq87QDtPx4plMSI2Z6R4RiaCJAlg23HQ5zFwlUlyV5D6Qck8YNJgUpY2Y4BTkCI3KHvN8n8c4qpnZYCeqhPwE2xangWccA/y7JgBvN4VKclwYBKD+A7143R5SbfHOhxq94qs6Ar33A3ECVFjB+OT8i5ImD73LfIZiXgNqKMsWeo+HZlEJ3XOwzTX9nkpU3fFe+eekQuBLtFfsHeOziNO/DaRYkqB/zU+bOXLPn8BG6xnv5+RMCQAAAAASUVORK5CYII=",X="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%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",q="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function J(r){e.append_styles(r,"svelte-ljc7r7",`:host{display:block;height:100%;flex-grow:1}.PrizeListContent.svelte-ljc7r7.svelte-ljc7r7{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7{flex-grow:1;overflow-y:auto}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar{width:4px}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.LuckyWheelList.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;gap:24px;padding:0;margin:0;list-style:none}.LuckyWheelListItem.svelte-ljc7r7.svelte-ljc7r7{width:100%}.ItemButton.svelte-ljc7r7.svelte-ljc7r7{padding:16px;border-radius:16px;border:1px solid var(--emw--color-teal-10, rgba(117, 255, 233, 0.1019607843));color:var(--emw--color-primary, #d3ffed);width:100%;height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-sizing:border-box;cursor:pointer;text-align:left;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);background:var(--emw--color-teal-05, rgba(117, 255, 233, 0.0509803922));position:relative}.ItemButton.svelte-ljc7r7.svelte-ljc7r7:hover,.ItemButton.svelte-ljc7r7.svelte-ljc7r7:active{background:var(--emw--color-teal-08, rgba(117, 255, 233, 0.0784313725));border:1px solid transparent;background-image:linear-gradient(var(--emw--color-background, #213841), var(--emw--color-background, #213841)), linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);background-origin:border-box;background-clip:padding-box, border-box}.ItemButton.svelte-ljc7r7:hover .IconButton.Chevron.svelte-ljc7r7,.ItemButton.svelte-ljc7r7:active .IconButton.Chevron.svelte-ljc7r7{background-color:var(--emw--color-green, #b2ff6d);background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%230C1A1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');border-radius:50%}.ItemTitleRow.svelte-ljc7r7.svelte-ljc7r7{display:flex;justify-content:space-between;align-items:center;width:100%}.ItemTitle.svelte-ljc7r7.svelte-ljc7r7{font-weight:700;font-size:var(--emw--font-size-medium-plus, 18px);background:linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ItemDetails.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:12px;align-items:center}.ItemKeys.svelte-ljc7r7.svelte-ljc7r7,.ItemValidity.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:400;color:var(--emw--color-secondary-variant, #729787)}.ItemKeys.svelte-ljc7r7 span.svelte-ljc7r7:last-child,.ItemValidity.svelte-ljc7r7 span.svelte-ljc7r7:last-child{color:var(--emw--color-primary, #d3ffed)}.SmallIcon.svelte-ljc7r7.svelte-ljc7r7{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--emw--color-secondary-variant, #729787);flex-shrink:0}.SmallIcon.Wheel.svelte-ljc7r7.svelte-ljc7r7{background-position:center;background-repeat:no-repeat;background-size:16px 16px;width:16px;height:16px}.IconButton.Chevron.svelte-ljc7r7.svelte-ljc7r7{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background:center/18px 18px url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9 18L15 12L9 6" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.LoaderWrap.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;width:100%}.LoaderWrap.svelte-ljc7r7 .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)}.LoaderWrap.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.LoaderWrap.Mobile.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:16px;padding:25px 20px;line-height:15px}.LoaderWrap.Mobile.svelte-ljc7r7 .Skeleton.SkeletonText{width:135px}.EmptyState.svelte-ljc7r7.svelte-ljc7r7{width:100%;display:flex;flex-direction:column;color:var(--emw--color-secondary-variant, #a9ccbe);font-size:var(--emw--font-size-medium, 16px);align-items:center;justify-content:center;height:200px}.Mobile.svelte-ljc7r7 .ItemButton.svelte-ljc7r7{height:72px;padding:16px 20px;border-radius:16px}.Mobile.svelte-ljc7r7 .ItemButton .ItemTitle.svelte-ljc7r7{font-size:var(--emw--font-size-medium, 16px)}.Mobile.svelte-ljc7r7 .ItemButton .ItemDetails.svelte-ljc7r7{font-size:var(--emw--font-size-x-small, 12px)}.Mobile.svelte-ljc7r7 .IconButton.Chevron.svelte-ljc7r7{width:24px;height:24px;background-size:14px 14px}.Mobile.svelte-ljc7r7 .SmallIcon.Wheel.svelte-ljc7r7{background-size:14px 14px;width:14px;height:14px}`)}function E(r,t,l){const n=r.slice();return n[23]=t[l],n}function $(r,t,l){const n=r.slice();return n[20]=t[l],n}function ee(r){let t,l,n=r[5]("NoContent")+"",i;return{c(){t=e.element("div"),l=e.element("p"),i=e.text(n),e.attr(t,"class","EmptyState svelte-ljc7r7")},m(o,s){e.insert(o,t,s),e.append(t,l),e.append(l,i)},p(o,s){s&32&&n!==(n=o[5]("NoContent")+"")&&e.set_data(i,n)},d(o){o&&e.detach(t)}}}function te(r){let t,l=e.ensure_array_like(r[3]),n=[];for(let i=0;i<l.length;i+=1)n[i]=F(E(r,l,i));return{c(){t=e.element("ul");for(let i=0;i<n.length;i+=1)n[i].c();e.attr(t,"class","LuckyWheelList svelte-ljc7r7")},m(i,o){e.insert(i,t,o);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(t,null)},p(i,o){if(o&409){l=e.ensure_array_like(i[3]);let s;for(s=0;s<l.length;s+=1){const c=E(i,l,s);n[s]?n[s].p(c,o):(n[s]=F(c),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function le(r){let t,l=e.ensure_array_like([1,2,3,4,5]),n=[];for(let i=0;i<5;i+=1)n[i]=re($(r,l,i));return{c(){t=e.element("div");for(let i=0;i<5;i+=1)n[i].c();e.attr(t,"class","LoaderWrap svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(i,o){e.insert(i,t,o);for(let s=0;s<5;s+=1)n[s]&&n[s].m(t,null)},p:e.noop,d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function D(r){let t,l,n,i,o=r[7](r[23].current.expiryTime)+"",s;return{c(){t=e.element("div"),l=e.element("span"),l.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="14" r="7" stroke="currentColor" stroke-width="1.5"></circle><path d="M12 11V14L14 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 4V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 4H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7L18 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',n=e.space(),i=e.element("span"),s=e.text(o),e.attr(l,"class","SmallIcon Timer svelte-ljc7r7"),e.attr(i,"class","svelte-ljc7r7"),e.attr(t,"class","ItemValidity svelte-ljc7r7")},m(c,d){e.insert(c,t,d),e.append(t,l),e.append(t,n),e.append(t,i),e.append(i,s)},p(c,d){d&8&&o!==(o=c[7](c[23].current.expiryTime)+"")&&e.set_data(s,o)},d(c){c&&e.detach(t)}}}function F(r){var a,w;let t,l,n,i,o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"",s,c,d,f,g,v,m,h,y,C=(((a=r[23].current)==null?void 0:a.remainingTimes)||0)+"",k,_,L,x,j,u=((w=r[23].current)==null?void 0:w.expiryTime)&&D(r);function S(){return r[16](r[23])}return{c(){t=e.element("li"),l=e.element("button"),n=e.element("div"),i=e.element("span"),s=e.text(o),c=e.space(),d=e.element("span"),f=e.space(),g=e.element("div"),v=e.element("div"),m=e.element("span"),h=e.space(),y=e.element("span"),k=e.text(C),_=e.space(),u&&u.c(),L=e.space(),e.attr(i,"class","ItemTitle svelte-ljc7r7"),e.attr(d,"class","IconButton Chevron svelte-ljc7r7"),e.attr(n,"class","ItemTitleRow svelte-ljc7r7"),e.attr(m,"class","SmallIcon Wheel svelte-ljc7r7"),e.set_style(m,"background-image","url("+r[4]+")"),e.attr(y,"class","svelte-ljc7r7"),e.attr(v,"class","ItemKeys svelte-ljc7r7"),e.attr(g,"class","ItemDetails svelte-ljc7r7"),e.attr(l,"type","button"),e.attr(l,"class","ItemButton svelte-ljc7r7"),e.attr(t,"class","LuckyWheelListItem svelte-ljc7r7")},m(p,b){e.insert(p,t,b),e.append(t,l),e.append(l,n),e.append(n,i),e.append(i,s),e.append(n,c),e.append(n,d),e.append(l,f),e.append(l,g),e.append(g,v),e.append(v,m),e.append(v,h),e.append(v,y),e.append(y,k),e.append(g,_),u&&u.m(g,null),e.append(t,L),x||(j=e.listen(l,"click",S),x=!0)},p(p,b){var A,I;r=p,b&9&&o!==(o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"")&&e.set_data(s,o),b&16&&e.set_style(m,"background-image","url("+r[4]+")"),b&8&&C!==(C=(((A=r[23].current)==null?void 0:A.remainingTimes)||0)+"")&&e.set_data(k,C),(I=r[23].current)!=null&&I.expiryTime?u?u.p(r,b):(u=D(r),u.c(),u.m(g,null)):u&&(u.d(1),u=null)},d(p){p&&e.detach(t),u&&u.d(),x=!1,j()}}}function re(r){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ',e.attr(t,"class","WheelLoader svelte-ljc7r7")},m(l,n){e.insert(l,t,n)},p:e.noop,d(l){l&&e.detach(t)}}}function ne(r){let t,l,n;function i(c,d){return c[2]?le:c[3].length>0?te:ee}let o=i(r),s=o(r);return{c(){t=e.element("div"),l=e.element("div"),s.c(),e.attr(l,"class","ListScrollArea svelte-ljc7r7"),e.attr(t,"class","PrizeListContent svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(c,d){e.insert(c,t,d),e.append(t,l),s.m(l,null),r[17](t)},p(c,[d]){o===(o=i(c))&&s?s.p(c,d):(s.d(1),s=o(c),s&&(s.c(),s.m(l,null)))},i(c){c&&(n||e.add_render_callback(()=>{n=e.create_in_transition(t,e.fade,{duration:300}),n.start()}))},o:e.noop,d(c){c&&e.detach(t),s.d(),r[17](null)}}}let ie=null;function se(r,t,l){let n,i;e.component_subscribe(r,e.$format,a=>l(5,i=a));let{endpoint:o=""}=t,{session:s=""}=t,{lang:c="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:f=""}=t,{translationurl:g=""}=t,{mbsource:v=""}=t,{type:m="wheelOfFortune"}=t,h;const y=e.isMobile(window.navigator.userAgent);let C=!0,k=[];R();const _=()=>{fetch(g).then(w=>w.json()).then(w=>{Object.keys(w).forEach(p=>{U(p,w[p])})})},L=a=>{if(!a)return"";const w=new Date(a).getTime(),p=Date.now(),b=w-p;if(b<=0)return"";const A=Math.floor(b/(1e3*60*60*24)),I=Math.floor(b%(1e3*60*60*24)/(1e3*60*60)),O=Math.floor(b%(1e3*60*60)/(1e3*60));return`${A.toString().padStart(2,"0")}d:${I.toString().padStart(2,"0")}h:${O.toString().padStart(2,"0")}m`},x=()=>M(this,null,function*(){if(!(!o||!s)){l(2,C=!0);try{const a=yield Q.lotteries(o,s,[m]);window.postMessage({type:"PrizeProgramsLoaded",data:a},"*"),l(3,k=a.filter(w=>{var p;return(Number((p=w.current)==null?void 0:p.remainingTimes)||0)>0}))}catch(a){console.error("[PrizeEngineList] Fetch failed",a)}finally{l(2,C=!1)}}}),j=a=>{window.postMessage({type:"OpenPrizeGame",data:a},"*")};e.onMount(()=>()=>{});const u=a=>j(a);function S(a){e.binding_callbacks[a?"unshift":"push"](()=>{h=a,l(1,h)})}return r.$$set=a=>{"endpoint"in a&&l(9,o=a.endpoint),"session"in a&&l(10,s=a.session),"lang"in a&&l(0,c=a.lang),"clientstyling"in a&&l(11,d=a.clientstyling),"clientstylingurl"in a&&l(12,f=a.clientstylingurl),"translationurl"in a&&l(13,g=a.translationurl),"mbsource"in a&&l(14,v=a.mbsource),"type"in a&&l(15,m=a.type)},r.$$.update=()=>{r.$$.dirty&1&&c&&Y(c),r.$$.dirty&8192&&g&&_(),r.$$.dirty&32768&&l(4,n=m==="flipCoin"?X:m==="mysteryChest"?q:K),r.$$.dirty&34304&&o&&s&&m&&x(),r.$$.dirty&2050&&d&&h&&e.setClientStyling(h,d),r.$$.dirty&4098&&f&&h&&e.setClientStylingURL(h,f),r.$$.dirty&16386&&v&&h&&e.setStreamStyling(h,`${v}.Style`,ie)},[c,h,C,k,n,i,y,L,j,o,s,d,f,g,v,m,u,S]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,se,ne,e.safe_not_equal,{endpoint:9,session:10,lang:0,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14,type:15},J)}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[15]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-list",e.create_custom_element(N,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=N;
|