@everymatrix/casino-game-overlay 1.74.8 → 1.75.0

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 (35) hide show
  1. package/components/{CasinoCoinroyaleContainer-DvCA68hm.js → CasinoCoinroyaleContainer-46hE59cZ.js} +3 -3
  2. package/components/{CasinoCoinroyaleContainer-DgBlx5lG.js → CasinoCoinroyaleContainer-BwOXTtnm.js} +3 -3
  3. package/components/{CasinoCoinroyaleContainer-DEl9DZHu.cjs → CasinoCoinroyaleContainer-DFr9Io-Z.cjs} +2 -2
  4. package/components/{CasinoCoinroyaleDetails-wR8hmTRl.cjs → CasinoCoinroyaleDetails-BasmAYdD.cjs} +1 -1
  5. package/components/{CasinoCoinroyaleDetails-DeSsuEYj.js → CasinoCoinroyaleDetails-CmIBRGt8.js} +1 -1
  6. package/components/{CasinoCoinroyaleDetails-BQkPqSqu.js → CasinoCoinroyaleDetails-D-iSGtXu.js} +1 -1
  7. package/components/{CasinoCoinroyaleList-BLpZSfaq.js → CasinoCoinroyaleList-1r5NwUfN.js} +860 -814
  8. package/components/CasinoCoinroyaleList-B8c-Zppd.cjs +1 -0
  9. package/components/{CasinoCoinroyaleList-CFjlc-sc.js → CasinoCoinroyaleList-C8UnGjN1.js} +407 -362
  10. package/components/{CasinoGameOverlay-Dpdw9184.cjs → CasinoGameOverlay-D2FtvwZC.cjs} +1 -1
  11. package/components/{CasinoGameOverlay-BM8mFNNi.js → CasinoGameOverlay-Dh4HE_SV.js} +5 -5
  12. package/components/{CasinoGameOverlay-pXegcrgH.js → CasinoGameOverlay-kGFc0S4z.js} +5 -5
  13. package/components/{CasinoMysteryChestContainer-BH0aReAO.js → CasinoMysteryChestContainer-BbxAeM65.js} +3 -3
  14. package/components/{CasinoMysteryChestContainer-Co2aAmpy.js → CasinoMysteryChestContainer-Dc5tDRbD.js} +3 -3
  15. package/components/{CasinoMysteryChestContainer-C2X7KCfl.cjs → CasinoMysteryChestContainer-DucC6Ces.cjs} +1 -1
  16. package/components/{CasinoMysteryChestDetails--cw4FvAb.js → CasinoMysteryChestDetails-42K0pmm3.js} +1 -1
  17. package/components/{CasinoMysteryChestDetails-CzDmW86j.js → CasinoMysteryChestDetails-M6Fjrprj.js} +1 -1
  18. package/components/{CasinoMysteryChestDetails-BszXebg_.cjs → CasinoMysteryChestDetails-xC4dPSEh.cjs} +1 -1
  19. package/components/{CasinoMysteryChestModal-Cg-CuByX.js → CasinoMysteryChestModal-C2JfWh_f.js} +1 -1
  20. package/components/{CasinoMysteryChestModal-BgmXmbUO.cjs → CasinoMysteryChestModal-CAFkZbrS.cjs} +1 -1
  21. package/components/{CasinoMysteryChestModal-D-YlAcZT.js → CasinoMysteryChestModal-DrH_BWD1.js} +1 -1
  22. package/components/CasinoMysteryChestsList-80lngKDK.js +1031 -0
  23. package/components/CasinoMysteryChestsList-BxWiRKT9.js +1075 -0
  24. package/components/CasinoMysteryChestsList-CHlDMkgd.cjs +1 -0
  25. package/components/{LotteryProgramWof-CGMqEGux.js → LotteryProgramWof-B0Dm3U5B.js} +83 -83
  26. package/components/{LotteryProgramWof-RHh0KBt4.js → LotteryProgramWof-BGbRg6IT.js} +159 -159
  27. package/components/{LotteryProgramWof-_Z_GV4ya.cjs → LotteryProgramWof-D4GG8ymO.cjs} +2 -2
  28. package/es2015/casino-game-overlay.cjs +1 -1
  29. package/es2015/casino-game-overlay.js +1 -1
  30. package/esnext/casino-game-overlay.js +1 -1
  31. package/package.json +1 -1
  32. package/components/CasinoCoinroyaleList-DcQRGzAM.cjs +0 -1
  33. package/components/CasinoMysteryChestsList-ByBac6AA.js +0 -986
  34. package/components/CasinoMysteryChestsList-C3KZ3Axd.cjs +0 -1
  35. package/components/CasinoMysteryChestsList-VqmU1qZ0.js +0 -1029
