@feedmepos/mf-report 5.25.4 → 5.25.5-beta.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 (22) hide show
  1. package/dist/{App-zRHXHcPT.js → App-7sis1lMo.js} +61 -61
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DmAd3AZP.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-By3S17dA.js → Default.vue_vue_type_script_setup_true_lang-cPJFk36N.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BrzAvoWk.js} +1089 -1090
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js} +2420 -2408
  6. package/dist/{InsightView-BBhWazOR.js → InsightView-BeAVxIfO.js} +4 -4
  7. package/dist/{Integration-DwrH45Cv.js → Integration-CMfs0ua0.js} +3 -3
  8. package/dist/{Integrations-B2oXCMtI.js → Integrations-DumyMXnZ.js} +2 -2
  9. package/dist/{Layout-8K-hl0GX.js → Layout-DRzH9XAo.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Bk13wM8J.js → MenuTab.vue_vue_type_script_setup_true_lang-Bc-yRS2N.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DJQmFNyV.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cp3dKAq-.js} +3 -3
  12. package/dist/{OverviewView-VK-QiYBv.js → OverviewView-CiPJi2Ti.js} +4 -4
  13. package/dist/{Report-DjEakQjd.js → Report-gOWkJKSt.js} +47 -49
  14. package/dist/{ReportEditor-DkDpoEA1.js → ReportEditor-CvIIK5yy.js} +3 -3
  15. package/dist/{ReportView-D7pPDt9i.js → ReportView-CLSJ6l7e.js} +6 -6
  16. package/dist/{Setting-Cj8FNkcg.js → Setting-DtovNxdr.js} +3 -3
  17. package/dist/{TileEditor-DiIeHLZ2.js → TileEditor-tfL6dwGn.js} +5 -5
  18. package/dist/{TransitionFade-D3p2nUld.js → TransitionFade-xVV5QHHE.js} +4 -4
  19. package/dist/{app-t7VSpu_w.js → app-CxVhBBUS.js} +12 -12
  20. package/dist/app.js +1 -1
  21. package/dist/{useRestaurantPermission-ClMBdaFt.js → useRestaurantPermission-BTsXpe68.js} +1 -1
  22. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
