@adyen/lume-vue3 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,4 +1,4 @@
1
- import { defineComponent as U, ref as S, openBlock as y, createElementBlock as $, mergeProps as G, createElementVNode as C, toDisplayString as oe, createCommentVNode as W, isRef as Ct, computed as v, watch as Z, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as z, createBlock as K, normalizeClass as ne, normalizeStyle as Gt, onBeforeUnmount as jt, watchEffect as Vt, renderSlot as R, createTextVNode as fe, useSlots as re, withDirectives as cn, withCtx as V, createSlots as ce, vShow as dn, pushScopeId as vn, popScopeId as mn, provide as Ke, createVNode as ie, nextTick as kt, toHandlers as le, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as fn } from "vue";
1
+ import { defineComponent as W, ref as R, openBlock as y, createElementBlock as $, mergeProps as G, createElementVNode as C, toDisplayString as oe, createCommentVNode as Z, isRef as Ct, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as z, createBlock as X, normalizeClass as ne, normalizeStyle as Gt, onBeforeUnmount as jt, watchEffect as Vt, renderSlot as M, createTextVNode as ce, useSlots as re, withDirectives as cn, withCtx as V, createSlots as de, vShow as dn, pushScopeId as vn, popScopeId as mn, provide as Ke, createVNode as ie, nextTick as kt, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as fn } from "vue";
2
2
  import { format as pn, ticks as hn, scaleBand as He, scaleLinear as Be, link as gn, line as _n, area as yn } from "d3";
3
3
  import { createPopper as kn } from "@popperjs/core";
4
4
  import { sankeyLinkHorizontal as bn, sankey as An, sankeyJustify as Tn } from "d3-sankey";
