@adyen/lume-vue3 1.2.1 → 1.4.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,12 +1,12 @@
1
- import { defineComponent as Z, ref as M, openBlock as y, createElementBlock as O, mergeProps as C, createElementVNode as G, toDisplayString as te, createCommentVNode as F, isRef as wt, computed as p, watch as Y, toRefs as q, inject as Ee, reactive as Se, onMounted as fe, unref as r, Fragment as J, renderList as z, createBlock as W, normalizeClass as ee, normalizeStyle as It, onBeforeUnmount as Et, watchEffect as Nt, renderSlot as S, createTextVNode as ce, useSlots as ae, withDirectives as on, withCtx as V, createSlots as ie, vShow as an, pushScopeId as rn, popScopeId as ln, provide as Ve, createVNode as re, toHandlers as ne, normalizeProps as de, guardReactiveProps as ve, defineAsyncComponent as Pe, resolveDynamicComponent as un } from "vue";
2
- import { format as sn, ticks as cn, scaleBand as we, scaleLinear as Ie, link as dn, line as vn, area as pn } from "d3";
3
- import { createPopper as fn } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as mn, sankey as hn, sankeyJustify as gn } from "d3-sankey";
5
- const _n = {
1
+ import { defineComponent as Z, ref as M, openBlock as y, createElementBlock as O, mergeProps as C, createElementVNode as G, toDisplayString as ne, createCommentVNode as F, isRef as It, computed as p, watch as Y, toRefs as q, inject as Ee, reactive as Se, onMounted as fe, unref as r, Fragment as J, renderList as z, createBlock as U, normalizeClass as te, normalizeStyle as wt, onBeforeUnmount as Et, watchEffect as Nt, renderSlot as S, createTextVNode as ce, useSlots as ae, withDirectives as nn, withCtx as P, createSlots as ie, vShow as on, pushScopeId as an, popScopeId as rn, provide as Ve, createVNode as re, toHandlers as oe, normalizeProps as de, guardReactiveProps as ve, defineAsyncComponent as Fe, resolveDynamicComponent as ln } from "vue";
2
+ import { format as un, ticks as sn, scaleBand as Ie, scaleLinear as we, link as cn, line as dn, area as vn } from "d3";
3
+ import { createPopper as pn } from "@popperjs/core";
4
+ import { sankeyLinkHorizontal as fn, sankey as mn, sankeyJustify as hn } from "d3-sankey";
5
+ const gn = {
6
6
  class: "axis__tick-label lume-typography--axis",
7
7
  "pointer-events": "all",
8
8
  "data-j-axis__tick-label": ""
9
- }, yn = /* @__PURE__ */ Z({
9
+ }, _n = /* @__PURE__ */ Z({
10
10
  __name: "lume-tick",
11
11
  props: {
12
12
  value: {
@@ -54,7 +54,7 @@ const _n = {
54
54
  onMouseenter: a[0] || (a[0] = (u) => n("mouseenter", u)),
55
55
  onClick: a[1] || (a[1] = (u) => n("click", u))
56
56
  }), [
57
- G("g", _n, [
57
+ G("g", gn, [
58
58
  G("rect", C(e.ghost, {
59
59
  class: "axis__ghost",
60
60
  fill: "url(#lume-tick-gradient)"
@@ -63,7 +63,7 @@ const _n = {
63
63
  ref_key: "labelRef",
64
64
  ref: o,
65
65
  class: "axis__label"
66
- }), te(e.value), 17)
66
+ }), ne(e.value), 17)
67
67
  ]),
68
68
  e.withGridlines ? (y(), O("line", C({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : F("", !0)
69
69
  ], 16));
@@ -74,7 +74,7 @@ const Q = (e, t) => {
74
74
  for (const [o, l] of t)
75
75
  n[o] = l;
76
76
  return n;
77
- }, vt = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-59ddc0a6"]]), kn = [
77
+ }, pt = /* @__PURE__ */ Q(_n, [["__scopeId", "data-v-59ddc0a6"]]), yn = [
78
78
  "controls",
79
79
  "legend",
80
80
  "axes",
@@ -90,53 +90,53 @@ function Ht(e) {
90
90
  (t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
91
91
  ).flat()) || [];
92
92
  }
93
- function qe(e) {
93
+ function et(e) {
94
94
  return e.length === 1;
95
95
  }
96
- function bn(e) {
96
+ function kn(e) {
97
97
  return !!e && e.every(
98
98
  (t) => "color" in t
99
99
  );
100
100
  }
101
- function Fe(e) {
101
+ function ze(e) {
102
102
  return !!e && typeof e == "object" && !Array.isArray(e);
103
103
  }
104
104
  function Bt(e, t) {
105
105
  const n = { ...e };
106
106
  return Object.entries(t).forEach(([o, l]) => {
107
- n[o] = Fe(e[o]) && Fe(l) ? Bt(e[o], l) : l;
107
+ n[o] = ze(e[o]) && ze(l) ? Bt(e[o], l) : l;
108
108
  }), n;
109
109
  }
110
- function An(e) {
111
- return e != null && Fe(e) && "value" in e;
110
+ function bn(e) {
111
+ return e != null && ze(e) && "value" in e;
112
112
  }
113
- function ye(e) {
113
+ function ke(e) {
114
114
  return (e == null ? void 0 : e.bandwidth) !== void 0;
115
115
  }
116
- function Tn(e) {
117
- return ye(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
116
+ function An(e) {
117
+ return ke(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
118
118
  }
119
- const Ln = (e, t) => {
119
+ const Tn = (e, t) => {
120
120
  if (!e)
121
121
  throw new Error("Data is not a valid array");
122
122
  if (e.length === 0)
123
123
  throw new Error("Cannot get highest value from empty array");
124
- e.forEach(({ values: n }) => {
125
- if (n.length - 1 < t)
126
- throw new Error("Index exceeds length of at least one of the datasets");
127
- });
124
+ if (!e.some(
125
+ ({ values: o }) => o.length - 1 >= t
126
+ ))
127
+ throw new Error("Index exceeds length of all of the datasets");
128
128
  };
129
- function On(e, t) {
129
+ function Ln(e, t) {
130
130
  var n;
131
- return Ln(e, t), ((n = e.reduce(
131
+ return Tn(e, t), ((n = e.reduce(
132
132
  (o, l) => {
133
133
  var a, u;
134
134
  return (((a = o.values[t]) == null ? void 0 : a.value) ?? 0) > (((u = l.values[t]) == null ? void 0 : u.value) ?? 0) ? o : l;
135
135
  }
136
136
  ).values[t]) == null ? void 0 : n.value) || 0;
137
137
  }
138
- function ze(e) {
139
- const t = wt(e) ? e.value : e;
138
+ function Ze(e) {
139
+ const t = It(e) ? e.value : e;
140
140
  if (!t)
141
141
  throw new Error("No empty array can be created from specified data value");
142
142
  const n = Math.max(
@@ -145,17 +145,17 @@ function ze(e) {
145
145
  );
146
146
  return Array(n).fill(null);
147
147
  }
148
- function $n(e) {
149
- return ye(e) ? e.domain().length : Math.max(...e.domain());
148
+ function On(e) {
149
+ return ke(e) ? e.domain().length : Math.max(...e.domain());
150
150
  }
151
- function xn(e, t) {
151
+ function $n(e, t) {
152
152
  return (n) => Math.round(e * (1 - n) + t * n);
153
153
  }
154
- function wn(e, t, n) {
154
+ function xn(e, t, n) {
155
155
  const o = n ? e.length - t : t, l = e.slice(0, o);
156
156
  return e.slice(o).concat(l);
157
157
  }
158
- function ke(e) {
158
+ function be(e) {
159
159
  if (e.groups) {
160
160
  const t = Object.keys(e);
161
161
  return Object.assign(
@@ -169,28 +169,28 @@ function In(e) {
169
169
  return Object.assign(
170
170
  {},
171
171
  ...Object.keys(e).map(
172
- (t) => kn.includes(t) ? {} : { [t]: e[t] }
172
+ (t) => yn.includes(t) ? {} : { [t]: e[t] }
173
173
  )
174
174
  );
175
175
  }
176
- const En = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
176
+ const wn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
177
177
  (t, n) => t += (n &= 63) < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n > 62 ? "-" : "_",
178
178
  ""
179
179
  );
180
180
  var pe = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
181
181
  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))(pe || {});
182
- const Nn = "[lume] ";
183
- function ge(e, t = !0) {
184
- t && Dt() || console.warn(Nn + "Warning: " + e);
182
+ const En = "[lume] ";
183
+ function _e(e, t = !0) {
184
+ t && Dt() || console.warn(En + "Warning: " + e);
185
185
  }
186
186
  const Me = (e) => {
187
187
  let t = null;
188
188
  switch (typeof e) {
189
189
  case "string":
190
190
  try {
191
- t = sn(e);
191
+ t = un(e);
192
192
  } catch {
193
- ge(pe.InvalidFormat), t = null;
193
+ _e(pe.InvalidFormat), t = null;
194
194
  }
195
195
  break;
196
196
  case "function":
@@ -211,12 +211,12 @@ const Me = (e) => {
211
211
  });
212
212
  function se(e, t) {
213
213
  return { allOptions: p(() => {
214
- const o = wt(t) ? t == null ? void 0 : t.value : t;
214
+ const o = It(t) ? t == null ? void 0 : t.value : t;
215
215
  return o ? Bt(o, e.value) : e.value;
216
216
  }) };
217
217
  }
218
- const Dn = 0.2;
219
- function Hn(e, t, n) {
218
+ const Nn = 0.2;
219
+ function Dn(e, t, n) {
220
220
  const o = M(), l = p(() => Math.max(...e.value.range())), a = p(() => t.value.length);
221
221
  function u() {
222
222
  if (!t.value)
@@ -225,7 +225,7 @@ function Hn(e, t, n) {
225
225
  (v, i) => v + i.ref.getBoundingClientRect().width,
226
226
  0
227
227
  ), d = Math.ceil(s / a.value);
228
- o.value = d + d * Dn;
228
+ o.value = d + d * Nn;
229
229
  }
230
230
  function c(s) {
231
231
  if (!t.value)
@@ -238,15 +238,15 @@ function Hn(e, t, n) {
238
238
  }
239
239
  return Y(t, u), { showTick: c };
240
240
  }
241
- var le = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(le || {}), Rt = /* @__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))(Rt || {}), et = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(et || {}), Mt = /* @__PURE__ */ ((e) => (e.Grey = "grey", e.Green = "green", e.Orange = "orange", e.Red = "red", e))(Mt || {}), tt = /* @__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))(tt || {});
241
+ var le = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(le || {}), Rt = /* @__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))(Rt || {}), tt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(tt || {}), Mt = /* @__PURE__ */ ((e) => (e.Grey = "grey", e.Green = "green", e.Orange = "orange", e.Red = "red", e))(Mt || {}), nt = /* @__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))(nt || {});
242
242
  const H = {
243
243
  HORIZONTAL: "horizontal",
244
244
  VERTICAL: "vertical"
245
- }, Bn = {
245
+ }, Hn = {
246
246
  SINGLE: "single",
247
247
  GROUPED: "grouped",
248
248
  STACKED: "stacked"
249
- }, St = "No data", pt = 20, Ct = 0.33, Gt = 0.5, jt = 12, De = 8, Rn = 1, Mn = [
249
+ }, St = "No data", ft = 20, Ct = 0.33, Gt = 0.5, jt = 12, De = 8, Bn = 1, Rn = [
250
250
  "auto",
251
251
  "auto-start",
252
252
  "auto-end",
@@ -264,9 +264,9 @@ const H = {
264
264
  "left-end"
265
265
  ];
266
266
  function Ce(e) {
267
- e != null && e.closest("svg") || ge(pe.NotContainedInSvg);
267
+ e != null && e.closest("svg") || _e(pe.NotContainedInSvg);
268
268
  }
269
- const Vt = {
269
+ const Pt = {
270
270
  /** Displays a line for each tick. */
271
271
  gridLines: !1,
272
272
  /** Displays the axis title. */
@@ -282,14 +282,14 @@ const Vt = {
282
282
  tickFormat: null,
283
283
  /** Space between the tick label and the axis line. */
284
284
  tickPadding: 8
285
- }, Sn = {
286
- ...Vt,
285
+ }, Mn = {
286
+ ...Pt,
287
287
  withTitle: !1,
288
288
  skip: !0
289
- }, Cn = {
290
- ...Vt,
289
+ }, Sn = {
290
+ ...Pt,
291
291
  gridLines: !0
292
- }, Gn = function(e, t, n) {
292
+ }, Cn = function(e, t, n) {
293
293
  const o = p(() => e.value.step() * e.value.paddingInner() / 2);
294
294
  function l(s, d) {
295
295
  return {
@@ -331,7 +331,7 @@ const Vt = {
331
331
  getTickGroupAttributes: l,
332
332
  getTickLabelAttributes: c
333
333
  };
334
- }, jn = function(e, t, n) {
334
+ }, Gn = function(e, t, n) {
335
335
  const o = p(() => e.value.step() * e.value.paddingInner() / 2);
336
336
  function l(s, d) {
337
337
  return {
@@ -369,7 +369,7 @@ const Vt = {
369
369
  getTickGroupAttributes: l,
370
370
  getTickLabelAttributes: c
371
371
  };
372
- }, Vn = function(e, t, n) {
372
+ }, jn = function(e, t, n) {
373
373
  const o = p(() => {
374
374
  const s = e.value.ticks();
375
375
  return s.length > 1 ? e.value(s[1]) - e.value(s[0]) : 0;
@@ -442,12 +442,12 @@ const Vt = {
442
442
  getTickGroupAttributes: l,
443
443
  getTickLabelAttributes: c
444
444
  };
445
- }, Fn = {
446
- "x-band-scale-axis": Gn,
447
- "y-band-scale-axis": jn,
448
- "x-linear-scale-axis": Vn,
445
+ }, Vn = {
446
+ "x-band-scale-axis": Cn,
447
+ "y-band-scale-axis": Gn,
448
+ "x-linear-scale-axis": jn,
449
449
  "y-linear-scale-axis": Pn
450
- }, zn = ["transform"], Zn = { key: 0 }, Wn = /* @__PURE__ */ G("linearGradient", { id: "lume-tick-gradient" }, [
450
+ }, Fn = ["transform"], zn = { key: 0 }, Zn = /* @__PURE__ */ G("linearGradient", { id: "lume-tick-gradient" }, [
451
451
  /* @__PURE__ */ G("stop", {
452
452
  offset: "0%",
453
453
  "stop-color": "rgba(255,255,255,0)"
@@ -464,11 +464,11 @@ const Vt = {
464
464
  offset: "100%",
465
465
  "stop-color": "rgba(255,255,255,0)"
466
466
  })
467
- ], -1), Un = [
468
- Wn
467
+ ], -1), Wn = [
468
+ Zn
469
469
  ];
470
- var Pt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Pt || {}), Ft = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(Ft || {}), Ze = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(Ze || {});
471
- const ft = /* @__PURE__ */ Z({
470
+ var Vt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Vt || {}), Ft = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(Ft || {}), We = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(We || {});
471
+ const mt = /* @__PURE__ */ Z({
472
472
  __name: "lume-axis",
473
473
  props: {
474
474
  scale: {
@@ -478,7 +478,7 @@ const ft = /* @__PURE__ */ Z({
478
478
  type: {
479
479
  type: String,
480
480
  default: void 0,
481
- validator: (e) => e in Ze
481
+ validator: (e) => e in We
482
482
  },
483
483
  position: {
484
484
  type: String,
@@ -502,36 +502,36 @@ const ft = /* @__PURE__ */ Z({
502
502
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
503
503
  setup(e, { emit: t }) {
504
504
  const n = e, o = 16, { scale: l, containerSize: a, hoveredIndex: u, options: c, orientation: s } = q(n), d = Ee("isEmpty", M(!1)), v = Se({}), i = M(null), m = M(null), h = M(null), g = p(
505
- () => n.type ? Ze[n.type] : n.position
506
- ), A = p(
505
+ () => n.type ? We[n.type] : n.position
506
+ ), b = p(
507
507
  () => n.type || (g.value === "left" ? "y" : "x")
508
- ), x = p(
509
- () => A.value === "x" && s.value === H.VERTICAL || A.value === "y" && s.value === H.HORIZONTAL
508
+ ), $ = p(
509
+ () => b.value === "x" && s.value === H.VERTICAL || b.value === "y" && s.value === H.HORIZONTAL
510
510
  ), { allOptions: f } = se(
511
511
  c,
512
- A.value === "x" ? Sn : Cn
513
- ), { showTick: T } = Hn(l, i, f.value.skip), E = p(() => {
514
- var R, k, N, _;
515
- return A.value === "y" && d.value ? `translate(0, ${((R = a.value) == null ? void 0 : R.height) / 2})` : A.value === "x" && d.value ? `translate(-${((k = a.value) == null ? void 0 : k.width) / 2}, ${(N = a.value) == null ? void 0 : N.height})` : `translate(0, ${A.value === "x" ? (_ = a.value) == null ? void 0 : _.height : 0})`;
516
- }), w = p(() => {
517
- if (ye(l.value))
512
+ b.value === "x" ? Mn : Sn
513
+ ), { showTick: L } = Dn(l, i, f.value.skip), E = p(() => {
514
+ var B, k, N, _;
515
+ return b.value === "y" && d.value ? `translate(0, ${((B = a.value) == null ? void 0 : B.height) / 2})` : b.value === "x" && d.value ? `translate(-${((k = a.value) == null ? void 0 : k.width) / 2}, ${(N = a.value) == null ? void 0 : N.height})` : `translate(0, ${b.value === "x" ? (_ = a.value) == null ? void 0 : _.height : 0})`;
516
+ }), x = p(() => {
517
+ if (ke(l.value))
518
518
  return l.value.labels || l.value.domain();
519
- const { tickCount: R } = f.value, [k, N] = l.value.domain();
520
- return cn(k, N, R);
521
- }), $ = p(() => {
522
- const { tickFormat: R } = f.value;
523
- return Me(R);
519
+ const { tickCount: B } = f.value, [k, N] = l.value.domain();
520
+ return sn(k, N, B);
521
+ }), I = p(() => {
522
+ const { tickFormat: B } = f.value;
523
+ return Me(B);
524
524
  }), D = p(
525
- () => f.value.withHover && x.value && u.value > -1
526
- ), B = p(
525
+ () => f.value.withHover && $.value && u.value > -1
526
+ ), R = p(
527
527
  () => f.value.tickPadding + De || o
528
- ), U = p(() => A.value === "x" ? (
528
+ ), W = p(() => b.value === "x" ? (
529
529
  // If x axis, get the tick height
530
530
  Math.max(
531
531
  ...(i.value || []).map(
532
- (R) => {
532
+ (B) => {
533
533
  var k, N;
534
- return ((N = (k = R.ref).getBBox) == null ? void 0 : N.call(k).height) + B.value;
534
+ return ((N = (k = B.ref).getBBox) == null ? void 0 : N.call(k).height) + R.value;
535
535
  }
536
536
  )
537
537
  )
@@ -539,48 +539,48 @@ const ft = /* @__PURE__ */ Z({
539
539
  // If y axis, get the tick width
540
540
  Math.max(
541
541
  ...(i.value || []).map(
542
- (R) => {
542
+ (B) => {
543
543
  var k, N;
544
- return ((N = (k = R.ref).getBBox) == null ? void 0 : N.call(k).width) + B.value;
544
+ return ((N = (k = B.ref).getBBox) == null ? void 0 : N.call(k).width) + R.value;
545
545
  }
546
546
  )
547
547
  )
548
548
  ));
549
- function oe(R) {
549
+ function ee(B) {
550
550
  const { showTicks: k } = f.value;
551
- return k === !1 ? "" : $.value(R);
551
+ return k === !1 ? "" : I.value(B);
552
552
  }
553
- function P(R, k, N) {
554
- t("mouseenter", { index: x.value ? R : null, value: k, event: N });
553
+ function V(B, k, N) {
554
+ t("mouseenter", { index: $.value ? B : null, value: k, event: N });
555
555
  }
556
- function K(R, k, N) {
557
- t("click", { index: R, value: k, event: N });
556
+ function K(B, k, N) {
557
+ t("click", { index: B, value: k, event: N });
558
558
  }
559
- function Ae(R) {
559
+ function Ae(B) {
560
560
  var k;
561
561
  if (!(!i.value || !i.value.length))
562
- return (k = i.value[R]) == null ? void 0 : k.ref;
562
+ return (k = i.value[B]) == null ? void 0 : k.ref;
563
563
  }
564
564
  function Te() {
565
- h.value = w.value.map(
566
- (R, k) => ({
567
- value: oe(R),
568
- group: v.getTickGroupAttributes(R, k),
565
+ h.value = x.value.map(
566
+ (B, k) => ({
567
+ value: ee(B),
568
+ group: v.getTickGroupAttributes(B, k),
569
569
  ghost: v.getTickGhostAttributes(Ae(k)),
570
570
  label: v.getTickLabelAttributes(),
571
571
  gridline: v.getGridLinesAttributes()
572
572
  })
573
573
  );
574
574
  }
575
- function me() {
576
- const R = l.value.step ? "bandScale" : "linearScale", k = Fn[`${A.value}-${Pt[R]}`];
575
+ function he() {
576
+ const B = l.value.step ? "bandScale" : "linearScale", k = Vn[`${b.value}-${Vt[B]}`];
577
577
  Object.entries(k(l, a, f) || []).forEach(
578
578
  ([N, _]) => {
579
579
  v[N] = _;
580
580
  }
581
581
  );
582
582
  }
583
- return Y(l, me, { flush: "sync", immediate: !0 }), Y(l, Te, { immediate: !0 }), Y(i, Te), Y(U, (R) => t("lume__internal--axis-size", R)), fe(() => Ce(m.value)), (R, k) => r(l) ? (y(), O("g", {
583
+ return Y(l, he, { flush: "sync", immediate: !0 }), Y(l, Te, { immediate: !0 }), Y(i, Te), Y(W, (B) => t("lume__internal--axis-size", B)), fe(() => Ce(m.value)), (B, k) => r(l) ? (y(), O("g", {
584
584
  key: 0,
585
585
  ref_key: "root",
586
586
  ref: m,
@@ -589,19 +589,19 @@ const ft = /* @__PURE__ */ Z({
589
589
  "data-j-axis": "",
590
590
  onMouseleave: k[1] || (k[1] = (N) => t("mouseleave", N))
591
591
  }, [
592
- r(A) === "x" ? (y(), O("defs", Zn, Un)) : F("", !0),
593
- (y(!0), O(J, null, z(h.value, (N, _) => (y(), W(r(vt), C({
592
+ r(b) === "x" ? (y(), O("defs", zn, Wn)) : F("", !0),
593
+ (y(!0), O(J, null, z(h.value, (N, _) => (y(), U(r(pt), C({
594
594
  key: `${N.value}_${_}`,
595
595
  ref_for: !0,
596
596
  ref_key: "tickRefs",
597
597
  ref: i
598
598
  }, N, {
599
- "is-hidden": r(f).skip && !r(T)(_),
599
+ "is-hidden": r(f).skip && !r(L)(_),
600
600
  "with-gridlines": r(f).gridLines,
601
- onMouseenter: (j) => P(_, N.value, j),
601
+ onMouseenter: (j) => V(_, N.value, j),
602
602
  onClick: (j) => K(_, N.value, j)
603
603
  }), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
604
- r(D) ? (y(), W(r(vt), C({ key: 1 }, h.value[r(u)], {
604
+ r(D) ? (y(), U(r(pt), C({ key: 1 }, h.value[r(u)], {
605
605
  "with-gridlines": !1,
606
606
  "is-hovered": "",
607
607
  onClick: k[0] || (k[0] = (N) => K(
@@ -610,10 +610,10 @@ const ft = /* @__PURE__ */ Z({
610
610
  N
611
611
  ))
612
612
  }), null, 16)) : F("", !0)
613
- ], 40, zn)) : F("", !0);
613
+ ], 40, Fn)) : F("", !0);
614
614
  }
615
615
  });
616
- function Xn(e, t, n, o) {
616
+ function Un(e, t, n, o) {
617
617
  const l = p(() => n.value > 0 && n.value < 1), a = p(
618
618
  () => o.value > 0 && o.value < 1
619
619
  ), u = p(
@@ -625,13 +625,13 @@ function Xn(e, t, n, o) {
625
625
  );
626
626
  return { computedX: u, computedY: c, shouldHaveMinWidth: l, shouldHaveMinHeight: a };
627
627
  }
628
- function Yn(e, t, n, o) {
628
+ function Xn(e, t, n, o) {
629
629
  const l = M(0), a = M(0), u = p(() => `${e.value + n.value / 2}px ${t.value + o.value / 2}px`);
630
630
  return fe(() => {
631
631
  l.value = n.value, a.value = o.value;
632
632
  }), Y(n, (c) => l.value = c), Y(o, (c) => a.value = c), { computedWidth: l, computedHeight: a, transformOrigin: u };
633
633
  }
634
- const Kn = ["x", "y", "width", "height"], Jn = /* @__PURE__ */ Z({
634
+ const Yn = ["x", "y", "width", "height"], Kn = /* @__PURE__ */ Z({
635
635
  __name: "lume-bar",
636
636
  props: {
637
637
  x: {
@@ -671,11 +671,11 @@ const Kn = ["x", "y", "width", "height"], Jn = /* @__PURE__ */ Z({
671
671
  setup(e, { emit: t }) {
672
672
  const n = e, { x: o, y: l, width: a, height: u, transition: c, classList: s } = q(n), d = M(null), v = p(
673
673
  () => typeof s.value == "string" ? [s.value] : s.value
674
- ), i = p(() => c.value === "width"), m = p(() => c.value === "height"), h = Yn(o, l, a, u), { computedX: g, computedY: A, shouldHaveMinWidth: x, shouldHaveMinHeight: f } = Xn(o, l, a, u), T = p(() => x.value ? 1 : (i.value ? h.computedWidth : a).value), E = p(() => f.value ? 1 : (m.value ? h.computedHeight : u).value), w = i.value || m.value ? h.transformOrigin : null;
675
- return fe(() => Ce(d.value)), ($, D) => (y(), O("rect", {
674
+ ), i = p(() => c.value === "width"), m = p(() => c.value === "height"), h = Xn(o, l, a, u), { computedX: g, computedY: b, shouldHaveMinWidth: $, shouldHaveMinHeight: f } = Un(o, l, a, u), L = p(() => $.value ? 1 : (i.value ? h.computedWidth : a).value), E = p(() => f.value ? 1 : (m.value ? h.computedHeight : u).value), x = i.value || m.value ? h.transformOrigin : null;
675
+ return fe(() => Ce(d.value)), (I, D) => (y(), O("rect", {
676
676
  ref_key: "root",
677
677
  ref: d,
678
- class: ee(["lume-bar", [
678
+ class: te(["lume-bar", [
679
679
  {
680
680
  "lume-fill--faded": e.isFaded,
681
681
  "lume-bar--negative": e.isNegative,
@@ -684,20 +684,20 @@ const Kn = ["x", "y", "width", "height"], Jn = /* @__PURE__ */ Z({
684
684
  },
685
685
  ...r(v)
686
686
  ]]),
687
- style: It({ transformOrigin: r(w) }),
687
+ style: wt({ transformOrigin: r(x) }),
688
688
  x: r(g),
689
- y: r(A),
690
- width: r(T),
689
+ y: r(b),
690
+ width: r(L),
691
691
  height: r(E),
692
692
  "data-j-bar": "",
693
- onClick: D[0] || (D[0] = (B) => t("click", B)),
694
- onMouseover: D[1] || (D[1] = (B) => t("mouseover", B)),
695
- onMouseleave: D[2] || (D[2] = (B) => t("mouseleave", B))
696
- }, null, 46, Kn));
693
+ onClick: D[0] || (D[0] = (R) => t("click", R)),
694
+ onMouseover: D[1] || (D[1] = (R) => t("mouseover", R)),
695
+ onMouseleave: D[2] || (D[2] = (R) => t("mouseleave", R))
696
+ }, null, 46, Yn));
697
697
  }
698
698
  });
699
- const nt = /* @__PURE__ */ Q(Jn, [["__scopeId", "data-v-8e8f732a"]]);
700
- function Qn() {
699
+ const ot = /* @__PURE__ */ Q(Kn, [["__scopeId", "data-v-8e8f732a"]]);
700
+ function Jn() {
701
701
  const e = M(), t = Se({
702
702
  dimensions: {}
703
703
  }), n = new ResizeObserver((o) => {
@@ -711,7 +711,7 @@ function Qn() {
711
711
  n.unobserve(e.value);
712
712
  }), { resizeState: t, resizeRef: e };
713
713
  }
714
- const qn = ["height"], eo = ["transform"], to = /* @__PURE__ */ Z({
714
+ const Qn = ["height"], qn = ["transform"], eo = /* @__PURE__ */ Z({
715
715
  __name: "lume-chart-container",
716
716
  props: {
717
717
  margins: {
@@ -733,7 +733,7 @@ const qn = ["height"], eo = ["transform"], to = /* @__PURE__ */ Z({
733
733
  },
734
734
  emits: ["click", "mouseenter", "mouseleave", "resize"],
735
735
  setup(e, { emit: t }) {
736
- const n = e, { margins: o, containerSize: l } = q(n), a = M(null), { resizeRef: u, resizeState: c } = Qn(), s = p(
736
+ const n = e, { margins: o, containerSize: l } = q(n), a = M(null), { resizeRef: u, resizeState: c } = Jn(), s = p(
737
737
  () => l.value.height + o.value.top + o.value.bottom
738
738
  );
739
739
  return Nt(() => {
@@ -752,7 +752,7 @@ const qn = ["height"], eo = ["transform"], to = /* @__PURE__ */ Z({
752
752
  }), (d, v) => (y(), O("div", {
753
753
  ref_key: "resizeRef",
754
754
  ref: u,
755
- class: ee(["lume-chart-container", {
755
+ class: te(["lume-chart-container", {
756
756
  "lume-chart-container--minimum": !e.noMinSize
757
757
  }]),
758
758
  "data-j-chart-container": ""
@@ -761,7 +761,7 @@ const qn = ["height"], eo = ["transform"], to = /* @__PURE__ */ Z({
761
761
  (y(), O("svg", {
762
762
  ref_key: "root",
763
763
  ref: a,
764
- class: ee(["lume-chart-container__svg", {
764
+ class: te(["lume-chart-container__svg", {
765
765
  "lume-chart-container__svg--transparent": e.transparentBackground
766
766
  }]),
767
767
  height: r(s),
@@ -776,19 +776,19 @@ const qn = ["height"], eo = ["transform"], to = /* @__PURE__ */ Z({
776
776
  "data-j-chart-container__group": ""
777
777
  }, [
778
778
  S(d.$slots, "default", {}, void 0, !0)
779
- ], 8, eo)
780
- ], 42, qn)),
779
+ ], 8, qn)
780
+ ], 42, Qn)),
781
781
  S(d.$slots, "footer", {}, void 0, !0),
782
782
  S(d.$slots, "extra", {}, void 0, !0)
783
783
  ], 2));
784
784
  }
785
785
  });
786
- const no = /* @__PURE__ */ Q(to, [["__scopeId", "data-v-36870bc4"]]), oo = ["onClick", "onMouseenter"], ao = /* @__PURE__ */ Z({
786
+ const to = /* @__PURE__ */ Q(eo, [["__scopeId", "data-v-36870bc4"]]), no = ["onClick", "onMouseenter"], oo = /* @__PURE__ */ Z({
787
787
  __name: "lume-chart-legend",
788
788
  props: {
789
789
  data: {
790
790
  type: Array,
791
- validator: bn,
791
+ validator: kn,
792
792
  required: !0
793
793
  }
794
794
  },
@@ -810,46 +810,46 @@ const no = /* @__PURE__ */ Q(to, [["__scopeId", "data-v-36870bc4"]]), oo = ["onC
810
810
  onMouseenter: (c) => t("mouseenter", { index: u, dataset: a, event: c })
811
811
  }, [
812
812
  G("span", {
813
- class: ee(["lume-chart-legend__symbol", `lume-background-color--${a.color}`]),
813
+ class: te(["lume-chart-legend__symbol", `lume-background-color--${a.color}`]),
814
814
  "data-j-chart-legend__symbol": ""
815
815
  }, null, 2),
816
- ce(" " + te(a.label || u), 1)
817
- ], 40, oo))), 128))
816
+ ce(" " + ne(a.label || u), 1)
817
+ ], 40, no))), 128))
818
818
  ], 32));
819
819
  }
820
820
  });
821
- const mt = /* @__PURE__ */ Q(ao, [["__scopeId", "data-v-4710298b"]]);
822
- const ro = {}, lo = {
821
+ const ht = /* @__PURE__ */ Q(oo, [["__scopeId", "data-v-4710298b"]]);
822
+ const ao = {}, ro = {
823
823
  class: "lume-tooltip__title",
824
824
  "data-j-tooltip__title": ""
825
825
  };
826
- function uo(e, t) {
827
- return y(), O("div", lo, [
826
+ function lo(e, t) {
827
+ return y(), O("div", ro, [
828
828
  S(e.$slots, "default", {}, void 0, !0)
829
829
  ]);
830
830
  }
831
- const io = /* @__PURE__ */ Q(ro, [["render", uo], ["__scopeId", "data-v-8af3fac6"]]);
832
- const so = {}, co = {
831
+ const uo = /* @__PURE__ */ Q(ao, [["render", lo], ["__scopeId", "data-v-8af3fac6"]]);
832
+ const io = {}, so = {
833
833
  class: "lume-tooltip__item",
834
834
  "data-j-tooltip__summary-item": ""
835
- }, vo = { class: "lume-tooltip__value" };
836
- function po(e, t) {
837
- return y(), O("li", co, [
835
+ }, co = { class: "lume-tooltip__value" };
836
+ function vo(e, t) {
837
+ return y(), O("li", so, [
838
838
  G("span", null, [
839
839
  S(e.$slots, "default", {}, void 0, !0)
840
840
  ]),
841
- G("strong", vo, [
841
+ G("strong", co, [
842
842
  S(e.$slots, "value", {}, void 0, !0)
843
843
  ])
844
844
  ]);
845
845
  }
846
- const fo = /* @__PURE__ */ Q(so, [["render", po], ["__scopeId", "data-v-4ed7ec1b"]]), mo = {
846
+ const po = /* @__PURE__ */ Q(io, [["render", vo], ["__scopeId", "data-v-4ed7ec1b"]]), fo = {
847
847
  class: "lume-tooltip__item",
848
848
  "data-j-tooltip__item": ""
849
- }, ho = { "data-j-tooltip__item__label": "" }, go = {
849
+ }, mo = { "data-j-tooltip__item__label": "" }, ho = {
850
850
  class: "lume-tooltip__value",
851
851
  "data-j-tooltip__item__value": ""
852
- }, _o = /* @__PURE__ */ Z({
852
+ }, go = /* @__PURE__ */ Z({
853
853
  __name: "lume-tooltip-item",
854
854
  props: {
855
855
  color: {
@@ -858,27 +858,27 @@ const fo = /* @__PURE__ */ Q(so, [["render", po], ["__scopeId", "data-v-4ed7ec1b
858
858
  }
859
859
  },
860
860
  setup(e) {
861
- return (t, n) => (y(), O("li", mo, [
861
+ return (t, n) => (y(), O("li", fo, [
862
862
  e.color ? (y(), O("span", {
863
863
  key: 0,
864
- class: ee([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
864
+ class: te([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
865
865
  "data-j-tooltip__item__symbol": ""
866
866
  }, null, 2)) : F("", !0),
867
- G("span", ho, [
867
+ G("span", mo, [
868
868
  S(t.$slots, "label", {}, void 0, !0)
869
869
  ]),
870
- G("strong", go, [
870
+ G("strong", ho, [
871
871
  S(t.$slots, "value", {}, void 0, !0)
872
872
  ])
873
873
  ]));
874
874
  }
875
875
  });
876
- const yo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-4f995c3c"]]), ko = (e) => (rn("data-v-8ec11304"), e = e(), ln(), e), bo = { class: "lume-tooltip__items" }, Ao = {
876
+ const _o = /* @__PURE__ */ Q(go, [["__scopeId", "data-v-4f995c3c"]]), yo = (e) => (an("data-v-8ec11304"), e = e(), rn(), e), ko = { class: "lume-tooltip__items" }, bo = {
877
877
  key: 0,
878
878
  class: "lume-tooltip__break"
879
- }, To = /* @__PURE__ */ ko(() => /* @__PURE__ */ G("hr", null, null, -1)), Lo = [
880
- To
881
- ], Oo = /* @__PURE__ */ Z({
879
+ }, Ao = /* @__PURE__ */ yo(() => /* @__PURE__ */ G("hr", null, null, -1)), To = [
880
+ Ao
881
+ ], Lo = /* @__PURE__ */ Z({
882
882
  __name: "lume-tooltip",
883
883
  props: {
884
884
  targetElement: {
@@ -892,7 +892,7 @@ const yo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-4f995c3c"]]), ko = (e) =
892
892
  position: {
893
893
  type: String,
894
894
  default: "auto",
895
- validator: (e) => Mn.includes(e)
895
+ validator: (e) => Rn.includes(e)
896
896
  },
897
897
  fixedPositioning: {
898
898
  type: Boolean,
@@ -933,81 +933,81 @@ const yo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-4f995c3c"]]), ko = (e) =
933
933
  ...n.modifiers || []
934
934
  ]), m = p(
935
935
  () => s.value.showTitle !== !1 && n.title != null
936
- ), h = p(() => Me(s.value.valueFormat)), g = p(() => Me(s.value.titleFormat)), A = p(
936
+ ), h = p(() => Me(s.value.valueFormat)), g = p(() => Me(s.value.titleFormat)), b = p(
937
937
  () => {
938
- var w;
939
- return ((w = l.value) == null ? void 0 : w.find(($) => $.isSummary)) || {
938
+ var x;
939
+ return ((x = l.value) == null ? void 0 : x.find((I) => I.isSummary)) || {
940
940
  label: s.value.summary ?? n.summary
941
941
  };
942
942
  }
943
- ), x = p(() => u.summary || A.value.label);
943
+ ), $ = p(() => u.summary || b.value.label);
944
944
  function f() {
945
- n.targetElement && o.value && (c.value = fn(n.targetElement, o.value, {
945
+ n.targetElement && o.value && (c.value = pn(n.targetElement, o.value, {
946
946
  placement: n.position,
947
947
  strategy: v.value,
948
948
  modifiers: i.value
949
949
  }), t("opened", n.targetElement));
950
950
  }
951
- function T() {
951
+ function L() {
952
952
  c.value && (c.value.destroy(), t("closed"));
953
953
  }
954
954
  function E() {
955
955
  c.value && (s.value.withAnimation !== !1 && o.value.classList.add("lume-tooltip--animated"), n.targetElement ? function() {
956
956
  c.value.state.elements.reference = n.targetElement, c.value.update(), t("moved", n.targetElement);
957
- }() : T());
957
+ }() : L());
958
958
  }
959
959
  return Y(
960
960
  () => n.targetElement,
961
- (w, $) => {
962
- !$ && w ? f() : E();
961
+ (x, I) => {
962
+ !I && x ? f() : E();
963
963
  }
964
- ), fe(f), Et(T), (w, $) => on((y(), O("div", {
964
+ ), fe(f), Et(L), (x, I) => nn((y(), O("div", {
965
965
  ref_key: "root",
966
966
  ref: o,
967
- class: ee(["lume-tooltip lume-typography--caption", {
967
+ class: te(["lume-tooltip lume-typography--caption", {
968
968
  "lume-tooltip--pointer-events": r(a).withPointerEvents
969
969
  }]),
970
970
  "data-j-tooltip": "",
971
- onMouseenter: $[0] || ($[0] = (D) => t("tooltip-mouseenter")),
972
- onMouseleave: $[1] || ($[1] = (D) => t("tooltip-mouseleave"))
971
+ onMouseenter: I[0] || (I[0] = (D) => t("tooltip-mouseenter")),
972
+ onMouseleave: I[1] || (I[1] = (D) => t("tooltip-mouseleave"))
973
973
  }, [
974
- S(w.$slots, "default", {}, () => [
975
- S(w.$slots, "title", {}, () => [
976
- r(m) ? (y(), W(r(io), { key: 0 }, {
977
- default: V(() => [
978
- ce(te(r(g)(e.title)), 1)
974
+ S(x.$slots, "default", {}, () => [
975
+ S(x.$slots, "title", {}, () => [
976
+ r(m) ? (y(), U(r(uo), { key: 0 }, {
977
+ default: P(() => [
978
+ ce(ne(r(g)(e.title)), 1)
979
979
  ]),
980
980
  _: 1
981
981
  })) : F("", !0)
982
982
  ], !0),
983
- G("ul", bo, [
984
- S(w.$slots, "summary", {}, () => [
985
- r(x) ? (y(), W(r(fo), { key: 0 }, ie({
986
- default: V(() => [
987
- ce(te(r(A).label) + " ", 1)
983
+ G("ul", ko, [
984
+ S(x.$slots, "summary", {}, () => [
985
+ r($) ? (y(), U(r(po), { key: 0 }, ie({
986
+ default: P(() => [
987
+ ce(ne(r(b).label) + " ", 1)
988
988
  ]),
989
989
  _: 2
990
990
  }, [
991
- r(A).value ? {
991
+ r(b).value ? {
992
992
  name: "value",
993
- fn: V(() => [
994
- ce(te(r(h)(r(A).value)), 1)
993
+ fn: P(() => [
994
+ ce(ne(r(h)(r(b).value)), 1)
995
995
  ]),
996
996
  key: "0"
997
997
  } : void 0
998
998
  ]), 1024)) : F("", !0)
999
999
  ], !0),
1000
- r(x) ? (y(), O("li", Ao, Lo)) : F("", !0),
1001
- S(w.$slots, "items", {}, () => [
1002
- (y(!0), O(J, null, z(r(l), (D) => (y(), W(r(yo), {
1000
+ r($) ? (y(), O("li", bo, To)) : F("", !0),
1001
+ S(x.$slots, "items", {}, () => [
1002
+ (y(!0), O(J, null, z(r(l), (D) => (y(), U(r(_o), {
1003
1003
  key: D.label,
1004
1004
  color: D.color
1005
1005
  }, {
1006
- label: V(() => [
1007
- ce(te(D.label), 1)
1006
+ label: P(() => [
1007
+ ce(ne(D.label), 1)
1008
1008
  ]),
1009
- value: V(() => [
1010
- ce(te(r(h)(D.value)), 1)
1009
+ value: P(() => [
1010
+ ce(ne(r(h)(D.value)), 1)
1011
1011
  ]),
1012
1012
  _: 2
1013
1013
  }, 1032, ["color"]))), 128))
@@ -1015,60 +1015,60 @@ const yo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-4f995c3c"]]), ko = (e) =
1015
1015
  ])
1016
1016
  ], !0)
1017
1017
  ], 34)), [
1018
- [an, e.targetElement]
1018
+ [on, e.targetElement]
1019
1019
  ]);
1020
1020
  }
1021
1021
  });
1022
- const $o = /* @__PURE__ */ Q(Oo, [["__scopeId", "data-v-8ec11304"]]);
1023
- var he = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(he || {});
1024
- const xo = he.Categorical, He = le.Skyblue, wo = et.SkyTeal;
1022
+ const Oo = /* @__PURE__ */ Q(Lo, [["__scopeId", "data-v-8ec11304"]]);
1023
+ var ge = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(ge || {});
1024
+ const $o = ge.Categorical, He = le.Skyblue, xo = tt.SkyTeal;
1025
1025
  function Io(e) {
1026
- return e === he.Divergent ? wo : He;
1026
+ return e === ge.Divergent ? xo : He;
1027
1027
  }
1028
- function Eo(e) {
1029
- return Object.values(tt).includes(e);
1028
+ function wo(e) {
1029
+ return Object.values(nt).includes(e);
1030
1030
  }
1031
- function ht(e, t) {
1032
- return t === he.Divergent ? Object.values(et).includes(e) : Object.values({
1031
+ function gt(e, t) {
1032
+ return t === ge.Divergent ? Object.values(tt).includes(e) : Object.values({
1033
1033
  ...le,
1034
1034
  ...Rt,
1035
1035
  ...Mt,
1036
- ...tt
1036
+ ...nt
1037
1037
  }).includes(e);
1038
1038
  }
1039
- function No(e, t) {
1039
+ function Eo(e, t) {
1040
1040
  const n = Object.values(le).indexOf(e);
1041
- return wn(Object.values(le), n > -1 ? n : 0)[t];
1041
+ return xn(Object.values(le), n > -1 ? n : 0)[t];
1042
1042
  }
1043
- function Do(e, t) {
1043
+ function No(e, t) {
1044
1044
  const n = 50 + t * 10;
1045
1045
  return `${e}-${n}`;
1046
1046
  }
1047
- function Ho(e, t) {
1047
+ function Do(e, t) {
1048
1048
  const n = (t + 1) * 10;
1049
1049
  return `${e}-${n}`;
1050
1050
  }
1051
- function gt(e, t, n) {
1051
+ function _t(e, t, n) {
1052
1052
  switch (t) {
1053
1053
  default:
1054
- case he.Categorical:
1055
- return Eo(e) ? e : No(e, n);
1056
- case he.Sequential:
1054
+ case ge.Categorical:
1055
+ return wo(e) ? e : Eo(e, n);
1056
+ case ge.Sequential:
1057
+ return No(e, n);
1058
+ case ge.Divergent:
1057
1059
  return Do(e, n);
1058
- case he.Divergent:
1059
- return Ho(e, n);
1060
1060
  }
1061
1061
  }
1062
- function Bo(e, t, n = xo, o) {
1063
- return ht(e, n) ? e : (o > 4 && (ge(pe.ColorLoop), o = o % 5), ht(t, n) ? gt(t, n, o) : gt(Io(n), n, o));
1062
+ function Ho(e, t, n = $o, o) {
1063
+ return gt(e, n) ? e : (o > 4 && (_e(pe.ColorLoop), o = o % 5), gt(t, n) ? _t(t, n, o) : _t(Io(n), n, o));
1064
1064
  }
1065
- function Ro(e) {
1066
- return e.map((t) => An(t) ? t : { value: t });
1065
+ function Bo(e) {
1066
+ return e.map((t) => bn(t) ? t : { value: t });
1067
1067
  }
1068
- function Mo(e) {
1068
+ function Ro(e) {
1069
1069
  return e.__internal === !0;
1070
1070
  }
1071
- const ot = (e = null) => ({
1071
+ const at = (e = null) => ({
1072
1072
  data: {
1073
1073
  type: Array,
1074
1074
  required: !0,
@@ -1087,17 +1087,17 @@ const ot = (e = null) => ({
1087
1087
  default: null
1088
1088
  }
1089
1089
  });
1090
- function at(e, t, n, o, l) {
1090
+ function rt(e, t, n, o, l) {
1091
1091
  const a = Se({
1092
1092
  width: 0,
1093
1093
  height: 0
1094
- }), u = En(12), c = p(() => {
1094
+ }), u = wn(12), c = p(() => {
1095
1095
  var v;
1096
- return e.value.length > 5 && ge(pe.DatasetLength), (v = e.value) == null ? void 0 : v.map(
1096
+ return e.value.length > 5 && _e(pe.DatasetLength), (v = e.value) == null ? void 0 : v.map(
1097
1097
  (i, m) => {
1098
- if (Mo(i))
1098
+ if (Ro(i))
1099
1099
  return i;
1100
- const h = Ro(i.values), g = Bo(
1100
+ const h = Bo(i.values), g = Ho(
1101
1101
  i.color,
1102
1102
  n == null ? void 0 : n.value,
1103
1103
  o == null ? void 0 : o.value.colorPalette,
@@ -1111,9 +1111,9 @@ function at(e, t, n, o, l) {
1111
1111
  };
1112
1112
  }
1113
1113
  );
1114
- }), s = p(() => Array.isArray(t.value) ? t.value : ze(e.value).map((v, i) => i));
1114
+ }), s = p(() => Array.isArray(t.value) ? t.value : Ze(e.value).map((v, i) => i));
1115
1115
  function d(v) {
1116
- const i = (l == null ? void 0 : l.value) === H.HORIZONTAL && ze(e).length * (((o == null ? void 0 : o.value.barHeight) || pt) * 2) + ((o == null ? void 0 : o.value.barHeight) || pt) || v.height;
1116
+ const i = (l == null ? void 0 : l.value) === H.HORIZONTAL && Ze(e).length * (((o == null ? void 0 : o.value.barHeight) || ft) * 2) + ((o == null ? void 0 : o.value.barHeight) || ft) || v.height;
1117
1117
  a.width = v.width, a.height = i;
1118
1118
  }
1119
1119
  return {
@@ -1124,7 +1124,7 @@ function at(e, t, n, o, l) {
1124
1124
  updateSize: d
1125
1125
  };
1126
1126
  }
1127
- const So = () => ({
1127
+ const Mo = () => ({
1128
1128
  xScale: {
1129
1129
  type: Function,
1130
1130
  default: null
@@ -1134,26 +1134,26 @@ const So = () => ({
1134
1134
  default: null
1135
1135
  }
1136
1136
  });
1137
- function Co(e, t, n, o, l) {
1137
+ function So(e, t, n, o, l) {
1138
1138
  const a = M(null), u = M(null);
1139
1139
  function c() {
1140
1140
  const { width: s, height: d } = n;
1141
- !s && !d || !t.value || !e.value || (o.value === H.HORIZONTAL ? (a.value = yt(
1141
+ !s && !d || !t.value || !e.value || (o.value === H.HORIZONTAL ? (a.value = kt(
1142
1142
  e.value,
1143
1143
  s,
1144
1144
  o.value,
1145
1145
  l.value.startOnZero
1146
- ), u.value = _t(
1146
+ ), u.value = yt(
1147
1147
  t.value,
1148
1148
  d,
1149
1149
  o.value,
1150
1150
  l.value
1151
- )) : (a.value = _t(
1151
+ )) : (a.value = yt(
1152
1152
  t.value,
1153
1153
  s,
1154
1154
  o.value,
1155
1155
  l.value
1156
- ), u.value = yt(
1156
+ ), u.value = kt(
1157
1157
  e.value,
1158
1158
  d,
1159
1159
  o.value,
@@ -1162,27 +1162,27 @@ function Co(e, t, n, o, l) {
1162
1162
  }
1163
1163
  return Nt(c), { xScale: a, yScale: u };
1164
1164
  }
1165
- function _t(e, t, n, o) {
1165
+ function yt(e, t, n, o) {
1166
1166
  const l = [0, t], { padding: a, paddingInner: u, paddingOuter: c } = o, s = a ?? (n === H.HORIZONTAL ? Gt : Ct);
1167
1167
  return Object.assign(
1168
- we().range(l).paddingInner(u ?? s).paddingOuter(c ?? s).domain(e.map((d, v) => v)),
1168
+ Ie().range(l).paddingInner(u ?? s).paddingOuter(c ?? s).domain(e.map((d, v) => v)),
1169
1169
  { labels: e }
1170
1170
  );
1171
1171
  }
1172
- function yt(e, t, n, o) {
1172
+ function kt(e, t, n, o) {
1173
1173
  const l = Ht(e).filter((v) => v != null), a = [0, t];
1174
1174
  if (l.length === 0)
1175
- return Ie().range(a).domain([0, 0]).nice();
1175
+ return we().range(a).domain([0, 0]).nice();
1176
1176
  const u = Math.min(...l), c = o && u > 0 ? 0 : u, s = Math.max(...l), d = n === H.HORIZONTAL ? [c, s] : [s, c];
1177
- return Ie().range(a).domain(d).nice();
1177
+ return we().range(a).domain(d).nice();
1178
1178
  }
1179
- function kt(e) {
1179
+ function bt(e) {
1180
1180
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
1181
1181
  }
1182
- function We(e, t) {
1183
- return ye(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1182
+ function Ue(e, t) {
1183
+ return ke(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1184
1184
  }
1185
- function bt(e, t, {
1185
+ function At(e, t, {
1186
1186
  padding: n,
1187
1187
  paddingInner: o,
1188
1188
  paddingOuter: l
@@ -1194,8 +1194,8 @@ function zt(e) {
1194
1194
  return Object.values(H).includes(e);
1195
1195
  }
1196
1196
  const $e = (e, t = !0) => ({
1197
- ...ot(e),
1198
- ...So(),
1197
+ ...at(e),
1198
+ ...Mo(),
1199
1199
  ...Ne(),
1200
1200
  classList: {
1201
1201
  type: [String, Array],
@@ -1212,8 +1212,8 @@ const $e = (e, t = !0) => ({
1212
1212
  validator: zt
1213
1213
  }
1214
1214
  } : {}
1215
- }), Go = (e) => ({
1216
- ...ot(e),
1215
+ }), Co = (e) => ({
1216
+ ...at(e),
1217
1217
  ...Ne(),
1218
1218
  hoveredElement: {
1219
1219
  type: [Number, String],
@@ -1261,7 +1261,7 @@ const $e = (e, t = !0) => ({
1261
1261
  type: [String, Array],
1262
1262
  default: () => []
1263
1263
  }
1264
- }), jo = { class: "lume-overlay-group" }, Vo = /* @__PURE__ */ Z({
1264
+ }), Go = { class: "lume-overlay-group" }, jo = /* @__PURE__ */ Z({
1265
1265
  __name: "lume-overlay-group",
1266
1266
  props: {
1267
1267
  ...Ge(),
@@ -1272,22 +1272,22 @@ const $e = (e, t = !0) => ({
1272
1272
  },
1273
1273
  emits: ["click", "lume__internal--hover", "mouseover"],
1274
1274
  setup(e, { emit: t }) {
1275
- const n = e, { data: o, orientation: l, xScale: a, yScale: u } = q(n), c = p(() => ze(o));
1275
+ const n = e, { data: o, orientation: l, xScale: a, yScale: u } = q(n), c = p(() => Ze(o));
1276
1276
  function s(d) {
1277
- var x;
1278
- const v = l.value === H.HORIZONTAL ? u.value : a.value, i = v.domain(), m = Tn(v), h = ((x = v.paddingInner) == null ? void 0 : x.call(v)) ?? 0, g = m * h, A = ye(v) ? v(i[d]) - g / 2 : v(d) - m / 2;
1277
+ var $;
1278
+ const v = l.value === H.HORIZONTAL ? u.value : a.value, i = v.domain(), m = An(v), h = (($ = v.paddingInner) == null ? void 0 : $.call(v)) ?? 0, g = m * h, b = ke(v) ? v(i[d]) - g / 2 : v(d) - m / 2;
1279
1279
  return l.value === H.HORIZONTAL ? {
1280
1280
  width: Math.max(...a.value.range()),
1281
1281
  height: m,
1282
- transform: `translate(0, ${A})`
1282
+ transform: `translate(0, ${b})`
1283
1283
  } : {
1284
1284
  width: m,
1285
1285
  height: Math.max(...u.value.range()),
1286
- transform: `translate(${A}, 0)`
1286
+ transform: `translate(${b}, 0)`
1287
1287
  };
1288
1288
  }
1289
- return (d, v) => (y(), O("g", jo, [
1290
- (y(!0), O(J, null, z(r(c), (i, m) => (y(), W(r(nt), C(s(m), {
1289
+ return (d, v) => (y(), O("g", Go, [
1290
+ (y(!0), O(J, null, z(r(c), (i, m) => (y(), U(r(ot), C(s(m), {
1291
1291
  key: `overlay-${m}`,
1292
1292
  "data-j-lume-overlay-group": m,
1293
1293
  transition: !1,
@@ -1297,26 +1297,19 @@ const $e = (e, t = !0) => ({
1297
1297
  }), null, 16, ["data-j-lume-overlay-group", "onMouseover", "onClick"]))), 128))
1298
1298
  ]));
1299
1299
  }
1300
- });
1301
- let At = null;
1302
- const be = (e, t) => {
1303
- async function n() {
1304
- return null;
1300
+ }), me = (e, t) => {
1301
+ function n(a, ...u) {
1305
1302
  }
1306
- async function o(u, ...c) {
1307
- await n(), At.$emit(`${t}_${u}`, ...c);
1303
+ function o(a, u) {
1308
1304
  }
1309
- async function l(u, c) {
1310
- await n(), At.$on(`${t}_${u}`, c);
1311
- }
1312
- return { componentEventPropagator: {}, busEmit: o, busListen: l };
1305
+ return { componentEventPropagator: {}, emitInternalEvent: n, listenInternalEvent: o };
1313
1306
  };
1314
1307
  function Po(e) {
1315
1308
  return { hasNegativeValues: p(
1316
1309
  () => Ht(e.value).some((n) => n < 0)
1317
1310
  ) };
1318
1311
  }
1319
- function Fo(e, t, n, o) {
1312
+ function Vo(e, t, n, o) {
1320
1313
  const l = p(
1321
1314
  () => o.value === H.HORIZONTAL
1322
1315
  ), a = p(
@@ -1341,17 +1334,17 @@ function Fo(e, t, n, o) {
1341
1334
  transform: c.value
1342
1335
  })) };
1343
1336
  }
1344
- function zo(e) {
1337
+ function Fo(e) {
1345
1338
  return e.reduce((t, n) => n.values.map((o, l) => t[l] ? o.value > t[l] ? o.value : t[l] : o.value ?? 0), []);
1346
1339
  }
1347
- function Zo(e) {
1340
+ function zo(e) {
1348
1341
  return e.reduce((t, n) => n.values.map((o, l) => {
1349
1342
  const a = o.value == null || o.value < 0 ? 0 : o.value;
1350
1343
  return t[l] ? t[l] + a : a;
1351
1344
  }), []);
1352
1345
  }
1353
1346
  const Tt = {
1354
- "stacked-bar": Zo
1347
+ "stacked-bar": zo
1355
1348
  };
1356
1349
  function Zt(e, t, n, o, l, a, u) {
1357
1350
  const c = p(
@@ -1361,10 +1354,10 @@ function Zt(e, t, n, o, l, a, u) {
1361
1354
  }
1362
1355
  );
1363
1356
  function s(d) {
1364
- const v = u != null && u.value && Tt[u.value] ? Tt[u.value](d) : zo(d);
1357
+ const v = u != null && u.value && Tt[u.value] ? Tt[u.value](d) : Fo(d);
1365
1358
  e.value = v.map((i, m) => ({
1366
- cx: (l == null ? void 0 : l.value) === H.HORIZONTAL ? n.value(i) : We(n.value, m),
1367
- cy: (l == null ? void 0 : l.value) === H.HORIZONTAL ? We(o.value, m) : o.value(i)
1359
+ cx: (l == null ? void 0 : l.value) === H.HORIZONTAL ? n.value(i) : Ue(n.value, m),
1360
+ cy: (l == null ? void 0 : l.value) === H.HORIZONTAL ? Ue(o.value, m) : o.value(i)
1368
1361
  }));
1369
1362
  }
1370
1363
  return Y(
@@ -1375,7 +1368,7 @@ function Zt(e, t, n, o, l, a, u) {
1375
1368
  { immediate: !0 }
1376
1369
  ), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
1377
1370
  }
1378
- function Wo() {
1371
+ function Zo() {
1379
1372
  const e = Se({
1380
1373
  opened: !1,
1381
1374
  targetElement: null
@@ -1386,7 +1379,7 @@ function Wo() {
1386
1379
  e.opened = !1, e.targetElement = null;
1387
1380
  } };
1388
1381
  }
1389
- function Uo(e) {
1382
+ function Wo(e) {
1390
1383
  return { getTooltipItems: p(
1391
1384
  () => (n) => e.value.map(({ color: o, label: l, values: a }) => {
1392
1385
  var u, c, s;
@@ -1398,42 +1391,42 @@ function Uo(e) {
1398
1391
  })
1399
1392
  ) };
1400
1393
  }
1401
- const Ue = 16, Xe = 8, Ye = 28, Ke = 24, _e = {
1394
+ const Xe = 16, Ye = 8, Ke = 28, Je = 24, ye = {
1402
1395
  VERTICAL: {
1403
- top: Ue,
1404
- right: Xe,
1405
- bottom: Ye,
1406
- left: Ke
1396
+ top: Xe,
1397
+ right: Ye,
1398
+ bottom: Ke,
1399
+ left: Je
1407
1400
  },
1408
1401
  HORIZONTAL: {
1409
- top: Ue,
1410
- right: Xe,
1411
- bottom: Ye,
1412
- left: Ke
1402
+ top: Xe,
1403
+ right: Ye,
1404
+ bottom: Ke,
1405
+ left: Je
1413
1406
  }
1414
1407
  };
1408
+ function Uo(e) {
1409
+ return !e || e === "auto" || e.top == null || e.top === "auto" ? Xe : e.top;
1410
+ }
1415
1411
  function Xo(e) {
1416
- return !e || e === "auto" || e.top == null || e.top === "auto" ? Ue : e.top;
1412
+ return !e || e === "auto" || e.right == null || e.right === "auto" ? Ye : e.right;
1417
1413
  }
1418
- function Yo(e) {
1419
- return !e || e === "auto" || e.right == null || e.right === "auto" ? Xe : e.right;
1414
+ function Yo(e, t) {
1415
+ return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? t || Ke : e.bottom;
1420
1416
  }
1421
1417
  function Ko(e, t) {
1422
- return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? t || Ye : e.bottom;
1423
- }
1424
- function Jo(e, t) {
1425
- return !e || e === "auto" || e.left == null || e.left === "auto" ? t || Ke : e.left;
1418
+ return !e || e === "auto" || e.left == null || e.left === "auto" ? t || Je : e.left;
1426
1419
  }
1427
- const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-section" }, ea = {
1420
+ const Jo = { class: "lume-chart__header" }, Qo = { class: "lume-chart__header-section" }, qo = {
1428
1421
  key: 0,
1429
1422
  class: "lume-chart__title lume-chart-title lume-typography--display"
1430
- }, ta = { class: "lume-chart__controls" }, na = { class: "lume-chart__header-section" }, oa = {
1423
+ }, ea = { class: "lume-chart__controls" }, ta = { class: "lume-chart__header-section" }, na = {
1431
1424
  key: 0,
1432
1425
  class: "lume-chart__axis-title lume-axis-title lume-typography--body"
1433
- }, aa = { key: 3 }, ra = ["r"], la = {
1426
+ }, oa = { key: 3 }, aa = ["r"], ra = {
1434
1427
  key: 0,
1435
1428
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
1436
- }, ua = /* @__PURE__ */ Z({
1429
+ }, la = /* @__PURE__ */ Z({
1437
1430
  __name: "lume-chart",
1438
1431
  props: {
1439
1432
  ...$e(),
@@ -1443,199 +1436,203 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
1443
1436
  }
1444
1437
  },
1445
1438
  setup(e, { emit: t }) {
1446
- const n = e, o = ae(), { data: l, labels: a, color: u, options: c, orientation: s, chartType: d } = q(n), v = M(-1), i = M(null), m = M(null), h = M([]), g = M(null), A = M(0), x = M(0), { allOptions: f } = se(c), { internalData: T, computedLabels: E, containerSize: w, updateSize: $, chartID: D } = at(l, a, u, f, s), { xScale: B, yScale: U } = Co(
1447
- T,
1439
+ const n = e, o = ae(), { data: l, labels: a, color: u, options: c, orientation: s, chartType: d } = q(n), v = M(-1), i = M(null), m = M(null), h = M([]), g = M(null), b = M(0), $ = M(0), { allOptions: f } = se(c), { internalData: L, computedLabels: E, containerSize: x, updateSize: I, chartID: D } = rt(l, a, u, f, s), { xScale: R, yScale: W } = So(
1440
+ L,
1448
1441
  E,
1449
- w,
1442
+ x,
1450
1443
  s,
1451
1444
  f
1452
- ), oe = p(() => ({
1453
- top: Xo(f.value.margins),
1454
- right: Yo(f.value.margins),
1455
- bottom: Ko(f.value.margins, A.value),
1456
- left: Jo(f.value.margins, x.value)
1457
- })), P = p(() => {
1458
- var L;
1459
- return n.xScale ? kt(n.xScale) ? n.xScale : (L = n.xScale) == null ? void 0 : L.call(n, T.value, a.value, w) : B.value;
1445
+ ), ee = p(() => ({
1446
+ top: Uo(f.value.margins),
1447
+ right: Xo(f.value.margins),
1448
+ bottom: Yo(f.value.margins, b.value),
1449
+ left: Ko(f.value.margins, $.value)
1450
+ })), V = p(() => {
1451
+ var T;
1452
+ return n.xScale ? bt(n.xScale) ? n.xScale : (T = n.xScale) == null ? void 0 : T.call(n, L.value, a.value, x) : R.value;
1460
1453
  }), K = p(() => {
1461
- var L;
1462
- return n.yScale ? kt(n.yScale) ? n.yScale : (L = n.yScale) == null ? void 0 : L.call(n, T.value, a.value, w) : U.value;
1454
+ var T;
1455
+ return n.yScale ? bt(n.yScale) ? n.yScale : (T = n.yScale) == null ? void 0 : T.call(n, L.value, a.value, x) : W.value;
1463
1456
  }), Ae = p(() => ({
1464
1457
  ...f.value.xAxisOptions,
1465
1458
  withHover: s.value === H.VERTICAL
1466
1459
  })), Te = p(() => ({
1467
1460
  ...f.value.yAxisOptions,
1468
1461
  withHover: s.value === H.HORIZONTAL
1469
- })), me = p(() => {
1470
- var L;
1471
- return (L = f.value.xAxisOptions) == null ? void 0 : L.title;
1472
- }), R = p(() => {
1473
- var L;
1474
- return (L = f.value.yAxisOptions) == null ? void 0 : L.title;
1462
+ })), he = p(() => {
1463
+ var T;
1464
+ return (T = f.value.xAxisOptions) == null ? void 0 : T.title;
1465
+ }), B = p(() => {
1466
+ var T;
1467
+ return (T = f.value.yAxisOptions) == null ? void 0 : T.title;
1475
1468
  }), k = p(() => {
1476
- var L;
1477
- return ((L = f.value.xAxisOptions) == null ? void 0 : L.withTitle) !== !1 && me.value;
1469
+ var T;
1470
+ return ((T = f.value.xAxisOptions) == null ? void 0 : T.withTitle) !== !1 && he.value;
1478
1471
  }), N = p(() => {
1479
- var L;
1480
- return ((L = f.value.yAxisOptions) == null ? void 0 : L.withTitle) !== !1 && R.value;
1472
+ var T;
1473
+ return ((T = f.value.yAxisOptions) == null ? void 0 : T.withTitle) !== !1 && B.value;
1481
1474
  }), _ = p(
1482
- () => l.value.every((L) => !L.values.length)
1475
+ () => l.value.every((T) => !T.values.length)
1483
1476
  ), j = p(() => {
1484
- const L = [], { noBaseScales: b } = f.value;
1485
- return b || L.push(() => !!(P.value && K.value)), L.every((I) => I() === !0);
1486
- }), { hasNegativeValues: X } = Po(T), { negativeBarAttributes: ue } = Fo(
1487
- w,
1488
- P,
1477
+ const T = [], { noBaseScales: A } = f.value;
1478
+ return A || T.push(() => !!(V.value && K.value)), T.every((w) => w() === !0);
1479
+ }), { hasNegativeValues: X } = Po(L), { negativeBarAttributes: ue } = Vo(
1480
+ x,
1481
+ V,
1489
1482
  K,
1490
1483
  s
1491
1484
  ), { shouldGenerateTooltipAnchors: je } = Zt(
1492
1485
  h,
1493
1486
  f,
1494
- P,
1487
+ V,
1495
1488
  K,
1496
1489
  s,
1497
- T,
1490
+ L,
1498
1491
  d
1499
- ), { tooltipConfig: Le, showTooltip: Be, hideTooltip: Qt } = Wo(), { getTooltipItems: lt } = Uo(T), qt = p(
1492
+ ), { tooltipConfig: Le, showTooltip: Be, hideTooltip: Qt } = Zo(), { getTooltipItems: ut } = Wo(L), qt = p(
1500
1493
  () => f.value.withTooltip !== !1 && Le.opened
1501
- ), ut = p(
1494
+ ), it = p(
1502
1495
  () => {
1503
- var L;
1504
- return ((L = f.value.tooltipOptions) == null ? void 0 : L.position) || "top";
1496
+ var T;
1497
+ return ((T = f.value.tooltipOptions) == null ? void 0 : T.position) || "top";
1505
1498
  }
1506
1499
  ), en = p(() => {
1507
- var b;
1508
- const L = (b = f.value.tooltipOptions) == null ? void 0 : b.withPointerEvents;
1509
- return Le.opened && (!L || L && g.value === !1);
1500
+ var A;
1501
+ const T = (A = f.value.tooltipOptions) == null ? void 0 : A.withPointerEvents;
1502
+ return Le.opened && (!T || T && g.value === !1);
1510
1503
  });
1511
- function Re(L) {
1512
- var b;
1513
- if (L !== v.value && (f.value.withHover !== !1 && (v.value = L), f.value.withTooltip !== !1)) {
1514
- const I = (b = f.value.tooltipOptions) != null && b.targetElement ? f.value.tooltipOptions.targetElement === "self" ? m.value.$el : f.value.tooltipOptions.targetElement : i.value[L];
1515
- Be(I);
1504
+ function Re(T) {
1505
+ var w;
1506
+ if (T === v.value)
1507
+ return;
1508
+ const A = v.value;
1509
+ if (f.value.withHover !== !1 && (v.value = T), f.value.withTooltip !== !1) {
1510
+ const Pe = (w = f.value.tooltipOptions) != null && w.targetElement ? f.value.tooltipOptions.targetElement === "self" ? m.value.$el : f.value.tooltipOptions.targetElement : i.value[T];
1511
+ Be(Pe);
1516
1512
  }
1513
+ t("hovered-index-changed", { newIndex: T, oldIndex: A });
1517
1514
  }
1518
- function it() {
1515
+ function st() {
1519
1516
  Qt(), v.value = -1;
1520
1517
  }
1521
- function st(L) {
1522
- if (L > l.value[0].values.length - 1) {
1523
- ge(pe.InvalidHoveredIndex);
1518
+ function ct(T) {
1519
+ if (T > l.value[0].values.length - 1) {
1520
+ _e(pe.InvalidHoveredIndex);
1524
1521
  return;
1525
1522
  }
1526
- Re(L);
1523
+ Re(T);
1527
1524
  }
1528
1525
  function tn() {
1529
1526
  setTimeout(() => {
1530
- en.value && it(), t("chart-mouseleave");
1527
+ en.value && st(), t("chart-mouseleave");
1531
1528
  }, 0);
1532
1529
  }
1533
- function ct({ index: L, value: b, event: I }) {
1534
- L !== null && Re(L), t("axis-mouseenter", { index: L, value: b, event: I });
1530
+ function dt({ index: T, value: A, event: w }) {
1531
+ T !== null && Re(T), t("axis-mouseenter", { index: T, value: A, event: w });
1535
1532
  }
1536
- function dt({ index: L, value: b, event: I }) {
1537
- t("axis-click", { index: L, value: b, event: I });
1533
+ function vt({ index: T, value: A, event: w }) {
1534
+ t("axis-click", { index: T, value: A, event: w });
1538
1535
  }
1539
1536
  return Y(
1540
1537
  l,
1541
- (L, b) => t("data-changed", { newValue: L, oldValue: b })
1538
+ (T, A) => t("data-changed", { newValue: T, oldValue: A })
1542
1539
  ), Y(
1543
1540
  a,
1544
- (L, b) => t("labels-changed", { newValue: L, oldValue: b })
1545
- ), Y(_, (L) => L && ge(pe.Empty), { immediate: !0 }), Y(() => n.hoveredIndex, st), Y(
1541
+ (T, A) => t("labels-changed", { newValue: T, oldValue: A })
1542
+ ), Y(_, (T) => T && _e(pe.Empty), { immediate: !0 }), Y(() => n.hoveredIndex, ct), Y(
1546
1543
  h,
1547
- (L) => {
1548
- L && n.hoveredIndex != null && v.value === -1 && st(n.hoveredIndex);
1544
+ (T) => {
1545
+ T && n.hoveredIndex != null && v.value === -1 && ct(n.hoveredIndex);
1549
1546
  },
1550
1547
  { flush: "post" }
1551
- ), Y(g, (L) => {
1552
- L === !1 && Le.opened && it();
1548
+ ), Y(g, (T) => {
1549
+ T === !1 && Le.opened && st();
1553
1550
  }), fe(async () => {
1554
1551
  t("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1555
- }), Ve("chartID", D), Ve("isEmpty", _), Ve("tooltipAnchorAttributes", h), (L, b) => (y(), W(r(no), {
1552
+ }), Ve("chartID", D), Ve("isEmpty", _), Ve("tooltipAnchorAttributes", h), (T, A) => (y(), U(r(to), {
1556
1553
  id: `lume-chart_${r(D)}`,
1557
1554
  ref_key: "chartContainer",
1558
1555
  ref: m,
1559
- margins: r(oe),
1560
- "container-size": r(w),
1556
+ margins: r(ee),
1557
+ "container-size": r(x),
1561
1558
  "no-min-size": r(f).noMinSize,
1562
1559
  "transparent-background": r(f).transparentBackground,
1563
1560
  "data-j-lume-chart": "",
1564
- onResize: r($),
1565
- onClick: b[24] || (b[24] = (I) => t("chart-click", I)),
1566
- onMouseenter: b[25] || (b[25] = (I) => t("chart-mouseenter", I)),
1561
+ onResize: r(I),
1562
+ onClick: A[24] || (A[24] = (w) => t("chart-click", w)),
1563
+ onMouseenter: A[25] || (A[25] = (w) => t("chart-mouseenter", w)),
1567
1564
  onMouseleave: tn
1568
1565
  }, {
1569
- header: V(() => [
1570
- G("div", Qo, [
1571
- G("div", qo, [
1572
- L.title ? (y(), O("h1", ea, te(L.title), 1)) : F("", !0),
1573
- G("div", ta, [
1574
- S(L.$slots, "controls", {}, void 0, !0)
1566
+ header: P(() => [
1567
+ G("div", Jo, [
1568
+ G("div", Qo, [
1569
+ T.title ? (y(), O("h1", qo, ne(T.title), 1)) : F("", !0),
1570
+ G("div", ea, [
1571
+ S(T.$slots, "controls", {}, void 0, !0)
1575
1572
  ])
1576
1573
  ]),
1577
- G("div", na, [
1578
- r(N) ? (y(), O("h3", oa, te(r(R)), 1)) : F("", !0),
1579
- S(L.$slots, "legend", { data: r(T) }, () => [
1580
- r(f).withLegend !== !1 && r(f).legendPosition !== "bottom" ? (y(), W(r(mt), {
1574
+ G("div", ta, [
1575
+ r(N) ? (y(), O("h3", na, ne(r(B)), 1)) : F("", !0),
1576
+ S(T.$slots, "legend", { data: r(L) }, () => [
1577
+ r(f).withLegend !== !1 && r(f).legendPosition !== "bottom" ? (y(), U(r(ht), {
1581
1578
  key: 0,
1582
- data: r(T),
1579
+ data: r(L),
1583
1580
  class: "lume-chart__legend",
1584
1581
  "data-j-lume-chart__legend": "",
1585
- onClick: b[0] || (b[0] = (I) => t("legend-click", I)),
1586
- onMouseenter: b[1] || (b[1] = (I) => t("legend-mouseenter", I)),
1587
- onMouseleave: b[2] || (b[2] = (I) => t("legend-mouseleave"))
1582
+ onClick: A[0] || (A[0] = (w) => t("legend-click", w)),
1583
+ onMouseenter: A[1] || (A[1] = (w) => t("legend-mouseenter", w)),
1584
+ onMouseleave: A[2] || (A[2] = (w) => t("legend-mouseleave"))
1588
1585
  }, null, 8, ["data"])) : F("", !0)
1589
1586
  ], !0)
1590
1587
  ])
1591
1588
  ])
1592
1589
  ]),
1593
- footer: V(() => [
1594
- r(k) ? (y(), O("h3", la, te(r(me)), 1)) : F("", !0),
1595
- r(f).withLegend !== !1 && r(f).legendPosition == "bottom" ? (y(), W(r(mt), {
1590
+ footer: P(() => [
1591
+ r(k) ? (y(), O("h3", ra, ne(r(he)), 1)) : F("", !0),
1592
+ r(f).withLegend !== !1 && r(f).legendPosition == "bottom" ? (y(), U(r(ht), {
1596
1593
  key: 1,
1597
- data: r(T),
1594
+ data: r(L),
1598
1595
  class: "lume-chart__legend lume-chart__legend--bottom",
1599
1596
  "data-j-lume-chart__legend": "",
1600
- onClick: b[16] || (b[16] = (I) => t("legend-click", I)),
1601
- onMouseenter: b[17] || (b[17] = (I) => t("legend-mouseenter", I)),
1602
- onMouseleave: b[18] || (b[18] = (I) => t("legend-mouseleave"))
1597
+ onClick: A[16] || (A[16] = (w) => t("legend-click", w)),
1598
+ onMouseenter: A[17] || (A[17] = (w) => t("legend-mouseenter", w)),
1599
+ onMouseleave: A[18] || (A[18] = (w) => t("legend-mouseleave"))
1603
1600
  }, null, 8, ["data"])) : F("", !0)
1604
1601
  ]),
1605
- extra: V(() => [
1606
- S(L.$slots, "tooltip", C(r(Le), {
1607
- data: r(T),
1602
+ extra: P(() => [
1603
+ S(T.$slots, "tooltip", C(r(Le), {
1604
+ data: r(L),
1608
1605
  labels: r(E),
1609
1606
  title: r(E)[v.value],
1610
- items: r(lt)(v.value),
1611
- position: r(ut),
1607
+ items: r(ut)(v.value),
1608
+ position: r(it),
1612
1609
  withTooltip: r(f).withTooltip !== !1,
1613
1610
  hoveredIndex: v.value,
1614
1611
  handleMouseEnter: () => g.value = !0,
1615
1612
  handleMouseLeave: () => g.value = !1,
1616
1613
  options: r(f).tooltipOptions
1617
1614
  }), () => [
1618
- r(qt) ? (y(), W(r($o), C({ key: 0 }, r(Le), {
1619
- position: r(ut),
1615
+ r(qt) ? (y(), U(r(Oo), C({ key: 0 }, r(Le), {
1616
+ position: r(it),
1620
1617
  title: r(E)[v.value],
1621
- items: r(lt)(v.value),
1618
+ items: r(ut)(v.value),
1622
1619
  options: r(f).tooltipOptions,
1623
1620
  "data-j-lume-chart__tooltip": "",
1624
- onOpened: b[19] || (b[19] = (I) => t("tooltip-opened", {
1621
+ onOpened: A[19] || (A[19] = (w) => t("tooltip-opened", {
1625
1622
  index: v.value,
1626
- targetElement: I
1623
+ targetElement: w
1627
1624
  })),
1628
- onMoved: b[20] || (b[20] = (I) => t("tooltip-moved", {
1625
+ onMoved: A[20] || (A[20] = (w) => t("tooltip-moved", {
1629
1626
  index: v.value,
1630
- targetElement: I
1627
+ targetElement: w
1631
1628
  })),
1632
- onClosed: b[21] || (b[21] = (I) => t("tooltip-closed")),
1633
- onTooltipMouseenter: b[22] || (b[22] = (I) => g.value = !0),
1634
- onTooltipMouseleave: b[23] || (b[23] = (I) => g.value = !1)
1629
+ onClosed: A[21] || (A[21] = (w) => t("tooltip-closed")),
1630
+ onTooltipMouseenter: A[22] || (A[22] = (w) => g.value = !0),
1631
+ onTooltipMouseleave: A[23] || (A[23] = (w) => g.value = !1)
1635
1632
  }), {
1636
- default: V(() => [
1637
- S(L.$slots, "tooltip-content", {
1638
- data: r(T),
1633
+ default: P(() => [
1634
+ S(T.$slots, "tooltip-content", {
1635
+ data: r(L),
1639
1636
  labels: r(E),
1640
1637
  hoveredIndex: v.value
1641
1638
  }, void 0, !0)
@@ -1644,87 +1641,87 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
1644
1641
  }, 16, ["position", "title", "items", "options"])) : F("", !0)
1645
1642
  ], !0)
1646
1643
  ]),
1647
- default: V(() => [
1644
+ default: P(() => [
1648
1645
  r(j) ? (y(), O(J, { key: 0 }, [
1649
- r(X) ? (y(), W(r(nt), C({ key: 0 }, r(ue), {
1646
+ r(X) ? (y(), U(r(ot), C({ key: 0 }, r(ue), {
1650
1647
  "class-list": "lume-fill--negative",
1651
1648
  transition: !1,
1652
1649
  "data-j-lume-chart__negative-values": ""
1653
1650
  }), null, 16)) : F("", !0),
1654
- r(f).withAxes !== !1 ? S(L.$slots, "axes", {
1651
+ r(f).withAxes !== !1 ? S(T.$slots, "axes", {
1655
1652
  key: 1,
1656
- xScale: r(P),
1653
+ xScale: r(V),
1657
1654
  yScale: r(K),
1658
- containerSize: r(w),
1655
+ containerSize: r(x),
1659
1656
  options: r(f),
1660
1657
  hoveredIndex: v.value
1661
1658
  }, () => [
1662
- re(r(ft), {
1659
+ re(r(mt), {
1663
1660
  type: "x",
1664
- scale: r(P),
1665
- "container-size": r(w),
1661
+ scale: r(V),
1662
+ "container-size": r(x),
1666
1663
  options: r(Ae),
1667
1664
  "hovered-index": v.value,
1668
1665
  orientation: r(s),
1669
1666
  "data-j-lume-chart__x-axis": "",
1670
- onClick: dt,
1671
- onMouseenter: ct,
1672
- onMouseleave: b[3] || (b[3] = (I) => t("axis-mouseleave")),
1673
- "onLume__internal-AxisSize": b[4] || (b[4] = (I) => A.value = I)
1667
+ onClick: vt,
1668
+ onMouseenter: dt,
1669
+ onMouseleave: A[3] || (A[3] = (w) => t("axis-mouseleave")),
1670
+ "onLume__internal-AxisSize": A[4] || (A[4] = (w) => b.value = w)
1674
1671
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1675
- re(r(ft), {
1672
+ re(r(mt), {
1676
1673
  type: "y",
1677
1674
  scale: r(K),
1678
- "container-size": r(w),
1675
+ "container-size": r(x),
1679
1676
  options: r(Te),
1680
1677
  "hovered-index": v.value,
1681
1678
  orientation: r(s),
1682
1679
  "data-j-lume-chart__y-axis": "",
1683
- onClick: dt,
1684
- onMouseenter: ct,
1685
- onMouseleave: b[5] || (b[5] = (I) => t("axis-mouseleave")),
1686
- "onLume__internal-AxisSize": b[6] || (b[6] = (I) => x.value = I)
1680
+ onClick: vt,
1681
+ onMouseenter: dt,
1682
+ onMouseleave: A[5] || (A[5] = (w) => t("axis-mouseleave")),
1683
+ "onLume__internal-AxisSize": A[6] || (A[6] = (w) => $.value = w)
1687
1684
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1688
1685
  ], !0) : F("", !0),
1689
- r(f).withHover !== !1 ? (y(), W(r(Vo), {
1686
+ r(f).withHover !== !1 ? (y(), U(r(jo), {
1690
1687
  key: 2,
1691
- data: r(T),
1688
+ data: r(L),
1692
1689
  orientation: r(s),
1693
- "x-scale": r(P),
1690
+ "x-scale": r(V),
1694
1691
  "y-scale": r(K),
1695
1692
  "data-j-lume-chart__overlay-group": "",
1696
1693
  "onLume__internal-Hover": Re
1697
1694
  }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : F("", !0),
1698
- r(je) ? (y(), O("g", aa, [
1699
- (y(!0), O(J, null, z(h.value, (I, nn) => (y(), O("circle", C(I, {
1695
+ r(je) ? (y(), O("g", oa, [
1696
+ (y(!0), O(J, null, z(h.value, (w, Pe) => (y(), O("circle", C(w, {
1700
1697
  ref_for: !0,
1701
1698
  ref_key: "tooltipAnchor",
1702
1699
  ref: i,
1703
- key: `anchor_${nn}`,
1704
- r: r(Rn),
1700
+ key: `anchor_${Pe}`,
1701
+ r: r(Bn),
1705
1702
  class: "lume-fill--transparent"
1706
- }), null, 16, ra))), 128))
1703
+ }), null, 16, aa))), 128))
1707
1704
  ])) : F("", !0),
1708
- S(L.$slots, "groups", {
1709
- data: r(T),
1705
+ S(T.$slots, "groups", {
1706
+ data: r(L),
1710
1707
  labels: r(E),
1711
1708
  options: r(f),
1712
1709
  orientation: r(s),
1713
- xScale: r(P),
1710
+ xScale: r(V),
1714
1711
  yScale: r(K),
1715
1712
  hoveredIndex: v.value,
1716
- containerSize: r(w),
1713
+ containerSize: r(x),
1717
1714
  transition: r(f).withTransition !== !1,
1718
- classList: L.classList,
1719
- onNodeClick: b[7] || (b[7] = (I) => t("node-click", I)),
1720
- onNodeMouseenter: b[8] || (b[8] = (I) => t("node-mouseenter", I)),
1721
- onNodeMouseleave: b[9] || (b[9] = (I) => t("node-mouseleave", I)),
1722
- onLinkClick: b[10] || (b[10] = (I) => t("link-click", I)),
1723
- onLinkMouseenter: b[11] || (b[11] = (I) => t("link-mouseenter", I)),
1724
- onLinkMouseleave: b[12] || (b[12] = (I) => t("link-mouseleave", I)),
1725
- onBarClick: b[13] || (b[13] = (I) => t("bar-click", I)),
1726
- onLineClick: b[14] || (b[14] = (I) => t("line-click", I)),
1727
- onPointClick: b[15] || (b[15] = (I) => t("point-click", I)),
1715
+ classList: T.classList,
1716
+ onNodeClick: A[7] || (A[7] = (w) => t("node-click", w)),
1717
+ onNodeMouseenter: A[8] || (A[8] = (w) => t("node-mouseenter", w)),
1718
+ onNodeMouseleave: A[9] || (A[9] = (w) => t("node-mouseleave", w)),
1719
+ onLinkClick: A[10] || (A[10] = (w) => t("link-click", w)),
1720
+ onLinkMouseenter: A[11] || (A[11] = (w) => t("link-mouseenter", w)),
1721
+ onLinkMouseleave: A[12] || (A[12] = (w) => t("link-mouseleave", w)),
1722
+ onBarClick: A[13] || (A[13] = (w) => t("bar-click", w)),
1723
+ onLineClick: A[14] || (A[14] = (w) => t("line-click", w)),
1724
+ onPointClick: A[15] || (A[15] = (w) => t("point-click", w)),
1728
1725
  "onLume__internal-Hover": Re
1729
1726
  }, void 0, !0)
1730
1727
  ], 64)) : F("", !0)
@@ -1733,7 +1730,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
1733
1730
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "onResize"]));
1734
1731
  }
1735
1732
  });
1736
- const xe = /* @__PURE__ */ Q(ua, [["__scopeId", "data-v-ea1a07b9"]]), ia = ["dy"], sa = /* @__PURE__ */ Z({
1733
+ const xe = /* @__PURE__ */ Q(la, [["__scopeId", "data-v-dad8a6ee"]]), ua = ["dy"], ia = /* @__PURE__ */ Z({
1737
1734
  __name: "lume-alluvial-node-label",
1738
1735
  props: {
1739
1736
  bottom: { type: Boolean, default: !1 }
@@ -1744,10 +1741,10 @@ const xe = /* @__PURE__ */ Q(ua, [["__scopeId", "data-v-ea1a07b9"]]), ia = ["dy"
1744
1741
  dy: e.bottom ? "1.2em" : ""
1745
1742
  }, [
1746
1743
  S(t.$slots, "default", {}, void 0, !0)
1747
- ], 8, ia));
1744
+ ], 8, ua));
1748
1745
  }
1749
1746
  });
1750
- const ca = /* @__PURE__ */ Q(sa, [["__scopeId", "data-v-d2a7cb8e"]]), da = ["dy"], va = /* @__PURE__ */ Z({
1747
+ const sa = /* @__PURE__ */ Q(ia, [["__scopeId", "data-v-d2a7cb8e"]]), ca = ["dy"], da = /* @__PURE__ */ Z({
1751
1748
  __name: "lume-alluvial-node-value",
1752
1749
  props: {
1753
1750
  bottom: { type: Boolean, default: !0 }
@@ -1758,10 +1755,10 @@ const ca = /* @__PURE__ */ Q(sa, [["__scopeId", "data-v-d2a7cb8e"]]), da = ["dy"
1758
1755
  dy: e.bottom ? "1.2em" : ""
1759
1756
  }, [
1760
1757
  S(t.$slots, "default", {}, void 0, !0)
1761
- ], 8, da));
1758
+ ], 8, ca));
1762
1759
  }
1763
1760
  });
1764
- const pa = /* @__PURE__ */ Q(va, [["__scopeId", "data-v-002e2887"]]);
1761
+ const va = /* @__PURE__ */ Q(da, [["__scopeId", "data-v-002e2887"]]);
1765
1762
  function Lt(e, t) {
1766
1763
  return {
1767
1764
  x0: 0 + (t ? t.left : 0),
@@ -1770,7 +1767,7 @@ function Lt(e, t) {
1770
1767
  y1: e.height - (t ? t.bottom : 0)
1771
1768
  };
1772
1769
  }
1773
- function fa(e) {
1770
+ function pa(e) {
1774
1771
  const t = M(Lt(e));
1775
1772
  function n(o) {
1776
1773
  t.value = Lt(e, o);
@@ -1778,24 +1775,24 @@ function fa(e) {
1778
1775
  return { extents: t, updateExtents: n };
1779
1776
  }
1780
1777
  var Wt = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e))(Wt || {});
1781
- const ma = "[lume] ";
1782
- function ha(e, t, n = !0) {
1783
- n && Dt() || console.error(ma + "Error: " + e, t);
1778
+ const fa = "[lume] ";
1779
+ function ma(e, t, n = !0) {
1780
+ n && Dt() || console.error(fa + "Error: " + e, t);
1784
1781
  }
1785
- const Ot = 8, ga = 8, _a = 20, ya = 200;
1782
+ const Ot = 8, ha = 8, ga = 20, _a = 200;
1786
1783
  function Oe(e) {
1787
1784
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1788
1785
  }
1789
- function ka(e, t) {
1786
+ function ya(e, t) {
1790
1787
  return t.nodes.find((n) => n.id === e);
1791
1788
  }
1792
- function ba(e, t) {
1789
+ function ka(e, t) {
1793
1790
  return t.links.find((n) => n.id === e);
1794
1791
  }
1795
1792
  function Ut(e) {
1796
1793
  return !!(e.sourceLinks && e.targetLinks);
1797
1794
  }
1798
- function Aa(e, t) {
1795
+ function ba(e, t) {
1799
1796
  if (!t)
1800
1797
  return;
1801
1798
  const n = e.nodes.filter((u) => u.targetLinks.length === 0).map((u) => `${u.id}`), o = e.nodes.filter((u) => u.sourceLinks.length === 0).map((u) => `${u.id}`), l = t.filter((u) => n.includes(u.dataset.id)).reduce(
@@ -1812,7 +1809,7 @@ function Aa(e, t) {
1812
1809
  bottom: 0
1813
1810
  };
1814
1811
  }
1815
- function Ta(e) {
1812
+ function Aa(e) {
1816
1813
  return e.map((t) => ({
1817
1814
  x: t.x0,
1818
1815
  y: t.y0,
@@ -1825,22 +1822,22 @@ function Ta(e) {
1825
1822
  node: t
1826
1823
  }));
1827
1824
  }
1828
- function La(e) {
1825
+ function Ta(e) {
1829
1826
  return [e.source.x1, e.y0];
1830
1827
  }
1831
- function Oa(e) {
1828
+ function La(e) {
1832
1829
  return [e.target.x0, e.y1];
1833
1830
  }
1834
- function $a(e) {
1835
- return e.curveFunction ? dn(e.curveFunction).source(La).target(Oa) : mn();
1831
+ function Oa(e) {
1832
+ return e.curveFunction ? cn(e.curveFunction).source(Ta).target(La) : fn();
1836
1833
  }
1837
- function xa(e) {
1834
+ function $a(e) {
1838
1835
  return e.map((t) => {
1839
1836
  var n;
1840
1837
  return {
1841
1838
  id: t.id,
1842
1839
  color: t.color || ((n = t.source) == null ? void 0 : n.color) || He,
1843
- d: $a(t)(t),
1840
+ d: Oa(t)(t),
1844
1841
  strokeWidth: Math.max(1, t.width),
1845
1842
  link: t
1846
1843
  };
@@ -1854,8 +1851,8 @@ function $t(e, t, n, o, l) {
1854
1851
  };
1855
1852
  return;
1856
1853
  }
1857
- const a = Date.now(), u = xn(t, n), c = () => {
1858
- let d = (Date.now() - a) / ya;
1854
+ const a = Date.now(), u = $n(t, n), c = () => {
1855
+ let d = (Date.now() - a) / _a;
1859
1856
  d > 1 && (d = 1), e.node = {
1860
1857
  ...e.node,
1861
1858
  transitionValue: l && d === 1 ? void 0 : u(d)
@@ -1863,7 +1860,7 @@ function $t(e, t, n, o, l) {
1863
1860
  };
1864
1861
  requestAnimationFrame(c);
1865
1862
  }
1866
- const wa = {
1863
+ const xa = {
1867
1864
  nodes: [],
1868
1865
  links: []
1869
1866
  };
@@ -1874,13 +1871,13 @@ function Ia(e, t, n) {
1874
1871
  const o = M(null), l = p(() => {
1875
1872
  var i;
1876
1873
  return (i = e.value) == null ? void 0 : i[0].values.map(
1877
- ({ label: m, color: h, value: g, deriveColorFromIncomingLinks: A, offset: x }) => ({
1874
+ ({ label: m, color: h, value: g, deriveColorFromIncomingLinks: b, offset: $ }) => ({
1878
1875
  label: m || g.toString(),
1879
1876
  color: h,
1880
1877
  fallbackColor: h || He,
1881
1878
  id: g,
1882
- deriveColorFromIncomingLinks: A,
1883
- offset: x
1879
+ deriveColorFromIncomingLinks: b,
1880
+ offset: $
1884
1881
  })
1885
1882
  );
1886
1883
  }), a = p(
@@ -1890,24 +1887,24 @@ function Ia(e, t, n) {
1890
1887
  (m) => {
1891
1888
  var h;
1892
1889
  return (h = m.targets) == null ? void 0 : h.map(
1893
- ({ node: g, value: A, color: x, curveFunction: f }) => ({
1890
+ ({ node: g, value: b, color: $, curveFunction: f }) => ({
1894
1891
  id: `${m.value}:${g}`,
1895
- color: x,
1892
+ color: $,
1896
1893
  curveFunction: f,
1897
1894
  source: m.value ?? m.label,
1898
1895
  target: g,
1899
- value: A
1896
+ value: b
1900
1897
  })
1901
1898
  );
1902
1899
  }
1903
1900
  ).filter(Boolean).flat();
1904
1901
  }
1905
- ), u = p(() => hn().nodeId(Oe).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth).linkSort(t.value.linkSort).iterations(t.value.iterations)), c = p(() => {
1902
+ ), u = p(() => mn().nodeId(Oe).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth).linkSort(t.value.linkSort).iterations(t.value.iterations)), c = p(() => {
1906
1903
  var i;
1907
1904
  return (i = o.value) == null ? void 0 : i.nodes.reduce(
1908
1905
  (m, h) => {
1909
1906
  const g = xt(h, m);
1910
- return g ? (g.push(h), g.sort((A, x) => (A._y0 || A.y0) - (x._y0 || x.y0))) : m.push([h]), m;
1907
+ return g ? (g.push(h), g.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([h]), m;
1911
1908
  },
1912
1909
  []
1913
1910
  );
@@ -1916,16 +1913,16 @@ function Ia(e, t, n) {
1916
1913
  const { offset: m } = i, h = xt(i, c.value);
1917
1914
  if (!h)
1918
1915
  return;
1919
- const g = h[h.findIndex((x) => x.id === i.id) - 1], A = g && h.length !== 1 ? g.y1 + m : m;
1920
- i._y0 = i.y0, i._y1 = i.y1, i.y0 = A, i.y1 = i.y0 + (i._y1 - i._y0);
1916
+ const g = h[h.findIndex(($) => $.id === i.id) - 1], b = g && h.length !== 1 ? g.y1 + m : m;
1917
+ i._y0 = i.y0, i._y1 = i.y1, i.y0 = b, i.y1 = i.y0 + (i._y1 - i._y0);
1921
1918
  }
1922
1919
  function d(i, m) {
1923
- const { id: h, _y0: g, y0: A } = i, x = m.links.filter(
1920
+ const { id: h, _y0: g, y0: b } = i, $ = m.links.filter(
1924
1921
  (E) => E.source.id === h
1925
1922
  ), f = m.links.filter(
1926
1923
  (E) => E.target.id === h
1927
- ), T = A - g;
1928
- x.forEach((E) => E.y0 += T), f.forEach((E) => E.y1 += T);
1924
+ ), L = b - g;
1925
+ $.forEach((E) => E.y0 += L), f.forEach((E) => E.y1 += L);
1929
1926
  }
1930
1927
  const v = p(() => (o.value && l.value.forEach((i) => {
1931
1928
  typeof i.offset == "number" && (s(i), d(i, o.value));
@@ -1938,44 +1935,44 @@ function Ia(e, t, n) {
1938
1935
  [h, g]
1939
1936
  ])({ nodes: l.value, links: a.value });
1940
1937
  } catch (i) {
1941
- ha(Wt.GraphProblem, i), o.value = wa;
1938
+ ma(Wt.GraphProblem, i), o.value = xa;
1942
1939
  }
1943
1940
  }), { columns: c, graph: v };
1944
1941
  }
1945
- function Je(e, t) {
1942
+ function Qe(e, t) {
1946
1943
  return t || (t = {}), e.targetLinks && e.targetLinks.forEach(({ source: n, value: o }) => {
1947
- t[n.id] = o, Je(
1944
+ t[n.id] = o, Qe(
1948
1945
  n,
1949
1946
  t
1950
1947
  );
1951
1948
  }), t;
1952
1949
  }
1953
- function Qe(e, t) {
1950
+ function qe(e, t) {
1954
1951
  return t || (t = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: n, value: o }) => {
1955
- t[n.id] = o, Qe(
1952
+ t[n.id] = o, qe(
1956
1953
  n,
1957
1954
  t
1958
1955
  );
1959
1956
  }), t;
1960
1957
  }
1961
- function Ea(e, t) {
1958
+ function wa(e, t) {
1962
1959
  return t.links.reduce((n, o) => (o.source.id in e && o.target.id in e && n.push(o.id), n), []);
1963
1960
  }
1964
- const Na = (e, t) => {
1961
+ const Ea = (e, t) => {
1965
1962
  let n;
1966
1963
  Ut(e) ? n = {
1967
1964
  [e.id]: e.value,
1968
- ...Je(e),
1969
- ...Qe(e)
1965
+ ...Qe(e),
1966
+ ...qe(e)
1970
1967
  } : n = {
1971
1968
  [e.source.id]: e.source.value,
1972
1969
  [e.target.id]: e.target.value,
1973
- ...Je(e.source),
1974
- ...Qe(e.target)
1970
+ ...Qe(e.source),
1971
+ ...qe(e.target)
1975
1972
  };
1976
- const o = Ea(n, t);
1973
+ const o = wa(n, t);
1977
1974
  return { nodes: n, links: o };
1978
- }, Da = (e) => {
1975
+ }, Na = (e) => {
1979
1976
  if (Ut(e)) {
1980
1977
  const t = [...e.sourceLinks, ...e.targetLinks];
1981
1978
  return {
@@ -1994,11 +1991,11 @@ const Na = (e, t) => {
1994
1991
  links: [e.id]
1995
1992
  };
1996
1993
  };
1997
- function Ha(e, t, n) {
1994
+ function Da(e, t, n) {
1998
1995
  const o = M(null), l = p(() => o.value ? typeof t.value.highlightedElements == "function" ? t.value.highlightedElements(
1999
1996
  o.value,
2000
1997
  n.value
2001
- ) : t.value.highlightedElements === "closest" ? Da(o.value, n.value) : Na(o.value, n.value) : { nodes: {}, links: [] });
1998
+ ) : t.value.highlightedElements === "closest" ? Na(o.value, n.value) : Ea(o.value, n.value) : { nodes: {}, links: [] });
2002
1999
  return Y(l, (a, u) => {
2003
2000
  if (a.links.length === 0 && Object.keys(a.nodes).length === 0) {
2004
2001
  e.value.forEach((c) => {
@@ -2022,10 +2019,10 @@ function Ha(e, t, n) {
2022
2019
  });
2023
2020
  }), { highlightedElements: l, hoveredElement: o };
2024
2021
  }
2025
- const Ba = {
2022
+ const Ha = {
2026
2023
  class: "lume-alluvial-group",
2027
2024
  "data-j-alluvial-group": ""
2028
- }, Ra = { key: 0 }, Ma = ["x", "y"], Sa = { key: 0 }, Ca = ["id", "x1", "x2"], Ga = ["stop-color"], ja = ["stop-color"], Va = ["d", "stroke-width", "onClick", "onMouseover"], Pa = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Fa = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], za = ["x", "y", "height", "width"], Za = ["transform", "data-id"], Wa = /* @__PURE__ */ Z({
2025
+ }, Ba = { key: 0 }, Ra = ["x", "y"], Ma = { key: 0 }, Sa = ["id", "x1", "x2"], Ca = ["stop-color"], Ga = ["stop-color"], ja = ["d", "stroke-width", "onClick", "onMouseover"], Pa = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Va = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], Fa = ["x", "y", "height", "width"], za = ["transform", "data-id"], Za = /* @__PURE__ */ Z({
2029
2026
  __name: "lume-alluvial-group",
2030
2027
  props: {
2031
2028
  ...Ge(),
@@ -2036,23 +2033,23 @@ const Ba = {
2036
2033
  },
2037
2034
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2038
2035
  setup(e, { emit: t }) {
2039
- const n = e, o = Ee("chartID"), { data: l, options: a } = q(n), u = M([]), c = M([]), s = M(null), { extents: d, updateExtents: v } = fa(n.containerSize), { columns: i, graph: m } = Ia(l, a, d), { hoveredElement: h, highlightedElements: g } = Ha(
2036
+ const n = e, o = Ee("chartID"), { data: l, options: a } = q(n), u = M([]), c = M([]), s = M(null), { extents: d, updateExtents: v } = pa(n.containerSize), { columns: i, graph: m } = Ia(l, a, d), { hoveredElement: h, highlightedElements: g } = Da(
2040
2037
  u,
2041
2038
  a,
2042
2039
  m
2043
- ), A = p(() => Me(a.value.valueFormat)), x = p(
2040
+ ), b = p(() => Me(a.value.valueFormat)), $ = p(
2044
2041
  () => Object.keys(g.value.nodes)
2045
2042
  ), f = p(() => i.value ? i.value.map(
2046
2043
  (k) => k[0].x0 + a.value.nodeWidth / 2
2047
- ) : []), T = p(() => {
2044
+ ) : []), L = p(() => {
2048
2045
  if (!(!a.value.nodeHeaders || !a.value.nodeHeaders.length))
2049
2046
  return a.value.nodeHeaders.slice(0, f.value.length).map((k, N) => ({
2050
2047
  label: k,
2051
2048
  x: f.value[N]
2052
2049
  }));
2053
2050
  }), E = p(
2054
- () => a.value.nodeHeaderPadding ?? _a
2055
- ), w = p(() => {
2051
+ () => a.value.nodeHeaderPadding ?? ga
2052
+ ), x = p(() => {
2056
2053
  if (!(!a.value.gradient || !m.value))
2057
2054
  return m.value.links.reduce((k, N) => {
2058
2055
  const { source: _, target: j } = N, X = _.color || _.fallbackColor, ue = j.deriveColorFromIncomingLinks ? X : j.color || j.fallbackColor;
@@ -2063,7 +2060,7 @@ const Ba = {
2063
2060
  x2: j.x0
2064
2061
  }, k;
2065
2062
  }, {});
2066
- }), $ = p(() => {
2063
+ }), I = p(() => {
2067
2064
  const k = u.value.filter(
2068
2065
  (_) => K(_)
2069
2066
  ), N = [];
@@ -2088,16 +2085,16 @@ const Ba = {
2088
2085
  function D(k) {
2089
2086
  return a.value.gradient && `url('#${o}_${k.id}')`;
2090
2087
  }
2091
- function B(k) {
2092
- return x.value.length > 0 && !x.value.includes(k.toString());
2088
+ function R(k) {
2089
+ return $.value.length > 0 && !$.value.includes(k.toString());
2093
2090
  }
2094
- function U(k) {
2095
- return x.value.length > 0 && x.value.includes(k.toString());
2091
+ function W(k) {
2092
+ return $.value.length > 0 && $.value.includes(k.toString());
2096
2093
  }
2097
- function oe(k) {
2094
+ function ee(k) {
2098
2095
  return g.value.links.length > 0 && !g.value.links.includes(k);
2099
2096
  }
2100
- function P(k) {
2097
+ function V(k) {
2101
2098
  return g.value.links.length > 0 && g.value.links.includes(k);
2102
2099
  }
2103
2100
  function K(k) {
@@ -2110,44 +2107,44 @@ const Ba = {
2110
2107
  const N = h.value;
2111
2108
  h.value = null, t("link-mouseleave", { link: N, event: k });
2112
2109
  }
2113
- function me(k) {
2110
+ function he(k) {
2114
2111
  if (k == null) {
2115
2112
  h.value = null;
2116
2113
  return;
2117
2114
  }
2118
- const N = ka(k, m.value) || ba(k, m.value);
2115
+ const N = ya(k, m.value) || ka(k, m.value);
2119
2116
  if (!N) {
2120
- ge(pe.InvalidHoveredElement);
2117
+ _e(pe.InvalidHoveredElement);
2121
2118
  return;
2122
2119
  }
2123
2120
  h.value = N;
2124
2121
  }
2125
- function R(k) {
2122
+ function B(k) {
2126
2123
  var N;
2127
- return ((N = $.value.find(({ id: _ }) => k === _)) == null ? void 0 : N.subNodes) ?? [];
2124
+ return ((N = I.value.find(({ id: _ }) => k === _)) == null ? void 0 : N.subNodes) ?? [];
2128
2125
  }
2129
2126
  return Y(m, (k) => {
2130
- u.value = Ta(k.nodes), c.value = xa(k.links).reverse(), h.value == null && n.hoveredElementId != null && me(n.hoveredElementId);
2127
+ u.value = Aa(k.nodes), c.value = $a(k.links).reverse(), h.value == null && n.hoveredElementId != null && he(n.hoveredElementId);
2131
2128
  }), Y([n.containerSize, s], () => {
2132
2129
  if (n.containerSize.width && n.containerSize.height) {
2133
- const k = Aa(m.value, s.value);
2130
+ const k = ba(m.value, s.value);
2134
2131
  v(k);
2135
2132
  }
2136
- }), Y(() => n.hoveredElementId, me), (k, N) => (y(), O("g", Ba, [
2137
- r(T) ? (y(), O("g", Ra, [
2138
- (y(!0), O(J, null, z(r(T), (_) => (y(), O("text", {
2133
+ }), Y(() => n.hoveredElementId, he), (k, N) => (y(), O("g", Ha, [
2134
+ r(L) ? (y(), O("g", Ba, [
2135
+ (y(!0), O(J, null, z(r(L), (_) => (y(), O("text", {
2139
2136
  key: `header_${_.x}`,
2140
2137
  x: _.x,
2141
2138
  y: -r(E),
2142
2139
  class: "lume-alluvial-group__node-header lume-typography--caption"
2143
- }, te(_.label), 9, Ma))), 128))
2140
+ }, ne(_.label), 9, Ra))), 128))
2144
2141
  ])) : F("", !0),
2145
2142
  G("g", {
2146
2143
  class: "lume-alluvial-link-group",
2147
2144
  onMouseleave: Te
2148
2145
  }, [
2149
- r(a).gradient ? (y(), O("defs", Sa, [
2150
- (y(!0), O(J, null, z(r(w), (_, j) => (y(), O("linearGradient", {
2146
+ r(a).gradient ? (y(), O("defs", Ma, [
2147
+ (y(!0), O(J, null, z(r(x), (_, j) => (y(), O("linearGradient", {
2151
2148
  id: `${r(o)}_${j}`,
2152
2149
  key: j,
2153
2150
  gradientUnits: "userSpaceOnUse",
@@ -2157,31 +2154,31 @@ const Ba = {
2157
2154
  G("stop", {
2158
2155
  offset: "0%",
2159
2156
  "stop-color": `var(--lume-color--${_.source})`
2160
- }, null, 8, Ga),
2157
+ }, null, 8, Ca),
2161
2158
  G("stop", {
2162
2159
  offset: "100%",
2163
2160
  "stop-color": `var(--lume-color--${_.target})`
2164
- }, null, 8, ja)
2165
- ], 8, Ca))), 128))
2161
+ }, null, 8, Ga)
2162
+ ], 8, Sa))), 128))
2166
2163
  ])) : F("", !0),
2167
2164
  (y(!0), O(J, null, z(c.value, (_) => (y(), O("path", {
2168
2165
  key: `link-ghost_${_.id}`,
2169
- class: ee(["lume-alluvial-group__link", [
2166
+ class: te(["lume-alluvial-group__link", [
2170
2167
  "lume-stroke--transparent",
2171
2168
  "lume-alluvial-group__link--ghost"
2172
2169
  ]]),
2173
2170
  d: _.d,
2174
- "stroke-width": _.strokeWidth + r(ga),
2171
+ "stroke-width": _.strokeWidth + r(ha),
2175
2172
  "data-j-alluvial-ghost": "",
2176
2173
  onClick: (j) => t("link-click", { link: _.link, event: j }),
2177
2174
  onMouseover: (j) => Ae(_.link, j)
2178
- }, null, 40, Va))), 128)),
2175
+ }, null, 40, ja))), 128)),
2179
2176
  (y(!0), O(J, null, z(c.value, (_) => (y(), O("path", {
2180
2177
  key: `link_${_.id}`,
2181
- class: ee(["lume-alluvial-group__link", {
2178
+ class: te(["lume-alluvial-group__link", {
2182
2179
  [`lume-stroke--${_.color}`]: !r(a).gradient && _.color,
2183
- "lume-alluvial-group__link--faded": oe(_.id),
2184
- "lume-alluvial-group__link--focused": P(_.id)
2180
+ "lume-alluvial-group__link--faded": ee(_.id),
2181
+ "lume-alluvial-group__link--focused": V(_.id)
2185
2182
  }]),
2186
2183
  d: _.d,
2187
2184
  stroke: D(_.link),
@@ -2196,9 +2193,9 @@ const Ba = {
2196
2193
  ], 32),
2197
2194
  (y(!0), O(J, null, z(u.value, (_, j) => (y(), O("g", {
2198
2195
  key: `node-block_${j}`,
2199
- class: ee(["lume-alluvial-group__node", {
2200
- "lume-alluvial-group__node--faded": B(_.node.id),
2201
- "lume-alluvial-group__node--focused": U(_.node.id)
2196
+ class: te(["lume-alluvial-group__node", {
2197
+ "lume-alluvial-group__node--faded": R(_.node.id),
2198
+ "lume-alluvial-group__node--focused": W(_.node.id)
2202
2199
  }]),
2203
2200
  "data-j-alluvial-group__node-block": ""
2204
2201
  }, [
@@ -2209,24 +2206,24 @@ const Ba = {
2209
2206
  onMouseover: (X) => h.value = _.node,
2210
2207
  onMouseout: N[0] || (N[0] = (X) => h.value = null)
2211
2208
  }, [
2212
- K(_) ? (y(!0), O(J, { key: 0 }, z(R(
2209
+ K(_) ? (y(!0), O(J, { key: 0 }, z(B(
2213
2210
  _.node.id
2214
2211
  ), (X) => (y(), O("rect", C(X, {
2215
2212
  key: X.key,
2216
2213
  "data-j-alluvial-sub-nodes": ""
2217
2214
  }), null, 16))), 128)) : (y(), O("rect", {
2218
2215
  key: 1,
2219
- class: ee(["lume-alluvial-group__node-block", `lume-fill--${_.node.color || _.node.fallbackColor}`]),
2216
+ class: te(["lume-alluvial-group__node-block", `lume-fill--${_.node.color || _.node.fallbackColor}`]),
2220
2217
  x: _.x,
2221
2218
  y: _.y,
2222
2219
  height: _.height,
2223
2220
  width: _.width
2224
- }, null, 10, za)),
2221
+ }, null, 10, Fa)),
2225
2222
  G("g", {
2226
2223
  ref_for: !0,
2227
2224
  ref_key: "nodeTextRefs",
2228
2225
  ref: s,
2229
- class: ee(["lume-alluvial-group__node-text lume-typography--caption", {
2226
+ class: te(["lume-alluvial-group__node-text lume-typography--caption", {
2230
2227
  "lume-alluvial-group__node-text--left": _.node.depth === 0
2231
2228
  }]),
2232
2229
  transform: `translate(${_.textTransform.x},${_.textTransform.y})`,
@@ -2234,24 +2231,24 @@ const Ba = {
2234
2231
  }, [
2235
2232
  S(k.$slots, `node-text-${_.node.id}`, {
2236
2233
  node: _.node,
2237
- value: r(A)(
2234
+ value: r(b)(
2238
2235
  _.node.transitionValue || _.node.value,
2239
2236
  _.node.value
2240
2237
  )
2241
2238
  }, () => [
2242
- re(r(ca), {
2239
+ re(r(sa), {
2243
2240
  bottom: r(a).switchText
2244
2241
  }, {
2245
- default: V(() => [
2246
- ce(te(_.node.label), 1)
2242
+ default: P(() => [
2243
+ ce(ne(_.node.label), 1)
2247
2244
  ]),
2248
2245
  _: 2
2249
2246
  }, 1032, ["bottom"]),
2250
- re(r(pa), {
2247
+ re(r(va), {
2251
2248
  bottom: !r(a).switchText
2252
2249
  }, {
2253
- default: V(() => [
2254
- ce(te(r(A)(
2250
+ default: P(() => [
2251
+ ce(ne(r(b)(
2255
2252
  _.node.transitionValue || _.node.value,
2256
2253
  _.node.value
2257
2254
  )), 1)
@@ -2259,13 +2256,13 @@ const Ba = {
2259
2256
  _: 2
2260
2257
  }, 1032, ["bottom"])
2261
2258
  ], !0)
2262
- ], 10, Za)
2263
- ], 40, Fa)
2259
+ ], 10, za)
2260
+ ], 40, Va)
2264
2261
  ], 2))), 128))
2265
2262
  ]));
2266
2263
  }
2267
2264
  });
2268
- const Ua = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-6fe8c153"]]), Xa = {
2265
+ const Wa = /* @__PURE__ */ Q(Za, [["__scopeId", "data-v-6fe8c153"]]), Ua = {
2269
2266
  margins: {
2270
2267
  top: 0,
2271
2268
  right: 0,
@@ -2281,16 +2278,16 @@ const Ua = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-6fe8c153"]]), Xa = {
2281
2278
  highlightedElements: "closest",
2282
2279
  nodePadding: 16,
2283
2280
  nodeWidth: 16,
2284
- nodeAlign: gn,
2281
+ nodeAlign: hn,
2285
2282
  valueFormat: (e) => String(e),
2286
2283
  iterations: 6
2287
- }, Rr = /* @__PURE__ */ Z({
2284
+ }, Br = /* @__PURE__ */ Z({
2288
2285
  __name: "lume-alluvial-diagram",
2289
2286
  props: {
2290
- ...Go(qe)
2287
+ ...Co(et)
2291
2288
  },
2292
2289
  setup(e, { emit: t }) {
2293
- const n = e, { componentEventPropagator: o } = be(), l = ke(ae()), a = In(ae()), { options: u } = q(n), { allOptions: c } = se(u, Xa);
2290
+ const n = e, { componentEventPropagator: o } = me(), l = be(ae()), a = In(ae()), { options: u } = q(n), { allOptions: c } = se(u, Ua);
2294
2291
  function s(d) {
2295
2292
  return {
2296
2293
  ...d,
@@ -2298,15 +2295,15 @@ const Ua = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-6fe8c153"]]), Xa = {
2298
2295
  // Alluvial chart never uses base scales
2299
2296
  };
2300
2297
  }
2301
- return (d, v) => (y(), W(r(xe), C(n, {
2298
+ return (d, v) => (y(), U(r(xe), C(n, {
2302
2299
  options: s(r(c)),
2303
2300
  "data-j-alluvial-diagram": ""
2304
- }, ne(r(o))), ie({
2305
- groups: V((i) => [
2306
- re(r(Ua), C(i, { "hovered-element-id": d.hoveredElement }, ne(r(o))), ie({ _: 2 }, [
2301
+ }, oe(r(o))), ie({
2302
+ groups: P((i) => [
2303
+ re(r(Wa), C(i, { "hovered-element-id": d.hoveredElement }, oe(r(o))), ie({ _: 2 }, [
2307
2304
  z(r(a), (m, h) => ({
2308
2305
  name: h,
2309
- fn: V((g) => [
2306
+ fn: P((g) => [
2310
2307
  S(d.$slots, h, de(ve(g || {})))
2311
2308
  ])
2312
2309
  }))
@@ -2316,7 +2313,7 @@ const Ua = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-6fe8c153"]]), Xa = {
2316
2313
  }, [
2317
2314
  z(r(l), (i, m) => ({
2318
2315
  name: m,
2319
- fn: V((h) => [
2316
+ fn: P((h) => [
2320
2317
  S(d.$slots, m, de(ve(h || {})))
2321
2318
  ])
2322
2319
  }))
@@ -2324,7 +2321,7 @@ const Ua = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-6fe8c153"]]), Xa = {
2324
2321
  }
2325
2322
  });
2326
2323
  var Xt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Xt || {});
2327
- const Mr = /* @__PURE__ */ Z({
2324
+ const Rr = /* @__PURE__ */ Z({
2328
2325
  __name: "lume-bar-chart",
2329
2326
  props: {
2330
2327
  ...$e(),
@@ -2335,17 +2332,17 @@ const Mr = /* @__PURE__ */ Z({
2335
2332
  }
2336
2333
  },
2337
2334
  setup(e, { emit: t }) {
2338
- const n = e, o = Pe(
2335
+ const n = e, o = Fe(
2339
2336
  () => import("./common/42f5d2fc.js")
2340
- ), l = Pe(
2337
+ ), l = Fe(
2341
2338
  () => import("./common/abc9d23d.js")
2342
- ), a = Pe(
2339
+ ), a = Fe(
2343
2340
  () => import("./common/0664fd4d.js")
2344
2341
  ), u = /* @__PURE__ */ new Map([
2345
2342
  ["single", o],
2346
2343
  ["grouped", l],
2347
2344
  ["stacked", a]
2348
- ]), { componentEventPropagator: c } = be(), s = ke(ae());
2345
+ ]), { componentEventPropagator: c } = me(), s = be(ae());
2349
2346
  function d(i) {
2350
2347
  return {
2351
2348
  ...i,
@@ -2359,42 +2356,42 @@ const Mr = /* @__PURE__ */ Z({
2359
2356
  }
2360
2357
  const v = p(() => {
2361
2358
  if (n.data) {
2362
- if (qe(n.data))
2359
+ if (et(n.data))
2363
2360
  return u.get("single");
2364
2361
  if (!n.type)
2365
2362
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2366
2363
  return u.get(n.type);
2367
2364
  }
2368
2365
  });
2369
- return (i, m) => (y(), W(un(r(v)), C({ ...n, ...i.$attrs }, {
2366
+ return (i, m) => (y(), U(ln(r(v)), C({ ...n, ...i.$attrs }, {
2370
2367
  options: d(i.options)
2371
- }, ne(r(c))), ie({ _: 2 }, [
2368
+ }, oe(r(c))), ie({ _: 2 }, [
2372
2369
  z(r(s), (h, g) => ({
2373
2370
  name: g,
2374
- fn: V((A) => [
2375
- S(i.$slots, g, de(ve(A || {})))
2371
+ fn: P((b) => [
2372
+ S(i.$slots, g, de(ve(b || {})))
2376
2373
  ])
2377
2374
  }))
2378
2375
  ]), 1040, ["options"]));
2379
2376
  }
2380
2377
  });
2381
- function Ya(e) {
2382
- return Object.values(Bn).includes(e) || e == null;
2378
+ function Xa(e) {
2379
+ return Object.values(Hn).includes(e) || e == null;
2383
2380
  }
2384
- function Ka(e) {
2381
+ function Ya(e) {
2385
2382
  return Object.values(H).includes(e);
2386
2383
  }
2387
- const Ja = (e = !1) => ({
2384
+ const Ka = (e = !1) => ({
2388
2385
  type: {
2389
2386
  type: String,
2390
2387
  default: null,
2391
- validator: Ya
2388
+ validator: Xa
2392
2389
  },
2393
2390
  ...e ? {
2394
2391
  orientation: {
2395
2392
  type: String,
2396
2393
  default: H.VERTICAL,
2397
- validator: Ka
2394
+ validator: Ya
2398
2395
  }
2399
2396
  } : {}
2400
2397
  });
@@ -2413,10 +2410,10 @@ function Yt(e) {
2413
2410
  });
2414
2411
  return { multiBarData: t, groupedData: n };
2415
2412
  }
2416
- function Qa(e, t) {
2413
+ function Ja(e, t) {
2417
2414
  return e.value.length === 1 ? "single" : t.value;
2418
2415
  }
2419
- function qa(e, t, n) {
2416
+ function Qa(e, t, n) {
2420
2417
  const o = p(
2421
2418
  () => n.value === H.HORIZONTAL
2422
2419
  );
@@ -2426,7 +2423,7 @@ function qa(e, t, n) {
2426
2423
  const a = p(() => o.value ? (() => (l(e.value), e.value))() : e.value), u = p(() => o.value ? t.value : (() => (l(t.value), t.value))());
2427
2424
  return { barXScale: a, barYScale: u };
2428
2425
  }
2429
- function er(e, t, n, o, l, a) {
2426
+ function qa(e, t, n, o, l, a) {
2430
2427
  const u = p(
2431
2428
  () => o.value === H.HORIZONTAL
2432
2429
  );
@@ -2441,33 +2438,33 @@ function er(e, t, n, o, l, a) {
2441
2438
  return u.value ? n.value.bandwidth() : i < 0 ? n.value(i) - n.value(0) : n.value(0) - n.value(i);
2442
2439
  }
2443
2440
  function v(i, m, h) {
2444
- const { value: g, color: A } = i, x = A ?? e.value[m].color ?? He, { x: f, y: T } = c(g, h), E = s(g), w = d(g);
2441
+ const { value: g, color: b } = i, $ = b ?? e.value[m].color ?? He, { x: f, y: L } = c(g, h), E = s(g), x = d(g);
2445
2442
  return {
2446
- classList: [`lume-fill--${x}`, ...a],
2443
+ classList: [`lume-fill--${$}`, ...a],
2447
2444
  x: f,
2448
- y: T,
2445
+ y: L,
2449
2446
  width: E,
2450
- height: w,
2447
+ height: x,
2451
2448
  isFaded: l.value !== -1 && l.value !== h,
2452
2449
  isNegative: g < 0
2453
2450
  };
2454
2451
  }
2455
2452
  return { barAttributeGenerator: v };
2456
2453
  }
2457
- function tr(e, t, n, o, l, a) {
2454
+ function er(e, t, n, o, l, a) {
2458
2455
  const u = p(
2459
2456
  () => o.value === H.HORIZONTAL
2460
- ), c = p(() => we().domain(e.value.map((g, A) => A)).range([0, t.value.bandwidth()]).padding(0)), s = p(() => we().domain(e.value.map((g, A) => A)).range([0, n.value.bandwidth()]).padding(0));
2461
- function d(g, A, x) {
2457
+ ), c = p(() => Ie().domain(e.value.map((g, b) => b)).range([0, t.value.bandwidth()]).padding(0)), s = p(() => Ie().domain(e.value.map((g, b) => b)).range([0, n.value.bandwidth()]).padding(0));
2458
+ function d(g, b, $) {
2462
2459
  if (u.value)
2463
2460
  return g >= 0 ? t.value(0) : t.value(g);
2464
2461
  const f = t.value.domain();
2465
- return t.value(f[A]) + c.value(x);
2462
+ return t.value(f[b]) + c.value($);
2466
2463
  }
2467
- function v(g, A, x) {
2464
+ function v(g, b, $) {
2468
2465
  if (u.value) {
2469
2466
  const f = n.value.domain();
2470
- return n.value(f[A]) + s.value(x);
2467
+ return n.value(f[b]) + s.value($);
2471
2468
  }
2472
2469
  return g < 0 ? n.value(0) : n.value(g);
2473
2470
  }
@@ -2477,21 +2474,21 @@ function tr(e, t, n, o, l, a) {
2477
2474
  function m(g) {
2478
2475
  return u.value ? s.value.bandwidth() : g < 0 ? n.value(g) - n.value(0) : n.value(0) - n.value(g);
2479
2476
  }
2480
- function h(g, A, x) {
2481
- const { value: f, color: T } = g, E = T ?? e.value[A].color ?? Object.values(le)[A], w = d(f, x, A), $ = v(f, x, A), D = i(f), B = m(f);
2477
+ function h(g, b, $) {
2478
+ const { value: f, color: L } = g, E = L ?? e.value[b].color ?? Object.values(le)[b], x = d(f, $, b), I = v(f, $, b), D = i(f), R = m(f);
2482
2479
  return {
2483
2480
  classList: [`lume-fill--${E}`, ...a],
2484
- x: w,
2485
- y: $,
2481
+ x,
2482
+ y: I,
2486
2483
  width: D,
2487
- height: B,
2488
- isFaded: l.value !== -1 && l.value !== x,
2484
+ height: R,
2485
+ isFaded: l.value !== -1 && l.value !== $,
2489
2486
  isNegative: f < 0
2490
2487
  };
2491
2488
  }
2492
2489
  return { barAttributeGenerator: h };
2493
2490
  }
2494
- function nr(e, t, n) {
2491
+ function tr(e, t, n) {
2495
2492
  const o = p(
2496
2493
  () => t.value === H.HORIZONTAL
2497
2494
  ), l = p(() => {
@@ -2509,9 +2506,9 @@ function nr(e, t, n) {
2509
2506
  return Math.max(...s);
2510
2507
  });
2511
2508
  function u(s, d, v) {
2512
- return o.value ? Ie().domain([l.value, a.value]).range([0, v.width]) : Object.assign(
2513
- bt(
2514
- we().domain(d.map((i, m) => m)).range([0, v.width]),
2509
+ return o.value ? we().domain([l.value, a.value]).range([0, v.width]) : Object.assign(
2510
+ At(
2511
+ Ie().domain(d.map((i, m) => m)).range([0, v.width]),
2515
2512
  t.value,
2516
2513
  n.value
2517
2514
  ),
@@ -2520,27 +2517,27 @@ function nr(e, t, n) {
2520
2517
  }
2521
2518
  function c(s, d, v) {
2522
2519
  return o.value ? Object.assign(
2523
- bt(
2524
- we().domain(d.map((i, m) => m)).range([0, v.height]),
2520
+ At(
2521
+ Ie().domain(d.map((i, m) => m)).range([0, v.height]),
2525
2522
  t.value,
2526
2523
  n.value
2527
2524
  ),
2528
2525
  { labels: d }
2529
- ) : Ie().domain([a.value, l.value]).range([0, v.height]);
2526
+ ) : we().domain([a.value, l.value]).range([0, v.height]);
2530
2527
  }
2531
2528
  return { stackedXScaleGenerator: u, stackedYScaleGenerator: c };
2532
2529
  }
2533
- function or(e, t, n, o, l, a) {
2530
+ function nr(e, t, n, o, l, a) {
2534
2531
  const u = p(
2535
2532
  () => o.value === H.HORIZONTAL
2536
2533
  ), c = p(
2537
2534
  () => u.value ? n.value.domain() : t.value.domain()
2538
2535
  ), s = p(
2539
- () => e.value.map((f) => f.values.map((T) => T == null ? void 0 : T.value))
2536
+ () => e.value.map((f) => f.values.map((L) => L == null ? void 0 : L.value))
2540
2537
  );
2541
- function d(f, T, E) {
2542
- let w, $;
2543
- return u.value ? (w = t.value(f >= 0 ? 0 + E : f + E), $ = n.value(c.value[T])) : (w = t.value(c.value[T]), $ = n.value(f >= 0 ? f + E : 0 + E)), { x: w, y: $ };
2538
+ function d(f, L, E) {
2539
+ let x, I;
2540
+ return u.value ? (x = t.value(f >= 0 ? 0 + E : f + E), I = n.value(c.value[L])) : (x = t.value(c.value[L]), I = n.value(f >= 0 ? f + E : 0 + E)), { x, y: I };
2544
2541
  }
2545
2542
  function v(f) {
2546
2543
  return u.value ? t.value(f) - t.value(0) : t.value.bandwidth();
@@ -2554,34 +2551,34 @@ function or(e, t, n, o, l, a) {
2554
2551
  function h(f) {
2555
2552
  return u.value ? n.value.bandwidth() : n.value(f) - n.value(0);
2556
2553
  }
2557
- function g(f, T) {
2558
- return f ? s.value.reduce((E, w, $) => ($ < f && w[T] >= 0 && (E += w[T]), E), 0) : 0;
2554
+ function g(f, L) {
2555
+ return f ? s.value.reduce((E, x, I) => (I < f && x[L] >= 0 && (E += x[L]), E), 0) : 0;
2559
2556
  }
2560
- function A(f, T) {
2561
- return f ? s.value.reduce((E, w, $) => ($ < f && w[T] < 0 && (E += w[T]), E), 0) : 0;
2557
+ function b(f, L) {
2558
+ return f ? s.value.reduce((E, x, I) => (I < f && x[L] < 0 && (E += x[L]), E), 0) : 0;
2562
2559
  }
2563
- function x(f, T, E) {
2564
- const { value: w, color: $ } = f, D = w >= 0 ? v(w) : i(w), B = w >= 0 ? m(w) : h(w), U = w >= 0 ? g(T, E) : A(T, E), { x: oe, y: P } = d(w, E, U);
2560
+ function $(f, L, E) {
2561
+ const { value: x, color: I } = f, D = x >= 0 ? v(x) : i(x), R = x >= 0 ? m(x) : h(x), W = x >= 0 ? g(L, E) : b(L, E), { x: ee, y: V } = d(x, E, W);
2565
2562
  return {
2566
- classList: [`lume-fill--${$ ?? e.value[T].color ?? Object.values(le)[T]}`, ...a],
2563
+ classList: [`lume-fill--${I ?? e.value[L].color ?? Object.values(le)[L]}`, ...a],
2567
2564
  width: D,
2568
- height: B,
2569
- x: oe,
2570
- y: P,
2565
+ height: R,
2566
+ x: ee,
2567
+ y: V,
2571
2568
  isFaded: l.value !== -1 && l.value !== E,
2572
- isNegative: w < 0
2569
+ isNegative: x < 0
2573
2570
  };
2574
2571
  }
2575
- return { barAttributeGenerator: x };
2572
+ return { barAttributeGenerator: $ };
2576
2573
  }
2577
- const ar = {
2574
+ const or = {
2578
2575
  class: "lume-bar-group",
2579
2576
  "data-j-bars-group": ""
2580
- }, rr = ["onMouseenter"], lr = {
2581
- single: er,
2582
- grouped: tr,
2583
- stacked: or
2584
- }, rt = /* @__PURE__ */ Z({
2577
+ }, ar = ["onMouseenter"], rr = {
2578
+ single: qa,
2579
+ grouped: er,
2580
+ stacked: nr
2581
+ }, lt = /* @__PURE__ */ Z({
2585
2582
  __name: "lume-bar-group",
2586
2583
  props: {
2587
2584
  ...Ge(),
@@ -2589,7 +2586,7 @@ const ar = {
2589
2586
  type: [String, Array],
2590
2587
  default: () => []
2591
2588
  },
2592
- ...Ja(!0),
2589
+ ...Ka(!0),
2593
2590
  transition: {
2594
2591
  type: Boolean,
2595
2592
  default: !0
@@ -2608,179 +2605,179 @@ const ar = {
2608
2605
  classList: v
2609
2606
  } = q(n);
2610
2607
  Ee("chartID");
2611
- const { groupedData: i } = Yt(o), { barXScale: m, barYScale: h } = qa(s, d, a), g = p(() => typeof v.value == "string" ? [v.value] : v.value), A = p(() => {
2612
- const T = Qa(o, c), { barAttributeGenerator: E } = lr[T](
2608
+ const { emitInternalEvent: i } = me(), { groupedData: m } = Yt(o), { barXScale: h, barYScale: g } = Qa(s, d, a), b = p(() => typeof v.value == "string" ? [v.value] : v.value), $ = p(() => {
2609
+ const E = Ja(o, c), { barAttributeGenerator: x } = rr[E](
2613
2610
  o,
2614
- m,
2615
2611
  h,
2612
+ g,
2616
2613
  a,
2617
2614
  l,
2618
- g.value
2615
+ b.value
2619
2616
  );
2620
- return E;
2621
- }), x = p(() => {
2617
+ return x;
2618
+ }), f = p(() => {
2622
2619
  if (u.value)
2623
2620
  return a.value === H.HORIZONTAL ? "width" : "height";
2624
2621
  });
2625
- async function f(T) {
2626
- t("lume__internal--hover", T);
2622
+ async function L(E) {
2623
+ t("lume__internal--hover", E), i("lume__internal--hover", E);
2627
2624
  }
2628
- return (T, E) => (y(), O("g", ar, [
2629
- (y(!0), O(J, null, z(r(i), (w, $) => (y(), O("g", {
2630
- key: $,
2631
- onMouseenter: (D) => f($)
2625
+ return (E, x) => (y(), O("g", or, [
2626
+ (y(!0), O(J, null, z(r(m), (I, D) => (y(), O("g", {
2627
+ key: D,
2628
+ onMouseenter: (R) => L(D)
2632
2629
  }, [
2633
- (y(!0), O(J, null, z(w, (D, B) => (y(), W(r(nt), C(r(A)(D, B, $, w), {
2634
- key: `bar-${B}`,
2635
- transition: r(x),
2630
+ (y(!0), O(J, null, z(I, (R, W) => (y(), U(r(ot), C(r($)(R, W, D, I), {
2631
+ key: `bar-${W}`,
2632
+ transition: r(f),
2636
2633
  "data-j-lume-bar": "",
2637
- onClick: (U) => t("bar-click", {
2638
- index: $,
2639
- datasetIndex: B,
2640
- event: U
2634
+ onClick: (ee) => t("bar-click", {
2635
+ index: D,
2636
+ datasetIndex: W,
2637
+ event: ee
2641
2638
  })
2642
2639
  }), null, 16, ["transition", "onClick"]))), 128))
2643
- ], 40, rr))), 128))
2640
+ ], 40, ar))), 128))
2644
2641
  ]));
2645
2642
  }
2646
- }), ur = {
2643
+ }), lr = {
2647
2644
  [H.VERTICAL]: {
2648
2645
  withTooltip: !0,
2649
2646
  xAxisOptions: {},
2650
2647
  yAxisOptions: { gridLines: !0 },
2651
- margins: _e.VERTICAL
2648
+ margins: ye.VERTICAL
2652
2649
  },
2653
2650
  [H.HORIZONTAL]: {
2654
2651
  withTooltip: !0,
2655
2652
  xAxisOptions: { gridLines: !0 },
2656
2653
  yAxisOptions: { gridLines: !1 },
2657
- margins: _e.HORIZONTAL
2654
+ margins: ye.HORIZONTAL
2658
2655
  }
2659
- }, Sr = /* @__PURE__ */ Z({
2656
+ }, Mr = /* @__PURE__ */ Z({
2660
2657
  __name: "lume-single-bar-chart",
2661
2658
  props: {
2662
- ...$e(qe)
2659
+ ...$e(et)
2663
2660
  },
2664
2661
  setup(e, { emit: t }) {
2665
- const n = e, { componentEventPropagator: o } = be(), l = ke(ae()), { orientation: a, options: u } = q(n), c = p(
2666
- () => ur[a.value || H.VERTICAL]
2662
+ const n = e, { componentEventPropagator: o } = me(), l = be(ae()), { orientation: a, options: u } = q(n), c = p(
2663
+ () => lr[a.value || H.VERTICAL]
2667
2664
  // needs to be computed so that default options are reactive
2668
2665
  ), { allOptions: s } = se(u, c);
2669
- return (d, v) => (y(), W(r(xe), C(n, {
2666
+ return (d, v) => (y(), U(r(xe), C(n, {
2670
2667
  "chart-type": "single-bar",
2671
2668
  options: r(s),
2672
2669
  "data-j-single-bar-chart": ""
2673
- }, ne(r(o))), ie({
2674
- groups: V((i) => [
2675
- re(r(rt), C(i, { orientation: r(a) }, ne(r(o))), null, 16, ["orientation"])
2670
+ }, oe(r(o))), ie({
2671
+ groups: P((i) => [
2672
+ re(r(lt), C(i, { orientation: r(a) }, oe(r(o))), null, 16, ["orientation"])
2676
2673
  ]),
2677
2674
  _: 2
2678
2675
  }, [
2679
2676
  z(r(l), (i, m) => ({
2680
2677
  name: m,
2681
- fn: V((h) => [
2678
+ fn: P((h) => [
2682
2679
  S(d.$slots, m, de(ve(h || {})))
2683
2680
  ])
2684
2681
  }))
2685
2682
  ]), 1040, ["options"]));
2686
2683
  }
2687
- }), ir = {
2684
+ }), ur = {
2688
2685
  [H.VERTICAL]: {
2689
2686
  withTooltip: !0,
2690
2687
  xAxisOptions: {},
2691
2688
  yAxisOptions: { gridLines: !0 },
2692
- margins: _e.VERTICAL
2689
+ margins: ye.VERTICAL
2693
2690
  },
2694
2691
  [H.HORIZONTAL]: {
2695
2692
  withTooltip: !0,
2696
2693
  xAxisOptions: { gridLines: !0 },
2697
2694
  yAxisOptions: { gridLines: !1 },
2698
- margins: _e.HORIZONTAL,
2695
+ margins: ye.HORIZONTAL,
2699
2696
  tooltipOptions: { position: "right" }
2700
2697
  }
2701
- }, Cr = /* @__PURE__ */ Z({
2698
+ }, Sr = /* @__PURE__ */ Z({
2702
2699
  __name: "lume-grouped-bar-chart",
2703
2700
  props: {
2704
2701
  ...$e()
2705
2702
  },
2706
2703
  setup(e, { emit: t }) {
2707
- const n = e, { componentEventPropagator: o } = be(), l = ke(ae()), { orientation: a, options: u } = q(n), c = p(
2708
- () => ir[a.value || H.VERTICAL]
2704
+ const n = e, { componentEventPropagator: o } = me(), l = be(ae()), { orientation: a, options: u } = q(n), c = p(
2705
+ () => ur[a.value || H.VERTICAL]
2709
2706
  // needs to be computed so that default options are reactive
2710
2707
  ), { allOptions: s } = se(
2711
2708
  u,
2712
2709
  c
2713
2710
  );
2714
- return (d, v) => (y(), W(r(xe), C(n, {
2711
+ return (d, v) => (y(), U(r(xe), C(n, {
2715
2712
  "chart-type": "grouped-bar",
2716
2713
  options: r(s),
2717
2714
  "data-j-grouped-bar-chart": ""
2718
- }, ne(r(o))), ie({
2719
- groups: V((i) => [
2720
- re(r(rt), C(i, { type: "grouped" }, ne(r(o))), null, 16)
2715
+ }, oe(r(o))), ie({
2716
+ groups: P((i) => [
2717
+ re(r(lt), C(i, { type: "grouped" }, oe(r(o))), null, 16)
2721
2718
  ]),
2722
2719
  _: 2
2723
2720
  }, [
2724
2721
  z(r(l), (i, m) => ({
2725
2722
  name: m,
2726
- fn: V((h) => [
2723
+ fn: P((h) => [
2727
2724
  S(d.$slots, m, de(ve(h || {})))
2728
2725
  ])
2729
2726
  }))
2730
2727
  ]), 1040, ["options"]));
2731
2728
  }
2732
- }), sr = {
2729
+ }), ir = {
2733
2730
  [H.VERTICAL]: {
2734
2731
  withTooltip: !0,
2735
2732
  xAxisOptions: {},
2736
2733
  yAxisOptions: { gridLines: !0 },
2737
- margins: _e.VERTICAL
2734
+ margins: ye.VERTICAL
2738
2735
  },
2739
2736
  [H.HORIZONTAL]: {
2740
2737
  withTooltip: !0,
2741
2738
  xAxisOptions: { gridLines: !0 },
2742
2739
  yAxisOptions: { gridLines: !1 },
2743
- margins: _e.HORIZONTAL,
2740
+ margins: ye.HORIZONTAL,
2744
2741
  tooltipOptions: { position: "right" }
2745
2742
  }
2746
- }, Gr = /* @__PURE__ */ Z({
2743
+ }, Cr = /* @__PURE__ */ Z({
2747
2744
  __name: "lume-stacked-bar-chart",
2748
2745
  props: {
2749
2746
  ...$e()
2750
2747
  },
2751
2748
  setup(e, { emit: t }) {
2752
- const n = e, { componentEventPropagator: o } = be(), l = ke(ae()), { data: a, orientation: u, options: c } = q(n), s = p(
2753
- () => sr[u.value || H.VERTICAL]
2749
+ const n = e, { componentEventPropagator: o } = me(), l = be(ae()), { data: a, orientation: u, options: c } = q(n), s = p(
2750
+ () => ir[u.value || H.VERTICAL]
2754
2751
  // needs to be computed so that default options are reactive
2755
2752
  ), { allOptions: d } = se(
2756
2753
  c,
2757
2754
  s
2758
- ), { internalData: v } = at(a), { groupedData: i } = Yt(v), { stackedXScaleGenerator: m, stackedYScaleGenerator: h } = nr(
2755
+ ), { internalData: v } = rt(a), { groupedData: i } = Yt(v), { stackedXScaleGenerator: m, stackedYScaleGenerator: h } = tr(
2759
2756
  i,
2760
2757
  u,
2761
2758
  c
2762
2759
  );
2763
- return (g, A) => (y(), W(r(xe), C(n, {
2760
+ return (g, b) => (y(), U(r(xe), C(n, {
2764
2761
  "chart-type": "stacked-bar",
2765
2762
  options: r(d),
2766
2763
  "x-scale": r(m),
2767
2764
  "y-scale": r(h),
2768
2765
  "data-j-stacked-bar-chart": ""
2769
- }, ne(r(o))), ie({
2770
- groups: V((x) => [
2771
- re(r(rt), C(x, { type: "stacked" }, ne(r(o))), null, 16)
2766
+ }, oe(r(o))), ie({
2767
+ groups: P(($) => [
2768
+ re(r(lt), C($, { type: "stacked" }, oe(r(o))), null, 16)
2772
2769
  ]),
2773
2770
  _: 2
2774
2771
  }, [
2775
- z(r(l), (x, f) => ({
2772
+ z(r(l), ($, f) => ({
2776
2773
  name: f,
2777
- fn: V((T) => [
2778
- S(g.$slots, f, de(ve(T || {})))
2774
+ fn: P((L) => [
2775
+ S(g.$slots, f, de(ve(L || {})))
2779
2776
  ])
2780
2777
  }))
2781
2778
  ]), 1040, ["options", "x-scale", "y-scale"]));
2782
2779
  }
2783
- }), cr = ["d", "stroke-width"], dr = 2, vr = /* @__PURE__ */ Z({
2780
+ }), sr = ["d", "stroke-width"], cr = 2, dr = /* @__PURE__ */ Z({
2784
2781
  __name: "lume-line",
2785
2782
  props: {
2786
2783
  pathDefinition: {
@@ -2789,7 +2786,7 @@ const ar = {
2789
2786
  },
2790
2787
  width: {
2791
2788
  type: Number,
2792
- default: dr
2789
+ default: cr
2793
2790
  },
2794
2791
  color: {
2795
2792
  type: String,
@@ -2818,23 +2815,23 @@ const ar = {
2818
2815
  return fe(() => Ce(n.value)), (o, l) => (y(), O("path", {
2819
2816
  ref_key: "root",
2820
2817
  ref: n,
2821
- class: ee(["lume-line", {
2818
+ class: te(["lume-line", {
2822
2819
  [`lume-stroke--${e.color}`]: !0,
2823
2820
  "lume-line--dashed": e.dashed,
2824
2821
  "lume-line--transition": e.transition
2825
2822
  }]),
2826
2823
  d: e.pathDefinition,
2827
2824
  "stroke-width": e.width,
2828
- style: It({
2825
+ style: wt({
2829
2826
  animationDelay: e.transition && e.animationDelay + "s",
2830
2827
  animationDuration: e.transition && e.animationDuration + "s"
2831
2828
  }),
2832
2829
  "data-j-line": "",
2833
2830
  onClick: l[0] || (l[0] = (a) => t("click", a))
2834
- }, null, 14, cr));
2831
+ }, null, 14, sr));
2835
2832
  }
2836
2833
  });
2837
- const pr = /* @__PURE__ */ Q(vr, [["__scopeId", "data-v-08896455"]]), fr = ["cx", "cy", "r", "stroke-width"], mr = 4, hr = /* @__PURE__ */ Z({
2834
+ const vr = /* @__PURE__ */ Q(dr, [["__scopeId", "data-v-08896455"]]), pr = ["cx", "cy", "r", "stroke-width"], fr = 4, mr = /* @__PURE__ */ Z({
2838
2835
  __name: "lume-point",
2839
2836
  props: {
2840
2837
  x: { type: Number, required: !0 },
@@ -2845,7 +2842,7 @@ const pr = /* @__PURE__ */ Q(vr, [["__scopeId", "data-v-08896455"]]), fr = ["cx"
2845
2842
  },
2846
2843
  radius: {
2847
2844
  type: Number,
2848
- default: mr
2845
+ default: fr
2849
2846
  },
2850
2847
  active: {
2851
2848
  type: Boolean,
@@ -2858,17 +2855,17 @@ const pr = /* @__PURE__ */ Q(vr, [["__scopeId", "data-v-08896455"]]), fr = ["cx"
2858
2855
  return fe(() => Ce(o.value)), (a, u) => (y(), O("circle", {
2859
2856
  ref_key: "root",
2860
2857
  ref: o,
2861
- class: ee(["lume-point", `lume-stroke--${e.color}`]),
2858
+ class: te(["lume-point", `lume-stroke--${e.color}`]),
2862
2859
  cx: e.x,
2863
2860
  cy: e.y,
2864
2861
  r: e.active ? e.radius : 0,
2865
2862
  "stroke-width": r(l),
2866
2863
  "data-j-point": "",
2867
2864
  onClick: u[0] || (u[0] = (c) => t("click", c))
2868
- }, null, 10, fr));
2865
+ }, null, 10, pr));
2869
2866
  }
2870
2867
  });
2871
- const gr = /* @__PURE__ */ Q(hr, [["__scopeId", "data-v-9bacbd7d"]]);
2868
+ const hr = /* @__PURE__ */ Q(mr, [["__scopeId", "data-v-9bacbd7d"]]);
2872
2869
  function Kt(e) {
2873
2870
  function t(a) {
2874
2871
  let u = null;
@@ -2897,11 +2894,11 @@ function Kt(e) {
2897
2894
  );
2898
2895
  if (d) {
2899
2896
  const m = d[0] - 1, h = d[d.length - 1] + 1;
2900
- let g = (v = a.values[m]) == null ? void 0 : v.value, A = (i = a.values[h]) == null ? void 0 : i.value;
2901
- return g == null && (g = A), A == null && (A = g), {
2897
+ let g = (v = a.values[m]) == null ? void 0 : v.value, b = (i = a.values[h]) == null ? void 0 : i.value;
2898
+ return g == null && (g = b), b == null && (b = g), {
2902
2899
  value: n(
2903
2900
  g,
2904
- A,
2901
+ b,
2905
2902
  d.length,
2906
2903
  d.indexOf(s)
2907
2904
  ),
@@ -2913,26 +2910,26 @@ function Kt(e) {
2913
2910
  };
2914
2911
  })) };
2915
2912
  }
2916
- function _r(e, t) {
2913
+ function gr(e, t) {
2917
2914
  const n = e.bandwidth() / 2;
2918
2915
  return (o, l) => e(e.domain()[t + (l - 1)]) + n;
2919
2916
  }
2920
- function yr(e, t) {
2917
+ function _r(e, t) {
2921
2918
  return (n, o) => e(t + (o - 1));
2922
2919
  }
2923
- function kr(e, t, n, o) {
2924
- return vn().x(
2925
- ye(n) ? _r(n, e) : yr(n, e)
2920
+ function yr(e, t, n, o) {
2921
+ return dn().x(
2922
+ ke(n) ? gr(n, e) : _r(n, e)
2926
2923
  ).y((a) => o(a))(t);
2927
2924
  }
2928
- const br = {
2925
+ const kr = {
2929
2926
  class: "lume-line-group",
2930
2927
  "data-j-lume-line-group": ""
2931
- }, Ar = { class: "lume-line-group__lines" }, Tr = {
2928
+ }, br = { class: "lume-line-group__lines" }, Ar = {
2932
2929
  key: 0,
2933
2930
  class: "lume-line-group__points",
2934
2931
  "data-j-lume-line-group__points": ""
2935
- }, Lr = 1, Or = /* @__PURE__ */ Z({
2932
+ }, Tr = 1, Lr = /* @__PURE__ */ Z({
2936
2933
  __name: "lume-line-group",
2937
2934
  props: {
2938
2935
  ...Ge(),
@@ -2958,144 +2955,144 @@ const br = {
2958
2955
  ), d = p(() => {
2959
2956
  if (o.value.every((D) => D.isDashed))
2960
2957
  return o.value;
2961
- const { computedLineData: $ } = Kt(o);
2962
- return l.value.withTooltip !== !1 && (c != null && c.value) && s($.value), $.value;
2958
+ const { computedLineData: I } = Kt(o);
2959
+ return l.value.withTooltip !== !1 && (c != null && c.value) && s(I.value), I.value;
2963
2960
  }), v = p(() => {
2964
2961
  if (n.hoveredIndex === -1)
2965
2962
  return;
2966
- const $ = On(
2963
+ const I = Ln(
2967
2964
  d.value,
2968
2965
  n.hoveredIndex
2969
2966
  );
2970
2967
  return {
2971
- d: `M ${We(a.value, n.hoveredIndex)},${u.value.range()[1]}
2972
- V ${u.value($)}`
2968
+ d: `M ${Ue(a.value, n.hoveredIndex)},${u.value.range()[1]}
2969
+ V ${u.value(I)}`
2973
2970
  // Move to X index, Vertical line to the highest point
2974
2971
  };
2975
2972
  }), i = p(
2976
- () => a.value && Lr / ($n(a.value) - 1)
2973
+ () => a.value && Tr / (On(a.value) - 1)
2977
2974
  // Subtracting the first line (read below)
2978
2975
  ), m = p(
2979
2976
  () => {
2980
- var $;
2981
- return (($ = l.value) == null ? void 0 : $.lineWidth) * 2 || void 0;
2977
+ var I;
2978
+ return ((I = l.value) == null ? void 0 : I.lineWidth) * 2 || void 0;
2982
2979
  }
2983
2980
  // If no `lineWidth`, returns NaN which needs to be undefined
2984
2981
  ), h = p(
2985
2982
  () => a.value.bandwidth() / 2
2986
- ), g = p(() => a.value.domain()), A = p(
2983
+ ), g = p(() => a.value.domain()), b = p(
2987
2984
  () => l.value.withPoints ?? n.withPoints
2988
2985
  );
2989
- function x($) {
2990
- return d.value[$].values;
2986
+ function $(I) {
2987
+ return d.value[I].values;
2991
2988
  }
2992
- function f($, D) {
2993
- var U, oe;
2994
- const B = $ === 0 ? [] : [
2995
- (U = x(D)[$ - 1]) == null ? void 0 : U.value,
2996
- (oe = x(D)[$]) == null ? void 0 : oe.value
2989
+ function f(I, D) {
2990
+ var W, ee;
2991
+ const R = I === 0 ? [] : [
2992
+ (W = $(D)[I - 1]) == null ? void 0 : W.value,
2993
+ (ee = $(D)[I]) == null ? void 0 : ee.value
2997
2994
  ];
2998
- return kr(
2999
- $,
3000
- B,
2995
+ return yr(
2996
+ I,
2997
+ R,
3001
2998
  a.value,
3002
2999
  u.value
3003
3000
  ) || "";
3004
3001
  }
3005
- function T($) {
3002
+ function L(I) {
3006
3003
  return {
3007
- animationDelay: $ < 2 ? 0 : ($ - 1) * i.value,
3004
+ animationDelay: I < 2 ? 0 : (I - 1) * i.value,
3008
3005
  animationDuration: i.value
3009
3006
  };
3010
3007
  }
3011
- function E($, D) {
3012
- var U;
3013
- const B = (U = x(D)[$]) == null ? void 0 : U.value;
3008
+ function E(I, D) {
3009
+ var W;
3010
+ const R = (W = $(D)[I]) == null ? void 0 : W.value;
3014
3011
  return {
3015
- x: ye(a.value) ? n.xScale(g.value[$]) + h.value : n.xScale($),
3016
- y: u.value(B)
3012
+ x: ke(a.value) ? n.xScale(g.value[I]) + h.value : n.xScale(I),
3013
+ y: u.value(R)
3017
3014
  };
3018
3015
  }
3019
- function w($) {
3020
- return n.hoveredIndex === $;
3016
+ function x(I) {
3017
+ return n.hoveredIndex === I;
3021
3018
  }
3022
- return ($, D) => (y(), O("g", br, [
3019
+ return (I, D) => (y(), O("g", kr, [
3023
3020
  G("path", C(r(v), {
3024
3021
  class: "lume-line-group__overlay-line",
3025
3022
  "data-j-lume-line-group__overlay-line": ""
3026
3023
  }), null, 16),
3027
- (y(!0), O(J, null, z(r(d), (B, U) => (y(), O("g", {
3028
- key: B.label,
3024
+ (y(!0), O(J, null, z(r(d), (R, W) => (y(), O("g", {
3025
+ key: R.label,
3029
3026
  class: "lume-line-group__group"
3030
3027
  }, [
3031
- G("g", Ar, [
3032
- (y(!0), O(J, null, z(B.values, (oe, P) => (y(), W(r(pr), C(T(P), {
3033
- key: `line-${P}`,
3034
- color: B.color,
3035
- dashed: B.isDashed(P),
3036
- "path-definition": f(P, U),
3028
+ G("g", br, [
3029
+ (y(!0), O(J, null, z(R.values, (ee, V) => (y(), U(r(vr), C(L(V), {
3030
+ key: `line-${V}`,
3031
+ color: R.color,
3032
+ dashed: R.isDashed(V),
3033
+ "path-definition": f(V, W),
3037
3034
  transition: e.transition,
3038
3035
  width: r(l).lineWidth,
3039
- onClick: (K) => t("line-click", { index: P, datasetIndex: U, event: K })
3036
+ onClick: (K) => t("line-click", { index: V, datasetIndex: W, event: K })
3040
3037
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3041
3038
  ]),
3042
- r(A) ? (y(), O("g", Tr, [
3043
- (y(!0), O(J, null, z(B.values, (oe, P) => (y(), W(r(gr), C(E(P, U), {
3044
- key: `point-${P}`,
3045
- active: w(P),
3046
- color: B.color,
3047
- index: P,
3039
+ r(b) ? (y(), O("g", Ar, [
3040
+ (y(!0), O(J, null, z(R.values, (ee, V) => (y(), U(r(hr), C(E(V, W), {
3041
+ key: `point-${V}`,
3042
+ active: x(V),
3043
+ color: R.color,
3044
+ index: V,
3048
3045
  radius: r(m),
3049
- onClick: (K) => t("point-click", { index: P, datasetIndex: U, event: K })
3046
+ onClick: (K) => t("point-click", { index: V, datasetIndex: W, event: K })
3050
3047
  }), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
3051
3048
  ])) : F("", !0)
3052
3049
  ]))), 128))
3053
3050
  ]));
3054
3051
  }
3055
3052
  });
3056
- const Jt = /* @__PURE__ */ Q(Or, [["__scopeId", "data-v-c4d7f0ca"]]), $r = {
3057
- margins: _e.VERTICAL,
3053
+ const Jt = /* @__PURE__ */ Q(Lr, [["__scopeId", "data-v-c4d7f0ca"]]), Or = {
3054
+ margins: ye.VERTICAL,
3058
3055
  startOnZero: !0,
3059
3056
  withTooltip: !0,
3060
3057
  xAxisOptions: {},
3061
3058
  yAxisOptions: { gridLines: !0 }
3062
- }, jr = /* @__PURE__ */ Z({
3059
+ }, Gr = /* @__PURE__ */ Z({
3063
3060
  __name: "lume-line-chart",
3064
3061
  props: {
3065
3062
  ...$e(null, !1)
3066
3063
  },
3067
3064
  setup(e, { emit: t }) {
3068
- const n = e, { componentEventPropagator: o } = be(), l = ke(ae()), { options: a } = q(n), { allOptions: u } = se(a, $r);
3069
- return (c, s) => (y(), W(r(xe), C(n, {
3065
+ const n = e, { componentEventPropagator: o } = me(), l = be(ae()), { options: a } = q(n), { allOptions: u } = se(a, Or);
3066
+ return (c, s) => (y(), U(r(xe), C(n, {
3070
3067
  "chart-type": "line",
3071
3068
  options: r(u),
3072
3069
  "data-j-lume-line-chart": ""
3073
- }, ne(r(o))), ie({
3074
- groups: V((d) => [
3075
- re(r(Jt), C(d, ne(r(o))), null, 16)
3070
+ }, oe(r(o))), ie({
3071
+ groups: P((d) => [
3072
+ re(r(Jt), C(d, oe(r(o))), null, 16)
3076
3073
  ]),
3077
3074
  _: 2
3078
3075
  }, [
3079
3076
  z(r(l), (d, v) => ({
3080
3077
  name: v,
3081
- fn: V((i) => [
3078
+ fn: P((i) => [
3082
3079
  S(c.$slots, v, de(ve(i || {})))
3083
3080
  ])
3084
3081
  }))
3085
3082
  ]), 1040, ["options"]));
3086
3083
  }
3087
3084
  });
3088
- function xr(e) {
3085
+ function $r(e) {
3089
3086
  return { areaPathDefinition: p(
3090
3087
  () => function(n, o) {
3091
3088
  if (!n || !o)
3092
3089
  return;
3093
3090
  const l = e.value[0].values;
3094
- return pn().x((a, u) => n(u)).y0(o(Math.min(...o.domain()))).y1((a) => o(a.value))(l);
3091
+ return vn().x((a, u) => n(u)).y0(o(Math.min(...o.domain()))).y1((a) => o(a.value))(l);
3095
3092
  }
3096
3093
  ) };
3097
3094
  }
3098
- const wr = {
3095
+ const xr = {
3099
3096
  margins: {
3100
3097
  top: 0,
3101
3098
  right: 0,
@@ -3109,82 +3106,82 @@ const wr = {
3109
3106
  tooltipOptions: {
3110
3107
  showTitle: !1
3111
3108
  }
3112
- }, Ir = ["d"], Er = /* @__PURE__ */ Z({
3109
+ }, Ir = ["d"], wr = /* @__PURE__ */ Z({
3113
3110
  __name: "lume-sparkline-chart",
3114
3111
  props: {
3115
- ...ot(null),
3112
+ ...at(null),
3116
3113
  ...Ne()
3117
3114
  },
3118
3115
  setup(e, { expose: t, emit: n }) {
3119
- const o = e, { componentEventPropagator: l } = be(), a = ke(ae()), { data: u, options: c } = q(o), { internalData: s } = at(u), { allOptions: d } = se(c, wr), { computedLineData: v } = Kt(s), { areaPathDefinition: i } = xr(v), m = p(() => s.value[0].color), h = p(
3116
+ const o = e, { componentEventPropagator: l } = me(), a = be(ae()), { data: u, options: c } = q(o), { internalData: s } = rt(u), { allOptions: d } = se(c, xr), { computedLineData: v } = Kt(s), { areaPathDefinition: i } = $r(v), m = p(() => s.value[0].color), h = p(
3120
3117
  () => u.value[0].areaColor || m.value
3121
3118
  );
3122
- function g(x) {
3119
+ function g($) {
3123
3120
  return {
3124
- ...x,
3121
+ ...$,
3125
3122
  noMinSize: !0
3126
3123
  };
3127
3124
  }
3128
- function A(x, f, T) {
3129
- return Ie().range([0, T.width]).domain([0, x[0].values.length - 1]);
3125
+ function b($, f, L) {
3126
+ return we().range([0, L.width]).domain([0, $[0].values.length - 1]);
3130
3127
  }
3131
3128
  return t({
3132
3129
  areaPathDefinition: i
3133
- }), (x, f) => (y(), W(r(xe), C(o, {
3130
+ }), ($, f) => (y(), U(r(xe), C(o, {
3134
3131
  "chart-type": "line",
3135
3132
  options: g(r(d)),
3136
- "x-scale": A
3137
- }, ne(r(l))), ie({
3138
- groups: V((T) => [
3133
+ "x-scale": b
3134
+ }, oe(r(l))), ie({
3135
+ groups: P((L) => [
3139
3136
  r(d).showArea ? (y(), O("path", {
3140
3137
  key: 0,
3141
- class: ee([
3138
+ class: te([
3142
3139
  "sparkline-chart__area",
3143
3140
  r(c).withTransition !== !1 ? "sparkline-chart__area--transition" : "",
3144
3141
  `lume-fill--${r(h) || r(m)}`,
3145
3142
  "lume-fill--faded"
3146
3143
  ]),
3147
- d: r(i)(T.xScale, T.yScale),
3144
+ d: r(i)(L.xScale, L.yScale),
3148
3145
  "data-j-sparkline__area": ""
3149
3146
  }, null, 10, Ir)) : F("", !0),
3150
- re(r(Jt), C(T, { "with-points": !1 }, ne(r(l))), null, 16)
3147
+ re(r(Jt), C(L, { "with-points": !1 }, oe(r(l))), null, 16)
3151
3148
  ]),
3152
3149
  _: 2
3153
3150
  }, [
3154
- z(r(a), (T, E) => ({
3151
+ z(r(a), (L, E) => ({
3155
3152
  name: E,
3156
- fn: V((w) => [
3157
- S(x.$slots, E, de(ve(w || {})), void 0, !0)
3153
+ fn: P((x) => [
3154
+ S($.$slots, E, de(ve(x || {})), void 0, !0)
3158
3155
  ])
3159
3156
  }))
3160
3157
  ]), 1040, ["options"]));
3161
3158
  }
3162
3159
  });
3163
- const Vr = /* @__PURE__ */ Q(Er, [["__scopeId", "data-v-c681fff6"]]);
3160
+ const jr = /* @__PURE__ */ Q(wr, [["__scopeId", "data-v-c681fff6"]]);
3164
3161
  export {
3165
- Rr as LumeAlluvialDiagram,
3166
- Ua as LumeAlluvialGroup,
3167
- ca as LumeAlluvialNodeLabel,
3168
- pa as LumeAlluvialNodeValue,
3169
- ft as LumeAxis,
3170
- nt as LumeBar,
3171
- Mr as LumeBarChart,
3172
- rt as LumeBarGroup,
3162
+ Br as LumeAlluvialDiagram,
3163
+ Wa as LumeAlluvialGroup,
3164
+ sa as LumeAlluvialNodeLabel,
3165
+ va as LumeAlluvialNodeValue,
3166
+ mt as LumeAxis,
3167
+ ot as LumeBar,
3168
+ Rr as LumeBarChart,
3169
+ lt as LumeBarGroup,
3173
3170
  xe as LumeChart,
3174
- no as LumeChartContainer,
3175
- mt as LumeChartLegend,
3176
- Cr as LumeGroupedBarChart,
3177
- pr as LumeLine,
3178
- jr as LumeLineChart,
3171
+ to as LumeChartContainer,
3172
+ ht as LumeChartLegend,
3173
+ Sr as LumeGroupedBarChart,
3174
+ vr as LumeLine,
3175
+ Gr as LumeLineChart,
3179
3176
  Jt as LumeLineGroup,
3180
- Vo as LumeOverlayGroup,
3181
- gr as LumePoint,
3182
- Sr as LumeSingleBarChart,
3183
- Vr as LumeSparklineChart,
3184
- Gr as LumeStackedBarChart,
3185
- $o as LumeTooltip,
3186
- yo as LumeTooltipItem,
3187
- fo as LumeTooltipSummary,
3188
- io as LumeTooltipTitle
3177
+ jo as LumeOverlayGroup,
3178
+ hr as LumePoint,
3179
+ Mr as LumeSingleBarChart,
3180
+ jr as LumeSparklineChart,
3181
+ Cr as LumeStackedBarChart,
3182
+ Oo as LumeTooltip,
3183
+ _o as LumeTooltipItem,
3184
+ po as LumeTooltipSummary,
3185
+ uo as LumeTooltipTitle
3189
3186
  };
3190
3187
  //# sourceMappingURL=index.js.map