@devgateway/dvz-ui-react 1.7.15 → 1.7.16

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,27 +1,27 @@
1
- import { jsx as c, jsxs as x, Fragment as be } from "react/jsx-runtime";
2
- import { useState as H, useEffect as ve, Fragment as Ye } from "react";
3
- import St from "./Tooltip.js";
4
- import { ResponsiveBar as jt } from "@nivo/bar";
5
- import { injectIntl as Rt } from "react-intl";
6
- import { useTheme as Pt } from "@nivo/theming";
7
- import { line as Ke } from "d3-shape";
8
- import Xe from "./LineLayer.js";
1
+ import { jsx as c, jsxs as y, Fragment as be } from "react/jsx-runtime";
2
+ import { useState as T, useEffect as ve, Fragment as Pe } from "react";
3
+ import _t from "./Tooltip.js";
4
+ import { ResponsiveBar as St } from "@nivo/bar";
5
+ import { injectIntl as jt } from "react-intl";
6
+ import { useTheme as Rt } from "@nivo/theming";
7
+ import { line as Ye } from "d3-shape";
8
+ import Ce from "./LineLayer.js";
9
9
  import Ne from "papaparse";
10
- import Yt from "../../layout/FlexWrapDetector.js";
10
+ import Pt from "../../layout/FlexWrapDetector.js";
11
11
  import Ie from "../../utils/deviceType.js";
