@mjsz-vbr-elements/core 2.6.4 → 2.7.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-COC0Ji75.js → AdditionalStandingsText-QBTNWUHG.js} +2 -2
- package/dist/columns.js +52 -10
- package/dist/components.js +2 -2
- package/dist/composables.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{convert-PUna7fen.js → convert-DkesPGp4.js} +93 -92
- package/dist/datetime-BzdN4htO.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 +52 -51
- package/dist/useAdditionalText-D1LaWU-i.js +1 -1
- package/dist/utils.js +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.7.1 - 24/10/2024, 15:00:24
|
|
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 $, ref as O, watch as Ct, getCurrentScope as we, onScopeDis
|
|
|
9
9
|
import { f as U, o as Ce, e as Ge, d as Z, a as Ee, c as Re, j as Ne, n as Ve, i as Le, b as te, u as ee, w as De, h as Me } from "./useAdditionalText-D1LaWU-i.js";
|
|
10
10
|
import { J as oe, K as vt, z as jt, C as He, o as bt, g as Be } from "./datetime-BzdN4htO.js";
|
|
11
11
|
import { LAZY_LOADING_STATE_DELAY as Fe, SORT_STATE_ORIGINAL as zt, SORT_STATE_DESCEND as Wt, SORT_STATE_ASCEND as Kt, AVAILABLE_TIMEZONES_BY_COUNTRY as je, DEFAULT_PORTRAIT_IMAGE_URL as We } from "./constants.js";
|
|
12
|
-
import { m as Ke, W as ne, U as Tt } from "./convert-
|
|
12
|
+
import { m as Ke, W as ne, U as Tt } from "./convert-DkesPGp4.js";
|
|
13
13
|
import { COLUMNS_SCHEDULE as Je } from "./columns.js";
|
|
14
14
|
function qe(t) {
|
|
15
15
|
return we() ? (Te(t), !0) : !1;
|
package/dist/columns.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.7.1 - 24/10/2024, 15:00:24
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
@@ -514,6 +514,47 @@ const a = {
|
|
|
514
514
|
sortOrders: [{ target: "svsPercent", direction: t }]
|
|
515
515
|
}
|
|
516
516
|
}, d = {
|
|
517
|
+
index: {
|
|
518
|
+
label: "#",
|
|
519
|
+
class: "is-text-left"
|
|
520
|
+
},
|
|
521
|
+
playerPortrait: {
|
|
522
|
+
label: "",
|
|
523
|
+
class: "is-has-image"
|
|
524
|
+
},
|
|
525
|
+
name: {
|
|
526
|
+
label: "table.name.short",
|
|
527
|
+
tooltip: "table.name.tooltip",
|
|
528
|
+
class: "is-text-left is-w-auto is-text-bold",
|
|
529
|
+
sortOrders: [{ target: "name", direction: e }]
|
|
530
|
+
},
|
|
531
|
+
gp: {
|
|
532
|
+
label: "table.game.short",
|
|
533
|
+
tooltip: "table.game.tooltip",
|
|
534
|
+
sortOrders: [{ target: "gp", direction: t }]
|
|
535
|
+
},
|
|
536
|
+
goals: {
|
|
537
|
+
label: "table.goals.short",
|
|
538
|
+
tooltip: "table.goals.tooltip",
|
|
539
|
+
sortOrders: [
|
|
540
|
+
{ target: "goals", direction: t },
|
|
541
|
+
{ target: "assists", direction: t }
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
assist: {
|
|
545
|
+
label: "table.assists.short",
|
|
546
|
+
tooltip: "table.assists.tooltip",
|
|
547
|
+
sortOrders: [
|
|
548
|
+
{ target: "assist", direction: t },
|
|
549
|
+
{ target: "goals", direction: t }
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
points: {
|
|
553
|
+
label: "table.points.short",
|
|
554
|
+
tooltip: "table.points.tooltip",
|
|
555
|
+
sortOrders: [{ target: "points", direction: t }]
|
|
556
|
+
}
|
|
557
|
+
}, g = {
|
|
517
558
|
index: {
|
|
518
559
|
label: "table.blank",
|
|
519
560
|
class: "is-text-left"
|
|
@@ -582,7 +623,7 @@ const a = {
|
|
|
582
623
|
tooltip: "table.totalAttendanceAvg.tooltip",
|
|
583
624
|
sortOrders: [{ target: "totalAttendanceAvg", direction: t }]
|
|
584
625
|
}
|
|
585
|
-
},
|
|
626
|
+
}, n = {
|
|
586
627
|
index: {
|
|
587
628
|
label: "table.blank",
|
|
588
629
|
class: "is-text-left"
|
|
@@ -652,7 +693,7 @@ const a = {
|
|
|
652
693
|
tooltip: "table.pim.tooltip",
|
|
653
694
|
sortOrders: [{ target: "pim", direction: t }]
|
|
654
695
|
}
|
|
655
|
-
},
|
|
696
|
+
}, c = {
|
|
656
697
|
index: {
|
|
657
698
|
label: "table.blank",
|
|
658
699
|
class: "is-text-left"
|
|
@@ -707,7 +748,7 @@ const a = {
|
|
|
707
748
|
tooltip: "table.pkPercent.tooltip",
|
|
708
749
|
sortOrders: [{ target: "pkPercent", direction: t }]
|
|
709
750
|
}
|
|
710
|
-
},
|
|
751
|
+
}, m = {
|
|
711
752
|
index: {
|
|
712
753
|
label: "table.blank",
|
|
713
754
|
class: "is-text-left"
|
|
@@ -762,7 +803,7 @@ const a = {
|
|
|
762
803
|
tooltip: "table.ppPercent.tooltip",
|
|
763
804
|
sortOrders: [{ target: "ppPercent", direction: t }]
|
|
764
805
|
}
|
|
765
|
-
},
|
|
806
|
+
}, h = {
|
|
766
807
|
index: {
|
|
767
808
|
label: "table.blank",
|
|
768
809
|
class: "is-text-left"
|
|
@@ -838,12 +879,13 @@ export {
|
|
|
838
879
|
s as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
839
880
|
b as COLUMNS_FIELD_PLAYERS_TOI,
|
|
840
881
|
p as COLUMNS_GOALIES,
|
|
882
|
+
d as COLUMNS_PLAYERS_NATIONAL,
|
|
841
883
|
a as COLUMNS_SCHEDULE,
|
|
842
|
-
|
|
884
|
+
h as COLUMNS_SCORING_EFFICIENCY,
|
|
843
885
|
i as COLUMNS_STANDINGS_P_2,
|
|
844
886
|
l as COLUMNS_STANDINGS_P_3,
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
887
|
+
n as COLUMNS_TEAMS_FAIRPLAY,
|
|
888
|
+
c as COLUMNS_TEAMS_PENALTY_KILLING,
|
|
889
|
+
m as COLUMNS_TEAMS_POWERPLAY,
|
|
890
|
+
g as COLUMNS_TEAM_ATTENDANCE
|
|
849
891
|
};
|
package/dist/components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.7.1 - 24/10/2024, 15:00:24
|
|
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 { n as s, c as r, b as o, d as t, e as i, m as l, g as n, I as c, _ as d, k as S, a as b, j as g, f as T, h as m, i as v, l as I } from "./AdditionalStandingsText-
|
|
8
|
+
import { n as s, c as r, b as o, d as t, e as i, m as l, g as n, I as c, _ as d, k as S, a as b, j as g, f as T, h as m, i as v, l as I } from "./AdditionalStandingsText-QBTNWUHG.js";
|
|
9
9
|
export {
|
|
10
10
|
s as AdditionalStandingsText,
|
|
11
11
|
r 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
|
+
* version: v2.7.1 - 24/10/2024, 15:00:24
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
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
|
|
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, O as M, K as T, 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 a = n(e, r);
|
|
18
|
+
if (a !== void 0)
|
|
19
|
+
return a;
|
|
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 s = S(e), i = n(s, S(r));
|
|
24
|
+
return i !== void 0 && i === s ? 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(a, u, s) {
|
|
32
|
+
if (w(s))
|
|
33
|
+
return t(a, u, s);
|
|
34
|
+
if (s == 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 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");
|
|
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, a = r.length; n < a; ) {
|
|
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 ae(t, e, r, n) {
|
|
73
73
|
return t["@@transducer/result"](r[n](re(t["@@transducer/step"], t), e));
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var $ = /* @__PURE__ */ ee(te, ae, ne), se = /* @__PURE__ */ function() {
|
|
76
76
|
function t(e) {
|
|
77
77
|
this.f = e;
|
|
78
78
|
}
|
|
@@ -84,17 +84,17 @@ var x = /* @__PURE__ */ ee(te, se, ne), ae = /* @__PURE__ */ function() {
|
|
|
84
84
|
return this.f(e, r);
|
|
85
85
|
}, t;
|
|
86
86
|
}();
|
|
87
|
-
function
|
|
88
|
-
return new
|
|
87
|
+
function x(t) {
|
|
88
|
+
return new se(t);
|
|
89
89
|
}
|
|
90
|
-
var
|
|
91
|
-
return
|
|
90
|
+
var E = /* @__PURE__ */ c(function(t, e, r) {
|
|
91
|
+
return $(typeof t == "function" ? x(t) : t, e, r);
|
|
92
92
|
}), I = /* @__PURE__ */ f(function(e) {
|
|
93
93
|
return function() {
|
|
94
94
|
return e;
|
|
95
95
|
};
|
|
96
96
|
}), ue = /* @__PURE__ */ f(function(e) {
|
|
97
|
-
return
|
|
97
|
+
return N(E(Z, 0, z("length", e)), function() {
|
|
98
98
|
for (var r = 0, n = e.length; r < n; ) {
|
|
99
99
|
if (e[r].apply(this, arguments))
|
|
100
100
|
return !0;
|
|
@@ -103,32 +103,32 @@ 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 a = e(r), u = e(n);
|
|
107
|
+
return a < u ? -1 : a > u ? 1 : 0;
|
|
108
108
|
}), ie = /* @__PURE__ */ f(function(e) {
|
|
109
|
-
return
|
|
109
|
+
return N(e.length, e);
|
|
110
110
|
});
|
|
111
111
|
function ce(t, e, r) {
|
|
112
112
|
if (M(t) && g(r)) {
|
|
113
113
|
var n = [].concat(r);
|
|
114
114
|
return n[t] = e, n;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var a = {};
|
|
117
117
|
for (var u in r)
|
|
118
|
-
|
|
119
|
-
return
|
|
118
|
+
a[u] = r[u];
|
|
119
|
+
return a[t] = e, a;
|
|
120
120
|
}
|
|
121
121
|
var oe = /* @__PURE__ */ f(function(e) {
|
|
122
122
|
return e == null;
|
|
123
123
|
}), le = /* @__PURE__ */ c(function t(e, r, n) {
|
|
124
124
|
if (e.length === 0)
|
|
125
125
|
return r;
|
|
126
|
-
var
|
|
126
|
+
var a = e[0];
|
|
127
127
|
if (e.length > 1) {
|
|
128
|
-
var u = !oe(n) &&
|
|
128
|
+
var u = !oe(n) && T(a, n) && typeof n[a] == "object" ? n[a] : M(e[1]) ? [] : {};
|
|
129
129
|
r = t(Array.prototype.slice.call(e, 1), r, u);
|
|
130
130
|
}
|
|
131
|
-
return ce(
|
|
131
|
+
return ce(a, r, n);
|
|
132
132
|
}), pe = /* @__PURE__ */ c(function(e, r, n) {
|
|
133
133
|
return le([e], r, n);
|
|
134
134
|
});
|
|
@@ -139,9 +139,9 @@ function B(t, e, r) {
|
|
|
139
139
|
if (r || (r = new me()), he(t))
|
|
140
140
|
return t;
|
|
141
141
|
var n = function(u) {
|
|
142
|
-
var
|
|
143
|
-
if (
|
|
144
|
-
return
|
|
142
|
+
var s = r.get(t);
|
|
143
|
+
if (s)
|
|
144
|
+
return s;
|
|
145
145
|
r.set(t, u);
|
|
146
146
|
for (var i in t)
|
|
147
147
|
Object.prototype.hasOwnProperty.call(t, i) && (u[i] = t[i]);
|
|
@@ -181,8 +181,8 @@ var me = /* @__PURE__ */ function() {
|
|
|
181
181
|
this.map = {}, this.length = 0;
|
|
182
182
|
}
|
|
183
183
|
return t.prototype.set = function(e, r) {
|
|
184
|
-
var n = this.hash(e),
|
|
185
|
-
|
|
184
|
+
var n = this.hash(e), a = this.map[n];
|
|
185
|
+
a || (this.map[n] = a = []), a.push([e, r]), this.length += 1;
|
|
186
186
|
}, t.prototype.hash = function(e) {
|
|
187
187
|
var r = [];
|
|
188
188
|
for (var n in e)
|
|
@@ -191,19 +191,19 @@ var me = /* @__PURE__ */ function() {
|
|
|
191
191
|
}, t.prototype.get = function(e) {
|
|
192
192
|
if (this.length <= 180) {
|
|
193
193
|
for (var r in this.map)
|
|
194
|
-
for (var
|
|
195
|
-
var
|
|
196
|
-
if (
|
|
197
|
-
return
|
|
194
|
+
for (var s = this.map[r], n = 0; n < s.length; n += 1) {
|
|
195
|
+
var a = s[n];
|
|
196
|
+
if (a[0] === e)
|
|
197
|
+
return a[1];
|
|
198
198
|
}
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
|
-
var u = this.hash(e),
|
|
202
|
-
if (
|
|
203
|
-
for (var n = 0; n <
|
|
204
|
-
var
|
|
205
|
-
if (
|
|
206
|
-
return
|
|
201
|
+
var u = this.hash(e), s = this.map[u];
|
|
202
|
+
if (s)
|
|
203
|
+
for (var n = 0; n < s.length; n += 1) {
|
|
204
|
+
var a = s[n];
|
|
205
|
+
if (a[0] === e)
|
|
206
|
+
return a[1];
|
|
207
207
|
}
|
|
208
208
|
}, t;
|
|
209
209
|
}();
|
|
@@ -227,7 +227,7 @@ var ye = /* @__PURE__ */ c(/* @__PURE__ */ _("slice", function(e, r, n) {
|
|
|
227
227
|
function d() {
|
|
228
228
|
if (arguments.length === 0)
|
|
229
229
|
throw new Error("pipe requires at least one argument");
|
|
230
|
-
return O(arguments[0].length,
|
|
230
|
+
return O(arguments[0].length, E(de, arguments[0], ve(arguments)));
|
|
231
231
|
}
|
|
232
232
|
var ge = /* @__PURE__ */ f(function(e) {
|
|
233
233
|
return R(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
@@ -237,14 +237,14 @@ function L() {
|
|
|
237
237
|
throw new Error("compose requires at least one argument");
|
|
238
238
|
return d.apply(this, ge(arguments));
|
|
239
239
|
}
|
|
240
|
-
var
|
|
241
|
-
function t(e, r, n,
|
|
242
|
-
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf =
|
|
240
|
+
var Ne = /* @__PURE__ */ function() {
|
|
241
|
+
function t(e, r, n, a) {
|
|
242
|
+
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = a, this.inputs = {};
|
|
243
243
|
}
|
|
244
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
|
-
if (
|
|
247
|
+
if (T(r, this.inputs) && (e = this.xf["@@transducer/step"](e, this.inputs[r]), e["@@transducer/reduced"])) {
|
|
248
248
|
e = e["@@transducer/value"];
|
|
249
249
|
break;
|
|
250
250
|
}
|
|
@@ -254,32 +254,32 @@ var Te = /* @__PURE__ */ function() {
|
|
|
254
254
|
return this.inputs[n] = this.inputs[n] || [n, B(this.valueAcc)], this.inputs[n][1] = this.valueFn(this.inputs[n][1], r), e;
|
|
255
255
|
}, t;
|
|
256
256
|
}();
|
|
257
|
-
function
|
|
257
|
+
function Te(t, e, r) {
|
|
258
258
|
return function(n) {
|
|
259
|
-
return new
|
|
259
|
+
return new Ne(t, e, r, n);
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([],
|
|
263
|
-
var u =
|
|
264
|
-
var o = n(i), l = e(
|
|
265
|
-
return l && l["@@transducer/reduced"] ? X(
|
|
262
|
+
var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Te, function(e, r, n, a) {
|
|
263
|
+
var u = x(function(s, i) {
|
|
264
|
+
var o = n(i), l = e(T(o, s) ? s[o] : B(r), i);
|
|
265
|
+
return l && l["@@transducer/reduced"] ? X(s) : (s[o] = l, s);
|
|
266
266
|
});
|
|
267
|
-
return
|
|
267
|
+
return $(u, {}, a);
|
|
268
268
|
})), Se = /* @__PURE__ */ c(function(e, r, n) {
|
|
269
|
-
var
|
|
270
|
-
return
|
|
269
|
+
var a = e(r), u = e(n);
|
|
270
|
+
return a > u ? -1 : a < 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
|
-
return
|
|
274
|
+
return N(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
277
|
}), Ie = /* @__PURE__ */ p(q), be = /* @__PURE__ */ p(function(e, r) {
|
|
278
278
|
return function(n) {
|
|
279
|
-
return function(
|
|
279
|
+
return function(a) {
|
|
280
280
|
return v(function(u) {
|
|
281
|
-
return r(u,
|
|
282
|
-
}, n(e(
|
|
281
|
+
return r(u, a);
|
|
282
|
+
}, n(e(a)));
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
}), Re = /* @__PURE__ */ f(function(e) {
|
|
@@ -292,17 +292,17 @@ var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Ne, function(e, r, n, s)
|
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
}, Oe = /* @__PURE__ */ c(function(e, r, n) {
|
|
295
|
-
return e(function(
|
|
296
|
-
return P(r(
|
|
295
|
+
return e(function(a) {
|
|
296
|
+
return P(r(a));
|
|
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
302
|
}), W = /* @__PURE__ */ p(function(e, r) {
|
|
303
|
-
return Array.prototype.slice.call(r, 0).sort(function(n,
|
|
304
|
-
for (var u = 0,
|
|
305
|
-
u = e[
|
|
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
306
|
return u;
|
|
307
307
|
});
|
|
308
308
|
}), b = /* @__PURE__ */ K(0, "toLowerCase");
|
|
@@ -317,8 +317,8 @@ const je = (t, e = "body") => {
|
|
|
317
317
|
};
|
|
318
318
|
class Fe extends Error {
|
|
319
319
|
constructor(e, r = {}) {
|
|
320
|
-
const { key: n, cause:
|
|
321
|
-
super(e), this.name = "WidgetError", this.key = n, this.cause =
|
|
320
|
+
const { key: n, cause: a } = r;
|
|
321
|
+
super(e), this.name = "WidgetError", this.key = n, this.cause = a;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
const Ue = {
|
|
@@ -346,10 +346,10 @@ const Ue = {
|
|
|
346
346
|
},
|
|
347
347
|
filter(e, r = [], n = !1) {
|
|
348
348
|
if (e) {
|
|
349
|
-
const
|
|
349
|
+
const a = r.map(
|
|
350
350
|
(i) => n ? d(Y(i), A(e)) : d(h(i), b, Ie(b(e)))
|
|
351
|
-
), u = ie((i) => i.name ? Oe(Re("name"), Me(",", ""), i) : i),
|
|
352
|
-
this.isFiltered = !0, this.filteredRowsLength =
|
|
351
|
+
), u = ie((i) => i.name ? Oe(Re("name"), Me(",", ""), i) : i), s = J(d(u, ue([...a])), this.result);
|
|
352
|
+
this.isFiltered = !0, this.filteredRowsLength = s.length, this.result = s;
|
|
353
353
|
}
|
|
354
354
|
return this;
|
|
355
355
|
},
|
|
@@ -360,9 +360,9 @@ const Ue = {
|
|
|
360
360
|
return this.result = W(e.orders.map((n) => L(r(n.direction), h)(n.target)))(this.result), this;
|
|
361
361
|
},
|
|
362
362
|
addIndex(e = null) {
|
|
363
|
-
return this.result.reduce((r, n,
|
|
364
|
-
const u = r[r.length - 1] || [],
|
|
365
|
-
return n.index =
|
|
363
|
+
return this.result.reduce((r, n, a) => {
|
|
364
|
+
const u = r[r.length - 1] || [], s = e && u[e] === n[e];
|
|
365
|
+
return n.index = s ? u.index : a + 1, n.indexClass = s ? "is-duplicated" : null, r.push(n), r;
|
|
366
366
|
}, []), this;
|
|
367
367
|
},
|
|
368
368
|
addContinuousIndex() {
|
|
@@ -374,8 +374,8 @@ const Ue = {
|
|
|
374
374
|
pagination(e, r) {
|
|
375
375
|
if (!r) return this;
|
|
376
376
|
e = Number(e), r = Number(r);
|
|
377
|
-
const n = (e - 1) * r,
|
|
378
|
-
return this.result = this.result.slice(n,
|
|
377
|
+
const n = (e - 1) * r, a = n + r;
|
|
378
|
+
return this.result = this.result.slice(n, a), this;
|
|
379
379
|
},
|
|
380
380
|
more(e, r) {
|
|
381
381
|
return this.result = this.result.slice(Number(e), Number(r)), this;
|
|
@@ -410,13 +410,14 @@ const Ue = {
|
|
|
410
410
|
return this.currentItems = this.result.length, this.result = Ae((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
411
411
|
}
|
|
412
412
|
}), He = (t, ...e) => v(L(...e))(t), Xe = (t) => {
|
|
413
|
-
var e, r, n;
|
|
413
|
+
var e, r, n, a;
|
|
414
414
|
return {
|
|
415
415
|
...t,
|
|
416
416
|
...t.lastName && t.firstName && { name: `${t.lastName} ${t.firstName}` },
|
|
417
417
|
...((e = t.player) == null ? void 0 : e.playerId) && { name: `${t.player.lastName} ${t.player.firstName}` },
|
|
418
|
-
...((r = t.player) == null ? void 0 : r.
|
|
419
|
-
|
|
418
|
+
...((r = t.player) == null ? void 0 : r.id) && { name: `${t.player.lastName} ${t.player.firstName}` },
|
|
419
|
+
...((n = t.player) == null ? void 0 : n.nationality) && {
|
|
420
|
+
name: (a = t.player) != null && a.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}`
|
|
420
421
|
}
|
|
421
422
|
};
|
|
422
423
|
}, qe = (t) => {
|
|
@@ -434,7 +435,7 @@ const Ue = {
|
|
|
434
435
|
gameResult: Be(e)
|
|
435
436
|
}), Je = (t) => ({
|
|
436
437
|
...t,
|
|
437
|
-
opponent:
|
|
438
|
+
opponent: Ee(t)
|
|
438
439
|
}), Qe = (t) => ({
|
|
439
440
|
...t,
|
|
440
441
|
resultType: Le(t)
|
|
@@ -453,8 +454,8 @@ const Ue = {
|
|
|
453
454
|
...t,
|
|
454
455
|
periodResults: ((r = (e = t.result) == null ? void 0 : e.match(/\(.*?\)/)) == null ? void 0 : r[0]) ?? ""
|
|
455
456
|
};
|
|
456
|
-
},
|
|
457
|
-
function
|
|
457
|
+
}, $e = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), rt = W([$e, y(h("id")), y(h("gameId"))]), xe = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), nt = Ce(xe("name"));
|
|
458
|
+
function Ee(t) {
|
|
458
459
|
var e;
|
|
459
460
|
return [t.isHomeGame ? null : "@", (e = t.opponent) == null ? void 0 : e.shortName].join(" ");
|
|
460
461
|
}
|
|
@@ -466,7 +467,7 @@ function Le(t) {
|
|
|
466
467
|
const e = t.gameResult.split(":"), r = e[0] > e[1], n = e[0] < e[1];
|
|
467
468
|
return r && t.isOvertime ? "OTW" : r && t.isShootout ? "SOW" : r ? "W" : n && t.isOvertime ? "OTL" : n && t.isShootout ? "SOL" : n ? "L" : "D";
|
|
468
469
|
}
|
|
469
|
-
const
|
|
470
|
+
const at = (t) => t.map((e) => {
|
|
470
471
|
var r, n;
|
|
471
472
|
return {
|
|
472
473
|
phaseId: e.phaseId,
|
|
@@ -493,7 +494,7 @@ export {
|
|
|
493
494
|
et as h,
|
|
494
495
|
tt as i,
|
|
495
496
|
rt as j,
|
|
496
|
-
|
|
497
|
+
at as k,
|
|
497
498
|
nt as l,
|
|
498
499
|
je as m,
|
|
499
500
|
Xe as p,
|