@adyen/lume 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as C, ref as E, isRef as bt, computed as v, watch as H, toRefs as B, inject as Le, reactive as Oe, onMounted as ee, onBeforeUnmount as kt, watchEffect as xt, useSlots as M, provide as we, nextTick as tt, defineAsyncComponent as Ne } from "vue";
1
+ import { defineComponent as H, ref as I, isRef as bt, computed as v, watch as C, toRefs as B, inject as Le, reactive as Oe, onMounted as ee, onBeforeUnmount as kt, watchEffect as xt, useSlots as M, provide as we, nextTick as tt, defineAsyncComponent as Ne } from "vue";
2
2
  import { format as zt, ticks as Wt, scaleBand as _e, scaleLinear as fe, link as Zt, line as Ut, area as Xt } from "d3";
3
3
  import { createPopper as Yt } from "@popperjs/core";
4
4
  import { sankeyLinkHorizontal as Kt, sankey as Jt, sankeyJustify as Qt } from "d3-sankey";
5
- const qt = /* @__PURE__ */ C({
5
+ const qt = /* @__PURE__ */ H({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -40,11 +40,11 @@ const qt = /* @__PURE__ */ C({
40
40
  },
41
41
  emits: ["click", "mouseenter"],
42
42
  setup(t, { expose: e, emit: r }) {
43
- const n = E(null);
43
+ const n = I(null);
44
44
  return e({ ref: n }), { __sfc: !0, emit: r, labelRef: n };
45
45
  }
46
46
  });
47
- function N(t, e, r, n, a, o, l, i) {
47
+ function w(t, e, r, n, a, o, l, i) {
48
48
  var u = typeof t == "function" ? t.options : t;
49
49
  e && (u.render = e, u.staticRenderFns = r, u._compiled = !0), n && (u.functional = !0), o && (u._scopeId = "data-v-" + o);
50
50
  var c;
@@ -83,7 +83,7 @@ var en = function() {
83
83
  }, click: function(a) {
84
84
  return n.emit("click", a);
85
85
  } } }, "g", e.group, !1), [r("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" } }, [r("rect", e._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", e.ghost, !1)), r("text", e._b({ ref: "labelRef", staticClass: "axis__label" }, "text", e.label, !1), [e._v(" " + e._s(e.value) + " ")])]), e.withGridlines ? r("line", e._b({ staticClass: "axis__grid-line" }, "line", e.gridline, !1)) : e._e()]);
86
- }, tn = [], nn = /* @__PURE__ */ N(
86
+ }, tn = [], nn = /* @__PURE__ */ w(
87
87
  qt,
88
88
  en,
89
89
  tn,
@@ -243,7 +243,7 @@ function K(t, e) {
243
243
  }
244
244
  const hn = 0.2;
245
245
  function gn(t, e, r) {
246
- const n = E(), a = v(() => Math.max(...t.value.range())), o = v(() => e.value.length);
246
+ const n = I(), a = v(() => Math.max(...t.value.range())), o = v(() => e.value.length);
247
247
  function l() {
248
248
  if (!e.value)
249
249
  return;
@@ -262,9 +262,9 @@ function gn(t, e, r) {
262
262
  const s = a.value / d, _ = typeof c == "number" && c > 0 && c + 1 || Math.ceil(n.value / s);
263
263
  return u % _ === 0;
264
264
  }
265
- return H(e, l), { showTick: i };
265
+ return C(e, l), { showTick: i };
266
266
  }
267
- var z = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(z || {}), It = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(It || {}), Ze = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ze || {}), Ue = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(Ue || {}), Xe = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(Xe || {});
267
+ var z = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(z || {}), $t = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))($t || {}), Ze = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ze || {}), Ue = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(Ue || {}), Xe = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(Xe || {});
268
268
  const L = {
269
269
  HORIZONTAL: "horizontal",
270
270
  VERTICAL: "vertical"
@@ -272,7 +272,7 @@ const L = {
272
272
  SINGLE: "single",
273
273
  GROUPED: "grouped",
274
274
  STACKED: "stacked"
275
- }, $t = "No data", rt = 20, Et = 0.33, wt = 0.5, Nt = 12, me = 8, bn = 1, kn = [
275
+ }, It = "No data", rt = 20, Et = 0.33, wt = 0.5, Nt = 12, me = 8, bn = 1, kn = [
276
276
  "auto",
277
277
  "auto-start",
278
278
  "auto-end",
@@ -289,7 +289,7 @@ const L = {
289
289
  "left-start",
290
290
  "left-end"
291
291
  ];
292
- function Ie(t) {
292
+ function $e(t) {
293
293
  t != null && t.closest("svg") || q(Y.NotContainedInSvg);
294
294
  }
295
295
  const Ht = {
@@ -430,7 +430,7 @@ const Ht = {
430
430
  getTickGroupAttributes: a,
431
431
  getTickLabelAttributes: i
432
432
  };
433
- }, In = function(t, e, r) {
433
+ }, $n = function(t, e, r) {
434
434
  const n = v(() => {
435
435
  const u = t.value.ticks();
436
436
  return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
@@ -468,14 +468,14 @@ const Ht = {
468
468
  getTickGroupAttributes: a,
469
469
  getTickLabelAttributes: i
470
470
  };
471
- }, $n = {
471
+ }, In = {
472
472
  "x-band-scale-axis": Tn,
473
473
  "y-band-scale-axis": Ln,
474
474
  "x-linear-scale-axis": On,
475
- "y-linear-scale-axis": In
475
+ "y-linear-scale-axis": $n
476
476
  };
477
477
  var Ce = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Ce || {}), De = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(De || {}), xe = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(xe || {});
478
- const En = /* @__PURE__ */ C({
478
+ const En = /* @__PURE__ */ H({
479
479
  __name: "lume-axis",
480
480
  props: {
481
481
  scale: {
@@ -508,7 +508,7 @@ const En = /* @__PURE__ */ C({
508
508
  },
509
509
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
510
510
  setup(t, { emit: e }) {
511
- const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u } = B(r), c = Le("isEmpty", E(!1)), d = Oe({}), s = E(null), _ = E(null), m = E(null), p = v(
511
+ const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u } = B(r), c = Le("isEmpty", I(!1)), d = Oe({}), s = I(null), _ = I(null), m = I(null), p = v(
512
512
  () => r.type ? xe[r.type] : r.position
513
513
  ), h = v(
514
514
  () => r.type || (p.value === "left" ? "y" : "x")
@@ -518,18 +518,18 @@ const En = /* @__PURE__ */ C({
518
518
  i,
519
519
  h.value === "x" ? xn : An
520
520
  ), { showTick: b } = gn(a, s, f), x = v(() => {
521
- var I, g, O, w;
522
- return h.value === "y" && c.value && (!a.value || nt(a.value)) ? `translate(0, ${((I = o.value) == null ? void 0 : I.height) / 2})` : h.value === "x" && c.value && (!a.value || nt(a.value)) ? `translate(-${((g = o.value) == null ? void 0 : g.width) / 2}, ${(O = o.value) == null ? void 0 : O.height})` : `translate(0, ${h.value === "x" ? (w = o.value) == null ? void 0 : w.height : 0})`;
521
+ var $, g, O, N;
522
+ return h.value === "y" && c.value && (!a.value || nt(a.value)) ? `translate(0, ${(($ = o.value) == null ? void 0 : $.height) / 2})` : h.value === "x" && c.value && (!a.value || nt(a.value)) ? `translate(-${((g = o.value) == null ? void 0 : g.width) / 2}, ${(O = o.value) == null ? void 0 : O.height})` : `translate(0, ${h.value === "x" ? (N = o.value) == null ? void 0 : N.height : 0})`;
523
523
  }), A = v(() => {
524
524
  if (!a.value)
525
525
  return [];
526
526
  if (X(a.value))
527
527
  return a.value.labels || a.value.domain();
528
- const { tickCount: I } = f.value, [g, O] = a.value.domain();
529
- return Wt(g, O, I);
530
- }), $ = v(() => {
531
- const { tickFormat: I } = f.value;
532
- return Ae(I);
528
+ const { tickCount: $ } = f.value, [g, O] = a.value.domain();
529
+ return Wt(g, O, $);
530
+ }), E = v(() => {
531
+ const { tickFormat: $ } = f.value;
532
+ return Ae($);
533
533
  }), T = v(
534
534
  () => f.value.withHover && y.value && l.value > -1
535
535
  ), D = v(
@@ -538,9 +538,9 @@ const En = /* @__PURE__ */ C({
538
538
  // If x axis, get the tick height
539
539
  Math.max(
540
540
  ...(s.value || []).map(
541
- (I) => {
541
+ ($) => {
542
542
  var g, O;
543
- return ((O = (g = I.ref).getBBox) == null ? void 0 : O.call(g).height) + D.value;
543
+ return ((O = (g = $.ref).getBBox) == null ? void 0 : O.call(g).height) + D.value;
544
544
  }
545
545
  )
546
546
  )
@@ -548,33 +548,33 @@ const En = /* @__PURE__ */ C({
548
548
  // If y axis, get the tick width
549
549
  Math.max(
550
550
  ...(s.value || []).map(
551
- (I) => {
551
+ ($) => {
552
552
  var g, O;
553
- return ((O = (g = I.ref).getBBox) == null ? void 0 : O.call(g).width) + D.value;
553
+ return ((O = (g = $.ref).getBBox) == null ? void 0 : O.call(g).width) + D.value;
554
554
  }
555
555
  )
556
556
  )
557
557
  ));
558
- function R(I) {
558
+ function R($) {
559
559
  const { showTicks: g } = f.value;
560
- return g === !1 ? "" : $.value(I);
560
+ return g === !1 ? "" : E.value($);
561
561
  }
562
- function G(I, g, O) {
563
- e("mouseenter", { index: y.value ? I : null, value: g, event: O });
562
+ function G($, g, O) {
563
+ e("mouseenter", { index: y.value ? $ : null, value: g, event: O });
564
564
  }
565
- function j(I, g, O) {
566
- e("click", { index: I, value: g, event: O });
565
+ function j($, g, O) {
566
+ e("click", { index: $, value: g, event: O });
567
567
  }
568
- function W(I) {
568
+ function W($) {
569
569
  var g;
570
570
  if (!(!s.value || !s.value.length))
571
- return (g = s.value[I]) == null ? void 0 : g.ref;
571
+ return (g = s.value[$]) == null ? void 0 : g.ref;
572
572
  }
573
573
  function te() {
574
574
  m.value = A.value.map(
575
- (I, g) => ({
576
- value: R(I),
577
- group: d.getTickGroupAttributes(I, g),
575
+ ($, g) => ({
576
+ value: R($),
577
+ group: d.getTickGroupAttributes($, g),
578
578
  ghost: d.getTickGhostAttributes(W(g)),
579
579
  label: d.getTickLabelAttributes(),
580
580
  gridline: d.getGridLinesAttributes()
@@ -582,19 +582,19 @@ const En = /* @__PURE__ */ C({
582
582
  );
583
583
  }
584
584
  function Q() {
585
- m.value && m.value.map((I) => (I.gridline = d.getGridLinesAttributes(), I));
585
+ m.value && m.value.map(($) => ($.gridline = d.getGridLinesAttributes(), $));
586
586
  }
587
587
  function ne() {
588
588
  if (!a.value)
589
589
  return;
590
- const I = a.value.step ? "bandScale" : "linearScale", g = $n[`${h.value}-${Ce[I]}`];
590
+ const $ = a.value.step ? "bandScale" : "linearScale", g = In[`${h.value}-${Ce[$]}`];
591
591
  Object.entries(g(a, o, f) || []).forEach(
592
- ([O, w]) => {
593
- d[O] = w;
592
+ ([O, N]) => {
593
+ d[O] = N;
594
594
  }
595
595
  );
596
596
  }
597
- return H(a, ne, { flush: "sync", immediate: !0 }), H(a, te, { immediate: !0 }), H(s, te), H(S, (I) => e("lume__internal--axis-size", I)), H(r.containerSize, Q), ee(() => Ie(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: Ce, POSITIONS: De, TYPES: xe, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: d, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: p, computedType: h, shouldHover: y, allOptions: f, showTick: b, axisTransform: x, ticks: A, tickFormatter: $, isHovering: T, axisLabelOffset: D, axisSize: S, formatTick: R, handleTickMouseenter: G, handleTickClick: j, getTextNode: W, setTicks: te, updateGridlines: Q, init: ne, LumeTick: rn };
597
+ return C(a, ne, { flush: "sync", immediate: !0 }), C(a, te, { immediate: !0 }), C(s, te), C(S, ($) => e("lume__internal--axis-size", $)), C(r.containerSize, Q), ee(() => $e(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: Ce, POSITIONS: De, TYPES: xe, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: d, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: p, computedType: h, shouldHover: y, allOptions: f, showTick: b, axisTransform: x, ticks: A, tickFormatter: E, isHovering: T, axisLabelOffset: D, axisSize: S, formatTick: R, handleTickMouseenter: G, handleTickClick: j, getTextNode: W, setTicks: te, updateGridlines: Q, init: ne, LumeTick: rn };
598
598
  }
599
599
  });
600
600
  var wn = function() {
@@ -614,7 +614,7 @@ var wn = function() {
614
614
  a
615
615
  );
616
616
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
617
- }, Nn = [], Hn = /* @__PURE__ */ N(
617
+ }, Nn = [], Hn = /* @__PURE__ */ w(
618
618
  En,
619
619
  wn,
620
620
  Nn,
@@ -638,12 +638,12 @@ function Dn(t, e, r, n) {
638
638
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
639
639
  }
640
640
  function Sn(t, e, r, n) {
641
- const a = E(0), o = E(0), l = v(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
641
+ const a = I(0), o = I(0), l = v(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
642
642
  return ee(() => {
643
643
  a.value = r.value, o.value = n.value;
644
- }), H(r, (i) => a.value = i), H(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
644
+ }), C(r, (i) => a.value = i), C(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
645
645
  }
646
- const Rn = /* @__PURE__ */ C({
646
+ const Rn = /* @__PURE__ */ H({
647
647
  __name: "lume-bar",
648
648
  props: {
649
649
  x: {
@@ -681,10 +681,10 @@ const Rn = /* @__PURE__ */ C({
681
681
  },
682
682
  emits: ["click", "mouseover", "mouseleave"],
683
683
  setup(t, { emit: e }) {
684
- const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = B(r), c = E(null), d = v(
684
+ const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = B(r), c = I(null), d = v(
685
685
  () => typeof u.value == "string" ? [u.value] : u.value
686
686
  ), s = v(() => i.value === "width"), _ = v(() => i.value === "height"), m = Sn(n, a, o, l), { computedX: p, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: f } = Dn(n, a, o, l), b = v(() => y.value ? 1 : (s.value ? m.computedWidth : o).value), x = v(() => f.value ? 1 : (_.value ? m.computedHeight : l).value), A = s.value || _.value ? m.transformOrigin : null;
687
- return ee(() => Ie(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: c, computedClasses: d, shouldTransitionWidth: s, shouldTransitionHeight: _, transitionProps: m, computedX: p, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: f, computedWidth: b, computedHeight: x, transformOrigin: A };
687
+ return ee(() => $e(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: c, computedClasses: d, shouldTransitionWidth: s, shouldTransitionHeight: _, transitionProps: m, computedX: p, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: f, computedWidth: b, computedHeight: x, transformOrigin: A };
688
688
  }
689
689
  });
690
690
  var Pn = function() {
@@ -704,7 +704,7 @@ var Pn = function() {
704
704
  }, mouseleave: function(a) {
705
705
  return n.emit("mouseleave", a);
706
706
  } } });
707
- }, Bn = [], Fn = /* @__PURE__ */ N(
707
+ }, Bn = [], Fn = /* @__PURE__ */ w(
708
708
  Rn,
709
709
  Pn,
710
710
  Bn,
@@ -716,7 +716,7 @@ var Pn = function() {
716
716
  );
717
717
  const Ye = Fn.exports;
718
718
  function Gn() {
719
- const t = E(), e = Oe({
719
+ const t = I(), e = Oe({
720
720
  dimensions: {}
721
721
  }), r = new ResizeObserver((n) => {
722
722
  n.forEach((a) => {
@@ -729,7 +729,7 @@ function Gn() {
729
729
  r.unobserve(t.value);
730
730
  }), { resizeState: e, resizeRef: t };
731
731
  }
732
- const jn = /* @__PURE__ */ C({
732
+ const jn = /* @__PURE__ */ H({
733
733
  __name: "lume-chart-container",
734
734
  props: {
735
735
  margins: {
@@ -751,7 +751,7 @@ const jn = /* @__PURE__ */ C({
751
751
  },
752
752
  emits: ["click", "mouseenter", "mouseleave", "resize"],
753
753
  setup(t, { emit: e }) {
754
- const r = t, { margins: n, containerSize: a } = B(r), o = E(null), { resizeRef: l, resizeState: i } = Gn(), u = v(
754
+ const r = t, { margins: n, containerSize: a } = B(r), o = I(null), { resizeRef: l, resizeState: i } = Gn(), u = v(
755
755
  () => a.value.height + n.value.top + n.value.bottom
756
756
  );
757
757
  return xt(() => {
@@ -783,7 +783,7 @@ var Vn = function() {
783
783
  }, mouseleave: function(a) {
784
784
  return n.emit("mouseleave", a);
785
785
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.margins.left}, ${n.margins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
786
- }, Mn = [], zn = /* @__PURE__ */ N(
786
+ }, Mn = [], zn = /* @__PURE__ */ w(
787
787
  jn,
788
788
  Vn,
789
789
  Mn,
@@ -793,7 +793,7 @@ var Vn = function() {
793
793
  null,
794
794
  null
795
795
  );
796
- const Wn = zn.exports, Zn = /* @__PURE__ */ C({
796
+ const Wn = zn.exports, Zn = /* @__PURE__ */ H({
797
797
  __name: "lume-chart-legend",
798
798
  props: {
799
799
  data: {
@@ -818,7 +818,7 @@ var Un = function() {
818
818
  return n.emit("mouseenter", { index: o, dataset: a, event: l });
819
819
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${a.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(a.label || o) + " ")]);
820
820
  }), 0);
821
- }, Xn = [], Yn = /* @__PURE__ */ N(
821
+ }, Xn = [], Yn = /* @__PURE__ */ w(
822
822
  Zn,
823
823
  Un,
824
824
  Xn,
@@ -833,7 +833,7 @@ const Jn = {};
833
833
  var Qn = function() {
834
834
  var e = this, r = e._self._c;
835
835
  return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
836
- }, qn = [], er = /* @__PURE__ */ N(
836
+ }, qn = [], er = /* @__PURE__ */ w(
837
837
  Jn,
838
838
  Qn,
839
839
  qn,
@@ -848,7 +848,7 @@ const nr = {};
848
848
  var rr = function() {
849
849
  var e = this, r = e._self._c;
850
850
  return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
851
- }, ar = [], or = /* @__PURE__ */ N(
851
+ }, ar = [], or = /* @__PURE__ */ w(
852
852
  nr,
853
853
  rr,
854
854
  ar,
@@ -858,7 +858,7 @@ var rr = function() {
858
858
  null,
859
859
  null
860
860
  );
861
- const lr = or.exports, ur = /* @__PURE__ */ C({
861
+ const lr = or.exports, ur = /* @__PURE__ */ H({
862
862
  __name: "lume-tooltip-item",
863
863
  props: {
864
864
  color: {
@@ -873,7 +873,7 @@ const lr = or.exports, ur = /* @__PURE__ */ C({
873
873
  var ir = function() {
874
874
  var e = this, r = e._self._c;
875
875
  return e._self._setupProxy, r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [e.color ? r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${e.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }) : e._e(), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._t("label")], 2), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._t("value")], 2)]);
876
- }, sr = [], cr = /* @__PURE__ */ N(
876
+ }, sr = [], cr = /* @__PURE__ */ w(
877
877
  ur,
878
878
  ir,
879
879
  sr,
@@ -883,7 +883,7 @@ var ir = function() {
883
883
  null,
884
884
  null
885
885
  );
886
- const dr = cr.exports, vr = /* @__PURE__ */ C({
886
+ const dr = cr.exports, vr = /* @__PURE__ */ H({
887
887
  __name: "lume-tooltip",
888
888
  props: {
889
889
  targetElement: {
@@ -923,7 +923,7 @@ const dr = cr.exports, vr = /* @__PURE__ */ C({
923
923
  },
924
924
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
925
925
  setup(t, { emit: e }) {
926
- const r = t, n = E(null), { items: a, options: o } = B(r), l = M(), i = E(null), { allOptions: u } = K(o), c = v(
926
+ const r = t, n = I(null), { items: a, options: o } = B(r), l = M(), i = I(null), { allOptions: u } = K(o), c = v(
927
927
  () => u.value.fixedPositioning ?? r.fixedPositioning
928
928
  ), d = v(
929
929
  () => c.value ? "fixed" : "absolute"
@@ -944,8 +944,8 @@ const dr = cr.exports, vr = /* @__PURE__ */ C({
944
944
  () => u.value.showTitle !== !1 && r.title != null
945
945
  ), m = v(() => Ae(u.value.valueFormat)), p = v(() => Ae(u.value.titleFormat)), h = v(
946
946
  () => {
947
- var $;
948
- return (($ = a.value) == null ? void 0 : $.find((T) => T.isSummary)) || {
947
+ var E;
948
+ return ((E = a.value) == null ? void 0 : E.find((T) => T.isSummary)) || {
949
949
  label: u.value.summary ?? r.summary
950
950
  };
951
951
  }
@@ -965,10 +965,10 @@ const dr = cr.exports, vr = /* @__PURE__ */ C({
965
965
  i.value.state.elements.reference = r.targetElement, i.value.update(), e("moved", r.targetElement);
966
966
  }() : x());
967
967
  }
968
- return H(
968
+ return C(
969
969
  () => r.targetElement,
970
- ($, T) => {
971
- !T && $ ? b() : A();
970
+ (E, T) => {
971
+ !T && E ? b() : A();
972
972
  }
973
973
  ), ee(b), kt(x), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: d, allModifiers: s, showTitle: _, formatValue: m, formatTitle: p, summaryItem: h, hasSummary: y, computedItems: f, initPopper: b, destroyPopper: x, updatePopper: A, LumeTooltipTitle: tr, LumeTooltipSummary: lr, LumeTooltipItem: dr };
974
974
  }
@@ -998,7 +998,7 @@ var _r = function() {
998
998
  });
999
999
  })], 2)];
1000
1000
  })], 2);
1001
- }, fr = [], pr = /* @__PURE__ */ N(
1001
+ }, fr = [], pr = /* @__PURE__ */ w(
1002
1002
  vr,
1003
1003
  _r,
1004
1004
  fr,
@@ -1020,7 +1020,7 @@ function br(t) {
1020
1020
  function at(t, e) {
1021
1021
  return e === re.Divergent ? Object.values(Ze).includes(t) : Object.values({
1022
1022
  ...z,
1023
- ...It,
1023
+ ...$t,
1024
1024
  ...Ue,
1025
1025
  ...Xe
1026
1026
  }).includes(t);
@@ -1113,7 +1113,7 @@ function Je(t, e, r, n, a) {
1113
1113
  updateSize: c
1114
1114
  };
1115
1115
  }
1116
- const Ir = () => ({
1116
+ const $r = () => ({
1117
1117
  xScale: {
1118
1118
  type: Function,
1119
1119
  default: null
@@ -1123,8 +1123,8 @@ const Ir = () => ({
1123
1123
  default: null
1124
1124
  }
1125
1125
  });
1126
- function $r(t, e, r, n, a) {
1127
- const o = E(null), l = E(null);
1126
+ function Ir(t, e, r, n, a) {
1127
+ const o = I(null), l = I(null);
1128
1128
  function i() {
1129
1129
  var d, s, _, m;
1130
1130
  const { width: u, height: c } = r;
@@ -1185,7 +1185,7 @@ function Ct(t) {
1185
1185
  }
1186
1186
  const de = (t, e = !0) => ({
1187
1187
  ...Ke(t),
1188
- ...Ir(),
1188
+ ...$r(),
1189
1189
  ...pe(),
1190
1190
  classList: {
1191
1191
  type: [String, Array],
@@ -1209,7 +1209,7 @@ const de = (t, e = !0) => ({
1209
1209
  type: [Number, String],
1210
1210
  default: null
1211
1211
  }
1212
- }), $e = () => ({
1212
+ }), Ie = () => ({
1213
1213
  data: {
1214
1214
  type: Array,
1215
1215
  required: !0
@@ -1251,10 +1251,10 @@ const de = (t, e = !0) => ({
1251
1251
  type: [String, Array],
1252
1252
  default: () => []
1253
1253
  }
1254
- }), wr = /* @__PURE__ */ C({
1254
+ }), wr = /* @__PURE__ */ H({
1255
1255
  __name: "lume-overlay-group",
1256
1256
  props: {
1257
- ...$e(),
1257
+ ...Ie(),
1258
1258
  orientation: {
1259
1259
  type: String,
1260
1260
  default: L.VERTICAL
@@ -1288,7 +1288,7 @@ var Nr = function() {
1288
1288
  return n.emit("click", { index: o, event: l });
1289
1289
  } } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
1290
1290
  }), 1);
1291
- }, Hr = [], Cr = /* @__PURE__ */ N(
1291
+ }, Hr = [], Cr = /* @__PURE__ */ w(
1292
1292
  wr,
1293
1293
  Nr,
1294
1294
  Hr,
@@ -1405,7 +1405,7 @@ function Dt(t, e, r, n, a, o, l, i) {
1405
1405
  cy: (o == null ? void 0 : o.value) === L.HORIZONTAL ? Se(n.value, h) : n.value(p)
1406
1406
  }));
1407
1407
  }
1408
- return H(
1408
+ return C(
1409
1409
  [r, n],
1410
1410
  () => {
1411
1411
  r.value && n.value && (l != null && l.value) && u.value && c(l.value);
@@ -1431,7 +1431,7 @@ function jr(t) {
1431
1431
  return {
1432
1432
  color: ((l = o[r]) == null ? void 0 : l.color) || n,
1433
1433
  label: a,
1434
- value: ((i = o[r]) == null ? void 0 : i.label) ?? ((u = o[r]) == null ? void 0 : u.value) ?? $t
1434
+ value: ((i = o[r]) == null ? void 0 : i.label) ?? ((u = o[r]) == null ? void 0 : u.value) ?? It
1435
1435
  };
1436
1436
  })
1437
1437
  ) };
@@ -1462,7 +1462,7 @@ function zr(t, e) {
1462
1462
  function Wr(t, e) {
1463
1463
  return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Fe : t.left;
1464
1464
  }
1465
- const Zr = /* @__PURE__ */ C({
1465
+ const Zr = /* @__PURE__ */ H({
1466
1466
  __name: "lume-chart",
1467
1467
  props: {
1468
1468
  ...de(),
@@ -1472,7 +1472,7 @@ const Zr = /* @__PURE__ */ C({
1472
1472
  }
1473
1473
  },
1474
1474
  setup(t, { emit: e }) {
1475
- const r = t, n = M(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: c } = B(r), d = E(-1), s = E(null), _ = E(null), m = E([]), p = E(null), h = E(0), y = E(0), { allOptions: f } = K(i), { internalData: b, computedLabels: x, containerSize: A, updateSize: $, chartID: T } = Je(a, o, l, f, u), { listenInternalEvent: D } = J(e, T), { xScale: S, yScale: R } = $r(
1475
+ const r = t, n = M(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: c } = B(r), d = I(-1), s = I(null), _ = I(null), m = I([]), p = I(null), h = I(0), y = I(0), { allOptions: f } = K(i), { internalData: b, computedLabels: x, containerSize: A, updateSize: E, chartID: T } = Je(a, o, l, f, u), { listenInternalEvent: D } = J(e, T), { xScale: S, yScale: R } = Ir(
1476
1476
  b,
1477
1477
  x,
1478
1478
  A,
@@ -1498,7 +1498,7 @@ const Zr = /* @__PURE__ */ C({
1498
1498
  })), ne = v(() => {
1499
1499
  var k;
1500
1500
  return (k = f.value.xAxisOptions) == null ? void 0 : k.title;
1501
- }), I = v(() => {
1501
+ }), $ = v(() => {
1502
1502
  var k;
1503
1503
  return (k = f.value.yAxisOptions) == null ? void 0 : k.title;
1504
1504
  }), g = v(() => {
@@ -1506,12 +1506,12 @@ const Zr = /* @__PURE__ */ C({
1506
1506
  return ((k = f.value.xAxisOptions) == null ? void 0 : k.withTitle) !== !1 && ne.value;
1507
1507
  }), O = v(() => {
1508
1508
  var k;
1509
- return ((k = f.value.yAxisOptions) == null ? void 0 : k.withTitle) !== !1 && I.value;
1510
- }), w = v(
1509
+ return ((k = f.value.yAxisOptions) == null ? void 0 : k.withTitle) !== !1 && $.value;
1510
+ }), N = v(
1511
1511
  () => a.value.every((k) => !k.values.length)
1512
1512
  ), Z = v(() => {
1513
1513
  const k = [], { noBaseScales: P } = f.value;
1514
- return !P && !w.value && k.push(() => !!(j.value && W.value)), k.every((V) => V() === !0);
1514
+ return !P && !N.value && k.push(() => !!(j.value && W.value)), k.every((V) => V() === !0);
1515
1515
  }), { hasNegativeValues: U } = Rr(b), { negativeBarAttributes: F } = Pr(
1516
1516
  A,
1517
1517
  j,
@@ -1572,23 +1572,23 @@ const Zr = /* @__PURE__ */ C({
1572
1572
  function Vt({ index: k, value: P, event: V }) {
1573
1573
  e("axis-click", { index: k, value: P, event: V });
1574
1574
  }
1575
- return H(
1575
+ return C(
1576
1576
  a,
1577
1577
  (k, P) => e("data-changed", { newValue: k, oldValue: P })
1578
- ), H(
1578
+ ), C(
1579
1579
  o,
1580
1580
  (k, P) => e("labels-changed", { newValue: k, oldValue: P })
1581
- ), H(w, (k) => k && q(Y.Empty), { immediate: !0 }), H(() => r.hoveredIndex, Ee), H(
1581
+ ), C(N, (k) => k && q(Y.Empty), { immediate: !0 }), C(() => r.hoveredIndex, Ee), C(
1582
1582
  m,
1583
1583
  (k) => {
1584
1584
  k && r.hoveredIndex != null && d.value === -1 && Ee(r.hoveredIndex);
1585
1585
  },
1586
1586
  { flush: "post" }
1587
- ), H(p, (k) => {
1587
+ ), C(p, (k) => {
1588
1588
  k === !1 && le.opened && ke();
1589
1589
  }), ee(async () => {
1590
1590
  e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), D("lume__internal--hover", be);
1591
- }), we("chartID", T), we("isEmpty", w), we("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: d, tooltipAnchor: s, chartContainer: _, tooltipAnchorAttributes: m, isHoveringTooltip: p, xAxisHeight: h, yAxisWidth: y, allOptions: f, internalData: b, computedLabels: x, containerSize: A, updateSize: $, chartID: T, listenInternalEvent: D, xScale: S, yScale: R, computedMargins: G, computedXScale: j, computedYScale: W, computedXAxisOptions: te, computedYAxisOptions: Q, xAxisTitle: ne, yAxisTitle: I, showXAxisTitle: g, showYAxisTitle: O, isEmpty: w, isReady: Z, hasNegativeValues: U, negativeBarAttributes: F, shouldGenerateTooltipAnchors: qe, tooltipConfig: le, showTooltip: ge, hideTooltip: ue, getTooltipItems: ye, isTooltipOpened: ie, tooltipPosition: Ft, shouldHideTooltip: et, handleInternalHover: be, handleHideTooltip: ke, handleExternalHover: Ee, handleMouseleave: Gt, handleAxisMouseenter: jt, handleAxisClick: Vt, LumeAxis: Cn, LumeBar: Ye, LumeChartContainer: Wn, LumeChartLegend: Kn, LumeTooltip: mr, LumeOverlayGroup: Dr, TOOLTIP_ANCHOR_RADIUS: bn };
1591
+ }), we("chartID", T), we("isEmpty", N), we("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: d, tooltipAnchor: s, chartContainer: _, tooltipAnchorAttributes: m, isHoveringTooltip: p, xAxisHeight: h, yAxisWidth: y, allOptions: f, internalData: b, computedLabels: x, containerSize: A, updateSize: E, chartID: T, listenInternalEvent: D, xScale: S, yScale: R, computedMargins: G, computedXScale: j, computedYScale: W, computedXAxisOptions: te, computedYAxisOptions: Q, xAxisTitle: ne, yAxisTitle: $, showXAxisTitle: g, showYAxisTitle: O, isEmpty: N, isReady: Z, hasNegativeValues: U, negativeBarAttributes: F, shouldGenerateTooltipAnchors: qe, tooltipConfig: le, showTooltip: ge, hideTooltip: ue, getTooltipItems: ye, isTooltipOpened: ie, tooltipPosition: Ft, shouldHideTooltip: et, handleInternalHover: be, handleHideTooltip: ke, handleExternalHover: Ee, handleMouseleave: Gt, handleAxisMouseenter: jt, handleAxisClick: Vt, LumeAxis: Cn, LumeBar: Ye, LumeChartContainer: Wn, LumeChartLegend: Kn, LumeTooltip: mr, LumeOverlayGroup: Dr, TOOLTIP_ANCHOR_RADIUS: bn };
1592
1592
  }
1593
1593
  });
1594
1594
  var Ur = function() {
@@ -1648,7 +1648,7 @@ var Ur = function() {
1648
1648
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(a, o) {
1649
1649
  return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", a, !1));
1650
1650
  }), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1651
- }, Xr = [], Yr = /* @__PURE__ */ N(
1651
+ }, Xr = [], Yr = /* @__PURE__ */ w(
1652
1652
  Zr,
1653
1653
  Ur,
1654
1654
  Xr,
@@ -1658,7 +1658,7 @@ var Ur = function() {
1658
1658
  null,
1659
1659
  null
1660
1660
  );
1661
- const ve = Yr.exports, dt = 8, Kr = 8, Jr = 20, ce = 2, vt = 2, Qr = /* @__PURE__ */ C({
1661
+ const ve = Yr.exports, dt = 8, Kr = 8, Jr = 20, ce = 2, vt = 2, Qr = /* @__PURE__ */ H({
1662
1662
  __name: "lume-alluvial-node-label",
1663
1663
  props: {
1664
1664
  bottom: { type: Boolean, default: !1 },
@@ -1667,8 +1667,8 @@ const ve = Yr.exports, dt = 8, Kr = 8, Jr = 20, ce = 2, vt = 2, Qr = /* @__PURE_
1667
1667
  },
1668
1668
  emits: ["lume__internal--node-resize"],
1669
1669
  setup(t, { emit: e }) {
1670
- const r = t, n = E(null), a = E(r.maxWidth), o = E(1);
1671
- return H(
1670
+ const r = t, n = I(null), a = I(r.maxWidth), o = I(1);
1671
+ return C(
1672
1672
  [n, () => r.maxWidth],
1673
1673
  async ([l, i]) => {
1674
1674
  if (l && i) {
@@ -1678,7 +1678,7 @@ const ve = Yr.exports, dt = 8, Kr = 8, Jr = 20, ce = 2, vt = 2, Qr = /* @__PURE_
1678
1678
  }
1679
1679
  },
1680
1680
  { immediate: !0 }
1681
- ), H(a, async (l) => {
1681
+ ), C(a, async (l) => {
1682
1682
  l !== r.maxWidth && (await tt(), e("lume__internal--node-resize"));
1683
1683
  }), { __sfc: !0, props: r, emit: e, text: n, foreignObjectWidth: a, foreignObjectHeight: o };
1684
1684
  }
@@ -1686,7 +1686,7 @@ const ve = Yr.exports, dt = 8, Kr = 8, Jr = 20, ce = 2, vt = 2, Qr = /* @__PURE_
1686
1686
  var qr = function() {
1687
1687
  var e = this, r = e._self._c, n = e._self._setupProxy;
1688
1688
  return e.maxWidth ? r("foreignObject", { staticClass: "lume-alluvial-group__node-foreign", attrs: { y: e.bottom ? "0.1em" : -n.foreignObjectHeight + 1, x: e.left ? -n.foreignObjectWidth : 0, width: n.foreignObjectWidth, height: n.foreignObjectHeight } }, [r("div", { staticClass: "lume-alluvial-group__label-wrapper" }, [r("span", { ref: "text", staticClass: "lume-alluvial-group__node-label" }, [e._t("default")], 2)])]) : r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
1689
- }, ea = [], ta = /* @__PURE__ */ N(
1689
+ }, ea = [], ta = /* @__PURE__ */ w(
1690
1690
  Qr,
1691
1691
  qr,
1692
1692
  ea,
@@ -1696,7 +1696,7 @@ var qr = function() {
1696
1696
  null,
1697
1697
  null
1698
1698
  );
1699
- const na = ta.exports, ra = /* @__PURE__ */ C({
1699
+ const na = ta.exports, ra = /* @__PURE__ */ H({
1700
1700
  __name: "lume-alluvial-node-value",
1701
1701
  props: {
1702
1702
  bottom: { type: Boolean, default: !0 }
@@ -1708,7 +1708,7 @@ const na = ta.exports, ra = /* @__PURE__ */ C({
1708
1708
  var aa = function() {
1709
1709
  var e = this, r = e._self._c;
1710
1710
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { y: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
1711
- }, oa = [], la = /* @__PURE__ */ N(
1711
+ }, oa = [], la = /* @__PURE__ */ w(
1712
1712
  ra,
1713
1713
  aa,
1714
1714
  oa,
@@ -1718,7 +1718,35 @@ var aa = function() {
1718
1718
  null,
1719
1719
  null
1720
1720
  );
1721
- const ua = la.exports;
1721
+ const ua = la.exports, ia = /* @__PURE__ */ H({
1722
+ __name: "lume-alluvial-node-header",
1723
+ props: {
1724
+ x: { type: Number, required: !0 },
1725
+ y: { type: Number, required: !0 }
1726
+ },
1727
+ setup(t) {
1728
+ const e = I(null), r = v(
1729
+ () => e.value && `translate(${-e.value.getBBox().width / 2}, 0)`
1730
+ ), n = v(
1731
+ () => e.value && `translate(${e.value.getBBox().width / 2}, 0)`
1732
+ );
1733
+ return { __sfc: !0, textRef: e, beforeTransform: r, afterTransform: n };
1734
+ }
1735
+ });
1736
+ var sa = function() {
1737
+ var e = this, r = e._self._c, n = e._self._setupProxy;
1738
+ return r("g", { attrs: { transform: `translate(${e.x}, ${e.y})` } }, [r("g", { attrs: { transform: n.beforeTransform } }, [e._t("before")], 2), r("text", { ref: "textRef", staticClass: "lume-alluvial-group__node-header lume-typography--caption" }, [e._t("default")], 2), r("g", { attrs: { transform: n.afterTransform } }, [e._t("after")], 2)]);
1739
+ }, ca = [], da = /* @__PURE__ */ w(
1740
+ ia,
1741
+ sa,
1742
+ ca,
1743
+ !1,
1744
+ null,
1745
+ "0e483453",
1746
+ null,
1747
+ null
1748
+ );
1749
+ const va = da.exports;
1722
1750
  function _t(t, e) {
1723
1751
  return {
1724
1752
  x0: 0 + (e ? e.left : 0),
@@ -1727,32 +1755,32 @@ function _t(t, e) {
1727
1755
  y1: t.height - (e ? e.bottom : 0)
1728
1756
  };
1729
1757
  }
1730
- function ia(t) {
1731
- const e = E(_t(t));
1758
+ function _a(t) {
1759
+ const e = I(_t(t));
1732
1760
  function r(n) {
1733
1761
  e.value = _t(t, n);
1734
1762
  }
1735
1763
  return { extents: e, updateExtents: r };
1736
1764
  }
1737
1765
  var Te = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", t.BarScaleNull = "Bar linear scale cannot be `null`", t))(Te || {});
1738
- const sa = "[lume] ";
1766
+ const fa = "[lume] ";
1739
1767
  function Ge(t, e, r = !0) {
1740
- r && At() || console.error(sa + "Error: " + t, e);
1768
+ r && At() || console.error(fa + "Error: " + t, e);
1741
1769
  }
1742
- const ca = 200;
1770
+ const pa = 200;
1743
1771
  function se(t) {
1744
1772
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1745
1773
  }
1746
- function da(t, e) {
1774
+ function ma(t, e) {
1747
1775
  return e.nodes.find((r) => r.id === t);
1748
1776
  }
1749
- function va(t, e) {
1777
+ function ha(t, e) {
1750
1778
  return e.links.find((r) => r.id === t);
1751
1779
  }
1752
1780
  function St(t) {
1753
1781
  return !!(t.sourceLinks && t.targetLinks);
1754
1782
  }
1755
- function _a(t, e) {
1783
+ function ga(t, e) {
1756
1784
  if (!e)
1757
1785
  return;
1758
1786
  const r = t.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), n = t.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = e.filter((l) => r.includes(l.dataset.id)).reduce(
@@ -1769,7 +1797,7 @@ function _a(t, e) {
1769
1797
  bottom: 0
1770
1798
  };
1771
1799
  }
1772
- function fa(t) {
1800
+ function ya(t) {
1773
1801
  return t.map((e) => {
1774
1802
  const r = e.y1 - e.y0 < ce;
1775
1803
  return {
@@ -1786,22 +1814,22 @@ function fa(t) {
1786
1814
  };
1787
1815
  });
1788
1816
  }
1789
- function pa(t) {
1817
+ function ba(t) {
1790
1818
  return [t.source.x1, t.y0];
1791
1819
  }
1792
- function ma(t) {
1820
+ function ka(t) {
1793
1821
  return [t.target.x0, t.y1];
1794
1822
  }
1795
- function ha(t) {
1796
- return t.curveFunction ? Zt(t.curveFunction).source(pa).target(ma) : Kt();
1823
+ function xa(t) {
1824
+ return t.curveFunction ? Zt(t.curveFunction).source(ba).target(ka) : Kt();
1797
1825
  }
1798
- function ga(t) {
1826
+ function Aa(t) {
1799
1827
  return t.map((e) => {
1800
1828
  var r;
1801
1829
  return {
1802
1830
  id: e.id,
1803
1831
  color: e.color || ((r = e.source) == null ? void 0 : r.color) || he,
1804
- d: ha(e)(e),
1832
+ d: xa(e)(e),
1805
1833
  strokeWidth: Math.max(1, e.width),
1806
1834
  link: e
1807
1835
  };
@@ -1816,7 +1844,7 @@ function ft(t, e, r, n, a) {
1816
1844
  return;
1817
1845
  }
1818
1846
  const o = Date.now(), l = vn(e, r), i = () => {
1819
- let c = (Date.now() - o) / ca;
1847
+ let c = (Date.now() - o) / pa;
1820
1848
  c > 1 && (c = 1), t.node = {
1821
1849
  ...t.node,
1822
1850
  transitionValue: a && c === 1 ? void 0 : l(c)
@@ -1824,15 +1852,15 @@ function ft(t, e, r, n, a) {
1824
1852
  };
1825
1853
  requestAnimationFrame(i);
1826
1854
  }
1827
- const ya = {
1855
+ const Ta = {
1828
1856
  nodes: [],
1829
1857
  links: []
1830
1858
  };
1831
1859
  function pt(t, e) {
1832
1860
  return e.find((r) => r.every((n) => n.x0 === t.x0));
1833
1861
  }
1834
- function ba(t, e, r) {
1835
- const n = E(null), a = v(() => {
1862
+ function La(t, e, r) {
1863
+ const n = I(null), a = v(() => {
1836
1864
  var s, _;
1837
1865
  return (_ = (s = t.value) == null ? void 0 : s[0]) == null ? void 0 : _.values.map(
1838
1866
  ({ label: m, color: p, value: h, deriveColorFromIncomingLinks: y, offset: f }) => ({
@@ -1894,7 +1922,7 @@ function ba(t, e, r) {
1894
1922
  _.value === 0 && (_.fallbackColor = Ue.Grey), typeof _.offset == "number" && (u(_), c(_, n.value));
1895
1923
  })), n.value;
1896
1924
  });
1897
- return H([l, r], () => {
1925
+ return C([l, r], () => {
1898
1926
  try {
1899
1927
  const { x0: s, y0: _, x1: m, y1: p } = r.value;
1900
1928
  n.value = l.value.extent([
@@ -1902,7 +1930,7 @@ function ba(t, e, r) {
1902
1930
  [m, p]
1903
1931
  ])({ nodes: a.value, links: o.value });
1904
1932
  } catch (s) {
1905
- Ge(Te.GraphProblem, s), n.value = ya;
1933
+ Ge(Te.GraphProblem, s), n.value = Ta;
1906
1934
  }
1907
1935
  }), { columns: i, graph: d };
1908
1936
  }
@@ -1922,10 +1950,10 @@ function Ve(t, e) {
1922
1950
  );
1923
1951
  }), e;
1924
1952
  }
1925
- function ka(t, e) {
1953
+ function Oa(t, e) {
1926
1954
  return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
1927
1955
  }
1928
- const xa = (t, e) => {
1956
+ const $a = (t, e) => {
1929
1957
  let r;
1930
1958
  St(t) ? r = {
1931
1959
  [t.id]: t.value,
@@ -1937,9 +1965,9 @@ const xa = (t, e) => {
1937
1965
  ...je(t.source),
1938
1966
  ...Ve(t.target)
1939
1967
  };
1940
- const n = ka(r, e);
1968
+ const n = Oa(r, e);
1941
1969
  return { nodes: r, links: n };
1942
- }, Aa = (t) => {
1970
+ }, Ia = (t) => {
1943
1971
  if (St(t)) {
1944
1972
  const e = [...t.sourceLinks, ...t.targetLinks];
1945
1973
  return {
@@ -1958,12 +1986,12 @@ const xa = (t, e) => {
1958
1986
  links: [t.id]
1959
1987
  };
1960
1988
  };
1961
- function Ta(t, e, r) {
1962
- const n = E(null), a = v(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1989
+ function Ea(t, e, r) {
1990
+ const n = I(null), a = v(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1963
1991
  n.value,
1964
1992
  r.value
1965
- ) : e.value.highlightedElements === "closest" ? Aa(n.value, r.value) : xa(n.value, r.value) : { nodes: {}, links: [] });
1966
- return H(a, (o, l) => {
1993
+ ) : e.value.highlightedElements === "closest" ? Ia(n.value, r.value) : $a(n.value, r.value) : { nodes: {}, links: [] });
1994
+ return C(a, (o, l) => {
1967
1995
  if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
1968
1996
  t.value.forEach((i) => {
1969
1997
  i.node.id in l.nodes && ft(
@@ -1986,10 +2014,10 @@ function Ta(t, e, r) {
1986
2014
  });
1987
2015
  }), { highlightedElements: a, hoveredElement: n };
1988
2016
  }
1989
- const La = /* @__PURE__ */ C({
2017
+ const wa = /* @__PURE__ */ H({
1990
2018
  __name: "lume-alluvial-group",
1991
2019
  props: {
1992
- ...$e(),
2020
+ ...Ie(),
1993
2021
  hoveredElementId: {
1994
2022
  type: [Number, String],
1995
2023
  default: null
@@ -1997,7 +2025,7 @@ const La = /* @__PURE__ */ C({
1997
2025
  },
1998
2026
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
1999
2027
  setup(t, { emit: e }) {
2000
- const r = t, n = Le("chartID"), { data: a, options: o } = B(r), l = E([]), i = E([]), u = E(null), { extents: c, updateExtents: d } = ia(r.containerSize), { columns: s, graph: _ } = ba(a, o, c), { hoveredElement: m, highlightedElements: p } = Ta(
2028
+ const r = t, n = Le("chartID"), { data: a, options: o } = B(r), l = I([]), i = I([]), u = I(null), { extents: c, updateExtents: d } = _a(r.containerSize), { columns: s, graph: _ } = La(a, o, c), { hoveredElement: m, highlightedElements: p } = Ea(
2001
2029
  l,
2002
2030
  o,
2003
2031
  _
@@ -2016,33 +2044,33 @@ const La = /* @__PURE__ */ C({
2016
2044
  ), A = v(() => {
2017
2045
  if (!(!o.value.gradient || !_.value))
2018
2046
  return _.value.links.reduce((g, O) => {
2019
- const { source: w, target: Z } = O, U = w.color || w.fallbackColor, F = Z.deriveColorFromIncomingLinks ? U : Z.color || Z.fallbackColor;
2047
+ const { source: N, target: Z } = O, U = N.color || N.fallbackColor, F = Z.deriveColorFromIncomingLinks ? U : Z.color || Z.fallbackColor;
2020
2048
  return g[O.id] = {
2021
2049
  source: U,
2022
2050
  target: F,
2023
- x1: w.x1,
2051
+ x1: N.x1,
2024
2052
  x2: Z.x0
2025
2053
  }, g;
2026
2054
  }, {});
2027
- }), $ = v(() => {
2055
+ }), E = v(() => {
2028
2056
  const g = l.value.filter(
2029
- (w) => j(w)
2057
+ (N) => j(N)
2030
2058
  ), O = [];
2031
- return g.forEach((w) => {
2059
+ return g.forEach((N) => {
2032
2060
  const Z = [];
2033
- i.value.filter(({ link: U }) => U.target.id === w.node.id).reverse().reduce((U, F, qe, le) => {
2061
+ i.value.filter(({ link: U }) => U.target.id === N.node.id).reverse().reduce((U, F, qe, le) => {
2034
2062
  const ge = F.link.target.y1 - F.link.target.y0 > ce;
2035
2063
  let ue, ye, ie;
2036
- return ge ? (ue = F.link.target.y1 - F.link.target.y0, ye = F.link.value / w.node.value, ie = ye * ue) : (ue = ce, ie = ce / le.length), Z.push({
2037
- x: w.x,
2038
- y: w.y + U,
2064
+ return ge ? (ue = F.link.target.y1 - F.link.target.y0, ye = F.link.value / N.node.value, ie = ye * ue) : (ue = ce, ie = ce / le.length), Z.push({
2065
+ x: N.x,
2066
+ y: N.y + U,
2039
2067
  height: ie,
2040
- width: w.width,
2041
- key: `node-block-${w.node.id}-source-link-${F.link.source.id}`,
2068
+ width: N.width,
2069
+ key: `node-block-${N.node.id}-source-link-${F.link.source.id}`,
2042
2070
  class: `lume-alluvial-group__node-block lume-fill--${F.link.source.color || he}`
2043
2071
  }), U + ie;
2044
2072
  }, 0), O.push({
2045
- id: w.node.id,
2073
+ id: N.node.id,
2046
2074
  subNodes: Z
2047
2075
  });
2048
2076
  }), O;
@@ -2077,7 +2105,7 @@ const La = /* @__PURE__ */ C({
2077
2105
  m.value = null;
2078
2106
  return;
2079
2107
  }
2080
- const O = da(g, _.value) || va(g, _.value);
2108
+ const O = ma(g, _.value) || ha(g, _.value);
2081
2109
  if (!O) {
2082
2110
  q(Y.InvalidHoveredElement);
2083
2111
  return;
@@ -2086,24 +2114,26 @@ const La = /* @__PURE__ */ C({
2086
2114
  }
2087
2115
  function ne(g) {
2088
2116
  var O;
2089
- return ((O = $.value.find(({ id: w }) => g === w)) == null ? void 0 : O.subNodes) ?? [];
2117
+ return ((O = E.value.find(({ id: N }) => g === N)) == null ? void 0 : O.subNodes) ?? [];
2090
2118
  }
2091
- function I() {
2092
- const g = _a(_.value, u.value);
2119
+ function $() {
2120
+ const g = ga(_.value, u.value);
2093
2121
  d(g);
2094
2122
  }
2095
- return H(_, (g) => {
2096
- l.value = fa(g.nodes), i.value = ga(g.links).reverse(), m.value == null && r.hoveredElementId != null && Q(r.hoveredElementId);
2097
- }), H([r.containerSize, u], () => {
2098
- r.containerSize.width && r.containerSize.height && I();
2099
- }), H(() => r.hoveredElementId, Q), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: d, columns: s, graph: _, hoveredElement: m, highlightedElements: p, formatValue: h, hoveredNodeIds: y, nodeColumnPositions: f, nodeHeaders: b, computedNodeHeaderPadding: x, gradients: A, nodesDerivingColorFromIncomingLinks: $, getLinkStroke: T, isNodeFaded: D, isNodeFocused: S, isLinkFaded: R, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: j, handleLinkMouseover: W, handleLinkMouseleave: te, handleExternalHover: Q, getSubNodesDerivingColorFromIncomingLinks: ne, updateMargins: I, LumeAlluvialNodeLabel: na, LumeAlluvialNodeValue: ua, GHOST_STROKE_WIDTH_OFFSET: Kr };
2123
+ return C(_, (g) => {
2124
+ l.value = ya(g.nodes), i.value = Aa(g.links).reverse(), m.value == null && r.hoveredElementId != null && Q(r.hoveredElementId);
2125
+ }), C([r.containerSize, u], () => {
2126
+ r.containerSize.width && r.containerSize.height && $();
2127
+ }), C(() => r.hoveredElementId, Q), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: d, columns: s, graph: _, hoveredElement: m, highlightedElements: p, formatValue: h, hoveredNodeIds: y, nodeColumnPositions: f, nodeHeaders: b, computedNodeHeaderPadding: x, gradients: A, nodesDerivingColorFromIncomingLinks: E, getLinkStroke: T, isNodeFaded: D, isNodeFocused: S, isLinkFaded: R, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: j, handleLinkMouseover: W, handleLinkMouseleave: te, handleExternalHover: Q, getSubNodesDerivingColorFromIncomingLinks: ne, updateMargins: $, LumeAlluvialNodeLabel: na, LumeAlluvialNodeValue: ua, LumeAlluvialNodeHeader: va, GHOST_STROKE_WIDTH_OFFSET: Kr };
2100
2128
  }
2101
2129
  });
2102
- var Oa = function() {
2130
+ var Na = function() {
2103
2131
  var e = this, r = e._self._c, n = e._self._setupProxy;
2104
- return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", e._l(n.nodeHeaders, function(a) {
2105
- return r("text", { key: `header_${a.x}`, staticClass: "lume-alluvial-group__node-header lume-typography--caption", attrs: { x: a.x, y: -n.computedNodeHeaderPadding } }, [e._v(" " + e._s(a.label) + " ")]);
2106
- }), 0) : e._e(), r("g", { staticClass: "lume-alluvial-link-group", on: { mouseleave: n.handleLinkMouseleave } }, [n.options.gradient ? r("defs", e._l(n.gradients, function(a, o) {
2132
+ return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", [e._l(n.nodeHeaders, function(a, o) {
2133
+ return [e._t(`node-header-${o}`, function() {
2134
+ return [r(n.LumeAlluvialNodeHeader, { key: `header_${a.x}`, attrs: { x: a.x, y: -n.computedNodeHeaderPadding } }, [e._v(" " + e._s(a.label) + " ")])];
2135
+ }, { x: a.x, y: -n.computedNodeHeaderPadding })];
2136
+ })], 2) : e._e(), r("g", { staticClass: "lume-alluvial-link-group", on: { mouseleave: n.handleLinkMouseleave } }, [n.options.gradient ? r("defs", e._l(n.gradients, function(a, o) {
2107
2137
  return r("linearGradient", { key: o, attrs: { id: `${n.chartID}_${o}`, gradientUnits: "userSpaceOnUse", x1: a.x1, x2: a.x2 } }, [r("stop", { attrs: { offset: "0%", "stop-color": `var(--lume-color--${a.source})` } }), r("stop", { attrs: { offset: "100%", "stop-color": `var(--lume-color--${a.target})` } })], 1);
2108
2138
  }), 1) : e._e(), e._l(n.linkPaths, function(a) {
2109
2139
  return r("path", { key: `link-ghost_${a.id}`, staticClass: "lume-alluvial-group__link", class: [
@@ -2151,17 +2181,17 @@ var Oa = function() {
2151
2181
  a.node.value
2152
2182
  ) })], 2)], 2)]);
2153
2183
  })], 2);
2154
- }, Ia = [], $a = /* @__PURE__ */ N(
2155
- La,
2156
- Oa,
2157
- Ia,
2184
+ }, Ha = [], Ca = /* @__PURE__ */ w(
2185
+ wa,
2186
+ Na,
2187
+ Ha,
2158
2188
  !1,
2159
2189
  null,
2160
- "f004e5fb",
2190
+ "02af69f2",
2161
2191
  null,
2162
2192
  null
2163
2193
  );
2164
- const Ea = $a.exports, wa = {
2194
+ const Da = Ca.exports, Sa = {
2165
2195
  margins: {
2166
2196
  top: 0,
2167
2197
  right: 0,
@@ -2180,13 +2210,13 @@ const Ea = $a.exports, wa = {
2180
2210
  nodeAlign: Qt,
2181
2211
  valueFormat: (t) => String(t),
2182
2212
  iterations: 6
2183
- }, Na = /* @__PURE__ */ C({
2213
+ }, Ra = /* @__PURE__ */ H({
2184
2214
  __name: "lume-alluvial-diagram",
2185
2215
  props: {
2186
2216
  ...Er(ze)
2187
2217
  },
2188
2218
  setup(t, { emit: e }) {
2189
- const r = t, { componentEventPropagator: n } = J(e), a = oe(M()), o = fn(M()), { options: l } = B(r), { allOptions: i } = K(l, wa);
2219
+ const r = t, { componentEventPropagator: n } = J(e), a = oe(M()), o = fn(M()), { options: l } = B(r), { allOptions: i } = K(l, Sa);
2190
2220
  function u(c) {
2191
2221
  return {
2192
2222
  ...c,
@@ -2194,10 +2224,10 @@ const Ea = $a.exports, wa = {
2194
2224
  // Alluvial chart never uses base scales
2195
2225
  };
2196
2226
  }
2197
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, groupSlots: o, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart: ve, LumeAlluvialGroup: Ea };
2227
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, groupSlots: o, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart: ve, LumeAlluvialGroup: Da };
2198
2228
  }
2199
2229
  });
2200
- var Ha = function() {
2230
+ var Pa = function() {
2201
2231
  var e = this, r = e._self._c, n = e._self._setupProxy;
2202
2232
  return r(n.LumeChart, e._g(e._b({ attrs: { options: n.getAlluvialDiagramOptions(n.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2203
2233
  return [r(n.LumeAlluvialGroup, e._g(e._b({ attrs: { "hovered-element-id": e.hoveredElement }, scopedSlots: e._u([e._l(n.groupSlots, function(o, l) {
@@ -2210,19 +2240,19 @@ var Ha = function() {
2210
2240
  return [e._t(o, null, null, l || {})];
2211
2241
  } };
2212
2242
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2213
- }, Ca = [], Da = /* @__PURE__ */ N(
2214
- Na,
2215
- Ha,
2216
- Ca,
2243
+ }, Ba = [], Fa = /* @__PURE__ */ w(
2244
+ Ra,
2245
+ Pa,
2246
+ Ba,
2217
2247
  !1,
2218
2248
  null,
2219
2249
  null,
2220
2250
  null,
2221
2251
  null
2222
2252
  );
2223
- const Xo = Da.exports;
2253
+ const qo = Fa.exports;
2224
2254
  var Me = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Me || {});
2225
- const Sa = /* @__PURE__ */ C({
2255
+ const Ga = /* @__PURE__ */ H({
2226
2256
  __name: "lume-bar-chart",
2227
2257
  props: {
2228
2258
  ...de(),
@@ -2265,41 +2295,41 @@ const Sa = /* @__PURE__ */ C({
2265
2295
  return { __sfc: !0, TYPES: Me, LumeSingleBarChart: n, LumeGroupedBarChart: a, LumeStackedBarChart: o, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: i, slots: u, getBarChartOptions: c, component: d };
2266
2296
  }
2267
2297
  });
2268
- var Ra = function() {
2298
+ var ja = function() {
2269
2299
  var e = this, r = e._self._c, n = e._self._setupProxy;
2270
2300
  return r(n.component, e._g(e._b({ tag: "component", attrs: { options: n.getBarChartOptions(e.options) }, scopedSlots: e._u([e._l(n.slots, function(a, o) {
2271
2301
  return { key: o, fn: function(l) {
2272
2302
  return [e._t(o, null, null, l || {})];
2273
2303
  } };
2274
2304
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2275
- }, Pa = [], Ba = /* @__PURE__ */ N(
2276
- Sa,
2277
- Ra,
2278
- Pa,
2305
+ }, Va = [], Ma = /* @__PURE__ */ w(
2306
+ Ga,
2307
+ ja,
2308
+ Va,
2279
2309
  !1,
2280
2310
  null,
2281
2311
  null,
2282
2312
  null,
2283
2313
  null
2284
2314
  );
2285
- const Yo = Ba.exports;
2286
- function Fa(t) {
2315
+ const el = Ma.exports;
2316
+ function za(t) {
2287
2317
  return Object.values(yn).includes(t) || t == null;
2288
2318
  }
2289
- function Ga(t) {
2319
+ function Wa(t) {
2290
2320
  return Object.values(L).includes(t);
2291
2321
  }
2292
- const ja = (t = !1) => ({
2322
+ const Za = (t = !1) => ({
2293
2323
  type: {
2294
2324
  type: String,
2295
2325
  default: null,
2296
- validator: Fa
2326
+ validator: za
2297
2327
  },
2298
2328
  ...t ? {
2299
2329
  orientation: {
2300
2330
  type: String,
2301
2331
  default: L.VERTICAL,
2302
- validator: Ga
2332
+ validator: Wa
2303
2333
  }
2304
2334
  } : {}
2305
2335
  });
@@ -2324,10 +2354,10 @@ function Rt(t, e) {
2324
2354
  });
2325
2355
  return { multiBarData: r, groupedData: n };
2326
2356
  }
2327
- function Va(t, e) {
2357
+ function Ua(t, e) {
2328
2358
  return t.value.length === 1 ? "single" : e.value;
2329
2359
  }
2330
- function Ma(t, e, r) {
2360
+ function Xa(t, e, r) {
2331
2361
  const n = v(
2332
2362
  () => r.value === L.HORIZONTAL
2333
2363
  );
@@ -2337,13 +2367,13 @@ function Ma(t, e, r) {
2337
2367
  const o = v(() => n.value ? (() => (a(t.value), t.value))() : t.value), l = v(() => n.value ? e.value : (() => (a(e.value), e.value))());
2338
2368
  return { barXScale: o, barYScale: l };
2339
2369
  }
2340
- const za = {
2370
+ const Ya = {
2341
2371
  x: 0,
2342
2372
  y: 0,
2343
2373
  width: 0,
2344
2374
  height: 0
2345
2375
  };
2346
- function Wa(t, e, r, n, a, o) {
2376
+ function Ka(t, e, r, n, a, o) {
2347
2377
  const l = v(
2348
2378
  () => n.value === L.HORIZONTAL
2349
2379
  );
@@ -2359,27 +2389,27 @@ function Wa(t, e, r, n, a, o) {
2359
2389
  }
2360
2390
  function d(s, _, m) {
2361
2391
  if (!(e.value && r.value))
2362
- return za;
2363
- const { value: h, color: y } = s, f = y ?? t.value[_].color ?? he, { x: b, y: x } = i(h, m), A = u(h), $ = c(h);
2392
+ return Ya;
2393
+ const { value: h, color: y } = s, f = y ?? t.value[_].color ?? he, { x: b, y: x } = i(h, m), A = u(h), E = c(h);
2364
2394
  return {
2365
2395
  classList: [`lume-fill--${f}`, ...o],
2366
2396
  x: b,
2367
2397
  y: x,
2368
2398
  width: A,
2369
- height: $,
2399
+ height: E,
2370
2400
  isFaded: a.value !== -1 && a.value !== m,
2371
2401
  isNegative: h < 0
2372
2402
  };
2373
2403
  }
2374
2404
  return { barAttributeGenerator: d };
2375
2405
  }
2376
- const Za = {
2406
+ const Ja = {
2377
2407
  x: 0,
2378
2408
  y: 0,
2379
2409
  width: 0,
2380
2410
  height: 0
2381
2411
  };
2382
- function Ua(t, e, r, n, a, o) {
2412
+ function Qa(t, e, r, n, a, o) {
2383
2413
  const l = v(
2384
2414
  () => n.value === L.HORIZONTAL
2385
2415
  ), i = v(() => _e().domain(t.value.map((p, h) => h)).range([0, e.value.bandwidth()]).padding(0)), u = v(() => _e().domain(t.value.map((p, h) => h)).range([0, r.value.bandwidth()]).padding(0));
@@ -2404,11 +2434,11 @@ function Ua(t, e, r, n, a, o) {
2404
2434
  }
2405
2435
  function m(p, h, y) {
2406
2436
  if (!(e.value && r.value))
2407
- return Za;
2408
- const { value: b, color: x } = p, A = x ?? t.value[h].color ?? Object.values(z)[h], $ = c(b, y, h), T = d(b, y, h), D = s(b), S = _(b);
2437
+ return Ja;
2438
+ const { value: b, color: x } = p, A = x ?? t.value[h].color ?? Object.values(z)[h], E = c(b, y, h), T = d(b, y, h), D = s(b), S = _(b);
2409
2439
  return {
2410
2440
  classList: [`lume-fill--${A}`, ...o],
2411
- x: $,
2441
+ x: E,
2412
2442
  y: T,
2413
2443
  width: D,
2414
2444
  height: S,
@@ -2418,7 +2448,7 @@ function Ua(t, e, r, n, a, o) {
2418
2448
  }
2419
2449
  return { barAttributeGenerator: m };
2420
2450
  }
2421
- function Xa(t, e, r) {
2451
+ function qa(t, e, r) {
2422
2452
  const n = v(
2423
2453
  () => e.value === L.HORIZONTAL
2424
2454
  ), a = v(() => {
@@ -2457,7 +2487,7 @@ function Xa(t, e, r) {
2457
2487
  }
2458
2488
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2459
2489
  }
2460
- function Ya(t, e, r, n, a, o) {
2490
+ function eo(t, e, r, n, a, o) {
2461
2491
  const l = v(
2462
2492
  () => n.value === L.HORIZONTAL
2463
2493
  ), i = v(
@@ -2466,8 +2496,8 @@ function Ya(t, e, r, n, a, o) {
2466
2496
  () => t.value.map((f) => f.values.map((b) => b == null ? void 0 : b.value))
2467
2497
  );
2468
2498
  function c(f, b, x) {
2469
- let A, $;
2470
- return l.value ? (A = e.value(f >= 0 ? 0 + x : f + x), $ = r.value(i.value[b])) : (A = e.value(i.value[b]), $ = r.value(f >= 0 ? f + x : 0 + x)), { x: A, y: $ };
2499
+ let A, E;
2500
+ return l.value ? (A = e.value(f >= 0 ? 0 + x : f + x), E = r.value(i.value[b])) : (A = e.value(i.value[b]), E = r.value(f >= 0 ? f + x : 0 + x)), { x: A, y: E };
2471
2501
  }
2472
2502
  function d(f) {
2473
2503
  return l.value ? e.value(f) - e.value(0) : e.value.bandwidth();
@@ -2482,15 +2512,15 @@ function Ya(t, e, r, n, a, o) {
2482
2512
  return l.value ? r.value.bandwidth() : r.value(f) - r.value(0);
2483
2513
  }
2484
2514
  function p(f, b) {
2485
- return f ? u.value.reduce((x, A, $) => ($ < f && A[b] >= 0 && (x += A[b]), x), 0) : 0;
2515
+ return f ? u.value.reduce((x, A, E) => (E < f && A[b] >= 0 && (x += A[b]), x), 0) : 0;
2486
2516
  }
2487
2517
  function h(f, b) {
2488
- return f ? u.value.reduce((x, A, $) => ($ < f && A[b] < 0 && (x += A[b]), x), 0) : 0;
2518
+ return f ? u.value.reduce((x, A, E) => (E < f && A[b] < 0 && (x += A[b]), x), 0) : 0;
2489
2519
  }
2490
2520
  function y(f, b, x) {
2491
- const { value: A, color: $ } = f, T = A >= 0 ? d(A) : s(A), D = A >= 0 ? _(A) : m(A), S = A >= 0 ? p(b, x) : h(b, x), { x: R, y: G } = c(A, x, S);
2521
+ const { value: A, color: E } = f, T = A >= 0 ? d(A) : s(A), D = A >= 0 ? _(A) : m(A), S = A >= 0 ? p(b, x) : h(b, x), { x: R, y: G } = c(A, x, S);
2492
2522
  return {
2493
- classList: [`lume-fill--${$ ?? t.value[b].color ?? Object.values(z)[b]}`, ...o],
2523
+ classList: [`lume-fill--${E ?? t.value[b].color ?? Object.values(z)[b]}`, ...o],
2494
2524
  width: T,
2495
2525
  height: D,
2496
2526
  x: R,
@@ -2502,18 +2532,18 @@ function Ya(t, e, r, n, a, o) {
2502
2532
  return { barAttributeGenerator: y };
2503
2533
  }
2504
2534
  const mt = {
2505
- single: Wa,
2506
- grouped: Ua,
2507
- stacked: Ya
2508
- }, Ka = /* @__PURE__ */ C({
2535
+ single: Ka,
2536
+ grouped: Qa,
2537
+ stacked: eo
2538
+ }, to = /* @__PURE__ */ H({
2509
2539
  __name: "lume-bar-group",
2510
2540
  props: {
2511
- ...$e(),
2541
+ ...Ie(),
2512
2542
  classList: {
2513
2543
  type: [String, Array],
2514
2544
  default: () => []
2515
2545
  },
2516
- ...ja(!0),
2546
+ ...Za(!0),
2517
2547
  transition: {
2518
2548
  type: Boolean,
2519
2549
  default: !0
@@ -2531,8 +2561,8 @@ const mt = {
2531
2561
  yScale: c,
2532
2562
  classList: d,
2533
2563
  labels: s
2534
- } = B(r), _ = Le("chartID"), { emitInternalEvent: m } = J(e, _), { groupedData: p } = Rt(n, s), { barXScale: h, barYScale: y } = Ma(u, c, o), f = v(() => typeof d.value == "string" ? [d.value] : d.value), b = v(() => {
2535
- const $ = Va(n, i), { barAttributeGenerator: T } = mt[$](
2564
+ } = B(r), _ = Le("chartID"), { emitInternalEvent: m } = J(e, _), { groupedData: p } = Rt(n, s), { barXScale: h, barYScale: y } = Xa(u, c, o), f = v(() => typeof d.value == "string" ? [d.value] : d.value), b = v(() => {
2565
+ const E = Ua(n, i), { barAttributeGenerator: T } = mt[E](
2536
2566
  n,
2537
2567
  h,
2538
2568
  y,
@@ -2545,13 +2575,13 @@ const mt = {
2545
2575
  if (l.value)
2546
2576
  return o.value === L.HORIZONTAL ? "width" : "height";
2547
2577
  });
2548
- async function A($) {
2549
- e("lume__internal--hover", $), m("lume__internal--hover", $);
2578
+ async function A(E) {
2579
+ e("lume__internal--hover", E), m("lume__internal--hover", E);
2550
2580
  }
2551
2581
  return { __sfc: !0, MIXIN_MAP: mt, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: c, classList: d, labels: s, chartID: _, emitInternalEvent: m, groupedData: p, barXScale: h, barYScale: y, computedClasses: f, getBarAttributes: b, computedTransition: x, handleInternalHover: A, LumeBar: Ye };
2552
2582
  }
2553
2583
  });
2554
- var Ja = function() {
2584
+ var no = function() {
2555
2585
  var e = this, r = e._self._c, n = e._self._setupProxy;
2556
2586
  return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
2557
2587
  return r("g", { key: o, on: { mouseenter: function(l) {
@@ -2566,17 +2596,17 @@ var Ja = function() {
2566
2596
  } } }, "lume-bar", n.getBarAttributes(l, i, o, a), !1));
2567
2597
  }), 1);
2568
2598
  }), 0);
2569
- }, Qa = [], qa = /* @__PURE__ */ N(
2570
- Ka,
2571
- Ja,
2572
- Qa,
2599
+ }, ro = [], ao = /* @__PURE__ */ w(
2600
+ to,
2601
+ no,
2602
+ ro,
2573
2603
  !1,
2574
2604
  null,
2575
2605
  null,
2576
2606
  null,
2577
2607
  null
2578
2608
  );
2579
- const Qe = qa.exports, eo = {
2609
+ const Qe = ao.exports, oo = {
2580
2610
  [L.VERTICAL]: {
2581
2611
  withTooltip: !0,
2582
2612
  xAxisOptions: {},
@@ -2589,20 +2619,20 @@ const Qe = qa.exports, eo = {
2589
2619
  yAxisOptions: { gridLines: !1 },
2590
2620
  margins: ae.HORIZONTAL
2591
2621
  }
2592
- }, to = /* @__PURE__ */ C({
2622
+ }, lo = /* @__PURE__ */ H({
2593
2623
  __name: "lume-single-bar-chart",
2594
2624
  props: {
2595
2625
  ...de(ze)
2596
2626
  },
2597
2627
  setup(t, { emit: e }) {
2598
2628
  const r = t, { componentEventPropagator: n } = J(e), a = oe(M()), { orientation: o, options: l } = B(r), i = v(
2599
- () => eo[o.value || L.VERTICAL]
2629
+ () => oo[o.value || L.VERTICAL]
2600
2630
  // needs to be computed so that default options are reactive
2601
2631
  ), { allOptions: u } = K(l, i);
2602
2632
  return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: i, allOptions: u, LumeChart: ve, LumeBarGroup: Qe };
2603
2633
  }
2604
2634
  });
2605
- var no = function() {
2635
+ var uo = function() {
2606
2636
  var e = this, r = e._self._c, n = e._self._setupProxy;
2607
2637
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "single-bar", options: n.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2608
2638
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
@@ -2611,17 +2641,17 @@ var no = function() {
2611
2641
  return [e._t(o, null, null, l || {})];
2612
2642
  } };
2613
2643
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2614
- }, ro = [], ao = /* @__PURE__ */ N(
2615
- to,
2616
- no,
2617
- ro,
2644
+ }, io = [], so = /* @__PURE__ */ w(
2645
+ lo,
2646
+ uo,
2647
+ io,
2618
2648
  !1,
2619
2649
  null,
2620
2650
  null,
2621
2651
  null,
2622
2652
  null
2623
2653
  );
2624
- const Ko = ao.exports, oo = {
2654
+ const tl = so.exports, co = {
2625
2655
  [L.VERTICAL]: {
2626
2656
  withTooltip: !0,
2627
2657
  xAxisOptions: {},
@@ -2635,14 +2665,14 @@ const Ko = ao.exports, oo = {
2635
2665
  margins: ae.HORIZONTAL,
2636
2666
  tooltipOptions: { position: "right" }
2637
2667
  }
2638
- }, lo = /* @__PURE__ */ C({
2668
+ }, vo = /* @__PURE__ */ H({
2639
2669
  __name: "lume-grouped-bar-chart",
2640
2670
  props: {
2641
2671
  ...de()
2642
2672
  },
2643
2673
  setup(t, { emit: e }) {
2644
2674
  const r = t, { componentEventPropagator: n } = J(e), a = oe(M()), { orientation: o, options: l } = B(r), i = v(
2645
- () => oo[o.value || L.VERTICAL]
2675
+ () => co[o.value || L.VERTICAL]
2646
2676
  // needs to be computed so that default options are reactive
2647
2677
  ), { allOptions: u } = K(
2648
2678
  l,
@@ -2651,7 +2681,7 @@ const Ko = ao.exports, oo = {
2651
2681
  return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: i, allOptions: u, LumeChart: ve, LumeBarGroup: Qe };
2652
2682
  }
2653
2683
  });
2654
- var uo = function() {
2684
+ var _o = function() {
2655
2685
  var e = this, r = e._self._c, n = e._self._setupProxy;
2656
2686
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "grouped-bar", options: n.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2657
2687
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "grouped" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
@@ -2660,17 +2690,17 @@ var uo = function() {
2660
2690
  return [e._t(o, null, null, l || {})];
2661
2691
  } };
2662
2692
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2663
- }, io = [], so = /* @__PURE__ */ N(
2664
- lo,
2665
- uo,
2666
- io,
2693
+ }, fo = [], po = /* @__PURE__ */ w(
2694
+ vo,
2695
+ _o,
2696
+ fo,
2667
2697
  !1,
2668
2698
  null,
2669
2699
  null,
2670
2700
  null,
2671
2701
  null
2672
2702
  );
2673
- const Jo = so.exports, co = {
2703
+ const nl = po.exports, mo = {
2674
2704
  [L.VERTICAL]: {
2675
2705
  withTooltip: !0,
2676
2706
  xAxisOptions: {},
@@ -2683,21 +2713,21 @@ const Jo = so.exports, co = {
2683
2713
  xAxisOptions: { gridLines: !0 },
2684
2714
  yAxisOptions: { gridLines: !1 },
2685
2715
  margins: ae.HORIZONTAL,
2686
- tooltipOptions: { position: "right", inverse: !0 }
2716
+ tooltipOptions: { position: "right" }
2687
2717
  }
2688
- }, vo = /* @__PURE__ */ C({
2718
+ }, ho = /* @__PURE__ */ H({
2689
2719
  __name: "lume-stacked-bar-chart",
2690
2720
  props: {
2691
2721
  ...de()
2692
2722
  },
2693
2723
  setup(t, { emit: e }) {
2694
2724
  const r = t, { componentEventPropagator: n } = J(e), a = oe(M()), { data: o, orientation: l, options: i, labels: u } = B(r), c = v(
2695
- () => co[l.value || L.VERTICAL]
2725
+ () => mo[l.value || L.VERTICAL]
2696
2726
  // needs to be computed so that default options are reactive
2697
2727
  ), { allOptions: d } = K(
2698
2728
  i,
2699
2729
  c
2700
- ), { internalData: s } = Je(o), { groupedData: _ } = Rt(s, u), { stackedXScaleGenerator: m, stackedYScaleGenerator: p } = Xa(
2730
+ ), { internalData: s } = Je(o), { groupedData: _ } = Rt(s, u), { stackedXScaleGenerator: m, stackedYScaleGenerator: p } = qa(
2701
2731
  _,
2702
2732
  l,
2703
2733
  i
@@ -2705,7 +2735,7 @@ const Jo = so.exports, co = {
2705
2735
  return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, data: o, orientation: l, options: i, labels: u, baseOptions: c, allOptions: d, internalData: s, groupedData: _, stackedXScaleGenerator: m, stackedYScaleGenerator: p, xScale: h, yScale: y, LumeChart: ve, LumeBarGroup: Qe };
2706
2736
  }
2707
2737
  });
2708
- var _o = function() {
2738
+ var go = function() {
2709
2739
  var e = this, r = e._self._c, n = e._self._setupProxy;
2710
2740
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.xScale, "y-scale": n.yScale, "data-j-stacked-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2711
2741
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
@@ -2714,17 +2744,17 @@ var _o = function() {
2714
2744
  return [e._t(o, null, null, l || {})];
2715
2745
  } };
2716
2746
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2717
- }, fo = [], po = /* @__PURE__ */ N(
2718
- vo,
2719
- _o,
2720
- fo,
2747
+ }, yo = [], bo = /* @__PURE__ */ w(
2748
+ ho,
2749
+ go,
2750
+ yo,
2721
2751
  !1,
2722
2752
  null,
2723
2753
  null,
2724
2754
  null,
2725
2755
  null
2726
2756
  );
2727
- const Qo = po.exports, ht = 2, mo = /* @__PURE__ */ C({
2757
+ const rl = bo.exports, ht = 2, ko = /* @__PURE__ */ H({
2728
2758
  __name: "lume-line",
2729
2759
  props: {
2730
2760
  pathDefinition: {
@@ -2758,11 +2788,11 @@ const Qo = po.exports, ht = 2, mo = /* @__PURE__ */ C({
2758
2788
  },
2759
2789
  emits: ["click"],
2760
2790
  setup(t, { emit: e }) {
2761
- const r = E(null);
2762
- return ee(() => Ie(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: ht, emit: e, root: r };
2791
+ const r = I(null);
2792
+ return ee(() => $e(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: ht, emit: e, root: r };
2763
2793
  }
2764
2794
  });
2765
- var ho = function() {
2795
+ var xo = function() {
2766
2796
  var e = this, r = e._self._c, n = e._self._setupProxy;
2767
2797
  return r("path", { ref: "root", staticClass: "lume-line", class: {
2768
2798
  [`lume-stroke--${e.color}`]: !0,
@@ -2774,17 +2804,17 @@ var ho = function() {
2774
2804
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
2775
2805
  return n.emit("click", a);
2776
2806
  } } });
2777
- }, go = [], yo = /* @__PURE__ */ N(
2778
- mo,
2779
- ho,
2780
- go,
2807
+ }, Ao = [], To = /* @__PURE__ */ w(
2808
+ ko,
2809
+ xo,
2810
+ Ao,
2781
2811
  !1,
2782
2812
  null,
2783
2813
  "08896455",
2784
2814
  null,
2785
2815
  null
2786
2816
  );
2787
- const bo = yo.exports, gt = 4, ko = /* @__PURE__ */ C({
2817
+ const Lo = To.exports, gt = 4, Oo = /* @__PURE__ */ H({
2788
2818
  __name: "lume-point",
2789
2819
  props: {
2790
2820
  x: { type: Number, required: !0 },
@@ -2804,26 +2834,26 @@ const bo = yo.exports, gt = 4, ko = /* @__PURE__ */ C({
2804
2834
  },
2805
2835
  emits: ["click"],
2806
2836
  setup(t, { emit: e }) {
2807
- const r = t, n = E(null), a = v(() => r.radius / 2);
2808
- return ee(() => Ie(n.value)), { __sfc: !0, DEFAULT_RADIUS: gt, props: r, emit: e, root: n, strokeWidth: a };
2837
+ const r = t, n = I(null), a = v(() => r.radius / 2);
2838
+ return ee(() => $e(n.value)), { __sfc: !0, DEFAULT_RADIUS: gt, props: r, emit: e, root: n, strokeWidth: a };
2809
2839
  }
2810
2840
  });
2811
- var xo = function() {
2841
+ var $o = function() {
2812
2842
  var e = this, r = e._self._c, n = e._self._setupProxy;
2813
2843
  return r("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${e.color}`, attrs: { cx: e.x, cy: e.y, r: e.active ? e.radius : 0, "stroke-width": n.strokeWidth, "data-j-point": "" }, on: { click: function(a) {
2814
2844
  return n.emit("click", a);
2815
2845
  } } });
2816
- }, Ao = [], To = /* @__PURE__ */ N(
2817
- ko,
2818
- xo,
2819
- Ao,
2846
+ }, Io = [], Eo = /* @__PURE__ */ w(
2847
+ Oo,
2848
+ $o,
2849
+ Io,
2820
2850
  !1,
2821
2851
  null,
2822
2852
  "b6745177",
2823
2853
  null,
2824
2854
  null
2825
2855
  );
2826
- const Lo = To.exports;
2856
+ const wo = Eo.exports;
2827
2857
  function Pt(t) {
2828
2858
  function e(o) {
2829
2859
  let l = null;
@@ -2860,7 +2890,7 @@ function Pt(t) {
2860
2890
  c.length,
2861
2891
  c.indexOf(u)
2862
2892
  ),
2863
- label: $t
2893
+ label: It
2864
2894
  };
2865
2895
  }
2866
2896
  return i;
@@ -2868,23 +2898,23 @@ function Pt(t) {
2868
2898
  };
2869
2899
  })) };
2870
2900
  }
2871
- function Oo(t, e) {
2901
+ function No(t, e) {
2872
2902
  const r = t.bandwidth() / 2;
2873
2903
  return (n, a) => t(t.domain()[e + (a - 1)]) + r;
2874
2904
  }
2875
- function Io(t, e) {
2905
+ function Ho(t, e) {
2876
2906
  return (r, n) => t(e + (n - 1));
2877
2907
  }
2878
- function $o(t, e, r, n) {
2908
+ function Co(t, e, r, n) {
2879
2909
  const a = Ut().x(
2880
- X(r) ? Oo(r, t) : Io(r, t)
2910
+ X(r) ? No(r, t) : Ho(r, t)
2881
2911
  ).y((o) => n(o));
2882
2912
  return e.every((o) => o == null) ? null : a(e);
2883
2913
  }
2884
- const yt = 1, Eo = /* @__PURE__ */ C({
2914
+ const yt = 1, Do = /* @__PURE__ */ H({
2885
2915
  __name: "lume-line-group",
2886
2916
  props: {
2887
- ...$e(),
2917
+ ...Ie(),
2888
2918
  withPoints: {
2889
2919
  type: Boolean,
2890
2920
  default: !0
@@ -2945,7 +2975,7 @@ const yt = 1, Eo = /* @__PURE__ */ C({
2945
2975
  (R = f(D)[T - 1]) == null ? void 0 : R.value,
2946
2976
  (G = f(D)[T]) == null ? void 0 : G.value
2947
2977
  ];
2948
- return $o(
2978
+ return Co(
2949
2979
  T,
2950
2980
  S,
2951
2981
  o.value,
@@ -2966,13 +2996,13 @@ const yt = 1, Eo = /* @__PURE__ */ C({
2966
2996
  y: S === null ? l.value(l.value.domain()[1]) : l.value(S)
2967
2997
  };
2968
2998
  }
2969
- function $(T) {
2999
+ function E(T) {
2970
3000
  return r.hoveredIndex === T;
2971
3001
  }
2972
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: yt, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: i, tooltipAnchorAttributes: u, updateTooltipAnchorAttributes: c, computedGroupData: d, overlayLineAttributes: s, animationDuration: _, pointRadius: m, xAxisOffset: p, domain: h, computedWithPoints: y, getValuesFromDataset: f, getPathDefinition: b, getLineTransitionParams: x, getPointPosition: A, isPointActive: $, LumeLine: bo, LumePoint: Lo };
3002
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: yt, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: i, tooltipAnchorAttributes: u, updateTooltipAnchorAttributes: c, computedGroupData: d, overlayLineAttributes: s, animationDuration: _, pointRadius: m, xAxisOffset: p, domain: h, computedWithPoints: y, getValuesFromDataset: f, getPathDefinition: b, getLineTransitionParams: x, getPointPosition: A, isPointActive: E, LumeLine: Lo, LumePoint: wo };
2973
3003
  }
2974
3004
  });
2975
- var wo = function() {
3005
+ var So = function() {
2976
3006
  var e = this, r = e._self._c, n = e._self._setupProxy;
2977
3007
  return r("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [r("path", e._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", n.overlayLineAttributes, !1)), e._l(n.computedGroupData, function(a, o) {
2978
3008
  return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(l, i) {
@@ -2985,33 +3015,33 @@ var wo = function() {
2985
3015
  } } }, "lume-point", n.getPointPosition(i, o), !1));
2986
3016
  }), 1) : e._e()]);
2987
3017
  })], 2);
2988
- }, No = [], Ho = /* @__PURE__ */ N(
2989
- Eo,
2990
- wo,
2991
- No,
3018
+ }, Ro = [], Po = /* @__PURE__ */ w(
3019
+ Do,
3020
+ So,
3021
+ Ro,
2992
3022
  !1,
2993
3023
  null,
2994
3024
  "44ba7be1",
2995
3025
  null,
2996
3026
  null
2997
3027
  );
2998
- const Bt = Ho.exports, Co = {
3028
+ const Bt = Po.exports, Bo = {
2999
3029
  margins: ae.VERTICAL,
3000
3030
  startOnZero: !0,
3001
3031
  withTooltip: !0,
3002
3032
  xAxisOptions: {},
3003
3033
  yAxisOptions: { gridLines: !0 }
3004
- }, Do = /* @__PURE__ */ C({
3034
+ }, Fo = /* @__PURE__ */ H({
3005
3035
  __name: "lume-line-chart",
3006
3036
  props: {
3007
3037
  ...de(null, !1)
3008
3038
  },
3009
3039
  setup(t, { emit: e }) {
3010
- const r = t, { componentEventPropagator: n } = J(e), a = oe(M()), { options: o } = B(r), { allOptions: l } = K(o, Co);
3040
+ const r = t, { componentEventPropagator: n } = J(e), a = oe(M()), { options: o } = B(r), { allOptions: l } = K(o, Bo);
3011
3041
  return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, options: o, allOptions: l, LumeChart: ve, LumeLineGroup: Bt };
3012
3042
  }
3013
3043
  });
3014
- var So = function() {
3044
+ var Go = function() {
3015
3045
  var e = this, r = e._self._c, n = e._self._setupProxy;
3016
3046
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
3017
3047
  return [r(n.LumeLineGroup, e._g(e._b({}, "lume-line-group", a, !1), n.componentEventPropagator))];
@@ -3020,18 +3050,18 @@ var So = function() {
3020
3050
  return [e._t(o, null, null, l || {})];
3021
3051
  } };
3022
3052
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
3023
- }, Ro = [], Po = /* @__PURE__ */ N(
3024
- Do,
3025
- So,
3026
- Ro,
3053
+ }, jo = [], Vo = /* @__PURE__ */ w(
3054
+ Fo,
3055
+ Go,
3056
+ jo,
3027
3057
  !1,
3028
3058
  null,
3029
3059
  null,
3030
3060
  null,
3031
3061
  null
3032
3062
  );
3033
- const qo = Po.exports;
3034
- function Bo(t) {
3063
+ const al = Vo.exports;
3064
+ function Mo(t) {
3035
3065
  return { areaPathDefinition: v(
3036
3066
  () => function(r, n) {
3037
3067
  if (!r || !n || X(r) || X(n))
@@ -3041,7 +3071,7 @@ function Bo(t) {
3041
3071
  }
3042
3072
  ) };
3043
3073
  }
3044
- const Fo = {
3074
+ const zo = {
3045
3075
  margins: {
3046
3076
  top: 0,
3047
3077
  right: 0,
@@ -3055,14 +3085,14 @@ const Fo = {
3055
3085
  tooltipOptions: {
3056
3086
  showTitle: !1
3057
3087
  }
3058
- }, Go = /* @__PURE__ */ C({
3088
+ }, Wo = /* @__PURE__ */ H({
3059
3089
  __name: "lume-sparkline-chart",
3060
3090
  props: {
3061
3091
  ...Ke(null),
3062
3092
  ...pe()
3063
3093
  },
3064
3094
  setup(t, { expose: e, emit: r }) {
3065
- const n = t, { componentEventPropagator: a } = J(r), o = oe(M()), { data: l, options: i } = B(n), { internalData: u } = Je(l), { allOptions: c } = K(i, Fo), { computedLineData: d } = Pt(u), { areaPathDefinition: s } = Bo(d), _ = v(() => {
3095
+ const n = t, { componentEventPropagator: a } = J(r), o = oe(M()), { data: l, options: i } = B(n), { internalData: u } = Je(l), { allOptions: c } = K(i, zo), { computedLineData: d } = Pt(u), { areaPathDefinition: s } = Mo(d), _ = v(() => {
3066
3096
  var y, f;
3067
3097
  return (f = (y = u.value) == null ? void 0 : y[0]) == null ? void 0 : f.color;
3068
3098
  }), m = v(
@@ -3086,7 +3116,7 @@ const Fo = {
3086
3116
  }), { __sfc: !0, props: n, emit: r, componentEventPropagator: a, slots: o, data: l, options: i, internalData: u, allOptions: c, computedLineData: d, areaPathDefinition: s, computedColor: _, areaColor: m, getSparklineOptions: p, xScaleGenerator: h, LumeChart: ve, LumeLineGroup: Bt };
3087
3117
  }
3088
3118
  });
3089
- var jo = function() {
3119
+ var Zo = function() {
3090
3120
  var e = this, r = e._self._c, n = e._self._setupProxy;
3091
3121
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.getSparklineOptions(n.allOptions), "x-scale": n.xScaleGenerator }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
3092
3122
  return [n.allOptions.showArea ? r("path", { class: [
@@ -3100,38 +3130,39 @@ var jo = function() {
3100
3130
  return [e._t(o, null, null, l || {})];
3101
3131
  } };
3102
3132
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
3103
- }, Vo = [], Mo = /* @__PURE__ */ N(
3104
- Go,
3105
- jo,
3106
- Vo,
3133
+ }, Uo = [], Xo = /* @__PURE__ */ w(
3134
+ Wo,
3135
+ Zo,
3136
+ Uo,
3107
3137
  !1,
3108
3138
  null,
3109
3139
  "bda226a1",
3110
3140
  null,
3111
3141
  null
3112
3142
  );
3113
- const el = Mo.exports;
3143
+ const ol = Xo.exports;
3114
3144
  export {
3115
- Xo as LumeAlluvialDiagram,
3116
- Ea as LumeAlluvialGroup,
3145
+ qo as LumeAlluvialDiagram,
3146
+ Da as LumeAlluvialGroup,
3147
+ va as LumeAlluvialNodeHeader,
3117
3148
  na as LumeAlluvialNodeLabel,
3118
3149
  ua as LumeAlluvialNodeValue,
3119
3150
  Cn as LumeAxis,
3120
3151
  Ye as LumeBar,
3121
- Yo as LumeBarChart,
3152
+ el as LumeBarChart,
3122
3153
  Qe as LumeBarGroup,
3123
3154
  ve as LumeChart,
3124
3155
  Wn as LumeChartContainer,
3125
3156
  Kn as LumeChartLegend,
3126
- Jo as LumeGroupedBarChart,
3127
- bo as LumeLine,
3128
- qo as LumeLineChart,
3157
+ nl as LumeGroupedBarChart,
3158
+ Lo as LumeLine,
3159
+ al as LumeLineChart,
3129
3160
  Bt as LumeLineGroup,
3130
3161
  Dr as LumeOverlayGroup,
3131
- Lo as LumePoint,
3132
- Ko as LumeSingleBarChart,
3133
- el as LumeSparklineChart,
3134
- Qo as LumeStackedBarChart,
3162
+ wo as LumePoint,
3163
+ tl as LumeSingleBarChart,
3164
+ ol as LumeSparklineChart,
3165
+ rl as LumeStackedBarChart,
3135
3166
  mr as LumeTooltip,
3136
3167
  dr as LumeTooltipItem,
3137
3168
  lr as LumeTooltipSummary,