@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,255 +1,255 @@
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
- import er from "../data/DataProvider.js";
5
- import tr from "../data/DataConsumer.js";
6
- import ar from "../../utils/deviceType.js";
7
- import rr from "./Pie.js";
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";
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";
8
8
  import "immutable";
9
- import or from "./Radar.js";
10
- import nr from "./Bar.js";
11
- import ir from "./Line.js";
12
- import { PostContent as sr } from "@devgateway/wp-react-lib";
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
- import { connect as cr } from "react-redux";
18
- import { injectIntl as ur } from "react-intl";
19
- const mr = (P) => {
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) => {
20
20
  let {
21
- parent: ge,
21
+ parent: ce,
22
22
  editing: s = !1,
23
- unique: ee,
23
+ unique: _,
24
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",
25
+ categories: N,
26
+ injectedMeasures: l,
27
+ "data-app": o = "csv",
28
+ "data-dvz-proxy-dataset-id": ue,
29
+ "data-group": me = "default",
30
+ "data-height": O = 500,
31
+ "data-type": X = "bar",
32
32
  //'data-source': source = 'gender/smoke',f
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",
39
- "data-left-legend": lt = "Left Legend",
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",
46
- "data-chart-data-source": br = "Data Source",
47
- "data-toggle-info-label": wr = "Info Graphic",
48
- "data-toggle-chart-label": xr = "Chart",
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",
49
49
  //'data-number-format': format = '{"style":"percent", "minimumFractionDigits": 1, "maximumFractionDigits": 1}',
50
- "data-tick-rotation": u = 0,
51
- "data-tick-color": pt = "rgb(92,93,99)",
52
- "data-measures": ht = "{}",
53
- "data-format": vr = "{}",
54
- "data-csv": ft = "",
55
- "data-margin-left": gt = 50,
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 = "[]",
50
+ "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 = "[]",
63
63
  //filters
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",
64
+ "data-tooltip-html": Ct = "",
65
+ "data-layout": Q = "vertical",
66
+ "data-reverse": be = "false",
67
+ "data-offset-y": It = "-40",
68
+ "data-line-layer-enabled": ve = "false",
69
69
  //"data-csv-line-layer-data": csvLineLayerData = "",
70
70
  //"data-csv-line-color": lineColor = "#000000",
71
71
  //"data-csv-line-tooltip": lineTooltip = "",
72
72
  //"data-csv-line-title": lineTitle = "",
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,
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
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",
91
- "data-tooltip-enabled": Ae = "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",
97
- "data-manual-colors": Vt = "{}",
98
- "data-right-legend": Ut = "",
99
- "data-offset-right": St = "40",
100
- "data-offset-bottom": $t = "40",
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",
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",
92
+ "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 = [],
102
+ "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 = "",
109
+ "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
125
  "data-enable-grid-y": k = "true",
126
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,
138
- "data-radar-grid-levels": la = 3,
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",
147
- "data-preview-mode": h = "Desktop",
148
- "data-wait-for-filters": ha = "false",
149
- "data-line-curve": fa = "linear",
150
- "data-show-legends-in-columns": Ke = "false",
151
- "data-number-of-legend-columns": ga = 4,
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(
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",
131
+ "data-sort": Xe = "default",
132
+ "data-sort-reverse": U = "false",
133
+ "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,
141
+ "data-radar-enable-dots": Ve = "true",
142
+ "data-radar-dot-size": ha = 8,
143
+ "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,
155
+ pageModuleProps: b
156
+ } = R;
157
+ const La = s, t = JSON.parse(
158
+ decodeURIComponent(He)
159
+ ), [$, ka] = z(
160
160
  window.innerWidth <= 1250
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 = () => {
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 = () => {
164
164
  const e = window.matchMedia(
165
165
  "(min-width: 768px) and (max-width: 1250px)"
166
166
  ).matches, n = window.matchMedia("(max-width: 767px)").matches;
167
167
  switch (!0) {
168
+ case Ia:
169
+ return m;
168
170
  case Ta:
169
- return u;
170
- case La:
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;
171
+ return x ? (t == null ? void 0 : t.tabletXAxisTextRotation) ?? m : m;
172
+ case Ca:
173
+ return x ? (t == null ? void 0 : t.mobileXAxisTextRotation) ?? m : m;
174
174
  case e:
175
- return w ? (t == null ? void 0 : t.tabletXAxisTextRotation) ?? u : u;
175
+ return x ? (t == null ? void 0 : t.tabletXAxisTextRotation) ?? m : m;
176
176
  case n:
177
- return w ? (t == null ? void 0 : t.mobileXAxisTextRotation) ?? u : u;
177
+ return x ? (t == null ? void 0 : t.mobileXAxisTextRotation) ?? m : m;
178
178
  default:
179
- return u;
179
+ return m;
180
180
  }
181
- }, Ca = ne(), [Ia, Qe] = V(Ca), Ze = P.intl.locale, q = ja(null), Oe = (e) => {
181
+ }, Ma = j(), [Aa, Ye] = z(Ma), qe = R.intl.locale, C = st(null), Je = (e) => {
182
182
  try {
183
- return va ? e : decodeURIComponent(e);
183
+ return La ? e : decodeURIComponent(e);
184
184
  } catch {
185
185
  return console.error(`error decoding value:${e}`), e;
186
186
  }
187
- }, C = (e) => {
187
+ }, I = (e) => {
188
188
  try {
189
- return JSON.parse(Oe(e));
189
+ return JSON.parse(Je(e));
190
190
  } catch {
191
191
  console.error(`error parsing value:${e}`);
192
192
  }
193
193
  return null;
194
- }, Ma = () => {
195
- const e = C(Vt);
194
+ }, Da = () => {
195
+ const e = I(Ht);
196
196
  if (!e) return null;
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);
197
+ const n = e[o];
198
+ if (o === "csv" && n && K === "manual") {
199
+ 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);
203
203
  });
204
- const v = p[z] || {};
205
- return { [z]: { ...o, ...v } };
204
+ const h = d[E] || {};
205
+ return { [E]: { ...r, ...h } };
206
206
  }
207
207
  return n;
208
- }, Aa = () => C(ht), je = () => {
208
+ }, Ra = () => I(gt), Se = () => {
209
209
  var e;
210
- if (a != null && a[r]) {
211
- let n = (e = a == null ? void 0 : a[r]) == null ? void 0 : e.format;
210
+ if (a != null && a[o]) {
211
+ let n = (e = a == null ? void 0 : a[o]) == null ? void 0 : e.format;
212
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;
213
+ const r = Object.keys(a == null ? void 0 : a[o]);
214
+ for (let d = 0; d < r.length; d++)
215
+ if (a != null && a[o][r[d]].selected && (a != null && a[o][r[d]].format)) {
216
+ n = a == null ? void 0 : a[o][r[d]].format;
217
217
  break;
218
218
  }
219
219
  }
220
220
  return n;
221
221
  }
222
222
  return a != null && a.csv ? a.csv.format : null;
223
- }, Da = () => {
223
+ }, Fa = () => {
224
224
  let e = null;
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 = () => {
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
+ }, 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
227
  const e = {};
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;
228
+ 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
+ e[r.value] = r.customLabel;
230
230
  }), e;
