@mjsz-vbr-elements/core 2.34.0 → 2.34.1

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