@mjsz-vbr-elements/core 2.3.3 → 2.3.5
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-B3vGuQ_r.js → AdditionalStandingsText-BcHECtG0.js} +2 -2
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{convert-W8NizgmI.js → convert-HKQt4kO3.js} +96 -82
- package/dist/datetime-BD_lSSC2.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 +70 -69
- package/dist/useAdditionalText-Ta-GUW7T.js +1 -1
- package/dist/utils.js +41 -40
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.3.
|
|
3
|
+
* version: v2.3.5 - 12/03/2024, 20:58:28
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
@@ -9,7 +9,7 @@ import { computed as C, withDirectives as fe, openBlock as v, createElementBlock
|
|
|
9
9
|
import { f as q, o as xe, e as Te, d as Z, a as ke, c as Pe, j as Se, n as _e, i as Ae, b as Yt, u as qt, w as ze, h as $e } from "./useAdditionalText-Ta-GUW7T.js";
|
|
10
10
|
import { x as Jt, z as yt, l as Dt, p as Ce, o as vt, g as Oe } from "./datetime-BD_lSSC2.js";
|
|
11
11
|
import { LAZY_LOADING_STATE_DELAY as Ge, SORT_STATE_ORIGINAL as At, SORT_STATE_DESCEND as Mt, SORT_STATE_ASCEND as Bt, AVAILABLE_TIMEZONES_BY_COUNTRY as Ee, DEFAULT_PORTRAIT_IMAGE_URL as Re } from "./constants.js";
|
|
12
|
-
import {
|
|
12
|
+
import { k as Ne, W as Xt, U as bt } from "./convert-HKQt4kO3.js";
|
|
13
13
|
import { COLUMNS_SCHEDULE as Ie } from "./columns.js";
|
|
14
14
|
const Le = {
|
|
15
15
|
__name: "BaseSelect",
|
package/dist/columns.js
CHANGED
package/dist/components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.3.
|
|
3
|
+
* version: v2.3.5 - 12/03/2024, 20:58:28
|
|
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 { m as s, c as o, b as r, d as i, e as t, g as l, I as n, _ as d, k as c, a as S, j as g, f as T, h as b, i as m, l as I } from "./AdditionalStandingsText-
|
|
8
|
+
import { m as s, c as o, b as r, d as i, e as t, g as l, I as n, _ as d, k as c, a as S, j as g, f as T, h as b, i as m, l as I } from "./AdditionalStandingsText-BcHECtG0.js";
|
|
9
9
|
export {
|
|
10
10
|
s as AdditionalStandingsText,
|
|
11
11
|
o as BaseSelect,
|
package/dist/composables.js
CHANGED
package/dist/constants.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.3.
|
|
3
|
+
* version: v2.3.5 - 12/03/2024, 20:58:28
|
|
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 P, SORT_STATE_ASCEND as
|
|
9
|
-
import { p as f, A
|
|
8
|
+
import { SORT_STATE_ORIGINAL as P, SORT_STATE_ASCEND as F } from "./constants.js";
|
|
9
|
+
import { p as f, A, q as g, w as h, _ as p, j as v, k as O, B as $, 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 D, r as Y, v as J, f as m, c as C, b as Q, a as V } from "./datetime-BD_lSSC2.js";
|
|
10
10
|
var Z = /* @__PURE__ */ f(function(e, r) {
|
|
11
11
|
if (e === r)
|
|
12
12
|
return r;
|
|
@@ -20,29 +20,29 @@ 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
|
|
24
|
-
return
|
|
23
|
+
var u = A(e), i = n(u, A(r));
|
|
24
|
+
return i !== void 0 && i === u ? e : r;
|
|
25
25
|
});
|
|
26
26
|
const z = Z;
|
|
27
27
|
var w = /* @__PURE__ */ f(function(e, r) {
|
|
28
28
|
return g(h(e), r);
|
|
29
29
|
}), ee = /* @__PURE__ */ p(function(e) {
|
|
30
|
-
return v(e) ? !0 : !e || typeof e != "object" ||
|
|
31
|
-
}),
|
|
30
|
+
return v(e) ? !0 : !e || typeof e != "object" || O(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
|
|
31
|
+
}), I = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
32
32
|
function te(t, e, r) {
|
|
33
|
-
return function(s, a,
|
|
34
|
-
if (ee(
|
|
35
|
-
return t(s, a,
|
|
36
|
-
if (
|
|
33
|
+
return function(s, a, u) {
|
|
34
|
+
if (ee(u))
|
|
35
|
+
return t(s, a, u);
|
|
36
|
+
if (u == null)
|
|
37
37
|
return a;
|
|
38
|
-
if (typeof
|
|
39
|
-
return e(s, a,
|
|
40
|
-
if (
|
|
41
|
-
return r(s, a,
|
|
42
|
-
if (typeof
|
|
43
|
-
return r(s, a,
|
|
44
|
-
if (typeof
|
|
45
|
-
return e(s, a,
|
|
38
|
+
if (typeof u["fantasy-land/reduce"] == "function")
|
|
39
|
+
return e(s, a, u, "fantasy-land/reduce");
|
|
40
|
+
if (u[I] != null)
|
|
41
|
+
return r(s, a, u[I]());
|
|
42
|
+
if (typeof u.next == "function")
|
|
43
|
+
return r(s, a, u);
|
|
44
|
+
if (typeof u.reduce == "function")
|
|
45
|
+
return e(s, a, u, "reduce");
|
|
46
46
|
throw new TypeError("reduce: list must be array or iterable");
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -74,7 +74,7 @@ function se(t, e, r) {
|
|
|
74
74
|
function ae(t, e, r, n) {
|
|
75
75
|
return t["@@transducer/result"](r[n](ne(t["@@transducer/step"], t), e));
|
|
76
76
|
}
|
|
77
|
-
var E = /* @__PURE__ */ te(re, ae, se),
|
|
77
|
+
var E = /* @__PURE__ */ te(re, ae, se), ue = /* @__PURE__ */ function() {
|
|
78
78
|
function t(e) {
|
|
79
79
|
this.f = e;
|
|
80
80
|
}
|
|
@@ -87,16 +87,16 @@ var E = /* @__PURE__ */ te(re, ae, se), ie = /* @__PURE__ */ function() {
|
|
|
87
87
|
}, t;
|
|
88
88
|
}();
|
|
89
89
|
function x(t) {
|
|
90
|
-
return new
|
|
90
|
+
return new ue(t);
|
|
91
91
|
}
|
|
92
92
|
var B = /* @__PURE__ */ c(function(t, e, r) {
|
|
93
93
|
return E(typeof t == "function" ? x(t) : t, e, r);
|
|
94
|
-
}),
|
|
94
|
+
}), b = /* @__PURE__ */ p(function(e) {
|
|
95
95
|
return function() {
|
|
96
96
|
return e;
|
|
97
97
|
};
|
|
98
|
-
}),
|
|
99
|
-
return
|
|
98
|
+
}), ie = /* @__PURE__ */ p(function(e) {
|
|
99
|
+
return T(B(z, 0, w("length", e)), function() {
|
|
100
100
|
for (var r = 0, n = e.length; r < n; ) {
|
|
101
101
|
if (e[r].apply(this, arguments))
|
|
102
102
|
return !0;
|
|
@@ -125,7 +125,7 @@ var oe = /* @__PURE__ */ p(function(e) {
|
|
|
125
125
|
return r;
|
|
126
126
|
var s = e[0];
|
|
127
127
|
if (e.length > 1) {
|
|
128
|
-
var a = !oe(n) &&
|
|
128
|
+
var a = !oe(n) && N(s, n) && typeof n[s] == "object" ? n[s] : M(e[1]) ? [] : {};
|
|
129
129
|
r = t(Array.prototype.slice.call(e, 1), r, a);
|
|
130
130
|
}
|
|
131
131
|
return ce(s, r, n);
|
|
@@ -135,16 +135,16 @@ var oe = /* @__PURE__ */ p(function(e) {
|
|
|
135
135
|
function pe(t) {
|
|
136
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" : ""));
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function _(t, e, r) {
|
|
139
139
|
if (r || (r = new me()), he(t))
|
|
140
140
|
return t;
|
|
141
141
|
var n = function(a) {
|
|
142
|
-
var
|
|
143
|
-
if (
|
|
144
|
-
return
|
|
142
|
+
var u = r.get(t);
|
|
143
|
+
if (u)
|
|
144
|
+
return u;
|
|
145
145
|
r.set(t, a);
|
|
146
|
-
for (var
|
|
147
|
-
Object.prototype.hasOwnProperty.call(t,
|
|
146
|
+
for (var i in t)
|
|
147
|
+
Object.prototype.hasOwnProperty.call(t, i) && (a[i] = e ? _(t[i], !0, r) : t[i]);
|
|
148
148
|
return a;
|
|
149
149
|
};
|
|
150
150
|
switch (G(t)) {
|
|
@@ -193,10 +193,10 @@ var me = /* @__PURE__ */ function() {
|
|
|
193
193
|
if (this.length <= 180) {
|
|
194
194
|
for (const s in this.map) {
|
|
195
195
|
const a = this.map[s];
|
|
196
|
-
for (let
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
return
|
|
196
|
+
for (let u = 0; u < a.length; u += 1) {
|
|
197
|
+
const i = a[u];
|
|
198
|
+
if (i[0] === e)
|
|
199
|
+
return i[1];
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
return;
|
|
@@ -215,7 +215,7 @@ function de(t, e) {
|
|
|
215
215
|
return e.call(this, t.apply(this, arguments));
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function S(t, e) {
|
|
219
219
|
return function() {
|
|
220
220
|
var r = arguments.length;
|
|
221
221
|
if (r === 0)
|
|
@@ -225,11 +225,11 @@ function N(t, e) {
|
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
var ye = /* @__PURE__ */ c(
|
|
228
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ S("slice", function(e, r, n) {
|
|
229
229
|
return Array.prototype.slice.call(n, e, r);
|
|
230
230
|
})
|
|
231
231
|
), ge = /* @__PURE__ */ p(
|
|
232
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ S(
|
|
233
233
|
"tail",
|
|
234
234
|
/* @__PURE__ */ ye(1, 1 / 0)
|
|
235
235
|
)
|
|
@@ -240,66 +240,66 @@ function d() {
|
|
|
240
240
|
return $(arguments[0].length, B(de, arguments[0], ge(arguments)));
|
|
241
241
|
}
|
|
242
242
|
var ve = /* @__PURE__ */ p(function(e) {
|
|
243
|
-
return
|
|
243
|
+
return O(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
244
244
|
});
|
|
245
245
|
function L() {
|
|
246
246
|
if (arguments.length === 0)
|
|
247
247
|
throw new Error("compose requires at least one argument");
|
|
248
248
|
return d.apply(this, ve(arguments));
|
|
249
249
|
}
|
|
250
|
-
var
|
|
251
|
-
return
|
|
252
|
-
}),
|
|
250
|
+
var Te = /* @__PURE__ */ p(function(e) {
|
|
251
|
+
return T(e.length, e);
|
|
252
|
+
}), Ne = /* @__PURE__ */ function() {
|
|
253
253
|
function t(e, r, n, s) {
|
|
254
254
|
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = s, this.inputs = {};
|
|
255
255
|
}
|
|
256
256
|
return t.prototype["@@transducer/init"] = U.init, t.prototype["@@transducer/result"] = function(e) {
|
|
257
257
|
var r;
|
|
258
258
|
for (r in this.inputs)
|
|
259
|
-
if (
|
|
259
|
+
if (N(r, this.inputs) && (e = this.xf["@@transducer/step"](e, this.inputs[r]), e["@@transducer/reduced"])) {
|
|
260
260
|
e = e["@@transducer/value"];
|
|
261
261
|
break;
|
|
262
262
|
}
|
|
263
263
|
return this.inputs = null, this.xf["@@transducer/result"](e);
|
|
264
264
|
}, t.prototype["@@transducer/step"] = function(e, r) {
|
|
265
265
|
var n = this.keyFn(r);
|
|
266
|
-
return this.inputs[n] = this.inputs[n] || [n,
|
|
266
|
+
return this.inputs[n] = this.inputs[n] || [n, _(this.valueAcc, !1)], this.inputs[n][1] = this.valueFn(this.inputs[n][1], r), e;
|
|
267
267
|
}, t;
|
|
268
268
|
}();
|
|
269
|
-
function
|
|
269
|
+
function _e(t, e, r) {
|
|
270
270
|
return function(n) {
|
|
271
|
-
return new
|
|
271
|
+
return new Ne(t, e, r, n);
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
var
|
|
274
|
+
var Se = /* @__PURE__ */ k(
|
|
275
275
|
4,
|
|
276
276
|
[],
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
var a = x(function(
|
|
279
|
-
var o = n(
|
|
280
|
-
return l && l["@@transducer/reduced"] ? q(
|
|
277
|
+
/* @__PURE__ */ H([], _e, function(e, r, n, s) {
|
|
278
|
+
var a = x(function(u, i) {
|
|
279
|
+
var o = n(i), l = e(N(o, u) ? u[o] : _(r, !1), i);
|
|
280
|
+
return l && l["@@transducer/reduced"] ? q(u) : (u[o] = l, u);
|
|
281
281
|
});
|
|
282
282
|
return E(a, {}, s);
|
|
283
283
|
})
|
|
284
|
-
),
|
|
284
|
+
), Ae = /* @__PURE__ */ c(function(e, r, n) {
|
|
285
285
|
var s = e(r), a = e(n);
|
|
286
286
|
return s > a ? -1 : s < a ? 1 : 0;
|
|
287
287
|
});
|
|
288
|
-
const
|
|
289
|
-
var
|
|
290
|
-
/* @__PURE__ */
|
|
288
|
+
const De = Ae;
|
|
289
|
+
var Ie = /* @__PURE__ */ f(
|
|
290
|
+
/* @__PURE__ */ S(
|
|
291
291
|
"groupBy",
|
|
292
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ Se(function(t, e) {
|
|
293
293
|
return t.push(e), t;
|
|
294
294
|
}, [])
|
|
295
295
|
)
|
|
296
|
-
),
|
|
297
|
-
return
|
|
296
|
+
), be = /* @__PURE__ */ c(function(e, r, n) {
|
|
297
|
+
return T(Math.max(e.length, r.length, n.length), function() {
|
|
298
298
|
return e.apply(this, arguments) ? r.apply(this, arguments) : n.apply(this, arguments);
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
|
-
const
|
|
302
|
-
var
|
|
301
|
+
const Re = be;
|
|
302
|
+
var Oe = /* @__PURE__ */ f(X), $e = /* @__PURE__ */ f(function(e, r) {
|
|
303
303
|
return function(n) {
|
|
304
304
|
return function(s) {
|
|
305
305
|
return g(function(a) {
|
|
@@ -326,14 +326,14 @@ var be = /* @__PURE__ */ f(X), $e = /* @__PURE__ */ f(function(e, r) {
|
|
|
326
326
|
return Array.prototype.slice.call(r, 0).sort(e);
|
|
327
327
|
}), Be = /* @__PURE__ */ f(function(e, r) {
|
|
328
328
|
return Array.prototype.slice.call(r, 0).sort(function(n, s) {
|
|
329
|
-
for (var a = 0,
|
|
330
|
-
a = e[
|
|
329
|
+
for (var a = 0, u = 0; a === 0 && u < e.length; )
|
|
330
|
+
a = e[u](n, s), u += 1;
|
|
331
331
|
return a;
|
|
332
332
|
});
|
|
333
333
|
});
|
|
334
|
-
const
|
|
335
|
-
var
|
|
336
|
-
const
|
|
334
|
+
const j = Be;
|
|
335
|
+
var R = /* @__PURE__ */ K(0, "toLowerCase");
|
|
336
|
+
const ke = (t, e = "body") => {
|
|
337
337
|
if (!t)
|
|
338
338
|
return;
|
|
339
339
|
if (typeof e != "string") {
|
|
@@ -343,7 +343,7 @@ const He = (t, e = "body") => {
|
|
|
343
343
|
const r = document.querySelector(e);
|
|
344
344
|
r == null || r.append(t);
|
|
345
345
|
};
|
|
346
|
-
class
|
|
346
|
+
class He extends Error {
|
|
347
347
|
constructor(e, r = {}) {
|
|
348
348
|
const { key: n, cause: s } = r;
|
|
349
349
|
super(e), this.name = "WidgetError", this.key = n, this.cause = s;
|
|
@@ -375,9 +375,9 @@ const qe = {
|
|
|
375
375
|
filter(e, r = [], n = !1) {
|
|
376
376
|
if (e) {
|
|
377
377
|
const s = r.map(
|
|
378
|
-
(
|
|
379
|
-
), a =
|
|
380
|
-
this.isFiltered = !0, this.filteredRowsLength =
|
|
378
|
+
(i) => n ? d(Y(i), D(e)) : d(h(i), R, Oe(R(e)))
|
|
379
|
+
), a = Te((i) => i.name ? Ce(Me("name"), Ee(",", ""), i) : i), u = J(d(a, ie([...s])), this.result);
|
|
380
|
+
this.isFiltered = !0, this.filteredRowsLength = u.length, this.result = u;
|
|
381
381
|
}
|
|
382
382
|
return this;
|
|
383
383
|
},
|
|
@@ -386,13 +386,13 @@ const qe = {
|
|
|
386
386
|
return this;
|
|
387
387
|
if (e.orders[0].direction === P)
|
|
388
388
|
return this;
|
|
389
|
-
const r =
|
|
390
|
-
return this.result =
|
|
389
|
+
const r = Re(D(F), b(y), b(De));
|
|
390
|
+
return this.result = j(e.orders.map((n) => L(r(n.direction), h)(n.target)))(this.result), this;
|
|
391
391
|
},
|
|
392
392
|
addIndex(e = null) {
|
|
393
393
|
return this.result.reduce((r, n, s) => {
|
|
394
|
-
const a = r[r.length - 1] || [],
|
|
395
|
-
return n.index =
|
|
394
|
+
const a = r[r.length - 1] || [], u = e && a[e] === n[e];
|
|
395
|
+
return n.index = u ? a.index : s + 1, n.indexClass = u ? "is-duplicated" : null, r.push(n), r;
|
|
396
396
|
}, []), this;
|
|
397
397
|
},
|
|
398
398
|
addContinuousIndex() {
|
|
@@ -435,7 +435,7 @@ const qe = {
|
|
|
435
435
|
return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = C(r[n]) : r), r)), this;
|
|
436
436
|
},
|
|
437
437
|
groupByDays() {
|
|
438
|
-
return this.result =
|
|
438
|
+
return this.result = Ie((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
439
439
|
}
|
|
440
440
|
}), Ye = (t, ...e) => g(L(...e))(t), Je = (t) => {
|
|
441
441
|
var e, r, n;
|
|
@@ -462,10 +462,10 @@ const qe = {
|
|
|
462
462
|
gameResult: Pe(e)
|
|
463
463
|
}), ze = (t) => ({
|
|
464
464
|
...t,
|
|
465
|
-
opponent:
|
|
465
|
+
opponent: je(t)
|
|
466
466
|
}), we = (t) => ({
|
|
467
467
|
...t,
|
|
468
|
-
resultType:
|
|
468
|
+
resultType: Fe(t)
|
|
469
469
|
}), et = (t) => ({
|
|
470
470
|
...t,
|
|
471
471
|
rowClasses: t.optional ? "is-optional" : ""
|
|
@@ -475,8 +475,8 @@ const qe = {
|
|
|
475
475
|
...e,
|
|
476
476
|
[t]: (r = e[t]) == null ? void 0 : r.toUpperCase()
|
|
477
477
|
};
|
|
478
|
-
}, rt = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = C(e[r]) : e), e), nt = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Min`] = Q(e[r]) : e), e), st = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = V(e[r])), e), Le = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), at =
|
|
479
|
-
function
|
|
478
|
+
}, rt = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = C(e[r]) : e), e), nt = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Min`] = Q(e[r]) : e), e), st = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = V(e[r])), e), Le = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), at = j([Le, y(h("id")), y(h("gameId"))]), We = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), ut = xe(We("name"));
|
|
479
|
+
function je(t) {
|
|
480
480
|
var e;
|
|
481
481
|
return [t.isHomeGame ? null : "@", (e = t.opponent) == null ? void 0 : e.shortName].join(" ");
|
|
482
482
|
}
|
|
@@ -484,14 +484,27 @@ function Pe(t, e) {
|
|
|
484
484
|
let r = t == null ? void 0 : t.homeTeamScore, n = t == null ? void 0 : t.awayTeamScore;
|
|
485
485
|
return t.isHomeGame || (r = t == null ? void 0 : t.awayTeamScore, n = t == null ? void 0 : t.homeTeamScore), [r, n].join(":");
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Fe(t) {
|
|
488
488
|
const e = t.gameResult.split(":"), r = e[0] > e[1], n = e[0] < e[1];
|
|
489
489
|
return r && t.isOvertime ? "OTW" : r && t.isShootout ? "SOW" : r ? "W" : n && t.isOvertime ? "OTL" : n && t.isShootout ? "SOL" : n ? "L" : "D";
|
|
490
490
|
}
|
|
491
|
+
const it = (t) => t.map((e) => {
|
|
492
|
+
var r, n;
|
|
493
|
+
return {
|
|
494
|
+
phaseId: e.phaseId,
|
|
495
|
+
phaseName: Object.values({
|
|
496
|
+
phaseName: e.phaseName,
|
|
497
|
+
...((r = e.phaseType) == null ? void 0 : r.phaseTypeName) && e.phaseType.phaseTypeName !== e.phaseName && {
|
|
498
|
+
phaseTypeName: e.phaseType.phaseTypeName
|
|
499
|
+
},
|
|
500
|
+
...((n = e.phaseSubType) == null ? void 0 : n.phaseSubTypeName) && { phaseSubTypeName: e.phaseSubType.phaseSubTypeName }
|
|
501
|
+
}).join("-")
|
|
502
|
+
};
|
|
503
|
+
});
|
|
491
504
|
export {
|
|
492
505
|
Xe as I,
|
|
493
506
|
qe as U,
|
|
494
|
-
|
|
507
|
+
He as W,
|
|
495
508
|
Ze as a,
|
|
496
509
|
ze as b,
|
|
497
510
|
Ke as c,
|
|
@@ -501,8 +514,9 @@ export {
|
|
|
501
514
|
Ve as g,
|
|
502
515
|
st as h,
|
|
503
516
|
at as i,
|
|
504
|
-
|
|
505
|
-
|
|
517
|
+
it as j,
|
|
518
|
+
ke as k,
|
|
519
|
+
ut as l,
|
|
506
520
|
Je as p,
|
|
507
521
|
Ye as r,
|
|
508
522
|
et as s,
|