@adyen/lume 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import N, { isRef as Et, computed as v, ref as k, watch as I, defineComponent as S, toRefs as w, reactive as it, onBeforeMount as ne, onMounted as j, onBeforeUnmount as mt, watchEffect as Pt, toRef as re, defineAsyncComponent as pt } from "vue";
2
- import { sankeyLinkHorizontal as ae, sankey as oe, sankeyJustify as se } from "d3-sankey";
3
- import { ticks as ie, format as le, line as ue, scaleBand as J, scaleLinear as Q, area as ce } from "d3";
4
- import { createPopper as de } from "@popperjs/core";
1
+ import N, { isRef as Et, computed as v, ref as k, watch as I, defineComponent as S, toRefs as w, reactive as it, onBeforeMount as re, onMounted as j, onBeforeUnmount as mt, watchEffect as Pt, toRef as ae, defineAsyncComponent as pt } from "vue";
2
+ import { sankeyLinkHorizontal as oe, sankey as se, sankeyJustify as ie } from "d3-sankey";
3
+ import { ticks as le, format as ue, line as ce, scaleBand as J, scaleLinear as Q, area as de } from "d3";
4
+ import { createPopper as fe } from "@popperjs/core";
5
5
  function at(e) {
6
6
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? at = function(t) {
7
7
  return typeof t;
@@ -9,35 +9,35 @@ function at(e) {
9
9
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
10
10
  }, at(e);
11
11
  }
12
- function fe(e) {
13
- return pe(e) || ve(e) || he();
14
- }
15
12
  function pe(e) {
13
+ return ve(e) || he(e) || _e();
14
+ }
15
+ function ve(e) {
16
16
  if (Array.isArray(e)) {
17
17
  for (var t = 0, n = new Array(e.length); t < e.length; t++)
18
18
  n[t] = e[t];
19
19
  return n;
20
20
  }
21
21
  }
22
- function ve(e) {
22
+ function he(e) {
23
23
  if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]")
24
24
  return Array.from(e);
25
25
  }
26
- function he() {
26
+ function _e() {
27
27
  throw new TypeError("Invalid attempt to spread non-iterable instance");
28
28
  }
29
29
  var rt = typeof window < "u";
30
- function _e(e) {
30
+ function me(e) {
31
31
  return Array.isArray(e) || at(e) === "object" ? Object.freeze(e) : e;
32
32
  }
33
- function me(e) {
33
+ function ge(e) {
34
34
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
35
35
  return e.reduce(function(n, r) {
36
36
  var a = r.passengers[0], o = typeof a == "function" ? a(t) : r.passengers;
37
37
  return n.concat(o);
38
38
  }, []);
39
39
  }
40
- function ge(e, t) {
40
+ function ye(e, t) {
41
41
  return e.map(function(n, r) {
42
42
  return [r, n];
43
43
  }).sort(function(n, r) {
@@ -51,12 +51,12 @@ function St(e, t) {
51
51
  return e.hasOwnProperty(r) && (n[r] = e[r]), n;
52
52
  }, {});
53
53
  }
54
- var Bt = {}, ye = {}, be = {}, xe = N.extend({
54
+ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
55
55
  data: function() {
56
56
  return {
57
57
  transports: Bt,
58
- targets: ye,
59
- sources: be,
58
+ targets: be,
59
+ sources: xe,
60
60
  trackInstances: rt
61
61
  };
62
62
  },
@@ -68,12 +68,12 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
68
68
  var u = {
69
69
  to: n,
70
70
  from: r,
71
- passengers: _e(a),
71
+ passengers: me(a),
72
72
  order: l
73
73
  }, s = Object.keys(this.transports);
74
74
  s.indexOf(n) === -1 && N.set(this.transports, n, []);
75
75
  var i = this.$_getTransportIndex(u), f = this.transports[n].slice(0);
76
- i === -1 ? f.push(u) : f[i] = u, this.transports[n] = ge(f, function(c, p) {
76
+ i === -1 ? f.push(u) : f[i] = u, this.transports[n] = ye(f, function(c, p) {
77
77
  return c.order - p.order;
78
78
  });
79
79
  }
@@ -121,7 +121,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
121
121
  return -1;
122
122
  }
123
123
  }
124
- }), P = new xe(Bt), Ae = 1, Mt = N.extend({
124
+ }), P = new Ae(Bt), Oe = 1, Mt = N.extend({
125
125
  name: "portal",
126
126
  props: {
127
127
  disabled: {
@@ -130,7 +130,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
130
130
  name: {
131
131
  type: String,
132
132
  default: function() {
133
- return String(Ae++);
133
+ return String(Oe++);
134
134
  }
135
135
  },
136
136
  order: {
@@ -197,7 +197,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
197
197
  var n = {
198
198
  from: this.name,
199
199
  to: this.to,
200
- passengers: fe(t),
200
+ passengers: pe(t),
201
201
  order: this.order
202
202
  };
203
203
  P.open(n);
@@ -217,7 +217,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
217
217
  key: "v-portal-placeholder"
218
218
  });
219
219
  }
220
- }), Oe = N.extend({
220
+ }), Ht = N.extend({
221
221
  name: "portalTarget",
222
222
  props: {
223
223
  multiple: {
@@ -281,7 +281,7 @@ var Bt = {}, ye = {}, be = {}, xe = N.extend({
281
281
  return this.multiple ? t : t.length === 0 ? [] : [t[t.length - 1]];
282
282
  },
283
283
  passengers: function() {
284
- return me(this.ownTransports, this.slotProps);
284
+ return ge(this.ownTransports, this.slotProps);
285
285
  }
286
286
  },
287
287
  methods: {
@@ -391,7 +391,7 @@ N.extend({
391
391
  t.appendChild(o), t = o;
392
392
  }
393
393
  var l = St(this.$props, ke);
394
- l.slim = this.targetSlim, l.tag = this.targetTag, l.slotProps = this.targetSlotProps, l.name = this.to, this.portalTarget = new Oe({
394
+ l.slim = this.targetSlim, l.tag = this.targetTag, l.slotProps = this.targetSlotProps, l.name = this.to, this.portalTarget = new Ht({
395
395
  el: t,
396
396
  parent: this.$parent || this,
397
397
  propsData: l
@@ -427,7 +427,7 @@ N.extend({
427
427
  function Se() {
428
428
  return process.env.NODE_ENV === "production";
429
429
  }
430
- function Ht(e) {
430
+ function jt(e) {
431
431
  return (e == null ? void 0 : e.map(
432
432
  (t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
433
433
  ).flat()) || [];
@@ -438,10 +438,10 @@ function lt(e) {
438
438
  function ht(e) {
439
439
  return !!e && typeof e == "object" && !Array.isArray(e);
440
440
  }
441
- function jt(e, t) {
441
+ function Ft(e, t) {
442
442
  const n = structuredClone(e);
443
443
  return Object.entries(t).forEach(([r, a]) => {
444
- n[r] = ht(e[r]) && ht(a) ? jt(e[r], a) : a;
444
+ n[r] = ht(e[r]) && ht(a) ? Ft(e[r], a) : a;
445
445
  }), n;
446
446
  }
447
447
  function Le(e) {
@@ -463,7 +463,7 @@ const we = (e, t) => {
463
463
  throw new Error("Index exceeds length of at least one of the datasets");
464
464
  });
465
465
  };
466
- function Ft(e, t) {
466
+ function Gt(e, t) {
467
467
  var n;
468
468
  return we(e, t), ((n = e.reduce(
469
469
  (r, a) => {
@@ -492,7 +492,7 @@ function E(e) {
492
492
  var t;
493
493
  return typeof e == "string" || typeof e == "number" ? e : (t = e.id) != null ? t : e.label;
494
494
  }
495
- function Gt(e, t) {
495
+ function Vt(e, t) {
496
496
  return t.length && t.indexOf(e) === -1;
497
497
  }
498
498
  function Ne(e, t, n) {
@@ -518,7 +518,7 @@ const ut = () => ({
518
518
  function M(e, t) {
519
519
  return { allOptions: v(() => {
520
520
  const r = Et(t) ? t == null ? void 0 : t.value : t;
521
- return r ? jt(r, e.value) : e.value;
521
+ return r ? Ft(r, e.value) : e.value;
522
522
  }) };
523
523
  }
524
524
  const Re = 0.15;
@@ -565,7 +565,7 @@ const A = {
565
565
  bottom: 28,
566
566
  left: 24
567
567
  }
568
- }, Vt = "No data", Pe = 20, Be = 0.33, Me = 0.5, He = 1, xt = [
568
+ }, zt = "No data", Pe = 20, Be = 0.33, Me = 0.5, He = 1, xt = [
569
569
  "auto",
570
570
  "auto-start",
571
571
  "auto-end",
@@ -591,7 +591,7 @@ function At(e, t = !0) {
591
591
  function dt(e) {
592
592
  e != null && e.closest("svg") || At(ct.NotContainedInSvg);
593
593
  }
594
- const zt = {
594
+ const Wt = {
595
595
  gridLines: !1,
596
596
  withTitle: !0,
597
597
  showTicks: !0,
@@ -599,11 +599,11 @@ const zt = {
599
599
  tickFormat: null,
600
600
  tickPadding: 8
601
601
  }, Fe = {
602
- ...zt,
602
+ ...Wt,
603
603
  withTitle: !1,
604
604
  skip: !0
605
605
  }, Ge = {
606
- ...zt,
606
+ ...Wt,
607
607
  gridLines: !0
608
608
  }, Ve = 12, ze = 8, We = function(e, t, n) {
609
609
  const r = v(() => e.value.step() * e.value.paddingInner() / 2);
@@ -743,7 +743,7 @@ const zt = {
743
743
  x: "bottom",
744
744
  y: "left"
745
745
  }, Je = S({
746
- components: { VuePortal: Mt },
746
+ components: { VuePortal: Mt, VuePortalTarget: Ht },
747
747
  props: {
748
748
  scale: {
749
749
  type: Function,
@@ -792,13 +792,13 @@ const zt = {
792
792
  if (n.value.step)
793
793
  return n.value.domain();
794
794
  const { tickCount: T } = d.value, [C, B] = n.value.domain();
795
- return ie(C, B, T);
795
+ return le(C, B, T);
796
796
  }), g = v(() => {
797
797
  const { tickFormat: T } = d.value;
798
798
  let C = null;
799
799
  switch (typeof T) {
800
800
  case "string":
801
- return C = le(T), C;
801
+ return C = ue(T), C;
802
802
  case "function":
803
803
  return T;
804
804
  default:
@@ -827,7 +827,7 @@ const zt = {
827
827
  }
828
828
  ), i.value = !1;
829
829
  }
830
- return ne(async () => {
830
+ return re(async () => {
831
831
  D(), I(n, D, { flush: "sync" });
832
832
  }), j(() => dt(f.value)), {
833
833
  allOptions: d,
@@ -878,20 +878,20 @@ function L(e, t, n, r, a, o, l, u) {
878
878
  var Qe = function() {
879
879
  var t = this, n = t._self._c;
880
880
  return t._self._setupProxy, t.scale && !t.isLoading ? n("g", { ref: "root", staticClass: "axis", attrs: { transform: t.axisTransform, "data-j-axis": "" } }, [n("defs", [n("linearGradient", { attrs: { id: `${t.computedType}-gradient` } }, [n("stop", { attrs: { offset: "0%", "stop-color": "rgba(255,255,255,0)" } }), n("stop", { attrs: { offset: "10%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "90%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "100%", "stop-color": "rgba(255,255,255,0)" } })], 1)], 1), t._l(t.ticks, function(r, a) {
881
- return n("vue-portal", { key: r, attrs: { disabled: !t.isHovering(a), selector: `#${t.computedType}-hovered-portal` } }, [n("g", t._b({ staticClass: "axis__tick", class: {
881
+ return n("vue-portal", { key: r, attrs: { slim: "", disabled: !t.isHovering(a), to: `${t.computedType}-hovered-portal` } }, [n("g", t._b({ staticClass: "axis__tick", class: {
882
882
  "axis__tick--hovered": t.isHovering(a),
883
883
  "axis__tick--hidden": t.allOptions.skip && !t.showTick(a)
884
884
  }, attrs: { id: t.getTickId(a), "data-j-axis__tick": "" } }, "g", t.mixins.getTickGroupAttributes(r), !1), [n("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" }, on: { mouseover: function(o) {
885
885
  return t.onTickMouseover(a);
886
886
  } } }, [n("rect", t._b({ staticClass: "axis__ghost", attrs: { fill: `url(#${`${t.computedType}-gradient`})` } }, "rect", t.mixins.getTickGhostAttributes(), !1)), n("text", t._b({ ref: "tickRefs", refInFor: !0, staticClass: "axis__label" }, "text", t.mixins.getTickLabelAttributes(), !1), [t._v(" " + t._s(t.formatTick(r)) + " ")])]), t.allOptions.gridLines ? n("line", t._b({ staticClass: "axis__grid-line" }, "line", t.mixins.getGridLinesAttributes(), !1)) : t._e()])]);
887
- }), n("g", { attrs: { id: `${t.computedType}-hovered-portal` } })], 2) : t._e();
887
+ }), n("vue-portal-target", { attrs: { name: `${t.computedType}-hovered-portal`, slim: "" } })], 2) : t._e();
888
888
  }, tn = [], en = /* @__PURE__ */ L(
889
889
  Je,
890
890
  Qe,
891
891
  tn,
892
892
  !1,
893
893
  null,
894
- "cfc45ce1",
894
+ "79ac9ae8",
895
895
  null,
896
896
  null
897
897
  );
@@ -1055,7 +1055,7 @@ const hn = vn.exports, _n = S({
1055
1055
  () => a.value.showTitle !== !1 && e.title != null
1056
1056
  );
1057
1057
  function i() {
1058
- e.targetElement && t.value && (r.value = de(e.targetElement, t.value, {
1058
+ e.targetElement && t.value && (r.value = fe(e.targetElement, t.value, {
1059
1059
  placement: e.position,
1060
1060
  strategy: l.value,
1061
1061
  modifiers: u.value
@@ -1226,7 +1226,7 @@ const Ot = kn.exports, Sn = 1, Ln = S({
1226
1226
  e.xScale.domain()[e.index + (i - 1)]
1227
1227
  ) + a.value;
1228
1228
  }
1229
- const u = v(() => ue().x(Y(e.xScale) ? l : o).y((i) => e.yScale(i))(e.values));
1229
+ const u = v(() => ce().x(Y(e.xScale) ? l : o).y((i) => e.yScale(i))(e.values));
1230
1230
  return j(() => dt(t.value)), { animationDelay: r, animationDuration: n, pathDefinition: u, root: t };
1231
1231
  }
1232
1232
  });
@@ -1418,7 +1418,7 @@ function Jn(e) {
1418
1418
  function Qn(e) {
1419
1419
  return e.__internal === !0;
1420
1420
  }
1421
- const Wt = (e = null) => ({
1421
+ const Zt = (e = null) => ({
1422
1422
  data: {
1423
1423
  type: Array,
1424
1424
  required: !0,
@@ -1502,7 +1502,7 @@ function Ct(e, t) {
1502
1502
  return J().range(n).domain(e);
1503
1503
  }
1504
1504
  function It(e, t, n, r) {
1505
- const a = Ht(e).filter((f) => f != null), o = [0, t];
1505
+ const a = jt(e).filter((f) => f != null), o = [0, t];
1506
1506
  if (a.length === 0)
1507
1507
  return Q().range(o).domain([0, 0]).nice();
1508
1508
  const l = Math.min(...a), u = r && l > 0 ? 0 : l, s = Math.max(...a), i = n === A.HORIZONTAL ? [u, s] : [s, u];
@@ -1526,7 +1526,7 @@ function nr(e) {
1526
1526
  return Object.values(A).includes(e);
1527
1527
  }
1528
1528
  const F = (e, t = !0, n = !0) => ({
1529
- ...Wt(e),
1529
+ ...Zt(e),
1530
1530
  ...n ? tr() : {},
1531
1531
  ...ut(),
1532
1532
  title: {
@@ -1547,7 +1547,7 @@ const F = (e, t = !0, n = !0) => ({
1547
1547
  });
1548
1548
  function rr(e) {
1549
1549
  return { hasNegativeValues: v(
1550
- () => Ht(e.value).some((n) => n < 0)
1550
+ () => jt(e.value).some((n) => n < 0)
1551
1551
  ) };
1552
1552
  }
1553
1553
  function ar(e, t, n, r) {
@@ -1588,7 +1588,7 @@ const Rt = {
1588
1588
  function sr(e, t, n, r, a) {
1589
1589
  const o = v(() => (u) => {
1590
1590
  var c;
1591
- let s = a.value && Rt[a.value] ? Rt[a.value](e.value, u) : Ft(e.value, u);
1591
+ let s = a.value && Rt[a.value] ? Rt[a.value](e.value, u) : Gt(e.value, u);
1592
1592
  ((c = a == null ? void 0 : a.value) == null ? void 0 : c.includes("bar")) && s < 0 && (s = 0);
1593
1593
  const i = r.value === A.HORIZONTAL ? t.value(s) : _t(t.value, u), f = r.value === A.HORIZONTAL ? _t(n.value, u) : n.value(s);
1594
1594
  return {
@@ -1602,7 +1602,7 @@ function sr(e, t, n, r, a) {
1602
1602
  return {
1603
1603
  color: ((c = f[u]) == null ? void 0 : c.color) || s,
1604
1604
  label: i,
1605
- value: (_ = (d = (p = f[u]) == null ? void 0 : p.label) != null ? d : (h = f[u]) == null ? void 0 : h.value) != null ? _ : Vt
1605
+ value: (_ = (d = (p = f[u]) == null ? void 0 : p.label) != null ? d : (h = f[u]) == null ? void 0 : h.value) != null ? _ : zt
1606
1606
  };
1607
1607
  });
1608
1608
  }
@@ -1685,25 +1685,25 @@ const lr = S({
1685
1685
  g,
1686
1686
  y,
1687
1687
  l
1688
- ), { tooltipConfig: et, showTooltip: z, hideTooltip: ft } = ir(), { getTooltipAnchorAttributes: Kt, getTooltipItems: Jt } = sr(
1688
+ ), { tooltipConfig: et, showTooltip: z, hideTooltip: ft } = ir(), { getTooltipAnchorAttributes: Jt, getTooltipItems: Qt } = sr(
1689
1689
  p,
1690
1690
  g,
1691
1691
  y,
1692
1692
  l,
1693
1693
  u
1694
- ), Qt = v(
1694
+ ), te = v(
1695
1695
  () => {
1696
1696
  var O;
1697
1697
  return ((O = c.value.tooltipOptions) == null ? void 0 : O.position) || "top";
1698
1698
  }
1699
1699
  );
1700
- function te(O) {
1700
+ function ee(O) {
1701
1701
  var nt;
1702
1702
  c.value.withHover !== !1 && (s.value = O);
1703
1703
  const X = (nt = c.value.tooltipOptions) != null && nt.targetElement ? c.value.tooltipOptions.targetElement === "self" ? f.value.$el : c.value.tooltipOptions.targetElement : i.value[O];
1704
1704
  c.value.withTooltip !== !1 && z(X);
1705
1705
  }
1706
- function ee() {
1706
+ function ne() {
1707
1707
  ft(), s.value = -1;
1708
1708
  }
1709
1709
  return j(() => {
@@ -1720,13 +1720,13 @@ const lr = S({
1720
1720
  computedYScale: y,
1721
1721
  containerSize: d,
1722
1722
  getEmptyArrayFromData: ot,
1723
- getTooltipAnchorAttributes: Kt,
1724
- getTooltipItems: Jt,
1725
- handleMouseleave: ee,
1723
+ getTooltipAnchorAttributes: Jt,
1724
+ getTooltipItems: Qt,
1725
+ handleMouseleave: ne,
1726
1726
  hasNegativeValues: V,
1727
1727
  hoveredIndex: s,
1728
1728
  isReady: G,
1729
- mouseOverHandler: te,
1729
+ mouseOverHandler: ee,
1730
1730
  negativeBarAttributes: tt,
1731
1731
  shouldGenerateTooltipAnchors: B,
1732
1732
  showXAxisTitle: T,
@@ -1734,7 +1734,7 @@ const lr = S({
1734
1734
  tooltipAnchor: i,
1735
1735
  tooltipAnchorRadius: He,
1736
1736
  tooltipConfig: et,
1737
- tooltipPosition: Qt,
1737
+ tooltipPosition: te,
1738
1738
  updateSize: _,
1739
1739
  xAxisTitle: R,
1740
1740
  yAxisTitle: D
@@ -1802,7 +1802,7 @@ const U = dr.exports, fr = 8, pr = S({
1802
1802
  [`lume-stroke--${o.color}`]: !n.value,
1803
1803
  "lume-stroke--transparent": n.value,
1804
1804
  "lume-alluvial-path-group__link--ghost": n.value,
1805
- "lume-alluvial-path-group__link--faded": Gt(
1805
+ "lume-alluvial-path-group__link--faded": Vt(
1806
1806
  o.id,
1807
1807
  t.value
1808
1808
  )
@@ -1830,7 +1830,7 @@ var vr = function() {
1830
1830
  null,
1831
1831
  null
1832
1832
  );
1833
- const mr = _r.exports, Zt = "03", K = 8, gr = 200;
1833
+ const mr = _r.exports, qt = "03", K = 8, gr = 200;
1834
1834
  function yr(e, t, n) {
1835
1835
  let r = !1;
1836
1836
  mt(() => {
@@ -1905,7 +1905,7 @@ function yr(e, t, n) {
1905
1905
  });
1906
1906
  }
1907
1907
  function f(h) {
1908
- const d = ae();
1908
+ const d = oe();
1909
1909
  return h.map((_) => {
1910
1910
  var b;
1911
1911
  return {
@@ -1913,7 +1913,7 @@ function yr(e, t, n) {
1913
1913
  _.target
1914
1914
  )}`,
1915
1915
  d: d(_),
1916
- color: _.color || ((b = _.source) == null ? void 0 : b.color) || Zt,
1916
+ color: _.color || ((b = _.source) == null ? void 0 : b.color) || qt,
1917
1917
  strokeWidth: Math.max(1, _.width),
1918
1918
  link: _
1919
1919
  };
@@ -1997,7 +1997,7 @@ const xr = {
1997
1997
  values: [],
1998
1998
  nodePadding: 16,
1999
1999
  nodeWidth: 16,
2000
- nodeAlign: se,
2000
+ nodeAlign: ie,
2001
2001
  valueFormatter: (e) => String(e)
2002
2002
  }, Ar = {
2003
2003
  highlightedLink: null,
@@ -2029,7 +2029,7 @@ function Or(e, t) {
2029
2029
  }
2030
2030
  ).filter(Boolean).reduce((u, s) => [...u, ...s], [])), o = v(() => {
2031
2031
  const { leftExtent: u, rightExtent: s, topExtent: i, bottomExtent: f, containerSize: c } = n.value;
2032
- return oe().nodeId(E).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
2032
+ return se().nodeId(E).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
2033
2033
  [u, i],
2034
2034
  [s, c.height - f]
2035
2035
  ]);
@@ -2059,7 +2059,7 @@ const $r = S({
2059
2059
  ...F(lt)
2060
2060
  },
2061
2061
  setup(e, t) {
2062
- const n = re(e, "data"), r = k([]), a = k([]), o = k(null), l = Tr(n), { graph: u, alluvialInstance: s } = Or(
2062
+ const n = ae(e, "data"), r = k([]), a = k([]), o = k(null), l = Tr(n), { graph: u, alluvialInstance: s } = Or(
2063
2063
  l,
2064
2064
  t.attrs.containerSize
2065
2065
  ), {
@@ -2109,10 +2109,10 @@ const $r = S({
2109
2109
  ), {
2110
2110
  alluvialInstance: s,
2111
2111
  computedData: l,
2112
- defaultColor: Zt,
2112
+ defaultColor: qt,
2113
2113
  highlightedLinkIds: r,
2114
2114
  highlightedNodeIds: a,
2115
- isNodeOrLinkFaded: Gt,
2115
+ isNodeOrLinkFaded: Vt,
2116
2116
  maxDepth: m,
2117
2117
  nodeText: o
2118
2118
  };
@@ -2208,7 +2208,7 @@ var Nr = function() {
2208
2208
  null
2209
2209
  );
2210
2210
  const Da = Dr.exports;
2211
- var qt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(qt || {});
2211
+ var Xt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Xt || {});
2212
2212
  const Dt = {
2213
2213
  single: "lume-single-bar-chart",
2214
2214
  grouped: "lume-grouped-bar-chart",
@@ -2216,13 +2216,13 @@ const Dt = {
2216
2216
  }, Er = S({
2217
2217
  components: {
2218
2218
  LumeSingleBarChart: pt(
2219
- () => import("./43767e44.js")
2219
+ () => import("./56dc685f.js")
2220
2220
  ),
2221
2221
  LumeGroupedBarChart: pt(
2222
- () => import("./ec8ca41a.js")
2222
+ () => import("./6580cc5e.js")
2223
2223
  ),
2224
2224
  LumeStackedBarChart: pt(
2225
- () => import("./c2033638.js")
2225
+ () => import("./2a550b6f.js")
2226
2226
  )
2227
2227
  },
2228
2228
  props: {
@@ -2230,7 +2230,7 @@ const Dt = {
2230
2230
  type: {
2231
2231
  type: String,
2232
2232
  default: null,
2233
- validator: (e) => e in qt || e == null
2233
+ validator: (e) => e in Xt || e == null
2234
2234
  }
2235
2235
  },
2236
2236
  setup(e, t) {
@@ -2299,7 +2299,7 @@ const Fr = (e = !1) => ({
2299
2299
  }
2300
2300
  } : {}
2301
2301
  });
2302
- function Xt(e) {
2302
+ function Yt(e) {
2303
2303
  const t = v(() => e.value.map((r) => ({
2304
2304
  ...r,
2305
2305
  values: r.values.map((a) => ({
@@ -2512,7 +2512,7 @@ const Yr = {
2512
2512
  xScale: u,
2513
2513
  yScale: s,
2514
2514
  classList: i
2515
- } = w(e), { groupedData: f } = Xt(t), { barXScale: c, barYScale: p } = Vr(
2515
+ } = w(e), { groupedData: f } = Yt(t), { barXScale: c, barYScale: p } = Vr(
2516
2516
  u,
2517
2517
  s,
2518
2518
  r,
@@ -2674,7 +2674,7 @@ const Ba = ua.exports, ca = {
2674
2674
  setup(e, t) {
2675
2675
  const { data: n, orientation: r, options: a } = w(e), o = v(
2676
2676
  () => ca[r.value || A.VERTICAL]
2677
- ), { allOptions: l } = M(a, o), { internalData: u } = $t(n), { groupedData: s } = Xt(u), { stackedXScaleGenerator: i, stackedYScaleGenerator: f } = qr(
2677
+ ), { allOptions: l } = M(a, o), { internalData: u } = $t(n), { groupedData: s } = Yt(u), { stackedXScaleGenerator: i, stackedYScaleGenerator: f } = qr(
2678
2678
  s,
2679
2679
  r
2680
2680
  );
@@ -2706,7 +2706,7 @@ var fa = function() {
2706
2706
  null
2707
2707
  );
2708
2708
  const Ma = va.exports;
2709
- function Yt(e) {
2709
+ function Ut(e) {
2710
2710
  function t(o) {
2711
2711
  let l = null;
2712
2712
  return o == null ? void 0 : o.reduce((u, s, i) => (s == null || s.value == null ? (l ? l.push(i) : l = [i], i === (o == null ? void 0 : o.length) - 1 && u.push(l)) : l && (u.push(l), l = null), u), []);
@@ -2742,7 +2742,7 @@ function Yt(e) {
2742
2742
  i.length,
2743
2743
  i.indexOf(s)
2744
2744
  ),
2745
- label: Vt
2745
+ label: zt
2746
2746
  };
2747
2747
  }
2748
2748
  return u;
@@ -2767,12 +2767,12 @@ const ha = S({
2767
2767
  const { data: t, xScale: n, yScale: r } = w(e), a = v(() => {
2768
2768
  if (t.value.every((f) => f.isDashed))
2769
2769
  return t.value;
2770
- const { computedLineData: i } = Yt(t);
2770
+ const { computedLineData: i } = Ut(t);
2771
2771
  return i.value;
2772
2772
  }), o = v(() => {
2773
2773
  if (e.hoveredIndex === -1)
2774
2774
  return;
2775
- const i = Ft(t.value, e.hoveredIndex);
2775
+ const i = Gt(t.value, e.hoveredIndex);
2776
2776
  return {
2777
2777
  d: `M ${_t(n.value, e.hoveredIndex)},${r.value.range()[1]}
2778
2778
  V ${r.value(i)}`
@@ -2820,7 +2820,7 @@ var _a = function() {
2820
2820
  null,
2821
2821
  null
2822
2822
  );
2823
- const Ut = ga.exports, ya = {
2823
+ const Kt = ga.exports, ya = {
2824
2824
  margins: Z.VERTICAL,
2825
2825
  showAxes: !0,
2826
2826
  startOnZero: !0,
@@ -2828,7 +2828,7 @@ const Ut = ga.exports, ya = {
2828
2828
  xAxisOptions: {},
2829
2829
  yAxisOptions: { gridLines: !0 }
2830
2830
  }, ba = S({
2831
- components: { LumeChart: U, LumeLineGroup: Ut },
2831
+ components: { LumeChart: U, LumeLineGroup: Kt },
2832
2832
  props: {
2833
2833
  ...F(null, !1)
2834
2834
  },
@@ -2863,7 +2863,7 @@ function Ta(e) {
2863
2863
  if (!n || !r)
2864
2864
  return;
2865
2865
  const a = e.value[0].values;
2866
- return ce().x((o, l) => n(l)).y0(r(Math.min(...r.domain()))).y1((o) => r(o.value))(a);
2866
+ return de().x((o, l) => n(l)).y0(r(Math.min(...r.domain()))).y1((o) => r(o.value))(a);
2867
2867
  }
2868
2868
  ) };
2869
2869
  }
@@ -2882,13 +2882,13 @@ const $a = {
2882
2882
  showTitle: !1
2883
2883
  }
2884
2884
  }, ka = S({
2885
- components: { LumeChart: U, LumeLineGroup: Ut },
2885
+ components: { LumeChart: U, LumeLineGroup: Kt },
2886
2886
  props: {
2887
- ...Wt(null),
2887
+ ...Zt(null),
2888
2888
  ...ut()
2889
2889
  },
2890
2890
  setup(e, t) {
2891
- const { data: n, options: r } = w(e), { internalData: a } = $t(n), { allOptions: o } = M(r, $a), { computedLineData: l } = Yt(a), { areaPathDefinition: u } = Ta(l), s = v(() => a.value[0].color), i = v(
2891
+ const { data: n, options: r } = w(e), { internalData: a } = $t(n), { allOptions: o } = M(r, $a), { computedLineData: l } = Ut(a), { areaPathDefinition: u } = Ta(l), s = v(() => a.value[0].color), i = v(
2892
2892
  () => n.value[0].areaColor || s.value
2893
2893
  );
2894
2894
  function f(p) {
@@ -2953,7 +2953,7 @@ export {
2953
2953
  Bn as n,
2954
2954
  wr as o,
2955
2955
  kt as p,
2956
- Ut as q,
2956
+ Kt as q,
2957
2957
  Gn as r
2958
2958
  };
2959
- //# sourceMappingURL=cf54f0b6.js.map
2959
+ //# sourceMappingURL=0fea31cd.js.map