12
- const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee = "_Color", Zt = ({
13
- editing: y,
14
- legends: _,
15
- marginLeft: Ze,
12
+ const Yt = "middle", Ct = "top", A = "#66676d", Ke = "#dddddd", Kt = "none", ee = "_Color", Xt = ({
13
+ editing: x,
14
+ legends: H,
15
+ marginLeft: Xe,
16
16
  marginTop: R,
17
- marginRight: Ce,
17
+ marginRight: qe,
18
18
  marginBottom: P,
19
19
  options: f,
20
20
  intl: b,
21
21
  format: p,
22
- colors: A,
22
+ colors: _,
23
23
  groupMode: F,
24
- height: Je,
24
+ height: Ze,
25
25
  showLegends: te,
26
26
  legendPosition: v,
27
27
  tickRotation: z,
@@ -29,65 +29,65 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
29
29
  tickColor: ne,
30
30
  layout: u,
31
31
  reverse: S,
32
- offsetY: Ue,
32
+ offsetY: Je,
33
33
  csvLineLayerData: ke,
34
34
  tooltip: le,
35
35
  lineLayerEnabled: re,
36
36
  overlays: j,
37
37
  maxValue: ie,
38
- valueScale: Qe,
38
+ valueScale: Ue,
39
39
  colorGenerator: N,
40
40
  legendLabel: Le,
41
- overrideTickColor: Ge,
41
+ overrideTickColor: Qe,
42
42
  fixedMinValue: se,
43
43
  fixedMaxValue: ce,
44
- barPadding: et,
44
+ barPadding: Ge,
45
45
  barLabelPosition: we,
46
- barInnerPadding: tt,
47
- tooltipEnabled: at,
46
+ barInnerPadding: et,
47
+ tooltipEnabled: tt,
48
48
  xLabelColor: O,
49
- barLabelColor: Z,
49
+ barLabelColor: q,
50
50
  legendCheckBack: L,
51
- legendLabelBack: he,
52
- legendLabelColor: de,
53
- highlightXAxisLine: nt,
51
+ legendLabelBack: de,
52
+ legendLabelColor: he,
53
+ highlightXAxisLine: at,
54
54
  showTickLine: Y,
55
- showRightAxis: lt,
55
+ showRightAxis: nt,
56
56
  offsetRight: De,
57
57
  offsetBottom: me,
58
58
  confidenceIntervals: fe,
59
- showGroupTotal: rt,
59
+ showGroupTotal: lt,
60
60
  groupTotalLabel: Me,
61
61
  groupTotalFormat: Oe,
62
62
  groupTotalMeasure: Fe,
63
63
  groupTotalOffset: E,
64
- groupTotalFixedPosition: C,
65
- tooltipEnableMarkdown: it,
66
- xAxisTickValues: st,
67
- yAxisTickValues: ct,
68
- mobileCustomization: ht,
69
- minMaxClamp: Ct,
64
+ groupTotalFixedPosition: Z,
65
+ tooltipEnableMarkdown: rt,
66
+ xAxisTickValues: it,
67
+ yAxisTickValues: st,
68
+ mobileCustomization: ct,
69
+ minMaxClamp: qt,
70
70
  reverseLegend: dt,
71
- enableGridY: mt,
72
- enableGridX: ft,
71
+ enableGridY: ht,
72
+ enableGridX: mt,
73
73
  customAxisFormat: I,
74
74
  previewMode: V,
75
- showLegendsInColumns: Jt = !1,
76
- numberOfLegendColumns: Ut = 4,
75
+ showLegendsInColumns: Zt = !1,
76
+ numberOfLegendColumns: Jt = 4,
77
77
  lineXAxisTickMode: ze = "none",
78
- lineXAxisTickCount: ut = 10,
79
- lineXAxisTickEvery: ot = 1
78
+ lineXAxisTickCount: ft = 10,
79
+ lineXAxisTickEvery: ut = 1
80
80
  }) => {
81
- var Pe;
81
+ var Re;
82
82
  const Ee = ["mobile", "tablet", "midTablet"].includes(
83
83
  Ie()
84
- ), J = ["tablet", "midTablet"].includes(Ie()), U = Ie() === "mobile", ue = 30, oe = 15, d = JSON.parse(
85
- decodeURIComponent(ht)
86
- ), Ve = Ee && ((d == null ? void 0 : d.showCustomization) ?? !1), $ = Ve && V !== "Desktop", B = !y && Ve, ye = () => Z === "null" || Z === null || !Z ? "#000000" : Z, [w, yt] = H([]), { colorBy: K } = A, $e = {};
84
+ ), J = ["tablet", "midTablet"].includes(Ie()), U = Ie() === "mobile", ue = 30, oe = 15, h = JSON.parse(
85
+ decodeURIComponent(ct)
86
+ ), Ve = Ee && ((h == null ? void 0 : h.showCustomization) ?? !1), $ = Ve && V !== "Desktop", B = !x && Ve, xe = () => q === "null" || q === null || !q ? "#000000" : q, [w, ot] = T([]), { colorBy: C } = _, $e = {};
87
87
  j.forEach((e, t) => {
88
88
  $e[t] = !0;
89
89
  });
90
- const [k, xt] = H($e), [Be, pt] = H(50), [Qt, We] = H(R), [Gt, He] = H(0), [Te, _e] = H(P), [Ae, gt] = H(!1);
90
+ const [k, xt] = T($e), [Be, yt] = T(50), [Ut, We] = T(R), [Qt, Te] = T(0), [pt, Ae] = T(P), [He, gt] = T(!1);
91
91
  ve(() => {
92
92
  let e, t;
93
93
  return e = requestAnimationFrame(() => {
@@ -100,20 +100,20 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
100
100
  cancelAnimationFrame(e), clearTimeout(t);
101
101
  };
102
102
  }, []);
103
- const X = ((e, t, r, i, a) => {
103
+ const K = ((e, t, r, i, a) => {
104
104
  let s = [];
105
105
  return e.data && (s = t.colorBy === "index" ? e.data.map((l) => {
106
- let n, h = !0;
107
- return r.indexOf(l[e.indexBy]) > -1 ? (h = !1, n = i) : n = l[ee] ? l[ee] : a.getColor(l.id, l), {
108
- enabled: h,
106
+ let n, d = !0;
107
+ return r.indexOf(l[e.indexBy]) > -1 ? (d = !1, n = i) : n = l[ee] ? l[ee] : a.getColor(l.id, l), {
108
+ enabled: d,
109
109
  color: n,
110
110
  id: l[e.indexBy],
111
111
  label: l[e.indexBy]
112
112
  };
113
113
  }) : e.keys.map((l) => {
114
- let n, h = !0;
115
- return r.indexOf(l) > -1 ? (h = !1, n = i) : n = a.getColorByKey(l), {
116
- enabled: h,
114
+ let n, d = !0;
115
+ return r.indexOf(l) > -1 ? (d = !1, n = i) : n = a.getColorByKey(l), {
116
+ enabled: d,
117
117
  color: n,
118
118
  id: l,
119
119
  label: l
@@ -121,12 +121,12 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
121
121
  })), s;
122
122
  })(
123
123
  f,
124
- A,
124
+ _,
125
125
  w,
126
- qt,
126
+ Kt,
127
127
  N
128
- ), Se = () => (dt && X.reverse(), /* @__PURE__ */ x(be, { children: [
129
- te && X.map((e) => /* @__PURE__ */ x(
128
+ ), _e = () => (dt && K.reverse(), /* @__PURE__ */ y(be, { children: [
129
+ te && K.map((e) => /* @__PURE__ */ y(
130
130
  "div",
131
131
  {
132
132
  className: `legend item ${e.enabled ? "" : "ignore"}`,
@@ -139,7 +139,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
139
139
  type: "checkbox",
140
140
  checked: e.enabled,
141
141
  style: {
142
- backgroundColor: L ? K === "values" ? ne : e.color : "none",
142
+ backgroundColor: L ? C === "values" ? ne : e.color : "none",
143
143
  color: "#000"
144
144
  }
145
145
  }
@@ -162,23 +162,23 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
162
162
  }
163
163
  ),
164
164
  !L && /* @__PURE__ */ c("span", { className: "checkmark" }),
165
- he && /* @__PURE__ */ c(
165
+ de && /* @__PURE__ */ c(
166
166
  "label",
167
167
  {
168
168
  className: e.enabled ? "" : "ignore",
169
169
  style: {
170
- backgroundColor: K === "values" ? ne : e.color,
171
- color: de
170
+ backgroundColor: C === "values" ? ne : e.color,
171
+ color: he
172
172
  },
173
173
  children: e.label
174
174
  }
175
175
  ),
176
- !he && /* @__PURE__ */ c(
176
+ !de && /* @__PURE__ */ c(
177
177
  "label",
178
178
  {
179
179
  className: e.enabled ? "" : "ignore",
180
180
  style: {
181
- color: de
181
+ color: he
182
182
  },
183
183
  children: e.label
184
184
  }
@@ -186,7 +186,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
186
186
  ]
187
187
  }
188
188
  )),
189
- K === "values" && /* @__PURE__ */ x("div", { className: "legend item", children: [
189
+ C === "values" && /* @__PURE__ */ y("div", { className: "legend item", children: [
190
190
  /* @__PURE__ */ c(
191
191
  "label",
192
192
  {
@@ -207,7 +207,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
207
207
  }
208
208
  ) })
209
209
  ] }),
210
- K === "values" && /* @__PURE__ */ x("div", { className: "legend item", children: [
210
+ C === "values" && /* @__PURE__ */ y("div", { className: "legend item", children: [
211
211
  /* @__PURE__ */ c(
212
212
  "label",
213
213
  {
@@ -229,7 +229,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
229
229
  }
230
230
  ) })
231
231
  ] }),
232
- te && re && j.map((e, t) => /* @__PURE__ */ x("div", { className: "legend item", onClick: () => Ft(t), children: [
232
+ te && re && j.map((e, t) => /* @__PURE__ */ y("div", { className: "legend item", onClick: () => Ft(t), children: [
233
233
  /* @__PURE__ */ c(
234
234
  "input",
235
235
  {
@@ -256,8 +256,8 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
256
256
  {
257
257
  className: k[t] ? "" : "ignore",
258
258
  style: {
259
- backgroundColor: k[t] && he === !0 ? e.lineColor : "none",
260
- color: de
259
+ backgroundColor: k[t] && de === !0 ? e.lineColor : "none",
260
+ color: he
261
261
  },
262
262
  children: e.title
263
263
  }
@@ -266,24 +266,26 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
266
266
  ] }));
267
267
  ve(() => {
268
268
  (() => {
269
- const r = 5 * Math.max(X.length - 5, 0);
270
- pt(r);
269
+ const r = 5 * Math.max(K.length - 5, 0);
270
+ yt(r);
271
271
  })();
272
- }, [X]), ve(() => {
273
- We(R), _e(P);
272
+ }, [K]), ve(() => {
273
+ We(R), Ae(P);
274
274
  }, [v, R, P]);
275
275
  const bt = {
276
- bottom: `-${Be}px`
276
+ bottom: `-${Be}px`,
277
+ justifyContent: "flex-start"
277
278
  }, vt = {
278
279
  bottom: `-${Be}px`,
279
- gap: "0px"
280
+ gap: "0px",
281
+ justifyContent: "flex-start"
280
282
  // top: "0px",
281
- }, Nt = (e) => xe(e, "1 0", qe, "Y"), It = (e) => xe(e, "4 4", T, "X"), kt = (e) => xe(e, "1 0", qe, "X"), Lt = (e) => {
282
- const t = X.find((r) => r.id === e.value);
283
+ }, Nt = (e) => ye(e, "1 0", Ke, "Y"), It = (e) => ye(e, "4 4", A, "X"), kt = (e) => ye(e, "1 0", Ke, "X"), Lt = (e) => {
284
+ const t = K.find((r) => r.id === e.value);
283
285
  return t ? t.color : "#FFFFFF";
284
286
  }, wt = (e) => {
285
287
  const { yScale: t, xScale: r, bars: i } = e;
286
- return /* @__PURE__ */ c(Ye, { children: i.filter((a) => a.data.value != null).map((a) => {
288
+ return /* @__PURE__ */ c(Pe, { children: i.filter((a) => a.data.value != null).map((a) => {
287
289
  let s = a.data.indexValue;
288
290
  f.dimensionsMetadata && f.dimensionsMetadata.size > 1 && (s = a.data.id);
289
291
  const l = fe.filter(
@@ -291,17 +293,17 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
291
293
  )[0];
292
294
  if (l && l.low && l.high)
293
295
  if (u === "horizontal") {
294
- const n = r(parseFloat(l.low)), h = r(parseFloat(l.high));
295
- return /* @__PURE__ */ x("g", { children: [
296
+ const n = r(parseFloat(l.low)), d = r(parseFloat(l.high));
297
+ return /* @__PURE__ */ y("g", { children: [
296
298
  /* @__PURE__ */ c(
297
299
  "line",
298
300
  {
299
301
  x1: n,
300
- x2: h,
302
+ x2: d,
301
303
  y1: a.y + a.height / 2,
302
304
  y2: a.y + a.height / 2,
303
305
  strokeWidth: 1,
304
- stroke: T
306
+ stroke: A
305
307
  }
306
308
  ),
307
309
  /* @__PURE__ */ c(
@@ -312,33 +314,33 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
312
314
  y1: a.y + a.height / 2 - 3,
313
315
  y2: a.y + a.height / 2 + 3,
314
316
  strokeWidth: 1,
315
- stroke: T
317
+ stroke: A
316
318
  }
317
319
  ),
318
320
  /* @__PURE__ */ c(
319
321
  "line",
320
322
  {
321
- x1: h,
322
- x2: h,
323
+ x1: d,
324
+ x2: d,
323
325
  y1: a.y + a.height / 2 - 3,
324
326
  y2: a.y + a.height / 2 + 3,
325
327
  strokeWidth: 1,
326
- stroke: T
328
+ stroke: A
327
329
  }
328
330
  )
329
331
  ] });
330
332
  } else {
331
- const n = t(parseFloat(l.low)), h = t(parseFloat(l.high));
332
- return /* @__PURE__ */ x("g", { children: [
333
+ const n = t(parseFloat(l.low)), d = t(parseFloat(l.high));
334
+ return /* @__PURE__ */ y("g", { children: [
333
335
  /* @__PURE__ */ c(
334
336
  "line",
335
337
  {
336
338
  y1: n,
337
- y2: h,
339
+ y2: d,
338
340
  x1: a.x + a.width / 2,
339
341
  x2: a.x + a.width / 2,
340
342
  strokeWidth: 1,
341
- stroke: T
343
+ stroke: A
342
344
  }
343
345
  ),
344
346
  /* @__PURE__ */ c(
@@ -349,53 +351,53 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
349
351
  x1: a.x + a.width / 2 - 3,
350
352
  x2: a.x + a.width / 2 + 3,
351
353
  strokeWidth: 1,
352
- stroke: T
354
+ stroke: A
353
355
  }
354
356
  ),
355
357
  /* @__PURE__ */ c(
356
358
  "line",
357
359
  {
358
- y1: h,
359
- y2: h,
360
+ y1: d,
361
+ y2: d,
360
362
  x1: a.x + a.width / 2 - 3,
361
363
  x2: a.x + a.width / 2 + 3,
362
364
  strokeWidth: 1,
363
- stroke: T
365
+ stroke: A
364
366
  }
365
367
  )
366
368
  ] });
367
369
  }
368
370
  }) });
369
- }, xe = (e, t, r, i) => {
371
+ }, ye = (e, t, r, i) => {
370
372
  const { yScale: a, innerWidth: s, innerHeight: l } = e;
371
- let n, h;
372
- return i == "X" ? (n = [0, s], h = Ke().x((o, W) => W === 0 ? -10 : o).y(() => a(0))) : (n = [0, l], h = Ke().x(() => 0).y((o) => o)), /* @__PURE__ */ c(Ye, { children: /* @__PURE__ */ c(
373
+ let n, d;
374
+ return i == "X" ? (n = [0, s], d = Ye().x((o, W) => W === 0 ? -10 : o).y(() => a(0))) : (n = [0, l], d = Ye().x(() => 0).y((o) => o)), /* @__PURE__ */ c(Pe, { children: /* @__PURE__ */ c(
373
375
  "path",
374
376
  {
375
- d: h(n),
377
+ d: d(n),
376
378
  fill: "none",
377
379
  stroke: r,
378
380
  style: { pointerEvents: "none", strokeDasharray: t }
379
381
  }
380
382
  ) });
381
- }, D = (e, t) => w ? (A.colorBy === "index" || A.colorBy === "id" || A.colorBy === "values") && !t ? e.filter((r) => w.indexOf(r[f.indexBy]) === -1) : e ? e.filter((r) => w.indexOf(r) === -1) : [] : e, Dt = (e) => {
382
- const t = Pt();
383
+ }, D = (e, t) => w ? (_.colorBy === "index" || _.colorBy === "id" || _.colorBy === "values") && !t ? e.filter((r) => w.indexOf(r[f.indexBy]) === -1) : e ? e.filter((r) => w.indexOf(r) === -1) : [] : e, Dt = (e) => {
384
+ const t = Rt();
383
385
  if (!e.value) return "";
384
386
  const r = Object.assign({}, e);
385
387
  (B || $) && ge.includes(String(r.value)) && (r.value = "");
386
388
  let i;
387
- Ge ? i = ne : i = Lt(e);
389
+ Qe ? i = ne : i = Lt(e);
388
390
  let a = [], s = "";
389
391
  if ($ || B) {
390
392
  const n = String(r.value).split(" ");
391
- let h = 25;
392
- y && V === "Mobile" || U && !y ? h = (d == null ? void 0 : d.mobileMaxTickLength) ?? 25 : y && V === "Tablet" || J && !y ? h = (d == null ? void 0 : d.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !y && (h = 15), n.forEach((o) => {
393
- s.length + String(o).length <= h ? s += (s ? " " : "") + o : (a.push(s), s = o);
393
+ let d = 25;
394
+ x && V === "Mobile" || U && !x ? d = (h == null ? void 0 : h.mobileMaxTickLength) ?? 25 : x && V === "Tablet" || J && !x ? d = (h == null ? void 0 : h.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !x && (d = 15), n.forEach((o) => {
395
+ s.length + String(o).length <= d ? s += (s ? " " : "") + o : (a.push(s), s = o);
394
396
  }), s && a.push(s);
395
397
  } else
396
398
  a = [r.value];
397
399
  let l = 12;
398
- return U ? l = (d == null ? void 0 : d.mobileYAxisLineHeight) ?? 12 : J && (l = (d == null ? void 0 : d.tabletYAxisLineHeight) ?? 12), z > 0 && z < 180 ? /* @__PURE__ */ x("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
400
+ return U ? l = (h == null ? void 0 : h.mobileYAxisLineHeight) ?? 12 : J && (l = (h == null ? void 0 : h.tabletYAxisLineHeight) ?? 12), z > 0 && z < 180 ? /* @__PURE__ */ y("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
399
401
  Y && /* @__PURE__ */ c(
400
402
  "line",
401
403
  {
@@ -405,12 +407,12 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
405
407
  y2: -12
406
408
  }
407
409
  ),
408
- /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ae})`, children: a.map((n, h) => /* @__PURE__ */ c(
410
+ /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ae})`, children: a.map((n, d) => /* @__PURE__ */ c(
409
411
  "text",
410
412
  {
411
413
  transform: `rotate(${z})`,
412
414
  textAnchor: "start",
413
- y: typeof e.value == "number" ? 0 : h * l,
415
+ y: typeof e.value == "number" ? 0 : d * l,
414
416
  dominantBaseline: "middle",
415
417
  style: {
416
418
  ...t.axis.ticks.text,
@@ -422,7 +424,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
422
424
  },
423
425
  n
424
426
  )) })
425
- ] }) : z > 180 && z < 360 ? /* @__PURE__ */ x("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
427
+ ] }) : z > 180 && z < 360 ? /* @__PURE__ */ y("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
426
428
  Y && /* @__PURE__ */ c(
427
429
  "line",
428
430
  {
@@ -432,12 +434,12 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
432
434
  y2: -12
433
435
  }
434
436
  ),
435
- /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ae})`, children: a.map((n, h) => /* @__PURE__ */ c(
437
+ /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ae})`, children: a.map((n, d) => /* @__PURE__ */ c(
436
438
  "text",
437
439
  {
438
440
  transform: `rotate(${z})`,
439
441
  textAnchor: "end",
440
- y: typeof e.value == "number" ? 0 : h * l,
442
+ y: typeof e.value == "number" ? 0 : d * l,
441
443
  dominantBaseline: "middle",
442
444
  style: {
443
445
  ...t.axis.ticks.text,
@@ -447,9 +449,9 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
447
449
  },
448
450
  children: n
449
451
  },
450
- h
452
+ d
451
453
  )) })
452
- ] }) : /* @__PURE__ */ x("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
454
+ ] }) : /* @__PURE__ */ y("g", { transform: `translate(${e.x},${e.y + 30})`, children: [
453
455
  Y && /* @__PURE__ */ c(
454
456
  "line",
455
457
  {
@@ -459,12 +461,12 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
459
461
  y2: -12
460
462
  }
461
463
  ),
462
- /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ae})`, children: a.map((n, h) => /* @__PURE__ */ c(
464
+ /* @__PURE__ */ c("g", { transform: `translate(0, ${e.y + ae})`, children: a.map((n, d) => /* @__PURE__ */ c(
463
465
  "text",
464
466
  {
465
467
  transform: `rotate(${z})`,
466
468
  textAnchor: "middle",
467
- y: typeof e.value == "number" ? 0 : h * l,
469
+ y: typeof e.value == "number" ? 0 : d * l,
468
470
  dominantBaseline: "middle",
469
471
  style: {
470
472
  ...t.axis.ticks.text,
@@ -474,7 +476,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
474
476
  },
475
477
  children: n
476
478
  },
477
- h
479
+ d
478
480
  )) })
479
481
  ] });
480
482
  }, Mt = (e) => {
@@ -491,20 +493,20 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
491
493
  );
492
494
  }
493
495
  let r = 25;
494
- y && V === "Mobile" || U && !y ? r = (d == null ? void 0 : d.mobileMaxTickLength) ?? 25 : y && V === "Tablet" || J && !y ? r = (d == null ? void 0 : d.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !y && (r = 15);
496
+ x && V === "Mobile" || U && !x ? r = (h == null ? void 0 : h.mobileMaxTickLength) ?? 25 : x && V === "Tablet" || J && !x ? r = (h == null ? void 0 : h.tabletMaxTickLength) ?? 25 : window.matchMedia("(min-width: 768px) and (max-width: 1250px)").matches && !x && (r = 15);
495
497
  const i = typeof t == "string" ? t.split(" ") : [t], a = [];
496
498
  let s = "";
497
499
  i.forEach((n) => {
498
500
  s.length + String(n).length <= r ? s += (s ? " " : "") + n : (a.push(s), s = n);
499
501
  }), s && a.push(s);
500
502
  let l = 12;
501
- return y && V === "Mobile" || U && !y ? l = (d == null ? void 0 : d.mobileYAxisLineHeight) ?? 12 : (y && V === "Tablet" || J && !y) && (l = (d == null ? void 0 : d.tabletYAxisLineHeight) ?? 12), /* @__PURE__ */ x("g", { transform: `translate(${e.x},${e.y})`, children: [
503
+ return x && V === "Mobile" || U && !x ? l = (h == null ? void 0 : h.mobileYAxisLineHeight) ?? 12 : (x && V === "Tablet" || J && !x) && (l = (h == null ? void 0 : h.tabletYAxisLineHeight) ?? 12), /* @__PURE__ */ y("g", { transform: `translate(${e.x},${e.y})`, children: [
502
504
  /* @__PURE__ */ c("line", { x1: -5, x2: 0, y1: 0, y2: 0, stroke: "#000", strokeWidth: 1 }),
503
- a.map((n, h) => /* @__PURE__ */ c(
505
+ a.map((n, d) => /* @__PURE__ */ c(
504
506
  "text",
505
507
  {
506
508
  x: -10,
507
- y: typeof t == "number" ? 0 : h * l,
509
+ y: typeof t == "number" ? 0 : d * l,
508
510
  textAnchor: "end",
509
511
  dominantBaseline: "middle",
510
512
  style: {
@@ -524,7 +526,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
524
526
  t.splice(r, 1);
525
527
  } else
526
528
  t.push(e);
527
- yt(t);
529
+ ot(t);
528
530
  }, Ft = (e) => {
529
531
  const t = Object.assign({}, k);
530
532
  t[e] = !t[e], xt(t);
@@ -535,15 +537,15 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
535
537
  const n = l.value ? b.formatNumber(
536
538
  p.style === "percent" ? l.value / 100 : l.value,
537
539
  p
538
- ) : "", h = n.length;
540
+ ) : "", d = n.length;
539
541
  let o, W;
540
542
  if (u === "vertical" && r >= ue || u === "horizontal" && i >= oe)
541
- return u === "vertical" ? (o = a - 6, W = s + r / 2 - h * 3.5) : (o = a + i / 2 + 4, W = s + r + 5), /* @__PURE__ */ c(
543
+ return u === "vertical" ? (o = a - 6, W = s + r / 2 - d * 3.5) : (o = a + i / 2 + 4, W = s + r + 5), /* @__PURE__ */ c(
542
544
  "text",
543
545
  {
544
546
  y: o,
545
547
  x: W,
546
- style: { fill: ye() },
548
+ style: { fill: xe() },
547
549
  children: `${n}`
548
550
  }
549
551
  );
@@ -556,10 +558,10 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
556
558
  const a = r.filter((m) => m.data.indexValue == i);
557
559
  let s = "right", l = 0, n = 0;
558
560
  if (u == "horizontal")
559
- F === "stacked" ? (C ? l = e.innerWidth - 20 : (l = a.map((m) => m.width).reduce((m, g) => m + g), S && (l = e.innerWidth - l)), n = e.yScale(i) + a[0].height / 2) : (C ? l = e.innerWidth : (l = a.map((m) => m.width).reduce((m, g) => m > g ? m : g), S && (l = e.innerWidth - l)), n = e.yScale(i) + a.map((m) => m.height).reduce((m, g) => m + g) / 2), l = l + parseInt(E) + 5;
561
+ F === "stacked" ? (Z ? l = e.innerWidth - 20 : (l = a.map((m) => m.width).reduce((m, g) => m + g), S && (l = e.innerWidth - l)), n = e.yScale(i) + a[0].height / 2) : (Z ? l = e.innerWidth : (l = a.map((m) => m.width).reduce((m, g) => m > g ? m : g), S && (l = e.innerWidth - l)), n = e.yScale(i) + a.map((m) => m.height).reduce((m, g) => m + g) / 2), l = l + parseInt(E) + 5;
560
562
  else if (s = "middle", F === "stacked")
561
- l = e.xScale(i) + a[0].width / 2, C ? n = n - parseInt(E) : S ? n = parseInt(E) + a.map((m) => m.height).reduce((m, g) => m + g) + 14 : n = e.innerHeight - parseInt(E) - a.map((m) => m.height).reduce((m, g) => m + g) - 5;
562
- else if (l = e.xScale(i) + a.map((m) => m.width).reduce((m, g) => m + g) / 2, S && (n = e.innerHeight), C)
563
+ l = e.xScale(i) + a[0].width / 2, Z ? n = n - parseInt(E) : S ? n = parseInt(E) + a.map((m) => m.height).reduce((m, g) => m + g) + 14 : n = e.innerHeight - parseInt(E) - a.map((m) => m.height).reduce((m, g) => m + g) - 5;
564
+ else if (l = e.xScale(i) + a.map((m) => m.width).reduce((m, g) => m + g) / 2, S && (n = e.innerHeight), Z)
563
565
  n = n - parseInt(E);
564
566
  else {
565
567
  if (a.length % 2 == 1) {
@@ -574,12 +576,12 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
574
576
  }
575
577
  S ? n = n + 14 + parseInt(E) : n = e.innerHeight - n - parseInt(E) - 5;
576
578
  }
577
- const h = f.data.filter(
579
+ const d = f.data.filter(
578
580
  (m) => m[f.indexBy] === i
579
581
  )[0];
580
- let o = h.parent_variables ? h.parent_variables[Fe] : h[Fe];
581
- const W = K !== "index" ? (G = w == null ? void 0 : w.map((m) => h[m])) == null ? void 0 : G.reduce((m, g) => m + g, 0) : 0;
582
- return o -= W, /* @__PURE__ */ c("text", { y: n, x: l, style: { fill: ye() }, children: /* @__PURE__ */ x("tspan", { textAnchor: s, children: [
582
+ let o = d.parent_variables ? d.parent_variables[Fe] : d[Fe];
583
+ const W = C !== "index" ? (G = w == null ? void 0 : w.map((m) => d[m])) == null ? void 0 : G.reduce((m, g) => m + g, 0) : 0;
584
+ return o -= W, /* @__PURE__ */ c("text", { y: n, x: l, style: { fill: xe() }, children: /* @__PURE__ */ y("tspan", { textAnchor: s, children: [
583
585
  Me ? Me + " " : "",
584
586
  b.formatNumber(
585
587
  Oe.style === "percent" ? o / 100 : o,
@@ -589,16 +591,16 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
589
591
  }) });
590
592
  }, Vt = {
591
593
  top: R,
592
- right: Ce,
594
+ right: qe,
593
595
  bottom: P,
594
- left: Ze
596
+ left: Xe
595
597
  };
596
598
  let pe;
597
599
  ke && (pe = Ne.parse(ke, {
598
600
  header: !1,
599
601
  dynamicTyping: !0
600
602
  }), Math.max(...pe.data.map((e) => e[1])), Math.min(...pe.data.map((e) => e[1])));
601
- const je = () => {
603
+ const Se = () => {
602
604
  const e = [];
603
605
  if (fe && fe.forEach((t) => {
604
606
  t.low && e.push(parseFloat(t.low)), t.high && e.push(parseFloat(t.high));
@@ -625,23 +627,23 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
625
627
  });
626
628
  }), e;
627
629
  }, $t = () => {
628
- const e = je(), t = e.length > 0 ? Math.max(...e) : 0;
630
+ const e = Se(), t = e.length > 0 ? Math.max(...e) : 0;
629
631
  if (ie === "fixed" && ce !== null && ce !== "")
630
632
  return Number(ce);
631
633
  if (F === "stacked" && ie !== "fixed") {
632
634
  const r = D(f.data, !1), i = D(f.keys, !0);
633
635
  let a = i.length > 0 ? i : f.keys;
634
636
  const s = Math.max(
635
- ...r.map((l) => a.map((n) => l[n] ? l[n] : 0)).map((l) => l.length > 0 ? l.reduce((n, h) => n + h, 0) : 0)
637
+ ...r.map((l) => a.map((n) => l[n] ? l[n] : 0)).map((l) => l.length > 0 ? l.reduce((n, d) => n + d, 0) : 0)
636
638
  );
637
639
  return Math.max(s, t) * 1.1;
638
640
  }
639
641
  return t * 1.05;
640
642
  }, Bt = () => {
641
- const e = je(), t = e.length > 0 ? Math.min(...e) : 0;
643
+ const e = Se(), t = e.length > 0 ? Math.min(...e) : 0;
642
644
  return ie === "fixed" && se !== null && String(se) !== "" ? Number(se) : t > 0 ? t * 0.9 : t * 1.1;
643
- }, Wt = Number($t()), Ht = Number(Bt()), Tt = Math.min(0, Ht), _t = Math.max(0, Wt), M = ["grid", "axes", "bars"];
644
- rt && M.push(Et), M.push(Nt), M.push(kt), re && j && j.forEach((e, t) => {
645
+ }, Wt = Number($t()), Tt = Number(Bt()), At = Math.min(0, Tt), Ht = Math.max(0, Wt), M = ["grid", "axes", "bars"];
646
+ lt && M.push(Et), M.push(Nt), M.push(kt), re && j && j.forEach((e, t) => {
645
647
  if (k[t] == !0 || k[t] == null) {
646
648
  const { csvLineLayerData: r, lineColor: i, tooltip: a } = e;
647
649
  if (e.app == "csv") {
@@ -653,7 +655,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
653
655
  s.data = s.data.filter(
654
656
  (n) => n[1] !== null
655
657
  );
656
- const l = Xe(
658
+ const l = Ce(
657
659
  s,
658
660
  i,
659
661
  u,
@@ -671,7 +673,7 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
671
673
  o.variables[e.measure[0]]
672
674
  ]), n = f.metadata.measures ? f.metadata.measures.filter((o) => o.value == e.measure[0]) : [];
673
675
  s.data = l;
674
- const h = Xe(
676
+ const d = Ce(
675
677
  s,
676
678
  i,
677
679
  u,
@@ -681,74 +683,73 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
681
683
  e.title,
682
684
  n.length > 0 ? n[0].label : ""
683
685
  );
684
- M.push(h);
686
+ M.push(d);
685
687
  }
686
688
  }
687
- }), we === Xt && M.push(zt), nt && M.push(It), M.push(wt);
688
- let Q = parseInt(ct);
689
- const Re = () => /* @__PURE__ */ c(be, { children: te && Le && /* @__PURE__ */ c("div", { className: "legend item", children: /* @__PURE__ */ c("label", { className: "legend-title", children: Le }) }) }), ge = [];
689
+ }), we === Ct && M.push(zt), at && M.push(It), M.push(wt);
690
+ let Q = parseInt(st);
691
+ const je = () => /* @__PURE__ */ c(be, { children: te && Le && /* @__PURE__ */ c("div", { className: "legend item", children: /* @__PURE__ */ c("label", { className: "legend-title", children: Le }) }) }), ge = [];
690
692
  if (B || $) {
691
- Q = Number.parseInt(d.yAxisTickValues);
693
+ Q = Number.parseInt(h.yAxisTickValues);
692
694
  const e = new Map(
693
- Object.entries(((Pe = d == null ? void 0 : d.labels) == null ? void 0 : Pe.xAxis) ?? {})
695
+ Object.entries(((Re = h == null ? void 0 : h.labels) == null ? void 0 : Re.xAxis) ?? {})
694
696
  );
695
697
  for (const [t, r] of e)
696
698
  r || ge.push(t);
697
699
  }
698
- let q;
700
+ let X;
699
701
  if (u === "vertical" && (f != null && f.data) && f.data.length > 0) {
700
702
  const e = D(f.data, !1), t = [];
701
703
  if (e.forEach((r) => {
702
704
  const i = r == null ? void 0 : r[f.indexBy];
703
705
  i !== void 0 && t.indexOf(i) === -1 && t.push(i);
704
706
  }), ze === "count") {
705
- const r = Math.max(1, parseInt(String(ut)));
707
+ const r = Math.max(1, parseInt(String(ft)));
706
708
  if (t.length > 0 && r > 0)
707
709
  if (t.length <= r)
708
- q = t.slice();
710
+ X = t.slice();
709
711
  else {
710
712
  const i = (t.length - 1) / (r - 1), a = new Array(r);
711
713
  for (let s = 0; s < r; s++)
712
714
  a[s] = Math.floor(s * i);
713
- a[r - 1] = t.length - 1, q = a.map((s) => t[s]);
715
+ a[r - 1] = t.length - 1, X = a.map((s) => t[s]);
714
716
  }
715
717
  } else if (ze === "every") {
716
- const r = Math.max(1, parseInt(String(ot)));
718
+ const r = Math.max(1, parseInt(String(ut)));
717
719
  if (t.length > 0) {
718
720
  const i = [];
719
721
  for (let a = 0; a < t.length; a++)
720
722
  a % r === 0 && i.push(t[a]);
721
- i[i.length - 1] !== t[t.length - 1] && i.push(t[t.length - 1]), q = i;
723
+ i[i.length - 1] !== t[t.length - 1] && i.push(t[t.length - 1]), X = i;
722
724
  }
723
725
  }
724
726
  }
725
- let At = parseInt(Je + "") - Te;
726
- return /* @__PURE__ */ c("div", { style: { height: At + "px" }, className: "bar-chart", children: (f == null ? void 0 : f.data) && f.data.length > 0 && /* @__PURE__ */ x(be, { children: [
727
+ return /* @__PURE__ */ c("div", { style: { height: Ze }, children: (f == null ? void 0 : f.data) && f.data.length > 0 && /* @__PURE__ */ y(be, { children: [
727
728
  /* @__PURE__ */ c(
728
- jt,
729
+ St,
729
730
  {
730
- colorBy: A.colorBy,
731
+ colorBy: _.colorBy,
731
732
  animate: !0,
732
- enableLabel: we == Kt,
733
+ enableLabel: we == Yt,
733
734
  ...f,
734
- maxValue: _t,
735
- minValue: Tt,
735
+ maxValue: Ht,
736
+ minValue: At,
736
737
  keys: D(f.keys, !0),
737
738
  data: D(f.data, !1),
738
739
  groupMode: F || "grouped",
739
740
  margin: Vt,
740
- innerPadding: tt,
741
- valueScale: { type: Qe, clamp: !0 },
741
+ innerPadding: et,
742
+ valueScale: { type: Ue, clamp: !0 },
742
743
  colors: (e) => e && e.data[ee] ? e.data[ee] : N.getColor(e.id, e.data),
743
744
  borderColor: "#000",
744
745
  reverse: S,
745
746
  axisTop: null,
746
- axisRight: lt ? {
747
+ axisRight: nt ? {
747
748
  tickSize: u == "horizontal" && Y || u === "vertical" ? 5 : 0,
748
749
  tickPadding: 5,
749
750
  tickRotation: 0,
750
751
  tickValues: Q,
751
- legend: _.right,
752
+ legend: H.right,
752
753
  legendPosition: "middle",
753
754
  legendOffset: parseInt(De),
754
755
  format: (e) => {
@@ -765,14 +766,14 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
765
766
  return e;
766
767
  }
767
768
  } : null,
768
- axisBottom: ($ || B) && (d == null ? void 0 : d.xAxisDisabled) === !0 ? null : u === "horizontal" ? {
769
- legend: _.bottom,
769
+ axisBottom: ($ || B) && (h == null ? void 0 : h.xAxisDisabled) === !0 ? null : u === "horizontal" ? {
770
+ legend: H.bottom,
770
771
  legendPosition: "middle",
771
772
  legendOffset: parseInt(me),
772
773
  tickPadding: 5,
773
774
  tickRotation: 0,
774
775
  tickValues: Q,
775
- legend: _.right,
776
+ legend: H.right,
776
777
  legendPosition: "middle",
777
778
  legendOffset: parseInt(De),
778
779
  format: (e) => {
@@ -789,13 +790,13 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
789
790
  return e;
790
791
  }
791
792
  } : null,
792
- axisBottom: ($ || B) && (d == null ? void 0 : d.xAxisDisabled) === !0 ? null : u === "horizontal" ? {
793
- legend: _.bottom,
793
+ axisBottom: ($ || B) && (h == null ? void 0 : h.xAxisDisabled) === !0 ? null : u === "horizontal" ? {
794
+ legend: H.bottom,
794
795
  legendPosition: "middle",
795
796
  legendOffset: parseInt(me),
796
797
  tickPadding: 5,
797
798
  tickRotation: 0,
798
- tickValues: parseInt(st),
799
+ tickValues: parseInt(it),
799
800
  format: (e) => {
800
801
  if (!e) return "";
801
802
  if (u == "horizontal") {
@@ -810,10 +811,10 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
810
811
  return e;
811
812
  }
812
813
  } : {
813
- legend: _.bottom,
814
+ legend: H.bottom,
814
815
  legendPosition: "middle",
815
816
  legendOffset: parseInt(me),
816
- ...q ? { tickValues: q } : {},
817
+ ...X ? { tickValues: X } : {},
817
818
  renderTick: Dt
818
819
  },
819
820
  axisLeft: {
@@ -821,9 +822,9 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
821
822
  tickPadding: 5,
822
823
  tickRotation: 0,
823
824
  tickValues: Q,
824
- legend: _.left,
825
+ legend: H.left,
825
826
  legendPosition: "middle",
826
- legendOffset: Number.parseInt(Ue),
827
+ legendOffset: Number.parseInt(Je),
827
828
  ...$ || B ? { renderTick: Mt } : {
828
829
  format: (e) => {
829
830
  if (!e) return "";
@@ -840,13 +841,13 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
840
841
  }
841
842
  }
842
843
  },
843
- enableGridY: mt,
844
- enableGridX: ft,
844
+ enableGridY: ht,
845
+ enableGridX: mt,
845
846
  layout: u,
846
847
  labelSkipWidth: ue,
847
848
  labelSkipHeight: oe,
848
- padding: et,
849
- labelTextColor: ye(),
849
+ padding: Ge,
850
+ labelTextColor: xe(),
850
851
  label: (e) => b.formatNumber(
851
852
  p.style === "percent" && e.value ? e.value / 100 : e.value,
852
853
  p
@@ -858,14 +859,14 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
858
859
  },
859
860
  motionStiffness: 130,
860
861
  motionDamping: 15,
861
- tooltip: (e) => at && le && le.trim().length > 0 ? /* @__PURE__ */ c(
862
- St,
862
+ tooltip: (e) => tt && le && le.trim().length > 0 ? /* @__PURE__ */ c(
863
+ _t,
863
864
  {
864
865
  intl: b,
865
866
  format: p,
866
867
  d: e,
867
868
  tooltip: le,
868
- tooltipEnableMarkdown: it
869
+ tooltipEnableMarkdown: rt
869
870
  }
870
871
  ) : null,
871
872
  theme: {
@@ -885,43 +886,50 @@ const Kt = "middle", Xt = "top", T = "#66676d", qe = "#dddddd", qt = "none", ee
885
886
  }
886
887
  }
887
888
  ),
888
- (v === "top" || v === "bottom") && Ae && /* @__PURE__ */ c(
889
+ (v === "top" || v === "bottom") && He && /* @__PURE__ */ c(
889
890
  "div",
890
891
  {
891
892
  className: `legends container has-standard-12-font-size ${v}`,
892
- style: v === "bottom" ? { marginBottom: `${Te}px` } : {},
893
- children: /* @__PURE__ */ x("div", { className: "legend-sections", children: [
894
- /* @__PURE__ */ c("div", { className: "title-section", children: Re() }),
893
+ style: v === "bottom" ? {
894
+ marginBottom: `${pt}px`,
895
+ marginTop: "25px",
896
+ textAlign: "left",
897
+ justifyContent: "flex-start"
898
+ } : {
899
+ justifyContent: "flex-start"
900
+ },
901
+ children: /* @__PURE__ */ y("div", { className: "legend-sections", children: [
902
+ /* @__PURE__ */ c("div", { className: "title-section", children: je() }),
895
903
  /* @__PURE__ */ c(
896
- Yt,
904
+ Pt,
897
905
  {
898
906
  onWrapChange: (e) => {
899
907
  if (v === "top" && Ee) {
900
908
  const t = R + e / 2 * 40;
901
- We(t), He(e);
909
+ We(t), Te(e);
902
910
  } else
903
- _e(P + e / 2 * 25), He(e);
911
+ Ae(P + e / 2 * 25), Te(e);
904
912
  },
905
913
  className: "legends container has-standard-12-font-size items-section",
906
- children: Se()
914
+ children: _e()
907
915
  }
908
916
  )
909
917
  ] })
910
918
  }
911
919
  ),
912
- (v === "right" || v === "left") && Ae && /* @__PURE__ */ x(
920
+ (v === "right" || v === "left") && He && /* @__PURE__ */ y(
913
921
  "div",
914
922
  {
915
923
  className: `legends container has-standard-12-font-size ${v}`,
916
924
  style: v === "right" ? bt : vt,
917
925
  children: [
918
- Re(),
919
- Se()
926
+ je(),
927
+ _e()
920
928
  ]
921
929
  }
922
930
  )
923
931
  ] }) });
924
- }, fa = Rt(Zt);
932
+ }, ma = jt(Xt);
925
933
  export {
926
- fa as default
934
+ ma as default
927
935
  };