@mjsz-vbr-elements/core 2.30.1 → 2.31.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.
package/dist/utils.js CHANGED
@@ -1,94 +1,146 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.30.1 - 17/10/2025, 13:31:53
3
+ * version: v2.31.0 - 27/10/2025, 14:23:29
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { I as S, U as y, W as I, m as g, c as M, i as w, k as x, e as N, f as k, h as b, g as D, a as B, l as G, p as h, r as P, s as C, n as W, j as F, t as O, b as $, d as X, u as K } from "./errors-B6O6sS7H.js";
9
- import { v as n } from "./datetime-D600LvsU.js";
10
- import { n as j, b as q, c as z, a as J, l as Y, m as Z, q as H, f as Q, g as ee, j as te, h as oe, d as ne, e as re, i as se, k as ae, t as ie, r as ce, o as le, p as fe, s as ue, u as Re, y as Te } from "./datetime-D600LvsU.js";
11
- import { VBR_API_BASE_URL as s, FLAG_BASE_URL as a, DEFAULT_EXTERNAL_GAME_URL as i, DEFAULT_EXTERNAL_TEAM_URL as c, DEFAULT_EXTERNAL_PLAYER_URL as l, DEFAULT_EXTERNAL_STATISTIC_URL as f } from "./constants.js";
12
- function T(t) {
13
- return `${s.replace(/^https?/, "wss").replace("/vbr", "/socket/vbr")}${t}`;
8
+ import { a4 as n, a5 as i } from "./errors-DHx3LQ6t.js";
9
+ import { X as F, V as G, W as M, T as b, c as k, S as C, E as D, K as O, i as W, z as $, A as X, B as j, k as K, m as V, n as q, e as z, f as J, h as Y, o as Z, G as H, g as Q, a as ee, F as se, Y as ae, D as te, Z as re, l as oe, _ as ne, Q as ie, $ as ce, H as le, a0 as fe, p as me, a1 as ue, r as de, M as ve, O as Re, a2 as Te, s as pe, v as Se, q as ye, y as Ee, a3 as Le, U as _e, J as Ue, w as Ae, C as ge, j as Ne, L as Pe, t as Ie, b as Be, d as he, N as we, I as xe, R as Fe, x as Ge, P as Me, u as be } from "./errors-DHx3LQ6t.js";
10
+ import { E as c, L as o, u as l, B as t } from "./datetime-bWwGbGlR.js";
11
+ import { n as Ce, b as De, c as Oe, a as We, l as $e, m as Xe, q as je, f as Ke, g as Ve, j as qe, h as ze, d as Je, e as Ye, i as Ze, k as He, t as Qe, r as es, o as ss, v as as, w as ts, x as rs, z as os, p as ns, s as is, A as cs, y as ls } from "./datetime-bWwGbGlR.js";
12
+ import { VBR_API_BASE_URL as f, FLAG_BASE_URL as m, DEFAULT_EXTERNAL_GAME_URL as u, DEFAULT_EXTERNAL_TEAM_URL as d, DEFAULT_EXTERNAL_PLAYER_URL as v, DEFAULT_EXTERNAL_STATISTIC_URL as R } from "./constants.js";
13
+ var T = /* @__PURE__ */ c(function(e, a) {
14
+ return Number(e) + Number(a);
15
+ }), E = /* @__PURE__ */ o(function(e) {
16
+ return e != null && typeof e.clone == "function" ? e.clone() : n(e, !0);
17
+ }), L = /* @__PURE__ */ o(function(e) {
18
+ return !l(e);
19
+ }), _ = /* @__PURE__ */ i(T, 0);
20
+ function U(s) {
21
+ return `${f.replace(/^https?/, "wss").replace("/vbr", "/socket/vbr")}${s}`;
14
22
  }
15
- const r = (t = "") => window?.__MJSZ_VBR_WIDGET__?.[t];
16
- function m(t, e = {}) {
23
+ const r = (s = "") => window?.__MJSZ_VBR_WIDGET__?.[s];
24
+ function A(s, e = {}) {
17
25
  if (e.externalGameUrl)
18
26
  return e.externalGameUrl;
19
- const o = r("gameResolver") || t;
20
- return typeof o == "function" ? o(e) : encodeURI(o ? n(o, e) : n(i, e));
27
+ const a = r("gameResolver") || s;
28
+ return typeof a == "function" ? a(e) : encodeURI(a ? t(a, e) : t(u, e));
21
29
  }
22
- function d(t, e = {}) {
23
- const o = r("teamResolver") || t;
24
- return typeof o == "function" ? o(e) : encodeURI(o ? n(o, e) : n(c, e));
30
+ function g(s, e = {}) {
31
+ const a = r("teamResolver") || s;
32
+ return typeof a == "function" ? a(e) : encodeURI(a ? t(a, e) : t(d, e));
25
33
  }
26
- function v(t, e = {}) {
27
- const o = r("playerResolver") || t;
28
- return typeof o == "function" ? o(e) : encodeURI(o ? n(o, e) : n(l, e));
34
+ function N(s, e = {}) {
35
+ const a = r("playerResolver") || s;
36
+ return typeof a == "function" ? a(e) : encodeURI(a ? t(a, e) : t(v, e));
29
37
  }
30
- function U(t, e = {}) {
31
- return typeof t == "function" ? t(e) : encodeURI(t ? n(t, e) : n(f, e));
38
+ function P(s, e = {}) {
39
+ return typeof s == "function" ? s(e) : encodeURI(s ? t(s, e) : t(R, e));
32
40
  }
33
- const _ = (t, e = "1x1") => `${a}/flag:${t}-${e}.svg`;
34
- function L(t) {
35
- return t || (r("apiKey") ? r("apiKey") : "");
41
+ const I = (s, e = "1x1") => `${m}/flag:${s}-${e}.svg`;
42
+ function B(s) {
43
+ return s || (r("apiKey") ? r("apiKey") : "");
36
44
  }
37
- function E() {
45
+ function h() {
38
46
  window.scrollTo(0, 0);
39
47
  }
40
48
  export {
41
- S as InvalidSeasonName,
42
- y as UndefinedColumn,
43
- I as WidgetError,
44
- j as addDays,
45
- g as appendTo,
46
- M as convert,
47
- w as convertGamePeriodResults,
48
- q as convertMinToMinSec,
49
- z as convertMinToSec,
50
- x as convertPhaseName,
51
- J as convertSecToMin,
52
- N as convertTimes,
53
- k as convertTimesMinToMinSec,
54
- b as convertTimesSecToMin,
55
- Y as currentWeek,
56
- Z as currentWeekStartEnd,
57
- H as endOfMonth,
58
- m as externalGameLinkResolver,
59
- v as externalPlayerLinkResolver,
60
- U as externalStatisticLinkResolver,
61
- d as externalTeamLinkResolver,
62
- _ as flagResolver,
63
- Q as format,
64
- D as gameDateTime,
65
- B as gameResult,
66
- ee as getLocalTimezone,
67
- T as getWebsocketURL,
68
- te as isAfter,
69
- oe as isBefore,
70
- ne as isBetween,
71
- re as isSame,
72
- se as isSameOrBefore,
73
- ae as isToday,
74
- G as localeSort,
75
- ie as max,
76
- ce as min,
77
- le as offsetName,
78
- h as playerName,
79
- P as rawConvert,
80
- L as resolveApiKey,
81
- C as scheduleOptionalRowClass,
82
- E as scrollToTop,
83
- W as sortByDomNode,
84
- F as sortGames,
85
- fe as startOfMonth,
86
- ue as subtractDays,
87
- O as teamName,
88
- $ as teamOpponent,
89
- X as teamResultType,
90
- n as templateReplacer,
91
- Re as toKebabCase,
92
- K as upperCase,
93
- Te as yearToNow
49
+ F as InvalidSeasonName,
50
+ G as UndefinedColumn,
51
+ M as WidgetError,
52
+ Ce as addDays,
53
+ b as appendTo,
54
+ E as clone,
55
+ k as convert,
56
+ C as convertAddress,
57
+ D as convertGameEvents,
58
+ O as convertGameOfficials,
59
+ W as convertGamePeriodResults,
60
+ De as convertMinToMinSec,
61
+ Oe as convertMinToSec,
62
+ $ as convertPenaltyCauseName,
63
+ X as convertPeriodResults,
64
+ j as convertPeriodResultsToArray,
65
+ K as convertPhaseName,
66
+ V as convertSeasons,
67
+ We as convertSecToMin,
68
+ q as convertTeams,
69
+ z as convertTimes,
70
+ J as convertTimesMinToMinSec,
71
+ Y as convertTimesSecToMin,
72
+ $e as currentWeek,
73
+ Xe as currentWeekStartEnd,
74
+ je as endOfMonth,
75
+ A as externalGameLinkResolver,
76
+ N as externalPlayerLinkResolver,
77
+ P as externalStatisticLinkResolver,
78
+ g as externalTeamLinkResolver,
79
+ Z as filterAndSortSections,
80
+ H as filterGoalScorersFromEvents,
81
+ I as flagResolver,
82
+ Ke as format,
83
+ Q as gameDateTime,
84
+ ee as gameResult,
85
+ Ve as getLocalTimezone,
86
+ U as getWebsocketURL,
87
+ se as groupLines,
88
+ ae as head,
89
+ qe as isAfter,
90
+ ze as isBefore,
91
+ Je as isBetween,
92
+ l as isEmpty,
93
+ L as isNotEmpty,
94
+ Ye as isSame,
95
+ Ze as isSameOrBefore,
96
+ He as isToday,
97
+ te as joinOfficals,
98
+ re as last,
99
+ oe as localeSort,
100
+ Qe as max,
101
+ ne as mergeLeft,
102
+ ie as mergePlayerStats,
103
+ es as min,
104
+ ss as offsetName,
105
+ as as omit,
106
+ ts as path,
107
+ ce as pick,
108
+ le as pickCoaches,
109
+ fe as pipe,
110
+ me as playerName,
111
+ rs as prop,
112
+ ue as propEq,
113
+ de as rawConvert,
114
+ os as reject,
115
+ ve as removeCurrentFromSeasonStats,
116
+ Re as removeUnneededPhases,
117
+ B as resolveApiKey,
118
+ Te as reverse,
119
+ pe as scheduleOptionalRowClass,
120
+ h as scrollToTop,
121
+ Se as selectFirstPhaseName,
122
+ ye as selectFirstSectionId,
123
+ Ee as selectLastSections,
124
+ Le as sortBy,
125
+ _e as sortByDomNode,
126
+ Ue as sortByEventTimeSec,
127
+ Ae as sortByPhaseId,
128
+ ge as sortByStartingFive,
129
+ Ne as sortGames,
130
+ Pe as standingTableSort,
131
+ ns as startOfMonth,
132
+ is as subtractDays,
133
+ _ as sum,
134
+ Ie as teamName,
135
+ Be as teamOpponent,
136
+ he as teamResultType,
137
+ t as templateReplacer,
138
+ cs as toKebabCase,
139
+ we as transformCurrentSeasonStats,
140
+ xe as transformEventsForGameTimeline,
141
+ Fe as transformFieledPlayersStats,
142
+ Ge as transformPlayers,
143
+ Me as transformRosters,
144
+ be as upperCase,
145
+ ls as yearToNow
94
146
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mjsz-vbr-elements/core",
3
3
  "type": "module",
4
- "version": "2.30.1",
4
+ "version": "2.31.0",
5
5
  "private": false,
6
6
  "description": "Data visualization for MJSZ VBR",
7
7
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
@@ -40,7 +40,7 @@
40
40
  "dayjs": "^1.11.13",
41
41
  "ramda": "^0.31.3",
42
42
  "vue": "^3.5.22",
43
- "@mjsz-vbr-elements/shared": "^2.30.1"
43
+ "@mjsz-vbr-elements/shared": "^2.31.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@vitejs/plugin-vue": "^6.0.0",