@devgateway/dvz-ui-react 1.8.8 → 1.9.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.
Files changed (50) hide show
  1. package/dist/cjs/common.css +1 -1
  2. package/dist/cjs/embeddable/big-number-trend/Alternative.js +1 -1
  3. package/dist/cjs/embeddable/big-number-trend/BigNumberTrendContainer.js +1 -0
  4. package/dist/cjs/embeddable/big-number-trend/Classic.js +1 -1
  5. package/dist/cjs/embeddable/big-number-trend/useBigNumberTrendData.js +1 -0
  6. package/dist/cjs/embeddable/chart/Bar.js +1 -1
  7. package/dist/cjs/embeddable/chart/Messages.js +2 -2
  8. package/dist/cjs/embeddable/chart/data/Line.js +1 -1
  9. package/dist/cjs/embeddable/chart/data/Utils.js +1 -1
  10. package/dist/cjs/embeddable/chart/index.js +1 -1
  11. package/dist/cjs/embeddable/d3Map/index.js +1 -1
  12. package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
  13. package/dist/cjs/embeddable/data/DataConsumer.js +1 -1
  14. package/dist/cjs/embeddable/data/DataProvider.js +1 -1
  15. package/dist/cjs/embeddable/featuredtabs/index.js +1 -1
  16. package/dist/cjs/embeddable/map/index.js +2 -2
  17. package/dist/cjs/embeddable/reducers/data.js +1 -1
  18. package/dist/cjs/index.js +1 -1
  19. package/dist/cjs/layout/FlexWrapDetector.js +1 -1
  20. package/dist/cjs/styles.css +1 -1
  21. package/dist/esm/common.css +1 -1
  22. package/dist/esm/embeddable/big-number-trend/Alternative.js +62 -211
  23. package/dist/esm/embeddable/big-number-trend/BigNumberTrendContainer.js +125 -0
  24. package/dist/esm/embeddable/big-number-trend/Classic.js +51 -181
  25. package/dist/esm/embeddable/big-number-trend/index.js +8 -8
  26. package/dist/esm/embeddable/big-number-trend/useBigNumberTrendData.js +49 -0
  27. package/dist/esm/embeddable/chart/Bar.js +464 -471
  28. package/dist/esm/embeddable/chart/Messages.js +18 -15
  29. package/dist/esm/embeddable/chart/data/Line.js +1 -4
  30. package/dist/esm/embeddable/chart/data/Utils.js +0 -1
  31. package/dist/esm/embeddable/chart/index.js +363 -359
  32. package/dist/esm/embeddable/d3Map/index.js +129 -125
  33. package/dist/esm/embeddable/data/CategoriesProvider.js +31 -38
  34. package/dist/esm/embeddable/data/DataConsumer.js +12 -8
  35. package/dist/esm/embeddable/data/DataProvider.js +62 -124
  36. package/dist/esm/embeddable/featuredtabs/index.js +64 -61
  37. package/dist/esm/embeddable/map/index.js +42 -42
  38. package/dist/esm/embeddable/reducers/data.js +46 -44
  39. package/dist/esm/index.js +74 -73
  40. package/dist/esm/layout/FlexWrapDetector.js +10 -10
  41. package/dist/esm/styles.css +1 -1
  42. package/dist/types/embeddable/big-number-trend/Alternative.d.ts +2 -4
  43. package/dist/types/embeddable/big-number-trend/BigNumberTrendContainer.d.ts +5 -0
  44. package/dist/types/embeddable/big-number-trend/Classic.d.ts +2 -4
  45. package/dist/types/embeddable/big-number-trend/useBigNumberTrendData.d.ts +21 -0
  46. package/dist/types/embeddable/chart/Bar.d.ts +1 -2
  47. package/dist/types/embeddable/data/DataConsumer.d.ts +5 -2
  48. package/dist/types/embeddable/data/DataProvider.d.ts +18 -3
  49. package/dist/types/layout/FlexWrapDetector.d.ts +2 -1
  50. package/package.json +2 -2
@@ -1,26 +1,26 @@
1
1
  import { jsx as p, jsxs as se } from "react/jsx-runtime";
2
- import { useState as z, useRef as st, useEffect as de } from "react";
2
+ import { useState as F, useRef as ct, useEffect as de } from "react";
3
3
  import { Container as le } from "semantic-ui-react";
4
- import nr from "../data/DataProvider.js";
5
- import ir from "../data/DataConsumer.js";
6
- import dt from "../../utils/deviceType.js";
7
- import sr from "./Pie.js";
4
+ import lr from "../data/DataProvider.js";
5
+ import cr from "../data/DataConsumer.js";
6
+ import ut from "../../utils/deviceType.js";
7
+ import ur from "./Pie.js";
8
8
  import "immutable";
