@everymatrix/tournament-details-page 0.2.12 → 0.2.14

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 (89) hide show
  1. package/components/{ChartIcon-DTycW2Vl.js → ChartIcon-B--EH3Vl.js} +1 -1
  2. package/components/{ChartIcon-Blzn9spT.js → ChartIcon-By_sX-O3.js} +1 -1
  3. package/components/{ChartIcon-CUZqwurw.cjs → ChartIcon-LMFey5tC.cjs} +1 -1
  4. package/components/{ChartIcon-Cw-ps_bp.cjs → ChartIcon-gBU0Zrhd.cjs} +1 -1
  5. package/components/{CoinStackIcon-Bnki4Mhy.cjs → CoinStackIcon-CINdg0f3.cjs} +1 -1
  6. package/components/{CoinStackIcon-DqsuE1F0.js → CoinStackIcon-Dp7zyNd_.js} +1 -1
  7. package/components/{CoinStackIcon-BD5tT_tT.js → CoinStackIcon-DpQ9Ql8V.js} +1 -1
  8. package/components/{CoinStackIcon-C1RJWO7K.cjs → CoinStackIcon-dQ3YXVB6.cjs} +1 -1
  9. package/components/{DocumentsIcon-D5PG1nXk.cjs → DocumentsIcon-9A1Da03W.cjs} +1 -1
  10. package/components/{DocumentsIcon-BHpILBlx.js → DocumentsIcon-BNfQkrBE.js} +1 -1
  11. package/components/{DocumentsIcon-C3IlZ6WJ.cjs → DocumentsIcon-BURaap7N.cjs} +1 -1
  12. package/components/{DocumentsIcon-Cm14nY4z.js → DocumentsIcon-JCYs3JwW.js} +1 -1
  13. package/components/{FootballIcon-BCg6M4ct.js → FootballIcon-BIph2Aru.js} +1 -1
  14. package/components/{FootballIcon-Br4Pg_o9.js → FootballIcon-CWNfJLfb.js} +1 -1
  15. package/components/{FootballIcon-DIJ72roh.cjs → FootballIcon-CX1W263v.cjs} +1 -1
  16. package/components/{FootballIcon-D9UFEeGx.cjs → FootballIcon-q4kFork7.cjs} +1 -1
  17. package/components/{PeopleIcon-BjvGwqnC.js → PeopleIcon-3GsVhRY4.js} +1 -1
  18. package/components/{PeopleIcon-Bx81zHiT.js → PeopleIcon-D8lTQ2KR.js} +1 -1
  19. package/components/{PeopleIcon-BmSO8yTl.cjs → PeopleIcon-DagfiLJS.cjs} +1 -1
  20. package/components/{PeopleIcon-Ccm9dG4u.cjs → PeopleIcon-_KvtkuCL.cjs} +1 -1
  21. package/components/{RankArrowIcon-WosSBK6M.cjs → RankArrowIcon-4pj3dS-z.cjs} +1 -1
  22. package/components/{RankArrowIcon-jMbfVZRN.cjs → RankArrowIcon-BloaZrjL.cjs} +1 -1
  23. package/components/{RankArrowIcon-CT9c2W4q.js → RankArrowIcon-Cy_1QAXf.js} +1 -1
  24. package/components/{RankArrowIcon-B7grti5j.js → RankArrowIcon-DktEbyFU.js} +1 -1
  25. package/components/{SlotMachineIcon-BFFKtGUs.js → SlotMachineIcon-BXogWwRz.js} +1 -1
  26. package/components/{SlotMachineIcon-C2_AnFhk.cjs → SlotMachineIcon-BbZAJhJf.cjs} +1 -1
  27. package/components/{SlotMachineIcon-BYpTbiRT.js → SlotMachineIcon-CabzSA3A.js} +1 -1
  28. package/components/{SlotMachineIcon--h4e8Eo7.cjs → SlotMachineIcon-Cq4LMnoh.cjs} +1 -1
  29. package/components/{StatusBadge-CLgXaeUr.cjs → StatusBadge-Bg_6Y1d5.cjs} +1 -1
  30. package/components/{StatusBadge-BSXTxxcz.js → StatusBadge-Bup1Sml4.js} +5 -5
  31. package/components/{StatusBadge-DCptA39M.js → StatusBadge-CovGvJPI.js} +5 -5
  32. package/components/{StatusBadge-DPVVNwvB.cjs → StatusBadge-ZRuRu5ex.cjs} +1 -1
  33. package/components/{TournamentActions-CSlVeM6D.js → TournamentActions-D4IFOwse.js} +9 -9
  34. package/components/{TournamentActions-DZHe7Gpj.js → TournamentActions-DG3d1gTW.js} +9 -9
  35. package/components/{TournamentActions-Ck_hQS7u.cjs → TournamentActions-oezlw-_q.cjs} +1 -1
  36. package/components/{TournamentActions-Cwtjzkq3.cjs → TournamentActions-srI74YXg.cjs} +1 -1
  37. package/components/TournamentDetailsPage-B1PkYGTC.cjs +27 -0
  38. package/components/{TournamentDetailsPage-Bd1xfeIz.js → TournamentDetailsPage-CYtfX0cX.js} +274 -231
  39. package/components/TournamentDetailsPage-Cwd5jDPo.cjs +27 -0
  40. package/components/{TournamentDetailsPage-CrVWh3XC.js → TournamentDetailsPage-DmHbw2jU.js} +262 -219
  41. package/components/{TournamentDetailsSkeleton-DEy1z8og.cjs → TournamentDetailsSkeleton-BH6VjPZ0.cjs} +1 -1
  42. package/components/{TournamentDetailsSkeleton-DbOfNIhi.js → TournamentDetailsSkeleton-CLrts2mj.js} +11 -11
  43. package/components/{TournamentDetailsSkeleton-i1T3j7Qq.cjs → TournamentDetailsSkeleton-Cntx8Uxn.cjs} +1 -1
  44. package/components/{TournamentDetailsSkeleton-D5Ewcqd_.js → TournamentDetailsSkeleton-D2JIi_L9.js} +11 -11
  45. package/components/{TournamentGames-DVa28wi4.cjs → TournamentGames-CMUJNP1W.cjs} +1 -1
  46. package/components/{TournamentGames-DJjfni63.cjs → TournamentGames-DpdRQ-Wk.cjs} +1 -1
  47. package/components/{TournamentGames-DAjzIgPs.js → TournamentGames-Shx6DaNI.js} +3 -3
  48. package/components/{TournamentGames-BF7OeXui.js → TournamentGames-o5unmTLS.js} +3 -3
  49. package/components/{TournamentImage-BFdrBdGO.js → TournamentImage-B2I1n69v.js} +1 -1
  50. package/components/{TournamentImage-Cd1Q-NUY.cjs → TournamentImage-CyS-wh8S.cjs} +1 -1
  51. package/components/{TournamentImage-R-XD_M4F.js → TournamentImage-DJqaGTbB.js} +1 -1
  52. package/components/{TournamentImage-BiNRe7dv.cjs → TournamentImage-NC4qroZz.cjs} +1 -1
  53. package/components/TournamentLeaderboard-C7nAA9nK.js +1553 -0
  54. package/components/TournamentLeaderboard-CUFXtkZu.cjs +44 -0
  55. package/components/TournamentLeaderboard-DtQc021R.js +1614 -0
  56. package/components/TournamentLeaderboard-Meg4Gy_v.cjs +44 -0
  57. package/components/{TournamentRules-Bk6j_-Pc.cjs → TournamentRules-4LPojfNL.cjs} +1 -1
  58. package/components/{TournamentRules-UIHBqJg_.cjs → TournamentRules-B-Eetjhj.cjs} +1 -1
  59. package/components/{TournamentRules-Btf8PwHL.js → TournamentRules-Cnlc0PxO.js} +8 -8
  60. package/components/{TournamentRules-ZWCVyT0d.js → TournamentRules-DZ16pti3.js} +8 -8
  61. package/components/{TournamentSummary-Culm_VmG.cjs → TournamentSummary-B5Q4gOgk.cjs} +1 -1
  62. package/components/{TournamentSummary-C8zrUjm-.js → TournamentSummary-C4QixrUw.js} +27 -27
  63. package/components/{TournamentSummary-BU1VaGeN.js → TournamentSummary-CDUiZzMC.js} +18 -18
  64. package/components/{TournamentSummary-B21DioQa.cjs → TournamentSummary-ClZds7XR.cjs} +1 -1
  65. package/components/{TournamentTabs-LsLUozgb.js → TournamentTabs-BP0Th-AO.js} +3 -3
  66. package/components/{TournamentTabs-Bfe7mMQv.js → TournamentTabs-Bv9Y1h65.js} +4 -4
  67. package/components/{TournamentTabs-DIZkooA2.cjs → TournamentTabs-DH3F-f9h.cjs} +1 -1
  68. package/components/{TournamentTabs-CJg68zB4.cjs → TournamentTabs-DXUKaRsR.cjs} +1 -1
  69. package/components/{TrophyIcon-gG04OTK9.cjs → TrophyIcon-CkOnHDf7.cjs} +1 -1
  70. package/components/{TrophyIcon-DuAfQSZa.cjs → TrophyIcon-CxiyK3av.cjs} +1 -1
  71. package/components/{TrophyIcon-Bqno7aoE.js → TrophyIcon-DFjq2XKD.js} +1 -1
  72. package/components/{TrophyIcon-qzOxAsqk.js → TrophyIcon-PgUKEf6L.js} +1 -1
  73. package/components/{translations-DSJw61W2.js → translations-D8YbF5k5.js} +7 -4
  74. package/components/translations-DK13v9R-.cjs +1 -0
  75. package/components/{translations-Bz4h7TuL.js → translations-Dk3YOARA.js} +7 -4
  76. package/components/translations-XhfH5rPR.cjs +1 -0
  77. package/es2015/tournament-details-page.cjs +1 -1
  78. package/es2015/tournament-details-page.js +2 -2
  79. package/esnext/tournament-details-page.cjs +1 -1
  80. package/esnext/tournament-details-page.js +2 -2
  81. package/package.json +1 -1
  82. package/components/TournamentDetailsPage-CC2uzNc9.cjs +0 -27
  83. package/components/TournamentDetailsPage-vxtHfTNg.cjs +0 -27
  84. package/components/TournamentLeaderboard-BDGFWDLo.js +0 -1555
  85. package/components/TournamentLeaderboard-BdILz34a.cjs +0 -44
  86. package/components/TournamentLeaderboard-DIobabGN.cjs +0 -44
  87. package/components/TournamentLeaderboard-WaAjyMOL.js +0 -1494
  88. package/components/translations-BsxDIfU6.cjs +0 -1
  89. package/components/translations-rhjw1_mg.cjs +0 -1
