@mjsz-vbr-elements/core 2.1.10 → 2.2.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/SeasonSelector-hqWIAEq6.js +2470 -0
- package/dist/columns.js +1 -1
- package/dist/components.js +22 -2462
- package/dist/composables.js +55 -59
- package/dist/constants.js +1 -1
- package/dist/{convert-18c8bb80.js → convert-PMHuZhPy.js} +113 -132
- package/dist/{datetime-2fb02df2.js → datetime-EyEBo0-h.js} +288 -294
- 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 +113 -108
- package/dist/useSort-WcJ_BIws.js +742 -0
- package/dist/utils.js +4 -4
- package/package.json +6 -7
- package/dist/useSort-f443338c.js +0 -745
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.2.0 - 04/01/2024, 13:03:06
|
|
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 f,
|
|
8
|
+
import { SORT_STATE_ORIGINAL as P, SORT_STATE_ASCEND as j } from "./constants.js";
|
|
9
|
+
import { p as f, x as D, q as g, z as h, _ as p, j as v, k as $, A as b, v as c, B as _, C as M, w as T, D as G, E as U, F as H, G as k, H as q, I as X, J as K, n as S, r as Y, K as J, f as m, c as E, b as Q, a as V } from "./datetime-EyEBo0-h.js";
|
|
10
10
|
var Z = /* @__PURE__ */ f(function(e, r) {
|
|
11
11
|
if (e === r)
|
|
12
12
|
return r;
|
|
@@ -20,13 +20,13 @@ var Z = /* @__PURE__ */ f(function(e, r) {
|
|
|
20
20
|
var a = n(typeof e, typeof r);
|
|
21
21
|
if (a !== void 0)
|
|
22
22
|
return a === typeof e ? e : r;
|
|
23
|
-
var u =
|
|
23
|
+
var u = D(e), i = n(u, D(r));
|
|
24
24
|
return i !== void 0 && i === u ? e : r;
|
|
25
25
|
}), z = /* @__PURE__ */ f(function(e, r) {
|
|
26
26
|
return g(h(e), r);
|
|
27
27
|
}), w = /* @__PURE__ */ p(function(e) {
|
|
28
|
-
return v(e) ? !0 : !e || typeof e != "object" ||
|
|
29
|
-
}),
|
|
28
|
+
return v(e) ? !0 : !e || typeof e != "object" || $(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
|
|
29
|
+
}), I = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
30
30
|
function ee(t, e, r) {
|
|
31
31
|
return function(s, a, u) {
|
|
32
32
|
if (w(u))
|
|
@@ -35,8 +35,8 @@ function ee(t, e, r) {
|
|
|
35
35
|
return a;
|
|
36
36
|
if (typeof u["fantasy-land/reduce"] == "function")
|
|
37
37
|
return e(s, a, u, "fantasy-land/reduce");
|
|
38
|
-
if (u[
|
|
39
|
-
return r(s, a, u[
|
|
38
|
+
if (u[I] != null)
|
|
39
|
+
return r(s, a, u[I]());
|
|
40
40
|
if (typeof u.next == "function")
|
|
41
41
|
return r(s, a, u);
|
|
42
42
|
if (typeof u.reduce == "function")
|
|
@@ -84,21 +84,19 @@ var x = /* @__PURE__ */ ee(te, se, ne), ae = /* @__PURE__ */ function() {
|
|
|
84
84
|
return this.f(e, r);
|
|
85
85
|
}, t;
|
|
86
86
|
}();
|
|
87
|
-
function
|
|
87
|
+
function C(t) {
|
|
88
88
|
return new ae(t);
|
|
89
89
|
}
|
|
90
90
|
var ue = /* @__PURE__ */ c(function(t, e, r) {
|
|
91
|
-
return x(typeof t == "function" ?
|
|
91
|
+
return x(typeof t == "function" ? C(t) : t, e, r);
|
|
92
92
|
});
|
|
93
|
-
const
|
|
94
|
-
var
|
|
93
|
+
const B = ue;
|
|
94
|
+
var R = /* @__PURE__ */ p(function(e) {
|
|
95
95
|
return function() {
|
|
96
96
|
return e;
|
|
97
97
|
};
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
var ce = /* @__PURE__ */ p(function(e) {
|
|
101
|
-
return _(C(Z, 0, z("length", e)), function() {
|
|
98
|
+
}), ie = /* @__PURE__ */ p(function(e) {
|
|
99
|
+
return _(B(Z, 0, z("length", e)), function() {
|
|
102
100
|
for (var r = 0, n = e.length; r < n; ) {
|
|
103
101
|
if (e[r].apply(this, arguments))
|
|
104
102
|
return !0;
|
|
@@ -106,14 +104,11 @@ var ce = /* @__PURE__ */ p(function(e) {
|
|
|
106
104
|
}
|
|
107
105
|
return !1;
|
|
108
106
|
});
|
|
109
|
-
})
|
|
110
|
-
const oe = ce;
|
|
111
|
-
var le = /* @__PURE__ */ c(function(e, r, n) {
|
|
107
|
+
}), y = /* @__PURE__ */ c(function(e, r, n) {
|
|
112
108
|
var s = e(r), a = e(n);
|
|
113
109
|
return s < a ? -1 : s > a ? 1 : 0;
|
|
114
110
|
});
|
|
115
|
-
|
|
116
|
-
function fe(t, e, r) {
|
|
111
|
+
function ce(t, e, r) {
|
|
117
112
|
if (M(t) && v(r)) {
|
|
118
113
|
var n = [].concat(r);
|
|
119
114
|
return n[t] = e, n;
|
|
@@ -123,25 +118,25 @@ function fe(t, e, r) {
|
|
|
123
118
|
s[a] = r[a];
|
|
124
119
|
return s[t] = e, s;
|
|
125
120
|
}
|
|
126
|
-
var
|
|
121
|
+
var oe = /* @__PURE__ */ p(function(e) {
|
|
127
122
|
return e == null;
|
|
128
|
-
}),
|
|
123
|
+
}), le = /* @__PURE__ */ c(function t(e, r, n) {
|
|
129
124
|
if (e.length === 0)
|
|
130
125
|
return r;
|
|
131
126
|
var s = e[0];
|
|
132
127
|
if (e.length > 1) {
|
|
133
|
-
var a = !
|
|
128
|
+
var a = !oe(n) && T(s, n) && typeof n[s] == "object" ? n[s] : M(e[1]) ? [] : {};
|
|
134
129
|
r = t(Array.prototype.slice.call(e, 1), r, a);
|
|
135
130
|
}
|
|
136
|
-
return
|
|
137
|
-
}),
|
|
138
|
-
return
|
|
131
|
+
return ce(s, r, n);
|
|
132
|
+
}), fe = /* @__PURE__ */ c(function(e, r, n) {
|
|
133
|
+
return le([e], r, n);
|
|
139
134
|
});
|
|
140
|
-
function
|
|
135
|
+
function pe(t) {
|
|
141
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" : ""));
|
|
142
137
|
}
|
|
143
|
-
function
|
|
144
|
-
if (r || (r = new
|
|
138
|
+
function A(t, e, r) {
|
|
139
|
+
if (r || (r = new me()), he(t))
|
|
145
140
|
return t;
|
|
146
141
|
var n = function(a) {
|
|
147
142
|
var u = r.get(t);
|
|
@@ -149,7 +144,7 @@ function $(t, e, r) {
|
|
|
149
144
|
return u;
|
|
150
145
|
r.set(t, a);
|
|
151
146
|
for (var i in t)
|
|
152
|
-
Object.prototype.hasOwnProperty.call(t, i) && (a[i] = e ?
|
|
147
|
+
Object.prototype.hasOwnProperty.call(t, i) && (a[i] = e ? A(t[i], !0, r) : t[i]);
|
|
153
148
|
return a;
|
|
154
149
|
};
|
|
155
150
|
switch (G(t)) {
|
|
@@ -160,7 +155,7 @@ function $(t, e, r) {
|
|
|
160
155
|
case "Date":
|
|
161
156
|
return new Date(t.valueOf());
|
|
162
157
|
case "RegExp":
|
|
163
|
-
return
|
|
158
|
+
return pe(t);
|
|
164
159
|
case "Int8Array":
|
|
165
160
|
case "Uint8Array":
|
|
166
161
|
case "Uint8ClampedArray":
|
|
@@ -177,11 +172,11 @@ function $(t, e, r) {
|
|
|
177
172
|
return t;
|
|
178
173
|
}
|
|
179
174
|
}
|
|
180
|
-
function
|
|
175
|
+
function he(t) {
|
|
181
176
|
var e = typeof t;
|
|
182
177
|
return t == null || e != "object" && e != "function";
|
|
183
178
|
}
|
|
184
|
-
var
|
|
179
|
+
var me = /* @__PURE__ */ function() {
|
|
185
180
|
function t() {
|
|
186
181
|
this.map = {}, this.length = 0;
|
|
187
182
|
}
|
|
@@ -215,12 +210,12 @@ var ge = /* @__PURE__ */ function() {
|
|
|
215
210
|
}
|
|
216
211
|
}, t;
|
|
217
212
|
}();
|
|
218
|
-
function
|
|
213
|
+
function de(t, e) {
|
|
219
214
|
return function() {
|
|
220
215
|
return e.call(this, t.apply(this, arguments));
|
|
221
216
|
};
|
|
222
217
|
}
|
|
223
|
-
function
|
|
218
|
+
function N(t, e) {
|
|
224
219
|
return function() {
|
|
225
220
|
var r = arguments.length;
|
|
226
221
|
if (r === 0)
|
|
@@ -229,36 +224,34 @@ function A(t, e) {
|
|
|
229
224
|
return v(n) || typeof n[t] != "function" ? e.apply(this, arguments) : n[t].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
230
225
|
};
|
|
231
226
|
}
|
|
232
|
-
var
|
|
233
|
-
/* @__PURE__ */
|
|
227
|
+
var ye = /* @__PURE__ */ c(
|
|
228
|
+
/* @__PURE__ */ N("slice", function(e, r, n) {
|
|
234
229
|
return Array.prototype.slice.call(n, e, r);
|
|
235
230
|
})
|
|
236
|
-
),
|
|
237
|
-
/* @__PURE__ */
|
|
231
|
+
), ge = /* @__PURE__ */ p(
|
|
232
|
+
/* @__PURE__ */ N(
|
|
238
233
|
"tail",
|
|
239
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ ye(1, 1 / 0)
|
|
240
235
|
)
|
|
241
236
|
);
|
|
242
|
-
const
|
|
237
|
+
const ve = ge;
|
|
243
238
|
function d() {
|
|
244
239
|
if (arguments.length === 0)
|
|
245
240
|
throw new Error("pipe requires at least one argument");
|
|
246
|
-
return b(arguments[0].length,
|
|
241
|
+
return b(arguments[0].length, B(de, arguments[0], ve(arguments)));
|
|
247
242
|
}
|
|
248
|
-
var
|
|
249
|
-
return
|
|
243
|
+
var _e = /* @__PURE__ */ p(function(e) {
|
|
244
|
+
return $(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
250
245
|
});
|
|
251
|
-
const
|
|
246
|
+
const Te = _e;
|
|
252
247
|
function L() {
|
|
253
248
|
if (arguments.length === 0)
|
|
254
249
|
throw new Error("compose requires at least one argument");
|
|
255
|
-
return d.apply(this,
|
|
250
|
+
return d.apply(this, Te(arguments));
|
|
256
251
|
}
|
|
257
|
-
var
|
|
252
|
+
var Ae = /* @__PURE__ */ p(function(e) {
|
|
258
253
|
return _(e.length, e);
|
|
259
|
-
})
|
|
260
|
-
const Se = De;
|
|
261
|
-
var Ie = /* @__PURE__ */ function() {
|
|
254
|
+
}), Ne = /* @__PURE__ */ function() {
|
|
262
255
|
function t(e, r, n, s) {
|
|
263
256
|
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = s, this.inputs = {};
|
|
264
257
|
}
|
|
@@ -272,47 +265,43 @@ var Ie = /* @__PURE__ */ function() {
|
|
|
272
265
|
return this.inputs = null, this.xf["@@transducer/result"](e);
|
|
273
266
|
}, t.prototype["@@transducer/step"] = function(e, r) {
|
|
274
267
|
var n = this.keyFn(r);
|
|
275
|
-
return this.inputs[n] = this.inputs[n] || [n,
|
|
268
|
+
return this.inputs[n] = this.inputs[n] || [n, A(this.valueAcc, !1)], this.inputs[n][1] = this.valueFn(this.inputs[n][1], r), e;
|
|
276
269
|
}, t;
|
|
277
270
|
}();
|
|
278
|
-
function
|
|
271
|
+
function De(t, e, r) {
|
|
279
272
|
return function(n) {
|
|
280
|
-
return new
|
|
273
|
+
return new Ne(t, e, r, n);
|
|
281
274
|
};
|
|
282
275
|
}
|
|
283
|
-
var
|
|
276
|
+
var Se = /* @__PURE__ */ H(
|
|
284
277
|
4,
|
|
285
278
|
[],
|
|
286
|
-
/* @__PURE__ */ k([],
|
|
287
|
-
var a =
|
|
288
|
-
var o = n(i), l = e(T(o, u) ? u[o] :
|
|
279
|
+
/* @__PURE__ */ k([], De, function(e, r, n, s) {
|
|
280
|
+
var a = C(function(u, i) {
|
|
281
|
+
var o = n(i), l = e(T(o, u) ? u[o] : A(r, !1), i);
|
|
289
282
|
return l && l["@@transducer/reduced"] ? q(u) : (u[o] = l, u);
|
|
290
283
|
});
|
|
291
284
|
return x(a, {}, s);
|
|
292
285
|
})
|
|
293
|
-
),
|
|
286
|
+
), Ie = /* @__PURE__ */ c(function(e, r, n) {
|
|
294
287
|
var s = e(r), a = e(n);
|
|
295
288
|
return s > a ? -1 : s < a ? 1 : 0;
|
|
296
289
|
});
|
|
297
|
-
const
|
|
298
|
-
var
|
|
299
|
-
/* @__PURE__ */
|
|
290
|
+
const Re = Ie;
|
|
291
|
+
var Oe = /* @__PURE__ */ f(
|
|
292
|
+
/* @__PURE__ */ N(
|
|
300
293
|
"groupBy",
|
|
301
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ Se(function(t, e) {
|
|
302
295
|
return t.push(e), t;
|
|
303
296
|
}, [])
|
|
304
297
|
)
|
|
305
|
-
)
|
|
306
|
-
const xe = Ee;
|
|
307
|
-
var Be = /* @__PURE__ */ c(function(e, r, n) {
|
|
298
|
+
), $e = /* @__PURE__ */ c(function(e, r, n) {
|
|
308
299
|
return _(Math.max(e.length, r.length, n.length), function() {
|
|
309
300
|
return e.apply(this, arguments) ? r.apply(this, arguments) : n.apply(this, arguments);
|
|
310
301
|
});
|
|
311
302
|
});
|
|
312
|
-
const
|
|
313
|
-
var
|
|
314
|
-
const Pe = Le;
|
|
315
|
-
var We = /* @__PURE__ */ f(function(e, r) {
|
|
303
|
+
const be = $e;
|
|
304
|
+
var Me = /* @__PURE__ */ f(X), Ee = /* @__PURE__ */ f(function(e, r) {
|
|
316
305
|
return function(n) {
|
|
317
306
|
return function(s) {
|
|
318
307
|
return g(function(a) {
|
|
@@ -320,41 +309,33 @@ var We = /* @__PURE__ */ f(function(e, r) {
|
|
|
320
309
|
}, n(e(s)));
|
|
321
310
|
};
|
|
322
311
|
};
|
|
323
|
-
}),
|
|
324
|
-
return
|
|
325
|
-
})
|
|
326
|
-
const je = Fe;
|
|
327
|
-
var P = function(t) {
|
|
312
|
+
}), xe = /* @__PURE__ */ p(function(e) {
|
|
313
|
+
return Ee(h(e), fe(e));
|
|
314
|
+
}), W = function(t) {
|
|
328
315
|
return {
|
|
329
316
|
value: t,
|
|
330
317
|
map: function(e) {
|
|
331
|
-
return
|
|
318
|
+
return W(e(t));
|
|
332
319
|
}
|
|
333
320
|
};
|
|
334
|
-
},
|
|
321
|
+
}, Ce = /* @__PURE__ */ c(function(e, r, n) {
|
|
335
322
|
return e(function(s) {
|
|
336
|
-
return
|
|
323
|
+
return W(r(s));
|
|
337
324
|
})(n).value;
|
|
338
|
-
})
|
|
339
|
-
const Ue = Ge;
|
|
340
|
-
var He = /* @__PURE__ */ c(function(e, r, n) {
|
|
325
|
+
}), Be = /* @__PURE__ */ c(function(e, r, n) {
|
|
341
326
|
return n.replace(e, r);
|
|
342
|
-
})
|
|
343
|
-
const ke = He;
|
|
344
|
-
var qe = /* @__PURE__ */ f(function(e, r) {
|
|
327
|
+
}), Le = /* @__PURE__ */ f(function(e, r) {
|
|
345
328
|
return Array.prototype.slice.call(r, 0).sort(e);
|
|
346
|
-
})
|
|
347
|
-
const Xe = qe;
|
|
348
|
-
var Ke = /* @__PURE__ */ f(function(e, r) {
|
|
329
|
+
}), We = /* @__PURE__ */ f(function(e, r) {
|
|
349
330
|
return Array.prototype.slice.call(r, 0).sort(function(n, s) {
|
|
350
331
|
for (var a = 0, u = 0; a === 0 && u < e.length; )
|
|
351
332
|
a = e[u](n, s), u += 1;
|
|
352
333
|
return a;
|
|
353
334
|
});
|
|
354
335
|
});
|
|
355
|
-
const
|
|
356
|
-
var
|
|
357
|
-
const
|
|
336
|
+
const F = We;
|
|
337
|
+
var O = /* @__PURE__ */ K(0, "toLowerCase");
|
|
338
|
+
const qe = (t, e = "body") => {
|
|
358
339
|
if (!t)
|
|
359
340
|
return;
|
|
360
341
|
if (typeof e != "string") {
|
|
@@ -364,25 +345,25 @@ const R = Ye, tt = (t, e = "body") => {
|
|
|
364
345
|
const r = document.querySelector(e);
|
|
365
346
|
r == null || r.append(t);
|
|
366
347
|
};
|
|
367
|
-
class
|
|
348
|
+
class Xe extends Error {
|
|
368
349
|
constructor(e, r = {}) {
|
|
369
350
|
const { key: n, cause: s } = r;
|
|
370
351
|
super(e), this.name = "WidgetError", this.key = n, this.cause = s;
|
|
371
352
|
}
|
|
372
353
|
}
|
|
373
|
-
const
|
|
354
|
+
const Ke = {
|
|
374
355
|
message: "Undefined Column name Message",
|
|
375
356
|
options: {
|
|
376
357
|
key: "undefined-column",
|
|
377
358
|
cause: {}
|
|
378
359
|
}
|
|
379
|
-
},
|
|
360
|
+
}, Ye = {
|
|
380
361
|
message: "Invalid season name",
|
|
381
362
|
options: {
|
|
382
363
|
key: "invalid-season-name",
|
|
383
364
|
cause: {}
|
|
384
365
|
}
|
|
385
|
-
},
|
|
366
|
+
}, Je = (t = []) => ({
|
|
386
367
|
result: [...t],
|
|
387
368
|
filteredRowsLength: 0,
|
|
388
369
|
isFiltered: !1,
|
|
@@ -396,8 +377,8 @@ const nt = {
|
|
|
396
377
|
filter(e, r = [], n = !1) {
|
|
397
378
|
if (e) {
|
|
398
379
|
const s = r.map(
|
|
399
|
-
(i) => n ? d(Y(i),
|
|
400
|
-
), a =
|
|
380
|
+
(i) => n ? d(Y(i), S(e)) : d(h(i), O, Me(O(e)))
|
|
381
|
+
), a = Ae((i) => i.name ? Ce(xe("name"), Be(",", ""), i) : i), u = J(d(a, ie([...s])), this.result);
|
|
401
382
|
this.isFiltered = !0, this.filteredRowsLength = u.length, this.result = u;
|
|
402
383
|
}
|
|
403
384
|
return this;
|
|
@@ -405,10 +386,10 @@ const nt = {
|
|
|
405
386
|
sorted(e) {
|
|
406
387
|
if (!e.sortTarget)
|
|
407
388
|
return this;
|
|
408
|
-
if (e.orders[0].direction ===
|
|
389
|
+
if (e.orders[0].direction === P)
|
|
409
390
|
return this;
|
|
410
|
-
const r =
|
|
411
|
-
return this.result =
|
|
391
|
+
const r = be(S(j), R(y), R(Re));
|
|
392
|
+
return this.result = F(e.orders.map((n) => L(r(n.direction), h)(n.target)))(this.result), this;
|
|
412
393
|
},
|
|
413
394
|
addIndex(e = null) {
|
|
414
395
|
return this.result.reduce((r, n, s) => {
|
|
@@ -456,9 +437,9 @@ const nt = {
|
|
|
456
437
|
return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = E(r[n]) : r), r)), this;
|
|
457
438
|
},
|
|
458
439
|
groupByDays() {
|
|
459
|
-
return this.result =
|
|
440
|
+
return this.result = Oe((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
460
441
|
}
|
|
461
|
-
}),
|
|
442
|
+
}), Qe = (t, ...e) => g(L(...e))(t), Ve = (t) => {
|
|
462
443
|
var e, r, n;
|
|
463
444
|
return {
|
|
464
445
|
...t,
|
|
@@ -468,61 +449,61 @@ const nt = {
|
|
|
468
449
|
name: (n = t.player) != null && n.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}`
|
|
469
450
|
}
|
|
470
451
|
};
|
|
471
|
-
},
|
|
452
|
+
}, Ze = (t) => {
|
|
472
453
|
var e;
|
|
473
454
|
return {
|
|
474
455
|
...t,
|
|
475
456
|
...((e = t == null ? void 0 : t.team) == null ? void 0 : e.id) && { teamName: t.team.longName }
|
|
476
457
|
};
|
|
477
|
-
},
|
|
458
|
+
}, ze = (t = "", e = "hu") => (r) => ({
|
|
478
459
|
...r,
|
|
479
460
|
gameDateDate: m(r.gameDate, "L dddd", t, e),
|
|
480
461
|
gameDateTime: m(r.gameDate, "HH:mm", t, e)
|
|
481
|
-
}),
|
|
462
|
+
}), we = (t) => (e) => ({
|
|
482
463
|
...e,
|
|
483
|
-
gameResult:
|
|
484
|
-
}),
|
|
464
|
+
gameResult: Ge(e)
|
|
465
|
+
}), et = (t) => ({
|
|
485
466
|
...t,
|
|
486
|
-
opponent:
|
|
487
|
-
}),
|
|
467
|
+
opponent: je(t)
|
|
468
|
+
}), tt = (t) => ({
|
|
488
469
|
...t,
|
|
489
|
-
resultType:
|
|
490
|
-
}),
|
|
470
|
+
resultType: Ue(t)
|
|
471
|
+
}), rt = (t = []) => (e) => {
|
|
491
472
|
var r;
|
|
492
473
|
return {
|
|
493
474
|
...e,
|
|
494
475
|
[t]: (r = e[t]) == null ? void 0 : r.toUpperCase()
|
|
495
476
|
};
|
|
496
|
-
},
|
|
497
|
-
function
|
|
477
|
+
}, nt = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = E(e[r]) : e), e), st = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Min`] = Q(e[r]) : e), e), at = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = V(e[r])), e), Fe = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), ut = F([Fe, y(h("id")), y(h("gameId"))]), Pe = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), it = Le(Pe("name"));
|
|
478
|
+
function je(t) {
|
|
498
479
|
var e;
|
|
499
480
|
return [t.isHomeGame ? null : "@", (e = t.opponent) == null ? void 0 : e.shortName].join(" ");
|
|
500
481
|
}
|
|
501
|
-
function
|
|
482
|
+
function Ge(t, e) {
|
|
502
483
|
let r = t == null ? void 0 : t.homeTeamScore, n = t == null ? void 0 : t.awayTeamScore;
|
|
503
484
|
return t.isHomeGame || (r = t == null ? void 0 : t.awayTeamScore, n = t == null ? void 0 : t.homeTeamScore), [r, n].join(":");
|
|
504
485
|
}
|
|
505
|
-
function
|
|
486
|
+
function Ue(t) {
|
|
506
487
|
const e = t.gameResult.split(":"), r = e[0] > e[1], n = e[0] < e[1];
|
|
507
488
|
return r && t.isOvertime ? "OTW" : r && t.isShootout ? "SOW" : r ? "W" : n && t.isOvertime ? "OTL" : n && t.isShootout ? "SOL" : n ? "L" : "D";
|
|
508
489
|
}
|
|
509
490
|
export {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
491
|
+
Ye as I,
|
|
492
|
+
Ke as U,
|
|
493
|
+
Xe as W,
|
|
494
|
+
we as a,
|
|
495
|
+
et as b,
|
|
496
|
+
Je as c,
|
|
497
|
+
tt as d,
|
|
498
|
+
nt as e,
|
|
499
|
+
st as f,
|
|
500
|
+
ze as g,
|
|
501
|
+
at as h,
|
|
502
|
+
qe as i,
|
|
503
|
+
it as l,
|
|
504
|
+
Ve as p,
|
|
505
|
+
Qe as r,
|
|
506
|
+
ut as s,
|
|
507
|
+
Ze as t,
|
|
508
|
+
rt as u
|
|
528
509
|
};
|