@mjsz-vbr-elements/core 2.3.6 → 2.3.8
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-BcHECtG0.js → AdditionalStandingsText-DbEQVH0C.js} +679 -666
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +19 -23
- package/dist/constants.js +1 -1
- package/dist/{convert-HKQt4kO3.js → convert-BEp1U263.js} +186 -213
- package/dist/{datetime-BD_lSSC2.js → datetime-C3O51pdW.js} +259 -265
- 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 +5 -5
- package/dist/{useAdditionalText-Ta-GUW7T.js → useAdditionalText-B4_ntvb_.js} +176 -172
- package/dist/utils.js +4 -4
- package/package.json +8 -8
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.3.
|
|
3
|
+
* version: v2.3.8 - 21/05/2024, 10:10:53
|
|
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 { ref as E, readonly as ut, watch as _, nextTick as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { SORT_STATE_ORIGINAL as
|
|
11
|
-
var
|
|
12
|
-
const
|
|
13
|
-
function
|
|
8
|
+
import { ref as E, readonly as ut, watch as _, nextTick as lt, getCurrentScope as _t, onScopeDispose as xt, unref as I, isRef as Pt, shallowRef as nt, computed as C, reactive as ft, defineComponent as Rt, h as Ct, provide as dt, inject as pt, onErrorCaptured as Lt } from "vue";
|
|
9
|
+
import { _ as M, j as jt, k as Nt, l as Dt, m as kt, n as Ft, p as Bt, q as D, s as k, r as Ut, t as Vt, u as Wt, v as Mt, w as rt } from "./datetime-C3O51pdW.js";
|
|
10
|
+
import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as K, SORT_STATE_ASCEND as V } from "./constants.js";
|
|
11
|
+
var zt = { VITE_VBR_API_URL: "https://api.icehockey.hu/vbr", VITE_VBR_API_KEY: "", VITE_USER_NODE_ENV: "production", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
12
|
+
const Te = (t) => (zt.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + t;
|
|
13
|
+
function mt(t) {
|
|
14
14
|
return _t() ? (xt(t), !0) : !1;
|
|
15
15
|
}
|
|
16
16
|
function O(t) {
|
|
17
17
|
return typeof t == "function" ? t() : I(t);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const $ = typeof window < "u" && typeof document < "u";
|
|
20
20
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
21
|
-
const
|
|
21
|
+
const $t = Object.prototype.toString, qt = (t) => $t.call(t) === "[object Object]", R = () => {
|
|
22
22
|
}, Gt = /* @__PURE__ */ Kt();
|
|
23
23
|
function Kt() {
|
|
24
24
|
var t, e;
|
|
25
|
-
return
|
|
25
|
+
return $ && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
26
26
|
}
|
|
27
27
|
function Ht(t, e) {
|
|
28
28
|
function r(...n) {
|
|
@@ -32,8 +32,8 @@ function Ht(t, e) {
|
|
|
32
32
|
}
|
|
33
33
|
return r;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function Xt(t =
|
|
35
|
+
const vt = (t) => t();
|
|
36
|
+
function Xt(t = vt) {
|
|
37
37
|
const e = E(!0);
|
|
38
38
|
function r() {
|
|
39
39
|
e.value = !1;
|
|
@@ -53,7 +53,7 @@ function X(t, e = !1, r = "Timeout") {
|
|
|
53
53
|
}
|
|
54
54
|
function Yt(t, e, r = {}) {
|
|
55
55
|
const {
|
|
56
|
-
eventFilter: n =
|
|
56
|
+
eventFilter: n = vt,
|
|
57
57
|
...i
|
|
58
58
|
} = r;
|
|
59
59
|
return _(
|
|
@@ -65,11 +65,11 @@ function Yt(t, e, r = {}) {
|
|
|
65
65
|
i
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ae(t, e, r = {}) {
|
|
69
69
|
const {
|
|
70
70
|
eventFilter: n,
|
|
71
71
|
...i
|
|
72
|
-
} = r, { eventFilter: o, pause:
|
|
72
|
+
} = r, { eventFilter: o, pause: s, resume: c, isActive: u } = Xt(n);
|
|
73
73
|
return { stop: Yt(
|
|
74
74
|
t,
|
|
75
75
|
e,
|
|
@@ -77,7 +77,7 @@ function Ie(t, e, r = {}) {
|
|
|
77
77
|
...i,
|
|
78
78
|
eventFilter: o
|
|
79
79
|
}
|
|
80
|
-
), pause:
|
|
80
|
+
), pause: s, resume: c, isActive: u };
|
|
81
81
|
}
|
|
82
82
|
function Y(t, e = !1) {
|
|
83
83
|
function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout: T } = {}) {
|
|
@@ -127,10 +127,10 @@ function Y(t, e = !1) {
|
|
|
127
127
|
function o(l) {
|
|
128
128
|
return n(null, l);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function s(l) {
|
|
131
131
|
return n(void 0, l);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function c(l) {
|
|
134
134
|
return r(Number.isNaN, l);
|
|
135
135
|
}
|
|
136
136
|
function u(l, a) {
|
|
@@ -159,8 +159,8 @@ function Y(t, e = !1) {
|
|
|
159
159
|
toBe: n,
|
|
160
160
|
toBeTruthy: i,
|
|
161
161
|
toBeNull: o,
|
|
162
|
-
toBeNaN:
|
|
163
|
-
toBeUndefined:
|
|
162
|
+
toBeNaN: c,
|
|
163
|
+
toBeUndefined: s,
|
|
164
164
|
changed: p,
|
|
165
165
|
changedTimes: m,
|
|
166
166
|
get not() {
|
|
@@ -176,72 +176,76 @@ function Qt(t, e, r = {}) {
|
|
|
176
176
|
immediate: n = !0
|
|
177
177
|
} = r, i = E(!1);
|
|
178
178
|
let o = null;
|
|
179
|
-
function
|
|
179
|
+
function s() {
|
|
180
180
|
o && (clearTimeout(o), o = null);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
i.value = !1,
|
|
182
|
+
function c() {
|
|
183
|
+
i.value = !1, s();
|
|
184
184
|
}
|
|
185
185
|
function u(...p) {
|
|
186
|
-
|
|
186
|
+
s(), i.value = !0, o = setTimeout(() => {
|
|
187
187
|
i.value = !1, o = null, t(...p);
|
|
188
188
|
}, O(e));
|
|
189
189
|
}
|
|
190
|
-
return n && (i.value = !0,
|
|
190
|
+
return n && (i.value = !0, $ && u()), mt(c), {
|
|
191
191
|
isPending: ut(i),
|
|
192
192
|
start: u,
|
|
193
|
-
stop:
|
|
193
|
+
stop: c
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
function Zt(t, e, r) {
|
|
197
|
-
const n = _(t, (...i) => (
|
|
197
|
+
const n = _(t, (...i) => (lt(() => n()), e(...i)), r);
|
|
198
198
|
return n;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
200
|
+
function Ie(t, e, r) {
|
|
201
|
+
const n = _(
|
|
202
202
|
t,
|
|
203
|
-
(
|
|
204
|
-
|
|
203
|
+
(i, o, s) => {
|
|
204
|
+
i && (r != null && r.once && lt(() => n()), e(i, o, s));
|
|
205
205
|
},
|
|
206
|
-
|
|
206
|
+
{
|
|
207
|
+
...r,
|
|
208
|
+
once: !1
|
|
209
|
+
}
|
|
207
210
|
);
|
|
211
|
+
return n;
|
|
208
212
|
}
|
|
209
213
|
function N(t) {
|
|
210
214
|
var e;
|
|
211
215
|
const r = O(t);
|
|
212
216
|
return (e = r == null ? void 0 : r.$el) != null ? e : r;
|
|
213
217
|
}
|
|
214
|
-
const
|
|
215
|
-
function
|
|
218
|
+
const yt = $ ? window : void 0, te = $ ? window.document : void 0;
|
|
219
|
+
function W(...t) {
|
|
216
220
|
let e, r, n, i;
|
|
217
|
-
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e =
|
|
221
|
+
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e = yt) : [e, r, n, i] = t, !e)
|
|
218
222
|
return R;
|
|
219
223
|
Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
|
|
220
|
-
const o = [],
|
|
224
|
+
const o = [], s = () => {
|
|
221
225
|
o.forEach((m) => m()), o.length = 0;
|
|
222
|
-
},
|
|
226
|
+
}, c = (m, l, a, f) => (m.addEventListener(l, a, f), () => m.removeEventListener(l, a, f)), u = _(
|
|
223
227
|
() => [N(e), O(i)],
|
|
224
228
|
([m, l]) => {
|
|
225
|
-
if (
|
|
229
|
+
if (s(), !m)
|
|
226
230
|
return;
|
|
227
231
|
const a = qt(l) ? { ...l } : l;
|
|
228
232
|
o.push(
|
|
229
|
-
...r.flatMap((f) => n.map((d) =>
|
|
233
|
+
...r.flatMap((f) => n.map((d) => c(m, f, d, a)))
|
|
230
234
|
);
|
|
231
235
|
},
|
|
232
236
|
{ immediate: !0, flush: "post" }
|
|
233
237
|
), p = () => {
|
|
234
|
-
u(),
|
|
238
|
+
u(), s();
|
|
235
239
|
};
|
|
236
|
-
return
|
|
240
|
+
return mt(p), p;
|
|
237
241
|
}
|
|
238
242
|
let ot = !1;
|
|
239
|
-
function
|
|
240
|
-
const { window: n =
|
|
243
|
+
function Oe(t, e, r = {}) {
|
|
244
|
+
const { window: n = yt, ignore: i = [], capture: o = !0, detectIframe: s = !1 } = r;
|
|
241
245
|
if (!n)
|
|
242
246
|
return R;
|
|
243
247
|
Gt && !ot && (ot = !0, Array.from(n.document.body.children).forEach((a) => a.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
|
|
244
|
-
let
|
|
248
|
+
let c = !0;
|
|
245
249
|
const u = (a) => i.some((f) => {
|
|
246
250
|
if (typeof f == "string")
|
|
247
251
|
return Array.from(n.document.querySelectorAll(f)).some((d) => d === a.target || a.composedPath().includes(d));
|
|
@@ -250,21 +254,21 @@ function Se(t, e, r = {}) {
|
|
|
250
254
|
return d && (a.target === d || a.composedPath().includes(d));
|
|
251
255
|
}
|
|
252
256
|
}), m = [
|
|
253
|
-
|
|
257
|
+
W(n, "click", (a) => {
|
|
254
258
|
const f = N(t);
|
|
255
259
|
if (!(!f || f === a.target || a.composedPath().includes(f))) {
|
|
256
|
-
if (a.detail === 0 && (
|
|
257
|
-
|
|
260
|
+
if (a.detail === 0 && (c = !u(a)), !c) {
|
|
261
|
+
c = !0;
|
|
258
262
|
return;
|
|
259
263
|
}
|
|
260
264
|
e(a);
|
|
261
265
|
}
|
|
262
266
|
}, { passive: !0, capture: o }),
|
|
263
|
-
|
|
267
|
+
W(n, "pointerdown", (a) => {
|
|
264
268
|
const f = N(t);
|
|
265
|
-
|
|
269
|
+
c = !u(a) && !!(f && !a.composedPath().includes(f));
|
|
266
270
|
}, { passive: !0 }),
|
|
267
|
-
|
|
271
|
+
s && W(n, "blur", (a) => {
|
|
268
272
|
setTimeout(() => {
|
|
269
273
|
var f;
|
|
270
274
|
const d = N(t);
|
|
@@ -279,17 +283,17 @@ function ee(t, e, r) {
|
|
|
279
283
|
immediate: n = !0,
|
|
280
284
|
delay: i = 0,
|
|
281
285
|
onError: o = R,
|
|
282
|
-
onSuccess:
|
|
283
|
-
resetOnExecute:
|
|
286
|
+
onSuccess: s = R,
|
|
287
|
+
resetOnExecute: c = !0,
|
|
284
288
|
shallow: u = !0,
|
|
285
289
|
throwError: p
|
|
286
290
|
} = r ?? {}, m = u ? nt(e) : E(e), l = E(!1), a = E(!1), f = nt(void 0);
|
|
287
291
|
async function d(y = 0, ...b) {
|
|
288
|
-
|
|
292
|
+
c && (m.value = e), f.value = void 0, l.value = !1, a.value = !0, y > 0 && await X(y);
|
|
289
293
|
const A = typeof t == "function" ? t(...b) : t;
|
|
290
294
|
try {
|
|
291
295
|
const v = await A;
|
|
292
|
-
m.value = v, l.value = !0,
|
|
296
|
+
m.value = v, l.value = !0, s(v);
|
|
293
297
|
} catch (v) {
|
|
294
298
|
if (f.value = v, o(v), p)
|
|
295
299
|
throw v;
|
|
@@ -318,22 +322,22 @@ function ee(t, e, r) {
|
|
|
318
322
|
}
|
|
319
323
|
};
|
|
320
324
|
}
|
|
321
|
-
function
|
|
325
|
+
function Se(t = {}) {
|
|
322
326
|
const { document: e = te } = t;
|
|
323
327
|
if (!e)
|
|
324
328
|
return E("visible");
|
|
325
329
|
const r = E(e.visibilityState);
|
|
326
|
-
return
|
|
330
|
+
return W(e, "visibilitychange", () => {
|
|
327
331
|
r.value = e.visibilityState;
|
|
328
332
|
}), r;
|
|
329
333
|
}
|
|
330
334
|
async function ne(t) {
|
|
331
335
|
return new Promise((e, r) => {
|
|
332
|
-
const n = new Image(), { src: i, srcset: o, sizes:
|
|
333
|
-
n.src = i, o && (n.srcset = o),
|
|
336
|
+
const n = new Image(), { src: i, srcset: o, sizes: s, class: c, loading: u, crossorigin: p, referrerPolicy: m } = t;
|
|
337
|
+
n.src = i, o && (n.srcset = o), s && (n.sizes = s), c && (n.className = c), u && (n.loading = u), p && (n.crossOrigin = p), m && (n.referrerPolicy = m), n.onload = () => e(n), n.onerror = r;
|
|
334
338
|
});
|
|
335
339
|
}
|
|
336
|
-
function
|
|
340
|
+
function _e(t, e = {}) {
|
|
337
341
|
const r = ee(
|
|
338
342
|
() => ne(O(t)),
|
|
339
343
|
void 0,
|
|
@@ -348,19 +352,19 @@ function xe(t, e = {}) {
|
|
|
348
352
|
{ deep: !0 }
|
|
349
353
|
), r;
|
|
350
354
|
}
|
|
351
|
-
function
|
|
355
|
+
function xe(t = [], e = {}) {
|
|
352
356
|
const { delay: r = 0 } = e, n = E(!1), i = C(() => {
|
|
353
|
-
const
|
|
354
|
-
return Array.isArray(
|
|
355
|
-
}), { start: o, stop:
|
|
357
|
+
const c = I(t);
|
|
358
|
+
return Array.isArray(c) ? c.map((u) => I(u)).some(Boolean) : c;
|
|
359
|
+
}), { start: o, stop: s } = Qt(() => {
|
|
356
360
|
n.value = !0;
|
|
357
361
|
}, r);
|
|
358
362
|
return _(
|
|
359
363
|
i,
|
|
360
|
-
(
|
|
361
|
-
if (
|
|
364
|
+
(c) => {
|
|
365
|
+
if (c)
|
|
362
366
|
return o();
|
|
363
|
-
|
|
367
|
+
s(), n.value = !1;
|
|
364
368
|
},
|
|
365
369
|
{ immediate: !0, deep: !0 }
|
|
366
370
|
), n;
|
|
@@ -369,43 +373,43 @@ function re(t) {
|
|
|
369
373
|
var e = Object.prototype.toString.call(t);
|
|
370
374
|
return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]";
|
|
371
375
|
}
|
|
372
|
-
var oe = /* @__PURE__ */
|
|
376
|
+
var oe = /* @__PURE__ */ M(function(e) {
|
|
373
377
|
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : jt(e) ? [] : Nt(e) ? "" : Dt(e) ? {} : kt(e) ? /* @__PURE__ */ function() {
|
|
374
378
|
return arguments;
|
|
375
379
|
}() : re(e) ? e.constructor.from("") : void 0;
|
|
376
|
-
}), ie = /* @__PURE__ */
|
|
380
|
+
}), ie = /* @__PURE__ */ M(function(e) {
|
|
377
381
|
return e != null && Ft(e, oe(e));
|
|
378
382
|
}), ae = /* @__PURE__ */ Bt(function(e, r) {
|
|
379
|
-
for (var n = {}, i = {}, o = 0,
|
|
383
|
+
for (var n = {}, i = {}, o = 0, s = e.length; o < s; )
|
|
380
384
|
i[e[o]] = 1, o += 1;
|
|
381
|
-
for (var
|
|
382
|
-
i.hasOwnProperty(
|
|
385
|
+
for (var c in r)
|
|
386
|
+
i.hasOwnProperty(c) || (n[c] = r[c]);
|
|
383
387
|
return n;
|
|
384
388
|
}), j = `
|
|
385
|
-
\v\f\r \u2028\u2029\uFEFF`, se = "", ce = typeof String.prototype.trim == "function",
|
|
389
|
+
\v\f\r \u2028\u2029\uFEFF`, se = "", ce = typeof String.prototype.trim == "function", z = !ce || /* @__PURE__ */ j.trim() || !/* @__PURE__ */ se.trim() ? /* @__PURE__ */ M(function(e) {
|
|
386
390
|
var r = new RegExp("^[" + j + "][" + j + "]*"), n = new RegExp("[" + j + "][" + j + "]*$");
|
|
387
391
|
return e.replace(r, "").replace(n, "");
|
|
388
|
-
}) : /* @__PURE__ */
|
|
392
|
+
}) : /* @__PURE__ */ M(function(e) {
|
|
389
393
|
return e.trim();
|
|
390
394
|
});
|
|
391
|
-
const
|
|
395
|
+
const ht = Symbol("I18nContext"), g = ft({
|
|
392
396
|
messages: {},
|
|
393
397
|
locale: "",
|
|
394
398
|
fallbackLocale: ""
|
|
395
|
-
}),
|
|
399
|
+
}), Pe = ({ messages: t = {}, locale: e = "", fallbackLocale: r = "" }) => {
|
|
396
400
|
g.messages = t, g.locale = e, g.fallbackLocale = r;
|
|
397
401
|
const n = (u, p = {}) => {
|
|
398
402
|
const m = !ie(p), l = D(z, k(".", u));
|
|
399
403
|
return C(() => {
|
|
400
|
-
const f =
|
|
401
|
-
return m ?
|
|
404
|
+
const f = gt(l);
|
|
405
|
+
return m ? fe(f, p) : f;
|
|
402
406
|
}).value;
|
|
403
407
|
}, i = (u) => {
|
|
404
408
|
const p = D(z, k(".", u));
|
|
405
409
|
return !!J(g.locale, p, g.messages);
|
|
406
410
|
}, o = (u) => {
|
|
407
411
|
g.locale = u;
|
|
408
|
-
},
|
|
412
|
+
}, c = {
|
|
409
413
|
locale: C({
|
|
410
414
|
get() {
|
|
411
415
|
return g.locale;
|
|
@@ -418,35 +422,35 @@ const z = ue, yt = Symbol("I18nContext"), g = lt({
|
|
|
418
422
|
translate: n,
|
|
419
423
|
hasTranslation: i
|
|
420
424
|
};
|
|
421
|
-
return
|
|
425
|
+
return dt(ht, c), {
|
|
422
426
|
translate: n
|
|
423
427
|
};
|
|
424
|
-
},
|
|
428
|
+
}, ue = (t) => {
|
|
425
429
|
t && (g.messages = t.messages, g.locale = t.locale, g.fallbackLocale = t.fallbackLocale);
|
|
426
|
-
const e =
|
|
430
|
+
const e = le();
|
|
427
431
|
return {
|
|
428
432
|
locale: e.locale,
|
|
429
433
|
t: e.translate,
|
|
430
434
|
setLocale: e.setLocale,
|
|
431
435
|
hasTranslation: e.hasTranslation
|
|
432
436
|
};
|
|
433
|
-
},
|
|
434
|
-
const t =
|
|
437
|
+
}, le = () => {
|
|
438
|
+
const t = pt(ht, null);
|
|
435
439
|
if (t === null)
|
|
436
440
|
throw new Error("Privider is missing a parent component.");
|
|
437
441
|
return t;
|
|
438
|
-
},
|
|
442
|
+
}, gt = (t = []) => {
|
|
439
443
|
let e = J(g.locale, t, g.messages);
|
|
440
444
|
return !e && g.fallbackLocale && (e = J(g.fallbackLocale, t, g.messages)), e || t.join(".");
|
|
441
445
|
};
|
|
442
446
|
function J(t, e, r) {
|
|
443
447
|
return Ut([t, ...e], r);
|
|
444
448
|
}
|
|
445
|
-
const
|
|
449
|
+
const fe = function(t, e) {
|
|
446
450
|
return t.replace(/\{(\w+)\}/g, function(r, n) {
|
|
447
451
|
return e[n];
|
|
448
452
|
});
|
|
449
|
-
},
|
|
453
|
+
}, Re = Rt({
|
|
450
454
|
props: {
|
|
451
455
|
tag: {
|
|
452
456
|
type: String,
|
|
@@ -458,13 +462,13 @@ const de = function(t, e) {
|
|
|
458
462
|
}
|
|
459
463
|
},
|
|
460
464
|
setup(t, { slots: e }) {
|
|
461
|
-
const r = D(z, k(".", t.path)), n =
|
|
462
|
-
const
|
|
463
|
-
return
|
|
465
|
+
const r = D(z, k(".", t.path)), n = gt(r), i = k(/{|}/, n), o = Object.keys(e).map((s) => {
|
|
466
|
+
const c = i.indexOf(s);
|
|
467
|
+
return c > -1 && (i[c] = e[s]()[0]), i;
|
|
464
468
|
});
|
|
465
469
|
return () => Ct(t.tag, o);
|
|
466
470
|
}
|
|
467
|
-
}),
|
|
471
|
+
}), wt = Symbol("ErrorProviderContext"), Ce = () => {
|
|
468
472
|
const t = E(""), e = E({}), r = (o) => {
|
|
469
473
|
console.error({ error: o }), t.value = o.message || o.error.message, e.value = {
|
|
470
474
|
message: o.message,
|
|
@@ -472,52 +476,52 @@ const de = function(t, e) {
|
|
|
472
476
|
cause: o.cause
|
|
473
477
|
};
|
|
474
478
|
};
|
|
475
|
-
return
|
|
479
|
+
return dt(wt, {
|
|
476
480
|
onError: r,
|
|
477
481
|
reset: () => {
|
|
478
482
|
t.value = "", e.value = {};
|
|
479
483
|
}
|
|
480
484
|
}), window.onerror = (o) => {
|
|
481
485
|
console.error("WINDOW_ONERROR:", o);
|
|
482
|
-
}, Lt((o,
|
|
483
|
-
console.error("onErrorCaptured:", o,
|
|
486
|
+
}, Lt((o, s, c) => {
|
|
487
|
+
console.error("onErrorCaptured:", o, s, c);
|
|
484
488
|
}), {
|
|
485
489
|
hasError: C(() => t.value.length > 0),
|
|
486
490
|
message: t,
|
|
487
491
|
error: e,
|
|
488
492
|
onError: r
|
|
489
493
|
};
|
|
490
|
-
},
|
|
491
|
-
const t =
|
|
494
|
+
}, Le = () => {
|
|
495
|
+
const t = de();
|
|
492
496
|
return {
|
|
493
497
|
onError: t.onError,
|
|
494
498
|
reset: t.reset
|
|
495
499
|
};
|
|
496
|
-
},
|
|
497
|
-
const t =
|
|
500
|
+
}, de = () => {
|
|
501
|
+
const t = pt(wt, null);
|
|
498
502
|
if (t === null)
|
|
499
503
|
throw new Error("Privider is missing a parent component.");
|
|
500
504
|
return t;
|
|
501
|
-
},
|
|
502
|
-
const n = E(""), { t: i } =
|
|
505
|
+
}, je = (t, e = "", r = {}) => {
|
|
506
|
+
const n = E(""), { t: i } = ue(), o = C(() => {
|
|
503
507
|
if (I(e))
|
|
504
508
|
try {
|
|
505
|
-
const u =
|
|
509
|
+
const u = pe(I(t), I(e));
|
|
506
510
|
return ae(u, I(t));
|
|
507
511
|
} catch (u) {
|
|
508
512
|
n.value = u;
|
|
509
513
|
}
|
|
510
514
|
return I(t);
|
|
511
|
-
}),
|
|
515
|
+
}), s = (u) => ({
|
|
512
516
|
...u,
|
|
513
517
|
...u.label && { label: i(u.label ?? "", I(r)) },
|
|
514
518
|
...u.tooltip && { tooltip: i(u.tooltip ?? "") }
|
|
515
519
|
});
|
|
516
520
|
return {
|
|
517
|
-
columns: C(() => D(
|
|
521
|
+
columns: C(() => D(s, o.value)),
|
|
518
522
|
error: n
|
|
519
523
|
};
|
|
520
|
-
},
|
|
524
|
+
}, pe = (t, e = "") => {
|
|
521
525
|
const r = D(z, k(",", e)), n = Wt(t);
|
|
522
526
|
if (r[0] === "")
|
|
523
527
|
return resolve([]);
|
|
@@ -544,12 +548,12 @@ function H(t, e) {
|
|
|
544
548
|
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
545
549
|
if (!r)
|
|
546
550
|
return t;
|
|
547
|
-
var n, i, o = r.call(t),
|
|
551
|
+
var n, i, o = r.call(t), s = [];
|
|
548
552
|
try {
|
|
549
553
|
for (; (e === void 0 || e-- > 0) && !(n = o.next()).done; )
|
|
550
|
-
|
|
551
|
-
} catch (
|
|
552
|
-
i = { error:
|
|
554
|
+
s.push(n.value);
|
|
555
|
+
} catch (c) {
|
|
556
|
+
i = { error: c };
|
|
553
557
|
} finally {
|
|
554
558
|
try {
|
|
555
559
|
n && !n.done && (r = o.return) && r.call(o);
|
|
@@ -558,14 +562,14 @@ function H(t, e) {
|
|
|
558
562
|
throw i.error;
|
|
559
563
|
}
|
|
560
564
|
}
|
|
561
|
-
return
|
|
565
|
+
return s;
|
|
562
566
|
}
|
|
563
567
|
var it;
|
|
564
568
|
(function(t) {
|
|
565
569
|
t[t.NotStarted = 0] = "NotStarted", t[t.Running = 1] = "Running", t[t.Stopped = 2] = "Stopped";
|
|
566
570
|
})(it || (it = {}));
|
|
567
|
-
var
|
|
568
|
-
function
|
|
571
|
+
var me = { type: "xstate.init" };
|
|
572
|
+
function U(t) {
|
|
569
573
|
return t === void 0 ? [] : [].concat(t);
|
|
570
574
|
}
|
|
571
575
|
function at(t, e) {
|
|
@@ -576,7 +580,7 @@ function Q(t) {
|
|
|
576
580
|
return t === e;
|
|
577
581
|
};
|
|
578
582
|
}
|
|
579
|
-
function
|
|
583
|
+
function ve(t) {
|
|
580
584
|
return typeof t == "string" ? { type: t } : t;
|
|
581
585
|
}
|
|
582
586
|
function st(t, e) {
|
|
@@ -587,33 +591,33 @@ function ct(t, e, r) {
|
|
|
587
591
|
return [t.filter(function(o) {
|
|
588
592
|
if (o.type === "xstate.assign") {
|
|
589
593
|
i = !0;
|
|
590
|
-
var
|
|
591
|
-
return typeof o.assignment == "function" ?
|
|
592
|
-
c
|
|
593
|
-
}), n =
|
|
594
|
+
var s = Object.assign({}, n);
|
|
595
|
+
return typeof o.assignment == "function" ? s = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(c) {
|
|
596
|
+
s[c] = typeof o.assignment[c] == "function" ? o.assignment[c](n, r) : o.assignment[c];
|
|
597
|
+
}), n = s, !1;
|
|
594
598
|
}
|
|
595
599
|
return !0;
|
|
596
600
|
}), n, i];
|
|
597
601
|
}
|
|
598
|
-
function
|
|
602
|
+
function ye(t, e) {
|
|
599
603
|
e === void 0 && (e = {});
|
|
600
|
-
var r = H(ct(
|
|
601
|
-
return at(
|
|
602
|
-
}), t.context,
|
|
603
|
-
var u, p, m = typeof
|
|
604
|
+
var r = H(ct(U(t.states[t.initial].entry).map(function(s) {
|
|
605
|
+
return at(s, e.actions);
|
|
606
|
+
}), t.context, me), 2), n = r[0], i = r[1], o = { config: t, _options: e, initialState: { value: t.initial, actions: n, context: i, matches: Q(t.initial) }, transition: function(s, c) {
|
|
607
|
+
var u, p, m = typeof s == "string" ? { value: s, context: t.context } : s, l = m.value, a = m.context, f = ve(c), d = t.states[l];
|
|
604
608
|
if (d.on) {
|
|
605
|
-
var T =
|
|
606
|
-
"*" in d.on && T.push.apply(T, function(h, S,
|
|
607
|
-
if (
|
|
608
|
-
for (var x, P = 0,
|
|
609
|
+
var T = U(d.on[f.type]);
|
|
610
|
+
"*" in d.on && T.push.apply(T, function(h, S, G) {
|
|
611
|
+
if (arguments.length === 2)
|
|
612
|
+
for (var x, P = 0, St = S.length; P < St; P++)
|
|
609
613
|
!x && P in S || (x || (x = Array.prototype.slice.call(S, 0, P)), x[P] = S[P]);
|
|
610
614
|
return h.concat(x || Array.prototype.slice.call(S));
|
|
611
|
-
}([], H(
|
|
615
|
+
}([], H(U(d.on["*"])), !1));
|
|
612
616
|
try {
|
|
613
617
|
for (var w = function(h) {
|
|
614
|
-
var S = typeof Symbol == "function" && Symbol.iterator,
|
|
615
|
-
if (
|
|
616
|
-
return
|
|
618
|
+
var S = typeof Symbol == "function" && Symbol.iterator, G = S && h[S], x = 0;
|
|
619
|
+
if (G)
|
|
620
|
+
return G.call(h);
|
|
617
621
|
if (h && typeof h.length == "number")
|
|
618
622
|
return { next: function() {
|
|
619
623
|
return h && x >= h.length && (h = void 0), { value: h && h[x++], done: !h };
|
|
@@ -623,16 +627,16 @@ function he(t, e) {
|
|
|
623
627
|
var b = y.value;
|
|
624
628
|
if (b === void 0)
|
|
625
629
|
return st(l, a);
|
|
626
|
-
var A = typeof b == "string" ? { target: b } : b, v = A.target, L = A.actions, F = L === void 0 ? [] : L, Z = A.cond,
|
|
630
|
+
var A = typeof b == "string" ? { target: b } : b, v = A.target, L = A.actions, F = L === void 0 ? [] : L, Z = A.cond, bt = Z === void 0 ? function() {
|
|
627
631
|
return !0;
|
|
628
|
-
} : Z,
|
|
629
|
-
if (
|
|
630
|
-
var
|
|
632
|
+
} : Z, Et = v === void 0, Tt = v ?? l, At = t.states[Tt];
|
|
633
|
+
if (bt(a, f)) {
|
|
634
|
+
var q = H(ct((Et ? U(F) : [].concat(d.exit, F, At.entry).filter(function(h) {
|
|
631
635
|
return h;
|
|
632
636
|
})).map(function(h) {
|
|
633
637
|
return at(h, o._options.actions);
|
|
634
|
-
}), a, f), 3), tt =
|
|
635
|
-
return { value: et, context:
|
|
638
|
+
}), a, f), 3), tt = q[0], It = q[1], Ot = q[2], et = v ?? l;
|
|
639
|
+
return { value: et, context: It, actions: tt, changed: v !== l || tt.length > 0 || Ot, matches: Q(et) };
|
|
636
640
|
}
|
|
637
641
|
}
|
|
638
642
|
} catch (h) {
|
|
@@ -650,53 +654,53 @@ function he(t, e) {
|
|
|
650
654
|
} };
|
|
651
655
|
return o;
|
|
652
656
|
}
|
|
653
|
-
const
|
|
657
|
+
const he = ye({
|
|
654
658
|
id: "sort",
|
|
655
|
-
initial:
|
|
659
|
+
initial: B,
|
|
656
660
|
states: {
|
|
657
|
-
[
|
|
661
|
+
[B]: {
|
|
658
662
|
on: {
|
|
659
663
|
DIRECTION1: K,
|
|
660
|
-
DIRECTION2:
|
|
664
|
+
DIRECTION2: V
|
|
661
665
|
}
|
|
662
666
|
},
|
|
663
667
|
[K]: {
|
|
664
668
|
on: {
|
|
665
|
-
DIRECTION1:
|
|
666
|
-
DIRECTION2:
|
|
669
|
+
DIRECTION1: V,
|
|
670
|
+
DIRECTION2: B
|
|
667
671
|
}
|
|
668
672
|
},
|
|
669
|
-
[
|
|
673
|
+
[V]: {
|
|
670
674
|
on: {
|
|
671
|
-
DIRECTION1:
|
|
675
|
+
DIRECTION1: B,
|
|
672
676
|
DIRECTION2: K
|
|
673
677
|
}
|
|
674
678
|
}
|
|
675
679
|
}
|
|
676
|
-
}),
|
|
677
|
-
const r = e ===
|
|
678
|
-
return
|
|
680
|
+
}), ge = (t, e) => {
|
|
681
|
+
const r = e === V ? "DIRECTION2" : "DIRECTION1";
|
|
682
|
+
return he.transition(t, r).value;
|
|
679
683
|
};
|
|
680
|
-
function
|
|
681
|
-
const { sortTarget: e = null, orders: r = [] } = t, n =
|
|
684
|
+
function Ne(t = {}) {
|
|
685
|
+
const { sortTarget: e = null, orders: r = [] } = t, n = ft({ sortTarget: e, orders: r });
|
|
682
686
|
return {
|
|
683
687
|
sort: n,
|
|
684
|
-
change: ({ target: o, orders:
|
|
688
|
+
change: ({ target: o, orders: s }) => {
|
|
685
689
|
if (n.sortTarget !== o) {
|
|
686
|
-
n.sortTarget = o, n.orders =
|
|
690
|
+
n.sortTarget = o, n.orders = s;
|
|
687
691
|
return;
|
|
688
692
|
}
|
|
689
|
-
const
|
|
693
|
+
const c = s.map((u, p) => ({
|
|
690
694
|
...u,
|
|
691
|
-
direction:
|
|
695
|
+
direction: ge(n.orders[p].direction, u.direction)
|
|
692
696
|
}));
|
|
693
|
-
n.sortTarget = o, n.orders =
|
|
697
|
+
n.sortTarget = o, n.orders = c;
|
|
694
698
|
}
|
|
695
699
|
};
|
|
696
700
|
}
|
|
697
|
-
function
|
|
698
|
-
const i = E(""), o = E(!1),
|
|
699
|
-
const u = Mt(rt(e),
|
|
701
|
+
function De(t, e, r, n) {
|
|
702
|
+
const i = E(""), o = E(!1), s = (c) => {
|
|
703
|
+
const u = Mt(rt(e), c), p = u.length > 0;
|
|
700
704
|
if (o.value = p, !p)
|
|
701
705
|
return i.value = "";
|
|
702
706
|
const l = u.map((a) => ({
|
|
@@ -709,30 +713,30 @@ function ke(t, e, r, n) {
|
|
|
709
713
|
...r(`additionalText.${e}.appendix`) && [r(`additionalText.${e}.appendix`)]
|
|
710
714
|
].join(" ");
|
|
711
715
|
};
|
|
712
|
-
return Zt(t,
|
|
716
|
+
return Zt(t, s), _(n, () => s(I(t))), {
|
|
713
717
|
text: i,
|
|
714
718
|
isVisible: o
|
|
715
719
|
};
|
|
716
720
|
}
|
|
717
721
|
export {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
722
|
+
Ce as a,
|
|
723
|
+
Le as b,
|
|
724
|
+
Pe as c,
|
|
725
|
+
ue as d,
|
|
726
|
+
xe as e,
|
|
727
|
+
Te as f,
|
|
728
|
+
Ne as g,
|
|
729
|
+
De as h,
|
|
730
|
+
Re as i,
|
|
731
|
+
_e as j,
|
|
728
732
|
Zt as k,
|
|
729
733
|
ee as l,
|
|
730
|
-
|
|
734
|
+
Se as m,
|
|
731
735
|
R as n,
|
|
732
|
-
|
|
733
|
-
|
|
736
|
+
Oe as o,
|
|
737
|
+
Ae as p,
|
|
734
738
|
N as q,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
739
|
+
je as u,
|
|
740
|
+
pe as v,
|
|
741
|
+
Ie as w
|
|
738
742
|
};
|