231
- }, Fa = () => a != null && a[r] ? Object.keys(a[r]).filter(
232
- (e) => a[r][e].allowSelection
231
+ }, Pa = () => a != null && a[o] ? Object.keys(a[o]).filter(
232
+ (e) => a[o][e].allowSelection
233
233
  ) : [];
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);
234
+ let a = Ra(), y = Ea(), v = Se();
235
+ const Ba = Pa();
236
+ let ee = ut, te = $t, ae = Je(Ct);
237
+ if (l != null && l[o]) {
238
+ 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
240
  }
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)
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)
247
247
  } : {
248
248
  notation: "standard",
249
249
  currency: "USD",
250
250
  minimumFractionDigits: 2,
251
251
  maximumFractionDigits: 2
252
- }, Ea = Da(), i = C(aa), Na = {
252
+ }, Na = Fa(), i = I(oa), Xa = {
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,349 @@ const mr = (P) => {
259
259
  maximumFractionDigits: parseInt(
260
260
  i == null ? void 0 : i.maximumFractionDigits
261
261
  )
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
- bottom: Va(),
268
- right: Sa()
269
- }, _ = (e) => {
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) => {
270
270
  if (e === "true" || e === !0)
271
271
  return !0;
272
272
  if (e === "false" || e === !1)
273
273
  return !1;
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(() => {
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;
277
+ de(() => {
278
278
  const e = () => {
279
- ya(window.innerWidth <= 1250);
280
- const n = ne();
281
- Qe(n);
279
+ ka(window.innerWidth <= 1250);
280
+ const n = j();
281
+ Ye(n);
282
282
  };
283
- return window.addEventListener("resize", e), Qe(ne()), () => {
283
+ return window.addEventListener("resize", e), Ye(j()), () => {
284
284
  window.removeEventListener("resize", e);
285
285
  };
286
286
  }, [
287
287
  s,
288
- h,
289
- w,
290
- u,
288
+ g,
289
+ x,
290
+ m,
291
291
  t == null ? void 0 : t.tabletXAxisTextRotation,
292
292
  t == null ? void 0 : t.mobileXAxisTextRotation
293
293
  ]);
294
- const Ya = () => {
294
+ const Sa = () => {
295
295
  const e = ["tablet", "mobile", "midTablet"].includes(
296
- ar()
296
+ dt()
297
297
  );
298
- return s && h === "Desktop" ? ve : e ? "bottom" : ve;
299
- }, rt = {
300
- app: r,
298
+ return s && g === "Desktop" ? he : e ? "bottom" : he;
299
+ }, Qe = {
300
+ app: o,
301
301
  editing: s,
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,
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(
312
+ c || u,
313
313
  Number.parseInt(t == null ? void 0 : t.marginLeft),
314
- parseInt(gt)
314
+ parseInt(vt)
315
315
  ),
316
- marginTop: K(
317
- l || c,
316
+ marginTop: q(
317
+ c || u,
318
318
  Number.parseInt(t == null ? void 0 : t.marginTop),
319
- parseInt(bt)
319
+ parseInt(wt)
320
320
  ),
321
- marginRight: K(
322
- l || c,
321
+ marginRight: q(
322
+ c || u,
323
323
  Number.parseInt(t == null ? void 0 : t.marginRight),
324
- Number.parseInt(wt)
324
+ Number.parseInt(xt)
325
325
  ),
326
- marginBottom: K(
327
- l || c,
326
+ marginBottom: q(
327
+ c || u,
328
328
  Number.parseInt(t == null ? void 0 : t.marginBottom),
329
- Number.parseInt(xt)
329
+ Number.parseInt(yt)
330
330
  ),
331
- height: `${J}px`,
332
- legendPosition: Ya(),
333
- legends: $a,
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,
331
+ 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,
341
341
  // csvLineLayerData,
342
342
  // lineColor: decodeURIComponent(lineColor),
343
343
  // lineTooltip,
344
344
  // lineTitle,
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,
345
+ maxValue: At,
346
+ valueScale: Dt,
347
+ categories: N,
348
+ 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(
355
+ c || u,
356
356
  t == null ? void 0 : t.barPadding,
357
357
  Bt
358
358
  ),
359
- barLabelPosition: Pt,
360
- lineLabelPosition: Et,
361
- barInnerPadding: at(
362
- l || c,
359
+ barLabelPosition: zt,
360
+ lineLabelPosition: Nt,
361
+ barInnerPadding: Ke(
362
+ c || u,
363
363
  t == null ? void 0 : t.barInnerPadding,
364
- Nt
364
+ Xt
365
365
  ),
366
- xLabelColor: decodeURIComponent(zt),
367
- barLabelColor: decodeURIComponent(Xt),
368
- legendLabelColor: decodeURIComponent(Gt),
369
- tooltipEnabled: Ae == !0 || Ae == "true",
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
- offsetBottom: $t,
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,
366
+ xLabelColor: decodeURIComponent(Gt),
367
+ barLabelColor: decodeURIComponent(Vt),
368
+ legendLabelColor: decodeURIComponent(Ut),
369
+ tooltipEnabled: Le == !0 || Le == "true",
370
+ legendLabelBack: Te == !0 || Te == "true",
371
+ 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,
390
+ 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
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,
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
404
  enableGridY: k == !0 || k == "true",
405
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
- radarGridLevels: la,
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
- previewMode: h,
429
- lineCurve: fa,
430
- showLegendsInColumns: Ke == !0 || Ke == "true",
431
- numberOfLegendColumns: parseInt(ga) || 4
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;
406
+ offsetText: ia,
407
+ selectedMeasures: y,
408
+ overallLabel: Z,
409
+ minMaxClamp: sa,
410
+ reverseLegend: Ne == !0 || Ne == "true",
411
+ customAxisFormat: Na,
412
+ 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,
421
+ radarEnableDots: Ve == !0 || Ve == "true",
422
+ radarDotSize: ha,
423
+ radarEnableDotLabel: Ue == !0 || Ue == "true",
424
+ radarDotLabelOffset: fa,
425
+ 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) || {};
433
+ oe && oe.forEach && oe.forEach((e) => {
434
+ e.value != null && e.value.filter((n) => n != null && n.toString().trim() != "").length > 0 && (re[e.param] = e.value);
435
+ }), ue && (re.dvzProxyDatasetId = ue);
436
+ let M = null, A = null;
437
+ if (o === "csv")
438
+ M = mr;
439
439
  else
440
- switch (E) {
440
+ switch (X) {
441
441
  case "line":
442
- I = j.LineDataFrame;
442
+ M = S.LineDataFrame;
443
443
  break;
444
444
  case "pie":
445
- I = j.PieDataFrame;
445
+ M = S.PieDataFrame;
446
446
  break;
447
447
  case "radar":
448
- I = j.BarDataFrame;
448
+ M = S.BarDataFrame;
449
449
  break;
450
450
  default:
451
- I = j.BarDataFrame;
451
+ M = S.BarDataFrame;
452
452
  break;
453
453
  }
454
- let A = !1;
455
- switch (E) {
454
+ let D = !1;
455
+ switch (X) {
456
456
  case "bar":
457
- M = nr, A = r != "csv" && N == "none" && x.length == 0;
457
+ A = lr, D = o != "csv" && F == "none" && y.length == 0;
458
458
  break;
459
459
  case "line":
460
- M = ir, A = r !== "csv" && (x.length === 0 || N === "none");
460
+ A = cr, D = o !== "csv" && (y.length === 0 || F === "none");
461
461
  break;
462
462
  case "pie":
463
- A = r != "csv" && x.length == 0, M = rr;
463
+ D = o != "csv" && y.length == 0, A = sr;
464
464
  break;
465
465
  case "radar":
466
- A = r != "csv" && x.length == 0, M = or;
466
+ D = o != "csv" && y.length == 0, A = dr;
467
467
  break;
468
468
  default:
469
- M = /* @__PURE__ */ m("div", { children: "No Chart" });
469
+ A = /* @__PURE__ */ p("div", { children: "No Chart" });
470
470
  break;
471
471
  }
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() {
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() {
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 he(() => {
480
- const e = setTimeout(() => {
481
- oe && (() => {
482
- const o = q.current.querySelector(
483
- ".legends.container.has-standard-12-font-size.bottom"
484
- ) || q.current.querySelector(
485
- ".legends.container.items-section:not(.legends.container.top .items-section)"
486
- );
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
- ".ui.fluid.container.content"
490
- );
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
- }
502
- } else
503
- setTimeout(() => {
504
- D.top < R.bottom && (y.style.marginTop = `${R.bottom - D.top + 1}px`);
505
- }, 1e3);
506
- }
507
- }
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`);
479
+ return de(() => {
480
+ if (!$) return;
481
+ const e = () => {
482
+ var at, rt;
483
+ const r = ((at = C.current) == null ? void 0 : at.querySelector(
484
+ ".legends.container.has-standard-12-font-size.bottom"
485
+ )) || ((rt = C.current) == null ? void 0 : rt.querySelector(
486
+ ".legends.container.items-section:not(.legends.container.top .items-section)"
487
+ ));
488
+ if (!r || r.closest(".legends.container.top")) return;
489
+ 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) {
492
+ const ne = r.closest(".chart.container");
493
+ 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`);
514
498
  }
515
499
  }
516
- Ja(Za);
517
- })();
518
- }, 100);
519
- return () => {
520
- clearTimeout(e);
500
+ }
501
+ Ka(Za);
502
+ }, n = () => {
503
+ var f, J;
504
+ const r = ((f = C.current) == null ? void 0 : f.querySelector(
505
+ ".legends.container.has-standard-12-font-size.bottom"
506
+ )) || ((J = C.current) == null ? void 0 : J.querySelector(
507
+ ".legends.container.items-section:not(.legends.container.top .items-section)"
508
+ ));
509
+ if (!r) {
510
+ const B = setTimeout(n, 100);
511
+ return () => clearTimeout(B);
512
+ }
513
+ const d = new ResizeObserver(() => {
514
+ e();
515
+ });
516
+ d.observe(r), Ze.current = d;
517
+ const h = new IntersectionObserver(
518
+ (B) => {
519
+ B.forEach((et) => {
520
+ et.isIntersecting && e();
521
+ });
522
+ },
523
+ { threshold: 0 }
524
+ );
525
+ h.observe(r);
526
+ const w = () => {
527
+ e();
528
+ };
529
+ return window.addEventListener("resize", w), e(), () => {
530
+ d.disconnect(), h.disconnect(), window.removeEventListener("resize", w), Ze.current = null;
531
+ };
521
532
  };
522
- }, [oe, q]), he(() => {
533
+ return n();
534
+ }, [$, C]), de(() => {
523
535
  const e = () => {
524
536
  setTimeout(() => {
525
- _a(nt());
537
+ Qa(je());
526
538
  }, 100);
527
539
  };
528
540
  return window.screen.orientation ? window.screen.orientation.addEventListener("change", e) : window.addEventListener("resize", e), () => {
529
541
  window.screen.orientation ? window.screen.orientation.removeEventListener("change", e) : window.removeEventListener("resize", e);
530
542
  };
531
- }, []), /* @__PURE__ */ m("div", { ref: q, children: /* @__PURE__ */ pe(
532
- fe,
543
+ }, []), /* @__PURE__ */ p("div", { ref: C, children: /* @__PURE__ */ se(
544
+ le,
533
545
  {
534
546
  className: "chart container",
535
547
  style: {
536
- minHeight: E === "pie" && window.innerWidth <= 480 ? `${parseInt(S) + parseInt(ot) * 0.5}px` : `${parseInt(S) + parseInt(ot)}px`
548
+ minHeight: `${parseInt(O) + parseInt(Oa)}px`
537
549
  },
538
550
  fluid: !0,
539
551
  children: [
540
- /* @__PURE__ */ m(
541
- er,
552
+ /* @__PURE__ */ p(
553
+ nr,
542
554
  {
543
555
  editing: s,
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,
556
+ style: { height: `${W}px` },
557
+ params: re,
558
+ waitForFilters: ga === "true",
559
+ app: o,
560
+ group: me,
561
+ csv: bt,
562
+ store: [o, _, ...P],
563
+ source: P.join("/"),
564
+ children: /* @__PURE__ */ se(
565
+ le,
554
566
  {
555
- style: { height: `${J}px` },
567
+ style: { height: `${W}px` },
556
568
  className: "body",
557
569
  fluid: !0,
558
570
  children: [
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,
571
+ D && /* @__PURE__ */ p(lt, { editing: s }),
572
+ !D && /* @__PURE__ */ se(ir, { children: [
573
+ /* @__PURE__ */ p(lt, { app: o, group: me, noDataMsg: Rt, children: " " }),
574
+ /* @__PURE__ */ p(
575
+ M,
564
576
  {
565
- locale: Ze,
566
- colorBy: z,
567
- hiddenBars: Ht,
568
- swap: $ === "true" || $ === !0,
569
- type: E,
577
+ locale: qe,
578
+ colorBy: E,
579
+ hiddenBars: qt,
580
+ swap: G === "true" || G === !0,
581
+ type: X,
570
582
  includeTotal: !0,
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,
583
+ includeOverall: ye === !0 || ye === "true",
584
+ overallLabel: Z,
585
+ measures: y,
586
+ dimensions: [...P],
587
+ sort: Xe,
588
+ sortReverse: U === !0 || U === "true",
589
+ sortSecondDimension: Ge,
590
+ sortReverseSecondDimension: H === !0 || H === "true",
591
+ customLabels: _e(),
592
+ children: /* @__PURE__ */ p(
593
+ pr,
582
594
  {
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 })
595
+ type: X,
596
+ app: o,
597
+ 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 })
593
605
  }
594
606
  )
595
607
  }
@@ -600,23 +612,23 @@ const mr = (P) => {
600
612
  )
601
613
  }
602
614
  ),
603
- /* @__PURE__ */ m("br", {}),
604
- qa && L && Xa === "info" && /* @__PURE__ */ m(
605
- fe,
615
+ /* @__PURE__ */ p("br", {}),
616
+ _a && L && Va === "info" && /* @__PURE__ */ p(
617
+ le,
606
618
  {
607
619
  fluid: !0,
608
- style: { height: J + "px" },
620
+ style: { height: W + "px" },
609
621
  className: "body",
610
- children: /* @__PURE__ */ m(sr, { post: { content: { rendered: L } } })
622
+ children: /* @__PURE__ */ p(ur, { post: { content: { rendered: L } } })
611
623
  }
612
624
  )
613
625
  ]
614
626
  }
615
627
  ) });
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));
628
+ }, br = (R, ce) => {
629
+ const { "data-app": s, "data-group": _ } = ce, L = R.getIn(["data", "measures", s, _]), N = R.getIn(["data", "pageModuleProps"]), l = {};
630
+ return L && Object.keys(L).length > 0 && (l.injectedMeasures = L ?? {}), N && (l.pageModuleProps = N), l;
631
+ }, vr = {}, Jr = hr(br, vr)(fr(gr));
620
632
  export {
621
- Sr as default
633
+ Jr as default
622
634
  };