@@ -1,35 +1,37 @@
1
- var I = (x, i, f) => new Promise((L, S) => {
1
+ var J = (z, s, k) => new Promise((x, M) => {
2
2
  var T = (l) => {
3
3
  try {
4
- c(f.next(l));
5
- } catch (p) {
6
- S(p);
4
+ c(k.next(l));
5
+ } catch (g) {
6
+ M(g);
7
7
  }
8
8
  }, b = (l) => {
9
9
  try {
10
- c(f.throw(l));
11
- } catch (p) {
12
- S(p);
10
+ c(k.throw(l));
11
+ } catch (g) {
12
+ M(g);
13
13
  }
14
- }, c = (l) => l.done ? L(l.value) : Promise.resolve(l.value).then(T, b);
15
- c((f = f.apply(x, i)).next());
14
+ }, c = (l) => l.done ? x(l.value) : Promise.resolve(l.value).then(T, b);
15
+ c((k = k.apply(z, s)).next());
16
16
  });
17
- import { c as Re, g as Le, a as et, p as u, a1 as tt, D as nt, E as Se, G as q, F as at, J as rt, o as m, H as E, L as K, j as e, m as r, i as P, s as _, b as C, d as Oe, u as y, f as z, h as M, q as d, I as it, V as st, $ as ot, r as R, T as lt, K as ut, t as ae, l as re, v as dt } from "./StatusBadge-BSXTxxcz.js";
18
- import { t as mt, k as we, D as ct, f as gt, l as pt, T as Be, m as bt, n as vt, o as kt, p as ft, q as ht, r as yt, u as Tt, v as St } from "./TournamentLeaderboard-BDGFWDLo.js";
19
- import { s as Me, T as wt } from "./TournamentGames-BF7OeXui.js";
20
- import { T as Bt } from "./TournamentImage-R-XD_M4F.js";
21
- import { T as Mt } from "./TournamentSummary-C8zrUjm-.js";
22
- import { T as Rt } from "./TournamentTabs-Bfe7mMQv.js";
23
- import { T as Lt } from "./TournamentRules-ZWCVyT0d.js";
24
- import { T as Ot } from "./TournamentDetailsSkeleton-D5Ewcqd_.js";
25
- import { T as _t } from "./TournamentActions-CSlVeM6D.js";
17
+ import { c as Pe, g as ze, a as it, p as d, a1 as st, D as ot, E as Me, G as C, F as lt, J as ut, o as u, H as D, L as V, j as e, m as i, i as F, s as R, b as O, d as Ce, u as y, f as P, h as w, q as m, I as dt, V as mt, $ as ct, r as B, T as pt, O as _e, t as X, P as Re, K as gt, l as ue, v as bt } from "./StatusBadge-Bup1Sml4.js";
18
+ import { t as vt, k as xe, l as kt, N as ft, D as ht, f as yt, m as Tt, T as Le, n as St, o as wt, p as Bt, q as Mt, r as _t, u as Rt, v as xt, w as Lt } from "./TournamentLeaderboard-DtQc021R.js";
19
+ import { s as Oe, T as Ot } from "./TournamentGames-o5unmTLS.js";
20
+ import { T as Pt } from "./TournamentImage-DJqaGTbB.js";
21
+ import { T as zt } from "./TournamentSummary-C4QixrUw.js";
22
+ import { T as Ct } from "./TournamentTabs-Bv9Y1h65.js";
23
+ import { T as Ft } from "./TournamentRules-DZ16pti3.js";
24
+ import { T as At } from "./TournamentDetailsSkeleton-D2JIi_L9.js";
25
+ import { T as qt } from "./TournamentActions-D4IFOwse.js";
26
26
  typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
27
27
  }, globalThis.customElements = { define() {
28
28
  }, get() {
29
29
  }, whenDefined() {
30
30
  } });
