@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.
@@ -1,30 +1,30 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.3.7 - 17/03/2024, 12:25:53
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 E, readonly as ut, watch as _, nextTick as St, getCurrentScope as _t, onScopeDispose as xt, unref as I, isRef as Pt, shallowRef as nt, computed as C, reactive as lt, defineComponent as Rt, h as Ct, provide as ft, inject as dt, onErrorCaptured as Lt } from "vue";
9
- import { _ as $, 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-BD_lSSC2.js";
10
- import { SORT_STATE_ORIGINAL as U, SORT_STATE_DESCEND as K, SORT_STATE_ASCEND as W } from "./constants.js";
11
- var $t = { 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) => ($t.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + t;
13
- function pt(t) {
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 q = typeof window < "u" && typeof document < "u";
19
+ const $ = typeof window < "u" && typeof document < "u";
20
20
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
21
- const zt = Object.prototype.toString, qt = (t) => zt.call(t) === "[object Object]", R = () => {
22
- }, Gt = /* @__PURE__ */ Kt();
23
- function Kt() {
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 q && ((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));
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 Ht(t, e) {
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 mt = (t) => t();
36
- function Xt(t = mt) {
37
- const e = E(!0);
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 = mt,
56
+ eventFilter: n = vt,
57
57
  ...i
58
58
  } = r;
59
59
  return _(
60
60
  t,
61
- Ht(
61
+ Kt(
62
62
  n,
63
63
  e
64
64
  ),
65
65
  i
66
66
  );
67
67
  }
68
- function Ie(t, e, r = {}) {
68
+ function Te(t, e, r = {}) {
69
69
  const {
70
70
  eventFilter: n,
71
71
  ...i
72
- } = r, { eventFilter: o, pause: c, resume: s, isActive: u } = Xt(n);
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: c, resume: s, isActive: u };
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: T } = {}) {
83
+ function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout: A } = {}) {
84
84
  let w = null;
85
- const b = [new Promise((A) => {
85
+ const E = [new Promise((T) => {
86
86
  w = _(
87
87
  t,
88
88
  (v) => {
89
- l(v) !== e && (w == null || w(), A(v));
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 && b.push(
99
- X(d, T).then(() => O(t)).finally(() => w == null ? void 0 : w())
100
- ), Promise.race(b);
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 (!Pt(l))
103
+ if (!Ct(l))
104
104
  return r((v) => v === l, a);
105
- const { flush: f = "sync", deep: d = !1, timeout: T, throwOnTimeout: w } = a ?? {};
105
+ const { flush: f = "sync", deep: d = !1, timeout: A, throwOnTimeout: w } = a ?? {};
106
106
  let y = null;
107
- const A = [new Promise((v) => {
107
+ const T = [new Promise((v) => {
108
108
  y = _(
109
109
  [t, l],
110
- ([L, F]) => {
111
- e !== (L === F) && (y == null || y(), v(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 T != null && A.push(
121
- X(T, w).then(() => O(t)).finally(() => (y == null || y(), O(t)))
122
- ), Promise.race(A);
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 c(l) {
130
+ function s(l) {
131
131
  return n(void 0, l);
132
132
  }
133
- function s(l) {
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: s,
163
- toBeUndefined: c,
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 = E(!1);
177
+ } = r, i = b(!1);
178
178
  let o = null;
179
- function c() {
179
+ function s() {
180
180
  o && (clearTimeout(o), o = null);
181
181
  }
182
- function s() {
183
- i.value = !1, c();
182
+ function c() {
183
+ i.value = !1, s();
184
184
  }
185
185
  function u(...p) {
186
- c(), i.value = !0, o = setTimeout(() => {
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, q && u()), pt(s), {
190
+ return n && (i.value = !0, $ && u()), mt(c), {
191
191
  isPending: ut(i),
192
192
  start: u,
193
- stop: s
193
+ stop: c
194
194
  };
195
195
  }
196
196
  function Zt(t, e, r) {
197
- const n = _(t, (...i) => (St(() => n()), e(...i)), r);
197
+ const n = _(t, (...i) => (lt(() => n()), e(...i)), r);
198
198
  return n;
199
199
  }
200
- function Oe(t, e, r) {
201
- return _(
200
+ function Ie(t, e, r) {
201
+ const n = _(
202
202
  t,
203
- (n, i, o) => {
204
- n && e(n, i, o);
203
+ (i, o, s) => {
204
+ i && (r != null && r.once && lt(() => n()), e(i, o, s));
205
205
  },
206
- r
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 vt = q ? window : void 0, te = q ? window.document : void 0;
215
- function M(...t) {
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 = vt) : [e, r, n, i] = t, !e)
218
- return R;
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 = [], c = () => {
224
+ const o = [], s = () => {
221
225
  o.forEach((m) => m()), o.length = 0;
222
- }, s = (m, l, a, f) => (m.addEventListener(l, a, f), () => m.removeEventListener(l, a, f)), u = _(
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 (c(), !m)
229
+ if (s(), !m)
226
230
  return;
227
- const a = qt(l) ? { ...l } : l;
231
+ const a = Gt(l) ? { ...l } : l;
228
232
  o.push(
229
- ...r.flatMap((f) => n.map((d) => s(m, f, d, a)))
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(), c();
238
+ u(), s();
235
239
  };
236
- return pt(p), p;
240
+ return mt(p), p;
237
241
  }
238
242
  let ot = !1;
239
- function Se(t, e, r = {}) {
240
- const { window: n = vt, ignore: i = [], capture: o = !0, detectIframe: c = !1 } = r;
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 R;
243
- Gt && !ot && (ot = !0, Array.from(n.document.body.children).forEach((a) => a.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
244
- let s = !0;
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
- M(n, "click", (a) => {
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 && (s = !u(a)), !s) {
257
- s = !0;
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
- M(n, "pointerdown", (a) => {
267
+ W(n, "pointerdown", (a) => {
264
268
  const f = N(t);
265
- s = !u(a) && !!(f && !a.composedPath().includes(f));
269
+ c = !u(a) && !!(f && !a.composedPath().includes(f));
266
270
  }, { passive: !0 }),
267
- c && M(n, "blur", (a) => {
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 = R,
282
- onSuccess: c = R,
283
- resetOnExecute: s = !0,
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) : E(e), l = E(!1), a = E(!1), f = nt(void 0);
287
- async function d(y = 0, ...b) {
288
- s && (m.value = e), f.value = void 0, l.value = !1, a.value = !0, y > 0 && await X(y);
289
- const A = typeof t == "function" ? t(...b) : t;
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 A;
292
- m.value = v, l.value = !0, c(v);
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 T = {
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, b) => {
311
- Jt(a).toBe(!1).then(() => y(T)).catch(b);
314
+ return new Promise((y, E) => {
315
+ Jt(a).toBe(!1).then(() => y(A)).catch(E);
312
316
  });
313
317
  }
314
318
  return {
315
- ...T,
316
- then(y, b) {
317
- return w().then(y, b);
319
+ ...A,
320
+ then(y, E) {
321
+ return w().then(y, E);
318
322
  }
319
323
  };
320
324
  }
321
- function _e(t = {}) {
325
+ function Se(t = {}) {
322
326
  const { document: e = te } = t;
323
327
  if (!e)
324
- return E("visible");
325
- const r = E(e.visibilityState);
326
- return M(e, "visibilitychange", () => {
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: c, class: s, loading: u, crossorigin: p, referrerPolicy: m } = t;
333
- n.src = i, o && (n.srcset = o), c && (n.sizes = c), s && (n.className = s), u && (n.loading = u), p && (n.crossOrigin = p), m && (n.referrerPolicy = m), n.onload = () => e(n), n.onerror = r;
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 xe(t, e = {}) {
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 Pe(t = [], e = {}) {
352
- const { delay: r = 0 } = e, n = E(!1), i = C(() => {
353
- const s = I(t);
354
- return Array.isArray(s) ? s.map((u) => I(u)).some(Boolean) : s;
355
- }), { start: o, stop: c } = Qt(() => {
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
- (s) => {
361
- if (s)
364
+ (c) => {
365
+ if (c)
362
366
  return o();
363
- c(), n.value = !1;
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__ */ $(function(e) {
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) ? {} : kt(e) ? /* @__PURE__ */ function() {
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__ */ $(function(e) {
377
- return e != null && Ft(e, oe(e));
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, c = e.length; o < c; )
383
+ for (var n = {}, i = {}, o = 0, s = e.length; o < s; )
380
384
  i[e[o]] = 1, o += 1;
381
- for (var s in r)
382
- i.hasOwnProperty(s) || (n[s] = r[s]);
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", ue = !ce || /* @__PURE__ */ j.trim() || !/* @__PURE__ */ se.trim() ? /* @__PURE__ */ $(function(e) {
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__ */ $(function(e) {
392
+ }) : /* @__PURE__ */ M(function(e) {
389
393
  return e.trim();
390
394
  });
391
- const z = ue, yt = Symbol("I18nContext"), g = lt({
395
+ const ht = Symbol("I18nContext"), g = ft({
392
396
  messages: {},
393
397
  locale: "",
394
398
  fallbackLocale: ""
395
- }), Re = ({ messages: t = {}, locale: e = "", fallbackLocale: r = "" }) => {
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, k(".", u));
399
- return C(() => {
400
- const f = ht(l);
401
- return m ? de(f, p) : f;
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, k(".", u));
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
- }, s = {
409
- locale: C({
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 ft(yt, s), {
425
+ return dt(ht, c), {
422
426
  translate: n
423
427
  };
424
- }, le = (t) => {
428
+ }, ue = (t) => {
425
429
  t && (g.messages = t.messages, g.locale = t.locale, g.fallbackLocale = t.fallbackLocale);
426
- const e = fe();
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
- }, fe = () => {
434
- const t = dt(yt, null);
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
- }, ht = (t = []) => {
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 de = function(t, e) {
449
+ const fe = function(t, e) {
446
450
  return t.replace(/\{(\w+)\}/g, function(r, n) {
447
451
  return e[n];
448
452
  });
449
- }, Ce = Rt({
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, k(".", t.path)), n = ht(r), i = k(/{|}/, n), o = Object.keys(e).map((c) => {
462
- const s = i.indexOf(c);
463
- return s > -1 && (i[s] = e[c]()[0]), i;
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 () => Ct(t.tag, o);
469
+ return () => Rt(t.tag, o);
466
470
  }
467
- }), gt = Symbol("ErrorProviderContext"), Le = () => {
468
- const t = E(""), e = E({}), r = (o) => {
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 ft(gt, {
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, c, s) => {
483
- console.error("onErrorCaptured:", o, c, s);
486
+ }, Lt((o, s, c) => {
487
+ console.error("onErrorCaptured:", o, s, c);
484
488
  }), {
485
- hasError: C(() => t.value.length > 0),
489
+ hasError: R(() => t.value.length > 0),
486
490
  message: t,
487
491
  error: e,
488
492
  onError: r
489
493
  };
490
- }, je = () => {
491
- const t = pe();
494
+ }, Le = () => {
495
+ const t = de();
492
496
  return {
493
497
  onError: t.onError,
494
498
  reset: t.reset
495
499
  };
496
- }, pe = () => {
497
- const t = dt(gt, null);
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
- }, Ne = (t, e = "", r = {}) => {
502
- const n = E(""), { t: i } = le(), o = C(() => {
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 = me(I(t), I(e));
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
- }), c = (u) => ({
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(c, o.value)),
521
+ columns: R(() => D(s, o.value)),
518
522
  error: n
519
523
  };
520
- }, me = (t, e = "") => {
521
- const r = D(z, k(",", e)), n = Wt(t);
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 H(t, e) {
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), c = [];
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
- c.push(n.value);
551
- } catch (s) {
552
- i = { error: s };
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 c;
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 ve = { type: "xstate.init" };
568
- function V(t) {
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 ye(t) {
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 c = Object.assign({}, n);
591
- return typeof o.assignment == "function" ? c = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(s) {
592
- c[s] = typeof o.assignment[s] == "function" ? o.assignment[s](n, r) : o.assignment[s];
593
- }), n = c, !1;
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 he(t, e) {
602
+ function ye(t, e) {
599
603
  e === void 0 && (e = {});
600
- var r = H(ct(V(t.states[t.initial].entry).map(function(c) {
601
- return at(c, e.actions);
602
- }), t.context, ve), 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(c, s) {
603
- var u, p, m = typeof c == "string" ? { value: c, context: t.context } : c, l = m.value, a = m.context, f = ye(s), d = t.states[l];
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 T = V(d.on[f.type]);
606
- "*" in d.on && T.push.apply(T, function(h, S, B) {
607
- if (B || arguments.length === 2)
608
- for (var x, P = 0, Ot = S.length; P < Ot; P++)
609
- !x && P in S || (x || (x = Array.prototype.slice.call(S, 0, P)), x[P] = S[P]);
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
- }([], H(V(d.on["*"])), !1));
615
+ }([], K(U(d.on["*"])), !1));
612
616
  try {
613
617
  for (var w = function(h) {
614
- var S = typeof Symbol == "function" && Symbol.iterator, B = S && h[S], x = 0;
615
- if (B)
616
- return B.call(h);
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
- }(T), y = w.next(); !y.done; y = w.next()) {
623
- var b = y.value;
624
- if (b === void 0)
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 A = typeof b == "string" ? { target: b } : b, v = A.target, L = A.actions, F = L === void 0 ? [] : L, Z = A.cond, wt = Z === void 0 ? function() {
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, Et = v ?? l, Tt = t.states[Et];
629
- if (wt(a, f)) {
630
- var G = H(ct((bt ? V(F) : [].concat(d.exit, F, Tt.entry).filter(function(h) {
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], At = G[1], It = G[2], et = v ?? l;
635
- return { value: et, context: At, actions: tt, changed: v !== l || tt.length > 0 || It, matches: Q(et) };
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 ge = he({
657
+ const he = ye({
654
658
  id: "sort",
655
- initial: U,
659
+ initial: B,
656
660
  states: {
657
- [U]: {
661
+ [B]: {
658
662
  on: {
659
- DIRECTION1: K,
660
- DIRECTION2: W
663
+ DIRECTION1: H,
664
+ DIRECTION2: V
661
665
  }
662
666
  },
663
- [K]: {
667
+ [H]: {
664
668
  on: {
665
- DIRECTION1: W,
666
- DIRECTION2: U
669
+ DIRECTION1: V,
670
+ DIRECTION2: B
667
671
  }
668
672
  },
669
- [W]: {
673
+ [V]: {
670
674
  on: {
671
- DIRECTION1: U,
672
- DIRECTION2: K
675
+ DIRECTION1: B,
676
+ DIRECTION2: H
673
677
  }
674
678
  }
675
679
  }
676
- }), we = (t, e) => {
677
- const r = e === W ? "DIRECTION2" : "DIRECTION1";
678
- return ge.transition(t, r).value;
680
+ }), ge = (t, e) => {
681
+ const r = e === V ? "DIRECTION2" : "DIRECTION1";
682
+ return he.transition(t, r).value;
679
683
  };
680
- function De(t = {}) {
681
- const { sortTarget: e = null, orders: r = [] } = t, n = lt({ sortTarget: e, orders: r });
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: c }) => {
688
+ change: ({ target: o, orders: s }) => {
685
689
  if (n.sortTarget !== o) {
686
- n.sortTarget = o, n.orders = c;
690
+ n.sortTarget = o, n.orders = s;
687
691
  return;
688
692
  }
689
- const s = c.map((u, p) => ({
693
+ const c = s.map((u, p) => ({
690
694
  ...u,
691
- direction: we(n.orders[p].direction, u.direction)
695
+ direction: ge(n.orders[p].direction, u.direction)
692
696
  }));
693
- n.sortTarget = o, n.orders = s;
697
+ n.sortTarget = o, n.orders = c;
694
698
  }
695
699
  };
696
700
  }
697
- function ke(t, e, r, n) {
698
- const i = E(""), o = E(!1), c = (s) => {
699
- const u = Mt(rt(e), s), p = u.length > 0;
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, c), _(n, () => c(I(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
- Le as a,
719
- je as b,
720
- Re as c,
721
- le as d,
722
- Pe as e,
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
- De as g,
725
- ke as h,
726
- Ce as i,
727
- xe as j,
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
- _e as m,
731
- R as n,
732
- Se as o,
733
- Ie as p,
734
+ Se as m,
735
+ P as n,
736
+ Oe as o,
737
+ Te as p,
734
738
  N as q,
735
- Ne as u,
736
- me as v,
737
- Oe as w
739
+ je as u,
740
+ pe as v,
741
+ Ie as w
738
742
  };