@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,1029 +0,0 @@
1
- var Be = Object.defineProperty, Ae = Object.defineProperties;
2
- var De = Object.getOwnPropertyDescriptors;
3
- var me = Object.getOwnPropertySymbols;
4
- var Oe = Object.prototype.hasOwnProperty, Re = Object.prototype.propertyIsEnumerable;
5
- var pe = (i, e, s) => e in i ? Be(i, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[e] = s, ae = (i, e) => {
6
- for (var s in e || (e = {}))
7
- Oe.call(e, s) && pe(i, s, e[s]);
8
- if (me)
9
- for (var s of me(e))
10
- Re.call(e, s) && pe(i, s, e[s]);
11
- return i;
12
- }, he = (i, e) => Ae(i, De(e));
13
- var G = (i, e, s) => new Promise((l, t) => {
14
- var r = (m) => {
15
- try {
16
- a(s.next(m));
17
- } catch (d) {
18
- t(d);
19
- }
20
- }, o = (m) => {
21
- try {
22
- a(s.throw(m));
23
- } catch (d) {
24
- t(d);
25
- }
26
- }, a = (m) => m.done ? l(m.value) : Promise.resolve(m.value).then(r, o);
27
- a((s = s.apply(i, e)).next());
28
- });
29
- import { a as Ue, $ as Ze, S as je, i as Ee, f as $, c as Ie, s as Ne, b as Ge, e as u, d as w, t as z, g as c, z as te, h as B, j as n, l as J, k as L, n as ee, m as A, r as Ye, p as We, q as qe, o as Ve, v as Je, A as re, B as K, C as se, D as ue, y as Ke, w as ne } from "./CasinoCoinroyaleContainer-DvCA68hm.js";
30
- import "../stencil/ui-skeleton-CWuMYFGQ.js";
31
- import { f as Xe } from "./CasinoCoinroyaleList-BLpZSfaq.js";
32
- const fe = (i) => window.postMessage(i, window.location.href), Qe = "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", ge = "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", _e = "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", $e = "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";
33
- var oe = /* @__PURE__ */ ((i) => (i.lotteries = "lotteries", i.outcome = "outcome", i.draw = "draw", i))(oe || {}), ie = /* @__PURE__ */ ((i) => (i.en = "en", i.default = "*", i))(ie || {});
34
- const et = (i) => G(void 0, null, function* () {
35
- const { path: e, params: s = {}, options: l = {} } = i, t = new URL(e);
36
- return Object.keys(s).map((r) => {
37
- t.searchParams.append(r, s[r]);
38
- }), yield tt(t, l);
39
- }), tt = (s, ...l) => G(void 0, [s, ...l], function* (i, e = {}) {
40
- let t;
41
- try {
42
- t = yield fetch(i, e), t = yield t.text(), t = JSON.parse(t);
43
- } catch (r) {
44
- throw new Error(r.message);
45
- }
46
- return t;
47
- }), be = (i, e, s) => G(void 0, null, function* () {
48
- const { session: l } = s, t = {
49
- headers: ae({
50
- "Content-Type": "application/json",
51
- accept: "text/plain"
52
- }, l ? { "x-SessionId": l } : {})
53
- }, o = {
54
- [oe.lotteries]: () => ({
55
- path: "/wof/lotteries",
56
- params: {
57
- filter: "Types[]=mysteryChest"
58
- },
59
- options: t
60
- }),
61
- [oe.outcome]: () => {
62
- const { id: a } = s;
63
- return {
64
- path: `/wof/outcome/${a}`,
65
- params: {
66
- filter: "Types[]=mysteryChest"
67
- },
68
- options: t
69
- };
70
- }
71
- }[i]();
72
- return o.path = e + "/v1" + o.path, yield et(o);
73
- }), we = {
74
- lotteries: (i, e) => G(void 0, null, function* () {
75
- const s = yield be(oe.lotteries, i, { session: e });
76
- return (s == null ? void 0 : s.items) || [];
77
- }),
78
- outcome: (i, e, s) => G(void 0, null, function* () {
79
- return yield be(oe.outcome, i, { session: e, id: s });
80
- })
81
- }, it = (i) => {
82
- var e;
83
- return ((e = i == null ? void 0 : i.current) == null ? void 0 : e.remainingTimes) > 0 && (i == null ? void 0 : i.next);
84
- };
85
- function ve(i, e) {
86
- Ue(i, e);
87
- }
88
- function st(i) {
89
- Ze.set(i);
90
- }
91
- const xe = {
92
- en: {
93
- infoTooltip: "Open Mystery Chest and find your reward!",
94
- play: "Play",
95
- history: "History",
96
- rules: "Rules",
97
- noChestYet: "There are no available Chests",
98
- noHistoryYet: "There is no history yet",
99
- more: "More",
100
- 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.",
101
- terms: "Terms&Conditions link",
102
- prizeAgenda: "Prize agenda",
103
- tournamentTicket: "Tournament ticket",
104
- freeSpins: "Free spins",
105
- bonusMoney: "Bonus Money",
106
- loyaltyPoints: "Loyalty Points&Coins",
107
- luckyWheel: "LuckyWheel",
108
- mysteryChest: "Mystery Chest",
109
- customRewards: "Custom Rewards"
110
- }
111
- };
112
- function lt(i) {
113
- Ge(i, "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}`);
114
- }
115
- function ye(i, e, s) {
116
- const l = i.slice();
117
- return l[43] = e[s], l;
118
- }
119
- function ke(i, e, s) {
120
- const l = i.slice();
121
- return l[46] = e[s], l[48] = s, l;
122
- }
123
- function Ce(i, e, s) {
124
- const l = i.slice();
125
- return l[40] = e[s], l[42] = s, l;
126
- }
127
- function ot(i, e, s) {
128
- const l = i.slice();
129
- return l[33] = e[s], l;
130
- }
131
- function rt(i, e, s) {
132
- const l = i.slice();
133
- return l[33] = e[s], l;
134
- }
135
- function nt(i, e, s) {
136
- const l = i.slice();
137
- return l[33] = e[s], l;
138
- }
139
- function ze(i) {
140
- let e, s, l, t, r, o = (
141
- /*$_*/
142
- i[10]("infoTooltip") + ""
143
- ), a, m, d;
144
- return {
145
- c() {
146
- e = u("div"), s = u("div"), l = u("button"), t = w(), r = u("span"), a = z(o), c(l, "class", "icon-button close"), c(s, "class", "tooltip"), c(e, "class", "tooltip-backdrop");
147
- },
148
- m(f, v) {
149
- B(f, e, v), n(e, s), n(s, l), n(s, t), n(s, r), n(r, a), m || (d = J(
150
- l,
151
- "click",
152
- /*showHideToolip*/
153
- i[13]
154
- ), m = !0);
155
- },
156
- p(f, v) {
157
- v[0] & /*$_*/
158
- 1024 && o !== (o = /*$_*/
159
- f[10]("infoTooltip") + "") && L(a, o);
160
- },
161
- d(f) {
162
- f && A(e), m = !1, d();
163
- }
164
- };
165
- }
166
- function at(i) {
167
- let e, s, l = (
168
- /*$_*/
169
- i[10]("rulesDescription") + ""
170
- ), t, r, o, a, m, d = (
171
- /*$_*/
172
- i[10]("prizeAgenda") + ""
173
- ), f, v, p, _, b = (
174
- /*$_*/
175
- i[10]("tournamentTicket") + ""
176
- ), g, x, M, F = (
177
- /*$_*/
178
- i[10]("freeSpins") + ""
179
- ), C, P, j, Y = (
180
- /*$_*/
181
- i[10]("bonusMoney") + ""
182
- ), Z, W, E, I = (
183
- /*$_*/
184
- i[10]("loyaltyPoints") + ""
185
- ), q, Q, T, V = (
186
- /*$_*/
187
- i[10]("luckyWheel") + ""
188
- ), N, O, y, D = (
189
- /*$_*/
190
- i[10]("mysteryChest") + ""
191
- ), le, h, k, H = (
192
- /*$_*/
193
- i[10]("customRewards") + ""
194
- ), X, U = (
195
- /*hasUrl*/
196
- i[8] && Le(i)
197
- );
198
- return {
199
- c() {
200
- e = u("div"), s = u("span"), t = z(l), r = w(), U && U.c(), o = w(), a = u("section"), m = u("span"), f = z(d), v = w(), p = u("ul"), _ = u("li"), g = z(b), x = w(), M = u("li"), C = z(F), P = w(), j = u("li"), Z = z(Y), W = w(), E = u("li"), q = z(I), Q = w(), T = u("li"), N = z(V), O = w(), y = u("li"), le = z(D), h = w(), k = u("li"), X = z(H), c(s, "class", "chests-rules__description"), c(m, "class", "chests-rules__prize-title"), c(_, "class", "chests-rules__list__item"), c(M, "class", "chests-rules__list__item"), c(j, "class", "chests-rules__list__item"), c(E, "class", "chests-rules__list__item"), c(T, "class", "chests-rules__list__item"), c(y, "class", "chests-rules__list__item"), c(k, "class", "chests-rules__list__item"), c(p, "class", "chests-rules__list"), c(e, "class", "chests-rules");
201
- },
202
- m(S, R) {
203
- B(S, e, R), n(e, s), n(s, t), n(e, r), U && U.m(e, null), n(e, o), n(e, a), n(a, m), n(m, f), n(a, v), n(a, p), n(p, _), n(_, g), n(p, x), n(p, M), n(M, C), n(p, P), n(p, j), n(j, Z), n(p, W), n(p, E), n(E, q), n(p, Q), n(p, T), n(T, N), n(p, O), n(p, y), n(y, le), n(p, h), n(p, k), n(k, X);
204
- },
205
- p(S, R) {
206
- R[0] & /*$_*/
207
- 1024 && l !== (l = /*$_*/
208
- S[10]("rulesDescription") + "") && L(t, l), /*hasUrl*/
209
- S[8] ? U ? U.p(S, R) : (U = Le(S), U.c(), U.m(e, o)) : U && (U.d(1), U = null), R[0] & /*$_*/
210
- 1024 && d !== (d = /*$_*/
211
- S[10]("prizeAgenda") + "") && L(f, d), R[0] & /*$_*/
212
- 1024 && b !== (b = /*$_*/
213
- S[10]("tournamentTicket") + "") && L(g, b), R[0] & /*$_*/
214
- 1024 && F !== (F = /*$_*/
215
- S[10]("freeSpins") + "") && L(C, F), R[0] & /*$_*/
216
- 1024 && Y !== (Y = /*$_*/
217
- S[10]("bonusMoney") + "") && L(Z, Y), R[0] & /*$_*/
218
- 1024 && I !== (I = /*$_*/
219
- S[10]("loyaltyPoints") + "") && L(q, I), R[0] & /*$_*/
220
- 1024 && V !== (V = /*$_*/
221
- S[10]("luckyWheel") + "") && L(N, V), R[0] & /*$_*/
222
- 1024 && D !== (D = /*$_*/
223
- S[10]("mysteryChest") + "") && L(le, D), R[0] & /*$_*/
224
- 1024 && H !== (H = /*$_*/
225
- S[10]("customRewards") + "") && L(X, H);
226
- },
227
- d(S) {
228
- S && A(e), U && U.d();
229
- }
230
- };
231
- }
232
- function ct(i) {
233
- let e;
234
- function s(r, o) {
235
- return (
236
- /*mysteryChestsHistory*/
237
- r[9].length > 0 ? ut : ht
238
- );
239
- }
240
- let l = s(i), t = l(i);
241
- return {
242
- c() {
243
- t.c(), e = re();
244
- },
245
- m(r, o) {
246
- t.m(r, o), B(r, e, o);
247
- },
248
- p(r, o) {
249
- l === (l = s(r)) && t ? t.p(r, o) : (t.d(1), t = l(r), t && (t.c(), t.m(e.parentNode, e)));
250
- },
251
- d(r) {
252
- r && A(e), t.d(r);
253
- }
254
- };
255
- }
256
- function dt(i) {
257
- let e;
258
- function s(r, o) {
259
- return (
260
- /*mysteryChests*/
261
- r[6].length > 0 ? gt : ft
262
- );
263
- }
264
- let l = s(i), t = l(i);
265
- return {
266
- c() {
267
- t.c(), e = re();
268
- },
269
- m(r, o) {
270
- t.m(r, o), B(r, e, o);
271
- },
272
- p(r, o) {
273
- l === (l = s(r)) && t ? t.p(r, o) : (t.d(1), t = l(r), t && (t.c(), t.m(e.parentNode, e)));
274
- },
275
- d(r) {
276
- r && A(e), t.d(r);
277
- }
278
- };
279
- }
280
- function mt(i) {
281
- let e, s = K([1, 2, 3]), l = [];
282
- for (let t = 0; t < 3; t += 1)
283
- l[t] = bt(ot(i, s, t));
284
- return {
285
- c() {
286
- for (let t = 0; t < 3; t += 1)
287
- l[t].c();
288
- e = re();
289
- },
290
- m(t, r) {
291
- for (let o = 0; o < 3; o += 1)
292
- l[o] && l[o].m(t, r);
293
- B(t, e, r);
294
- },
295
- p: ee,
296
- d(t) {
297
- t && A(e), se(l, t);
298
- }
299
- };
300
- }
301
- function pt(i) {
302
- let e, s = K([1, 2, 3, 4, 5, 6, 7]), l = [];
303
- for (let t = 0; t < 7; t += 1)
304
- l[t] = wt(nt(i, s, t));
305
- return {
306
- c() {
307
- for (let t = 0; t < 7; t += 1)
308
- l[t].c();
309
- e = re();
310
- },
311
- m(t, r) {
312
- for (let o = 0; o < 7; o += 1)
313
- l[o] && l[o].m(t, r);
314
- B(t, e, r);
315
- },
316
- p: ee,
317
- d(t) {
318
- t && A(e), se(l, t);
319
- }
320
- };
321
- }
322
- function Le(i) {
323
- let e, s, l = (
324
- /*$_*/
325
- i[10]("terms") + ""
326
- ), t, r, o;
327
- return {
328
- c() {
329
- e = u("a"), s = u("span"), t = z(l), r = w(), o = u("span"), c(o, "class", "arrow-icon"), c(e, "class", "chests-rules__terms"), c(
330
- e,
331
- "href",
332
- /*terms*/
333
- i[0]
334
- ), c(e, "target", "_blank");
335
- },
336
- m(a, m) {
337
- B(a, e, m), n(e, s), n(s, t), n(e, r), n(e, o);
338
- },
339
- p(a, m) {
340
- m[0] & /*$_*/
341
- 1024 && l !== (l = /*$_*/
342
- a[10]("terms") + "") && L(t, l), m[0] & /*terms*/
343
- 1 && c(
344
- e,
345
- "href",
346
- /*terms*/
347
- a[0]
348
- );
349
- },
350
- d(a) {
351
- a && A(e);
352
- }
353
- };
354
- }
355
- function ht(i) {
356
- let e, s = (
357
- /*$_*/
358
- i[10]("noHistoryYet") + ""
359
- ), l;
360
- return {
361
- c() {
362
- e = u("div"), l = z(s), c(e, "class", "chests-empty");
363
- },
364
- m(t, r) {
365
- B(t, e, r), n(e, l);
366
- },
367
- p(t, r) {
368
- r[0] & /*$_*/
369
- 1024 && s !== (s = /*$_*/
370
- t[10]("noHistoryYet") + "") && L(l, s);
371
- },
372
- d(t) {
373
- t && A(e);
374
- }
375
- };
376
- }
377
- function ut(i) {
378
- let e, s = K(
379
- /*mysteryChestsHistory*/
380
- i[9]
381
- ), l = [];
382
- for (let t = 0; t < s.length; t += 1)
383
- l[t] = Se(ye(i, s, t));
384
- return {
385
- c() {
386
- for (let t = 0; t < l.length; t += 1)
387
- l[t].c();
388
- e = re();
389
- },
390
- m(t, r) {
391
- for (let o = 0; o < l.length; o += 1)
392
- l[o] && l[o].m(t, r);
393
- B(t, e, r);
394
- },
395
- p(t, r) {
396
- if (r[0] & /*showMore, mysteryChestsHistory, $_*/
397
- 17920) {
398
- s = K(
399
- /*mysteryChestsHistory*/
400
- t[9]
401
- );
402
- let o;
403
- for (o = 0; o < s.length; o += 1) {
404
- const a = ye(t, s, o);
405
- l[o] ? l[o].p(a, r) : (l[o] = Se(a), l[o].c(), l[o].m(e.parentNode, e));
406
- }
407
- for (; o < l.length; o += 1)
408
- l[o].d(1);
409
- l.length = s.length;
410
- }
411
- },
412
- d(t) {
413
- t && A(e), se(l, t);
414
- }
415
- };
416
- }
417
- function Me(i) {
418
- var b, g;
419
- let e, s, l, t, r = (
420
- /*outcome*/
421
- ((b = i[46]) == null ? void 0 : b.name) + ""
422
- ), o, a, m, d, f, v, p = (
423
- /*outcome*/
424
- ((g = i[46]) == null ? void 0 : g.date) + ""
425
- ), _;
426
- return {
427
- c() {
428
- var x;
429
- e = u("div"), s = u("span"), s.textContent = `${/*index*/
430
- i[48] + 1}`, l = w(), t = u("p"), o = z(r), a = w(), m = u("img"), f = w(), v = u("span"), _ = z(p), c(s, "class", "index"), ne(m.src, d = /*outcome*/
431
- (x = i[46]) != null && x.state ? _e : ge) || c(m, "src", d), c(m, "alt", ""), c(t, "class", "name"), c(v, "class", "time"), c(e, "class", "chests-history__list__item");
432
- },
433
- m(x, M) {
434
- B(x, e, M), n(e, s), n(e, l), n(e, t), n(t, o), n(t, a), n(t, m), n(e, f), n(e, v), n(v, _);
435
- },
436
- p(x, M) {
437
- var F, C, P;
438
- M[0] & /*mysteryChestsHistory*/
439
- 512 && r !== (r = /*outcome*/
440
- ((F = x[46]) == null ? void 0 : F.name) + "") && L(o, r), M[0] & /*mysteryChestsHistory*/
441
- 512 && !ne(m.src, d = /*outcome*/
442
- (C = x[46]) != null && C.state ? _e : ge) && c(m, "src", d), M[0] & /*mysteryChestsHistory*/
443
- 512 && p !== (p = /*outcome*/
444
- ((P = x[46]) == null ? void 0 : P.date) + "") && L(_, p);
445
- },
446
- d(x) {
447
- x && A(e);
448
- }
449
- };
450
- }
451
- function Te(i) {
452
- let e, s = (
453
- /*$_*/
454
- i[10]("more") + ""
455
- ), l, t, r, o, a, m;
456
- function d() {
457
- return (
458
- /*click_handler_1*/
459
- i[23](
460
- /*history*/
461
- i[43]
462
- )
463
- );
464
- }
465
- return {
466
- c() {
467
- e = u("button"), l = z(s), t = w(), r = u("img"), ne(r.src, o = $e) || c(r, "src", o), c(r, "alt", "More"), c(e, "class", "chests-history__more");
468
- },
469
- m(f, v) {
470
- B(f, e, v), n(e, l), n(e, t), n(e, r), a || (m = J(e, "click", d), a = !0);
471
- },
472
- p(f, v) {
473
- i = f, v[0] & /*$_*/
474
- 1024 && s !== (s = /*$_*/
475
- i[10]("more") + "") && L(l, s);
476
- },
477
- d(f) {
478
- f && A(e), a = !1, m();
479
- }
480
- };
481
- }
482
- function Se(i) {
483
- var v;
484
- let e, s, l = (
485
- /*history*/
486
- i[43].name + ""
487
- ), t, r, o, a, m = K(
488
- /*history*/
489
- i[43].outcomes.slice(
490
- 0,
491
- /*history*/
492
- i[43].endPos
493
- )
494
- ), d = [];
495
- for (let p = 0; p < m.length; p += 1)
496
- d[p] = Me(ke(i, m, p));
497
- let f = (
498
- /*history*/
499
- ((v = i[43].outcomes) == null ? void 0 : v.length) > 3 && /*history*/
500
- i[43].endPos === 3 && Te(i)
501
- );
502
- return {
503
- c() {
504
- e = u("div"), s = u("div"), t = z(l), r = w();
505
- for (let p = 0; p < d.length; p += 1)
506
- d[p].c();
507
- o = w(), f && f.c(), a = w(), c(s, "class", "chests-history__title"), c(e, "class", "chests-history__list");
508
- },
509
- m(p, _) {
510
- B(p, e, _), n(e, s), n(s, t), n(e, r);
511
- for (let b = 0; b < d.length; b += 1)
512
- d[b] && d[b].m(e, null);
513
- n(e, o), f && f.m(e, null), n(e, a);
514
- },
515
- p(p, _) {
516
- var b;
517
- if (_[0] & /*mysteryChestsHistory*/
518
- 512 && l !== (l = /*history*/
519
- p[43].name + "") && L(t, l), _[0] & /*mysteryChestsHistory*/
520
- 512) {
521
- m = K(
522
- /*history*/
523
- p[43].outcomes.slice(
524
- 0,
525
- /*history*/
526
- p[43].endPos
527
- )
528
- );
529
- let g;
530
- for (g = 0; g < m.length; g += 1) {
531
- const x = ke(p, m, g);
532
- d[g] ? d[g].p(x, _) : (d[g] = Me(x), d[g].c(), d[g].m(e, o));
533
- }
534
- for (; g < d.length; g += 1)
535
- d[g].d(1);
536
- d.length = m.length;
537
- }
538
- /*history*/
539
- ((b = p[43].outcomes) == null ? void 0 : b.length) > 3 && /*history*/
540
- p[43].endPos === 3 ? f ? f.p(p, _) : (f = Te(p), f.c(), f.m(e, a)) : f && (f.d(1), f = null);
541
- },
542
- d(p) {
543
- p && A(e), se(d, p), f && f.d();
544
- }
545
- };
546
- }
547
- function ft(i) {
548
- let e, s = (
549
- /*$_*/
550
- i[10]("noChestYet") + ""
551
- ), l;
552
- return {
553
- c() {
554
- e = u("div"), l = z(s), c(e, "class", "chests-empty");
555
- },
556
- m(t, r) {
557
- B(t, e, r), n(e, l);
558
- },
559
- p(t, r) {
560
- r[0] & /*$_*/
561
- 1024 && s !== (s = /*$_*/
562
- t[10]("noChestYet") + "") && L(l, s);
563
- },
564
- d(t) {
565
- t && A(e);
566
- }
567
- };
568
- }
569
- function gt(i) {
570
- let e, s = K(
571
- /*mysteryChests*/
572
- i[6]
573
- ), l = [];
574
- for (let t = 0; t < s.length; t += 1)
575
- l[t] = Fe(Ce(i, s, t));
576
- return {
577
- c() {
578
- e = u("div");
579
- for (let t = 0; t < l.length; t += 1)
580
- l[t].c();
581
- c(e, "class", "chests-list");
582
- },
583
- m(t, r) {
584
- B(t, e, r);
585
- for (let o = 0; o < l.length; o += 1)
586
- l[o] && l[o].m(e, null);
587
- },
588
- p(t, r) {
589
- if (r[0] & /*openChestDetails, mysteryChests, lang*/
590
- 65602) {
591
- s = K(
592
- /*mysteryChests*/
593
- t[6]
594
- );
595
- let o;
596
- for (o = 0; o < s.length; o += 1) {
597
- const a = Ce(t, s, o);
598
- l[o] ? l[o].p(a, r) : (l[o] = Fe(a), l[o].c(), l[o].m(e, null));
599
- }
600
- for (; o < l.length; o += 1)
601
- l[o].d(1);
602
- l.length = s.length;
603
- }
604
- },
605
- d(t) {
606
- t && A(e), se(l, t);
607
- }
608
- };
609
- }
610
- function Fe(i) {
611
- var x, M;
612
- let e, s = (
613
- /*chest*/
614
- (i[40].program.name[
615
- /*lang*/
616
- i[1]
617
- ] || /*chest*/
618
- i[40].program.name[ie.default]) + ""
619
- ), l, t, r, o, a, m, d, f = (
620
- /*chest*/
621
- ((M = (x = i[40]) == null ? void 0 : x.current) == null ? void 0 : M.remainingTimes) + ""
622
- ), v, p, _, b;
623
- function g() {
624
- return (
625
- /*click_handler*/
626
- i[22](
627
- /*chest*/
628
- i[40]
629
- )
630
- );
631
- }
632
- return {
633
- c() {
634
- e = u("button"), l = z(s), t = w(), r = u("div"), o = u("img"), m = w(), d = u("span"), v = z(f), p = w(), ne(o.src, a = Qe) || c(o, "src", a), c(o, "alt", "Key"), c(r, "class", "chests-list__item__keys"), c(e, "class", "chests-list__item");
635
- },
636
- m(F, C) {
637
- B(F, e, C), n(e, l), n(e, t), n(e, r), n(r, o), n(r, m), n(r, d), n(d, v), n(e, p), _ || (b = J(e, "click", g), _ = !0);
638
- },
639
- p(F, C) {
640
- var P, j;
641
- i = F, C[0] & /*mysteryChests, lang*/
642
- 66 && s !== (s = /*chest*/
643
- (i[40].program.name[
644
- /*lang*/
645
- i[1]
646
- ] || /*chest*/
647
- i[40].program.name[ie.default]) + "") && L(l, s), C[0] & /*mysteryChests*/
648
- 64 && f !== (f = /*chest*/
649
- ((j = (P = i[40]) == null ? void 0 : P.current) == null ? void 0 : j.remainingTimes) + "") && L(v, f);
650
- },
651
- d(F) {
652
- F && A(e), _ = !1, b();
653
- }
654
- };
655
- }
656
- function _t(i) {
657
- let e;
658
- return {
659
- c() {
660
- e = u("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");
661
- },
662
- m(s, l) {
663
- B(s, e, l);
664
- },
665
- p: ee,
666
- d(s) {
667
- s && A(e);
668
- }
669
- };
670
- }
671
- function bt(i) {
672
- let e, s, l, t, r = K([1, 2, 3]), o = [];
673
- for (let a = 0; a < 3; a += 1)
674
- o[a] = _t(rt(i, r, a));
675
- return {
676
- c() {
677
- e = u("div"), s = u("ui-skeleton"), l = w();
678
- for (let a = 0; a < 3; a += 1)
679
- o[a].c();
680
- t = w(), ue(s, "structure", "text"), ue(s, "height", "16px"), c(e, "class", "chests-history-loader");
681
- },
682
- m(a, m) {
683
- B(a, e, m), n(e, s), n(e, l);
684
- for (let d = 0; d < 3; d += 1)
685
- o[d] && o[d].m(e, null);
686
- n(e, t);
687
- },
688
- p: ee,
689
- d(a) {
690
- a && A(e), se(o, a);
691
- }
692
- };
693
- }
694
- function wt(i) {
695
- let e;
696
- return {
697
- c() {
698
- e = u("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");
699
- },
700
- m(s, l) {
701
- B(s, e, l);
702
- },
703
- p: ee,
704
- d(s) {
705
- s && A(e);
706
- }
707
- };
708
- }
709
- function vt(i) {
710
- let e, s, l, t, r, o, a, m, d, f, v, p, _, b, g, x = (
711
- /*$_*/
712
- i[10]("play") + ""
713
- ), M, F, C, P = (
714
- /*$_*/
715
- i[10]("history") + ""
716
- ), j, Y, Z, W = (
717
- /*$_*/
718
- i[10]("rules") + ""
719
- ), E, I, q, Q, T = (
720
- /*tooltip*/
721
- i[7] && ze(i)
722
- );
723
- function V(y, D) {
724
- return (
725
- /*chestsLoading*/
726
- y[5] ? pt : (
727
- /*historyLoading*/
728
- y[4] ? mt : (
729
- /*activeTab*/
730
- y[3] === 1 ? dt : (
731
- /*activeTab*/
732
- y[3] === 2 ? ct : at
733
- )
734
- )
735
- )
736
- );
737
- }
738
- let N = V(i), O = N(i);
739
- return {
740
- c() {
741
- e = u("div"), s = u("button"), l = w(), t = u("div"), T && T.c(), r = w(), o = u("div"), a = u("button"), m = w(), d = u("div"), d.textContent = "Mystery Chests", f = w(), v = u("button"), p = w(), _ = u("div"), b = u("div"), g = u("button"), M = z(x), F = w(), C = u("button"), j = z(P), Y = w(), Z = u("button"), E = z(W), I = w(), O.c(), c(s, "class", "overlay"), c(a, "class", "icon-button help"), c(d, "class", "chests-header__title"), c(v, "class", "icon-button close"), c(o, "class", "chests-header"), c(g, "data-index", "1"), c(g, "class", "chests-tabs__tab"), te(
742
- g,
743
- "active",
744
- /*activeTab*/
745
- i[3] === 1
746
- ), c(C, "data-index", "2"), c(C, "class", "chests-tabs__tab"), te(
747
- C,
748
- "active",
749
- /*activeTab*/
750
- i[3] === 2
751
- ), c(Z, "data-index", "3"), c(Z, "class", "chests-tabs__tab"), te(
752
- Z,
753
- "active",
754
- /*activeTab*/
755
- i[3] === 3
756
- ), c(b, "class", "chests-tabs__container"), c(_, "class", "chests-tabs"), c(t, "class", "drawer " + /*mobileView*/
757
- (i[11] ? "mobile" : "")), c(e, "part", "CustomStylingContainer");
758
- },
759
- m(y, D) {
760
- B(y, e, D), n(e, s), n(e, l), n(e, t), T && T.m(t, null), n(t, r), n(t, o), n(o, a), n(o, m), n(o, d), n(o, f), n(o, v), n(t, p), n(t, _), n(_, b), n(b, g), n(g, M), n(b, F), n(b, C), n(C, j), n(b, Y), n(b, Z), n(Z, E), n(t, I), O.m(t, null), i[24](e), q || (Q = [
761
- J(
762
- s,
763
- "click",
764
- /*onClose*/
765
- i[12]
766
- ),
767
- J(
768
- a,
769
- "click",
770
- /*showHideToolip*/
771
- i[13]
772
- ),
773
- J(
774
- v,
775
- "click",
776
- /*onClose*/
777
- i[12]
778
- ),
779
- J(
780
- g,
781
- "click",
782
- /*handleTabChange*/
783
- i[15]
784
- ),
785
- J(
786
- C,
787
- "click",
788
- /*handleTabChange*/
789
- i[15]
790
- ),
791
- J(
792
- Z,
793
- "click",
794
- /*handleTabChange*/
795
- i[15]
796
- )
797
- ], q = !0);
798
- },
799
- p(y, D) {
800
- /*tooltip*/
801
- y[7] ? T ? T.p(y, D) : (T = ze(y), T.c(), T.m(t, r)) : T && (T.d(1), T = null), D[0] & /*$_*/
802
- 1024 && x !== (x = /*$_*/
803
- y[10]("play") + "") && L(M, x), D[0] & /*activeTab*/
804
- 8 && te(
805
- g,
806
- "active",
807
- /*activeTab*/
808
- y[3] === 1
809
- ), D[0] & /*$_*/
810
- 1024 && P !== (P = /*$_*/
811
- y[10]("history") + "") && L(j, P), D[0] & /*activeTab*/
812
- 8 && te(
813
- C,
814
- "active",
815
- /*activeTab*/
816
- y[3] === 2
817
- ), D[0] & /*$_*/
818
- 1024 && W !== (W = /*$_*/
819
- y[10]("rules") + "") && L(E, W), D[0] & /*activeTab*/
820
- 8 && te(
821
- Z,
822
- "active",
823
- /*activeTab*/
824
- y[3] === 3
825
- ), N === (N = V(y)) && O ? O.p(y, D) : (O.d(1), O = N(y), O && (O.c(), O.m(t, null)));
826
- },
827
- i: ee,
828
- o: ee,
829
- d(y) {
830
- y && A(e), T && T.d(), O.d(), i[24](null), q = !1, Ye(Q);
831
- }
832
- };
833
- }
834
- function xt(i, e, s) {
835
- let l;
836
- We(i, Ke, (h) => s(10, l = h));
837
- let { terms: t = "" } = e, { lang: r = ie.en } = e, { endpoint: o = "" } = e, { session: a = "" } = e, { clientstyling: m = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: f = "" } = e, v = window.navigator.userAgent, p = qe(v), _, b = 1, g = !1, x = !1, M = [], F = !1, C = !1, P;
838
- const j = (h) => /(https?:\/\/[^\s]+)/g.test(h), Y = () => {
839
- fe({ type: "CloseMysteryChestDrawer" });
840
- }, Z = () => {
841
- s(7, F = !F);
842
- }, W = () => G(this, null, function* () {
843
- s(4, g = !0);
844
- let h = M.map((k) => ({
845
- id: k.program.id,
846
- name: k.program.name[r] || k.program.name[ie.default],
847
- partitions: k.program.wheelOfFortune.partitions,
848
- endPos: 0,
849
- outcomes: []
850
- }));
851
- if (h.length > 0) {
852
- const k = h.map((H, X) => G(this, null, function* () {
853
- const S = (yield we.outcome(o, a, H == null ? void 0 : H.id)).items || [];
854
- if (S.length === 0) {
855
- h[X] = null;
856
- return;
857
- }
858
- h[X] = he(ae({}, H), {
859
- endPos: S.length > 3 ? 3 : S.length,
860
- outcomes: S.map((R) => {
861
- var de;
862
- const ce = ((de = H.partitions[R.draw.result.wheelOfFortunePartitionIndex]) == null ? void 0 : de.name) || {}, Pe = R.draw.state === "fulfilled", He = Xe(new Date(R.draw.time), "LLL d, yyyy HH:mm:ss");
863
- return {
864
- name: ce[r] || ce[ie.default],
865
- state: Pe,
866
- date: He
867
- };
868
- })
869
- });
870
- }));
871
- yield Promise.all(k);
872
- }
873
- s(9, P = h.filter((k) => !!k)), s(4, g = !1);
874
- }), E = () => G(this, null, function* () {
875
- s(5, x = !0);
876
- const h = yield we.lotteries(o, a);
877
- s(6, M = h.filter((k) => it(k))), s(5, x = !1);
878
- }), I = (h) => {
879
- var H;
880
- const k = P.findIndex((X) => X.id === h);
881
- s(9, P[k].endPos = (H = P[k].outcomes) == null ? void 0 : H.length, P);
882
- }, q = (h) => G(this, null, function* () {
883
- s(3, b = +h.target.getAttribute("data-index")), b === 2 && (yield W());
884
- }), Q = () => {
885
- let h = document.createElement("style");
886
- h.innerHTML = m, _.appendChild(h);
887
- }, T = () => {
888
- let h = new URL(d), k = document.createElement("style");
889
- fetch(h.href).then((H) => H.text()).then((H) => {
890
- k.innerHTML = H, setTimeout(
891
- () => {
892
- _.appendChild(k);
893
- },
894
- 1
895
- );
896
- });
897
- }, V = () => {
898
- fetch(f).then((k) => k.json()).then((k) => {
899
- Object.keys(k).forEach((H) => {
900
- ve(H, k[H]);
901
- });
902
- });
903
- };
904
- Object.keys(xe).forEach((h) => {
905
- ve(h, xe[h]);
906
- });
907
- const N = () => {
908
- st(r);
909
- }, O = (h) => {
910
- fe({
911
- type: "OpenMysteryChestDetails",
912
- data: h
913
- });
914
- };
915
- Ve(() => {
916
- s(8, C = j(t)), E();
917
- });
918
- const y = (h) => {
919
- O(h);
920
- }, D = (h) => I(h.id);
921
- function le(h) {
922
- Je[h ? "unshift" : "push"](() => {
923
- _ = h, s(2, _);
924
- });
925
- }
926
- return i.$$set = (h) => {
927
- "terms" in h && s(0, t = h.terms), "lang" in h && s(1, r = h.lang), "endpoint" in h && s(17, o = h.endpoint), "session" in h && s(18, a = h.session), "clientstyling" in h && s(19, m = h.clientstyling), "clientstylingurl" in h && s(20, d = h.clientstylingurl), "translationurl" in h && s(21, f = h.translationurl);
928
- }, i.$$.update = () => {
929
- i.$$.dirty[0] & /*lang*/
930
- 2 && r && N(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
931
- 524292 && m && _ && Q(), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
932
- 1048580 && d && _ && T(), i.$$.dirty[0] & /*translationurl*/
933
- 2097152 && f && V();
934
- }, [
935
- t,
936
- r,
937
- _,
938
- b,
939
- g,
940
- x,
941
- M,
942
- F,
943
- C,
944
- P,
945
- l,
946
- p,
947
- Y,
948
- Z,
949
- I,
950
- q,
951
- O,
952
- o,
953
- a,
954
- m,
955
- d,
956
- f,
957
- y,
958
- D,
959
- le
960
- ];
961
- }
962
- class yt extends je {
963
- constructor(e) {
964
- super(), Ee(
965
- this,
966
- e,
967
- xt,
968
- vt,
969
- Ne,
970
- {
971
- terms: 0,
972
- lang: 1,
973
- endpoint: 17,
974
- session: 18,
975
- clientstyling: 19,
976
- clientstylingurl: 20,
977
- translationurl: 21
978
- },
979
- lt,
980
- [-1, -1]
981
- );
982
- }
983
- get terms() {
984
- return this.$$.ctx[0];
985
- }
986
- set terms(e) {
987
- this.$$set({ terms: e }), $();
988
- }
989
- get lang() {
990
- return this.$$.ctx[1];
991
- }
992
- set lang(e) {
993
- this.$$set({ lang: e }), $();
994
- }
995
- get endpoint() {
996
- return this.$$.ctx[17];
997
- }
998
- set endpoint(e) {
999
- this.$$set({ endpoint: e }), $();
1000
- }
1001
- get session() {
1002
- return this.$$.ctx[18];
1003
- }
1004
- set session(e) {
1005
- this.$$set({ session: e }), $();
1006
- }
1007
- get clientstyling() {
1008
- return this.$$.ctx[19];
1009
- }
1010
- set clientstyling(e) {
1011
- this.$$set({ clientstyling: e }), $();
1012
- }
1013
- get clientstylingurl() {
1014
- return this.$$.ctx[20];
1015
- }
1016
- set clientstylingurl(e) {
1017
- this.$$set({ clientstylingurl: e }), $();
1018
- }
1019
- get translationurl() {
1020
- return this.$$.ctx[21];
1021
- }
1022
- set translationurl(e) {
1023
- this.$$set({ translationurl: e }), $();
1024
- }
1025
- }
1026
- Ie(yt, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
1027
- export {
1028
- yt as default
1029
- };