@mjsz-vbr-elements/core 2.10.0 → 2.11.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,14 +1,13 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.10.0 - 13/01/2025, 21:45:11
3
+ * version: v2.11.0 - 14/01/2025, 16:53:44
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { ref as I, readonly as fe, watch as S, nextTick as z, getCurrentScope as Pe, onScopeDispose as Ce, toValue as E, isRef as Re, shallowRef as re, computed as j, unref as O, reactive as de, defineComponent as je, h as _e, provide as pe, inject as me, onErrorCaptured as Le } from "vue";
9
- import { _ as U, w as Ne, x as ke, z as Fe, A as De, B as Be, C as Me, D as k, E as F, F as We, u as $e, G as ze, H as Ue, I as oe } from "./datetime-P3jKxpvY.js";
8
+ import { ref as I, readonly as fe, watch as S, nextTick as z, getCurrentScope as Pe, onScopeDispose as Ce, toValue as E, isRef as Re, shallowRef as re, unref as O, reactive as de, defineComponent as je, h as _e, computed as j, provide as pe, inject as me, onErrorCaptured as Le } from "vue";
9
+ import { _ as U, w as Ne, x as ke, z as Fe, A as De, B as Be, C as Me, D as We, E as oe, F as k, G as F, H as $e, I as ze, u as Ue } from "./datetime-DTVWbsTz.js";
10
10
  import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as K, SORT_STATE_ASCEND as W } from "./constants.js";
11
- const At = (e) => "mjsz-vbr-" + e;
12
11
  function ye(e) {
13
12
  return Pe() ? (Ce(e), !0) : !1;
14
13
  }
@@ -64,11 +63,11 @@ function Qe(e, t, r = {}) {
64
63
  i
65
64
  );
66
65
  }
67
- function Et(e, t, r = {}) {
66
+ function At(e, t, r = {}) {
68
67
  const {
69
68
  eventFilter: n,
70
69
  ...i
71
- } = r, { eventFilter: o, pause: s, resume: a, isActive: c } = Je(n);
70
+ } = r, { eventFilter: o, pause: a, resume: s, isActive: c } = Je(n);
72
71
  return { stop: Qe(
73
72
  e,
74
73
  t,
@@ -76,7 +75,7 @@ function Et(e, t, r = {}) {
76
75
  ...i,
77
76
  eventFilter: o
78
77
  }
79
- ), pause: s, resume: a, isActive: c };
78
+ ), pause: a, resume: s, isActive: c };
80
79
  }
