@everymatrix/tournament-details-page 0.1.27 → 0.1.29

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/{TournamentDetails-C_DjsiRO.js → TournamentDetails-Bdjkchis.js} +17 -17
  2. package/components/{TournamentDetails-DJkyA6Vc.cjs → TournamentDetails-CwSpU7kq.cjs} +1 -1
  3. package/components/{TournamentDetails-_CAwLQSz.cjs → TournamentDetails-D6tJxzxu.cjs} +1 -1
  4. package/components/{TournamentDetails-BZghU11I.js → TournamentDetails-lOcRC5BE.js} +17 -17
  5. package/components/TournamentDetailsPage-BxjcEVtD.cjs +36 -0
  6. package/components/TournamentDetailsPage-CUrqFYHv.cjs +36 -0
  7. package/components/TournamentDetailsPage-Cq82Ib7k.js +688 -0
  8. package/components/TournamentDetailsPage-iCJFDnnz.js +667 -0
  9. package/components/TournamentGames-BEqAeC0t.js +875 -0
  10. package/components/TournamentGames-BHh4emja.cjs +51 -0
  11. package/components/TournamentGames-BfhpQFgs.cjs +51 -0
  12. package/components/TournamentGames-C-4Yfrqb.js +849 -0
  13. package/components/TournamentLeaderboard-B4cR1pv1.cjs +46 -0
  14. package/components/TournamentLeaderboard-Bn1ci40R.cjs +46 -0
  15. package/components/{TournamentLeaderboard-DKFSvo2X.js → TournamentLeaderboard-JkZHz84d.js} +1655 -1791
  16. package/components/{TournamentLeaderboard-CpJXePmH.js → TournamentLeaderboard-ZeddBG1C.js} +1441 -1577
  17. package/components/translations-35-BlfqE.cjs +1 -0
  18. package/components/translations-C9SzZ-OE.js +87 -0
  19. package/components/translations-CQFwGvLj.cjs +1 -0
  20. package/components/translations-c-3wA1ZU.js +87 -0
  21. package/es2015/tournament-details-page.cjs +1 -1
  22. package/es2015/tournament-details-page.js +2 -2
  23. package/esnext/tournament-details-page.cjs +1 -1
  24. package/esnext/tournament-details-page.js +2 -2
  25. package/package.json +1 -1
  26. package/components/TournamentDetailsPage-6wv_wZG8.js +0 -715
  27. package/components/TournamentDetailsPage-B3pa9l3K.cjs +0 -36
  28. package/components/TournamentDetailsPage-D4d6LK8N.js +0 -736
  29. package/components/TournamentDetailsPage-Wti3EW2y.cjs +0 -36
  30. package/components/TournamentGames-BitHaGk1.cjs +0 -51
  31. package/components/TournamentGames-CPAgktBV.cjs +0 -51
  32. package/components/TournamentGames-D0Vx9asc.js +0 -1025
  33. package/components/TournamentGames-D4Zol0Yj.js +0 -999
  34. package/components/TournamentLeaderboard-BH1mlCiD.cjs +0 -46
  35. package/components/TournamentLeaderboard-BefYxI8Y.cjs +0 -46
@@ -1,4 +1,4 @@
1
- import { c as Xe, g as Ee, d as De, a as me, p as ge, b as Le, e as I, f as X, r as Se, s as le, u as We, h as de, i as ce, j as ke, o as Ge, k as ve, t as ee, l as Ce, m as q, n as f, q as ue, v as He, w as je, x as te, y as ze, z as fe, A as ne, B as Ie, C as O, D as m, E as g, F as E, G as Ve, $ as Ke, H as Je, I as B, J as b, K as Re, L as Qe } from "./TournamentLeaderboard-CpJXePmH.js";
1
+ import { L as Xe, M as Ee, d as De, c as me, a as Le, N as V, b as X, r as Se, s as le, u as We, e as de, f as ce, g as ke, O as Ge, j as ve, t as ee, D as Ce, n as te, o as ge, v as ne, A as He, z as E, p as ze, P as je, l as q, k as f, K as ue, Q as Ve, q as fe, x as Ie, w as O, h as m, y as g, $ as Ke, B as Je, C as B, m as b, R as Re, S as Qe } from "./TournamentLeaderboard-ZeddBG1C.js";
2
2
  typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
