@mjsz-vbr-elements/core 2.3.6 → 2.3.8
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/{AdditionalStandingsText-BcHECtG0.js → AdditionalStandingsText-DbEQVH0C.js} +679 -666
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +19 -23
- package/dist/constants.js +1 -1
- package/dist/{convert-HKQt4kO3.js → convert-BEp1U263.js} +186 -213
- package/dist/{datetime-BD_lSSC2.js → datetime-C3O51pdW.js} +259 -265
- 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 +5 -5
- package/dist/{useAdditionalText-Ta-GUW7T.js → useAdditionalText-B4_ntvb_.js} +176 -172
- package/dist/utils.js +4 -4
- package/package.json +8 -8
|
@@ -1,53 +1,51 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.3.
|
|
3
|
+
* version: v2.3.8 - 21/05/2024, 10:10:53
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { SORT_STATE_ORIGINAL as
|
|
9
|
-
import { p as
|
|
10
|
-
var Z = /* @__PURE__ */
|
|
8
|
+
import { SORT_STATE_ORIGINAL as W, SORT_STATE_ASCEND as F } from "./constants.js";
|
|
9
|
+
import { p, A as S, q as v, w as h, _ as f, j as g, k as R, B as O, x as c, C as T, D as M, z as N, E as G, F as U, G as k, H, I as q, J as X, K, n as A, r as Y, v as J, f as m, c as C, b as Q, a as V } from "./datetime-C3O51pdW.js";
|
|
10
|
+
var Z = /* @__PURE__ */ p(function(e, r) {
|
|
11
11
|
if (e === r)
|
|
12
12
|
return r;
|
|
13
13
|
function n(o, l) {
|
|
14
14
|
if (o > l != l > o)
|
|
15
15
|
return l > o ? l : o;
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
if (s !== void 0)
|
|
19
|
-
return s;
|
|
20
|
-
var a = n(typeof e, typeof r);
|
|
17
|
+
var a = n(e, r);
|
|
21
18
|
if (a !== void 0)
|
|
22
|
-
return a
|
|
23
|
-
var u =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
19
|
+
return a;
|
|
20
|
+
var u = n(typeof e, typeof r);
|
|
21
|
+
if (u !== void 0)
|
|
22
|
+
return u === typeof e ? e : r;
|
|
23
|
+
var s = S(e), i = n(s, S(r));
|
|
24
|
+
return i !== void 0 && i === s ? e : r;
|
|
25
|
+
}), z = /* @__PURE__ */ p(function(e, r) {
|
|
26
|
+
return v(h(e), r);
|
|
27
|
+
}), w = /* @__PURE__ */ f(function(e) {
|
|
28
|
+
return g(e) ? !0 : !e || typeof e != "object" || R(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
|
|
29
|
+
}), D = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
30
|
+
function ee(t, e, r) {
|
|
31
|
+
return function(a, u, s) {
|
|
32
|
+
if (w(s))
|
|
33
|
+
return t(a, u, s);
|
|
34
|
+
if (s == null)
|
|
35
|
+
return u;
|
|
36
|
+
if (typeof s["fantasy-land/reduce"] == "function")
|
|
37
|
+
return e(a, u, s, "fantasy-land/reduce");
|
|
38
|
+
if (s[D] != null)
|
|
39
|
+
return r(a, u, s[D]());
|
|
40
|
+
if (typeof s.next == "function")
|
|
41
|
+
return r(a, u, s);
|
|
42
|
+
if (typeof s.reduce == "function")
|
|
43
|
+
return e(a, u, s, "reduce");
|
|
46
44
|
throw new TypeError("reduce: list must be array or iterable");
|
|
47
45
|
};
|
|
48
46
|
}
|
|
49
|
-
function
|
|
50
|
-
for (var n = 0,
|
|
47
|
+
function te(t, e, r) {
|
|
48
|
+
for (var n = 0, a = r.length; n < a; ) {
|
|
51
49
|
if (e = t["@@transducer/step"](e, r[n]), e && e["@@transducer/reduced"]) {
|
|
52
50
|
e = e["@@transducer/value"];
|
|
53
51
|
break;
|
|
@@ -56,12 +54,12 @@ function re(t, e, r) {
|
|
|
56
54
|
}
|
|
57
55
|
return t["@@transducer/result"](e);
|
|
58
56
|
}
|
|
59
|
-
var
|
|
60
|
-
return
|
|
57
|
+
var re = /* @__PURE__ */ p(function(e, r) {
|
|
58
|
+
return O(e.length, function() {
|
|
61
59
|
return e.apply(r, arguments);
|
|
62
60
|
});
|
|
63
61
|
});
|
|
64
|
-
function
|
|
62
|
+
function ne(t, e, r) {
|
|
65
63
|
for (var n = r.next(); !n.done; ) {
|
|
66
64
|
if (e = t["@@transducer/step"](e, n.value), e && e["@@transducer/reduced"]) {
|
|
67
65
|
e = e["@@transducer/value"];
|
|
@@ -72,9 +70,9 @@ function se(t, e, r) {
|
|
|
72
70
|
return t["@@transducer/result"](e);
|
|
73
71
|
}
|
|
74
72
|
function ae(t, e, r, n) {
|
|
75
|
-
return t["@@transducer/result"](r[n](
|
|
73
|
+
return t["@@transducer/result"](r[n](re(t["@@transducer/step"], t), e));
|
|
76
74
|
}
|
|
77
|
-
var E = /* @__PURE__ */ te
|
|
75
|
+
var E = /* @__PURE__ */ ee(te, ae, ne), se = /* @__PURE__ */ function() {
|
|
78
76
|
function t(e) {
|
|
79
77
|
this.f = e;
|
|
80
78
|
}
|
|
@@ -87,16 +85,16 @@ var E = /* @__PURE__ */ te(re, ae, se), ue = /* @__PURE__ */ function() {
|
|
|
87
85
|
}, t;
|
|
88
86
|
}();
|
|
89
87
|
function x(t) {
|
|
90
|
-
return new
|
|
88
|
+
return new se(t);
|
|
91
89
|
}
|
|
92
|
-
var
|
|
90
|
+
var $ = /* @__PURE__ */ c(function(t, e, r) {
|
|
93
91
|
return E(typeof t == "function" ? x(t) : t, e, r);
|
|
94
|
-
}),
|
|
92
|
+
}), I = /* @__PURE__ */ f(function(e) {
|
|
95
93
|
return function() {
|
|
96
94
|
return e;
|
|
97
95
|
};
|
|
98
|
-
}),
|
|
99
|
-
return T(
|
|
96
|
+
}), ue = /* @__PURE__ */ f(function(e) {
|
|
97
|
+
return T($(Z, 0, z("length", e)), function() {
|
|
100
98
|
for (var r = 0, n = e.length; r < n; ) {
|
|
101
99
|
if (e[r].apply(this, arguments))
|
|
102
100
|
return !0;
|
|
@@ -105,53 +103,53 @@ var B = /* @__PURE__ */ c(function(t, e, r) {
|
|
|
105
103
|
return !1;
|
|
106
104
|
});
|
|
107
105
|
}), y = /* @__PURE__ */ c(function(e, r, n) {
|
|
108
|
-
var
|
|
109
|
-
return
|
|
106
|
+
var a = e(r), u = e(n);
|
|
107
|
+
return a < u ? -1 : a > u ? 1 : 0;
|
|
110
108
|
});
|
|
111
|
-
function
|
|
112
|
-
if (M(t) &&
|
|
109
|
+
function ie(t, e, r) {
|
|
110
|
+
if (M(t) && g(r)) {
|
|
113
111
|
var n = [].concat(r);
|
|
114
112
|
return n[t] = e, n;
|
|
115
113
|
}
|
|
116
|
-
var
|
|
117
|
-
for (var
|
|
118
|
-
|
|
119
|
-
return
|
|
114
|
+
var a = {};
|
|
115
|
+
for (var u in r)
|
|
116
|
+
a[u] = r[u];
|
|
117
|
+
return a[t] = e, a;
|
|
120
118
|
}
|
|
121
|
-
var
|
|
119
|
+
var ce = /* @__PURE__ */ f(function(e) {
|
|
122
120
|
return e == null;
|
|
123
|
-
}),
|
|
121
|
+
}), oe = /* @__PURE__ */ c(function t(e, r, n) {
|
|
124
122
|
if (e.length === 0)
|
|
125
123
|
return r;
|
|
126
|
-
var
|
|
124
|
+
var a = e[0];
|
|
127
125
|
if (e.length > 1) {
|
|
128
|
-
var
|
|
129
|
-
r = t(Array.prototype.slice.call(e, 1), r,
|
|
126
|
+
var u = !ce(n) && N(a, n) && typeof n[a] == "object" ? n[a] : M(e[1]) ? [] : {};
|
|
127
|
+
r = t(Array.prototype.slice.call(e, 1), r, u);
|
|
130
128
|
}
|
|
131
|
-
return
|
|
132
|
-
}),
|
|
133
|
-
return
|
|
129
|
+
return ie(a, r, n);
|
|
130
|
+
}), le = /* @__PURE__ */ c(function(e, r, n) {
|
|
131
|
+
return oe([e], r, n);
|
|
134
132
|
});
|
|
135
133
|
function pe(t) {
|
|
136
134
|
return new RegExp(t.source, t.flags ? t.flags : (t.global ? "g" : "") + (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.sticky ? "y" : "") + (t.unicode ? "u" : "") + (t.dotAll ? "s" : ""));
|
|
137
135
|
}
|
|
138
|
-
function
|
|
139
|
-
if (r || (r = new
|
|
136
|
+
function B(t, e, r) {
|
|
137
|
+
if (r || (r = new he()), fe(t))
|
|
140
138
|
return t;
|
|
141
|
-
var n = function(
|
|
142
|
-
var
|
|
143
|
-
if (
|
|
144
|
-
return
|
|
145
|
-
r.set(t,
|
|
139
|
+
var n = function(u) {
|
|
140
|
+
var s = r.get(t);
|
|
141
|
+
if (s)
|
|
142
|
+
return s;
|
|
143
|
+
r.set(t, u);
|
|
146
144
|
for (var i in t)
|
|
147
|
-
Object.prototype.hasOwnProperty.call(t, i) && (
|
|
148
|
-
return
|
|
145
|
+
Object.prototype.hasOwnProperty.call(t, i) && (u[i] = t[i]);
|
|
146
|
+
return u;
|
|
149
147
|
};
|
|
150
148
|
switch (G(t)) {
|
|
151
149
|
case "Object":
|
|
152
150
|
return n(Object.create(Object.getPrototypeOf(t)));
|
|
153
151
|
case "Array":
|
|
154
|
-
return n(
|
|
152
|
+
return n(Array(t.length));
|
|
155
153
|
case "Date":
|
|
156
154
|
return new Date(t.valueOf());
|
|
157
155
|
case "RegExp":
|
|
@@ -172,86 +170,76 @@ function _(t, e, r) {
|
|
|
172
170
|
return t;
|
|
173
171
|
}
|
|
174
172
|
}
|
|
175
|
-
function
|
|
173
|
+
function fe(t) {
|
|
176
174
|
var e = typeof t;
|
|
177
175
|
return t == null || e != "object" && e != "function";
|
|
178
176
|
}
|
|
179
|
-
var
|
|
177
|
+
var he = /* @__PURE__ */ function() {
|
|
180
178
|
function t() {
|
|
181
179
|
this.map = {}, this.length = 0;
|
|
182
180
|
}
|
|
183
181
|
return t.prototype.set = function(e, r) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
s || (this.map[n] = s = []), s.push([e, r]), this.length += 1;
|
|
182
|
+
var n = this.hash(e), a = this.map[n];
|
|
183
|
+
a || (this.map[n] = a = []), a.push([e, r]), this.length += 1;
|
|
187
184
|
}, t.prototype.hash = function(e) {
|
|
188
|
-
|
|
185
|
+
var r = [];
|
|
189
186
|
for (var n in e)
|
|
190
187
|
r.push(Object.prototype.toString.call(e[n]));
|
|
191
188
|
return r.join();
|
|
192
189
|
}, t.prototype.get = function(e) {
|
|
193
190
|
if (this.length <= 180) {
|
|
194
|
-
for (
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return i[1];
|
|
191
|
+
for (var r in this.map)
|
|
192
|
+
for (var s = this.map[r], n = 0; n < s.length; n += 1) {
|
|
193
|
+
var a = s[n];
|
|
194
|
+
if (a[0] === e)
|
|
195
|
+
return a[1];
|
|
200
196
|
}
|
|
201
|
-
}
|
|
202
197
|
return;
|
|
203
198
|
}
|
|
204
|
-
|
|
205
|
-
if (
|
|
206
|
-
for (
|
|
207
|
-
|
|
199
|
+
var u = this.hash(e), s = this.map[u];
|
|
200
|
+
if (s)
|
|
201
|
+
for (var n = 0; n < s.length; n += 1) {
|
|
202
|
+
var a = s[n];
|
|
208
203
|
if (a[0] === e)
|
|
209
204
|
return a[1];
|
|
210
205
|
}
|
|
211
206
|
}, t;
|
|
212
207
|
}();
|
|
213
|
-
function
|
|
208
|
+
function me(t, e) {
|
|
214
209
|
return function() {
|
|
215
210
|
return e.call(this, t.apply(this, arguments));
|
|
216
211
|
};
|
|
217
212
|
}
|
|
218
|
-
function
|
|
213
|
+
function _(t, e) {
|
|
219
214
|
return function() {
|
|
220
215
|
var r = arguments.length;
|
|
221
216
|
if (r === 0)
|
|
222
217
|
return e();
|
|
223
218
|
var n = arguments[r - 1];
|
|
224
|
-
return
|
|
219
|
+
return g(n) || typeof n[t] != "function" ? e.apply(this, arguments) : n[t].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
225
220
|
};
|
|
226
221
|
}
|
|
227
|
-
var
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
})
|
|
231
|
-
), ge = /* @__PURE__ */ p(
|
|
232
|
-
/* @__PURE__ */ S(
|
|
233
|
-
"tail",
|
|
234
|
-
/* @__PURE__ */ ye(1, 1 / 0)
|
|
235
|
-
)
|
|
236
|
-
);
|
|
222
|
+
var de = /* @__PURE__ */ c(/* @__PURE__ */ _("slice", function(e, r, n) {
|
|
223
|
+
return Array.prototype.slice.call(n, e, r);
|
|
224
|
+
})), ye = /* @__PURE__ */ f(/* @__PURE__ */ _("tail", /* @__PURE__ */ de(1, 1 / 0)));
|
|
237
225
|
function d() {
|
|
238
226
|
if (arguments.length === 0)
|
|
239
227
|
throw new Error("pipe requires at least one argument");
|
|
240
|
-
return
|
|
228
|
+
return O(arguments[0].length, $(me, arguments[0], ye(arguments)));
|
|
241
229
|
}
|
|
242
|
-
var ve = /* @__PURE__ */
|
|
243
|
-
return
|
|
230
|
+
var ve = /* @__PURE__ */ f(function(e) {
|
|
231
|
+
return R(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
244
232
|
});
|
|
245
233
|
function L() {
|
|
246
234
|
if (arguments.length === 0)
|
|
247
235
|
throw new Error("compose requires at least one argument");
|
|
248
236
|
return d.apply(this, ve(arguments));
|
|
249
237
|
}
|
|
250
|
-
var
|
|
238
|
+
var ge = /* @__PURE__ */ f(function(e) {
|
|
251
239
|
return T(e.length, e);
|
|
252
|
-
}),
|
|
253
|
-
function t(e, r, n,
|
|
254
|
-
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf =
|
|
240
|
+
}), Te = /* @__PURE__ */ function() {
|
|
241
|
+
function t(e, r, n, a) {
|
|
242
|
+
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = a, this.inputs = {};
|
|
255
243
|
}
|
|
256
244
|
return t.prototype["@@transducer/init"] = U.init, t.prototype["@@transducer/result"] = function(e) {
|
|
257
245
|
var r;
|
|
@@ -263,77 +251,62 @@ var Te = /* @__PURE__ */ p(function(e) {
|
|
|
263
251
|
return this.inputs = null, this.xf["@@transducer/result"](e);
|
|
264
252
|
}, t.prototype["@@transducer/step"] = function(e, r) {
|
|
265
253
|
var n = this.keyFn(r);
|
|
266
|
-
return this.inputs[n] = this.inputs[n] || [n,
|
|
254
|
+
return this.inputs[n] = this.inputs[n] || [n, B(this.valueAcc)], this.inputs[n][1] = this.valueFn(this.inputs[n][1], r), e;
|
|
267
255
|
}, t;
|
|
268
256
|
}();
|
|
269
|
-
function
|
|
257
|
+
function Ne(t, e, r) {
|
|
270
258
|
return function(n) {
|
|
271
|
-
return new
|
|
259
|
+
return new Te(t, e, r, n);
|
|
272
260
|
};
|
|
273
261
|
}
|
|
274
|
-
var
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
return s > a ? -1 : s < a ? 1 : 0;
|
|
287
|
-
});
|
|
288
|
-
const De = Ae;
|
|
289
|
-
var Ie = /* @__PURE__ */ f(
|
|
290
|
-
/* @__PURE__ */ S(
|
|
291
|
-
"groupBy",
|
|
292
|
-
/* @__PURE__ */ Se(function(t, e) {
|
|
293
|
-
return t.push(e), t;
|
|
294
|
-
}, [])
|
|
295
|
-
)
|
|
296
|
-
), be = /* @__PURE__ */ c(function(e, r, n) {
|
|
262
|
+
var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Ne, function(e, r, n, a) {
|
|
263
|
+
var u = x(function(s, i) {
|
|
264
|
+
var o = n(i), l = e(N(o, s) ? s[o] : B(r), i);
|
|
265
|
+
return l && l["@@transducer/reduced"] ? q(s) : (s[o] = l, s);
|
|
266
|
+
});
|
|
267
|
+
return E(u, {}, a);
|
|
268
|
+
})), Se = /* @__PURE__ */ c(function(e, r, n) {
|
|
269
|
+
var a = e(r), u = e(n);
|
|
270
|
+
return a > u ? -1 : a < u ? 1 : 0;
|
|
271
|
+
}), Ae = /* @__PURE__ */ p(/* @__PURE__ */ _("groupBy", /* @__PURE__ */ _e(function(t, e) {
|
|
272
|
+
return t.push(e), t;
|
|
273
|
+
}, []))), De = /* @__PURE__ */ c(function(e, r, n) {
|
|
297
274
|
return T(Math.max(e.length, r.length, n.length), function() {
|
|
298
275
|
return e.apply(this, arguments) ? r.apply(this, arguments) : n.apply(this, arguments);
|
|
299
276
|
});
|
|
300
|
-
})
|
|
301
|
-
const Re = be;
|
|
302
|
-
var Oe = /* @__PURE__ */ f(X), $e = /* @__PURE__ */ f(function(e, r) {
|
|
277
|
+
}), Ie = /* @__PURE__ */ p(X), be = /* @__PURE__ */ p(function(e, r) {
|
|
303
278
|
return function(n) {
|
|
304
|
-
return function(
|
|
305
|
-
return
|
|
306
|
-
return r(
|
|
307
|
-
}, n(e(
|
|
279
|
+
return function(a) {
|
|
280
|
+
return v(function(u) {
|
|
281
|
+
return r(u, a);
|
|
282
|
+
}, n(e(a)));
|
|
308
283
|
};
|
|
309
284
|
};
|
|
310
|
-
}),
|
|
311
|
-
return
|
|
312
|
-
}),
|
|
285
|
+
}), Re = /* @__PURE__ */ f(function(e) {
|
|
286
|
+
return be(h(e), le(e));
|
|
287
|
+
}), j = function(t) {
|
|
313
288
|
return {
|
|
314
289
|
value: t,
|
|
315
290
|
map: function(e) {
|
|
316
|
-
return
|
|
291
|
+
return j(e(t));
|
|
317
292
|
}
|
|
318
293
|
};
|
|
319
|
-
},
|
|
320
|
-
return e(function(
|
|
321
|
-
return
|
|
294
|
+
}, Oe = /* @__PURE__ */ c(function(e, r, n) {
|
|
295
|
+
return e(function(a) {
|
|
296
|
+
return j(r(a));
|
|
322
297
|
})(n).value;
|
|
323
|
-
}),
|
|
298
|
+
}), Me = /* @__PURE__ */ c(function(e, r, n) {
|
|
324
299
|
return n.replace(e, r);
|
|
325
|
-
}),
|
|
300
|
+
}), Ce = /* @__PURE__ */ p(function(e, r) {
|
|
326
301
|
return Array.prototype.slice.call(r, 0).sort(e);
|
|
327
|
-
}),
|
|
328
|
-
return Array.prototype.slice.call(r, 0).sort(function(n,
|
|
329
|
-
for (var
|
|
330
|
-
|
|
331
|
-
return
|
|
302
|
+
}), P = /* @__PURE__ */ p(function(e, r) {
|
|
303
|
+
return Array.prototype.slice.call(r, 0).sort(function(n, a) {
|
|
304
|
+
for (var u = 0, s = 0; u === 0 && s < e.length; )
|
|
305
|
+
u = e[s](n, a), s += 1;
|
|
306
|
+
return u;
|
|
332
307
|
});
|
|
333
|
-
});
|
|
334
|
-
const
|
|
335
|
-
var R = /* @__PURE__ */ K(0, "toLowerCase");
|
|
336
|
-
const ke = (t, e = "body") => {
|
|
308
|
+
}), b = /* @__PURE__ */ K(0, "toLowerCase");
|
|
309
|
+
const We = (t, e = "body") => {
|
|
337
310
|
if (!t)
|
|
338
311
|
return;
|
|
339
312
|
if (typeof e != "string") {
|
|
@@ -343,25 +316,25 @@ const ke = (t, e = "body") => {
|
|
|
343
316
|
const r = document.querySelector(e);
|
|
344
317
|
r == null || r.append(t);
|
|
345
318
|
};
|
|
346
|
-
class
|
|
319
|
+
class Fe extends Error {
|
|
347
320
|
constructor(e, r = {}) {
|
|
348
|
-
const { key: n, cause:
|
|
349
|
-
super(e), this.name = "WidgetError", this.key = n, this.cause =
|
|
321
|
+
const { key: n, cause: a } = r;
|
|
322
|
+
super(e), this.name = "WidgetError", this.key = n, this.cause = a;
|
|
350
323
|
}
|
|
351
324
|
}
|
|
352
|
-
const
|
|
325
|
+
const Ge = {
|
|
353
326
|
message: "Undefined Column name Message",
|
|
354
327
|
options: {
|
|
355
328
|
key: "undefined-column",
|
|
356
329
|
cause: {}
|
|
357
330
|
}
|
|
358
|
-
},
|
|
331
|
+
}, Ue = {
|
|
359
332
|
message: "Invalid season name",
|
|
360
333
|
options: {
|
|
361
334
|
key: "invalid-season-name",
|
|
362
335
|
cause: {}
|
|
363
336
|
}
|
|
364
|
-
},
|
|
337
|
+
}, ke = (t = []) => ({
|
|
365
338
|
result: [...t],
|
|
366
339
|
filteredRowsLength: 0,
|
|
367
340
|
isFiltered: !1,
|
|
@@ -374,25 +347,25 @@ const qe = {
|
|
|
374
347
|
},
|
|
375
348
|
filter(e, r = [], n = !1) {
|
|
376
349
|
if (e) {
|
|
377
|
-
const
|
|
378
|
-
(i) => n ? d(Y(i),
|
|
379
|
-
),
|
|
380
|
-
this.isFiltered = !0, this.filteredRowsLength =
|
|
350
|
+
const a = r.map(
|
|
351
|
+
(i) => n ? d(Y(i), A(e)) : d(h(i), b, Ie(b(e)))
|
|
352
|
+
), u = ge((i) => i.name ? Oe(Re("name"), Me(",", ""), i) : i), s = J(d(u, ue([...a])), this.result);
|
|
353
|
+
this.isFiltered = !0, this.filteredRowsLength = s.length, this.result = s;
|
|
381
354
|
}
|
|
382
355
|
return this;
|
|
383
356
|
},
|
|
384
357
|
sorted(e) {
|
|
385
358
|
if (!e.sortTarget)
|
|
386
359
|
return this;
|
|
387
|
-
if (e.orders[0].direction ===
|
|
360
|
+
if (e.orders[0].direction === W)
|
|
388
361
|
return this;
|
|
389
|
-
const r =
|
|
390
|
-
return this.result =
|
|
362
|
+
const r = De(A(F), I(y), I(Se));
|
|
363
|
+
return this.result = P(e.orders.map((n) => L(r(n.direction), h)(n.target)))(this.result), this;
|
|
391
364
|
},
|
|
392
365
|
addIndex(e = null) {
|
|
393
|
-
return this.result.reduce((r, n,
|
|
394
|
-
const
|
|
395
|
-
return n.index =
|
|
366
|
+
return this.result.reduce((r, n, a) => {
|
|
367
|
+
const u = r[r.length - 1] || [], s = e && u[e] === n[e];
|
|
368
|
+
return n.index = s ? u.index : a + 1, n.indexClass = s ? "is-duplicated" : null, r.push(n), r;
|
|
396
369
|
}, []), this;
|
|
397
370
|
},
|
|
398
371
|
addContinuousIndex() {
|
|
@@ -405,8 +378,8 @@ const qe = {
|
|
|
405
378
|
if (!r)
|
|
406
379
|
return this;
|
|
407
380
|
e = Number(e), r = Number(r);
|
|
408
|
-
const n = (e - 1) * r,
|
|
409
|
-
return this.result = this.result.slice(n,
|
|
381
|
+
const n = (e - 1) * r, a = n + r;
|
|
382
|
+
return this.result = this.result.slice(n, a), this;
|
|
410
383
|
},
|
|
411
384
|
playerName() {
|
|
412
385
|
return this.result = this.result.map((e) => ({
|
|
@@ -435,9 +408,9 @@ const qe = {
|
|
|
435
408
|
return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = C(r[n]) : r), r)), this;
|
|
436
409
|
},
|
|
437
410
|
groupByDays() {
|
|
438
|
-
return this.result =
|
|
411
|
+
return this.result = Ae((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
439
412
|
}
|
|
440
|
-
}),
|
|
413
|
+
}), He = (t, ...e) => v(L(...e))(t), qe = (t) => {
|
|
441
414
|
var e, r, n;
|
|
442
415
|
return {
|
|
443
416
|
...t,
|
|
@@ -447,48 +420,48 @@ const qe = {
|
|
|
447
420
|
name: (n = t.player) != null && n.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}`
|
|
448
421
|
}
|
|
449
422
|
};
|
|
450
|
-
},
|
|
423
|
+
}, Xe = (t) => {
|
|
451
424
|
var e;
|
|
452
425
|
return {
|
|
453
426
|
...t,
|
|
454
427
|
...((e = t == null ? void 0 : t.team) == null ? void 0 : e.id) && { teamName: t.team.longName }
|
|
455
428
|
};
|
|
456
|
-
},
|
|
429
|
+
}, Ke = (t = "", e = "hu") => (r) => ({
|
|
457
430
|
...r,
|
|
458
431
|
gameDateDate: m(r.gameDate, "L dddd", t, e),
|
|
459
432
|
gameDateTime: m(r.gameDate, "HH:mm", t, e)
|
|
460
|
-
}),
|
|
433
|
+
}), Ye = (t) => (e) => ({
|
|
461
434
|
...e,
|
|
462
|
-
gameResult:
|
|
463
|
-
}),
|
|
435
|
+
gameResult: Be(e)
|
|
436
|
+
}), Je = (t) => ({
|
|
464
437
|
...t,
|
|
465
|
-
opponent:
|
|
466
|
-
}),
|
|
438
|
+
opponent: $e(t)
|
|
439
|
+
}), Qe = (t) => ({
|
|
467
440
|
...t,
|
|
468
|
-
resultType:
|
|
469
|
-
}),
|
|
441
|
+
resultType: Le(t)
|
|
442
|
+
}), Ve = (t) => ({
|
|
470
443
|
...t,
|
|
471
444
|
rowClasses: t.optional ? "is-optional" : ""
|
|
472
|
-
}),
|
|
445
|
+
}), Ze = (t = []) => (e) => {
|
|
473
446
|
var r;
|
|
474
447
|
return {
|
|
475
448
|
...e,
|
|
476
449
|
[t]: (r = e[t]) == null ? void 0 : r.toUpperCase()
|
|
477
450
|
};
|
|
478
|
-
},
|
|
479
|
-
function
|
|
451
|
+
}, ze = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = C(e[r]) : e), e), we = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Min`] = Q(e[r]) : e), e), et = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = V(e[r])), e), Ee = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), tt = P([Ee, y(h("id")), y(h("gameId"))]), xe = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), rt = Ce(xe("name"));
|
|
452
|
+
function $e(t) {
|
|
480
453
|
var e;
|
|
481
454
|
return [t.isHomeGame ? null : "@", (e = t.opponent) == null ? void 0 : e.shortName].join(" ");
|
|
482
455
|
}
|
|
483
|
-
function
|
|
456
|
+
function Be(t, e) {
|
|
484
457
|
let r = t == null ? void 0 : t.homeTeamScore, n = t == null ? void 0 : t.awayTeamScore;
|
|
485
458
|
return t.isHomeGame || (r = t == null ? void 0 : t.awayTeamScore, n = t == null ? void 0 : t.homeTeamScore), [r, n].join(":");
|
|
486
459
|
}
|
|
487
|
-
function
|
|
460
|
+
function Le(t) {
|
|
488
461
|
const e = t.gameResult.split(":"), r = e[0] > e[1], n = e[0] < e[1];
|
|
489
462
|
return r && t.isOvertime ? "OTW" : r && t.isShootout ? "SOW" : r ? "W" : n && t.isOvertime ? "OTL" : n && t.isShootout ? "SOL" : n ? "L" : "D";
|
|
490
463
|
}
|
|
491
|
-
const
|
|
464
|
+
const nt = (t) => t.map((e) => {
|
|
492
465
|
var r, n;
|
|
493
466
|
return {
|
|
494
467
|
phaseId: e.phaseId,
|
|
@@ -502,24 +475,24 @@ const it = (t) => t.map((e) => {
|
|
|
502
475
|
};
|
|
503
476
|
});
|
|
504
477
|
export {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
478
|
+
Ue as I,
|
|
479
|
+
Ge as U,
|
|
480
|
+
Fe as W,
|
|
481
|
+
Ye as a,
|
|
482
|
+
Je as b,
|
|
483
|
+
ke as c,
|
|
484
|
+
Qe as d,
|
|
485
|
+
ze as e,
|
|
486
|
+
we as f,
|
|
487
|
+
Ke as g,
|
|
488
|
+
et as h,
|
|
489
|
+
tt as i,
|
|
490
|
+
nt as j,
|
|
491
|
+
We as k,
|
|
492
|
+
rt as l,
|
|
493
|
+
qe as p,
|
|
494
|
+
He as r,
|
|
495
|
+
Ve as s,
|
|
496
|
+
Xe as t,
|
|
497
|
+
Ze as u
|
|
525
498
|
};
|