@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.
Files changed (58) hide show
  1. package/components/{CasinoCoinroyaleContainer-DWB4R3Yr.js → CasinoCoinroyaleContainer-CLLpK1Ed.js} +4 -4
  2. package/components/{CasinoCoinroyaleContainer-Dd3WuhZB.cjs → CasinoCoinroyaleContainer-DHTzWkTJ.cjs} +1 -1
  3. package/components/{CasinoCoinroyaleContainer-CYo6yViq.js → CasinoCoinroyaleContainer-DqnKbBE7.js} +4 -4
  4. package/components/{CasinoCoinroyaleDetails-DSCo5sxs.js → CasinoCoinroyaleDetails-BdVDEPTm.js} +35 -35
  5. package/components/{CasinoCoinroyaleDetails-M-nsYaMC.cjs → CasinoCoinroyaleDetails-Em4xQoca.cjs} +1 -1
  6. package/components/{CasinoCoinroyaleDetails-BUuIGEfN.js → CasinoCoinroyaleDetails-X9TUrtj4.js} +33 -33
  7. package/components/{CasinoCoinroyaleList-nxJ_snBZ.cjs → CasinoCoinroyaleList-C6hKfOYw.cjs} +1 -1
  8. package/components/{CasinoCoinroyaleList-OFDWkS10.js → CasinoCoinroyaleList-DVSWGc29.js} +82 -82
  9. package/components/{CasinoCoinroyaleList-Ptn_lFhJ.js → CasinoCoinroyaleList-IplknfV1.js} +78 -78
  10. package/components/{CasinoGameOverlay-BW5pLP3w.js → CasinoGameOverlay-BtzBFnKd.js} +956 -611
  11. package/components/CasinoGameOverlay-DcfvouvT.cjs +4 -0
  12. package/components/{CasinoGameOverlay-BpgkV_Qf.js → CasinoGameOverlay-V7LdfRMk.js} +884 -540
  13. package/components/{CasinoMysteryChestContainer-BKyPp7ed.js → CasinoMysteryChestContainer-2q39nbfp.js} +4 -4
  14. package/components/{CasinoMysteryChestContainer-CoWCxXc4.cjs → CasinoMysteryChestContainer-BckJ8kSf.cjs} +1 -1
  15. package/components/{CasinoMysteryChestContainer-24nFpYMD.js → CasinoMysteryChestContainer-Bu5soH27.js} +4 -4
  16. package/components/{CasinoMysteryChestDetails-2vpt5ay2.js → CasinoMysteryChestDetails-B29xnOYi.js} +103 -101
  17. package/components/CasinoMysteryChestDetails-DJ6gz5xx.cjs +2 -0
  18. package/components/{CasinoMysteryChestDetails-YKYKG04E.js → CasinoMysteryChestDetails-Dd_ZCPFZ.js} +88 -86
  19. package/components/{CasinoMysteryChestModal-Bdgv0LOT.cjs → CasinoMysteryChestModal-CPrsQruR.cjs} +1 -1
  20. package/components/{CasinoMysteryChestModal-COfIacO_.js → CasinoMysteryChestModal-D8hCr0GS.js} +1 -1
  21. package/components/{CasinoMysteryChestModal-BzmBgt4C.js → CasinoMysteryChestModal-liWPvZLw.js} +1 -1
  22. package/components/{CasinoMysteryChestsList-DpPvplqH.js → CasinoMysteryChestsList-Bn1f7GtL.js} +35 -35
  23. package/components/{CasinoMysteryChestsList-DGb9yJ0g.js → CasinoMysteryChestsList-CV29Ly-U.js} +39 -39
  24. package/components/{CasinoMysteryChestsList-CdV3_k_m.cjs → CasinoMysteryChestsList-ZlpUP-_c.cjs} +1 -1
  25. package/components/{LotteryProgramWof-HYEpHNkB.js → LotteryProgramWof-BKlE0kKR.js} +2923 -2229
  26. package/components/LotteryProgramWof-BXO9ySHI.cjs +36 -0
  27. package/components/{LotteryProgramWof-D3ipu58U.js → LotteryProgramWof-CONWAs8w.js} +3386 -2518
  28. package/components/PrizeEngineChest-BpgJBZ-Y.cjs +1 -0
  29. package/components/PrizeEngineChest-D-GSJmRs.js +243 -0
  30. package/components/PrizeEngineChest-DQ2V6oL0.js +265 -0
  31. package/components/PrizeEngineCoin-C7AvFwNL.js +294 -0
  32. package/components/PrizeEngineCoin-DMf_jPUy.cjs +1 -0
  33. package/components/PrizeEngineCoin-jRTdpoLr.js +272 -0
  34. package/components/PrizeEngineDetails-B32Oyuua.cjs +1 -0
  35. package/components/PrizeEngineDetails-Bok3RJt0.js +1956 -0
  36. package/components/PrizeEngineDetails-BwwbWZIV.js +1996 -0
  37. package/components/PrizeEngineHistory--7ch2ibC.js +561 -0
  38. package/components/PrizeEngineHistory-BS2YDAR_.cjs +1 -0
  39. package/components/PrizeEngineHistory-CT4oW3nn.js +531 -0
  40. package/components/PrizeEngineList-BtST-Ok-.js +473 -0
  41. package/components/PrizeEngineList-C8K3okMV.js +439 -0
  42. package/components/PrizeEngineList-CzJMqs2M.cjs +1 -0
  43. package/components/PrizeEngineLuckywheel-B_dOeIeL.cjs +1 -0
  44. package/components/PrizeEngineLuckywheel-CDAcodqf.js +273 -0
  45. package/components/PrizeEngineLuckywheel-sIZh84m_.js +273 -0
  46. package/components/PrizeEngineSuite-CZAGeW2x.cjs +1 -0
  47. package/components/PrizeEngineSuite-MfBz9bMX.js +713 -0
  48. package/components/PrizeEngineSuite-SzG6RFWp.js +713 -0
  49. package/components/WheelSVG-BKSG01DQ.js +1476 -0
  50. package/components/WheelSVG-BVu6Gymg.cjs +34 -0
  51. package/components/WheelSVG-ClHiUv-P.js +1442 -0
  52. package/es2015/casino-game-overlay.cjs +1 -1
  53. package/es2015/casino-game-overlay.js +1 -1
  54. package/esnext/casino-game-overlay.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CasinoGameOverlay-DhfutTdf.cjs +0 -1
  57. package/components/CasinoMysteryChestDetails-DUuxpGjN.cjs +0 -2
  58. package/components/LotteryProgramWof-BwjH4rzJ.cjs +0 -35
