@mjsz-vbr-elements/core 2.3.8 → 2.4.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.
- package/dist/{AdditionalStandingsText-DbEQVH0C.js → AdditionalStandingsText-Cj3Q7dcW.js} +611 -506
- package/dist/columns.js +1 -1
- package/dist/components.js +13 -12
- package/dist/composables.js +29 -35
- package/dist/constants.js +1 -1
- package/dist/{convert-BEp1U263.js → convert-PUna7fen.js} +134 -128
- package/dist/datetime-BzdN4htO.js +1272 -0
- 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 +104 -94
- package/dist/{useAdditionalText-B4_ntvb_.js → useAdditionalText-D1LaWU-i.js} +214 -227
- package/dist/utils.js +60 -48
- package/package.json +10 -9
- package/dist/datetime-C3O51pdW.js +0 -1224
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.4.1 - 10/08/2024, 13:04:39
|
|
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,
|
|
8
|
+
import { SORT_STATE_ORIGINAL as j, SORT_STATE_ASCEND as F } from "./constants.js";
|
|
9
|
+
import { C as p, L as S, D as v, I as h, _ as f, w as g, x as R, M as O, J as c, N as T, O as M, K as N, P as U, Q as G, R as k, S as H, T as X, U as q, V as K, B as A, F as Y, H as J, f as m, c as C, b as Q, a as V } from "./datetime-BzdN4htO.js";
|
|
10
10
|
var Z = /* @__PURE__ */ p(function(e, r) {
|
|
11
11
|
if (e === r)
|
|
12
12
|
return r;
|
|
@@ -14,38 +14,38 @@ var Z = /* @__PURE__ */ p(function(e, r) {
|
|
|
14
14
|
if (o > l != l > o)
|
|
15
15
|
return l > o ? l : o;
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
17
|
+
var s = n(e, r);
|
|
18
|
+
if (s !== void 0)
|
|
19
|
+
return s;
|
|
20
20
|
var u = n(typeof e, typeof r);
|
|
21
21
|
if (u !== void 0)
|
|
22
22
|
return u === typeof e ? e : r;
|
|
23
|
-
var
|
|
24
|
-
return i !== void 0 && i ===
|
|
23
|
+
var a = S(e), i = n(a, S(r));
|
|
24
|
+
return i !== void 0 && i === a ? e : r;
|
|
25
25
|
}), z = /* @__PURE__ */ p(function(e, r) {
|
|
26
26
|
return v(h(e), r);
|
|
27
27
|
}), w = /* @__PURE__ */ f(function(e) {
|
|
28
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
29
|
}), D = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
30
30
|
function ee(t, e, r) {
|
|
31
|
-
return function(
|
|
32
|
-
if (w(
|
|
33
|
-
return t(
|
|
34
|
-
if (
|
|
31
|
+
return function(s, u, a) {
|
|
32
|
+
if (w(a))
|
|
33
|
+
return t(s, u, a);
|
|
34
|
+
if (a == null)
|
|
35
35
|
return u;
|
|
36
|
-
if (typeof
|
|
37
|
-
return e(
|
|
38
|
-
if (
|
|
39
|
-
return r(
|
|
40
|
-
if (typeof
|
|
41
|
-
return r(
|
|
42
|
-
if (typeof
|
|
43
|
-
return e(
|
|
36
|
+
if (typeof a["fantasy-land/reduce"] == "function")
|
|
37
|
+
return e(s, u, a, "fantasy-land/reduce");
|
|
38
|
+
if (a[D] != null)
|
|
39
|
+
return r(s, u, a[D]());
|
|
40
|
+
if (typeof a.next == "function")
|
|
41
|
+
return r(s, u, a);
|
|
42
|
+
if (typeof a.reduce == "function")
|
|
43
|
+
return e(s, u, a, "reduce");
|
|
44
44
|
throw new TypeError("reduce: list must be array or iterable");
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
function te(t, e, r) {
|
|
48
|
-
for (var n = 0,
|
|
48
|
+
for (var n = 0, s = r.length; n < s; ) {
|
|
49
49
|
if (e = t["@@transducer/step"](e, r[n]), e && e["@@transducer/reduced"]) {
|
|
50
50
|
e = e["@@transducer/value"];
|
|
51
51
|
break;
|
|
@@ -69,10 +69,10 @@ function ne(t, e, r) {
|
|
|
69
69
|
}
|
|
70
70
|
return t["@@transducer/result"](e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function se(t, e, r, n) {
|
|
73
73
|
return t["@@transducer/result"](r[n](re(t["@@transducer/step"], t), e));
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var x = /* @__PURE__ */ ee(te, se, ne), ae = /* @__PURE__ */ function() {
|
|
76
76
|
function t(e) {
|
|
77
77
|
this.f = e;
|
|
78
78
|
}
|
|
@@ -84,11 +84,11 @@ var E = /* @__PURE__ */ ee(te, ae, ne), se = /* @__PURE__ */ function() {
|
|
|
84
84
|
return this.f(e, r);
|
|
85
85
|
}, t;
|
|
86
86
|
}();
|
|
87
|
-
function
|
|
88
|
-
return new
|
|
87
|
+
function E(t) {
|
|
88
|
+
return new ae(t);
|
|
89
89
|
}
|
|
90
90
|
var $ = /* @__PURE__ */ c(function(t, e, r) {
|
|
91
|
-
return
|
|
91
|
+
return x(typeof t == "function" ? E(t) : t, e, r);
|
|
92
92
|
}), I = /* @__PURE__ */ f(function(e) {
|
|
93
93
|
return function() {
|
|
94
94
|
return e;
|
|
@@ -103,49 +103,51 @@ var $ = /* @__PURE__ */ c(function(t, e, r) {
|
|
|
103
103
|
return !1;
|
|
104
104
|
});
|
|
105
105
|
}), y = /* @__PURE__ */ c(function(e, r, n) {
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var s = e(r), u = e(n);
|
|
107
|
+
return s < u ? -1 : s > u ? 1 : 0;
|
|
108
|
+
}), ie = /* @__PURE__ */ f(function(e) {
|
|
109
|
+
return T(e.length, e);
|
|
108
110
|
});
|
|
109
|
-
function
|
|
111
|
+
function ce(t, e, r) {
|
|
110
112
|
if (M(t) && g(r)) {
|
|
111
113
|
var n = [].concat(r);
|
|
112
114
|
return n[t] = e, n;
|
|
113
115
|
}
|
|
114
|
-
var
|
|
116
|
+
var s = {};
|
|
115
117
|
for (var u in r)
|
|
116
|
-
|
|
117
|
-
return
|
|
118
|
+
s[u] = r[u];
|
|
119
|
+
return s[t] = e, s;
|
|
118
120
|
}
|
|
119
|
-
var
|
|
121
|
+
var oe = /* @__PURE__ */ f(function(e) {
|
|
120
122
|
return e == null;
|
|
121
|
-
}),
|
|
123
|
+
}), le = /* @__PURE__ */ c(function t(e, r, n) {
|
|
122
124
|
if (e.length === 0)
|
|
123
125
|
return r;
|
|
124
|
-
var
|
|
126
|
+
var s = e[0];
|
|
125
127
|
if (e.length > 1) {
|
|
126
|
-
var u = !
|
|
128
|
+
var u = !oe(n) && N(s, n) && typeof n[s] == "object" ? n[s] : M(e[1]) ? [] : {};
|
|
127
129
|
r = t(Array.prototype.slice.call(e, 1), r, u);
|
|
128
130
|
}
|
|
129
|
-
return
|
|
130
|
-
}),
|
|
131
|
-
return
|
|
131
|
+
return ce(s, r, n);
|
|
132
|
+
}), pe = /* @__PURE__ */ c(function(e, r, n) {
|
|
133
|
+
return le([e], r, n);
|
|
132
134
|
});
|
|
133
|
-
function
|
|
135
|
+
function fe(t) {
|
|
134
136
|
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" : ""));
|
|
135
137
|
}
|
|
136
138
|
function B(t, e, r) {
|
|
137
|
-
if (r || (r = new
|
|
139
|
+
if (r || (r = new me()), he(t))
|
|
138
140
|
return t;
|
|
139
141
|
var n = function(u) {
|
|
140
|
-
var
|
|
141
|
-
if (
|
|
142
|
-
return
|
|
142
|
+
var a = r.get(t);
|
|
143
|
+
if (a)
|
|
144
|
+
return a;
|
|
143
145
|
r.set(t, u);
|
|
144
146
|
for (var i in t)
|
|
145
147
|
Object.prototype.hasOwnProperty.call(t, i) && (u[i] = t[i]);
|
|
146
148
|
return u;
|
|
147
149
|
};
|
|
148
|
-
switch (
|
|
150
|
+
switch (U(t)) {
|
|
149
151
|
case "Object":
|
|
150
152
|
return n(Object.create(Object.getPrototypeOf(t)));
|
|
151
153
|
case "Array":
|
|
@@ -153,7 +155,7 @@ function B(t, e, r) {
|
|
|
153
155
|
case "Date":
|
|
154
156
|
return new Date(t.valueOf());
|
|
155
157
|
case "RegExp":
|
|
156
|
-
return
|
|
158
|
+
return fe(t);
|
|
157
159
|
case "Int8Array":
|
|
158
160
|
case "Uint8Array":
|
|
159
161
|
case "Uint8ClampedArray":
|
|
@@ -170,17 +172,17 @@ function B(t, e, r) {
|
|
|
170
172
|
return t;
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
|
-
function
|
|
175
|
+
function he(t) {
|
|
174
176
|
var e = typeof t;
|
|
175
177
|
return t == null || e != "object" && e != "function";
|
|
176
178
|
}
|
|
177
|
-
var
|
|
179
|
+
var me = /* @__PURE__ */ function() {
|
|
178
180
|
function t() {
|
|
179
181
|
this.map = {}, this.length = 0;
|
|
180
182
|
}
|
|
181
183
|
return t.prototype.set = function(e, r) {
|
|
182
|
-
var n = this.hash(e),
|
|
183
|
-
|
|
184
|
+
var n = this.hash(e), s = this.map[n];
|
|
185
|
+
s || (this.map[n] = s = []), s.push([e, r]), this.length += 1;
|
|
184
186
|
}, t.prototype.hash = function(e) {
|
|
185
187
|
var r = [];
|
|
186
188
|
for (var n in e)
|
|
@@ -189,23 +191,23 @@ var he = /* @__PURE__ */ function() {
|
|
|
189
191
|
}, t.prototype.get = function(e) {
|
|
190
192
|
if (this.length <= 180) {
|
|
191
193
|
for (var r in this.map)
|
|
192
|
-
for (var
|
|
193
|
-
var
|
|
194
|
-
if (
|
|
195
|
-
return
|
|
194
|
+
for (var a = this.map[r], n = 0; n < a.length; n += 1) {
|
|
195
|
+
var s = a[n];
|
|
196
|
+
if (s[0] === e)
|
|
197
|
+
return s[1];
|
|
196
198
|
}
|
|
197
199
|
return;
|
|
198
200
|
}
|
|
199
|
-
var u = this.hash(e),
|
|
200
|
-
if (
|
|
201
|
-
for (var n = 0; n <
|
|
202
|
-
var
|
|
203
|
-
if (
|
|
204
|
-
return
|
|
201
|
+
var u = this.hash(e), a = this.map[u];
|
|
202
|
+
if (a)
|
|
203
|
+
for (var n = 0; n < a.length; n += 1) {
|
|
204
|
+
var s = a[n];
|
|
205
|
+
if (s[0] === e)
|
|
206
|
+
return s[1];
|
|
205
207
|
}
|
|
206
208
|
}, t;
|
|
207
209
|
}();
|
|
208
|
-
function
|
|
210
|
+
function de(t, e) {
|
|
209
211
|
return function() {
|
|
210
212
|
return e.call(this, t.apply(this, arguments));
|
|
211
213
|
};
|
|
@@ -219,29 +221,27 @@ function _(t, e) {
|
|
|
219
221
|
return g(n) || typeof n[t] != "function" ? e.apply(this, arguments) : n[t].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
220
222
|
};
|
|
221
223
|
}
|
|
222
|
-
var
|
|
224
|
+
var ye = /* @__PURE__ */ c(/* @__PURE__ */ _("slice", function(e, r, n) {
|
|
223
225
|
return Array.prototype.slice.call(n, e, r);
|
|
224
|
-
})),
|
|
226
|
+
})), ve = /* @__PURE__ */ f(/* @__PURE__ */ _("tail", /* @__PURE__ */ ye(1, 1 / 0)));
|
|
225
227
|
function d() {
|
|
226
228
|
if (arguments.length === 0)
|
|
227
229
|
throw new Error("pipe requires at least one argument");
|
|
228
|
-
return O(arguments[0].length, $(
|
|
230
|
+
return O(arguments[0].length, $(de, arguments[0], ve(arguments)));
|
|
229
231
|
}
|
|
230
|
-
var
|
|
232
|
+
var ge = /* @__PURE__ */ f(function(e) {
|
|
231
233
|
return R(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
232
234
|
});
|
|
233
235
|
function L() {
|
|
234
236
|
if (arguments.length === 0)
|
|
235
237
|
throw new Error("compose requires at least one argument");
|
|
236
|
-
return d.apply(this,
|
|
238
|
+
return d.apply(this, ge(arguments));
|
|
237
239
|
}
|
|
238
|
-
var
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
function t(e, r, n, a) {
|
|
242
|
-
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = a, this.inputs = {};
|
|
240
|
+
var Te = /* @__PURE__ */ function() {
|
|
241
|
+
function t(e, r, n, s) {
|
|
242
|
+
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = s, this.inputs = {};
|
|
243
243
|
}
|
|
244
|
-
return t.prototype["@@transducer/init"] =
|
|
244
|
+
return t.prototype["@@transducer/init"] = G.init, t.prototype["@@transducer/result"] = function(e) {
|
|
245
245
|
var r;
|
|
246
246
|
for (r in this.inputs)
|
|
247
247
|
if (N(r, this.inputs) && (e = this.xf["@@transducer/step"](e, this.inputs[r]), e["@@transducer/reduced"])) {
|
|
@@ -259,56 +259,55 @@ function Ne(t, e, r) {
|
|
|
259
259
|
return new Te(t, e, r, n);
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Ne, function(e, r, n,
|
|
263
|
-
var u =
|
|
264
|
-
var o = n(i), l = e(N(o,
|
|
265
|
-
return l && l["@@transducer/reduced"] ?
|
|
262
|
+
var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Ne, function(e, r, n, s) {
|
|
263
|
+
var u = E(function(a, i) {
|
|
264
|
+
var o = n(i), l = e(N(o, a) ? a[o] : B(r), i);
|
|
265
|
+
return l && l["@@transducer/reduced"] ? X(a) : (a[o] = l, a);
|
|
266
266
|
});
|
|
267
|
-
return
|
|
267
|
+
return x(u, {}, s);
|
|
268
268
|
})), Se = /* @__PURE__ */ c(function(e, r, n) {
|
|
269
|
-
var
|
|
270
|
-
return
|
|
269
|
+
var s = e(r), u = e(n);
|
|
270
|
+
return s > u ? -1 : s < u ? 1 : 0;
|
|
271
271
|
}), Ae = /* @__PURE__ */ p(/* @__PURE__ */ _("groupBy", /* @__PURE__ */ _e(function(t, e) {
|
|
272
272
|
return t.push(e), t;
|
|
273
273
|
}, []))), De = /* @__PURE__ */ c(function(e, r, n) {
|
|
274
274
|
return T(Math.max(e.length, r.length, n.length), function() {
|
|
275
275
|
return e.apply(this, arguments) ? r.apply(this, arguments) : n.apply(this, arguments);
|
|
276
276
|
});
|
|
277
|
-
}), Ie = /* @__PURE__ */ p(
|
|
277
|
+
}), Ie = /* @__PURE__ */ p(q), be = /* @__PURE__ */ p(function(e, r) {
|
|
278
278
|
return function(n) {
|
|
279
|
-
return function(
|
|
279
|
+
return function(s) {
|
|
280
280
|
return v(function(u) {
|
|
281
|
-
return r(u,
|
|
282
|
-
}, n(e(
|
|
281
|
+
return r(u, s);
|
|
282
|
+
}, n(e(s)));
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
}), Re = /* @__PURE__ */ f(function(e) {
|
|
286
|
-
return be(h(e),
|
|
287
|
-
}),
|
|
286
|
+
return be(h(e), pe(e));
|
|
287
|
+
}), P = function(t) {
|
|
288
288
|
return {
|
|
289
289
|
value: t,
|
|
290
290
|
map: function(e) {
|
|
291
|
-
return
|
|
291
|
+
return P(e(t));
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
}, Oe = /* @__PURE__ */ c(function(e, r, n) {
|
|
295
|
-
return e(function(
|
|
296
|
-
return
|
|
295
|
+
return e(function(s) {
|
|
296
|
+
return P(r(s));
|
|
297
297
|
})(n).value;
|
|
298
298
|
}), Me = /* @__PURE__ */ c(function(e, r, n) {
|
|
299
299
|
return n.replace(e, r);
|
|
300
300
|
}), Ce = /* @__PURE__ */ p(function(e, r) {
|
|
301
301
|
return Array.prototype.slice.call(r, 0).sort(e);
|
|
302
|
-
}),
|
|
303
|
-
return Array.prototype.slice.call(r, 0).sort(function(n,
|
|
304
|
-
for (var u = 0,
|
|
305
|
-
u = e[
|
|
302
|
+
}), W = /* @__PURE__ */ p(function(e, r) {
|
|
303
|
+
return Array.prototype.slice.call(r, 0).sort(function(n, s) {
|
|
304
|
+
for (var u = 0, a = 0; u === 0 && a < e.length; )
|
|
305
|
+
u = e[a](n, s), a += 1;
|
|
306
306
|
return u;
|
|
307
307
|
});
|
|
308
308
|
}), b = /* @__PURE__ */ K(0, "toLowerCase");
|
|
309
|
-
const
|
|
310
|
-
if (!t)
|
|
311
|
-
return;
|
|
309
|
+
const je = (t, e = "body") => {
|
|
310
|
+
if (!t) return;
|
|
312
311
|
if (typeof e != "string") {
|
|
313
312
|
e == null || e.append(t);
|
|
314
313
|
return;
|
|
@@ -318,17 +317,17 @@ const We = (t, e = "body") => {
|
|
|
318
317
|
};
|
|
319
318
|
class Fe extends Error {
|
|
320
319
|
constructor(e, r = {}) {
|
|
321
|
-
const { key: n, cause:
|
|
322
|
-
super(e), this.name = "WidgetError", this.key = n, this.cause =
|
|
320
|
+
const { key: n, cause: s } = r;
|
|
321
|
+
super(e), this.name = "WidgetError", this.key = n, this.cause = s;
|
|
323
322
|
}
|
|
324
323
|
}
|
|
325
|
-
const
|
|
324
|
+
const Ue = {
|
|
326
325
|
message: "Undefined Column name Message",
|
|
327
326
|
options: {
|
|
328
327
|
key: "undefined-column",
|
|
329
328
|
cause: {}
|
|
330
329
|
}
|
|
331
|
-
},
|
|
330
|
+
}, Ge = {
|
|
332
331
|
message: "Invalid season name",
|
|
333
332
|
options: {
|
|
334
333
|
key: "invalid-season-name",
|
|
@@ -341,31 +340,29 @@ const Ge = {
|
|
|
341
340
|
value() {
|
|
342
341
|
return {
|
|
343
342
|
rows: this.result,
|
|
344
|
-
totalItems: this.filteredRowsLength,
|
|
345
|
-
|
|
343
|
+
totalItems: this.isFiltered ? this.filteredRowsLength : t.length,
|
|
344
|
+
currentItems: this.currentItems
|
|
346
345
|
};
|
|
347
346
|
},
|
|
348
347
|
filter(e, r = [], n = !1) {
|
|
349
348
|
if (e) {
|
|
350
|
-
const
|
|
349
|
+
const s = r.map(
|
|
351
350
|
(i) => n ? d(Y(i), A(e)) : d(h(i), b, Ie(b(e)))
|
|
352
|
-
), u =
|
|
353
|
-
this.isFiltered = !0, this.filteredRowsLength =
|
|
351
|
+
), u = ie((i) => i.name ? Oe(Re("name"), Me(",", ""), i) : i), a = J(d(u, ue([...s])), this.result);
|
|
352
|
+
this.isFiltered = !0, this.filteredRowsLength = a.length, this.result = a;
|
|
354
353
|
}
|
|
355
354
|
return this;
|
|
356
355
|
},
|
|
357
356
|
sorted(e) {
|
|
358
|
-
if (!e.sortTarget)
|
|
359
|
-
|
|
360
|
-
if (e.orders[0].direction === W)
|
|
361
|
-
return this;
|
|
357
|
+
if (!e.sortTarget) return this;
|
|
358
|
+
if (e.orders[0].direction === j) return this;
|
|
362
359
|
const r = De(A(F), I(y), I(Se));
|
|
363
|
-
return this.result =
|
|
360
|
+
return this.result = W(e.orders.map((n) => L(r(n.direction), h)(n.target)))(this.result), this;
|
|
364
361
|
},
|
|
365
362
|
addIndex(e = null) {
|
|
366
|
-
return this.result.reduce((r, n,
|
|
367
|
-
const u = r[r.length - 1] || [],
|
|
368
|
-
return n.index =
|
|
363
|
+
return this.result.reduce((r, n, s) => {
|
|
364
|
+
const u = r[r.length - 1] || [], a = e && u[e] === n[e];
|
|
365
|
+
return n.index = a ? u.index : s + 1, n.indexClass = a ? "is-duplicated" : null, r.push(n), r;
|
|
369
366
|
}, []), this;
|
|
370
367
|
},
|
|
371
368
|
addContinuousIndex() {
|
|
@@ -375,11 +372,13 @@ const Ge = {
|
|
|
375
372
|
})), this;
|
|
376
373
|
},
|
|
377
374
|
pagination(e, r) {
|
|
378
|
-
if (!r)
|
|
379
|
-
return this;
|
|
375
|
+
if (!r) return this;
|
|
380
376
|
e = Number(e), r = Number(r);
|
|
381
|
-
const n = (e - 1) * r,
|
|
382
|
-
return this.result = this.result.slice(n,
|
|
377
|
+
const n = (e - 1) * r, s = n + r;
|
|
378
|
+
return this.result = this.result.slice(n, s), this;
|
|
379
|
+
},
|
|
380
|
+
more(e, r) {
|
|
381
|
+
return this.result = this.result.slice(Number(e), Number(r)), this;
|
|
383
382
|
},
|
|
384
383
|
playerName() {
|
|
385
384
|
return this.result = this.result.map((e) => ({
|
|
@@ -408,9 +407,9 @@ const Ge = {
|
|
|
408
407
|
return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = C(r[n]) : r), r)), this;
|
|
409
408
|
},
|
|
410
409
|
groupByDays() {
|
|
411
|
-
return this.result = Ae((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
410
|
+
return this.currentItems = this.result.length, this.result = Ae((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
412
411
|
}
|
|
413
|
-
}), He = (t, ...e) => v(L(...e))(t),
|
|
412
|
+
}), He = (t, ...e) => v(L(...e))(t), Xe = (t) => {
|
|
414
413
|
var e, r, n;
|
|
415
414
|
return {
|
|
416
415
|
...t,
|
|
@@ -420,7 +419,7 @@ const Ge = {
|
|
|
420
419
|
name: (n = t.player) != null && n.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}`
|
|
421
420
|
}
|
|
422
421
|
};
|
|
423
|
-
},
|
|
422
|
+
}, qe = (t) => {
|
|
424
423
|
var e;
|
|
425
424
|
return {
|
|
426
425
|
...t,
|
|
@@ -448,7 +447,13 @@ const Ge = {
|
|
|
448
447
|
...e,
|
|
449
448
|
[t]: (r = e[t]) == null ? void 0 : r.toUpperCase()
|
|
450
449
|
};
|
|
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),
|
|
450
|
+
}, 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), tt = (t) => {
|
|
451
|
+
var e, r;
|
|
452
|
+
return {
|
|
453
|
+
...t,
|
|
454
|
+
periodResults: ((r = (e = t.result) == null ? void 0 : e.match(/\(.*?\)/)) == null ? void 0 : r[0]) ?? ""
|
|
455
|
+
};
|
|
456
|
+
}, xe = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), rt = W([xe, y(h("id")), y(h("gameId"))]), Ee = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), nt = Ce(Ee("name"));
|
|
452
457
|
function $e(t) {
|
|
453
458
|
var e;
|
|
454
459
|
return [t.isHomeGame ? null : "@", (e = t.opponent) == null ? void 0 : e.shortName].join(" ");
|
|
@@ -461,7 +466,7 @@ function Le(t) {
|
|
|
461
466
|
const e = t.gameResult.split(":"), r = e[0] > e[1], n = e[0] < e[1];
|
|
462
467
|
return r && t.isOvertime ? "OTW" : r && t.isShootout ? "SOW" : r ? "W" : n && t.isOvertime ? "OTL" : n && t.isShootout ? "SOL" : n ? "L" : "D";
|
|
463
468
|
}
|
|
464
|
-
const
|
|
469
|
+
const st = (t) => t.map((e) => {
|
|
465
470
|
var r, n;
|
|
466
471
|
return {
|
|
467
472
|
phaseId: e.phaseId,
|
|
@@ -475,8 +480,8 @@ const nt = (t) => t.map((e) => {
|
|
|
475
480
|
};
|
|
476
481
|
});
|
|
477
482
|
export {
|
|
478
|
-
|
|
479
|
-
|
|
483
|
+
Ge as I,
|
|
484
|
+
Ue as U,
|
|
480
485
|
Fe as W,
|
|
481
486
|
Ye as a,
|
|
482
487
|
Je as b,
|
|
@@ -487,12 +492,13 @@ export {
|
|
|
487
492
|
Ke as g,
|
|
488
493
|
et as h,
|
|
489
494
|
tt as i,
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
495
|
+
rt as j,
|
|
496
|
+
st as k,
|
|
497
|
+
nt as l,
|
|
498
|
+
je as m,
|
|
499
|
+
Xe as p,
|
|
494
500
|
He as r,
|
|
495
501
|
Ve as s,
|
|
496
|
-
|
|
502
|
+
qe as t,
|
|
497
503
|
Ze as u
|
|
498
504
|
};
|