3
  }, globalThis.customElements = { define() {
4
4
  }, get() {
@@ -96,7 +96,7 @@ var we = { exports: {} };
96
96
  (function(l, d) {
97
97
  k.exports = d();
98
98
  })(Xe, function() {
99
- var l, d, M = 1e3, s = 6e4, p = 36e5, u = 864e5, Y = 31536e6, V = 2628e6, h = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, Q = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, y = { years: Y, months: V, days: u, hours: p, minutes: s, seconds: M, milliseconds: 1, weeks: 6048e5 }, G = function(r) {
99
+ var l, d, M = 1e3, s = 6e4, p = 36e5, u = 864e5, Y = 31536e6, I = 2628e6, h = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, Q = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, y = { years: Y, months: I, days: u, hours: p, minutes: s, seconds: M, milliseconds: 1, weeks: 6048e5 }, G = function(r) {
100
100
  return r instanceof C;
101
101
  }, N = function(r, t, e) {
102
102
  return new C(r, e, t.$l);
@@ -137,7 +137,7 @@ var we = { exports: {} };
137
137
  }, 0);
138
138
  }, t.parseFromMilliseconds = function() {
139
139
  var e = this.$ms;
140
- this.$d.years = Z(e / Y), e %= Y, this.$d.months = Z(e / V), e %= V, this.$d.days = Z(e / u), e %= u, this.$d.hours = Z(e / p), e %= p, this.$d.minutes = Z(e / s), e %= s, this.$d.seconds = Z(e / M), e %= M, this.$d.milliseconds = e;
140
+ this.$d.years = Z(e / Y), e %= Y, this.$d.months = Z(e / I), e %= I, this.$d.days = Z(e / u), e %= u, this.$d.hours = Z(e / p), e %= p, this.$d.minutes = Z(e / s), e %= s, this.$d.seconds = Z(e / M), e %= M, this.$d.milliseconds = e;
141
141
  }, t.toISOString = function() {
142
142
  var e = P(this.$d.years, "Y"), n = P(this.$d.months, "M"), i = +this.$d.days || 0;
143
143
  this.$d.weeks && (i += 7 * this.$d.weeks);
@@ -231,30 +231,30 @@ const nt = {
231
231
  .svelte-6xk5v3::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}:host {height:100%;}.Hidden.svelte-6xk5v3 {display:none;}.TournamentGamesWrapper.svelte-6xk5v3 {display:grid;gap:12px;grid-template-columns:repeat(auto-fit, minmax(min(150px, 100%), 1fr));}.TournamentDetailsWrapper.svelte-6xk5v3 {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px 16px 0 16px;height:100%;display:flex;flex-direction:column;.TournamentImageWrapper:where(.svelte-6xk5v3) {position:relative;border-radius:14px;background-color:var(--emw-color-bg-primary, #212121);max-width:370px;.StatusBadgesWrapper:where(.svelte-6xk5v3) {position:absolute;top:10px;right:10px;display:flex;gap:10px;.StatusBadge:where(.svelte-6xk5v3) {background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);font-size:14px;border-radius:14px;padding:5px 10px;z-index:1;&.Live {background-color:var(--emw-color-green, #2DCB70);}&.Upcoming {background-color:var(--emw-color-green, #5A88D7);}&.Ended {background-color:var(--emw-color-green, #F3514B);}}}img:where(.svelte-6xk5v3) {border-radius:6px;width:100%;min-height:200px;height:200px;object-fit:cover;}}.TournamentDetails:where(.svelte-6xk5v3) {color:var(--emw-color-typography, #ffffff);margin-top:10px;display:flex;flex-direction:column;gap:10px;flex:1;justify-content:space-between;.TournamentStartDate:where(.svelte-6xk5v3) {font-size:12px;opacity:70%;font-weight:300;}.TournamentTitle:where(.svelte-6xk5v3) {font-size:20px;font-weight:500;word-wrap:break-word;}.TournamentCriteria:where(.svelte-6xk5v3) {font-size:12px;opacity:70%;font-weight:200;padding:0;margin:0;}}.ViewPrizesContainer:where(.svelte-6xk5v3) {display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:100%;margin:10px 0;padding:10px;p:where(.svelte-6xk5v3) {opacity:70%;font-size:14px;font-weight:400;max-width:55%;word-wrap:break-word;}.ViewPrizeButton:where(.svelte-6xk5v3) {background-color:transparent;border-radius:6px;color:var(--emw-color-typography, #ffffff);border:1px solid var(--emw-color-primary, #FF1D4E);padding:6px 12px;display:flex;align-items:center;font-size:12px;margin-left:6px;transition:background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;&:hover {box-shadow:0 0 8px 0px var(--emw-color-primary, #FF1D4E);transform:scale(1.05);cursor:pointer;}&:active {transform:scale(0.95);}svg:where(.svelte-6xk5v3) {margin-left:5px;justify-self:center;}}}.TimeSegment:where(.svelte-6xk5v3) {background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);padding:6px;border-radius:6px;}.TimeToEndTournament:where(.svelte-6xk5v3) > p:where(.svelte-6xk5v3) {margin-bottom:6px;font-size:12px;font-weight:400;opacity:70%;}.TimeToEndTournament:where(.svelte-6xk5v3) {display:flex;flex-direction:column;gap:6px;}.ViewDetailsButton:where(.svelte-6xk5v3) {width:100%;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;}}`
232
232
  };
233
233
  function he(k, z) {
234
- ge(z, !0), Le(k, nt);
235
- const l = () => Ie(Ke, "$_", d), [d, M] = Ve();
236
- I.extend($e);
234
+ ze(z, !0), Le(k, nt);
235
+ const l = () => Ie(Ke, "$_", d), [d, M] = He();
236
+ V.extend($e);
237
237
  const s = X(z, "tournament"), p = X(z, "language", 7, "en"), u = X(z, "enrolled"), Y = X(z, "translationurl");
238
238
  Se(Ue), le(p());
239
- const V = () => {
239
+ const I = () => {
240
240
  le(p());
241
241
  };
242
242
  We(() => {
243
243
  Y() && Je(Y());
244
244
  }), de(() => {
245
- V();
245
+ I();
246
246
  });
247
247
  let h = ce(ke({})), Q = ce(!1), y;
248
248
  const G = () => {
249
249
  if (!s()) return;
250
- const o = I();
251
- if (I(s().endTime).isBefore(o)) {
250
+ const o = V();
251
+ if (V(s().endTime).isBefore(o)) {
252
252
  fe(Q, !0);
253
253
  return;
254
254
  } else
255
255
  N(), y = setInterval(N, 1e3);
256
256
  }, N = () => {
257
- const o = I(), A = I(s().endTime).diff(o), T = I.duration(A), j = Math.floor(T.asDays()), S = T.hours(), R = T.minutes(), W = T.seconds();
257
+ const o = V(), A = V(s().endTime).diff(o), T = V.duration(A), j = Math.floor(T.asDays()), S = T.hours(), R = T.minutes(), W = T.seconds();
258
258
  fe(
259
259
  h,
260
260
  {
@@ -341,20 +341,20 @@ function he(k, z) {
341
341
  var re = m(se, 2), ae = O(re), Te = g(ae), _ = m(ae, 2), Me = O(_);
342
342
  Re(), B(_), B(re), B(i), B(K), ee(
343
343
  (o, x, A, T, j, S, R, W) => {
344
- q(H, 1, `StatusBadge ${D[s().state]}`, "svelte-6xk5v3"), f(r, o), ue(n, "src", s()?.thumbnail?.length > 0 ? s()?.thumbnail : Fe), ue(n, "fetchpriority", s()?.thumbnail?.length > 0 ? "high" : "auto"), He(n, s().state === "Closed" && "filter: saturate(20%)"), f(c, `${x ?? ""} ${A ?? ""}`), f(w, s().nameOrTitle), f($, `${T ?? ""}: ${j ?? ""}`), f(pe, `(${S ?? ""} ${s().minBetCount ?? ""})`), f(Te, `${R ?? ""}: ${s().prizes[0].name ?? ""}`), f(Me, `${W ?? ""} `);
344
+ q(H, 1, `StatusBadge ${D[s().state]}`, "svelte-6xk5v3"), f(r, o), ue(n, "src", s()?.thumbnail?.length > 0 ? s()?.thumbnail : Fe), ue(n, "fetchpriority", s()?.thumbnail?.length > 0 ? "high" : "auto"), Ve(n, s().state === "Closed" && "filter: saturate(20%)"), f(c, `${x ?? ""} ${A ?? ""}`), f(w, s().nameOrTitle), f($, `${T ?? ""}: ${j ?? ""}`), f(pe, `(${S ?? ""} ${s().minBetCount ?? ""})`), f(Te, `${R ?? ""}: ${s().prizes[0].name ?? ""}`), f(Me, `${W ?? ""} `);
345
345
  },
346
346
  [
347
347
  () => l()(s().state),
348
348
  () => l()("startDateLabel"),
349
- () => Ce(s().startTime),
349
+ () => je(s().startTime),
350
350
  () => l()("scoreCriteria"),
351
351
  () => l()(`${s().scoreCriteria}`),
352
352
  () => l()("minbet"),
353
353
  () => l()("topPrize"),
354
354
  () => l()("viewPrizes")
355
355
  ]
356
- ), je("click", _, U), te(k, K);
357
- var ye = ze(Z);
356
+ ), Ce("click", _, U), te(k, K);
357
+ var ye = ge(Z);
358
358
  return M(), ye;
359
359
  }
360
360
  De(["click"]);
@@ -371,7 +371,7 @@ me(
371
371
  { mode: "open" }
372
372
  );
373
373
  function xe(k, z) {
374
- ge(z, !0);
374
+ ze(z, !0);
375
375
  let l = X(z, "tournament"), d = X(z, "language", 7, "en"), M = X(z, "translationurl"), s = X(z, "enrolled");
376
376
  var p = {
377
377
  get tournament() {
@@ -412,7 +412,7 @@ function xe(k, z) {
412
412
  get translationurl() {
413
413
  return M();
414
414
  }
415
- }), ze(p);
415
+ }), ge(p);
416
416
  }
417
417
  customElements.define("tournament-details", me(
418
418
  xe,