@devgateway/dvz-ui-react 1.7.2 → 1.7.4

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