@mjsz-vbr-elements/core 2.35.0 → 2.36.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/TimezoneSelector-ypwhJVm-.js +1 -1
- package/dist/columns.js +1 -1
- package/dist/components.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/constants.js +8 -8
- package/dist/datetime-B_IKGlWy.js +1 -1
- package/dist/errors-C61Kgyqj.js +1 -1
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +1 -1
- package/dist/props.js +1 -1
- package/dist/useSort-CoM4Br_9.js +1 -1
- package/dist/utils.js +98 -98
- package/package.json +2 -2
package/dist/index.iife.js.br
CHANGED
|
Binary file
|
package/dist/index.iife.js.gz
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
package/dist/props.js
CHANGED
package/dist/useSort-CoM4Br_9.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.36.0 - 16/12/2025, 15:59:58
|
|
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 w, V as F, W as b, T as
|
|
9
|
+
import { X as w, V as F, W as b, T as D, c as $, S as O, E as W, K, i as X, z as j, 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 Te, a1 as ve, r as Re, M as pe, O as Se, a2 as ye, s as Ee, v as _e, q as ge, y as Le, a3 as Ae, U as Ue, J as he, w as ke, C as Ce, j as Ne, L as xe, t as Ie, b as Be, d as Pe, N as Ge, I as Me, R as we, x as Fe, P as be, 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
|
|
12
|
-
import {
|
|
13
|
-
var
|
|
11
|
+
import { n as Oe, b as We, c as Ke, a as Xe, l as je, 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 Ts } from "./datetime-B_IKGlWy.js";
|
|
12
|
+
import { VBR_API_WEBSOCKET_BASE_URL as m, FLAG_BASE_URL as d, DEFAULT_EXTERNAL_GAME_URL as T, DEFAULT_EXTERNAL_TEAM_URL as v, DEFAULT_EXTERNAL_PLAYER_URL as R, DEFAULT_EXTERNAL_STATISTIC_URL as p } from "./constants.js";
|
|
13
|
+
var S = /* @__PURE__ */ f(function(e, t) {
|
|
14
14
|
return Number(e) + Number(t);
|
|
15
15
|
}), g = /* @__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
|
-
}),
|
|
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
|
|
43
|
-
return `${s}`;
|
|
42
|
+
function h(s) {
|
|
43
|
+
return `${m}${s}`;
|
|
44
44
|
}
|
|
45
45
|
const n = (s = "") => window?.__MJSZ_VBR_WIDGET__?.[s];
|
|
46
|
-
function
|
|
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(
|
|
50
|
+
return typeof t == "function" ? t(e) : encodeURI(t ? r(t, e) : r(T, e));
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function C(s, e = {}) {
|
|
53
53
|
const t = n("teamResolver") || s;
|
|
54
54
|
return typeof t == "function" ? t(e) : encodeURI(t ? r(t, e) : r(v, e));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function N(s, e = {}) {
|
|
57
57
|
const t = n("playerResolver") || s;
|
|
58
|
-
return typeof t == "function" ? t(e) : encodeURI(t ? r(t, e) : r(
|
|
58
|
+
return typeof t == "function" ? t(e) : encodeURI(t ? r(t, e) : r(R, e));
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return typeof s == "function" ? s(e) : encodeURI(s ? r(s, e) : r(
|
|
60
|
+
function x(s, e = {}) {
|
|
61
|
+
return typeof s == "function" ? s(e) : encodeURI(s ? r(s, e) : r(p, e));
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
function
|
|
63
|
+
const I = (s, e = "1x1") => `${d}/flag:${s}-${e}.svg`;
|
|
64
|
+
function B(s) {
|
|
65
65
|
return s || (n("apiKey") ? n("apiKey") : "");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function P() {
|
|
68
68
|
window.scrollTo(0, 0);
|
|
69
69
|
}
|
|
70
70
|
export {
|
|
71
71
|
w as InvalidSeasonName,
|
|
72
72
|
F as UndefinedColumn,
|
|
73
73
|
b as WidgetError,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
Oe as addDays,
|
|
75
|
+
D as appendTo,
|
|
76
76
|
g as clone,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
$ as convert,
|
|
78
|
+
O as convertAddress,
|
|
79
|
+
W as convertGameEvents,
|
|
80
|
+
K as convertGameOfficials,
|
|
81
81
|
X as convertGamePeriodResults,
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
We as convertMinToMinSec,
|
|
83
|
+
Ke as convertMinToSec,
|
|
84
84
|
j as convertPenaltyCauseName,
|
|
85
|
-
|
|
85
|
+
V as convertPeriodResults,
|
|
86
86
|
q as convertPeriodResultsToArray,
|
|
87
87
|
z as convertPhaseName,
|
|
88
|
-
|
|
88
|
+
J as convertSeasons,
|
|
89
89
|
Xe as convertSecToMin,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
Y as convertTeams,
|
|
91
|
+
Z as convertTimes,
|
|
92
|
+
H as convertTimesMinToMinSec,
|
|
93
|
+
Q as convertTimesSecToMin,
|
|
94
|
+
U as cookie,
|
|
95
95
|
je as currentWeek,
|
|
96
|
-
|
|
96
|
+
Ve as currentWeekStartEnd,
|
|
97
97
|
qe as endOfMonth,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
k as externalGameLinkResolver,
|
|
99
|
+
N as externalPlayerLinkResolver,
|
|
100
|
+
x as externalStatisticLinkResolver,
|
|
101
|
+
C as externalTeamLinkResolver,
|
|
102
102
|
ze as filterAllowedClasses,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
ee as filterAndSortSections,
|
|
104
|
+
se as filterGoalScorersFromEvents,
|
|
105
|
+
I as flagResolver,
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
+
Te as playerName,
|
|
136
|
+
ls as prop,
|
|
137
137
|
ve as propEq,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
Re as rawConvert,
|
|
139
|
+
fs as reject,
|
|
140
|
+
pe as removeCurrentFromSeasonStats,
|
|
141
|
+
Se as removeUnneededPhases,
|
|
142
|
+
B as resolveApiKey,
|
|
143
|
+
ye as reverse,
|
|
144
|
+
Ee as scheduleOptionalRowClass,
|
|
145
|
+
P as scrollToTop,
|
|
146
|
+
_e as selectFirstPhaseName,
|
|
147
147
|
ge as selectFirstSectionId,
|
|
148
148
|
Le as selectLastSections,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
+
xe as standingTableSort,
|
|
156
|
+
us as startOfMonth,
|
|
157
|
+
ms as subtractDays,
|
|
158
|
+
A as sum,
|
|
159
|
+
Ie as teamName,
|
|
160
|
+
Be as teamOpponent,
|
|
161
|
+
Pe as teamResultType,
|
|
162
162
|
r as templateReplacer,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
ds as toKebabCase,
|
|
164
|
+
Ge as transformCurrentSeasonStats,
|
|
165
|
+
Me as transformEventsForGameTimeline,
|
|
166
166
|
we as transformFieledPlayersStats,
|
|
167
167
|
Fe as transformPlayers,
|
|
168
168
|
be as transformRosters,
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
De as upperCase,
|
|
170
|
+
Ts 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.
|
|
4
|
+
"version": "2.36.0",
|
|
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.
|
|
51
|
+
"@mjsz-vbr-elements/shared": "^2.36.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@vitejs/plugin-vue": "^6.0.0",
|