@@ -1,986 +0,0 @@
1
- import { a as Me, $ as Te, S as Se, i as Fe, f as X, c as Pe, s as He, b as Be, e as h, d as w, t as k, g as c, z as ee, h as M, j as n, l as V, k as C, n as Q, m as T, r as Ae, p as De, q as Oe, o as Re, v as Ue, A as oe, B as J, C as se, D as ae, y as Ze, w as re } from "./CasinoCoinroyaleContainer-DgBlx5lG.js";
2
- import "../stencil/ui-skeleton-NZtdK490.js";
3
- import { f as je } from "./CasinoCoinroyaleList-CFjlc-sc.js";
4
- const ce = (s) => window.postMessage(s, window.location.href), Ee = "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", de = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e", he = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", Ie = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9124%204.83736C11.1402%205.06516%2011.1402%205.43451%2010.9124%205.66232L7.41243%209.16232C7.18462%209.39012%206.81528%209.39012%206.58747%209.16232L3.08747%205.66232C2.85966%205.43451%202.85966%205.06516%203.08747%204.83736C3.31528%204.60955%203.68462%204.60955%203.91243%204.83736L6.99995%207.92488L10.0875%204.83736C10.3153%204.60955%2010.6846%204.60955%2010.9124%204.83736Z'%20fill='url(%23paint0_linear_738_1669)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_738_1669'%20x1='6.99995'%20y1='4.6665'%20x2='6.99995'%20y2='9.33317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
5
- var le = /* @__PURE__ */ ((s) => (s.lotteries = "lotteries", s.outcome = "outcome", s.draw = "draw", s))(le || {}), te = /* @__PURE__ */ ((s) => (s.en = "en", s.default = "*", s))(te || {});
6
- const Ne = async (s) => {
7
- const { path: e, params: i = {}, options: l = {} } = s, t = new URL(e);
8
- return Object.keys(i).map((r) => {
9
- t.searchParams.append(r, i[r]);
10
- }), await Ge(t, l);
11
- }, Ge = async (s, e = {}) => {
12
- let i;
13
- try {
14
- i = await fetch(s, e), i = await i.text(), i = JSON.parse(i);
15
- } catch (l) {
16
- throw new Error(l.message);
17
- }
18
- return i;
19
- }, me = async (s, e, i) => {
20
- const { session: l } = i, t = {
21
- headers: {
22
- "Content-Type": "application/json",
23
- accept: "text/plain",
24
- ...l ? { "x-SessionId": l } : {}
25
- }
26
- }, o = {
27
- [le.lotteries]: () => ({
28
- path: "/wof/lotteries",
29
- params: {
30
- filter: "Types[]=mysteryChest"
31
- },
32
- options: t
33
- }),
34
- [le.outcome]: () => {
35
- const { id: a } = i;
36
- return {
37
- path: `/wof/outcome/${a}`,
38
- params: {
39
- filter: "Types[]=mysteryChest"
40
- },
41
- options: t
42
- };
43
- }
44
- }[s]();
45
- return o.path = e + "/v1" + o.path, await Ne(o);
46
- }, pe = {
47
- lotteries: async (s, e) => (await me(le.lotteries, s, { session: e }))?.items || [],
48
- outcome: async (s, e, i) => await me(le.outcome, s, { session: e, id: i })
49
- }, Ye = (s) => s?.current?.remainingTimes > 0 && s?.next;
50
- function ue(s, e) {
51
- Me(s, e);
52
- }
53
- function We(s) {
54
- Te.set(s);
55
- }
56
- const fe = {
57
- en: {
58
- infoTooltip: "Open Mystery Chest and find your reward!",
59
- play: "Play",
60
- history: "History",
61
- rules: "Rules",
62
- noChestYet: "There are no available Chests",
63
- noHistoryYet: "There is no history yet",
64
- more: "More",
65
- rulesDescription: "Mystery Chest is a particularly interesting game, will bring you a lot of surprises; When you obtained the Mystery Chest, means you got a key to open the Chest, and if you are lucky, you can get the surprise prize.",
66
- terms: "Terms&Conditions link",
67
- prizeAgenda: "Prize agenda",
68
- tournamentTicket: "Tournament ticket",
69
- freeSpins: "Free spins",
70
- bonusMoney: "Bonus Money",
71
- loyaltyPoints: "Loyalty Points&Coins",
72
- luckyWheel: "LuckyWheel",
73
- mysteryChest: "Mystery Chest",
74
- customRewards: "Custom Rewards"
75
- }
76
- };
77
- function qe(s) {
78
- Be(s, "svelte-4ymzhp", `.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 135px)}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .chests-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chests-tabs{margin:20px 0}.mobile .chests-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .chests-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .chests-tabs__tab.active{border-bottom:1px solid}.mobile .chests-list{gap:16px}.mobile .chests-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:16px;height:56px}.mobile .chests-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chests-rules{gap:24px}.mobile .chests-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .chests-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .chests-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .chests-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .chests-history__list{margin-bottom:32px}.mobile .chests-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .chests-history__list__item .name img{width:14px;height:14px}.mobile .chests-loader{border-radius:var(--emw--border-radius-large, 16px);padding:20px;line-height:15px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}@container (max-width: 1300px){.drawer{padding:20px 40px}}@container (max-width: 992px){.drawer{width:70%}}@container (max-width: 768px){.drawer{width:80%}}@container (max-width: 576px){.drawer{width:90%}}.drawer .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)}.drawer .Skeleton.Text{width:var(--emw-skeleton-text-width-100, 155px)}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>') no-repeat}.icon-button.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.chests-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chests-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.chests-tabs{margin:28px 0}.chests-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.chests-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.chests-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-2px;border-bottom:2px solid}@media screen and (max-width: 1300px){.chests-tabs{margin:15px 0 28px}}.chests-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.chests-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:28px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.chests-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}@media screen and (max-width: 992px){.chests-list__item{font-size:var(--emw--font-size-medium, 16px);padding:20px 24px}.chests-list__item__keys{font-size:var(--emw--font-size-medium, 16px)}}@media screen and (max-width: 1300px){.chests-list{gap:20px}.chests-list__item{padding:25px 24px}}.chests-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.chests-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.chests-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.chests-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.chests-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.chests-rules__list{padding-inline-start:25px;margin:15px 0 0}.chests-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.chests-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.chests-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.chests-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.chests-history__list{margin-bottom:40px;overflow:auto;max-height:215px}.chests-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.chests-history__list__item .index{margin-right:20px}.chests-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.chests-history__list__item .name img{width:18px;height:18px}.chests-loader{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}.chests-history-loader{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.chests-history-loader-body{display:flex}.chests-history-dot .Skeleton{border-radius:var(--emw--border-radius-large, 50%);margin-right:10px}.chests-history-text .Skeleton{margin-right:20px}`);
79
- }
80
- function ge(s, e, i) {
81
- const l = s.slice();
82
- return l[43] = e[i], l;
83
- }
84
- function _e(s, e, i) {
85
- const l = s.slice();
86
- return l[46] = e[i], l[48] = i, l;
87
- }
88
- function be(s, e, i) {
89
- const l = s.slice();
90
- return l[40] = e[i], l[42] = i, l;
91
- }
92
- function Ve(s, e, i) {
93
- const l = s.slice();
94
- return l[33] = e[i], l;
95
- }
96
- function Je(s, e, i) {
97
- const l = s.slice();
98
- return l[33] = e[i], l;
99
- }
100
- function Ke(s, e, i) {
101
- const l = s.slice();
102
- return l[33] = e[i], l;
103
- }
104
- function we(s) {
105
- let e, i, l, t, r, o = (
106
- /*$_*/
107
- s[10]("infoTooltip") + ""
108
- ), a, f, m;
109
- return {
110
- c() {
111
- e = h("div"), i = h("div"), l = h("button"), t = w(), r = h("span"), a = k(o), c(l, "class", "icon-button close"), c(i, "class", "tooltip"), c(e, "class", "tooltip-backdrop");
112
- },
113
- m(u, p) {
114
- M(u, e, p), n(e, i), n(i, l), n(i, t), n(i, r), n(r, a), f || (m = V(
115
- l,
116
- "click",
117
- /*showHideToolip*/
118
- s[13]
119
- ), f = !0);
120
- },
121
- p(u, p) {
122
- p[0] & /*$_*/
123
- 1024 && o !== (o = /*$_*/
124
- u[10]("infoTooltip") + "") && C(a, o);
125
- },
126
- d(u) {
127
- u && T(e), f = !1, m();
128
- }
129
- };
130
- }
131
- function Xe(s) {
132
- let e, i, l = (
133
- /*$_*/
134
- s[10]("rulesDescription") + ""
135
- ), t, r, o, a, f, m = (
136
- /*$_*/
137
- s[10]("prizeAgenda") + ""
138
- ), u, p, _, g, b = (
139
- /*$_*/
140
- s[10]("tournamentTicket") + ""
141
- ), y, F, P, Z = (
142
- /*$_*/
143
- s[10]("freeSpins") + ""
144
- ), D, R, j, G = (
145
- /*$_*/
146
- s[10]("bonusMoney") + ""
147
- ), U, Y, E, I = (
148
- /*$_*/
149
- s[10]("loyaltyPoints") + ""
150
- ), W, K, z, q = (
151
- /*$_*/
152
- s[10]("luckyWheel") + ""
153
- ), N, B, v, S = (
154
- /*$_*/
155
- s[10]("mysteryChest") + ""
156
- ), ie, d, x, H = (
157
- /*$_*/
158
- s[10]("customRewards") + ""
159
- ), $, O = (
160
- /*hasUrl*/
161
- s[8] && ve(s)
162
- );
163
- return {
164
- c() {
165
- e = h("div"), i = h("span"), t = k(l), r = w(), O && O.c(), o = w(), a = h("section"), f = h("span"), u = k(m), p = w(), _ = h("ul"), g = h("li"), y = k(b), F = w(), P = h("li"), D = k(Z), R = w(), j = h("li"), U = k(G), Y = w(), E = h("li"), W = k(I), K = w(), z = h("li"), N = k(q), B = w(), v = h("li"), ie = k(S), d = w(), x = h("li"), $ = k(H), c(i, "class", "chests-rules__description"), c(f, "class", "chests-rules__prize-title"), c(g, "class", "chests-rules__list__item"), c(P, "class", "chests-rules__list__item"), c(j, "class", "chests-rules__list__item"), c(E, "class", "chests-rules__list__item"), c(z, "class", "chests-rules__list__item"), c(v, "class", "chests-rules__list__item"), c(x, "class", "chests-rules__list__item"), c(_, "class", "chests-rules__list"), c(e, "class", "chests-rules");
166
- },
167
- m(L, A) {
168
- M(L, e, A), n(e, i), n(i, t), n(e, r), O && O.m(e, null), n(e, o), n(e, a), n(a, f), n(f, u), n(a, p), n(a, _), n(_, g), n(g, y), n(_, F), n(_, P), n(P, D), n(_, R), n(_, j), n(j, U), n(_, Y), n(_, E), n(E, W), n(_, K), n(_, z), n(z, N), n(_, B), n(_, v), n(v, ie), n(_, d), n(_, x), n(x, $);
169
- },
170
- p(L, A) {
171
- A[0] & /*$_*/
172
- 1024 && l !== (l = /*$_*/
173
- L[10]("rulesDescription") + "") && C(t, l), /*hasUrl*/
174
- L[8] ? O ? O.p(L, A) : (O = ve(L), O.c(), O.m(e, o)) : O && (O.d(1), O = null), A[0] & /*$_*/
175
- 1024 && m !== (m = /*$_*/
176
- L[10]("prizeAgenda") + "") && C(u, m), A[0] & /*$_*/
177
- 1024 && b !== (b = /*$_*/
178
- L[10]("tournamentTicket") + "") && C(y, b), A[0] & /*$_*/
179
- 1024 && Z !== (Z = /*$_*/
180
- L[10]("freeSpins") + "") && C(D, Z), A[0] & /*$_*/
181
- 1024 && G !== (G = /*$_*/
182
- L[10]("bonusMoney") + "") && C(U, G), A[0] & /*$_*/
183
- 1024 && I !== (I = /*$_*/
184
- L[10]("loyaltyPoints") + "") && C(W, I), A[0] & /*$_*/
185
- 1024 && q !== (q = /*$_*/
186
- L[10]("luckyWheel") + "") && C(N, q), A[0] & /*$_*/
187
- 1024 && S !== (S = /*$_*/
188
- L[10]("mysteryChest") + "") && C(ie, S), A[0] & /*$_*/
189
- 1024 && H !== (H = /*$_*/
190
- L[10]("customRewards") + "") && C($, H);
191
- },
192
- d(L) {
193
- L && T(e), O && O.d();
194
- }
195
- };
196
- }
197
- function Qe(s) {
198
- let e;
199
- function i(r, o) {
200
- return (
201
- /*mysteryChestsHistory*/
202
- r[9].length > 0 ? it : st
203
- );
204
- }
205
- let l = i(s), t = l(s);
206
- return {
207
- c() {
208
- t.c(), e = oe();
209
- },
210
- m(r, o) {
211
- t.m(r, o), M(r, e, o);
212
- },
213
- p(r, o) {
214
- l === (l = i(r)) && t ? t.p(r, o) : (t.d(1), t = l(r), t && (t.c(), t.m(e.parentNode, e)));
215
- },
216
- d(r) {
217
- r && T(e), t.d(r);
218
- }
219
- };
220
- }
221
- function $e(s) {
222
- let e;
223
- function i(r, o) {
224
- return (
225
- /*mysteryChests*/
226
- r[6].length > 0 ? ot : lt
227
- );
228
- }
229
- let l = i(s), t = l(s);
230
- return {
231
- c() {
232
- t.c(), e = oe();
233
- },
234
- m(r, o) {
235
- t.m(r, o), M(r, e, o);
236
- },
237
- p(r, o) {
238
- l === (l = i(r)) && t ? t.p(r, o) : (t.d(1), t = l(r), t && (t.c(), t.m(e.parentNode, e)));
239
- },
240
- d(r) {
241
- r && T(e), t.d(r);
242
- }
243
- };
244
- }
245
- function et(s) {
246
- let e, i = J([1, 2, 3]), l = [];
247
- for (let t = 0; t < 3; t += 1)
248
- l[t] = nt(Ve(s, i, t));
249
- return {
250
- c() {
251
- for (let t = 0; t < 3; t += 1)
252
- l[t].c();
253
- e = oe();
254
- },
255
- m(t, r) {
256
- for (let o = 0; o < 3; o += 1)
257
- l[o] && l[o].m(t, r);
258
- M(t, e, r);
259
- },
260
- p: Q,
261
- d(t) {
262
- t && T(e), se(l, t);
263
- }
264
- };
265
- }
266
- function tt(s) {
267
- let e, i = J([1, 2, 3, 4, 5, 6, 7]), l = [];
268
- for (let t = 0; t < 7; t += 1)
269
- l[t] = at(Ke(s, i, t));
270
- return {
271
- c() {
272
- for (let t = 0; t < 7; t += 1)
273
- l[t].c();
274
- e = oe();
275
- },
276
- m(t, r) {
277
- for (let o = 0; o < 7; o += 1)
278
- l[o] && l[o].m(t, r);
279
- M(t, e, r);
280
- },
281
- p: Q,
282
- d(t) {
283
- t && T(e), se(l, t);
284
- }
285
- };
286
- }
287
- function ve(s) {
288
- let e, i, l = (
289
- /*$_*/
290
- s[10]("terms") + ""
291
- ), t, r, o;
292
- return {
293
- c() {
294
- e = h("a"), i = h("span"), t = k(l), r = w(), o = h("span"), c(o, "class", "arrow-icon"), c(e, "class", "chests-rules__terms"), c(
295
- e,
296
- "href",
297
- /*terms*/
298
- s[0]
299
- ), c(e, "target", "_blank");
300
- },
301
- m(a, f) {
302
- M(a, e, f), n(e, i), n(i, t), n(e, r), n(e, o);
303
- },
304
- p(a, f) {
305
- f[0] & /*$_*/
306
- 1024 && l !== (l = /*$_*/
307
- a[10]("terms") + "") && C(t, l), f[0] & /*terms*/
308
- 1 && c(
309
- e,
310
- "href",
311
- /*terms*/
312
- a[0]
313
- );
314
- },
315
- d(a) {
316
- a && T(e);
317
- }
318
- };
319
- }
320
- function st(s) {
321
- let e, i = (
322
- /*$_*/
323
- s[10]("noHistoryYet") + ""
324
- ), l;
325
- return {
326
- c() {
327
- e = h("div"), l = k(i), c(e, "class", "chests-empty");
328
- },
329
- m(t, r) {
330
- M(t, e, r), n(e, l);
331
- },
332
- p(t, r) {
333
- r[0] & /*$_*/
334
- 1024 && i !== (i = /*$_*/
335
- t[10]("noHistoryYet") + "") && C(l, i);
336
- },
337
- d(t) {
338
- t && T(e);
339
- }
340
- };
341
- }
342
- function it(s) {
343
- let e, i = J(
344
- /*mysteryChestsHistory*/
345
- s[9]
346
- ), l = [];
347
- for (let t = 0; t < i.length; t += 1)
348
- l[t] = ke(ge(s, i, t));
349
- return {
350
- c() {
351
- for (let t = 0; t < l.length; t += 1)
352
- l[t].c();
353
- e = oe();
354
- },
355
- m(t, r) {
356
- for (let o = 0; o < l.length; o += 1)
357
- l[o] && l[o].m(t, r);
358
- M(t, e, r);
359
- },
360
- p(t, r) {
361
- if (r[0] & /*showMore, mysteryChestsHistory, $_*/
362
- 17920) {
363
- i = J(
364
- /*mysteryChestsHistory*/
365
- t[9]
366
- );
367
- let o;
368
- for (o = 0; o < i.length; o += 1) {
369
- const a = ge(t, i, o);
370
- l[o] ? l[o].p(a, r) : (l[o] = ke(a), l[o].c(), l[o].m(e.parentNode, e));
371
- }
372
- for (; o < l.length; o += 1)
373
- l[o].d(1);
374
- l.length = i.length;
375
- }
376
- },
377
- d(t) {
378
- t && T(e), se(l, t);
379
- }
380
- };
381
- }
382
- function xe(s) {
383
- let e, i, l, t, r = (
384
- /*outcome*/
385
- s[46]?.name + ""
386
- ), o, a, f, m, u, p, _ = (
387
- /*outcome*/
388
- s[46]?.date + ""
389
- ), g;
390
- return {
391
- c() {
392
- e = h("div"), i = h("span"), i.textContent = `${/*index*/
393
- s[48] + 1}`, l = w(), t = h("p"), o = k(r), a = w(), f = h("img"), u = w(), p = h("span"), g = k(_), c(i, "class", "index"), re(f.src, m = /*outcome*/
394
- s[46]?.state ? he : de) || c(f, "src", m), c(f, "alt", ""), c(t, "class", "name"), c(p, "class", "time"), c(e, "class", "chests-history__list__item");
395
- },
396
- m(b, y) {
397
- M(b, e, y), n(e, i), n(e, l), n(e, t), n(t, o), n(t, a), n(t, f), n(e, u), n(e, p), n(p, g);
398
- },
399
- p(b, y) {
400
- y[0] & /*mysteryChestsHistory*/
401
- 512 && r !== (r = /*outcome*/
402
- b[46]?.name + "") && C(o, r), y[0] & /*mysteryChestsHistory*/
403
- 512 && !re(f.src, m = /*outcome*/
404
- b[46]?.state ? he : de) && c(f, "src", m), y[0] & /*mysteryChestsHistory*/
405
- 512 && _ !== (_ = /*outcome*/
406
- b[46]?.date + "") && C(g, _);
407
- },
408
- d(b) {
409
- b && T(e);
410
- }
411
- };
412
- }
413
- function ye(s) {
414
- let e, i = (
415
- /*$_*/
416
- s[10]("more") + ""
417
- ), l, t, r, o, a, f;
418
- function m() {
419
- return (
420
- /*click_handler_1*/
421
- s[23](
422
- /*history*/
423
- s[43]
424
- )
425
- );
426
- }
427
- return {
428
- c() {
429
- e = h("button"), l = k(i), t = w(), r = h("img"), re(r.src, o = Ie) || c(r, "src", o), c(r, "alt", "More"), c(e, "class", "chests-history__more");
430
- },
431
- m(u, p) {
432
- M(u, e, p), n(e, l), n(e, t), n(e, r), a || (f = V(e, "click", m), a = !0);
433
- },
434
- p(u, p) {
435
- s = u, p[0] & /*$_*/
436
- 1024 && i !== (i = /*$_*/
437
- s[10]("more") + "") && C(l, i);
438
- },
439
- d(u) {
440
- u && T(e), a = !1, f();
441
- }
442
- };
443
- }
444
- function ke(s) {
445
- let e, i, l = (
446
- /*history*/
447
- s[43].name + ""
448
- ), t, r, o, a, f = J(
449
- /*history*/
450
- s[43].outcomes.slice(
451
- 0,
452
- /*history*/
453
- s[43].endPos
454
- )
455
- ), m = [];
456
- for (let p = 0; p < f.length; p += 1)
457
- m[p] = xe(_e(s, f, p));
458
- let u = (
459
- /*history*/
460
- s[43].outcomes?.length > 3 && /*history*/
461
- s[43].endPos === 3 && ye(s)
462
- );
463
- return {
464
- c() {
465
- e = h("div"), i = h("div"), t = k(l), r = w();
466
- for (let p = 0; p < m.length; p += 1)
467
- m[p].c();
468
- o = w(), u && u.c(), a = w(), c(i, "class", "chests-history__title"), c(e, "class", "chests-history__list");
469
- },
470
- m(p, _) {
471
- M(p, e, _), n(e, i), n(i, t), n(e, r);
472
- for (let g = 0; g < m.length; g += 1)
473
- m[g] && m[g].m(e, null);
474
- n(e, o), u && u.m(e, null), n(e, a);
475
- },
476
- p(p, _) {
477
- if (_[0] & /*mysteryChestsHistory*/
478
- 512 && l !== (l = /*history*/
479
- p[43].name + "") && C(t, l), _[0] & /*mysteryChestsHistory*/
480
- 512) {
481
- f = J(
482
- /*history*/
483
- p[43].outcomes.slice(
484
- 0,
485
- /*history*/
486
- p[43].endPos
487
- )
488
- );
489
- let g;
490
- for (g = 0; g < f.length; g += 1) {
491
- const b = _e(p, f, g);
492
- m[g] ? m[g].p(b, _) : (m[g] = xe(b), m[g].c(), m[g].m(e, o));
493
- }
494
- for (; g < m.length; g += 1)
495
- m[g].d(1);
496
- m.length = f.length;
497
- }
498
- /*history*/
499
- p[43].outcomes?.length > 3 && /*history*/
500
- p[43].endPos === 3 ? u ? u.p(p, _) : (u = ye(p), u.c(), u.m(e, a)) : u && (u.d(1), u = null);
501
- },
502
- d(p) {
503
- p && T(e), se(m, p), u && u.d();
504
- }
505
- };
506
- }
507
- function lt(s) {
508
- let e, i = (
509
- /*$_*/
510
- s[10]("noChestYet") + ""
511
- ), l;
512
- return {
513
- c() {
514
- e = h("div"), l = k(i), c(e, "class", "chests-empty");
515
- },
516
- m(t, r) {
517
- M(t, e, r), n(e, l);
518
- },
519
- p(t, r) {
520
- r[0] & /*$_*/
521
- 1024 && i !== (i = /*$_*/
522
- t[10]("noChestYet") + "") && C(l, i);
523
- },
524
- d(t) {
525
- t && T(e);
526
- }
527
- };
528
- }
529
- function ot(s) {
530
- let e, i = J(
531
- /*mysteryChests*/
532
- s[6]
533
- ), l = [];
534
- for (let t = 0; t < i.length; t += 1)
535
- l[t] = Ce(be(s, i, t));
536
- return {
537
- c() {
538
- e = h("div");
539
- for (let t = 0; t < l.length; t += 1)
540
- l[t].c();
541
- c(e, "class", "chests-list");
542
- },
543
- m(t, r) {
544
- M(t, e, r);
545
- for (let o = 0; o < l.length; o += 1)
546
- l[o] && l[o].m(e, null);
547
- },
548
- p(t, r) {
549
- if (r[0] & /*openChestDetails, mysteryChests, lang*/
550
- 65602) {
551
- i = J(
552
- /*mysteryChests*/
553
- t[6]
554
- );
555
- let o;
556
- for (o = 0; o < i.length; o += 1) {
557
- const a = be(t, i, o);
558
- l[o] ? l[o].p(a, r) : (l[o] = Ce(a), l[o].c(), l[o].m(e, null));
559
- }
560
- for (; o < l.length; o += 1)
561
- l[o].d(1);
562
- l.length = i.length;
563
- }
564
- },
565
- d(t) {
566
- t && T(e), se(l, t);
567
- }
568
- };
569
- }
570
- function Ce(s) {
571
- let e, i = (
572
- /*chest*/
573
- (s[40].program.name[
574
- /*lang*/
575
- s[1]
576
- ] || /*chest*/
577
- s[40].program.name[te.default]) + ""
578
- ), l, t, r, o, a, f, m, u = (
579
- /*chest*/
580
- s[40]?.current?.remainingTimes + ""
581
- ), p, _, g, b;
582
- function y() {
583
- return (
584
- /*click_handler*/
585
- s[22](
586
- /*chest*/
587
- s[40]
588
- )
589
- );
590
- }
591
- return {
592
- c() {
593
- e = h("button"), l = k(i), t = w(), r = h("div"), o = h("img"), f = w(), m = h("span"), p = k(u), _ = w(), re(o.src, a = Ee) || c(o, "src", a), c(o, "alt", "Key"), c(r, "class", "chests-list__item__keys"), c(e, "class", "chests-list__item");
594
- },
595
- m(F, P) {
596
- M(F, e, P), n(e, l), n(e, t), n(e, r), n(r, o), n(r, f), n(r, m), n(m, p), n(e, _), g || (b = V(e, "click", y), g = !0);
597
- },
598
- p(F, P) {
599
- s = F, P[0] & /*mysteryChests, lang*/
600
- 66 && i !== (i = /*chest*/
601
- (s[40].program.name[
602
- /*lang*/
603
- s[1]
604
- ] || /*chest*/
605
- s[40].program.name[te.default]) + "") && C(l, i), P[0] & /*mysteryChests*/
606
- 64 && u !== (u = /*chest*/
607
- s[40]?.current?.remainingTimes + "") && C(p, u);
608
- },
609
- d(F) {
610
- F && T(e), g = !1, b();
611
- }
612
- };
613
- }
614
- function rt(s) {
615
- let e;
616
- return {
617
- c() {
618
- e = h("div"), e.innerHTML = '<ui-skeleton class="chests-history-dot" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="chests-history-text" structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="text" width="50px" height="16px"></ui-skeleton>', c(e, "class", "chests-history-loader-body");
619
- },
620
- m(i, l) {
621
- M(i, e, l);
622
- },
623
- p: Q,
624
- d(i) {
625
- i && T(e);
626
- }
627
- };
628
- }
629
- function nt(s) {
630
- let e, i, l, t, r = J([1, 2, 3]), o = [];
631
- for (let a = 0; a < 3; a += 1)
632
- o[a] = rt(Je(s, r, a));
633
- return {
634
- c() {
635
- e = h("div"), i = h("ui-skeleton"), l = w();
636
- for (let a = 0; a < 3; a += 1)
637
- o[a].c();
638
- t = w(), ae(i, "structure", "text"), ae(i, "height", "16px"), c(e, "class", "chests-history-loader");
639
- },
640
- m(a, f) {
641
- M(a, e, f), n(e, i), n(e, l);
642
- for (let m = 0; m < 3; m += 1)
643
- o[m] && o[m].m(e, null);
644
- n(e, t);
645
- },
646
- p: Q,
647
- d(a) {
648
- a && T(e), se(o, a);
649
- }
650
- };
651
- }
652
- function at(s) {
653
- let e;
654
- return {
655
- c() {
656
- e = h("div"), e.innerHTML = '<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ', c(e, "class", "chests-loader");
657
- },
658
- m(i, l) {
659
- M(i, e, l);
660
- },
661
- p: Q,
662
- d(i) {
663
- i && T(e);
664
- }
665
- };
666
- }
667
- function ct(s) {
668
- let e, i, l, t, r, o, a, f, m, u, p, _, g, b, y, F = (
669
- /*$_*/
670
- s[10]("play") + ""
671
- ), P, Z, D, R = (
672
- /*$_*/
673
- s[10]("history") + ""
674
- ), j, G, U, Y = (
675
- /*$_*/
676
- s[10]("rules") + ""
677
- ), E, I, W, K, z = (
678
- /*tooltip*/
679
- s[7] && we(s)
680
- );
681
- function q(v, S) {
682
- return (
683
- /*chestsLoading*/
684
- v[5] ? tt : (
685
- /*historyLoading*/
686
- v[4] ? et : (
687
- /*activeTab*/
688
- v[3] === 1 ? $e : (
689
- /*activeTab*/
690
- v[3] === 2 ? Qe : Xe
691
- )
692
- )
693
- )
694
- );
695
- }
696
- let N = q(s), B = N(s);
697
- return {
698
- c() {
699
- e = h("div"), i = h("button"), l = w(), t = h("div"), z && z.c(), r = w(), o = h("div"), a = h("button"), f = w(), m = h("div"), m.textContent = "Mystery Chests", u = w(), p = h("button"), _ = w(), g = h("div"), b = h("div"), y = h("button"), P = k(F), Z = w(), D = h("button"), j = k(R), G = w(), U = h("button"), E = k(Y), I = w(), B.c(), c(i, "class", "overlay"), c(a, "class", "icon-button help"), c(m, "class", "chests-header__title"), c(p, "class", "icon-button close"), c(o, "class", "chests-header"), c(y, "data-index", "1"), c(y, "class", "chests-tabs__tab"), ee(
700
- y,
701
- "active",
702
- /*activeTab*/
703
- s[3] === 1
704
- ), c(D, "data-index", "2"), c(D, "class", "chests-tabs__tab"), ee(
705
- D,
706
- "active",
707
- /*activeTab*/
708
- s[3] === 2
709
- ), c(U, "data-index", "3"), c(U, "class", "chests-tabs__tab"), ee(
710
- U,
711
- "active",
712
- /*activeTab*/
713
- s[3] === 3
714
- ), c(b, "class", "chests-tabs__container"), c(g, "class", "chests-tabs"), c(t, "class", "drawer " + /*mobileView*/
715
- (s[11] ? "mobile" : "")), c(e, "part", "CustomStylingContainer");
716
- },
717
- m(v, S) {
718
- M(v, e, S), n(e, i), n(e, l), n(e, t), z && z.m(t, null), n(t, r), n(t, o), n(o, a), n(o, f), n(o, m), n(o, u), n(o, p), n(t, _), n(t, g), n(g, b), n(b, y), n(y, P), n(b, Z), n(b, D), n(D, j), n(b, G), n(b, U), n(U, E), n(t, I), B.m(t, null), s[24](e), W || (K = [
719
- V(
720
- i,
721
- "click",
722
- /*onClose*/
723
- s[12]
724
- ),
725
- V(
726
- a,
727
- "click",
728
- /*showHideToolip*/
729
- s[13]
730
- ),
731
- V(
732
- p,
733
- "click",
734
- /*onClose*/
735
- s[12]
736
- ),
737
- V(
738
- y,
739
- "click",
740
- /*handleTabChange*/
741
- s[15]
742
- ),
743
- V(
744
- D,
745
- "click",
746
- /*handleTabChange*/
747
- s[15]
748
- ),
749
- V(
750
- U,
751
- "click",
752
- /*handleTabChange*/
753
- s[15]
754
- )
755
- ], W = !0);
756
- },
757
- p(v, S) {
758
- /*tooltip*/
759
- v[7] ? z ? z.p(v, S) : (z = we(v), z.c(), z.m(t, r)) : z && (z.d(1), z = null), S[0] & /*$_*/
760
- 1024 && F !== (F = /*$_*/
761
- v[10]("play") + "") && C(P, F), S[0] & /*activeTab*/
762
- 8 && ee(
763
- y,
764
- "active",
765
- /*activeTab*/
766
- v[3] === 1
767
- ), S[0] & /*$_*/
768
- 1024 && R !== (R = /*$_*/
769
- v[10]("history") + "") && C(j, R), S[0] & /*activeTab*/
770
- 8 && ee(
771
- D,
772
- "active",
773
- /*activeTab*/
774
- v[3] === 2
775
- ), S[0] & /*$_*/
776
- 1024 && Y !== (Y = /*$_*/
777
- v[10]("rules") + "") && C(E, Y), S[0] & /*activeTab*/
778
- 8 && ee(
779
- U,
780
- "active",
781
- /*activeTab*/
782
- v[3] === 3
783
- ), N === (N = q(v)) && B ? B.p(v, S) : (B.d(1), B = N(v), B && (B.c(), B.m(t, null)));
784
- },
785
- i: Q,
786
- o: Q,
787
- d(v) {
788
- v && T(e), z && z.d(), B.d(), s[24](null), W = !1, Ae(K);
789
- }
790
- };
791
- }
792
- function dt(s, e, i) {
793
- let l;
794
- De(s, Ze, (d) => i(10, l = d));
795
- let { terms: t = "" } = e, { lang: r = te.en } = e, { endpoint: o = "" } = e, { session: a = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: m = "" } = e, { translationurl: u = "" } = e, p = window.navigator.userAgent, _ = Oe(p), g, b = 1, y = !1, F = !1, P = [], Z = !1, D = !1, R;
796
- const j = (d) => /(https?:\/\/[^\s]+)/g.test(d), G = () => {
797
- ce({ type: "CloseMysteryChestDrawer" });
798
- }, U = () => {
799
- i(7, Z = !Z);
800
- }, Y = async () => {
801
- i(4, y = !0);
802
- let d = P.map((x) => ({
803
- id: x.program.id,
804
- name: x.program.name[r] || x.program.name[te.default],
805
- partitions: x.program.wheelOfFortune.partitions,
806
- endPos: 0,
807
- outcomes: []
808
- }));
809
- if (d.length > 0) {
810
- const x = d.map(async (H, $) => {
811
- const L = (await pe.outcome(o, a, H?.id)).items || [];
812
- if (L.length === 0) {
813
- d[$] = null;
814
- return;
815
- }
816
- d[$] = {
817
- ...H,
818
- endPos: L.length > 3 ? 3 : L.length,
819
- outcomes: L.map((A) => {
820
- const ne = H.partitions[A.draw.result.wheelOfFortunePartitionIndex]?.name || {}, ze = A.draw.state === "fulfilled", Le = je(new Date(A.draw.time), "LLL d, yyyy HH:mm:ss");
821
- return {
822
- name: ne[r] || ne[te.default],
823
- state: ze,
824
- date: Le
825
- };
826
- })
827
- };
828
- });
829
- await Promise.all(x);
830
- }
831
- i(9, R = d.filter((x) => !!x)), i(4, y = !1);
832
- }, E = async () => {
833
- i(5, F = !0);
834
- const d = await pe.lotteries(o, a);
835
- i(6, P = d.filter((x) => Ye(x))), i(5, F = !1);
836
- }, I = (d) => {
837
- const x = R.findIndex((H) => H.id === d);
838
- i(9, R[x].endPos = R[x].outcomes?.length, R);
839
- }, W = async (d) => {
840
- i(3, b = +d.target.getAttribute("data-index")), b === 2 && await Y();
841
- }, K = () => {
842
- let d = document.createElement("style");
843
- d.innerHTML = f, g.appendChild(d);
844
- }, z = () => {
845
- let d = new URL(m), x = document.createElement("style");
846
- fetch(d.href).then((H) => H.text()).then((H) => {
847
- x.innerHTML = H, setTimeout(
848
- () => {
849
- g.appendChild(x);
850
- },
851
- 1
852
- );
853
- });
854
- }, q = () => {
855
- fetch(u).then((x) => x.json()).then((x) => {
856
- Object.keys(x).forEach((H) => {
857
- ue(H, x[H]);
858
- });
859
- });
860
- };
861
- Object.keys(fe).forEach((d) => {
862
- ue(d, fe[d]);
863
- });
864
- const N = () => {
865
- We(r);
866
- }, B = (d) => {
867
- ce({
868
- type: "OpenMysteryChestDetails",
869
- data: d
870
- });
871
- };
872
- Re(() => {
873
- i(8, D = j(t)), E();
874
- });
875
- const v = (d) => {
876
- B(d);
877
- }, S = (d) => I(d.id);
878
- function ie(d) {
879
- Ue[d ? "unshift" : "push"](() => {
880
- g = d, i(2, g);
881
- });
882
- }
883
- return s.$$set = (d) => {
884
- "terms" in d && i(0, t = d.terms), "lang" in d && i(1, r = d.lang), "endpoint" in d && i(17, o = d.endpoint), "session" in d && i(18, a = d.session), "clientstyling" in d && i(19, f = d.clientstyling), "clientstylingurl" in d && i(20, m = d.clientstylingurl), "translationurl" in d && i(21, u = d.translationurl);
885
- }, s.$$.update = () => {
886
- s.$$.dirty[0] & /*lang*/
887
- 2 && r && N(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
888
- 524292 && f && g && K(), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
889
- 1048580 && m && g && z(), s.$$.dirty[0] & /*translationurl*/
890
- 2097152 && u && q();
891
- }, [
892
- t,
893
- r,
894
- g,
895
- b,
896
- y,
897
- F,
898
- P,
899
- Z,
900
- D,
901
- R,
902
- l,
903
- _,
904
- G,
905
- U,
906
- I,
907
- W,
908
- B,
909
- o,
910
- a,
911
- f,
912
- m,
913
- u,
914
- v,
915
- S,
916
- ie
917
- ];
918
- }
919
- class ht extends Se {
920
- constructor(e) {
921
- super(), Fe(
922
- this,
923
- e,
924
- dt,
925
- ct,
926
- He,
927
- {
928
- terms: 0,
929
- lang: 1,
930
- endpoint: 17,
931
- session: 18,
932
- clientstyling: 19,
933
- clientstylingurl: 20,
934
- translationurl: 21
935
- },
936
- qe,
937
- [-1, -1]
938
- );
939
- }
940
- get terms() {
941
- return this.$$.ctx[0];
942
- }
943
- set terms(e) {
944
- this.$$set({ terms: e }), X();
945
- }
946
- get lang() {
947
- return this.$$.ctx[1];
948
- }
949
- set lang(e) {
950
- this.$$set({ lang: e }), X();
951
- }
952
- get endpoint() {
953
- return this.$$.ctx[17];
954
- }
955
- set endpoint(e) {
956
- this.$$set({ endpoint: e }), X();
957
- }
958
- get session() {
959
- return this.$$.ctx[18];
960
- }
961
- set session(e) {
962
- this.$$set({ session: e }), X();
963
- }
964
- get clientstyling() {
965
- return this.$$.ctx[19];
966
- }
967
- set clientstyling(e) {
968
- this.$$set({ clientstyling: e }), X();
969
- }
970
- get clientstylingurl() {
971
- return this.$$.ctx[20];
972
- }
973
- set clientstylingurl(e) {
974
- this.$$set({ clientstylingurl: e }), X();
975
- }
976
- get translationurl() {
977
- return this.$$.ctx[21];
978
- }
979
- set translationurl(e) {
980
- this.$$set({ translationurl: e }), X();
981
- }
982
- }
983
- Pe(ht, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
984
- export {
985
- ht as default
986
- };