@@ -0,0 +1,439 @@
1
+ import { S as X, b as q, s as J, f as C, d as $, n as N, e as k, C as ee, D as te, g as x, p as c, l as u, m as d, N as G, w as le, o as re, A as ne, L as E, M as P, E as z, F as W, Y as U, q as ie, h as _, I as se, J as oe, K as ae, c as ce } from "./CasinoGameOverlay-V7LdfRMk.js";
2
+ import { f as de } from "./LotteryProgramWof-BKlE0kKR.js";
3
+ import { $ as F, b as ue, a as ge, i as pe, c as me } from "./CasinoMysteryChestContainer-Bu5soH27.js";
4
+ import "../stencil/ui-skeleton-W50o8tfg.js";
5
+ const H = {
6
+ en: {
7
+ Title: "Prize Games",
8
+ RemainingTimes: "Remaining Times",
9
+ NoContent: "No games available at the moment",
10
+ Loading: "Loading games...",
11
+ Error: "Failed to load games",
12
+ WheelOfFortune: "Lucky Wheel",
13
+ MysteryChest: "Mystery Chest",
14
+ FlipCoin: "Flip Coin",
15
+ Dice: "Dices"
16
+ }
17
+ };
18
+ function he({ withLocale: t, translations: e }) {
19
+ F.subscribe((l) => {
20
+ l == null && (ue.set(e), F.set(t));
21
+ });
22
+ }
23
+ function R(t, e) {
24
+ ge(t, e);
25
+ }
26
+ function fe(t) {
27
+ F.set(t);
28
+ }
29
+ const ve = () => {
30
+ he({ withLocale: "en", translations: {} }), Object.keys(H).forEach((t) => {
31
+ R(t, H[t]);
32
+ });
33
+ }, we = async ({ endpoint: t, session: e, types: l }) => {
34
+ const r = new URL(`${t}/v1/wof/lotteries`);
35
+ l && l.length > 0 && l.forEach((o) => r.searchParams.append("filter", `Types[]=${o}`));
36
+ const n = await fetch(r.toString(), {
37
+ method: "GET",
38
+ headers: {
39
+ "Content-Type": "application/json",
40
+ Accept: "text/plain",
41
+ ...e ? { "x-SessionId": e } : {}
42
+ }
43
+ });
44
+ if (!n.ok)
45
+ throw new Error(`Failed to fetch lotteries: ${n.statusText}`);
46
+ return n.json();
47
+ }, be = {
48
+ lotteries: async (t, e, l) => (await we({ endpoint: t, session: e, types: l }))?.items || []
49
+ }, 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";
50
+ function xe(t) {
51
+ $(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}`);
52
+ }
53
+ function O(t, e, l) {
54
+ const r = t.slice();
55
+ return r[23] = e[l], r;
56
+ }
57
+ function je(t, e, l) {
58
+ const r = t.slice();
59
+ return r[20] = e[l], r;
60
+ }
61
+ function Le(t) {
62
+ let e, l, r = (
63
+ /*$_*/
64
+ t[5]("NoContent") + ""
65
+ ), n;
66
+ return {
67
+ c() {
68
+ e = u("div"), l = u("p"), n = W(r), d(e, "class", "EmptyState svelte-ljc7r7");
69
+ },
70
+ m(o, i) {
71
+ x(o, e, i), c(e, l), c(l, n);
72
+ },
73
+ p(o, i) {
74
+ i & /*$_*/
75
+ 32 && r !== (r = /*$_*/
76
+ o[5]("NoContent") + "") && z(n, r);
77
+ },
78
+ d(o) {
79
+ o && k(e);
80
+ }
81
+ };
82
+ }
83
+ function _e(t) {
84
+ let e, l = E(
85
+ /*programs*/
86
+ t[3]
87
+ ), r = [];
88
+ for (let n = 0; n < l.length; n += 1)
89
+ r[n] = Y(O(t, l, n));
90
+ return {
91
+ c() {
92
+ e = u("ul");
93
+ for (let n = 0; n < r.length; n += 1)
94
+ r[n].c();
95
+ d(e, "class", "LuckyWheelList svelte-ljc7r7");
96
+ },
97
+ m(n, o) {
98
+ x(n, e, o);
99
+ for (let i = 0; i < r.length; i += 1)
100
+ r[i] && r[i].m(e, null);
101
+ },
102
+ p(n, o) {
103
+ if (o & /*openGame, programs, formatValidity, dynamicIcon, lang*/
104
+ 409) {
105
+ l = E(
106
+ /*programs*/
107
+ n[3]
108
+ );
109
+ let i;
110
+ for (i = 0; i < l.length; i += 1) {
111
+ const a = O(n, l, i);
112
+ r[i] ? r[i].p(a, o) : (r[i] = Y(a), r[i].c(), r[i].m(e, null));
113
+ }
114
+ for (; i < r.length; i += 1)
115
+ r[i].d(1);
116
+ r.length = l.length;
117
+ }
118
+ },
119
+ d(n) {
120
+ n && k(e), P(r, n);
121
+ }
122
+ };
123
+ }
124
+ function Ae(t) {
125
+ let e, l = E([1, 2, 3, 4, 5]), r = [];
126
+ for (let n = 0; n < 5; n += 1)
127
+ r[n] = Ie(je(t, l, n));
128
+ return {
129
+ c() {
130
+ e = u("div");
131
+ for (let n = 0; n < 5; n += 1)
132
+ r[n].c();
133
+ d(e, "class", "LoaderWrap svelte-ljc7r7"), G(
134
+ e,
135
+ "Mobile",
136
+ /*mobileView*/
137
+ t[6]
138
+ );
139
+ },
140
+ m(n, o) {
141
+ x(n, e, o);
142
+ for (let i = 0; i < 5; i += 1)
143
+ r[i] && r[i].m(e, null);
144
+ },
145
+ p: N,
146
+ d(n) {
147
+ n && k(e), P(r, n);
148
+ }
149
+ };
150
+ }
151
+ function V(t) {
152
+ let e, l, r, n, o = (
153
+ /*formatValidity*/
154
+ t[7](
155
+ /*program*/
156
+ t[23].current.expiryTime
157
+ ) + ""
158
+ ), i;
159
+ return {
160
+ c() {
161
+ 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");
162
+ },
163
+ m(a, g) {
164
+ x(a, e, g), c(e, l), c(e, r), c(e, n), c(n, i);
165
+ },
166
+ p(a, g) {
167
+ g & /*programs*/
168
+ 8 && o !== (o = /*formatValidity*/
169
+ a[7](
170
+ /*program*/
171
+ a[23].current.expiryTime
172
+ ) + "") && z(i, o);
173
+ },
174
+ d(a) {
175
+ a && k(e);
176
+ }
177
+ };
178
+ }
179
+ function Y(t) {
180
+ let e, l, r, n, o = (
181
+ /*program*/
182
+ (t[23].program.name[
183
+ /*lang*/
184
+ t[0]
185
+ ] || /*program*/
186
+ t[23].program.name["*"] || "Unknown Game") + ""
187
+ ), i, a, g, y, h, w, f, v, j, b = (
188
+ /*program*/
189
+ (t[23].current?.remainingTimes || 0) + ""
190
+ ), L, M, S, A, I, p = (
191
+ /*program*/
192
+ t[23].current?.expiryTime && V(t)
193
+ );
194
+ function D() {
195
+ return (
196
+ /*click_handler*/
197
+ t[16](
198
+ /*program*/
199
+ t[23]
200
+ )
201
+ );
202
+ }
203
+ return {
204
+ c() {
205
+ e = u("li"), l = u("button"), r = u("div"), n = u("span"), i = W(o), a = _(), g = u("span"), y = _(), h = 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"), U(f, "background-image", "url(" + /*dynamicIcon*/
206
+ t[4] + ")"), d(j, "class", "svelte-ljc7r7"), d(w, "class", "ItemKeys svelte-ljc7r7"), d(h, "class", "ItemDetails svelte-ljc7r7"), d(l, "type", "button"), d(l, "class", "ItemButton svelte-ljc7r7"), d(e, "class", "LuckyWheelListItem svelte-ljc7r7");
207
+ },
208
+ m(s, m) {
209
+ x(s, e, m), c(e, l), c(l, r), c(r, n), c(n, i), c(r, a), c(r, g), c(l, y), c(l, h), c(h, w), c(w, f), c(w, v), c(w, j), c(j, L), c(h, M), p && p.m(h, null), c(e, S), A || (I = ie(l, "click", D), A = !0);
210
+ },
211
+ p(s, m) {
212
+ t = s, m & /*programs, lang*/
213
+ 9 && o !== (o = /*program*/
214
+ (t[23].program.name[
215
+ /*lang*/
216
+ t[0]
217
+ ] || /*program*/
218
+ t[23].program.name["*"] || "Unknown Game") + "") && z(i, o), m & /*dynamicIcon*/
219
+ 16 && U(f, "background-image", "url(" + /*dynamicIcon*/
220
+ t[4] + ")"), m & /*programs*/
221
+ 8 && b !== (b = /*program*/
222
+ (t[23].current?.remainingTimes || 0) + "") && z(L, b), /*program*/
223
+ t[23].current?.expiryTime ? p ? p.p(t, m) : (p = V(t), p.c(), p.m(h, null)) : p && (p.d(1), p = null);
224
+ },
225
+ d(s) {
226
+ s && k(e), p && p.d(), A = !1, I();
227
+ }
228
+ };
229
+ }
230
+ function Ie(t) {
231
+ let e;
232
+ return {
233
+ c() {
234
+ 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");
235
+ },
236
+ m(l, r) {
237
+ x(l, e, r);
238
+ },
239
+ p: N,
240
+ d(l) {
241
+ l && k(e);
242
+ }
243
+ };
244
+ }
245
+ function Me(t) {
246
+ let e, l, r;
247
+ function n(a, g) {
248
+ return (
249
+ /*loading*/
250
+ a[2] ? Ae : (
251
+ /*programs*/
252
+ a[3].length > 0 ? _e : Le
253
+ )
254
+ );
255
+ }
256
+ let o = n(t), i = o(t);
257
+ return {
258
+ c() {
259
+ e = u("div"), l = u("div"), i.c(), d(l, "class", "ListScrollArea svelte-ljc7r7"), d(e, "class", "PrizeListContent svelte-ljc7r7"), G(
260
+ e,
261
+ "Mobile",
262
+ /*mobileView*/
263
+ t[6]
264
+ );
265
+ },
266
+ m(a, g) {
267
+ x(a, e, g), c(e, l), i.m(l, null), t[17](e);
268
+ },
269
+ p(a, [g]) {
270
+ o === (o = n(a)) && i ? i.p(a, g) : (i.d(1), i = o(a), i && (i.c(), i.m(l, null)));
271
+ },
272
+ i(a) {
273
+ a && (r || ee(() => {
274
+ r = te(e, de, { duration: 300 }), r.start();
275
+ }));
276
+ },
277
+ o: N,
278
+ d(a) {
279
+ a && k(e), i.d(), t[17](null);
280
+ }
281
+ };
282
+ }
283
+ let Se = null;
284
+ function Be(t, e, l) {
285
+ let r, n;
286
+ le(t, me, (s) => l(5, n = s));
287
+ let { endpoint: o = "" } = e, { session: i = "" } = e, { lang: a = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: h = "" } = e, { mbsource: w = "" } = e, { type: f = "wheelOfFortune" } = e, v;
288
+ const j = pe(window.navigator.userAgent);
289
+ let b = !0, L = [];
290
+ ve();
291
+ const M = () => {
292
+ fetch(h).then((m) => m.json()).then((m) => {
293
+ Object.keys(m).forEach((B) => {
294
+ R(B, m[B]);
295
+ });
296
+ });
297
+ }, S = (s) => {
298
+ if (!s)
299
+ return "";
300
+ const m = new Date(s).getTime(), B = Date.now(), T = m - B;
301
+ if (T <= 0)
302
+ return "";
303
+ const Z = Math.floor(T / (1e3 * 60 * 60 * 24)), K = Math.floor(T % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), Q = Math.floor(T % (1e3 * 60 * 60) / (1e3 * 60));
304
+ return `${Z.toString().padStart(2, "0")}d:${K.toString().padStart(2, "0")}h:${Q.toString().padStart(2, "0")}m`;
305
+ }, A = async () => {
306
+ if (!(!o || !i)) {
307
+ l(2, b = !0);
308
+ try {
309
+ const s = await be.lotteries(o, i, [f]);
310
+ window.postMessage(
311
+ {
312
+ type: "PrizeProgramsLoaded",
313
+ data: s
314
+ },
315
+ "*"
316
+ ), l(3, L = s.filter((m) => (Number(m.current?.remainingTimes) || 0) > 0));
317
+ } catch (s) {
318
+ console.error("[PrizeEngineList] Fetch failed", s);
319
+ } finally {
320
+ l(2, b = !1);
321
+ }
322
+ }
323
+ }, I = (s) => {
324
+ window.postMessage({ type: "OpenPrizeGame", data: s }, "*");
325
+ };
326
+ re(() => () => {
327
+ });
328
+ const p = (s) => I(s);
329
+ function D(s) {
330
+ ne[s ? "unshift" : "push"](() => {
331
+ v = s, l(1, v);
332
+ });
333
+ }
334
+ return t.$$set = (s) => {
335
+ "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, h = s.translationurl), "mbsource" in s && l(14, w = s.mbsource), "type" in s && l(15, f = s.type);
336
+ }, t.$$.update = () => {
337
+ t.$$.dirty & /*lang*/
338
+ 1 && a && fe(a), t.$$.dirty & /*translationurl*/
339
+ 8192 && h && M(), t.$$.dirty & /*type*/
340
+ 32768 && l(4, r = f === "flipCoin" ? ye : f === "mysteryChest" ? ke : Ce), t.$$.dirty & /*endpoint, session, type*/
341
+ 34304 && o && i && f && A(), t.$$.dirty & /*clientstyling, rootContainer*/
342
+ 2050 && g && v && se(v, g), t.$$.dirty & /*clientstylingurl, rootContainer*/
343
+ 4098 && y && v && oe(v, y), t.$$.dirty & /*mbsource, rootContainer*/
344
+ 16386 && w && v && ae(v, `${w}.Style`, Se);
345
+ }, [
346
+ a,
347
+ v,
348
+ b,
349
+ L,
350
+ r,
351
+ n,
352
+ j,
353
+ S,
354
+ I,
355
+ o,
356
+ i,
357
+ g,
358
+ y,
359
+ h,
360
+ w,
361
+ f,
362
+ p,
363
+ D
364
+ ];
365
+ }
366
+ class Te extends X {
367
+ constructor(e) {
368
+ super(), q(
369
+ this,
370
+ e,
371
+ Be,
372
+ Me,
373
+ J,
374
+ {
375
+ endpoint: 9,
376
+ session: 10,
377
+ lang: 0,
378
+ clientstyling: 11,
379
+ clientstylingurl: 12,
380
+ translationurl: 13,
381
+ mbsource: 14,
382
+ type: 15
383
+ },
384
+ xe
385
+ );
386
+ }
387
+ get endpoint() {
388
+ return this.$$.ctx[9];
389
+ }
390
+ set endpoint(e) {
391
+ this.$$set({ endpoint: e }), C();
392
+ }
393
+ get session() {
394
+ return this.$$.ctx[10];
395
+ }
396
+ set session(e) {
397
+ this.$$set({ session: e }), C();
398
+ }
399
+ get lang() {
400
+ return this.$$.ctx[0];
401
+ }
402
+ set lang(e) {
403
+ this.$$set({ lang: e }), C();
404
+ }
405
+ get clientstyling() {
406
+ return this.$$.ctx[11];
407
+ }
408
+ set clientstyling(e) {
409
+ this.$$set({ clientstyling: e }), C();
410
+ }
411
+ get clientstylingurl() {
412
+ return this.$$.ctx[12];
413
+ }
414
+ set clientstylingurl(e) {
415
+ this.$$set({ clientstylingurl: e }), C();
416
+ }
417
+ get translationurl() {
418
+ return this.$$.ctx[13];
419
+ }
420
+ set translationurl(e) {
421
+ this.$$set({ translationurl: e }), C();
422
+ }
423
+ get mbsource() {
424
+ return this.$$.ctx[14];
425
+ }
426
+ set mbsource(e) {
427
+ this.$$set({ mbsource: e }), C();
428
+ }
429
+ get type() {
430
+ return this.$$.ctx[15];
431
+ }
432
+ set type(e) {
433
+ this.$$set({ type: e }), C();
434
+ }
435
+ }
436
+ customElements.define("prize-engine-list", ce(Te, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
437
+ export {
438
+ Te as default
439
+ };
@@ -0,0 +1 @@
1
+ "use strict";var G=Object.defineProperty;var T=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var z=(r,t,l)=>t in r?G(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,W=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&z(r,l,t[l]);if(T)for(var l of T(t))V.call(t,l)&&z(r,l,t[l]);return r};var S=(r,t,l)=>new Promise((n,i)=>{var s=d=>{try{c(l.next(d))}catch(f){i(f)}},o=d=>{try{c(l.throw(d))}catch(f){i(f)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(s,o);c((l=l.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameOverlay-DcfvouvT.cjs"),Y=require("./LotteryProgramWof-BXO9ySHI.cjs"),y=require("./CasinoMysteryChestContainer-BckJ8kSf.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const D={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 R({withLocale:r,translations:t}){y.$locale.subscribe(l=>{l==null&&(y.$dictionary.set(t),y.$locale.set(r))})}function N(r,t){y.addMessages(r,t)}function Z(r){y.$locale.set(r)}const Q=()=>{R({withLocale:"en",translations:{}}),Object.keys(D).forEach(r=>{N(r,D[r])})},K=n=>S(exports,[n],function*({endpoint:r,session:t,types:l}){const i=new URL(`${r}/v1/wof/lotteries`);l&&l.length>0&&l.forEach(o=>i.searchParams.append("filter",`Types[]=${o}`));const s=yield fetch(i.toString(),{method:"GET",headers:W({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})});if(!s.ok)throw new Error(`Failed to fetch lotteries: ${s.statusText}`);return s.json()}),q={lotteries:(r,t,l)=>S(exports,null,function*(){const n=yield K({endpoint:r,session:t,types:l});return(n==null?void 0:n.items)||[]})},X="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=",J="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",$="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 ee(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 te(r,t,l){const n=r.slice();return n[20]=t[l],n}function le(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(s,o){e.insert(s,t,o),e.append(t,l),e.append(l,i)},p(s,o){o&32&&n!==(n=s[5]("NoContent")+"")&&e.set_data(i,n)},d(s){s&&e.detach(t)}}}function re(r){let t,l=e.ensure_array_like(r[3]),n=[];for(let i=0;i<l.length;i+=1)n[i]=U(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,s){e.insert(i,t,s);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(t,null)},p(i,s){if(s&409){l=e.ensure_array_like(i[3]);let o;for(o=0;o<l.length;o+=1){const c=E(i,l,o);n[o]?n[o].p(c,s):(n[o]=U(c),n[o].c(),n[o].m(t,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function ne(r){let t,l=e.ensure_array_like([1,2,3,4,5]),n=[];for(let i=0;i<5;i+=1)n[i]=ie(te(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,s){e.insert(i,t,s);for(let o=0;o<5;o+=1)n[o]&&n[o].m(t,null)},p:e.noop,d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function F(r){let t,l,n,i,s=r[7](r[23].current.expiryTime)+"",o;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"),o=e.text(s),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,o)},p(c,d){d&8&&s!==(s=c[7](c[23].current.expiryTime)+"")&&e.set_data(o,s)},d(c){c&&e.detach(t)}}}function U(r){var a,w;let t,l,n,i,s=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"",o,c,d,f,g,v,m,h,k,b=(((a=r[23].current)==null?void 0:a.remainingTimes)||0)+"",x,L,A,j,_,u=((w=r[23].current)==null?void 0:w.expiryTime)&&F(r);function B(){return r[16](r[23])}return{c(){t=e.element("li"),l=e.element("button"),n=e.element("div"),i=e.element("span"),o=e.text(s),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(),k=e.element("span"),x=e.text(b),L=e.space(),u&&u.c(),A=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(k,"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,C){e.insert(p,t,C),e.append(t,l),e.append(l,n),e.append(n,i),e.append(i,o),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,k),e.append(k,x),e.append(g,L),u&&u.m(g,null),e.append(t,A),j||(_=e.listen(l,"click",B),j=!0)},p(p,C){var I,M;r=p,C&9&&s!==(s=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"")&&e.set_data(o,s),C&16&&e.set_style(m,"background-image","url("+r[4]+")"),C&8&&b!==(b=(((I=r[23].current)==null?void 0:I.remainingTimes)||0)+"")&&e.set_data(x,b),(M=r[23].current)!=null&&M.expiryTime?u?u.p(r,C):(u=F(r),u.c(),u.m(g,null)):u&&(u.d(1),u=null)},d(p){p&&e.detach(t),u&&u.d(),j=!1,_()}}}function ie(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 oe(r){let t,l,n;function i(c,d){return c[2]?ne:c[3].length>0?re:le}let s=i(r),o=s(r);return{c(){t=e.element("div"),l=e.element("div"),o.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),o.m(l,null),r[17](t)},p(c,[d]){s===(s=i(c))&&o?o.p(c,d):(o.d(1),o=s(c),o&&(o.c(),o.m(l,null)))},i(c){c&&(n||e.add_render_callback(()=>{n=e.create_in_transition(t,Y.fade,{duration:300}),n.start()}))},o:e.noop,d(c){c&&e.detach(t),o.d(),r[17](null)}}}let se=null;function ae(r,t,l){let n,i;e.component_subscribe(r,y.$format,a=>l(5,i=a));let{endpoint:s=""}=t,{session:o=""}=t,{lang:c="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:f=""}=t,{translationurl:g=""}=t,{mbsource:v=""}=t,{type:m="wheelOfFortune"}=t,h;const k=y.isMobile(window.navigator.userAgent);let b=!0,x=[];Q();const L=()=>{fetch(g).then(w=>w.json()).then(w=>{Object.keys(w).forEach(p=>{N(p,w[p])})})},A=a=>{if(!a)return"";const w=new Date(a).getTime(),p=Date.now(),C=w-p;if(C<=0)return"";const I=Math.floor(C/(1e3*60*60*24)),M=Math.floor(C%(1e3*60*60*24)/(1e3*60*60)),H=Math.floor(C%(1e3*60*60)/(1e3*60));return`${I.toString().padStart(2,"0")}d:${M.toString().padStart(2,"0")}h:${H.toString().padStart(2,"0")}m`},j=()=>S(this,null,function*(){if(!(!s||!o)){l(2,b=!0);try{const a=yield q.lotteries(s,o,[m]);window.postMessage({type:"PrizeProgramsLoaded",data:a},"*"),l(3,x=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,b=!1)}}}),_=a=>{window.postMessage({type:"OpenPrizeGame",data:a},"*")};e.onMount(()=>()=>{});const u=a=>_(a);function B(a){e.binding_callbacks[a?"unshift":"push"](()=>{h=a,l(1,h)})}return r.$$set=a=>{"endpoint"in a&&l(9,s=a.endpoint),"session"in a&&l(10,o=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&&Z(c),r.$$.dirty&8192&&g&&L(),r.$$.dirty&32768&&l(4,n=m==="flipCoin"?J:m==="mysteryChest"?$:X),r.$$.dirty&34304&&s&&o&&m&&j(),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`,se)},[c,h,b,x,n,i,k,A,_,s,o,d,f,g,v,m,u,B]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ae,oe,e.safe_not_equal,{endpoint:9,session:10,lang:0,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14,type:15},ee)}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(O,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=O;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoGameOverlay-DcfvouvT.cjs"),O=require("./CasinoMysteryChestContainer-BckJ8kSf.cjs"),z=require("./WheelSVG-BVu6Gymg.cjs");function U(s){t.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 P(s){let e,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(){e=t.element("div"),l=t.element("div"),t.create_component(n.$$.fragment),t.attr(l,"class","WheelWrapper svelte-12d9sfg"),t.attr(e,"class","MainSection svelte-12d9sfg")},m(r,c){t.insert(r,e,c),t.append(e,l),t.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||(t.transition_in(n.$$.fragment,r),o=!0)},o(r){t.transition_out(n.$$.fragment,r),o=!1},d(r){r&&t.detach(e),s[17](null),t.destroy_component(n)}}}function V(s){let e,l,n=s[4]&&P(s);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","PrizeLuckywheelContainer svelte-12d9sfg"),t.toggle_class(e,"Mobile",s[8])},m(o,a){t.insert(o,e,a),n&&n.m(e,null),s[21](e),l=!0},p(o,[a]){o[4]?n?(n.p(o,a),a&16&&t.transition_in(n,1)):(n=P(o),n.c(),t.transition_in(n,1),n.m(e,null)):n&&(t.group_outros(),t.transition_out(n,1,1,()=>{n=null}),t.check_outros())},i(o){l||(t.transition_in(n),l=!0)},o(o){t.transition_out(n),l=!1},d(o){o&&t.detach(e),n&&n.d(),s[21](null)}}}let x=null;function A(s,e,l){let n,o,a,{data:r=null}=e,{lang:c="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:y=""}=e,{translationurl:_=""}=e,{mbsource:b=""}=e,{size:S=324}=e,{mobilesize:w=240}=e,{contentdirection:M="anticlockwise"}=e,k=null,f;const C=O.isMobile(window.navigator.userAgent);let g,m=!1;z.setLocaleWhenInit();const L=()=>{fetch(_).then(d=>d.json()).then(d=>{Object.keys(d).forEach(h=>{z.addNewMessages(h,d[h])})})},G=i=>{g&&g.setDrawResult(i)},q=()=>{m||(l(6,m=!0),g&&g.eventSpin())};t.onMount(()=>{const i=d=>{const{type:h,data:D}=d.data;h==="PrizeGameResult"?G(D):h==="PrizeResultClose"?(l(6,m=!1),g&&g.closeMessage()):h==="PrizeGameStartAnimation"&&q()};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}});function E(i){t.binding_callbacks[i?"unshift":"push"](()=>{g=i,l(5,g)})}const W=()=>l(6,m=!0),R=()=>window.postMessage({type:"PrizeGameRequestDraw"},"*"),j=()=>window.postMessage({type:"PrizeGameSpinEnd"},"*");function p(i){t.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&&_&&L(),s.$$.dirty&1028&&u&&f&&t.setClientStyling(f,u),s.$$.dirty&2052&&y&&f&&t.setClientStylingURL(f,y),s.$$.dirty&8196&&b&&f&&t.setStreamStyling(f,`${b}.Style`,x),s.$$.dirty&49152&&l(16,n=C&&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,C,r,u,y,_,b,S,w,n,E,W,R,j,p]}class v extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,V,t.safe_not_equal,{data:9,lang:0,clientstyling:10,clientstylingurl:11,translationurl:12,mbsource:13,size:14,mobilesize:15,contentdirection:1},U)}get data(){return this.$$.ctx[9]}set data(e){this.$$set({data:e}),t.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get size(){return this.$$.ctx[14]}set size(e){this.$$set({size:e}),t.flush()}get mobilesize(){return this.$$.ctx[15]}set mobilesize(e){this.$$set({mobilesize:e}),t.flush()}get contentdirection(){return this.$$.ctx[1]}set contentdirection(e){this.$$set({contentdirection:e}),t.flush()}}customElements.define("prize-engine-luckywheel",t.create_custom_element(v,{data:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},size:{},mobilesize:{},contentdirection:{}},[],[],!0));exports.default=v;