@mjsz-vbr-elements/core 2.2.1 → 2.2.2

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,28 +1,28 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.1 - 04/01/2024, 22:10:50
3
+ * version: v2.2.2 - 08/01/2024, 11:28:47
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 O, readonly as ve, watch as A, nextTick as Ce, getCurrentScope as xe, onScopeDispose as De, unref as I, isRef as Le, shallowRef as te, computed as S, reactive as me, defineComponent as Ne, h as Fe, provide as ye, inject as ge, onErrorCaptured as Be } from "vue";
9
- import { _ as F, j as ke, k as Ve, l as Ue, m as We, n as Me, p as ze, q as j, s as C, r as qe, t as Ke, u as Ge } from "./datetime-EyEBo0-h.js";
10
- import { SORT_STATE_ORIGINAL as D, SORT_STATE_DESCEND as z, SORT_STATE_ASCEND as L } from "./constants.js";
11
- var He = { 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 qt = (e) => (He.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + e;
8
+ import { ref as w, readonly as me, watch as I, nextTick as Ce, getCurrentScope as Ne, onScopeDispose as De, unref as T, isRef as Le, shallowRef as te, computed as A, reactive as ye, defineComponent as Fe, h as Be, provide as ge, inject as he, onErrorCaptured as Ve } from "vue";
9
+ import { _ as F, j as Ue, k as ke, l as We, m as Me, n as ze, p as qe, q as j, s as R, r as Ke, t as Ge, u as He, v as Xe, w as re } from "./datetime--bMmvxSM.js";
10
+ import { SORT_STATE_ORIGINAL as N, SORT_STATE_DESCEND as z, SORT_STATE_ASCEND as D } from "./constants.js";
11
+ var Ye = { 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 Ht = (e) => (Ye.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + e;
13
13
  function _e(e) {
14
- return xe() ? (De(e), !0) : !1;
14
+ return Ne() ? (De(e), !0) : !1;
15
15
  }
16
16
  function E(e) {
17
- return typeof e == "function" ? e() : I(e);
17
+ return typeof e == "function" ? e() : T(e);
18
18
  }
19
- const U = typeof window < "u", B = () => {
20
- }, Xe = /* @__PURE__ */ Ye();
21
- function Ye() {
19
+ const k = typeof window < "u", B = () => {
20
+ }, Je = /* @__PURE__ */ Qe();
21
+ function Qe() {
22
22
  var e;
23
- return U && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
23
+ return k && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
24
24
  }
25
- function Je(e, t) {
25
+ function Ze(e, t) {
26
26
  function r(...n) {
27
27
  return new Promise((a, o) => {
28
28
  Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(a).catch(o);
@@ -30,9 +30,9 @@ function Je(e, t) {
30
30
  }
31
31
  return r;
32
32
  }
33
- const he = (e) => e();
34
- function Qe(e = he) {
35
- const t = O(!0);
33
+ const Oe = (e) => e();
34
+ function et(e = Oe) {
35
+ const t = w(!0);
36
36
  function r() {
37
37
  t.value = !1;
38
38
  }
@@ -42,7 +42,7 @@ function Qe(e = he) {
42
42
  const a = (...o) => {
43
43
  t.value && e(...o);
44
44
  };
45
- return { isActive: ve(t), pause: r, resume: n, eventFilter: a };
45
+ return { isActive: me(t), pause: r, resume: n, eventFilter: a };
46
46
  }
47
47
  function K(e, t = !1, r = "Timeout") {
48
48
  return new Promise((n, a) => {
@@ -51,12 +51,12 @@ function K(e, t = !1, r = "Timeout") {
51
51
  }
52
52
  function G(e, t = !1) {
53
53
  function r(l, { flush: s = "sync", deep: f = !1, timeout: v, throwOnTimeout: P } = {}) {
54
- let h = null;
55
- const w = [new Promise((b) => {
56
- h = A(
54
+ let _ = null;
55
+ const O = [new Promise((b) => {
56
+ _ = I(
57
57
  e,
58
58
  (m) => {
59
- l(m) !== t && (h == null || h(), b(m));
59
+ l(m) !== t && (_ == null || _(), b(m));
60
60
  },
61
61
  {
62
62
  flush: s,
@@ -65,20 +65,20 @@ function G(e, t = !1) {
65
65
  }
66
66
  );
67
67
  })];
68
- return v != null && w.push(
69
- K(v, P).then(() => E(e)).finally(() => h == null ? void 0 : h())
70
- ), Promise.race(w);
68
+ return v != null && O.push(
69
+ K(v, P).then(() => E(e)).finally(() => _ == null ? void 0 : _())
70
+ ), Promise.race(O);
71
71
  }
72
72
  function n(l, s) {
73
73
  if (!Le(l))
74
74
  return r((m) => m === l, s);
75
- const { flush: f = "sync", deep: v = !1, timeout: P, throwOnTimeout: h } = s ?? {};
75
+ const { flush: f = "sync", deep: v = !1, timeout: P, throwOnTimeout: _ } = s ?? {};
76
76
  let y = null;
77
77
  const b = [new Promise((m) => {
78
- y = A(
78
+ y = I(
79
79
  [e, l],
80
- ([T, x]) => {
81
- t !== (T === x) && (y == null || y(), m(T));
80
+ ([S, C]) => {
81
+ t !== (S === C) && (y == null || y(), m(S));
82
82
  },
83
83
  {
84
84
  flush: f,
@@ -88,7 +88,7 @@ function G(e, t = !1) {
88
88
  );
89
89
  })];
90
90
  return P != null && b.push(
91
- K(P, h).then(() => E(e)).finally(() => (y == null || y(), E(e)))
91
+ K(P, _).then(() => E(e)).finally(() => (y == null || y(), E(e)))
92
92
  ), Promise.race(b);
93
93
  }
94
94
  function a(l) {
@@ -138,13 +138,13 @@ function G(e, t = !1) {
138
138
  }
139
139
  };
140
140
  }
141
- function Ze(e) {
141
+ function tt(e) {
142
142
  return G(e);
143
143
  }
144
- function et(e, t, r = {}) {
144
+ function rt(e, t, r = {}) {
145
145
  const {
146
146
  immediate: n = !0
147
- } = r, a = O(!1);
147
+ } = r, a = w(!1);
148
148
  let o = null;
149
149
  function c() {
150
150
  o && (clearTimeout(o), o = null);
@@ -157,71 +157,71 @@ function et(e, t, r = {}) {
157
157
  a.value = !1, o = null, e(...p);
158
158
  }, E(t));
159
159
  }
160
- return n && (a.value = !0, U && u()), _e(i), {
161
- isPending: ve(a),
160
+ return n && (a.value = !0, k && u()), _e(i), {
161
+ isPending: me(a),
162
162
  start: u,
163
163
  stop: i
164
164
  };
165
165
  }
166
- var re = Object.getOwnPropertySymbols, tt = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable, nt = (e, t) => {
166
+ var ne = Object.getOwnPropertySymbols, nt = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable, at = (e, t) => {
167
167
  var r = {};
168
168
  for (var n in e)
169
- tt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
170
- if (e != null && re)
171
- for (var n of re(e))
172
- t.indexOf(n) < 0 && rt.call(e, n) && (r[n] = e[n]);
169
+ nt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
170
+ if (e != null && ne)
171
+ for (var n of ne(e))
172
+ t.indexOf(n) < 0 && ot.call(e, n) && (r[n] = e[n]);
173
173
  return r;
174
174
  };
175
- function ot(e, t, r = {}) {
175
+ function it(e, t, r = {}) {
176
176
  const n = r, {
177
- eventFilter: a = he
178
- } = n, o = nt(n, [
177
+ eventFilter: a = Oe
178
+ } = n, o = at(n, [
179
179
  "eventFilter"
180
180
  ]);
181
- return A(
181
+ return I(
182
182
  e,
183
- Je(
183
+ Ze(
184
184
  a,
185
185
  t
186
186
  ),
187
187
  o
188
188
  );
189
189
  }
190
- function Kt(e, t, r) {
191
- const n = A(e, (...a) => (Ce(() => n()), t(...a)), r);
190
+ function st(e, t, r) {
191
+ const n = I(e, (...a) => (Ce(() => n()), t(...a)), r);
192
192
  }
193
- var at = Object.defineProperty, it = Object.defineProperties, st = Object.getOwnPropertyDescriptors, k = Object.getOwnPropertySymbols, we = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable, ne = (e, t, r) => t in e ? at(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
193
+ var ct = Object.defineProperty, ut = Object.defineProperties, lt = Object.getOwnPropertyDescriptors, V = Object.getOwnPropertySymbols, we = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable, oe = (e, t, r) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
194
194
  for (var r in t || (t = {}))
195
- we.call(t, r) && ne(e, r, t[r]);
196
- if (k)
197
- for (var r of k(t))
198
- Oe.call(t, r) && ne(e, r, t[r]);
195
+ we.call(t, r) && oe(e, r, t[r]);
196
+ if (V)
197
+ for (var r of V(t))
198
+ be.call(t, r) && oe(e, r, t[r]);
199
199
  return e;
200
- }, ut = (e, t) => it(e, st(t)), lt = (e, t) => {
200
+ }, pt = (e, t) => ut(e, lt(t)), dt = (e, t) => {
201
201
  var r = {};
202
202
  for (var n in e)
203
203
  we.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
204
- if (e != null && k)
205
- for (var n of k(e))
206
- t.indexOf(n) < 0 && Oe.call(e, n) && (r[n] = e[n]);
204
+ if (e != null && V)
205
+ for (var n of V(e))
206
+ t.indexOf(n) < 0 && be.call(e, n) && (r[n] = e[n]);
207
207
  return r;
208
208
  };
209
- function Gt(e, t, r = {}) {
209
+ function Xt(e, t, r = {}) {
210
210
  const n = r, {
211
211
  eventFilter: a
212
- } = n, o = lt(n, [
212
+ } = n, o = dt(n, [
213
213
  "eventFilter"
214
- ]), { eventFilter: c, pause: i, resume: u, isActive: p } = Qe(a);
215
- return { stop: ot(
214
+ ]), { eventFilter: c, pause: i, resume: u, isActive: p } = et(a);
215
+ return { stop: it(
216
216
  e,
217
217
  t,
218
- ut(ct({}, o), {
218
+ pt(ft({}, o), {
219
219
  eventFilter: c
220
220
  })
221
221
  ), pause: i, resume: u, isActive: p };
222
222
  }
223
- function Ht(e, t, r) {
224
- return A(
223
+ function Yt(e, t, r) {
224
+ return I(
225
225
  e,
226
226
  (n, a, o) => {
227
227
  n && t(n, a, o);
@@ -234,15 +234,15 @@ function $(e) {
234
234
  const r = E(e);
235
235
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
236
236
  }
237
- const be = U ? window : void 0, ft = U ? window.document : void 0;
238
- function N(...e) {
237
+ const Ee = k ? window : void 0, vt = k ? window.document : void 0;
238
+ function L(...e) {
239
239
  let t, r, n, a;
240
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = be) : [t, r, n, a] = e, !t)
240
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = Ee) : [t, r, n, a] = e, !t)
241
241
  return B;
242
242
  Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
243
243
  const o = [], c = () => {
244
244
  o.forEach((d) => d()), o.length = 0;
245
- }, i = (d, l, s, f) => (d.addEventListener(l, s, f), () => d.removeEventListener(l, s, f)), u = A(
245
+ }, i = (d, l, s, f) => (d.addEventListener(l, s, f), () => d.removeEventListener(l, s, f)), u = I(
246
246
  () => [$(t), E(a)],
247
247
  ([d, l]) => {
248
248
  c(), d && o.push(
@@ -255,12 +255,12 @@ function N(...e) {
255
255
  };
256
256
  return _e(p), p;
257
257
  }
258
- let oe = !1;
259
- function Xt(e, t, r = {}) {
260
- const { window: n = be, ignore: a = [], capture: o = !0, detectIframe: c = !1 } = r;
258
+ let ae = !1;
259
+ function Jt(e, t, r = {}) {
260
+ const { window: n = Ee, ignore: a = [], capture: o = !0, detectIframe: c = !1 } = r;
261
261
  if (!n)
262
262
  return;
263
- Xe && !oe && (oe = !0, Array.from(n.document.body.children).forEach((s) => s.addEventListener("click", B)));
263
+ Je && !ae && (ae = !0, Array.from(n.document.body.children).forEach((s) => s.addEventListener("click", B)));
264
264
  let i = !0;
265
265
  const u = (s) => a.some((f) => {
266
266
  if (typeof f == "string")
@@ -270,7 +270,7 @@ function Xt(e, t, r = {}) {
270
270
  return v && (s.target === v || s.composedPath().includes(v));
271
271
  }
272
272
  }), d = [
273
- N(n, "click", (s) => {
273
+ L(n, "click", (s) => {
274
274
  const f = $(e);
275
275
  if (!(!f || f === s.target || s.composedPath().includes(f))) {
276
276
  if (s.detail === 0 && (i = !u(s)), !i) {
@@ -280,11 +280,11 @@ function Xt(e, t, r = {}) {
280
280
  t(s);
281
281
  }
282
282
  }, { passive: !0, capture: o }),
283
- N(n, "pointerdown", (s) => {
283
+ L(n, "pointerdown", (s) => {
284
284
  const f = $(e);
285
285
  f && (i = !s.composedPath().includes(f) && !u(s));
286
286
  }, { passive: !0 }),
287
- c && N(n, "blur", (s) => {
287
+ c && L(n, "blur", (s) => {
288
288
  var f;
289
289
  const v = $(e);
290
290
  ((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(v != null && v.contains(n.document.activeElement)) && t(s);
@@ -292,15 +292,15 @@ function Xt(e, t, r = {}) {
292
292
  ].filter(Boolean);
293
293
  return () => d.forEach((s) => s());
294
294
  }
295
- var pt = Object.defineProperty, dt = Object.defineProperties, vt = Object.getOwnPropertyDescriptors, ae = Object.getOwnPropertySymbols, mt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable, ie = (e, t, r) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
295
+ var mt = Object.defineProperty, yt = Object.defineProperties, gt = Object.getOwnPropertyDescriptors, ie = Object.getOwnPropertySymbols, ht = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable, se = (e, t, r) => t in e ? mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
296
296
  for (var r in t || (t = {}))
297
- mt.call(t, r) && ie(e, r, t[r]);
298
- if (ae)
299
- for (var r of ae(t))
300
- yt.call(t, r) && ie(e, r, t[r]);
297
+ ht.call(t, r) && se(e, r, t[r]);
298
+ if (ie)
299
+ for (var r of ie(t))
300
+ _t.call(t, r) && se(e, r, t[r]);
301
301
  return e;
302
- }, _t = (e, t) => dt(e, vt(t));
303
- function ht(e, t, r) {
302
+ }, wt = (e, t) => yt(e, gt(t));
303
+ function bt(e, t, r) {
304
304
  const {
305
305
  immediate: n = !0,
306
306
  delay: a = 0,
@@ -309,10 +309,10 @@ function ht(e, t, r) {
309
309
  resetOnExecute: i = !0,
310
310
  shallow: u = !0,
311
311
  throwError: p
312
- } = r ?? {}, d = u ? te(t) : O(t), l = O(!1), s = O(!1), f = te(void 0);
313
- async function v(y = 0, ...w) {
312
+ } = r ?? {}, d = u ? te(t) : w(t), l = w(!1), s = w(!1), f = te(void 0);
313
+ async function v(y = 0, ...O) {
314
314
  i && (d.value = t), f.value = void 0, l.value = !1, s.value = !0, y > 0 && await K(y);
315
- const b = typeof e == "function" ? e(...w) : e;
315
+ const b = typeof e == "function" ? e(...O) : e;
316
316
  try {
317
317
  const m = await b;
318
318
  d.value = m, l.value = !0, c(m);
@@ -332,61 +332,61 @@ function ht(e, t, r) {
332
332
  error: f,
333
333
  execute: v
334
334
  };
335
- function h() {
336
- return new Promise((y, w) => {
337
- Ze(s).toBe(!1).then(() => y(P)).catch(w);
335
+ function _() {
336
+ return new Promise((y, O) => {
337
+ tt(s).toBe(!1).then(() => y(P)).catch(O);
338
338
  });
339
339
  }
340
- return _t(gt({}, P), {
341
- then(y, w) {
342
- return h().then(y, w);
340
+ return wt(Ot({}, P), {
341
+ then(y, O) {
342
+ return _().then(y, O);
343
343
  }
344
344
  });
345
345
  }
346
- function Yt({ document: e = ft } = {}) {
346
+ function Qt({ document: e = vt } = {}) {
347
347
  if (!e)
348
- return O("visible");
349
- const t = O(e.visibilityState);
350
- return N(e, "visibilitychange", () => {
348
+ return w("visible");
349
+ const t = w(e.visibilityState);
350
+ return L(e, "visibilitychange", () => {
351
351
  t.value = e.visibilityState;
352
352
  }), t;
353
353
  }
354
- var wt = Object.defineProperty, se = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable, ce = (e, t, r) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
354
+ var Et = Object.defineProperty, ce = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, ue = (e, t, r) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, It = (e, t) => {
355
355
  for (var r in t || (t = {}))
356
- Ot.call(t, r) && ce(e, r, t[r]);
357
- if (se)
358
- for (var r of se(t))
359
- bt.call(t, r) && ce(e, r, t[r]);
356
+ Pt.call(t, r) && ue(e, r, t[r]);
357
+ if (ce)
358
+ for (var r of ce(t))
359
+ Tt.call(t, r) && ue(e, r, t[r]);
360
360
  return e;
361
361
  };
362
- async function Pt(e) {
362
+ async function At(e) {
363
363
  return new Promise((t, r) => {
364
364
  const n = new Image(), { src: a, srcset: o, sizes: c, class: i, loading: u, crossorigin: p } = e;
365
365
  n.src = a, o && (n.srcset = o), c && (n.sizes = c), i && (n.className = i), u && (n.loading = u), p && (n.crossOrigin = p), n.onload = () => t(n), n.onerror = r;
366
366
  });
367
367
  }
368
- function Jt(e, t = {}) {
369
- const r = ht(
370
- () => Pt(E(e)),
368
+ function Zt(e, t = {}) {
369
+ const r = bt(
370
+ () => At(E(e)),
371
371
  void 0,
372
- Et({
372
+ It({
373
373
  resetOnExecute: !0
374
374
  }, t)
375
375
  );
376
- return A(
376
+ return I(
377
377
  () => E(e),
378
378
  () => r.execute(t.delay),
379
379
  { deep: !0 }
380
380
  ), r;
381
381
  }
382
- function Qt(e = [], t = {}) {
383
- const { delay: r = 0 } = t, n = O(!1), a = S(() => {
384
- const i = I(e);
385
- return Array.isArray(i) ? i.map((u) => I(u)).some(Boolean) : i;
386
- }), { start: o, stop: c } = et(() => {
382
+ function er(e = [], t = {}) {
383
+ const { delay: r = 0 } = t, n = w(!1), a = A(() => {
384
+ const i = T(e);
385
+ return Array.isArray(i) ? i.map((u) => T(u)).some(Boolean) : i;
386
+ }), { start: o, stop: c } = rt(() => {
387
387
  n.value = !0;
388
388
  }, r);
389
- return A(
389
+ return I(
390
390
  a,
391
391
  (i) => {
392
392
  if (i)
@@ -396,88 +396,88 @@ function Qt(e = [], t = {}) {
396
396
  { immediate: !0, deep: !0 }
397
397
  ), n;
398
398
  }
399
- function It(e) {
399
+ function St(e) {
400
400
  var t = Object.prototype.toString.call(e);
401
401
  return t === "[object Uint8ClampedArray]" || t === "[object Int8Array]" || t === "[object Uint8Array]" || t === "[object Int16Array]" || t === "[object Uint16Array]" || t === "[object Int32Array]" || t === "[object Uint32Array]" || t === "[object Float32Array]" || t === "[object Float64Array]" || t === "[object BigInt64Array]" || t === "[object BigUint64Array]";
402
402
  }
403
- var At = /* @__PURE__ */ F(function(t) {
404
- return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : ke(t) ? [] : Ve(t) ? "" : Ue(t) ? {} : We(t) ? /* @__PURE__ */ function() {
403
+ var xt = /* @__PURE__ */ F(function(t) {
404
+ return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Ue(t) ? [] : ke(t) ? "" : We(t) ? {} : Me(t) ? /* @__PURE__ */ function() {
405
405
  return arguments;
406
- }() : It(t) ? t.constructor.from("") : void 0;
407
- }), St = /* @__PURE__ */ F(function(t) {
408
- return t != null && Me(t, At(t));
409
- }), Tt = /* @__PURE__ */ ze(function(t, r) {
406
+ }() : St(t) ? t.constructor.from("") : void 0;
407
+ }), $t = /* @__PURE__ */ F(function(t) {
408
+ return t != null && ze(t, xt(t));
409
+ }), jt = /* @__PURE__ */ qe(function(t, r) {
410
410
  for (var n = {}, a = {}, o = 0, c = t.length; o < c; )
411
411
  a[t[o]] = 1, o += 1;
412
412
  for (var i in r)
413
413
  a.hasOwnProperty(i) || (n[i] = r[i]);
414
414
  return n;
415
- }), R = `
416
- \v\f\r                 \u2028\u2029\uFEFF`, Rt = "​", $t = typeof String.prototype.trim == "function", jt = !$t || /* @__PURE__ */ R.trim() || !/* @__PURE__ */ Rt.trim() ? /* @__PURE__ */ F(function(t) {
417
- var r = new RegExp("^[" + R + "][" + R + "]*"), n = new RegExp("[" + R + "][" + R + "]*$");
415
+ }), x = `
416
+ \v\f\r                 \u2028\u2029\uFEFF`, Rt = "​", Ct = typeof String.prototype.trim == "function", Nt = !Ct || /* @__PURE__ */ x.trim() || !/* @__PURE__ */ Rt.trim() ? /* @__PURE__ */ F(function(t) {
417
+ var r = new RegExp("^[" + x + "][" + x + "]*"), n = new RegExp("[" + x + "][" + x + "]*$");
418
418
  return t.replace(r, "").replace(n, "");
419
419
  }) : /* @__PURE__ */ F(function(t) {
420
420
  return t.trim();
421
421
  });
422
- const V = jt, Ee = Symbol("I18nContext"), _ = me({
422
+ const U = Nt, Pe = Symbol("I18nContext"), h = ye({
423
423
  messages: {},
424
424
  locale: "",
425
425
  fallbackLocale: ""
426
- }), Zt = ({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) => {
427
- _.messages = e, _.locale = t, _.fallbackLocale = r;
426
+ }), tr = ({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) => {
427
+ h.messages = e, h.locale = t, h.fallbackLocale = r;
428
428
  const n = (u, p = {}) => {
429
- const d = !St(p), l = j(V, C(".", u));
430
- return S(() => {
431
- const f = Pe(l);
432
- return d ? Dt(f, p) : f;
429
+ const d = !$t(p), l = j(U, R(".", u));
430
+ return A(() => {
431
+ const f = Te(l);
432
+ return d ? Ft(f, p) : f;
433
433
  }).value;
434
434
  }, a = (u) => {
435
- const p = j(V, C(".", u));
436
- return !!H(_.locale, p, _.messages);
435
+ const p = j(U, R(".", u));
436
+ return !!H(h.locale, p, h.messages);
437
437
  }, o = (u) => {
438
- _.locale = u;
438
+ h.locale = u;
439
439
  }, i = {
440
- locale: S({
440
+ locale: A({
441
441
  get() {
442
- return _.locale;
442
+ return h.locale;
443
443
  },
444
444
  set(u) {
445
- _.locale = u;
445
+ h.locale = u;
446
446
  }
447
447
  }),
448
448
  setLocale: o,
449
449
  translate: n,
450
450
  hasTranlation: a
451
451
  };
452
- return ye(Ee, i), {
452
+ return ge(Pe, i), {
453
453
  translate: n
454
454
  };
455
- }, Ct = (e) => {
456
- e && (_.messages = e.messages, _.locale = e.locale, _.fallbackLocale = e.fallbackLocale);
457
- const t = xt();
455
+ }, Dt = (e) => {
456
+ e && (h.messages = e.messages, h.locale = e.locale, h.fallbackLocale = e.fallbackLocale);
457
+ const t = Lt();
458
458
  return {
459
459
  locale: t.locale,
460
460
  t: t.translate,
461
461
  setLocale: t.setLocale,
462
462
  hasTranlation: t.hasTranlation
463
463
  };
464
- }, xt = () => {
465
- const e = ge(Ee, null);
464
+ }, Lt = () => {
465
+ const e = he(Pe, null);
466
466
  if (e === null)
467
467
  throw new Error("Privider is missing a parent component.");
468
468
  return e;
469
- }, Pe = (e = []) => {
470
- let t = H(_.locale, e, _.messages);
471
- return !t && _.fallbackLocale && (t = H(_.fallbackLocale, e, _.messages)), t || e.join(".");
469
+ }, Te = (e = []) => {
470
+ let t = H(h.locale, e, h.messages);
471
+ return !t && h.fallbackLocale && (t = H(h.fallbackLocale, e, h.messages)), t || e.join(".");
472
472
  };
473
473
  function H(e, t, r) {
474
- return qe([e, ...t], r);
474
+ return Ke([e, ...t], r);
475
475
  }
476
- const Dt = function(e, t) {
476
+ const Ft = function(e, t) {
477
477
  return e.replace(/\{(\w+)\}/g, function(r, n) {
478
478
  return t[n];
479
479
  });
480
- }, er = Ne({
480
+ }, rr = Fe({
481
481
  props: {
482
482
  tag: {
483
483
  type: String,
@@ -489,67 +489,67 @@ const Dt = function(e, t) {
489
489
  }
490
490
  },
491
491
  setup(e, { slots: t }) {
492
- const r = j(V, C(".", e.path)), n = Pe(r), a = C(/{|}/, n), o = Object.keys(t).map((c) => {
492
+ const r = j(U, R(".", e.path)), n = Te(r), a = R(/{|}/, n), o = Object.keys(t).map((c) => {
493
493
  const i = a.indexOf(c);
494
494
  return i > -1 && (a[i] = t[c]()[0]), a;
495
495
  });
496
- return () => Fe(e.tag, o);
496
+ return () => Be(e.tag, o);
497
497
  }
498
- }), Ie = Symbol("ErrorProviderContext"), tr = () => {
499
- const e = O(""), t = O({}), r = (o) => {
498
+ }), Ie = Symbol("ErrorProviderContext"), nr = () => {
499
+ const e = w(""), t = w({}), r = (o) => {
500
500
  console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
501
501
  message: o.message,
502
- key: o.key || Ke(o.message),
502
+ key: o.key || Ge(o.message),
503
503
  cause: o.cause
504
504
  };
505
505
  };
506
- return ye(Ie, {
506
+ return ge(Ie, {
507
507
  onError: r,
508
508
  reset: () => {
509
509
  e.value = "", t.value = {};
510
510
  }
511
511
  }), window.onerror = (o) => {
512
512
  console.error("WINDOW_ONERROR:", o);
513
- }, Be((o, c, i) => {
513
+ }, Ve((o, c, i) => {
514
514
  console.error("onErrorCaptured:", o, c, i);
515
515
  }), {
516
- hasError: S(() => e.value.length > 0),
516
+ hasError: A(() => e.value.length > 0),
517
517
  message: e,
518
518
  error: t,
519
519
  onError: r
520
520
  };
521
- }, rr = () => {
522
- const e = Lt();
521
+ }, or = () => {
522
+ const e = Bt();
523
523
  return {
524
524
  onError: e.onError,
525
525
  reset: e.reset
526
526
  };
527
- }, Lt = () => {
528
- const e = ge(Ie, null);
527
+ }, Bt = () => {
528
+ const e = he(Ie, null);
529
529
  if (e === null)
530
530
  throw new Error("Privider is missing a parent component.");
531
531
  return e;
532
- }, nr = (e, t = "", r = {}) => {
533
- const n = O(""), { t: a } = Ct(), o = S(() => {
534
- if (I(t))
532
+ }, ar = (e, t = "", r = {}) => {
533
+ const n = w(""), { t: a } = Dt(), o = A(() => {
534
+ if (T(t))
535
535
  try {
536
- const u = Nt(I(e), I(t));
537
- return Tt(u, I(e));
536
+ const u = Vt(T(e), T(t));
537
+ return jt(u, T(e));
538
538
  } catch (u) {
539
539
  n.value = u;
540
540
  }
541
- return I(e);
541
+ return T(e);
542
542
  }), c = (u) => ({
543
543
  ...u,
544
- ...u.label && { label: a(u.label ?? "", I(r)) },
544
+ ...u.label && { label: a(u.label ?? "", T(r)) },
545
545
  ...u.tooltip && { tooltip: a(u.tooltip ?? "") }
546
546
  });
547
547
  return {
548
- columns: S(() => j(c, o.value)),
548
+ columns: A(() => j(c, o.value)),
549
549
  error: n
550
550
  };
551
- }, Nt = (e, t = "") => {
552
- const r = j(V, C(",", t)), n = Ge(e);
551
+ }, Vt = (e, t = "") => {
552
+ const r = j(U, R(",", t)), n = He(e);
553
553
  if (r[0] === "")
554
554
  return resolve([]);
555
555
  const a = r.findIndex((o) => !n.includes(o));
@@ -571,7 +571,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
571
571
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
572
572
  PERFORMANCE OF THIS SOFTWARE.
573
573
  ***************************************************************************** */
574
- function ue(e, t) {
574
+ function le(e, t) {
575
575
  var r = typeof Symbol == "function" && e[Symbol.iterator];
576
576
  if (!r)
577
577
  return e;
@@ -591,15 +591,15 @@ function ue(e, t) {
591
591
  }
592
592
  return c;
593
593
  }
594
- var le;
594
+ var fe;
595
595
  (function(e) {
596
596
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
597
- })(le || (le = {}));
598
- var Ft = { type: "xstate.init" };
597
+ })(fe || (fe = {}));
598
+ var Ut = { type: "xstate.init" };
599
599
  function q(e) {
600
600
  return e === void 0 ? [] : [].concat(e);
601
601
  }
602
- function fe(e, t) {
602
+ function pe(e, t) {
603
603
  return typeof (e = typeof e == "string" && t && t[e] ? t[e] : e) == "string" ? { type: e } : typeof e == "function" ? { type: e.name, exec: e } : e;
604
604
  }
605
605
  function X(e) {
@@ -607,13 +607,13 @@ function X(e) {
607
607
  return e === t;
608
608
  };
609
609
  }
610
- function Bt(e) {
610
+ function kt(e) {
611
611
  return typeof e == "string" ? { type: e } : e;
612
612
  }
613
- function pe(e, t) {
613
+ function de(e, t) {
614
614
  return { value: e, context: t, actions: [], changed: !1, matches: X(e) };
615
615
  }
616
- function de(e, t, r) {
616
+ function ve(e, t, r) {
617
617
  var n = t, a = !1;
618
618
  return [e.filter(function(o) {
619
619
  if (o.type === "xstate.assign") {
@@ -626,16 +626,16 @@ function de(e, t, r) {
626
626
  return !0;
627
627
  }), n, a];
628
628
  }
629
- function kt(e, t) {
629
+ function Wt(e, t) {
630
630
  t === void 0 && (t = {});
631
- var r = ue(de(q(e.states[e.initial].entry).map(function(c) {
632
- return fe(c, t.actions);
633
- }), e.context, Ft), 2), n = r[0], a = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: a, matches: X(e.initial) }, transition: function(c, i) {
634
- var u, p, d = typeof c == "string" ? { value: c, context: e.context } : c, l = d.value, s = d.context, f = Bt(i), v = e.states[l];
631
+ var r = le(ve(q(e.states[e.initial].entry).map(function(c) {
632
+ return pe(c, t.actions);
633
+ }), e.context, Ut), 2), n = r[0], a = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: a, matches: X(e.initial) }, transition: function(c, i) {
634
+ var u, p, d = typeof c == "string" ? { value: c, context: e.context } : c, l = d.value, s = d.context, f = kt(i), v = e.states[l];
635
635
  if (v.on) {
636
636
  var P = q(v.on[f.type]);
637
637
  try {
638
- for (var h = function(g) {
638
+ for (var _ = function(g) {
639
639
  var M = typeof Symbol == "function" && Symbol.iterator, Z = M && g[M], ee = 0;
640
640
  if (Z)
641
641
  return Z.call(g);
@@ -644,66 +644,66 @@ function kt(e, t) {
644
644
  return g && ee >= g.length && (g = void 0), { value: g && g[ee++], done: !g };
645
645
  } };
646
646
  throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
647
- }(P), y = h.next(); !y.done; y = h.next()) {
648
- var w = y.value;
649
- if (w === void 0)
650
- return pe(l, s);
651
- var b = typeof w == "string" ? { target: w } : w, m = b.target, T = b.actions, x = T === void 0 ? [] : T, Y = b.cond, Ae = Y === void 0 ? function() {
647
+ }(P), y = _.next(); !y.done; y = _.next()) {
648
+ var O = y.value;
649
+ if (O === void 0)
650
+ return de(l, s);
651
+ var b = typeof O == "string" ? { target: O } : O, m = b.target, S = b.actions, C = S === void 0 ? [] : S, Y = b.cond, Ae = Y === void 0 ? function() {
652
652
  return !0;
653
- } : Y, Se = m === void 0, Te = m ?? l, Re = e.states[Te];
653
+ } : Y, Se = m === void 0, xe = m ?? l, $e = e.states[xe];
654
654
  if (Ae(s, f)) {
655
- var W = ue(de((Se ? q(x) : [].concat(v.exit, x, Re.entry).filter(function(g) {
655
+ var W = le(ve((Se ? q(C) : [].concat(v.exit, C, $e.entry).filter(function(g) {
656
656
  return g;
657
657
  })).map(function(g) {
658
- return fe(g, o._options.actions);
659
- }), s, f), 3), J = W[0], $e = W[1], je = W[2], Q = m ?? l;
660
- return { value: Q, context: $e, actions: J, changed: m !== l || J.length > 0 || je, matches: X(Q) };
658
+ return pe(g, o._options.actions);
659
+ }), s, f), 3), J = W[0], je = W[1], Re = W[2], Q = m ?? l;
660
+ return { value: Q, context: je, actions: J, changed: m !== l || J.length > 0 || Re, matches: X(Q) };
661
661
  }
662
662
  }
663
663
  } catch (g) {
664
664
  u = { error: g };
665
665
  } finally {
666
666
  try {
667
- y && !y.done && (p = h.return) && p.call(h);
667
+ y && !y.done && (p = _.return) && p.call(_);
668
668
  } finally {
669
669
  if (u)
670
670
  throw u.error;
671
671
  }
672
672
  }
673
673
  }
674
- return pe(l, s);
674
+ return de(l, s);
675
675
  } };
676
676
  return o;
677
677
  }
678
- const Vt = kt({
678
+ const Mt = Wt({
679
679
  id: "sort",
680
- initial: D,
680
+ initial: N,
681
681
  states: {
682
- [D]: {
682
+ [N]: {
683
683
  on: {
684
684
  DIRECTION1: z,
685
- DIRECTION2: L
685
+ DIRECTION2: D
686
686
  }
687
687
  },
688
688
  [z]: {
689
689
  on: {
690
- DIRECTION1: L,
691
- DIRECTION2: D
690
+ DIRECTION1: D,
691
+ DIRECTION2: N
692
692
  }
693
693
  },
694
- [L]: {
694
+ [D]: {
695
695
  on: {
696
- DIRECTION1: D,
696
+ DIRECTION1: N,
697
697
  DIRECTION2: z
698
698
  }
699
699
  }
700
700
  }
701
- }), Ut = (e, t) => {
702
- const r = t === L ? "DIRECTION2" : "DIRECTION1";
703
- return Vt.transition(e, r).value;
701
+ }), zt = (e, t) => {
702
+ const r = t === D ? "DIRECTION2" : "DIRECTION1";
703
+ return Mt.transition(e, r).value;
704
704
  };
705
- function or(e = {}) {
706
- const { sortTarget: t = null, orders: r = [] } = e, n = me({ sortTarget: t, orders: r });
705
+ function ir(e = {}) {
706
+ const { sortTarget: t = null, orders: r = [] } = e, n = ye({ sortTarget: t, orders: r });
707
707
  return {
708
708
  sort: n,
709
709
  change: ({ target: o, orders: c }) => {
@@ -713,30 +713,51 @@ function or(e = {}) {
713
713
  }
714
714
  const i = c.map((u, p) => ({
715
715
  ...u,
716
- direction: Ut(n.orders[p].direction, u.direction)
716
+ direction: zt(n.orders[p].direction, u.direction)
717
717
  }));
718
718
  n.sortTarget = o, n.orders = i;
719
719
  }
720
720
  };
721
721
  }
722
+ function sr(e, t, r) {
723
+ const n = w(""), a = w(!1);
724
+ return st(e, (c) => {
725
+ const i = Xe(re(t), c), u = i.length > 0;
726
+ if (a.value = u, !u)
727
+ return n.value = "";
728
+ const d = i.map((l) => ({
729
+ team: l.team.longName,
730
+ points: re(t, l)
731
+ })).map((l) => r(`additionalText.${t}.content`, l)).join(", ");
732
+ n.value = [
733
+ r(`additionalText.${t}.prependix`),
734
+ d,
735
+ ...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
736
+ ].join(" ");
737
+ }), {
738
+ text: n,
739
+ isVisible: a
740
+ };
741
+ }
722
742
  export {
723
- tr as a,
724
- rr as b,
725
- Zt as c,
726
- Ct as d,
727
- Qt as e,
728
- qt as f,
729
- or as g,
730
- Jt as h,
731
- er as i,
732
- Kt as j,
733
- ht as k,
734
- Yt as l,
735
- Gt as m,
743
+ nr as a,
744
+ or as b,
745
+ tr as c,
746
+ Dt as d,
747
+ er as e,
748
+ Ht as f,
749
+ ir as g,
750
+ sr as h,
751
+ rr as i,
752
+ Zt as j,
753
+ st as k,
754
+ bt as l,
755
+ Qt as m,
736
756
  B as n,
737
- Xt as o,
738
- $ as p,
739
- nr as u,
740
- Nt as v,
741
- Ht as w
757
+ Jt as o,
758
+ Xt as p,
759
+ $ as q,
760
+ ar as u,
761
+ Vt as v,
762
+ Yt as w
742
763
  };