- import { computed as x, defineComponent as Ne, ref as P, onMounted as ct, onBeforeUnmount as lo, resolveComponent as fe, createBlock as me, openBlock as J, Transition as Oo, withCtx as ke, createElementBlock as ce, createCommentVNode as ve, createElementVNode as ee, unref as a, normalizeStyle as Te, withModifiers as Qt, toDisplayString as Ae, createVNode as de, Fragment as ze, renderList as Nt, normalizeClass as Le, watch as De, nextTick as ut, mergeModels as Ue, useModel as Oe, renderSlot as Qe, h as jt, createSlots as Eo, resolveDynamicComponent as so, toRaw as Uo, markRaw as Ko, createTextVNode as Xo, onUnmounted as io, withDirectives as Yo, vShow as qo } from "vue";
2
- import { W as ne, i as uo, j as Go, S as At, v as Ft, k as jo, l as dn, m as co, d as Jo, q as Zo, R as bt, n as Qo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
3
- import { i as en, a as on, u as Ln } from "./app-t7VSpu_w.js";
4
- import { d as gn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js";
5
- import { storeToRefs as it, defineStore as ea } from "pinia";
6
- import { detectLocale as fo } from "@feedmepos/mf-common";
1
+ import { computed as x, defineComponent as Fe, ref as P, onMounted as ut, onBeforeUnmount as ao, resolveComponent as de, createBlock as me, openBlock as J, Transition as Ho, withCtx as Te, createElementBlock as ue, createCommentVNode as ge, createElementVNode as ne, unref as a, normalizeStyle as Le, withModifiers as Zt, toDisplayString as Be, createVNode as ce, Fragment as Ve, renderList as $t, normalizeClass as De, watch as Pe, nextTick as it, mergeModels as Ue, useModel as He, renderSlot as Qe, h as Gt, createSlots as Wo, resolveDynamicComponent as ro, toRaw as Oo, markRaw as Eo, createTextVNode as Uo, onUnmounted as lo, withDirectives as Ko, vShow as Xo } from "vue";
2
+ import { W as oe, i as so, j as Yo, S as Rt, v as Nt, k as qo, l as dn, m as io, d as Go, q as jo, R as yt, n as Jo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-l3JcKn80.js";
3
+ import { i as Qt, a as nn, u as uo } from "./app-CxVhBBUS.js";
4
+ import { d as gn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DmAd3AZP.js";
5
+ import { storeToRefs as xt, defineStore as Zo } from "pinia";
6
+ import { detectLocale as co } from "@feedmepos/mf-common";
7
7
  import { C as vn } from "./chart-DDDh8zNk.js";
8
- import { useBreakpoints as Vt, useSnackbar as Dn, components as ta } from "@feedmepos/ui-library";
9
- import { u as dt } from "./vue-i18n-DVWuTfed.js";
10
- import { a as ho, _ as Hn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
8
+ import { useBreakpoints as zt, useSnackbar as Ln, components as Qo } from "@feedmepos/ui-library";
9
+ import { u as ct } from "./vue-i18n-DVWuTfed.js";
10
+ import { a as fo, _ as Vn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
11
11
  import { r as lt } from "./i18n-CI_sQ5d_.js";
12
12
  var yn = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(yn || {}), Je = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Je || {}), bn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(bn || {}), Cn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Cn || {}), xn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(xn || {}), wn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(wn || {}), Sn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Sn || {}), xe = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(xe || {});
13
- ne.Circular, ne.Table, ne.BarChart, ne.LineChart, ne.StackBarChart, ne.ClusteredStackBarChart, ne.StackLineChart, ne.Scorecard, ne.Spacer;
14
- const na = [
13
+ oe.Circular, oe.Table, oe.BarChart, oe.LineChart, oe.StackBarChart, oe.ClusteredStackBarChart, oe.StackLineChart, oe.Scorecard, oe.Spacer;
14
+ const ea = [
15
15
  {
16
- type: ne.Circular,
16
+ type: oe.Circular,
17
17
  showLabel: !1,
18
18
  // TODO: temporarily removed show label as it has no function
19
19
  showDrillDimension: !0,
@@ -21,14 +21,14 @@ const na = [
21
21
  showSearchBar: !1
22
22
  },
23
23
  {
24
- type: ne.Table,
24
+ type: oe.Table,
25
25
  showLabel: !1,
26
26
  showDrillDimension: !0,
27
27
  showRollup: !0,
28
28
  showSearchBar: !0
29
29
  },
30
30
  {
31
- type: ne.BarChart,
31
+ type: oe.BarChart,
32
32
  showLabel: !1,
33
33
  // TODO: temporarily removed show label as it has no function
34
34
  showDrillDimension: !0,
@@ -36,7 +36,7 @@ const na = [
36
36
  showSearchBar: !1
37
37
  },
38
38
  {
39
- type: ne.LineChart,
39
+ type: oe.LineChart,
40
40
  showLabel: !1,
41
41
  // TODO: temporarily removed show label as it has no function
42
42
  showDrillDimension: !0,
@@ -44,7 +44,7 @@ const na = [
44
44
  showSearchBar: !1
45
45
  },
46
46
  {
47
- type: ne.StackBarChart,
47
+ type: oe.StackBarChart,
48
48
  showLabel: !1,
49
49
  // TODO: temporarily removed show label as it has no function
50
50
  showDrillDimension: !0,
@@ -52,7 +52,7 @@ const na = [
52
52
  showSearchBar: !1
53
53
  },
54
54
  {
55
- type: ne.ClusteredStackBarChart,
55
+ type: oe.ClusteredStackBarChart,
56
56
  showLabel: !1,
57
57
  // TODO: temporarily removed show label as it has no function
58
58
  showDrillDimension: !0,
@@ -60,7 +60,7 @@ const na = [
60
60
  showSearchBar: !1
61
61
  },
62
62
  {
63
- type: ne.StackLineChart,
63
+ type: oe.StackLineChart,
64
64
  showLabel: !1,
65
65
  // TODO: temporarily removed show label as it has no function
66
66
  showDrillDimension: !0,
@@ -68,14 +68,14 @@ const na = [
68
68
  showSearchBar: !1
69
69
  },
70
70
  {
71
- type: ne.Scorecard,
71
+ type: oe.Scorecard,
72
72
  showLabel: !1,
73
73
  showDrillDimension: !1,
74
74
  showRollup: !1,
75
75
  showSearchBar: !1
76
76
  },
77
77
  {
78
- type: ne.Spacer,
78
+ type: oe.Spacer,
79
79
  showLabel: !1,
80
80
  showDrillDimension: !1,
81
81
  showRollup: !1,
@@ -86,21 +86,21 @@ function fn(e) {
86
86
  const n = [e.schemaName, e.name];
87
87
  return "option" in e && e.option && n.push(e.option), "aggregation" in e && e.aggregation && n.push(e.aggregation), n.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), n.join("_").toLowerCase();
88
88
  }
89
- function oa(e, n) {
89
+ function ta(e, n) {
90
90
  switch (e) {
91
- case ne.BarChart:
92
- case ne.LineChart:
93
- case ne.StackBarChart:
94
- case ne.ClusteredStackBarChart:
95
- case ne.StackLineChart:
91
+ case oe.BarChart:
92
+ case oe.LineChart:
93
+ case oe.StackBarChart:
94
+ case oe.ClusteredStackBarChart:
95
+ case oe.StackLineChart:
96
96
  return Array.isArray(n == null ? void 0 : n.datasets) && Array.isArray(n == null ? void 0 : n.xAxis) && n.datasets.length > 0 && n.xAxis.length > 0;
97
- case ne.Table:
97
+ case oe.Table:
98
98
  return Array.isArray(n == null ? void 0 : n.rows) && Array.isArray(n == null ? void 0 : n.columns) && n.rows.length > 0 && n.columns.length > 0;
99
- case ne.Circular:
99
+ case oe.Circular:
100
100
  return Array.isArray(n == null ? void 0 : n.datasets) && n.datasets.length > 0;
101
- case ne.Scorecard:
101
+ case oe.Scorecard:
102
102
  return !0;
103
- case ne.Spacer:
103
+ case oe.Spacer:
104
104
  return !0;
105
105
  }
106
106
  }
@@ -116,28 +116,28 @@ const wt = [
116
116
  "#8358D4",
117
117
  "#9B5046"
118
118
  ];
119
- function mo(e) {
119
+ function ho(e) {
120
120
  const n = Math.max(1, Math.floor(e));
121
121
  return Array.from({ length: n }, (t, o) => {
122
122
  const r = wt[o % wt.length], i = Math.floor(o / wt.length);
123
- return i === 0 ? r : an(r, Math.min(0.18 * i, 0.72));
123
+ return i === 0 ? r : on(r, Math.min(0.18 * i, 0.72));
124
124
  });
125
125
  }
126
- const Rl = wt.map(() => "solid");
127
- function Ct({
126
+ const Bl = wt.map(() => "solid");
127
+ function bt({
128
128
  datasetIndex: e,
129
129
  label: n
130
130
  }) {
131
131
  const t = typeof n == "string" ? n.trim().toLowerCase().replace(/\s+/g, " ") : "";
132
132
  return `${e}:${t}`;
133
133
  }
134
- function aa(e) {
134
+ function na(e) {
135
135
  return e === "dashed" || e === "dotted" ? e : "solid";
136
136
  }
137
- function ra(e, n = !1) {
137
+ function oa(e, n = !1) {
138
138
  if (e == null)
139
139
  return n ? [5, 5] : void 0;
140
- const t = aa(e);
140
+ const t = na(e);
141
141
  if (t === "dashed")
142
142
  return [8, 6];
143
143
  if (t === "dotted")
@@ -154,7 +154,7 @@ function Ie({
154
154
  const r = Number.isFinite(t) ? Number(t) : 0;
155
155
  return r <= 0 ? e : n ? e >= r ? (e - r) % r : Math.max(0, (e - 1 + r) % r) : e % r;
156
156
  }
157
- function po({
157
+ function mo({
158
158
  datasets: e,
159
159
  datasetIndex: n
160
160
  }) {
@@ -177,12 +177,12 @@ function po({
177
177
  return s;
178
178
  return n;
179
179
  }
180
- function zt({
180
+ function Ht({
181
181
  datasets: e,
182
182
  datasetIndex: n
183
183
  }) {
184
184
  var r;
185
- const t = po({
185
+ const t = mo({
186
186
  datasets: e,
187
187
  datasetIndex: n
188
188
  });
@@ -195,12 +195,12 @@ function zt({
195
195
  }
196
196
  return t;
197
197
  }
198
- const la = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
199
- function $t(e) {
198
+ const aa = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
199
+ function Vt(e) {
200
200
  if (!e)
201
201
  return null;
202
202
  const n = e.trim();
203
- if (!la.test(n))
203
+ if (!aa.test(n))
204
204
  return null;
205
205
  if (n.length === 4) {
206
206
  const [, t, o, r] = n;
@@ -208,37 +208,37 @@ function $t(e) {
208
208
  }
209
209
  return n.toUpperCase();
210
210
  }
211
- function sa(e) {
212
- const n = $t(e) ?? "#000000";
211
+ function ra(e) {
212
+ const n = Vt(e) ?? "#000000";
213
213
  return {
214
214
  red: Number.parseInt(n.slice(1, 3), 16),
215
215
  green: Number.parseInt(n.slice(3, 5), 16),
216
216
  blue: Number.parseInt(n.slice(5, 7), 16)
217
217
  };
218
218
  }
219
- function go(e) {
219
+ function po(e) {
220
220
  const n = Math.max(
221
221
  wt.length,
222
222
  Array.isArray(e) ? e.length : 0
223
- ), t = mo(n);
224
- return !Array.isArray(e) || e.length === 0 ? t : t.map((o, r) => $t(e[r]) ?? o);
223
+ ), t = ho(n);
224
+ return !Array.isArray(e) || e.length === 0 ? t : t.map((o, r) => Vt(e[r]) ?? o);
225
225
  }
226
- function vo(e, n) {
227
- const { red: t, green: o, blue: r } = sa(e);
226
+ function go(e, n) {
227
+ const { red: t, green: o, blue: r } = ra(e);
228
228
  return `rgba(${t}, ${o}, ${r}, ${n})`;
229
229
  }
230
- function an(e, n) {
231
- const t = $t(e) ?? "#000000", o = (r) => {
230
+ function on(e, n) {
231
+ const t = Vt(e) ?? "#000000", o = (r) => {
232
232
  const i = Number.parseInt(t.slice(r, r + 2), 16);
233
233
  return Math.round(i + (255 - i) * n).toString(16).padStart(2, "0").toUpperCase();
234
234
  };
235
235
  return `#${o(1)}${o(3)}${o(5)}`;
236
236
  }
237
- const ia = 0.25, yo = 0.7;
238
- function bo(e) {
239
- return an(e, ia);
237
+ const la = 0.25, vo = 0.7;
238
+ function yo(e) {
239
+ return on(e, la);
240
240
  }
241
- function Wn(e) {
241
+ function zn(e) {
242
242
  return Math.min(0.55 + (e - 1) * 0.18, 0.95);
243
243
  }
244
244
  function Ze({
@@ -247,9 +247,9 @@ function Ze({
247
247
  opacity: t,
248
248
  customColors: o
249
249
  }) {
250
- const r = go(o), i = r[e % r.length], s = n ? bo(i) : i;
250
+ const r = po(o), i = r[e % r.length], s = n ? yo(i) : i;
251
251
  let c = typeof t == "number" ? t : 1;
252
- return n && (c = c * yo), vo(s, c);
252
+ return n && (c = c * vo), go(s, c);
253
253
  }
254
254
  function _t({
255
255
  fallbackIndex: e,
@@ -268,11 +268,11 @@ function Lt({
268
268
  colorMode: c,
269
269
  customColors: d
270
270
  }) {
271
- const v = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, R = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, W = s !== !1, H = e * v + R, y = c === "clustered" ? mo(Math.max(wt.length, e + 1)) : go(d), p = $t(i == null ? void 0 : i[e * v]) ?? y[e % y.length], k = W && R > 0 ? an(p, Wn(R)) : $t(i == null ? void 0 : i[H]) ?? (R > 0 ? an(p, Wn(R)) : p), w = o ? bo(k) : k;
271
+ const v = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, R = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, W = s !== !1, H = e * v + R, y = c === "clustered" ? ho(Math.max(wt.length, e + 1)) : po(d), p = Vt(i == null ? void 0 : i[e * v]) ?? y[e % y.length], k = W && R > 0 ? on(p, zn(R)) : Vt(i == null ? void 0 : i[H]) ?? (R > 0 ? on(p, zn(R)) : p), w = o ? yo(k) : k;
272
272
  let F = typeof r == "number" ? r : 1;
273
- return o && (F = F * yo), vo(w, F);
273
+ return o && (F = F * vo), go(w, F);
274
274
  }
275
- function Co(e, n, t) {
275
+ function bo(e, n, t) {
276
276
  if (e === "" || n === "")
277
277
  return null;
278
278
  let o = (d) => d == null ? void 0 : d.replace(/,/g, "");
@@ -282,13 +282,13 @@ function Co(e, n, t) {
282
282
  return null;
283
283
  let s = 0;
284
284
  i === 0 ? r === 0 ? s = 0 : s = 1 : s = (r - i) / i;
285
- const c = ua(s);
285
+ const c = sa(s);
286
286
  return {
287
287
  value: isNaN(s) ? "" : `${(s * 100).toFixed(0)}%`,
288
288
  icon: c
289
289
  };
290
290
  }
291
- function ua(e) {
291
+ function sa(e) {
292
292
  return e > 0 ? {
293
293
  name: "moving",
294
294
  color: "#1F7735",
@@ -303,10 +303,10 @@ function ua(e) {
303
303
  tailwind: "fm-color-neutral-gray-100"
304
304
  };
305
305
  }
306
- function Ht(e) {
306
+ function Wt(e) {
307
307
  return Object.entries(e).map(([n, t]) => `${n}:${t}`).join(";");
308
308
  }
309
- function xo(e) {
309
+ function Co(e) {
310
310
  return {
311
311
  mode: "index",
312
312
  intersect: !1,
@@ -342,7 +342,7 @@ function xo(e) {
342
342
  titleMarginBottom: 6
343
343
  };
344
344
  }
345
- const ca = Ht({
345
+ const ia = Wt({
346
346
  display: "block",
347
347
  padding: "0",
348
348
  background: "none",
@@ -353,7 +353,7 @@ const ca = Ht({
353
353
  cursor: "pointer",
354
354
  "text-align": "left",
355
355
  "pointer-events": "auto"
356
- }), da = {
356
+ }), ua = {
357
357
  "font-size": "13px",
358
358
  "font-weight": "600",
359
359
  color: "#111827",
@@ -361,7 +361,7 @@ const ca = Ht({
361
361
  "white-space": "normal",
362
362
  "word-break": "break-word",
363
363
  "overflow-wrap": "anywhere"
364
- }, fa = Ht({
364
+ }, ca = Wt({
365
365
  display: "flex",
366
366
  "align-items": "flex-start",
367
367
  "font-size": "13px",
@@ -371,13 +371,13 @@ const ca = Ht({
371
371
  "line-height": "1.35",
372
372
  margin: "0 0 3px",
373
373
  overflow: "hidden"
374
- }), ha = Ht({
374
+ }), da = Wt({
375
375
  flex: "1 1 auto",
376
376
  "min-width": "0",
377
377
  "white-space": "normal",
378
378
  "word-break": "break-word",
379
379
  "overflow-wrap": "anywhere"
380
- }), ma = {
380
+ }), fa = {
381
381
  display: "inline-block",
382
382
  width: "10px",
383
383
  height: "10px",
@@ -386,7 +386,7 @@ const ca = Ht({
386
386
  "box-sizing": "border-box",
387
387
  "margin-right": "8px",
388
388
  flex: "0 0 auto"
389
- }, pa = {
389
+ }, ha = {
390
390
  display: "inline-block",
391
391
  width: "10px",
392
392
  height: "10px",
@@ -397,9 +397,9 @@ const ca = Ht({
397
397
  "margin-right": "8px",
398
398
  flex: "0 0 auto"
399
399
  };
400
- function ga() {
400
+ function ma() {
401
401
  return {
402
- ...xo(),
402
+ ...Co(),
403
403
  mode: "nearest",
404
404
  intersect: !0,
405
405
  usePointStyle: !0,
@@ -411,8 +411,8 @@ function ga() {
411
411
  }
412
412
  };
413
413
  }
414
- const va = "rgba(0, 0, 0, 0.3)";
415
- function On(e) {
414
+ const pa = "rgba(0, 0, 0, 0.3)";
415
+ function Hn(e) {
416
416
  if (typeof document > "u" || typeof window > "u")
417
417
  return;
418
418
  const n = String((e == null ? void 0 : e.id) ?? "");
@@ -425,9 +425,9 @@ function On(e) {
425
425
  }
426
426
  function hn(e, n, t, o) {
427
427
  const { left: r, right: i, top: s, bottom: c } = t;
428
- e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = va, e.setLineDash([5, 5]), n ? (e.moveTo(r, o), e.lineTo(i, o)) : (e.moveTo(o, s), e.lineTo(o, c)), e.stroke(), e.restore();
428
+ e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = pa, e.setLineDash([5, 5]), n ? (e.moveTo(r, o), e.lineTo(i, o)) : (e.moveTo(o, s), e.lineTo(o, c)), e.stroke(), e.restore();
429
429
  }
430
- function ya(e, n) {
430
+ function ga(e, n) {
431
431
  if (typeof document > "u")
432
432
  return;
433
433
  const t = String((e == null ? void 0 : e.id) ?? "");
@@ -441,13 +441,13 @@ function ya(e, n) {
441
441
  const r = Number(n ? o.dataset.caretY : o.dataset.caretX);
442
442
  return Number.isFinite(r) ? r : void 0;
443
443
  }
444
- function ba(e, n, t) {
444
+ function va(e, n, t) {
445
445
  var p;
446
446
  if (!t)
447
447
  return;
448
448
  const o = ((p = e.options) == null ? void 0 : p.indexAxis) === "y", r = e.tooltip, i = (r == null ? void 0 : r.getActiveElements()) ?? [];
449
449
  if (i.length === 0) {
450
- const k = ya(e, o);
450
+ const k = ga(e, o);
451
451
  k !== void 0 && hn(e.ctx, o, e.chartArea, k);
452
452
  return;
453
453
  }
@@ -467,12 +467,12 @@ function ba(e, n, t) {
467
467
  const v = d.element, R = o ? c : s, W = o ? v.y : v.x, H = R.getPixelForValue(d.index), y = W ?? H;
468
468
  hn(e.ctx, o, e.chartArea, y);
469
469
  }
470
- function Wt(e) {
470
+ function Ot(e) {
471
471
  let n = !1, t = !1;
472
472
  return {
473
473
  id: "crosshair",
474
474
  afterDatasetsDraw: (o) => {
475
- ba(o, e, t);
475
+ va(o, e, t);
476
476
  },
477
477
  afterEvent: (o, r) => {
478
478
  t = r.inChartArea === !0;
@@ -486,33 +486,33 @@ function Wt(e) {
486
486
  n && (o.ctx.restore(), n = !1);
487
487
  },
488
488
  beforeDestroy: (o) => {
489
- On(o);
489
+ Hn(o);
490
490
  },
491
491
  afterDestroy: (o) => {
492
- On(o);
492
+ Hn(o);
493
493
  }
494
494
  };
495
495
  }
496
- const Ca = Number.POSITIVE_INFINITY, _n = 2, xa = 1, wa = 0.2, Sa = 120, _a = 320, ka = 24, { breakpoints: xt } = Vt(), Pn = "report-v5:locationchange";
497
- let En = !1;
498
- const Ta = "report.widget.comparisonTooltip";
499
- function Un() {
500
- window.dispatchEvent(new Event(Pn));
496
+ const ya = Number.POSITIVE_INFINITY, _n = 2, ba = 1, Ca = 0.2, xa = 120, wa = 320, Sa = 24, { breakpoints: Ct } = zt(), Dn = "report-v5:locationchange";
497
+ let Wn = !1;
498
+ const _a = "report.widget.comparisonTooltip";
499
+ function On() {
500
+ window.dispatchEvent(new Event(Dn));
501
501
  }
502
- function La() {
503
- if (En)
502
+ function ka() {
503
+ if (Wn)
504
504
  return;
505
- En = !0;
505
+ Wn = !0;
506
506
  const e = window.history.pushState.bind(window.history), n = window.history.replaceState.bind(window.history);
507
507
  window.history.pushState = function(...o) {
508
508
  const r = e(...o);
509
- return Un(), r;
509
+ return On(), r;
510
510
  }, window.history.replaceState = function(...o) {
511
511
  const r = n(...o);
512
- return Un(), r;
512
+ return On(), r;
513
513
  };
514
514
  }
515
- function Da(e, n) {
515
+ function Ta(e, n) {
516
516
  const t = n.split(".");
517
517
  let o = e;
518
518
  for (const r of t) {
@@ -522,70 +522,70 @@ function Da(e, n) {
522
522
  }
523
523
  return typeof o == "string" ? o : void 0;
524
524
  }
525
- function In(e) {
526
- const n = `${Ta}.${e}`, t = fo(), o = en[t];
527
- return Da(o, n) ?? n;
525
+ function Pn(e) {
526
+ const n = `${_a}.${e}`, t = co(), o = Qt[t];
527
+ return Ta(o, n) ?? n;
528
528
  }
529
- function wo() {
530
- return In("viewBreakdown");
529
+ function xo() {
530
+ return Pn("viewBreakdown");
531
531
  }
532
- function Pa() {
533
- return In("current");
532
+ function La() {
533
+ return Pn("current");
534
534
  }
535
- function Ia() {
536
- return In("compared");
535
+ function Da() {
536
+ return Pn("compared");
537
537
  }
538
- function Kn(e, n) {
538
+ function En(e, n) {
539
539
  const t = e.trim();
540
540
  return t.length === 0 ? n : `${t} · ${n}`;
541
541
  }
542
- function Ma(e) {
542
+ function Pa(e) {
543
543
  return e == null ? null : typeof e != "string" ? [] : e.split("#").map((n) => n.trim()).filter((n) => n.length > 0);
544
544
  }
545
- function Ba(e) {
545
+ function Ia(e) {
546
546
  return e.dash === !0 || e.isCompare === !0;
547
547
  }
548
- function Aa(e) {
548
+ function Ma(e) {
549
549
  return typeof e.label == "string" ? e.label : "N/A";
550
550
  }
551
- function Ra(e, n) {
551
+ function Ba(e, n) {
552
552
  let t;
553
553
  return Array.isArray(e.data) && n < e.data.length && (t = e.data[n]), typeof t != "number" ? NaN : t;
554
554
  }
555
- function Fa(e, n) {
555
+ function Aa(e, n) {
556
556
  return `${e}: ${isNaN(n) ? "" : n.toLocaleString()}`;
557
557
  }
558
- function Na(e, n) {
558
+ function Ra(e, n) {
559
559
  return e.type === "bar" ? !0 : n === "bar";
560
560
  }
561
- function $a(e, n, t) {
562
- const o = Rt(e.borderColor, n) || Rt(e.color, n), r = Rt(e.backgroundColor, n), i = Rt(e.pointBorderColor, n), s = Rt(e.pointBackgroundColor, n);
563
- return t ? Xn(r, s, o, i) : Xn(o, i, r, s);
561
+ function Fa(e, n, t) {
562
+ const o = Ft(e.borderColor, n) || Ft(e.color, n), r = Ft(e.backgroundColor, n), i = Ft(e.pointBorderColor, n), s = Ft(e.pointBackgroundColor, n);
563
+ return t ? Un(r, s, o, i) : Un(o, i, r, s);
564
564
  }
565
- function Va(e) {
565
+ function Na(e) {
566
566
  return e.trim().toLowerCase();
567
567
  }
568
- function Rt(e, n) {
568
+ function Ft(e, n) {
569
569
  if (typeof e == "string") return e;
570
570
  if (Array.isArray(e)) {
571
571
  const t = e[n];
572
572
  return typeof t == "string" ? t : void 0;
573
573
  }
574
574
  }
575
- function za(e) {
575
+ function $a(e) {
576
576
  if (typeof e != "string") return "#9ca3af";
577
577
  const n = e.trim();
578
578
  return /^[-#(),.%\sa-zA-Z0-9]+$/.test(n) ? n : "#9ca3af";
579
579
  }
580
- function Ha(e) {
580
+ function Va(e) {
581
581
  const n = e.replace(/\s+/g, "").toLowerCase();
582
582
  return !!(n === "transparent" || /^rgba\([^)]*,0(?:\.0+)?\)$/.test(n) || /^hsla\([^)]*,0(?:\.0+)?\)$/.test(n) || n === "#0000" || n === "#00000000");
583
583
  }
584
- function Xn(...e) {
584
+ function Un(...e) {
585
585
  for (const n of e) {
586
586
  if (!n) continue;
587
- const t = za(n);
588
- if (!Ha(t))
587
+ const t = $a(n);
588
+ if (!Va(t))
589
589
  return t;
590
590
  }
591
591
  return "#9ca3af";
@@ -593,54 +593,54 @@ function Xn(...e) {
593
593
  function kn(e) {
594
594
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\"/g, "&quot;").replace(/'/g, "&#39;");
595
595
  }
596
- function Wa(e) {
596
+ function za(e) {
597
597
  const n = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
598
- return Number.isFinite(n) ? Math.max(_n, Math.floor(n)) : Ca;
598
+ return Number.isFinite(n) ? Math.max(_n, Math.floor(n)) : ya;
599
599
  }
600
- function Oa(e) {
601
- return e <= 0 ? 320 : xt.value.xs || xt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : xt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : xt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
600
+ function Ha(e) {
601
+ return e <= 0 ? 320 : Ct.value.xs || Ct.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : Ct.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : Ct.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
602
602
  }
603
- function Mn(e, n) {
604
- const t = window.innerHeight, o = Oa(t), r = n ? Math.max(120, n.clientHeight - 16) : Number.POSITIVE_INFINITY, i = Math.max(120, Math.min(o, r));
603
+ function In(e, n) {
604
+ const t = window.innerHeight, o = Ha(t), r = n ? Math.max(120, n.clientHeight - 16) : Number.POSITIVE_INFINITY, i = Math.max(120, Math.min(o, r));
605
605
  e.style.maxHeight = `${i}px`;
606
606
  }
607
607
  function st() {
608
- return xt.value.xs || xt.value.sm;
608
+ return Ct.value.xs || Ct.value.sm;
609
609
  }
610
610
  function St(e) {
611
611
  return e.dataset.pinned === "true";
612
612
  }
613
- function So(e, n) {
613
+ function wo(e, n) {
614
614
  if (n) {
615
615
  e.dataset.pinned = "true";
616
616
  return;
617
617
  }
618
618
  delete e.dataset.pinned;
619
619
  }
620
- function _o(e) {
620
+ function So(e) {
621
621
  return {
622
- maxTooltipItems: Wa(e == null ? void 0 : e.maxTooltipItems)
622
+ maxTooltipItems: za(e == null ? void 0 : e.maxTooltipItems)
623
623
  };
624
624
  }
625
- function Ea(e) {
625
+ function Wa(e) {
626
626
  e.__lastPhoneTapAt = void 0, e.__lastPhoneTapX = void 0, e.__lastPhoneTapY = void 0, e.__lastPhoneTapDatasetIndex = void 0, e.__lastPhoneTapDataIndex = void 0;
627
627
  }
628
- function Ua(e, n, t, o, r, i) {
628
+ function Oa(e, n, t, o, r, i) {
629
629
  e.__lastPhoneTapAt = o, e.__lastPhoneTapX = n, e.__lastPhoneTapY = t, e.__lastPhoneTapDatasetIndex = r, e.__lastPhoneTapDataIndex = i;
630
630
  }
631
- function Ka(e, n, t) {
631
+ function Ea(e, n, t) {
632
632
  return e.__lastPhoneTapDatasetIndex === n && e.__lastPhoneTapDataIndex === t;
633
633
  }
634
- function Xa(e, n, t, o) {
634
+ function Ua(e, n, t, o) {
635
635
  if (!Number.isFinite(e.__lastPhoneTapAt) || !Number.isFinite(e.__lastPhoneTapX) || !Number.isFinite(e.__lastPhoneTapY))
636
636
  return !1;
637
637
  const r = o - e.__lastPhoneTapAt;
638
- if (r < 0 || r > _a)
638
+ if (r < 0 || r > wa)
639
639
  return !1;
640
640
  const i = n - e.__lastPhoneTapX, s = t - e.__lastPhoneTapY;
641
- return Math.hypot(i, s) <= ka;
641
+ return Math.hypot(i, s) <= Sa;
642
642
  }
643
- function Yn(e) {
643
+ function Kn(e) {
644
644
  return {
645
645
  text: `${e.datasetLabel}: ${0 .toLocaleString()}`,
646
646
  color: "#cbd5e1",
@@ -650,39 +650,39 @@ function Yn(e) {
650
650
  matchingKey: e.matchingKey
651
651
  };
652
652
  }
653
- function Ya(e) {
654
- return Ht({
655
- ...da,
653
+ function Ka(e) {
654
+ return Wt({
655
+ ...ua,
656
656
  margin: `${e ? "8px" : "0"} 0 4px`
657
657
  });
658
658
  }
659
- function qa(e, n) {
660
- return Ht({
661
- ...e ? ma : pa,
659
+ function Xa(e, n) {
660
+ return Wt({
661
+ ...e ? fa : ha,
662
662
  background: n
663
663
  });
664
664
  }
665
- function Ga(e) {
666
- return `<button type="button" data-tooltip-full-details="true" style="${ca}">${kn(e)}</button>`;
665
+ function Ya(e) {
666
+ return `<button type="button" data-tooltip-full-details="true" style="${ia}">${kn(e)}</button>`;
667
667
  }
668
- function ko(e, n, t, o, r, i, s, c) {
668
+ function _o(e, n, t, o, r, i, s, c) {
669
669
  var A;
670
- const d = (A = e[0]) == null ? void 0 : A.label, v = Ma(d), W = !!(v != null && v[1]) ? Kn((v == null ? void 0 : v[0]) ?? "", Pa()) : (v == null ? void 0 : v[0]) ?? "", H = v != null && v[1] ? Kn(v[1], Ia()) : void 0, y = [], p = [], k = /* @__PURE__ */ new Set();
670
+ const d = (A = e[0]) == null ? void 0 : A.label, v = Pa(d), W = !!(v != null && v[1]) ? En((v == null ? void 0 : v[0]) ?? "", La()) : (v == null ? void 0 : v[0]) ?? "", H = v != null && v[1] ? En(v[1], Da()) : void 0, y = [], p = [], k = /* @__PURE__ */ new Set();
671
671
  i.forEach((u, I) => {
672
672
  if (k.has(I))
673
673
  return;
674
674
  const M = u ?? {};
675
675
  if (M.isSpacer === !0)
676
676
  return;
677
- const U = Aa(M), G = Ra(M, s), j = Na(M, c), Y = {
678
- text: Fa(U, G),
679
- color: $a(M, s, j),
677
+ const K = Ma(M), G = Ba(M, s), j = Ra(M, c), Y = {
678
+ text: Aa(K, G),
679
+ color: Fa(M, s, j),
680
680
  isBar: j,
681
681
  value: G,
682
- datasetLabel: U,
683
- matchingKey: Va(U)
682
+ datasetLabel: K,
683
+ matchingKey: Na(K)
684
684
  };
685
- if (H && Ba(M)) {
685
+ if (H && Ia(M)) {
686
686
  p.push(Y);
687
687
  return;
688
688
  }
@@ -699,13 +699,13 @@ function ko(e, n, t, o, r, i, s, c) {
699
699
  });
700
700
  const g = H ? w.map((u) => {
701
701
  const I = F.get(u.matchingKey);
702
- return !I || I.length === 0 ? Yn(u) : I.shift() ?? Yn(u);
703
- }) : [], S = y.length > w.length || p.length > g.length, B = (u, I = !1) => `<div style="${Ya(I)}">${kn(u)}</div>`, D = (u) => {
704
- const I = qa(u.isBar, u.color);
705
- return `<div style="${fa}"><span style="${I}"></span><span style="${ha}">${kn(u.text)}</span></div>`;
702
+ return !I || I.length === 0 ? Kn(u) : I.shift() ?? Kn(u);
703
+ }) : [], S = y.length > w.length || p.length > g.length, B = (u, I = !1) => `<div style="${Ka(I)}">${kn(u)}</div>`, D = (u) => {
704
+ const I = Xa(u.isBar, u.color);
705
+ return `<div style="${ca}"><span style="${I}"></span><span style="${da}">${kn(u.text)}</span></div>`;
706
706
  };
707
707
  let f = "";
708
- W.length > 0 && (f += B(W)), f += w.map((u) => D(u)).join(""), H && g.length > 0 && (f += B(H, f.length > 0), f += g.map((u) => D(u)).join("")), r && S && (f += Ga(t));
708
+ W.length > 0 && (f += B(W)), f += w.map((u) => D(u)).join(""), H && g.length > 0 && (f += B(H, f.length > 0), f += g.map((u) => D(u)).join("")), r && S && (f += Ya(t));
709
709
  const L = [
710
710
  {
711
711
  title: W,
@@ -722,11 +722,11 @@ function ko(e, n, t, o, r, i, s, c) {
722
722
  hasCollapsedValues: S
723
723
  };
724
724
  }
725
- function qn(e) {
726
- return e.scrollHeight - e.clientHeight > xa;
725
+ function Xn(e) {
726
+ return e.scrollHeight - e.clientHeight > ba;
727
727
  }
728
- function Jt(e, n, t, o, r, i, s, c, d) {
729
- const v = ko(
728
+ function jt(e, n, t, o, r, i, s, c, d) {
729
+ const v = _o(
730
730
  n,
731
731
  t,
732
732
  o,
@@ -736,12 +736,12 @@ function Jt(e, n, t, o, r, i, s, c, d) {
736
736
  c,
737
737
  d
738
738
  );
739
- return e.innerHTML !== v.html && (e.innerHTML = v.html, ur(e)), v;
739
+ return e.innerHTML !== v.html && (e.innerHTML = v.html, sr(e)), v;
740
740
  }
741
- function ja(e, n, t, o, r, i, s, c, d) {
741
+ function qa(e, n, t, o, r, i, s, c, d) {
742
742
  if (Number.isFinite(r))
743
743
  return {
744
- markup: Jt(
744
+ markup: jt(
745
745
  e,
746
746
  n,
747
747
  t,
@@ -755,7 +755,7 @@ function ja(e, n, t, o, r, i, s, c, d) {
755
755
  maxTooltipItems: r
756
756
  };
757
757
  const v = Math.max(_n, n.length);
758
- let R = v, W = Jt(
758
+ let R = v, W = jt(
759
759
  e,
760
760
  n,
761
761
  t,
@@ -766,14 +766,14 @@ function ja(e, n, t, o, r, i, s, c, d) {
766
766
  c,
767
767
  d
768
768
  );
769
- if (!qn(e))
769
+ if (!Xn(e))
770
770
  return {
771
771
  markup: W,
772
772
  maxTooltipItems: v
773
773
  };
774
774
  let H = _n, y = v;
775
775
  for (; H <= y; ) {
776
- const k = Math.floor((H + y) / 2), w = Jt(
776
+ const k = Math.floor((H + y) / 2), w = jt(
777
777
  e,
778
778
  n,
779
779
  t,
@@ -784,14 +784,14 @@ function ja(e, n, t, o, r, i, s, c, d) {
784
784
  c,
785
785
  d
786
786
  );
787
- if (qn(e)) {
787
+ if (Xn(e)) {
788
788
  y = k - 1;
789
789
  continue;
790
790
  }
791
791
  R = k, W = w, H = k + 1;
792
792
  }
793
793
  return {
794
- markup: R === v ? W : Jt(
794
+ markup: R === v ? W : jt(
795
795
  e,
796
796
  n,
797
797
  t,
@@ -805,7 +805,7 @@ function ja(e, n, t, o, r, i, s, c, d) {
805
805
  maxTooltipItems: R
806
806
  };
807
807
  }
808
- function Gn(e, n) {
808
+ function Yn(e, n) {
809
809
  const t = Math.max(0, Math.min(1, n)), o = e.trim();
810
810
  if (o.startsWith("#")) {
811
811
  const s = o.slice(1), c = s.length === 3 ? `${s[0]}${s[0]}${s[1]}${s[1]}${s[2]}${s[2]}` : s.length === 4 ? `${s[0]}${s[0]}${s[1]}${s[1]}${s[2]}${s[2]}` : s.length >= 6 ? s.slice(0, 6) : "";
@@ -832,12 +832,12 @@ function Gn(e, n) {
832
832
  }
833
833
  return e;
834
834
  }
835
- function Zt(e, n) {
836
- return typeof e == "string" ? Gn(e, n) : Array.isArray(e) ? e.map(
837
- (t) => typeof t == "string" ? Gn(t, n) : t
835
+ function Jt(e, n) {
836
+ return typeof e == "string" ? Yn(e, n) : Array.isArray(e) ? e.map(
837
+ (t) => typeof t == "string" ? Yn(t, n) : t
838
838
  ) : e;
839
839
  }
840
- function Ja(e) {
840
+ function Ga(e) {
841
841
  e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
842
842
  borderColor: Reflect.get(e, "borderColor"),
843
843
  backgroundColor: Reflect.get(e, "backgroundColor"),
@@ -845,16 +845,16 @@ function Ja(e) {
845
845
  pointBackgroundColor: Reflect.get(e, "pointBackgroundColor")
846
846
  });
847
847
  }
848
- function Za(e) {
848
+ function ja(e) {
849
849
  const n = e.__tooltipOriginalStyle;
850
850
  n && (Reflect.set(e, "borderColor", n.borderColor), Reflect.set(e, "backgroundColor", n.backgroundColor), Reflect.set(e, "pointBorderColor", n.pointBorderColor), Reflect.set(e, "pointBackgroundColor", n.pointBackgroundColor));
851
851
  }
852
- function Qa(e, n) {
852
+ function Ja(e, n) {
853
853
  const t = e.__tooltipOriginalStyle;
854
- t && (Reflect.set(e, "borderColor", Zt(t.borderColor, n)), Reflect.set(e, "backgroundColor", Zt(t.backgroundColor, n)), Reflect.set(e, "pointBorderColor", Zt(t.pointBorderColor, n)), Reflect.set(
854
+ t && (Reflect.set(e, "borderColor", Jt(t.borderColor, n)), Reflect.set(e, "backgroundColor", Jt(t.backgroundColor, n)), Reflect.set(e, "pointBorderColor", Jt(t.pointBorderColor, n)), Reflect.set(
855
855
  e,
856
856
  "pointBackgroundColor",
857
- Zt(t.pointBackgroundColor, n)
857
+ Jt(t.pointBackgroundColor, n)
858
858
  ));
859
859
  }
860
860
  function Tn(e) {
@@ -867,13 +867,13 @@ function Tn(e) {
867
867
  const t = n.canvas;
868
868
  return !(t != null && (!t.isConnected || !t.ownerDocument));
869
869
  }
870
- function tn(e, n) {
870
+ function en(e, n) {
871
871
  if (!Tn(e))
872
872
  return;
873
873
  const t = e.data.datasets;
874
874
  if (t.length !== 0) {
875
875
  if (t.forEach((o, r) => {
876
- Ja(o), !n || r === n.datasetIndex ? Za(o) : Qa(o, wa);
876
+ Ga(o), !n || r === n.datasetIndex ? ja(o) : Ja(o, Ca);
877
877
  }), typeof e.setActiveElements == "function")
878
878
  try {
879
879
  n ? e.setActiveElements([
@@ -892,7 +892,7 @@ function tn(e, n) {
892
892
  }
893
893
  }
894
894
  }
895
- function To(e) {
895
+ function ko(e) {
896
896
  const n = e, t = n == null ? void 0 : n.chart;
897
897
  if (Tn(t))
898
898
  return t;
@@ -905,17 +905,17 @@ function To(e) {
905
905
  const i = vn.getChart(r);
906
906
  return Tn(i) ? i : null;
907
907
  }
908
- function er(e) {
908
+ function Za(e) {
909
909
  const n = window.getComputedStyle(e);
910
910
  return [n.overflow, n.overflowX, n.overflowY].some((o) => o !== "visible");
911
911
  }
912
- function Bn(e) {
912
+ function Mn(e) {
913
913
  let n = e.parentElement ?? e, t = n;
914
914
  for (; t && t.parentElement && t.parentElement !== document.body && t.parentElement !== document.documentElement; )
915
- er(t) && (n = t.parentElement), t = t.parentElement;
915
+ Za(t) && (n = t.parentElement), t = t.parentElement;
916
916
  return window.getComputedStyle(n).position === "static" && (n.style.position = "relative"), n;
917
917
  }
918
- function An(e, n, t, o, r, i, s = "center", c = !1) {
918
+ function Bn(e, n, t, o, r, i, s = "center", c = !1) {
919
919
  const d = n.getBoundingClientRect(), v = t.getBoundingClientRect(), R = t.scrollLeft, W = t.scrollTop, H = t.clientWidth, y = t.clientHeight, p = e;
920
920
  (!Number.isFinite(p.__cachedWidth) || !Number.isFinite(p.__cachedHeight) || p.__measurementHostWidth !== H || p.__measurementHostHeight !== y) && (p.__cachedWidth = e.offsetWidth, p.__cachedHeight = e.offsetHeight, p.__measurementHostWidth = H, p.__measurementHostHeight = y);
921
921
  const w = p.__cachedWidth ?? e.offsetWidth, F = p.__cachedHeight ?? e.offsetHeight, g = 8, S = d.left - v.left + R + o, B = d.top - v.top + W + r, D = c ? s === "left" ? S - w - g : S + g : s === "left" ? S - w - g : s === "right" ? S + g : S - w / 2, f = c ? B + g : i ? B - F / 2 : B + g, L = R + g;
@@ -925,15 +925,15 @@ function An(e, n, t, o, r, i, s = "center", c = !1) {
925
925
  const Y = u.getBoundingClientRect().bottom - v.top + W + g;
926
926
  A = Math.max(A, Y);
927
927
  }
928
- const I = Math.max(L, R + H - w - g), M = Math.max(A, W + y - F - g), U = Math.round(Math.min(Math.max(L, D), I)), G = Math.round(Math.min(Math.max(A, f), M));
929
- p.__lastLeftPx === U && p.__lastTopPx === G || (p.__lastLeftPx = U, p.__lastTopPx = G, e.style.left = `${U}px`, e.style.top = `${G}px`);
928
+ const I = Math.max(L, R + H - w - g), M = Math.max(A, W + y - F - g), K = Math.round(Math.min(Math.max(L, D), I)), G = Math.round(Math.min(Math.max(A, f), M));
929
+ p.__lastLeftPx === K && p.__lastTopPx === G || (p.__lastLeftPx = K, p.__lastTopPx = G, e.style.left = `${K}px`, e.style.top = `${G}px`);
930
930
  }
931
- function Lo(e) {
931
+ function To(e) {
932
932
  return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
933
933
  }
934
- function tr(e, n, t, o, r, i, s) {
934
+ function Qa(e, n, t, o, r, i, s) {
935
935
  const c = n.getBoundingClientRect(), d = o - c.left, v = r - c.top;
936
- !Number.isFinite(d) || !Number.isFinite(v) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(v), e.dataset.caretX = String(d), e.dataset.caretY = String(v), e.dataset.anchorDirection = s, An(
936
+ !Number.isFinite(d) || !Number.isFinite(v) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(v), e.dataset.caretX = String(d), e.dataset.caretY = String(v), e.dataset.anchorDirection = s, Bn(
937
937
  e,
938
938
  n,
939
939
  t,
@@ -944,85 +944,85 @@ function tr(e, n, t, o, r, i, s) {
944
944
  !0
945
945
  ));
946
946
  }
947
- function nr(e) {
947
+ function er(e) {
948
948
  const n = document.createElement("div");
949
- return n.id = e, n.dataset.comparisonTooltip = "true", n.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66))", n.style.border = "1px solid rgba(255, 255, 255, 0.58)", n.style.borderRadius = "10px", n.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", n.style.color = "#111827", n.style.left = "0", n.style.opacity = "0", Mn(n), n.style.maxWidth = "min(360px, calc(100% - 16px))", n.style.overflow = "hidden", n.style.padding = "8px 10px", n.style.pointerEvents = "none", n.style.position = "absolute", n.style.textAlign = "left", n.style.top = "0", n.style.transform = "none", n.style.willChange = "left, top", n.style.whiteSpace = "normal", n.style.wordBreak = "normal", n.style.overflowWrap = "normal", n.style.zIndex = "10", n;
949
+ return n.id = e, n.dataset.comparisonTooltip = "true", n.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66))", n.style.border = "1px solid rgba(255, 255, 255, 0.58)", n.style.borderRadius = "10px", n.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", n.style.color = "#111827", n.style.left = "0", n.style.opacity = "0", In(n), n.style.maxWidth = "min(360px, calc(100% - 16px))", n.style.overflow = "hidden", n.style.padding = "8px 10px", n.style.pointerEvents = "none", n.style.position = "absolute", n.style.textAlign = "left", n.style.top = "0", n.style.transform = "none", n.style.willChange = "left, top", n.style.whiteSpace = "normal", n.style.wordBreak = "normal", n.style.overflowWrap = "normal", n.style.zIndex = "10", n;
950
950
  }
951
- function or(e) {
951
+ function tr(e) {
952
952
  e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
953
953
  }
954
- function ar(e) {
955
- e.__onNavigationChange && (window.removeEventListener(Pn, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
954
+ function nr(e) {
955
+ e.__onNavigationChange && (window.removeEventListener(Dn, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
956
956
  }
957
- function rr(e) {
957
+ function or(e) {
958
958
  e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
959
959
  }
960
- function Rn(e, n) {
961
- kt(e), Do(e), or(e), ar(e), rr(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), n && e.__onCanvasPointerEnter && n.removeEventListener("pointerenter", e.__onCanvasPointerEnter), n && e.__onCanvasPointerMove && n.removeEventListener("pointermove", e.__onCanvasPointerMove), n && e.__onCanvasPointerLeave && n.removeEventListener("pointerleave", e.__onCanvasPointerLeave), n && e.__onCanvasClick && n.removeEventListener("click", e.__onCanvasClick), n && e.__onCanvasPointerUp && n.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
960
+ function An(e, n) {
961
+ kt(e), Lo(e), tr(e), nr(e), or(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), n && e.__onCanvasPointerEnter && n.removeEventListener("pointerenter", e.__onCanvasPointerEnter), n && e.__onCanvasPointerMove && n.removeEventListener("pointermove", e.__onCanvasPointerMove), n && e.__onCanvasPointerLeave && n.removeEventListener("pointerleave", e.__onCanvasPointerLeave), n && e.__onCanvasClick && n.removeEventListener("click", e.__onCanvasClick), n && e.__onCanvasPointerUp && n.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
962
962
  }
963
- function lr(e, n, t) {
964
- e.__onNavigationChange || (La(), e.__onNavigationChange = () => {
963
+ function ar(e, n, t) {
964
+ e.__onNavigationChange || (ka(), e.__onNavigationChange = () => {
965
965
  if (!t.isConnected) {
966
- Rn(e, t);
966
+ An(e, t);
967
967
  return;
968
968
  }
969
- Ve(e, n, !0);
970
- }, window.addEventListener(Pn, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
969
+ $e(e, n, !0);
970
+ }, window.addEventListener(Dn, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
971
971
  }
972
- function sr(e, n) {
972
+ function rr(e, n) {
973
973
  e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
974
- n.isConnected || Rn(e, n);
974
+ n.isConnected || An(e, n);
975
975
  }), e.__disconnectObserver.observe(document.body, {
976
976
  childList: !0,
977
977
  subtree: !0
978
978
  }));
979
979
  }
980
- function ir(e, n, t) {
980
+ function lr(e, n, t) {
981
981
  Array.from(
982
982
  e.querySelectorAll('[data-comparison-tooltip="true"]')
983
983
  ).forEach((r) => {
984
- r.id !== n && Rn(r, t);
984
+ r.id !== n && An(r, t);
985
985
  });
986
986
  }
987
987
  function kt(e) {
988
988
  typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
989
989
  }
990
- function Do(e) {
990
+ function Lo(e) {
991
991
  typeof e.__cursorRafId == "number" && (window.cancelAnimationFrame(e.__cursorRafId), e.__cursorRafId = void 0);
992
992
  }
993
- function ur(e) {
993
+ function sr(e) {
994
994
  e.__cachedWidth = void 0, e.__cachedHeight = void 0, e.__measurementHostWidth = void 0, e.__measurementHostHeight = void 0;
995
995
  }
996
- function jn(e, n, t, o, r) {
996
+ function qn(e, n, t, o, r) {
997
997
  e.__pendingCursorClientX = o, e.__pendingCursorClientY = r, typeof e.__cursorRafId != "number" && (e.__cursorRafId = window.requestAnimationFrame(() => {
998
998
  e.__cursorRafId = void 0;
999
999
  const i = e.__pendingCursorClientX, s = e.__pendingCursorClientY;
1000
1000
  if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(i) || !Number.isFinite(s))
1001
1001
  return;
1002
- const c = Bn(n);
1003
- e.parentElement !== c && c.appendChild(e), tr(
1002
+ const c = Mn(n);
1003
+ e.parentElement !== c && c.appendChild(e), Qa(
1004
1004
  e,
1005
1005
  n,
1006
1006
  c,
1007
1007
  i,
1008
1008
  s,
1009
1009
  t,
1010
- Lo(e)
1010
+ To(e)
1011
1011
  );
1012
1012
  }));
1013
1013
  }
1014
- function Ve(e, n, t = !1) {
1015
- St(e) && !t || (kt(e), Do(e), So(e, !1), Ea(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", tn(n));
1014
+ function $e(e, n, t = !1) {
1015
+ St(e) && !t || (kt(e), Lo(e), wo(e, !1), Wa(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", en(n));
1016
1016
  }
1017
- function Jn(e, n, t = Sa) {
1017
+ function Gn(e, n, t = xa) {
1018
1018
  e.__isTooltipHovered || (kt(e), e.__hideTimeoutId = window.setTimeout(() => {
1019
- e.__isTooltipHovered || Ve(e, n);
1019
+ e.__isTooltipHovered || $e(e, n);
1020
1020
  }, t));
1021
1021
  }
1022
- function cr(e, n, t, o, r) {
1023
- const { maxTooltipItems: i } = _o(r);
1022
+ function ir(e, n, t, o, r) {
1023
+ const { maxTooltipItems: i } = So(r);
1024
1024
  e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (s) => {
1025
- if (!(st() && St(e)) && (jn(
1025
+ if (!(st() && St(e)) && (qn(
1026
1026
  e,
1027
1027
  n,
1028
1028
  o,
@@ -1037,7 +1037,7 @@ function cr(e, n, t, o, r) {
1037
1037
  }, n.addEventListener("pointerenter", e.__onCanvasPointerEnter, {
1038
1038
  passive: !0
1039
1039
  })), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (s) => {
1040
- st() && St(e) || jn(
1040
+ st() && St(e) || qn(
1041
1041
  e,
1042
1042
  n,
1043
1043
  o,
@@ -1047,7 +1047,7 @@ function cr(e, n, t, o, r) {
1047
1047
  }, n.addEventListener("pointermove", e.__onCanvasPointerMove, {
1048
1048
  passive: !0
1049
1049
  })), e.__onCanvasPointerLeave || (e.__onCanvasPointerLeave = () => {
1050
- st() && St(e) || Ve(e, t);
1050
+ st() && St(e) || $e(e, t);
1051
1051
  }, n.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
1052
1052
  passive: !0
1053
1053
  })), e.__onCanvasClick || (e.__onCanvasClick = (s) => {
@@ -1060,17 +1060,17 @@ function cr(e, n, t, o, r) {
1060
1060
  return !1;
1061
1061
  const S = (L = g.find(
1062
1062
  (M) => typeof M.dataIndex == "number"
1063
- )) == null ? void 0 : L.dataIndex, B = ((A = t == null ? void 0 : t.data) == null ? void 0 : A.datasets) ?? [], D = (u = t == null ? void 0 : t.config) == null ? void 0 : u.type, f = ko(
1063
+ )) == null ? void 0 : L.dataIndex, B = ((A = t == null ? void 0 : t.data) == null ? void 0 : A.datasets) ?? [], D = (u = t == null ? void 0 : t.config) == null ? void 0 : u.type, f = _o(
1064
1064
  g,
1065
1065
  o,
1066
- (r == null ? void 0 : r.viewFullDetailsLabel) ?? wo(),
1066
+ (r == null ? void 0 : r.viewFullDetailsLabel) ?? xo(),
1067
1067
  i,
1068
1068
  !0,
1069
1069
  B,
1070
1070
  S,
1071
1071
  D
1072
1072
  ).detailsPayload;
1073
- return (I = r.onViewFullDetails) == null || I.call(r, f, t), Ve(e, t), !0;
1073
+ return (I = r.onViewFullDetails) == null || I.call(r, f, t), $e(e, t), !0;
1074
1074
  }, d = ((w = t == null ? void 0 : t.tooltip) == null ? void 0 : w.dataPoints) ?? [];
1075
1075
  if (c(d))
1076
1076
  return;
@@ -1128,19 +1128,19 @@ function cr(e, n, t, o, r) {
1128
1128
  index: F.index
1129
1129
  }));
1130
1130
  if (H.length === 0) {
1131
- Ve(e, t, !0);
1131
+ $e(e, t, !0);
1132
1132
  return;
1133
1133
  }
1134
- const y = H[0], p = Ka(
1134
+ const y = H[0], p = Ea(
1135
1135
  e,
1136
1136
  y.datasetIndex,
1137
1137
  y.index
1138
- ), k = Number.isFinite(e.__lastPhoneTapAt), w = p && Xa(e, s.offsetX, s.offsetY, s.timeStamp);
1138
+ ), k = Number.isFinite(e.__lastPhoneTapAt), w = p && Ua(e, s.offsetX, s.offsetY, s.timeStamp);
1139
1139
  if (k && !w && p) {
1140
- Ve(e, t, !0);
1140
+ $e(e, t, !0);
1141
1141
  return;
1142
1142
  }
1143
- So(e, !0), kt(e), e.dataset.cursorCanvasX = String(s.offsetX), e.dataset.cursorCanvasY = String(s.offsetY), e.dataset.caretX = String(s.offsetX), e.dataset.caretY = String(s.offsetY), d.setActiveElements(H, {
1143
+ wo(e, !0), kt(e), e.dataset.cursorCanvasX = String(s.offsetX), e.dataset.cursorCanvasY = String(s.offsetY), e.dataset.caretX = String(s.offsetX), e.dataset.caretY = String(s.offsetY), d.setActiveElements(H, {
1144
1144
  x: s.offsetX,
1145
1145
  y: s.offsetY
1146
1146
  });
@@ -1150,10 +1150,10 @@ function cr(e, n, t, o, r) {
1150
1150
  return;
1151
1151
  }
1152
1152
  if (w && (r != null && r.onViewFullDetails) && e.__detailsPayload) {
1153
- r.onViewFullDetails(e.__detailsPayload, t), Ve(e, t);
1153
+ r.onViewFullDetails(e.__detailsPayload, t), $e(e, t);
1154
1154
  return;
1155
1155
  }
1156
- Ua(
1156
+ Oa(
1157
1157
  e,
1158
1158
  s.offsetX,
1159
1159
  s.offsetY,
@@ -1167,24 +1167,24 @@ function cr(e, n, t, o, r) {
1167
1167
  }, n.addEventListener("pointerup", e.__onCanvasPointerUp)), r != null && r.onViewFullDetails && (e.__onDetailsClick || (e.__onDetailsClick = (s) => {
1168
1168
  var v;
1169
1169
  const c = s.target;
1170
- c != null && c.closest('[data-tooltip-full-details="true"]') && (s.preventDefault(), s.stopPropagation(), e.__detailsPayload && ((v = r.onViewFullDetails) == null || v.call(r, e.__detailsPayload, t), Ve(e, t)));
1170
+ c != null && c.closest('[data-tooltip-full-details="true"]') && (s.preventDefault(), s.stopPropagation(), e.__detailsPayload && ((v = r.onViewFullDetails) == null || v.call(r, e.__detailsPayload, t), $e(e, t)));
1171
1171
  }, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
1172
1172
  e.__isTooltipHovered = !0, kt(e);
1173
1173
  }, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
1174
- e.__isTooltipHovered = !1, Ve(e, t);
1174
+ e.__isTooltipHovered = !1, $e(e, t);
1175
1175
  }, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
1176
1176
  }
1177
- function dr(e, n, t) {
1177
+ function ur(e, n, t) {
1178
1178
  e.__onViewportChange || (e.__onViewportChange = () => {
1179
1179
  if (e.style.opacity !== "1")
1180
1180
  return;
1181
- const o = Number(e.dataset.caretX), r = Number(e.dataset.caretY), i = Lo(e);
1181
+ const o = Number(e.dataset.caretX), r = Number(e.dataset.caretY), i = To(e);
1182
1182
  if (!Number.isFinite(o) || !Number.isFinite(r)) {
1183
1183
  e.style.opacity = "0";
1184
1184
  return;
1185
1185
  }
1186
- const s = Bn(n);
1187
- e.parentElement !== s && s.appendChild(e), Mn(e, s), An(
1186
+ const s = Mn(n);
1187
+ e.parentElement !== s && s.appendChild(e), In(e, s), Bn(
1188
1188
  e,
1189
1189
  n,
1190
1190
  s,
@@ -1201,34 +1201,34 @@ function dr(e, n, t) {
1201
1201
  passive: !0
1202
1202
  }));
1203
1203
  }
1204
- function fr(e, n) {
1205
- const { maxTooltipItems: t } = _o(n);
1204
+ function cr(e, n) {
1205
+ const { maxTooltipItems: t } = So(n);
1206
1206
  return ({ chart: o, tooltip: r }) => {
1207
- var U, G, j, Y;
1207
+ var K, G, j, Y;
1208
1208
  if (typeof document > "u" || typeof window > "u")
1209
1209
  return;
1210
1210
  const i = o == null ? void 0 : o.canvas;
1211
1211
  if (!(i instanceof HTMLCanvasElement))
1212
1212
  return;
1213
- const s = Bn(i), c = `comparison-tooltip-${String(o.id)}`;
1213
+ const s = Mn(i), c = `comparison-tooltip-${String(o.id)}`;
1214
1214
  let d = document.querySelector(`#${c}`);
1215
- if (d || (d = nr(c)), d.parentElement !== s && s.appendChild(d), Mn(d, s), dr(d, i, e), lr(d, o, i), sr(d, i), cr(d, i, o, e, n), ((r == null ? void 0 : r.opacity) ?? 0) === 0) {
1215
+ if (d || (d = er(c)), d.parentElement !== s && s.appendChild(d), In(d, s), ur(d, i, e), ar(d, o, i), rr(d, i), ir(d, i, o, e, n), ((r == null ? void 0 : r.opacity) ?? 0) === 0) {
1216
1216
  if (st() && St(d))
1217
1217
  return;
1218
- n != null && n.onViewFullDetails ? Jn(d, o) : Ve(d, o);
1218
+ n != null && n.onViewFullDetails ? Gn(d, o) : $e(d, o);
1219
1219
  return;
1220
1220
  }
1221
1221
  const v = (r == null ? void 0 : r.dataPoints) ?? [];
1222
1222
  if (v.length === 0) {
1223
1223
  if (st() && St(d))
1224
1224
  return;
1225
- n != null && n.onViewFullDetails ? Jn(d, o) : Ve(d, o);
1225
+ n != null && n.onViewFullDetails ? Gn(d, o) : $e(d, o);
1226
1226
  return;
1227
1227
  }
1228
- ir(s, c, i), kt(d);
1229
- const R = (n == null ? void 0 : n.viewFullDetailsLabel) ?? wo(), W = !!(n != null && n.onViewFullDetails), H = (U = v.find((z) => typeof z.dataIndex == "number")) == null ? void 0 : U.dataIndex, y = ((G = o == null ? void 0 : o.data) == null ? void 0 : G.datasets) ?? [], p = (j = o == null ? void 0 : o.config) == null ? void 0 : j.type, {
1228
+ lr(s, c, i), kt(d);
1229
+ const R = (n == null ? void 0 : n.viewFullDetailsLabel) ?? xo(), W = !!(n != null && n.onViewFullDetails), H = (K = v.find((z) => typeof z.dataIndex == "number")) == null ? void 0 : K.dataIndex, y = ((G = o == null ? void 0 : o.data) == null ? void 0 : G.datasets) ?? [], p = (j = o == null ? void 0 : o.config) == null ? void 0 : j.type, {
1230
1230
  markup: { detailsPayload: k, hasCollapsedValues: w }
1231
- } = ja(
1231
+ } = qa(
1232
1232
  d,
1233
1233
  v,
1234
1234
  e,
@@ -1251,10 +1251,10 @@ function fr(e, n) {
1251
1251
  return z;
1252
1252
  if (!Number.isFinite(z))
1253
1253
  return O;
1254
- const N = Number.isFinite(L) ? L : g, K = Math.abs(z - N);
1255
- return Math.abs(O - N) > K ? O : z;
1254
+ const N = Number.isFinite(L) ? L : g, X = Math.abs(z - N);
1255
+ return Math.abs(O - N) > X ? O : z;
1256
1256
  }, Number.NaN) : Number.NaN, u = S, I = B, M = e ? Number.isFinite(L) && Number.isFinite(A) && A < L ? "left" : "right" : "center";
1257
- An(
1257
+ Bn(
1258
1258
  d,
1259
1259
  i,
1260
1260
  s,
@@ -1266,15 +1266,15 @@ function fr(e, n) {
1266
1266
  ), d.dataset.caretX = String(u), d.dataset.caretY = String(I), d.dataset.anchorDirection = M, d.style.opacity = "1";
1267
1267
  };
1268
1268
  }
1269
- function Po(e = !1, n) {
1269
+ function Do(e = !1, n) {
1270
1270
  return {
1271
- ...xo(e ? "y" : "x"),
1271
+ ...Co(e ? "y" : "x"),
1272
1272
  enabled: !1,
1273
- external: fr(e, n)
1273
+ external: cr(e, n)
1274
1274
  };
1275
1275
  }
1276
- const Zn = "en-US";
1277
- function Qn(e, n) {
1276
+ const jn = "en-US";
1277
+ function Jn(e, n) {
1278
1278
  const t = n.split(".");
1279
1279
  let o = e;
1280
1280
  for (const r of t) {
@@ -1284,11 +1284,11 @@ function Qn(e, n) {
1284
1284
  }
1285
1285
  return typeof o == "string" ? o : void 0;
1286
1286
  }
1287
- function hr() {
1288
- const e = fo(), n = "report.widget.legend.comparison";
1289
- return `(${Qn(en[e] ?? en[Zn], n) ?? Qn(en[Zn], n) ?? "Comparison"})`;
1287
+ function dr() {
1288
+ const e = co(), n = "report.widget.legend.comparison";
1289
+ return `(${Jn(Qt[e] ?? Qt[jn], n) ?? Jn(Qt[jn], n) ?? "Comparison"})`;
1290
1290
  }
1291
- function Io(e) {
1291
+ function Po(e) {
1292
1292
  function o(y, p, k) {
1293
1293
  if (y.measureText(p).width <= k) return p;
1294
1294
  const w = "…";
@@ -1306,7 +1306,7 @@ function Io(e) {
1306
1306
  function i(y, p) {
1307
1307
  const k = y == null ? "" : String(y).trim();
1308
1308
  if (k.length === 0) return k;
1309
- const w = hr();
1309
+ const w = dr();
1310
1310
  return k.endsWith(` ${w}`) || k.endsWith(w) ? k : (p == null ? void 0 : p.dash) === !0 || (p == null ? void 0 : p.isCompare) === !0 ? `${k} ${w}` : k;
1311
1311
  }
1312
1312
  const s = x(() => ({
@@ -1450,13 +1450,13 @@ function Io(e) {
1450
1450
  })), R = x(() => e.isTransposed), W = x(() => e.chartWidth), H = x(() => e.chartHeight);
1451
1451
  return { datalabels: s, xCfg: c, yCfg: d, isTransposed: R, legend: v, chartWidth: W, chartHeight: H };
1452
1452
  }
1453
- const mr = {
1453
+ const fr = {
1454
1454
  key: 0,
1455
1455
  class: "pointer-events-none fixed inset-0 z-[120] flex justify-end"
1456
- }, pr = ["aria-label"], gr = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, vr = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 pr-3" }, yr = { class: "flex items-center gap-1.5" }, br = {
1456
+ }, hr = ["aria-label"], mr = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, pr = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 pr-3" }, gr = { class: "flex items-center gap-1.5" }, vr = {
1457
1457
  key: 0,
1458
1458
  class: "pb-2 fm-typo-en-body-lg-600 text-fm-color-typo-primary"
1459
- }, Cr = ["onMouseenter", "onFocus"], xr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, wr = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, Sr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, eo = 500, _r = 320, Ot = /* @__PURE__ */ Ne({
1459
+ }, yr = ["onMouseenter", "onFocus"], br = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, Cr = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, xr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, Zn = 500, wr = 320, Et = /* @__PURE__ */ Fe({
1460
1460
  __name: "TooltipDetailSidesheet",
1461
1461
  props: {
1462
1462
  modelValue: { type: Boolean },
@@ -1464,7 +1464,7 @@ const mr = {
1464
1464
  },
1465
1465
  emits: ["update:modelValue", "value-hover", "value-leave"],
1466
1466
  setup(e, { emit: n }) {
1467
- const t = e, o = n, { t: r } = dt(), i = P(null), s = P(eo), c = P(!1), d = x({
1467
+ const t = e, o = n, { t: r } = ct(), i = P(null), s = P(Zn), c = P(!1), d = x({
1468
1468
  get: () => t.modelValue,
1469
1469
  set: (u) => o("update:modelValue", u)
1470
1470
  }), v = x(() => {
@@ -1491,10 +1491,10 @@ const mr = {
1491
1491
  p(), d.value = !1;
1492
1492
  }
1493
1493
  function w() {
1494
- return typeof window > "u" ? eo : Math.floor(window.innerWidth * 0.94);
1494
+ return typeof window > "u" ? Zn : Math.floor(window.innerWidth * 0.94);
1495
1495
  }
1496
1496
  function F(u) {
1497
- const I = w(), M = Math.min(_r, I);
1497
+ const I = w(), M = Math.min(wr, I);
1498
1498
  return Math.min(I, Math.max(M, Math.floor(u)));
1499
1499
  }
1500
1500
  function g(u) {
@@ -1513,25 +1513,25 @@ const mr = {
1513
1513
  s.value = F(s.value);
1514
1514
  }
1515
1515
  function L(u) {
1516
- var U;
1516
+ var K;
1517
1517
  if (!d.value)
1518
1518
  return;
1519
1519
  const I = u.target;
1520
1520
  if (!(I instanceof Node))
1521
1521
  return;
1522
1522
  const M = I instanceof Element ? I : null;
1523
- M != null && M.closest('[data-tooltip-full-details="true"]') || (U = i.value) != null && U.contains(I) || k();
1523
+ M != null && M.closest('[data-tooltip-full-details="true"]') || (K = i.value) != null && K.contains(I) || k();
1524
1524
  }
1525
1525
  function A(u) {
1526
1526
  d.value && u.key === "Escape" && k();
1527
1527
  }
1528
- return ct(() => {
1528
+ return ut(() => {
1529
1529
  s.value = F(s.value), document.addEventListener("pointerdown", L, !0), document.addEventListener("keydown", A), window.addEventListener("resize", f);
1530
- }), lo(() => {
1530
+ }), ao(() => {
1531
1531
  S(), document.removeEventListener("pointerdown", L, !0), document.removeEventListener("keydown", A), window.removeEventListener("resize", f);
1532
1532
  }), (u, I) => {
1533
- const M = fe("FmButton");
1534
- return J(), me(Oo, {
1533
+ const M = de("FmButton");
1534
+ return J(), me(Ho, {
1535
1535
  "enter-active-class": "transform transition duration-200 ease-out",
1536
1536
  "enter-from-class": "translate-x-full opacity-0",
1537
1537
  "enter-to-class": "translate-x-0 opacity-100",
@@ -1539,25 +1539,25 @@ const mr = {
1539
1539
  "leave-from-class": "translate-x-0 opacity-100",
1540
1540
  "leave-to-class": "translate-x-full opacity-0"
1541
1541
  }, {
1542
- default: ke(() => [
1543
- d.value ? (J(), ce("div", mr, [
1544
- ee("div", {
1542
+ default: Te(() => [
1543
+ d.value ? (J(), ue("div", fr, [
1544
+ ne("div", {
1545
1545
  ref_key: "panelRef",
1546
1546
  ref: i,
1547
1547
  class: "glassmorphism pointer-events-auto relative ml-auto flex h-full flex-col px-24 py-3 overflow-hidden rounded-l-2xl border border-fm-color-border-secondary bg-fm-color-neutral-white duration-200 ease-out",
1548
- style: Te(R.value),
1548
+ style: Le(R.value),
1549
1549
  role: "dialog",
1550
1550
  "aria-modal": "false",
1551
1551
  "aria-label": a(r)("report.widget.comparisonTooltip.fullBreakdownTitle")
1552
1552
  }, [
1553
- ee("div", {
1553
+ ne("div", {
1554
1554
  class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
1555
- onPointerdown: Qt(D, ["prevent"])
1555
+ onPointerdown: Zt(D, ["prevent"])
1556
1556
  }, null, 32),
1557
- ee("div", gr, [
1558
- ee("div", vr, Ae(a(r)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
1559
- ee("div", yr, [
1560
- de(M, {
1557
+ ne("div", mr, [
1558
+ ne("div", pr, Be(a(r)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
1559
+ ne("div", gr, [
1560
+ ce(M, {
1561
1561
  class: "relative z-30 h-9 w-9 shrink-0",
1562
1562
  variant: "tertiary",
1563
1563
  icon: "close",
@@ -1566,16 +1566,16 @@ const mr = {
1566
1566
  }, null, 8, ["aria-label"])
1567
1567
  ])
1568
1568
  ]),
1569
- ee("div", {
1569
+ ne("div", {
1570
1570
  class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
1571
1571
  onMouseleave: p
1572
1572
  }, [
1573
- (J(!0), ce(ze, null, Nt(v.value, (U, G) => (J(), ce("div", {
1574
- key: `${U.title || "section"}-${G}`,
1573
+ (J(!0), ue(Ve, null, $t(v.value, (K, G) => (J(), ue("div", {
1574
+ key: `${K.title || "section"}-${G}`,
1575
1575
  class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
1576
1576
  }, [
1577
- U.title ? (J(), ce("p", br, Ae(U.title), 1)) : ve("", !0),
1578
- (J(!0), ce(ze, null, Nt(U.values, (j, Y) => (J(), ce("button", {
1577
+ K.title ? (J(), ue("p", vr, Be(K.title), 1)) : ge("", !0),
1578
+ (J(!0), ue(Ve, null, $t(K.values, (j, Y) => (J(), ue("button", {
1579
1579
  key: `${j.text}-${Y}`,
1580
1580
  type: "button",
1581
1581
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex w-full items-start justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
@@ -1584,35 +1584,35 @@ const mr = {
1584
1584
  onMouseleave: p,
1585
1585
  onBlur: p
1586
1586
  }, [
1587
- ee("span", xr, [
1588
- ee("span", {
1589
- class: Le([
1587
+ ne("span", br, [
1588
+ ne("span", {
1589
+ class: De([
1590
1590
  "inline-block h-3 w-3 shrink-0 box-border",
1591
1591
  j.isBar ? "rounded-sm border border-fm-color-neutral-gray-400" : "rounded-full border border-white shadow-[0_0_0_1px_rgba(17,24,39,0.28)]"
1592
1592
  ]),
1593
- style: Te({ backgroundColor: j.color })
1593
+ style: Le({ backgroundColor: j.color })
1594
1594
  }, null, 6),
1595
- ee("span", wr, Ae(H(j)), 1)
1595
+ ne("span", Cr, Be(H(j)), 1)
1596
1596
  ]),
1597
- ee("span", Sr, Ae(W(j)), 1)
1598
- ], 40, Cr))), 128))
1597
+ ne("span", xr, Be(W(j)), 1)
1598
+ ], 40, yr))), 128))
1599
1599
  ]))), 128))
1600
1600
  ], 32)
1601
- ], 12, pr)
1602
- ])) : ve("", !0)
1601
+ ], 12, hr)
1602
+ ])) : ge("", !0)
1603
1603
  ]),
1604
1604
  _: 1
1605
1605
  });
1606
1606
  };
1607
1607
  }
1608
- }), kr = {
1608
+ }), Sr = {
1609
1609
  type: "button",
1610
1610
  class: "inline-flex cursor-pointer select-none items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4]",
1611
1611
  style: { fontSize: "var(--legend-font-size)" }
1612
- }, Tr = ["aria-pressed", "onClick"], Lr = ["title"], Dr = {
1612
+ }, _r = ["aria-pressed", "onClick"], kr = ["title"], Tr = {
1613
1613
  key: 0,
1614
1614
  class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
1615
- }, Pr = 36, to = 2, no = 16, Ir = 50, Mr = 6, Br = /* @__PURE__ */ Ne({
1615
+ }, Lr = 36, Qn = 2, eo = 16, Dr = 50, Pr = 6, Ir = /* @__PURE__ */ Fe({
1616
1616
  __name: "ChartLegendPanel",
1617
1617
  props: {
1618
1618
  chartRef: {},
@@ -1632,7 +1632,7 @@ const mr = {
1632
1632
  },
1633
1633
  emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
1634
1634
  setup(e, { emit: n }) {
1635
- const t = e, o = n, { t: r, locale: i } = dt(), s = P([]), c = P(0), d = P(!1), v = P(!1), R = P(0), W = P(null), H = P(null), y = P(null), p = P(null), k = P(!1), w = P(0), F = P(0), g = P(!1), S = P(0), B = P(0), D = x(() => t.enabled !== !1), f = x(() => t.position === "left" || t.position === "right");
1635
+ const t = e, o = n, { t: r, locale: i } = ct(), s = P([]), c = P(0), d = P(!1), v = P(!1), R = P(0), W = P(null), H = P(null), y = P(null), p = P(null), k = P(!1), w = P(0), F = P(0), g = P(!1), S = P(0), B = P(0), D = x(() => t.enabled !== !1), f = x(() => t.position === "left" || t.position === "right");
1636
1636
  let L = null;
1637
1637
  const A = x(
1638
1638
  () => d.value && v.value && k.value
@@ -1640,7 +1640,7 @@ const mr = {
1640
1640
  height: `${Math.max(0, w.value)}px`,
1641
1641
  transform: `translateY(${Math.max(0, F.value)}px)`
1642
1642
  })), I = x(() => typeof t.textColor == "string" && t.textColor.trim().length > 0 ? t.textColor : "#6b6b6b"), M = x(() => typeof t.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? t.fontSize : 12);
1643
- function U(l) {
1643
+ function K(l) {
1644
1644
  G({ height: l, width: 0 });
1645
1645
  }
1646
1646
  function G({ height: l, width: m }) {
@@ -1652,7 +1652,7 @@ const mr = {
1652
1652
  L != null && (window.clearTimeout(L), L = null);
1653
1653
  }
1654
1654
  function Y() {
1655
- const l = To(
1655
+ const l = ko(
1656
1656
  t.chartRef
1657
1657
  );
1658
1658
  if (l)
@@ -1664,9 +1664,9 @@ const mr = {
1664
1664
  const V = C.querySelector("canvas");
1665
1665
  if (!(V instanceof HTMLCanvasElement))
1666
1666
  continue;
1667
- const X = vn.getChart(V);
1668
- if (X)
1669
- return X;
1667
+ const E = vn.getChart(V);
1668
+ if (E)
1669
+ return E;
1670
1670
  }
1671
1671
  return null;
1672
1672
  }
@@ -1696,8 +1696,8 @@ const mr = {
1696
1696
  w.value = 0, F.value = 0;
1697
1697
  return;
1698
1698
  }
1699
- const X = m, Z = Math.max(18, Math.round(m / h * X)), te = Math.max(0, X - Z), E = Math.max(1, h - m), ue = Math.round(C / E * te);
1700
- w.value = Z, F.value = ue;
1699
+ const E = m, Z = Math.max(18, Math.round(m / h * E)), ee = Math.max(0, E - Z), U = Math.max(1, h - m), Q = Math.round(C / U * ee);
1700
+ w.value = Z, F.value = Q;
1701
1701
  }
1702
1702
  function O() {
1703
1703
  b();
@@ -1706,10 +1706,10 @@ const mr = {
1706
1706
  const m = y.value, h = H.value;
1707
1707
  if (!m || !h || !k.value)
1708
1708
  return;
1709
- const C = h.getBoundingClientRect(), V = l.clientY - C.top, X = Math.max(0, V - w.value / 2), Z = Math.max(1, m.clientHeight - w.value), te = Math.min(1, X / Z), E = Math.max(0, m.scrollHeight - m.clientHeight);
1710
- m.scrollTop = te * E, b();
1709
+ const C = h.getBoundingClientRect(), V = l.clientY - C.top, E = Math.max(0, V - w.value / 2), Z = Math.max(1, m.clientHeight - w.value), ee = Math.min(1, E / Z), U = Math.max(0, m.scrollHeight - m.clientHeight);
1710
+ m.scrollTop = ee * U, b();
1711
1711
  }
1712
- function K(l) {
1712
+ function X(l) {
1713
1713
  k.value && (g.value = !0, S.value = l.clientY, B.value = F.value);
1714
1714
  }
1715
1715
  function q(l) {
@@ -1718,13 +1718,13 @@ const mr = {
1718
1718
  const m = y.value;
1719
1719
  if (!m)
1720
1720
  return;
1721
- const h = l.clientY - S.value, C = Math.max(1, m.clientHeight - w.value), X = Math.min(C, Math.max(0, B.value + h)) / C, Z = Math.max(0, m.scrollHeight - m.clientHeight);
1722
- m.scrollTop = X * Z, b();
1721
+ const h = l.clientY - S.value, C = Math.max(1, m.clientHeight - w.value), E = Math.min(C, Math.max(0, B.value + h)) / C, Z = Math.max(0, m.scrollHeight - m.clientHeight);
1722
+ m.scrollTop = E * Z, b();
1723
1723
  }
1724
1724
  function $() {
1725
1725
  g.value && (g.value = !1);
1726
1726
  }
1727
- function Q() {
1727
+ function te() {
1728
1728
  var m;
1729
1729
  const l = [(m = t.chartRef) == null ? void 0 : m.$el, W.value];
1730
1730
  for (const h of l) {
@@ -1743,76 +1743,76 @@ const mr = {
1743
1743
  }
1744
1744
  return null;
1745
1745
  }
1746
- function oe() {
1747
- var h, C, V, X;
1746
+ function ae() {
1747
+ var h, C, V, E;
1748
1748
  const l = (C = (h = W.value) == null ? void 0 : h.closest(".chart-layout")) == null ? void 0 : C.parentElement;
1749
1749
  if (l instanceof HTMLElement)
1750
1750
  return l;
1751
1751
  const m = (V = t.chartRef) == null ? void 0 : V.$el;
1752
1752
  if (m instanceof HTMLElement) {
1753
- const Z = (X = m.closest(".chart-layout")) == null ? void 0 : X.parentElement;
1753
+ const Z = (E = m.closest(".chart-layout")) == null ? void 0 : E.parentElement;
1754
1754
  if (Z instanceof HTMLElement)
1755
1755
  return Z;
1756
1756
  }
1757
1757
  return null;
1758
1758
  }
1759
1759
  function le() {
1760
- var h, C, V, X;
1761
- const l = ((h = W.value) == null ? void 0 : h.closest(".chart-layout")) ?? ((X = (V = (C = t.chartRef) == null ? void 0 : C.$el) == null ? void 0 : V.closest) == null ? void 0 : X.call(V, ".chart-layout")) ?? null;
1760
+ var h, C, V, E;
1761
+ const l = ((h = W.value) == null ? void 0 : h.closest(".chart-layout")) ?? ((E = (V = (C = t.chartRef) == null ? void 0 : C.$el) == null ? void 0 : V.closest) == null ? void 0 : E.call(V, ".chart-layout")) ?? null;
1762
1762
  if (!(l instanceof HTMLElement))
1763
1763
  return null;
1764
1764
  const m = Number(l.getBoundingClientRect().width);
1765
1765
  return Number.isFinite(m) && m > 0 ? m : null;
1766
1766
  }
1767
1767
  function se() {
1768
- const l = oe();
1768
+ const l = ae();
1769
1769
  if (l) {
1770
1770
  const Z = Number(l.getBoundingClientRect().height);
1771
1771
  if (Number.isFinite(Z) && Z > 0)
1772
1772
  return Z;
1773
1773
  }
1774
- const m = Q();
1774
+ const m = te();
1775
1775
  if (!m)
1776
1776
  return null;
1777
- const h = window.getComputedStyle(m), C = parseFloat(h.paddingTop) || 0, V = parseFloat(h.paddingBottom) || 0, X = m.getBoundingClientRect().height - C - V;
1778
- return Number.isFinite(X) && X > 0 ? X : null;
1777
+ const h = window.getComputedStyle(m), C = parseFloat(h.paddingTop) || 0, V = parseFloat(h.paddingBottom) || 0, E = m.getBoundingClientRect().height - C - V;
1778
+ return Number.isFinite(E) && E > 0 ? E : null;
1779
1779
  }
1780
1780
  function ye() {
1781
- const l = oe();
1781
+ const l = ae();
1782
1782
  if (l) {
1783
1783
  const Z = Number(l.getBoundingClientRect().width);
1784
1784
  if (Number.isFinite(Z) && Z > 0)
1785
1785
  return Z;
1786
1786
  }
1787
- const m = Q();
1787
+ const m = te();
1788
1788
  if (!m)
1789
1789
  return null;
1790
- const h = window.getComputedStyle(m), C = parseFloat(h.paddingLeft) || 0, V = parseFloat(h.paddingRight) || 0, X = m.getBoundingClientRect().width - C - V;
1791
- return Number.isFinite(X) && X > 0 ? X : null;
1790
+ const h = window.getComputedStyle(m), C = parseFloat(h.paddingLeft) || 0, V = parseFloat(h.paddingRight) || 0, E = m.getBoundingClientRect().width - C - V;
1791
+ return Number.isFinite(E) && E > 0 ? E : null;
1792
1792
  }
1793
1793
  function ie() {
1794
1794
  const l = Y(), m = Number(l == null ? void 0 : l.height), h = se();
1795
1795
  if (f.value)
1796
- return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m - no)) : h != null ? Math.max(0, Math.floor(h - no)) : 120;
1796
+ return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m - eo)) : h != null ? Math.max(0, Math.floor(h - eo)) : 120;
1797
1797
  if (h != null) {
1798
- const C = h * 0.3, V = h - Pr, X = Math.min(C, V);
1799
- return Math.max(0, Math.floor(X));
1798
+ const C = h * 0.3, V = h - Lr, E = Math.min(C, V);
1799
+ return Math.max(0, Math.floor(E));
1800
1800
  }
1801
1801
  return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m * 0.3)) : 120;
1802
1802
  }
1803
1803
  function be() {
1804
- var X;
1804
+ var E;
1805
1805
  if (f.value) {
1806
1806
  const Z = ye();
1807
1807
  if (Z != null)
1808
1808
  return Math.max(0, Math.floor(Z * 0.3));
1809
- const te = Y(), E = Number(te == null ? void 0 : te.width);
1810
- return Number.isFinite(E) && E > 0 ? Math.max(0, Math.floor(E * 0.3)) : 180;
1809
+ const ee = Y(), U = Number(ee == null ? void 0 : ee.width);
1810
+ return Number.isFinite(U) && U > 0 ? Math.max(0, Math.floor(U * 0.3)) : 180;
1811
1811
  }
1812
1812
  const l = le();
1813
1813
  if (l != null)
1814
1814
  return Math.max(0, Math.floor(l * 0.3));
1815
- const m = Y(), h = Number(m == null ? void 0 : m.width), C = Number(((X = W.value) == null ? void 0 : X.getBoundingClientRect().width) ?? 0);
1815
+ const m = Y(), h = Number(m == null ? void 0 : m.width), C = Number(((E = W.value) == null ? void 0 : E.getBoundingClientRect().width) ?? 0);
1816
1816
  if (Number.isFinite(h) && h > 0) {
1817
1817
  const Z = h + (Number.isFinite(C) ? C : 0);
1818
1818
  return Math.max(0, Math.floor(Z * 0.3));
@@ -1820,22 +1820,22 @@ const mr = {
1820
1820
  const V = ye();
1821
1821
  return V != null ? Math.max(0, Math.floor(V * 0.3)) : 180;
1822
1822
  }
1823
- function we(l, m) {
1823
+ function Se(l, m) {
1824
1824
  const h = t.chartColorBinding;
1825
1825
  if (h) {
1826
- const X = typeof l.datasetIndex == "number" ? l.datasetIndex : m, Z = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : Math.max(1, Number(s.value.length));
1826
+ const E = typeof l.datasetIndex == "number" ? l.datasetIndex : m, Z = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : Math.max(1, Number(s.value.length));
1827
1827
  if (h === xe.breakdown) {
1828
- const E = _t({
1829
- fallbackIndex: X,
1828
+ const U = _t({
1829
+ fallbackIndex: E,
1830
1830
  metricCount: Z
1831
- }), ue = Ie({
1832
- datasetIndex: X,
1831
+ }), Q = Ie({
1832
+ datasetIndex: E,
1833
1833
  metricCount: Z,
1834
1834
  mode: xe.metric
1835
1835
  });
1836
1836
  return Lt({
1837
- breakdownIndex: E,
1838
- metricIndex: ue,
1837
+ breakdownIndex: U,
1838
+ metricIndex: Q,
1839
1839
  metricCount: Z,
1840
1840
  breakdownColors: t.chartBreakdownColors,
1841
1841
  useSecondaryMetricShades: t.chartUseSecondaryMetricShades,
@@ -1843,21 +1843,21 @@ const mr = {
1843
1843
  });
1844
1844
  }
1845
1845
  if (h === xe.metric) {
1846
- const E = Ie({
1847
- datasetIndex: X,
1846
+ const U = Ie({
1847
+ datasetIndex: E,
1848
1848
  metricCount: Z,
1849
1849
  mode: xe.metric
1850
1850
  });
1851
- return Ze({ index: E, customColors: t.chartColors });
1851
+ return Ze({ index: U, customColors: t.chartColors });
1852
1852
  }
1853
- const te = typeof l.index == "number" ? l.index : X;
1854
- return Ze({ index: te, customColors: t.chartColors });
1853
+ const ee = typeof l.index == "number" ? l.index : E;
1854
+ return Ze({ index: ee, customColors: t.chartColors });
1855
1855
  }
1856
1856
  const C = l;
1857
- return Se(l.fillStyle) || Se(l.strokeStyle) || Se(C.color) || "#9ca3af";
1857
+ return _e(l.fillStyle) || _e(l.strokeStyle) || _e(C.color) || "#9ca3af";
1858
1858
  }
1859
- function Se(l) {
1860
- return typeof l == "string" && l.trim().length > 0 ? l : Array.isArray(l) ? l.map((h) => Se(h)).find((h) => typeof h == "string" && h.trim().length > 0) ?? "" : "";
1859
+ function _e(l) {
1860
+ return typeof l == "string" && l.trim().length > 0 ? l : Array.isArray(l) ? l.map((h) => _e(h)).find((h) => typeof h == "string" && h.trim().length > 0) ?? "" : "";
1861
1861
  }
1862
1862
  function Ke(l) {
1863
1863
  return Array.isArray(t.hiddenDataPointIndexes) ? t.hiddenDataPointIndexes.includes(l) : !1;
@@ -1870,8 +1870,8 @@ const mr = {
1870
1870
  return l;
1871
1871
  const m = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : 1;
1872
1872
  return [...l.map((C, V) => {
1873
- const X = typeof C.datasetIndex == "number" ? C.datasetIndex : V, Z = _t({
1874
- fallbackIndex: X,
1873
+ const E = typeof C.datasetIndex == "number" ? C.datasetIndex : V, Z = _t({
1874
+ fallbackIndex: E,
1875
1875
  metricCount: m
1876
1876
  });
1877
1877
  return {
@@ -1886,41 +1886,41 @@ const mr = {
1886
1886
  return l;
1887
1887
  const m = /* @__PURE__ */ new Map(), h = [];
1888
1888
  for (const C of l) {
1889
- const V = typeof C.index == "number", X = C.datasetIndex, Z = typeof X == "number" && !V, te = typeof C.text == "string" ? C.text.trim() : "";
1890
- if (!Z || !te) {
1889
+ const V = typeof C.index == "number", E = C.datasetIndex, Z = typeof E == "number" && !V, ee = typeof C.text == "string" ? C.text.trim() : "";
1890
+ if (!Z || !ee) {
1891
1891
  h.push(C);
1892
1892
  continue;
1893
1893
  }
1894
- const E = te.toLowerCase(), ue = m.get(E);
1895
- if (ue == null) {
1894
+ const U = ee.toLowerCase(), Q = m.get(U);
1895
+ if (Q == null) {
1896
1896
  h.push({
1897
1897
  ...C,
1898
- datasetIndexes: [X],
1898
+ datasetIndexes: [E],
1899
1899
  datasetKeys: typeof C.datasetKey == "string" && C.datasetKey.trim().length > 0 ? [C.datasetKey] : []
1900
- }), m.set(E, h.length - 1);
1900
+ }), m.set(U, h.length - 1);
1901
1901
  continue;
1902
1902
  }
1903
- const ge = h[ue];
1904
- if (!ge)
1903
+ const pe = h[Q];
1904
+ if (!pe)
1905
1905
  continue;
1906
- const re = new Set(
1907
- Array.isArray(ge.datasetIndexes) ? ge.datasetIndexes : typeof ge.datasetIndex == "number" ? [ge.datasetIndex] : []
1906
+ const ve = new Set(
1907
+ Array.isArray(pe.datasetIndexes) ? pe.datasetIndexes : typeof pe.datasetIndex == "number" ? [pe.datasetIndex] : []
1908
1908
  );
1909
- re.add(X);
1910
- const ae = new Set(
1911
- Array.isArray(ge.datasetKeys) ? ge.datasetKeys : typeof ge.datasetKey == "string" && ge.datasetKey.trim().length > 0 ? [ge.datasetKey] : []
1909
+ ve.add(E);
1910
+ const re = new Set(
1911
+ Array.isArray(pe.datasetKeys) ? pe.datasetKeys : typeof pe.datasetKey == "string" && pe.datasetKey.trim().length > 0 ? [pe.datasetKey] : []
1912
1912
  );
1913
- typeof C.datasetKey == "string" && C.datasetKey.trim().length > 0 && ae.add(C.datasetKey), h[ue] = {
1914
- ...ge,
1915
- datasetIndexes: Array.from(re).sort((pe, Ce) => pe - Ce),
1916
- datasetKeys: Array.from(ae),
1917
- hidden: ge.hidden === !0 && C.hidden === !0
1913
+ typeof C.datasetKey == "string" && C.datasetKey.trim().length > 0 && re.add(C.datasetKey), h[Q] = {
1914
+ ...pe,
1915
+ datasetIndexes: Array.from(ve).sort((he, Ce) => he - Ce),
1916
+ datasetKeys: Array.from(re),
1917
+ hidden: pe.hidden === !0 && C.hidden === !0
1918
1918
  };
1919
1919
  }
1920
1920
  return h;
1921
1921
  }
1922
- function ft(l) {
1923
- var E, ue, ge, re, ae, pe;
1922
+ function dt(l) {
1923
+ var U, Q, pe, ve, re, he;
1924
1924
  const m = l == null ? void 0 : l.legend;
1925
1925
  if (typeof (m == null ? void 0 : m.buildLabels) == "function")
1926
1926
  try {
@@ -1930,122 +1930,122 @@ const mr = {
1930
1930
  const h = Xe(m == null ? void 0 : m.legendItems);
1931
1931
  if (h.length > 0)
1932
1932
  return h;
1933
- const C = (ue = (E = l == null ? void 0 : l.options) == null ? void 0 : E.plugins) == null ? void 0 : ue.legend, V = C == null ? void 0 : C.labels, X = V == null ? void 0 : V.generateLabels, Z = (pe = (ae = (re = (ge = vn.defaults) == null ? void 0 : ge.plugins) == null ? void 0 : re.legend) == null ? void 0 : ae.labels) == null ? void 0 : pe.generateLabels;
1934
- let te = Xe(
1935
- typeof X == "function" ? X(l) : []
1933
+ const C = (Q = (U = l == null ? void 0 : l.options) == null ? void 0 : U.plugins) == null ? void 0 : Q.legend, V = C == null ? void 0 : C.labels, E = V == null ? void 0 : V.generateLabels, Z = (he = (re = (ve = (pe = vn.defaults) == null ? void 0 : pe.plugins) == null ? void 0 : ve.legend) == null ? void 0 : re.labels) == null ? void 0 : he.generateLabels;
1934
+ let ee = Xe(
1935
+ typeof E == "function" ? E(l) : []
1936
1936
  );
1937
- return te.length === 0 && typeof Z == "function" && (te = Xe(Z(l))), typeof (V == null ? void 0 : V.filter) == "function" && (te = te.filter((Ce) => V.filter(Ce, l.data))), typeof (V == null ? void 0 : V.sort) == "function" && (te = [...te].sort((Ce, Me) => V.sort(Ce, Me, l.data))), (C == null ? void 0 : C.reverse) === !0 && (te = [...te].reverse()), te;
1937
+ return ee.length === 0 && typeof Z == "function" && (ee = Xe(Z(l))), typeof (V == null ? void 0 : V.filter) == "function" && (ee = ee.filter((Ce) => V.filter(Ce, l.data))), typeof (V == null ? void 0 : V.sort) == "function" && (ee = [...ee].sort((Ce, we) => V.sort(Ce, we, l.data))), (C == null ? void 0 : C.reverse) === !0 && (ee = [...ee].reverse()), ee;
1938
1938
  }
1939
- function ht(l) {
1939
+ function ft(l) {
1940
1940
  var h;
1941
1941
  return (Array.isArray((h = l == null ? void 0 : l.data) == null ? void 0 : h.datasets) ? l.data.datasets : []).map((C, V) => {
1942
- const X = Se((C == null ? void 0 : C.borderColor) ?? (C == null ? void 0 : C.backgroundColor)), Z = Ct({
1942
+ const E = _e((C == null ? void 0 : C.borderColor) ?? (C == null ? void 0 : C.backgroundColor)), Z = bt({
1943
1943
  datasetIndex: V,
1944
1944
  label: C == null ? void 0 : C.label
1945
1945
  });
1946
1946
  return {
1947
1947
  text: tt.value(C == null ? void 0 : C.label, C),
1948
- fillStyle: X,
1949
- strokeStyle: X,
1948
+ fillStyle: E,
1949
+ strokeStyle: E,
1950
1950
  datasetIndex: V,
1951
1951
  datasetKey: Z,
1952
1952
  hidden: Array.isArray(t.hiddenDatasetKeys) ? t.hiddenDatasetKeys.includes(Z) : typeof l.isDatasetVisible == "function" ? !l.isDatasetVisible(V) : !1
1953
1953
  };
1954
1954
  });
1955
1955
  }
1956
- const mt = x(() => `(${r("report.widget.legend.comparison")})`), tt = x(
1956
+ const ht = x(() => `(${r("report.widget.legend.comparison")})`), tt = x(
1957
1957
  () => (l, m) => {
1958
1958
  const h = l == null ? "" : String(l).trim();
1959
1959
  if (h.length === 0) return h;
1960
- const C = mt.value;
1960
+ const C = ht.value;
1961
1961
  return h.endsWith(` ${C}`) || h.endsWith(C) ? h : (m == null ? void 0 : m.dash) === !0 || (m == null ? void 0 : m.isCompare) === !0 ? `${h} ${C}` : h;
1962
1962
  }
1963
1963
  );
1964
1964
  function nt(l, m) {
1965
1965
  if (!Array.isArray(l) || l.length === 0)
1966
1966
  return [];
1967
- const h = l, C = h[0], V = Array.isArray(C == null ? void 0 : C.labels) ? C.labels : [], X = Array.isArray(m == null ? void 0 : m.metrics) ? m.metrics : [], Z = V.length > 0 ? V : X, te = C == null ? void 0 : C.backgroundColor;
1968
- return h.length === 1 && Array.isArray(te) && te.length > 1 ? te.map((E, ue) => ({
1969
- text: Z[ue] == null || String(Z[ue]).trim().length === 0 ? `Series ${ue + 1}` : String(Z[ue]),
1970
- fillStyle: Se(E),
1971
- strokeStyle: Se(E),
1967
+ const h = l, C = h[0], V = Array.isArray(C == null ? void 0 : C.labels) ? C.labels : [], E = Array.isArray(m == null ? void 0 : m.metrics) ? m.metrics : [], Z = V.length > 0 ? V : E, ee = C == null ? void 0 : C.backgroundColor;
1968
+ return h.length === 1 && Array.isArray(ee) && ee.length > 1 ? ee.map((U, Q) => ({
1969
+ text: Z[Q] == null || String(Z[Q]).trim().length === 0 ? `Series ${Q + 1}` : String(Z[Q]),
1970
+ fillStyle: _e(U),
1971
+ strokeStyle: _e(U),
1972
1972
  datasetIndex: 0,
1973
- index: ue,
1974
- hidden: Ke(ue)
1975
- })) : h.map((E, ue) => ({
1976
- datasetKey: Ct({
1977
- datasetIndex: ue,
1978
- label: E == null ? void 0 : E.label
1973
+ index: Q,
1974
+ hidden: Ke(Q)
1975
+ })) : h.map((U, Q) => ({
1976
+ datasetKey: bt({
1977
+ datasetIndex: Q,
1978
+ label: U == null ? void 0 : U.label
1979
1979
  }),
1980
- text: tt.value(E == null ? void 0 : E.label, E),
1981
- fillStyle: Se(
1982
- (E == null ? void 0 : E.color) ?? (E == null ? void 0 : E.borderColor) ?? (E == null ? void 0 : E.backgroundColor) ?? (E == null ? void 0 : E.pointBackgroundColor)
1980
+ text: tt.value(U == null ? void 0 : U.label, U),
1981
+ fillStyle: _e(
1982
+ (U == null ? void 0 : U.color) ?? (U == null ? void 0 : U.borderColor) ?? (U == null ? void 0 : U.backgroundColor) ?? (U == null ? void 0 : U.pointBackgroundColor)
1983
1983
  ),
1984
- strokeStyle: Se(
1985
- (E == null ? void 0 : E.color) ?? (E == null ? void 0 : E.borderColor) ?? (E == null ? void 0 : E.backgroundColor) ?? (E == null ? void 0 : E.pointBorderColor)
1984
+ strokeStyle: _e(
1985
+ (U == null ? void 0 : U.color) ?? (U == null ? void 0 : U.borderColor) ?? (U == null ? void 0 : U.backgroundColor) ?? (U == null ? void 0 : U.pointBorderColor)
1986
1986
  ),
1987
- datasetIndex: ue,
1987
+ datasetIndex: Q,
1988
1988
  hidden: Array.isArray(t.hiddenDatasetKeys) ? t.hiddenDatasetKeys.includes(
1989
- Ct({
1990
- datasetIndex: ue,
1991
- label: E == null ? void 0 : E.label
1989
+ bt({
1990
+ datasetIndex: Q,
1991
+ label: U == null ? void 0 : U.label
1992
1992
  })
1993
- ) : !!(E != null && E.hidden)
1993
+ ) : !!(U != null && U.hidden)
1994
1994
  }));
1995
1995
  }
1996
- function pt() {
1996
+ function mt() {
1997
1997
  var m;
1998
1998
  const l = (m = t.chartRef) == null ? void 0 : m.datasets;
1999
1999
  return Array.isArray(l) ? l : [];
2000
2000
  }
2001
- function $e(l, m) {
2001
+ function Ne(l, m) {
2002
2002
  return typeof l.datasetKey == "string" && l.datasetKey.trim().length > 0 ? `dataset-key:${l.datasetKey}` : typeof l.datasetIndex == "number" && typeof l.index == "number" ? `dataset:${l.datasetIndex}-item:${l.index}` : typeof l.datasetIndex == "number" ? `dataset:${l.datasetIndex}` : typeof l.index == "number" ? `item:${l.index}` : typeof l.text == "string" && l.text.trim().length > 0 ? `text:${l.text.trim()}` : `fallback:${m}`;
2003
2003
  }
2004
2004
  function ot() {
2005
2005
  const l = p.value;
2006
2006
  return l ? Math.ceil(l.getBoundingClientRect().width) : 0;
2007
2007
  }
2008
- function Ut() {
2008
+ function Kt() {
2009
2009
  const l = p.value;
2010
2010
  return l ? Math.ceil(l.getBoundingClientRect().height) : 0;
2011
2011
  }
2012
- function Kt(l, m) {
2013
- var re;
2012
+ function Xt(l, m) {
2013
+ var ve;
2014
2014
  const h = y.value;
2015
2015
  if (!h || l.length === 0)
2016
2016
  return 0;
2017
- const C = Math.max(0, m - to), V = window.getComputedStyle(h);
2017
+ const C = Math.max(0, m - Qn), V = window.getComputedStyle(h);
2018
2018
  if (V.flexDirection.startsWith("column")) {
2019
- const ae = Number.parseFloat(V.rowGap || V.gap || "0") || 0, pe = Ut();
2020
- let Ce = 0, Me = 0;
2021
- for (let He = 0; He < l.length; He += 1) {
2022
- const Pe = l[He];
2023
- if (!Pe)
2019
+ const re = Number.parseFloat(V.rowGap || V.gap || "0") || 0, he = Kt();
2020
+ let Ce = 0, we = 0;
2021
+ for (let We = 0; We < l.length; We += 1) {
2022
+ const Oe = l[We];
2023
+ if (!Oe)
2024
2024
  continue;
2025
- const at = Ce + (Me > 0 ? ae : 0) + Pe.offsetHeight, We = l.length - (He + 1) > 0 ? ae + pe : 0;
2026
- if (at + We > C)
2025
+ const ze = Ce + (we > 0 ? re : 0) + Oe.offsetHeight, at = l.length - (We + 1) > 0 ? re + he : 0;
2026
+ if (ze + at > C)
2027
2027
  break;
2028
- Ce = at, Me += 1;
2028
+ Ce = ze, we += 1;
2029
2029
  }
2030
- return Me > 0 ? Me : 1;
2030
+ return we > 0 ? we : 1;
2031
2031
  }
2032
- const Z = ((re = l[0]) == null ? void 0 : re.offsetTop) ?? 0, te = l.filter(
2033
- (ae) => ae.offsetTop - Z + ae.offsetHeight <= C
2032
+ const Z = ((ve = l[0]) == null ? void 0 : ve.offsetTop) ?? 0, ee = l.filter(
2033
+ (re) => re.offsetTop - Z + re.offsetHeight <= C
2034
2034
  );
2035
- if (te.length === 0)
2035
+ if (ee.length === 0)
2036
2036
  return 0;
2037
- if (te.length >= l.length)
2038
- return te.length;
2039
- const E = ot();
2040
- if (E <= 0)
2041
- return Math.max(1, te.length - 1);
2042
- const ue = Number.parseFloat(V.columnGap || V.gap || "0") || 0, ge = h.clientWidth;
2043
- for (let ae = te.length; ae > 0; ae -= 1) {
2044
- const pe = te.slice(0, ae), Ce = pe[pe.length - 1];
2037
+ if (ee.length >= l.length)
2038
+ return ee.length;
2039
+ const U = ot();
2040
+ if (U <= 0)
2041
+ return Math.max(1, ee.length - 1);
2042
+ const Q = Number.parseFloat(V.columnGap || V.gap || "0") || 0, pe = h.clientWidth;
2043
+ for (let re = ee.length; re > 0; re -= 1) {
2044
+ const he = ee.slice(0, re), Ce = he[he.length - 1];
2045
2045
  if (!Ce)
2046
2046
  continue;
2047
- if (Ce.offsetLeft + Ce.offsetWidth + ue + E <= ge)
2048
- return ae;
2047
+ if (Ce.offsetLeft + Ce.offsetWidth + Q + U <= pe)
2048
+ return re;
2049
2049
  }
2050
2050
  return 1;
2051
2051
  }
@@ -2062,19 +2062,19 @@ const mr = {
2062
2062
  v.value = !1, R.value = 0, c.value = 0, z(), b();
2063
2063
  return;
2064
2064
  }
2065
- const h = Array.from(new Set(m.map((ae) => ae.offsetTop))).sort((ae, pe) => ae - pe), C = !d.value && s.value.length > m.length, V = !d.value && !C, X = V || R.value <= 0 ? ie() : R.value;
2066
- if ((V || R.value <= 0) && (R.value = X), C) {
2067
- const ae = ie();
2068
- if (ae > 0 && (R.value = ae), window.getComputedStyle(l).flexDirection.startsWith("column") && c.value < s.value.length) {
2069
- const Me = Math.max(0, R.value - to), He = l.scrollHeight;
2070
- if (He + 1 < Me) {
2071
- const Pe = m.map((Be) => Be.offsetHeight).filter((Be) => Number.isFinite(Be) && Be > 0), at = Pe.length > 0 ? Pe.reduce((Be, We) => Be + We, 0) / Pe.length : 0;
2072
- if (at > 0) {
2073
- const Be = window.getComputedStyle(l), We = Number.parseFloat(Be.rowGap || Be.gap || "0") || 0, qt = Math.max(1, at + We), un = Me - He, Gt = Math.floor(un / qt);
2074
- if (Gt > 0) {
2065
+ const h = Array.from(new Set(m.map((re) => re.offsetTop))).sort((re, he) => re - he), C = !d.value && s.value.length > m.length, V = !d.value && !C, E = V || R.value <= 0 ? ie() : R.value;
2066
+ if ((V || R.value <= 0) && (R.value = E), C) {
2067
+ const re = ie();
2068
+ if (re > 0 && (R.value = re), window.getComputedStyle(l).flexDirection.startsWith("column") && c.value < s.value.length) {
2069
+ const we = Math.max(0, R.value - Qn), We = l.scrollHeight;
2070
+ if (We + 1 < we) {
2071
+ const Oe = m.map((Me) => Me.offsetHeight).filter((Me) => Number.isFinite(Me) && Me > 0), ze = Oe.length > 0 ? Oe.reduce((Me, at) => Me + at, 0) / Oe.length : 0;
2072
+ if (ze > 0) {
2073
+ const Me = window.getComputedStyle(l), at = Number.parseFloat(Me.rowGap || Me.gap || "0") || 0, sn = Math.max(1, ze + at), un = we - We, At = Math.floor(un / sn);
2074
+ if (At > 0) {
2075
2075
  c.value = Math.min(
2076
2076
  s.value.length,
2077
- c.value + Gt
2077
+ c.value + At
2078
2078
  ), Ye();
2079
2079
  return;
2080
2080
  }
@@ -2084,11 +2084,11 @@ const mr = {
2084
2084
  v.value = !0, z(), b();
2085
2085
  return;
2086
2086
  }
2087
- const Z = h[0] ?? 0, te = h[h.length - 1] ?? Z, E = m.filter((ae) => ae.offsetTop === te), ue = Math.max(...E.map((ae) => ae.offsetHeight), 0), ge = Math.max(0, te - Z + ue), re = Kt(m, X);
2088
- (V || c.value <= 0) && (c.value = Math.max(0, re)), v.value = ge > X, z(), b();
2087
+ const Z = h[0] ?? 0, ee = h[h.length - 1] ?? Z, U = m.filter((re) => re.offsetTop === ee), Q = Math.max(...U.map((re) => re.offsetHeight), 0), pe = Math.max(0, ee - Z + Q), ve = Xt(m, E);
2088
+ (V || c.value <= 0) && (c.value = Math.max(0, ve)), v.value = pe > E, z(), b();
2089
2089
  }
2090
2090
  function Ye() {
2091
- ut(() => {
2091
+ it(() => {
2092
2092
  Pt(), window.requestAnimationFrame(() => {
2093
2093
  Pt(), _(), b();
2094
2094
  });
@@ -2142,21 +2142,21 @@ const mr = {
2142
2142
  return;
2143
2143
  }
2144
2144
  try {
2145
- s.value = ft(l);
2145
+ s.value = dt(l);
2146
2146
  } catch {
2147
2147
  s.value = [];
2148
2148
  }
2149
2149
  const m = Array.isArray((C = l == null ? void 0 : l.data) == null ? void 0 : C.datasets) ? l.data.datasets : [];
2150
- s.value.length === 0 && (s.value = nt(t.legendUpdateKey, t.chartRef)), s.value.length === 0 && (s.value = ht(l)), s.value = Dt(et(s.value));
2150
+ s.value.length === 0 && (s.value = nt(t.legendUpdateKey, t.chartRef)), s.value.length === 0 && (s.value = ft(l)), s.value = Dt(et(s.value));
2151
2151
  const h = Array.isArray(t.legendUpdateKey) && t.legendUpdateKey.length > 0 || !Array.isArray(t.legendUpdateKey) && !!t.legendUpdateKey;
2152
- s.value.length === 0 && !(m.length > 0 || h) && U(0), Ye();
2152
+ s.value.length === 0 && !(m.length > 0 || h) && K(0), Ye();
2153
2153
  }
2154
- function Xt(l) {
2154
+ function Yt(l) {
2155
2155
  return Array.isArray(l.datasetIndexes) && l.datasetIndexes.length > 0 ? l.datasetIndexes.filter((m) => Number.isInteger(m)) : typeof l.datasetIndex == "number" ? [l.datasetIndex] : [];
2156
2156
  }
2157
- function _e(l, m) {
2157
+ function ke(l, m) {
2158
2158
  return Array.isArray(l.datasetKeys) && l.datasetKeys.length > 0 ? l.datasetKeys.filter((h) => typeof h == "string" && h.trim().length > 0) : typeof l.datasetKey == "string" && l.datasetKey.trim().length > 0 ? [l.datasetKey] : m.map(
2159
- (h) => Ct({
2159
+ (h) => bt({
2160
2160
  datasetIndex: h,
2161
2161
  label: l.text
2162
2162
  })
@@ -2170,13 +2170,13 @@ const mr = {
2170
2170
  } : h
2171
2171
  );
2172
2172
  }
2173
- function rn(l, m, h) {
2173
+ function an(l, m, h) {
2174
2174
  var V;
2175
2175
  typeof l.setDatasetVisibility == "function" ? l.setDatasetVisibility(m, h) : h && typeof l.show == "function" ? l.show(m) : !h && typeof l.hide == "function" && l.hide(m);
2176
2176
  const C = Array.isArray((V = l == null ? void 0 : l.data) == null ? void 0 : V.datasets) ? l.data.datasets[m] : null;
2177
2177
  C && typeof C == "object" && (C.hidden = !h);
2178
2178
  }
2179
- function ln(l, m) {
2179
+ function rn(l, m) {
2180
2180
  var Z;
2181
2181
  if (typeof l.toggleDataVisibility == "function") {
2182
2182
  l.toggleDataVisibility(m);
@@ -2185,86 +2185,86 @@ const mr = {
2185
2185
  const h = Array.isArray((Z = l == null ? void 0 : l.data) == null ? void 0 : Z.datasets) ? l.data.datasets[0] : null, C = Array.isArray(h == null ? void 0 : h.data) ? h.data : [];
2186
2186
  if (m < 0 || m >= C.length)
2187
2187
  return;
2188
- const V = typeof l.getDatasetMeta == "function" ? l.getDatasetMeta(0) : null, X = Array.isArray(V == null ? void 0 : V.data) ? V.data[m] : null;
2189
- X && typeof X.hidden == "boolean" && (X.hidden = !X.hidden);
2188
+ const V = typeof l.getDatasetMeta == "function" ? l.getDatasetMeta(0) : null, E = Array.isArray(V == null ? void 0 : V.data) ? V.data[m] : null;
2189
+ E && typeof E.hidden == "boolean" && (E.hidden = !E.hidden);
2190
2190
  }
2191
- function Yt(l = 0) {
2191
+ function qt(l = 0) {
2192
2192
  Ge();
2193
2193
  const m = Y(), h = s.value.length > 0;
2194
- if (m || h || l >= Mr) {
2194
+ if (m || h || l >= Pr) {
2195
2195
  j();
2196
2196
  return;
2197
2197
  }
2198
2198
  j(), L = window.setTimeout(() => {
2199
- Yt(l + 1);
2200
- }, Ir);
2199
+ qt(l + 1);
2200
+ }, Dr);
2201
2201
  }
2202
- function gt(l, m) {
2203
- var ge;
2204
- const h = Y(), C = String(((ge = h == null ? void 0 : h.config) == null ? void 0 : ge.type) ?? ""), V = C === "pie" || C === "doughnut" || C === "polarArea", X = typeof l.index == "number" ? l.index : typeof m == "number" ? m : null;
2205
- if ((V || typeof l.index == "number") && typeof X == "number") {
2202
+ function pt(l, m) {
2203
+ var pe;
2204
+ const h = Y(), C = String(((pe = h == null ? void 0 : h.config) == null ? void 0 : pe.type) ?? ""), V = C === "pie" || C === "doughnut" || C === "polarArea", E = typeof l.index == "number" ? l.index : typeof m == "number" ? m : null;
2205
+ if ((V || typeof l.index == "number") && typeof E == "number") {
2206
2206
  if (Array.isArray(t.hiddenDataPointIndexes)) {
2207
- o("toggleDataPointVisibility", { itemIndex: X });
2207
+ o("toggleDataPointVisibility", { itemIndex: E });
2208
2208
  return;
2209
2209
  }
2210
- h && (ln(h, X), h.update());
2211
- const re = h && typeof h.getDataVisibility == "function" ? !h.getDataVisibility(X) : l.hidden !== !0;
2210
+ h && (rn(h, E), h.update());
2211
+ const ve = h && typeof h.getDataVisibility == "function" ? !h.getDataVisibility(E) : l.hidden !== !0;
2212
2212
  Bt(
2213
- (ae) => typeof ae.index == "number" ? ae.index === X : ae.datasetIndex === l.datasetIndex && ae.text === l.text,
2214
- re
2213
+ (re) => typeof re.index == "number" ? re.index === E : re.datasetIndex === l.datasetIndex && re.text === l.text,
2214
+ ve
2215
2215
  );
2216
2216
  return;
2217
2217
  }
2218
- const te = Xt(l), E = _e(l, te);
2219
- if (Array.isArray(t.hiddenDatasetKeys) && te.length > 0) {
2220
- te.forEach((re, ae) => {
2218
+ const ee = Yt(l), U = ke(l, ee);
2219
+ if (Array.isArray(t.hiddenDatasetKeys) && ee.length > 0) {
2220
+ ee.forEach((ve, re) => {
2221
2221
  o("toggleDatasetVisibility", {
2222
- datasetIndex: re,
2223
- datasetKey: E[ae] ?? Ct({
2224
- datasetIndex: re,
2222
+ datasetIndex: ve,
2223
+ datasetKey: U[re] ?? bt({
2224
+ datasetIndex: ve,
2225
2225
  label: l.text
2226
2226
  })
2227
2227
  });
2228
2228
  });
2229
2229
  return;
2230
2230
  }
2231
- const ue = pt();
2231
+ const Q = mt();
2232
2232
  if (!h) {
2233
- if (te.length > 0) {
2234
- const re = l.hidden !== !0;
2235
- te.forEach((ae) => {
2236
- const pe = ue[ae];
2237
- pe && typeof pe == "object" && (pe.hidden = re);
2233
+ if (ee.length > 0) {
2234
+ const ve = l.hidden !== !0;
2235
+ ee.forEach((re) => {
2236
+ const he = Q[re];
2237
+ he && typeof he == "object" && (he.hidden = ve);
2238
2238
  }), Bt(
2239
- (ae) => $e(ae, 0) === $e(l, 0),
2240
- re
2239
+ (re) => Ne(re, 0) === Ne(l, 0),
2240
+ ve
2241
2241
  );
2242
2242
  }
2243
2243
  return;
2244
2244
  }
2245
- if (te.length > 0) {
2246
- const ae = !te.every(
2247
- (pe) => typeof h.isDatasetVisible == "function" ? h.isDatasetVisible(pe) : l.hidden !== !0
2245
+ if (ee.length > 0) {
2246
+ const re = !ee.every(
2247
+ (he) => typeof h.isDatasetVisible == "function" ? h.isDatasetVisible(he) : l.hidden !== !0
2248
2248
  );
2249
- te.forEach((pe) => {
2250
- rn(h, pe, ae);
2251
- const Ce = ue[pe];
2252
- Ce && typeof Ce == "object" && (Ce.hidden = !ae);
2249
+ ee.forEach((he) => {
2250
+ an(h, he, re);
2251
+ const Ce = Q[he];
2252
+ Ce && typeof Ce == "object" && (Ce.hidden = !re);
2253
2253
  }), h.update(), Bt(
2254
- (pe) => $e(pe, 0) === $e(l, 0),
2255
- !ae
2254
+ (he) => Ne(he, 0) === Ne(l, 0),
2255
+ !re
2256
2256
  );
2257
2257
  }
2258
2258
  }
2259
2259
  function je() {
2260
2260
  d.value = !0, Ye();
2261
2261
  }
2262
- function sn() {
2262
+ function ln() {
2263
2263
  d.value = !1, y.value && (y.value.scrollTop = 0), Ye();
2264
2264
  }
2265
- return ct(() => {
2266
- Yt(), window.addEventListener("mousemove", q), window.addEventListener("mouseup", $);
2267
- }), De(
2265
+ return ut(() => {
2266
+ qt(), window.addEventListener("mousemove", q), window.addEventListener("mouseup", $);
2267
+ }), Pe(
2268
2268
  () => [
2269
2269
  t.enabled,
2270
2270
  t.legendUpdateKey,
@@ -2275,115 +2275,115 @@ const mr = {
2275
2275
  () => {
2276
2276
  Ge();
2277
2277
  }
2278
- ), lo(() => {
2278
+ ), ao(() => {
2279
2279
  g.value = !1, j(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", $);
2280
- }), (l, m) => D.value ? (J(), ce("div", {
2280
+ }), (l, m) => D.value ? (J(), ue("div", {
2281
2281
  key: 0,
2282
2282
  ref_key: "legendPanelRef",
2283
2283
  ref: W,
2284
- class: Le(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
2284
+ class: De(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
2285
2285
  "self-stretch h-full pt-2": f.value,
2286
2286
  "mb-2": !f.value && l.position === "top",
2287
2287
  "mt-2": !f.value && l.position === "bottom"
2288
2288
  }]),
2289
- style: Te(It.value)
2289
+ style: Le(It.value)
2290
2290
  }, [
2291
- ee("div", {
2291
+ ne("div", {
2292
2292
  ref_key: "legendScrollShellRef",
2293
2293
  ref: H,
2294
2294
  class: "relative z-[2] flex flex-1 min-h-0 flex-col overflow-hidden"
2295
2295
  }, [
2296
- ee("div", {
2296
+ ne("div", {
2297
2297
  ref_key: "legendToggleMeasureRef",
2298
2298
  ref: p,
2299
2299
  class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
2300
2300
  }, [
2301
- ee("button", kr, Ae(a(r)("report.widget.legend.viewMore")), 1)
2301
+ ne("button", Sr, Be(a(r)("report.widget.legend.viewMore")), 1)
2302
2302
  ], 512),
2303
- ee("ul", {
2303
+ ne("ul", {
2304
2304
  ref_key: "legendListRef",
2305
2305
  ref: y,
2306
- class: Le(["chart-legend-list m-0 flex list-none p-0", [
2306
+ class: De(["chart-legend-list m-0 flex list-none p-0", [
2307
2307
  f.value ? "flex-row flex-wrap justify-start gap-x-3 gap-y-2 pt-1" : "flex-wrap justify-center gap-x-2 gap-y-1 pt-1"
2308
2308
  ]]),
2309
- style: Te(qe.value),
2309
+ style: Le(qe.value),
2310
2310
  onScroll: O
2311
2311
  }, [
2312
- (J(!0), ce(ze, null, Nt(Mt.value, (h, C) => (J(), ce("li", {
2313
- key: $e(h, C),
2314
- class: Le(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2312
+ (J(!0), ue(Ve, null, $t(Mt.value, (h, C) => (J(), ue("li", {
2313
+ key: Ne(h, C),
2314
+ class: De(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2315
2315
  "opacity-45": h.hidden
2316
2316
  }]),
2317
2317
  "data-legend-data": "true"
2318
2318
  }, [
2319
- ee("button", {
2319
+ ne("button", {
2320
2320
  type: "button",
2321
- class: Le(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": f.value }]),
2321
+ class: De(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": f.value }]),
2322
2322
  "aria-pressed": h.hidden === !0 ? "false" : "true",
2323
- onClick: Qt((V) => gt(h, C), ["stop"])
2323
+ onClick: Zt((V) => pt(h, C), ["stop"])
2324
2324
  }, [
2325
- t.usePointStyle !== !1 ? (J(), ce("span", {
2325
+ t.usePointStyle !== !1 ? (J(), ue("span", {
2326
2326
  key: 0,
2327
2327
  class: "h-5 w-5 shrink-0 rounded-full",
2328
- style: Te({ backgroundColor: we(h, C) })
2329
- }, null, 4)) : (J(), ce("span", {
2328
+ style: Le({ backgroundColor: Se(h, C) })
2329
+ }, null, 4)) : (J(), ue("span", {
2330
2330
  key: 1,
2331
2331
  class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
2332
- style: Te({
2333
- backgroundColor: we(h, C),
2332
+ style: Le({
2333
+ backgroundColor: Se(h, C),
2334
2334
  borderColor: "#c7c7cc"
2335
2335
  })
2336
2336
  }, null, 4)),
2337
- ee("span", {
2338
- class: Le(["chart-legend-text leading-[1.4]", {
2337
+ ne("span", {
2338
+ class: De(["chart-legend-text leading-[1.4]", {
2339
2339
  "max-w-[120px] whitespace-nowrap overflow-hidden text-left": f.value,
2340
2340
  "whitespace-nowrap overflow-hidden": !f.value,
2341
2341
  "line-through": h.hidden
2342
2342
  }]),
2343
2343
  title: h.text ?? ""
2344
- }, Ae(h.text), 11, Lr)
2345
- ], 10, Tr)
2344
+ }, Be(h.text), 11, kr)
2345
+ ], 10, _r)
2346
2346
  ], 2))), 128)),
2347
- v.value ? (J(), ce("li", Dr, [
2348
- ee("button", {
2347
+ v.value ? (J(), ue("li", Tr, [
2348
+ ne("button", {
2349
2349
  type: "button",
2350
2350
  class: "inline-flex max-w-full cursor-pointer select-none underline items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4] transition-colors hover:bg-black/5",
2351
2351
  style: { fontSize: "var(--legend-font-size)" },
2352
- onClick: m[0] || (m[0] = Qt((h) => d.value ? sn() : je(), ["stop"]))
2353
- }, Ae(d.value ? a(r)("report.widget.legend.viewLess") : a(r)("report.widget.legend.viewMore")), 1)
2354
- ])) : ve("", !0)
2352
+ onClick: m[0] || (m[0] = Zt((h) => d.value ? ln() : je(), ["stop"]))
2353
+ }, Be(d.value ? a(r)("report.widget.legend.viewLess") : a(r)("report.widget.legend.viewMore")), 1)
2354
+ ])) : ge("", !0)
2355
2355
  ], 38),
2356
- A.value ? (J(), ce("div", {
2356
+ A.value ? (J(), ue("div", {
2357
2357
  key: 0,
2358
2358
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2359
2359
  onMousedown: N
2360
2360
  }, [
2361
- ee("div", {
2361
+ ne("div", {
2362
2362
  class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
2363
- style: Te(u.value),
2364
- onMousedown: Qt(K, ["stop"])
2363
+ style: Le(u.value),
2364
+ onMousedown: Zt(X, ["stop"])
2365
2365
  }, null, 36)
2366
- ], 32)) : ve("", !0)
2366
+ ], 32)) : ge("", !0)
2367
2367
  ], 512)
2368
- ], 6)) : ve("", !0);
2368
+ ], 6)) : ge("", !0);
2369
2369
  }
2370
- }), Fe = /* @__PURE__ */ ho(Br, [["__scopeId", "data-v-a258ca90"]]);
2371
- function Ar(e, n) {
2372
- const { t } = dt(), { breakpoints: o } = Vt(), r = P(!1), i = P(null), s = P(null);
2370
+ }), Re = /* @__PURE__ */ fo(Ir, [["__scopeId", "data-v-a258ca90"]]);
2371
+ function Mr(e, n) {
2372
+ const { t } = ct(), { breakpoints: o } = zt(), r = P(!1), i = P(null), s = P(null);
2373
2373
  function c() {
2374
- return To(e.value) ?? s.value;
2374
+ return ko(e.value) ?? s.value;
2375
2375
  }
2376
2376
  function d(y) {
2377
- r.value = y, !y && (i.value = null, tn(c()), s.value = null);
2377
+ r.value = y, !y && (i.value = null, en(c()), s.value = null);
2378
2378
  }
2379
2379
  function v(y, p) {
2380
2380
  i.value = y, s.value = p ?? c(), r.value = !0;
2381
2381
  }
2382
2382
  function R(y) {
2383
- tn(c(), y.focusTarget);
2383
+ en(c(), y.focusTarget);
2384
2384
  }
2385
2385
  function W() {
2386
- tn(c());
2386
+ en(c());
2387
2387
  }
2388
2388
  const H = x(() => ({
2389
2389
  viewFullDetailsLabel: o.value.xs || o.value.sm ? t("report.widget.comparisonTooltip.doubleClickViewBreakdown") : t("report.widget.comparisonTooltip.viewBreakdown"),
@@ -2399,10 +2399,10 @@ function Ar(e, n) {
2399
2399
  handleTooltipDetailsLeave: W
2400
2400
  };
2401
2401
  }
2402
- function Rr(e) {
2402
+ function Br(e) {
2403
2403
  const n = P([]), t = x(() => new Set(n.value));
2404
2404
  function o(s, c) {
2405
- return Ct({
2405
+ return bt({
2406
2406
  datasetIndex: c,
2407
2407
  label: s == null ? void 0 : s.label
2408
2408
  });
@@ -2418,7 +2418,7 @@ function Rr(e) {
2418
2418
  }
2419
2419
  n.value = [...n.value, d];
2420
2420
  }
2421
- return De(
2421
+ return Pe(
2422
2422
  e,
2423
2423
  (s) => {
2424
2424
  const c = new Set(
@@ -2433,20 +2433,20 @@ function Rr(e) {
2433
2433
  toggleDatasetVisibility: i
2434
2434
  };
2435
2435
  }
2436
- function Et({ chartRef: e, model: n, baseDatasets: t, tileIndex: o }) {
2437
- const r = uo(), i = x(() => n.value.maxTooltipItems), {
2436
+ function Ut({ chartRef: e, model: n, baseDatasets: t, tileIndex: o }) {
2437
+ const r = so(), i = x(() => n.value.maxTooltipItems), {
2438
2438
  isTooltipDetailsSheetOpen: s,
2439
2439
  tooltipDetailsPayload: c,
2440
2440
  tooltipOptions: d,
2441
2441
  handleTooltipDetailsSheetVisibility: v,
2442
2442
  handleTooltipDetailsHover: R,
2443
2443
  handleTooltipDetailsLeave: W
2444
- } = Ar(e, {
2444
+ } = Mr(e, {
2445
2445
  maxTooltipItems: i
2446
- }), { datalabels: H, xCfg: y, yCfg: p, isTransposed: k, legend: w, chartWidth: F, chartHeight: g } = Io(
2446
+ }), { datalabels: H, xCfg: y, yCfg: p, isTransposed: k, legend: w, chartWidth: F, chartHeight: g } = Po(
2447
2447
  n.value
2448
2448
  ), S = x(
2449
- () => Po(n.value.isTransposed === !0, d.value)
2449
+ () => Do(n.value.isTransposed === !0, d.value)
2450
2450
  ), B = x(() => {
2451
2451
  const G = w.value.position;
2452
2452
  return !G || G === "top" || G === "bottom" || G === "left" || G === "right";
@@ -2454,20 +2454,20 @@ function Et({ chartRef: e, model: n, baseDatasets: t, tileIndex: o }) {
2454
2454
  () => D.value === "left" || D.value === "right"
2455
2455
  ), L = x(
2456
2456
  () => D.value === "top" || D.value === "left"
2457
- ), { hiddenDatasetKeys: A, isDatasetHidden: u, toggleDatasetVisibility: I } = Rr(t), M = x(() => t.value.map((G, j) => ({
2457
+ ), { hiddenDatasetKeys: A, isDatasetHidden: u, toggleDatasetVisibility: I } = Br(t), M = x(() => t.value.map((G, j) => ({
2458
2458
  ...G,
2459
2459
  hidden: u(G, j)
2460
2460
  })));
2461
- function U() {
2461
+ function K() {
2462
2462
  r.extractChartSize(e.value, o);
2463
2463
  }
2464
- return ct(() => {
2465
- ut(() => {
2466
- U();
2464
+ return ut(() => {
2465
+ it(() => {
2466
+ K();
2467
2467
  });
2468
- }), De([M], () => {
2469
- ut(() => {
2470
- U();
2468
+ }), Pe([M], () => {
2469
+ it(() => {
2470
+ K();
2471
2471
  });
2472
2472
  }), {
2473
2473
  isTooltipDetailsSheetOpen: s,
@@ -2492,7 +2492,7 @@ function Et({ chartRef: e, model: n, baseDatasets: t, tileIndex: o }) {
2492
2492
  datasets: M
2493
2493
  };
2494
2494
  }
2495
- const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)", $r = /* @__PURE__ */ Ne({
2495
+ const Ar = { class: "widget-content" }, Rr = 2, mn = 1, to = "rgba(0, 0, 0, 0)", Fr = /* @__PURE__ */ Fe({
2496
2496
  __name: "WidgetBarchart",
2497
2497
  props: /* @__PURE__ */ Ue({
2498
2498
  tileIndex: {}
@@ -2502,19 +2502,19 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2502
2502
  }),
2503
2503
  emits: ["update:modelValue"],
2504
2504
  setup(e) {
2505
- const n = e, t = Oe(e, "modelValue"), o = P(null), r = x(() => {
2505
+ const n = e, t = He(e, "modelValue"), o = P(null), r = x(() => {
2506
2506
  var b;
2507
2507
  return ((b = t.value.data) == null ? void 0 : b.datasets) ?? [];
2508
2508
  }), i = x(() => {
2509
2509
  var b;
2510
2510
  return ((b = t.value.data) == null ? void 0 : b.xAxis) ?? [];
2511
- }), s = x(() => i.value.length === 1 && r.value.length > 1 && r.value.every((b) => b.values.length === 1 && b.isCompare !== !0)), c = x(() => s.value ? r.value.map((b) => b.name) : i.value), d = x(() => i.value.length === 1 && r.value.some((b) => b.isCompare === !0)), v = Wt("bar");
2511
+ }), s = x(() => i.value.length === 1 && r.value.length > 1 && r.value.every((b) => b.values.length === 1 && b.isCompare !== !0)), c = x(() => s.value ? r.value.map((b) => b.name) : i.value), d = x(() => i.value.length === 1 && r.value.some((b) => b.isCompare === !0)), v = Ot("bar");
2512
2512
  function R(b) {
2513
2513
  return {
2514
2514
  label: `__comparison_gap__${b}`,
2515
2515
  data: [0],
2516
- backgroundColor: oo,
2517
- borderColor: oo,
2516
+ backgroundColor: to,
2517
+ borderColor: to,
2518
2518
  minBarLength: 0,
2519
2519
  barPercentage: mn,
2520
2520
  isSpacer: !0
@@ -2522,10 +2522,10 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2522
2522
  }
2523
2523
  const W = x(() => r.value.length > 0 ? [
2524
2524
  ...r.value.map((b, O) => {
2525
- const N = zt({
2525
+ const N = Ht({
2526
2526
  datasets: r.value,
2527
2527
  datasetIndex: O
2528
- }), K = Ie({
2528
+ }), X = Ie({
2529
2529
  datasetIndex: N,
2530
2530
  isCompare: !1,
2531
2531
  metricCount: t.value.metricCount,
@@ -2540,7 +2540,7 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2540
2540
  s.value && ($ = r.value.map(
2541
2541
  (se, ye) => ye === O ? b.values[0] : NaN
2542
2542
  ));
2543
- const Q = t.value.chartColorBinding === xe.breakdown, oe = _t({
2543
+ const te = t.value.chartColorBinding === xe.breakdown, ae = _t({
2544
2544
  fallbackIndex: N,
2545
2545
  metricCount: t.value.metricCount
2546
2546
  }), le = $.map((se) => se === null ? NaN : Number(se));
@@ -2548,10 +2548,10 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2548
2548
  label: b.name,
2549
2549
  data: le,
2550
2550
  dash: !!b.isCompare,
2551
- minBarLength: Nr,
2551
+ minBarLength: Rr,
2552
2552
  barPercentage: d.value ? mn : void 0,
2553
- backgroundColor: Q ? Lt({
2554
- breakdownIndex: oe,
2553
+ backgroundColor: te ? Lt({
2554
+ breakdownIndex: ae,
2555
2555
  metricIndex: q,
2556
2556
  metricCount: t.value.metricCount,
2557
2557
  isCompare: b.isCompare,
@@ -2559,7 +2559,7 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2559
2559
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
2560
2560
  customColors: t.value.chartColors
2561
2561
  }) : Ze({
2562
- index: K,
2562
+ index: X,
2563
2563
  isCompare: b.isCompare,
2564
2564
  customColors: t.value.chartColors
2565
2565
  })
@@ -2582,11 +2582,11 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2582
2582
  useCustomLegend: u,
2583
2583
  legendPosition: I,
2584
2584
  isLegendSide: M,
2585
- isLegendBeforeChart: U,
2585
+ isLegendBeforeChart: K,
2586
2586
  hiddenDatasetKeys: G,
2587
2587
  toggleDatasetVisibility: j,
2588
2588
  datasets: Y
2589
- } = Et({
2589
+ } = Ut({
2590
2590
  chartRef: o,
2591
2591
  model: t,
2592
2592
  baseDatasets: W,
@@ -2600,36 +2600,36 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2600
2600
  ...O,
2601
2601
  barPercentage: mn
2602
2602
  });
2603
- const K = Y.value[N + 1];
2604
- O.dash === !0 && K && b.push(R(N));
2603
+ const X = Y.value[N + 1];
2604
+ O.dash === !0 && X && b.push(R(N));
2605
2605
  }), b;
2606
2606
  }), _ = x(() => ({
2607
2607
  display: !1,
2608
2608
  labels: {
2609
2609
  filter: (b, O) => {
2610
- var N, K;
2611
- return !((K = (N = O.datasets) == null ? void 0 : N[b.datasetIndex ?? -1]) != null && K.isSpacer);
2610
+ var N, X;
2611
+ return !((X = (N = O.datasets) == null ? void 0 : N[b.datasetIndex ?? -1]) != null && X.isSpacer);
2612
2612
  }
2613
2613
  }
2614
2614
  }));
2615
2615
  return (b, O) => {
2616
- var K, q, $, Q, oe, le;
2617
- const N = fe("FmBarChart");
2618
- return J(), ce(ze, null, [
2619
- ee("div", Fr, [
2616
+ var X, q, $, te, ae, le;
2617
+ const N = de("FmBarChart");
2618
+ return J(), ue(Ve, null, [
2619
+ ne("div", Ar, [
2620
2620
  Qe(b.$slots, "menu"),
2621
- ee("div", {
2622
- class: Le(["chart-layout", {
2621
+ ne("div", {
2622
+ class: De(["chart-layout", {
2623
2623
  "chart-layout--side": a(u) && (a(f).display ?? !1) && a(M)
2624
2624
  }])
2625
2625
  }, [
2626
- a(u) && (a(f).display ?? !1) && a(U) ? (J(), me(Fe, {
2626
+ a(u) && (a(f).display ?? !1) && a(K) ? (J(), me(Re, {
2627
2627
  key: 0,
2628
2628
  "chart-ref": o.value,
2629
2629
  enabled: a(f).display ?? !1,
2630
2630
  position: a(I),
2631
2631
  "max-width": a(f).maxWidth,
2632
- "text-color": (K = a(f).labels) == null ? void 0 : K.color,
2632
+ "text-color": (X = a(f).labels) == null ? void 0 : X.color,
2633
2633
  "font-size": ($ = (q = a(f).labels) == null ? void 0 : q.font) == null ? void 0 : $.size,
2634
2634
  "legend-update-key": a(Y),
2635
2635
  "use-point-style": t.value.usePointStyle ?? !0,
@@ -2640,8 +2640,8 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2640
2640
  "metric-count": t.value.metricCount,
2641
2641
  "hidden-dataset-keys": a(G),
2642
2642
  onToggleDatasetVisibility: a(j)
2643
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0),
2644
- de(N, {
2643
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0),
2644
+ ce(N, {
2645
2645
  ref_key: "chartRef",
2646
2646
  ref: o,
2647
2647
  class: "bar-chart",
@@ -2655,19 +2655,19 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2655
2655
  datalabels: a(g),
2656
2656
  plugins: [a(v)],
2657
2657
  "maintain-aspect-ratio": !1,
2658
- style: Te({
2658
+ style: Le({
2659
2659
  "--chart-width": a(u) && (a(f).display ?? !1) && a(M) ? "calc(100% - var(--legend-panel-width, 0px))" : a(L) !== void 0 ? a(L) + "px" : "100%",
2660
2660
  "--chart-height": a(u) && (a(f).display ?? !1) && !a(M) ? "calc(100% - 36px - var(--legend-panel-height, 0px))" : a(A) !== void 0 ? a(A) + "px" : "100%"
2661
2661
  })
2662
2662
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins", "style"]),
2663
- a(u) && (a(f).display ?? !1) && !a(U) ? (J(), me(Fe, {
2663
+ a(u) && (a(f).display ?? !1) && !a(K) ? (J(), me(Re, {
2664
2664
  key: 1,
2665
2665
  "chart-ref": o.value,
2666
2666
  enabled: a(f).display ?? !1,
2667
2667
  position: a(I),
2668
2668
  "max-width": a(f).maxWidth,
2669
- "text-color": (Q = a(f).labels) == null ? void 0 : Q.color,
2670
- "font-size": (le = (oe = a(f).labels) == null ? void 0 : oe.font) == null ? void 0 : le.size,
2669
+ "text-color": (te = a(f).labels) == null ? void 0 : te.color,
2670
+ "font-size": (le = (ae = a(f).labels) == null ? void 0 : ae.font) == null ? void 0 : le.size,
2671
2671
  "legend-update-key": a(Y),
2672
2672
  "use-point-style": t.value.usePointStyle ?? !0,
2673
2673
  "chart-color-binding": t.value.chartColorBinding,
@@ -2677,10 +2677,10 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2677
2677
  "metric-count": t.value.metricCount,
2678
2678
  "hidden-dataset-keys": a(G),
2679
2679
  onToggleDatasetVisibility: a(j)
2680
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0)
2680
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0)
2681
2681
  ], 2)
2682
2682
  ]),
2683
- de(Ot, {
2683
+ ce(Et, {
2684
2684
  "model-value": a(H),
2685
2685
  "details-payload": a(y),
2686
2686
  "onUpdate:modelValue": a(p),
@@ -2690,7 +2690,7 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2690
2690
  ], 64);
2691
2691
  };
2692
2692
  }
2693
- }), Vr = { class: "widget-content" }, zr = /* @__PURE__ */ Ne({
2693
+ }), Nr = { class: "widget-content" }, $r = /* @__PURE__ */ Fe({
2694
2694
  __name: "WidgetCircular",
2695
2695
  props: /* @__PURE__ */ Ue({
2696
2696
  tileIndex: {}
@@ -2700,7 +2700,7 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2700
2700
  }),
2701
2701
  emits: ["update:modelValue"],
2702
2702
  setup(e) {
2703
- const n = e, t = Oe(e, "modelValue"), { breakpoints: o } = Vt(), r = P(null), i = P([]), { datalabels: s, legend: c, chartWidth: d, chartHeight: v } = Io(t.value), R = x(() => {
2703
+ const n = e, t = He(e, "modelValue"), { breakpoints: o } = zt(), r = P(null), i = P([]), { datalabels: s, legend: c, chartWidth: d, chartHeight: v } = Po(t.value), R = x(() => {
2704
2704
  const u = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((I) => I.name) : [];
2705
2705
  return u.length > 0 ? u : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((I) => String(I)) : [];
2706
2706
  }), W = x(() => {
@@ -2710,28 +2710,28 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2710
2710
  label: R.value[0] ?? (Array.isArray(t.value.data.metrics) && t.value.data.metrics.length > 0 ? String(t.value.data.metrics[0]) : "Series"),
2711
2711
  labels: R.value,
2712
2712
  data: t.value.data.datasets.map(
2713
- (M, U) => i.value.includes(U) ? null : M.value
2713
+ (M, K) => i.value.includes(K) ? null : M.value
2714
2714
  ),
2715
2715
  backgroundColor: t.value.data.datasets.map(
2716
- (M, U) => Ze({ index: U, customColors: t.value.chartColors })
2716
+ (M, K) => Ze({ index: K, customColors: t.value.chartColors })
2717
2717
  )
2718
2718
  }
2719
2719
  ]), u;
2720
- }), H = uo();
2720
+ }), H = so();
2721
2721
  function y() {
2722
2722
  return H.extractChartSize(r.value, n.tileIndex) || { width: 0, height: 0 };
2723
2723
  }
2724
- ct(() => {
2725
- ut(() => {
2724
+ ut(() => {
2725
+ it(() => {
2726
2726
  y();
2727
2727
  });
2728
- }), De([W], () => {
2729
- ut(() => y());
2730
- }), De(
2728
+ }), Pe([W], () => {
2729
+ it(() => y());
2730
+ }), Pe(
2731
2731
  () => t.value.data.datasets,
2732
2732
  (u) => {
2733
2733
  const I = new Set(
2734
- Array.isArray(u) ? u.map((M, U) => U) : []
2734
+ Array.isArray(u) ? u.map((M, K) => K) : []
2735
2735
  );
2736
2736
  i.value = i.value.filter(
2737
2737
  (M) => I.has(M)
@@ -2750,7 +2750,7 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2750
2750
  var I;
2751
2751
  const u = (I = c.value.labels) == null ? void 0 : I.color;
2752
2752
  return typeof u == "string" && u.trim().length > 0 ? u : t.value.legendColor ?? "#6b6b6b";
2753
- }), f = x(() => p.value), L = ga();
2753
+ }), f = x(() => p.value), L = ma();
2754
2754
  function A({ itemIndex: u }) {
2755
2755
  if (i.value.includes(u)) {
2756
2756
  i.value = i.value.filter(
@@ -2761,15 +2761,15 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2761
2761
  i.value = [...i.value, u];
2762
2762
  }
2763
2763
  return (u, I) => {
2764
- const M = fe("FmPieChart");
2765
- return J(), ce("div", Vr, [
2764
+ const M = de("FmPieChart");
2765
+ return J(), ue("div", Nr, [
2766
2766
  Qe(u.$slots, "menu"),
2767
- ee("div", {
2768
- class: Le(["chart-layout", {
2767
+ ne("div", {
2768
+ class: De(["chart-layout", {
2769
2769
  "chart-layout--side": F.value && S.value
2770
2770
  }])
2771
2771
  }, [
2772
- F.value && B.value ? (J(), me(Fe, {
2772
+ F.value && B.value ? (J(), me(Re, {
2773
2773
  key: 0,
2774
2774
  "chart-ref": r.value,
2775
2775
  enabled: w.value,
@@ -2786,8 +2786,8 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2786
2786
  "metric-count": t.value.metricCount,
2787
2787
  "hidden-data-point-indexes": i.value,
2788
2788
  onToggleDataPointVisibility: A
2789
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : ve("", !0),
2790
- de(M, {
2789
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : ge("", !0),
2790
+ ce(M, {
2791
2791
  ref_key: "chartRef",
2792
2792
  ref: r,
2793
2793
  class: "circular",
@@ -2801,12 +2801,12 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2801
2801
  },
2802
2802
  datalabels: a(s),
2803
2803
  "maintain-aspect-ratio": !1,
2804
- style: Te({
2804
+ style: Le({
2805
2805
  "--chart-width": F.value && S.value ? "calc(100% - var(--legend-panel-width, 0px))" : a(d) !== void 0 ? a(d) + "px" : "100%",
2806
2806
  "--chart-height": F.value && !S.value ? "calc(100% - var(--legend-panel-height, 0px))" : a(v) !== void 0 ? a(v) + "px" : "100%"
2807
2807
  })
2808
2808
  }, null, 8, ["datasets", "metrics", "tooltip", "datalabels", "style"]),
2809
- F.value && !B.value ? (J(), me(Fe, {
2809
+ F.value && !B.value ? (J(), me(Re, {
2810
2810
  key: 1,
2811
2811
  "chart-ref": r.value,
2812
2812
  enabled: w.value,
@@ -2823,13 +2823,13 @@ const Fr = { class: "widget-content" }, Nr = 2, mn = 1, oo = "rgba(0, 0, 0, 0)",
2823
2823
  "metric-count": t.value.metricCount,
2824
2824
  "hidden-data-point-indexes": i.value,
2825
2825
  onToggleDataPointVisibility: A
2826
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : ve("", !0)
2826
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : ge("", !0)
2827
2827
  ], 2)
2828
2828
  ]);
2829
2829
  };
2830
2830
  }
2831
2831
  });
2832
- function nn(e) {
2832
+ function tn(e) {
2833
2833
  if (e == null || e === "")
2834
2834
  return "";
2835
2835
  const n = String(e), t = Number(n);
@@ -2837,7 +2837,7 @@ function nn(e) {
2837
2837
  const [o, r] = n.split("."), i = new Intl.NumberFormat("en-US").format(Number(o));
2838
2838
  return r !== void 0 ? `${i}.${r}` : i;
2839
2839
  }
2840
- const Hr = { class: "flex flex-col gap-1" }, Wr = { class: "fm-typo-en-title-md-600" }, Or = { class: "flex gap-2" }, Er = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ur = { key: 0 }, Kr = { key: 1 }, Xr = /* @__PURE__ */ Ne({
2840
+ const Vr = { class: "flex flex-col gap-1" }, zr = { class: "fm-typo-en-title-md-600" }, Hr = { class: "flex gap-2" }, Wr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Or = { key: 0 }, Er = { key: 1 }, Ur = /* @__PURE__ */ Fe({
2841
2841
  __name: "WidgetScorecard",
2842
2842
  props: {
2843
2843
  modelValue: { required: !0 },
@@ -2845,12 +2845,12 @@ const Hr = { class: "flex flex-col gap-1" }, Wr = { class: "fm-typo-en-title-md-
2845
2845
  },
2846
2846
  emits: ["update:modelValue"],
2847
2847
  setup(e) {
2848
- const n = Oe(e, "modelValue"), { t } = dt(), { compareDateRange: o, defaultDateSetting: r } = it(on()), { country: i } = Ln(), s = x(() => {
2848
+ const n = He(e, "modelValue"), { t } = ct(), { compareDateRange: o, defaultDateSetting: r } = xt(nn()), { country: i } = uo(), s = x(() => {
2849
2849
  var p;
2850
2850
  return ((p = n.value.data) == null ? void 0 : p.value) || "";
2851
- }), c = x(() => nn(s.value)), d = x(() => {
2851
+ }), c = x(() => tn(s.value)), d = x(() => {
2852
2852
  const { data: p } = n.value;
2853
- return p != null && p.comparison ? Co(s.value, p.comparison, i) : null;
2853
+ return p != null && p.comparison ? bo(s.value, p.comparison, i) : null;
2854
2854
  });
2855
2855
  function v(p) {
2856
2856
  switch (p) {
@@ -2874,64 +2874,64 @@ const Hr = { class: "flex flex-col gap-1" }, Wr = { class: "fm-typo-en-title-md-
2874
2874
  data: p.values,
2875
2875
  fill: !0,
2876
2876
  color: "#36a2eb"
2877
- }))), y = x(() => Po(!1));
2877
+ }))), y = x(() => Do(!1));
2878
2878
  return (p, k) => {
2879
- const w = fe("FmIcon"), F = fe("FmChip"), g = fe("FmTooltip"), S = fe("FmLineChart");
2880
- return J(), ce("div", Hr, [
2879
+ const w = de("FmIcon"), F = de("FmChip"), g = de("FmTooltip"), S = de("FmLineChart");
2880
+ return J(), ue("div", Vr, [
2881
2881
  Qe(p.$slots, "menu"),
2882
- ee("p", Wr, Ae(c.value), 1),
2883
- ee("div", Or, [
2884
- de(g, {
2882
+ ne("p", zr, Be(c.value), 1),
2883
+ ne("div", Hr, [
2884
+ ce(g, {
2885
2885
  disabled: d.value === null,
2886
2886
  placement: "right",
2887
2887
  "hide-arrow": "",
2888
2888
  variant: "rich"
2889
2889
  }, {
2890
- content: ke(() => {
2890
+ content: Te(() => {
2891
2891
  var B;
2892
2892
  return [
2893
- ee("span", Er, Ae(`vs. ${(B = a(r).defaultCompareType) == null ? void 0 : B.split("_").join(" ")}`), 1)
2893
+ ne("span", Wr, Be(`vs. ${(B = a(r).defaultCompareType) == null ? void 0 : B.split("_").join(" ")}`), 1)
2894
2894
  ];
2895
2895
  }),
2896
- default: ke(() => [
2896
+ default: Te(() => [
2897
2897
  d.value ? (J(), me(F, {
2898
2898
  key: 0,
2899
2899
  icon: d.value.icon.name,
2900
- class: Le(`bg-${d.value.icon.tailwind}`),
2900
+ class: De(`bg-${d.value.icon.tailwind}`),
2901
2901
  compact: ""
2902
2902
  }, {
2903
- default: ke(() => [
2904
- de(w, {
2903
+ default: Te(() => [
2904
+ ce(w, {
2905
2905
  name: d.value.icon.name,
2906
2906
  color: d.value.icon.color
2907
2907
  }, null, 8, ["name", "color"]),
2908
- ee("p", {
2908
+ ne("p", {
2909
2909
  class: "fm-typo-en-body-md-600",
2910
- style: Te({ color: d.value.icon.color })
2911
- }, Ae(d.value.value), 5)
2910
+ style: Le({ color: d.value.icon.color })
2911
+ }, Be(d.value.value), 5)
2912
2912
  ]),
2913
2913
  _: 1
2914
- }, 8, ["icon", "class"])) : ve("", !0),
2914
+ }, 8, ["icon", "class"])) : ge("", !0),
2915
2915
  a(o).endDate != null && a(o).startDate != null && d.value === null ? (J(), me(F, {
2916
2916
  key: 1,
2917
2917
  class: "invisible pointer-events-none",
2918
2918
  "aria-hidden": "true",
2919
2919
  compact: ""
2920
2920
  }, {
2921
- default: ke(() => [
2922
- de(w, {
2921
+ default: Te(() => [
2922
+ ce(w, {
2923
2923
  name: "arrow_upward",
2924
2924
  color: "#C7C7CC"
2925
2925
  }),
2926
- k[0] || (k[0] = ee("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
2926
+ k[0] || (k[0] = ne("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
2927
2927
  ]),
2928
2928
  _: 1
2929
- })) : ve("", !0)
2929
+ })) : ge("", !0)
2930
2930
  ]),
2931
2931
  _: 1
2932
2932
  }, 8, ["disabled"])
2933
2933
  ]),
2934
- R.value ? (J(), ce("div", Ur, [
2934
+ R.value ? (J(), ue("div", Or, [
2935
2935
  v(R.value.type) === "line" ? (J(), me(S, {
2936
2936
  key: 0,
2937
2937
  class: "sparkline",
@@ -2945,25 +2945,25 @@ const Hr = { class: "flex flex-col gap-1" }, Wr = { class: "fm-typo-en-title-md-
2945
2945
  "x-cfg": { display: !1 },
2946
2946
  tooltip: y.value,
2947
2947
  "maintain-aspect-ratio": !1
2948
- }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : ve("", !0)
2949
- ])) : (J(), ce("div", Kr, k[1] || (k[1] = [
2950
- ee("div", { class: "sparkline" }, [
2951
- ee("div", { class: "flex flex-col gap-8" }, [
2952
- ee("div"),
2953
- ee("div")
2948
+ }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : ge("", !0)
2949
+ ])) : (J(), ue("div", Er, k[1] || (k[1] = [
2950
+ ne("div", { class: "sparkline" }, [
2951
+ ne("div", { class: "flex flex-col gap-8" }, [
2952
+ ne("div"),
2953
+ ne("div")
2954
2954
  ]),
2955
- ee("div", { class: "grow" })
2955
+ ne("div", { class: "grow" })
2956
2956
  ], -1)
2957
2957
  ])))
2958
2958
  ]);
2959
2959
  };
2960
2960
  }
2961
- }), Yr = {};
2962
- function qr(e, n) {
2963
- const t = fe("FmMenuDivider");
2961
+ }), Kr = {};
2962
+ function Xr(e, n) {
2963
+ const t = de("FmMenuDivider");
2964
2964
  return J(), me(t);
2965
2965
  }
2966
- const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimension", ao = ea(jr, () => {
2966
+ const Yr = /* @__PURE__ */ fo(Kr, [["render", Xr]]), qr = "mf-reporttable-dimension", no = Zo(qr, () => {
2967
2967
  const e = P(0), n = P([]), t = P(!1), o = (g, S) => {
2968
2968
  e.value = g, i(g, S);
2969
2969
  }, r = (g, S, B, D) => {
@@ -3024,25 +3024,25 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3024
3024
  const z = u.textContent || "", _ = window.getComputedStyle(u), b = `${_.fontWeight} ${_.fontSize} ${_.fontFamily}`, N = document.createElement("canvas").getContext("2d");
3025
3025
  if (N) {
3026
3026
  N.font = b;
3027
- const K = N.measureText(z), q = window.getComputedStyle(f), $ = parseFloat(q.paddingLeft || "0"), Q = parseFloat(q.paddingRight || "0");
3028
- I = K.width + $ + Q;
3027
+ const X = N.measureText(z), q = window.getComputedStyle(f), $ = parseFloat(q.paddingLeft || "0"), te = parseFloat(q.paddingRight || "0");
3028
+ I = X.width + $ + te;
3029
3029
  }
3030
3030
  }
3031
3031
  R(S, !1);
3032
- let M = null, U = null;
3032
+ let M = null, K = null;
3033
3033
  const G = () => {
3034
- if (U === null) return;
3034
+ if (K === null) return;
3035
3035
  const z = f;
3036
- z.style.width = `${U}px`;
3036
+ z.style.width = `${K}px`;
3037
3037
  let _ = 0;
3038
3038
  D.querySelectorAll("th").forEach((O, N) => {
3039
- _ += N === S ? U : O.getBoundingClientRect().width;
3039
+ _ += N === S ? K : O.getBoundingClientRect().width;
3040
3040
  }), D.classList.remove("w-full"), D.style.width = `${_}px`, M = null;
3041
3041
  }, j = (z) => {
3042
3042
  const _ = z.clientX - B;
3043
- U = Math.max(I, L + _), M === null && (M = requestAnimationFrame(G));
3043
+ K = Math.max(I, L + _), M === null && (M = requestAnimationFrame(G));
3044
3044
  }, Y = () => {
3045
- M !== null && cancelAnimationFrame(M), U !== null && (f.style.width = `${U}px`);
3045
+ M !== null && cancelAnimationFrame(M), K !== null && (f.style.width = `${K}px`);
3046
3046
  const z = D.querySelectorAll("th"), _ = [];
3047
3047
  z.forEach((b) => {
3048
3048
  _.push(b.getBoundingClientRect().width);
@@ -3091,8 +3091,8 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3091
3091
  D.forEach((L) => {
3092
3092
  const A = L.closest("thead") !== null;
3093
3093
  L.querySelectorAll(A ? "th" : "td").forEach((I, M) => {
3094
- const U = f("col", M), G = f("row", M);
3095
- I.appendChild(U), I.appendChild(G);
3094
+ const K = f("col", M), G = f("row", M);
3095
+ I.appendChild(K), I.appendChild(G);
3096
3096
  });
3097
3097
  }), c();
3098
3098
  },
@@ -3100,10 +3100,10 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3100
3100
  d();
3101
3101
  }
3102
3102
  };
3103
- }), Jr = "/assets/processTableData.worker-CNwOO2hz.js", Zr = { class: "my-4" }, Qr = {
3103
+ }), Gr = "/assets/processTableData.worker-CNwOO2hz.js", jr = { class: "my-4" }, Jr = {
3104
3104
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
3105
3105
  style: { backgroundColor: "#f9f9f9" }
3106
- }, el = { class: "font-bold" }, tl = { class: "text-fm-color-neutral-gray-300" }, nl = /* @__PURE__ */ Ne({
3106
+ }, Zr = { class: "font-bold" }, Qr = { class: "text-fm-color-neutral-gray-300" }, el = /* @__PURE__ */ Fe({
3107
3107
  __name: "WidgetTable",
3108
3108
  props: /* @__PURE__ */ Ue({
3109
3109
  tileIndex: {}
@@ -3113,7 +3113,7 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3113
3113
  }),
3114
3114
  emits: ["update:modelValue"],
3115
3115
  setup(e) {
3116
- const { t: n, te: t } = dt(), o = Oe(e, "modelValue"), { country: r } = Ln(), { clearTileSorts: i, setTileSorts: s } = Go(), c = Dn(), d = e, v = P([]), { isEditing: R, colWidths: W, rowHeight: H } = it(ao()), { setColWidths: y, setRowHeights: p, enableCellResizing: k } = ao(), w = P(null), F = x(() => {
3116
+ const { t: n, te: t } = ct(), o = He(e, "modelValue"), { country: r } = uo(), { clearTileSorts: i, setTileSorts: s } = Yo(), c = Ln(), d = e, v = P([]), { isEditing: R, colWidths: W, rowHeight: H } = xt(no()), { setColWidths: y, setRowHeights: p, enableCellResizing: k } = no(), w = P(null), F = x(() => {
3117
3117
  var _;
3118
3118
  return ((_ = o.value.data) == null ? void 0 : _.columns) || [{ label: "", key: "" }];
3119
3119
  }), g = x(() => {
@@ -3132,29 +3132,29 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3132
3132
  return Je.bottom;
3133
3133
  }
3134
3134
  }), f = x(() => {
3135
- const N = D.value !== void 0 ? 1 : 0, K = (w.value ? w.value.$el.offsetHeight : 0) - 48;
3136
- return Math.floor((K - 34.5 - 32) / 48) - N;
3135
+ const N = D.value !== void 0 ? 1 : 0, X = (w.value ? w.value.$el.offsetHeight : 0) - 48;
3136
+ return Math.floor((X - 34.5 - 32) / 48) - N;
3137
3137
  }), L = x(() => {
3138
3138
  var b, O;
3139
3139
  let _ = [];
3140
3140
  switch (D.value) {
3141
3141
  case Je.top:
3142
- _ = [...((b = g.value[0]) == null ? void 0 : b.cells) || []].map((N, K) => {
3142
+ _ = [...((b = g.value[0]) == null ? void 0 : b.cells) || []].map((N, X) => {
3143
3143
  var q;
3144
3144
  return {
3145
3145
  main: N,
3146
- comparison: (q = g.value[0]) == null ? void 0 : q.comparisonCells[K],
3147
- rowType: F.value[K].type
3146
+ comparison: (q = g.value[0]) == null ? void 0 : q.comparisonCells[X],
3147
+ rowType: F.value[X].type
3148
3148
  };
3149
3149
  });
3150
3150
  break;
3151
3151
  case Je.bottom:
3152
- _ = [...((O = g.value[g.value.length - 1]) == null ? void 0 : O.cells) || []].map((N, K) => {
3152
+ _ = [...((O = g.value[g.value.length - 1]) == null ? void 0 : O.cells) || []].map((N, X) => {
3153
3153
  var q;
3154
3154
  return {
3155
3155
  main: N,
3156
- comparison: (q = g.value[g.value.length - 1]) == null ? void 0 : q.comparisonCells[K],
3157
- rowType: F.value[K].type
3156
+ comparison: (q = g.value[g.value.length - 1]) == null ? void 0 : q.comparisonCells[X],
3157
+ rowType: F.value[X].type
3158
3158
  };
3159
3159
  });
3160
3160
  break;
@@ -3168,17 +3168,17 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3168
3168
  } : (b.includes("#") && !b.startsWith("#") && (b = b.split("#")[0]), {
3169
3169
  main: b,
3170
3170
  comparison: _ == null ? void 0 : _.comparison,
3171
- difference: Co(_.main, _.comparison, r)
3171
+ difference: bo(_.main, _.comparison, r)
3172
3172
  });
3173
3173
  }
3174
- ct(() => {
3174
+ ut(() => {
3175
3175
  i();
3176
3176
  });
3177
3177
  const u = P([]);
3178
3178
  let I = 0, M;
3179
- function U() {
3180
- var K;
3181
- if (!((K = o.value) != null && K.data)) {
3179
+ function K() {
3180
+ var X;
3181
+ if (!((X = o.value) != null && X.data)) {
3182
3182
  u.value = [];
3183
3183
  return;
3184
3184
  }
@@ -3194,18 +3194,18 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3194
3194
  rows: b,
3195
3195
  columns: O,
3196
3196
  filter: S.value ?? "",
3197
- globalSorts: Uo(v.value).map((q) => ({
3197
+ globalSorts: Oo(v.value).map((q) => ({
3198
3198
  key: q.key,
3199
3199
  type: q.type
3200
3200
  })),
3201
3201
  grandTotalPosition: D.value,
3202
3202
  pageSize: f.value
3203
3203
  };
3204
- jo(Jr, N).then((q) => {
3205
- _ === I && (q != null && q.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(q.error), u.value = []) : u.value = Ko(q.data || []));
3204
+ qo(Gr, N).then((q) => {
3205
+ _ === I && (q != null && q.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(q.error), u.value = []) : u.value = Eo(q.data || []));
3206
3206
  });
3207
3207
  }
3208
- De(
3208
+ Pe(
3209
3209
  () => v.value,
3210
3210
  (_) => {
3211
3211
  d.tileIndex === void 0 || d.tileIndex === null || s(d.tileIndex, _);
@@ -3217,27 +3217,27 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3217
3217
  const _ = ((O = o.value.data) == null ? void 0 : O.rows) || [], b = ((N = o.value.data) == null ? void 0 : N.columns) || [];
3218
3218
  return JSON.stringify({
3219
3219
  rowsLength: _.length,
3220
- columns: b.map((K) => ({ key: K.key, type: K.type, label: K.label })),
3220
+ columns: b.map((X) => ({ key: X.key, type: X.type, label: X.label })),
3221
3221
  filter: S.value ?? "",
3222
- globalSorts: v.value.map((K) => ({ key: K.key, type: K.type })),
3222
+ globalSorts: v.value.map((X) => ({ key: X.key, type: X.type })),
3223
3223
  grandTotalPosition: D.value,
3224
3224
  pageSize: f.value
3225
3225
  });
3226
3226
  });
3227
- De(
3227
+ Pe(
3228
3228
  () => G.value,
3229
3229
  () => {
3230
- clearTimeout(M), M = setTimeout(U, 200);
3230
+ clearTimeout(M), M = setTimeout(K, 200);
3231
3231
  },
3232
3232
  { immediate: !0 }
3233
3233
  );
3234
3234
  function j(_) {
3235
3235
  const b = v.value.find((O) => O.key === _);
3236
3236
  if (!b) {
3237
- v.value.push({ key: _, type: At.Asc });
3237
+ v.value.push({ key: _, type: Rt.Asc });
3238
3238
  return;
3239
3239
  }
3240
- b.type === At.Asc ? b.type = At.Desc : b.type === At.Desc && (v.value = v.value.filter((O) => O.key !== _));
3240
+ b.type === Rt.Asc ? b.type = Rt.Desc : b.type === Rt.Desc && (v.value = v.value.filter((O) => O.key !== _));
3241
3241
  }
3242
3242
  const Y = x(
3243
3243
  () => {
@@ -3247,27 +3247,27 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3247
3247
  ), z = x(() => {
3248
3248
  var _;
3249
3249
  return (_ = o.value.data) != null && _.columns ? o.value.data.columns.map((b) => {
3250
- const O = lt(n, t, b.label, "other"), N = v.value.find(($) => $.key === b.key), K = !!N, q = K ? N.type === At.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3250
+ const O = lt(n, t, b.label, "other"), N = v.value.find(($) => $.key === b.key), X = !!N, q = X ? N.type === Rt.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3251
3251
  return {
3252
3252
  accessorKey: b.key,
3253
3253
  header: () => {
3254
- const $ = fe("FmIcon");
3255
- return jt(
3254
+ const $ = de("FmIcon");
3255
+ return Gt(
3256
3256
  "button",
3257
3257
  {
3258
3258
  type: "button",
3259
- class: `w-full flex items-center gap-1 group/select-header select-none ${b.type === "NUMERIC" ? "justify-end" : "justify-start"} ${K ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
3259
+ class: `w-full flex items-center gap-1 group/select-header select-none ${b.type === "NUMERIC" ? "justify-end" : "justify-start"} ${X ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
3260
3260
  onClick: () => j(b.key)
3261
3261
  },
3262
3262
  [
3263
- jt(
3263
+ Gt(
3264
3264
  "span",
3265
3265
  { class: `${b.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
3266
3266
  O
3267
3267
  ),
3268
- jt($, {
3268
+ Gt($, {
3269
3269
  name: q,
3270
- color: K ? "primary" : "neutral-gray-400",
3270
+ color: X ? "primary" : "neutral-gray-400",
3271
3271
  size: "sm",
3272
3272
  class: "transition-transform",
3273
3273
  style: q === "arrow_upward" ? "transform: translateY(-1px);" : ""
@@ -3277,34 +3277,34 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3277
3277
  },
3278
3278
  cell: ($) => {
3279
3279
  var le, se;
3280
- const Q = A($.getValue()), oe = (se = (le = $ == null ? void 0 : $.row) == null ? void 0 : le.original) == null ? void 0 : se.isRollup;
3281
- return jt(
3280
+ const te = A($.getValue()), ae = (se = (le = $ == null ? void 0 : $.row) == null ? void 0 : le.original) == null ? void 0 : se.isRollup;
3281
+ return Gt(
3282
3282
  "div",
3283
3283
  {
3284
3284
  class: [
3285
- oe ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400",
3285
+ ae ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400",
3286
3286
  b.type === "NUMERIC" ? "text-right" : "",
3287
3287
  Y.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3288
3288
  ].join(" ")
3289
3289
  },
3290
- [b.type === "NUMERIC" ? nn(Q.main) : Q.main]
3290
+ [b.type === "NUMERIC" ? tn(te.main) : te.main]
3291
3291
  );
3292
3292
  },
3293
3293
  enableSorting: !1
3294
3294
  };
3295
3295
  }) : [];
3296
3296
  });
3297
- return De(
3297
+ return Pe(
3298
3298
  () => W.value.length > 0,
3299
3299
  async (_) => {
3300
- _ && R.value && (await ut(), k());
3300
+ _ && R.value && (await it(), k());
3301
3301
  }
3302
- ), De(
3302
+ ), Pe(
3303
3303
  [() => z.value],
3304
3304
  async () => {
3305
- var K;
3306
- await ut();
3307
- const _ = (K = w.value) == null ? void 0 : K.$el;
3305
+ var X;
3306
+ await it();
3307
+ const _ = (X = w.value) == null ? void 0 : X.$el;
3308
3308
  if (!_) return;
3309
3309
  const b = _.querySelector("table");
3310
3310
  if (!b) return;
@@ -3316,12 +3316,12 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3316
3316
  },
3317
3317
  { immediate: !0 }
3318
3318
  ), (_, b) => {
3319
- const O = fe("FmTable");
3320
- return J(), ce(ze, null, [
3321
- ee("div", Zr, [
3319
+ const O = de("FmTable");
3320
+ return J(), ue(Ve, null, [
3321
+ ne("div", jr, [
3322
3322
  Qe(_.$slots, "menu")
3323
3323
  ]),
3324
- de(O, {
3324
+ ce(O, {
3325
3325
  ref_key: "table",
3326
3326
  ref: w,
3327
3327
  "column-defs": z.value,
@@ -3333,26 +3333,26 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3333
3333
  class: "scrollbar-hide-table",
3334
3334
  "pin-header-row": !0,
3335
3335
  "auto-reset-page-index": !0
3336
- }, Eo({ _: 2 }, [
3336
+ }, Wo({ _: 2 }, [
3337
3337
  D.value ? {
3338
3338
  name: "pin-top",
3339
- fn: ke(() => [
3340
- (J(), me(so(D.value === a(Je).bottom ? "tfoot" : "tbody"), null, {
3341
- default: ke(() => [
3342
- ee("tr", Qr, [
3343
- (J(!0), ce(ze, null, Nt(L.value, (N, K) => (J(), ce("td", {
3344
- key: `${a(Ft)()}_${K}`,
3339
+ fn: Te(() => [
3340
+ (J(), me(ro(D.value === a(Je).bottom ? "tfoot" : "tbody"), null, {
3341
+ default: Te(() => [
3342
+ ne("tr", Jr, [
3343
+ (J(!0), ue(Ve, null, $t(L.value, (N, X) => (J(), ue("td", {
3344
+ key: `${a(Nt)()}_${X}`,
3345
3345
  class: "h-[48px] text-fm-color-typo-primary px-16"
3346
3346
  }, [
3347
- ee("span", {
3348
- class: Le([
3347
+ ne("span", {
3348
+ class: De([
3349
3349
  "items-center text-fm-color-typo-secondary gap-2",
3350
3350
  N.rowType === "NUMERIC" ? "text-right" : "",
3351
3351
  Y.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3352
3352
  ])
3353
3353
  }, [
3354
- ee("p", el, Ae(N.rowType === "NUMERIC" ? a(nn)(N.main) : N.main), 1),
3355
- ee("p", tl, Ae(N.comparison ? N.rowType === "NUMERIC" ? `(${a(nn)(N.comparison)})` : `(${N.comparison})` : ""), 1)
3354
+ ne("p", Zr, Be(N.rowType === "NUMERIC" ? a(tn)(N.main) : N.main), 1),
3355
+ ne("p", Qr, Be(N.comparison ? N.rowType === "NUMERIC" ? `(${a(tn)(N.comparison)})` : `(${N.comparison})` : ""), 1)
3356
3356
  ], 2)
3357
3357
  ]))), 128))
3358
3358
  ])
@@ -3366,7 +3366,7 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3366
3366
  ], 64);
3367
3367
  };
3368
3368
  }
3369
- }), ol = { class: "widget-content" }, al = 2, rl = /* @__PURE__ */ Ne({
3369
+ }), tl = { class: "widget-content" }, nl = 2, ol = /* @__PURE__ */ Fe({
3370
3370
  __name: "WidgetStackBarChart",
3371
3371
  props: /* @__PURE__ */ Ue({
3372
3372
  tileIndex: {}
@@ -3376,13 +3376,13 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3376
3376
  }),
3377
3377
  emits: ["update:modelValue"],
3378
3378
  setup(e) {
3379
- const n = e, t = Oe(e, "modelValue"), o = P(null), r = x(() => {
3379
+ const n = e, t = He(e, "modelValue"), o = P(null), r = x(() => {
3380
3380
  var b;
3381
3381
  return ((b = t.value.data) == null ? void 0 : b.xAxis) || [];
3382
3382
  }), i = x(() => {
3383
3383
  var _;
3384
3384
  return ((_ = t.value.data) == null ? void 0 : _.datasets) ?? [];
3385
- }), s = Wt("bar"), c = x(() => t.value.stackBarOverlap === !0), d = x(() => c.value === !1), v = x(() => ({
3385
+ }), s = Ot("bar"), c = x(() => t.value.stackBarOverlap === !0), d = x(() => c.value === !1), v = x(() => ({
3386
3386
  ...B.value,
3387
3387
  stacked: d.value
3388
3388
  })), R = x(() => ({
@@ -3395,16 +3395,16 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3395
3395
  breakdownIndex: O
3396
3396
  }) {
3397
3397
  var $;
3398
- const N = t.value.chartColorBinding === xe.metric ? b : t.value.chartColorBinding === xe.breakdown ? O : _, K = ($ = t.value.chartColorLayers) == null ? void 0 : $[N], q = Number(K);
3398
+ const N = t.value.chartColorBinding === xe.metric ? b : t.value.chartColorBinding === xe.breakdown ? O : _, X = ($ = t.value.chartColorLayers) == null ? void 0 : $[N], q = Number(X);
3399
3399
  return Number.isInteger(q) && q > 0 ? q : N + 1;
3400
3400
  }
3401
3401
  const H = x(() => {
3402
3402
  if (i.value.length > 0) {
3403
3403
  const _ = i.value.map((b, O) => {
3404
- const N = zt({
3404
+ const N = Ht({
3405
3405
  datasets: i.value,
3406
3406
  datasetIndex: O
3407
- }), K = Ie({
3407
+ }), X = Ie({
3408
3408
  datasetIndex: N,
3409
3409
  isCompare: !1,
3410
3410
  metricCount: t.value.metricCount,
@@ -3417,9 +3417,9 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3417
3417
  }), $ = _t({
3418
3418
  fallbackIndex: N,
3419
3419
  metricCount: t.value.metricCount
3420
- }), Q = W({
3420
+ }), te = W({
3421
3421
  datasetIndex: N,
3422
- colorIndex: K,
3422
+ colorIndex: X,
3423
3423
  breakdownIndex: $
3424
3424
  }), le = b.values.map((se) => se === null ? NaN : Number(se));
3425
3425
  return {
@@ -3427,9 +3427,9 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3427
3427
  label: b.name,
3428
3428
  data: le,
3429
3429
  dash: !!b.isCompare,
3430
- minBarLength: al,
3430
+ minBarLength: nl,
3431
3431
  grouped: c.value ? !1 : void 0,
3432
- order: c.value ? Q : void 0,
3432
+ order: c.value ? te : void 0,
3433
3433
  backgroundColor: t.value.chartColorBinding === xe.breakdown ? Lt({
3434
3434
  breakdownIndex: $,
3435
3435
  metricIndex: q,
@@ -3439,7 +3439,7 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3439
3439
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
3440
3440
  customColors: t.value.chartColors
3441
3441
  }) : Ze({
3442
- index: K,
3442
+ index: X,
3443
3443
  isCompare: b.isCompare,
3444
3444
  customColors: t.value.chartColors
3445
3445
  })
@@ -3465,36 +3465,36 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3465
3465
  chartHeight: u,
3466
3466
  useCustomLegend: I,
3467
3467
  legendPosition: M,
3468
- isLegendSide: U,
3468
+ isLegendSide: K,
3469
3469
  isLegendBeforeChart: G,
3470
3470
  hiddenDatasetKeys: j,
3471
3471
  toggleDatasetVisibility: Y,
3472
3472
  datasets: z
3473
- } = Et({
3473
+ } = Ut({
3474
3474
  chartRef: o,
3475
3475
  model: t,
3476
3476
  baseDatasets: H,
3477
3477
  tileIndex: n.tileIndex
3478
3478
  });
3479
3479
  return (_, b) => {
3480
- var N, K, q, $, Q, oe;
3481
- const O = fe("FmBarChart");
3482
- return J(), ce(ze, null, [
3483
- ee("div", ol, [
3480
+ var N, X, q, $, te, ae;
3481
+ const O = de("FmBarChart");
3482
+ return J(), ue(Ve, null, [
3483
+ ne("div", tl, [
3484
3484
  Qe(_.$slots, "menu"),
3485
- ee("div", {
3486
- class: Le(["chart-layout", {
3487
- "chart-layout--side": a(I) && (a(L).display ?? !1) && a(U)
3485
+ ne("div", {
3486
+ class: De(["chart-layout", {
3487
+ "chart-layout--side": a(I) && (a(L).display ?? !1) && a(K)
3488
3488
  }])
3489
3489
  }, [
3490
- a(I) && (a(L).display ?? !1) && a(G) ? (J(), me(Fe, {
3490
+ a(I) && (a(L).display ?? !1) && a(G) ? (J(), me(Re, {
3491
3491
  key: 0,
3492
3492
  "chart-ref": o.value,
3493
3493
  enabled: a(L).display ?? !1,
3494
3494
  position: a(M),
3495
3495
  "max-width": a(L).maxWidth,
3496
3496
  "text-color": (N = a(L).labels) == null ? void 0 : N.color,
3497
- "font-size": (q = (K = a(L).labels) == null ? void 0 : K.font) == null ? void 0 : q.size,
3497
+ "font-size": (q = (X = a(L).labels) == null ? void 0 : X.font) == null ? void 0 : q.size,
3498
3498
  "legend-update-key": a(z),
3499
3499
  "use-point-style": t.value.usePointStyle ?? !0,
3500
3500
  "chart-color-binding": t.value.chartColorBinding,
@@ -3504,8 +3504,8 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3504
3504
  "metric-count": t.value.metricCount,
3505
3505
  "hidden-dataset-keys": a(j),
3506
3506
  onToggleDatasetVisibility: a(Y)
3507
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0),
3508
- de(O, {
3507
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0),
3508
+ ce(O, {
3509
3509
  ref_key: "chartRef",
3510
3510
  ref: o,
3511
3511
  class: "bar-chart",
@@ -3522,19 +3522,19 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3522
3522
  plugins: [a(s)],
3523
3523
  datalabels: a(S),
3524
3524
  "maintain-aspect-ratio": !1,
3525
- style: Te({
3526
- "--chart-width": a(I) && (a(L).display ?? !1) && a(U) ? "calc(100% - var(--legend-panel-width, 0px))" : a(A) !== void 0 ? a(A) + "px" : "100%",
3527
- "--chart-height": a(I) && (a(L).display ?? !1) && !a(U) ? "calc(100% - var(--legend-panel-height, 0px))" : a(u) !== void 0 ? a(u) + "px" : "100%"
3525
+ style: Le({
3526
+ "--chart-width": a(I) && (a(L).display ?? !1) && a(K) ? "calc(100% - var(--legend-panel-width, 0px))" : a(A) !== void 0 ? a(A) + "px" : "100%",
3527
+ "--chart-height": a(I) && (a(L).display ?? !1) && !a(K) ? "calc(100% - var(--legend-panel-height, 0px))" : a(u) !== void 0 ? a(u) + "px" : "100%"
3528
3528
  })
3529
3529
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
3530
- a(I) && (a(L).display ?? !1) && !a(G) ? (J(), me(Fe, {
3530
+ a(I) && (a(L).display ?? !1) && !a(G) ? (J(), me(Re, {
3531
3531
  key: 1,
3532
3532
  "chart-ref": o.value,
3533
3533
  enabled: a(L).display ?? !1,
3534
3534
  position: a(M),
3535
3535
  "max-width": a(L).maxWidth,
3536
3536
  "text-color": ($ = a(L).labels) == null ? void 0 : $.color,
3537
- "font-size": (oe = (Q = a(L).labels) == null ? void 0 : Q.font) == null ? void 0 : oe.size,
3537
+ "font-size": (ae = (te = a(L).labels) == null ? void 0 : te.font) == null ? void 0 : ae.size,
3538
3538
  "legend-update-key": a(z),
3539
3539
  "use-point-style": t.value.usePointStyle ?? !0,
3540
3540
  "chart-color-binding": t.value.chartColorBinding,
@@ -3544,10 +3544,10 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3544
3544
  "metric-count": t.value.metricCount,
3545
3545
  "hidden-dataset-keys": a(j),
3546
3546
  onToggleDatasetVisibility: a(Y)
3547
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0)
3547
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0)
3548
3548
  ], 2)
3549
3549
  ]),
3550
- de(Ot, {
3550
+ ce(Et, {
3551
3551
  "model-value": a(y),
3552
3552
  "details-payload": a(p),
3553
3553
  "onUpdate:modelValue": a(k),
@@ -3557,7 +3557,7 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3557
3557
  ], 64);
3558
3558
  };
3559
3559
  }
3560
- }), ll = { class: "widget-content" }, sl = 2, pn = 1, ro = "rgba(0, 0, 0, 0)", il = /* @__PURE__ */ Ne({
3560
+ }), al = { class: "widget-content" }, rl = 2, pn = 1, oo = "rgba(0, 0, 0, 0)", ll = /* @__PURE__ */ Fe({
3561
3561
  __name: "WidgetClusteredStackBarchart",
3562
3562
  props: /* @__PURE__ */ Ue({
3563
3563
  tileIndex: {}
@@ -3567,13 +3567,13 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3567
3567
  }),
3568
3568
  emits: ["update:modelValue"],
3569
3569
  setup(e) {
3570
- const n = e, t = Oe(e, "modelValue"), o = P(null), r = x(() => {
3570
+ const n = e, t = He(e, "modelValue"), o = P(null), r = x(() => {
3571
3571
  var $;
3572
3572
  return (($ = t.value.data) == null ? void 0 : $.xAxis) || [];
3573
3573
  }), i = x(() => {
3574
3574
  var $;
3575
3575
  return (($ = t.value.data) == null ? void 0 : $.datasets) ?? [];
3576
- }), s = Wt("bar"), c = x(() => t.value.stackBarOverlap === !0), d = x(() => c.value === !1), v = x(() => r.value.length === 1 && i.value.some(($) => $.isCompare === !0)), R = x(() => ({
3576
+ }), s = Ot("bar"), c = x(() => t.value.stackBarOverlap === !0), d = x(() => c.value === !1), v = x(() => r.value.length === 1 && i.value.some(($) => $.isCompare === !0)), R = x(() => ({
3577
3577
  ...A.value,
3578
3578
  stacked: d.value
3579
3579
  })), W = x(() => ({
@@ -3581,30 +3581,30 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3581
3581
  stacked: d.value
3582
3582
  }));
3583
3583
  function H($) {
3584
- const Q = " - ", oe = $.lastIndexOf(Q);
3585
- return oe < 0 ? {
3584
+ const te = " - ", ae = $.lastIndexOf(te);
3585
+ return ae < 0 ? {
3586
3586
  clusterKey: $,
3587
3587
  metricLabel: $
3588
3588
  } : {
3589
- clusterKey: $.slice(0, oe),
3590
- metricLabel: $.slice(oe + Q.length)
3589
+ clusterKey: $.slice(0, ae),
3590
+ metricLabel: $.slice(ae + te.length)
3591
3591
  };
3592
3592
  }
3593
- function y($, Q) {
3593
+ function y($, te) {
3594
3594
  if (typeof $ == "string") {
3595
- const oe = $.trim();
3596
- if (oe.length > 0)
3597
- return oe;
3595
+ const ae = $.trim();
3596
+ if (ae.length > 0)
3597
+ return ae;
3598
3598
  }
3599
- return `Series ${Q + 1}`;
3599
+ return `Series ${te + 1}`;
3600
3600
  }
3601
3601
  function p({
3602
3602
  datasetIndex: $,
3603
- colorIndex: Q
3603
+ colorIndex: te
3604
3604
  }) {
3605
3605
  var ye;
3606
- const oe = t.value.chartColorBinding === xe.metric ? Q : $, le = (ye = t.value.chartColorLayers) == null ? void 0 : ye[oe], se = Number(le);
3607
- return Number.isInteger(se) && se > 0 ? se : oe + 1;
3606
+ const ae = t.value.chartColorBinding === xe.metric ? te : $, le = (ye = t.value.chartColorLayers) == null ? void 0 : ye[ae], se = Number(le);
3607
+ return Number.isInteger(se) && se > 0 ? se : ae + 1;
3608
3608
  }
3609
3609
  function k($) {
3610
3610
  return {
@@ -3613,8 +3613,8 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3613
3613
  data: [0],
3614
3614
  grouped: !0,
3615
3615
  stack: `__comparison_gap__${$}`,
3616
- backgroundColor: ro,
3617
- borderColor: ro,
3616
+ backgroundColor: oo,
3617
+ borderColor: oo,
3618
3618
  minBarLength: 0,
3619
3619
  barPercentage: pn,
3620
3620
  isSpacer: !0
@@ -3628,52 +3628,52 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3628
3628
  index: be,
3629
3629
  name: y(ie == null ? void 0 : ie.name, be),
3630
3630
  values: (ie == null ? void 0 : ie.values) ?? []
3631
- })), Q = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map();
3631
+ })), te = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ new Map();
3632
3632
  for (const ie of $) {
3633
- const { clusterKey: be, metricLabel: we } = H(ie.name);
3634
- oe.has(be) || oe.set(be, oe.size), Q.has(we) || Q.set(we, Q.size);
3633
+ const { clusterKey: be, metricLabel: Se } = H(ie.name);
3634
+ ae.has(be) || ae.set(be, ae.size), te.has(Se) || te.set(Se, te.size);
3635
3635
  }
3636
- const le = Math.max(Q.size, 1), se = t.value.chartColorBinding === xe.breakdown, ye = t.value.chartUseSecondaryMetricShades !== !1;
3636
+ const le = Math.max(te.size, 1), se = t.value.chartColorBinding === xe.breakdown, ye = t.value.chartUseSecondaryMetricShades !== !1;
3637
3637
  return $.map((ie) => {
3638
- var $e;
3639
- const be = zt({
3638
+ var Ne;
3639
+ const be = Ht({
3640
3640
  datasets: i.value,
3641
3641
  datasetIndex: ie.index
3642
- }), we = po({
3642
+ }), Se = mo({
3643
3643
  datasets: i.value,
3644
3644
  datasetIndex: ie.index
3645
- }), Se = Ie({
3645
+ }), _e = Ie({
3646
3646
  datasetIndex: be,
3647
3647
  isCompare: !1,
3648
3648
  metricCount: t.value.metricCount,
3649
3649
  mode: t.value.chartColorBinding
3650
- }), { clusterKey: Ke, metricLabel: Xe } = H(ie.name), et = (($e = $[we]) == null ? void 0 : $e.name) ?? ie.name, { clusterKey: Dt, metricLabel: ft } = H(et), ht = Ie({
3650
+ }), { clusterKey: Ke, metricLabel: Xe } = H(ie.name), et = ((Ne = $[Se]) == null ? void 0 : Ne.name) ?? ie.name, { clusterKey: Dt, metricLabel: dt } = H(et), ft = Ie({
3651
3651
  datasetIndex: be,
3652
3652
  isCompare: !1,
3653
3653
  metricCount: le,
3654
3654
  mode: xe.breakdown
3655
- }), mt = Q.get(ft) ?? 0, tt = se ? Lt({
3656
- breakdownIndex: ht,
3657
- metricIndex: mt,
3655
+ }), ht = te.get(dt) ?? 0, tt = se ? Lt({
3656
+ breakdownIndex: ft,
3657
+ metricIndex: ht,
3658
3658
  metricCount: le,
3659
3659
  isCompare: ie.source.isCompare,
3660
3660
  breakdownColors: t.value.chartBreakdownColors,
3661
3661
  useSecondaryMetricShades: ye,
3662
3662
  colorMode: "clustered"
3663
3663
  }) : Ze({
3664
- index: Se,
3664
+ index: _e,
3665
3665
  isCompare: ie.source.isCompare,
3666
3666
  customColors: t.value.chartColors
3667
3667
  }), nt = p({
3668
3668
  datasetIndex: be,
3669
- colorIndex: Se
3670
- }), pt = ie.values.map((ot) => ot === null ? NaN : Number(ot));
3669
+ colorIndex: _e
3670
+ }), mt = ie.values.map((ot) => ot === null ? NaN : Number(ot));
3671
3671
  return {
3672
3672
  label: ie.name,
3673
3673
  tooltipLabel: `${Ke} - ${Xe}`,
3674
- data: pt,
3674
+ data: mt,
3675
3675
  dash: !!ie.source.isCompare,
3676
- minBarLength: sl,
3676
+ minBarLength: rl,
3677
3677
  barPercentage: v.value ? pn : void 0,
3678
3678
  grouped: !0,
3679
3679
  order: c.value ? nt : void 0,
@@ -3693,7 +3693,7 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3693
3693
  yCfg: u,
3694
3694
  isTransposed: I,
3695
3695
  legend: M,
3696
- chartWidth: U,
3696
+ chartWidth: K,
3697
3697
  chartHeight: G,
3698
3698
  useCustomLegend: j,
3699
3699
  legendPosition: Y,
@@ -3702,44 +3702,44 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3702
3702
  hiddenDatasetKeys: b,
3703
3703
  toggleDatasetVisibility: O,
3704
3704
  datasets: N
3705
- } = Et({
3705
+ } = Ut({
3706
3706
  chartRef: o,
3707
3707
  model: t,
3708
3708
  baseDatasets: w,
3709
3709
  tileIndex: n.tileIndex
3710
- }), K = x(() => {
3710
+ }), X = x(() => {
3711
3711
  if (!v.value)
3712
3712
  return N.value;
3713
3713
  const $ = [];
3714
- return N.value.forEach((Q, oe) => {
3714
+ return N.value.forEach((te, ae) => {
3715
3715
  $.push({
3716
- ...Q,
3716
+ ...te,
3717
3717
  barPercentage: pn
3718
3718
  });
3719
- const le = N.value[oe + 1];
3720
- Q.dash === !0 && le && $.push(k(oe));
3719
+ const le = N.value[ae + 1];
3720
+ te.dash === !0 && le && $.push(k(ae));
3721
3721
  }), $;
3722
3722
  }), q = x(() => ({
3723
3723
  display: !1,
3724
3724
  labels: {
3725
- filter: ($, Q) => {
3726
- var oe, le;
3727
- return !((le = (oe = Q.datasets) == null ? void 0 : oe[$.datasetIndex ?? -1]) != null && le.isSpacer);
3725
+ filter: ($, te) => {
3726
+ var ae, le;
3727
+ return !((le = (ae = te.datasets) == null ? void 0 : ae[$.datasetIndex ?? -1]) != null && le.isSpacer);
3728
3728
  }
3729
3729
  }
3730
3730
  }));
3731
- return ($, Q) => {
3732
- var le, se, ye, ie, be, we;
3733
- const oe = fe("FmBarChart");
3734
- return J(), ce(ze, null, [
3735
- ee("div", ll, [
3731
+ return ($, te) => {
3732
+ var le, se, ye, ie, be, Se;
3733
+ const ae = de("FmBarChart");
3734
+ return J(), ue(Ve, null, [
3735
+ ne("div", al, [
3736
3736
  Qe($.$slots, "menu"),
3737
- ee("div", {
3738
- class: Le(["chart-layout", {
3737
+ ne("div", {
3738
+ class: De(["chart-layout", {
3739
3739
  "chart-layout--side": a(j) && (a(M).display ?? !1) && a(z)
3740
3740
  }])
3741
3741
  }, [
3742
- a(j) && (a(M).display ?? !1) && a(_) ? (J(), me(Fe, {
3742
+ a(j) && (a(M).display ?? !1) && a(_) ? (J(), me(Re, {
3743
3743
  key: 0,
3744
3744
  "chart-ref": o.value,
3745
3745
  enabled: a(M).display ?? !1,
@@ -3756,12 +3756,12 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3756
3756
  "metric-count": t.value.metricCount,
3757
3757
  "hidden-dataset-keys": a(b),
3758
3758
  onToggleDatasetVisibility: a(O)
3759
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0),
3760
- de(oe, {
3759
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0),
3760
+ ce(ae, {
3761
3761
  ref_key: "chartRef",
3762
3762
  ref: o,
3763
3763
  class: "bar-chart",
3764
- datasets: K.value,
3764
+ datasets: X.value,
3765
3765
  "x-axis": { categories: r.value },
3766
3766
  "x-cfg": R.value,
3767
3767
  "y-cfg": W.value,
@@ -3772,19 +3772,19 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3772
3772
  plugins: [a(s)],
3773
3773
  datalabels: a(L),
3774
3774
  "maintain-aspect-ratio": !1,
3775
- style: Te({
3776
- "--chart-width": a(j) && (a(M).display ?? !1) && a(z) ? "calc(100% - var(--legend-panel-width, 0px))" : a(U) !== void 0 ? a(U) + "px" : "100%",
3775
+ style: Le({
3776
+ "--chart-width": a(j) && (a(M).display ?? !1) && a(z) ? "calc(100% - var(--legend-panel-width, 0px))" : a(K) !== void 0 ? a(K) + "px" : "100%",
3777
3777
  "--chart-height": a(j) && (a(M).display ?? !1) && !a(z) ? "calc(100% - var(--legend-panel-height, 0px))" : a(G) !== void 0 ? a(G) + "px" : "100%"
3778
3778
  })
3779
3779
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels", "style"]),
3780
- a(j) && (a(M).display ?? !1) && !a(_) ? (J(), me(Fe, {
3780
+ a(j) && (a(M).display ?? !1) && !a(_) ? (J(), me(Re, {
3781
3781
  key: 1,
3782
3782
  "chart-ref": o.value,
3783
3783
  enabled: a(M).display ?? !1,
3784
3784
  position: a(Y),
3785
3785
  "max-width": a(M).maxWidth,
3786
3786
  "text-color": (ie = a(M).labels) == null ? void 0 : ie.color,
3787
- "font-size": (we = (be = a(M).labels) == null ? void 0 : be.font) == null ? void 0 : we.size,
3787
+ "font-size": (Se = (be = a(M).labels) == null ? void 0 : be.font) == null ? void 0 : Se.size,
3788
3788
  "legend-update-key": a(N),
3789
3789
  "use-point-style": t.value.usePointStyle ?? !0,
3790
3790
  "chart-color-binding": t.value.chartColorBinding,
@@ -3794,10 +3794,10 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3794
3794
  "metric-count": t.value.metricCount,
3795
3795
  "hidden-dataset-keys": a(b),
3796
3796
  onToggleDatasetVisibility: a(O)
3797
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0)
3797
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0)
3798
3798
  ], 2)
3799
3799
  ]),
3800
- de(Ot, {
3800
+ ce(Et, {
3801
3801
  "model-value": a(F),
3802
3802
  "details-payload": a(g),
3803
3803
  "onUpdate:modelValue": a(S),
@@ -3808,23 +3808,23 @@ const Gr = /* @__PURE__ */ ho(Yr, [["render", qr]]), jr = "mf-reporttable-dimens
3808
3808
  };
3809
3809
  }
3810
3810
  });
3811
- function ul(e) {
3811
+ function sl(e) {
3812
3812
  const n = Reflect.get(e, "lineStyle"), t = Reflect.get(e, "dash") === !0;
3813
- return ra(n, t);
3813
+ return oa(n, t);
3814
3814
  }
3815
- function Mo(e = "report-line-style-plugin") {
3815
+ function Io(e = "report-line-style-plugin") {
3816
3816
  return {
3817
3817
  id: e,
3818
3818
  beforeDatasetsUpdate(n) {
3819
3819
  var o;
3820
3820
  (((o = n == null ? void 0 : n.data) == null ? void 0 : o.datasets) ?? []).forEach((r) => {
3821
3821
  const i = r;
3822
- Reflect.set(i, "borderDash", ul(i));
3822
+ Reflect.set(i, "borderDash", sl(i));
3823
3823
  });
3824
3824
  }
3825
3825
  };
3826
3826
  }
3827
- const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3827
+ const il = { class: "widget-content" }, ul = /* @__PURE__ */ Fe({
3828
3828
  __name: "WidgetStackLineChart",
3829
3829
  props: /* @__PURE__ */ Ue({
3830
3830
  tileIndex: {}
@@ -3834,7 +3834,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3834
3834
  }),
3835
3835
  emits: ["update:modelValue"],
3836
3836
  setup(e) {
3837
- const n = e, t = Oe(e, "modelValue"), o = P(null), r = x(() => {
3837
+ const n = e, t = He(e, "modelValue"), o = P(null), r = x(() => {
3838
3838
  var Y;
3839
3839
  return ((Y = t.value.data) == null ? void 0 : Y.xAxis) ?? [];
3840
3840
  }), i = x(
@@ -3842,10 +3842,10 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3842
3842
  ), s = x(() => i.value ? ["", r.value[0], ""] : r.value), c = x(() => {
3843
3843
  var Y;
3844
3844
  return ((Y = t.value.data) == null ? void 0 : Y.datasets) ?? [];
3845
- }), d = Wt("line"), v = Mo("report-line-style-plugin-stack-line"), R = x(() => c.value.length > 0 ? [
3845
+ }), d = Ot("line"), v = Io("report-line-style-plugin-stack-line"), R = x(() => c.value.length > 0 ? [
3846
3846
  ...c.value.map((Y, z) => {
3847
3847
  var se;
3848
- const _ = zt({
3848
+ const _ = Ht({
3849
3849
  datasets: c.value,
3850
3850
  datasetIndex: z
3851
3851
  });
@@ -3856,7 +3856,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3856
3856
  isCompare: !1,
3857
3857
  metricCount: t.value.metricCount,
3858
3858
  mode: t.value.chartColorBinding
3859
- }), K = Ie({
3859
+ }), X = Ie({
3860
3860
  datasetIndex: _,
3861
3861
  isCompare: !1,
3862
3862
  metricCount: t.value.metricCount,
@@ -3866,12 +3866,12 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3866
3866
  isCompare: Y.isCompare,
3867
3867
  metricCount: t.value.metricCount,
3868
3868
  mode: t.value.lineStyleBinding
3869
- }), $ = (se = t.value.lineStyles) == null ? void 0 : se[q], Q = t.value.chartColorBinding === xe.breakdown, oe = _t({
3869
+ }), $ = (se = t.value.lineStyles) == null ? void 0 : se[q], te = t.value.chartColorBinding === xe.breakdown, ae = _t({
3870
3870
  fallbackIndex: _,
3871
3871
  metricCount: t.value.metricCount
3872
- }), le = Q ? Lt({
3873
- breakdownIndex: oe,
3874
- metricIndex: K,
3872
+ }), le = te ? Lt({
3873
+ breakdownIndex: ae,
3874
+ metricIndex: X,
3875
3875
  metricCount: t.value.metricCount,
3876
3876
  isCompare: Y.isCompare,
3877
3877
  breakdownColors: t.value.chartBreakdownColors,
@@ -3914,27 +3914,27 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3914
3914
  legendPosition: u,
3915
3915
  isLegendSide: I,
3916
3916
  isLegendBeforeChart: M,
3917
- hiddenDatasetKeys: U,
3917
+ hiddenDatasetKeys: K,
3918
3918
  toggleDatasetVisibility: G,
3919
3919
  datasets: j
3920
- } = Et({
3920
+ } = Ut({
3921
3921
  chartRef: o,
3922
3922
  model: t,
3923
3923
  baseDatasets: R,
3924
3924
  tileIndex: n.tileIndex
3925
3925
  });
3926
3926
  return (Y, z) => {
3927
- var b, O, N, K, q, $;
3928
- const _ = fe("FmLineChart");
3929
- return J(), ce(ze, null, [
3930
- ee("div", cl, [
3927
+ var b, O, N, X, q, $;
3928
+ const _ = de("FmLineChart");
3929
+ return J(), ue(Ve, null, [
3930
+ ne("div", il, [
3931
3931
  Qe(Y.$slots, "menu"),
3932
- ee("div", {
3933
- class: Le(["chart-layout", {
3932
+ ne("div", {
3933
+ class: De(["chart-layout", {
3934
3934
  "chart-layout--side": a(A) && (a(D).display ?? !1) && a(I)
3935
3935
  }])
3936
3936
  }, [
3937
- a(A) && (a(D).display ?? !1) && a(M) ? (J(), me(Fe, {
3937
+ a(A) && (a(D).display ?? !1) && a(M) ? (J(), me(Re, {
3938
3938
  key: 0,
3939
3939
  "chart-ref": o.value,
3940
3940
  enabled: a(D).display ?? !1,
@@ -3949,10 +3949,10 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3949
3949
  "chart-breakdown-colors": t.value.chartBreakdownColors,
3950
3950
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3951
3951
  "metric-count": t.value.metricCount,
3952
- "hidden-dataset-keys": a(U),
3952
+ "hidden-dataset-keys": a(K),
3953
3953
  onToggleDatasetVisibility: a(G)
3954
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0),
3955
- de(_, {
3954
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0),
3955
+ ce(_, {
3956
3956
  ref_key: "chartRef",
3957
3957
  ref: o,
3958
3958
  class: "line-chart",
@@ -3969,18 +3969,18 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3969
3969
  stacked: !0,
3970
3970
  datalabels: a(F),
3971
3971
  "maintain-aspect-ratio": !1,
3972
- style: Te({
3972
+ style: Le({
3973
3973
  "--chart-width": a(A) && (a(D).display ?? !1) && a(I) ? "calc(100% - var(--legend-panel-width, 0px))" : a(f) !== void 0 ? a(f) + "px" : "100%",
3974
3974
  "--chart-height": a(A) && (a(D).display ?? !1) && !a(I) ? "calc(100% - var(--legend-panel-height, 0px))" : a(L) !== void 0 ? a(L) + "px" : "100%"
3975
3975
  })
3976
3976
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "plugins", "datalabels", "style"]),
3977
- a(A) && (a(D).display ?? !1) && !a(M) ? (J(), me(Fe, {
3977
+ a(A) && (a(D).display ?? !1) && !a(M) ? (J(), me(Re, {
3978
3978
  key: 1,
3979
3979
  "chart-ref": o.value,
3980
3980
  enabled: a(D).display ?? !1,
3981
3981
  position: a(u),
3982
3982
  "max-width": a(D).maxWidth,
3983
- "text-color": (K = a(D).labels) == null ? void 0 : K.color,
3983
+ "text-color": (X = a(D).labels) == null ? void 0 : X.color,
3984
3984
  "font-size": ($ = (q = a(D).labels) == null ? void 0 : q.font) == null ? void 0 : $.size,
3985
3985
  "legend-update-key": a(j),
3986
3986
  "use-point-style": t.value.usePointStyle ?? !0,
@@ -3989,12 +3989,12 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
3989
3989
  "chart-breakdown-colors": t.value.chartBreakdownColors,
3990
3990
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3991
3991
  "metric-count": t.value.metricCount,
3992
- "hidden-dataset-keys": a(U),
3992
+ "hidden-dataset-keys": a(K),
3993
3993
  onToggleDatasetVisibility: a(G)
3994
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ve("", !0)
3994
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : ge("", !0)
3995
3995
  ], 2)
3996
3996
  ]),
3997
- de(Ot, {
3997
+ ce(Et, {
3998
3998
  "model-value": a(W),
3999
3999
  "details-payload": a(H),
4000
4000
  "onUpdate:modelValue": a(y),
@@ -4018,16 +4018,16 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ Ne({
4018
4018
  "col-span-11",
4019
4019
  "col-span-12"
4020
4020
  ];
4021
- function fl(e) {
4021
+ function cl(e) {
4022
4022
  return e < 12 ? Tt[e - 1] : Tt[11];
4023
4023
  }
4024
- function hl(e) {
4024
+ function dl(e) {
4025
4025
  return e < 12 ? Tt[Math.min(11, e * 2 - 1)] : Tt[11];
4026
4026
  }
4027
- function ml(e) {
4027
+ function fl(e) {
4028
4028
  return e < 12 ? Tt[Math.min(11, e * 3 - 1)] : Tt[11];
4029
4029
  }
4030
- const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4030
+ const hl = { class: "widget-content" }, ml = /* @__PURE__ */ Fe({
4031
4031
  __name: "WidgetLinechart",
4032
4032
  props: /* @__PURE__ */ Ue({
4033
4033
  tileIndex: {}
@@ -4037,7 +4037,7 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4037
4037
  }),
4038
4038
  emits: ["update:modelValue"],
4039
4039
  setup(e) {
4040
- const n = e, t = Oe(e, "modelValue"), o = P(null), r = x(() => {
4040
+ const n = e, t = He(e, "modelValue"), o = P(null), r = x(() => {
4041
4041
  var z;
4042
4042
  return ((z = t.value.data) == null ? void 0 : z.datasets) ?? [];
4043
4043
  }), i = x(() => {
@@ -4045,10 +4045,10 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4045
4045
  return ((z = t.value.data) == null ? void 0 : z.xAxis) ?? [];
4046
4046
  }), s = x(() => i.value.length === 1 && r.value.length > 1 && r.value.every((z) => z.values.length === 1 && z.isCompare !== !0)), c = x(
4047
4047
  () => i.value.length === 1 && r.value.length > 0 && r.value.every((z) => z.values.length === 1)
4048
- ), d = x(() => s.value ? r.value.map((z) => z.name) : c.value ? ["", i.value[0], ""] : i.value), v = Wt("line"), R = Mo("report-line-style-plugin-line"), W = x(() => r.value.length > 0 ? [
4048
+ ), d = x(() => s.value ? r.value.map((z) => z.name) : c.value ? ["", i.value[0], ""] : i.value), v = Ot("line"), R = Io("report-line-style-plugin-line"), W = x(() => r.value.length > 0 ? [
4049
4049
  ...r.value.map((z, _) => {
4050
4050
  var be;
4051
- const b = zt({
4051
+ const b = Ht({
4052
4052
  datasets: r.value,
4053
4053
  datasetIndex: _
4054
4054
  }), O = Ie({
@@ -4061,14 +4061,14 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4061
4061
  isCompare: !1,
4062
4062
  metricCount: t.value.metricCount,
4063
4063
  mode: xe.metric
4064
- }), K = Ze({
4064
+ }), X = Ze({
4065
4065
  index: O,
4066
4066
  isCompare: z.isCompare,
4067
4067
  customColors: t.value.chartColors
4068
4068
  }), q = t.value.chartColorBinding === xe.breakdown, $ = _t({
4069
4069
  fallbackIndex: b,
4070
4070
  metricCount: t.value.metricCount
4071
- }), Q = q ? Lt({
4071
+ }), te = q ? Lt({
4072
4072
  breakdownIndex: $,
4073
4073
  metricIndex: N,
4074
4074
  metricCount: t.value.metricCount,
@@ -4076,12 +4076,12 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4076
4076
  breakdownColors: t.value.chartBreakdownColors,
4077
4077
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
4078
4078
  customColors: t.value.chartColors
4079
- }) : K;
4080
- let oe = z.values;
4081
- s.value ? oe = r.value.map(
4082
- (we, Se) => Se === _ ? z.values[0] : NaN
4083
- ) : c.value && (oe = [NaN, oe[0], NaN]);
4084
- const le = oe.map((we) => we === null ? NaN : Number(we)), se = c.value || s.value, ye = Ie({
4079
+ }) : X;
4080
+ let ae = z.values;
4081
+ s.value ? ae = r.value.map(
4082
+ (Se, _e) => _e === _ ? z.values[0] : NaN
4083
+ ) : c.value && (ae = [NaN, ae[0], NaN]);
4084
+ const le = ae.map((Se) => Se === null ? NaN : Number(Se)), se = c.value || s.value, ye = Ie({
4085
4085
  datasetIndex: _,
4086
4086
  isCompare: z.isCompare,
4087
4087
  metricCount: t.value.metricCount,
@@ -4093,11 +4093,11 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4093
4093
  dash: !!z.isCompare,
4094
4094
  lineStyle: ie,
4095
4095
  fill: !1,
4096
- color: Q,
4096
+ color: te,
4097
4097
  pointRadius: se ? 4 : void 0,
4098
4098
  pointHoverRadius: se ? 6 : void 0,
4099
- pointBackgroundColor: se ? Q : void 0,
4100
- pointBorderColor: se ? Q : void 0,
4099
+ pointBackgroundColor: se ? te : void 0,
4100
+ pointBorderColor: se ? te : void 0,
4101
4101
  pointBorderWidth: se ? 2 : void 0
4102
4102
  };
4103
4103
  })
@@ -4118,35 +4118,35 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4118
4118
  useCustomLegend: u,
4119
4119
  legendPosition: I,
4120
4120
  isLegendSide: M,
4121
- isLegendBeforeChart: U,
4121
+ isLegendBeforeChart: K,
4122
4122
  hiddenDatasetKeys: G,
4123
4123
  toggleDatasetVisibility: j,
4124
4124
  datasets: Y
4125
- } = Et({
4125
+ } = Ut({
4126
4126
  chartRef: o,
4127
4127
  model: t,
4128
4128
  baseDatasets: W,
4129
4129
  tileIndex: n.tileIndex
4130
4130
  });
4131
4131
  return (z, _) => {
4132
- var O, N, K, q, $, Q;
4133
- const b = fe("FmLineChart");
4134
- return J(), ce(ze, null, [
4135
- ee("div", pl, [
4132
+ var O, N, X, q, $, te;
4133
+ const b = de("FmLineChart");
4134
+ return J(), ue(Ve, null, [
4135
+ ne("div", hl, [
4136
4136
  Qe(z.$slots, "menu"),
4137
- ee("div", {
4138
- class: Le(["chart-layout", {
4137
+ ne("div", {
4138
+ class: De(["chart-layout", {
4139
4139
  "chart-layout--side": a(u) && (a(f).display ?? !1) && a(M)
4140
4140
  }])
4141
4141
  }, [
4142
- a(u) && (a(f).display ?? !1) && a(U) ? (J(), me(Fe, {
4142
+ a(u) && (a(f).display ?? !1) && a(K) ? (J(), me(Re, {
4143
4143
  key: 0,
4144
4144
  "chart-ref": o.value,
4145
4145
  enabled: a(f).display ?? !1,
4146
4146
  position: a(I),
4147
4147
  "max-width": a(f).maxWidth,
4148
4148
  "text-color": (O = a(f).labels) == null ? void 0 : O.color,
4149
- "font-size": (K = (N = a(f).labels) == null ? void 0 : N.font) == null ? void 0 : K.size,
4149
+ "font-size": (X = (N = a(f).labels) == null ? void 0 : N.font) == null ? void 0 : X.size,
4150
4150
  "legend-update-key": a(Y),
4151
4151
  "chart-color-binding": t.value.chartColorBinding,
4152
4152
  "chart-colors": t.value.chartColors,
@@ -4156,8 +4156,8 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4156
4156
  "hidden-dataset-keys": a(G),
4157
4157
  "use-point-style": t.value.usePointStyle ?? !0,
4158
4158
  onToggleDatasetVisibility: a(j)
4159
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : ve("", !0),
4160
- de(b, {
4159
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : ge("", !0),
4160
+ ce(b, {
4161
4161
  ref_key: "chartRef",
4162
4162
  ref: o,
4163
4163
  class: "line-chart",
@@ -4173,19 +4173,19 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4173
4173
  datalabels: a(g),
4174
4174
  plugins: [a(v), a(R)],
4175
4175
  "maintain-aspect-ratio": !1,
4176
- style: Te({
4176
+ style: Le({
4177
4177
  "--chart-width": a(u) && (a(f).display ?? !1) && a(M) ? "calc(100% - var(--legend-panel-width, 0px))" : a(L) !== void 0 ? a(L) + "px" : "100%",
4178
4178
  "--chart-height": a(u) && (a(f).display ?? !1) && !a(M) ? "calc(100% - var(--legend-panel-height, 0px))" : a(A) !== void 0 ? a(A) + "px" : "100%"
4179
4179
  })
4180
4180
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
4181
- a(u) && (a(f).display ?? !1) && !a(U) ? (J(), me(Fe, {
4181
+ a(u) && (a(f).display ?? !1) && !a(K) ? (J(), me(Re, {
4182
4182
  key: 1,
4183
4183
  "chart-ref": o.value,
4184
4184
  enabled: a(f).display ?? !1,
4185
4185
  position: a(I),
4186
4186
  "max-width": a(f).maxWidth,
4187
4187
  "text-color": (q = a(f).labels) == null ? void 0 : q.color,
4188
- "font-size": (Q = ($ = a(f).labels) == null ? void 0 : $.font) == null ? void 0 : Q.size,
4188
+ "font-size": (te = ($ = a(f).labels) == null ? void 0 : $.font) == null ? void 0 : te.size,
4189
4189
  "legend-update-key": a(Y),
4190
4190
  "chart-color-binding": t.value.chartColorBinding,
4191
4191
  "chart-colors": t.value.chartColors,
@@ -4195,10 +4195,10 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4195
4195
  "hidden-dataset-keys": a(G),
4196
4196
  "use-point-style": t.value.usePointStyle ?? !0,
4197
4197
  onToggleDatasetVisibility: a(j)
4198
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : ve("", !0)
4198
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : ge("", !0)
4199
4199
  ], 2)
4200
4200
  ]),
4201
- de(Ot, {
4201
+ ce(Et, {
4202
4202
  "model-value": a(H),
4203
4203
  "details-payload": a(y),
4204
4204
  "onUpdate:modelValue": a(p),
@@ -4208,7 +4208,7 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4208
4208
  ], 64);
4209
4209
  };
4210
4210
  }
4211
- }), vl = { class: "flex flex-col gap-16" }, yl = { class: "flex flex-row" }, bl = /* @__PURE__ */ Ne({
4211
+ }), pl = { class: "flex flex-col gap-16" }, gl = { class: "flex flex-row" }, vl = /* @__PURE__ */ Fe({
4212
4212
  __name: "PdfOrientationDialog",
4213
4213
  props: /* @__PURE__ */ Ue({
4214
4214
  reportType: {},
@@ -4219,7 +4219,7 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4219
4219
  }),
4220
4220
  emits: ["update:modelValue"],
4221
4221
  setup(e) {
4222
- const { t: n } = dt(), { FmForm: t } = ta, o = e, r = P(), i = Oe(e, "modelValue"), s = P(!0), c = P(!1), d = Dn(), { selectedLocationIds: v, dateRange: R, timeRange: W } = it(on()), H = P(dn.PORTRAIT);
4222
+ const { t: n } = ct(), { FmForm: t } = Qo, o = e, r = P(), i = He(e, "modelValue"), s = P(!0), c = P(!1), d = Ln(), { selectedLocationIds: v, dateRange: R, timeRange: W } = xt(nn()), H = P(dn.PORTRAIT);
4223
4223
  function y() {
4224
4224
  var k;
4225
4225
  (k = r.value) == null || k.validateInputs();
@@ -4227,7 +4227,7 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4227
4227
  async function p() {
4228
4228
  c.value = !0;
4229
4229
  try {
4230
- o.index != null && await co({
4230
+ o.index != null && await io({
4231
4231
  reportType: o.reportType,
4232
4232
  index: o.index,
4233
4233
  orientationTypes: [H.value],
@@ -4243,34 +4243,34 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4243
4243
  }
4244
4244
  }
4245
4245
  return (k, w) => {
4246
- const F = fe("FmRadio"), g = fe("FmRadioGroup"), S = fe("FmButton"), B = fe("FmDialog");
4246
+ const F = de("FmRadio"), g = de("FmRadioGroup"), S = de("FmButton"), B = de("FmDialog");
4247
4247
  return J(), me(B, {
4248
4248
  modelValue: i.value,
4249
4249
  "onUpdate:modelValue": w[2] || (w[2] = (D) => i.value = D),
4250
4250
  overlay: !0,
4251
4251
  "z-index": 10
4252
4252
  }, {
4253
- "dialog-header": ke(() => w[3] || (w[3] = [
4254
- Xo("Select Orientation")
4253
+ "dialog-header": Te(() => w[3] || (w[3] = [
4254
+ Uo("Select Orientation")
4255
4255
  ])),
4256
- default: ke(() => [
4257
- de(a(t), {
4256
+ default: Te(() => [
4257
+ ce(a(t), {
4258
4258
  ref_key: "form",
4259
4259
  ref: r,
4260
4260
  onValidationSuccess: p
4261
4261
  }, {
4262
- default: ke(() => [
4263
- ee("div", vl, [
4264
- de(g, {
4262
+ default: Te(() => [
4263
+ ne("div", pl, [
4264
+ ce(g, {
4265
4265
  modelValue: H.value,
4266
4266
  "onUpdate:modelValue": w[0] || (w[0] = (D) => H.value = D)
4267
4267
  }, {
4268
- default: ke(() => [
4269
- de(F, {
4268
+ default: Te(() => [
4269
+ ce(F, {
4270
4270
  value: a(dn).PORTRAIT,
4271
4271
  label: a(n)("report.common.portrait")
4272
4272
  }, null, 8, ["value", "label"]),
4273
- de(F, {
4273
+ ce(F, {
4274
4274
  value: a(dn).LANDSCAPE,
4275
4275
  label: a(n)("report.common.landscape")
4276
4276
  }, null, 8, ["value", "label"])
@@ -4278,15 +4278,15 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4278
4278
  _: 1
4279
4279
  }, 8, ["modelValue"])
4280
4280
  ]),
4281
- ee("div", yl, [
4282
- w[4] || (w[4] = ee("div", { class: "grow" }, null, -1)),
4283
- de(S, {
4281
+ ne("div", gl, [
4282
+ w[4] || (w[4] = ne("div", { class: "grow" }, null, -1)),
4283
+ ce(S, {
4284
4284
  label: a(n)("report.common.cancel"),
4285
4285
  variant: "tertiary",
4286
4286
  onClick: w[1] || (w[1] = (D) => i.value = !1)
4287
4287
  }, null, 8, ["label"]),
4288
- ee("div", null, [
4289
- de(S, {
4288
+ ne("div", null, [
4289
+ ce(S, {
4290
4290
  label: a(n)("report.common.download"),
4291
4291
  loading: c.value,
4292
4292
  onClick: y
@@ -4302,8 +4302,8 @@ const pl = { class: "widget-content" }, gl = /* @__PURE__ */ Ne({
4302
4302
  };
4303
4303
  }
4304
4304
  });
4305
- function Cl(e) {
4306
- const { breakpoints: n } = Vt(), { containerRef: t, isTable: o = P(!0) } = e;
4305
+ function yl(e) {
4306
+ const { breakpoints: n } = zt(), { containerRef: t, isTable: o = P(!0) } = e;
4307
4307
  let r = P(1), i = null, s = null, c = null, d = null, v = null, R = null;
4308
4308
  function W() {
4309
4309
  return t.value ? t.value.querySelector("table") : null;
@@ -4353,10 +4353,10 @@ function Cl(e) {
4353
4353
  function p(f, L) {
4354
4354
  const A = f.querySelectorAll("th, td"), u = L.querySelectorAll("th, td");
4355
4355
  A.forEach((I, M) => {
4356
- const U = u[M];
4357
- if (!U) return;
4356
+ const K = u[M];
4357
+ if (!K) return;
4358
4358
  const G = I, j = window.getComputedStyle(G);
4359
- Object.assign(U.style, {
4359
+ Object.assign(K.style, {
4360
4360
  width: `${G.offsetWidth}px`,
4361
4361
  minWidth: `${G.offsetWidth}px`,
4362
4362
  maxWidth: `${G.offsetWidth}px`,
@@ -4371,7 +4371,7 @@ function Cl(e) {
4371
4371
  boxSizing: "border-box",
4372
4372
  cursor: j.cursor || "pointer",
4373
4373
  pointerEvents: "auto"
4374
- }), U.onclick = (Y) => {
4374
+ }), K.onclick = (Y) => {
4375
4375
  Y.preventDefault(), Y.stopPropagation();
4376
4376
  const z = G.querySelector(
4377
4377
  "button, a, [role='button']"
@@ -4405,7 +4405,7 @@ function Cl(e) {
4405
4405
  return;
4406
4406
  }
4407
4407
  i.style.visibility = "visible", i.style.top = `${u}px`;
4408
- const M = window.getComputedStyle(t.value), U = parseFloat(M.paddingLeft) || 0, G = parseFloat(M.paddingRight) || 0, j = f.left + U, Y = f.right - G, z = Math.max(j, f.left), _ = Math.min(Y, f.right), b = Math.max(0, _ - z);
4408
+ const M = window.getComputedStyle(t.value), K = parseFloat(M.paddingLeft) || 0, G = parseFloat(M.paddingRight) || 0, j = f.left + K, Y = f.right - G, z = Math.max(j, f.left), _ = Math.min(Y, f.right), b = Math.max(0, _ - z);
4409
4409
  if (b <= 0) {
4410
4410
  i.style.visibility = "hidden";
4411
4411
  return;
@@ -4467,25 +4467,25 @@ function Cl(e) {
4467
4467
  function D() {
4468
4468
  y();
4469
4469
  }
4470
- return De(o, (f) => {
4470
+ return Pe(o, (f) => {
4471
4471
  f ? y() : B();
4472
- }), De(r, () => {
4472
+ }), Pe(r, () => {
4473
4473
  i && (i.style.top = `${r.value}px`, w());
4474
- }), De(t, () => {
4474
+ }), Pe(t, () => {
4475
4475
  t.value && o.value && setTimeout(y, 100);
4476
- }), ct(() => {
4476
+ }), ut(() => {
4477
4477
  o.value && setTimeout(y, 100);
4478
- }), io(() => {
4478
+ }), lo(() => {
4479
4479
  B();
4480
4480
  }), { refresh: D, cleanup: B };
4481
4481
  }
4482
- const xl = {
4482
+ const bl = {
4483
4483
  key: 1,
4484
4484
  class: "grow"
4485
- }, wl = {
4485
+ }, Cl = {
4486
4486
  key: 2,
4487
4487
  class: "flex"
4488
- }, Fl = /* @__PURE__ */ Ne({
4488
+ }, Al = /* @__PURE__ */ Fe({
4489
4489
  __name: "DynamicWidget",
4490
4490
  props: /* @__PURE__ */ Ue({
4491
4491
  index: {
@@ -4512,73 +4512,71 @@ const xl = {
4512
4512
  }),
4513
4513
  emits: ["update:modelValue"],
4514
4514
  setup(e) {
4515
- const n = P(!0), t = Oe(e, "modelValue"), o = t.value.widget.config, { t: r, te: i, locale: s } = dt(), c = e, d = P(null), v = x(() => t.value.widget.type === ne.Table), R = x(() => {
4515
+ const n = P(!0), t = He(e, "modelValue"), o = t.value.widget.config, { t: r, te: i, locale: s } = ct(), c = e, d = P(null), v = x(() => t.value.widget.type === oe.Table), R = x(() => {
4516
4516
  var T;
4517
4517
  return (T = d.value) == null ? void 0 : T.$el;
4518
- }), { refresh: W } = Cl({
4518
+ }), { refresh: W } = yl({
4519
4519
  containerRef: R,
4520
4520
  isTable: v
4521
- }), H = P(o.rollup), y = P(Ft()), p = P(o.drillDimension), k = x(() => {
4522
- if (Pe.value.length > 0) {
4523
- const T = Pe.value.findIndex(
4524
- (he) => he.value === p.value
4521
+ }), H = P(o.rollup), y = P(Nt()), p = P(o.drillDimension), k = x(() => {
4522
+ if (we.value.length > 0) {
4523
+ const T = we.value.findIndex(
4524
+ (fe) => fe.value === p.value
4525
4525
  );
4526
4526
  return T >= 0 ? T : 0;
4527
4527
  } else
4528
4528
  return -1;
4529
4529
  }), w = x(() => k.value !== 0), F = x(
4530
- () => k.value != Pe.value.length - 1
4530
+ () => k.value != we.value.length - 1
4531
4531
  ), g = P(o.showTitle ?? !0), S = P(o.titleFontSize ?? 14), B = P(o.titleBold ?? !1), D = P(o.titleItalic ?? !1), f = P(o.titleUnderline ?? !1), L = P(o.chartWidth ?? void 0), A = P(o.chartHeight ?? void 0), u = P(
4532
4532
  Array.isArray(o.chartColors) ? [...o.chartColors] : void 0
4533
4533
  ), I = P(
4534
4534
  Array.isArray(o.chartColorLayers) ? [...o.chartColorLayers] : void 0
4535
4535
  ), M = P(
4536
4536
  Array.isArray(o.chartBreakdownColors) ? [...o.chartBreakdownColors] : void 0
4537
- ), U = P(o.chartUseSecondaryMetricShades ?? !0), G = P(o.chartColorBinding), j = P(
4537
+ ), K = P(o.chartUseSecondaryMetricShades ?? !0), G = P(o.chartColorBinding), j = P(
4538
4538
  Array.isArray(o.lineStyles) ? [...o.lineStyles] : void 0
4539
- ), Y = P(o.lineStyleBinding), z = P(o.showLabel ?? !1), _ = P(o.labelAlign ?? Cn.center), b = P(o.labelAnchor ?? bn.center), O = P(o.labelRotation ?? 0), N = P(o.labelOffset ?? 0), K = P(o.labelFontSize ?? 12), q = x(() => o.showSearchBar), $ = P(o.showX ?? !0), Q = P(o.xPosition ?? xn.bottom), oe = P(o.showXGrid ?? !1), le = P(o.showXTick ?? !0), se = P(o.xTickFontSize ?? 12), ye = P(o.showXTitle ?? !1), ie = P(o.xTitle ?? ""), be = P(o.xTitleFontSize ?? 12), we = P(o.showY ?? !0), Se = P(o.yPosition ?? wn.left), Ke = P(o.showYGrid ?? !1), Xe = P(o.showYTick ?? !0), et = P(o.yTickFontSize ?? 12), Dt = P(o.showYTitle ?? !1), ft = P(o.yTitle ?? ""), ht = P(o.yTitleFontSize ?? 12), mt = P(o.showLegend ?? void 0), tt = P(o.legendPosition ?? Sn.top), nt = P(o.usePointStyle ?? !0), pt = P(o.legendFontSize), $e = P(o.legendColor ?? "#6b6b6b"), ot = P(o.legendMaxWidth), Ut = P(o.maxTooltipItems), Kt = P(o.stackBarOverlap ?? !1), Pt = P(o.rowHeight ?? 0), Ye = P(o.colWidths ?? []), It = P(!1), Mt = P(""), { breakpoints: qe, getBreakpointsBoundary: Ge } = Vt(), Xt = P(), _e = x(
4539
+ ), Y = P(o.lineStyleBinding), z = P(o.showLabel ?? !1), _ = P(o.labelAlign ?? Cn.center), b = P(o.labelAnchor ?? bn.center), O = P(o.labelRotation ?? 0), N = P(o.labelOffset ?? 0), X = P(o.labelFontSize ?? 12), q = x(() => o.showSearchBar), $ = P(o.showX ?? !0), te = P(o.xPosition ?? xn.bottom), ae = P(o.showXGrid ?? !1), le = P(o.showXTick ?? !0), se = P(o.xTickFontSize ?? 12), ye = P(o.showXTitle ?? !1), ie = P(o.xTitle ?? ""), be = P(o.xTitleFontSize ?? 12), Se = P(o.showY ?? !0), _e = P(o.yPosition ?? wn.left), Ke = P(o.showYGrid ?? !1), Xe = P(o.showYTick ?? !0), et = P(o.yTickFontSize ?? 12), Dt = P(o.showYTitle ?? !1), dt = P(o.yTitle ?? ""), ft = P(o.yTitleFontSize ?? 12), ht = P(o.showLegend ?? void 0), tt = P(o.legendPosition ?? Sn.top), nt = P(o.usePointStyle ?? !0), mt = P(o.legendFontSize), Ne = P(o.legendColor ?? "#6b6b6b"), ot = P(o.legendMaxWidth), Kt = P(o.maxTooltipItems), Xt = P(o.stackBarOverlap ?? !1), Pt = P(o.rowHeight ?? 0), Ye = P(o.colWidths ?? []), It = P(!1), Mt = P(""), { breakpoints: qe, getBreakpointsBoundary: Ge } = zt(), Yt = P(), ke = x(
4540
4540
  () => c.customScreenWidth === void 0 ? window.innerWidth : c.customScreenWidth
4541
4541
  ), Bt = x(
4542
- () => (_e == null ? void 0 : _e.value) > Ge("xs")[1] && (_e == null ? void 0 : _e.value) <= Ge("sm")[1]
4543
- ), rn = x(
4544
- () => (_e == null ? void 0 : _e.value) > Ge("sm")[1] && (_e == null ? void 0 : _e.value) <= Ge("md")[1]
4545
- ), ln = x(() => (_e == null ? void 0 : _e.value) > Ge("md")[1]), Yt = x(() => {
4542
+ () => (ke == null ? void 0 : ke.value) > Ge("xs")[1] && (ke == null ? void 0 : ke.value) <= Ge("sm")[1]
4543
+ ), an = x(
4544
+ () => (ke == null ? void 0 : ke.value) > Ge("sm")[1] && (ke == null ? void 0 : ke.value) <= Ge("md")[1]
4545
+ ), rn = x(() => (ke == null ? void 0 : ke.value) > Ge("md")[1]), qt = x(() => {
4546
4546
  const T = t.value.size.width;
4547
- return ln.value || rn.value ? fl(T) : Bt.value ? hl(T) : ml(T);
4548
- }), gt = x(
4549
- () => na.find((T) => T.type === t.value.widget.type)
4547
+ return rn.value || an.value ? cl(T) : Bt.value ? dl(T) : fl(T);
4548
+ }), pt = x(
4549
+ () => ea.find((T) => T.type === t.value.widget.type)
4550
4550
  ), je = gn(() => {
4551
4551
  var T;
4552
- Xt.value = un((T = d.value) == null ? void 0 : T.$el.offsetWidth), y.value = Ft();
4553
- }), sn = x(() => {
4554
- if (oa(re.value.type, l.value))
4552
+ Yt.value = at((T = d.value) == null ? void 0 : T.$el.offsetWidth), y.value = Nt();
4553
+ }), ln = x(() => {
4554
+ if (ta(Q.value.type, l.value))
4555
4555
  switch (t.value.widget.type) {
4556
- case ne.BarChart:
4556
+ case oe.BarChart:
4557
+ return Fr;
4558
+ case oe.StackBarChart:
4559
+ return ol;
4560
+ case oe.ClusteredStackBarChart:
4561
+ return ll;
4562
+ case oe.LineChart:
4563
+ return ml;
4564
+ case oe.StackLineChart:
4565
+ return ul;
4566
+ case oe.Circular:
4557
4567
  return $r;
4558
- case ne.StackBarChart:
4559
- return rl;
4560
- case ne.ClusteredStackBarChart:
4561
- return il;
4562
- case ne.LineChart:
4563
- return gl;
4564
- case ne.StackLineChart:
4565
- return dl;
4566
- case ne.Circular:
4567
- return zr;
4568
- case ne.Scorecard:
4569
- return Xr;
4570
- case ne.Spacer:
4571
- return Gr;
4572
- case ne.Table:
4573
- return nl;
4568
+ case oe.Scorecard:
4569
+ return Ur;
4570
+ case oe.Spacer:
4571
+ return Yr;
4572
+ case oe.Table:
4573
+ return el;
4574
4574
  default:
4575
- return Hn;
4575
+ return Vn;
4576
4576
  }
4577
4577
  else
4578
- return Hn;
4579
- }), l = P(null), { selectedLocationIds: m, dateRange: h, compareDateRange: C, timeRange: V } = it(on()), { globalFilters: X, isGlobalFiltersLoading: Z } = it(Jo()), { businessId: te } = it(Ln()), { businessLoadedId: E, businessDataVersion: ue } = it(on());
4580
- x(() => E.value === te.value && m.value.length > 0 && !Z.value);
4581
- const ge = P(!0), re = x(() => {
4578
+ return Vn;
4579
+ }), l = P(null), { selectedLocationIds: m, dateRange: h, compareDateRange: C, timeRange: V } = xt(nn()), { globalFilters: E, isAllGlobalFiltersLoaded: Z } = xt(Go()), { businessDataVersion: ee } = xt(nn()), U = P(!0), Q = x(() => {
4582
4580
  const T = JSON.parse(JSON.stringify(t.value.widget));
4583
4581
  return {
4584
4582
  ...T,
@@ -4589,21 +4587,21 @@ const xl = {
4589
4587
  showGrandTotal: !1
4590
4588
  }
4591
4589
  };
4592
- }), ae = x(() => {
4593
- var Re;
4594
- const T = ((Re = re.value.config.metrics) == null ? void 0 : Re.length) ?? 0;
4595
- if (!re.value.config.isBlend)
4590
+ }), pe = x(() => {
4591
+ var Ae;
4592
+ const T = ((Ae = Q.value.config.metrics) == null ? void 0 : Ae.length) ?? 0;
4593
+ if (!Q.value.config.isBlend)
4596
4594
  return T;
4597
- const he = (re.value.config.joinDatasources ?? []).reduce(
4595
+ const fe = (Q.value.config.joinDatasources ?? []).reduce(
4598
4596
  (rt, cn) => {
4599
- var vt;
4600
- return rt + (((vt = cn.metrics) == null ? void 0 : vt.length) ?? 0);
4597
+ var gt;
4598
+ return rt + (((gt = cn.metrics) == null ? void 0 : gt.length) ?? 0);
4601
4599
  },
4602
4600
  0
4603
4601
  );
4604
- return T + he;
4602
+ return T + fe;
4605
4603
  });
4606
- function pe() {
4604
+ function ve() {
4607
4605
  return {
4608
4606
  data: l.value,
4609
4607
  showTitle: g.value,
@@ -4616,9 +4614,9 @@ const xl = {
4616
4614
  chartColors: u.value,
4617
4615
  chartColorLayers: I.value,
4618
4616
  chartBreakdownColors: M.value,
4619
- chartUseSecondaryMetricShades: U.value,
4617
+ chartUseSecondaryMetricShades: K.value,
4620
4618
  chartColorBinding: G.value,
4621
- metricCount: ae.value,
4619
+ metricCount: pe.value,
4622
4620
  lineStyles: j.value,
4623
4621
  lineStyleBinding: Y.value,
4624
4622
  showLabel: z.value,
@@ -4626,147 +4624,148 @@ const xl = {
4626
4624
  labelAlign: _.value,
4627
4625
  labelRotation: O.value,
4628
4626
  labelOffset: N.value,
4629
- labelFontSize: K.value,
4627
+ labelFontSize: X.value,
4630
4628
  showX: $.value,
4631
- xPosition: Q.value,
4632
- showXGrid: oe.value,
4629
+ xPosition: te.value,
4630
+ showXGrid: ae.value,
4633
4631
  showXTick: le.value,
4634
4632
  xTickFontSize: se.value,
4635
4633
  showXTitle: ye.value,
4636
4634
  xTitle: ie.value,
4637
4635
  xTitleFontSize: be.value,
4638
- showY: we.value,
4639
- yPosition: Se.value,
4636
+ showY: Se.value,
4637
+ yPosition: _e.value,
4640
4638
  showYGrid: Ke.value,
4641
4639
  showYTick: Xe.value,
4642
- yTitle: ft.value,
4640
+ yTitle: dt.value,
4643
4641
  showYTitle: Dt.value,
4644
- yTitleFontSize: ht.value,
4642
+ yTitleFontSize: ft.value,
4645
4643
  yTickFontSize: et.value,
4646
- isTransposed: re.value.config.isTransposed,
4647
- showLegend: mt.value,
4644
+ isTransposed: Q.value.config.isTransposed,
4645
+ showLegend: ht.value,
4648
4646
  legendPosition: tt.value,
4649
4647
  usePointStyle: nt.value,
4650
- legendFontSize: pt.value,
4651
- legendColor: $e.value,
4648
+ legendFontSize: mt.value,
4649
+ legendColor: Ne.value,
4652
4650
  legendMaxWidth: ot.value,
4653
- maxTooltipItems: Ut.value,
4654
- stackBarOverlap: Kt.value
4651
+ maxTooltipItems: Kt.value,
4652
+ stackBarOverlap: Xt.value
4655
4653
  };
4656
4654
  }
4657
- function Ce() {
4655
+ function re() {
4658
4656
  return {
4659
4657
  data: l.value,
4660
4658
  filterText: Mt.value,
4661
- rollupPosition: re.value.config.rollupPosition,
4662
- grandTotalLabel: re.value.config.grandTotalLabel,
4659
+ rollupPosition: Q.value.config.rollupPosition,
4660
+ grandTotalLabel: Q.value.config.grandTotalLabel,
4663
4661
  rowHeight: Pt.value,
4664
4662
  colWidths: Ye.value
4665
4663
  };
4666
4664
  }
4667
- const Me = x(() => {
4668
- switch (re.value.type) {
4669
- case ne.Table:
4670
- return Ce();
4671
- case ne.BarChart:
4672
- case ne.LineChart:
4673
- case ne.StackBarChart:
4674
- case ne.ClusteredStackBarChart:
4675
- case ne.StackLineChart:
4676
- case ne.Circular:
4677
- return pe();
4665
+ const he = x(() => {
4666
+ switch (Q.value.type) {
4667
+ case oe.Table:
4668
+ return re();
4669
+ case oe.BarChart:
4670
+ case oe.LineChart:
4671
+ case oe.StackBarChart:
4672
+ case oe.ClusteredStackBarChart:
4673
+ case oe.StackLineChart:
4674
+ case oe.Circular:
4675
+ return ve();
4678
4676
  default:
4679
4677
  return { data: l.value };
4680
4678
  }
4681
- }), He = x(() => {
4679
+ }), Ce = x(() => {
4682
4680
  const { config: T } = t.value.widget;
4683
4681
  if (T.rollup != null) {
4684
- const he = [...T.dimensions].filter((Re) => !Re.hide);
4685
- return he.sort(
4686
- (Re, rt) => (T.rowIds || []).indexOf(fn(Re)) - (T.rowIds || []).indexOf(fn(rt))
4682
+ const fe = [...T.dimensions].filter((Ae) => !Ae.hide);
4683
+ return fe.sort(
4684
+ (Ae, rt) => (T.rowIds || []).indexOf(fn(Ae)) - (T.rowIds || []).indexOf(fn(rt))
4687
4685
  ), [
4688
4686
  { label: lt(r, i, "None", "other"), value: "none" },
4689
4687
  { label: lt(r, i, "Grand Total", "other"), value: 0 },
4690
- ...[...he].slice(0, he.length - 1).map((Re, rt) => ({
4691
- label: lt(r, i, Re.label, "other"),
4688
+ ...[...fe].slice(0, fe.length - 1).map((Ae, rt) => ({
4689
+ label: lt(r, i, Ae.label, "other"),
4692
4690
  value: rt + 1
4693
4691
  }))
4694
4692
  ];
4695
4693
  }
4696
4694
  return [];
4697
- }), Pe = x(() => {
4698
- const { config: T } = re.value;
4699
- return T.isDrillable ? T.dimensions.map((he) => ({
4700
- label: lt(r, i, he.label, "other"),
4701
- value: fn(he)
4695
+ }), we = x(() => {
4696
+ const { config: T } = Q.value;
4697
+ return T.isDrillable ? T.dimensions.map((fe) => ({
4698
+ label: lt(r, i, fe.label, "other"),
4699
+ value: fn(fe)
4702
4700
  })) : [];
4703
- }), at = x(() => {
4701
+ }), We = x(() => {
4704
4702
  const T = t.value.id;
4705
- return (X.value || []).filter(
4706
- (he) => Array.isArray(he.tileIds) && he.tileIds.includes(T)
4703
+ return (E.value || []).filter(
4704
+ (fe) => Array.isArray(fe.tileIds) && fe.tileIds.includes(T)
4707
4705
  );
4708
4706
  });
4709
- De(
4707
+ Pe(
4710
4708
  () => t.value.widget.config,
4711
4709
  (T) => {
4712
- H.value = T.rollup, g.value = T.showTitle ?? !0, S.value = T.titleFontSize ?? 14, B.value = T.titleBold ?? !1, D.value = T.titleItalic ?? !1, f.value = T.titleUnderline ?? !1, A.value = T.chartHeight ?? void 0, L.value = T.chartWidth ?? void 0, u.value = Array.isArray(T.chartColors) ? [...T.chartColors] : void 0, I.value = Array.isArray(T.chartColorLayers) ? [...T.chartColorLayers] : void 0, M.value = Array.isArray(T.chartBreakdownColors) ? [...T.chartBreakdownColors] : void 0, U.value = T.chartUseSecondaryMetricShades ?? !0, G.value = T.chartColorBinding, j.value = Array.isArray(T.lineStyles) ? [...T.lineStyles] : void 0, Y.value = T.lineStyleBinding, z.value = T.showLabel ?? !1, _.value = T.labelAlign ?? Cn.center, b.value = T.labelAnchor ?? bn.center, O.value = T.labelRotation ?? 0, N.value = T.labelOffset ?? 0, K.value = T.labelFontSize ?? 12, $.value = T.showX ?? !0, Q.value = T.xPosition ?? xn.bottom, oe.value = T.showXGrid ?? !1, le.value = T.showXTick ?? !0, se.value = T.xTickFontSize ?? 12, ye.value = T.showXTitle ?? !1, ie.value = T.xTitle ?? "", be.value = T.xTitleFontSize ?? 12, we.value = T.showY ?? !0, Se.value = T.yPosition ?? wn.left, Ke.value = T.showYGrid ?? !1, Xe.value = T.showYTick ?? !0, et.value = T.yTickFontSize ?? 12, Dt.value = T.showYTitle ?? !1, ft.value = T.yTitle ?? "", ht.value = T.yTitleFontSize ?? 12, mt.value = T.showLegend ?? void 0, tt.value = T.legendPosition ?? Sn.top, nt.value = T.usePointStyle ?? !0, pt.value = T.legendFontSize, $e.value = T.legendColor ?? "#6b6b6b", ot.value = T.legendMaxWidth, Ut.value = T.maxTooltipItems, Kt.value = T.stackBarOverlap ?? !1, Pt.value = T.rowHeight ?? 0, Ye.value = T.colWidths ?? [], y.value = Ft();
4710
+ H.value = T.rollup, g.value = T.showTitle ?? !0, S.value = T.titleFontSize ?? 14, B.value = T.titleBold ?? !1, D.value = T.titleItalic ?? !1, f.value = T.titleUnderline ?? !1, A.value = T.chartHeight ?? void 0, L.value = T.chartWidth ?? void 0, u.value = Array.isArray(T.chartColors) ? [...T.chartColors] : void 0, I.value = Array.isArray(T.chartColorLayers) ? [...T.chartColorLayers] : void 0, M.value = Array.isArray(T.chartBreakdownColors) ? [...T.chartBreakdownColors] : void 0, K.value = T.chartUseSecondaryMetricShades ?? !0, G.value = T.chartColorBinding, j.value = Array.isArray(T.lineStyles) ? [...T.lineStyles] : void 0, Y.value = T.lineStyleBinding, z.value = T.showLabel ?? !1, _.value = T.labelAlign ?? Cn.center, b.value = T.labelAnchor ?? bn.center, O.value = T.labelRotation ?? 0, N.value = T.labelOffset ?? 0, X.value = T.labelFontSize ?? 12, $.value = T.showX ?? !0, te.value = T.xPosition ?? xn.bottom, ae.value = T.showXGrid ?? !1, le.value = T.showXTick ?? !0, se.value = T.xTickFontSize ?? 12, ye.value = T.showXTitle ?? !1, ie.value = T.xTitle ?? "", be.value = T.xTitleFontSize ?? 12, Se.value = T.showY ?? !0, _e.value = T.yPosition ?? wn.left, Ke.value = T.showYGrid ?? !1, Xe.value = T.showYTick ?? !0, et.value = T.yTickFontSize ?? 12, Dt.value = T.showYTitle ?? !1, dt.value = T.yTitle ?? "", ft.value = T.yTitleFontSize ?? 12, ht.value = T.showLegend ?? void 0, tt.value = T.legendPosition ?? Sn.top, nt.value = T.usePointStyle ?? !0, mt.value = T.legendFontSize, Ne.value = T.legendColor ?? "#6b6b6b", ot.value = T.legendMaxWidth, Kt.value = T.maxTooltipItems, Xt.value = T.stackBarOverlap ?? !1, Pt.value = T.rowHeight ?? 0, Ye.value = T.colWidths ?? [], y.value = Nt();
4713
4711
  },
4714
4712
  { deep: !0 }
4715
- ), De([() => H.value], () => {
4713
+ ), Pe([() => H.value], () => {
4716
4714
  H.value !== null && (t.value.widget.config.rollup = H.value);
4717
- }), De(
4715
+ }), Pe(
4718
4716
  [
4719
- () => re.value,
4717
+ () => Q.value,
4720
4718
  () => h.value,
4721
4719
  () => V.value,
4722
4720
  () => C.value,
4723
4721
  () => m.value,
4724
- () => at.value,
4725
- () => ue.value
4722
+ () => We.value,
4723
+ () => ee.value,
4724
+ () => Z.value
4726
4725
  ],
4727
4726
  () => {
4728
- qt();
4727
+ Me();
4729
4728
  },
4730
4729
  { deep: !0 }
4731
- ), De(
4730
+ ), Pe(
4732
4731
  [() => t.value.size],
4733
4732
  () => {
4734
4733
  je();
4735
4734
  },
4736
4735
  { deep: !0 }
4737
- ), ct(() => {
4738
- je(), qe.value.sm || qe.value.md || qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", je)) : addEventListener("resize", je), qt();
4739
- }), io(() => {
4736
+ ), ut(() => {
4737
+ je(), qe.value.sm || qe.value.md || qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", je)) : addEventListener("resize", je), Me();
4738
+ }), lo(() => {
4740
4739
  qe.value.sm || qe.value.md || qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", je)) : removeEventListener("resize", je);
4741
4740
  });
4742
- const Be = Dn();
4743
- let We;
4744
- async function qt() {
4745
- if (!c.isStyleEditing) {
4746
- if (re.value.config.schemaNames.length <= 0 && !(re.value.config.dimensions.length <= 0 || re.value.config.metrics.length <= 0)) {
4747
- Be.open({
4741
+ const Oe = Ln();
4742
+ let ze;
4743
+ async function Me() {
4744
+ if (!(E.value.length > 0 && !Z.value) && !c.isStyleEditing) {
4745
+ if (Q.value.config.schemaNames.length <= 0 && !(Q.value.config.dimensions.length <= 0 || Q.value.config.metrics.length <= 0)) {
4746
+ Oe.open({
4748
4747
  message: "schema must not be empty and dimension or metrics must have at least 1 column",
4749
4748
  type: "info"
4750
4749
  }), n.value = !1;
4751
4750
  return;
4752
4751
  }
4753
4752
  try {
4754
- n.value = !0, We && We.abort(), We = new AbortController();
4755
- const T = We.signal, he = ue.value, Re = await gn(
4756
- Zo,
4753
+ n.value = !0, ze && ze.abort(), ze = new AbortController();
4754
+ const T = ze.signal, fe = ee.value, Ae = await gn(
4755
+ jo,
4757
4756
  500
4758
4757
  )({
4759
- widget: re.value,
4758
+ widget: Q.value,
4760
4759
  signal: T,
4761
4760
  tileId: t.value.id
4762
4761
  });
4763
- ue.value === he && (l.value = Re, y.value = Ft(), setTimeout(() => W(), 100)), n.value = !1;
4762
+ ee.value === fe && (l.value = Ae, y.value = Nt(), setTimeout(() => W(), 100)), n.value = !1;
4764
4763
  } catch (T) {
4765
- T.code !== "ERR_CANCELED" && (l.value = null, Be.open({ message: `Invalid chart ${re.value.type}`, type: "error" }), console.log(T), n.value = !1);
4764
+ T.code !== "ERR_CANCELED" && (l.value = null, Oe.open({ message: `Invalid chart ${Q.value.type}`, type: "error" }), console.log(T), n.value = !1);
4766
4765
  }
4767
4766
  }
4768
4767
  }
4769
- function un(T) {
4768
+ function at(T) {
4770
4769
  switch (t.value.widget.type) {
4771
4770
  case "SPACER":
4772
4771
  return;
@@ -4777,130 +4776,130 @@ const xl = {
4777
4776
  }
4778
4777
  return `${Math.max(T / t.value.size.width, 90) * t.value.size.height}px`;
4779
4778
  }
4780
- function Gt() {
4779
+ function sn() {
4781
4780
  const T = k.value - 1;
4782
- T >= 0 && (p.value = Pe.value[T].value);
4781
+ T >= 0 && (p.value = we.value[T].value);
4783
4782
  }
4784
- function Bo() {
4783
+ function un() {
4785
4784
  const T = k.value + 1;
4786
- T >= 0 && T < Pe.value.length && (p.value = Pe.value[T].value);
4785
+ T >= 0 && T < we.value.length && (p.value = we.value[T].value);
4787
4786
  }
4788
- const Fn = P(bt.EXCEL), Nn = P(), Ao = Object.values(bt).map((T) => ({
4789
- label: Qo(T),
4787
+ const At = P(yt.EXCEL), Rn = P(), Mo = Object.values(yt).map((T) => ({
4788
+ label: Jo(T),
4790
4789
  value: T,
4791
4790
  onClick: async () => {
4792
- T === bt.EXCEL || T === bt.PDFFULLSIZE || T === bt.PDFRECEIPT ? await co({
4791
+ T === yt.EXCEL || T === yt.PDFFULLSIZE || T === yt.PDFRECEIPT ? await io({
4793
4792
  reportType: T,
4794
4793
  index: c.index,
4795
- isCombinedLocationLayout: ge.value,
4794
+ isCombinedLocationLayout: U.value,
4796
4795
  timeRange: V.value,
4797
4796
  dateRange: h.value,
4798
4797
  locationIds: m.value
4799
- }) : T === bt.PDF && (Fn.value = T, Nn.value = c.index, It.value = !0);
4798
+ }) : T === yt.PDF && (At.value = T, Rn.value = c.index, It.value = !0);
4800
4799
  }
4801
- })), Ro = re.value.type === ne.Spacer ? "flat" : "outlined", Fo = re.value.type === ne.Spacer ? "p-0" : "p-16";
4802
- return (T, he) => {
4803
- const Re = fe("FmTooltip"), rt = fe("FmSearch"), cn = fe("FmCheckbox"), vt = fe("FmButton"), No = fe("FmSelect"), $o = fe("FmMenuItem"), Vo = fe("FmMenu"), zo = fe("FmForm"), Ho = fe("FmCircularProgress"), Wo = fe("FmCard");
4804
- return J(), me(Wo, {
4800
+ })), Bo = Q.value.type === oe.Spacer ? "flat" : "outlined", Ao = Q.value.type === oe.Spacer ? "p-0" : "p-16";
4801
+ return (T, fe) => {
4802
+ const Ae = de("FmTooltip"), rt = de("FmSearch"), cn = de("FmCheckbox"), gt = de("FmButton"), Ro = de("FmSelect"), Fo = de("FmMenuItem"), No = de("FmMenu"), $o = de("FmForm"), Vo = de("FmCircularProgress"), zo = de("FmCard");
4803
+ return J(), me(zo, {
4805
4804
  ref_key: "tileCard",
4806
4805
  ref: d,
4807
- class: Le(`${Yt.value} ${a(Fo)}`),
4808
- variant: a(Ro)
4806
+ class: De(`${qt.value} ${a(Ao)}`),
4807
+ variant: a(Bo)
4809
4808
  }, {
4810
- default: ke(() => [
4811
- de(bl, {
4809
+ default: Te(() => [
4810
+ ce(vl, {
4812
4811
  modelValue: It.value,
4813
- "onUpdate:modelValue": he[0] || (he[0] = (yt) => It.value = yt),
4814
- "report-type": Fn.value,
4815
- index: Nn.value
4812
+ "onUpdate:modelValue": fe[0] || (fe[0] = (vt) => It.value = vt),
4813
+ "report-type": At.value,
4814
+ index: Rn.value
4816
4815
  }, null, 8, ["modelValue", "report-type", "index"]),
4817
- !n.value && !a(Z) ? (J(), ce("div", {
4816
+ (a(E).length > 0 ? a(Z) && !n.value : !n.value) ? (J(), ue("div", {
4818
4817
  key: 0,
4819
- style: Te({ height: Xt.value })
4818
+ style: Le({ height: Yt.value })
4820
4819
  }, [
4821
- (J(), me(so(sn.value), {
4820
+ (J(), me(ro(ln.value), {
4822
4821
  key: y.value,
4823
- modelValue: Me.value,
4824
- "onUpdate:modelValue": he[4] || (he[4] = (yt) => Me.value = yt),
4822
+ modelValue: he.value,
4823
+ "onUpdate:modelValue": fe[4] || (fe[4] = (vt) => he.value = vt),
4825
4824
  "tile-index": c.index
4826
4825
  }, {
4827
- menu: ke(() => [
4828
- de(zo, { class: "flex items-center gap-2" }, {
4829
- default: ke(() => {
4830
- var yt, $n, Vn, zn;
4826
+ menu: Te(() => [
4827
+ ce($o, { class: "flex items-center gap-2" }, {
4828
+ default: Te(() => {
4829
+ var vt, Fn, Nn, $n;
4831
4830
  return [
4832
- de(Re, {
4831
+ ce(Ae, {
4833
4832
  variant: "plain",
4834
4833
  placement: "right",
4835
- content: re.value.description,
4834
+ content: Q.value.description,
4836
4835
  "hide-arrow": !0,
4837
- disabled: !re.value.description,
4836
+ disabled: !Q.value.description,
4838
4837
  "z-index": 99
4839
4838
  }, {
4840
- default: ke(() => [
4841
- g.value !== !1 ? (J(), ce("p", {
4839
+ default: Te(() => [
4840
+ g.value !== !1 ? (J(), ue("p", {
4842
4841
  key: 0,
4843
- style: Te({
4842
+ style: Le({
4844
4843
  fontSize: S.value + "px",
4845
4844
  fontWeight: B.value ? "bold" : "normal",
4846
4845
  fontStyle: D.value ? "italic" : "normal",
4847
4846
  textDecoration: f.value ? "underline" : "none"
4848
4847
  }),
4849
- class: Le(["text-fm-color-typo-secondary line-clamp-1", [
4848
+ class: De(["text-fm-color-typo-secondary line-clamp-1", [
4850
4849
  S.value <= 18 ? "fm-typo-en-body-md-400" : "",
4851
- re.value.description ? "border-b-2 border-dashed border-gray-300" : ""
4850
+ Q.value.description ? "border-b-2 border-dashed border-gray-300" : ""
4852
4851
  ]])
4853
- }, Ae(a(lt)(a(r), a(i), re.value.title, "other")), 7)) : ve("", !0)
4852
+ }, Be(a(lt)(a(r), a(i), Q.value.title, "other")), 7)) : ge("", !0)
4854
4853
  ]),
4855
4854
  _: 1
4856
4855
  }, 8, ["content", "disabled"]),
4857
- (yt = gt.value) != null && yt.showSearchBar ? (J(), me(rt, {
4856
+ (vt = pt.value) != null && vt.showSearchBar ? (J(), me(rt, {
4858
4857
  key: 0,
4859
4858
  modelValue: Mt.value,
4860
- "onUpdate:modelValue": he[1] || (he[1] = (Ee) => Mt.value = Ee),
4859
+ "onUpdate:modelValue": fe[1] || (fe[1] = (Ee) => Mt.value = Ee),
4861
4860
  class: "grow"
4862
- }, null, 8, ["modelValue"])) : (J(), ce("div", xl)),
4863
- Yo(de(cn, {
4861
+ }, null, 8, ["modelValue"])) : (J(), ue("div", bl)),
4862
+ Ko(ce(cn, {
4864
4863
  modelValue: z.value,
4865
- "onUpdate:modelValue": he[2] || (he[2] = (Ee) => z.value = Ee),
4864
+ "onUpdate:modelValue": fe[2] || (fe[2] = (Ee) => z.value = Ee),
4866
4865
  label: "Label",
4867
4866
  value: !1
4868
4867
  }, null, 8, ["modelValue"]), [
4869
- [qo, ($n = gt.value) == null ? void 0 : $n.showLabel]
4868
+ [Xo, (Fn = pt.value) == null ? void 0 : Fn.showLabel]
4870
4869
  ]),
4871
- (Vn = gt.value) != null && Vn.showDrillDimension && Pe.value.length > 0 ? (J(), ce("div", wl, [
4872
- de(vt, {
4870
+ (Nn = pt.value) != null && Nn.showDrillDimension && we.value.length > 0 ? (J(), ue("div", Cl, [
4871
+ ce(gt, {
4873
4872
  icon: "arrow_upward",
4874
4873
  variant: "tertiary",
4875
4874
  disabled: !w.value,
4876
- onClick: Gt
4875
+ onClick: sn
4877
4876
  }, null, 8, ["disabled"]),
4878
- de(vt, {
4877
+ ce(gt, {
4879
4878
  icon: "arrow_downward",
4880
4879
  variant: "tertiary",
4881
4880
  disabled: !F.value,
4882
- onClick: Bo
4881
+ onClick: un
4883
4882
  }, null, 8, ["disabled"])
4884
- ])) : ve("", !0),
4885
- (zn = gt.value) != null && zn.showRollup && He.value.length > 0 ? (J(), me(No, {
4883
+ ])) : ge("", !0),
4884
+ ($n = pt.value) != null && $n.showRollup && Ce.value.length > 0 ? (J(), me(Ro, {
4886
4885
  key: `rollup-${a(s)}`,
4887
4886
  modelValue: H.value,
4888
- "onUpdate:modelValue": he[3] || (he[3] = (Ee) => H.value = Ee),
4887
+ "onUpdate:modelValue": fe[3] || (fe[3] = (Ee) => H.value = Ee),
4889
4888
  class: "w-[150px]",
4890
- items: He.value
4891
- }, null, 8, ["modelValue", "items"])) : ve("", !0),
4892
- c.hideExport ? ve("", !0) : (J(), me(Vo, {
4889
+ items: Ce.value
4890
+ }, null, 8, ["modelValue", "items"])) : ge("", !0),
4891
+ c.hideExport ? ge("", !0) : (J(), me(No, {
4893
4892
  key: 4,
4894
4893
  shift: !0
4895
4894
  }, {
4896
- "menu-button": ke(() => [
4897
- de(vt, {
4895
+ "menu-button": Te(() => [
4896
+ ce(gt, {
4898
4897
  icon: "more_vert",
4899
4898
  variant: "tertiary"
4900
4899
  })
4901
4900
  ]),
4902
- default: ke(() => [
4903
- (J(!0), ce(ze, null, Nt(a(Ao), (Ee) => (J(), me($o, {
4901
+ default: Te(() => [
4902
+ (J(!0), ue(Ve, null, $t(a(Mo), (Ee) => (J(), me(Fo, {
4904
4903
  key: Ee.value,
4905
4904
  label: Ee.label,
4906
4905
  onClick: Ee.onClick
@@ -4915,7 +4914,7 @@ const xl = {
4915
4914
  ]),
4916
4915
  _: 1
4917
4916
  }, 8, ["modelValue", "tile-index"]))
4918
- ], 4)) : (J(), me(Ho, { key: 1 }))
4917
+ ], 4)) : (J(), me(Vo, { key: 1 }))
4919
4918
  ]),
4920
4919
  _: 1
4921
4920
  }, 8, ["class", "variant"]);
@@ -4928,12 +4927,12 @@ export {
4928
4927
  xe as S,
4929
4928
  xn as X,
4930
4929
  wn as Y,
4931
- Fl as _,
4930
+ Al as _,
4932
4931
  bn as a,
4933
- mo as b,
4934
- Rl as c,
4932
+ ho as b,
4933
+ Bl as c,
4935
4934
  wt as d,
4936
4935
  Sn as e,
4937
4936
  fn as g,
4938
- ao as u
4937
+ no as u
4939
4938
  };