9
- import dr from "./Radar.js";
10
- import lr from "./Bar.js";
11
- import cr from "./Line.js";
12
- import { PostContent as ur } from "@devgateway/wp-react-lib";
13
- import S from "./data/index.js";
14
- import mr from "./CSVDataFrame.js";
15
- import pr from "./colors/ColorProvider.js";
16
- import lt from "./Messages.js";
17
- import { connect as hr } from "react-redux";
18
- import { injectIntl as fr } from "react-intl";
19
- const gr = (R) => {
9
+ import mr from "./Radar.js";
10
+ import pr from "./Bar.js";
11
+ import hr from "./Line.js";
12
+ import { PostContent as fr } from "@devgateway/wp-react-lib";
13
+ import q from "./data/index.js";
14
+ import gr from "./CSVDataFrame.js";
15
+ import br from "./colors/ColorProvider.js";
16
+ import mt from "./Messages.js";
17
+ import { connect as wr } from "react-redux";
18
+ import { injectIntl as vr } from "react-intl";
19
+ const xr = (R) => {
20
20
  let {
21
21
  parent: ce,
22
22
  editing: s = !1,
23
- unique: _,
23
+ unique: S,
24
24
  childContent: L,
25
25
  categories: N,
26
26
  injectedMeasures: l,
@@ -28,146 +28,147 @@ const gr = (R) => {
28
28
  "data-dvz-proxy-dataset-id": ue,
29
29
  "data-group": me = "default",
30
30
  "data-height": O = 500,
31
- "data-type": X = "bar",
31
+ "data-chart-height": pe = 0,
32
+ "data-type": H = "bar",
32
33
  //'data-source': source = 'gender/smoke',f
33
- "data-dimension1": F,
34
- "data-dimension2": pe,
35
- "data-dimension3": wr,
36
- "data-color-by": E = "index",
37
- "data-scheme": K = "system",
38
- "data-group-mode": ct = "grouped",
39
- "data-left-legend": ut = "Left Legend",
40
- "data-legend-label": mt = "",
41
- "data-bottom-legend": pt = "Bottom Legend",
42
- "data-dualmode": ht,
43
- "data-legend-position": he = "right",
44
- "data-show-legends": fe = "true",
45
- "data-data-source-label": xr = "Source",
46
- "data-chart-data-source": yr = "Data Source",
47
- "data-toggle-info-label": Lr = "Info Graphic",
48
- "data-toggle-chart-label": kr = "Chart",
34
+ "data-dimension1": E,
35
+ "data-dimension2": he,
36
+ "data-dimension3": Tr,
37
+ "data-color-by": P = "index",
38
+ "data-scheme": J = "system",
39
+ "data-group-mode": pt = "grouped",
40
+ "data-left-legend": ht = "Left Legend",
41
+ "data-legend-label": ft = "",
42
+ "data-bottom-legend": gt = "Bottom Legend",
43
+ "data-dualmode": bt,
44
+ "data-legend-position": fe = "right",
45
+ "data-show-legends": ge = "true",
46
+ "data-data-source-label": kr = "Source",
47
+ "data-chart-data-source": Ir = "Data Source",
48
+ "data-toggle-info-label": Mr = "Info Graphic",
49
+ "data-toggle-chart-label": Dr = "Chart",
49
50
  //'data-number-format': format = '{"style":"percent", "minimumFractionDigits": 1, "maximumFractionDigits": 1}',
50
51
  "data-tick-rotation": m = 0,
51
- "data-tick-color": ft = "rgb(92,93,99)",
52
- "data-measures": gt = "{}",
53
- "data-format": Tr = "{}",
54
- "data-csv": bt = "",
55
- "data-margin-left": vt = 50,
56
- "data-margin-top": wt = 25,
57
- "data-margin-right": xt = 25,
58
- "data-margin-bottom": yt = 25,
59
- "data-start-angle": Lt = 0,
60
- "data-end-angle": kt = 360,
61
- "data-view-mode": ge = "info",
62
- "data-filters": Tt = "[]",
52
+ "data-tick-color": wt = "rgb(92,93,99)",
53
+ "data-measures": vt = "{}",
54
+ "data-format": Ar = "{}",
55
+ "data-csv": xt = "",
56
+ "data-margin-left": yt = 50,
57
+ "data-margin-top": Lt = 25,
58
+ "data-margin-right": Tt = 25,
59
+ "data-margin-bottom": kt = 25,
60
+ "data-start-angle": It = 0,
61
+ "data-end-angle": Mt = 360,
62
+ "data-view-mode": be = "info",
63
+ "data-filters": Dt = "[]",
63
64
  //filters
64
- "data-tooltip-html": Ct = "",
65
- "data-layout": Q = "vertical",
66
- "data-reverse": be = "false",
67
- "data-offset-y": It = "-40",
65
+ "data-tooltip-html": At = "",
66
+ "data-layout": K = "vertical",
67
+ "data-reverse": we = "false",
68
+ "data-offset-y": Ct = "-40",
68
69
  "data-line-layer-enabled": ve = "false",
69
70
  //"data-csv-line-layer-data": csvLineLayerData = "",
70
71
  //"data-csv-line-color": lineColor = "#000000",
71
72
  //"data-csv-line-tooltip": lineTooltip = "",
72
73
  //"data-csv-line-title": lineTitle = "",
73
- "data-overlays": Mt = "[]",
74
- "data-max-value": At = "auto",
75
- "data-value-scale": Dt = "linear",
76
- "data-swap": G = "false",
77
- "data-no-data-message": Rt = "No data matches your selection",
78
- "data-bar-color": Ft = "rgb(0,0,0)",
79
- "data-override-tick-color": we = "false",
80
- "data-fixed-min-value": Et = 0,
81
- "data-fixed-max-value": Pt = 0,
82
- "data-bar-padding": Bt = 0.15,
83
- "data-bar-label-position": zt = "middle",
84
- "data-line-label-position": Nt = "none",
85
- "data-show-grid": xe = "true",
86
- "data-include-overall": ye = "false",
87
- "data-bar-inner-padding": Xt = 0.7,
88
- "data-x-label-color": Gt = "#000",
89
- "data-bar-label-color": Vt = "#000",
90
- "data-legend-label-color": Ut = "#000",
91
- "data-tooltip-enabled": Le = "true",
74
+ "data-overlays": Ft = "[]",
75
+ "data-max-value": Rt = "auto",
76
+ "data-value-scale": Et = "linear",
77
+ "data-swap": X = "false",
78
+ "data-no-data-message": Pt = "No data matches your selection",
79
+ "data-bar-color": Bt = "rgb(0,0,0)",
80
+ "data-override-tick-color": xe = "false",
81
+ "data-fixed-min-value": zt = 0,
82
+ "data-fixed-max-value": Nt = 0,
83
+ "data-bar-padding": Ht = 0.15,
84
+ "data-bar-label-position": Xt = "middle",
85
+ "data-line-label-position": Gt = "none",
86
+ "data-show-grid": ye = "true",
87
+ "data-include-overall": Le = "false",
88
+ "data-bar-inner-padding": Vt = 0.7,
89
+ "data-x-label-color": Ut = "#000",
90
+ "data-bar-label-color": Wt = "#000",
91
+ "data-legend-label-color": _t = "#000",
92
+ "data-tooltip-enabled": Te = "true",
92
93
  "data-use-check-box-background": ke = "false",
93
- "data-use-label-background": Te = "true",
94
- "data-highlight-xaxis-line": Ce = "false",
95
- "data-show-tick-line": Ie = "true",
96
- "data-show-right-axis": Me = "true",
97
- "data-manual-colors": Ht = "{}",
98
- "data-right-legend": $t = "",
99
- "data-offset-right": Wt = "40",
100
- "data-offset-bottom": Yt = "40",
101
- "data-hidden-bars": qt = [],
94
+ "data-use-label-background": Ie = "true",
95
+ "data-highlight-xaxis-line": Me = "false",
96
+ "data-show-tick-line": De = "true",
97
+ "data-show-right-axis": Ae = "true",
98
+ "data-manual-colors": $t = "{}",
99
+ "data-right-legend": Yt = "",
100
+ "data-offset-right": qt = "40",
101
+ "data-offset-bottom": St = "40",
102
+ "data-hidden-bars": Ot = [],
102
103
  "data-confidence-intervals": Jt = "[]",
103
- "data-enable-area": Ae = "false",
104
- "data-area-shading-criteria": St = "DEFAULT",
105
- "data-area-lower-bound": _t = "",
106
- "data-area-upper-bound": Ot = "",
107
- "data-show-points": De = "true",
108
- "data-center-label": Kt = "",
104
+ "data-enable-area": Ce = "false",
105
+ "data-area-shading-criteria": Kt = "DEFAULT",
106
+ "data-area-lower-bound": Qt = "",
107
+ "data-area-upper-bound": Zt = "",
108
+ "data-show-points": Fe = "true",
109
+ "data-center-label": jt = "",
109
110
  "data-show-arc-labels": Re = "true",
110
- "data-show-arc-link-labels": Fe = "true",
111
- "data-slice-padding": Qt = 1,
112
- "data-center-label-font-weight": Zt = "normal",
113
- "data-center-label-font-size": jt = "12",
114
- "data-center-label-xoffset": ea = 0,
115
- "data-center-label-yoffset": ta = 0,
116
- "data-group-total-measure": aa = "",
117
- "data-show-group-total": Ee = "true",
118
- "data-group-total-label": ra = "",
119
- "data-group-total-format": oa = "{}",
120
- "data-group-total-label-offset": na,
121
- "data-group-total-fixed-position": Pe = "false",
122
- "data-tooltip-enable-markdown": V = "false",
123
- "data-y-axis-tick-values": Be = "10",
124
- "data-x-axis-tick-values": ze = "10",
125
- "data-enable-grid-y": k = "true",
126
- "data-enable-grid-x": T = "false",
127
- "data-offset-text": ia = 0,
128
- "data-overall-label": Z = "Overall",
129
- "data-min-max-clamp": sa = "false",
130
- "data-reverse-legend": Ne = "false",
111
+ "data-show-arc-link-labels": Ee = "true",
112
+ "data-slice-padding": ea = 1,
113
+ "data-center-label-font-weight": ta = "normal",
114
+ "data-center-label-font-size": aa = "12",
115
+ "data-center-label-xoffset": ra = 0,
116
+ "data-center-label-yoffset": oa = 0,
117
+ "data-group-total-measure": na = "",
118
+ "data-show-group-total": Pe = "true",
119
+ "data-group-total-label": ia = "",
120
+ "data-group-total-format": sa = "{}",
121
+ "data-group-total-label-offset": da,
122
+ "data-group-total-fixed-position": Be = "false",
123
+ "data-tooltip-enable-markdown": G = "false",
124
+ "data-y-axis-tick-values": ze = "10",
125
+ "data-x-axis-tick-values": Ne = "10",
126
+ "data-enable-grid-y": T = "true",
127
+ "data-enable-grid-x": k = "false",
128
+ "data-offset-text": la = 0,
129
+ "data-overall-label": Q = "Overall",
130
+ "data-min-max-clamp": ca = "false",
131
+ "data-reverse-legend": He = "false",
131
132
  "data-sort": Xe = "default",
132
- "data-sort-reverse": U = "false",
133
+ "data-sort-reverse": V = "false",
133
134
  "data-sort-second-dimension": Ge = "default",
134
- "data-sort-reverse-second-dimension": H = "false",
135
- "data-radar-curve": da = "linearClosed",
136
- "data-radar-fill-opacity": la = 0.25,
137
- "data-radar-border-width": ca = 2,
138
- "data-radar-grid-levels": ua = 3,
139
- "data-radar-grid-shape": ma = "circular",
140
- "data-radar-grid-label-offset": pa = 36,
135
+ "data-sort-reverse-second-dimension": U = "false",
136
+ "data-radar-curve": ua = "linearClosed",
137
+ "data-radar-fill-opacity": ma = 0.25,
138
+ "data-radar-border-width": pa = 2,
139
+ "data-radar-grid-levels": ha = 3,
140
+ "data-radar-grid-shape": fa = "circular",
141
+ "data-radar-grid-label-offset": ga = 36,
141
142
  "data-radar-enable-dots": Ve = "true",
142
- "data-radar-dot-size": ha = 8,
143
+ "data-radar-dot-size": ba = 8,
143
144
  "data-radar-enable-dot-label": Ue = "true",
144
- "data-radar-dot-label-offset": fa = -12,
145
- "data-mobile-customization": He = "{}",
146
- "data-show-percentage": $e = "false",
147
- "data-preview-mode": g = "Desktop",
148
- "data-wait-for-filters": ga = "false",
149
- "data-line-curve": ba = "linear",
150
- "data-show-legends-in-columns": We = "false",
151
- "data-number-of-legend-columns": va = 4,
152
- "data-line-x-axis-tick-mode": wa = "none",
153
- "data-line-x-axis-tick-count": xa = 10,
154
- "data-line-x-axis-tick-every": ya = 1,
145
+ "data-radar-dot-label-offset": wa = -12,
146
+ "data-mobile-customization": We = "{}",
147
+ "data-show-percentage": _e = "false",
148
+ "data-preview-mode": h = "Desktop",
149
+ "data-wait-for-filters": va = "false",
150
+ "data-line-curve": xa = "linear",
151
+ "data-line-x-axis-tick-mode": ya = "none",
152
+ "data-line-x-axis-tick-count": La = 10,
153
+ "data-line-x-axis-tick-every": Ta = 1,
155
154
  pageModuleProps: b
156
155
  } = R;
157
- const La = s, t = JSON.parse(
158
- decodeURIComponent(He)
159
- ), [$, ka] = z(
156
+ const ka = s, t = JSON.parse(
157
+ decodeURIComponent(We)
158
+ ), [Z, Ia] = F(
160
159
  window.innerWidth <= 1250
161
- ), x = $ && ((t == null ? void 0 : t.showCustomization) ?? !1);
162
- b != null && b.previewMode && (b != null && b.editing) && (g = b.previewMode, s = b.editing);
163
- const Ta = ["Tablet"].includes(g) && s, Ca = ["Mobile"].includes(g) && s, Ia = ["Desktop"].includes(g) && s, c = x && g !== "Desktop", u = x && !s, j = () => {
160
+ ), [Ma, Da] = F(
161
+ window.innerWidth <= 1024
162
+ ), x = Z && ((t == null ? void 0 : t.showCustomization) ?? !1);
163
+ b != null && b.previewMode && (b != null && b.editing) && (h = b.previewMode, s = b.editing);
164
+ const Aa = ["Tablet"].includes(h) && s, Ca = ["Mobile"].includes(h) && s, Fa = ["Desktop"].includes(h) && s, c = x && h !== "Desktop", u = x && !s, Ra = s ? h !== "Desktop" : Ma, $e = s ? h !== "Desktop" : Z, j = () => {
164
165
  const e = window.matchMedia(
165
166
  "(min-width: 768px) and (max-width: 1250px)"
166
167
  ).matches, n = window.matchMedia("(max-width: 767px)").matches;
167
168
  switch (!0) {
168
- case Ia:
169
+ case Fa:
169
170
  return m;
170
- case Ta:
171
+ case Aa:
171
172
  return x ? (t == null ? void 0 : t.tabletXAxisTextRotation) ?? m : m;
172
173
  case Ca:
173
174
  return x ? (t == null ? void 0 : t.mobileXAxisTextRotation) ?? m : m;
@@ -178,34 +179,34 @@ const gr = (R) => {
178
179
  default:
179
180
  return m;
180
181
  }
181
- }, Ma = j(), [Aa, Ye] = z(Ma), qe = R.intl.locale, C = st(null), Je = (e) => {
182
+ }, Ea = j(), [Pa, Ye] = F(Ea), qe = R.intl.locale, I = ct(null), Se = (e) => {
182
183
  try {
183
- return La ? e : decodeURIComponent(e);
184
+ return ka ? e : decodeURIComponent(e);
184
185
  } catch {
185
186
  return console.error(`error decoding value:${e}`), e;
186
187
  }
187
- }, I = (e) => {
188
+ }, M = (e) => {
188
189
  try {
189
- return JSON.parse(Je(e));
190
+ return JSON.parse(Se(e));
190
191
  } catch {
191
192
  console.error(`error parsing value:${e}`);
192
193
  }
193
194
  return null;
194
- }, Da = () => {
195
- const e = I(Ht);
195
+ }, Ba = () => {
196
+ const e = M($t);
196
197
  if (!e) return null;
197
198
  const n = e[o];
198
- if (o === "csv" && n && K === "manual") {
199
+ if (o === "csv" && n && J === "manual") {
199
200
  const r = {}, d = {};
200
- Object.keys(n).forEach((w) => {
201
- const f = n[w];
202
- typeof f == "string" ? r[w] = f : typeof f == "object" && f !== null && (d[w] = f);
201
+ Object.keys(n).forEach((v) => {
202
+ const g = n[v];
203
+ typeof g == "string" ? r[v] = g : typeof g == "object" && g !== null && (d[v] = g);
203
204
  });
204
- const h = d[E] || {};
205
- return { [E]: { ...r, ...h } };
205
+ const f = d[P] || {};
206
+ return { [P]: { ...r, ...f } };
206
207
  }
207
208
  return n;
208
- }, Ra = () => I(gt), Se = () => {
209
+ }, za = () => M(vt), Oe = () => {
209
210
  var e;
210
211
  if (a != null && a[o]) {
211
212
  let n = (e = a == null ? void 0 : a[o]) == null ? void 0 : e.format;
@@ -220,36 +221,36 @@ const gr = (R) => {
220
221
  return n;
221
222
  }
222
223
  return a != null && a.csv ? a.csv.format : null;
223
- }, Fa = () => {
224
+ }, Na = () => {
224
225
  let e = null;
225
226
  return a != null && a[o] ? a[o].useCustomAxisFormat && a[o].customFormat && (e = a[o].customFormat) : a != null && a.csv && a.csv.useCustomAxisFormat && a.csv.customFormat && (e = a.csv.customFormat), e;
226
- }, Ea = () => a != null && a[o] ? Object.keys(a[o]).map((e) => ({ value: e, ...a[o][e] })).filter((e) => e.selected).map((e) => e.value) : [], _e = () => {
227
+ }, Ha = () => a != null && a[o] ? Object.keys(a[o]).map((e) => ({ value: e, ...a[o][e] })).filter((e) => e.selected).map((e) => e.value) : [], Je = () => {
227
228
  const e = {};
228
229
  return a != null && a[o] && Object.keys(a[o]).map((r) => ({ value: r, ...a[o][r] })).filter((r) => r.selected && r.hasCustomLabel).forEach((r) => {
229
230
  e[r.value] = r.customLabel;
230
231
  }), e;
231
- }, Pa = () => a != null && a[o] ? Object.keys(a[o]).filter(
232
+ }, Xa = () => a != null && a[o] ? Object.keys(a[o]).filter(
232
233
  (e) => a[o][e].allowSelection
233
234
  ) : [];
234
- let a = Ra(), y = Ea(), v = Se();
235
- const Ba = Pa();
236
- let ee = ut, te = $t, ae = Je(Ct);
235
+ let a = za(), y = Ha(), w = Oe();
236
+ const Ga = Xa();
237
+ let ee = ht, te = Yt, ae = Se(At);
237
238
  if (l != null && l[o]) {
238
239
  const e = Object.keys(l[o].measures).map((n) => ({ value: n, ...l[o].measures[n] })).filter((n) => n.selected).map((n) => n.value);
239
- a = l, y = e, v = Se(), ee = l.leftTitle, te = l.rightTitle, l.customTooltip && (ae = l.customTooltip);
240
+ a = l, y = e, w = Oe(), ee = l.leftTitle, te = l.rightTitle, l.customTooltip && (ae = l.customTooltip);
240
241
  }
241
- const za = v ? {
242
- style: v.style === "compacted" ? "decimal" : v.style,
243
- notation: v.style === "compacted" ? "compact" : "standard",
244
- currency: v.currency,
245
- minimumFractionDigits: parseInt(v.minimumFractionDigits),
246
- maximumFractionDigits: parseInt(v.maximumFractionDigits)
242
+ const Va = w ? {
243
+ style: w.style === "compacted" ? "decimal" : w.style,
244
+ notation: w.style === "compacted" ? "compact" : "standard",
245
+ currency: w.currency,
246
+ minimumFractionDigits: parseInt(w.minimumFractionDigits),
247
+ maximumFractionDigits: parseInt(w.maximumFractionDigits)
247
248
  } : {
248
249
  notation: "standard",
249
250
  currency: "USD",
250
251
  minimumFractionDigits: 2,
251
252
  maximumFractionDigits: 2
252
- }, Na = Fa(), i = I(oa), Xa = {
253
+ }, Ua = Na(), i = M(sa), Wa = {
253
254
  style: (i == null ? void 0 : i.style) === "compacted" ? "decimal" : i == null ? void 0 : i.style,
254
255
  notation: (i == null ? void 0 : i.style) === "compacted" ? "compact" : "standard",
255
256
  currency: i == null ? void 0 : i.currency,
@@ -259,24 +260,24 @@ const gr = (R) => {
259
260
  maximumFractionDigits: parseInt(
260
261
  i == null ? void 0 : i.maximumFractionDigits
261
262
  )
262
- }, [Ga, Cr] = z(ge), Va = s ? ge : Ga, Ua = {
263
- scheme: K,
264
- colorBy: E
265
- }, W = s ? O - 80 : O, Ha = () => (c || u) && !(t != null && t.showXAxisTitle) ? "" : pt, $a = () => c || u ? t != null && t.showYAxisTitle ? ee : "" : ee, Wa = () => c || u ? t != null && t.showRightAxisTitle ? te : "" : te, Ya = {
266
- left: $a(),
267
- bottom: Ha(),
268
- right: Wa()
269
- }, Y = (e) => {
263
+ }, [_a, Cr] = F(be), $a = s ? be : _a, Ya = {
264
+ scheme: J,
265
+ colorBy: P
266
+ }, W = s ? O - 0 : O, Ke = (Number.parseInt(pe) || 0) > 0 ? { minHeight: `${W}px` } : { height: `${W}px` }, qa = () => (c || u) && !(t != null && t.showXAxisTitle) ? "" : gt, Sa = () => c || u ? t != null && t.showYAxisTitle ? ee : "" : ee, Oa = () => c || u ? t != null && t.showRightAxisTitle ? te : "" : te, Ja = {
267
+ left: Sa(),
268
+ bottom: qa(),
269
+ right: Oa()
270
+ }, _ = (e) => {
270
271
  if (e === "true" || e === !0)
271
272
  return !0;
272
273
  if (e === "false" || e === !1)
273
274
  return !1;
274
- }, Oe = () => {
275
- Y(T) && !Y(k) ? (T = !1, k = !0) : !Y(T) && Y(k) && (T = !0, k = !1);
276
- }, qa = () => Q === "horizontal" ? (Oe(), "vertical") : (Oe(), "horizontal"), Ja = () => t != null && t.chartLayoutOverride ? qa() : Q, q = (e, n, r) => e ? Number.parseInt(n) ?? r : r, Ke = (e, n, r) => e ? n ?? r : r;
275
+ }, Qe = () => {
276
+ _(k) && !_(T) ? (k = !1, T = !0) : !_(k) && _(T) && (k = !0, T = !1);
277
+ }, Ka = () => K === "horizontal" ? (Qe(), "vertical") : (Qe(), "horizontal"), Qa = () => t != null && t.chartLayoutOverride ? Ka() : K, $ = (e, n, r) => e ? Number.parseInt(n) ?? r : r, Ze = (e, n, r) => e ? n ?? r : r;
277
278
  de(() => {
278
279
  const e = () => {
279
- ka(window.innerWidth <= 1250);
280
+ Ia(window.innerWidth <= 1250), Da(window.innerWidth <= 1024);
280
281
  const n = j();
281
282
  Ye(n);
282
283
  };
@@ -285,323 +286,326 @@ const gr = (R) => {
285
286
  };
286
287
  }, [
287
288
  s,
288
- g,
289
+ h,
289
290
  x,
290
291
  m,
291
292
  t == null ? void 0 : t.tabletXAxisTextRotation,
292
293
  t == null ? void 0 : t.mobileXAxisTextRotation
293
294
  ]);
294
- const Sa = () => {
295
+ const Za = () => {
295
296
  const e = ["tablet", "mobile", "midTablet"].includes(
296
- dt()
297
+ ut()
297
298
  );
298
- return s && g === "Desktop" ? he : e ? "bottom" : he;
299
- }, Qe = {
299
+ return s && h === "Desktop" ? fe : e ? "bottom" : fe;
300
+ }, je = {
300
301
  app: o,
301
302
  editing: s,
302
- tickColor: decodeURIComponent(ft),
303
- tickRotation: Aa,
304
- layout: c || u ? Ja() : Q,
305
- reverse: be == !0 || be == "true",
306
- showLegends: fe == !0 || fe == "true",
307
- legendLabel: mt,
308
- swap: G == !0 || G == "true",
309
- showGrid: xe == !0 || xe == "true",
310
- showPercentage: $e == !0 || $e == "true",
311
- marginLeft: q(
303
+ tickColor: decodeURIComponent(wt),
304
+ tickRotation: Pa,
305
+ layout: c || u ? Qa() : K,
306
+ reverse: we == !0 || we == "true",
307
+ showLegends: ge == !0 || ge == "true",
308
+ legendLabel: ft,
309
+ swap: X == !0 || X == "true",
310
+ showGrid: ye == !0 || ye == "true",
311
+ showPercentage: _e == !0 || _e == "true",
312
+ marginLeft: $(
312
313
  c || u,
313
314
  Number.parseInt(t == null ? void 0 : t.marginLeft),
314
- parseInt(vt)
315
+ parseInt(yt)
315
316
  ),
316
- marginTop: q(
317
+ marginTop: $(
317
318
  c || u,
318
319
  Number.parseInt(t == null ? void 0 : t.marginTop),
319
- parseInt(wt)
320
+ parseInt(Lt)
320
321
  ),
321
- marginRight: q(
322
+ marginRight: $(
322
323
  c || u,
323
324
  Number.parseInt(t == null ? void 0 : t.marginRight),
324
- Number.parseInt(xt)
325
+ Number.parseInt(Tt)
325
326
  ),
326
- marginBottom: q(
327
+ marginBottom: $(
327
328
  c || u,
328
329
  Number.parseInt(t == null ? void 0 : t.marginBottom),
329
- Number.parseInt(yt)
330
+ Number.parseInt(kt)
330
331
  ),
331
332
  height: `${W}px`,
332
- legendPosition: Sa(),
333
- legends: Ya,
334
- tooltip: V == !0 || V == "true" ? ae : ae.replace(/\r\n/g, "<hr/>").replace(/[\r\n]/g, "<hr/>"),
335
- colors: Ua,
336
- groupMode: ct,
337
- format: za,
338
- startAngle: Lt,
339
- endAngle: kt,
340
- offsetY: It,
333
+ // Explicit chart-area height (0 = legacy: chart fills `height`, legend shares it).
334
+ chartHeight: Number.parseInt(pe) || 0,
335
+ legendPosition: Za(),
336
+ legends: Ja,
337
+ tooltip: G == !0 || G == "true" ? ae : ae.replace(/\r\n/g, "<hr/>").replace(/[\r\n]/g, "<hr/>"),
338
+ colors: Ya,
339
+ groupMode: pt,
340
+ format: Va,
341
+ startAngle: It,
342
+ endAngle: Mt,
343
+ offsetY: Ct,
341
344
  // csvLineLayerData,
342
345
  // lineColor: decodeURIComponent(lineColor),
343
346
  // lineTooltip,
344
347
  // lineTitle,
345
- maxValue: At,
346
- valueScale: Dt,
348
+ maxValue: Rt,
349
+ valueScale: Et,
347
350
  categories: N,
348
351
  lineLayerEnabled: ve == !0 || ve == "true",
349
- overlays: I(Mt) || [],
350
- barColor: decodeURIComponent(Ft),
351
- overrideTickColor: we == !0 || we == "true",
352
- fixedMinValue: Et,
353
- fixedMaxValue: Pt,
354
- barPadding: Ke(
352
+ overlays: M(Ft) || [],
353
+ barColor: decodeURIComponent(Bt),
354
+ overrideTickColor: xe == !0 || xe == "true",
355
+ fixedMinValue: zt,
356
+ fixedMaxValue: Nt,
357
+ barPadding: Ze(
355
358
  c || u,
356
359
  t == null ? void 0 : t.barPadding,
357
- Bt
360
+ Ht
358
361
  ),
359
- barLabelPosition: zt,
360
- lineLabelPosition: Nt,
361
- barInnerPadding: Ke(
362
+ barLabelPosition: Xt,
363
+ lineLabelPosition: Gt,
364
+ barInnerPadding: Ze(
362
365
  c || u,
363
366
  t == null ? void 0 : t.barInnerPadding,
364
- Xt
367
+ Vt
365
368
  ),
366
- xLabelColor: decodeURIComponent(Gt),
367
- barLabelColor: decodeURIComponent(Vt),
368
- legendLabelColor: decodeURIComponent(Ut),
369
- tooltipEnabled: Le == !0 || Le == "true",
370
- legendLabelBack: Te == !0 || Te == "true",
369
+ xLabelColor: decodeURIComponent(Ut),
370
+ barLabelColor: decodeURIComponent(Wt),
371
+ legendLabelColor: decodeURIComponent(_t),
372
+ tooltipEnabled: Te == !0 || Te == "true",
373
+ legendLabelBack: Ie == !0 || Ie == "true",
371
374
  legendCheckBack: ke == !0 || ke == "true",
372
- highlightXAxisLine: Ce == !0 || Ce == "true",
373
- showTickLine: Ie == !0 || Ie == "true",
374
- showRightAxis: Me == !0 || Me == "true",
375
- offsetRight: Wt,
376
- offsetBottom: Yt,
377
- confidenceIntervals: I(Jt) || [],
378
- showPoints: De == !0 || De == "true",
379
- enableArea: Ae == !0 || Ae == "true",
380
- areaShadingCriteria: St,
381
- areaLowerBound: _t,
382
- areaUpperBound: Ot,
383
- showGroupTotal: Ee == !0 || Ee == "true",
384
- groupTotalMeasure: aa,
385
- groupTotalLabel: ra,
386
- groupTotalFormat: Xa,
387
- groupTotalOffset: na,
388
- groupTotalFixedPosition: Pe == !0 || Pe == "true",
389
- centerLabel: Kt,
375
+ highlightXAxisLine: Me == !0 || Me == "true",
376
+ showTickLine: De == !0 || De == "true",
377
+ showRightAxis: Ae == !0 || Ae == "true",
378
+ offsetRight: qt,
379
+ offsetBottom: St,
380
+ confidenceIntervals: M(Jt) || [],
381
+ showPoints: Fe == !0 || Fe == "true",
382
+ enableArea: Ce == !0 || Ce == "true",
383
+ areaShadingCriteria: Kt,
384
+ areaLowerBound: Qt,
385
+ areaUpperBound: Zt,
386
+ showGroupTotal: Pe == !0 || Pe == "true",
387
+ groupTotalMeasure: na,
388
+ groupTotalLabel: ia,
389
+ groupTotalFormat: Wa,
390
+ groupTotalOffset: da,
391
+ groupTotalFixedPosition: Be == !0 || Be == "true",
392
+ centerLabel: jt,
390
393
  showArcLabels: Re == !0 || Re == "true",
391
- showArcLinkLabels: Fe == !0 || Fe == "true",
392
- slicePadding: Qt,
393
- centerLabelFontWeight: Zt,
394
- centerLabelFontSize: jt,
395
- centerLabelXOffset: ea,
396
- centerLabelYOffset: ta,
397
- userMeasures: Ba,
398
- tooltipEnableMarkdown: V == !0 || V == "true",
399
- yAxisTickValues: c || u ? t.yAxisTickValues ?? Be : Be,
400
- xAxisTickValues: c || u ? t.xAxisTickValues ?? ze : ze,
401
- lineXAxisTickMode: wa,
402
- lineXAxisTickCount: parseInt(xa) || 10,
403
- lineXAxisTickEvery: parseInt(ya) || 1,
404
- enableGridY: k == !0 || k == "true",
405
- enableGridX: T == !0 || T == "true",
406
- offsetText: ia,
394
+ showArcLinkLabels: Ee == !0 || Ee == "true",
395
+ slicePadding: ea,
396
+ centerLabelFontWeight: ta,
397
+ centerLabelFontSize: aa,
398
+ centerLabelXOffset: ra,
399
+ centerLabelYOffset: oa,
400
+ userMeasures: Ga,
401
+ tooltipEnableMarkdown: G == !0 || G == "true",
402
+ yAxisTickValues: c || u ? t.yAxisTickValues ?? ze : ze,
403
+ xAxisTickValues: c || u ? t.xAxisTickValues ?? Ne : Ne,
404
+ lineXAxisTickMode: ya,
405
+ lineXAxisTickCount: parseInt(La) || 10,
406
+ lineXAxisTickEvery: parseInt(Ta) || 1,
407
+ enableGridY: T == !0 || T == "true",
408
+ enableGridX: k == !0 || k == "true",
409
+ offsetText: la,
407
410
  selectedMeasures: y,
408
- overallLabel: Z,
409
- minMaxClamp: sa,
410
- reverseLegend: Ne == !0 || Ne == "true",
411
- customAxisFormat: Na,
411
+ overallLabel: Q,
412
+ minMaxClamp: ca,
413
+ reverseLegend: He == !0 || He == "true",
414
+ customAxisFormat: Ua,
412
415
  sort: Xe,
413
- sortReverse: U == !0 || U == "true",
414
- sortReverseSecondDimension: H == !0 || H == "true",
415
- radarCurve: da,
416
- radarFillOpacity: la,
417
- radarBorderWidth: ca,
418
- radarGridLevels: ua,
419
- radarGridShape: ma,
420
- radarGridLabelOffset: pa,
416
+ sortReverse: V == !0 || V == "true",
417
+ sortReverseSecondDimension: U == !0 || U == "true",
418
+ radarCurve: ua,
419
+ radarFillOpacity: ma,
420
+ radarBorderWidth: pa,
421
+ radarGridLevels: ha,
422
+ radarGridShape: fa,
423
+ radarGridLabelOffset: ga,
421
424
  radarEnableDots: Ve == !0 || Ve == "true",
422
- radarDotSize: ha,
425
+ radarDotSize: ba,
423
426
  radarEnableDotLabel: Ue == !0 || Ue == "true",
424
- radarDotLabelOffset: fa,
427
+ radarDotLabelOffset: wa,
425
428
  sortSecondDimension: Ge,
426
- mobileCustomization: He,
427
- dimension1: F,
428
- previewMode: g,
429
- lineCurve: ba,
430
- showLegendsInColumns: We == !0 || We == "true",
431
- numberOfLegendColumns: parseInt(va) || 4
432
- }, re = {}, oe = I(Tt) || {};
429
+ mobileCustomization: We,
430
+ dimension1: E,
431
+ previewMode: h,
432
+ lineCurve: xa
433
+ }, re = {}, oe = M(Dt) || {};
433
434
  oe && oe.forEach && oe.forEach((e) => {
434
435
  e.value != null && e.value.filter((n) => n != null && n.toString().trim() != "").length > 0 && (re[e.param] = e.value);
435
436
  }), ue && (re.dvzProxyDatasetId = ue);
436
- let M = null, A = null;
437
+ let D = null, A = null;
437
438
  if (o === "csv")
438
- M = mr;
439
+ D = gr;
439
440
  else
440
- switch (X) {
441
+ switch (H) {
441
442
  case "line":
442
- M = S.LineDataFrame;
443
+ D = q.LineDataFrame;
443
444
  break;
444
445
  case "pie":
445
- M = S.PieDataFrame;
446
+ D = q.PieDataFrame;
446
447
  break;
447
448
  case "radar":
448
- M = S.BarDataFrame;
449
+ D = q.BarDataFrame;
449
450
  break;
450
451
  default:
451
- M = S.BarDataFrame;
452
+ D = q.BarDataFrame;
452
453
  break;
453
454
  }
454
- let D = !1;
455
- switch (X) {
455
+ let C = !1;
456
+ switch (H) {
456
457
  case "bar":
457
- A = lr, D = o != "csv" && F == "none" && y.length == 0;
458
+ A = pr, C = o != "csv" && E == "none" && y.length == 0;
458
459
  break;
459
460
  case "line":
460
- A = cr, D = o !== "csv" && (y.length === 0 || F === "none");
461
+ A = hr, C = o !== "csv" && (y.length === 0 || E === "none");
461
462
  break;
462
463
  case "pie":
463
- D = o != "csv" && y.length == 0, A = sr;
464
+ C = o != "csv" && y.length == 0, A = ur;
464
465
  break;
465
466
  case "radar":
466
- D = o != "csv" && y.length == 0, A = dr;
467
+ C = o != "csv" && y.length == 0, A = mr;
467
468
  break;
468
469
  default:
469
470
  A = /* @__PURE__ */ p("div", { children: "No Chart" });
470
471
  break;
471
472
  }
472
- const _a = ht === "true", P = [];
473
- F != "none" && P.push(F), pe != "none" && P.push(pe);
474
- const [Oa, Ka] = z(0), [Ir, Qa] = z(je()), Ze = st(null);
475
- function je() {
473
+ const ja = bt === "true", B = [];
474
+ E != "none" && B.push(E), he != "none" && B.push(he);
475
+ const [er, et] = F(0), [Er, tr] = F(at()), tt = ct(null);
476
+ function at() {
476
477
  var e;
477
478
  return ((e = window.screen.orientation) == null ? void 0 : e.type) || (window.innerWidth > window.innerHeight ? "landscape-primary" : "portrait-primary");
478
479
  }
479
480
  return de(() => {
480
- if (!$) return;
481
+ if (!$e) {
482
+ et(0);
483
+ return;
484
+ }
481
485
  const e = () => {
482
- var at, rt;
483
- const r = ((at = C.current) == null ? void 0 : at.querySelector(
486
+ var nt, it;
487
+ const r = ((nt = I.current) == null ? void 0 : nt.querySelector(
484
488
  ".legends.container.has-standard-12-font-size.bottom"
485
- )) || ((rt = C.current) == null ? void 0 : rt.querySelector(
489
+ )) || ((it = I.current) == null ? void 0 : it.querySelector(
486
490
  ".legends.container.items-section:not(.legends.container.top .items-section)"
487
491
  ));
488
492
  if (!r || r.closest(".legends.container.top")) return;
489
493
  r.style.marginTop = "";
490
- const { clientHeight: d } = r, h = window.getComputedStyle(r), w = parseInt(h.marginTop), f = parseInt(h.marginBottom), J = parseInt(h.paddingTop), B = parseInt(h.paddingBottom), Za = dt() === "mobile" ? d : d + w + f + J + B, tt = r.getBoundingClientRect(), ja = tt.width === 0;
491
- if (!$ && !ja) {
494
+ const { clientHeight: d } = r, f = window.getComputedStyle(r), v = parseInt(f.marginTop), g = parseInt(f.marginBottom), Y = parseInt(f.paddingTop), z = parseInt(f.paddingBottom), ar = ut() === "mobile" ? d : d + v + g + Y + z, ot = r.getBoundingClientRect(), rr = ot.width === 0;
495
+ if (!Z && !rr) {
492
496
  const ne = r.closest(".chart.container");
493
497
  if (ne) {
494
- const er = ne.getBoundingClientRect(), tr = window.getComputedStyle(ne), ar = Number.parseFloat(tr.marginBottom) || 0, ot = er.bottom + ar, rr = Number.parseFloat(h.marginTop) || 0, nt = tt.top - rr;
495
- if (nt < ot) {
496
- const ie = ot - nt, it = 200, or = Math.min(ie + 1, it);
497
- ie > 0 && ie < it && (r.style.marginTop = `${or}px`);
498
+ const or = ne.getBoundingClientRect(), nr = window.getComputedStyle(ne), ir = Number.parseFloat(nr.marginBottom) || 0, st = or.bottom + ir, sr = Number.parseFloat(f.marginTop) || 0, dt = ot.top - sr;
499
+ if (dt < st) {
500
+ const ie = st - dt, lt = 200, dr = Math.min(ie + 1, lt);
501
+ ie > 0 && ie < lt && (r.style.marginTop = `${dr}px`);
498
502
  }
499
503
  }
500
504
  }
501
- Ka(Za);
505
+ et(ar);
502
506
  }, n = () => {
503
- var f, J;
504
- const r = ((f = C.current) == null ? void 0 : f.querySelector(
507
+ var g, Y;
508
+ const r = ((g = I.current) == null ? void 0 : g.querySelector(
505
509
  ".legends.container.has-standard-12-font-size.bottom"
506
- )) || ((J = C.current) == null ? void 0 : J.querySelector(
510
+ )) || ((Y = I.current) == null ? void 0 : Y.querySelector(
507
511
  ".legends.container.items-section:not(.legends.container.top .items-section)"
508
512
  ));
509
513
  if (!r) {
510
- const B = setTimeout(n, 100);
511
- return () => clearTimeout(B);
514
+ const z = setTimeout(n, 100);
515
+ return () => clearTimeout(z);
512
516
  }
513
517
  const d = new ResizeObserver(() => {
514
518
  e();
515
519
  });
516
- d.observe(r), Ze.current = d;
517
- const h = new IntersectionObserver(
518
- (B) => {
519
- B.forEach((et) => {
520
- et.isIntersecting && e();
520
+ d.observe(r), tt.current = d;
521
+ const f = new IntersectionObserver(
522
+ (z) => {
523
+ z.forEach((rt) => {
524
+ rt.isIntersecting && e();
521
525
  });
522
526
  },
523
527
  { threshold: 0 }
524
528
  );
525
- h.observe(r);
526
- const w = () => {
529
+ f.observe(r);
530
+ const v = () => {
527
531
  e();
528
532
  };
529
- return window.addEventListener("resize", w), e(), () => {
530
- d.disconnect(), h.disconnect(), window.removeEventListener("resize", w), Ze.current = null;
533
+ return window.addEventListener("resize", v), e(), () => {
534
+ d.disconnect(), f.disconnect(), window.removeEventListener("resize", v), tt.current = null;
531
535
  };
532
536
  };
533
537
  return n();
534
- }, [$, C]), de(() => {
538
+ }, [$e, I]), de(() => {
535
539
  const e = () => {
536
540
  setTimeout(() => {
537
- Qa(je());
541
+ tr(at());
538
542
  }, 100);
539
543
  };
540
544
  return window.screen.orientation ? window.screen.orientation.addEventListener("change", e) : window.addEventListener("resize", e), () => {
541
545
  window.screen.orientation ? window.screen.orientation.removeEventListener("change", e) : window.removeEventListener("resize", e);
542
546
  };
543
- }, []), /* @__PURE__ */ p("div", { ref: C, children: /* @__PURE__ */ se(
547
+ }, []), /* @__PURE__ */ p("div", { ref: I, children: /* @__PURE__ */ se(
544
548
  le,
545
549
  {
546
- className: "chart container",
550
+ className: `chart container legends-managed${Ra ? " is-compact-legends" : ""}`,
547
551
  style: {
548
- minHeight: `${parseInt(O) + parseInt(Oa)}px`
552
+ minHeight: `${parseInt(O) + parseInt(er)}px`
549
553
  },
550
554
  fluid: !0,
551
555
  children: [
552
556
  /* @__PURE__ */ p(
553
- nr,
557
+ lr,
554
558
  {
555
559
  editing: s,
556
- style: { height: `${W}px` },
560
+ style: Ke,
557
561
  params: re,
558
- waitForFilters: ga === "true",
562
+ waitForFilters: va === "true",
559
563
  app: o,
560
564
  group: me,
561
- csv: bt,
562
- store: [o, _, ...P],
563
- source: P.join("/"),
565
+ csv: xt,
566
+ store: [o, S, ...B],
567
+ source: B.join("/"),
564
568
  children: /* @__PURE__ */ se(
565
569
  le,
566
570
  {
567
- style: { height: `${W}px` },
571
+ style: Ke,
568
572
  className: "body",
569
573
  fluid: !0,
570
574
  children: [
571
- D && /* @__PURE__ */ p(lt, { editing: s }),
572
- !D && /* @__PURE__ */ se(ir, { children: [
573
- /* @__PURE__ */ p(lt, { app: o, group: me, noDataMsg: Rt, children: " " }),
575
+ C && /* @__PURE__ */ p(mt, { editing: s }),
576
+ !C && /* @__PURE__ */ se(cr, { children: [
577
+ /* @__PURE__ */ p(mt, { app: o, group: me, noDataMsg: Pt, children: " " }),
574
578
  /* @__PURE__ */ p(
575
- M,
579
+ D,
576
580
  {
577
581
  locale: qe,
578
- colorBy: E,
579
- hiddenBars: qt,
580
- swap: G === "true" || G === !0,
581
- type: X,
582
+ colorBy: P,
583
+ hiddenBars: Ot,
584
+ swap: X === "true" || X === !0,
585
+ type: H,
582
586
  includeTotal: !0,
583
- includeOverall: ye === !0 || ye === "true",
584
- overallLabel: Z,
587
+ includeOverall: Le === !0 || Le === "true",
588
+ overallLabel: Q,
585
589
  measures: y,
586
- dimensions: [...P],
590
+ dimensions: [...B],
587
591
  sort: Xe,
588
- sortReverse: U === !0 || U === "true",
592
+ sortReverse: V === !0 || V === "true",
589
593
  sortSecondDimension: Ge,
590
- sortReverseSecondDimension: H === !0 || H === "true",
591
- customLabels: _e(),
594
+ sortReverseSecondDimension: U === !0 || U === "true",
595
+ customLabels: Je(),
592
596
  children: /* @__PURE__ */ p(
593
- pr,
597
+ br,
594
598
  {
595
- type: X,
599
+ type: H,
596
600
  app: o,
597
601
  locale: qe,
598
- overallLabel: Z,
599
- customLabels: _e(),
600
- manualColors: Da(),
601
- colorBy: E,
602
- scheme: K,
603
- barColor: Qe.barColor,
604
- children: /* @__PURE__ */ p(A, { ...Qe })
602
+ overallLabel: Q,
603
+ customLabels: Je(),
604
+ manualColors: Ba(),
605
+ colorBy: P,
606
+ scheme: J,
607
+ barColor: je.barColor,
608
+ children: /* @__PURE__ */ p(A, { ...je })
605
609
  }
606
610
  )
607
611
  }
@@ -613,22 +617,22 @@ const gr = (R) => {
613
617
  }
614
618
  ),
615
619
  /* @__PURE__ */ p("br", {}),
616
- _a && L && Va === "info" && /* @__PURE__ */ p(
620
+ ja && L && $a === "info" && /* @__PURE__ */ p(
617
621
  le,
618
622
  {
619
623
  fluid: !0,
620
624
  style: { height: W + "px" },
621
625
  className: "body",
622
- children: /* @__PURE__ */ p(ur, { post: { content: { rendered: L } } })
626
+ children: /* @__PURE__ */ p(fr, { post: { content: { rendered: L } } })
623
627
  }
624
628
  )
625
629
  ]
626
630
  }
627
631
  ) });
628
- }, br = (R, ce) => {
629
- const { "data-app": s, "data-group": _ } = ce, L = R.getIn(["data", "measures", s, _]), N = R.getIn(["data", "pageModuleProps"]), l = {};
632
+ }, yr = (R, ce) => {
633
+ const { "data-app": s, "data-group": S } = ce, L = R.getIn(["data", "measures", s, S]), N = R.getIn(["data", "pageModuleProps"]), l = {};
630
634
  return L && Object.keys(L).length > 0 && (l.injectedMeasures = L ?? {}), N && (l.pageModuleProps = N), l;
631
- }, vr = {}, Jr = hr(br, vr)(fr(gr));
635
+ }, Lr = {}, Zr = wr(yr, Lr)(vr(xr));
632
636
  export {
633
- Jr as default
637
+ Zr as default
634
638
  };