@mjsz-vbr-elements/core 2.3.7 → 2.4.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/{AdditionalStandingsText-BcHECtG0.js → AdditionalStandingsText-DlP-tdH1.js} +881 -778
- package/dist/columns.js +1 -1
- package/dist/components.js +13 -12
- package/dist/composables.js +37 -41
- package/dist/constants.js +1 -1
- package/dist/{convert-HKQt4kO3.js → convert-BUiKPu9l.js} +186 -203
- package/dist/datetime-Df9jKQTx.js +1303 -0
- 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 +101 -88
- package/dist/{useAdditionalText-Ta-GUW7T.js → useAdditionalText-Bi2CUi4-.js} +232 -228
- package/dist/utils.js +60 -48
- package/package.json +9 -8
- package/dist/datetime-BD_lSSC2.js +0 -1230
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.4.0 - 06/06/2024, 12:35:57
|
|
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
|
|
9
|
-
import { _ as
|
|
10
|
-
import { SORT_STATE_ORIGINAL as
|
|
11
|
-
var
|
|
12
|
-
const Ae = (t) => (
|
|
13
|
-
function
|
|
8
|
+
import { ref as b, readonly as ut, watch as _, nextTick as lt, getCurrentScope as _t, onScopeDispose as xt, unref as I, isRef as Ct, shallowRef as nt, computed as R, reactive as ft, defineComponent as Pt, h as Rt, provide as dt, inject as pt, onErrorCaptured as Lt } from "vue";
|
|
9
|
+
import { _ as M, w as jt, x as Nt, z as Dt, A as Ft, B as kt, C as Bt, D, E as F, F as Ut, u as Vt, G as Wt, H as Mt, I as rt } from "./datetime-Df9jKQTx.js";
|
|
10
|
+
import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as H, 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 Ae = (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
|
|
22
|
-
},
|
|
23
|
-
function
|
|
21
|
+
const $t = Object.prototype.toString, Gt = (t) => $t.call(t) === "[object Object]", P = () => {
|
|
22
|
+
}, qt = /* @__PURE__ */ Ht();
|
|
23
|
+
function Ht() {
|
|
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
|
-
function
|
|
27
|
+
function Kt(t, e) {
|
|
28
28
|
function r(...n) {
|
|
29
29
|
return new Promise((i, o) => {
|
|
30
30
|
Promise.resolve(t(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(i).catch(o);
|
|
@@ -32,9 +32,9 @@ function Ht(t, e) {
|
|
|
32
32
|
}
|
|
33
33
|
return r;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function Xt(t =
|
|
37
|
-
const e =
|
|
35
|
+
const vt = (t) => t();
|
|
36
|
+
function Xt(t = vt) {
|
|
37
|
+
const e = b(!0);
|
|
38
38
|
function r() {
|
|
39
39
|
e.value = !1;
|
|
40
40
|
}
|
|
@@ -53,23 +53,23 @@ 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 _(
|
|
60
60
|
t,
|
|
61
|
-
|
|
61
|
+
Kt(
|
|
62
62
|
n,
|
|
63
63
|
e
|
|
64
64
|
),
|
|
65
65
|
i
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Te(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,16 +77,16 @@ 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
|
-
function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout:
|
|
83
|
+
function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout: A } = {}) {
|
|
84
84
|
let w = null;
|
|
85
|
-
const
|
|
85
|
+
const E = [new Promise((T) => {
|
|
86
86
|
w = _(
|
|
87
87
|
t,
|
|
88
88
|
(v) => {
|
|
89
|
-
l(v) !== e && (w == null || w(),
|
|
89
|
+
l(v) !== e && (w == null || w(), T(v));
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
flush: a,
|
|
@@ -95,20 +95,20 @@ function Y(t, e = !1) {
|
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
})];
|
|
98
|
-
return d != null &&
|
|
99
|
-
X(d,
|
|
100
|
-
), Promise.race(
|
|
98
|
+
return d != null && E.push(
|
|
99
|
+
X(d, A).then(() => O(t)).finally(() => w == null ? void 0 : w())
|
|
100
|
+
), Promise.race(E);
|
|
101
101
|
}
|
|
102
102
|
function n(l, a) {
|
|
103
|
-
if (!
|
|
103
|
+
if (!Ct(l))
|
|
104
104
|
return r((v) => v === l, a);
|
|
105
|
-
const { flush: f = "sync", deep: d = !1, timeout:
|
|
105
|
+
const { flush: f = "sync", deep: d = !1, timeout: A, throwOnTimeout: w } = a ?? {};
|
|
106
106
|
let y = null;
|
|
107
|
-
const
|
|
107
|
+
const T = [new Promise((v) => {
|
|
108
108
|
y = _(
|
|
109
109
|
[t, l],
|
|
110
|
-
([L,
|
|
111
|
-
e !== (L ===
|
|
110
|
+
([L, k]) => {
|
|
111
|
+
e !== (L === k) && (y == null || y(), v(L));
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
flush: f,
|
|
@@ -117,9 +117,9 @@ function Y(t, e = !1) {
|
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
119
|
})];
|
|
120
|
-
return
|
|
121
|
-
X(
|
|
122
|
-
), Promise.race(
|
|
120
|
+
return A != null && T.push(
|
|
121
|
+
X(A, w).then(() => O(t)).finally(() => (y == null || y(), O(t)))
|
|
122
|
+
), Promise.race(T);
|
|
123
123
|
}
|
|
124
124
|
function i(l) {
|
|
125
125
|
return r((a) => !!a, l);
|
|
@@ -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() {
|
|
@@ -174,74 +174,78 @@ function Jt(t) {
|
|
|
174
174
|
function Qt(t, e, r = {}) {
|
|
175
175
|
const {
|
|
176
176
|
immediate: n = !0
|
|
177
|
-
} = r, i =
|
|
177
|
+
} = r, i = b(!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 =
|
|
218
|
-
return
|
|
221
|
+
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e = yt) : [e, r, n, i] = t, !e)
|
|
222
|
+
return P;
|
|
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
|
-
const a =
|
|
231
|
+
const a = Gt(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
|
-
return
|
|
243
|
-
|
|
244
|
-
let
|
|
246
|
+
return P;
|
|
247
|
+
qt && !ot && (ot = !0, Array.from(n.document.body.children).forEach((a) => a.addEventListener("click", P)), n.document.documentElement.addEventListener("click", P));
|
|
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);
|
|
@@ -278,18 +282,18 @@ function ee(t, e, r) {
|
|
|
278
282
|
const {
|
|
279
283
|
immediate: n = !0,
|
|
280
284
|
delay: i = 0,
|
|
281
|
-
onError: o =
|
|
282
|
-
onSuccess:
|
|
283
|
-
resetOnExecute:
|
|
285
|
+
onError: o = P,
|
|
286
|
+
onSuccess: s = P,
|
|
287
|
+
resetOnExecute: c = !0,
|
|
284
288
|
shallow: u = !0,
|
|
285
289
|
throwError: p
|
|
286
|
-
} = r ?? {}, m = u ? nt(e) :
|
|
287
|
-
async function d(y = 0, ...
|
|
288
|
-
|
|
289
|
-
const
|
|
290
|
+
} = r ?? {}, m = u ? nt(e) : b(e), l = b(!1), a = b(!1), f = nt(void 0);
|
|
291
|
+
async function d(y = 0, ...E) {
|
|
292
|
+
c && (m.value = e), f.value = void 0, l.value = !1, a.value = !0, y > 0 && await X(y);
|
|
293
|
+
const T = typeof t == "function" ? t(...E) : t;
|
|
290
294
|
try {
|
|
291
|
-
const v = await
|
|
292
|
-
m.value = v, l.value = !0,
|
|
295
|
+
const v = await T;
|
|
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;
|
|
@@ -299,7 +303,7 @@ function ee(t, e, r) {
|
|
|
299
303
|
return m.value;
|
|
300
304
|
}
|
|
301
305
|
n && d(i);
|
|
302
|
-
const
|
|
306
|
+
const A = {
|
|
303
307
|
state: m,
|
|
304
308
|
isReady: l,
|
|
305
309
|
isLoading: a,
|
|
@@ -307,33 +311,33 @@ function ee(t, e, r) {
|
|
|
307
311
|
execute: d
|
|
308
312
|
};
|
|
309
313
|
function w() {
|
|
310
|
-
return new Promise((y,
|
|
311
|
-
Jt(a).toBe(!1).then(() => y(
|
|
314
|
+
return new Promise((y, E) => {
|
|
315
|
+
Jt(a).toBe(!1).then(() => y(A)).catch(E);
|
|
312
316
|
});
|
|
313
317
|
}
|
|
314
318
|
return {
|
|
315
|
-
...
|
|
316
|
-
then(y,
|
|
317
|
-
return w().then(y,
|
|
319
|
+
...A,
|
|
320
|
+
then(y, E) {
|
|
321
|
+
return w().then(y, E);
|
|
318
322
|
}
|
|
319
323
|
};
|
|
320
324
|
}
|
|
321
|
-
function
|
|
325
|
+
function Se(t = {}) {
|
|
322
326
|
const { document: e = te } = t;
|
|
323
327
|
if (!e)
|
|
324
|
-
return
|
|
325
|
-
const r =
|
|
326
|
-
return
|
|
328
|
+
return b("visible");
|
|
329
|
+
const r = b(e.visibilityState);
|
|
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
|
|
352
|
-
const { delay: r = 0 } = e, n =
|
|
353
|
-
const
|
|
354
|
-
return Array.isArray(
|
|
355
|
-
}), { start: o, stop:
|
|
355
|
+
function xe(t = [], e = {}) {
|
|
356
|
+
const { delay: r = 0 } = e, n = b(!1), i = R(() => {
|
|
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,44 +373,44 @@ 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__ */
|
|
373
|
-
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) ? {} :
|
|
376
|
+
var oe = /* @__PURE__ */ M(function(e) {
|
|
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) ? {} : Ft(e) ? /* @__PURE__ */ function() {
|
|
374
378
|
return arguments;
|
|
375
379
|
}() : re(e) ? e.constructor.from("") : void 0;
|
|
376
|
-
}), ie = /* @__PURE__ */
|
|
377
|
-
return e != null &&
|
|
380
|
+
}), ie = /* @__PURE__ */ M(function(e) {
|
|
381
|
+
return e != null && kt(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
|
+
}), Ce = ({ messages: t = {}, locale: e = "", fallbackLocale: r = "" }) => {
|
|
396
400
|
g.messages = t, g.locale = e, g.fallbackLocale = r;
|
|
397
401
|
const n = (u, p = {}) => {
|
|
398
|
-
const m = !ie(p), l = D(z,
|
|
399
|
-
return
|
|
400
|
-
const f =
|
|
401
|
-
return m ?
|
|
402
|
+
const m = !ie(p), l = D(z, F(".", u));
|
|
403
|
+
return R(() => {
|
|
404
|
+
const f = gt(l);
|
|
405
|
+
return m ? fe(f, p) : f;
|
|
402
406
|
}).value;
|
|
403
407
|
}, i = (u) => {
|
|
404
|
-
const p = D(z,
|
|
408
|
+
const p = D(z, F(".", u));
|
|
405
409
|
return !!J(g.locale, p, g.messages);
|
|
406
410
|
}, o = (u) => {
|
|
407
411
|
g.locale = u;
|
|
408
|
-
},
|
|
409
|
-
locale:
|
|
412
|
+
}, c = {
|
|
413
|
+
locale: R({
|
|
410
414
|
get() {
|
|
411
415
|
return g.locale;
|
|
412
416
|
},
|
|
@@ -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
|
+
}, Pe = Pt({
|
|
450
454
|
props: {
|
|
451
455
|
tag: {
|
|
452
456
|
type: String,
|
|
@@ -458,67 +462,67 @@ const de = function(t, e) {
|
|
|
458
462
|
}
|
|
459
463
|
},
|
|
460
464
|
setup(t, { slots: e }) {
|
|
461
|
-
const r = D(z,
|
|
462
|
-
const
|
|
463
|
-
return
|
|
465
|
+
const r = D(z, F(".", t.path)), n = gt(r), i = F(/{|}/, 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
|
-
return () =>
|
|
469
|
+
return () => Rt(t.tag, o);
|
|
466
470
|
}
|
|
467
|
-
}),
|
|
468
|
-
const t =
|
|
471
|
+
}), wt = Symbol("ErrorProviderContext"), Re = () => {
|
|
472
|
+
const t = b(""), e = b({}), r = (o) => {
|
|
469
473
|
console.error({ error: o }), t.value = o.message || o.error.message, e.value = {
|
|
470
474
|
message: o.message,
|
|
471
475
|
key: o.key || Vt(o.message),
|
|
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
|
-
hasError:
|
|
489
|
+
hasError: R(() => 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 =
|
|
505
|
+
}, je = (t, e = "", r = {}) => {
|
|
506
|
+
const n = b(""), { t: i } = ue(), o = R(() => {
|
|
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:
|
|
521
|
+
columns: R(() => D(s, o.value)),
|
|
518
522
|
error: n
|
|
519
523
|
};
|
|
520
|
-
},
|
|
521
|
-
const r = D(z,
|
|
524
|
+
}, pe = (t, e = "") => {
|
|
525
|
+
const r = D(z, F(",", e)), n = Wt(t);
|
|
522
526
|
if (r[0] === "")
|
|
523
527
|
return resolve([]);
|
|
524
528
|
const i = r.findIndex((o) => !n.includes(o));
|
|
@@ -540,16 +544,16 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
540
544
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
541
545
|
PERFORMANCE OF THIS SOFTWARE.
|
|
542
546
|
***************************************************************************** */
|
|
543
|
-
function
|
|
547
|
+
function K(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,52 +591,52 @@ 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 =
|
|
601
|
-
return at(
|
|
602
|
-
}), t.context,
|
|
603
|
-
var u, p, m = typeof
|
|
604
|
+
var r = K(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
|
|
606
|
-
"*" in d.on &&
|
|
607
|
-
if (
|
|
608
|
-
for (var x,
|
|
609
|
-
!x &&
|
|
609
|
+
var A = U(d.on[f.type]);
|
|
610
|
+
"*" in d.on && A.push.apply(A, function(h, S, q) {
|
|
611
|
+
if (arguments.length === 2)
|
|
612
|
+
for (var x, C = 0, St = S.length; C < St; C++)
|
|
613
|
+
!x && C in S || (x || (x = Array.prototype.slice.call(S, 0, C)), x[C] = S[C]);
|
|
610
614
|
return h.concat(x || Array.prototype.slice.call(S));
|
|
611
|
-
}([],
|
|
615
|
+
}([], K(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, q = S && h[S], x = 0;
|
|
619
|
+
if (q)
|
|
620
|
+
return q.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 };
|
|
620
624
|
} };
|
|
621
625
|
throw new TypeError(S ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
622
|
-
}(
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
626
|
+
}(A), y = w.next(); !y.done; y = w.next()) {
|
|
627
|
+
var E = y.value;
|
|
628
|
+
if (E === void 0)
|
|
625
629
|
return st(l, a);
|
|
626
|
-
var
|
|
630
|
+
var T = typeof E == "string" ? { target: E } : E, v = T.target, L = T.actions, k = L === void 0 ? [] : L, Z = T.cond, Et = Z === void 0 ? function() {
|
|
627
631
|
return !0;
|
|
628
|
-
} : Z, bt = v === void 0,
|
|
629
|
-
if (
|
|
630
|
-
var G =
|
|
632
|
+
} : Z, bt = v === void 0, At = v ?? l, Tt = t.states[At];
|
|
633
|
+
if (Et(a, f)) {
|
|
634
|
+
var G = K(ct((bt ? U(k) : [].concat(d.exit, k, Tt.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 = G[0],
|
|
635
|
-
return { value: et, context:
|
|
638
|
+
}), a, f), 3), tt = G[0], It = G[1], Ot = G[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
|
-
DIRECTION1:
|
|
660
|
-
DIRECTION2:
|
|
663
|
+
DIRECTION1: H,
|
|
664
|
+
DIRECTION2: V
|
|
661
665
|
}
|
|
662
666
|
},
|
|
663
|
-
[
|
|
667
|
+
[H]: {
|
|
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:
|
|
672
|
-
DIRECTION2:
|
|
675
|
+
DIRECTION1: B,
|
|
676
|
+
DIRECTION2: H
|
|
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 =
|
|
699
|
-
const u = Mt(rt(e),
|
|
701
|
+
function De(t, e, r, n) {
|
|
702
|
+
const i = b(""), o = b(!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
|
-
|
|
722
|
+
Re as a,
|
|
723
|
+
Le as b,
|
|
724
|
+
Ce as c,
|
|
725
|
+
ue as d,
|
|
726
|
+
xe as e,
|
|
723
727
|
Ae as f,
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
+
Ne as g,
|
|
729
|
+
De as h,
|
|
730
|
+
Pe as i,
|
|
731
|
+
_e as j,
|
|
728
732
|
Zt as k,
|
|
729
733
|
ee as l,
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
+
Se as m,
|
|
735
|
+
P as n,
|
|
736
|
+
Oe as o,
|
|
737
|
+
Te as p,
|
|
734
738
|
N as q,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
739
|
+
je as u,
|
|
740
|
+
pe as v,
|
|
741
|
+
Ie as w
|
|
738
742
|
};
|