31
- const xt = {
31
+ const Dt = {
32
32
  en: {
33
+ tournamentNotFoundTitle: "Tournament not found.",
34
+ tournamentNotFoundDescription: "You will be redirected to the Tournaments Lobby",
33
35
  totalPrizes: "Total prizes",
34
36
  viewPrizes: "View Prizes",
35
37
  moreGames: "More Games",
@@ -101,6 +103,8 @@ const xt = {
101
103
  Win: "Winnings"
102
104
  },
103
105
  tr: {
106
+ tournamentNotFoundTitle: "Turnuva bulunamadı.",
107
+ tournamentNotFoundDescription: "Turnuvalar Lobisine yönlendirileceksiniz",
104
108
  totalPrizes: "Toplam Ödüller",
105
109
  viewPrizes: "Ödülleri Görüntüle",
106
110
  moreGames: "Daha Fazla Oyun",
@@ -163,6 +167,8 @@ const xt = {
163
167
  Win: "Kazanç"
164
168
  },
165
169
  da: {
170
+ tournamentNotFoundTitle: "Turneringen blev ikke fundet.",
171
+ tournamentNotFoundDescription: "Du vil blive omdirigeret til turneringslobbyen",
166
172
  totalPrizes: "Samlede præmier",
167
173
  moreGames: "Flere spil",
168
174
  play: "Spil",
@@ -223,12 +229,12 @@ const xt = {
223
229
  Win: "Gevinster"
224
230
  }
225
231
  };
226
- var Pt = z('<div class="svelte-tv1q7k"><!></div>'), Ct = z('<div class="LeaderboardWrapper svelte-tv1q7k"><!></div>'), zt = z('<div class="GamesWrapper svelte-tv1q7k"><!></div>'), At = z('<div class="tournament-details svelte-tv1q7k"><!> <div class="tournament-details__contents svelte-tv1q7k"><!> <!> <!> <div class="tournament-details__panel svelte-tv1q7k" role="tabpanel"><!> <!> <!></div></div></div>'), Wt = z('<div class="tournament-details svelte-tv1q7k"><!></div>'), qt = z('<div class="TournamentDetailsPageWrapper svelte-tv1q7k"><!> <!></div>');
227
- const Et = {
232
+ var Wt = P('<div class="svelte-tv1q7k"><!></div>'), Et = P('<div class="LeaderboardWrapper svelte-tv1q7k"><!></div>'), Nt = P('<div class="GamesWrapper svelte-tv1q7k"><!></div>'), Gt = P('<div class="tournament-details svelte-tv1q7k"><!> <div class="tournament-details__contents svelte-tv1q7k"><!> <!> <!> <div class="tournament-details__panel svelte-tv1q7k" role="tabpanel"><!> <!> <!></div></div></div>'), Ut = P('<div class="tournament-details svelte-tv1q7k"><!></div>'), jt = P('<div class="tournament-details tournament-details__not-found svelte-tv1q7k" role="alert"><p class="tournament-details__not-found-title svelte-tv1q7k"> </p> <p class="tournament-details__not-found-description svelte-tv1q7k"> </p></div>'), It = P('<div class="TournamentDetailsPageWrapper svelte-tv1q7k"><!> <!></div>');
233
+ const Kt = {
228
234
  hash: "svelte-tv1q7k",
229
235
  code: `.svelte-tv1q7k,
230
236
  .svelte-tv1q7k::before,
231
- .svelte-tv1q7k::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.TournamentDetailsPageWrapper.svelte-tv1q7k {max-width:1300px;margin:auto;.LeaderboardWrapper:where(.svelte-tv1q7k) {min-height:500px;}.GamesWrapper:where(.svelte-tv1q7k) {min-height:200px;}}.tournament-details.svelte-tv1q7k {display:flex;flex-direction:column;gap:32px;box-sizing:border-box;width:100%;padding:24px;background:var(--bg-surface-level-1, rgba(2, 38, 82, 1));border:1px solid var(--border-subtle, rgba(251, 251, 251, 0.05));border-radius:8px;.tournament-details__panel:where(.svelte-tv1q7k) {min-width:0;scroll-margin-top:80px;> [hidden]:where(.svelte-tv1q7k) {display:none !important;}}}.tournament-details__contents.svelte-tv1q7k {gap:20px;display:flex;flex-direction:column;}
237
+ .svelte-tv1q7k::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.TournamentDetailsPageWrapper.svelte-tv1q7k {max-width:1300px;margin:auto;.LeaderboardWrapper:where(.svelte-tv1q7k) {min-height:500px;}.GamesWrapper:where(.svelte-tv1q7k) {min-height:200px;}}.tournament-details.svelte-tv1q7k {display:flex;flex-direction:column;gap:32px;box-sizing:border-box;width:100%;padding:24px;background:var(--bg-surface-level-1, rgba(2, 38, 82, 1));border:1px solid var(--border-subtle, rgba(251, 251, 251, 0.05));border-radius:8px;.tournament-details__panel:where(.svelte-tv1q7k) {min-width:0;scroll-margin-top:80px;> [hidden]:where(.svelte-tv1q7k) {display:none !important;}}}.tournament-details__not-found.svelte-tv1q7k {align-items:center;gap:8px;padding:63px 16px;text-align:center;.tournament-details__not-found-title:where(.svelte-tv1q7k) {color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;font-weight:700;}.tournament-details__not-found-description:where(.svelte-tv1q7k) {max-width:340px;color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-size:12px;}}.tournament-details__contents.svelte-tv1q7k {gap:20px;display:flex;flex-direction:column;}
232
238
 
233
239
  @media (max-width: 767px) {.tournament-details.svelte-tv1q7k {gap:16px;padding:12px;background:transparent;border:none;}
234
240
  }
@@ -242,206 +248,223 @@ const Et = {
242
248
  @media (min-width: 1000px) {
243
249
  }`
244
250
  };
245
- function _e(x, i) {
246
- var ve;
247
- Le(i, !0), et(x, Et);
248
- const f = () => st(ot, "$_", L), [L, S] = it(), T = u(i, "initialState", 7), b = u(i, "endpoint", 7), c = u(i, "language", 7, "en"), l = u(i, "session", 7), p = u(i, "tournamentid", 7), O = u(i, "gamesLimit", 7, 6), h = u(i, "platform", 7), w = u(i, "translationurl", 7), s = u(i, "activetab", 7, void 0), N = u(i, "showActionsButtons", 7, !1);
249
- tt({ withLocale: "en", translations: {} }), nt(xt), Se(c());
250
- const Pe = () => {
251
- Se(c());
251
+ function Fe(z, s) {
252
+ var Se;
253
+ ze(s, !0), it(z, Kt);
254
+ const k = () => mt(ct, "$_", x), [x, M] = dt(), T = d(s, "initialState", 7), b = d(s, "endpoint", 7), c = d(s, "language", 7, "en"), l = d(s, "session", 7), g = d(s, "tournamentid", 7), L = d(s, "gamesLimit", 7, 6), h = d(s, "platform", 7), _ = d(s, "translationurl", 7), o = d(s, "activetab", 7, void 0), Y = d(s, "showActionsButtons", 7, !1);
255
+ st({ withLocale: "en", translations: {} }), ot(Dt), Me(c());
256
+ const qe = () => {
257
+ Me(c());
252
258
  };
253
- q(() => {
254
- Pe();
255
- }), at(() => {
256
- w() && rt(w());
259
+ C(() => {
260
+ qe();
261
+ }), lt(() => {
262
+ _() && ut(_());
257
263
  });
258
- let a = m(E(((ve = T()) == null ? void 0 : ve.tournament) || null)), H = m(!1), ie = m(E([])), se = m(void 0), oe = m(void 0), F = m(!1), D = m(!1), le = m(!1), ue = m(""), G = m(void 0), U = m(void 0), de = m(E([])), me = m("");
259
- const ce = (t) => {
260
- var o;
261
- return (o = ct.find((n) => n.id === t)) == null ? void 0 : o.id;
264
+ let a = u(D(((Se = T()) == null ? void 0 : Se.tournament) || null)), Q = u(!1), W = u(!1), de = u(D([])), me = u(void 0), ce = u(void 0), E = u(!1), N = u(!1), pe = u(!1), ge = u(""), G = u(void 0), U = u(void 0), be = u(D([])), ve = u("");
265
+ const ke = (t) => {
266
+ var r;
267
+ return (r = ht.find((n) => n.id === t)) == null ? void 0 : r.id;
262
268
  };
263
- let k = m(E(K(() => {
269
+ let f = u(D(V(() => {
264
270
  var t;
265
- return (t = ce(s())) != null ? t : "rules";
266
- }))), A = m(null), J = m(E({}));
267
- const V = (t) => e(k) === t || t === "games" || !!e(J)[t];
268
- let X = m(!1);
269
- q(() => {
270
- const t = ce(s());
271
- t && K(() => {
272
- e(J)[e(k)] = !0, r(k, t, !0), r(X, !0);
271
+ return (t = ke(o())) != null ? t : "rules";
272
+ }))), A = u(null), Z = u(D({}));
273
+ const $ = (t) => e(f) === t || t === "games" || !!e(Z)[t];
274
+ let ee = u(!1);
275
+ C(() => {
276
+ const t = ke(o());
277
+ t && V(() => {
278
+ e(Z)[e(f)] = !0, i(f, t, !0), i(ee, !0);
273
279
  });
274
- }), q(() => {
275
- !e(X) || !e(a) || !e(A) || (r(X, !1), Me(e(A)));
280
+ }), C(() => {
281
+ !e(ee) || !e(a) || !e(A) || (i(ee, !1), Oe(e(A)));
276
282
  });
277
- let Y = m(null), Q = m(!1);
278
- const Z = y(() => {
279
- var t, o;
280
- return !!((o = (t = e(a)) == null ? void 0 : t.wallet) != null && o.casino);
283
+ let te = u(null), ne = u(!1);
284
+ const ae = y(() => {
285
+ var t, r;
286
+ return !!((r = (t = e(a)) == null ? void 0 : t.wallet) != null && r.casino);
281
287
  }), j = y(() => {
282
- var t, o;
283
- return !!((o = (t = e(a)) == null ? void 0 : t.wallet) != null && o.sports);
284
- }), Ce = y(() => e(Z) && e(j) ? "activitiesTab" : e(j) ? "eventsTab" : "gamesTab"), $ = y(() => {
288
+ var t, r;
289
+ return !!((r = (t = e(a)) == null ? void 0 : t.wallet) != null && r.sports);
290
+ }), De = y(() => e(ae) && e(j) ? "activitiesTab" : e(j) ? "eventsTab" : "gamesTab"), re = y(() => {
285
291
  var t;
286
- return !!((t = e(a)) != null && t.playerEnrolled || e(D) || e(Q));
287
- }), ze = y(() => bt(N())), ge = y(() => (e(a) ? dt({
292
+ return !!((t = e(a)) != null && t.playerEnrolled || e(N) || e(ne));
293
+ }), We = y(() => St(Y())), fe = y(() => (e(a) ? bt({
288
294
  state: e(a).state,
289
295
  startTime: e(a).startTime,
290
296
  endTime: e(a).endTime
291
- }) : void 0) === "ended" ? e($) ? "enrolled" : "ended" : e($) ? "enrolled" : "join"), Ae = () => {
292
- r(
293
- me,
294
- e(U) ? Be.generateCasinoRule(f(), e(U)) : "",
297
+ }) : void 0) === "ended" ? e(re) ? "enrolled" : "ended" : e(re) ? "enrolled" : "join"), Ee = () => {
298
+ i(
299
+ ve,
300
+ e(U) ? Le.generateCasinoRule(k(), e(U)) : "",
295
301
  !0
296
- ), r(
297
- de,
298
- e(G) ? Be.generateSportsRule(f(), e(G)) : [],
302
+ ), i(
303
+ be,
304
+ e(G) ? Le.generateSportsRule(k(), e(G)) : [],
299
305
  !0
300
306
  );
301
- }, We = () => I(this, null, function* () {
302
- var t, o;
303
- r(H, !0);
307
+ }, Ne = () => J(this, null, function* () {
308
+ var t, r;
309
+ i(Q, !0), i(W, !1);
304
310
  try {
305
- const n = yield gt({
311
+ const n = yield yt({
306
312
  endpoint: b(),
307
313
  language: c(),
308
314
  platform: h(),
309
315
  session: l(),
310
- tournamentid: p(),
311
- gamesLimit: O(),
316
+ tournamentid: g(),
317
+ gamesLimit: L(),
312
318
  gamesOffset: 0
313
319
  });
314
- r(a, n, !0), pe(), r(ie, (t = n == null ? void 0 : n.games) == null ? void 0 : t.items, !0), r(se, (o = n == null ? void 0 : n.games) == null ? void 0 : o.total, !0), r(oe, n == null ? void 0 : n.metadata, !0), r(U, n == null ? void 0 : n.wallet.casino, !0), r(G, n == null ? void 0 : n.wallet.sports, !0), (e(G) || e(U)) && Ae();
320
+ if (i(a, n, !0), !n) {
321
+ i(W, !0);
322
+ return;
323
+ }
324
+ he(), i(de, (t = n == null ? void 0 : n.games) == null ? void 0 : t.items, !0), i(me, (r = n == null ? void 0 : n.games) == null ? void 0 : r.total, !0), i(ce, n == null ? void 0 : n.metadata, !0), i(U, n == null ? void 0 : n.wallet.casino, !0), i(G, n == null ? void 0 : n.wallet.sports, !0), (e(G) || e(U)) && Ee();
315
325
  } catch (n) {
316
326
  console.log(n);
317
327
  } finally {
318
- r(H, !1);
328
+ i(Q, !1);
319
329
  }
320
- }), pe = () => I(this, null, function* () {
321
- var t, o, n;
322
- if (!l() || !p() || !b()) {
323
- r(Y, null), r(Q, !1);
330
+ }), he = () => J(this, null, function* () {
331
+ var t, r, n;
332
+ if (!l() || !g() || !b()) {
333
+ i(te, null), i(ne, !1);
324
334
  return;
325
335
  }
326
336
  try {
327
- const B = yield pt({
337
+ const S = yield Tt({
328
338
  endpoint: b(),
329
339
  language: c(),
330
340
  platform: h(),
331
341
  session: l(),
332
- tournamentid: p(),
342
+ tournamentid: g(),
333
343
  includeUnqualified: !0
334
344
  });
335
- r(Y, (n = (o = (t = B.playerData) == null ? void 0 : t.rank) != null ? o : B.endRank) != null ? n : null, !0), r(Q, !!B.playerEnrolled, !0);
336
- } catch (B) {
337
- console.log(B);
345
+ i(te, (n = (r = (t = S.playerData) == null ? void 0 : t.rank) != null ? r : S.endRank) != null ? n : null, !0), i(ne, !!S.playerEnrolled, !0);
346
+ } catch (S) {
347
+ console.log(S);
338
348
  }
339
- }), ee = (t, o = void 0) => {
340
- t === "ActionSuccess" ? Tt("join", e(a)) : St("join", e(a), o);
341
- }, qe = () => I(this, null, function* () {
342
- r(F, !0);
349
+ }), ie = (t, r = void 0) => {
350
+ t === "ActionSuccess" ? xt("join", e(a)) : Lt("join", e(a), r);
351
+ }, Ge = () => J(this, null, function* () {
352
+ i(E, !0);
343
353
  try {
344
- const t = yield yt({
354
+ const t = yield Rt({
345
355
  endpoint: b(),
346
356
  language: c(),
347
357
  platform: h(),
348
358
  session: l(),
349
359
  tournament: e(a)
350
360
  });
351
- t.enrolled ? (r(D, !0), ee("ActionSuccess"), pe()) : t.errorMessage && (r(le, !0), r(ue, t.errorMessage, !0), ee("ActionFail", t.errorMessage));
361
+ t.enrolled ? (i(N, !0), ie("ActionSuccess"), he()) : t.errorMessage && (i(pe, !0), i(ge, t.errorMessage, !0), ie("ActionFail", t.errorMessage));
352
362
  } catch (t) {
353
- console.log(t), r(le, !0), r(ue, t.errorMessage, !0), ee("ActionFail", t.errorMessage);
363
+ console.log(t), i(pe, !0), i(ge, t.errorMessage, !0), ie("ActionFail", t.errorMessage);
354
364
  } finally {
355
- r(F, !1);
365
+ i(E, !1);
356
366
  }
357
- }), Ee = () => {
358
- e(ge) !== "join" || e(F) || (l() ? (ht(e(a)), qe()) : ft(e(a)));
359
- }, Fe = y(() => {
367
+ }), Ue = () => {
368
+ e(fe) !== "join" || e(E) || (l() ? (_t(e(a)), Ge()) : Mt(e(a)));
369
+ }, je = y(() => {
360
370
  var t;
361
371
  return (t = e(a)) == null ? void 0 : t.id;
362
372
  });
363
- q(() => {
364
- if (e(Fe))
365
- return K(() => {
373
+ C(() => {
374
+ if (e(je))
375
+ return V(() => {
366
376
  const t = {
367
377
  id: e(a).id,
368
378
  nameOrTitle: e(a).nameOrTitle
369
379
  };
370
- return mt(() => we(!0, t, { tabName: e(k) }), () => we(!1, t, { optedIn: e(D) }));
380
+ return vt(
381
+ () => xe(!0, t, {
382
+ tabName: e(f),
383
+ productTab: ye(e(f))
384
+ }),
385
+ () => xe(!1, t, { optedIn: e(N) })
386
+ );
371
387
  });
372
388
  });
373
- const De = (t) => {
374
- t !== e(k) && (e(J)[e(k)] = !0, r(k, t, !0), vt(e(a), t, t === "games" && e(Z) && e(j) ? "casino" : void 0), ut().then(() => Me(e(A), !0)));
389
+ const ye = (t) => t === "games" && e(ae) && e(j) ? "casino" : void 0;
390
+ C(() => {
391
+ if (!e(W))
392
+ return;
393
+ const t = setTimeout(() => kt("notFound"), ft);
394
+ return () => clearTimeout(t);
395
+ });
396
+ const Ie = (t) => {
397
+ t !== e(f) && (e(Z)[e(f)] = !0, i(f, t, !0), wt(e(a), t, ye(t)), gt().then(() => Oe(e(A), !0)));
375
398
  };
376
- q(() => {
377
- l(), !T() && p() && b() && K(() => We());
399
+ C(() => {
400
+ l(), !T() && g() && b() && V(() => Ne());
378
401
  });
379
- var Ge = {
402
+ var Ke = {
380
403
  get initialState() {
381
404
  return T();
382
405
  },
383
406
  set initialState(t) {
384
- T(t), d();
407
+ T(t), m();
385
408
  },
386
409
  get endpoint() {
387
410
  return b();
388
411
  },
389
412
  set endpoint(t) {
390
- b(t), d();
413
+ b(t), m();
391
414
  },
392
415
  get language() {
393
416
  return c();
394
417
  },
395
418
  set language(t = "en") {
396
- c(t), d();
419
+ c(t), m();
397
420
  },
398
421
  get session() {
399
422
  return l();
400
423
  },
401
424
  set session(t) {
402
- l(t), d();
425
+ l(t), m();
403
426
  },
404
427
  get tournamentid() {
405
- return p();
428
+ return g();
406
429
  },
407
430
  set tournamentid(t) {
408
- p(t), d();
431
+ g(t), m();
409
432
  },
410
433
  get gamesLimit() {
411
- return O();
434
+ return L();
412
435
  },
413
436
  set gamesLimit(t = 6) {
414
- O(t), d();
437
+ L(t), m();
415
438
  },
416
439
  get platform() {
417
440
  return h();
418
441
  },
419
442
  set platform(t) {
420
- h(t), d();
443
+ h(t), m();
421
444
  },
422
445
  get translationurl() {
423
- return w();
446
+ return _();
424
447
  },
425
448
  set translationurl(t) {
426
- w(t), d();
449
+ _(t), m();
427
450
  },
428
451
  get activetab() {
429
- return s();
452
+ return o();
430
453
  },
431
454
  set activetab(t = void 0) {
432
- s(t), d();
455
+ o(t), m();
433
456
  },
434
457
  get showActionsButtons() {
435
- return N();
458
+ return Y();
436
459
  },
437
460
  set showActionsButtons(t = !1) {
438
- N(t), d();
461
+ Y(t), m();
439
462
  }
440
- }, te = qt(), be = M(te);
463
+ }, se = It(), Te = w(se);
441
464
  {
442
- var Ue = (t) => {
443
- var o = At(), n = M(o);
444
- Bt(n, {
465
+ var He = (t) => {
466
+ var r = Gt(), n = w(r);
467
+ Pt(n, {
445
468
  variant: "banner",
446
469
  badgeSize: "large",
447
470
  priority: !0,
@@ -464,70 +487,70 @@ function _e(x, i) {
464
487
  return c();
465
488
  }
466
489
  });
467
- var B = _(n, 2), ke = M(B);
468
- Mt(ke, {
490
+ var S = R(n, 2), I = w(S);
491
+ zt(I, {
469
492
  get tournament() {
470
493
  return e(a);
471
494
  },
472
495
  get enrolled() {
473
- return e($);
496
+ return e(re);
474
497
  },
475
498
  get rank() {
476
- return e(Y);
499
+ return e(te);
477
500
  }
478
501
  });
479
- var fe = _(ke, 2);
502
+ var K = R(I, 2);
480
503
  {
481
- var Ne = (g) => {
482
- _t(g, {
504
+ var oe = (p) => {
505
+ qt(p, {
483
506
  get action() {
484
- return e(ge);
507
+ return e(fe);
485
508
  },
486
509
  get joining() {
487
- return e(F);
510
+ return e(E);
488
511
  },
489
- onActionClick: Ee
512
+ onActionClick: Ue
490
513
  });
491
514
  };
492
- P(fe, (g) => {
493
- e(ze) && g(Ne);
515
+ F(K, (p) => {
516
+ e(We) && p(oe);
494
517
  });
495
518
  }
496
- var he = _(fe, 2);
497
- Rt(he, {
519
+ var H = R(K, 2);
520
+ Ct(H, {
498
521
  get activeTab() {
499
- return e(k);
522
+ return e(f);
500
523
  },
501
524
  get gamesLabel() {
502
- return e(Ce);
525
+ return e(De);
503
526
  },
504
- onTabChange: De
527
+ onTabChange: Ie
505
528
  });
506
- var ne = _(he, 2), ye = M(ne);
529
+ var le = R(H, 2), we = w(le);
507
530
  {
508
- var He = (g) => {
509
- var v = Pt(), W = M(v);
510
- Lt(W, {
531
+ var Qe = (p) => {
532
+ var v = Wt(), q = w(v);
533
+ Ft(q, {
511
534
  get tournament() {
512
535
  return e(a);
513
536
  },
514
537
  get casinoRules() {
515
- return e(me);
538
+ return e(ve);
516
539
  },
517
540
  get sportRules() {
518
- return e(de);
541
+ return e(be);
519
542
  }
520
- }), R(v), ae(() => re(v, "hidden", e(k) !== "rules")), C(g, v);
521
- }, Je = y(() => V("rules"));
522
- P(ye, (g) => {
523
- e(Je) && g(He);
543
+ }), B(v), X(() => ue(v, "hidden", e(f) !== "rules")), O(p, v);
544
+ }, Ze = y(() => $("rules"));
545
+ F(we, (p) => {
546
+ e(Ze) && p(Qe);
524
547
  });
525
548
  }
526
- var Te = _(ye, 2);
549
+ var Be = R(we, 2);
527
550
  {
528
- var Ve = (g) => {
529
- var v = Ct(), W = M(v);
530
- kt(W, {
551
+ var $e = (p) => {
552
+ var v = Et(), q = w(v);
553
+ Bt(q, {
531
554
  get endpoint() {
532
555
  return b();
533
556
  },
@@ -538,30 +561,39 @@ function _e(x, i) {
538
561
  return l();
539
562
  },
540
563
  get tournamentid() {
541
- return p();
564
+ return g();
542
565
  },
543
566
  get newlyEnrolled() {
544
- return e(D);
567
+ return e(N);
545
568
  },
546
569
  get platform() {
547
570
  return h();
548
571
  },
549
572
  get translationurl() {
550
- return w();
573
+ return _();
574
+ },
575
+ get tournamentState() {
576
+ return e(a).state;
577
+ },
578
+ get startTime() {
579
+ return e(a).startTime;
580
+ },
581
+ get endTime() {
582
+ return e(a).endTime;
551
583
  }
552
- }), R(v), ae(() => re(v, "hidden", e(k) !== "leaderboard")), C(g, v);
553
- }, Xe = y(() => V("leaderboard"));
554
- P(Te, (g) => {
555
- e(Xe) && g(Ve);
584
+ }), B(v), X(() => ue(v, "hidden", e(f) !== "leaderboard")), O(p, v);
585
+ }, et = y(() => $("leaderboard"));
586
+ F(Be, (p) => {
587
+ e(et) && p($e);
556
588
  });
557
589
  }
558
- var Ye = _(Te, 2);
590
+ var tt = R(Be, 2);
559
591
  {
560
- var Qe = (g) => {
561
- var v = zt(), W = M(v);
592
+ var nt = (p) => {
593
+ var v = Nt(), q = w(v);
562
594
  {
563
- let $e = y(() => e(oe) || {});
564
- wt(W, {
595
+ let rt = y(() => e(ce) || {});
596
+ Ot(q, {
565
597
  get endpoint() {
566
598
  return b();
567
599
  },
@@ -572,7 +604,7 @@ function _e(x, i) {
572
604
  return l();
573
605
  },
574
606
  get tournamentid() {
575
- return p();
607
+ return g();
576
608
  },
577
609
  get tournamentname() {
578
610
  return e(a).nameOrTitle;
@@ -581,57 +613,68 @@ function _e(x, i) {
581
613
  return h();
582
614
  },
583
615
  get initialGames() {
584
- return e(ie);
616
+ return e(de);
585
617
  },
586
618
  get totalGames() {
587
- return e(se);
619
+ return e(me);
588
620
  },
589
621
  get tournamentMetadata() {
590
- return e($e);
622
+ return e(rt);
591
623
  },
592
624
  get translationurl() {
593
- return w();
625
+ return _();
594
626
  },
595
627
  get hasCasino() {
596
- return e(Z);
628
+ return e(ae);
597
629
  },
598
630
  get hasSports() {
599
631
  return e(j);
600
632
  }
601
633
  });
602
634
  }
603
- R(v), ae(() => re(v, "hidden", e(k) !== "games")), C(g, v);
604
- }, Ze = y(() => V("games"));
605
- P(Ye, (g) => {
606
- e(Ze) && g(Qe);
635
+ B(v), X(() => ue(v, "hidden", e(f) !== "games")), O(p, v);
636
+ }, at = y(() => $("games"));
637
+ F(tt, (p) => {
638
+ e(at) && p(nt);
607
639
  });
608
640
  }
609
- R(ne), lt(ne, (g) => r(A, g), () => e(A)), R(B), R(o), C(t, o);
641
+ B(le), pt(le, (p) => i(A, p), () => e(A)), B(S), B(r), O(t, r);
610
642
  };
611
- P(be, (t) => {
612
- e(a) && t(Ue);
643
+ F(Te, (t) => {
644
+ e(a) && t(He);
613
645
  });
614
646
  }
615
- var je = _(be, 2);
647
+ var Je = R(Te, 2);
616
648
  {
617
- var Ie = (t) => {
618
- var o = Wt(), n = M(o);
619
- Ot(n, {
649
+ var Ve = (t) => {
650
+ var r = Ut(), n = w(r);
651
+ At(n, {
620
652
  get activeTab() {
621
- return e(k);
653
+ return e(f);
622
654
  }
623
- }), R(o), C(t, o);
655
+ }), B(r), O(t, r);
656
+ }, Xe = (t) => {
657
+ var r = jt(), n = w(r), S = _e(n, !0), I = R(n, 2), K = _e(I, !0);
658
+ B(r), X(
659
+ (oe, H) => {
660
+ Re(S, oe), Re(K, H);
661
+ },
662
+ [
663
+ () => k()("tournamentNotFoundTitle"),
664
+ () => k()("tournamentNotFoundDescription")
665
+ ]
666
+ ), O(t, r);
624
667
  };
625
- P(je, (t) => {
626
- e(H) && t(Ie);
668
+ F(Je, (t) => {
669
+ e(Q) ? t(Ve) : e(W) && t(Xe, 1);
627
670
  });
628
671
  }
629
- R(te), C(x, te);
630
- var Ke = Oe(Ge);
631
- return S(), Ke;
672
+ B(se), O(z, se);
673
+ var Ye = Ce(Ke);
674
+ return M(), Ye;
632
675
  }
633
- Re(
634
- _e,
676
+ Pe(
677
+ Fe,
635
678
  {
636
679
  initialState: {},
637
680
  endpoint: {},
@@ -648,80 +691,80 @@ Re(
648
691
  [],
649
692
  { mode: "open" }
650
693
  );
651
- function xe(x, i) {
652
- Le(i, !0);
653
- let f = u(i, "initialState", 7), L = u(i, "endpoint", 7), S = u(i, "language", 7, "en"), T = u(i, "session", 7), b = u(i, "tournamentid", 7), c = u(i, "gamesLimit", 7, 6), l = u(i, "platform", 7), p = u(i, "translationurl", 7), O = u(i, "activetab", 7), h = u(i, "showActionsButtons", 7, !1);
654
- var w = {
694
+ function Ae(z, s) {
695
+ ze(s, !0);
696
+ let k = d(s, "initialState", 7), x = d(s, "endpoint", 7), M = d(s, "language", 7, "en"), T = d(s, "session", 7), b = d(s, "tournamentid", 7), c = d(s, "gamesLimit", 7, 6), l = d(s, "platform", 7), g = d(s, "translationurl", 7), L = d(s, "activetab", 7), h = d(s, "showActionsButtons", 7, !1);
697
+ var _ = {
655
698
  get initialState() {
656
- return f();
699
+ return k();
657
700
  },
658
- set initialState(s) {
659
- f(s), d();
701
+ set initialState(o) {
702
+ k(o), m();
660
703
  },
661
704
  get endpoint() {
662
- return L();
705
+ return x();
663
706
  },
664
- set endpoint(s) {
665
- L(s), d();
707
+ set endpoint(o) {
708
+ x(o), m();
666
709
  },
667
710
  get language() {
668
- return S();
711
+ return M();
669
712
  },
670
- set language(s = "en") {
671
- S(s), d();
713
+ set language(o = "en") {
714
+ M(o), m();
672
715
  },
673
716
  get session() {
674
717
  return T();
675
718
  },
676
- set session(s) {
677
- T(s), d();
719
+ set session(o) {
720
+ T(o), m();
678
721
  },
679
722
  get tournamentid() {
680
723
  return b();
681
724
  },
682
- set tournamentid(s) {
683
- b(s), d();
725
+ set tournamentid(o) {
726
+ b(o), m();
684
727
  },
685
728
  get gamesLimit() {
686
729
  return c();
687
730
  },
688
- set gamesLimit(s = 6) {
689
- c(s), d();
731
+ set gamesLimit(o = 6) {
732
+ c(o), m();
690
733
  },
691
734
  get platform() {
692
735
  return l();
693
736
  },
694
- set platform(s) {
695
- l(s), d();
737
+ set platform(o) {
738
+ l(o), m();
696
739
  },
697
740
  get translationurl() {
698
- return p();
741
+ return g();
699
742
  },
700
- set translationurl(s) {
701
- p(s), d();
743
+ set translationurl(o) {
744
+ g(o), m();
702
745
  },
703
746
  get activetab() {
704
- return O();
747
+ return L();
705
748
  },
706
- set activetab(s) {
707
- O(s), d();
749
+ set activetab(o) {
750
+ L(o), m();
708
751
  },
709
752
  get showActionsButtons() {
710
753
  return h();
711
754
  },
712
- set showActionsButtons(s = !1) {
713
- h(s), d();
755
+ set showActionsButtons(o = !1) {
756
+ h(o), m();
714
757
  }
715
758
  };
716
- return _e(x, {
759
+ return Fe(z, {
717
760
  get initialState() {
718
- return f();
761
+ return k();
719
762
  },
720
763
  get endpoint() {
721
- return L();
764
+ return x();
722
765
  },
723
766
  get language() {
724
- return S();
767
+ return M();
725
768
  },
726
769
  get session() {
727
770
  return T();
@@ -736,18 +779,18 @@ function xe(x, i) {
736
779
  return l();
737
780
  },
738
781
  get translationurl() {
739
- return p();
782
+ return g();
740
783
  },
741
784
  get activetab() {
742
- return O();
785
+ return L();
743
786
  },
744
787
  get showActionsButtons() {
745
788
  return h();
746
789
  }
747
- }), Oe(w);
790
+ }), Ce(_);
748
791
  }
749
- customElements.define("tournament-details-page", Re(
750
- xe,
792
+ customElements.define("tournament-details-page", Pe(
793
+ Ae,
751
794
  {
752
795
  initialState: {},
753
796
  endpoint: {},
@@ -763,11 +806,11 @@ customElements.define("tournament-details-page", Re(
763
806
  [],
764
807
  []
765
808
  ));
766
- const Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
809
+ const nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
767
810
  __proto__: null,
768
- default: xe
811
+ default: Ae
769
812
  }, Symbol.toStringTag, { value: "Module" }));
770
813
  export {
771
- _e as T,
772
- Vt as a
814
+ Fe as T,
815
+ nn as a
773
816
  };