@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,437 @@
|
|
|
1
|
+
import { $ as E, a as X, b as q, S as J, i as $, s as ee, f as C, d as te, n as U, e as k, g as le, h as re, j as ne, k as x, l as c, m as u, o as d, t as Y, p as ie, q as se, r as oe, u as ae, v as F, w as P, y as z, z as W, Q as N, L as ce, A as _, E as de, F as ue, G as ge, c as pe, D as he } from "./PrizeEngineSuite-DWvvEtv_.js";
|
|
2
|
+
import "../stencil/ui-skeleton-W50o8tfg.js";
|
|
3
|
+
const H = {
|
|
4
|
+
en: {
|
|
5
|
+
Title: "Prize Games",
|
|
6
|
+
RemainingTimes: "Remaining Times",
|
|
7
|
+
NoContent: "No games available at the moment",
|
|
8
|
+
Loading: "Loading games...",
|
|
9
|
+
Error: "Failed to load games",
|
|
10
|
+
WheelOfFortune: "Lucky Wheel",
|
|
11
|
+
MysteryChest: "Mystery Chest",
|
|
12
|
+
FlipCoin: "Flip Coin",
|
|
13
|
+
Dice: "Dices"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
function me({ withLocale: t, translations: e }) {
|
|
17
|
+
E.subscribe((l) => {
|
|
18
|
+
l == null && (X.set(e), E.set(t));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function R(t, e) {
|
|
22
|
+
q(t, e);
|
|
23
|
+
}
|
|
24
|
+
function fe(t) {
|
|
25
|
+
E.set(t);
|
|
26
|
+
}
|
|
27
|
+
const ve = () => {
|
|
28
|
+
me({ withLocale: "en", translations: {} }), Object.keys(H).forEach((t) => {
|
|
29
|
+
R(t, H[t]);
|
|
30
|
+
});
|
|
31
|
+
}, we = async ({ endpoint: t, session: e, types: l }) => {
|
|
32
|
+
const r = new URL(`${t}/v1/wof/lotteries`);
|
|
33
|
+
l && l.length > 0 && l.forEach((o) => r.searchParams.append("filter", `Types[]=${o}`));
|
|
34
|
+
const n = await fetch(r.toString(), {
|
|
35
|
+
method: "GET",
|
|
36
|
+
headers: {
|
|
37
|
+
"Content-Type": "application/json",
|
|
38
|
+
Accept: "text/plain",
|
|
39
|
+
...e ? { "x-SessionId": e } : {}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
if (!n.ok)
|
|
43
|
+
throw new Error(`Failed to fetch lotteries: ${n.statusText}`);
|
|
44
|
+
return n.json();
|
|
45
|
+
}, be = {
|
|
46
|
+
lotteries: async (t, e, l) => (await we({ endpoint: t, session: e, types: l }))?.items || []
|
|
47
|
+
}, Ce = "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=", ye = "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", ke = "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";
|
|
48
|
+
function xe(t) {
|
|
49
|
+
te(t, "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}`);
|
|
50
|
+
}
|
|
51
|
+
function O(t, e, l) {
|
|
52
|
+
const r = t.slice();
|
|
53
|
+
return r[23] = e[l], r;
|
|
54
|
+
}
|
|
55
|
+
function je(t, e, l) {
|
|
56
|
+
const r = t.slice();
|
|
57
|
+
return r[20] = e[l], r;
|
|
58
|
+
}
|
|
59
|
+
function Le(t) {
|
|
60
|
+
let e, l, r = (
|
|
61
|
+
/*$_*/
|
|
62
|
+
t[5]("NoContent") + ""
|
|
63
|
+
), n;
|
|
64
|
+
return {
|
|
65
|
+
c() {
|
|
66
|
+
e = u("div"), l = u("p"), n = W(r), d(e, "class", "EmptyState svelte-ljc7r7");
|
|
67
|
+
},
|
|
68
|
+
m(o, i) {
|
|
69
|
+
x(o, e, i), c(e, l), c(l, n);
|
|
70
|
+
},
|
|
71
|
+
p(o, i) {
|
|
72
|
+
i & /*$_*/
|
|
73
|
+
32 && r !== (r = /*$_*/
|
|
74
|
+
o[5]("NoContent") + "") && z(n, r);
|
|
75
|
+
},
|
|
76
|
+
d(o) {
|
|
77
|
+
o && k(e);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function _e(t) {
|
|
82
|
+
let e, l = F(
|
|
83
|
+
/*programs*/
|
|
84
|
+
t[3]
|
|
85
|
+
), r = [];
|
|
86
|
+
for (let n = 0; n < l.length; n += 1)
|
|
87
|
+
r[n] = V(O(t, l, n));
|
|
88
|
+
return {
|
|
89
|
+
c() {
|
|
90
|
+
e = u("ul");
|
|
91
|
+
for (let n = 0; n < r.length; n += 1)
|
|
92
|
+
r[n].c();
|
|
93
|
+
d(e, "class", "LuckyWheelList svelte-ljc7r7");
|
|
94
|
+
},
|
|
95
|
+
m(n, o) {
|
|
96
|
+
x(n, e, o);
|
|
97
|
+
for (let i = 0; i < r.length; i += 1)
|
|
98
|
+
r[i] && r[i].m(e, null);
|
|
99
|
+
},
|
|
100
|
+
p(n, o) {
|
|
101
|
+
if (o & /*openGame, programs, formatValidity, dynamicIcon, lang*/
|
|
102
|
+
409) {
|
|
103
|
+
l = F(
|
|
104
|
+
/*programs*/
|
|
105
|
+
n[3]
|
|
106
|
+
);
|
|
107
|
+
let i;
|
|
108
|
+
for (i = 0; i < l.length; i += 1) {
|
|
109
|
+
const a = O(n, l, i);
|
|
110
|
+
r[i] ? r[i].p(a, o) : (r[i] = V(a), r[i].c(), r[i].m(e, null));
|
|
111
|
+
}
|
|
112
|
+
for (; i < r.length; i += 1)
|
|
113
|
+
r[i].d(1);
|
|
114
|
+
r.length = l.length;
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
d(n) {
|
|
118
|
+
n && k(e), P(r, n);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function Ae(t) {
|
|
123
|
+
let e, l = F([1, 2, 3, 4, 5]), r = [];
|
|
124
|
+
for (let n = 0; n < 5; n += 1)
|
|
125
|
+
r[n] = Ie(je(t, l, n));
|
|
126
|
+
return {
|
|
127
|
+
c() {
|
|
128
|
+
e = u("div");
|
|
129
|
+
for (let n = 0; n < 5; n += 1)
|
|
130
|
+
r[n].c();
|
|
131
|
+
d(e, "class", "LoaderWrap svelte-ljc7r7"), Y(
|
|
132
|
+
e,
|
|
133
|
+
"Mobile",
|
|
134
|
+
/*mobileView*/
|
|
135
|
+
t[6]
|
|
136
|
+
);
|
|
137
|
+
},
|
|
138
|
+
m(n, o) {
|
|
139
|
+
x(n, e, o);
|
|
140
|
+
for (let i = 0; i < 5; i += 1)
|
|
141
|
+
r[i] && r[i].m(e, null);
|
|
142
|
+
},
|
|
143
|
+
p: U,
|
|
144
|
+
d(n) {
|
|
145
|
+
n && k(e), P(r, n);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function G(t) {
|
|
150
|
+
let e, l, r, n, o = (
|
|
151
|
+
/*formatValidity*/
|
|
152
|
+
t[7](
|
|
153
|
+
/*program*/
|
|
154
|
+
t[23].current.expiryTime
|
|
155
|
+
) + ""
|
|
156
|
+
), i;
|
|
157
|
+
return {
|
|
158
|
+
c() {
|
|
159
|
+
e = u("div"), l = u("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>', r = _(), n = u("span"), i = W(o), d(l, "class", "SmallIcon Timer svelte-ljc7r7"), d(n, "class", "svelte-ljc7r7"), d(e, "class", "ItemValidity svelte-ljc7r7");
|
|
160
|
+
},
|
|
161
|
+
m(a, g) {
|
|
162
|
+
x(a, e, g), c(e, l), c(e, r), c(e, n), c(n, i);
|
|
163
|
+
},
|
|
164
|
+
p(a, g) {
|
|
165
|
+
g & /*programs*/
|
|
166
|
+
8 && o !== (o = /*formatValidity*/
|
|
167
|
+
a[7](
|
|
168
|
+
/*program*/
|
|
169
|
+
a[23].current.expiryTime
|
|
170
|
+
) + "") && z(i, o);
|
|
171
|
+
},
|
|
172
|
+
d(a) {
|
|
173
|
+
a && k(e);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function V(t) {
|
|
178
|
+
let e, l, r, n, o = (
|
|
179
|
+
/*program*/
|
|
180
|
+
(t[23].program.name[
|
|
181
|
+
/*lang*/
|
|
182
|
+
t[0]
|
|
183
|
+
] || /*program*/
|
|
184
|
+
t[23].program.name["*"] || "Unknown Game") + ""
|
|
185
|
+
), i, a, g, y, m, w, f, v, j, b = (
|
|
186
|
+
/*program*/
|
|
187
|
+
(t[23].current?.remainingTimes || 0) + ""
|
|
188
|
+
), L, M, S, A, I, p = (
|
|
189
|
+
/*program*/
|
|
190
|
+
t[23].current?.expiryTime && G(t)
|
|
191
|
+
);
|
|
192
|
+
function D() {
|
|
193
|
+
return (
|
|
194
|
+
/*click_handler*/
|
|
195
|
+
t[16](
|
|
196
|
+
/*program*/
|
|
197
|
+
t[23]
|
|
198
|
+
)
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
c() {
|
|
203
|
+
e = u("li"), l = u("button"), r = u("div"), n = u("span"), i = W(o), a = _(), g = u("span"), y = _(), m = u("div"), w = u("div"), f = u("span"), v = _(), j = u("span"), L = W(b), M = _(), p && p.c(), S = _(), d(n, "class", "ItemTitle svelte-ljc7r7"), d(g, "class", "IconButton Chevron svelte-ljc7r7"), d(r, "class", "ItemTitleRow svelte-ljc7r7"), d(f, "class", "SmallIcon Wheel svelte-ljc7r7"), N(f, "background-image", "url(" + /*dynamicIcon*/
|
|
204
|
+
t[4] + ")"), d(j, "class", "svelte-ljc7r7"), d(w, "class", "ItemKeys svelte-ljc7r7"), d(m, "class", "ItemDetails svelte-ljc7r7"), d(l, "type", "button"), d(l, "class", "ItemButton svelte-ljc7r7"), d(e, "class", "LuckyWheelListItem svelte-ljc7r7");
|
|
205
|
+
},
|
|
206
|
+
m(s, h) {
|
|
207
|
+
x(s, e, h), c(e, l), c(l, r), c(r, n), c(n, i), c(r, a), c(r, g), c(l, y), c(l, m), c(m, w), c(w, f), c(w, v), c(w, j), c(j, L), c(m, M), p && p.m(m, null), c(e, S), A || (I = ce(l, "click", D), A = !0);
|
|
208
|
+
},
|
|
209
|
+
p(s, h) {
|
|
210
|
+
t = s, h & /*programs, lang*/
|
|
211
|
+
9 && o !== (o = /*program*/
|
|
212
|
+
(t[23].program.name[
|
|
213
|
+
/*lang*/
|
|
214
|
+
t[0]
|
|
215
|
+
] || /*program*/
|
|
216
|
+
t[23].program.name["*"] || "Unknown Game") + "") && z(i, o), h & /*dynamicIcon*/
|
|
217
|
+
16 && N(f, "background-image", "url(" + /*dynamicIcon*/
|
|
218
|
+
t[4] + ")"), h & /*programs*/
|
|
219
|
+
8 && b !== (b = /*program*/
|
|
220
|
+
(t[23].current?.remainingTimes || 0) + "") && z(L, b), /*program*/
|
|
221
|
+
t[23].current?.expiryTime ? p ? p.p(t, h) : (p = G(t), p.c(), p.m(m, null)) : p && (p.d(1), p = null);
|
|
222
|
+
},
|
|
223
|
+
d(s) {
|
|
224
|
+
s && k(e), p && p.d(), A = !1, I();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function Ie(t) {
|
|
229
|
+
let e;
|
|
230
|
+
return {
|
|
231
|
+
c() {
|
|
232
|
+
e = u("div"), e.innerHTML = '<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ', d(e, "class", "WheelLoader svelte-ljc7r7");
|
|
233
|
+
},
|
|
234
|
+
m(l, r) {
|
|
235
|
+
x(l, e, r);
|
|
236
|
+
},
|
|
237
|
+
p: U,
|
|
238
|
+
d(l) {
|
|
239
|
+
l && k(e);
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function Me(t) {
|
|
244
|
+
let e, l, r;
|
|
245
|
+
function n(a, g) {
|
|
246
|
+
return (
|
|
247
|
+
/*loading*/
|
|
248
|
+
a[2] ? Ae : (
|
|
249
|
+
/*programs*/
|
|
250
|
+
a[3].length > 0 ? _e : Le
|
|
251
|
+
)
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
let o = n(t), i = o(t);
|
|
255
|
+
return {
|
|
256
|
+
c() {
|
|
257
|
+
e = u("div"), l = u("div"), i.c(), d(l, "class", "ListScrollArea svelte-ljc7r7"), d(e, "class", "PrizeListContent svelte-ljc7r7"), Y(
|
|
258
|
+
e,
|
|
259
|
+
"Mobile",
|
|
260
|
+
/*mobileView*/
|
|
261
|
+
t[6]
|
|
262
|
+
);
|
|
263
|
+
},
|
|
264
|
+
m(a, g) {
|
|
265
|
+
x(a, e, g), c(e, l), i.m(l, null), t[17](e);
|
|
266
|
+
},
|
|
267
|
+
p(a, [g]) {
|
|
268
|
+
o === (o = n(a)) && i ? i.p(a, g) : (i.d(1), i = o(a), i && (i.c(), i.m(l, null)));
|
|
269
|
+
},
|
|
270
|
+
i(a) {
|
|
271
|
+
a && (r || le(() => {
|
|
272
|
+
r = re(e, ne, { duration: 300 }), r.start();
|
|
273
|
+
}));
|
|
274
|
+
},
|
|
275
|
+
o: U,
|
|
276
|
+
d(a) {
|
|
277
|
+
a && k(e), i.d(), t[17](null);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
let Se = null;
|
|
282
|
+
function Be(t, e, l) {
|
|
283
|
+
let r, n;
|
|
284
|
+
ie(t, he, (s) => l(5, n = s));
|
|
285
|
+
let { endpoint: o = "" } = e, { session: i = "" } = e, { lang: a = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: m = "" } = e, { mbsource: w = "" } = e, { type: f = "wheelOfFortune" } = e, v;
|
|
286
|
+
const j = se(window.navigator.userAgent);
|
|
287
|
+
let b = !0, L = [];
|
|
288
|
+
ve();
|
|
289
|
+
const M = () => {
|
|
290
|
+
fetch(m).then((h) => h.json()).then((h) => {
|
|
291
|
+
Object.keys(h).forEach((B) => {
|
|
292
|
+
R(B, h[B]);
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
}, S = (s) => {
|
|
296
|
+
if (!s)
|
|
297
|
+
return "";
|
|
298
|
+
const h = new Date(s).getTime(), B = Date.now(), T = h - B;
|
|
299
|
+
if (T <= 0)
|
|
300
|
+
return "";
|
|
301
|
+
const Z = Math.floor(T / (1e3 * 60 * 60 * 24)), Q = Math.floor(T % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), K = Math.floor(T % (1e3 * 60 * 60) / (1e3 * 60));
|
|
302
|
+
return `${Z.toString().padStart(2, "0")}d:${Q.toString().padStart(2, "0")}h:${K.toString().padStart(2, "0")}m`;
|
|
303
|
+
}, A = async () => {
|
|
304
|
+
if (!(!o || !i)) {
|
|
305
|
+
l(2, b = !0);
|
|
306
|
+
try {
|
|
307
|
+
const s = await be.lotteries(o, i, [f]);
|
|
308
|
+
window.postMessage(
|
|
309
|
+
{
|
|
310
|
+
type: "PrizeProgramsLoaded",
|
|
311
|
+
data: s
|
|
312
|
+
},
|
|
313
|
+
"*"
|
|
314
|
+
), l(3, L = s.filter((h) => (Number(h.current?.remainingTimes) || 0) > 0));
|
|
315
|
+
} catch (s) {
|
|
316
|
+
console.error("[PrizeEngineList] Fetch failed", s);
|
|
317
|
+
} finally {
|
|
318
|
+
l(2, b = !1);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}, I = (s) => {
|
|
322
|
+
window.postMessage({ type: "OpenPrizeGame", data: s }, "*");
|
|
323
|
+
};
|
|
324
|
+
oe(() => () => {
|
|
325
|
+
});
|
|
326
|
+
const p = (s) => I(s);
|
|
327
|
+
function D(s) {
|
|
328
|
+
ae[s ? "unshift" : "push"](() => {
|
|
329
|
+
v = s, l(1, v);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
return t.$$set = (s) => {
|
|
333
|
+
"endpoint" in s && l(9, o = s.endpoint), "session" in s && l(10, i = s.session), "lang" in s && l(0, a = s.lang), "clientstyling" in s && l(11, g = s.clientstyling), "clientstylingurl" in s && l(12, y = s.clientstylingurl), "translationurl" in s && l(13, m = s.translationurl), "mbsource" in s && l(14, w = s.mbsource), "type" in s && l(15, f = s.type);
|
|
334
|
+
}, t.$$.update = () => {
|
|
335
|
+
t.$$.dirty & /*lang*/
|
|
336
|
+
1 && a && fe(a), t.$$.dirty & /*translationurl*/
|
|
337
|
+
8192 && m && M(), t.$$.dirty & /*type*/
|
|
338
|
+
32768 && l(4, r = f === "flipCoin" ? ye : f === "mysteryChest" ? ke : Ce), t.$$.dirty & /*endpoint, session, type*/
|
|
339
|
+
34304 && o && i && f && A(), t.$$.dirty & /*clientstyling, rootContainer*/
|
|
340
|
+
2050 && g && v && de(v, g), t.$$.dirty & /*clientstylingurl, rootContainer*/
|
|
341
|
+
4098 && y && v && ue(v, y), t.$$.dirty & /*mbsource, rootContainer*/
|
|
342
|
+
16386 && w && v && ge(v, `${w}.Style`, Se);
|
|
343
|
+
}, [
|
|
344
|
+
a,
|
|
345
|
+
v,
|
|
346
|
+
b,
|
|
347
|
+
L,
|
|
348
|
+
r,
|
|
349
|
+
n,
|
|
350
|
+
j,
|
|
351
|
+
S,
|
|
352
|
+
I,
|
|
353
|
+
o,
|
|
354
|
+
i,
|
|
355
|
+
g,
|
|
356
|
+
y,
|
|
357
|
+
m,
|
|
358
|
+
w,
|
|
359
|
+
f,
|
|
360
|
+
p,
|
|
361
|
+
D
|
|
362
|
+
];
|
|
363
|
+
}
|
|
364
|
+
class Te extends J {
|
|
365
|
+
constructor(e) {
|
|
366
|
+
super(), $(
|
|
367
|
+
this,
|
|
368
|
+
e,
|
|
369
|
+
Be,
|
|
370
|
+
Me,
|
|
371
|
+
ee,
|
|
372
|
+
{
|
|
373
|
+
endpoint: 9,
|
|
374
|
+
session: 10,
|
|
375
|
+
lang: 0,
|
|
376
|
+
clientstyling: 11,
|
|
377
|
+
clientstylingurl: 12,
|
|
378
|
+
translationurl: 13,
|
|
379
|
+
mbsource: 14,
|
|
380
|
+
type: 15
|
|
381
|
+
},
|
|
382
|
+
xe
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
get endpoint() {
|
|
386
|
+
return this.$$.ctx[9];
|
|
387
|
+
}
|
|
388
|
+
set endpoint(e) {
|
|
389
|
+
this.$$set({ endpoint: e }), C();
|
|
390
|
+
}
|
|
391
|
+
get session() {
|
|
392
|
+
return this.$$.ctx[10];
|
|
393
|
+
}
|
|
394
|
+
set session(e) {
|
|
395
|
+
this.$$set({ session: e }), C();
|
|
396
|
+
}
|
|
397
|
+
get lang() {
|
|
398
|
+
return this.$$.ctx[0];
|
|
399
|
+
}
|
|
400
|
+
set lang(e) {
|
|
401
|
+
this.$$set({ lang: e }), C();
|
|
402
|
+
}
|
|
403
|
+
get clientstyling() {
|
|
404
|
+
return this.$$.ctx[11];
|
|
405
|
+
}
|
|
406
|
+
set clientstyling(e) {
|
|
407
|
+
this.$$set({ clientstyling: e }), C();
|
|
408
|
+
}
|
|
409
|
+
get clientstylingurl() {
|
|
410
|
+
return this.$$.ctx[12];
|
|
411
|
+
}
|
|
412
|
+
set clientstylingurl(e) {
|
|
413
|
+
this.$$set({ clientstylingurl: e }), C();
|
|
414
|
+
}
|
|
415
|
+
get translationurl() {
|
|
416
|
+
return this.$$.ctx[13];
|
|
417
|
+
}
|
|
418
|
+
set translationurl(e) {
|
|
419
|
+
this.$$set({ translationurl: e }), C();
|
|
420
|
+
}
|
|
421
|
+
get mbsource() {
|
|
422
|
+
return this.$$.ctx[14];
|
|
423
|
+
}
|
|
424
|
+
set mbsource(e) {
|
|
425
|
+
this.$$set({ mbsource: e }), C();
|
|
426
|
+
}
|
|
427
|
+
get type() {
|
|
428
|
+
return this.$$.ctx[15];
|
|
429
|
+
}
|
|
430
|
+
set type(e) {
|
|
431
|
+
this.$$set({ type: e }), C();
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
customElements.define("prize-engine-list", pe(Te, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
|
|
435
|
+
export {
|
|
436
|
+
Te as default
|
|
437
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PrizeEngineSuite-DNby9KuV.cjs"),z=require("./WheelSVG-DYz6PQPq.cjs");function O(s){e.append_styles(s,"svelte-12d9sfg",'.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}')}function L(s){let t,l,n,o,a={lang:s[0],contentdirection:s[1],bonus:s[4],size:s[3],radius:s[7]};return n=new z.WheelSVG({props:a}),s[17](n),n.$on("spinning",s[18]),n.$on("spinning-request",s[19]),n.$on("success",s[20]),{c(){t=e.element("div"),l=e.element("div"),e.create_component(n.$$.fragment),e.attr(l,"class","WheelWrapper svelte-12d9sfg"),e.attr(t,"class","MainSection svelte-12d9sfg")},m(r,c){e.insert(r,t,c),e.append(t,l),e.mount_component(n,l,null),o=!0},p(r,c){const u={};c&1&&(u.lang=r[0]),c&2&&(u.contentdirection=r[1]),c&16&&(u.bonus=r[4]),c&8&&(u.size=r[3]),c&128&&(u.radius=r[7]),n.$set(u)},i(r){o||(e.transition_in(n.$$.fragment,r),o=!0)},o(r){e.transition_out(n.$$.fragment,r),o=!1},d(r){r&&e.detach(t),s[17](null),e.destroy_component(n)}}}function U(s){let t,l,n=s[4]&&L(s);return{c(){t=e.element("div"),n&&n.c(),e.attr(t,"class","PrizeLuckywheelContainer svelte-12d9sfg"),e.toggle_class(t,"Mobile",s[8])},m(o,a){e.insert(o,t,a),n&&n.m(t,null),s[21](t),l=!0},p(o,[a]){o[4]?n?(n.p(o,a),a&16&&e.transition_in(n,1)):(n=L(o),n.c(),e.transition_in(n,1),n.m(t,null)):n&&(e.group_outros(),e.transition_out(n,1,1,()=>{n=null}),e.check_outros())},i(o){l||(e.transition_in(n),l=!0)},o(o){e.transition_out(n),l=!1},d(o){o&&e.detach(t),n&&n.d(),s[21](null)}}}let V=null;function x(s,t,l){let n,o,a,{data:r=null}=t,{lang:c="en"}=t,{clientstyling:u=""}=t,{clientstylingurl:y=""}=t,{translationurl:_=""}=t,{mbsource:b=""}=t,{size:S=324}=t,{mobilesize:w=240}=t,{contentdirection:M="anticlockwise"}=t,k=null,f;const P=e.isMobile(window.navigator.userAgent);let g,m=!1;z.setLocaleWhenInit();const C=()=>{fetch(_).then(d=>d.json()).then(d=>{Object.keys(d).forEach(h=>{z.addNewMessages(h,d[h])})})},E=i=>{g&&g.setDrawResult(i)},G=()=>{m||(l(6,m=!0),g&&g.eventSpin())};e.onMount(()=>{const i=d=>{const{type:h,data:p}=d.data;h==="PrizeGameResult"?E(p):h==="PrizeResultClose"?(l(6,m=!1),g&&g.closeMessage()):h==="PrizeGameStartAnimation"&&G()};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}});function W(i){e.binding_callbacks[i?"unshift":"push"](()=>{g=i,l(5,g)})}const q=()=>l(6,m=!0),R=()=>window.postMessage({type:"PrizeGameRequestDraw"},"*"),j=()=>window.postMessage({type:"PrizeGameSpinEnd"},"*");function D(i){e.binding_callbacks[i?"unshift":"push"](()=>{f=i,l(2,f)})}return s.$$set=i=>{"data"in i&&l(9,r=i.data),"lang"in i&&l(0,c=i.lang),"clientstyling"in i&&l(10,u=i.clientstyling),"clientstylingurl"in i&&l(11,y=i.clientstylingurl),"translationurl"in i&&l(12,_=i.translationurl),"mbsource"in i&&l(13,b=i.mbsource),"size"in i&&l(14,S=i.size),"mobilesize"in i&&l(15,w=i.mobilesize),"contentdirection"in i&&l(1,M=i.contentdirection)},s.$$.update=()=>{if(s.$$.dirty&512)if(typeof r=="string")try{l(4,k=JSON.parse(r))}catch(i){console.error("[Luckywheel] Parse failed",i)}else l(4,k=r);s.$$.dirty&1&&c&&z.setLocale(c),s.$$.dirty&4096&&_&&C(),s.$$.dirty&1028&&u&&f&&e.setClientStyling(f,u),s.$$.dirty&2052&&y&&f&&e.setClientStylingURL(f,y),s.$$.dirty&8196&&b&&f&&e.setStreamStyling(f,`${b}.Style`,V),s.$$.dirty&49152&&l(16,n=P&&w?w:S),s.$$.dirty&65536&&l(3,o=n/.6875),s.$$.dirty&8&&l(7,a=.62*o/2)},[c,M,f,o,k,g,m,a,P,r,u,y,_,b,S,w,n,W,q,R,j,D]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,x,U,e.safe_not_equal,{data:9,lang:0,clientstyling:10,clientstylingurl:11,translationurl:12,mbsource:13,size:14,mobilesize:15,contentdirection:1},O)}get data(){return this.$$.ctx[9]}set data(t){this.$$set({data:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get size(){return this.$$.ctx[14]}set size(t){this.$$set({size:t}),e.flush()}get mobilesize(){return this.$$.ctx[15]}set mobilesize(t){this.$$set({mobilesize:t}),e.flush()}get contentdirection(){return this.$$.ctx[1]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}}customElements.define("prize-engine-luckywheel",e.create_custom_element(v,{data:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},size:{},mobilesize:{},contentdirection:{}},[],[],!0));exports.default=v;
|