81
80
  function X(e, t = !1) {
82
81
  function r(u, { flush: d = "sync", deep: m = !1, timeout: h, throwOnTimeout: l } = {}) {
@@ -126,10 +125,10 @@ function X(e, t = !1) {
126
125
  function o(u) {
127
126
  return n(null, u);
128
127
  }
129
- function s(u) {
128
+ function a(u) {
130
129
  return n(void 0, u);
131
130
  }
132
- function a(u) {
131
+ function s(u) {
133
132
  return r(Number.isNaN, u);
134
133
  }
135
134
  function c(u, d) {
@@ -158,8 +157,8 @@ function X(e, t = !1) {
158
157
  toBe: n,
159
158
  toBeTruthy: i,
160
159
  toBeNull: o,
161
- toBeNaN: a,
162
- toBeUndefined: s,
160
+ toBeNaN: s,
161
+ toBeUndefined: a,
163
162
  changed: y,
164
163
  changedTimes: v,
165
164
  get not() {
@@ -175,32 +174,32 @@ function Ye(e, t, r = {}) {
175
174
  immediate: n = !0
176
175
  } = r, i = I(!1);
177
176
  let o = null;
178
- function s() {
177
+ function a() {
179
178
  o && (clearTimeout(o), o = null);
180
179
  }
181
- function a() {
182
- i.value = !1, s();
180
+ function s() {
181
+ i.value = !1, a();
183
182
  }
184
183
  function c(...y) {
185
- s(), i.value = !0, o = setTimeout(() => {
184
+ a(), i.value = !0, o = setTimeout(() => {
186
185
  i.value = !1, o = null, e(...y);
187
186
  }, E(t));
188
187
  }
189
- return n && (i.value = !0, V && c()), ye(a), {
188
+ return n && (i.value = !0, V && c()), ye(s), {
190
189
  isPending: fe(i),
191
190
  start: c,
192
- stop: a
191
+ stop: s
193
192
  };
194
193
  }
195
194
  function Ze(e, t, r) {
196
195
  const n = S(e, (...i) => (z(() => n()), t(...i)), r);
197
196
  return n;
198
197
  }
199
- function It(e, t, r) {
198
+ function Et(e, t, r) {
200
199
  const n = S(
201
200
  e,
202
- (i, o, s) => {
203
- i && (r != null && r.once && z(() => n()), t(i, o, s));
201
+ (i, o, a) => {
202
+ i && (r != null && r.once && z(() => n()), t(i, o, a));
204
203
  },
205
204
  {
206
205
  ...r,
@@ -220,31 +219,31 @@ function $(...e) {
220
219
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, i] = e, t = he) : [t, r, n, i] = e, !t)
221
220
  return R;
222
221
  r = ie(r), n = ie(n);
223
- const o = [], s = () => {
222
+ const o = [], a = () => {
224
223
  o.forEach((v) => v()), o.length = 0;
225
- }, a = (v, u, d, m) => (v.addEventListener(u, d, m), () => v.removeEventListener(u, d, m)), c = S(
224
+ }, s = (v, u, d, m) => (v.addEventListener(u, d, m), () => v.removeEventListener(u, d, m)), c = S(
226
225
  () => [N(t), E(i)],
227
226
  ([v, u]) => {
228
- if (s(), !v)
227
+ if (a(), !v)
229
228
  return;
230
229
  const d = Ve(u) ? { ...u } : u;
231
230
  o.push(
232
- ...r.flatMap((m) => n.map((h) => a(v, m, h, d)))
231
+ ...r.flatMap((m) => n.map((h) => s(v, m, h, d)))
233
232
  );
234
233
  },
235
234
  { immediate: !0, flush: "post" }
236
235
  ), y = () => {
237
- c(), s();
236
+ c(), a();
238
237
  };
239
238
  return ye(y), y;
240
239
  }
241
- let se = !1;
242
- function Ot(e, t, r = {}) {
243
- const { window: n = he, ignore: i = [], capture: o = !0, detectIframe: s = !1 } = r;
240
+ let ae = !1;
241
+ function It(e, t, r = {}) {
242
+ const { window: n = he, ignore: i = [], capture: o = !0, detectIframe: a = !1 } = r;
244
243
  if (!n)
245
244
  return R;
246
- qe && !se && (se = !0, Array.from(n.document.body.children).forEach((l) => l.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
247
- let a = !0;
245
+ qe && !ae && (ae = !0, Array.from(n.document.body.children).forEach((l) => l.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
246
+ let s = !0;
248
247
  const c = (l) => E(i).some((f) => {
249
248
  if (typeof f == "string")
250
249
  return Array.from(n.document.querySelectorAll(f)).some((p) => p === l.target || l.composedPath().includes(p));
@@ -264,8 +263,8 @@ function Ot(e, t, r = {}) {
264
263
  const u = (l) => {
265
264
  const f = N(e);
266
265
  if (l.target != null && !(!(f instanceof Element) && y(e) && v(e, l)) && !(!f || f === l.target || l.composedPath().includes(f))) {
267
- if (l.detail === 0 && (a = !c(l)), !a) {
268
- a = !0;
266
+ if (l.detail === 0 && (s = !c(l)), !s) {
267
+ s = !0;
269
268
  return;
270
269
  }
271
270
  t(l);
@@ -280,9 +279,9 @@ function Ot(e, t, r = {}) {
280
279
  }, { passive: !0, capture: o }),
281
280
  $(n, "pointerdown", (l) => {
282
281
  const f = N(e);
283
- a = !c(l) && !!(f && !l.composedPath().includes(f));
282
+ s = !c(l) && !!(f && !l.composedPath().includes(f));
284
283
  }, { passive: !0 }),
285
- s && $(n, "blur", (l) => {
284
+ a && $(n, "blur", (l) => {
286
285
  setTimeout(() => {
287
286
  var f;
288
287
  const p = N(e);
@@ -297,17 +296,17 @@ function tt(e, t, r) {
297
296
  immediate: n = !0,
298
297
  delay: i = 0,
299
298
  onError: o = R,
300
- onSuccess: s = R,
301
- resetOnExecute: a = !0,
299
+ onSuccess: a = R,
300
+ resetOnExecute: s = !0,
302
301
  shallow: c = !0,
303
302
  throwError: y
304
303
  } = r ?? {}, v = c ? re(t) : I(t), u = I(!1), d = I(!1), m = re(void 0);
305
304
  async function h(p = 0, ...w) {
306
- a && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Q(p);
305
+ s && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Q(p);
307
306
  const A = typeof e == "function" ? e(...w) : e;
308
307
  try {
309
308
  const g = await A;
310
- v.value = g, u.value = !0, s(g);
309
+ v.value = g, u.value = !0, a(g);
311
310
  } catch (g) {
312
311
  if (m.value = g, o(g), y)
313
312
  throw g;
@@ -336,7 +335,7 @@ function tt(e, t, r) {
336
335
  }
337
336
  };
338
337
  }
339
- function xt(e = {}) {
338
+ function Ot(e = {}) {
340
339
  const { document: t = et } = e;
341
340
  if (!t)
342
341
  return I("visible");
@@ -347,11 +346,11 @@ function xt(e = {}) {
347
346
  }
348
347
  async function nt(e) {
349
348
  return new Promise((t, r) => {
350
- const n = new Image(), { src: i, srcset: o, sizes: s, class: a, loading: c, crossorigin: y, referrerPolicy: v, width: u, height: d, decoding: m, fetchPriority: h, ismap: l, usemap: f } = e;
351
- n.src = i, o != null && (n.srcset = o), s != null && (n.sizes = s), a != null && (n.className = a), c != null && (n.loading = c), y != null && (n.crossOrigin = y), v != null && (n.referrerPolicy = v), u != null && (n.width = u), d != null && (n.height = d), m != null && (n.decoding = m), h != null && (n.fetchPriority = h), l != null && (n.isMap = l), f != null && (n.useMap = f), n.onload = () => t(n), n.onerror = r;
349
+ const n = new Image(), { src: i, srcset: o, sizes: a, class: s, loading: c, crossorigin: y, referrerPolicy: v, width: u, height: d, decoding: m, fetchPriority: h, ismap: l, usemap: f } = e;
350
+ n.src = i, o != null && (n.srcset = o), a != null && (n.sizes = a), s != null && (n.className = s), c != null && (n.loading = c), y != null && (n.crossOrigin = y), v != null && (n.referrerPolicy = v), u != null && (n.width = u), d != null && (n.height = d), m != null && (n.decoding = m), h != null && (n.fetchPriority = h), l != null && (n.isMap = l), f != null && (n.useMap = f), n.onload = () => t(n), n.onerror = r;
352
351
  });
353
352
  }
354
- function St(e, t = {}) {
353
+ function xt(e, t = {}) {
355
354
  const r = tt(
356
355
  () => nt(E(e)),
357
356
  void 0,
@@ -366,22 +365,6 @@ function St(e, t = {}) {
366
365
  { deep: !0 }
367
366
  ), r;
368
367
  }
369
- function Pt(e = [], t = {}) {
370
- const { delay: r = 0 } = t, n = I(!1), i = j(() => {
371
- const a = O(e);
372
- return Array.isArray(a) ? a.map((c) => O(c)).some(Boolean) : a;
373
- }), { start: o, stop: s } = Ye(() => {
374
- n.value = !0;
375
- }, r);
376
- return S(
377
- i,
378
- (a) => {
379
- if (a) return o();
380
- s(), n.value = !1;
381
- },
382
- { immediate: !0, deep: !0 }
383
- ), n;
384
- }
385
368
  function rt(e) {
386
369
  var t = Object.prototype.toString.call(e);
387
370
  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]";
@@ -392,24 +375,48 @@ var ot = /* @__PURE__ */ U(function(t) {
392
375
  }() : rt(t) ? t.constructor.from("") : void 0;
393
376
  }), it = /* @__PURE__ */ U(function(t) {
394
377
  return t != null && Be(t, ot(t));
395
- }), st = /* @__PURE__ */ Me(function(t, r) {
396
- for (var n = {}, i = {}, o = 0, s = t.length; o < s; )
378
+ }), at = /* @__PURE__ */ Me(function(t, r) {
379
+ for (var n = {}, i = {}, o = 0, a = t.length; o < a; )
397
380
  i[t[o]] = 1, o += 1;
398
- for (var a in r)
399
- i.hasOwnProperty(a) || (n[a] = r[a]);
381
+ for (var s in r)
382
+ i.hasOwnProperty(s) || (n[s] = r[s]);
400
383
  return n;
401
384
  }), L = `
402
- \v\f\r                 \u2028\u2029\uFEFF`, at = "​", ut = typeof String.prototype.trim == "function", G = !ut || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ at.trim() ? /* @__PURE__ */ U(function(t) {
385
+ \v\f\r                 \u2028\u2029\uFEFF`, st = "​", ut = typeof String.prototype.trim == "function", G = !ut || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ st.trim() ? /* @__PURE__ */ U(function(t) {
403
386
  var r = new RegExp("^[" + L + "][" + L + "]*"), n = new RegExp("[" + L + "][" + L + "]*$");
404
387
  return t.replace(r, "").replace(n, "");
405
388
  }) : /* @__PURE__ */ U(function(t) {
406
389
  return t.trim();
407
390
  });
391
+ function St(e, t, r, n) {
392
+ const i = I(""), o = I(!1), a = (s) => {
393
+ const c = We(oe(t), s), y = c.length > 0;
394
+ if (o.value = y, !y)
395
+ return i.value = "";
396
+ const u = c.map((d) => ({
397
+ team: d.team.longName,
398
+ points: Math.abs(oe(t, d))
399
+ })).map((d) => r(`additionalText.${t}.content`, d)).join(", ");
400
+ i.value = [
401
+ r(`additionalText.${t}.prependix`),
402
+ u,
403
+ ...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
404
+ ].join(" ");
405
+ };
406
+ return Ze(e, a), S(
407
+ () => O(n),
408
+ () => a(O(e))
409
+ ), {
410
+ text: i,
411
+ isVisible: o
412
+ };
413
+ }
408
414
  const ge = Symbol("I18nContext"), T = de({
409
415
  messages: {},
410
416
  locale: "",
411
417
  fallbackLocale: ""
412
- }), Ct = ({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) => {
418
+ });
419
+ function Pt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
413
420
  T.messages = e, T.locale = t, T.fallbackLocale = r;
414
421
  const n = (c, y = {}) => {
415
422
  const v = !it(y), u = k(G, F(".", c));
@@ -422,7 +429,7 @@ const ge = Symbol("I18nContext"), T = de({
422
429
  return !!Y(T.locale, y, T.messages);
423
430
  }, o = (c) => {
424
431
  T.locale = c;
425
- }, a = {
432
+ }, s = {
426
433
  locale: j({
427
434
  get() {
428
435
  return T.locale;
@@ -435,10 +442,11 @@ const ge = Symbol("I18nContext"), T = de({
435
442
  translate: n,
436
443
  hasTranslation: i
437
444
  };
438
- return pe(ge, a), {
445
+ return pe(ge, s), {
439
446
  translate: n
440
447
  };
441
- }, ct = (e) => {
448
+ }
449
+ function ct(e) {
442
450
  e && (T.messages = e.messages, T.locale = e.locale, T.fallbackLocale = e.fallbackLocale);
443
451
  const t = lt();
444
452
  return {
@@ -447,23 +455,24 @@ const ge = Symbol("I18nContext"), T = de({
447
455
  setLocale: t.setLocale,
448
456
  hasTranslation: t.hasTranslation
449
457
  };
450
- }, lt = () => {
458
+ }
459
+ function lt() {
451
460
  const e = me(ge, null);
452
461
  if (e === null)
453
462
  throw new Error("Privider is missing a parent component.");
454
463
  return e;
455
- }, we = (e = []) => {
464
+ }
465
+ function we(e = []) {
456
466
  let t = Y(T.locale, e, T.messages);
457
467
  return !t && T.fallbackLocale && (t = Y(T.fallbackLocale, e, T.messages)), t || e.join(".");
458
- };
468
+ }
459
469
  function Y(e, t, r) {
460
- return We([e, ...t], r);
470
+ return $e([e, ...t], r);
461
471
  }
462
- const ft = function(e, t) {
463
- return e.replace(/\{(\w+)\}/g, function(r, n) {
464
- return t[n];
465
- });
466
- }, Rt = je({
472
+ function ft(e, t) {
473
+ return e.replace(/\{(\w+)\}/g, (r, n) => t[n]);
474
+ }
475
+ const Ct = je({
467
476
  props: {
468
477
  tag: {
469
478
  type: String,
@@ -475,17 +484,48 @@ const ft = function(e, t) {
475
484
  }
476
485
  },
477
486
  setup(e, { slots: t }) {
478
- const r = k(G, F(".", e.path)), n = we(r), i = F(/{|}/, n), o = Object.keys(t).map((s) => {
479
- const a = i.indexOf(s);
480
- return a > -1 && (i[a] = t[s]()[0]), i;
487
+ const r = k(G, F(".", e.path)), n = we(r), i = F(/\{|\}/, n), o = Object.keys(t).map((a) => {
488
+ const s = i.indexOf(a);
489
+ return s > -1 && (i[s] = t[a]()[0]), i;
481
490
  });
482
491
  return () => _e(e.tag, o);
483
492
  }
484
- }), be = Symbol("ErrorProviderContext"), jt = () => {
493
+ });
494
+ function Rt(e, t = "", r = {}) {
495
+ const n = I(""), { t: i } = ct(), o = j(() => {
496
+ if (O(t))
497
+ try {
498
+ const c = dt(O(e), O(t));
499
+ return at(c, O(e));
500
+ } catch (c) {
501
+ n.value = c;
502
+ }
503
+ return O(e);
504
+ }), a = (c) => ({
505
+ ...c,
506
+ ...c.label && { label: i(c.label ?? "", O(r)) },
507
+ ...c.tooltip && { tooltip: i(c.tooltip ?? "") }
508
+ });
509
+ return {
510
+ columns: j(() => k(a, o.value)),
511
+ error: n
512
+ };
513
+ }
514
+ function dt(e, t = "") {
515
+ const r = k(G, F(",", t)), n = ze(e);
516
+ if (r[0] === "")
517
+ return [];
518
+ const i = r.findIndex((o) => !n.includes(o));
519
+ if (i > -1)
520
+ throw r[i];
521
+ return r;
522
+ }
523
+ const be = Symbol("ErrorProviderContext");
524
+ function jt() {
485
525
  const e = I(""), t = I({}), r = (o) => {
486
526
  console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
487
527
  message: o.message,
488
- key: o.key || $e(o.message),
528
+ key: o.key || Ue(o.message),
489
529
  cause: o.cause
490
530
  };
491
531
  };
@@ -496,52 +536,48 @@ const ft = function(e, t) {
496
536
  }
497
537
  }), window.onerror = (o) => {
498
538
  console.error("WINDOW_ONERROR:", o);
499
- }, Le((o, s, a) => {
500
- console.error("onErrorCaptured:", o, s, a);
539
+ }, Le((o, a, s) => {
540
+ console.error("onErrorCaptured:", o, a, s);
501
541
  }), {
502
542
  hasError: j(() => e.value.length > 0),
503
543
  message: e,
504
544
  error: t,
505
545
  onError: r
506
546
  };
507
- }, _t = () => {
508
- const e = dt();
547
+ }
548
+ function _t() {
549
+ const e = pt();
509
550
  return {
510
551
  onError: e.onError,
511
552
  reset: e.reset
512
553
  };
513
- }, dt = () => {
554
+ }
555
+ function pt() {
514
556
  const e = me(be, null);
515
557
  if (e === null)
516
558
  throw new Error("Privider is missing a parent component.");
517
559
  return e;
518
- }, Lt = (e, t = "", r = {}) => {
519
- const n = I(""), { t: i } = ct(), o = j(() => {
520
- if (O(t))
521
- try {
522
- const c = pt(O(e), O(t));
523
- return st(c, O(e));
524
- } catch (c) {
525
- n.value = c;
526
- }
527
- return O(e);
528
- }), s = (c) => ({
529
- ...c,
530
- ...c.label && { label: i(c.label ?? "", O(r)) },
531
- ...c.tooltip && { tooltip: i(c.tooltip ?? "") }
532
- });
533
- return {
534
- columns: j(() => k(s, o.value)),
535
- error: n
536
- };
537
- }, pt = (e, t = "") => {
538
- const r = k(G, F(",", t)), n = ze(e);
539
- if (r[0] === "") return resolve([]);
540
- const i = r.findIndex((o) => !n.includes(o));
541
- if (i > -1)
542
- throw r[i];
543
- return r;
544
- };
560
+ }
561
+ function Lt(e = [], t = {}) {
562
+ const { delay: r = 0 } = t, n = I(!1), i = j(() => {
563
+ const s = O(e);
564
+ return Array.isArray(s) ? s.map((c) => O(c)).some(Boolean) : s;
565
+ }), { start: o, stop: a } = Ye(() => {
566
+ n.value = !0;
567
+ }, r);
568
+ return S(
569
+ i,
570
+ (s) => {
571
+ if (s)
572
+ return o();
573
+ a(), n.value = !1;
574
+ },
575
+ { immediate: !0, deep: !0 }
576
+ ), n;
577
+ }
578
+ function Nt(e) {
579
+ return "mjsz-vbr-" + e;
580
+ }
545
581
  /*! *****************************************************************************
546
582
  Copyright (c) Microsoft Corporation.
547
583
 
@@ -559,11 +595,11 @@ PERFORMANCE OF THIS SOFTWARE.
559
595
  function J(e, t) {
560
596
  var r = typeof Symbol == "function" && e[Symbol.iterator];
561
597
  if (!r) return e;
562
- var n, i, o = r.call(e), s = [];
598
+ var n, i, o = r.call(e), a = [];
563
599
  try {
564
- for (; (t === void 0 || t-- > 0) && !(n = o.next()).done; ) s.push(n.value);
565
- } catch (a) {
566
- i = { error: a };
600
+ for (; (t === void 0 || t-- > 0) && !(n = o.next()).done; ) a.push(n.value);
601
+ } catch (s) {
602
+ i = { error: s };
567
603
  } finally {
568
604
  try {
569
605
  n && !n.done && (r = o.return) && r.call(o);
@@ -571,12 +607,12 @@ function J(e, t) {
571
607
  if (i) throw i.error;
572
608
  }
573
609
  }
574
- return s;
610
+ return a;
575
611
  }
576
- var ae;
612
+ var se;
577
613
  (function(e) {
578
614
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
579
- })(ae || (ae = {}));
615
+ })(se || (se = {}));
580
616
  var mt = { type: "xstate.init" };
581
617
  function M(e) {
582
618
  return e === void 0 ? [] : [].concat(e);
@@ -600,20 +636,20 @@ function le(e, t, r) {
600
636
  return [e.filter(function(o) {
601
637
  if (o.type === "xstate.assign") {
602
638
  i = !0;
603
- var s = Object.assign({}, n);
604
- return typeof o.assignment == "function" ? s = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(a) {
605
- s[a] = typeof o.assignment[a] == "function" ? o.assignment[a](n, r) : o.assignment[a];
606
- }), n = s, !1;
639
+ var a = Object.assign({}, n);
640
+ return typeof o.assignment == "function" ? a = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(s) {
641
+ a[s] = typeof o.assignment[s] == "function" ? o.assignment[s](n, r) : o.assignment[s];
642
+ }), n = a, !1;
607
643
  }
608
644
  return !0;
609
645
  }), n, i];
610
646
  }
611
647
  function vt(e, t) {
612
648
  t === void 0 && (t = {});
613
- var r = J(le(M(e.states[e.initial].entry).map(function(s) {
614
- return ue(s, t.actions);
615
- }), e.context, mt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: Z(e.initial) }, transition: function(s, a) {
616
- var c, y, v = typeof s == "string" ? { value: s, context: e.context } : s, u = v.value, d = v.context, m = yt(a), h = e.states[u];
649
+ var r = J(le(M(e.states[e.initial].entry).map(function(a) {
650
+ return ue(a, t.actions);
651
+ }), e.context, mt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: Z(e.initial) }, transition: function(a, s) {
652
+ var c, y, v = typeof a == "string" ? { value: a, context: e.context } : a, u = v.value, d = v.context, m = yt(s), h = e.states[u];
617
653
  if (h.on) {
618
654
  var l = M(h.on[m.type]);
619
655
  "*" in h.on && l.push.apply(l, function(b, x, H) {
@@ -680,69 +716,48 @@ const ht = vt({
680
716
  }
681
717
  }
682
718
  }
683
- }), gt = (e, t) => {
719
+ });
720
+ function gt(e, t) {
684
721
  const r = t === W ? "DIRECTION2" : "DIRECTION1";
685
722
  return ht.transition(e, r).value;
686
- };
687
- function Nt(e = {}) {
723
+ }
724
+ function kt(e = {}) {
688
725
  const { sortTarget: t = null, orders: r = [] } = e, n = de({ sortTarget: t, orders: r });
689
726
  return {
690
727
  sort: n,
691
- change: ({ target: o, orders: s }) => {
728
+ change: ({ target: o, orders: a }) => {
692
729
  if (n.sortTarget !== o) {
693
- n.sortTarget = o, n.orders = s;
730
+ n.sortTarget = o, n.orders = a;
694
731
  return;
695
732
  }
696
- const a = s.map((c, y) => ({
733
+ const s = a.map((c, y) => ({
697
734
  ...c,
698
735
  direction: gt(n.orders[y].direction, c.direction)
699
736
  }));
700
- n.sortTarget = o, n.orders = a;
737
+ n.sortTarget = o, n.orders = s;
701
738
  }
702
739
  };
703
740
  }
704
- function kt(e, t, r, n) {
705
- const i = I(""), o = I(!1), s = (a) => {
706
- const c = Ue(oe(t), a), y = c.length > 0;
707
- if (o.value = y, !y) return i.value = "";
708
- const u = c.map((d) => ({
709
- team: d.team.longName,
710
- points: Math.abs(oe(t, d))
711
- })).map((d) => r(`additionalText.${t}.content`, d)).join(", ");
712
- i.value = [
713
- r(`additionalText.${t}.prependix`),
714
- u,
715
- ...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
716
- ].join(" ");
717
- };
718
- return Ze(e, s), S(
719
- () => O(n),
720
- () => s(O(e))
721
- ), {
722
- text: i,
723
- isVisible: o
724
- };
725
- }
726
741
  export {
727
- jt as a,
728
- _t as b,
729
- Ct as c,
730
- ct as d,
731
- Pt as e,
732
- At as f,
742
+ Rt as a,
743
+ jt as b,
744
+ _t as c,
745
+ Pt as d,
746
+ ct as e,
747
+ Lt as f,
733
748
  Nt as g,
734
749
  kt as h,
735
- Rt as i,
736
- St as j,
750
+ Ct as i,
751
+ xt as j,
737
752
  it as k,
738
753
  Ze as l,
739
- tt as m,
754
+ At as m,
740
755
  R as n,
741
- Ot as o,
742
- xt as p,
743
- Et as q,
744
- N as r,
745
- Lt as u,
746
- pt as v,
747
- It as w
756
+ It as o,
757
+ N as p,
758
+ tt as q,
759
+ Ot as r,
760
+ St as u,
761
+ dt as v,
762
+ Et as w
748
763
  };