@adyen/lume 0.1.4 → 0.1.6

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,7 +1,7 @@
1
- import N, { isRef as Et, computed as v, ref as k, watch as I, defineComponent as S, toRefs as w, reactive as it, onBeforeMount as ne, onMounted as j, onBeforeUnmount as mt, watchEffect as Pt, toRef as re, defineAsyncComponent as pt } from "vue";
2
- import { sankeyLinkHorizontal as ae, sankey as oe, sankeyJustify as se } from "d3-sankey";
3
- import { ticks as ie, format as le, line as ue, scaleBand as J, scaleLinear as Q, area as ce } from "d3";
4
- import { createPopper as de } from "@popperjs/core";
1
+ import N, { isRef as Et, reactive as it, computed as f, ref as k, watch as I, defineComponent as S, toRefs as C, onBeforeMount as re, onMounted as G, onBeforeUnmount as gt, watchEffect as Pt, toRef as ae, defineAsyncComponent as vt } from "vue";
2
+ import { sankeyLinkHorizontal as oe, sankey as se, sankeyJustify as ie } from "d3-sankey";
3
+ import { ticks as le, format as ue, line as ce, scaleBand as J, scaleLinear as Q, area as de } from "d3";
4
+ import { createPopper as fe } from "@popperjs/core";
5
5
  function at(e) {
6
6
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? at = function(t) {
7
7
  return typeof t;
@@ -9,35 +9,35 @@ function at(e) {
9
9
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
10
10
  }, at(e);
11
11
  }
12
- function fe(e) {
13
- return pe(e) || ve(e) || he();
14
- }
15
12
  function pe(e) {
13
+ return ve(e) || he(e) || _e();
14
+ }
15
+ function ve(e) {
16
16
  if (Array.isArray(e)) {
17
17
  for (var t = 0, n = new Array(e.length); t < e.length; t++)
18
18
  n[t] = e[t];
19
19
  return n;
20
20
  }
21
21
  }
22
- function ve(e) {
22
+ function he(e) {
23
23
  if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]")
24
24
  return Array.from(e);
25
25
  }
26
- function he() {
26
+ function _e() {
27
27
  throw new TypeError("Invalid attempt to spread non-iterable instance");
28
28
  }
29
29
  var rt = typeof window < "u";
30
- function _e(e) {
30
+ function me(e) {
31
31
  return Array.isArray(e) || at(e) === "object" ? Object.freeze(e) : e;
32
32
  }
33
- function me(e) {
33
+ function ge(e) {
34
34
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
35
35
  return e.reduce(function(n, r) {
36
36
  var a = r.passengers[0], o = typeof a == "function" ? a(t) : r.passengers;
37
37
  return n.concat(o);
38
38
  }, []);
39
39
  }
40
- function ge(e, t) {
40
+ function ye(e, t) {
41
41
  return e.map(function(n, r) {
42
42
  return [r, n];
43
43
  }).sort(function(n, r) {
@@ -51,30 +51,30 @@ function St(e, t) {
51
51
  return e.hasOwnProperty(r) && (n[r] = e[r]), n;
52
52
  }, {});
53
53
  }
54
- var Bt = {}, ye = {}, be = {}, xe = N.extend({
54
+ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
55
55
  data: function() {
56
56
  return {
57
57
  transports: Bt,
58
- targets: ye,
59
- sources: be,
58
+ targets: be,
59
+ sources: xe,
60
60
  trackInstances: rt
61
61
  };
62
62
  },
63
63
  methods: {
64
64
  open: function(t) {
65
65
  if (!!rt) {
66
- var n = t.to, r = t.from, a = t.passengers, o = t.order, l = o === void 0 ? 1 / 0 : o;
66
+ var n = t.to, r = t.from, a = t.passengers, o = t.order, i = o === void 0 ? 1 / 0 : o;
67
67
  if (!(!n || !r || !a)) {
68
68
  var u = {
69
69
  to: n,
70
70
  from: r,
71
- passengers: _e(a),
72
- order: l
71
+ passengers: me(a),
72
+ order: i
73
73
  }, s = Object.keys(this.transports);
74
74
  s.indexOf(n) === -1 && N.set(this.transports, n, []);
75
- var i = this.$_getTransportIndex(u), f = this.transports[n].slice(0);
76
- i === -1 ? f.push(u) : f[i] = u, this.transports[n] = ge(f, function(c, p) {
77
- return c.order - p.order;
75
+ var c = this.$_getTransportIndex(u), h = this.transports[n].slice(0);
76
+ c === -1 ? h.push(u) : h[c] = u, this.transports[n] = ye(h, function(l, v) {
77
+ return l.order - v.order;
78
78
  });
79
79
  }
80
80
  }
@@ -87,8 +87,8 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
87
87
  else {
88
88
  var o = this.$_getTransportIndex(t);
89
89
  if (o >= 0) {
90
- var l = this.transports[r].slice(0);
91
- l.splice(o, 1), this.transports[r] = l;
90
+ var i = this.transports[r].slice(0);
91
+ i.splice(o, 1), this.transports[r] = i;
92
92
  }
93
93
  }
94
94
  },
@@ -121,7 +121,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
121
121
  return -1;
122
122
  }
123
123
  }
124
- }), P = new xe(Bt), Ae = 1, Mt = N.extend({
124
+ }), P = new Ae(Bt), Oe = 1, Mt = N.extend({
125
125
  name: "portal",
126
126
  props: {
127
127
  disabled: {
@@ -130,7 +130,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
130
130
  name: {
131
131
  type: String,
132
132
  default: function() {
133
- return String(Ae++);
133
+ return String(Oe++);
134
134
  }
135
135
  },
136
136
  order: {
@@ -197,7 +197,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
197
197
  var n = {
198
198
  from: this.name,
199
199
  to: this.to,
200
- passengers: fe(t),
200
+ passengers: pe(t),
201
201
  order: this.order
202
202
  };
203
203
  P.open(n);
@@ -217,7 +217,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
217
217
  key: "v-portal-placeholder"
218
218
  });
219
219
  }
220
- }), Oe = N.extend({
220
+ }), Ht = N.extend({
221
221
  name: "portalTarget",
222
222
  props: {
223
223
  multiple: {
@@ -281,7 +281,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
281
281
  return this.multiple ? t : t.length === 0 ? [] : [t[t.length - 1]];
282
282
  },
283
283
  passengers: function() {
284
- return me(this.ownTransports, this.slotProps);
284
+ return ge(this.ownTransports, this.slotProps);
285
285
  }
286
286
  },
287
287
  methods: {
@@ -390,11 +390,11 @@ N.extend({
390
390
  var a = typeof r == "string" ? r : "DIV", o = document.createElement(a);
391
391
  t.appendChild(o), t = o;
392
392
  }
393
- var l = St(this.$props, ke);
394
- l.slim = this.targetSlim, l.tag = this.targetTag, l.slotProps = this.targetSlotProps, l.name = this.to, this.portalTarget = new Oe({
393
+ var i = St(this.$props, ke);
394
+ i.slim = this.targetSlim, i.tag = this.targetTag, i.slotProps = this.targetSlotProps, i.name = this.to, this.portalTarget = new Ht({
395
395
  el: t,
396
396
  parent: this.$parent || this,
397
- propsData: l
397
+ propsData: i
398
398
  });
399
399
  }
400
400
  },
@@ -424,10 +424,49 @@ N.extend({
424
424
  return Array.isArray(r) && (r = r[0]), r || t();
425
425
  }
426
426
  });
427
- function Se() {
427
+ var M = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(M || {}), yt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(bt || {});
428
+ const A = {
429
+ HORIZONTAL: "horizontal",
430
+ VERTICAL: "vertical"
431
+ }, Se = {
432
+ SINGLE: "single",
433
+ GROUPED: "grouped",
434
+ STACKED: "stacked"
435
+ }, Z = {
436
+ VERTICAL: {
437
+ top: 16,
438
+ right: 0,
439
+ bottom: 28,
440
+ left: 24
441
+ },
442
+ HORIZONTAL: {
443
+ top: 16,
444
+ right: 0,
445
+ bottom: 28,
446
+ left: 24
447
+ }
448
+ }, jt = "No data", Le = 20, we = 0.33, Ce = 0.5, Ie = 1, xt = [
449
+ "auto",
450
+ "auto-start",
451
+ "auto-end",
452
+ "top",
453
+ "top-start",
454
+ "top-end",
455
+ "right",
456
+ "right-start",
457
+ "right-end",
458
+ "bottom",
459
+ "bottom-start",
460
+ "bottom-end",
461
+ "left",
462
+ "left-start",
463
+ "left-end"
464
+ ];
465
+ var W = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(W || {});
466
+ function Ne() {
428
467
  return process.env.NODE_ENV === "production";
429
468
  }
430
- function Ht(e) {
469
+ function Ft(e) {
431
470
  return (e == null ? void 0 : e.map(
432
471
  (t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
433
472
  ).flat()) || [];
@@ -435,25 +474,25 @@ function Ht(e) {
435
474
  function lt(e) {
436
475
  return e.length === 1;
437
476
  }
438
- function ht(e) {
477
+ function _t(e) {
439
478
  return !!e && typeof e == "object" && !Array.isArray(e);
440
479
  }
441
- function jt(e, t) {
480
+ function Gt(e, t) {
442
481
  const n = structuredClone(e);
443
482
  return Object.entries(t).forEach(([r, a]) => {
444
- n[r] = ht(e[r]) && ht(a) ? jt(e[r], a) : a;
483
+ n[r] = _t(e[r]) && _t(a) ? Gt(e[r], a) : a;
445
484
  }), n;
446
485
  }
447
- function Le(e) {
448
- return e != null && ht(e) && "value" in e;
486
+ function Re(e) {
487
+ return e != null && _t(e) && "value" in e;
449
488
  }
450
- function Y(e) {
489
+ function U(e) {
451
490
  return (e == null ? void 0 : e.bandwidth) !== void 0;
452
491
  }
453
- function gt(e) {
454
- return Y(e) ? e.bandwidth() : Math.max(...e.range()) / Math.max(...e.domain());
492
+ function At(e) {
493
+ return U(e) ? e.bandwidth() : Math.max(...e.range()) / Math.max(...e.domain());
455
494
  }
456
- const we = (e, t) => {
495
+ const De = (e, t) => {
457
496
  if (!e)
458
497
  throw new Error("Data is not a valid array");
459
498
  if (e.length === 0)
@@ -463,12 +502,12 @@ const we = (e, t) => {
463
502
  throw new Error("Index exceeds length of at least one of the datasets");
464
503
  });
465
504
  };
466
- function Ft(e, t) {
505
+ function Vt(e, t) {
467
506
  var n;
468
- return we(e, t), ((n = e.reduce(
507
+ return De(e, t), ((n = e.reduce(
469
508
  (r, a) => {
470
- var o, l, u, s;
471
- return ((l = (o = r.values[t]) == null ? void 0 : o.value) != null ? l : 0) > ((s = (u = a.values[t]) == null ? void 0 : u.value) != null ? s : 0) ? r : a;
509
+ var o, i, u, s;
510
+ return ((i = (o = r.values[t]) == null ? void 0 : o.value) != null ? i : 0) > ((s = (u = a.values[t]) == null ? void 0 : u.value) != null ? s : 0) ? r : a;
472
511
  }
473
512
  ).values[t]) == null ? void 0 : n.value) || 0;
474
513
  }
@@ -482,20 +521,20 @@ function ot(e) {
482
521
  );
483
522
  return Array(n).fill(null);
484
523
  }
485
- function Ce(e) {
486
- return Y(e) ? e.domain().length : Math.max(...e.domain());
524
+ function Ee(e) {
525
+ return U(e) ? e.domain().length : Math.max(...e.domain());
487
526
  }
488
- function Ie(e, t) {
527
+ function Pe(e, t) {
489
528
  return (n) => Math.round(e * (1 - n) + t * n);
490
529
  }
491
530
  function E(e) {
492
531
  var t;
493
532
  return typeof e == "string" || typeof e == "number" ? e : (t = e.id) != null ? t : e.label;
494
533
  }
495
- function Gt(e, t) {
534
+ function zt(e, t) {
496
535
  return t.length && t.indexOf(e) === -1;
497
536
  }
498
- function Ne(e, t, n) {
537
+ function Be(e, t, n) {
499
538
  const r = n ? e.length - t : t, a = e.slice(0, r);
500
539
  return e.slice(r).concat(a);
501
540
  }
@@ -509,104 +548,166 @@ function q(e) {
509
548
  }
510
549
  return e;
511
550
  }
512
- const ut = () => ({
551
+ const Me = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
552
+ (t, n) => t += (n &= 63) < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n > 62 ? "-" : "_",
553
+ ""
554
+ );
555
+ var ut = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
556
+ Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(ut || {});
557
+ const He = "[lume] ";
558
+ function Ot(e, t = !0) {
559
+ t && Ne() || console.warn(He + "Warning: " + e);
560
+ }
561
+ const je = W.Categorical, Fe = M.Skyblue, Ge = yt.SkyTeal;
562
+ function Ve(e) {
563
+ return e === W.Divergent ? Ge : Fe;
564
+ }
565
+ function ze(e) {
566
+ return Object.values(bt).includes(e);
567
+ }
568
+ function Lt(e, t) {
569
+ return t === W.Divergent ? Object.values(yt).includes(e) : Object.values({ ...M, ...bt }).includes(
570
+ e
571
+ );
572
+ }
573
+ function We(e, t) {
574
+ const n = Object.values(M).indexOf(e);
575
+ return Be(Object.values(M), n)[t];
576
+ }
577
+ function Ze(e, t) {
578
+ const n = 50 + t * 10;
579
+ return `${e}-${n}`;
580
+ }
581
+ function qe(e, t) {
582
+ const n = (t + 1) * 10;
583
+ return `${e}-${n}`;
584
+ }
585
+ function ht(e, t, n) {
586
+ switch (t) {
587
+ default:
588
+ case W.Categorical:
589
+ return ze(e) ? e : We(e, n);
590
+ case W.Sequential:
591
+ return Ze(e, n);
592
+ case W.Divergent:
593
+ return qe(e, n);
594
+ }
595
+ }
596
+ function Xe(e, t, n = je, r) {
597
+ return Lt(e, n) ? ht(e, n, r) : (r > 4 && (Ot(ut.ColorLoop), r = r % 5), Lt(t, n) ? ht(t, n, r) : ht(Ve(n), n, r));
598
+ }
599
+ function Ue(e) {
600
+ return e.map((t) => Re(t) ? t : { value: t });
601
+ }
602
+ function Ye(e) {
603
+ return e.__internal === !0;
604
+ }
605
+ const Wt = (e = null) => ({
606
+ data: {
607
+ type: Array,
608
+ required: !0,
609
+ validator: e || void 0
610
+ },
611
+ labels: {
612
+ type: Array,
613
+ default: void 0
614
+ },
615
+ color: {
616
+ type: String,
617
+ default: M.Skyblue
618
+ }
619
+ });
620
+ function ct(e, t, n, r, a) {
621
+ const o = it({
622
+ width: 0,
623
+ height: 0
624
+ }), i = Me(12), u = f(() => {
625
+ var h;
626
+ return e.value.length > 5 && Ot(ut.DatasetLength), (h = e.value) == null ? void 0 : h.map(
627
+ (l, v) => {
628
+ if (Ye(l))
629
+ return l;
630
+ const p = Ue(l.values), d = Xe(
631
+ l.color,
632
+ n == null ? void 0 : n.value,
633
+ r == null ? void 0 : r.value.colorPalette,
634
+ v
635
+ );
636
+ return {
637
+ ...l,
638
+ values: p,
639
+ color: d,
640
+ __internal: !0
641
+ };
642
+ }
643
+ );
644
+ }), s = f(() => Array.isArray(t.value) ? t.value : ot(e.value).map((h, l) => l));
645
+ function c(h) {
646
+ const l = (a == null ? void 0 : a.value) === A.HORIZONTAL ? ot(e).length * (Le * 2) : h.height;
647
+ N.set(o, "width", h.width), N.set(o, "height", l);
648
+ }
649
+ return {
650
+ chartID: i,
651
+ computedLabels: s,
652
+ containerSize: o,
653
+ internalData: u,
654
+ updateSize: c
655
+ };
656
+ }
657
+ const dt = () => ({
513
658
  options: {
514
659
  type: Object,
515
660
  default: () => ({})
516
661
  }
517
662
  });
518
- function M(e, t) {
519
- return { allOptions: v(() => {
663
+ function F(e, t) {
664
+ return { allOptions: f(() => {
520
665
  const r = Et(t) ? t == null ? void 0 : t.value : t;
521
- return r ? jt(r, e.value) : e.value;
666
+ return r ? Gt(r, e.value) : e.value;
522
667
  }) };
523
668
  }
524
- const Re = 0.15;
525
- function De(e, t, n) {
526
- const r = k(), a = v(() => Math.max(...e.value.range())), o = v(() => t.value.length);
527
- function l() {
669
+ const Ke = 0.15;
670
+ function Je(e, t, n) {
671
+ const r = k(), a = f(() => Math.max(...e.value.range())), o = f(() => t.value.length);
672
+ function i() {
528
673
  if (!t.value)
529
674
  return;
530
675
  const s = t.value.reduce(
531
- (f, c) => f + c.getBoundingClientRect().width,
676
+ (h, l) => h + l.getBoundingClientRect().width,
532
677
  0
533
- ), i = Math.ceil(s / o.value);
534
- r.value = i + i * Re;
678
+ ), c = Math.ceil(s / o.value);
679
+ r.value = c + c * Ke;
535
680
  }
536
681
  function u(s) {
537
682
  if (!t.value)
538
683
  return !0;
539
- const i = t.value.length;
684
+ const c = t.value.length;
540
685
  if (s === 0)
541
686
  return !0;
542
- const f = a.value / i, c = typeof n == "number" && n > 0 && n + 1 || Math.ceil(r.value / f);
543
- return s % c === 0;
544
- }
545
- return I(t, l), { showTick: u };
546
- }
547
- var H = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(H || {}), yt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(bt || {});
548
- const A = {
549
- HORIZONTAL: "horizontal",
550
- VERTICAL: "vertical"
551
- }, Ee = {
552
- SINGLE: "single",
553
- GROUPED: "grouped",
554
- STACKED: "stacked"
555
- }, Z = {
556
- VERTICAL: {
557
- top: 16,
558
- right: 0,
559
- bottom: 28,
560
- left: 24
561
- },
562
- HORIZONTAL: {
563
- top: 16,
564
- right: 0,
565
- bottom: 28,
566
- left: 24
687
+ const h = a.value / c, l = typeof n == "number" && n > 0 && n + 1 || Math.ceil(r.value / h);
688
+ return s % l === 0;
567
689
  }
568
- }, Vt = "No data", Pe = 20, Be = 0.33, Me = 0.5, He = 1, xt = [
569
- "auto",
570
- "auto-start",
571
- "auto-end",
572
- "top",
573
- "top-start",
574
- "top-end",
575
- "right",
576
- "right-start",
577
- "right-end",
578
- "bottom",
579
- "bottom-start",
580
- "bottom-end",
581
- "left",
582
- "left-start",
583
- "left-end"
584
- ];
585
- var ct = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
586
- Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(ct || {});
587
- const je = "[lume] ";
588
- function At(e, t = !0) {
589
- t && Se() || console.warn(je + "Warning: " + e);
690
+ return I(t, i), { showTick: u };
590
691
  }
591
- function dt(e) {
592
- e != null && e.closest("svg") || At(ct.NotContainedInSvg);
692
+ function ft(e) {
693
+ e != null && e.closest("svg") || Ot(ut.NotContainedInSvg);
593
694
  }
594
- const zt = {
695
+ const Zt = {
595
696
  gridLines: !1,
596
697
  withTitle: !0,
597
698
  showTicks: !0,
598
699
  tickCount: 10,
599
700
  tickFormat: null,
600
701
  tickPadding: 8
601
- }, Fe = {
602
- ...zt,
702
+ }, Qe = {
703
+ ...Zt,
603
704
  withTitle: !1,
604
705
  skip: !0
605
- }, Ge = {
606
- ...zt,
706
+ }, tn = {
707
+ ...Zt,
607
708
  gridLines: !0
608
- }, Ve = 12, ze = 8, We = function(e, t, n) {
609
- const r = v(() => e.value.step() * e.value.paddingInner() / 2);
709
+ }, en = 12, nn = 8, rn = function(e, t, n) {
710
+ const r = f(() => e.value.step() * e.value.paddingInner() / 2);
610
711
  function a(s) {
611
712
  return {
612
713
  transform: `translate(${e.value(s) - r.value}, 0)`
@@ -616,10 +717,10 @@ const zt = {
616
717
  return {
617
718
  x: -8,
618
719
  width: e.value.step() + 16,
619
- height: n.value.tickPadding + Ve + ze
720
+ height: n.value.tickPadding + en + nn
620
721
  };
621
722
  }
622
- function l() {
723
+ function i() {
623
724
  const s = e.value.step() / 2;
624
725
  return {
625
726
  x1: s,
@@ -636,13 +737,13 @@ const zt = {
636
737
  };
637
738
  }
638
739
  return {
639
- getGridLinesAttributes: l,
740
+ getGridLinesAttributes: i,
640
741
  getTickGhostAttributes: o,
641
742
  getTickGroupAttributes: a,
642
743
  getTickLabelAttributes: u
643
744
  };
644
- }, Ze = function(e, t, n) {
645
- const r = v(() => e.value.step() * e.value.paddingInner() / 2);
745
+ }, an = function(e, t, n) {
746
+ const r = f(() => e.value.step() * e.value.paddingInner() / 2);
646
747
  function a(s) {
647
748
  return {
648
749
  transform: `translate(0, ${e.value(s) - r.value})`
@@ -655,7 +756,7 @@ const zt = {
655
756
  height: e.value.step()
656
757
  };
657
758
  }
658
- function l() {
759
+ function i() {
659
760
  const s = e.value.step() / 2;
660
761
  return {
661
762
  y1: s,
@@ -672,12 +773,12 @@ const zt = {
672
773
  };
673
774
  }
674
775
  return {
675
- getGridLinesAttributes: l,
776
+ getGridLinesAttributes: i,
676
777
  getTickGhostAttributes: o,
677
778
  getTickGroupAttributes: a,
678
779
  getTickLabelAttributes: u
679
780
  };
680
- }, qe = function(e, t, n) {
781
+ }, on = function(e, t, n) {
681
782
  function r(u) {
682
783
  return {
683
784
  transform: `translate(${e.value(u)}, 0)`
@@ -691,7 +792,7 @@ const zt = {
691
792
  y1: -t.value.height
692
793
  };
693
794
  }
694
- function l() {
795
+ function i() {
695
796
  return {
696
797
  y: n.value.tickPadding,
697
798
  dy: "0.8em",
@@ -702,9 +803,9 @@ const zt = {
702
803
  getGridLinesAttributes: o,
703
804
  getTickGhostAttributes: a,
704
805
  getTickGroupAttributes: r,
705
- getTickLabelAttributes: l
806
+ getTickLabelAttributes: i
706
807
  };
707
- }, Xe = function(e, t, n) {
808
+ }, sn = function(e, t, n) {
708
809
  function r(u) {
709
810
  return {
710
811
  transform: `translate(0, ${e.value(u)})`
@@ -718,7 +819,7 @@ const zt = {
718
819
  x1: t.value.width
719
820
  };
720
821
  }
721
- function l() {
822
+ function i() {
722
823
  return {
723
824
  x: -n.value.tickPadding,
724
825
  dy: "0.4em",
@@ -729,21 +830,21 @@ const zt = {
729
830
  getGridLinesAttributes: o,
730
831
  getTickGhostAttributes: a,
731
832
  getTickGroupAttributes: r,
732
- getTickLabelAttributes: l
833
+ getTickLabelAttributes: i
733
834
  };
734
- }, Ye = {
735
- "x-band-scale-axis": We,
736
- "y-band-scale-axis": Ze,
737
- "x-linear-scale-axis": qe,
738
- "y-linear-scale-axis": Xe
739
- }, Ue = {
835
+ }, ln = {
836
+ "x-band-scale-axis": rn,
837
+ "y-band-scale-axis": an,
838
+ "x-linear-scale-axis": on,
839
+ "y-linear-scale-axis": sn
840
+ }, un = {
740
841
  bandScale: "band-scale-axis",
741
842
  linearScale: "linear-scale-axis"
742
- }, Ke = ["bottom", "left"], Lt = {
843
+ }, cn = ["bottom", "left"], wt = {
743
844
  x: "bottom",
744
845
  y: "left"
745
- }, Je = S({
746
- components: { VuePortal: Mt },
846
+ }, dn = S({
847
+ components: { VuePortal: Mt, VuePortalTarget: Ht },
747
848
  props: {
748
849
  scale: {
749
850
  type: Function,
@@ -752,12 +853,12 @@ const zt = {
752
853
  type: {
753
854
  type: String,
754
855
  default: void 0,
755
- validator: (e) => e in Lt
856
+ validator: (e) => e in wt
756
857
  },
757
858
  position: {
758
859
  type: String,
759
860
  default: void 0,
760
- validator: (e) => Ke.includes(e)
861
+ validator: (e) => cn.includes(e)
761
862
  },
762
863
  containerSize: {
763
864
  type: Object,
@@ -771,132 +872,133 @@ const zt = {
771
872
  type: String,
772
873
  default: A.VERTICAL
773
874
  },
774
- ...ut()
875
+ ...dt()
775
876
  },
776
877
  setup(e, t) {
777
- const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation: l } = w(e), u = it({}), s = k(null), i = k(!1), f = k(null), c = v(
778
- () => e.type ? Lt[e.type] : e.position
779
- ), p = v(
780
- () => e.type || (c.value === "left" ? "y" : "x")
781
- ), h = v(
782
- () => p.value === "x" && l.value === A.VERTICAL || p.value === "y" && l.value === A.HORIZONTAL
783
- ), { allOptions: d } = M(
878
+ const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation: i } = C(e), u = it({}), s = k(null), c = k(!1), h = k(null), { chartID: l } = ct(), v = f(
879
+ () => e.type ? wt[e.type] : e.position
880
+ ), p = f(
881
+ () => e.type || (v.value === "left" ? "y" : "x")
882
+ ), d = f(
883
+ () => p.value === "x" && i.value === A.VERTICAL || p.value === "y" && i.value === A.HORIZONTAL
884
+ ), { allOptions: _ } = F(
784
885
  o,
785
- p.value === "x" ? Fe : Ge
786
- ), { showTick: _ } = De(n, s, d.value.skip), b = v(
886
+ p.value === "x" ? Qe : tn
887
+ ), { showTick: b } = Je(n, s, _.value.skip), m = f(
787
888
  () => {
788
- var T;
789
- return `translate(0, ${p.value === "x" ? (T = r.value) == null ? void 0 : T.height : 0})`;
889
+ var $;
890
+ return `translate(0, ${p.value === "x" ? ($ = r.value) == null ? void 0 : $.height : 0})`;
790
891
  }
791
- ), m = v(() => {
892
+ ), g = f(() => {
792
893
  if (n.value.step)
793
894
  return n.value.domain();
794
- const { tickCount: T } = d.value, [C, B] = n.value.domain();
795
- return ie(C, B, T);
796
- }), g = v(() => {
797
- const { tickFormat: T } = d.value;
798
- let C = null;
799
- switch (typeof T) {
895
+ const { tickCount: $ } = _.value, [w, H] = n.value.domain();
896
+ return le(w, H, $);
897
+ }), y = f(() => {
898
+ const { tickFormat: $ } = _.value;
899
+ let w = null;
900
+ switch (typeof $) {
800
901
  case "string":
801
- return C = le(T), C;
902
+ return w = ue($), w;
802
903
  case "function":
803
- return T;
904
+ return $;
804
905
  default:
805
906
  return null;
806
907
  }
807
908
  });
808
- function y(T) {
809
- const { showTicks: C } = d.value;
810
- return C === !1 ? "" : g.value ? g.value(T) : T;
909
+ function x($) {
910
+ const { showTicks: w } = _.value;
911
+ return w === !1 ? "" : y.value ? y.value($) : $;
811
912
  }
812
- function x(T) {
813
- h.value && t.emit("tick-mouseover", T);
913
+ function T($) {
914
+ d.value && t.emit("tick-mouseover", $);
814
915
  }
815
- function $(T) {
816
- return d.value.withHover && h.value && a.value === T;
916
+ function R($) {
917
+ return _.value.withHover && d.value && a.value === $;
817
918
  }
818
- function R(T) {
819
- return `${p.value}-tick--${T}`;
919
+ function B($) {
920
+ return `${l}-${p.value}-tick--${$}`;
820
921
  }
821
922
  function D() {
822
- i.value = !0;
823
- const T = n.value.step ? "bandScale" : "linearScale", C = Ye[`${p.value}-${Ue[T]}`];
824
- Object.entries(C(n, r, d) || []).forEach(
825
- ([B, G]) => {
826
- u[B] = G;
923
+ c.value = !0;
924
+ const $ = n.value.step ? "bandScale" : "linearScale", w = ln[`${p.value}-${un[$]}`];
925
+ Object.entries(w(n, r, _) || []).forEach(
926
+ ([H, j]) => {
927
+ u[H] = j;
827
928
  }
828
- ), i.value = !1;
929
+ ), c.value = !1;
829
930
  }
830
- return ne(async () => {
931
+ return re(async () => {
831
932
  D(), I(n, D, { flush: "sync" });
832
- }), j(() => dt(f.value)), {
833
- allOptions: d,
834
- axisTransform: b,
835
- computedPosition: c,
933
+ }), G(() => ft(h.value)), {
934
+ allOptions: _,
935
+ axisTransform: m,
936
+ chartID: l,
937
+ computedPosition: v,
836
938
  computedType: p,
837
- formatTick: y,
838
- getTickId: R,
839
- isHovering: $,
840
- isLoading: i,
939
+ formatTick: x,
940
+ getTickId: B,
941
+ isHovering: R,
942
+ isLoading: c,
841
943
  mixins: u,
842
- onTickMouseover: x,
843
- root: f,
844
- shouldHover: h,
845
- showTick: _,
944
+ onTickMouseover: T,
945
+ root: h,
946
+ shouldHover: d,
947
+ showTick: b,
846
948
  tickRefs: s,
847
- ticks: m
949
+ ticks: g
848
950
  };
849
951
  }
850
952
  });
851
- function L(e, t, n, r, a, o, l, u) {
953
+ function L(e, t, n, r, a, o, i, u) {
852
954
  var s = typeof e == "function" ? e.options : e;
853
955
  t && (s.render = t, s.staticRenderFns = n, s._compiled = !0), r && (s.functional = !0), o && (s._scopeId = "data-v-" + o);
854
- var i;
855
- if (l ? (i = function(p) {
856
- p = p || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !p && typeof __VUE_SSR_CONTEXT__ < "u" && (p = __VUE_SSR_CONTEXT__), a && a.call(this, p), p && p._registeredComponents && p._registeredComponents.add(l);
857
- }, s._ssrRegister = i) : a && (i = u ? function() {
956
+ var c;
957
+ if (i ? (c = function(v) {
958
+ v = v || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !v && typeof __VUE_SSR_CONTEXT__ < "u" && (v = __VUE_SSR_CONTEXT__), a && a.call(this, v), v && v._registeredComponents && v._registeredComponents.add(i);
959
+ }, s._ssrRegister = c) : a && (c = u ? function() {
858
960
  a.call(
859
961
  this,
860
962
  (s.functional ? this.parent : this).$root.$options.shadowRoot
861
963
  );
862
- } : a), i)
964
+ } : a), c)
863
965
  if (s.functional) {
864
- s._injectStyles = i;
865
- var f = s.render;
866
- s.render = function(h, d) {
867
- return i.call(d), f(h, d);
966
+ s._injectStyles = c;
967
+ var h = s.render;
968
+ s.render = function(p, d) {
969
+ return c.call(d), h(p, d);
868
970
  };
869
971
  } else {
870
- var c = s.beforeCreate;
871
- s.beforeCreate = c ? [].concat(c, i) : [i];
972
+ var l = s.beforeCreate;
973
+ s.beforeCreate = l ? [].concat(l, c) : [c];
872
974
  }
873
975
  return {
874
976
  exports: e,
875
977
  options: s
876
978
  };
877
979
  }
878
- var Qe = function() {
980
+ var fn = function() {
879
981
  var t = this, n = t._self._c;
880
- return t._self._setupProxy, t.scale && !t.isLoading ? n("g", { ref: "root", staticClass: "axis", attrs: { transform: t.axisTransform, "data-j-axis": "" } }, [n("defs", [n("linearGradient", { attrs: { id: `${t.computedType}-gradient` } }, [n("stop", { attrs: { offset: "0%", "stop-color": "rgba(255,255,255,0)" } }), n("stop", { attrs: { offset: "10%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "90%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "100%", "stop-color": "rgba(255,255,255,0)" } })], 1)], 1), t._l(t.ticks, function(r, a) {
881
- return n("vue-portal", { key: r, attrs: { disabled: !t.isHovering(a), selector: `#${t.computedType}-hovered-portal` } }, [n("g", t._b({ staticClass: "axis__tick", class: {
982
+ return t._self._setupProxy, t.scale && !t.isLoading ? n("g", { ref: "root", staticClass: "axis", attrs: { transform: t.axisTransform, "data-j-axis": "" } }, [t.computedType === "x" ? n("defs", [n("linearGradient", { attrs: { id: "lume-tick-gradient" } }, [n("stop", { attrs: { offset: "0%", "stop-color": "rgba(255,255,255,0)" } }), n("stop", { attrs: { offset: "10%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "90%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "100%", "stop-color": "rgba(255,255,255,0)" } })], 1)], 1) : t._e(), t._l(t.ticks, function(r, a) {
983
+ return n("vue-portal", { key: r, attrs: { slim: "", disabled: !t.isHovering(a), to: `${t.chartID}-${t.computedType}-hovered-portal` } }, [n("g", t._b({ staticClass: "axis__tick", class: {
882
984
  "axis__tick--hovered": t.isHovering(a),
883
985
  "axis__tick--hidden": t.allOptions.skip && !t.showTick(a)
884
986
  }, attrs: { id: t.getTickId(a), "data-j-axis__tick": "" } }, "g", t.mixins.getTickGroupAttributes(r), !1), [n("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" }, on: { mouseover: function(o) {
885
987
  return t.onTickMouseover(a);
886
- } } }, [n("rect", t._b({ staticClass: "axis__ghost", attrs: { fill: `url(#${`${t.computedType}-gradient`})` } }, "rect", t.mixins.getTickGhostAttributes(), !1)), n("text", t._b({ ref: "tickRefs", refInFor: !0, staticClass: "axis__label" }, "text", t.mixins.getTickLabelAttributes(), !1), [t._v(" " + t._s(t.formatTick(r)) + " ")])]), t.allOptions.gridLines ? n("line", t._b({ staticClass: "axis__grid-line" }, "line", t.mixins.getGridLinesAttributes(), !1)) : t._e()])]);
887
- }), n("g", { attrs: { id: `${t.computedType}-hovered-portal` } })], 2) : t._e();
888
- }, tn = [], en = /* @__PURE__ */ L(
889
- Je,
890
- Qe,
891
- tn,
988
+ } } }, [n("rect", t._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", t.mixins.getTickGhostAttributes(), !1)), n("text", t._b({ ref: "tickRefs", refInFor: !0, staticClass: "axis__label" }, "text", t.mixins.getTickLabelAttributes(), !1), [t._v(" " + t._s(t.formatTick(r)) + " ")])]), t.allOptions.gridLines ? n("line", t._b({ staticClass: "axis__grid-line" }, "line", t.mixins.getGridLinesAttributes(), !1)) : t._e()])]);
989
+ }), n("vue-portal-target", { attrs: { name: `${t.chartID}-${t.computedType}-hovered-portal`, slim: "" } })], 2) : t._e();
990
+ }, pn = [], vn = /* @__PURE__ */ L(
991
+ dn,
992
+ fn,
993
+ pn,
892
994
  !1,
893
995
  null,
894
- "cfc45ce1",
996
+ "8632ddd8",
895
997
  null,
896
998
  null
897
999
  );
898
- const nn = en.exports;
899
- function rn() {
1000
+ const hn = vn.exports;
1001
+ function _n() {
900
1002
  const e = k(), t = it({
901
1003
  dimensions: {}
902
1004
  }), n = new ResizeObserver((r) => {
@@ -904,18 +1006,18 @@ function rn() {
904
1006
  t.dimensions = a.contentRect;
905
1007
  });
906
1008
  });
907
- return j(() => {
1009
+ return G(() => {
908
1010
  n.observe(e.value);
909
- }), mt(() => {
1011
+ }), gt(() => {
910
1012
  n.unobserve(e.value);
911
1013
  }), { resizeState: t, resizeRef: e };
912
1014
  }
913
- const an = {
1015
+ const mn = {
914
1016
  left: 0,
915
1017
  right: 0,
916
1018
  top: 0,
917
1019
  bottom: 0
918
- }, on = S({
1020
+ }, gn = S({
919
1021
  props: {
920
1022
  margins: {
921
1023
  type: Object,
@@ -935,29 +1037,29 @@ const an = {
935
1037
  }
936
1038
  },
937
1039
  setup(e, t) {
938
- const { margins: n, containerSize: r } = w(e), a = k(null), { resizeRef: o, resizeState: l } = rn(), u = v(() => ({
939
- ...an,
1040
+ const { margins: n, containerSize: r } = C(e), a = k(null), { resizeRef: o, resizeState: i } = _n(), u = f(() => ({
1041
+ ...mn,
940
1042
  ...n.value
941
- })), s = v(
1043
+ })), s = f(
942
1044
  () => r.value.height + u.value.top + u.value.bottom
943
1045
  );
944
1046
  return Pt(() => {
945
1047
  if (!a.value)
946
1048
  return;
947
- const { width: i } = l.dimensions, { height: f } = a.value.getBoundingClientRect();
948
- if (!i || !f)
1049
+ const { width: c } = i.dimensions, { height: h } = a.value.getBoundingClientRect();
1050
+ if (!c || !h)
949
1051
  return;
950
- const c = i - u.value.left - u.value.right, p = f - u.value.top - u.value.bottom, h = {
951
- width: c > 0 ? c : 0,
952
- height: p > 0 ? p : 0,
953
- outerWidth: i,
954
- outerHeight: f
1052
+ const l = c - u.value.left - u.value.right, v = h - u.value.top - u.value.bottom, p = {
1053
+ width: l > 0 ? l : 0,
1054
+ height: v > 0 ? v : 0,
1055
+ outerWidth: c,
1056
+ outerHeight: h
955
1057
  };
956
- t.emit("resize", h);
1058
+ t.emit("resize", p);
957
1059
  }), { computedMargins: u, resizeRef: o, root: a, svgHeight: s };
958
1060
  }
959
1061
  });
960
- var sn = function() {
1062
+ var yn = function() {
961
1063
  var t = this, n = t._self._c;
962
1064
  return t._self._setupProxy, n("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
963
1065
  "lume-chart-container--minimum": !t.noMinSize
@@ -966,17 +1068,17 @@ var sn = function() {
966
1068
  }, attrs: { height: t.svgHeight, "data-j-chart-container__root": "" }, on: { mouseleave: function(r) {
967
1069
  return t.$emit("mouseleave", r);
968
1070
  } } }, [n("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${t.computedMargins.left}, ${t.computedMargins.top})`, "data-j-chart-container__group": "" } }, [t._t("default")], 2)]), t._t("footer"), t._t("extra")], 2);
969
- }, ln = [], un = /* @__PURE__ */ L(
970
- on,
971
- sn,
972
- ln,
1071
+ }, bn = [], xn = /* @__PURE__ */ L(
1072
+ gn,
1073
+ yn,
1074
+ bn,
973
1075
  !1,
974
1076
  null,
975
1077
  "7aa5be81",
976
1078
  null,
977
1079
  null
978
1080
  );
979
- const cn = un.exports, dn = S({
1081
+ const An = xn.exports, On = S({
980
1082
  props: {
981
1083
  data: {
982
1084
  type: Array,
@@ -985,24 +1087,24 @@ const cn = un.exports, dn = S({
985
1087
  }
986
1088
  }
987
1089
  });
988
- var fn = function() {
1090
+ var Tn = function() {
989
1091
  var t = this, n = t._self._c;
990
1092
  return t._self._setupProxy, n("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" } }, t._l(t.data, function(r, a) {
991
1093
  return n("div", { key: `legend-item-${a}`, staticClass: "lume-chart-legend__item lume-typography--body", attrs: { tabindex: "0", "data-j-chart-legend__symbol-wrapper": "" }, on: { click: function(o) {
992
1094
  return t.$emit("click", a);
993
1095
  } } }, [n("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${r.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), t._v(" " + t._s(r.label) + " ")]);
994
1096
  }), 0);
995
- }, pn = [], vn = /* @__PURE__ */ L(
996
- dn,
997
- fn,
998
- pn,
1097
+ }, $n = [], kn = /* @__PURE__ */ L(
1098
+ On,
1099
+ Tn,
1100
+ $n,
999
1101
  !1,
1000
1102
  null,
1001
1103
  "22aa3668",
1002
1104
  null,
1003
1105
  null
1004
1106
  );
1005
- const hn = vn.exports, _n = S({
1107
+ const Sn = kn.exports, Ln = S({
1006
1108
  props: {
1007
1109
  targetElement: {
1008
1110
  type: Element,
@@ -1029,17 +1131,17 @@ const hn = vn.exports, _n = S({
1029
1131
  type: [String, Number],
1030
1132
  default: null
1031
1133
  },
1032
- ...ut()
1134
+ ...dt()
1033
1135
  },
1034
1136
  setup(e) {
1035
- const t = k(null), { options: n } = w(e), r = k(null), { allOptions: a } = M(n), o = v(
1137
+ const t = k(null), { options: n } = C(e), r = k(null), { allOptions: a } = F(n), o = f(
1036
1138
  () => {
1037
- var p;
1038
- return (p = a.value.fixedPositioning) != null ? p : e.fixedPositioning;
1139
+ var v;
1140
+ return (v = a.value.fixedPositioning) != null ? v : e.fixedPositioning;
1039
1141
  }
1040
- ), l = v(
1142
+ ), i = f(
1041
1143
  () => o.value ? "fixed" : "absolute"
1042
- ), u = v(() => [
1144
+ ), u = f(() => [
1043
1145
  {
1044
1146
  name: "computeStyles",
1045
1147
  options: {
@@ -1051,62 +1153,62 @@ const hn = vn.exports, _n = S({
1051
1153
  options: { offset: [0, a.value.offset || 8] }
1052
1154
  },
1053
1155
  ...e.modifiers || []
1054
- ]), s = v(
1156
+ ]), s = f(
1055
1157
  () => a.value.showTitle !== !1 && e.title != null
1056
1158
  );
1057
- function i() {
1058
- e.targetElement && t.value && (r.value = de(e.targetElement, t.value, {
1159
+ function c() {
1160
+ e.targetElement && t.value && (r.value = fe(e.targetElement, t.value, {
1059
1161
  placement: e.position,
1060
- strategy: l.value,
1162
+ strategy: i.value,
1061
1163
  modifiers: u.value
1062
1164
  }));
1063
1165
  }
1064
- function f() {
1166
+ function h() {
1065
1167
  r.value && r.value.destroy();
1066
1168
  }
1067
- function c() {
1169
+ function l() {
1068
1170
  !r.value || (t.value.classList.add("lume-tooltip--animated"), e.targetElement ? function() {
1069
1171
  r.value.state.elements.reference = e.targetElement, r.value.update();
1070
- }() : f());
1172
+ }() : h());
1071
1173
  }
1072
- return I(() => e.targetElement, c), j(i), mt(f), { allModifiers: u, allOptions: a, popper: r, root: t, showTitle: s, strategy: l };
1174
+ return I(() => e.targetElement, l), G(c), gt(h), { allModifiers: u, allOptions: a, popper: r, root: t, showTitle: s, strategy: i };
1073
1175
  }
1074
1176
  });
1075
- var mn = function() {
1177
+ var wn = function() {
1076
1178
  var t = this, n = t._self._c;
1077
1179
  return t._self._setupProxy, n("div", { ref: "root", staticClass: "lume-tooltip lume-typography--caption", attrs: { "data-j-tooltip": "" } }, [t._t("default", function() {
1078
1180
  return [t.showTitle ? n("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("ul", { staticClass: "lume-tooltip__items" }, t._l(t.items, function(r) {
1079
1181
  return n("li", { key: r.label, staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [n("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${r.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }), n("span", { attrs: { "data-j-tooltip__item__label": "" } }, [t._v(" " + t._s(r.label) + " ")]), n("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [t._v(" " + t._s(r.value) + " ")])]);
1080
1182
  }), 0)];
1081
1183
  })], 2);
1082
- }, gn = [], yn = /* @__PURE__ */ L(
1083
- _n,
1084
- mn,
1085
- gn,
1184
+ }, Cn = [], In = /* @__PURE__ */ L(
1185
+ Ln,
1186
+ wn,
1187
+ Cn,
1086
1188
  !1,
1087
1189
  null,
1088
1190
  "8b7fb1cb",
1089
1191
  null,
1090
1192
  null
1091
1193
  );
1092
- const bn = yn.exports;
1093
- function xn(e, t, n, r) {
1094
- const a = v(() => n.value > 0 && n.value < 1), o = v(
1194
+ const Nn = In.exports;
1195
+ function Rn(e, t, n, r) {
1196
+ const a = f(() => n.value > 0 && n.value < 1), o = f(
1095
1197
  () => r.value > 0 && r.value < 1
1096
- ), l = v(
1198
+ ), i = f(
1097
1199
  () => a.value ? e.value - 0.5 : e.value
1098
- ), u = v(
1200
+ ), u = f(
1099
1201
  () => o.value ? t.value - 0.5 : t.value
1100
1202
  );
1101
- return { computedX: l, computedY: u, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
1203
+ return { computedX: i, computedY: u, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
1102
1204
  }
1103
- function An(e, t, n, r) {
1104
- const a = k(0), o = k(0), l = v(() => `${e.value + n.value / 2}px ${t.value + r.value / 2}px`);
1105
- return j(() => {
1205
+ function Dn(e, t, n, r) {
1206
+ const a = k(0), o = k(0), i = f(() => `${e.value + n.value / 2}px ${t.value + r.value / 2}px`);
1207
+ return G(() => {
1106
1208
  a.value = n.value, o.value = r.value;
1107
- }), I(n, (u) => a.value = u), I(r, (u) => o.value = u), { computedWidth: a, computedHeight: o, transformOrigin: l };
1209
+ }), I(n, (u) => a.value = u), I(r, (u) => o.value = u), { computedWidth: a, computedHeight: o, transformOrigin: i };
1108
1210
  }
1109
- const On = S({
1211
+ const En = S({
1110
1212
  props: {
1111
1213
  x: {
1112
1214
  type: Number,
@@ -1142,25 +1244,25 @@ const On = S({
1142
1244
  }
1143
1245
  },
1144
1246
  setup(e) {
1145
- const { x: t, y: n, width: r, height: a, transition: o, classList: l } = w(e), u = k(null), s = v(
1146
- () => typeof l.value == "string" ? [l.value] : l.value
1147
- ), i = v(() => o.value === "width"), f = v(
1247
+ const { x: t, y: n, width: r, height: a, transition: o, classList: i } = C(e), u = k(null), s = f(
1248
+ () => typeof i.value == "string" ? [i.value] : i.value
1249
+ ), c = f(() => o.value === "width"), h = f(
1148
1250
  () => o.value === "height"
1149
- ), c = An(t, n, r, a), { computedX: p, computedY: h, shouldHaveMinWidth: d, shouldHaveMinHeight: _ } = xn(t, n, r, a), b = v(() => d.value ? 1 : (i.value ? c.computedWidth : r).value), m = v(() => _.value ? 1 : (f.value ? c.computedHeight : a).value), g = i.value || f.value ? c.transformOrigin : null;
1150
- return j(() => dt(u.value)), {
1251
+ ), l = Dn(t, n, r, a), { computedX: v, computedY: p, shouldHaveMinWidth: d, shouldHaveMinHeight: _ } = Rn(t, n, r, a), b = f(() => d.value ? 1 : (c.value ? l.computedWidth : r).value), m = f(() => _.value ? 1 : (h.value ? l.computedHeight : a).value), g = c.value || h.value ? l.transformOrigin : null;
1252
+ return G(() => ft(u.value)), {
1151
1253
  computedClasses: s,
1152
1254
  computedWidth: b,
1153
1255
  computedHeight: m,
1154
- computedX: p,
1155
- computedY: h,
1256
+ computedX: v,
1257
+ computedY: p,
1156
1258
  root: u,
1157
- shouldTransitionWidth: i,
1158
- shouldTransitionHeight: f,
1259
+ shouldTransitionWidth: c,
1260
+ shouldTransitionHeight: h,
1159
1261
  transformOrigin: g
1160
1262
  };
1161
1263
  }
1162
1264
  });
1163
- var Tn = function() {
1265
+ var Pn = function() {
1164
1266
  var t = this, n = t._self._c;
1165
1267
  return t._self._setupProxy, n("rect", { ref: "root", staticClass: "lume-bar", class: [
1166
1268
  {
@@ -1171,26 +1273,30 @@ var Tn = function() {
1171
1273
  },
1172
1274
  ...t.computedClasses
1173
1275
  ], style: { transformOrigin: t.transformOrigin }, attrs: { x: t.computedX, y: t.computedY, width: t.computedWidth, height: t.computedHeight, "data-j-bar": "" } });
1174
- }, $n = [], kn = /* @__PURE__ */ L(
1175
- On,
1176
- Tn,
1177
- $n,
1276
+ }, Bn = [], Mn = /* @__PURE__ */ L(
1277
+ En,
1278
+ Pn,
1279
+ Bn,
1178
1280
  !1,
1179
1281
  null,
1180
1282
  "43471964",
1181
1283
  null,
1182
1284
  null
1183
1285
  );
1184
- const Ot = kn.exports, Sn = 1, Ln = S({
1286
+ const Tt = Mn.exports, Hn = 1, jn = 2, Fn = S({
1185
1287
  props: {
1186
1288
  color: {
1187
1289
  type: String,
1188
- default: "01"
1290
+ default: M.Skyblue
1189
1291
  },
1190
1292
  index: {
1191
1293
  type: Number,
1192
1294
  required: !0
1193
1295
  },
1296
+ width: {
1297
+ type: Number,
1298
+ default: jn
1299
+ },
1194
1300
  values: {
1195
1301
  type: Array,
1196
1302
  required: !0
@@ -1213,24 +1319,29 @@ const Ot = kn.exports, Sn = 1, Ln = S({
1213
1319
  }
1214
1320
  },
1215
1321
  setup(e) {
1216
- const t = k(null), n = v(
1217
- () => Sn / (Ce(e.xScale) - 1)
1218
- ), r = v(() => e.index < 2 ? 0 : e.transition && (e.index - 1) * n.value), a = v(() => gt(e.xScale) / 2);
1219
- function o(s, i) {
1322
+ const t = k(null), n = f(
1323
+ () => Hn / (Ee(e.xScale) - 1)
1324
+ ), r = f(() => e.index < 2 ? 0 : e.transition && (e.index - 1) * n.value), a = f(() => At(e.xScale) / 2);
1325
+ function o(s, c) {
1220
1326
  return e.xScale(
1221
- e.index + (i - 1)
1327
+ e.index + (c - 1)
1222
1328
  );
1223
1329
  }
1224
- function l(s, i) {
1330
+ function i(s, c) {
1225
1331
  return e.xScale(
1226
- e.xScale.domain()[e.index + (i - 1)]
1332
+ e.xScale.domain()[e.index + (c - 1)]
1227
1333
  ) + a.value;
1228
1334
  }
1229
- const u = v(() => ue().x(Y(e.xScale) ? l : o).y((i) => e.yScale(i))(e.values));
1230
- return j(() => dt(t.value)), { animationDelay: r, animationDuration: n, pathDefinition: u, root: t };
1335
+ const u = f(() => ce().x(U(e.xScale) ? i : o).y((c) => e.yScale(c))(e.values));
1336
+ return G(() => ft(t.value)), {
1337
+ animationDelay: r,
1338
+ animationDuration: n,
1339
+ pathDefinition: u,
1340
+ root: t
1341
+ };
1231
1342
  }
1232
1343
  });
1233
- var wn = function() {
1344
+ var Gn = function() {
1234
1345
  var t = this, n = t._self._c;
1235
1346
  return t._self._setupProxy, n("path", { ref: "root", staticClass: "lume-line", class: {
1236
1347
  [`lume-stroke--${t.color}`]: !0,
@@ -1239,26 +1350,26 @@ var wn = function() {
1239
1350
  }, style: {
1240
1351
  animationDelay: t.transition && t.animationDelay + "s",
1241
1352
  animationDuration: t.transition && t.animationDuration + "s"
1242
- }, attrs: { d: t.pathDefinition, "data-j-line": "" } });
1243
- }, Cn = [], In = /* @__PURE__ */ L(
1244
- Ln,
1245
- wn,
1246
- Cn,
1353
+ }, attrs: { d: t.pathDefinition, "stroke-width": t.width, "data-j-line": "" } });
1354
+ }, Vn = [], zn = /* @__PURE__ */ L(
1355
+ Fn,
1356
+ Gn,
1357
+ Vn,
1247
1358
  !1,
1248
1359
  null,
1249
- "338b2eda",
1360
+ "20ff656f",
1250
1361
  null,
1251
1362
  null
1252
1363
  );
1253
- const Nn = In.exports, Rn = S({
1364
+ const Wn = zn.exports, Zn = 4, qn = S({
1254
1365
  props: {
1255
1366
  color: {
1256
1367
  type: String,
1257
- default: "01"
1368
+ default: M.Skyblue
1258
1369
  },
1259
1370
  radius: {
1260
1371
  type: Number,
1261
- default: 4
1372
+ default: Zn
1262
1373
  },
1263
1374
  value: {
1264
1375
  type: Number,
@@ -1282,26 +1393,26 @@ const Nn = In.exports, Rn = S({
1282
1393
  }
1283
1394
  },
1284
1395
  setup(e) {
1285
- const t = k(null), n = v(() => gt(e.xScale) / 2), r = v(() => e.xScale.domain()), a = v(
1286
- () => Y(e.xScale) ? e.xScale(r.value[e.index]) + n.value : e.xScale(e.index)
1287
- ), o = v(() => e.yScale(e.value));
1288
- return j(() => dt(t.value)), { cx: a, cy: o, root: t };
1396
+ const t = k(null), n = f(() => At(e.xScale) / 2), r = f(() => e.xScale.domain()), a = f(
1397
+ () => U(e.xScale) ? e.xScale(r.value[e.index]) + n.value : e.xScale(e.index)
1398
+ ), o = f(() => e.yScale(e.value)), i = f(() => e.radius / 2);
1399
+ return G(() => ft(t.value)), { cx: a, cy: o, root: t, strokeWidth: i };
1289
1400
  }
1290
1401
  });
1291
- var Dn = function() {
1402
+ var Xn = function() {
1292
1403
  var t = this, n = t._self._c;
1293
- return t._self._setupProxy, n("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${t.color}`, attrs: { r: t.active ? t.radius : 0, cx: t.cx, cy: t.cy, "data-j-point": "" } });
1294
- }, En = [], Pn = /* @__PURE__ */ L(
1295
- Rn,
1296
- Dn,
1297
- En,
1404
+ return t._self._setupProxy, n("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${t.color}`, attrs: { cx: t.cx, cy: t.cy, r: t.active ? t.radius : 0, "stroke-width": t.strokeWidth, "data-j-point": "" } });
1405
+ }, Un = [], Yn = /* @__PURE__ */ L(
1406
+ qn,
1407
+ Xn,
1408
+ Un,
1298
1409
  !1,
1299
1410
  null,
1300
- "035cdf30",
1411
+ "d65961d4",
1301
1412
  null,
1302
1413
  null
1303
1414
  );
1304
- const Bn = Pn.exports, Tt = () => ({
1415
+ const Kn = Yn.exports, $t = () => ({
1305
1416
  data: {
1306
1417
  type: Array,
1307
1418
  required: !0
@@ -1326,150 +1437,53 @@ const Bn = Pn.exports, Tt = () => ({
1326
1437
  type: Object,
1327
1438
  default: () => ({})
1328
1439
  }
1329
- }), Mn = S({
1330
- components: { LumeBar: Ot },
1440
+ }), Jn = S({
1441
+ components: { LumeBar: Tt },
1331
1442
  props: {
1332
- ...Tt(),
1443
+ ...$t(),
1333
1444
  orientation: {
1334
1445
  type: String,
1335
1446
  default: A.VERTICAL
1336
1447
  }
1337
1448
  },
1338
1449
  setup(e, t) {
1339
- const { data: n, orientation: r, xScale: a, yScale: o } = w(e), l = v(() => ot(n));
1340
- function u(i) {
1341
- const f = r.value === A.HORIZONTAL ? o.value : a.value, c = f.domain(), p = gt(f), h = Y(f) ? f(c[i]) : f(i) - p / 2;
1450
+ const { data: n, orientation: r, xScale: a, yScale: o } = C(e), i = f(() => ot(n));
1451
+ function u(c) {
1452
+ const h = r.value === A.HORIZONTAL ? o.value : a.value, l = h.domain(), v = At(h), p = U(h) ? h(l[c]) : h(c) - v / 2;
1342
1453
  return r.value === A.HORIZONTAL ? {
1343
1454
  width: Math.max(...a.value.range()),
1344
- height: p,
1345
- transform: `translate(0, ${h})`
1455
+ height: v,
1456
+ transform: `translate(0, ${p})`
1346
1457
  } : {
1347
- width: p,
1458
+ width: v,
1348
1459
  height: Math.max(...o.value.range()),
1349
- transform: `translate(${h}, 0)`
1460
+ transform: `translate(${p}, 0)`
1350
1461
  };
1351
1462
  }
1352
- function s(i) {
1353
- t.emit("mouseover", i);
1463
+ function s(c) {
1464
+ t.emit("mouseover", c);
1354
1465
  }
1355
- return { getOverlayBarAttributes: u, handleMouseover: s, overlayData: l };
1466
+ return { getOverlayBarAttributes: u, handleMouseover: s, overlayData: i };
1356
1467
  }
1357
1468
  });
1358
- var Hn = function() {
1469
+ var Qn = function() {
1359
1470
  var t = this, n = t._self._c;
1360
1471
  return t._self._setupProxy, n("g", { staticClass: "lume-overlay-group" }, t._l(t.overlayData, function(r, a) {
1361
1472
  return n("lume-bar", t._b({ key: `overlay-${a}`, attrs: { "data-j-lume-overlay-group": a, transition: !1, "class-list": "lume-fill--transparent" }, nativeOn: { mouseover: function(o) {
1362
1473
  return t.handleMouseover(a);
1363
1474
  } } }, "lume-bar", t.getOverlayBarAttributes(a), !1));
1364
1475
  }), 1);
1365
- }, jn = [], Fn = /* @__PURE__ */ L(
1366
- Mn,
1367
- Hn,
1368
- jn,
1476
+ }, tr = [], er = /* @__PURE__ */ L(
1477
+ Jn,
1478
+ Qn,
1479
+ tr,
1369
1480
  !1,
1370
1481
  null,
1371
1482
  null,
1372
1483
  null,
1373
1484
  null
1374
1485
  );
1375
- const Gn = Fn.exports;
1376
- var W = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(W || {});
1377
- const Vn = W.Categorical, zn = H.Skyblue, Wn = yt.SkyTeal;
1378
- function Zn(e) {
1379
- return e === W.Divergent ? Wn : zn;
1380
- }
1381
- function qn(e) {
1382
- return Object.values(bt).includes(e);
1383
- }
1384
- function wt(e, t) {
1385
- return t === W.Divergent ? Object.values(yt).includes(e) : Object.values({ ...H, ...bt }).includes(
1386
- e
1387
- );
1388
- }
1389
- function Xn(e, t) {
1390
- const n = Object.values(H).indexOf(e);
1391
- return Ne(Object.values(H), n)[t];
1392
- }
1393
- function Yn(e, t) {
1394
- const n = 50 + t * 10;
1395
- return `${e}-${n}`;
1396
- }
1397
- function Un(e, t) {
1398
- const n = (t + 1) * 10;
1399
- return `${e}-${n}`;
1400
- }
1401
- function vt(e, t, n) {
1402
- switch (t) {
1403
- default:
1404
- case W.Categorical:
1405
- return qn(e) ? e : Xn(e, n);
1406
- case W.Sequential:
1407
- return Yn(e, n);
1408
- case W.Divergent:
1409
- return Un(e, n);
1410
- }
1411
- }
1412
- function Kn(e, t, n = Vn, r) {
1413
- return wt(e, n) ? vt(e, n, r) : (r > 4 && (At(ct.ColorLoop), r = r % 5), wt(t, n) ? vt(t, n, r) : vt(Zn(n), n, r));
1414
- }
1415
- function Jn(e) {
1416
- return e.map((t) => Le(t) ? t : { value: t });
1417
- }
1418
- function Qn(e) {
1419
- return e.__internal === !0;
1420
- }
1421
- const Wt = (e = null) => ({
1422
- data: {
1423
- type: Array,
1424
- required: !0,
1425
- validator: e || void 0
1426
- },
1427
- labels: {
1428
- type: Array,
1429
- default: void 0
1430
- },
1431
- color: {
1432
- type: String,
1433
- default: H.Skyblue
1434
- }
1435
- });
1436
- function $t(e, t, n, r, a) {
1437
- const o = it({
1438
- width: 0,
1439
- height: 0
1440
- }), l = v(() => {
1441
- var i;
1442
- return e.value.length > 5 && At(ct.DatasetLength), (i = e.value) == null ? void 0 : i.map(
1443
- (f, c) => {
1444
- if (Qn(f))
1445
- return f;
1446
- const p = Jn(f.values), h = Kn(
1447
- f.color,
1448
- n == null ? void 0 : n.value,
1449
- r == null ? void 0 : r.value.colorPalette,
1450
- c
1451
- );
1452
- return {
1453
- ...f,
1454
- values: p,
1455
- color: h,
1456
- __internal: !0
1457
- };
1458
- }
1459
- );
1460
- }), u = v(() => Array.isArray(t.value) ? t.value : ot(e.value).map((i, f) => f));
1461
- function s(i) {
1462
- const f = (a == null ? void 0 : a.value) === A.HORIZONTAL ? ot(e).length * (Pe * 2) : i.height;
1463
- N.set(o, "width", i.width), N.set(o, "height", f);
1464
- }
1465
- return {
1466
- computedLabels: u,
1467
- containerSize: o,
1468
- internalData: l,
1469
- updateSize: s
1470
- };
1471
- }
1472
- const tr = () => ({
1486
+ const nr = er.exports, rr = () => ({
1473
1487
  xScale: {
1474
1488
  type: Function,
1475
1489
  default: null
@@ -1479,56 +1493,56 @@ const tr = () => ({
1479
1493
  default: null
1480
1494
  }
1481
1495
  });
1482
- function er(e, t, n, r, a) {
1483
- const o = k(null), l = k(null);
1496
+ function ar(e, t, n, r, a) {
1497
+ const o = k(null), i = k(null);
1484
1498
  function u() {
1485
- const { width: s, height: i } = n;
1486
- !s && !i || !t.value || !e.value || (r.value === A.HORIZONTAL ? (o.value = It(
1499
+ const { width: s, height: c } = n;
1500
+ !s && !c || !t.value || !e.value || (r.value === A.HORIZONTAL ? (o.value = It(
1487
1501
  e.value,
1488
1502
  s,
1489
1503
  r.value,
1490
1504
  a.value.startOnZero
1491
- ), l.value = Ct(t.value, i)) : (o.value = Ct(t.value, s), l.value = It(
1505
+ ), i.value = Ct(t.value, c)) : (o.value = Ct(t.value, s), i.value = It(
1492
1506
  e.value,
1493
- i,
1507
+ c,
1494
1508
  r.value,
1495
1509
  a.value.startOnZero
1496
1510
  )));
1497
1511
  }
1498
- return Pt(u), { xScale: o, yScale: l };
1512
+ return Pt(u), { xScale: o, yScale: i };
1499
1513
  }
1500
1514
  function Ct(e, t) {
1501
1515
  const n = [0, t];
1502
1516
  return J().range(n).domain(e);
1503
1517
  }
1504
1518
  function It(e, t, n, r) {
1505
- const a = Ht(e).filter((f) => f != null), o = [0, t];
1519
+ const a = Ft(e).filter((h) => h != null), o = [0, t];
1506
1520
  if (a.length === 0)
1507
1521
  return Q().range(o).domain([0, 0]).nice();
1508
- const l = Math.min(...a), u = r && l > 0 ? 0 : l, s = Math.max(...a), i = n === A.HORIZONTAL ? [u, s] : [s, u];
1509
- return Q().range(o).domain(i).nice();
1522
+ const i = Math.min(...a), u = r && i > 0 ? 0 : i, s = Math.max(...a), c = n === A.HORIZONTAL ? [u, s] : [s, u];
1523
+ return Q().range(o).domain(c).nice();
1510
1524
  }
1511
1525
  function Nt(e) {
1512
1526
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
1513
1527
  }
1514
- function _t(e, t) {
1515
- return Y(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1528
+ function mt(e, t) {
1529
+ return U(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1516
1530
  }
1517
1531
  function st(e, t, {
1518
1532
  padding: n,
1519
1533
  paddingInner: r,
1520
1534
  paddingOuter: a
1521
1535
  } = {}) {
1522
- const o = n != null ? n : t === A.HORIZONTAL ? Me : Be;
1536
+ const o = n != null ? n : t === A.HORIZONTAL ? Ce : we;
1523
1537
  return e.copy().paddingInner(r != null ? r : o).paddingOuter(a != null ? a : o / 2);
1524
1538
  }
1525
- function nr(e) {
1539
+ function or(e) {
1526
1540
  return Object.values(A).includes(e);
1527
1541
  }
1528
- const F = (e, t = !0, n = !0) => ({
1542
+ const V = (e, t = !0, n = !0) => ({
1529
1543
  ...Wt(e),
1530
- ...n ? tr() : {},
1531
- ...ut(),
1544
+ ...n ? rr() : {},
1545
+ ...dt(),
1532
1546
  title: {
1533
1547
  type: String,
1534
1548
  default: null
@@ -1537,7 +1551,7 @@ const F = (e, t = !0, n = !0) => ({
1537
1551
  orientation: {
1538
1552
  type: String,
1539
1553
  default: A.VERTICAL,
1540
- validator: nr
1554
+ validator: or
1541
1555
  }
1542
1556
  } : {},
1543
1557
  classList: {
@@ -1545,37 +1559,37 @@ const F = (e, t = !0, n = !0) => ({
1545
1559
  default: () => []
1546
1560
  }
1547
1561
  });
1548
- function rr(e) {
1549
- return { hasNegativeValues: v(
1550
- () => Ht(e.value).some((n) => n < 0)
1562
+ function sr(e) {
1563
+ return { hasNegativeValues: f(
1564
+ () => Ft(e.value).some((n) => n < 0)
1551
1565
  ) };
1552
1566
  }
1553
- function ar(e, t, n, r) {
1554
- const a = v(
1567
+ function ir(e, t, n, r) {
1568
+ const a = f(
1555
1569
  () => r.value === A.HORIZONTAL
1556
- ), o = v(
1570
+ ), o = f(
1557
1571
  () => {
1558
- var i;
1559
- return e.height - (a != null && a.value ? 0 : ((i = n.value) == null ? void 0 : i.call(n, 0)) || 0);
1572
+ var c;
1573
+ return e.height - (a != null && a.value ? 0 : ((c = n.value) == null ? void 0 : c.call(n, 0)) || 0);
1560
1574
  }
1561
- ), l = v(
1575
+ ), i = f(
1562
1576
  () => {
1563
- var i;
1564
- return a != null && a.value ? ((i = t.value) == null ? void 0 : i.call(t, 0)) || 0 : e.width;
1577
+ var c;
1578
+ return a != null && a.value ? ((c = t.value) == null ? void 0 : c.call(t, 0)) || 0 : e.width;
1565
1579
  }
1566
- ), u = v(
1580
+ ), u = f(
1567
1581
  () => {
1568
- var i;
1569
- return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((i = n.value) == null ? void 0 : i.call(n, 0)) || 0})`;
1582
+ var c;
1583
+ return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((c = n.value) == null ? void 0 : c.call(n, 0)) || 0})`;
1570
1584
  }
1571
1585
  );
1572
- return { negativeBarAttributes: v(() => ({
1573
- width: l.value,
1586
+ return { negativeBarAttributes: f(() => ({
1587
+ width: i.value,
1574
1588
  height: o.value,
1575
1589
  transform: u.value
1576
1590
  })) };
1577
1591
  }
1578
- function or(e, t) {
1592
+ function lr(e, t) {
1579
1593
  return e.reduce((n, r) => {
1580
1594
  var o;
1581
1595
  const a = (o = r.values[t]) == null ? void 0 : o.value;
@@ -1583,32 +1597,32 @@ function or(e, t) {
1583
1597
  }, 0);
1584
1598
  }
1585
1599
  const Rt = {
1586
- "stacked-bar": or
1600
+ "stacked-bar": lr
1587
1601
  };
1588
- function sr(e, t, n, r, a) {
1589
- const o = v(() => (u) => {
1590
- var c;
1591
- let s = a.value && Rt[a.value] ? Rt[a.value](e.value, u) : Ft(e.value, u);
1592
- ((c = a == null ? void 0 : a.value) == null ? void 0 : c.includes("bar")) && s < 0 && (s = 0);
1593
- const i = r.value === A.HORIZONTAL ? t.value(s) : _t(t.value, u), f = r.value === A.HORIZONTAL ? _t(n.value, u) : n.value(s);
1602
+ function ur(e, t, n, r, a) {
1603
+ const o = f(() => (u) => {
1604
+ var l;
1605
+ let s = a.value && Rt[a.value] ? Rt[a.value](e.value, u) : Vt(e.value, u);
1606
+ ((l = a == null ? void 0 : a.value) == null ? void 0 : l.includes("bar")) && s < 0 && (s = 0);
1607
+ const c = r.value === A.HORIZONTAL ? t.value(s) : mt(t.value, u), h = r.value === A.HORIZONTAL ? mt(n.value, u) : n.value(s);
1594
1608
  return {
1595
- cx: i,
1596
- cy: f
1609
+ cx: c,
1610
+ cy: h
1597
1611
  };
1598
1612
  });
1599
- function l(u) {
1600
- return e.value.map(({ color: s, label: i, values: f }) => {
1601
- var c, p, h, d, _;
1613
+ function i(u) {
1614
+ return e.value.map(({ color: s, label: c, values: h }) => {
1615
+ var l, v, p, d, _;
1602
1616
  return {
1603
- color: ((c = f[u]) == null ? void 0 : c.color) || s,
1604
- label: i,
1605
- value: (_ = (d = (p = f[u]) == null ? void 0 : p.label) != null ? d : (h = f[u]) == null ? void 0 : h.value) != null ? _ : Vt
1617
+ color: ((l = h[u]) == null ? void 0 : l.color) || s,
1618
+ label: c,
1619
+ value: (_ = (d = (v = h[u]) == null ? void 0 : v.label) != null ? d : (p = h[u]) == null ? void 0 : p.value) != null ? _ : jt
1606
1620
  };
1607
1621
  });
1608
1622
  }
1609
- return { getTooltipAnchorAttributes: o, getTooltipItems: l };
1623
+ return { getTooltipAnchorAttributes: o, getTooltipItems: i };
1610
1624
  }
1611
- function ir() {
1625
+ function cr() {
1612
1626
  const e = it({
1613
1627
  opened: !1,
1614
1628
  targetElement: null
@@ -1619,129 +1633,129 @@ function ir() {
1619
1633
  N.set(e, "opened", !1), N.set(e, "targetElement", null);
1620
1634
  } };
1621
1635
  }
1622
- const lr = S({
1636
+ const dr = S({
1623
1637
  components: {
1624
- LumeAxis: nn,
1625
- LumeBar: Ot,
1626
- LumeChartContainer: cn,
1627
- LumeChartLegend: hn,
1628
- LumeOverlayGroup: Gn,
1629
- LumeTooltip: bn
1638
+ LumeAxis: hn,
1639
+ LumeBar: Tt,
1640
+ LumeChartContainer: An,
1641
+ LumeChartLegend: Sn,
1642
+ LumeOverlayGroup: nr,
1643
+ LumeTooltip: Nn
1630
1644
  },
1631
1645
  props: {
1632
- ...F(),
1646
+ ...V(),
1633
1647
  chartType: {
1634
1648
  type: String,
1635
1649
  default: null
1636
1650
  }
1637
1651
  },
1638
1652
  setup(e, t) {
1639
- const { data: n, labels: r, color: a, options: o, orientation: l, chartType: u } = w(e), s = k(-1), i = k(null), f = k(null), { allOptions: c } = M(o), { internalData: p, computedLabels: h, containerSize: d, updateSize: _ } = $t(
1653
+ const { data: n, labels: r, color: a, options: o, orientation: i, chartType: u } = C(e), s = k(-1), c = k(null), h = k(null), { allOptions: l } = F(o), { internalData: v, computedLabels: p, containerSize: d, updateSize: _ } = ct(
1640
1654
  n,
1641
1655
  r,
1642
1656
  a,
1643
- c,
1644
- l
1645
- ), { xScale: b, yScale: m } = er(
1657
+ l,
1658
+ i
1659
+ ), { xScale: b, yScale: m } = ar(
1660
+ v,
1646
1661
  p,
1647
- h,
1648
1662
  d,
1649
- l,
1650
- c
1651
- ), g = v(() => {
1663
+ i,
1664
+ l
1665
+ ), g = f(() => {
1652
1666
  var O;
1653
- return e.xScale ? Nt(e.xScale) ? e.xScale : (O = e.xScale) == null ? void 0 : O.call(e, p.value, r.value, d) : b.value;
1654
- }), y = v(() => {
1667
+ return e.xScale ? Nt(e.xScale) ? e.xScale : (O = e.xScale) == null ? void 0 : O.call(e, v.value, r.value, d) : b.value;
1668
+ }), y = f(() => {
1655
1669
  var O;
1656
- return e.yScale ? Nt(e.yScale) ? e.yScale : (O = e.yScale) == null ? void 0 : O.call(e, p.value, r.value, d) : m.value;
1657
- }), x = v(() => ({
1658
- ...c.value.xAxisOptions,
1659
- withHover: l.value === A.VERTICAL
1660
- })), $ = v(() => ({
1661
- ...c.value.yAxisOptions,
1662
- withHover: l.value === A.HORIZONTAL
1663
- })), R = v(() => {
1670
+ return e.yScale ? Nt(e.yScale) ? e.yScale : (O = e.yScale) == null ? void 0 : O.call(e, v.value, r.value, d) : m.value;
1671
+ }), x = f(() => ({
1672
+ ...l.value.xAxisOptions,
1673
+ withHover: i.value === A.VERTICAL
1674
+ })), T = f(() => ({
1675
+ ...l.value.yAxisOptions,
1676
+ withHover: i.value === A.HORIZONTAL
1677
+ })), R = f(() => {
1664
1678
  var O;
1665
- return (O = c.value.xAxisOptions) == null ? void 0 : O.title;
1666
- }), D = v(() => {
1679
+ return (O = l.value.xAxisOptions) == null ? void 0 : O.title;
1680
+ }), B = f(() => {
1667
1681
  var O;
1668
- return (O = c.value.yAxisOptions) == null ? void 0 : O.title;
1669
- }), T = v(() => {
1682
+ return (O = l.value.yAxisOptions) == null ? void 0 : O.title;
1683
+ }), D = f(() => {
1670
1684
  var O;
1671
- return ((O = c.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && R.value;
1672
- }), C = v(() => {
1685
+ return ((O = l.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && R.value;
1686
+ }), $ = f(() => {
1673
1687
  var O;
1674
- return ((O = c.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && D.value;
1675
- }), B = v(
1688
+ return ((O = l.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && B.value;
1689
+ }), w = f(
1676
1690
  () => {
1677
1691
  var O;
1678
- return c.value.withTooltip !== !1 && !((O = c.value.tooltipOptions) != null && O.targetElement);
1692
+ return l.value.withTooltip !== !1 && !((O = l.value.tooltipOptions) != null && O.targetElement);
1679
1693
  }
1680
- ), G = v(() => {
1681
- const O = [], { noBaseScales: X } = c.value;
1694
+ ), H = f(() => {
1695
+ const O = [], { noBaseScales: X } = l.value;
1682
1696
  return X || O.push(() => !!(g.value && y.value)), O.every((nt) => nt() === !0);
1683
- }), { hasNegativeValues: V } = rr(p), { negativeBarAttributes: tt } = ar(
1697
+ }), { hasNegativeValues: j } = sr(v), { negativeBarAttributes: tt } = ir(
1684
1698
  d,
1685
1699
  g,
1686
1700
  y,
1687
- l
1688
- ), { tooltipConfig: et, showTooltip: z, hideTooltip: ft } = ir(), { getTooltipAnchorAttributes: Kt, getTooltipItems: Jt } = sr(
1689
- p,
1701
+ i
1702
+ ), { tooltipConfig: et, showTooltip: z, hideTooltip: pt } = cr(), { getTooltipAnchorAttributes: Jt, getTooltipItems: Qt } = ur(
1703
+ v,
1690
1704
  g,
1691
1705
  y,
1692
- l,
1706
+ i,
1693
1707
  u
1694
- ), Qt = v(
1708
+ ), te = f(
1695
1709
  () => {
1696
1710
  var O;
1697
- return ((O = c.value.tooltipOptions) == null ? void 0 : O.position) || "top";
1711
+ return ((O = l.value.tooltipOptions) == null ? void 0 : O.position) || "top";
1698
1712
  }
1699
1713
  );
1700
- function te(O) {
1714
+ function ee(O) {
1701
1715
  var nt;
1702
- c.value.withHover !== !1 && (s.value = O);
1703
- const X = (nt = c.value.tooltipOptions) != null && nt.targetElement ? c.value.tooltipOptions.targetElement === "self" ? f.value.$el : c.value.tooltipOptions.targetElement : i.value[O];
1704
- c.value.withTooltip !== !1 && z(X);
1716
+ l.value.withHover !== !1 && (s.value = O);
1717
+ const X = (nt = l.value.tooltipOptions) != null && nt.targetElement ? l.value.tooltipOptions.targetElement === "self" ? h.value.$el : l.value.tooltipOptions.targetElement : c.value[O];
1718
+ l.value.withTooltip !== !1 && z(X);
1705
1719
  }
1706
- function ee() {
1707
- ft(), s.value = -1;
1720
+ function ne() {
1721
+ pt(), s.value = -1;
1708
1722
  }
1709
- return j(() => {
1723
+ return G(() => {
1710
1724
  var O, X;
1711
1725
  (X = (O = t.slots).groups) != null && X.call(O) || console.error('"groups" `<slot>` must have content.');
1712
1726
  }), {
1713
- allOptions: c,
1714
- internalData: p,
1715
- chartContainer: f,
1716
- computedLabels: h,
1727
+ allOptions: l,
1728
+ internalData: v,
1729
+ chartContainer: h,
1730
+ computedLabels: p,
1717
1731
  computedXAxisOptions: x,
1718
1732
  computedXScale: g,
1719
- computedYAxisOptions: $,
1733
+ computedYAxisOptions: T,
1720
1734
  computedYScale: y,
1721
1735
  containerSize: d,
1722
1736
  getEmptyArrayFromData: ot,
1723
- getTooltipAnchorAttributes: Kt,
1724
- getTooltipItems: Jt,
1725
- handleMouseleave: ee,
1726
- hasNegativeValues: V,
1737
+ getTooltipAnchorAttributes: Jt,
1738
+ getTooltipItems: Qt,
1739
+ handleMouseleave: ne,
1740
+ hasNegativeValues: j,
1727
1741
  hoveredIndex: s,
1728
- isReady: G,
1729
- mouseOverHandler: te,
1742
+ isReady: H,
1743
+ mouseOverHandler: ee,
1730
1744
  negativeBarAttributes: tt,
1731
- shouldGenerateTooltipAnchors: B,
1732
- showXAxisTitle: T,
1733
- showYAxisTitle: C,
1734
- tooltipAnchor: i,
1735
- tooltipAnchorRadius: He,
1745
+ shouldGenerateTooltipAnchors: w,
1746
+ showXAxisTitle: D,
1747
+ showYAxisTitle: $,
1748
+ tooltipAnchor: c,
1749
+ tooltipAnchorRadius: Ie,
1736
1750
  tooltipConfig: et,
1737
- tooltipPosition: Qt,
1751
+ tooltipPosition: te,
1738
1752
  updateSize: _,
1739
1753
  xAxisTitle: R,
1740
- yAxisTitle: D
1754
+ yAxisTitle: B
1741
1755
  };
1742
1756
  }
1743
1757
  });
1744
- var ur = function() {
1758
+ var fr = function() {
1745
1759
  var t = this, n = t._self._c;
1746
1760
  return t._self._setupProxy, n("lume-chart-container", { ref: "chartContainer", attrs: { margins: t.allOptions.margins, "container-size": t.containerSize, "no-min-size": t.allOptions.noMinSize, "transparent-background": t.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: t.updateSize, mouseleave: t.handleMouseleave }, scopedSlots: t._u([{ key: "header", fn: function() {
1747
1761
  return [n("div", { staticClass: "lume-chart__header" }, [n("div", { staticClass: "lume-chart__header-section" }, [t.title ? n("h1", { staticClass: "lume-chart__title lume-chart-title lume-typography--display" }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("div", { staticClass: "lume-chart__controls" }, [t._t("controls")], 2)]), n("div", { staticClass: "lume-chart__header-section" }, [t.showYAxisTitle ? n("h3", { staticClass: "lume-chart__axis-title lume-axis-title lume-typography--body" }, [t._v(" " + t._s(t.yAxisTitle) + " ")]) : t._e(), t.allOptions.withLegend !== !1 && t.allOptions.legendPosition !== "bottom" ? n("lume-chart-legend", { staticClass: "lume-chart__legend", attrs: { data: t.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(r) {
@@ -1755,7 +1769,7 @@ var ur = function() {
1755
1769
  return [t._t("tooltip", function() {
1756
1770
  return [t.allOptions.withTooltip !== !1 && t.tooltipConfig.opened ? n("lume-tooltip", t._b({ attrs: { position: t.tooltipPosition, title: t.computedLabels[t.hoveredIndex], items: t.getTooltipItems(t.hoveredIndex), options: t.allOptions.tooltipOptions, "data-j-lume-chart__tooltip": "" } }, "lume-tooltip", t.tooltipConfig, !1), [t._t("tooltip-content", null, { data: t.internalData, labels: t.computedLabels, hoveredIndex: t.hoveredIndex })], 2) : t._e()];
1757
1771
  }, { data: t.internalData, labels: t.computedLabels, withTooltip: t.allOptions.withTooltip !== !1, hoveredIndex: t.hoveredIndex, options: t.allOptions.tooltipOptions }, t.tooltipConfig)];
1758
- }, proxy: !0 }], null, !0) }, [t.isReady ? [t.hasNegativeValues ? n("lume-bar", t._b({ attrs: { "class-list": "lume-fill--negative", transition: !1, "data-j-lume-chart__negative-values": "" } }, "lume-bar", t.negativeBarAttributes, !1)) : t._e(), t.allOptions.showAxes !== !1 ? t._t("axes", function() {
1772
+ }, proxy: !0 }], null, !0) }, [t.isReady ? [t.hasNegativeValues ? n("lume-bar", t._b({ attrs: { "class-list": "lume-fill--negative", transition: !1, "data-j-lume-chart__negative-values": "" } }, "lume-bar", t.negativeBarAttributes, !1)) : t._e(), t.allOptions.withAxes !== !1 ? t._t("axes", function() {
1759
1773
  return [n("lume-axis", { attrs: { type: "x", scale: t.computedXScale, "container-size": t.containerSize, options: t.computedXAxisOptions, "hovered-index": t.hoveredIndex, orientation: t.orientation, "data-j-lume-chart__x-axis": "" }, on: { "tick-mouseover": function(r) {
1760
1774
  return t.mouseOverHandler(r);
1761
1775
  } } }), n("lume-axis", { attrs: { type: "y", scale: t.computedYScale, "container-size": t.containerSize, options: t.computedYAxisOptions, "hovered-index": t.hoveredIndex, orientation: t.orientation, "data-j-lume-chart__y-axis": "" }, on: { "tick-mouseover": function(r) {
@@ -1764,17 +1778,17 @@ var ur = function() {
1764
1778
  }, { xScale: t.computedXScale, yScale: t.computedYScale, containerSize: t.containerSize, options: t.allOptions, hoveredIndex: t.hoveredIndex }) : t._e(), t._t("groups", null, { data: t.internalData, labels: t.computedLabels, options: t.allOptions, orientation: t.orientation, xScale: t.computedXScale, yScale: t.computedYScale, hoveredIndex: t.hoveredIndex, containerSize: t.containerSize, transition: t.allOptions.withTransition !== !1, classList: t.classList }), t.allOptions.withHover !== !1 ? n("lume-overlay-group", { attrs: { data: t.internalData, orientation: t.orientation, "x-scale": t.computedXScale, "y-scale": t.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { mouseover: t.mouseOverHandler } }) : t._e(), t.shouldGenerateTooltipAnchors ? n("g", t._l(t.getEmptyArrayFromData(t.internalData), function(r, a) {
1765
1779
  return n("circle", t._b({ key: `anchor-${a}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: t.tooltipAnchorRadius } }, "circle", t.getTooltipAnchorAttributes(a), !1));
1766
1780
  }), 0) : t._e()] : t._e()], 2);
1767
- }, cr = [], dr = /* @__PURE__ */ L(
1768
- lr,
1769
- ur,
1770
- cr,
1781
+ }, pr = [], vr = /* @__PURE__ */ L(
1782
+ dr,
1783
+ fr,
1784
+ pr,
1771
1785
  !1,
1772
1786
  null,
1773
- "faa98503",
1787
+ "fc14c0e8",
1774
1788
  null,
1775
1789
  null
1776
1790
  );
1777
- const U = dr.exports, fr = 8, pr = S({
1791
+ const Y = vr.exports, hr = 8, _r = S({
1778
1792
  props: {
1779
1793
  linkPaths: {
1780
1794
  type: Array,
@@ -1794,15 +1808,15 @@ const U = dr.exports, fr = 8, pr = S({
1794
1808
  }
1795
1809
  },
1796
1810
  setup(e) {
1797
- const { highlightedLinkIds: t, isGhost: n } = w(e), r = v(
1798
- () => n.value ? fr : 0
1811
+ const { highlightedLinkIds: t, isGhost: n } = C(e), r = f(
1812
+ () => n.value ? hr : 0
1799
1813
  );
1800
1814
  function a(o) {
1801
1815
  return {
1802
1816
  [`lume-stroke--${o.color}`]: !n.value,
1803
1817
  "lume-stroke--transparent": n.value,
1804
1818
  "lume-alluvial-path-group__link--ghost": n.value,
1805
- "lume-alluvial-path-group__link--faded": Gt(
1819
+ "lume-alluvial-path-group__link--faded": zt(
1806
1820
  o.id,
1807
1821
  t.value
1808
1822
  )
@@ -1811,7 +1825,7 @@ const U = dr.exports, fr = 8, pr = S({
1811
1825
  return { getClasses: a, ghostStrokeWidthOffset: r };
1812
1826
  }
1813
1827
  });
1814
- var vr = function() {
1828
+ var mr = function() {
1815
1829
  var t = this, n = t._self._c;
1816
1830
  return t._self._setupProxy, n("g", { staticClass: "lume-alluvial-path-group" }, t._l(t.linkPaths, function(r) {
1817
1831
  return n("path", { key: `link_${r.id}`, staticClass: "lume-alluvial-path-group__link", class: t.getClasses(r), attrs: { id: t.isGhost ? `${r.id}__ghost` : r.id, d: r.d, "stroke-dasharray": t.containerWidth, "stroke-dashoffset": t.containerWidth, "stroke-width": r.strokeWidth + t.ghostStrokeWidthOffset, "data-j-alluvial-path__path": "" }, on: { mouseover: function(a) {
@@ -1820,23 +1834,23 @@ var vr = function() {
1820
1834
  return t.$emit("mouseout");
1821
1835
  } } });
1822
1836
  }), 0);
1823
- }, hr = [], _r = /* @__PURE__ */ L(
1824
- pr,
1825
- vr,
1826
- hr,
1837
+ }, gr = [], yr = /* @__PURE__ */ L(
1838
+ _r,
1839
+ mr,
1840
+ gr,
1827
1841
  !1,
1828
1842
  null,
1829
1843
  "ce6a9b03",
1830
1844
  null,
1831
1845
  null
1832
1846
  );
1833
- const mr = _r.exports, Zt = "03", K = 8, gr = 200;
1834
- function yr(e, t, n) {
1847
+ const br = yr.exports, qt = "03", K = 8, xr = 200;
1848
+ function Ar(e, t, n) {
1835
1849
  let r = !1;
1836
- mt(() => {
1850
+ gt(() => {
1837
1851
  r = !0;
1838
1852
  });
1839
- const a = v(() => Math.max(...n.value.nodes.map(({ depth: h }) => h))), o = v(() => {
1853
+ const a = f(() => Math.max(...n.value.nodes.map(({ depth: p }) => p))), o = f(() => {
1840
1854
  if (e.value.highlightedLink === null && e.value.highlightedNode === null)
1841
1855
  return {};
1842
1856
  if (t.value.getHighlightedElements)
@@ -1846,14 +1860,14 @@ function yr(e, t, n) {
1846
1860
  links: n.value.links
1847
1861
  });
1848
1862
  if (e.value.highlightedNode) {
1849
- const h = [
1863
+ const p = [
1850
1864
  ...e.value.highlightedNode.sourceLinks,
1851
1865
  ...e.value.highlightedNode.targetLinks
1852
1866
  ];
1853
1867
  return {
1854
- links: h,
1868
+ links: p,
1855
1869
  nodes: new Map(
1856
- h.reduce((d, { source: _, target: b, value: m }) => _ === e.value.highlightedNode ? [...d, [E(b), m]] : [...d, [E(_), m]], [])
1870
+ p.reduce((d, { source: _, target: b, value: m }) => _ === e.value.highlightedNode ? [...d, [E(b), m]] : [...d, [E(_), m]], [])
1857
1871
  )
1858
1872
  };
1859
1873
  }
@@ -1867,35 +1881,35 @@ function yr(e, t, n) {
1867
1881
  ])
1868
1882
  };
1869
1883
  });
1870
- function l(h) {
1871
- return typeof h == "string" || typeof h == "number" ? h : h == null ? void 0 : h.id;
1884
+ function i(p) {
1885
+ return typeof p == "string" || typeof p == "number" ? p : p == null ? void 0 : p.id;
1872
1886
  }
1873
- function u(h = n.value.links) {
1874
- const d = h.map(
1875
- (b) => `link_${l(b.source)}:${l(b.target)}`
1887
+ function u(p = n.value.links) {
1888
+ const d = p.map(
1889
+ (b) => `link_${i(b.source)}:${i(b.target)}`
1876
1890
  );
1877
- return { nodeIds: h.reduce(
1891
+ return { nodeIds: p.reduce(
1878
1892
  (b, { source: m, target: g }) => [
1879
1893
  ...b,
1880
- `node-block-${l(m)}`,
1881
- `node-block-${l(g)}`
1894
+ `node-block-${i(m)}`,
1895
+ `node-block-${i(g)}`
1882
1896
  ],
1883
1897
  []
1884
1898
  ), linkIds: d };
1885
1899
  }
1886
- function s(h, d, _) {
1900
+ function s(p, d, _) {
1887
1901
  const b = Date.now(), m = e.value.nodeBlocks.find(
1888
- (x) => x.id === `node-block-${h}`
1889
- ), g = Ie(d, _), y = () => {
1902
+ (x) => x.id === `node-block-${p}`
1903
+ ), g = Pe(d, _), y = () => {
1890
1904
  if (r)
1891
1905
  return;
1892
- let $ = (Date.now() - b) / gr;
1893
- $ > 1 && ($ = 1), N.set(m.node, "transitionValue", g($)), $ < 1 && requestAnimationFrame(y);
1906
+ let T = (Date.now() - b) / xr;
1907
+ T > 1 && (T = 1), N.set(m.node, "transitionValue", g(T)), T < 1 && requestAnimationFrame(y);
1894
1908
  };
1895
1909
  requestAnimationFrame(y);
1896
1910
  }
1897
- function i({ values: h, updatingNodes: d = [], isEntering: _ = !1 }) {
1898
- const b = new Set(d), m = (y) => _ ? y.value : h.get(E(y)), g = (y) => _ ? h.get(E(y)) : y.value;
1911
+ function c({ values: p, updatingNodes: d = [], isEntering: _ = !1 }) {
1912
+ const b = new Set(d), m = (y) => _ ? y.value : p.get(E(y)), g = (y) => _ ? p.get(E(y)) : y.value;
1899
1913
  n.value.nodes.filter((y) => b.has(y)).forEach((y) => {
1900
1914
  s(
1901
1915
  E(y),
@@ -1904,23 +1918,23 @@ function yr(e, t, n) {
1904
1918
  );
1905
1919
  });
1906
1920
  }
1907
- function f(h) {
1908
- const d = ae();
1909
- return h.map((_) => {
1921
+ function h(p) {
1922
+ const d = oe();
1923
+ return p.map((_) => {
1910
1924
  var b;
1911
1925
  return {
1912
1926
  id: `link_${E(_.source)}:${E(
1913
1927
  _.target
1914
1928
  )}`,
1915
1929
  d: d(_),
1916
- color: _.color || ((b = _.source) == null ? void 0 : b.color) || Zt,
1930
+ color: _.color || ((b = _.source) == null ? void 0 : b.color) || qt,
1917
1931
  strokeWidth: Math.max(1, _.width),
1918
1932
  link: _
1919
1933
  };
1920
1934
  });
1921
1935
  }
1922
- function c(h) {
1923
- return h.map((d) => ({
1936
+ function l(p) {
1937
+ return p.map((d) => ({
1924
1938
  id: `node-block-${E(d)}`,
1925
1939
  rect: {
1926
1940
  width: d.x1 - d.x0,
@@ -1933,73 +1947,73 @@ function yr(e, t, n) {
1933
1947
  node: d
1934
1948
  }));
1935
1949
  }
1936
- function p({ nodes: h, links: d }) {
1937
- h == null || d == null || (e.value.nodeBlocks = c(h), e.value.linkPaths = f(d));
1950
+ function v({ nodes: p, links: d }) {
1951
+ p == null || d == null || (e.value.nodeBlocks = l(p), e.value.linkPaths = h(d));
1938
1952
  }
1939
1953
  return {
1940
1954
  highlightedElements: o,
1941
1955
  highlightLinks: u,
1942
- updateNodes: i,
1943
- renderChart: p,
1956
+ updateNodes: c,
1957
+ renderChart: v,
1944
1958
  maxDepth: a
1945
1959
  };
1946
1960
  }
1947
- function br(e, t, n) {
1948
- function r(c) {
1949
- var p, h;
1950
- return (h = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : h.reduce(
1951
- (d, _) => Math.max(d, _[c]),
1961
+ function Or(e, t, n) {
1962
+ function r(l) {
1963
+ var v, p;
1964
+ return (p = (v = t.value) == null ? void 0 : v.nodes) == null ? void 0 : p.reduce(
1965
+ (d, _) => Math.max(d, _[l]),
1952
1966
  -1 / 0
1953
1967
  );
1954
1968
  }
1955
- function a(c, p) {
1956
- return l(p) - l(c);
1969
+ function a(l, v) {
1970
+ return i(v) - i(l);
1957
1971
  }
1958
- function o(c) {
1959
- var p, h;
1960
- return (h = (p = n.value) == null ? void 0 : p.find((d) => d.id === `node-text-${c.id}`)) == null ? void 0 : h.getBBox();
1972
+ function o(l) {
1973
+ var v, p;
1974
+ return (p = (v = n.value) == null ? void 0 : v.find((d) => d.id === `node-text-${l.id}`)) == null ? void 0 : p.getBBox();
1961
1975
  }
1962
- function l({ label: c, value: p }) {
1963
- var h;
1976
+ function i({ label: l, value: v }) {
1977
+ var p;
1964
1978
  return Math.max(
1965
- c.length,
1966
- ((h = e.value.valueFormatter(p)) == null ? void 0 : h.length) || 0
1979
+ l.length,
1980
+ ((p = e.value.valueFormatter(v)) == null ? void 0 : p.length) || 0
1967
1981
  );
1968
1982
  }
1969
- const u = v(() => {
1970
- var h, d, _, b;
1971
- const c = r("x1"), p = (d = (h = t.value.nodes) == null ? void 0 : h.filter(({ x1: m }) => m === c).sort(a)) == null ? void 0 : d[0];
1972
- return p == null ? 0 : (b = (_ = o(p)) == null ? void 0 : _.width) != null ? b : 0;
1973
- }), s = v(() => {
1974
- var h, d, _, b, m, g;
1975
- const c = (d = (h = t.value) == null ? void 0 : h.nodes) == null ? void 0 : d.reduce(
1983
+ const u = f(() => {
1984
+ var p, d, _, b;
1985
+ const l = r("x1"), v = (d = (p = t.value.nodes) == null ? void 0 : p.filter(({ x1: m }) => m === l).sort(a)) == null ? void 0 : d[0];
1986
+ return v == null ? 0 : (b = (_ = o(v)) == null ? void 0 : _.width) != null ? b : 0;
1987
+ }), s = f(() => {
1988
+ var p, d, _, b, m, g;
1989
+ const l = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.reduce(
1976
1990
  (y, { y0: x }) => Math.min(y, x),
1977
1991
  1 / 0
1978
- ), p = (b = (_ = t.value) == null ? void 0 : _.nodes) == null ? void 0 : b.find(({ y0: y }) => y === c);
1979
- return p == null ? 0 : Math.abs((g = (m = o(p)) == null ? void 0 : m.y) != null ? g : 0);
1980
- }), i = v(() => {
1981
- var h, d, _, b;
1982
- const c = r("y1"), p = (d = (h = t.value) == null ? void 0 : h.nodes) == null ? void 0 : d.find(({ y1: m }) => m === c);
1983
- return p == null ? 0 : Math.abs((b = (_ = o(p)) == null ? void 0 : _.y) != null ? b : 0);
1992
+ ), v = (b = (_ = t.value) == null ? void 0 : _.nodes) == null ? void 0 : b.find(({ y0: y }) => y === l);
1993
+ return v == null ? 0 : Math.abs((g = (m = o(v)) == null ? void 0 : m.y) != null ? g : 0);
1994
+ }), c = f(() => {
1995
+ var p, d, _, b;
1996
+ const l = r("y1"), v = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.find(({ y1: m }) => m === l);
1997
+ return v == null ? 0 : Math.abs((b = (_ = o(v)) == null ? void 0 : _.y) != null ? b : 0);
1984
1998
  });
1985
1999
  return {
1986
- leftMostNodeLabelWidth: v(() => {
1987
- var p, h, d, _;
1988
- const c = (h = (p = t.value.nodes) == null ? void 0 : p.filter(({ depth: b }) => b === 0).sort(a)) == null ? void 0 : h[0];
1989
- return c == null ? 0 : (_ = (d = o(c)) == null ? void 0 : d.width) != null ? _ : 0;
2000
+ leftMostNodeLabelWidth: f(() => {
2001
+ var v, p, d, _;
2002
+ const l = (p = (v = t.value.nodes) == null ? void 0 : v.filter(({ depth: b }) => b === 0).sort(a)) == null ? void 0 : p[0];
2003
+ return l == null ? 0 : (_ = (d = o(l)) == null ? void 0 : d.width) != null ? _ : 0;
1990
2004
  }),
1991
2005
  rightMostNodeLabelWidth: u,
1992
2006
  topMostNodeLabelExtraHeight: s,
1993
- bottomMostNodeLabelExtraHeight: i
2007
+ bottomMostNodeLabelExtraHeight: c
1994
2008
  };
1995
2009
  }
1996
- const xr = {
2010
+ const Tr = {
1997
2011
  values: [],
1998
2012
  nodePadding: 16,
1999
2013
  nodeWidth: 16,
2000
- nodeAlign: se,
2014
+ nodeAlign: ie,
2001
2015
  valueFormatter: (e) => String(e)
2002
- }, Ar = {
2016
+ }, $r = {
2003
2017
  highlightedLink: null,
2004
2018
  highlightedNode: null,
2005
2019
  leftExtent: 0,
@@ -2009,79 +2023,79 @@ const xr = {
2009
2023
  nodeBlocks: [],
2010
2024
  linkPaths: []
2011
2025
  };
2012
- function Or(e, t) {
2013
- const n = k({ ...Ar, containerSize: t }), r = v(() => e.value.values.map(({ label: u, color: s, value: i }) => ({
2026
+ function kr(e, t) {
2027
+ const n = k({ ...$r, containerSize: t }), r = f(() => e.value.values.map(({ label: u, color: s, value: c }) => ({
2014
2028
  label: u,
2015
2029
  color: s,
2016
- id: i
2017
- }))), a = v(() => e.value.values.map(
2030
+ id: c
2031
+ }))), a = f(() => e.value.values.map(
2018
2032
  (u) => {
2019
2033
  var s;
2020
- return (s = u.targets) == null ? void 0 : s.map(({ node: i, value: f, color: c }) => {
2021
- var p;
2034
+ return (s = u.targets) == null ? void 0 : s.map(({ node: c, value: h, color: l }) => {
2035
+ var v;
2022
2036
  return {
2023
- source: (p = u.value) != null ? p : u.label,
2024
- color: c,
2025
- target: i,
2026
- value: f
2037
+ source: (v = u.value) != null ? v : u.label,
2038
+ color: l,
2039
+ target: c,
2040
+ value: h
2027
2041
  };
2028
2042
  });
2029
2043
  }
2030
- ).filter(Boolean).reduce((u, s) => [...u, ...s], [])), o = v(() => {
2031
- const { leftExtent: u, rightExtent: s, topExtent: i, bottomExtent: f, containerSize: c } = n.value;
2032
- return oe().nodeId(E).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
2033
- [u, i],
2034
- [s, c.height - f]
2044
+ ).filter(Boolean).reduce((u, s) => [...u, ...s], [])), o = f(() => {
2045
+ const { leftExtent: u, rightExtent: s, topExtent: c, bottomExtent: h, containerSize: l } = n.value;
2046
+ return se().nodeId(E).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
2047
+ [u, c],
2048
+ [s, l.height - h]
2035
2049
  ]);
2036
- }), l = v(() => o.value({
2050
+ }), i = f(() => o.value({
2037
2051
  nodes: r.value.map((u) => ({ ...u })),
2038
2052
  links: a.value.map((u) => ({ ...u }))
2039
2053
  }));
2040
2054
  return {
2041
2055
  nodes: r,
2042
2056
  links: a,
2043
- graph: l,
2057
+ graph: i,
2044
2058
  alluvialInstance: n
2045
2059
  };
2046
2060
  }
2047
- function Tr(e) {
2061
+ function Sr(e) {
2048
2062
  var n;
2049
2063
  const t = (n = e.value) == null ? void 0 : n[0];
2050
2064
  if (!!t)
2051
2065
  return k({
2052
- ...xr,
2066
+ ...Tr,
2053
2067
  ...t
2054
2068
  });
2055
2069
  }
2056
- const $r = S({
2057
- components: { LumeAlluvialPathGroup: mr },
2070
+ const Lr = S({
2071
+ components: { LumeAlluvialPathGroup: br },
2058
2072
  props: {
2059
- ...F(lt)
2073
+ ...V(lt)
2060
2074
  },
2061
2075
  setup(e, t) {
2062
- const n = re(e, "data"), r = k([]), a = k([]), o = k(null), l = Tr(n), { graph: u, alluvialInstance: s } = Or(
2063
- l,
2076
+ const n = ae(e, "data"), r = k([]), a = k([]), o = k(null), i = Sr(n), { graph: u, alluvialInstance: s } = kr(
2077
+ i,
2064
2078
  t.attrs.containerSize
2065
2079
  ), {
2066
- leftMostNodeLabelWidth: i,
2067
- rightMostNodeLabelWidth: f,
2068
- topMostNodeLabelExtraHeight: c,
2069
- bottomMostNodeLabelExtraHeight: p
2070
- } = br(l, u, o), {
2071
- highlightedElements: h,
2080
+ leftMostNodeLabelWidth: c,
2081
+ rightMostNodeLabelWidth: h,
2082
+ topMostNodeLabelExtraHeight: l,
2083
+ bottomMostNodeLabelExtraHeight: v
2084
+ } = Or(i, u, o), {
2085
+ highlightedElements: p,
2072
2086
  highlightLinks: d,
2073
2087
  updateNodes: _,
2074
2088
  renderChart: b,
2075
2089
  maxDepth: m
2076
- } = yr(s, l, u);
2077
- return I(h, function(g, y) {
2078
- var B, G, V, tt, et;
2079
- const x = g.nodes != null && g.links != null, $ = new Set((B = g.links) != null ? B : []), { nodes: R = /* @__PURE__ */ new Map() } = (x ? g : y) || {}, { nodeIds: D, linkIds: T } = d(
2080
- (V = (G = u.value) == null ? void 0 : G.links) == null ? void 0 : V.filter((z) => $.has(z))
2090
+ } = Ar(s, i, u);
2091
+ return I(p, function(g, y) {
2092
+ var w, H, j, tt, et;
2093
+ const x = g.nodes != null && g.links != null, T = new Set((w = g.links) != null ? w : []), { nodes: R = /* @__PURE__ */ new Map() } = (x ? g : y) || {}, { nodeIds: B, linkIds: D } = d(
2094
+ (j = (H = u.value) == null ? void 0 : H.links) == null ? void 0 : j.filter((z) => T.has(z))
2081
2095
  );
2082
- ((z = [], ft = []) => {
2083
- a.value = z, r.value = ft;
2084
- })(D, T), _({
2096
+ ((z = [], pt = []) => {
2097
+ a.value = z, r.value = pt;
2098
+ })(B, D), _({
2085
2099
  isEntering: x,
2086
2100
  values: R,
2087
2101
  updatingNodes: (et = (tt = u.value) == null ? void 0 : tt.nodes) == null ? void 0 : et.filter(
@@ -2092,33 +2106,33 @@ const $r = S({
2092
2106
  u,
2093
2107
  (g) => b({ nodes: g.nodes, links: g.links })
2094
2108
  ), I(
2095
- i,
2109
+ c,
2096
2110
  (g) => s.value.leftExtent = g + K
2097
2111
  ), I(
2098
- f,
2112
+ h,
2099
2113
  (g) => s.value.rightExtent = s.value.containerSize.width - (g + K)
2100
2114
  ), I(
2101
- p,
2115
+ v,
2102
2116
  (g) => s.value.bottomExtent = g
2103
2117
  ), I(
2104
- c,
2118
+ l,
2105
2119
  (g) => s.value.topExtent = g
2106
2120
  ), I(
2107
2121
  s.value.containerSize,
2108
- (g) => s.value.rightExtent = g.width - (f.value + K)
2122
+ (g) => s.value.rightExtent = g.width - (h.value + K)
2109
2123
  ), {
2110
2124
  alluvialInstance: s,
2111
- computedData: l,
2112
- defaultColor: Zt,
2125
+ computedData: i,
2126
+ defaultColor: qt,
2113
2127
  highlightedLinkIds: r,
2114
2128
  highlightedNodeIds: a,
2115
- isNodeOrLinkFaded: Gt,
2129
+ isNodeOrLinkFaded: zt,
2116
2130
  maxDepth: m,
2117
2131
  nodeText: o
2118
2132
  };
2119
2133
  }
2120
2134
  });
2121
- var kr = function() {
2135
+ var wr = function() {
2122
2136
  var t = this, n = t._self._c;
2123
2137
  return t._self._setupProxy, t.alluvialInstance ? n("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [t._l(t.alluvialInstance.nodeBlocks, function(r, a) {
2124
2138
  return n("g", { key: `node-block_${a}`, staticClass: "lume-alluvial-group__node", class: {
@@ -2147,34 +2161,34 @@ var kr = function() {
2147
2161
  }, mouseout: function(r) {
2148
2162
  t.alluvialInstance.highlightedLink = null;
2149
2163
  } } })], 2) : t._e();
2150
- }, Sr = [], Lr = /* @__PURE__ */ L(
2151
- $r,
2152
- kr,
2153
- Sr,
2164
+ }, Cr = [], Ir = /* @__PURE__ */ L(
2165
+ Lr,
2166
+ wr,
2167
+ Cr,
2154
2168
  !1,
2155
2169
  null,
2156
2170
  "9b0ccc03",
2157
2171
  null,
2158
2172
  null
2159
2173
  );
2160
- const wr = Lr.exports, Cr = {
2174
+ const Nr = Ir.exports, Rr = {
2161
2175
  margins: {
2162
2176
  top: 0,
2163
2177
  right: 0,
2164
2178
  bottom: 0,
2165
2179
  left: 0
2166
2180
  },
2167
- showAxes: !1,
2181
+ withAxes: !1,
2168
2182
  withTooltip: !1,
2169
2183
  withHover: !1,
2170
2184
  withLegend: !1
2171
- }, Ir = S({
2172
- components: { LumeChart: U, LumeAlluvialGroup: wr },
2185
+ }, Dr = S({
2186
+ components: { LumeChart: Y, LumeAlluvialGroup: Nr },
2173
2187
  props: {
2174
- ...F(lt, !1, !1)
2188
+ ...V(lt, !1, !1)
2175
2189
  },
2176
2190
  setup(e, t) {
2177
- const { options: n } = w(e), { allOptions: r } = M(n, Cr);
2191
+ const { options: n } = C(e), { allOptions: r } = F(n, Rr);
2178
2192
  function a(o) {
2179
2193
  return {
2180
2194
  ...o,
@@ -2188,7 +2202,7 @@ const wr = Lr.exports, Cr = {
2188
2202
  };
2189
2203
  }
2190
2204
  });
2191
- var Nr = function() {
2205
+ var Er = function() {
2192
2206
  var t = this, n = t._self._c;
2193
2207
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { options: t.getAlluvialDiagramOptions(t.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2194
2208
  return [n("lume-alluvial-group", t._b({}, "lume-alluvial-group", r, !1))];
@@ -2197,40 +2211,40 @@ var Nr = function() {
2197
2211
  return [t._t(a, null, null, o || {})];
2198
2212
  } };
2199
2213
  })], null, !0) }, "lume-chart", t.$props, !1));
2200
- }, Rr = [], Dr = /* @__PURE__ */ L(
2201
- Ir,
2202
- Nr,
2203
- Rr,
2214
+ }, Pr = [], Br = /* @__PURE__ */ L(
2215
+ Dr,
2216
+ Er,
2217
+ Pr,
2204
2218
  !1,
2205
2219
  null,
2206
2220
  null,
2207
2221
  null,
2208
2222
  null
2209
2223
  );
2210
- const Da = Dr.exports;
2211
- var qt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(qt || {});
2224
+ const Ba = Br.exports;
2225
+ var Xt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Xt || {});
2212
2226
  const Dt = {
2213
2227
  single: "lume-single-bar-chart",
2214
2228
  grouped: "lume-grouped-bar-chart",
2215
2229
  stacked: "lume-stacked-bar-chart"
2216
- }, Er = S({
2230
+ }, Mr = S({
2217
2231
  components: {
2218
- LumeSingleBarChart: pt(
2219
- () => import("./43767e44.js")
2232
+ LumeSingleBarChart: vt(
2233
+ () => import("./2c318357.js")
2220
2234
  ),
2221
- LumeGroupedBarChart: pt(
2222
- () => import("./ec8ca41a.js")
2235
+ LumeGroupedBarChart: vt(
2236
+ () => import("./797e4fbd.js")
2223
2237
  ),
2224
- LumeStackedBarChart: pt(
2225
- () => import("./c2033638.js")
2238
+ LumeStackedBarChart: vt(
2239
+ () => import("./b0835720.js")
2226
2240
  )
2227
2241
  },
2228
2242
  props: {
2229
- ...F(),
2243
+ ...V(),
2230
2244
  type: {
2231
2245
  type: String,
2232
2246
  default: null,
2233
- validator: (e) => e in qt || e == null
2247
+ validator: (e) => e in Xt || e == null
2234
2248
  }
2235
2249
  },
2236
2250
  setup(e, t) {
@@ -2245,7 +2259,7 @@ const Dt = {
2245
2259
  };
2246
2260
  }
2247
2261
  return {
2248
- component: v(() => {
2262
+ component: f(() => {
2249
2263
  if (!!e.data) {
2250
2264
  if (lt(e.data))
2251
2265
  return Dt.single;
@@ -2261,241 +2275,241 @@ const Dt = {
2261
2275
  };
2262
2276
  }
2263
2277
  });
2264
- var Pr = function() {
2278
+ var Hr = function() {
2265
2279
  var t = this, n = t._self._c;
2266
2280
  return t._self._setupProxy, n(t.component, t._g(t._b({ tag: "component", attrs: { options: t.getBarChartOptions(t.options) }, scopedSlots: t._u([t._l(t.slots, function(r, a) {
2267
2281
  return { key: a, fn: function(o) {
2268
2282
  return [t._t(a, null, null, o || {})];
2269
2283
  } };
2270
2284
  })], null, !0) }, "component", t.$props, !1), t.$listeners));
2271
- }, Br = [], Mr = /* @__PURE__ */ L(
2272
- Er,
2273
- Pr,
2274
- Br,
2285
+ }, jr = [], Fr = /* @__PURE__ */ L(
2286
+ Mr,
2287
+ Hr,
2288
+ jr,
2275
2289
  !1,
2276
2290
  null,
2277
2291
  null,
2278
2292
  null,
2279
2293
  null
2280
2294
  );
2281
- const Ea = Mr.exports;
2282
- function Hr(e) {
2283
- return Object.values(Ee).includes(e) || e == null;
2295
+ const Ma = Fr.exports;
2296
+ function Gr(e) {
2297
+ return Object.values(Se).includes(e) || e == null;
2284
2298
  }
2285
- function jr(e) {
2299
+ function Vr(e) {
2286
2300
  return Object.values(A).includes(e);
2287
2301
  }
2288
- const Fr = (e = !1) => ({
2302
+ const zr = (e = !1) => ({
2289
2303
  type: {
2290
2304
  type: String,
2291
2305
  default: null,
2292
- validator: Hr
2306
+ validator: Gr
2293
2307
  },
2294
2308
  ...e ? {
2295
2309
  orientation: {
2296
2310
  type: String,
2297
2311
  default: A.VERTICAL,
2298
- validator: jr
2312
+ validator: Vr
2299
2313
  }
2300
2314
  } : {}
2301
2315
  });
2302
- function Xt(e) {
2303
- const t = v(() => e.value.map((r) => ({
2316
+ function Ut(e) {
2317
+ const t = f(() => e.value.map((r) => ({
2304
2318
  ...r,
2305
2319
  values: r.values.map((a) => ({
2306
2320
  ...a,
2307
2321
  value: (a == null ? void 0 : a.value) || 0
2308
2322
  }))
2309
- }))), n = v(() => {
2323
+ }))), n = f(() => {
2310
2324
  var r;
2311
- return (r = t.value) == null ? void 0 : r.reduce((a, o) => (o.values.forEach((l, u) => {
2312
- a[u] ? a[u].push(l) : a[u] = [l];
2325
+ return (r = t.value) == null ? void 0 : r.reduce((a, o) => (o.values.forEach((i, u) => {
2326
+ a[u] ? a[u].push(i) : a[u] = [i];
2313
2327
  }), a), []);
2314
2328
  });
2315
2329
  return { multiBarData: t, groupedData: n };
2316
2330
  }
2317
- function Gr(e, t) {
2331
+ function Wr(e, t) {
2318
2332
  return e.value.length === 1 ? "single" : t.value;
2319
2333
  }
2320
- function Vr(e, t, n, r) {
2321
- const a = v(
2334
+ function Zr(e, t, n, r) {
2335
+ const a = f(
2322
2336
  () => r.value === A.HORIZONTAL
2323
2337
  );
2324
2338
  function o(s) {
2325
2339
  Math.min(...s.domain()) > 0 && console.error("Bar linear scale domain cannot start above 0!");
2326
2340
  }
2327
- const l = v(() => {
2328
- const { padding: s, paddingInner: i, paddingOuter: f } = n.value;
2341
+ const i = f(() => {
2342
+ const { padding: s, paddingInner: c, paddingOuter: h } = n.value;
2329
2343
  return a.value ? (() => (o(e.value), e.value))() : st(
2330
2344
  e.value,
2331
2345
  r.value,
2332
- { padding: s, paddingInner: i, paddingOuter: f }
2346
+ { padding: s, paddingInner: c, paddingOuter: h }
2333
2347
  );
2334
- }), u = v(() => {
2335
- const { padding: s, paddingInner: i, paddingOuter: f } = n.value;
2348
+ }), u = f(() => {
2349
+ const { padding: s, paddingInner: c, paddingOuter: h } = n.value;
2336
2350
  return a.value ? st(
2337
2351
  t.value,
2338
2352
  r.value,
2339
- { padding: s, paddingInner: i, paddingOuter: f }
2353
+ { padding: s, paddingInner: c, paddingOuter: h }
2340
2354
  ) : (() => (o(t.value), t.value))();
2341
2355
  });
2342
- return { barXScale: l, barYScale: u };
2356
+ return { barXScale: i, barYScale: u };
2343
2357
  }
2344
- const zr = "skyblue";
2345
- function Wr(e, t, n, r, a, o) {
2346
- const l = v(
2358
+ const qr = "skyblue";
2359
+ function Xr(e, t, n, r, a, o) {
2360
+ const i = f(
2347
2361
  () => r.value === A.HORIZONTAL
2348
2362
  );
2349
- function u(c, p) {
2350
- let h, d;
2351
- return l.value ? (h = c >= 0 ? t.value(0) : t.value(c), d = n.value(n.value.domain()[p])) : (h = t.value(t.value.domain()[p]), d = c < 0 ? n.value(0) : n.value(c)), { x: h, y: d };
2363
+ function u(l, v) {
2364
+ let p, d;
2365
+ return i.value ? (p = l >= 0 ? t.value(0) : t.value(l), d = n.value(n.value.domain()[v])) : (p = t.value(t.value.domain()[v]), d = l < 0 ? n.value(0) : n.value(l)), { x: p, y: d };
2352
2366
  }
2353
- function s(c) {
2354
- return l.value ? c < 0 ? t.value(0) - t.value(c) : t.value(c) - t.value(0) : t.value.bandwidth();
2367
+ function s(l) {
2368
+ return i.value ? l < 0 ? t.value(0) - t.value(l) : t.value(l) - t.value(0) : t.value.bandwidth();
2355
2369
  }
2356
- function i(c) {
2357
- return l.value ? n.value.bandwidth() : c < 0 ? n.value(c) - n.value(0) : n.value(0) - n.value(c);
2370
+ function c(l) {
2371
+ return i.value ? n.value.bandwidth() : l < 0 ? n.value(l) - n.value(0) : n.value(0) - n.value(l);
2358
2372
  }
2359
- function f(c, p, h) {
2360
- var $;
2361
- const { value: d, color: _ } = c, b = ($ = _ != null ? _ : e.value[p].color) != null ? $ : zr, { x: m, y: g } = u(d, h), y = s(d), x = i(d);
2373
+ function h(l, v, p) {
2374
+ var T;
2375
+ const { value: d, color: _ } = l, b = (T = _ != null ? _ : e.value[v].color) != null ? T : qr, { x: m, y: g } = u(d, p), y = s(d), x = c(d);
2362
2376
  return {
2363
2377
  classList: [`lume-fill--${b}`, ...o],
2364
2378
  x: m,
2365
2379
  y: g,
2366
2380
  width: y,
2367
2381
  height: x,
2368
- isFaded: a.value !== -1 && a.value !== h,
2382
+ isFaded: a.value !== -1 && a.value !== p,
2369
2383
  isNegative: d < 0
2370
2384
  };
2371
2385
  }
2372
- return { barAttributeGenerator: f };
2386
+ return { barAttributeGenerator: h };
2373
2387
  }
2374
- function Zr(e, t, n, r, a, o) {
2375
- const l = v(
2388
+ function Ur(e, t, n, r, a, o) {
2389
+ const i = f(
2376
2390
  () => r.value === A.HORIZONTAL
2377
- ), u = v(() => J().domain(e.value.map((d, _) => _)).range([0, t.value.bandwidth()]).padding(0)), s = v(() => J().domain(e.value.map((d, _) => _)).range([0, n.value.bandwidth()]).padding(0));
2378
- function i(d, _, b) {
2379
- if (l.value)
2391
+ ), u = f(() => J().domain(e.value.map((d, _) => _)).range([0, t.value.bandwidth()]).padding(0)), s = f(() => J().domain(e.value.map((d, _) => _)).range([0, n.value.bandwidth()]).padding(0));
2392
+ function c(d, _, b) {
2393
+ if (i.value)
2380
2394
  return d >= 0 ? t.value(0) : t.value(d);
2381
2395
  const m = t.value.domain();
2382
2396
  return t.value(m[_]) + u.value(b);
2383
2397
  }
2384
- function f(d, _, b) {
2385
- if (l.value) {
2398
+ function h(d, _, b) {
2399
+ if (i.value) {
2386
2400
  const m = n.value.domain();
2387
2401
  return n.value(m[_]) + s.value(b);
2388
2402
  }
2389
2403
  return d < 0 ? n.value(0) : n.value(d);
2390
2404
  }
2391
- function c(d) {
2392
- return l.value ? d < 0 ? t.value(0) - t.value(d) : t.value(d) - t.value(0) : u.value.bandwidth();
2405
+ function l(d) {
2406
+ return i.value ? d < 0 ? t.value(0) - t.value(d) : t.value(d) - t.value(0) : u.value.bandwidth();
2393
2407
  }
2394
- function p(d) {
2395
- return l.value ? s.value.bandwidth() : d < 0 ? n.value(d) - n.value(0) : n.value(0) - n.value(d);
2408
+ function v(d) {
2409
+ return i.value ? s.value.bandwidth() : d < 0 ? n.value(d) - n.value(0) : n.value(0) - n.value(d);
2396
2410
  }
2397
- function h(d, _, b) {
2398
- var T;
2399
- const { value: m, color: g } = d, y = (T = g != null ? g : e.value[_].color) != null ? T : Object.values(H)[_], x = i(m, b, _), $ = f(m, b, _), R = c(m), D = p(m);
2411
+ function p(d, _, b) {
2412
+ var D;
2413
+ const { value: m, color: g } = d, y = (D = g != null ? g : e.value[_].color) != null ? D : Object.values(M)[_], x = c(m, b, _), T = h(m, b, _), R = l(m), B = v(m);
2400
2414
  return {
2401
2415
  classList: [`lume-fill--${y}`, ...o],
2402
2416
  x,
2403
- y: $,
2417
+ y: T,
2404
2418
  width: R,
2405
- height: D,
2419
+ height: B,
2406
2420
  isFaded: a.value !== -1 && a.value !== b,
2407
2421
  isNegative: m < 0
2408
2422
  };
2409
2423
  }
2410
- return { barAttributeGenerator: h };
2424
+ return { barAttributeGenerator: p };
2411
2425
  }
2412
- function qr(e, t) {
2413
- const n = v(
2426
+ function Yr(e, t) {
2427
+ const n = f(
2414
2428
  () => t.value === A.HORIZONTAL
2415
- ), r = v(() => {
2429
+ ), r = f(() => {
2416
2430
  const u = e.value.map(
2417
- (s) => s.filter((i) => i.value < 0).reduce((i, f) => i + f.value, 0)
2431
+ (s) => s.filter((c) => c.value < 0).reduce((c, h) => c + h.value, 0)
2418
2432
  );
2419
2433
  return Math.min(...u);
2420
- }), a = v(() => {
2434
+ }), a = f(() => {
2421
2435
  const u = e.value.map(
2422
2436
  (s) => s.reduce(
2423
- (i, f) => f.value >= 0 ? i + f.value : i,
2437
+ (c, h) => h.value >= 0 ? c + h.value : c,
2424
2438
  0
2425
2439
  )
2426
2440
  );
2427
2441
  return Math.max(...u);
2428
2442
  });
2429
- function o(u, s, i) {
2430
- return n.value ? Q().domain([r.value, a.value]).range([0, i.width]) : st(
2431
- J().domain(s == null ? void 0 : s.map((f) => f)).range([0, i.width])
2443
+ function o(u, s, c) {
2444
+ return n.value ? Q().domain([r.value, a.value]).range([0, c.width]) : st(
2445
+ J().domain(s == null ? void 0 : s.map((h) => h)).range([0, c.width])
2432
2446
  );
2433
2447
  }
2434
- function l(u, s, i) {
2448
+ function i(u, s, c) {
2435
2449
  return n.value ? st(
2436
- J().domain(s == null ? void 0 : s.map((f) => f)).range([0, i.height])
2437
- ) : Q().domain([a.value, r.value]).range([0, i.height]);
2450
+ J().domain(s == null ? void 0 : s.map((h) => h)).range([0, c.height])
2451
+ ) : Q().domain([a.value, r.value]).range([0, c.height]);
2438
2452
  }
2439
- return { stackedXScaleGenerator: o, stackedYScaleGenerator: l };
2453
+ return { stackedXScaleGenerator: o, stackedYScaleGenerator: i };
2440
2454
  }
2441
- function Xr(e, t, n, r, a, o) {
2442
- const l = v(
2455
+ function Kr(e, t, n, r, a, o) {
2456
+ const i = f(
2443
2457
  () => r.value === A.HORIZONTAL
2444
- ), u = v(
2445
- () => l.value ? n.value.domain() : t.value.domain()
2446
- ), s = v(
2458
+ ), u = f(
2459
+ () => i.value ? n.value.domain() : t.value.domain()
2460
+ ), s = f(
2447
2461
  () => e.value.map((m) => m.values.map((g) => g == null ? void 0 : g.value))
2448
2462
  );
2449
- function i(m, g, y) {
2450
- let x, $;
2451
- return l.value ? (x = t.value(m >= 0 ? 0 + y : m + y), $ = n.value(u.value[g])) : (x = t.value(u.value[g]), $ = n.value(m >= 0 ? m + y : 0 + y)), { x, y: $ };
2463
+ function c(m, g, y) {
2464
+ let x, T;
2465
+ return i.value ? (x = t.value(m >= 0 ? 0 + y : m + y), T = n.value(u.value[g])) : (x = t.value(u.value[g]), T = n.value(m >= 0 ? m + y : 0 + y)), { x, y: T };
2452
2466
  }
2453
- function f(m) {
2454
- return l.value ? t.value(m) - t.value(0) : t.value.bandwidth();
2467
+ function h(m) {
2468
+ return i.value ? t.value(m) - t.value(0) : t.value.bandwidth();
2455
2469
  }
2456
- function c(m) {
2457
- return l.value ? t.value(0) - t.value(m) : t.value.bandwidth();
2470
+ function l(m) {
2471
+ return i.value ? t.value(0) - t.value(m) : t.value.bandwidth();
2458
2472
  }
2459
- function p(m) {
2460
- return l.value ? n.value.bandwidth() : n.value(0) - n.value(m);
2473
+ function v(m) {
2474
+ return i.value ? n.value.bandwidth() : n.value(0) - n.value(m);
2461
2475
  }
2462
- function h(m) {
2463
- return l.value ? n.value.bandwidth() : n.value(m) - n.value(0);
2476
+ function p(m) {
2477
+ return i.value ? n.value.bandwidth() : n.value(m) - n.value(0);
2464
2478
  }
2465
2479
  function d(m, g) {
2466
- return m ? s.value.reduce((y, x, $) => ($ < m && x[g] >= 0 && (y += x[g]), y), 0) : 0;
2480
+ return m ? s.value.reduce((y, x, T) => (T < m && x[g] >= 0 && (y += x[g]), y), 0) : 0;
2467
2481
  }
2468
2482
  function _(m, g) {
2469
- return m ? s.value.reduce((y, x, $) => ($ < m && x[g] < 0 && (y += x[g]), y), 0) : 0;
2483
+ return m ? s.value.reduce((y, x, T) => (T < m && x[g] < 0 && (y += x[g]), y), 0) : 0;
2470
2484
  }
2471
2485
  function b(m, g, y) {
2472
- var V;
2473
- const { value: x, color: $ } = m, R = x >= 0 ? f(x) : c(x), D = x >= 0 ? p(x) : h(x), T = x >= 0 ? d(g, y) : _(g, y), { x: C, y: B } = i(x, y, T);
2486
+ var j;
2487
+ const { value: x, color: T } = m, R = x >= 0 ? h(x) : l(x), B = x >= 0 ? v(x) : p(x), D = x >= 0 ? d(g, y) : _(g, y), { x: $, y: w } = c(x, y, D);
2474
2488
  return {
2475
- classList: [`lume-fill--${(V = $ != null ? $ : e.value[g].color) != null ? V : Object.values(H)[g]}`, ...o],
2489
+ classList: [`lume-fill--${(j = T != null ? T : e.value[g].color) != null ? j : Object.values(M)[g]}`, ...o],
2476
2490
  width: R,
2477
- height: D,
2478
- x: C,
2479
- y: B,
2491
+ height: B,
2492
+ x: $,
2493
+ y: w,
2480
2494
  isFaded: a.value !== -1 && a.value !== y,
2481
2495
  isNegative: x < 0
2482
2496
  };
2483
2497
  }
2484
2498
  return { barAttributeGenerator: b };
2485
2499
  }
2486
- const Yr = {
2487
- single: Wr,
2488
- grouped: Zr,
2489
- stacked: Xr
2490
- }, Ur = S({
2491
- components: { LumeBar: Ot },
2500
+ const Jr = {
2501
+ single: Xr,
2502
+ grouped: Ur,
2503
+ stacked: Kr
2504
+ }, Qr = S({
2505
+ components: { LumeBar: Tt },
2492
2506
  props: {
2493
- ...Tt(),
2507
+ ...$t(),
2494
2508
  classList: {
2495
2509
  type: [String, Array],
2496
2510
  default: () => []
2497
2511
  },
2498
- ...Fr(!0),
2512
+ ...zr(!0),
2499
2513
  transition: {
2500
2514
  type: Boolean,
2501
2515
  default: !0
@@ -2508,83 +2522,81 @@ const Yr = {
2508
2522
  options: r,
2509
2523
  orientation: a,
2510
2524
  transition: o,
2511
- type: l,
2525
+ type: i,
2512
2526
  xScale: u,
2513
2527
  yScale: s,
2514
- classList: i
2515
- } = w(e), { groupedData: f } = Xt(t), { barXScale: c, barYScale: p } = Vr(
2528
+ classList: c
2529
+ } = C(e), { groupedData: h } = Ut(t), { barXScale: l, barYScale: v } = Zr(
2516
2530
  u,
2517
2531
  s,
2518
2532
  r,
2519
2533
  a
2520
- ), h = v(() => typeof i.value == "string" ? [i.value] : i.value), d = v(() => {
2521
- const b = Gr(t, l), { barAttributeGenerator: m } = Yr[b](
2534
+ ), p = f(() => typeof c.value == "string" ? [c.value] : c.value), d = f(() => {
2535
+ const b = Wr(t, i), { barAttributeGenerator: m } = Jr[b](
2522
2536
  t,
2523
- c,
2524
- p,
2537
+ l,
2538
+ v,
2525
2539
  a,
2526
2540
  n,
2527
- h.value
2541
+ p.value
2528
2542
  );
2529
2543
  return m;
2530
- }), _ = v(() => {
2544
+ }), _ = f(() => {
2531
2545
  if (!!o.value)
2532
2546
  return a.value === A.HORIZONTAL ? "width" : "height";
2533
2547
  });
2534
2548
  return {
2535
- barXScale: c,
2536
- barYScale: p,
2549
+ barXScale: l,
2550
+ barYScale: v,
2537
2551
  computedTransition: _,
2538
2552
  getBarAttributes: d,
2539
- groupedData: f
2553
+ groupedData: h
2540
2554
  };
2541
2555
  }
2542
2556
  });
2543
- var Kr = function() {
2557
+ var ta = function() {
2544
2558
  var t = this, n = t._self._c;
2545
2559
  return t._self._setupProxy, n("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, t._l(t.groupedData, function(r, a) {
2546
- return n("g", { key: a }, t._l(r, function(o, l) {
2547
- return n("lume-bar", t._b({ key: `bar-${l}`, attrs: { transition: t.computedTransition, "data-j-lume-bar": "" } }, "lume-bar", t.getBarAttributes(o, l, a, r), !1));
2560
+ return n("g", { key: a }, t._l(r, function(o, i) {
2561
+ return n("lume-bar", t._b({ key: `bar-${i}`, attrs: { transition: t.computedTransition, "data-j-lume-bar": "" } }, "lume-bar", t.getBarAttributes(o, i, a, r), !1));
2548
2562
  }), 1);
2549
2563
  }), 0);
2550
- }, Jr = [], Qr = /* @__PURE__ */ L(
2551
- Ur,
2552
- Kr,
2553
- Jr,
2564
+ }, ea = [], na = /* @__PURE__ */ L(
2565
+ Qr,
2566
+ ta,
2567
+ ea,
2554
2568
  !1,
2555
2569
  null,
2556
2570
  null,
2557
2571
  null,
2558
2572
  null
2559
2573
  );
2560
- const kt = Qr.exports, ta = {
2574
+ const kt = na.exports, ra = {
2561
2575
  [A.VERTICAL]: {
2562
- showAxes: !0,
2563
2576
  withTooltip: !0,
2564
2577
  xAxisOptions: {},
2565
2578
  yAxisOptions: { gridLines: !0 },
2566
2579
  margins: Z.VERTICAL
2567
2580
  },
2568
2581
  [A.HORIZONTAL]: {
2569
- showAxes: !0,
2570
2582
  withTooltip: !0,
2571
2583
  xAxisOptions: { gridLines: !0 },
2572
2584
  yAxisOptions: { gridLines: !1 },
2573
2585
  margins: Z.HORIZONTAL
2574
2586
  }
2575
- }, ea = S({
2576
- components: { LumeChart: U, LumeBarGroup: kt },
2587
+ }, aa = S({
2588
+ components: { LumeChart: Y, LumeBarGroup: kt },
2577
2589
  props: {
2578
- ...F(lt)
2590
+ ...V(lt)
2579
2591
  },
2580
2592
  setup(e, t) {
2581
- const { orientation: n, options: r } = w(e), a = v(
2582
- () => ta[n.value || A.VERTICAL]
2583
- ), { allOptions: o } = M(r, a);
2593
+ const { orientation: n, options: r } = C(e), a = f(
2594
+ () => ra[n.value || A.VERTICAL]
2595
+ ), { allOptions: o } = F(r, a);
2584
2596
  return { allOptions: o, slots: q(t.slots) };
2585
2597
  }
2586
2598
  });
2587
- var na = function() {
2599
+ var oa = function() {
2588
2600
  var t = this, n = t._self._c;
2589
2601
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "single-bar", options: t.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2590
2602
  return [n("lume-bar-group", t._b({ attrs: { orientation: t.orientation } }, "lume-bar-group", r, !1))];
@@ -2593,45 +2605,43 @@ var na = function() {
2593
2605
  return [t._t(a, null, null, o || {})];
2594
2606
  } };
2595
2607
  })], null, !0) }, "lume-chart", t.$props, !1));
2596
- }, ra = [], aa = /* @__PURE__ */ L(
2597
- ea,
2598
- na,
2599
- ra,
2608
+ }, sa = [], ia = /* @__PURE__ */ L(
2609
+ aa,
2610
+ oa,
2611
+ sa,
2600
2612
  !1,
2601
2613
  null,
2602
2614
  null,
2603
2615
  null,
2604
2616
  null
2605
2617
  );
2606
- const Pa = aa.exports, oa = {
2618
+ const Ha = ia.exports, la = {
2607
2619
  [A.VERTICAL]: {
2608
- showAxes: !0,
2609
2620
  withTooltip: !0,
2610
2621
  xAxisOptions: {},
2611
2622
  yAxisOptions: { gridLines: !0 },
2612
2623
  margins: Z.VERTICAL
2613
2624
  },
2614
2625
  [A.HORIZONTAL]: {
2615
- showAxes: !0,
2616
2626
  withTooltip: !0,
2617
2627
  xAxisOptions: { gridLines: !0 },
2618
2628
  yAxisOptions: { gridLines: !1 },
2619
2629
  margins: Z.HORIZONTAL,
2620
2630
  tooltipOptions: { position: xt[6] }
2621
2631
  }
2622
- }, sa = S({
2623
- components: { LumeChart: U, LumeBarGroup: kt },
2632
+ }, ua = S({
2633
+ components: { LumeChart: Y, LumeBarGroup: kt },
2624
2634
  props: {
2625
- ...F()
2635
+ ...V()
2626
2636
  },
2627
2637
  setup(e, t) {
2628
- const { orientation: n, options: r } = w(e), a = v(
2629
- () => oa[n.value || A.VERTICAL]
2630
- ), { allOptions: o } = M(r, a);
2638
+ const { orientation: n, options: r } = C(e), a = f(
2639
+ () => la[n.value || A.VERTICAL]
2640
+ ), { allOptions: o } = F(r, a);
2631
2641
  return { allOptions: o, slots: q(t.slots) };
2632
2642
  }
2633
2643
  });
2634
- var ia = function() {
2644
+ var ca = function() {
2635
2645
  var t = this, n = t._self._c;
2636
2646
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "grouped-bar", options: t.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2637
2647
  return [n("lume-bar-group", t._b({ attrs: { type: "grouped" } }, "lume-bar-group", r, !1))];
@@ -2640,53 +2650,51 @@ var ia = function() {
2640
2650
  return [t._t(a, null, null, o || {})];
2641
2651
  } };
2642
2652
  })], null, !0) }, "lume-chart", t.$props, !1));
2643
- }, la = [], ua = /* @__PURE__ */ L(
2644
- sa,
2645
- ia,
2646
- la,
2653
+ }, da = [], fa = /* @__PURE__ */ L(
2654
+ ua,
2655
+ ca,
2656
+ da,
2647
2657
  !1,
2648
2658
  null,
2649
2659
  null,
2650
2660
  null,
2651
2661
  null
2652
2662
  );
2653
- const Ba = ua.exports, ca = {
2663
+ const ja = fa.exports, pa = {
2654
2664
  [A.VERTICAL]: {
2655
- showAxes: !0,
2656
2665
  withTooltip: !0,
2657
2666
  xAxisOptions: {},
2658
2667
  yAxisOptions: { gridLines: !0 },
2659
2668
  margins: Z.VERTICAL
2660
2669
  },
2661
2670
  [A.HORIZONTAL]: {
2662
- showAxes: !0,
2663
2671
  withTooltip: !0,
2664
2672
  xAxisOptions: { gridLines: !0 },
2665
2673
  yAxisOptions: { gridLines: !1 },
2666
2674
  margins: Z.HORIZONTAL,
2667
2675
  tooltipOptions: { position: xt[6] }
2668
2676
  }
2669
- }, da = S({
2670
- components: { LumeChart: U, LumeBarGroup: kt },
2677
+ }, va = S({
2678
+ components: { LumeChart: Y, LumeBarGroup: kt },
2671
2679
  props: {
2672
- ...F()
2680
+ ...V()
2673
2681
  },
2674
2682
  setup(e, t) {
2675
- const { data: n, orientation: r, options: a } = w(e), o = v(
2676
- () => ca[r.value || A.VERTICAL]
2677
- ), { allOptions: l } = M(a, o), { internalData: u } = $t(n), { groupedData: s } = Xt(u), { stackedXScaleGenerator: i, stackedYScaleGenerator: f } = qr(
2683
+ const { data: n, orientation: r, options: a } = C(e), o = f(
2684
+ () => pa[r.value || A.VERTICAL]
2685
+ ), { allOptions: i } = F(a, o), { internalData: u } = ct(n), { groupedData: s } = Ut(u), { stackedXScaleGenerator: c, stackedYScaleGenerator: h } = Yr(
2678
2686
  s,
2679
2687
  r
2680
2688
  );
2681
2689
  return {
2682
- allOptions: l,
2683
- stackedXScaleGenerator: i,
2684
- stackedYScaleGenerator: f,
2690
+ allOptions: i,
2691
+ stackedXScaleGenerator: c,
2692
+ stackedYScaleGenerator: h,
2685
2693
  slots: q(t.slots)
2686
2694
  };
2687
2695
  }
2688
2696
  });
2689
- var fa = function() {
2697
+ var ha = function() {
2690
2698
  var t = this, n = t._self._c;
2691
2699
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "stacked-bar", options: t.allOptions, "x-scale": t.stackedXScaleGenerator, "y-scale": t.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2692
2700
  return [n("lume-bar-group", t._b({ attrs: { type: "stacked" } }, "lume-bar-group", r, !1))];
@@ -2695,25 +2703,25 @@ var fa = function() {
2695
2703
  return [t._t(a, null, null, o || {})];
2696
2704
  } };
2697
2705
  })], null, !0) }, "lume-chart", t.$props, !1));
2698
- }, pa = [], va = /* @__PURE__ */ L(
2699
- da,
2700
- fa,
2701
- pa,
2706
+ }, _a = [], ma = /* @__PURE__ */ L(
2707
+ va,
2708
+ ha,
2709
+ _a,
2702
2710
  !1,
2703
2711
  null,
2704
2712
  null,
2705
2713
  null,
2706
2714
  null
2707
2715
  );
2708
- const Ma = va.exports;
2716
+ const Fa = ma.exports;
2709
2717
  function Yt(e) {
2710
2718
  function t(o) {
2711
- let l = null;
2712
- return o == null ? void 0 : o.reduce((u, s, i) => (s == null || s.value == null ? (l ? l.push(i) : l = [i], i === (o == null ? void 0 : o.length) - 1 && u.push(l)) : l && (u.push(l), l = null), u), []);
2719
+ let i = null;
2720
+ return o == null ? void 0 : o.reduce((u, s, c) => (s == null || s.value == null ? (i ? i.push(c) : i = [c], c === (o == null ? void 0 : o.length) - 1 && u.push(i)) : i && (u.push(i), i = null), u), []);
2713
2721
  }
2714
- function n(o, l, u, s) {
2715
- const c = Math.abs(o - l) / (u + 1) * (s + 1);
2716
- return o > l ? o - c : o + c;
2722
+ function n(o, i, u, s) {
2723
+ const l = Math.abs(o - i) / (u + 1) * (s + 1);
2724
+ return o > i ? o - l : o + l;
2717
2725
  }
2718
2726
  function r(o) {
2719
2727
  return function(u) {
@@ -2722,27 +2730,27 @@ function Yt(e) {
2722
2730
  );
2723
2731
  };
2724
2732
  }
2725
- return { computedLineData: v(() => e.value.map((o) => {
2726
- const l = t(o.values);
2733
+ return { computedLineData: f(() => e.value.map((o) => {
2734
+ const i = t(o.values);
2727
2735
  return {
2728
2736
  ...o,
2729
- isDashed: r(l),
2737
+ isDashed: r(i),
2730
2738
  values: o.values.map((u, s) => {
2731
- var f, c;
2732
- const i = l.find(
2733
- (p) => p.includes(s)
2739
+ var h, l;
2740
+ const c = i.find(
2741
+ (v) => v.includes(s)
2734
2742
  );
2735
- if (i) {
2736
- const p = i[0] - 1, h = i[i.length - 1] + 1;
2737
- let d = (f = o.values[p]) == null ? void 0 : f.value, _ = (c = o.values[h]) == null ? void 0 : c.value;
2743
+ if (c) {
2744
+ const v = c[0] - 1, p = c[c.length - 1] + 1;
2745
+ let d = (h = o.values[v]) == null ? void 0 : h.value, _ = (l = o.values[p]) == null ? void 0 : l.value;
2738
2746
  return d == null && (d = _), _ == null && (_ = d), {
2739
2747
  value: n(
2740
2748
  d,
2741
2749
  _,
2742
- i.length,
2743
- i.indexOf(s)
2750
+ c.length,
2751
+ c.indexOf(s)
2744
2752
  ),
2745
- label: Vt
2753
+ label: jt
2746
2754
  };
2747
2755
  }
2748
2756
  return u;
@@ -2750,10 +2758,10 @@ function Yt(e) {
2750
2758
  };
2751
2759
  })) };
2752
2760
  }
2753
- const ha = S({
2754
- components: { LumeLine: Nn, LumePoint: Bn },
2761
+ const ga = S({
2762
+ components: { LumeLine: Wn, LumePoint: Kn },
2755
2763
  props: {
2756
- ...Tt(),
2764
+ ...$t(),
2757
2765
  withPoints: {
2758
2766
  type: Boolean,
2759
2767
  default: !0
@@ -2764,80 +2772,85 @@ const ha = S({
2764
2772
  }
2765
2773
  },
2766
2774
  setup(e) {
2767
- const { data: t, xScale: n, yScale: r } = w(e), a = v(() => {
2768
- if (t.value.every((f) => f.isDashed))
2775
+ const { data: t, options: n, xScale: r, yScale: a } = C(e), o = f(() => {
2776
+ if (t.value.every((v) => v.isDashed))
2769
2777
  return t.value;
2770
- const { computedLineData: i } = Yt(t);
2771
- return i.value;
2772
- }), o = v(() => {
2778
+ const { computedLineData: l } = Yt(t);
2779
+ return l.value;
2780
+ }), i = f(() => {
2773
2781
  if (e.hoveredIndex === -1)
2774
2782
  return;
2775
- const i = Ft(t.value, e.hoveredIndex);
2783
+ const l = Vt(t.value, e.hoveredIndex);
2776
2784
  return {
2777
- d: `M ${_t(n.value, e.hoveredIndex)},${r.value.range()[1]}
2778
- V ${r.value(i)}`
2785
+ d: `M ${mt(r.value, e.hoveredIndex)},${a.value.range()[1]}
2786
+ V ${a.value(l)}`
2779
2787
  };
2780
- });
2781
- function l(i, f) {
2782
- var c, p;
2783
- return i === 0 ? [] : [
2784
- (c = f[i - 1]) == null ? void 0 : c.value,
2785
- (p = f[i]) == null ? void 0 : p.value
2788
+ }), u = f(
2789
+ () => {
2790
+ var l;
2791
+ return ((l = n.value) == null ? void 0 : l.lineWidth) * 2 || void 0;
2792
+ }
2793
+ );
2794
+ function s(l, v) {
2795
+ var p, d;
2796
+ return l === 0 ? [] : [
2797
+ (p = v[l - 1]) == null ? void 0 : p.value,
2798
+ (d = v[l]) == null ? void 0 : d.value
2786
2799
  ];
2787
2800
  }
2788
- function u(i, f) {
2789
- var c;
2790
- return (c = f[i]) == null ? void 0 : c.value;
2801
+ function c(l, v) {
2802
+ var p;
2803
+ return (p = v[l]) == null ? void 0 : p.value;
2791
2804
  }
2792
- function s(i) {
2793
- return e.hoveredIndex === i;
2805
+ function h(l) {
2806
+ return e.hoveredIndex === l;
2794
2807
  }
2795
2808
  return {
2796
- computedGroupData: a,
2797
- getLineValues: l,
2798
- getPointValue: u,
2799
- isPointActive: s,
2800
- overlayLineAttributes: o
2809
+ computedGroupData: o,
2810
+ getLineValues: s,
2811
+ getPointValue: c,
2812
+ isPointActive: h,
2813
+ overlayLineAttributes: i,
2814
+ pointRadius: u
2801
2815
  };
2802
2816
  }
2803
2817
  });
2804
- var _a = function() {
2818
+ var ya = function() {
2805
2819
  var t = this, n = t._self._c;
2806
2820
  return t._self._setupProxy, n("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [n("path", t._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", t.overlayLineAttributes, !1)), t._l(t.computedGroupData, function(r) {
2807
2821
  return n("g", { key: r.label, staticClass: "lume-line-group__group" }, [n("g", { staticClass: "lume-line-group__lines" }, t._l(r.values, function(a, o) {
2808
- return n("lume-line", { key: `line-${o}`, attrs: { "x-scale": t.xScale, "y-scale": t.yScale, values: t.getLineValues(o, r.values), index: o, color: r.color, dashed: r.isDashed(o), transition: t.transition } });
2822
+ return n("lume-line", { key: `line-${o}`, attrs: { color: r.color, dashed: r.isDashed(o), index: o, transition: t.transition, values: t.getLineValues(o, r.values), width: t.options.lineWidth, "x-scale": t.xScale, "y-scale": t.yScale } });
2809
2823
  }), 1), t.withPoints ? n("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, t._l(r.values, function(a, o) {
2810
- return n("lume-point", { key: `point-${o}`, attrs: { "x-scale": t.xScale, "y-scale": t.yScale, value: t.getPointValue(o, r.values), index: o, color: r.color, active: t.isPointActive(o) } });
2824
+ return n("lume-point", { key: `point-${o}`, attrs: { active: t.isPointActive(o), color: r.color, index: o, radius: t.pointRadius, value: t.getPointValue(o, r.values), "x-scale": t.xScale, "y-scale": t.yScale } });
2811
2825
  }), 1) : t._e()]);
2812
2826
  })], 2);
2813
- }, ma = [], ga = /* @__PURE__ */ L(
2814
- ha,
2815
- _a,
2816
- ma,
2827
+ }, ba = [], xa = /* @__PURE__ */ L(
2828
+ ga,
2829
+ ya,
2830
+ ba,
2817
2831
  !1,
2818
2832
  null,
2819
- "1f7a1fc9",
2833
+ "0aa3a767",
2820
2834
  null,
2821
2835
  null
2822
2836
  );
2823
- const Ut = ga.exports, ya = {
2837
+ const Kt = xa.exports, Aa = {
2824
2838
  margins: Z.VERTICAL,
2825
- showAxes: !0,
2826
2839
  startOnZero: !0,
2827
2840
  withTooltip: !0,
2828
2841
  xAxisOptions: {},
2829
2842
  yAxisOptions: { gridLines: !0 }
2830
- }, ba = S({
2831
- components: { LumeChart: U, LumeLineGroup: Ut },
2843
+ }, Oa = S({
2844
+ components: { LumeChart: Y, LumeLineGroup: Kt },
2832
2845
  props: {
2833
- ...F(null, !1)
2846
+ ...V(null, !1)
2834
2847
  },
2835
2848
  setup(e, t) {
2836
- const { options: n } = w(e), { allOptions: r } = M(n, ya);
2849
+ const { options: n } = C(e), { allOptions: r } = F(n, Aa);
2837
2850
  return { allOptions: r, slots: q(t.slots) };
2838
2851
  }
2839
2852
  });
2840
- var xa = function() {
2853
+ var Ta = function() {
2841
2854
  var t = this, n = t._self._c;
2842
2855
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "line", options: t.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2843
2856
  return [n("lume-line-group", t._b({}, "lume-line-group", r, !1))];
@@ -2846,72 +2859,72 @@ var xa = function() {
2846
2859
  return [t._t(a, null, null, o || {})];
2847
2860
  } };
2848
2861
  })], null, !0) }, "lume-chart", t.$props, !1));
2849
- }, Aa = [], Oa = /* @__PURE__ */ L(
2850
- ba,
2851
- xa,
2852
- Aa,
2862
+ }, $a = [], ka = /* @__PURE__ */ L(
2863
+ Oa,
2864
+ Ta,
2865
+ $a,
2853
2866
  !1,
2854
2867
  null,
2855
2868
  null,
2856
2869
  null,
2857
2870
  null
2858
2871
  );
2859
- const Ha = Oa.exports;
2860
- function Ta(e) {
2861
- return { areaPathDefinition: v(
2872
+ const Ga = ka.exports;
2873
+ function Sa(e) {
2874
+ return { areaPathDefinition: f(
2862
2875
  () => function(n, r) {
2863
2876
  if (!n || !r)
2864
2877
  return;
2865
2878
  const a = e.value[0].values;
2866
- return ce().x((o, l) => n(l)).y0(r(Math.min(...r.domain()))).y1((o) => r(o.value))(a);
2879
+ return de().x((o, i) => n(i)).y0(r(Math.min(...r.domain()))).y1((o) => r(o.value))(a);
2867
2880
  }
2868
2881
  ) };
2869
2882
  }
2870
- const $a = {
2883
+ const La = {
2871
2884
  margins: {
2872
2885
  top: 0,
2873
2886
  right: 0,
2874
2887
  bottom: 0,
2875
2888
  left: 0
2876
2889
  },
2877
- showAxes: !1,
2890
+ withAxes: !1,
2878
2891
  showArea: !0,
2879
2892
  startOnZero: !0,
2880
2893
  withLegend: !1,
2881
2894
  tooltipOptions: {
2882
2895
  showTitle: !1
2883
2896
  }
2884
- }, ka = S({
2885
- components: { LumeChart: U, LumeLineGroup: Ut },
2897
+ }, wa = S({
2898
+ components: { LumeChart: Y, LumeLineGroup: Kt },
2886
2899
  props: {
2887
2900
  ...Wt(null),
2888
- ...ut()
2901
+ ...dt()
2889
2902
  },
2890
2903
  setup(e, t) {
2891
- const { data: n, options: r } = w(e), { internalData: a } = $t(n), { allOptions: o } = M(r, $a), { computedLineData: l } = Yt(a), { areaPathDefinition: u } = Ta(l), s = v(() => a.value[0].color), i = v(
2904
+ const { data: n, options: r } = C(e), { internalData: a } = ct(n), { allOptions: o } = F(r, La), { computedLineData: i } = Yt(a), { areaPathDefinition: u } = Sa(i), s = f(() => a.value[0].color), c = f(
2892
2905
  () => n.value[0].areaColor || s.value
2893
2906
  );
2894
- function f(p) {
2907
+ function h(v) {
2895
2908
  return {
2896
- ...p,
2909
+ ...v,
2897
2910
  noMinSize: !0
2898
2911
  };
2899
2912
  }
2900
- function c(p, h, d) {
2901
- return Q().range([0, d.width]).domain([0, p[0].values.length - 1]);
2913
+ function l(v, p, d) {
2914
+ return Q().range([0, d.width]).domain([0, v[0].values.length - 1]);
2902
2915
  }
2903
2916
  return {
2904
2917
  allOptions: o,
2905
- areaColor: i,
2918
+ areaColor: c,
2906
2919
  areaPathDefinition: u,
2907
2920
  computedColor: s,
2908
- getSparklineOptions: f,
2909
- xScaleGenerator: c,
2921
+ getSparklineOptions: h,
2922
+ xScaleGenerator: l,
2910
2923
  slots: q(t.slots)
2911
2924
  };
2912
2925
  }
2913
2926
  });
2914
- var Sa = function() {
2927
+ var Ca = function() {
2915
2928
  var t = this, n = t._self._c;
2916
2929
  return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "line", options: t.getSparklineOptions(t.allOptions), "x-scale": t.xScaleGenerator }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
2917
2930
  return [t.allOptions.showArea ? n("path", { class: [
@@ -2924,36 +2937,36 @@ var Sa = function() {
2924
2937
  return [t._t(a, null, null, o || {})];
2925
2938
  } };
2926
2939
  })], null, !0) }, "lume-chart", t.$props, !1));
2927
- }, La = [], wa = /* @__PURE__ */ L(
2928
- ka,
2929
- Sa,
2930
- La,
2940
+ }, Ia = [], Na = /* @__PURE__ */ L(
2941
+ wa,
2942
+ Ca,
2943
+ Ia,
2931
2944
  !1,
2932
2945
  null,
2933
- "bee12c62",
2946
+ "76a94ce0",
2934
2947
  null,
2935
2948
  null
2936
2949
  );
2937
- const ja = wa.exports;
2950
+ const Va = Na.exports;
2938
2951
  export {
2939
- nn as L,
2940
- Ea as a,
2941
- Pa as b,
2942
- Ba as c,
2943
- Ma as d,
2944
- Ha as e,
2945
- ja as f,
2946
- U as g,
2947
- cn as h,
2948
- hn as i,
2949
- bn as j,
2950
- Ot as k,
2951
- Da as l,
2952
- Nn as m,
2953
- Bn as n,
2954
- wr as o,
2952
+ hn as L,
2953
+ Ma as a,
2954
+ Ha as b,
2955
+ ja as c,
2956
+ Fa as d,
2957
+ Ga as e,
2958
+ Va as f,
2959
+ Y as g,
2960
+ An as h,
2961
+ Sn as i,
2962
+ Nn as j,
2963
+ Tt as k,
2964
+ Ba as l,
2965
+ Wn as m,
2966
+ Kn as n,
2967
+ Nr as o,
2955
2968
  kt as p,
2956
- Ut as q,
2957
- Gn as r
2969
+ Kt as q,
2970
+ nr as r
2958
2971
  };
2959
- //# sourceMappingURL=cf54f0b6.js.map
2972
+ //# sourceMappingURL=df7327e8.js.map