@@ -6,7 +6,7 @@ const Ln = {
6
6
  class: "axis__tick-label lume-typography--axis",
7
7
  "pointer-events": "all",
8
8
  "data-j-axis__tick-label": ""
9
- }, On = /* @__PURE__ */ U({
9
+ }, On = /* @__PURE__ */ W({
10
10
  __name: "lume-tick",
11
11
  props: {
12
12
  value: {
@@ -44,15 +44,15 @@ const Ln = {
44
44
  },
45
45
  emits: ["click", "mouseenter"],
46
46
  setup(e, { expose: n, emit: t }) {
47
- const o = t, l = S(null);
48
- return n({ ref: l }), (u, a) => (y(), $("g", G(e.group, {
47
+ const o = t, a = R(null);
48
+ return n({ ref: a }), (u, l) => (y(), $("g", G(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
51
51
  "axis__tick--hidden": e.isHidden
52
52
  }],
53
53
  "data-j-axis__tick": "",
54
- onMouseenter: a[0] || (a[0] = (i) => o("mouseenter", i)),
55
- onClick: a[1] || (a[1] = (i) => o("click", i))
54
+ onMouseenter: l[0] || (l[0] = (i) => o("mouseenter", i)),
55
+ onClick: l[1] || (l[1] = (i) => o("click", i))
56
56
  }), [
57
57
  C("g", Ln, [
58
58
  C("rect", G(e.ghost, {
@@ -61,18 +61,18 @@ const Ln = {
61
61
  }), null, 16),
62
62
  C("text", G(e.label, {
63
63
  ref_key: "labelRef",
64
- ref: l,
64
+ ref: a,
65
65
  class: "axis__label"
66
66
  }), oe(e.value), 17)
67
67
  ]),
68
- e.withGridlines ? (y(), $("line", G({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : W("", !0)
68
+ e.withGridlines ? (y(), $("line", G({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : Z("", !0)
69
69
  ], 16));
70
70
  }
71
71
  });
72
72
  const ee = (e, n) => {
73
73
  const t = e.__vccOpts || e;
74
- for (const [o, l] of n)
75
- t[o] = l;
74
+ for (const [o, a] of n)
75
+ t[o] = a;
76
76
  return t;
77
77
  }, bt = /* @__PURE__ */ ee(On, [["__scopeId", "data-v-59ddc0a6"]]), xn = [
78
78
  "controls",
@@ -103,18 +103,18 @@ function Qe(e) {
103
103
  }
104
104
  function zt(e, n) {
105
105
  const t = { ...e };
106
- return Object.entries(n).forEach(([o, l]) => {
107
- t[o] = Qe(e[o]) && Qe(l) ? zt(e[o], l) : l;
106
+ return Object.entries(n).forEach(([o, a]) => {
107
+ t[o] = Qe(e[o]) && Qe(a) ? zt(e[o], a) : a;
108
108
  }), t;
109
109
  }
110
- function In(e) {
110
+ function wn(e) {
111
111
  return e != null && Qe(e) && "value" in e;
112
112
  }
113
- function de(e) {
113
+ function ve(e) {
114
114
  return (e == null ? void 0 : e.bandwidth) !== void 0;
115
115
  }
116
- function wn(e) {
117
- return de(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
116
+ function In(e) {
117
+ return ve(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
118
118
  }
119
119
  function At(e) {
120
120
  const [n, t] = e.domain();
@@ -127,14 +127,14 @@ const En = (e, n) => {
127
127
  throw new Error("Cannot get highest value from empty array");
128
128
  e.some(
129
129
  ({ values: o }) => o.length - 1 >= n
130
- ) || ge(ve.IndexExceedsLengthOfDataSets);
130
+ ) || ge(me.IndexExceedsLengthOfDataSets);
131
131
  };
132
132
  function Nn(e, n) {
133
133
  var t;
134
134
  return En(e, n), ((t = e.reduce(
135
- (o, l) => {
136
- var u, a;
137
- return (((u = o.values[n]) == null ? void 0 : u.value) ?? 0) > (((a = l.values[n]) == null ? void 0 : a.value) ?? 0) ? o : l;
135
+ (o, a) => {
136
+ var u, l;
137
+ return (((u = o.values[n]) == null ? void 0 : u.value) ?? 0) > (((l = a.values[n]) == null ? void 0 : l.value) ?? 0) ? o : a;
138
138
  }
139
139
  ).values[n]) == null ? void 0 : t.value) || 0;
140
140
  }
@@ -149,14 +149,14 @@ function Wt(e) {
149
149
  return Array(t).fill(null);
150
150
  }
151
151
  function Dn(e) {
152
- return de(e) ? e.domain().length : Math.max(...e.domain());
152
+ return ve(e) ? e.domain().length : Math.max(...e.domain());
153
153
  }
154
154
  function Hn(e, n) {
155
155
  return (t) => Math.round(e * (1 - t) + n * t);
156
156
  }
157
157
  function Bn(e, n, t) {
158
- const o = t ? e.length - n : n, l = e.slice(0, o);
159
- return e.slice(o).concat(l);
158
+ const o = t ? e.length - n : n, a = e.slice(0, o);
159
+ return e.slice(o).concat(a);
160
160
  }
161
161
  function Le(e) {
162
162
  if (e.groups) {
@@ -184,8 +184,8 @@ function st(e, n) {
184
184
  const t = n - e.length;
185
185
  return t > 0 ? [...e, ...Array(t).fill({ value: null })] : e;
186
186
  }
187
- var ve = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
188
- 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.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(ve || {});
187
+ var me = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
188
+ 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.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(me || {});
189
189
  const Rn = "[lume] ";
190
190
  function ge(e, n = !0) {
191
191
  n && Pt() || console.warn(Rn + "Warning: " + e);
@@ -197,7 +197,7 @@ const je = (e) => {
197
197
  try {
198
198
  n = pn(e);
199
199
  } catch {
200
- ge(ve.InvalidFormat), n = null;
200
+ ge(me.InvalidFormat), n = null;
201
201
  }
202
202
  break;
203
203
  case "function":
@@ -216,7 +216,7 @@ const je = (e) => {
216
216
  default: () => ({})
217
217
  }
218
218
  });
219
- function me(e, n) {
219
+ function fe(e, n) {
220
220
  return { allOptions: v(() => {
221
221
  const o = Ct(n) ? n == null ? void 0 : n.value : n;
222
222
  return o ? zt(o, e.value) : e.value;
@@ -224,8 +224,8 @@ function me(e, n) {
224
224
  }
225
225
  const Cn = 0.2;
226
226
  function Gn(e, n, t) {
227
- const o = S(), l = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
228
- function a() {
227
+ const o = R(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
228
+ function l() {
229
229
  if (!n.value)
230
230
  return;
231
231
  const s = n.value.reduce(
@@ -240,10 +240,10 @@ function Gn(e, n, t) {
240
240
  const c = t.value.skip, f = n.value.length;
241
241
  if (s === 0)
242
242
  return !0;
243
- const r = l.value / f, m = typeof c == "number" && c > 0 && c + 1 || Math.ceil(o.value / r);
243
+ const r = a.value / f, m = typeof c == "number" && c > 0 && c + 1 || Math.ceil(o.value / r);
244
244
  return s % m === 0;
245
245
  }
246
- return Z(n, a), { showTick: i };
246
+ return U(n, l), { showTick: i };
247
247
  }
248
248
  var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(Zt || {}), ct = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(ct || {}), dt = /* @__PURE__ */ ((e) => (e.Grey = "grey", e.Green = "green", e.Orange = "orange", e.Red = "red", e))(dt || {}), vt = /* @__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))(vt || {});
249
249
  const B = {
@@ -271,7 +271,7 @@ const B = {
271
271
  "left-end"
272
272
  ];
273
273
  function ze(e) {
274
- e != null && e.closest("svg") || ge(ve.NotContainedInSvg);
274
+ e != null && e.closest("svg") || ge(me.NotContainedInSvg);
275
275
  }
276
276
  const Jt = {
277
277
  /** Displays a line for each tick. */
@@ -298,7 +298,7 @@ const Jt = {
298
298
  gridLines: !0
299
299
  }, Wn = function(e, n, t) {
300
300
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
301
- function l(s, c) {
301
+ function a(s, c) {
302
302
  return {
303
303
  transform: `translate(${(e.value(c) ?? e.value(s)) - o.value}, 0)`
304
304
  };
@@ -315,7 +315,7 @@ const Jt = {
315
315
  height: t.value.tickPadding + Kt + Se
316
316
  };
317
317
  }
318
- function a() {
318
+ function l() {
319
319
  const s = e.value.step() / 2;
320
320
  return {
321
321
  x1: s,
@@ -333,14 +333,14 @@ const Jt = {
333
333
  };
334
334
  }
335
335
  return {
336
- getGridLinesAttributes: a,
336
+ getGridLinesAttributes: l,
337
337
  getTickGhostAttributes: u,
338
- getTickGroupAttributes: l,
338
+ getTickGroupAttributes: a,
339
339
  getTickLabelAttributes: i
340
340
  };
341
341
  }, Zn = function(e, n, t) {
342
342
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
343
- function l(s, c) {
343
+ function a(s, c) {
344
344
  return {
345
345
  transform: `translate(0, ${(e.value(c) ?? e.value(s)) - o.value})`
346
346
  };
@@ -354,7 +354,7 @@ const Jt = {
354
354
  height: e.value.step()
355
355
  };
356
356
  }
357
- function a() {
357
+ function l() {
358
358
  const s = e.value.step() / 2;
359
359
  return {
360
360
  y1: s,
@@ -371,9 +371,9 @@ const Jt = {
371
371
  };
372
372
  }
373
373
  return {
374
- getGridLinesAttributes: a,
374
+ getGridLinesAttributes: l,
375
375
  getTickGhostAttributes: u,
376
- getTickGroupAttributes: l,
376
+ getTickGroupAttributes: a,
377
377
  getTickLabelAttributes: i
378
378
  };
379
379
  }, Un = function(e, n, t) {
@@ -381,7 +381,7 @@ const Jt = {
381
381
  const s = e.value.ticks();
382
382
  return s.length > 1 ? e.value(s[1]) - e.value(s[0]) : 0;
383
383
  });
384
- function l(s) {
384
+ function a(s) {
385
385
  return {
386
386
  transform: `translate(${e.value(s)}, 0)`
387
387
  };
@@ -393,7 +393,7 @@ const Jt = {
393
393
  x: -(o.value / 2)
394
394
  };
395
395
  }
396
- function a() {
396
+ function l() {
397
397
  return {
398
398
  y1: -n.value.height
399
399
  };
@@ -406,9 +406,9 @@ const Jt = {
406
406
  };
407
407
  }
408
408
  return {
409
- getGridLinesAttributes: a,
409
+ getGridLinesAttributes: l,
410
410
  getTickGhostAttributes: u,
411
- getTickGroupAttributes: l,
411
+ getTickGroupAttributes: a,
412
412
  getTickLabelAttributes: i
413
413
  };
414
414
  }, Xn = function(e, n, t) {
@@ -416,7 +416,7 @@ const Jt = {
416
416
  const s = e.value.ticks();
417
417
  return s.length > 1 ? e.value(s[1]) - e.value(s[0]) : 0;
418
418
  });
419
- function l(s) {
419
+ function a(s) {
420
420
  return {
421
421
  transform: `translate(0, ${e.value(s)})`
422
422
  };
@@ -431,7 +431,7 @@ const Jt = {
431
431
  y: -(o.value / 2)
432
432
  };
433
433
  }
434
- function a() {
434
+ function l() {
435
435
  return {
436
436
  x1: n.value.width
437
437
  };
@@ -444,9 +444,9 @@ const Jt = {
444
444
  };
445
445
  }
446
446
  return {
447
- getGridLinesAttributes: a,
447
+ getGridLinesAttributes: l,
448
448
  getTickGhostAttributes: u,
449
- getTickGroupAttributes: l,
449
+ getTickGroupAttributes: a,
450
450
  getTickLabelAttributes: i
451
451
  };
452
452
  }, Yn = {
@@ -475,7 +475,7 @@ const Jt = {
475
475
  Qn
476
476
  ];
477
477
  var Qt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Qt || {}), qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(qt || {}), qe = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(qe || {});
478
- const Lt = /* @__PURE__ */ U({
478
+ const Lt = /* @__PURE__ */ W({
479
479
  __name: "lume-axis",
480
480
  props: {
481
481
  scale: {
@@ -508,39 +508,39 @@ const Lt = /* @__PURE__ */ U({
508
508
  },
509
509
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
510
510
  setup(e, { emit: n }) {
511
- const o = e, l = n, { scale: u, containerSize: a, hoveredIndex: i, options: s, orientation: c } = te(o), f = Pe("isEmpty", S(!1)), r = Fe({}), m = S(null), g = S(null), p = S(null), b = v(
511
+ const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: s, orientation: c } = te(o), f = Pe("isEmpty", R(!1)), r = Fe({}), m = R(null), g = R(null), p = R(null), b = v(
512
512
  () => o.type ? qe[o.type] : o.position
513
513
  ), L = v(
514
514
  () => o.type || (b.value === "left" ? "y" : "x")
515
515
  ), A = v(
516
516
  () => L.value === "x" && c.value === B.VERTICAL || L.value === "y" && c.value === B.HORIZONTAL
517
- ), { allOptions: h } = me(
517
+ ), { allOptions: h } = fe(
518
518
  s,
519
519
  L.value === "x" ? Fn : zn
520
520
  ), { showTick: x } = Gn(u, m, h), N = v(() => {
521
- var M, k, E, _;
522
- return L.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((M = a.value) == null ? void 0 : M.height) / 2})` : L.value === "x" && f.value && (!u.value || At(u.value)) ? `translate(-${((k = a.value) == null ? void 0 : k.width) / 2}, ${(E = a.value) == null ? void 0 : E.height})` : `translate(0, ${L.value === "x" ? (_ = a.value) == null ? void 0 : _.height : 0})`;
521
+ var S, k, E, _;
522
+ return L.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((S = l.value) == null ? void 0 : S.height) / 2})` : L.value === "x" && f.value && (!u.value || At(u.value)) ? `translate(-${((k = l.value) == null ? void 0 : k.width) / 2}, ${(E = l.value) == null ? void 0 : E.height})` : `translate(0, ${L.value === "x" ? (_ = l.value) == null ? void 0 : _.height : 0})`;
523
523
  }), D = v(() => {
524
524
  if (!u.value)
525
525
  return [];
526
- if (de(u.value))
526
+ if (ve(u.value))
527
527
  return u.value.labels || u.value.domain();
528
- const { tickCount: M } = h.value, [k, E] = u.value.domain();
529
- return hn(k, E, M);
528
+ const { tickCount: S } = h.value, [k, E] = u.value.domain();
529
+ return hn(k, E, S);
530
530
  }), P = v(() => {
531
- const { tickFormat: M } = h.value;
532
- return je(M);
533
- }), w = v(
531
+ const { tickFormat: S } = h.value;
532
+ return je(S);
533
+ }), I = v(
534
534
  () => h.value.withHover && A.value && i.value > -1
535
535
  ), H = v(
536
536
  () => h.value.tickPadding + Se || 16
537
- ), X = v(() => L.value === "x" ? (
537
+ ), Y = v(() => L.value === "x" ? (
538
538
  // If x axis, get the tick height
539
539
  Math.max(
540
540
  ...(m.value || []).map(
541
- (M) => {
541
+ (S) => {
542
542
  var k, E;
543
- return ((E = (k = M.ref).getBBox) == null ? void 0 : E.call(k).height) + H.value;
543
+ return ((E = (k = S.ref).getBBox) == null ? void 0 : E.call(k).height) + H.value;
544
544
  }
545
545
  )
546
546
  )
@@ -548,33 +548,33 @@ const Lt = /* @__PURE__ */ U({
548
548
  // If y axis, get the tick width
549
549
  Math.max(
550
550
  ...(m.value || []).map(
551
- (M) => {
551
+ (S) => {
552
552
  var k, E;
553
- return ((E = (k = M.ref).getBBox) == null ? void 0 : E.call(k).width) + H.value;
553
+ return ((E = (k = S.ref).getBBox) == null ? void 0 : E.call(k).width) + H.value;
554
554
  }
555
555
  )
556
556
  )
557
557
  ));
558
- function Y(M) {
558
+ function K(S) {
559
559
  const { showTicks: k } = h.value;
560
- return k === !1 ? "" : P.value(M);
560
+ return k === !1 ? "" : P.value(S);
561
561
  }
562
- function Q(M, k, E) {
563
- l("mouseenter", { index: A.value ? M : null, value: k, event: E });
562
+ function Q(S, k, E) {
563
+ a("mouseenter", { index: A.value ? S : null, value: k, event: E });
564
564
  }
565
- function F(M, k, E) {
566
- l("click", { index: M, value: k, event: E });
565
+ function F(S, k, E) {
566
+ a("click", { index: S, value: k, event: E });
567
567
  }
568
- function ue(M) {
568
+ function ue(S) {
569
569
  var k;
570
570
  if (!(!m.value || !m.value.length))
571
- return (k = m.value[M]) == null ? void 0 : k.ref;
571
+ return (k = m.value[S]) == null ? void 0 : k.ref;
572
572
  }
573
573
  function Oe() {
574
574
  p.value = D.value.map(
575
- (M, k) => ({
576
- value: Y(M),
577
- group: r.getTickGroupAttributes(M, k),
575
+ (S, k) => ({
576
+ value: K(S),
577
+ group: r.getTickGroupAttributes(S, k),
578
578
  ghost: r.getTickGhostAttributes(ue(k)),
579
579
  label: r.getTickLabelAttributes(),
580
580
  gridline: r.getGridLinesAttributes()
@@ -582,29 +582,29 @@ const Lt = /* @__PURE__ */ U({
582
582
  );
583
583
  }
584
584
  function ke() {
585
- p.value && p.value.map((M) => (M.gridline = r.getGridLinesAttributes(), M));
585
+ p.value && p.value.map((S) => (S.gridline = r.getGridLinesAttributes(), S));
586
586
  }
587
587
  function xe() {
588
588
  if (!u.value)
589
589
  return;
590
- const M = u.value.step ? "bandScale" : "linearScale", k = Yn[`${L.value}-${Qt[M]}`];
591
- Object.entries(k(u, a, h) || []).forEach(
590
+ const S = u.value.step ? "bandScale" : "linearScale", k = Yn[`${L.value}-${Qt[S]}`];
591
+ Object.entries(k(u, l, h) || []).forEach(
592
592
  ([E, _]) => {
593
593
  r[E] = _;
594
594
  }
595
595
  );
596
596
  }
597
- return Z(u, xe, { flush: "sync", immediate: !0 }), Z(u, Oe, { immediate: !0 }), Z(m, Oe), Z(X, (M) => l("lume__internal--axis-size", M)), Z(o.containerSize, ke), _e(() => ze(g.value)), (M, k) => d(u) ? (y(), $("g", {
597
+ return U(u, xe, { flush: "sync", immediate: !0 }), U(u, Oe, { immediate: !0 }), U(m, Oe), U(Y, (S) => a("lume__internal--axis-size", S)), U(o.containerSize, ke), _e(() => ze(g.value)), (S, k) => d(u) ? (y(), $("g", {
598
598
  key: 0,
599
599
  ref_key: "root",
600
600
  ref: g,
601
601
  class: "axis",
602
602
  transform: N.value,
603
603
  "data-j-axis": "",
604
- onMouseleave: k[1] || (k[1] = (E) => l("mouseleave", E))
604
+ onMouseleave: k[1] || (k[1] = (E) => a("mouseleave", E))
605
605
  }, [
606
- L.value === "x" ? (y(), $("defs", Jn, qn)) : W("", !0),
607
- (y(!0), $(q, null, z(p.value, (E, _) => (y(), K(d(bt), G({
606
+ L.value === "x" ? (y(), $("defs", Jn, qn)) : Z("", !0),
607
+ (y(!0), $(q, null, z(p.value, (E, _) => (y(), X(d(bt), G({
608
608
  key: `${E.value}_${_}`,
609
609
  ref_for: !0,
610
610
  ref_key: "tickRefs",
@@ -615,7 +615,7 @@ const Lt = /* @__PURE__ */ U({
615
615
  onMouseenter: (j) => Q(_, E.value, j),
616
616
  onClick: (j) => F(_, E.value, j)
617
617
  }), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
618
- w.value ? (y(), K(d(bt), G({ key: 1 }, p.value[d(i)], {
618
+ I.value ? (y(), X(d(bt), G({ key: 1 }, p.value[d(i)], {
619
619
  "with-gridlines": !1,
620
620
  "is-hovered": "",
621
621
  onClick: k[0] || (k[0] = (E) => F(
@@ -623,29 +623,29 @@ const Lt = /* @__PURE__ */ U({
623
623
  p.value[d(i)].value,
624
624
  E
625
625
  ))
626
- }), null, 16)) : W("", !0)
627
- ], 40, Kn)) : W("", !0);
626
+ }), null, 16)) : Z("", !0)
627
+ ], 40, Kn)) : Z("", !0);
628
628
  }
629
629
  });
630
630
  function eo(e, n, t, o) {
631
- const l = v(() => t.value > 0 && t.value < 1), u = v(
631
+ const a = v(() => t.value > 0 && t.value < 1), u = v(
632
632
  () => o.value > 0 && o.value < 1
633
- ), a = v(
634
- () => l.value ? e.value - 0.5 : e.value
633
+ ), l = v(
634
+ () => a.value ? e.value - 0.5 : e.value
635
635
  // draws the 1px bar closer to the axis
636
636
  ), i = v(
637
637
  () => u.value ? n.value - 0.5 : n.value
638
638
  // draws the 1px bar closer to the axis
639
639
  );
640
- return { computedX: a, computedY: i, shouldHaveMinWidth: l, shouldHaveMinHeight: u };
640
+ return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: u };
641
641
  }
642
642
  function to(e, n, t, o) {
643
- const l = S(0), u = S(0), a = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
643
+ const a = R(0), u = R(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
644
644
  return _e(() => {
645
- l.value = t.value, u.value = o.value;
646
- }), Z(t, (i) => l.value = i), Z(o, (i) => u.value = i), { computedWidth: l, computedHeight: u, transformOrigin: a };
645
+ a.value = t.value, u.value = o.value;
646
+ }), U(t, (i) => a.value = i), U(o, (i) => u.value = i), { computedWidth: a, computedHeight: u, transformOrigin: l };
647
647
  }
648
- const no = ["x", "y", "width", "height"], oo = /* @__PURE__ */ U({
648
+ const no = ["x", "y", "width", "height"], oo = /* @__PURE__ */ W({
649
649
  __name: "lume-bar",
650
650
  props: {
651
651
  x: {
@@ -683,10 +683,10 @@ const no = ["x", "y", "width", "height"], oo = /* @__PURE__ */ U({
683
683
  },
684
684
  emits: ["click", "mouseover", "mouseleave"],
685
685
  setup(e, { emit: n }) {
686
- const t = e, o = n, { x: l, y: u, width: a, height: i, transition: s, classList: c } = te(t), f = S(null), r = v(
686
+ const t = e, o = n, { x: a, y: u, width: l, height: i, transition: s, classList: c } = te(t), f = R(null), r = v(
687
687
  () => typeof c.value == "string" ? [c.value] : c.value
688
- ), m = v(() => s.value === "width"), g = v(() => s.value === "height"), p = to(l, u, a, i), { computedX: b, computedY: L, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = eo(l, u, a, i), x = v(() => A.value ? 1 : (m.value ? p.computedWidth : a).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
689
- return _e(() => ze(f.value)), (P, w) => (y(), $("rect", {
688
+ ), m = v(() => s.value === "width"), g = v(() => s.value === "height"), p = to(a, u, l, i), { computedX: b, computedY: L, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = eo(a, u, l, i), x = v(() => A.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
689
+ return _e(() => ze(f.value)), (P, I) => (y(), $("rect", {
690
690
  ref_key: "root",
691
691
  ref: f,
692
692
  class: ne(["lume-bar", [
@@ -704,19 +704,19 @@ const no = ["x", "y", "width", "height"], oo = /* @__PURE__ */ U({
704
704
  width: x.value,
705
705
  height: N.value,
706
706
  "data-j-bar": "",
707
- onClick: w[0] || (w[0] = (H) => o("click", H)),
708
- onMouseover: w[1] || (w[1] = (H) => o("mouseover", H)),
709
- onMouseleave: w[2] || (w[2] = (H) => o("mouseleave", H))
707
+ onClick: I[0] || (I[0] = (H) => o("click", H)),
708
+ onMouseover: I[1] || (I[1] = (H) => o("mouseover", H)),
709
+ onMouseleave: I[2] || (I[2] = (H) => o("mouseleave", H))
710
710
  }, null, 46, no));
711
711
  }
712
712
  });
713
713
  const mt = /* @__PURE__ */ ee(oo, [["__scopeId", "data-v-8e8f732a"]]);
714
- function lo() {
715
- const e = S(), n = Fe({
714
+ function ao() {
715
+ const e = R(), n = Fe({
716
716
  dimensions: {}
717
717
  }), t = new ResizeObserver((o) => {
718
- o.forEach((l) => {
719
- n.dimensions = l.contentRect;
718
+ o.forEach((a) => {
719
+ n.dimensions = a.contentRect;
720
720
  });
721
721
  });
722
722
  return _e(() => {
@@ -725,7 +725,7 @@ function lo() {
725
725
  t.unobserve(e.value);
726
726
  }), { resizeState: n, resizeRef: e };
727
727
  }
728
- const ao = ["height"], uo = ["transform"], ro = /* @__PURE__ */ U({
728
+ const lo = ["height"], uo = ["transform"], ro = /* @__PURE__ */ W({
729
729
  __name: "lume-chart-container",
730
730
  props: {
731
731
  margins: {
@@ -747,16 +747,16 @@ const ao = ["height"], uo = ["transform"], ro = /* @__PURE__ */ U({
747
747
  },
748
748
  emits: ["click", "mouseenter", "mouseleave", "resize"],
749
749
  setup(e, { emit: n }) {
750
- const t = e, o = n, { margins: l, containerSize: u } = te(t), a = S(null), { resizeRef: i, resizeState: s } = lo(), c = v(
751
- () => u.value.height + l.value.top + l.value.bottom
750
+ const t = e, o = n, { margins: a, containerSize: u } = te(t), l = R(null), { resizeRef: i, resizeState: s } = ao(), c = v(
751
+ () => u.value.height + a.value.top + a.value.bottom
752
752
  );
753
753
  return Vt(() => {
754
- if (!a.value)
754
+ if (!l.value)
755
755
  return;
756
- const { width: f } = s.dimensions, { height: r } = a.value.getBoundingClientRect();
756
+ const { width: f } = s.dimensions, { height: r } = l.value.getBoundingClientRect();
757
757
  if (!f || !r)
758
758
  return;
759
- const m = f - l.value.left - l.value.right, g = r - l.value.top - l.value.bottom, p = {
759
+ const m = f - a.value.left - a.value.right, g = r - a.value.top - a.value.bottom, p = {
760
760
  width: m > 0 ? m : 0,
761
761
  height: g > 0 ? g : 0,
762
762
  outerWidth: f,
@@ -771,10 +771,10 @@ const ao = ["height"], uo = ["transform"], ro = /* @__PURE__ */ U({
771
771
  }]),
772
772
  "data-j-chart-container": ""
773
773
  }, [
774
- R(f.$slots, "header", {}, void 0, !0),
774
+ M(f.$slots, "header", {}, void 0, !0),
775
775
  (y(), $("svg", {
776
776
  ref_key: "root",
777
- ref: a,
777
+ ref: l,
778
778
  class: ne(["lume-chart-container__svg", {
779
779
  "lume-chart-container__svg--transparent": e.transparentBackground
780
780
  }]),
@@ -785,19 +785,19 @@ const ao = ["height"], uo = ["transform"], ro = /* @__PURE__ */ U({
785
785
  onMouseleave: r[2] || (r[2] = (m) => o("mouseleave", m))
786
786
  }, [
787
787
  C("g", {
788
- transform: `translate(${d(l).left}, ${d(l).top})`,
788
+ transform: `translate(${d(a).left}, ${d(a).top})`,
789
789
  class: "lume-chart-container__group",
790
790
  "data-j-chart-container__group": ""
791
791
  }, [
792
- R(f.$slots, "default", {}, void 0, !0)
792
+ M(f.$slots, "default", {}, void 0, !0)
793
793
  ], 8, uo)
794
- ], 42, ao)),
795
- R(f.$slots, "footer", {}, void 0, !0),
796
- R(f.$slots, "extra", {}, void 0, !0)
794
+ ], 42, lo)),
795
+ M(f.$slots, "footer", {}, void 0, !0),
796
+ M(f.$slots, "extra", {}, void 0, !0)
797
797
  ], 2));
798
798
  }
799
799
  });
800
- const io = /* @__PURE__ */ ee(ro, [["__scopeId", "data-v-2c7d0302"]]), so = ["onClick", "onMouseenter"], co = /* @__PURE__ */ U({
800
+ const io = /* @__PURE__ */ ee(ro, [["__scopeId", "data-v-2c7d0302"]]), so = ["onClick", "onMouseenter"], co = /* @__PURE__ */ W({
801
801
  __name: "lume-chart-legend",
802
802
  props: {
803
803
  data: {
@@ -809,24 +809,24 @@ const io = /* @__PURE__ */ ee(ro, [["__scopeId", "data-v-2c7d0302"]]), so = ["on
809
809
  emits: ["click", "mouseenter", "mouseleave"],
810
810
  setup(e, { emit: n }) {
811
811
  const t = n;
812
- return (o, l) => (y(), $("div", {
812
+ return (o, a) => (y(), $("div", {
813
813
  class: "lume-chart-legend",
814
814
  "data-j-chart-legend": "",
815
- onMouseleave: l[0] || (l[0] = (u) => t("mouseleave"))
815
+ onMouseleave: a[0] || (a[0] = (u) => t("mouseleave"))
816
816
  }, [
817
- (y(!0), $(q, null, z(e.data, (u, a) => (y(), $("div", {
818
- key: `legend-item-${a}`,
817
+ (y(!0), $(q, null, z(e.data, (u, l) => (y(), $("div", {
818
+ key: `legend-item-${l}`,
819
819
  class: "lume-chart-legend__item lume-typography--body",
820
820
  tabindex: "0",
821
821
  "data-j-chart-legend__symbol-wrapper": "",
822
- onClick: (i) => t("click", { index: a, dataset: u, event: i }),
823
- onMouseenter: (i) => t("mouseenter", { index: a, dataset: u, event: i })
822
+ onClick: (i) => t("click", { index: l, dataset: u, event: i }),
823
+ onMouseenter: (i) => t("mouseenter", { index: l, dataset: u, event: i })
824
824
  }, [
825
825
  C("span", {
826
826
  class: ne(["lume-chart-legend__symbol", `lume-background-color--${u.color}`]),
827
827
  "data-j-chart-legend__symbol": ""
828
828
  }, null, 2),
829
- fe(" " + oe(u.label || a), 1)
829
+ ce(" " + oe(u.label || l), 1)
830
830
  ], 40, so))), 128))
831
831
  ], 32));
832
832
  }
@@ -838,7 +838,7 @@ const vo = {}, mo = {
838
838
  };
839
839
  function fo(e, n) {
840
840
  return y(), $("div", mo, [
841
- R(e.$slots, "default", {}, void 0, !0)
841
+ M(e.$slots, "default", {}, void 0, !0)
842
842
  ]);
843
843
  }
844
844
  const po = /* @__PURE__ */ ee(vo, [["render", fo], ["__scopeId", "data-v-8af3fac6"]]);
@@ -849,10 +849,10 @@ const ho = {}, go = {
849
849
  function yo(e, n) {
850
850
  return y(), $("li", go, [
851
851
  C("span", null, [
852
- R(e.$slots, "default", {}, void 0, !0)
852
+ M(e.$slots, "default", {}, void 0, !0)
853
853
  ]),
854
854
  C("strong", _o, [
855
- R(e.$slots, "value", {}, void 0, !0)
855
+ M(e.$slots, "value", {}, void 0, !0)
856
856
  ])
857
857
  ]);
858
858
  }
@@ -862,7 +862,7 @@ const ko = /* @__PURE__ */ ee(ho, [["render", yo], ["__scopeId", "data-v-4ed7ec1
862
862
  }, Ao = { "data-j-tooltip__item__label": "" }, To = {
863
863
  class: "lume-tooltip__value",
864
864
  "data-j-tooltip__item__value": ""
865
- }, Lo = /* @__PURE__ */ U({
865
+ }, Lo = /* @__PURE__ */ W({
866
866
  __name: "lume-tooltip-item",
867
867
  props: {
868
868
  color: {
@@ -876,22 +876,22 @@ const ko = /* @__PURE__ */ ee(ho, [["render", yo], ["__scopeId", "data-v-4ed7ec1
876
876
  key: 0,
877
877
  class: ne([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
878
878
  "data-j-tooltip__item__symbol": ""
879
- }, null, 2)) : W("", !0),
879
+ }, null, 2)) : Z("", !0),
880
880
  C("span", Ao, [
881
- R(n.$slots, "label", {}, void 0, !0)
881
+ M(n.$slots, "label", {}, void 0, !0)
882
882
  ]),
883
883
  C("strong", To, [
884
- R(n.$slots, "value", {}, void 0, !0)
884
+ M(n.$slots, "value", {}, void 0, !0)
885
885
  ])
886
886
  ]));
887
887
  }
888
888
  });
889
- const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e) => (vn("data-v-c96a2010"), e = e(), mn(), e), $o = { class: "lume-tooltip__items" }, Io = {
889
+ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e) => (vn("data-v-c96a2010"), e = e(), mn(), e), $o = { class: "lume-tooltip__items" }, wo = {
890
890
  key: 0,
891
891
  class: "lume-tooltip__break"
892
- }, wo = /* @__PURE__ */ xo(() => /* @__PURE__ */ C("hr", null, null, -1)), Eo = [
893
- wo
894
- ], No = /* @__PURE__ */ U({
892
+ }, Io = /* @__PURE__ */ xo(() => /* @__PURE__ */ C("hr", null, null, -1)), Eo = [
893
+ Io
894
+ ], No = /* @__PURE__ */ W({
895
895
  __name: "lume-tooltip",
896
896
  props: {
897
897
  targetElement: {
@@ -931,7 +931,7 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
931
931
  },
932
932
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
933
933
  setup(e, { emit: n }) {
934
- const t = e, o = n, l = S(null), { items: u, options: a } = te(t), i = re(), s = S(null), { allOptions: c } = me(a), f = v(
934
+ const t = e, o = n, a = R(null), { items: u, options: l } = te(t), i = re(), s = R(null), { allOptions: c } = fe(l), f = v(
935
935
  () => c.value.fixedPositioning ?? t.fixedPositioning
936
936
  ), r = v(
937
937
  () => f.value ? "fixed" : "absolute"
@@ -953,13 +953,13 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
953
953
  ), p = v(() => je(c.value.valueFormat)), b = v(() => je(c.value.titleFormat)), L = v(
954
954
  () => {
955
955
  var P;
956
- return ((P = u.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
956
+ return ((P = u.value) == null ? void 0 : P.find((I) => I.isSummary)) || {
957
957
  label: c.value.summary ?? t.summary
958
958
  };
959
959
  }
960
960
  ), A = v(() => i.summary || L.value.label), h = v(() => t.inverse || c.value.inverse ? [...u.value].reverse() : u.value);
961
961
  function x() {
962
- t.targetElement && l.value && (s.value = kn(t.targetElement, l.value, {
962
+ t.targetElement && a.value && (s.value = kn(t.targetElement, a.value, {
963
963
  placement: t.position,
964
964
  strategy: r.value,
965
965
  modifiers: m.value
@@ -969,62 +969,62 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
969
969
  s.value && (s.value.destroy(), o("closed"));
970
970
  }
971
971
  function D() {
972
- s.value && (c.value.withAnimation !== !1 && l.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
972
+ s.value && (c.value.withAnimation !== !1 && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
973
973
  s.value.state.elements.reference = t.targetElement, s.value.update(), o("moved", t.targetElement);
974
974
  }() : N());
975
975
  }
976
- return Z(
976
+ return U(
977
977
  () => t.targetElement,
978
- (P, w) => {
979
- !w && P ? x() : D();
978
+ (P, I) => {
979
+ !I && P ? x() : D();
980
980
  }
981
- ), _e(x), jt(N), (P, w) => cn((y(), $("div", {
981
+ ), _e(x), jt(N), (P, I) => cn((y(), $("div", {
982
982
  ref_key: "root",
983
- ref: l,
983
+ ref: a,
984
984
  class: ne(["lume-tooltip lume-typography--caption", {
985
- "lume-tooltip--pointer-events": d(a).withPointerEvents
985
+ "lume-tooltip--pointer-events": d(l).withPointerEvents
986
986
  }]),
987
987
  "data-j-tooltip": "",
988
- onMouseenter: w[0] || (w[0] = (H) => o("tooltip-mouseenter")),
989
- onMouseleave: w[1] || (w[1] = (H) => o("tooltip-mouseleave"))
988
+ onMouseenter: I[0] || (I[0] = (H) => o("tooltip-mouseenter")),
989
+ onMouseleave: I[1] || (I[1] = (H) => o("tooltip-mouseleave"))
990
990
  }, [
991
- R(P.$slots, "default", {}, () => [
992
- R(P.$slots, "title", {}, () => [
993
- g.value ? (y(), K(d(po), { key: 0 }, {
991
+ M(P.$slots, "default", {}, () => [
992
+ M(P.$slots, "title", {}, () => [
993
+ g.value ? (y(), X(d(po), { key: 0 }, {
994
994
  default: V(() => [
995
- fe(oe(b.value(e.title)), 1)
995
+ ce(oe(b.value(e.title)), 1)
996
996
  ]),
997
997
  _: 1
998
- })) : W("", !0)
998
+ })) : Z("", !0)
999
999
  ], !0),
1000
1000
  C("ul", $o, [
1001
- R(P.$slots, "summary", {}, () => [
1002
- A.value ? (y(), K(d(ko), { key: 0 }, ce({
1001
+ M(P.$slots, "summary", {}, () => [
1002
+ A.value ? (y(), X(d(ko), { key: 0 }, de({
1003
1003
  default: V(() => [
1004
- fe(oe(L.value.label) + " ", 1)
1004
+ ce(oe(L.value.label) + " ", 1)
1005
1005
  ]),
1006
1006
  _: 2
1007
1007
  }, [
1008
1008
  L.value.value ? {
1009
1009
  name: "value",
1010
1010
  fn: V(() => [
1011
- fe(oe(p.value(L.value.value)), 1)
1011
+ ce(oe(p.value(L.value.value)), 1)
1012
1012
  ]),
1013
1013
  key: "0"
1014
1014
  } : void 0
1015
- ]), 1024)) : W("", !0)
1015
+ ]), 1024)) : Z("", !0)
1016
1016
  ], !0),
1017
- A.value ? (y(), $("li", Io, Eo)) : W("", !0),
1018
- R(P.$slots, "items", {}, () => [
1019
- (y(!0), $(q, null, z(h.value, (H) => (y(), K(d(Oo), {
1017
+ A.value ? (y(), $("li", wo, Eo)) : Z("", !0),
1018
+ M(P.$slots, "items", {}, () => [
1019
+ (y(!0), $(q, null, z(h.value, (H) => (y(), X(d(Oo), {
1020
1020
  key: H.label,
1021
1021
  color: H.color
1022
1022
  }, {
1023
1023
  label: V(() => [
1024
- fe(oe(H.label), 1)
1024
+ ce(oe(H.label), 1)
1025
1025
  ]),
1026
1026
  value: V(() => [
1027
- fe(oe(p.value(H.value)), 1)
1027
+ ce(oe(p.value(H.value)), 1)
1028
1028
  ]),
1029
1029
  _: 2
1030
1030
  }, 1032, ["color"]))), 128))
@@ -1077,10 +1077,10 @@ function $t(e, n, t) {
1077
1077
  }
1078
1078
  }
1079
1079
  function jo(e, n, t = Ho, o) {
1080
- return xt(e, t) ? e : (o > 4 && (ge(ve.ColorLoop), o = o % 5), xt(n, t) ? $t(n, t, o) : $t(Mo(t), t, o));
1080
+ return xt(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), xt(n, t) ? $t(n, t, o) : $t(Mo(t), t, o));
1081
1081
  }
1082
1082
  function Vo(e) {
1083
- return e.map((n) => In(n) ? n : { value: n });
1083
+ return e.map((n) => wn(n) ? n : { value: n });
1084
1084
  }
1085
1085
  function Po(e) {
1086
1086
  return e.__internal === !0;
@@ -1104,13 +1104,13 @@ const ft = (e = null) => ({
1104
1104
  default: null
1105
1105
  }
1106
1106
  });
1107
- function pt(e, n, t, o, l) {
1107
+ function pt(e, n, t, o, a) {
1108
1108
  const u = Fe({
1109
1109
  width: 0,
1110
1110
  height: 0
1111
- }), a = Sn(12), i = v(() => {
1111
+ }), l = Sn(12), i = v(() => {
1112
1112
  var f;
1113
- return e.value.length > 5 && ge(ve.DatasetLength), (f = e.value) == null ? void 0 : f.map(
1113
+ return e.value.length > 5 && ge(me.DatasetLength), (f = e.value) == null ? void 0 : f.map(
1114
1114
  (r, m) => {
1115
1115
  if (Po(r))
1116
1116
  return r;
@@ -1130,11 +1130,11 @@ function pt(e, n, t, o, l) {
1130
1130
  );
1131
1131
  }), s = v(() => Array.isArray(n.value) ? n.value : Wt(e.value).map((f, r) => r));
1132
1132
  function c(f) {
1133
- const r = (l == null ? void 0 : l.value) === B.HORIZONTAL && s.value.length * (((o == null ? void 0 : o.value.barHeight) || Tt) * 2) + ((o == null ? void 0 : o.value.barHeight) || Tt) || f.height;
1133
+ const r = (a == null ? void 0 : a.value) === B.HORIZONTAL && s.value.length * (((o == null ? void 0 : o.value.barHeight) || Tt) * 2) + ((o == null ? void 0 : o.value.barHeight) || Tt) || f.height;
1134
1134
  u.width = f.width, u.height = r;
1135
1135
  }
1136
1136
  return {
1137
- chartID: a,
1137
+ chartID: l,
1138
1138
  computedLabels: s,
1139
1139
  containerSize: u,
1140
1140
  internalData: i,
@@ -1151,62 +1151,62 @@ const Fo = () => ({
1151
1151
  default: null
1152
1152
  }
1153
1153
  });
1154
- function zo(e, n, t, o, l) {
1155
- const u = S(null), a = S(null);
1154
+ function zo(e, n, t, o, a) {
1155
+ const u = R(null), l = R(null);
1156
1156
  function i() {
1157
1157
  var f, r, m, g;
1158
1158
  const { width: s, height: c } = t;
1159
- !s && !c || (o.value === B.HORIZONTAL ? (u.value = (f = e.value) != null && f.length ? wt(
1159
+ !s && !c || (o.value === B.HORIZONTAL ? (u.value = (f = e.value) != null && f.length ? It(
1160
1160
  e.value,
1161
1161
  s,
1162
1162
  o.value,
1163
- l.value.startOnZero
1164
- ) : null, a.value = (r = n.value) != null && r.length ? It(
1163
+ a.value.startOnZero
1164
+ ) : null, l.value = (r = n.value) != null && r.length ? wt(
1165
1165
  n.value,
1166
1166
  c,
1167
1167
  o.value,
1168
- l.value
1169
- ) : null) : (u.value = (m = n.value) != null && m.length ? It(
1168
+ a.value
1169
+ ) : null) : (u.value = (m = n.value) != null && m.length ? wt(
1170
1170
  n.value,
1171
1171
  s,
1172
1172
  o.value,
1173
- l.value
1174
- ) : null, a.value = (g = e.value) != null && g.length ? wt(
1173
+ a.value
1174
+ ) : null, l.value = (g = e.value) != null && g.length ? It(
1175
1175
  e.value,
1176
1176
  c,
1177
1177
  o.value,
1178
- l.value.startOnZero
1178
+ a.value.startOnZero
1179
1179
  ) : null));
1180
1180
  }
1181
- return Vt(i), { xScale: u, yScale: a };
1181
+ return Vt(i), { xScale: u, yScale: l };
1182
1182
  }
1183
- function It(e, n, t, o) {
1184
- const l = [0, n], { padding: u, paddingInner: a, paddingOuter: i } = o, s = u ?? (t === B.HORIZONTAL ? Yt : Xt);
1183
+ function wt(e, n, t, o) {
1184
+ const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, s = u ?? (t === B.HORIZONTAL ? Yt : Xt);
1185
1185
  return Object.assign(
1186
- He().range(l).paddingInner(a ?? s).paddingOuter(i ?? s).domain(e.map((c, f) => f)),
1186
+ He().range(a).paddingInner(l ?? s).paddingOuter(i ?? s).domain(e.map((c, f) => f)),
1187
1187
  { labels: e }
1188
1188
  );
1189
1189
  }
1190
- function wt(e, n, t, o) {
1191
- const l = Ft(e).filter((f) => f != null), u = [0, n];
1192
- if (l.length === 0)
1190
+ function It(e, n, t, o) {
1191
+ const a = Ft(e).filter((f) => f != null), u = [0, n];
1192
+ if (a.length === 0)
1193
1193
  return Be().range(u).domain([0, 0]).nice();
1194
- const a = Math.min(...l), i = o && a > 0 ? 0 : a, s = Math.max(...l), c = t === B.HORIZONTAL ? [i, s] : [s, i];
1194
+ const l = Math.min(...a), i = o && l > 0 ? 0 : l, s = Math.max(...a), c = t === B.HORIZONTAL ? [i, s] : [s, i];
1195
1195
  return Be().range(u).domain(c).nice();
1196
1196
  }
1197
1197
  function Et(e) {
1198
1198
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
1199
1199
  }
1200
1200
  function et(e, n) {
1201
- return de(e) ? e.bandwidth() / 2 + e(e.domain()[n]) : e(n);
1201
+ return ve(e) ? e.bandwidth() / 2 + e(e.domain()[n]) : e(n);
1202
1202
  }
1203
1203
  function Nt(e, n, {
1204
1204
  padding: t,
1205
1205
  paddingInner: o,
1206
- paddingOuter: l
1206
+ paddingOuter: a
1207
1207
  } = {}) {
1208
1208
  const u = t ?? (n === B.HORIZONTAL ? Yt : Xt);
1209
- return e.copy().paddingInner(o ?? u).paddingOuter(l ?? u);
1209
+ return e.copy().paddingInner(o ?? u).paddingOuter(a ?? u);
1210
1210
  }
1211
1211
  function en(e) {
1212
1212
  return Object.values(B).includes(e);
@@ -1279,7 +1279,7 @@ const Ne = (e, n = !0) => ({
1279
1279
  type: [String, Array],
1280
1280
  default: () => []
1281
1281
  }
1282
- }), Zo = { class: "lume-overlay-group" }, Uo = /* @__PURE__ */ U({
1282
+ }), Zo = { class: "lume-overlay-group" }, Uo = /* @__PURE__ */ W({
1283
1283
  __name: "lume-overlay-group",
1284
1284
  props: {
1285
1285
  ...We(),
@@ -1290,12 +1290,12 @@ const Ne = (e, n = !0) => ({
1290
1290
  },
1291
1291
  emits: ["click", "lume__internal--hover", "mouseover"],
1292
1292
  setup(e, { emit: n }) {
1293
- const t = e, o = n, { data: l, orientation: u, xScale: a, yScale: i } = te(t), s = v(() => Wt(l));
1293
+ const t = e, o = n, { data: a, orientation: u, xScale: l, yScale: i } = te(t), s = v(() => Wt(a));
1294
1294
  function c(f) {
1295
1295
  var A;
1296
- const r = u.value === B.HORIZONTAL ? i.value : a.value, m = r.domain(), g = wn(r), p = ((A = r.paddingInner) == null ? void 0 : A.call(r)) ?? 0, b = g * p, L = de(r) ? r(m[f]) - b / 2 : r(f) - g / 2;
1296
+ const r = u.value === B.HORIZONTAL ? i.value : l.value, m = r.domain(), g = In(r), p = ((A = r.paddingInner) == null ? void 0 : A.call(r)) ?? 0, b = g * p, L = ve(r) ? r(m[f]) - b / 2 : r(f) - g / 2;
1297
1297
  return u.value === B.HORIZONTAL ? {
1298
- width: Math.max(...a.value.range()),
1298
+ width: Math.max(...l.value.range()),
1299
1299
  height: g,
1300
1300
  transform: `translate(0, ${L})`
1301
1301
  } : {
@@ -1305,7 +1305,7 @@ const Ne = (e, n = !0) => ({
1305
1305
  };
1306
1306
  }
1307
1307
  return (f, r) => (y(), $("g", Zo, [
1308
- (y(!0), $(q, null, z(s.value, (m, g) => (y(), K(d(mt), G(c(g), {
1308
+ (y(!0), $(q, null, z(s.value, (m, g) => (y(), X(d(mt), G(c(g), {
1309
1309
  key: `overlay-${g}`,
1310
1310
  "data-j-lume-overlay-group": g,
1311
1311
  transition: !1,
@@ -1316,9 +1316,9 @@ const Ne = (e, n = !0) => ({
1316
1316
  ]));
1317
1317
  }
1318
1318
  }), ye = (e, n) => {
1319
- function t(u, ...a) {
1319
+ function t(u, ...l) {
1320
1320
  }
1321
- function o(u, a) {
1321
+ function o(u, l) {
1322
1322
  }
1323
1323
  return { componentEventPropagator: {}, emitInternalEvent: t, listenInternalEvent: o };
1324
1324
  };
@@ -1328,47 +1328,47 @@ function Xo(e) {
1328
1328
  ) };
1329
1329
  }
1330
1330
  function Yo(e, n, t, o) {
1331
- const l = v(
1331
+ const a = v(
1332
1332
  () => o.value === B.HORIZONTAL
1333
1333
  ), u = v(
1334
1334
  () => {
1335
1335
  var c;
1336
- return e.height - (l != null && l.value ? 0 : ((c = t.value) == null ? void 0 : c.call(t, 0)) || 0);
1336
+ return e.height - (a != null && a.value ? 0 : ((c = t.value) == null ? void 0 : c.call(t, 0)) || 0);
1337
1337
  }
1338
- ), a = v(
1338
+ ), l = v(
1339
1339
  () => {
1340
1340
  var c;
1341
- return l != null && l.value ? ((c = n.value) == null ? void 0 : c.call(n, 0)) || 0 : e.width;
1341
+ return a != null && a.value ? ((c = n.value) == null ? void 0 : c.call(n, 0)) || 0 : e.width;
1342
1342
  }
1343
1343
  ), i = v(
1344
1344
  () => {
1345
1345
  var c;
1346
- return l != null && l.value ? "translate(0, 0)" : `translate(0, ${((c = t.value) == null ? void 0 : c.call(t, 0)) || 0})`;
1346
+ return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((c = t.value) == null ? void 0 : c.call(t, 0)) || 0})`;
1347
1347
  }
1348
1348
  );
1349
1349
  return { negativeBarAttributes: v(() => ({
1350
- width: a.value,
1350
+ width: l.value,
1351
1351
  height: u.value,
1352
1352
  transform: i.value
1353
1353
  })) };
1354
1354
  }
1355
1355
  function Ko(e, n) {
1356
1356
  return e.reduce((t, o) => st(o.values, n).map(
1357
- (l, u) => t[u] ? l.value > t[u] ? l.value : t[u] : l.value ?? 0
1357
+ (a, u) => t[u] ? a.value > t[u] ? a.value : t[u] : a.value ?? 0
1358
1358
  ), []);
1359
1359
  }
1360
1360
  function Jo(e, n) {
1361
1361
  return e.reduce((t, o) => st(o.values, n).map(
1362
- (l, u) => {
1363
- const a = l.value == null || l.value < 0 ? 0 : l.value;
1364
- return t[u] ? t[u] + a : a;
1362
+ (a, u) => {
1363
+ const l = a.value == null || a.value < 0 ? 0 : a.value;
1364
+ return t[u] ? t[u] + l : l;
1365
1365
  }
1366
1366
  ), []);
1367
1367
  }
1368
1368
  const Dt = {
1369
1369
  "stacked-bar": Jo
1370
1370
  };
1371
- function tn(e, n, t, o, l, u, a, i) {
1371
+ function tn(e, n, t, o, a, u, l, i) {
1372
1372
  const s = v(
1373
1373
  () => {
1374
1374
  var f;
@@ -1377,7 +1377,7 @@ function tn(e, n, t, o, l, u, a, i) {
1377
1377
  );
1378
1378
  function c(f) {
1379
1379
  var g;
1380
- const r = ((g = l == null ? void 0 : l.value) == null ? void 0 : g.length) ?? 0, m = i != null && i.value && Dt[i.value] ? Dt[i.value](
1380
+ const r = ((g = a == null ? void 0 : a.value) == null ? void 0 : g.length) ?? 0, m = i != null && i.value && Dt[i.value] ? Dt[i.value](
1381
1381
  f,
1382
1382
  r
1383
1383
  ) : Ko(f, r);
@@ -1386,10 +1386,10 @@ function tn(e, n, t, o, l, u, a, i) {
1386
1386
  cy: (u == null ? void 0 : u.value) === B.HORIZONTAL ? et(o.value, b) : o.value(p)
1387
1387
  }));
1388
1388
  }
1389
- return Z(
1389
+ return U(
1390
1390
  [t, o],
1391
1391
  () => {
1392
- t.value && o.value && (a != null && a.value) && s.value && c(a.value);
1392
+ t.value && o.value && (l != null && l.value) && s.value && c(l.value);
1393
1393
  },
1394
1394
  { immediate: !0 }
1395
1395
  ), { shouldGenerateTooltipAnchors: s, updateTooltipAnchorAttributes: c };
@@ -1407,52 +1407,52 @@ function Qo() {
1407
1407
  }
1408
1408
  function qo(e) {
1409
1409
  return { getTooltipItems: v(
1410
- () => (t) => e.value.map(({ color: o, label: l, values: u }) => {
1411
- var a, i, s;
1410
+ () => (t) => e.value.map(({ color: o, label: a, values: u }) => {
1411
+ var l, i, s;
1412
1412
  return {
1413
- color: ((a = u[t]) == null ? void 0 : a.color) || o,
1414
- label: l,
1413
+ color: ((l = u[t]) == null ? void 0 : l.color) || o,
1414
+ label: a,
1415
1415
  value: ((i = u[t]) == null ? void 0 : i.label) ?? ((s = u[t]) == null ? void 0 : s.value) ?? Ut
1416
1416
  };
1417
1417
  })
1418
1418
  ) };
1419
1419
  }
1420
- const tt = 16, nt = 8, ot = 28, lt = 24, Te = {
1420
+ const tt = 16, nt = 8, ot = 28, at = 24, Te = {
1421
1421
  VERTICAL: {
1422
1422
  top: tt,
1423
1423
  right: nt,
1424
1424
  bottom: ot,
1425
- left: lt
1425
+ left: at
1426
1426
  },
1427
1427
  HORIZONTAL: {
1428
1428
  top: tt,
1429
1429
  right: nt,
1430
1430
  bottom: ot,
1431
- left: lt
1431
+ left: at
1432
1432
  }
1433
1433
  };
1434
- function el(e) {
1434
+ function ea(e) {
1435
1435
  return !e || e === "auto" || e.top == null || e.top === "auto" ? tt : e.top;
1436
1436
  }
1437
- function tl(e) {
1437
+ function ta(e) {
1438
1438
  return !e || e === "auto" || e.right == null || e.right === "auto" ? nt : e.right;
1439
1439
  }
1440
- function nl(e, n) {
1440
+ function na(e, n) {
1441
1441
  return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? n || ot : e.bottom;
1442
1442
  }
1443
- function ol(e, n) {
1444
- return !e || e === "auto" || e.left == null || e.left === "auto" ? n || lt : e.left;
1443
+ function oa(e, n) {
1444
+ return !e || e === "auto" || e.left == null || e.left === "auto" ? n || at : e.left;
1445
1445
  }
1446
- const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-section" }, ul = {
1446
+ const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-section" }, ua = {
1447
1447
  key: 0,
1448
1448
  class: "lume-chart__title lume-chart-title lume-typography--display"
1449
- }, rl = { class: "lume-chart__controls" }, il = { class: "lume-chart__header-section" }, sl = {
1449
+ }, ra = { class: "lume-chart__controls" }, ia = { class: "lume-chart__header-section" }, sa = {
1450
1450
  key: 0,
1451
1451
  class: "lume-chart__axis-title lume-axis-title lume-typography--body"
1452
- }, cl = { key: 3 }, dl = ["r"], vl = {
1452
+ }, ca = { key: 3 }, da = ["r"], va = {
1453
1453
  key: 0,
1454
1454
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
1455
- }, ml = /* @__PURE__ */ U({
1455
+ }, ma = /* @__PURE__ */ W({
1456
1456
  __name: "lume-chart",
1457
1457
  props: {
1458
1458
  ...Ne(),
@@ -1462,23 +1462,23 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1462
1462
  }
1463
1463
  },
1464
1464
  setup(e, { emit: n }) {
1465
- const t = e, o = re(), l = n, { data: u, labels: a, color: i, options: s, orientation: c, chartType: f } = te(t), r = S(-1), m = S(null), g = S(null), p = S([]), b = S(null), L = S(0), A = S(0), { allOptions: h } = me(s), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = pt(u, a, i, h, c), { xScale: H, yScale: X } = zo(
1465
+ const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: s, orientation: c, chartType: f } = te(t), r = R(-1), m = R(null), g = R(null), p = R([]), b = R(null), L = R(0), A = R(0), { allOptions: h } = fe(s), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: I } = pt(u, l, i, h, c), { xScale: H, yScale: Y } = zo(
1466
1466
  x,
1467
1467
  N,
1468
1468
  D,
1469
1469
  c,
1470
1470
  h
1471
- ), Y = v(() => ({
1472
- top: el(h.value.margins),
1473
- right: tl(h.value.margins),
1474
- bottom: nl(h.value.margins, L.value),
1475
- left: ol(h.value.margins, A.value)
1471
+ ), K = v(() => ({
1472
+ top: ea(h.value.margins),
1473
+ right: ta(h.value.margins),
1474
+ bottom: na(h.value.margins, L.value),
1475
+ left: oa(h.value.margins, A.value)
1476
1476
  })), Q = v(() => {
1477
1477
  var O;
1478
- return t.xScale ? Et(t.xScale) ? t.xScale : (O = t.xScale) == null ? void 0 : O.call(t, x.value, a.value, D) : H.value;
1478
+ return t.xScale ? Et(t.xScale) ? t.xScale : (O = t.xScale) == null ? void 0 : O.call(t, x.value, l.value, D) : H.value;
1479
1479
  }), F = v(() => {
1480
1480
  var O;
1481
- return t.yScale ? Et(t.yScale) ? t.yScale : (O = t.yScale) == null ? void 0 : O.call(t, x.value, a.value, D) : X.value;
1481
+ return t.yScale ? Et(t.yScale) ? t.yScale : (O = t.yScale) == null ? void 0 : O.call(t, x.value, l.value, D) : Y.value;
1482
1482
  }), ue = v(() => ({
1483
1483
  ...h.value.xAxisOptions,
1484
1484
  withHover: c.value === B.VERTICAL
@@ -1491,7 +1491,7 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1491
1491
  }), xe = v(() => {
1492
1492
  var O;
1493
1493
  return (O = h.value.yAxisOptions) == null ? void 0 : O.title;
1494
- }), M = v(() => {
1494
+ }), S = v(() => {
1495
1495
  var O;
1496
1496
  return ((O = h.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && ke.value;
1497
1497
  }), k = v(() => {
@@ -1501,22 +1501,22 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1501
1501
  () => u.value.every((O) => !O.values.length)
1502
1502
  ), _ = v(() => {
1503
1503
  const O = [], { noBaseScales: T } = h.value;
1504
- return !T && !E.value && O.push(() => !!(Q.value && F.value)), O.every((I) => I() === !0);
1504
+ return !T && !E.value && O.push(() => !!(Q.value && F.value)), O.every((w) => w() === !0);
1505
1505
  }), { hasNegativeValues: j } = Xo(x), { negativeBarAttributes: J } = Yo(
1506
1506
  D,
1507
1507
  Q,
1508
1508
  F,
1509
1509
  c
1510
- ), { shouldGenerateTooltipAnchors: ae } = tn(
1510
+ ), { shouldGenerateTooltipAnchors: le } = tn(
1511
1511
  p,
1512
1512
  h,
1513
1513
  Q,
1514
1514
  F,
1515
- a,
1515
+ l,
1516
1516
  c,
1517
1517
  x,
1518
1518
  f
1519
- ), { tooltipConfig: $e, showTooltip: Ze, hideTooltip: Ue } = Qo(), { getTooltipItems: Ie } = qo(x), Ce = v(
1519
+ ), { tooltipConfig: $e, showTooltip: Ze, hideTooltip: Ue } = Qo(), { getTooltipItems: we } = qo(x), Ce = v(
1520
1520
  () => h.value.withTooltip !== !1 && $e.opened
1521
1521
  ), be = v(
1522
1522
  () => {
@@ -1529,111 +1529,111 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1529
1529
  return $e.opened && (!O || O && b.value === !1);
1530
1530
  });
1531
1531
  function Ge(O) {
1532
- var I;
1532
+ var w;
1533
1533
  if (O === r.value)
1534
1534
  return;
1535
1535
  const T = r.value;
1536
1536
  if (h.value.withHover !== !1 && (r.value = O), h.value.withTooltip !== !1) {
1537
- const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[O];
1537
+ const Ye = (w = h.value.tooltipOptions) != null && w.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[O];
1538
1538
  Ze(Ye);
1539
1539
  }
1540
- l("hovered-index-changed", { newIndex: O, oldIndex: T });
1540
+ a("hovered-index-changed", { newIndex: O, oldIndex: T });
1541
1541
  }
1542
1542
  function Xe() {
1543
1543
  Ue(), r.value = -1;
1544
1544
  }
1545
1545
  function gt(O) {
1546
1546
  if (!u.value.some(
1547
- ({ values: I }) => O <= I.length - 1
1547
+ ({ values: w }) => O <= w.length - 1
1548
1548
  )) {
1549
- ge(ve.InvalidHoveredIndex);
1549
+ ge(me.InvalidHoveredIndex);
1550
1550
  return;
1551
1551
  }
1552
1552
  O == null || O === -1 ? Xe() : Ge(O);
1553
1553
  }
1554
1554
  function sn() {
1555
1555
  setTimeout(() => {
1556
- rn.value && Xe(), l("chart-mouseleave");
1556
+ rn.value && Xe(), a("chart-mouseleave");
1557
1557
  }, 0);
1558
1558
  }
1559
- function _t({ index: O, value: T, event: I }) {
1560
- O !== null && Ge(O), l("axis-mouseenter", { index: O, value: T, event: I });
1559
+ function _t({ index: O, value: T, event: w }) {
1560
+ O !== null && Ge(O), a("axis-mouseenter", { index: O, value: T, event: w });
1561
1561
  }
1562
- function yt({ index: O, value: T, event: I }) {
1563
- l("axis-click", { index: O, value: T, event: I });
1562
+ function yt({ index: O, value: T, event: w }) {
1563
+ a("axis-click", { index: O, value: T, event: w });
1564
1564
  }
1565
- return Z(
1565
+ return U(
1566
1566
  u,
1567
- (O, T) => l("data-changed", { newValue: O, oldValue: T })
1568
- ), Z(
1569
- a,
1570
- (O, T) => l("labels-changed", { newValue: O, oldValue: T })
1571
- ), Z(E, (O) => O && ge(ve.Empty), { immediate: !0 }), Z(() => t.hoveredIndex, gt), Z(
1567
+ (O, T) => a("data-changed", { newValue: O, oldValue: T })
1568
+ ), U(
1569
+ l,
1570
+ (O, T) => a("labels-changed", { newValue: O, oldValue: T })
1571
+ ), U(E, (O) => O && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, gt), U(
1572
1572
  p,
1573
1573
  (O) => {
1574
1574
  O && t.hoveredIndex != null && r.value === -1 && gt(t.hoveredIndex);
1575
1575
  },
1576
1576
  { flush: "post" }
1577
- ), Z(b, (O) => {
1577
+ ), U(b, (O) => {
1578
1578
  O === !1 && $e.opened && Xe();
1579
1579
  }), _e(async () => {
1580
- l("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1581
- }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (O, T) => (y(), K(d(io), {
1582
- id: `lume-chart_${d(w)}`,
1580
+ a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1581
+ }), Ke("chartID", I), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (O, T) => (y(), X(d(io), {
1582
+ id: `lume-chart_${d(I)}`,
1583
1583
  ref_key: "chartContainer",
1584
1584
  ref: g,
1585
- margins: Y.value,
1585
+ margins: K.value,
1586
1586
  "container-size": d(D),
1587
1587
  "no-min-size": d(h).noMinSize,
1588
1588
  "transparent-background": d(h).transparentBackground,
1589
1589
  "data-j-lume-chart": "",
1590
1590
  onResize: d(P),
1591
- onClick: T[24] || (T[24] = (I) => l("chart-click", I)),
1592
- onMouseenter: T[25] || (T[25] = (I) => l("chart-mouseenter", I)),
1591
+ onClick: T[24] || (T[24] = (w) => a("chart-click", w)),
1592
+ onMouseenter: T[25] || (T[25] = (w) => a("chart-mouseenter", w)),
1593
1593
  onMouseleave: sn
1594
1594
  }, {
1595
1595
  header: V(() => [
1596
- C("div", ll, [
1597
- C("div", al, [
1598
- O.title ? (y(), $("h1", ul, oe(O.title), 1)) : W("", !0),
1599
- C("div", rl, [
1600
- R(O.$slots, "controls", {}, void 0, !0)
1596
+ C("div", aa, [
1597
+ C("div", la, [
1598
+ O.title ? (y(), $("h1", ua, oe(O.title), 1)) : Z("", !0),
1599
+ C("div", ra, [
1600
+ M(O.$slots, "controls", {}, void 0, !0)
1601
1601
  ])
1602
1602
  ]),
1603
- C("div", il, [
1604
- k.value ? (y(), $("h3", sl, oe(xe.value), 1)) : W("", !0),
1605
- R(O.$slots, "legend", { data: d(x) }, () => [
1606
- d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), K(d(Ot), {
1603
+ C("div", ia, [
1604
+ k.value ? (y(), $("h3", sa, oe(xe.value), 1)) : Z("", !0),
1605
+ M(O.$slots, "legend", { data: d(x) }, () => [
1606
+ d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d(Ot), {
1607
1607
  key: 0,
1608
1608
  data: d(x),
1609
1609
  class: "lume-chart__legend",
1610
1610
  "data-j-lume-chart__legend": "",
1611
- onClick: T[0] || (T[0] = (I) => l("legend-click", I)),
1612
- onMouseenter: T[1] || (T[1] = (I) => l("legend-mouseenter", I)),
1613
- onMouseleave: T[2] || (T[2] = (I) => l("legend-mouseleave"))
1614
- }, null, 8, ["data"])) : W("", !0)
1611
+ onClick: T[0] || (T[0] = (w) => a("legend-click", w)),
1612
+ onMouseenter: T[1] || (T[1] = (w) => a("legend-mouseenter", w)),
1613
+ onMouseleave: T[2] || (T[2] = (w) => a("legend-mouseleave"))
1614
+ }, null, 8, ["data"])) : Z("", !0)
1615
1615
  ], !0)
1616
1616
  ])
1617
1617
  ])
1618
1618
  ]),
1619
1619
  footer: V(() => [
1620
- M.value ? (y(), $("h3", vl, oe(ke.value), 1)) : W("", !0),
1621
- d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), K(d(Ot), {
1620
+ S.value ? (y(), $("h3", va, oe(ke.value), 1)) : Z("", !0),
1621
+ d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d(Ot), {
1622
1622
  key: 1,
1623
1623
  data: d(x),
1624
1624
  class: "lume-chart__legend lume-chart__legend--bottom",
1625
1625
  "data-j-lume-chart__legend": "",
1626
- onClick: T[16] || (T[16] = (I) => l("legend-click", I)),
1627
- onMouseenter: T[17] || (T[17] = (I) => l("legend-mouseenter", I)),
1628
- onMouseleave: T[18] || (T[18] = (I) => l("legend-mouseleave"))
1629
- }, null, 8, ["data"])) : W("", !0)
1626
+ onClick: T[16] || (T[16] = (w) => a("legend-click", w)),
1627
+ onMouseenter: T[17] || (T[17] = (w) => a("legend-mouseenter", w)),
1628
+ onMouseleave: T[18] || (T[18] = (w) => a("legend-mouseleave"))
1629
+ }, null, 8, ["data"])) : Z("", !0)
1630
1630
  ]),
1631
1631
  extra: V(() => [
1632
- R(O.$slots, "tooltip", G(d($e), {
1632
+ M(O.$slots, "tooltip", G(d($e), {
1633
1633
  data: d(x),
1634
1634
  labels: d(N),
1635
1635
  title: d(N)[r.value],
1636
- items: d(Ie)(r.value),
1636
+ items: d(we)(r.value),
1637
1637
  position: be.value,
1638
1638
  withTooltip: d(h).withTooltip !== !1,
1639
1639
  hoveredIndex: r.value,
@@ -1641,43 +1641,43 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1641
1641
  handleMouseLeave: () => b.value = !1,
1642
1642
  options: d(h).tooltipOptions
1643
1643
  }), () => [
1644
- Ce.value ? (y(), K(d(Do), G({ key: 0 }, d($e), {
1644
+ Ce.value ? (y(), X(d(Do), G({ key: 0 }, d($e), {
1645
1645
  position: be.value,
1646
1646
  title: d(N)[r.value],
1647
- items: d(Ie)(r.value),
1647
+ items: d(we)(r.value),
1648
1648
  options: d(h).tooltipOptions,
1649
1649
  "data-j-lume-chart__tooltip": "",
1650
- onOpened: T[19] || (T[19] = (I) => l("tooltip-opened", {
1650
+ onOpened: T[19] || (T[19] = (w) => a("tooltip-opened", {
1651
1651
  index: r.value,
1652
- targetElement: I
1652
+ targetElement: w
1653
1653
  })),
1654
- onMoved: T[20] || (T[20] = (I) => l("tooltip-moved", {
1654
+ onMoved: T[20] || (T[20] = (w) => a("tooltip-moved", {
1655
1655
  index: r.value,
1656
- targetElement: I
1656
+ targetElement: w
1657
1657
  })),
1658
- onClosed: T[21] || (T[21] = (I) => l("tooltip-closed")),
1659
- onTooltipMouseenter: T[22] || (T[22] = (I) => b.value = !0),
1660
- onTooltipMouseleave: T[23] || (T[23] = (I) => b.value = !1)
1658
+ onClosed: T[21] || (T[21] = (w) => a("tooltip-closed")),
1659
+ onTooltipMouseenter: T[22] || (T[22] = (w) => b.value = !0),
1660
+ onTooltipMouseleave: T[23] || (T[23] = (w) => b.value = !1)
1661
1661
  }), {
1662
1662
  default: V(() => [
1663
- R(O.$slots, "tooltip-content", {
1663
+ M(O.$slots, "tooltip-content", {
1664
1664
  data: d(x),
1665
1665
  labels: d(N),
1666
1666
  hoveredIndex: r.value
1667
1667
  }, void 0, !0)
1668
1668
  ]),
1669
1669
  _: 3
1670
- }, 16, ["position", "title", "items", "options"])) : W("", !0)
1670
+ }, 16, ["position", "title", "items", "options"])) : Z("", !0)
1671
1671
  ], !0)
1672
1672
  ]),
1673
1673
  default: V(() => [
1674
1674
  _.value ? (y(), $(q, { key: 0 }, [
1675
- d(j) ? (y(), K(d(mt), G({ key: 0 }, d(J), {
1675
+ d(j) ? (y(), X(d(mt), G({ key: 0 }, d(J), {
1676
1676
  "class-list": "lume-fill--negative",
1677
1677
  transition: !1,
1678
1678
  "data-j-lume-chart__negative-values": ""
1679
- }), null, 16)) : W("", !0),
1680
- d(h).withAxes !== !1 ? R(O.$slots, "axes", {
1679
+ }), null, 16)) : Z("", !0),
1680
+ d(h).withAxes !== !1 ? M(O.$slots, "axes", {
1681
1681
  key: 1,
1682
1682
  xScale: Q.value,
1683
1683
  yScale: F.value,
@@ -1695,8 +1695,8 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1695
1695
  "data-j-lume-chart__x-axis": "",
1696
1696
  onClick: yt,
1697
1697
  onMouseenter: _t,
1698
- onMouseleave: T[3] || (T[3] = (I) => l("axis-mouseleave")),
1699
- "onLume__internal-AxisSize": T[4] || (T[4] = (I) => L.value = I)
1698
+ onMouseleave: T[3] || (T[3] = (w) => a("axis-mouseleave")),
1699
+ "onLume__internal-AxisSize": T[4] || (T[4] = (w) => L.value = w)
1700
1700
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1701
1701
  ie(d(Lt), {
1702
1702
  type: "y",
@@ -1708,11 +1708,11 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1708
1708
  "data-j-lume-chart__y-axis": "",
1709
1709
  onClick: yt,
1710
1710
  onMouseenter: _t,
1711
- onMouseleave: T[5] || (T[5] = (I) => l("axis-mouseleave")),
1712
- "onLume__internal-AxisSize": T[6] || (T[6] = (I) => A.value = I)
1711
+ onMouseleave: T[5] || (T[5] = (w) => a("axis-mouseleave")),
1712
+ "onLume__internal-AxisSize": T[6] || (T[6] = (w) => A.value = w)
1713
1713
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1714
- ], !0) : W("", !0),
1715
- d(h).withHover !== !1 ? (y(), K(d(Uo), {
1714
+ ], !0) : Z("", !0),
1715
+ d(h).withHover !== !1 ? (y(), X(d(Uo), {
1716
1716
  key: 2,
1717
1717
  data: d(x),
1718
1718
  orientation: d(c),
@@ -1720,18 +1720,18 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1720
1720
  "y-scale": F.value,
1721
1721
  "data-j-lume-chart__overlay-group": "",
1722
1722
  "onLume__internal-Hover": Ge
1723
- }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : W("", !0),
1724
- d(ae) ? (y(), $("g", cl, [
1725
- (y(!0), $(q, null, z(p.value, (I, Ye) => (y(), $("circle", G(I, {
1723
+ }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : Z("", !0),
1724
+ d(le) ? (y(), $("g", ca, [
1725
+ (y(!0), $(q, null, z(p.value, (w, Ye) => (y(), $("circle", G(w, {
1726
1726
  ref_for: !0,
1727
1727
  ref_key: "tooltipAnchor",
1728
1728
  ref: m,
1729
1729
  key: `anchor_${Ye}`,
1730
1730
  r: d(Vn),
1731
1731
  class: "lume-fill--transparent"
1732
- }), null, 16, dl))), 128))
1733
- ])) : W("", !0),
1734
- R(O.$slots, "groups", {
1732
+ }), null, 16, da))), 128))
1733
+ ])) : Z("", !0),
1734
+ M(O.$slots, "groups", {
1735
1735
  data: d(x),
1736
1736
  labels: d(N),
1737
1737
  options: d(h),
@@ -1742,24 +1742,24 @@ const ll = { class: "lume-chart__header" }, al = { class: "lume-chart__header-se
1742
1742
  containerSize: d(D),
1743
1743
  transition: d(h).withTransition !== !1,
1744
1744
  classList: O.classList,
1745
- onNodeClick: T[7] || (T[7] = (I) => l("node-click", I)),
1746
- onNodeMouseenter: T[8] || (T[8] = (I) => l("node-mouseenter", I)),
1747
- onNodeMouseleave: T[9] || (T[9] = (I) => l("node-mouseleave", I)),
1748
- onLinkClick: T[10] || (T[10] = (I) => l("link-click", I)),
1749
- onLinkMouseenter: T[11] || (T[11] = (I) => l("link-mouseenter", I)),
1750
- onLinkMouseleave: T[12] || (T[12] = (I) => l("link-mouseleave", I)),
1751
- onBarClick: T[13] || (T[13] = (I) => l("bar-click", I)),
1752
- onLineClick: T[14] || (T[14] = (I) => l("line-click", I)),
1753
- onPointClick: T[15] || (T[15] = (I) => l("point-click", I)),
1745
+ onNodeClick: T[7] || (T[7] = (w) => a("node-click", w)),
1746
+ onNodeMouseenter: T[8] || (T[8] = (w) => a("node-mouseenter", w)),
1747
+ onNodeMouseleave: T[9] || (T[9] = (w) => a("node-mouseleave", w)),
1748
+ onLinkClick: T[10] || (T[10] = (w) => a("link-click", w)),
1749
+ onLinkMouseenter: T[11] || (T[11] = (w) => a("link-mouseenter", w)),
1750
+ onLinkMouseleave: T[12] || (T[12] = (w) => a("link-mouseleave", w)),
1751
+ onBarClick: T[13] || (T[13] = (w) => a("bar-click", w)),
1752
+ onLineClick: T[14] || (T[14] = (w) => a("line-click", w)),
1753
+ onPointClick: T[15] || (T[15] = (w) => a("point-click", w)),
1754
1754
  "onLume__internal-Hover": Ge
1755
1755
  }, void 0, !0)
1756
- ], 64)) : W("", !0)
1756
+ ], 64)) : Z("", !0)
1757
1757
  ]),
1758
1758
  _: 3
1759
1759
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "onResize"]));
1760
1760
  }
1761
1761
  });
1762
- const De = /* @__PURE__ */ ee(ml, [["__scopeId", "data-v-84133075"]]), Ht = 8, fl = 8, pl = 20, Ee = 2, Bt = 2, hl = ["dy", "dominant-baseline"], gl = ["y", "x", "width", "height"], _l = { class: "lume-alluvial-group__label-wrapper" }, yl = /* @__PURE__ */ U({
1762
+ const De = /* @__PURE__ */ ee(ma, [["__scopeId", "data-v-84133075"]]), Ht = 8, fa = 8, pa = 20, Ee = 2, Bt = 2, ha = ["dy", "dominant-baseline"], ga = ["y", "x", "width", "height"], _a = { class: "lume-alluvial-group__label-wrapper" }, ya = /* @__PURE__ */ W({
1763
1763
  __name: "lume-alluvial-node-label",
1764
1764
  props: {
1765
1765
  bottom: { type: Boolean, default: !1 },
@@ -1768,47 +1768,47 @@ const De = /* @__PURE__ */ ee(ml, [["__scopeId", "data-v-84133075"]]), Ht = 8, f
1768
1768
  },
1769
1769
  emits: ["lume__internal--node-resize"],
1770
1770
  setup(e, { emit: n }) {
1771
- const t = e, o = n, l = S(null), u = S(t.maxWidth), a = S(1);
1772
- return Z(
1773
- [l, () => t.maxWidth],
1771
+ const t = e, o = n, a = R(null), u = R(t.maxWidth), l = R(1);
1772
+ return U(
1773
+ [a, () => t.maxWidth],
1774
1774
  async ([i, s]) => {
1775
1775
  if (i && s) {
1776
1776
  u.value = s, await kt();
1777
1777
  const { width: c, height: f } = i.getBoundingClientRect();
1778
- u.value = c + Bt > s ? s : c + Bt, a.value = Math.ceil(f);
1778
+ u.value = c + Bt > s ? s : c + Bt, l.value = Math.ceil(f);
1779
1779
  }
1780
1780
  },
1781
1781
  { immediate: !0 }
1782
- ), Z(u, async (i) => {
1782
+ ), U(u, async (i) => {
1783
1783
  i !== t.maxWidth && (await kt(), o("lume__internal--node-resize"));
1784
1784
  }), (i, s) => e.maxWidth ? (y(), $("foreignObject", {
1785
1785
  key: 1,
1786
1786
  class: "lume-alluvial-group__node-foreign",
1787
- y: e.bottom ? "0.1em" : -a.value + 1,
1787
+ y: e.bottom ? "0.1em" : -l.value + 1,
1788
1788
  x: e.left ? -u.value : 0,
1789
1789
  width: u.value,
1790
- height: a.value
1790
+ height: l.value
1791
1791
  }, [
1792
- C("div", _l, [
1792
+ C("div", _a, [
1793
1793
  C("span", {
1794
1794
  ref_key: "text",
1795
- ref: l,
1795
+ ref: a,
1796
1796
  class: "lume-alluvial-group__node-label"
1797
1797
  }, [
1798
- R(i.$slots, "default", {}, void 0, !0)
1798
+ M(i.$slots, "default", {}, void 0, !0)
1799
1799
  ], 512)
1800
1800
  ])
1801
- ], 8, gl)) : (y(), $("text", {
1801
+ ], 8, ga)) : (y(), $("text", {
1802
1802
  key: 0,
1803
1803
  class: "lume-alluvial-group__node-label",
1804
1804
  dy: e.bottom ? ".2em" : "-.2em",
1805
1805
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1806
1806
  }, [
1807
- R(i.$slots, "default", {}, void 0, !0)
1808
- ], 8, hl));
1807
+ M(i.$slots, "default", {}, void 0, !0)
1808
+ ], 8, ha));
1809
1809
  }
1810
1810
  });
1811
- const kl = /* @__PURE__ */ ee(yl, [["__scopeId", "data-v-7126dfdb"]]), bl = ["y", "dominant-baseline"], Al = /* @__PURE__ */ U({
1811
+ const ka = /* @__PURE__ */ ee(ya, [["__scopeId", "data-v-7126dfdb"]]), ba = ["y", "dominant-baseline"], Aa = /* @__PURE__ */ W({
1812
1812
  __name: "lume-alluvial-node-value",
1813
1813
  props: {
1814
1814
  bottom: { type: Boolean, default: !0 }
@@ -1819,11 +1819,42 @@ const kl = /* @__PURE__ */ ee(yl, [["__scopeId", "data-v-7126dfdb"]]), bl = ["y"
1819
1819
  y: e.bottom ? ".2em" : "-.2em",
1820
1820
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1821
1821
  }, [
1822
- R(n.$slots, "default", {}, void 0, !0)
1823
- ], 8, bl));
1822
+ M(n.$slots, "default", {}, void 0, !0)
1823
+ ], 8, ba));
1824
1824
  }
1825
1825
  });
1826
- const Tl = /* @__PURE__ */ ee(Al, [["__scopeId", "data-v-b4fc758b"]]);
1826
+ const Ta = /* @__PURE__ */ ee(Aa, [["__scopeId", "data-v-b4fc758b"]]), La = ["transform"], Oa = ["transform"], xa = ["transform"], $a = /* @__PURE__ */ W({
1827
+ __name: "lume-alluvial-node-header",
1828
+ props: {
1829
+ x: { type: Number, required: !0 },
1830
+ y: { type: Number, required: !0 }
1831
+ },
1832
+ setup(e) {
1833
+ const n = R(null), t = v(
1834
+ () => n.value && `translate(${-n.value.getBBox().width / 2}, 0)`
1835
+ ), o = v(
1836
+ () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
1837
+ );
1838
+ return (a, u) => (y(), $("g", {
1839
+ transform: `translate(${e.x}, ${e.y})`
1840
+ }, [
1841
+ C("g", { transform: t.value }, [
1842
+ M(a.$slots, "before", {}, void 0, !0)
1843
+ ], 8, Oa),
1844
+ C("text", {
1845
+ ref_key: "textRef",
1846
+ ref: n,
1847
+ class: "lume-alluvial-group__node-header lume-typography--caption"
1848
+ }, [
1849
+ M(a.$slots, "default", {}, void 0, !0)
1850
+ ], 512),
1851
+ C("g", { transform: o.value }, [
1852
+ M(a.$slots, "after", {}, void 0, !0)
1853
+ ], 8, xa)
1854
+ ], 8, La));
1855
+ }
1856
+ });
1857
+ const wa = /* @__PURE__ */ ee($a, [["__scopeId", "data-v-0e483453"]]);
1827
1858
  function Mt(e, n) {
1828
1859
  return {
1829
1860
  x0: 0 + (n ? n.left : 0),
@@ -1832,49 +1863,49 @@ function Mt(e, n) {
1832
1863
  y1: e.height - (n ? n.bottom : 0)
1833
1864
  };
1834
1865
  }
1835
- function Ll(e) {
1836
- const n = S(Mt(e));
1866
+ function Ia(e) {
1867
+ const n = R(Mt(e));
1837
1868
  function t(o) {
1838
1869
  n.value = Mt(e, o);
1839
1870
  }
1840
1871
  return { extents: n, updateExtents: t };
1841
1872
  }
1842
1873
  var Ve = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Ve || {});
1843
- const Ol = "[lume] ";
1844
- function at(e, n, t = !0) {
1845
- t && Pt() || console.error(Ol + "Error: " + e, n);
1874
+ const Ea = "[lume] ";
1875
+ function lt(e, n, t = !0) {
1876
+ t && Pt() || console.error(Ea + "Error: " + e, n);
1846
1877
  }
1847
- const xl = 200;
1848
- function we(e) {
1878
+ const Na = 200;
1879
+ function Ie(e) {
1849
1880
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1850
1881
  }
1851
- function $l(e, n) {
1882
+ function Da(e, n) {
1852
1883
  return n.nodes.find((t) => t.id === e);
1853
1884
  }
1854
- function Il(e, n) {
1885
+ function Ha(e, n) {
1855
1886
  return n.links.find((t) => t.id === e);
1856
1887
  }
1857
1888
  function nn(e) {
1858
1889
  return !!(e.sourceLinks && e.targetLinks);
1859
1890
  }
1860
- function wl(e, n) {
1891
+ function Ba(e, n) {
1861
1892
  if (!n)
1862
1893
  return;
1863
- const t = e.nodes.filter((a) => a.targetLinks.length === 0).map((a) => `${a.id}`), o = e.nodes.filter((a) => a.sourceLinks.length === 0).map((a) => `${a.id}`), l = n.filter((a) => t.includes(a.dataset.id)).reduce(
1864
- (a, i) => Math.max(a, i.getBBox().width),
1894
+ const t = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = n.filter((l) => t.includes(l.dataset.id)).reduce(
1895
+ (l, i) => Math.max(l, i.getBBox().width),
1865
1896
  -1 / 0
1866
- ), u = n.filter((a) => o.includes(a.dataset.id)).reduce(
1867
- (a, i) => Math.max(a, i.getBBox().width),
1897
+ ), u = n.filter((l) => o.includes(l.dataset.id)).reduce(
1898
+ (l, i) => Math.max(l, i.getBBox().width),
1868
1899
  -1 / 0
1869
1900
  );
1870
1901
  return {
1871
- left: l,
1902
+ left: a,
1872
1903
  top: 0,
1873
1904
  right: u,
1874
1905
  bottom: 0
1875
1906
  };
1876
1907
  }
1877
- function El(e) {
1908
+ function Ma(e) {
1878
1909
  return e.map((n) => {
1879
1910
  const t = n.y1 - n.y0 < Ee;
1880
1911
  return {
@@ -1891,53 +1922,53 @@ function El(e) {
1891
1922
  };
1892
1923
  });
1893
1924
  }
1894
- function Nl(e) {
1925
+ function Sa(e) {
1895
1926
  return [e.source.x1, e.y0];
1896
1927
  }
1897
- function Dl(e) {
1928
+ function Ra(e) {
1898
1929
  return [e.target.x0, e.y1];
1899
1930
  }
1900
- function Hl(e) {
1901
- return e.curveFunction ? gn(e.curveFunction).source(Nl).target(Dl) : bn();
1931
+ function Ca(e) {
1932
+ return e.curveFunction ? gn(e.curveFunction).source(Sa).target(Ra) : bn();
1902
1933
  }
1903
- function Bl(e) {
1934
+ function Ga(e) {
1904
1935
  return e.map((n) => {
1905
1936
  var t;
1906
1937
  return {
1907
1938
  id: n.id,
1908
1939
  color: n.color || ((t = n.source) == null ? void 0 : t.color) || Re,
1909
- d: Hl(n)(n),
1940
+ d: Ca(n)(n),
1910
1941
  strokeWidth: Math.max(1, n.width),
1911
1942
  link: n
1912
1943
  };
1913
1944
  });
1914
1945
  }
1915
- function St(e, n, t, o, l) {
1946
+ function St(e, n, t, o, a) {
1916
1947
  if (o === !1) {
1917
1948
  e.node = {
1918
1949
  ...e.node,
1919
- transitionValue: l ? void 0 : t
1950
+ transitionValue: a ? void 0 : t
1920
1951
  };
1921
1952
  return;
1922
1953
  }
1923
- const u = Date.now(), a = Hn(n, t), i = () => {
1924
- let c = (Date.now() - u) / xl;
1954
+ const u = Date.now(), l = Hn(n, t), i = () => {
1955
+ let c = (Date.now() - u) / Na;
1925
1956
  c > 1 && (c = 1), e.node = {
1926
1957
  ...e.node,
1927
- transitionValue: l && c === 1 ? void 0 : a(c)
1958
+ transitionValue: a && c === 1 ? void 0 : l(c)
1928
1959
  }, c < 1 && requestAnimationFrame(i);
1929
1960
  };
1930
1961
  requestAnimationFrame(i);
1931
1962
  }
1932
- const Ml = {
1963
+ const ja = {
1933
1964
  nodes: [],
1934
1965
  links: []
1935
1966
  };
1936
1967
  function Rt(e, n) {
1937
1968
  return n.find((t) => t.every((o) => o.x0 === e.x0));
1938
1969
  }
1939
- function Sl(e, n, t) {
1940
- const o = S(null), l = v(() => {
1970
+ function Va(e, n, t) {
1971
+ const o = R(null), a = v(() => {
1941
1972
  var r, m;
1942
1973
  return (m = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : m.values.map(
1943
1974
  ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: L, offset: A }) => ({
@@ -1968,7 +1999,7 @@ function Sl(e, n, t) {
1968
1999
  }
1969
2000
  ).filter(Boolean).flat();
1970
2001
  }
1971
- ), a = v(() => An().nodeId(we).nodeAlign(n.value.nodeAlign).nodePadding(n.value.nodePadding).nodeSort(n.value.nodeSort).nodeWidth(n.value.nodeWidth).linkSort(n.value.linkSort).iterations(n.value.iterations)), i = v(() => {
2002
+ ), l = v(() => An().nodeId(Ie).nodeAlign(n.value.nodeAlign).nodePadding(n.value.nodePadding).nodeSort(n.value.nodeSort).nodeWidth(n.value.nodeWidth).linkSort(n.value.linkSort).iterations(n.value.iterations)), i = v(() => {
1972
2003
  var r;
1973
2004
  return (r = o.value) == null ? void 0 : r.nodes.reduce(
1974
2005
  (m, g) => {
@@ -1995,19 +2026,19 @@ function Sl(e, n, t) {
1995
2026
  }
1996
2027
  const f = v(() => {
1997
2028
  var r;
1998
- return o.value && ((r = l.value) == null || r.forEach((m) => {
2029
+ return o.value && ((r = a.value) == null || r.forEach((m) => {
1999
2030
  m.value === 0 && (m.fallbackColor = dt.Grey), typeof m.offset == "number" && (s(m), c(m, o.value));
2000
2031
  })), o.value;
2001
2032
  });
2002
- return Z([a, t], () => {
2033
+ return U([l, t], () => {
2003
2034
  try {
2004
2035
  const { x0: r, y0: m, x1: g, y1: p } = t.value;
2005
- o.value = a.value.extent([
2036
+ o.value = l.value.extent([
2006
2037
  [r, m],
2007
2038
  [g, p]
2008
- ])({ nodes: l.value, links: u.value });
2039
+ ])({ nodes: a.value, links: u.value });
2009
2040
  } catch (r) {
2010
- at(Ve.GraphProblem, r), o.value = Ml;
2041
+ lt(Ve.GraphProblem, r), o.value = ja;
2011
2042
  }
2012
2043
  }), { columns: i, graph: f };
2013
2044
  }
@@ -2027,10 +2058,10 @@ function rt(e, n) {
2027
2058
  );
2028
2059
  }), n;
2029
2060
  }
2030
- function Rl(e, n) {
2061
+ function Pa(e, n) {
2031
2062
  return n.links.reduce((t, o) => (o.source.id in e && o.target.id in e && t.push(o.id), t), []);
2032
2063
  }
2033
- const Cl = (e, n) => {
2064
+ const Fa = (e, n) => {
2034
2065
  let t;
2035
2066
  nn(e) ? t = {
2036
2067
  [e.id]: e.value,
@@ -2042,38 +2073,38 @@ const Cl = (e, n) => {
2042
2073
  ...ut(e.source),
2043
2074
  ...rt(e.target)
2044
2075
  };
2045
- const o = Rl(t, n);
2076
+ const o = Pa(t, n);
2046
2077
  return { nodes: t, links: o };
2047
- }, Gl = (e) => {
2078
+ }, za = (e) => {
2048
2079
  if (nn(e)) {
2049
2080
  const n = [...e.sourceLinks, ...e.targetLinks];
2050
2081
  return {
2051
2082
  nodes: n.reduce(
2052
- (t, { source: o, target: l, value: u }) => o === e ? { ...t, [we(l)]: u } : { ...t, [we(o)]: u },
2053
- { [we(e)]: e.value }
2083
+ (t, { source: o, target: a, value: u }) => o === e ? { ...t, [Ie(a)]: u } : { ...t, [Ie(o)]: u },
2084
+ { [Ie(e)]: e.value }
2054
2085
  ),
2055
2086
  links: n.map(({ id: t }) => t)
2056
2087
  };
2057
2088
  }
2058
2089
  return {
2059
2090
  nodes: {
2060
- [we(e.target)]: e.value,
2061
- [we(e.source)]: e.source.value
2091
+ [Ie(e.target)]: e.value,
2092
+ [Ie(e.source)]: e.source.value
2062
2093
  },
2063
2094
  links: [e.id]
2064
2095
  };
2065
2096
  };
2066
- function jl(e, n, t) {
2067
- const o = S(null), l = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2097
+ function Wa(e, n, t) {
2098
+ const o = R(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2068
2099
  o.value,
2069
2100
  t.value
2070
- ) : n.value.highlightedElements === "closest" ? Gl(o.value, t.value) : Cl(o.value, t.value) : { nodes: {}, links: [] });
2071
- return Z(l, (u, a) => {
2101
+ ) : n.value.highlightedElements === "closest" ? za(o.value, t.value) : Fa(o.value, t.value) : { nodes: {}, links: [] });
2102
+ return U(a, (u, l) => {
2072
2103
  if (u.links.length === 0 && Object.keys(u.nodes).length === 0) {
2073
2104
  e.value.forEach((i) => {
2074
- i.node.id in a.nodes && St(
2105
+ i.node.id in l.nodes && St(
2075
2106
  i,
2076
- a.nodes[i.node.id],
2107
+ l.nodes[i.node.id],
2077
2108
  i.node.value,
2078
2109
  n.value.withTransition,
2079
2110
  !0
@@ -2089,12 +2120,12 @@ function jl(e, n, t) {
2089
2120
  n.value.withTransition
2090
2121
  );
2091
2122
  });
2092
- }), { highlightedElements: l, hoveredElement: o };
2123
+ }), { highlightedElements: a, hoveredElement: o };
2093
2124
  }
2094
- const Vl = {
2125
+ const Za = {
2095
2126
  class: "lume-alluvial-group",
2096
2127
  "data-j-alluvial-group": ""
2097
- }, Pl = { key: 0 }, Fl = ["x", "y"], zl = { key: 0 }, Wl = ["id", "x1", "x2"], Zl = ["stop-color"], Ul = ["stop-color"], Xl = ["d", "stroke-width", "onClick", "onMouseover"], Yl = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Kl = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], Jl = ["x", "y", "height", "width"], Ql = ["transform", "data-id", "width"], ql = /* @__PURE__ */ U({
2128
+ }, Ua = { key: 0 }, Xa = { key: 0 }, Ya = ["id", "x1", "x2"], Ka = ["stop-color"], Ja = ["stop-color"], Qa = ["d", "stroke-width", "onClick", "onMouseover"], qa = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], el = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], tl = ["x", "y", "height", "width"], nl = ["transform", "data-id", "width"], ol = /* @__PURE__ */ W({
2098
2129
  __name: "lume-alluvial-group",
2099
2130
  props: {
2100
2131
  ...We(),
@@ -2105,29 +2136,29 @@ const Vl = {
2105
2136
  },
2106
2137
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2107
2138
  setup(e, { emit: n }) {
2108
- const t = e, o = n, l = Pe("chartID"), { data: u, options: a } = te(t), i = S([]), s = S([]), c = S(null), { extents: f, updateExtents: r } = Ll(t.containerSize), { columns: m, graph: g } = Sl(u, a, f), { hoveredElement: p, highlightedElements: b } = jl(
2139
+ const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = R([]), s = R([]), c = R(null), { extents: f, updateExtents: r } = Ia(t.containerSize), { columns: m, graph: g } = Va(u, l, f), { hoveredElement: p, highlightedElements: b } = Wa(
2109
2140
  i,
2110
- a,
2141
+ l,
2111
2142
  g
2112
- ), L = v(() => je(a.value.valueFormat)), A = v(
2143
+ ), L = v(() => je(l.value.valueFormat)), A = v(
2113
2144
  () => Object.keys(b.value.nodes)
2114
2145
  ), h = v(() => m.value ? m.value.map(
2115
- (k) => k[0].x0 + a.value.nodeWidth / 2
2146
+ (k) => k[0].x0 + l.value.nodeWidth / 2
2116
2147
  ) : []), x = v(() => {
2117
- if (!(!a.value.nodeHeaders || !a.value.nodeHeaders.length))
2118
- return a.value.nodeHeaders.slice(0, h.value.length).map((k, E) => ({
2148
+ if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
2149
+ return l.value.nodeHeaders.slice(0, h.value.length).map((k, E) => ({
2119
2150
  label: k,
2120
2151
  x: h.value[E]
2121
2152
  }));
2122
2153
  }), N = v(
2123
- () => a.value.nodeHeaderPadding ?? pl
2154
+ () => l.value.nodeHeaderPadding ?? pa
2124
2155
  ), D = v(() => {
2125
- if (!(!a.value.gradient || !g.value))
2156
+ if (!(!l.value.gradient || !g.value))
2126
2157
  return g.value.links.reduce((k, E) => {
2127
- const { source: _, target: j } = E, J = _.color || _.fallbackColor, ae = j.deriveColorFromIncomingLinks ? J : j.color || j.fallbackColor;
2158
+ const { source: _, target: j } = E, J = _.color || _.fallbackColor, le = j.deriveColorFromIncomingLinks ? J : j.color || j.fallbackColor;
2128
2159
  return k[E.id] = {
2129
2160
  source: J,
2130
- target: ae,
2161
+ target: le,
2131
2162
  x1: _.x1,
2132
2163
  x2: j.x0
2133
2164
  }, k;
@@ -2138,16 +2169,16 @@ const Vl = {
2138
2169
  ), E = [];
2139
2170
  return k.forEach((_) => {
2140
2171
  const j = [];
2141
- s.value.filter(({ link: J }) => J.target.id === _.node.id).reverse().reduce((J, ae, $e, Ze) => {
2142
- const Ue = ae.link.target.y1 - ae.link.target.y0 > Ee;
2143
- let Ie, Ce, be;
2144
- return Ue ? (Ie = ae.link.target.y1 - ae.link.target.y0, Ce = ae.link.value / _.node.value, be = Ce * Ie) : (Ie = Ee, be = Ee / Ze.length), j.push({
2172
+ s.value.filter(({ link: J }) => J.target.id === _.node.id).reverse().reduce((J, le, $e, Ze) => {
2173
+ const Ue = le.link.target.y1 - le.link.target.y0 > Ee;
2174
+ let we, Ce, be;
2175
+ return Ue ? (we = le.link.target.y1 - le.link.target.y0, Ce = le.link.value / _.node.value, be = Ce * we) : (we = Ee, be = Ee / Ze.length), j.push({
2145
2176
  x: _.x,
2146
2177
  y: _.y + J,
2147
2178
  height: be,
2148
2179
  width: _.width,
2149
- key: `node-block-${_.node.id}-source-link-${ae.link.source.id}`,
2150
- class: `lume-alluvial-group__node-block lume-fill--${ae.link.source.color || Re}`
2180
+ key: `node-block-${_.node.id}-source-link-${le.link.source.id}`,
2181
+ class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Re}`
2151
2182
  }), J + be;
2152
2183
  }, 0), E.push({
2153
2184
  id: _.node.id,
@@ -2155,16 +2186,16 @@ const Vl = {
2155
2186
  });
2156
2187
  }), E;
2157
2188
  });
2158
- function w(k) {
2159
- return a.value.gradient && `url('#${l}_${k.id}')`;
2189
+ function I(k) {
2190
+ return l.value.gradient && `url('#${a}_${k.id}')`;
2160
2191
  }
2161
2192
  function H(k) {
2162
2193
  return A.value.length > 0 && !A.value.includes(k.toString());
2163
2194
  }
2164
- function X(k) {
2195
+ function Y(k) {
2165
2196
  return A.value.length > 0 && A.value.includes(k.toString());
2166
2197
  }
2167
- function Y(k) {
2198
+ function K(k) {
2168
2199
  return b.value.links.length > 0 && !b.value.links.includes(k);
2169
2200
  }
2170
2201
  function Q(k) {
@@ -2185,9 +2216,9 @@ const Vl = {
2185
2216
  p.value = null;
2186
2217
  return;
2187
2218
  }
2188
- const E = $l(k, g.value) || Il(k, g.value);
2219
+ const E = Da(k, g.value) || Ha(k, g.value);
2189
2220
  if (!E) {
2190
- ge(ve.InvalidHoveredElement);
2221
+ ge(me.InvalidHoveredElement);
2191
2222
  return;
2192
2223
  }
2193
2224
  p.value = E;
@@ -2196,30 +2227,39 @@ const Vl = {
2196
2227
  var E;
2197
2228
  return ((E = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : E.subNodes) ?? [];
2198
2229
  }
2199
- function M() {
2200
- const k = wl(g.value, c.value);
2230
+ function S() {
2231
+ const k = Ba(g.value, c.value);
2201
2232
  r(k);
2202
2233
  }
2203
- return Z(g, (k) => {
2204
- i.value = El(k.nodes), s.value = Bl(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2205
- }), Z([t.containerSize, c], () => {
2206
- t.containerSize.width && t.containerSize.height && M();
2207
- }), Z(() => t.hoveredElementId, ke), (k, E) => (y(), $("g", Vl, [
2208
- x.value ? (y(), $("g", Pl, [
2209
- (y(!0), $(q, null, z(x.value, (_) => (y(), $("text", {
2210
- key: `header_${_.x}`,
2234
+ return U(g, (k) => {
2235
+ i.value = Ma(k.nodes), s.value = Ga(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2236
+ }), U([t.containerSize, c], () => {
2237
+ t.containerSize.width && t.containerSize.height && S();
2238
+ }), U(() => t.hoveredElementId, ke), (k, E) => (y(), $("g", Za, [
2239
+ x.value ? (y(), $("g", Ua, [
2240
+ (y(!0), $(q, null, z(x.value, (_, j) => M(k.$slots, `node-header-${j}`, {
2211
2241
  x: _.x,
2212
- y: -N.value,
2213
- class: "lume-alluvial-group__node-header lume-typography--caption"
2214
- }, oe(_.label), 9, Fl))), 128))
2215
- ])) : W("", !0),
2242
+ y: -N.value
2243
+ }, () => [
2244
+ (y(), X(d(wa), {
2245
+ key: `header_${_.x}`,
2246
+ x: _.x,
2247
+ y: -N.value
2248
+ }, {
2249
+ default: V(() => [
2250
+ ce(oe(_.label), 1)
2251
+ ]),
2252
+ _: 2
2253
+ }, 1032, ["x", "y"]))
2254
+ ], !0)), 256))
2255
+ ])) : Z("", !0),
2216
2256
  C("g", {
2217
2257
  class: "lume-alluvial-link-group",
2218
2258
  onMouseleave: Oe
2219
2259
  }, [
2220
- d(a).gradient ? (y(), $("defs", zl, [
2260
+ d(l).gradient ? (y(), $("defs", Xa, [
2221
2261
  (y(!0), $(q, null, z(D.value, (_, j) => (y(), $("linearGradient", {
2222
- id: `${d(l)}_${j}`,
2262
+ id: `${d(a)}_${j}`,
2223
2263
  key: j,
2224
2264
  gradientUnits: "userSpaceOnUse",
2225
2265
  x1: _.x1,
@@ -2228,13 +2268,13 @@ const Vl = {
2228
2268
  C("stop", {
2229
2269
  offset: "0%",
2230
2270
  "stop-color": `var(--lume-color--${_.source})`
2231
- }, null, 8, Zl),
2271
+ }, null, 8, Ka),
2232
2272
  C("stop", {
2233
2273
  offset: "100%",
2234
2274
  "stop-color": `var(--lume-color--${_.target})`
2235
- }, null, 8, Ul)
2236
- ], 8, Wl))), 128))
2237
- ])) : W("", !0),
2275
+ }, null, 8, Ja)
2276
+ ], 8, Ya))), 128))
2277
+ ])) : Z("", !0),
2238
2278
  (y(!0), $(q, null, z(s.value, (_) => (y(), $("path", {
2239
2279
  key: `link-ghost_${_.id}`,
2240
2280
  class: ne(["lume-alluvial-group__link", [
@@ -2242,20 +2282,20 @@ const Vl = {
2242
2282
  "lume-alluvial-group__link--ghost"
2243
2283
  ]]),
2244
2284
  d: _.d,
2245
- "stroke-width": _.strokeWidth + d(fl),
2285
+ "stroke-width": _.strokeWidth + d(fa),
2246
2286
  "data-j-alluvial-ghost": "",
2247
2287
  onClick: (j) => o("link-click", { link: _.link, event: j }),
2248
2288
  onMouseover: (j) => ue(_.link, j)
2249
- }, null, 40, Xl))), 128)),
2289
+ }, null, 40, Qa))), 128)),
2250
2290
  (y(!0), $(q, null, z(s.value, (_) => (y(), $("path", {
2251
2291
  key: `link_${_.id}`,
2252
2292
  class: ne(["lume-alluvial-group__link", {
2253
- [`lume-stroke--${_.color}`]: !d(a).gradient && _.color,
2254
- "lume-alluvial-group__link--faded": Y(_.id),
2293
+ [`lume-stroke--${_.color}`]: !d(l).gradient && _.color,
2294
+ "lume-alluvial-group__link--faded": K(_.id),
2255
2295
  "lume-alluvial-group__link--focused": Q(_.id)
2256
2296
  }]),
2257
2297
  d: _.d,
2258
- stroke: w(_.link),
2298
+ stroke: I(_.link),
2259
2299
  "stroke-dasharray": k.containerSize.width,
2260
2300
  "stroke-dashoffset": k.containerSize.width,
2261
2301
  "stroke-width": _.strokeWidth,
@@ -2263,13 +2303,13 @@ const Vl = {
2263
2303
  "data-id": _.id,
2264
2304
  onClick: (j) => o("link-click", { link: _.link, event: j }),
2265
2305
  onMouseover: (j) => ue(_.link, j)
2266
- }, null, 42, Yl))), 128))
2306
+ }, null, 42, qa))), 128))
2267
2307
  ], 32),
2268
2308
  (y(!0), $(q, null, z(i.value, (_, j) => (y(), $("g", {
2269
2309
  key: `node-block_${j}`,
2270
2310
  class: ne(["lume-alluvial-group__node", {
2271
2311
  "lume-alluvial-group__node--faded": H(_.node.id),
2272
- "lume-alluvial-group__node--focused": X(_.node.id)
2312
+ "lume-alluvial-group__node--focused": Y(_.node.id)
2273
2313
  }]),
2274
2314
  "data-j-alluvial-group__node-block": ""
2275
2315
  }, [
@@ -2292,7 +2332,7 @@ const Vl = {
2292
2332
  y: _.y,
2293
2333
  height: _.height,
2294
2334
  width: _.width
2295
- }, null, 10, Jl)),
2335
+ }, null, 10, tl)),
2296
2336
  C("g", {
2297
2337
  ref_for: !0,
2298
2338
  ref_key: "nodeTextRefs",
@@ -2302,31 +2342,31 @@ const Vl = {
2302
2342
  }]),
2303
2343
  transform: `translate(${_.textTransform.x},${_.textTransform.y})`,
2304
2344
  "data-id": _.node.id,
2305
- width: d(a).nodeLabelMaxWidth
2345
+ width: d(l).nodeLabelMaxWidth
2306
2346
  }, [
2307
- R(k.$slots, `node-text-${_.node.id}`, {
2347
+ M(k.$slots, `node-text-${_.node.id}`, {
2308
2348
  node: _.node,
2309
2349
  value: L.value(
2310
2350
  _.node.transitionValue || _.node.value,
2311
2351
  _.node.value
2312
2352
  )
2313
2353
  }, () => [
2314
- ie(d(kl), {
2315
- bottom: d(a).switchText,
2354
+ ie(d(ka), {
2355
+ bottom: d(l).switchText,
2316
2356
  left: _.node.depth === 0,
2317
- "max-width": d(a).nodeLabelMaxWidth,
2318
- "onLume__internal-NodeResize": M
2357
+ "max-width": d(l).nodeLabelMaxWidth,
2358
+ "onLume__internal-NodeResize": S
2319
2359
  }, {
2320
2360
  default: V(() => [
2321
- fe(oe(_.node.label), 1)
2361
+ ce(oe(_.node.label), 1)
2322
2362
  ]),
2323
2363
  _: 2
2324
2364
  }, 1032, ["bottom", "left", "max-width"]),
2325
- ie(d(Tl), {
2326
- bottom: !d(a).switchText
2365
+ ie(d(Ta), {
2366
+ bottom: !d(l).switchText
2327
2367
  }, {
2328
2368
  default: V(() => [
2329
- fe(oe(L.value(
2369
+ ce(oe(L.value(
2330
2370
  _.node.transitionValue || _.node.value,
2331
2371
  _.node.value
2332
2372
  )), 1)
@@ -2334,13 +2374,13 @@ const Vl = {
2334
2374
  _: 2
2335
2375
  }, 1032, ["bottom"])
2336
2376
  ], !0)
2337
- ], 10, Ql)
2338
- ], 40, Kl)
2377
+ ], 10, nl)
2378
+ ], 40, el)
2339
2379
  ], 2))), 128))
2340
2380
  ]));
2341
2381
  }
2342
2382
  });
2343
- const ea = /* @__PURE__ */ ee(ql, [["__scopeId", "data-v-f004e5fb"]]), ta = {
2383
+ const al = /* @__PURE__ */ ee(ol, [["__scopeId", "data-v-02af69f2"]]), ll = {
2344
2384
  margins: {
2345
2385
  top: 0,
2346
2386
  right: 0,
@@ -2359,13 +2399,13 @@ const ea = /* @__PURE__ */ ee(ql, [["__scopeId", "data-v-f004e5fb"]]), ta = {
2359
2399
  nodeAlign: Tn,
2360
2400
  valueFormat: (e) => String(e),
2361
2401
  iterations: 6
2362
- }, za = /* @__PURE__ */ U({
2402
+ }, Xl = /* @__PURE__ */ W({
2363
2403
  __name: "lume-alluvial-diagram",
2364
2404
  props: {
2365
2405
  ...Wo(it)
2366
2406
  },
2367
2407
  setup(e, { emit: n }) {
2368
- const t = e, { componentEventPropagator: o } = ye(), l = Le(re()), u = Mn(re()), { options: a } = te(t), { allOptions: i } = me(a, ta);
2408
+ const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), u = Mn(re()), { options: l } = te(t), { allOptions: i } = fe(l, ll);
2369
2409
  function s(c) {
2370
2410
  return {
2371
2411
  ...c,
@@ -2373,33 +2413,33 @@ const ea = /* @__PURE__ */ ee(ql, [["__scopeId", "data-v-f004e5fb"]]), ta = {
2373
2413
  // Alluvial chart never uses base scales
2374
2414
  };
2375
2415
  }
2376
- return (c, f) => (y(), K(d(De), G(t, {
2416
+ return (c, f) => (y(), X(d(De), G(t, {
2377
2417
  options: s(d(i)),
2378
2418
  "data-j-alluvial-diagram": ""
2379
- }, le(d(o))), ce({
2419
+ }, ae(d(o))), de({
2380
2420
  groups: V((r) => [
2381
- ie(d(ea), G(r, { "hovered-element-id": c.hoveredElement }, le(d(o))), ce({ _: 2 }, [
2421
+ ie(d(al), G(r, { "hovered-element-id": c.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2382
2422
  z(d(u), (m, g) => ({
2383
2423
  name: g,
2384
2424
  fn: V((p) => [
2385
- R(c.$slots, g, pe(he(p || {})))
2425
+ M(c.$slots, g, pe(he(p || {})))
2386
2426
  ])
2387
2427
  }))
2388
2428
  ]), 1040, ["hovered-element-id"])
2389
2429
  ]),
2390
2430
  _: 2
2391
2431
  }, [
2392
- z(d(l), (r, m) => ({
2432
+ z(d(a), (r, m) => ({
2393
2433
  name: m,
2394
2434
  fn: V((g) => [
2395
- R(c.$slots, m, pe(he(g || {})))
2435
+ M(c.$slots, m, pe(he(g || {})))
2396
2436
  ])
2397
2437
  }))
2398
2438
  ]), 1040, ["options"]));
2399
2439
  }
2400
2440
  });
2401
2441
  var on = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(on || {});
2402
- const Wa = /* @__PURE__ */ U({
2442
+ const Yl = /* @__PURE__ */ W({
2403
2443
  __name: "lume-bar-chart",
2404
2444
  props: {
2405
2445
  ...Ne(),
@@ -2414,13 +2454,13 @@ const Wa = /* @__PURE__ */ U({
2414
2454
  () => import("./common/42f5d2fc.js")
2415
2455
  ), o = Je(
2416
2456
  () => import("./common/abc9d23d.js")
2417
- ), l = Je(
2457
+ ), a = Je(
2418
2458
  () => import("./common/0664fd4d.js")
2419
2459
  ), u = /* @__PURE__ */ new Map([
2420
2460
  ["single", t],
2421
2461
  ["grouped", o],
2422
- ["stacked", l]
2423
- ]), a = e, { componentEventPropagator: i } = ye(), s = Le(re());
2462
+ ["stacked", a]
2463
+ ]), l = e, { componentEventPropagator: i } = ye(), s = Le(re());
2424
2464
  function c(r) {
2425
2465
  return {
2426
2466
  ...r,
@@ -2428,106 +2468,106 @@ const Wa = /* @__PURE__ */ U({
2428
2468
  // Bar chart always starts on zero,
2429
2469
  tooltipOptions: {
2430
2470
  ...(r == null ? void 0 : r.tooltipOptions) || {},
2431
- position: a.orientation === B.HORIZONTAL ? "right" : void 0
2471
+ position: l.orientation === B.HORIZONTAL ? "right" : void 0
2432
2472
  }
2433
2473
  };
2434
2474
  }
2435
2475
  const f = v(() => {
2436
- if (it(a.data))
2476
+ if (it(l.data))
2437
2477
  return u.get("single");
2438
- if (!a.type)
2478
+ if (!l.type)
2439
2479
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2440
- return u.get(a.type);
2480
+ return u.get(l.type);
2441
2481
  });
2442
- return (r, m) => (y(), K(fn(f.value), G({ ...a, ...r.$attrs }, {
2482
+ return (r, m) => (y(), X(fn(f.value), G({ ...l, ...r.$attrs }, {
2443
2483
  options: c(r.options)
2444
- }, le(d(i))), ce({ _: 2 }, [
2484
+ }, ae(d(i))), de({ _: 2 }, [
2445
2485
  z(d(s), (g, p) => ({
2446
2486
  name: p,
2447
2487
  fn: V((b) => [
2448
- R(r.$slots, p, pe(he(b || {})))
2488
+ M(r.$slots, p, pe(he(b || {})))
2449
2489
  ])
2450
2490
  }))
2451
2491
  ]), 1040, ["options"]));
2452
2492
  }
2453
2493
  });
2454
- function na(e) {
2494
+ function ul(e) {
2455
2495
  return Object.values(jn).includes(e) || e == null;
2456
2496
  }
2457
- function oa(e) {
2497
+ function rl(e) {
2458
2498
  return Object.values(B).includes(e);
2459
2499
  }
2460
- const la = (e = !1) => ({
2500
+ const il = (e = !1) => ({
2461
2501
  type: {
2462
2502
  type: String,
2463
2503
  default: null,
2464
- validator: na
2504
+ validator: ul
2465
2505
  },
2466
2506
  ...e ? {
2467
2507
  orientation: {
2468
2508
  type: String,
2469
2509
  default: B.VERTICAL,
2470
- validator: oa
2510
+ validator: rl
2471
2511
  }
2472
2512
  } : {}
2473
2513
  });
2474
- function ln(e, n) {
2475
- const t = v(() => e.value.map((l) => {
2514
+ function an(e, n) {
2515
+ const t = v(() => e.value.map((a) => {
2476
2516
  var u;
2477
2517
  return {
2478
- ...l,
2518
+ ...a,
2479
2519
  values: st(
2480
- l.values,
2520
+ a.values,
2481
2521
  ((u = n == null ? void 0 : n.value) == null ? void 0 : u.length) ?? 0
2482
- ).map((a) => ({
2483
- ...a,
2484
- value: (a == null ? void 0 : a.value) || 0
2522
+ ).map((l) => ({
2523
+ ...l,
2524
+ value: (l == null ? void 0 : l.value) || 0
2485
2525
  }))
2486
2526
  };
2487
2527
  })), o = v(() => {
2488
- var l;
2489
- return (l = t.value) == null ? void 0 : l.reduce((u, a) => (a.values.forEach((i, s) => {
2528
+ var a;
2529
+ return (a = t.value) == null ? void 0 : a.reduce((u, l) => (l.values.forEach((i, s) => {
2490
2530
  u[s] ? u[s].push(i) : u[s] = [i];
2491
2531
  }), u), []);
2492
2532
  });
2493
2533
  return { multiBarData: t, groupedData: o };
2494
2534
  }
2495
- function aa(e, n) {
2535
+ function sl(e, n) {
2496
2536
  return e.value.length === 1 ? "single" : n.value;
2497
2537
  }
2498
- function ua(e, n, t) {
2538
+ function cl(e, n, t) {
2499
2539
  const o = v(
2500
2540
  () => t.value === B.HORIZONTAL
2501
2541
  );
2502
- function l(i) {
2503
- i || at(Ve.BarScaleNull), Math.min(...i.domain()) > 0 && at(Ve.BarScaleDomainAbove0);
2542
+ function a(i) {
2543
+ i || lt(Ve.BarScaleNull), Math.min(...i.domain()) > 0 && lt(Ve.BarScaleDomainAbove0);
2504
2544
  }
2505
- const u = v(() => o.value ? (() => (l(e.value), e.value))() : e.value), a = v(() => o.value ? n.value : (() => (l(n.value), n.value))());
2506
- return { barXScale: u, barYScale: a };
2545
+ const u = v(() => o.value ? (() => (a(e.value), e.value))() : e.value), l = v(() => o.value ? n.value : (() => (a(n.value), n.value))());
2546
+ return { barXScale: u, barYScale: l };
2507
2547
  }
2508
- const ra = {
2548
+ const dl = {
2509
2549
  x: 0,
2510
2550
  y: 0,
2511
2551
  width: 0,
2512
2552
  height: 0
2513
2553
  };
2514
- function ia(e, n, t, o, l, u) {
2515
- const a = v(
2554
+ function vl(e, n, t, o, a, u) {
2555
+ const l = v(
2516
2556
  () => o.value === B.HORIZONTAL
2517
2557
  );
2518
2558
  function i(r, m) {
2519
2559
  let g, p;
2520
- return a.value ? (g = r >= 0 ? n.value(0) : n.value(r), p = t.value(t.value.domain()[m])) : (g = n.value(n.value.domain()[m]), p = r < 0 ? t.value(0) : t.value(r)), { x: g, y: p };
2560
+ return l.value ? (g = r >= 0 ? n.value(0) : n.value(r), p = t.value(t.value.domain()[m])) : (g = n.value(n.value.domain()[m]), p = r < 0 ? t.value(0) : t.value(r)), { x: g, y: p };
2521
2561
  }
2522
2562
  function s(r) {
2523
- return a.value ? r < 0 ? n.value(0) - n.value(r) : n.value(r) - n.value(0) : n.value.bandwidth();
2563
+ return l.value ? r < 0 ? n.value(0) - n.value(r) : n.value(r) - n.value(0) : n.value.bandwidth();
2524
2564
  }
2525
2565
  function c(r) {
2526
- return a.value ? t.value.bandwidth() : r < 0 ? t.value(r) - t.value(0) : t.value(0) - t.value(r);
2566
+ return l.value ? t.value.bandwidth() : r < 0 ? t.value(r) - t.value(0) : t.value(0) - t.value(r);
2527
2567
  }
2528
2568
  function f(r, m, g) {
2529
2569
  if (!(n.value && t.value))
2530
- return ra;
2570
+ return dl;
2531
2571
  const { value: b, color: L } = r, A = L ?? e.value[m].color ?? Re, { x: h, y: x } = i(b, g), N = s(b), D = c(b);
2532
2572
  return {
2533
2573
  classList: [`lume-fill--${A}`, ...u],
@@ -2535,61 +2575,61 @@ function ia(e, n, t, o, l, u) {
2535
2575
  y: x,
2536
2576
  width: N,
2537
2577
  height: D,
2538
- isFaded: l.value !== -1 && l.value !== g,
2578
+ isFaded: a.value !== -1 && a.value !== g,
2539
2579
  isNegative: b < 0
2540
2580
  };
2541
2581
  }
2542
2582
  return { barAttributeGenerator: f };
2543
2583
  }
2544
- const sa = {
2584
+ const ml = {
2545
2585
  x: 0,
2546
2586
  y: 0,
2547
2587
  width: 0,
2548
2588
  height: 0
2549
2589
  };
2550
- function ca(e, n, t, o, l, u) {
2551
- const a = v(
2590
+ function fl(e, n, t, o, a, u) {
2591
+ const l = v(
2552
2592
  () => o.value === B.HORIZONTAL
2553
2593
  ), i = v(() => He().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0)), s = v(() => He().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0));
2554
2594
  function c(p, b, L) {
2555
- if (a.value)
2595
+ if (l.value)
2556
2596
  return p >= 0 ? n.value(0) : n.value(p);
2557
2597
  const A = n.value.domain();
2558
2598
  return n.value(A[b]) + i.value(L);
2559
2599
  }
2560
2600
  function f(p, b, L) {
2561
- if (a.value) {
2601
+ if (l.value) {
2562
2602
  const A = t.value.domain();
2563
2603
  return t.value(A[b]) + s.value(L);
2564
2604
  }
2565
2605
  return p < 0 ? t.value(0) : t.value(p);
2566
2606
  }
2567
2607
  function r(p) {
2568
- return a.value ? p < 0 ? n.value(0) - n.value(p) : n.value(p) - n.value(0) : i.value.bandwidth();
2608
+ return l.value ? p < 0 ? n.value(0) - n.value(p) : n.value(p) - n.value(0) : i.value.bandwidth();
2569
2609
  }
2570
2610
  function m(p) {
2571
- return a.value ? s.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2611
+ return l.value ? s.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2572
2612
  }
2573
2613
  function g(p, b, L) {
2574
2614
  if (!(n.value && t.value))
2575
- return sa;
2576
- const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = c(h, L, b), P = f(h, L, b), w = r(h), H = m(h);
2615
+ return ml;
2616
+ const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = c(h, L, b), P = f(h, L, b), I = r(h), H = m(h);
2577
2617
  return {
2578
2618
  classList: [`lume-fill--${N}`, ...u],
2579
2619
  x: D,
2580
2620
  y: P,
2581
- width: w,
2621
+ width: I,
2582
2622
  height: H,
2583
- isFaded: l.value !== -1 && l.value !== L,
2623
+ isFaded: a.value !== -1 && a.value !== L,
2584
2624
  isNegative: h < 0
2585
2625
  };
2586
2626
  }
2587
2627
  return { barAttributeGenerator: g };
2588
2628
  }
2589
- function da(e, n, t) {
2629
+ function pl(e, n, t) {
2590
2630
  const o = v(
2591
2631
  () => n.value === B.HORIZONTAL
2592
- ), l = v(() => {
2632
+ ), a = v(() => {
2593
2633
  const s = e.value.map(
2594
2634
  (c) => c.filter((f) => f.value < 0).reduce((f, r) => f + r.value, 0)
2595
2635
  );
@@ -2603,8 +2643,8 @@ function da(e, n, t) {
2603
2643
  );
2604
2644
  return Math.max(...s);
2605
2645
  });
2606
- function a(s, c, f) {
2607
- return c.length ? o.value ? Be().domain([l.value, u.value]).range([0, f.width]) : Object.assign(
2646
+ function l(s, c, f) {
2647
+ return c.length ? o.value ? Be().domain([a.value, u.value]).range([0, f.width]) : Object.assign(
2608
2648
  Nt(
2609
2649
  He().domain(c.map((r, m) => m)).range([0, f.width]),
2610
2650
  n.value,
@@ -2621,33 +2661,33 @@ function da(e, n, t) {
2621
2661
  t.value
2622
2662
  ),
2623
2663
  { labels: c }
2624
- ) : Be().domain([u.value, l.value]).range([0, f.height]) : null;
2664
+ ) : Be().domain([u.value, a.value]).range([0, f.height]) : null;
2625
2665
  }
2626
- return { stackedXScaleGenerator: a, stackedYScaleGenerator: i };
2666
+ return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2627
2667
  }
2628
- function va(e, n, t, o, l, u) {
2629
- const a = v(
2668
+ function hl(e, n, t, o, a, u) {
2669
+ const l = v(
2630
2670
  () => o.value === B.HORIZONTAL
2631
2671
  ), i = v(
2632
- () => a.value ? t.value.domain() : n.value.domain()
2672
+ () => l.value ? t.value.domain() : n.value.domain()
2633
2673
  ), s = v(
2634
2674
  () => e.value.map((A) => A.values.map((h) => h == null ? void 0 : h.value))
2635
2675
  );
2636
2676
  function c(A, h, x) {
2637
2677
  let N, D;
2638
- return a.value ? (N = n.value(A >= 0 ? 0 + x : A + x), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + x : 0 + x)), { x: N, y: D };
2678
+ return l.value ? (N = n.value(A >= 0 ? 0 + x : A + x), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + x : 0 + x)), { x: N, y: D };
2639
2679
  }
2640
2680
  function f(A) {
2641
- return a.value ? n.value(A) - n.value(0) : n.value.bandwidth();
2681
+ return l.value ? n.value(A) - n.value(0) : n.value.bandwidth();
2642
2682
  }
2643
2683
  function r(A) {
2644
- return a.value ? n.value(0) - n.value(A) : n.value.bandwidth();
2684
+ return l.value ? n.value(0) - n.value(A) : n.value.bandwidth();
2645
2685
  }
2646
2686
  function m(A) {
2647
- return a.value ? t.value.bandwidth() : t.value(0) - t.value(A);
2687
+ return l.value ? t.value.bandwidth() : t.value(0) - t.value(A);
2648
2688
  }
2649
2689
  function g(A) {
2650
- return a.value ? t.value.bandwidth() : t.value(A) - t.value(0);
2690
+ return l.value ? t.value.bandwidth() : t.value(A) - t.value(0);
2651
2691
  }
2652
2692
  function p(A, h) {
2653
2693
  return A ? s.value.reduce((x, N, D) => (D < A && N[h] >= 0 && (x += N[h]), x), 0) : 0;
@@ -2656,27 +2696,27 @@ function va(e, n, t, o, l, u) {
2656
2696
  return A ? s.value.reduce((x, N, D) => (D < A && N[h] < 0 && (x += N[h]), x), 0) : 0;
2657
2697
  }
2658
2698
  function L(A, h, x) {
2659
- const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), w = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h, x) : b(h, x), { x: X, y: Y } = c(N, x, H);
2699
+ const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), I = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h, x) : b(h, x), { x: Y, y: K } = c(N, x, H);
2660
2700
  return {
2661
2701
  classList: [`lume-fill--${D ?? e.value[h].color ?? Object.values(se)[h]}`, ...u],
2662
2702
  width: P,
2663
- height: w,
2664
- x: X,
2665
- y: Y,
2666
- isFaded: l.value !== -1 && l.value !== x,
2703
+ height: I,
2704
+ x: Y,
2705
+ y: K,
2706
+ isFaded: a.value !== -1 && a.value !== x,
2667
2707
  isNegative: N < 0
2668
2708
  };
2669
2709
  }
2670
2710
  return { barAttributeGenerator: L };
2671
2711
  }
2672
- const ma = {
2712
+ const gl = {
2673
2713
  class: "lume-bar-group",
2674
2714
  "data-j-bars-group": ""
2675
- }, fa = ["onMouseenter"], pa = {
2676
- single: ia,
2677
- grouped: ca,
2678
- stacked: va
2679
- }, ht = /* @__PURE__ */ U({
2715
+ }, _l = ["onMouseenter"], yl = {
2716
+ single: vl,
2717
+ grouped: fl,
2718
+ stacked: hl
2719
+ }, ht = /* @__PURE__ */ W({
2680
2720
  __name: "lume-bar-group",
2681
2721
  props: {
2682
2722
  ...We(),
@@ -2684,7 +2724,7 @@ const ma = {
2684
2724
  type: [String, Array],
2685
2725
  default: () => []
2686
2726
  },
2687
- ...la(!0),
2727
+ ...il(!0),
2688
2728
  transition: {
2689
2729
  type: Boolean,
2690
2730
  default: !0
@@ -2693,9 +2733,9 @@ const ma = {
2693
2733
  emits: ["bar-click", "lume__internal--hover"],
2694
2734
  setup(e, { emit: n }) {
2695
2735
  const t = e, o = n, {
2696
- data: l,
2736
+ data: a,
2697
2737
  hoveredIndex: u,
2698
- orientation: a,
2738
+ orientation: l,
2699
2739
  transition: i,
2700
2740
  type: s,
2701
2741
  xScale: c,
@@ -2704,42 +2744,42 @@ const ma = {
2704
2744
  labels: m
2705
2745
  } = te(t);
2706
2746
  Pe("chartID");
2707
- const { emitInternalEvent: g } = ye(), { groupedData: p } = ln(l, m), { barXScale: b, barYScale: L } = ua(c, f, a), A = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
2708
- const D = aa(l, s), { barAttributeGenerator: P } = pa[D](
2709
- l,
2747
+ const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale: L } = cl(c, f, l), A = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
2748
+ const D = sl(a, s), { barAttributeGenerator: P } = yl[D](
2749
+ a,
2710
2750
  b,
2711
2751
  L,
2712
- a,
2752
+ l,
2713
2753
  u,
2714
2754
  A.value
2715
2755
  );
2716
2756
  return P;
2717
2757
  }), x = v(() => {
2718
2758
  if (i.value)
2719
- return a.value === B.HORIZONTAL ? "width" : "height";
2759
+ return l.value === B.HORIZONTAL ? "width" : "height";
2720
2760
  });
2721
2761
  async function N(D) {
2722
2762
  o("lume__internal--hover", D), g("lume__internal--hover", D);
2723
2763
  }
2724
- return (D, P) => (y(), $("g", ma, [
2725
- (y(!0), $(q, null, z(d(p), (w, H) => (y(), $("g", {
2764
+ return (D, P) => (y(), $("g", gl, [
2765
+ (y(!0), $(q, null, z(d(p), (I, H) => (y(), $("g", {
2726
2766
  key: H,
2727
- onMouseenter: (X) => N(H)
2767
+ onMouseenter: (Y) => N(H)
2728
2768
  }, [
2729
- (y(!0), $(q, null, z(w, (X, Y) => (y(), K(d(mt), G(h.value(X, Y, H, w), {
2730
- key: `bar-${Y}`,
2769
+ (y(!0), $(q, null, z(I, (Y, K) => (y(), X(d(mt), G(h.value(Y, K, H, I), {
2770
+ key: `bar-${K}`,
2731
2771
  transition: x.value,
2732
2772
  "data-j-lume-bar": "",
2733
2773
  onClick: (Q) => o("bar-click", {
2734
2774
  index: H,
2735
- datasetIndex: Y,
2775
+ datasetIndex: K,
2736
2776
  event: Q
2737
2777
  })
2738
2778
  }), null, 16, ["transition", "onClick"]))), 128))
2739
- ], 40, fa))), 128))
2779
+ ], 40, _l))), 128))
2740
2780
  ]));
2741
2781
  }
2742
- }), ha = {
2782
+ }), kl = {
2743
2783
  [B.VERTICAL]: {
2744
2784
  withTooltip: !0,
2745
2785
  xAxisOptions: {},
@@ -2752,35 +2792,35 @@ const ma = {
2752
2792
  yAxisOptions: { gridLines: !1 },
2753
2793
  margins: Te.HORIZONTAL
2754
2794
  }
2755
- }, Za = /* @__PURE__ */ U({
2795
+ }, Kl = /* @__PURE__ */ W({
2756
2796
  __name: "lume-single-bar-chart",
2757
2797
  props: {
2758
2798
  ...Ne(it)
2759
2799
  },
2760
2800
  setup(e, { emit: n }) {
2761
- const t = e, { componentEventPropagator: o } = ye(), l = Le(re()), { orientation: u, options: a } = te(t), i = v(
2762
- () => ha[u.value || B.VERTICAL]
2801
+ const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { orientation: u, options: l } = te(t), i = v(
2802
+ () => kl[u.value || B.VERTICAL]
2763
2803
  // needs to be computed so that default options are reactive
2764
- ), { allOptions: s } = me(a, i);
2765
- return (c, f) => (y(), K(d(De), G(t, {
2804
+ ), { allOptions: s } = fe(l, i);
2805
+ return (c, f) => (y(), X(d(De), G(t, {
2766
2806
  "chart-type": "single-bar",
2767
2807
  options: d(s),
2768
2808
  "data-j-single-bar-chart": ""
2769
- }, le(d(o))), ce({
2809
+ }, ae(d(o))), de({
2770
2810
  groups: V((r) => [
2771
- ie(d(ht), G(r, { orientation: d(u) }, le(d(o))), null, 16, ["orientation"])
2811
+ ie(d(ht), G(r, { orientation: d(u) }, ae(d(o))), null, 16, ["orientation"])
2772
2812
  ]),
2773
2813
  _: 2
2774
2814
  }, [
2775
- z(d(l), (r, m) => ({
2815
+ z(d(a), (r, m) => ({
2776
2816
  name: m,
2777
2817
  fn: V((g) => [
2778
- R(c.$slots, m, pe(he(g || {})))
2818
+ M(c.$slots, m, pe(he(g || {})))
2779
2819
  ])
2780
2820
  }))
2781
2821
  ]), 1040, ["options"]));
2782
2822
  }
2783
- }), ga = {
2823
+ }), bl = {
2784
2824
  [B.VERTICAL]: {
2785
2825
  withTooltip: !0,
2786
2826
  xAxisOptions: {},
@@ -2794,38 +2834,38 @@ const ma = {
2794
2834
  margins: Te.HORIZONTAL,
2795
2835
  tooltipOptions: { position: "right" }
2796
2836
  }
2797
- }, Ua = /* @__PURE__ */ U({
2837
+ }, Jl = /* @__PURE__ */ W({
2798
2838
  __name: "lume-grouped-bar-chart",
2799
2839
  props: {
2800
2840
  ...Ne()
2801
2841
  },
2802
2842
  setup(e, { emit: n }) {
2803
- const t = e, { componentEventPropagator: o } = ye(), l = Le(re()), { orientation: u, options: a } = te(t), i = v(
2804
- () => ga[u.value || B.VERTICAL]
2843
+ const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { orientation: u, options: l } = te(t), i = v(
2844
+ () => bl[u.value || B.VERTICAL]
2805
2845
  // needs to be computed so that default options are reactive
2806
- ), { allOptions: s } = me(
2807
- a,
2846
+ ), { allOptions: s } = fe(
2847
+ l,
2808
2848
  i
2809
2849
  );
2810
- return (c, f) => (y(), K(d(De), G(t, {
2850
+ return (c, f) => (y(), X(d(De), G(t, {
2811
2851
  "chart-type": "grouped-bar",
2812
2852
  options: d(s),
2813
2853
  "data-j-grouped-bar-chart": ""
2814
- }, le(d(o))), ce({
2854
+ }, ae(d(o))), de({
2815
2855
  groups: V((r) => [
2816
- ie(d(ht), G(r, { type: "grouped" }, le(d(o))), null, 16)
2856
+ ie(d(ht), G(r, { type: "grouped" }, ae(d(o))), null, 16)
2817
2857
  ]),
2818
2858
  _: 2
2819
2859
  }, [
2820
- z(d(l), (r, m) => ({
2860
+ z(d(a), (r, m) => ({
2821
2861
  name: m,
2822
2862
  fn: V((g) => [
2823
- R(c.$slots, m, pe(he(g || {})))
2863
+ M(c.$slots, m, pe(he(g || {})))
2824
2864
  ])
2825
2865
  }))
2826
2866
  ]), 1040, ["options"]));
2827
2867
  }
2828
- }), _a = {
2868
+ }), Al = {
2829
2869
  [B.VERTICAL]: {
2830
2870
  withTooltip: !0,
2831
2871
  xAxisOptions: {},
@@ -2838,46 +2878,46 @@ const ma = {
2838
2878
  xAxisOptions: { gridLines: !0 },
2839
2879
  yAxisOptions: { gridLines: !1 },
2840
2880
  margins: Te.HORIZONTAL,
2841
- tooltipOptions: { position: "right", inverse: !0 }
2881
+ tooltipOptions: { position: "right" }
2842
2882
  }
2843
- }, Xa = /* @__PURE__ */ U({
2883
+ }, Ql = /* @__PURE__ */ W({
2844
2884
  __name: "lume-stacked-bar-chart",
2845
2885
  props: {
2846
2886
  ...Ne()
2847
2887
  },
2848
2888
  setup(e, { emit: n }) {
2849
- const t = e, { componentEventPropagator: o } = ye(), l = Le(re()), { data: u, orientation: a, options: i, labels: s } = te(t), c = v(
2850
- () => _a[a.value || B.VERTICAL]
2889
+ const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { data: u, orientation: l, options: i, labels: s } = te(t), c = v(
2890
+ () => Al[l.value || B.VERTICAL]
2851
2891
  // needs to be computed so that default options are reactive
2852
- ), { allOptions: f } = me(
2892
+ ), { allOptions: f } = fe(
2853
2893
  i,
2854
2894
  c
2855
- ), { internalData: r } = pt(u), { groupedData: m } = ln(r, s), { stackedXScaleGenerator: g, stackedYScaleGenerator: p } = da(
2895
+ ), { internalData: r } = pt(u), { groupedData: m } = an(r, s), { stackedXScaleGenerator: g, stackedYScaleGenerator: p } = pl(
2856
2896
  m,
2857
- a,
2897
+ l,
2858
2898
  i
2859
2899
  ), b = v(() => t.xScale || g), L = v(() => t.yScale || p);
2860
- return (A, h) => (y(), K(d(De), G(t, {
2900
+ return (A, h) => (y(), X(d(De), G(t, {
2861
2901
  "chart-type": "stacked-bar",
2862
2902
  options: d(f),
2863
2903
  "x-scale": b.value,
2864
2904
  "y-scale": L.value,
2865
2905
  "data-j-stacked-bar-chart": ""
2866
- }, le(d(o))), ce({
2906
+ }, ae(d(o))), de({
2867
2907
  groups: V((x) => [
2868
- ie(d(ht), G(x, { type: "stacked" }, le(d(o))), null, 16)
2908
+ ie(d(ht), G(x, { type: "stacked" }, ae(d(o))), null, 16)
2869
2909
  ]),
2870
2910
  _: 2
2871
2911
  }, [
2872
- z(d(l), (x, N) => ({
2912
+ z(d(a), (x, N) => ({
2873
2913
  name: N,
2874
2914
  fn: V((D) => [
2875
- R(A.$slots, N, pe(he(D || {})))
2915
+ M(A.$slots, N, pe(he(D || {})))
2876
2916
  ])
2877
2917
  }))
2878
2918
  ]), 1040, ["options", "x-scale", "y-scale"]));
2879
2919
  }
2880
- }), ya = ["d", "stroke-width"], ka = 2, ba = /* @__PURE__ */ U({
2920
+ }), Tl = ["d", "stroke-width"], Ll = 2, Ol = /* @__PURE__ */ W({
2881
2921
  __name: "lume-line",
2882
2922
  props: {
2883
2923
  pathDefinition: {
@@ -2886,7 +2926,7 @@ const ma = {
2886
2926
  },
2887
2927
  width: {
2888
2928
  type: Number,
2889
- default: ka
2929
+ default: Ll
2890
2930
  },
2891
2931
  color: {
2892
2932
  type: String,
@@ -2911,8 +2951,8 @@ const ma = {
2911
2951
  },
2912
2952
  emits: ["click"],
2913
2953
  setup(e, { emit: n }) {
2914
- const t = n, o = S(null);
2915
- return _e(() => ze(o.value)), (l, u) => (y(), $("path", {
2954
+ const t = n, o = R(null);
2955
+ return _e(() => ze(o.value)), (a, u) => (y(), $("path", {
2916
2956
  ref_key: "root",
2917
2957
  ref: o,
2918
2958
  class: ne(["lume-line", {
@@ -2927,11 +2967,11 @@ const ma = {
2927
2967
  animationDuration: e.transition && e.animationDuration + "s"
2928
2968
  }),
2929
2969
  "data-j-line": "",
2930
- onClick: u[0] || (u[0] = (a) => t("click", a))
2931
- }, null, 14, ya));
2970
+ onClick: u[0] || (u[0] = (l) => t("click", l))
2971
+ }, null, 14, Tl));
2932
2972
  }
2933
2973
  });
2934
- const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-08896455"]]), Ta = ["cx", "cy", "r", "stroke-width"], La = 4, Oa = /* @__PURE__ */ U({
2974
+ const xl = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-08896455"]]), $l = ["cx", "cy", "r", "stroke-width"], wl = 4, Il = /* @__PURE__ */ W({
2935
2975
  __name: "lume-point",
2936
2976
  props: {
2937
2977
  x: { type: Number, required: !0 },
@@ -2942,7 +2982,7 @@ const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-08896455"]]), Ta = ["cx
2942
2982
  },
2943
2983
  radius: {
2944
2984
  type: Number,
2945
- default: La
2985
+ default: wl
2946
2986
  },
2947
2987
  active: {
2948
2988
  type: Boolean,
@@ -2951,10 +2991,10 @@ const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-08896455"]]), Ta = ["cx
2951
2991
  },
2952
2992
  emits: ["click"],
2953
2993
  setup(e, { emit: n }) {
2954
- const t = e, o = n, l = S(null), u = v(() => t.radius / 2);
2955
- return _e(() => ze(l.value)), (a, i) => (y(), $("circle", {
2994
+ const t = e, o = n, a = R(null), u = v(() => t.radius / 2);
2995
+ return _e(() => ze(a.value)), (l, i) => (y(), $("circle", {
2956
2996
  ref_key: "root",
2957
- ref: l,
2997
+ ref: a,
2958
2998
  class: ne(["lume-point", `lume-stroke--${e.color}`]),
2959
2999
  cx: e.x,
2960
3000
  cy: e.y,
@@ -2962,18 +3002,18 @@ const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-08896455"]]), Ta = ["cx
2962
3002
  "stroke-width": u.value,
2963
3003
  "data-j-point": "",
2964
3004
  onClick: i[0] || (i[0] = (s) => o("click", s))
2965
- }, null, 10, Ta));
3005
+ }, null, 10, $l));
2966
3006
  }
2967
3007
  });
2968
- const xa = /* @__PURE__ */ ee(Oa, [["__scopeId", "data-v-b6745177"]]);
2969
- function an(e) {
3008
+ const El = /* @__PURE__ */ ee(Il, [["__scopeId", "data-v-b6745177"]]);
3009
+ function ln(e) {
2970
3010
  function n(u) {
2971
- let a = null;
2972
- return u == null ? void 0 : u.reduce((i, s, c) => (s == null || s.value == null ? (a ? a.push(c) : a = [c], c === (u == null ? void 0 : u.length) - 1 && i.push(a)) : a && (i.push(a), a = null), i), []);
3011
+ let l = null;
3012
+ return u == null ? void 0 : u.reduce((i, s, c) => (s == null || s.value == null ? (l ? l.push(c) : l = [c], c === (u == null ? void 0 : u.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
2973
3013
  }
2974
- function t(u, a, i, s) {
2975
- const r = Math.abs(u - a) / (i + 1) * (s + 1);
2976
- return u == null && a == null ? null : u > a ? u - r : u + r;
3014
+ function t(u, l, i, s) {
3015
+ const r = Math.abs(u - l) / (i + 1) * (s + 1);
3016
+ return u == null && l == null ? null : u > l ? u - r : u + r;
2977
3017
  }
2978
3018
  function o(u) {
2979
3019
  return function(i) {
@@ -2983,13 +3023,13 @@ function an(e) {
2983
3023
  };
2984
3024
  }
2985
3025
  return { computedLineData: v(() => e.value.map((u) => {
2986
- const a = n(u.values);
3026
+ const l = n(u.values);
2987
3027
  return {
2988
3028
  ...u,
2989
- isDashed: o(a),
3029
+ isDashed: o(l),
2990
3030
  values: u.values.map((i, s) => {
2991
3031
  var f, r;
2992
- const c = a.find(
3032
+ const c = l.find(
2993
3033
  (m) => m.includes(s)
2994
3034
  );
2995
3035
  if (c) {
@@ -3010,27 +3050,27 @@ function an(e) {
3010
3050
  };
3011
3051
  })) };
3012
3052
  }
3013
- function $a(e, n) {
3053
+ function Nl(e, n) {
3014
3054
  const t = e.bandwidth() / 2;
3015
- return (o, l) => e(e.domain()[n + (l - 1)]) + t;
3055
+ return (o, a) => e(e.domain()[n + (a - 1)]) + t;
3016
3056
  }
3017
- function Ia(e, n) {
3057
+ function Dl(e, n) {
3018
3058
  return (t, o) => e(n + (o - 1));
3019
3059
  }
3020
- function wa(e, n, t, o) {
3021
- const l = _n().x(
3022
- de(t) ? $a(t, e) : Ia(t, e)
3060
+ function Hl(e, n, t, o) {
3061
+ const a = _n().x(
3062
+ ve(t) ? Nl(t, e) : Dl(t, e)
3023
3063
  ).y((u) => o(u));
3024
- return n.every((u) => u == null) ? null : l(n);
3064
+ return n.every((u) => u == null) ? null : a(n);
3025
3065
  }
3026
- const Ea = {
3066
+ const Bl = {
3027
3067
  class: "lume-line-group",
3028
3068
  "data-j-lume-line-group": ""
3029
- }, Na = { class: "lume-line-group__lines" }, Da = {
3069
+ }, Ml = { class: "lume-line-group__lines" }, Sl = {
3030
3070
  key: 0,
3031
3071
  class: "lume-line-group__points",
3032
3072
  "data-j-lume-line-group__points": ""
3033
- }, Ha = 1, Ba = /* @__PURE__ */ U({
3073
+ }, Rl = 1, Cl = /* @__PURE__ */ W({
3034
3074
  __name: "lume-line-group",
3035
3075
  props: {
3036
3076
  ...We(),
@@ -3045,156 +3085,156 @@ const Ea = {
3045
3085
  },
3046
3086
  emits: ["line-click", "point-click", "lume__internal--hover"],
3047
3087
  setup(e, { emit: n }) {
3048
- const t = e, o = n, { data: l, options: u, xScale: a, yScale: i, labels: s } = te(t), c = Pe(
3088
+ const t = e, o = n, { data: a, options: u, xScale: l, yScale: i, labels: s } = te(t), c = Pe(
3049
3089
  "tooltipAnchorAttributes",
3050
3090
  null
3051
3091
  ), { updateTooltipAnchorAttributes: f } = tn(
3052
3092
  c,
3053
3093
  u,
3054
- a,
3094
+ l,
3055
3095
  i,
3056
3096
  s
3057
3097
  ), r = v(() => {
3058
- if (l.value.every((H) => H.isDashed))
3059
- return l.value;
3060
- const { computedLineData: w } = an(l);
3061
- return u.value.withTooltip !== !1 && (c != null && c.value) && f(w.value), w.value;
3098
+ if (a.value.every((H) => H.isDashed))
3099
+ return a.value;
3100
+ const { computedLineData: I } = ln(a);
3101
+ return u.value.withTooltip !== !1 && (c != null && c.value) && f(I.value), I.value;
3062
3102
  }), m = v(() => {
3063
3103
  if (t.hoveredIndex === -1)
3064
3104
  return;
3065
- const w = Nn(
3105
+ const I = Nn(
3066
3106
  r.value,
3067
3107
  t.hoveredIndex
3068
3108
  );
3069
3109
  return {
3070
- d: `M ${et(a.value, t.hoveredIndex)},${i.value.range()[1]}
3071
- V ${i.value(w)}`
3110
+ d: `M ${et(l.value, t.hoveredIndex)},${i.value.range()[1]}
3111
+ V ${i.value(I)}`
3072
3112
  // Move to X index, Vertical line to the highest point
3073
3113
  };
3074
3114
  }), g = v(
3075
- () => a.value && Ha / (Dn(a.value) - 1)
3115
+ () => l.value && Rl / (Dn(l.value) - 1)
3076
3116
  // Subtracting the first line (read below)
3077
3117
  ), p = v(
3078
3118
  () => {
3079
- var w;
3080
- return ((w = u.value) == null ? void 0 : w.lineWidth) * 2 || void 0;
3119
+ var I;
3120
+ return ((I = u.value) == null ? void 0 : I.lineWidth) * 2 || void 0;
3081
3121
  }
3082
3122
  // If no `lineWidth`, returns NaN which needs to be undefined
3083
3123
  ), b = v(
3084
- () => a.value.bandwidth() / 2
3085
- ), L = v(() => a.value.domain()), A = v(
3124
+ () => l.value.bandwidth() / 2
3125
+ ), L = v(() => l.value.domain()), A = v(
3086
3126
  () => u.value.withPoints ?? t.withPoints
3087
3127
  );
3088
- function h(w) {
3089
- return r.value[w].values;
3090
- }
3091
- function x(w, H) {
3092
- var Y, Q;
3093
- const X = w === 0 ? [] : [
3094
- (Y = h(H)[w - 1]) == null ? void 0 : Y.value,
3095
- (Q = h(H)[w]) == null ? void 0 : Q.value
3128
+ function h(I) {
3129
+ return r.value[I].values;
3130
+ }
3131
+ function x(I, H) {
3132
+ var K, Q;
3133
+ const Y = I === 0 ? [] : [
3134
+ (K = h(H)[I - 1]) == null ? void 0 : K.value,
3135
+ (Q = h(H)[I]) == null ? void 0 : Q.value
3096
3136
  ];
3097
- return wa(
3098
- w,
3099
- X,
3100
- a.value,
3137
+ return Hl(
3138
+ I,
3139
+ Y,
3140
+ l.value,
3101
3141
  i.value
3102
3142
  ) || "";
3103
3143
  }
3104
- function N(w) {
3144
+ function N(I) {
3105
3145
  return {
3106
- animationDelay: w < 2 ? 0 : (w - 1) * g.value,
3146
+ animationDelay: I < 2 ? 0 : (I - 1) * g.value,
3107
3147
  animationDuration: g.value
3108
3148
  };
3109
3149
  }
3110
- function D(w, H) {
3111
- var Y;
3112
- const X = (Y = h(H)[w]) == null ? void 0 : Y.value;
3150
+ function D(I, H) {
3151
+ var K;
3152
+ const Y = (K = h(H)[I]) == null ? void 0 : K.value;
3113
3153
  return {
3114
- x: de(a.value) ? t.xScale(L.value[w]) + b.value : t.xScale(w),
3115
- y: X === null ? i.value(i.value.domain()[1]) : i.value(X)
3154
+ x: ve(l.value) ? t.xScale(L.value[I]) + b.value : t.xScale(I),
3155
+ y: Y === null ? i.value(i.value.domain()[1]) : i.value(Y)
3116
3156
  };
3117
3157
  }
3118
- function P(w) {
3119
- return t.hoveredIndex === w;
3158
+ function P(I) {
3159
+ return t.hoveredIndex === I;
3120
3160
  }
3121
- return (w, H) => (y(), $("g", Ea, [
3161
+ return (I, H) => (y(), $("g", Bl, [
3122
3162
  C("path", G(m.value, {
3123
3163
  class: "lume-line-group__overlay-line",
3124
3164
  "data-j-lume-line-group__overlay-line": ""
3125
3165
  }), null, 16),
3126
- (y(!0), $(q, null, z(r.value, (X, Y) => (y(), $("g", {
3127
- key: X.label,
3166
+ (y(!0), $(q, null, z(r.value, (Y, K) => (y(), $("g", {
3167
+ key: Y.label,
3128
3168
  class: "lume-line-group__group"
3129
3169
  }, [
3130
- C("g", Na, [
3131
- (y(!0), $(q, null, z(X.values, (Q, F) => (y(), K(d(Aa), G(N(F), {
3170
+ C("g", Ml, [
3171
+ (y(!0), $(q, null, z(Y.values, (Q, F) => (y(), X(d(xl), G(N(F), {
3132
3172
  key: `line-${F}`,
3133
- color: X.color,
3134
- dashed: X.isDashed(F),
3135
- "path-definition": x(F, Y),
3173
+ color: Y.color,
3174
+ dashed: Y.isDashed(F),
3175
+ "path-definition": x(F, K),
3136
3176
  transition: e.transition,
3137
3177
  width: d(u).lineWidth,
3138
- onClick: (ue) => o("line-click", { index: F, datasetIndex: Y, event: ue })
3178
+ onClick: (ue) => o("line-click", { index: F, datasetIndex: K, event: ue })
3139
3179
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3140
3180
  ]),
3141
- A.value ? (y(), $("g", Da, [
3142
- (y(!0), $(q, null, z(X.values, (Q, F) => (y(), K(d(xa), G(D(F, Y), {
3181
+ A.value ? (y(), $("g", Sl, [
3182
+ (y(!0), $(q, null, z(Y.values, (Q, F) => (y(), X(d(El), G(D(F, K), {
3143
3183
  key: `point-${F}`,
3144
3184
  active: P(F),
3145
- color: X.color,
3185
+ color: Y.color,
3146
3186
  index: F,
3147
3187
  radius: p.value,
3148
- onClick: (ue) => o("point-click", { index: F, datasetIndex: Y, event: ue })
3188
+ onClick: (ue) => o("point-click", { index: F, datasetIndex: K, event: ue })
3149
3189
  }), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
3150
- ])) : W("", !0)
3190
+ ])) : Z("", !0)
3151
3191
  ]))), 128))
3152
3192
  ]));
3153
3193
  }
3154
3194
  });
3155
- const un = /* @__PURE__ */ ee(Ba, [["__scopeId", "data-v-44ba7be1"]]), Ma = {
3195
+ const un = /* @__PURE__ */ ee(Cl, [["__scopeId", "data-v-44ba7be1"]]), Gl = {
3156
3196
  margins: Te.VERTICAL,
3157
3197
  startOnZero: !0,
3158
3198
  withTooltip: !0,
3159
3199
  xAxisOptions: {},
3160
3200
  yAxisOptions: { gridLines: !0 }
3161
- }, Ya = /* @__PURE__ */ U({
3201
+ }, ql = /* @__PURE__ */ W({
3162
3202
  __name: "lume-line-chart",
3163
3203
  props: {
3164
3204
  ...Ne(null, !1)
3165
3205
  },
3166
3206
  setup(e, { emit: n }) {
3167
- const t = e, { componentEventPropagator: o } = ye(), l = Le(re()), { options: u } = te(t), { allOptions: a } = me(u, Ma);
3168
- return (i, s) => (y(), K(d(De), G(t, {
3207
+ const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { options: u } = te(t), { allOptions: l } = fe(u, Gl);
3208
+ return (i, s) => (y(), X(d(De), G(t, {
3169
3209
  "chart-type": "line",
3170
- options: d(a),
3210
+ options: d(l),
3171
3211
  "data-j-lume-line-chart": ""
3172
- }, le(d(o))), ce({
3212
+ }, ae(d(o))), de({
3173
3213
  groups: V((c) => [
3174
- ie(d(un), G(c, le(d(o))), null, 16)
3214
+ ie(d(un), G(c, ae(d(o))), null, 16)
3175
3215
  ]),
3176
3216
  _: 2
3177
3217
  }, [
3178
- z(d(l), (c, f) => ({
3218
+ z(d(a), (c, f) => ({
3179
3219
  name: f,
3180
3220
  fn: V((r) => [
3181
- R(i.$slots, f, pe(he(r || {})))
3221
+ M(i.$slots, f, pe(he(r || {})))
3182
3222
  ])
3183
3223
  }))
3184
3224
  ]), 1040, ["options"]));
3185
3225
  }
3186
3226
  });
3187
- function Sa(e) {
3227
+ function jl(e) {
3188
3228
  return { areaPathDefinition: v(
3189
3229
  () => function(t, o) {
3190
- if (!t || !o || de(t) || de(o))
3230
+ if (!t || !o || ve(t) || ve(o))
3191
3231
  return;
3192
- const l = e.value[0].values;
3193
- return yn().x((u, a) => t(a)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(l);
3232
+ const a = e.value[0].values;
3233
+ return yn().x((u, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(a);
3194
3234
  }
3195
3235
  ) };
3196
3236
  }
3197
- const Ra = {
3237
+ const Vl = {
3198
3238
  margins: {
3199
3239
  top: 0,
3200
3240
  right: 0,
@@ -3208,20 +3248,20 @@ const Ra = {
3208
3248
  tooltipOptions: {
3209
3249
  showTitle: !1
3210
3250
  }
3211
- }, Ca = ["d"], Ga = /* @__PURE__ */ U({
3251
+ }, Pl = ["d"], Fl = /* @__PURE__ */ W({
3212
3252
  __name: "lume-sparkline-chart",
3213
3253
  props: {
3214
3254
  ...ft(null),
3215
3255
  ...Me()
3216
3256
  },
3217
3257
  setup(e, { expose: n, emit: t }) {
3218
- const o = e, { componentEventPropagator: l } = ye(), u = Le(re()), { data: a, options: i } = te(o), { internalData: s } = pt(a), { allOptions: c } = me(i, Ra), { computedLineData: f } = an(s), { areaPathDefinition: r } = Sa(f), m = v(() => {
3258
+ const o = e, { componentEventPropagator: a } = ye(), u = Le(re()), { data: l, options: i } = te(o), { internalData: s } = pt(l), { allOptions: c } = fe(i, Vl), { computedLineData: f } = ln(s), { areaPathDefinition: r } = jl(f), m = v(() => {
3219
3259
  var L, A;
3220
3260
  return (A = (L = s.value) == null ? void 0 : L[0]) == null ? void 0 : A.color;
3221
3261
  }), g = v(
3222
3262
  () => {
3223
3263
  var L, A;
3224
- return ((A = (L = a.value) == null ? void 0 : L[0]) == null ? void 0 : A.areaColor) || m.value;
3264
+ return ((A = (L = l.value) == null ? void 0 : L[0]) == null ? void 0 : A.areaColor) || m.value;
3225
3265
  }
3226
3266
  );
3227
3267
  function p(L) {
@@ -3236,11 +3276,11 @@ const Ra = {
3236
3276
  }
3237
3277
  return n({
3238
3278
  areaPathDefinition: r
3239
- }), (L, A) => (y(), K(d(De), G(o, {
3279
+ }), (L, A) => (y(), X(d(De), G(o, {
3240
3280
  "chart-type": "line",
3241
3281
  options: p(d(c)),
3242
3282
  "x-scale": b
3243
- }, le(d(l))), ce({
3283
+ }, ae(d(a))), de({
3244
3284
  groups: V((h) => [
3245
3285
  d(c).showArea ? (y(), $("path", {
3246
3286
  key: 0,
@@ -3252,42 +3292,43 @@ const Ra = {
3252
3292
  ]),
3253
3293
  d: d(r)(h.xScale, h.yScale),
3254
3294
  "data-j-sparkline__area": ""
3255
- }, null, 10, Ca)) : W("", !0),
3256
- ie(d(un), G(h, { "with-points": !1 }, le(d(l))), null, 16)
3295
+ }, null, 10, Pl)) : Z("", !0),
3296
+ ie(d(un), G(h, { "with-points": !1 }, ae(d(a))), null, 16)
3257
3297
  ]),
3258
3298
  _: 2
3259
3299
  }, [
3260
3300
  z(d(u), (h, x) => ({
3261
3301
  name: x,
3262
3302
  fn: V((N) => [
3263
- R(L.$slots, x, pe(he(N || {})), void 0, !0)
3303
+ M(L.$slots, x, pe(he(N || {})), void 0, !0)
3264
3304
  ])
3265
3305
  }))
3266
3306
  ]), 1040, ["options"]));
3267
3307
  }
3268
3308
  });
3269
- const Ka = /* @__PURE__ */ ee(Ga, [["__scopeId", "data-v-bda226a1"]]);
3309
+ const eu = /* @__PURE__ */ ee(Fl, [["__scopeId", "data-v-bda226a1"]]);
3270
3310
  export {
3271
- za as LumeAlluvialDiagram,
3272
- ea as LumeAlluvialGroup,
3273
- kl as LumeAlluvialNodeLabel,
3274
- Tl as LumeAlluvialNodeValue,
3311
+ Xl as LumeAlluvialDiagram,
3312
+ al as LumeAlluvialGroup,
3313
+ wa as LumeAlluvialNodeHeader,
3314
+ ka as LumeAlluvialNodeLabel,
3315
+ Ta as LumeAlluvialNodeValue,
3275
3316
  Lt as LumeAxis,
3276
3317
  mt as LumeBar,
3277
- Wa as LumeBarChart,
3318
+ Yl as LumeBarChart,
3278
3319
  ht as LumeBarGroup,
3279
3320
  De as LumeChart,
3280
3321
  io as LumeChartContainer,
3281
3322
  Ot as LumeChartLegend,
3282
- Ua as LumeGroupedBarChart,
3283
- Aa as LumeLine,
3284
- Ya as LumeLineChart,
3323
+ Jl as LumeGroupedBarChart,
3324
+ xl as LumeLine,
3325
+ ql as LumeLineChart,
3285
3326
  un as LumeLineGroup,
3286
3327
  Uo as LumeOverlayGroup,
3287
- xa as LumePoint,
3288
- Za as LumeSingleBarChart,
3289
- Ka as LumeSparklineChart,
3290
- Xa as LumeStackedBarChart,
3328
+ El as LumePoint,
3329
+ Kl as LumeSingleBarChart,
3330
+ eu as LumeSparklineChart,
3331
+ Ql as LumeStackedBarChart,
3291
3332
  Do as LumeTooltip,
3292
3333
  Oo as LumeTooltipItem,
3293
3334
  ko as LumeTooltipSummary,