@mjsz-vbr-elements/core 2.42.0 → 2.43.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/columns.js +1417 -1010
- package/dist/components-DpAc0iFd.js +2969 -0
- package/dist/components.js +6 -21
- package/dist/composables-DkeAlPNN.js +988 -0
- package/dist/composables.js +4 -183
- package/dist/constants.js +11 -19
- package/dist/datetime-Dr5rQMCL.js +1416 -0
- package/dist/index.iife.js +3 -16
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +27 -196
- package/dist/props.js +63 -66
- package/dist/utils-BzouF97X.js +725 -0
- package/dist/utils.js +4 -166
- package/package.json +10 -10
- package/dist/TimezoneSelector-Cftyj2uC.js +0 -2488
- package/dist/datetime-B_IKGlWy.js +0 -1400
- package/dist/errors-AyJoolyE.js +0 -723
- package/dist/useSort-CoM4Br_9.js +0 -912
package/dist/errors-AyJoolyE.js
DELETED
|
@@ -1,723 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.42.0 - 11/03/2026, 07:59:16
|
|
4
|
-
* (c) 2026
|
|
5
|
-
* description: Data visualization for MJSZ VBR
|
|
6
|
-
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
|
-
*/
|
|
8
|
-
import { SORT_STATE_ORIGINAL as de, SORT_STATE_ASCEND as ye } from "./constants.js";
|
|
9
|
-
import { G as m, L as $, v as l, z as u, M as h, N as B, O as J, P as z, _ as f, Q as A, K as ve, R as K, S as ge, T as Ne, U as Q, V as Te, W as L, X as Se, Y as _e, Z as Ie, $ as be, a0 as Oe, a1 as Ae, a2 as G, E as Re, a3 as O, a4 as Ee, A as g, u as Pe, J as j, I as Ce, x as S, H as R, f as N, c as V, b as De, a as $e, w as je } from "./datetime-B_IKGlWy.js";
|
|
10
|
-
var Z = /* @__PURE__ */ m(function(e, r) {
|
|
11
|
-
if (e === r)
|
|
12
|
-
return r;
|
|
13
|
-
function n(d, p) {
|
|
14
|
-
if (d > p != p > d)
|
|
15
|
-
return p > d ? p : d;
|
|
16
|
-
}
|
|
17
|
-
var a = n(e, r);
|
|
18
|
-
if (a !== void 0)
|
|
19
|
-
return a;
|
|
20
|
-
var s = n(typeof e, typeof r);
|
|
21
|
-
if (s !== void 0)
|
|
22
|
-
return s === typeof e ? e : r;
|
|
23
|
-
var i = $(e), c = n(i, $(r));
|
|
24
|
-
return c !== void 0 && c === i ? e : r;
|
|
25
|
-
}), w = /* @__PURE__ */ m(function(e, r) {
|
|
26
|
-
return l(u(e), r);
|
|
27
|
-
}), Be = /* @__PURE__ */ h(function(e) {
|
|
28
|
-
return B(e) ? !0 : !e || typeof e != "object" || J(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
|
|
29
|
-
}), U = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
30
|
-
function Le(t, e, r) {
|
|
31
|
-
return function(a, s, i) {
|
|
32
|
-
if (Be(i))
|
|
33
|
-
return t(a, s, i);
|
|
34
|
-
if (i == null)
|
|
35
|
-
return s;
|
|
36
|
-
if (typeof i["fantasy-land/reduce"] == "function")
|
|
37
|
-
return e(a, s, i, "fantasy-land/reduce");
|
|
38
|
-
if (i[U] != null)
|
|
39
|
-
return r(a, s, i[U]());
|
|
40
|
-
if (typeof i.next == "function")
|
|
41
|
-
return r(a, s, i);
|
|
42
|
-
if (typeof i.reduce == "function")
|
|
43
|
-
return e(a, s, i, "reduce");
|
|
44
|
-
throw new TypeError("reduce: list must be array or iterable");
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function Ge(t, e, r) {
|
|
48
|
-
for (var n = 0, a = r.length; n < a; ) {
|
|
49
|
-
if (e = t["@@transducer/step"](e, r[n]), e && e["@@transducer/reduced"]) {
|
|
50
|
-
e = e["@@transducer/value"];
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
n += 1;
|
|
54
|
-
}
|
|
55
|
-
return t["@@transducer/result"](e);
|
|
56
|
-
}
|
|
57
|
-
var Me = /* @__PURE__ */ m(function(e, r) {
|
|
58
|
-
return z(e.length, function() {
|
|
59
|
-
return e.apply(r, arguments);
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
function xe(t, e, r) {
|
|
63
|
-
for (var n = r.next(); !n.done; ) {
|
|
64
|
-
if (e = t["@@transducer/step"](e, n.value), e && e["@@transducer/reduced"]) {
|
|
65
|
-
e = e["@@transducer/value"];
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
n = r.next();
|
|
69
|
-
}
|
|
70
|
-
return t["@@transducer/result"](e);
|
|
71
|
-
}
|
|
72
|
-
function Fe(t, e, r, n) {
|
|
73
|
-
return t["@@transducer/result"](r[n](Me(t["@@transducer/step"], t), e));
|
|
74
|
-
}
|
|
75
|
-
var ee = /* @__PURE__ */ Le(Ge, Fe, xe), We = /* @__PURE__ */ function() {
|
|
76
|
-
function t(e) {
|
|
77
|
-
this.f = e;
|
|
78
|
-
}
|
|
79
|
-
return t.prototype["@@transducer/init"] = function() {
|
|
80
|
-
throw new Error("init not implemented on XWrap");
|
|
81
|
-
}, t.prototype["@@transducer/result"] = function(e) {
|
|
82
|
-
return e;
|
|
83
|
-
}, t.prototype["@@transducer/step"] = function(e, r) {
|
|
84
|
-
return this.f(e, r);
|
|
85
|
-
}, t;
|
|
86
|
-
}();
|
|
87
|
-
function te(t) {
|
|
88
|
-
return new We(t);
|
|
89
|
-
}
|
|
90
|
-
var M = /* @__PURE__ */ f(function(t, e, r) {
|
|
91
|
-
return ee(typeof t == "function" ? te(t) : t, e, r);
|
|
92
|
-
}), Ue = /* @__PURE__ */ h(function(e) {
|
|
93
|
-
return A(M(Z, 0, w("length", e)), function() {
|
|
94
|
-
for (var r = 0, n = e.length; r < n; ) {
|
|
95
|
-
if (!e[r].apply(this, arguments))
|
|
96
|
-
return !1;
|
|
97
|
-
r += 1;
|
|
98
|
-
}
|
|
99
|
-
return !0;
|
|
100
|
-
});
|
|
101
|
-
}), k = /* @__PURE__ */ h(function(e) {
|
|
102
|
-
return function() {
|
|
103
|
-
return e;
|
|
104
|
-
};
|
|
105
|
-
}), ke = /* @__PURE__ */ h(function(e) {
|
|
106
|
-
return A(M(Z, 0, w("length", e)), function() {
|
|
107
|
-
for (var r = 0, n = e.length; r < n; ) {
|
|
108
|
-
if (e[r].apply(this, arguments))
|
|
109
|
-
return !0;
|
|
110
|
-
r += 1;
|
|
111
|
-
}
|
|
112
|
-
return !1;
|
|
113
|
-
});
|
|
114
|
-
}), re = /* @__PURE__ */ h(function(e) {
|
|
115
|
-
for (var r = ve(e), n = r.length, a = [], s = 0; s < n; )
|
|
116
|
-
a[s] = e[r[s]], s += 1;
|
|
117
|
-
return a;
|
|
118
|
-
}), _ = /* @__PURE__ */ f(function(e, r, n) {
|
|
119
|
-
var a = e(r), s = e(n);
|
|
120
|
-
return a < s ? -1 : a > s ? 1 : 0;
|
|
121
|
-
}), ne = /* @__PURE__ */ h(function(e) {
|
|
122
|
-
return A(e.length, e);
|
|
123
|
-
});
|
|
124
|
-
function qe(t, e, r) {
|
|
125
|
-
if (K(t) && B(r)) {
|
|
126
|
-
var n = t < 0 ? r.length + t : t, a = [].concat(r);
|
|
127
|
-
return a[n] = e, a;
|
|
128
|
-
}
|
|
129
|
-
var s = {};
|
|
130
|
-
for (var i in r)
|
|
131
|
-
s[i] = r[i];
|
|
132
|
-
return s[t] = e, s;
|
|
133
|
-
}
|
|
134
|
-
var He = /* @__PURE__ */ h(function(e) {
|
|
135
|
-
return e == null;
|
|
136
|
-
}), Xe = /* @__PURE__ */ f(function t(e, r, n) {
|
|
137
|
-
if (e.length === 0)
|
|
138
|
-
return r;
|
|
139
|
-
var a = e[0];
|
|
140
|
-
if (e.length > 1) {
|
|
141
|
-
var s = ge(a, n);
|
|
142
|
-
(He(s) || typeof s != "object") && (s = K(e[1]) ? [] : {}), r = t(Array.prototype.slice.call(e, 1), r, s);
|
|
143
|
-
}
|
|
144
|
-
return qe(a, r, n);
|
|
145
|
-
}), Ye = /* @__PURE__ */ f(function(e, r, n) {
|
|
146
|
-
return Xe([e], r, n);
|
|
147
|
-
});
|
|
148
|
-
function ae(t) {
|
|
149
|
-
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" : ""));
|
|
150
|
-
}
|
|
151
|
-
function x(t, e, r) {
|
|
152
|
-
if (r || (r = new ze()), Je(t))
|
|
153
|
-
return t;
|
|
154
|
-
var n = function(s) {
|
|
155
|
-
var i = r.get(t);
|
|
156
|
-
if (i)
|
|
157
|
-
return i;
|
|
158
|
-
r.set(t, s);
|
|
159
|
-
for (var c in t)
|
|
160
|
-
Object.prototype.hasOwnProperty.call(t, c) && (s[c] = e ? x(t[c], !0, r) : t[c]);
|
|
161
|
-
return s;
|
|
162
|
-
};
|
|
163
|
-
switch (Ne(t)) {
|
|
164
|
-
case "Object":
|
|
165
|
-
return n(Object.create(Object.getPrototypeOf(t)));
|
|
166
|
-
case "Array":
|
|
167
|
-
return n(Array(t.length));
|
|
168
|
-
case "Date":
|
|
169
|
-
return new Date(t.valueOf());
|
|
170
|
-
case "RegExp":
|
|
171
|
-
return ae(t);
|
|
172
|
-
case "Int8Array":
|
|
173
|
-
case "Uint8Array":
|
|
174
|
-
case "Uint8ClampedArray":
|
|
175
|
-
case "Int16Array":
|
|
176
|
-
case "Uint16Array":
|
|
177
|
-
case "Int32Array":
|
|
178
|
-
case "Uint32Array":
|
|
179
|
-
case "Float32Array":
|
|
180
|
-
case "Float64Array":
|
|
181
|
-
case "BigInt64Array":
|
|
182
|
-
case "BigUint64Array":
|
|
183
|
-
return t.slice();
|
|
184
|
-
default:
|
|
185
|
-
return t;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function Je(t) {
|
|
189
|
-
var e = typeof t;
|
|
190
|
-
return t == null || e != "object" && e != "function";
|
|
191
|
-
}
|
|
192
|
-
var ze = /* @__PURE__ */ function() {
|
|
193
|
-
function t() {
|
|
194
|
-
this.map = {}, this.length = 0;
|
|
195
|
-
}
|
|
196
|
-
return t.prototype.set = function(e, r) {
|
|
197
|
-
var n = this.hash(e), a = this.map[n];
|
|
198
|
-
a || (this.map[n] = a = []), a.push([e, r]), this.length += 1;
|
|
199
|
-
}, t.prototype.hash = function(e) {
|
|
200
|
-
var r = [];
|
|
201
|
-
for (var n in e)
|
|
202
|
-
r.push(Object.prototype.toString.call(e[n]));
|
|
203
|
-
return r.join();
|
|
204
|
-
}, t.prototype.get = function(e) {
|
|
205
|
-
if (this.length <= 180) {
|
|
206
|
-
for (var r in this.map)
|
|
207
|
-
for (var i = this.map[r], n = 0; n < i.length; n += 1) {
|
|
208
|
-
var a = i[n];
|
|
209
|
-
if (a[0] === e)
|
|
210
|
-
return a[1];
|
|
211
|
-
}
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
var s = this.hash(e), i = this.map[s];
|
|
215
|
-
if (i)
|
|
216
|
-
for (var n = 0; n < i.length; n += 1) {
|
|
217
|
-
var a = i[n];
|
|
218
|
-
if (a[0] === e)
|
|
219
|
-
return a[1];
|
|
220
|
-
}
|
|
221
|
-
}, t;
|
|
222
|
-
}();
|
|
223
|
-
function Ke(t, e) {
|
|
224
|
-
return function() {
|
|
225
|
-
return e.call(this, t.apply(this, arguments));
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function F(t, e) {
|
|
229
|
-
return function() {
|
|
230
|
-
var r = arguments.length;
|
|
231
|
-
if (r === 0)
|
|
232
|
-
return e();
|
|
233
|
-
var n = arguments[r - 1];
|
|
234
|
-
return B(n) || typeof n[t] != "function" ? e.apply(this, arguments) : n[t].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
var Qe = /* @__PURE__ */ f(/* @__PURE__ */ F("slice", function(e, r, n) {
|
|
238
|
-
return Array.prototype.slice.call(n, e, r);
|
|
239
|
-
})), Ve = /* @__PURE__ */ h(/* @__PURE__ */ F("tail", /* @__PURE__ */ Qe(1, 1 / 0)));
|
|
240
|
-
function T() {
|
|
241
|
-
if (arguments.length === 0)
|
|
242
|
-
throw new Error("pipe requires at least one argument");
|
|
243
|
-
return z(arguments[0].length, M(Ke, arguments[0], Ve(arguments)));
|
|
244
|
-
}
|
|
245
|
-
var E = /* @__PURE__ */ h(function(e) {
|
|
246
|
-
return J(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
247
|
-
});
|
|
248
|
-
function o() {
|
|
249
|
-
if (arguments.length === 0)
|
|
250
|
-
throw new Error("compose requires at least one argument");
|
|
251
|
-
return T.apply(this, E(arguments));
|
|
252
|
-
}
|
|
253
|
-
var se = /* @__PURE__ */ h(function(t) {
|
|
254
|
-
return Q(0, t);
|
|
255
|
-
}), Ze = /* @__PURE__ */ function() {
|
|
256
|
-
function t(e, r, n, a) {
|
|
257
|
-
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = a, this.inputs = {};
|
|
258
|
-
}
|
|
259
|
-
return t.prototype["@@transducer/init"] = Te.init, t.prototype["@@transducer/result"] = function(e) {
|
|
260
|
-
var r;
|
|
261
|
-
for (r in this.inputs)
|
|
262
|
-
if (L(r, this.inputs) && (e = this.xf["@@transducer/step"](e, this.inputs[r]), e["@@transducer/reduced"])) {
|
|
263
|
-
e = e["@@transducer/value"];
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
return this.inputs = null, this.xf["@@transducer/result"](e);
|
|
267
|
-
}, t.prototype["@@transducer/step"] = function(e, r) {
|
|
268
|
-
var n = this.keyFn(r);
|
|
269
|
-
return this.inputs[n] = this.inputs[n] || [n, x(this.valueAcc, !1)], this.inputs[n][1] = this.valueFn(this.inputs[n][1], r), e;
|
|
270
|
-
}, t;
|
|
271
|
-
}();
|
|
272
|
-
function we(t, e, r) {
|
|
273
|
-
return function(n) {
|
|
274
|
-
return new Ze(t, e, r, n);
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
var ie = /* @__PURE__ */ Se(4, [], /* @__PURE__ */ _e([], we, function(e, r, n, a) {
|
|
278
|
-
var s = te(function(i, c) {
|
|
279
|
-
var d = n(c), p = e(L(d, i) ? i[d] : x(r, !1), c);
|
|
280
|
-
return p && p["@@transducer/reduced"] ? Ie(i) : (i[d] = p, i);
|
|
281
|
-
});
|
|
282
|
-
return ee(s, {}, a);
|
|
283
|
-
})), y = /* @__PURE__ */ f(function(e, r, n) {
|
|
284
|
-
var a = e(r), s = e(n);
|
|
285
|
-
return a > s ? -1 : a < s ? 1 : 0;
|
|
286
|
-
}), et = /* @__PURE__ */ h(function(t) {
|
|
287
|
-
return Q(-1, t);
|
|
288
|
-
}), I = /* @__PURE__ */ m(/* @__PURE__ */ F("groupBy", /* @__PURE__ */ ie(function(t, e) {
|
|
289
|
-
return t.push(e), t;
|
|
290
|
-
}, []))), tt = /* @__PURE__ */ f(function(e, r, n) {
|
|
291
|
-
return A(Math.max(e.length, r.length, n.length), function() {
|
|
292
|
-
return e.apply(this, arguments) ? r.apply(this, arguments) : n.apply(this, arguments);
|
|
293
|
-
});
|
|
294
|
-
}), rt = /* @__PURE__ */ m(be), q = /* @__PURE__ */ ie(function(t, e) {
|
|
295
|
-
return e;
|
|
296
|
-
}, null), nt = /* @__PURE__ */ f(function(e, r, n) {
|
|
297
|
-
return Oe(function(a) {
|
|
298
|
-
return Ae(e, a, n);
|
|
299
|
-
}, r);
|
|
300
|
-
});
|
|
301
|
-
function at(t) {
|
|
302
|
-
if (t == null)
|
|
303
|
-
throw new TypeError("Cannot convert undefined or null to object");
|
|
304
|
-
for (var e = Object(t), r = 1, n = arguments.length; r < n; ) {
|
|
305
|
-
var a = arguments[r];
|
|
306
|
-
if (a != null)
|
|
307
|
-
for (var s in a)
|
|
308
|
-
L(s, a) && (e[s] = a[s]);
|
|
309
|
-
r += 1;
|
|
310
|
-
}
|
|
311
|
-
return e;
|
|
312
|
-
}
|
|
313
|
-
const st = typeof Object.assign == "function" ? Object.assign : at;
|
|
314
|
-
var ue = /* @__PURE__ */ G(1, "join"), it = /* @__PURE__ */ m(function(e, r) {
|
|
315
|
-
return function(n) {
|
|
316
|
-
return function(a) {
|
|
317
|
-
return l(function(s) {
|
|
318
|
-
return r(s, a);
|
|
319
|
-
}, n(e(a)));
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
}), oe = /* @__PURE__ */ h(function(e) {
|
|
323
|
-
return it(u(e), Ye(e));
|
|
324
|
-
}), ut = /* @__PURE__ */ m(function(e, r) {
|
|
325
|
-
return st({}, r, e);
|
|
326
|
-
}), ot = /* @__PURE__ */ f(function(e, r, n) {
|
|
327
|
-
return Re(function(a, s, i) {
|
|
328
|
-
return e(s, i);
|
|
329
|
-
}, r, n);
|
|
330
|
-
}), ce = function(t) {
|
|
331
|
-
return {
|
|
332
|
-
value: t,
|
|
333
|
-
map: function(e) {
|
|
334
|
-
return ce(e(t));
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
}, le = /* @__PURE__ */ f(function(e, r, n) {
|
|
338
|
-
return e(function(a) {
|
|
339
|
-
return ce(r(a));
|
|
340
|
-
})(n).value;
|
|
341
|
-
}), fe = /* @__PURE__ */ f(function(e, r, n) {
|
|
342
|
-
return O(Ee(r, n), e);
|
|
343
|
-
}), pe = /* @__PURE__ */ m(function(e, r) {
|
|
344
|
-
for (var n = {}, a = 0; a < e.length; )
|
|
345
|
-
e[a] in r && (n[e[a]] = r[e[a]]), a += 1;
|
|
346
|
-
return n;
|
|
347
|
-
}), P = /* @__PURE__ */ f(function(e, r, n) {
|
|
348
|
-
return O(e, u(r, n));
|
|
349
|
-
}), C = /* @__PURE__ */ f(function(e, r, n) {
|
|
350
|
-
return n.replace(e, r);
|
|
351
|
-
}), W = /* @__PURE__ */ m(function(e, r) {
|
|
352
|
-
return Array.prototype.slice.call(r, 0).sort(e);
|
|
353
|
-
}), v = /* @__PURE__ */ m(function(e, r) {
|
|
354
|
-
return Array.prototype.slice.call(r, 0).sort(function(n, a) {
|
|
355
|
-
var s = e(n), i = e(a);
|
|
356
|
-
return s < i ? -1 : s > i ? 1 : 0;
|
|
357
|
-
});
|
|
358
|
-
}), D = /* @__PURE__ */ m(function(e, r) {
|
|
359
|
-
return Array.prototype.slice.call(r, 0).sort(function(n, a) {
|
|
360
|
-
for (var s = 0, i = 0; s === 0 && i < e.length; )
|
|
361
|
-
s = e[i](n, a), i += 1;
|
|
362
|
-
return s;
|
|
363
|
-
});
|
|
364
|
-
});
|
|
365
|
-
function ct(t) {
|
|
366
|
-
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
367
|
-
}
|
|
368
|
-
var lt = /* @__PURE__ */ m(function(e, r) {
|
|
369
|
-
if (!ct(e))
|
|
370
|
-
throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received " + $(e));
|
|
371
|
-
return ae(e).test(r);
|
|
372
|
-
}), H = /* @__PURE__ */ G(0, "toLowerCase"), ft = /* @__PURE__ */ G(0, "toUpperCase");
|
|
373
|
-
let pt = 0;
|
|
374
|
-
function mt() {
|
|
375
|
-
return ++pt;
|
|
376
|
-
}
|
|
377
|
-
function Ot(t = []) {
|
|
378
|
-
return {
|
|
379
|
-
result: [...t],
|
|
380
|
-
filteredRowsLength: 0,
|
|
381
|
-
isFiltered: !1,
|
|
382
|
-
value() {
|
|
383
|
-
return {
|
|
384
|
-
rows: this.result,
|
|
385
|
-
totalItems: this.isFiltered ? this.filteredRowsLength : t.length,
|
|
386
|
-
currentItems: this.currentItems
|
|
387
|
-
};
|
|
388
|
-
},
|
|
389
|
-
filter(e, r = [], n = !1) {
|
|
390
|
-
if (e) {
|
|
391
|
-
const a = r.map(
|
|
392
|
-
(c) => n ? T(S(c), O(e)) : T(u(c), H, rt(H(e)))
|
|
393
|
-
), s = ne((c) => c.name ? le(oe("name"), C(",", ""), c) : c), i = R(T(s, ke([...a])), this.result);
|
|
394
|
-
this.isFiltered = !0, this.filteredRowsLength = i.length, this.result = i;
|
|
395
|
-
}
|
|
396
|
-
return this;
|
|
397
|
-
},
|
|
398
|
-
sorted(e) {
|
|
399
|
-
if (!e.sortTarget)
|
|
400
|
-
return this;
|
|
401
|
-
if (e.orders[0].direction === de)
|
|
402
|
-
return this;
|
|
403
|
-
const r = tt(O(ye), k(_), k(y));
|
|
404
|
-
return this.result = D(e.orders.map((n) => o(r(n.direction), u)(n.target)))(this.result), this;
|
|
405
|
-
},
|
|
406
|
-
addIndex(e = null) {
|
|
407
|
-
return this.result.reduce((r, n, a) => {
|
|
408
|
-
const s = r[r.length - 1] || [], i = e && s[e] === n[e];
|
|
409
|
-
return n.index = i ? s.index : a + 1, n.indexClass = i ? "is-duplicated" : null, r.push(n), r;
|
|
410
|
-
}, []), this;
|
|
411
|
-
},
|
|
412
|
-
addContinuousIndex() {
|
|
413
|
-
return this.result = this.result.map((e, r) => ({
|
|
414
|
-
...e,
|
|
415
|
-
index: r + 1
|
|
416
|
-
})), this;
|
|
417
|
-
},
|
|
418
|
-
pagination(e, r) {
|
|
419
|
-
if (!r)
|
|
420
|
-
return this;
|
|
421
|
-
e = Number(e), r = Number(r);
|
|
422
|
-
const n = (e - 1) * r, a = n + r;
|
|
423
|
-
return this.result = this.result.slice(n, a), this;
|
|
424
|
-
},
|
|
425
|
-
more(e, r) {
|
|
426
|
-
return this.result = this.result.slice(Number(e), Number(r)), this;
|
|
427
|
-
},
|
|
428
|
-
playerName() {
|
|
429
|
-
return this.result = this.result.map((e) => ({
|
|
430
|
-
...e,
|
|
431
|
-
name: Tt(e)
|
|
432
|
-
})), this;
|
|
433
|
-
},
|
|
434
|
-
teamName() {
|
|
435
|
-
return this.result = this.result.map((e) => ({
|
|
436
|
-
...e,
|
|
437
|
-
teamName: e.team.longName
|
|
438
|
-
})), this;
|
|
439
|
-
},
|
|
440
|
-
schedule(e = "", r = "hu") {
|
|
441
|
-
return this.result = this.result.map((n) => ({
|
|
442
|
-
...n,
|
|
443
|
-
gameResult: `${n.homeTeamScore}-${n.awayTeamScore}`,
|
|
444
|
-
gameDateDate: N(n.gameDate, "L dddd", e, r),
|
|
445
|
-
gameDateTime: N(n.gameDate, "HH:mm", e, r)
|
|
446
|
-
})), this;
|
|
447
|
-
},
|
|
448
|
-
gameDateFilter(e) {
|
|
449
|
-
return e === null ? this : (this.result = this.result.filter((r) => new Date(r.gameDate).getMonth() === e), this);
|
|
450
|
-
},
|
|
451
|
-
convertTimes(e = []) {
|
|
452
|
-
return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = V(r[n]) : r), r)), this;
|
|
453
|
-
},
|
|
454
|
-
groupByDays() {
|
|
455
|
-
return this.currentItems = this.result.length, this.result = I((e) => N(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
456
|
-
},
|
|
457
|
-
slice(e = 3) {
|
|
458
|
-
return this.result = this.result.slice(0, e), this;
|
|
459
|
-
},
|
|
460
|
-
reverse(e) {
|
|
461
|
-
return e && (this.result = [...this.result].reverse()), this;
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
const At = (t, ...e) => l(o(...e))(t);
|
|
466
|
-
function b(t) {
|
|
467
|
-
return {
|
|
468
|
-
...t,
|
|
469
|
-
...t.lastName && t.firstName && { name: `${t.lastName} ${t.firstName}` },
|
|
470
|
-
...t.player?.playerId && { name: `${t.player.lastName} ${t.player.firstName}` },
|
|
471
|
-
...t.player?.id && { name: `${t.player.lastName} ${t.player.firstName}` },
|
|
472
|
-
...t.player?.nationality && {
|
|
473
|
-
name: t.player?.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}`
|
|
474
|
-
},
|
|
475
|
-
...t.nationality && {
|
|
476
|
-
name: t.nationality.includes("hu") ? `${t.lastName} ${t.firstName}` : `${t.lastName}, ${t.firstName}`
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
function me(t) {
|
|
481
|
-
return {
|
|
482
|
-
...t,
|
|
483
|
-
...t?.team?.id && { teamName: t.team.longName }
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
function Rt(t = "", e = "hu") {
|
|
487
|
-
return (r) => ({
|
|
488
|
-
...r,
|
|
489
|
-
gameDateDate: N(r.gameDate, "L dddd", t, e),
|
|
490
|
-
gameDateTime: N(r.gameDate, "HH:mm", t, e)
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
function Et(t) {
|
|
494
|
-
return (e) => ({
|
|
495
|
-
...e,
|
|
496
|
-
gameResult: gt(e)
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
function Pt(t) {
|
|
500
|
-
return {
|
|
501
|
-
...t,
|
|
502
|
-
opponent: vt(t)
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
function Ct(t) {
|
|
506
|
-
return {
|
|
507
|
-
...t,
|
|
508
|
-
resultType: Nt(t)
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
function Dt(t) {
|
|
512
|
-
return {
|
|
513
|
-
...t,
|
|
514
|
-
rowClasses: t.optional ? "is-optional" : ""
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
function ht(t = []) {
|
|
518
|
-
return (e) => ({
|
|
519
|
-
...e,
|
|
520
|
-
[t]: e[t]?.toUpperCase()
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
function $t(t = []) {
|
|
524
|
-
return (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = V(e[r]) : e), e);
|
|
525
|
-
}
|
|
526
|
-
function jt(t = []) {
|
|
527
|
-
return (e) => (t.map((r) => e[r] ? e[`${r}Min`] = De(e[r]) : e), e);
|
|
528
|
-
}
|
|
529
|
-
function Bt(t = []) {
|
|
530
|
-
return (e) => (t.map((r) => e[`${r}Min`] = $e(e[r])), e);
|
|
531
|
-
}
|
|
532
|
-
function Lt(t) {
|
|
533
|
-
return {
|
|
534
|
-
...t,
|
|
535
|
-
periodResults: t.result?.match(/\(.*?\)/)?.[0] ?? ""
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
function Gt(t) {
|
|
539
|
-
const e = [
|
|
540
|
-
t.championshipName,
|
|
541
|
-
...t.championshipName !== t.sectionName ? [t.sectionName] : [],
|
|
542
|
-
t.divisionName
|
|
543
|
-
];
|
|
544
|
-
return {
|
|
545
|
-
...t,
|
|
546
|
-
gameNames: e.join(" - ")
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
const dt = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), Mt = D([dt, _(u("id")), _(u("gameId"))]), yt = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), X = W(yt("name"));
|
|
550
|
-
function vt(t) {
|
|
551
|
-
return [t.isHomeGame ? null : "@", t.opponent?.shortName].join(" ");
|
|
552
|
-
}
|
|
553
|
-
function gt(t) {
|
|
554
|
-
let e = t?.homeTeamScore, r = t?.awayTeamScore;
|
|
555
|
-
return t.isHomeGame || (e = t?.awayTeamScore, r = t?.homeTeamScore), [e, r].join(":");
|
|
556
|
-
}
|
|
557
|
-
function Nt(t) {
|
|
558
|
-
const e = t.gameResult.split(":"), r = e[0] > e[1], n = e[0] < e[1];
|
|
559
|
-
return r && t.isOvertime ? "OTW" : r && t.isShootout ? "SOW" : r ? "W" : n && t.isOvertime ? "OTL" : n && t.isShootout ? "SOL" : n ? "L" : "D";
|
|
560
|
-
}
|
|
561
|
-
function xt(t) {
|
|
562
|
-
return t.map((e) => ({
|
|
563
|
-
phaseId: e.phaseId,
|
|
564
|
-
phaseName: Object.values({
|
|
565
|
-
phaseName: e.phaseName,
|
|
566
|
-
...e.phaseType?.phaseTypeName && e.phaseType.phaseTypeName !== e.phaseName && {
|
|
567
|
-
phaseTypeName: e.phaseType.phaseTypeName
|
|
568
|
-
},
|
|
569
|
-
...e.phaseSubType?.phaseSubTypeName && { phaseSubTypeName: e.phaseSubType.phaseSubTypeName }
|
|
570
|
-
}).join("-")
|
|
571
|
-
}));
|
|
572
|
-
}
|
|
573
|
-
function Tt(t) {
|
|
574
|
-
return t.player ? t.player.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}` : `${t.lastName} ${t.firstName}`;
|
|
575
|
-
}
|
|
576
|
-
const Ft = o(
|
|
577
|
-
W(y(u("seasonName"))),
|
|
578
|
-
l(pe(["championshipId", "seasonName"]))
|
|
579
|
-
), Wt = (t) => W(_(u("teamName")), t), Ut = o(v(u("sectionId")), g(o(Pe, u("phases")))), kt = o(u("sectionId"), se), qt = o(u("phaseName"), se), Ht = v(u("phaseId")), Xt = o(v(u("name")), l(o(b, me))), Yt = o(u("phaseName"), et), Jt = o(ft, C("_", "-")), zt = o(g(lt(/-:-/)), j(",")), Kt = o(l(j(":")), l(Ce), j(","), C(/^\(|\)$/g, "")), Qt = D([y(u("startingFive"))]), Vt = o(
|
|
580
|
-
ue(", "),
|
|
581
|
-
l((t) => `${t.lastName} ${t.firstName}`),
|
|
582
|
-
g((t) => !t)
|
|
583
|
-
), Zt = o(I(u("eventPeriod")), E, g(P("Period", "type"))), wt = I(u("row")), er = (t, e) => R(Ue([fe(e, ["team", "id"]), P("Gól", "type")]), E(t)), tr = o(l(b), pe(["headCoach", "secondCoach"])), rr = o(E, l((t) => ({ ...t, eventId: t.eventId ? t.eventId : mt() }))), nr = (t) => v(u("eventTimeSec"), Object.values(t));
|
|
584
|
-
function ar(t, e) {
|
|
585
|
-
const r = (a) => {
|
|
586
|
-
const s = ["first_referee", "second_referee", "first_line_judge", "second_line_judge"].indexOf(a.role);
|
|
587
|
-
return s > -1 ? s : 4;
|
|
588
|
-
}, n = (a) => ({ ...b(a), role: e(`role.${a.role}`) });
|
|
589
|
-
return I(u("type"), l(n, v(r, Object.values(t))));
|
|
590
|
-
}
|
|
591
|
-
const sr = D([
|
|
592
|
-
y(u("points")),
|
|
593
|
-
_(u("gamesPlayed")),
|
|
594
|
-
y(u("w")),
|
|
595
|
-
y(u("gd")),
|
|
596
|
-
y(u("gf"))
|
|
597
|
-
]), ir = (t, e) => g(P(t, "championshipId"), e), ur = (t, e) => R(P(t, "championshipId"), e), or = o(g((t) => ["Rájátszás", "Újrajátszandó"].includes(t.phaseName)), S([0, "phases"])), cr = o(
|
|
598
|
-
I(St),
|
|
599
|
-
v((t) => ["ld", "rd", "d"].includes(t.position?.toLowerCase()) ? 1 : ["lw", "rw", "c"].includes(t.position?.toLowerCase()) ? 2 : 0),
|
|
600
|
-
v(_t),
|
|
601
|
-
l(o(b, me, ht(["position"])))
|
|
602
|
-
);
|
|
603
|
-
function lr({ goalieStats: t, fieldPlayers: e, playersPenalty: r }) {
|
|
604
|
-
const n = l(S(["player", "playerId"]))(t), s = g((p) => n.includes(p.player.playerId), r), i = nt((p, he) => p.player.playerId === he, r, n), c = Y(e, s), d = Y(t, i);
|
|
605
|
-
return {
|
|
606
|
-
fieldPlayers: X(c),
|
|
607
|
-
goalies: X(d)
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
const fr = ne((t, e) => T(R(fe(e, ["team", "id"])), l(b))(t));
|
|
611
|
-
function pr(t) {
|
|
612
|
-
const e = t.city ? le(oe("city"), C(/$/, ",")) : () => ({});
|
|
613
|
-
return o(ue(" "), re, e, je(["type"]))(t);
|
|
614
|
-
}
|
|
615
|
-
function St(t) {
|
|
616
|
-
return ["ld", "rd"].includes(t.position?.toLowerCase()) ? "defenders" : ["lw", "rw", "c"].includes(t.position?.toLowerCase()) ? "forwards" : "goalies";
|
|
617
|
-
}
|
|
618
|
-
function _t(t) {
|
|
619
|
-
return Number(t.jerseyNr);
|
|
620
|
-
}
|
|
621
|
-
function Y(t, e) {
|
|
622
|
-
return re(ot(ut, q(S(["player", "playerId"]), t), q(S(["player", "playerId"]), e)));
|
|
623
|
-
}
|
|
624
|
-
function mr(t, e = "body") {
|
|
625
|
-
if (!t)
|
|
626
|
-
return;
|
|
627
|
-
if (typeof e != "string") {
|
|
628
|
-
e?.append(t);
|
|
629
|
-
return;
|
|
630
|
-
}
|
|
631
|
-
document.querySelector(e)?.append(t);
|
|
632
|
-
}
|
|
633
|
-
function hr(t, e = () => ({})) {
|
|
634
|
-
return t.slice().sort((r, n) => {
|
|
635
|
-
const a = e(r), s = e(n);
|
|
636
|
-
if (a === null || s === null)
|
|
637
|
-
return 0;
|
|
638
|
-
const i = a.compareDocumentPosition(s);
|
|
639
|
-
return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
class dr extends Error {
|
|
643
|
-
constructor(e, r = {}) {
|
|
644
|
-
const { key: n, cause: a } = r;
|
|
645
|
-
super(e), this.name = "WidgetError", this.key = n, this.cause = a;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
const yr = {
|
|
649
|
-
message: "Undefined Column name Message",
|
|
650
|
-
options: {
|
|
651
|
-
key: "undefined-column",
|
|
652
|
-
cause: {}
|
|
653
|
-
}
|
|
654
|
-
}, vr = {
|
|
655
|
-
message: "Invalid season name",
|
|
656
|
-
options: {
|
|
657
|
-
key: "invalid-season-name",
|
|
658
|
-
cause: {}
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
export {
|
|
662
|
-
ut as $,
|
|
663
|
-
Jt as A,
|
|
664
|
-
zt as B,
|
|
665
|
-
Kt as C,
|
|
666
|
-
Qt as D,
|
|
667
|
-
Vt as E,
|
|
668
|
-
Zt as F,
|
|
669
|
-
wt as G,
|
|
670
|
-
er as H,
|
|
671
|
-
tr as I,
|
|
672
|
-
rr as J,
|
|
673
|
-
nr as K,
|
|
674
|
-
ar as L,
|
|
675
|
-
sr as M,
|
|
676
|
-
ir as N,
|
|
677
|
-
ur as O,
|
|
678
|
-
or as P,
|
|
679
|
-
cr as Q,
|
|
680
|
-
lr as R,
|
|
681
|
-
fr as S,
|
|
682
|
-
pr as T,
|
|
683
|
-
mr as U,
|
|
684
|
-
hr as V,
|
|
685
|
-
dr as W,
|
|
686
|
-
yr as X,
|
|
687
|
-
vr as Y,
|
|
688
|
-
se as Z,
|
|
689
|
-
et as _,
|
|
690
|
-
Et as a,
|
|
691
|
-
pe as a0,
|
|
692
|
-
T as a1,
|
|
693
|
-
P as a2,
|
|
694
|
-
E as a3,
|
|
695
|
-
v as a4,
|
|
696
|
-
x as a5,
|
|
697
|
-
M as a6,
|
|
698
|
-
Pt as b,
|
|
699
|
-
Ot as c,
|
|
700
|
-
Ct as d,
|
|
701
|
-
$t as e,
|
|
702
|
-
jt as f,
|
|
703
|
-
Rt as g,
|
|
704
|
-
Bt as h,
|
|
705
|
-
Lt as i,
|
|
706
|
-
Gt as j,
|
|
707
|
-
Mt as k,
|
|
708
|
-
X as l,
|
|
709
|
-
xt as m,
|
|
710
|
-
Ft as n,
|
|
711
|
-
Wt as o,
|
|
712
|
-
b as p,
|
|
713
|
-
Ut as q,
|
|
714
|
-
At as r,
|
|
715
|
-
Dt as s,
|
|
716
|
-
me as t,
|
|
717
|
-
ht as u,
|
|
718
|
-
kt as v,
|
|
719
|
-
qt as w,
|
|
720
|
-
Ht as x,
|
|
721
|
-
Xt as y,
|
|
722
|
-
Yt as z
|
|
723
|
-
};
|