@feedmepos/mf-report 5.26.7 → 5.26.8

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 (23) hide show
  1. package/dist/{App-C94O_vo_.js → App-Dg74dv5U.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Dn157Zx3.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js} +86 -87
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-nt4P42ea.js → Default.vue_vue_type_script_setup_true_lang-DhzZHUpu.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-AQDQW9GO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-xsdQqZN1.js} +517 -519
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C426Aob-.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZTdHQMm.js} +2 -2
  6. package/dist/{InsightView-Basufi0o.js → InsightView-BAMhWM_4.js} +4 -4
  7. package/dist/{Integration-B920vZDz.js → Integration-3sVH-WLo.js} +3 -3
  8. package/dist/{Integrations-_VxUzyV_.js → Integrations-aVgsVBin.js} +2 -2
  9. package/dist/{Layout-C3EdQj0a.js → Layout-CemoVm35.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-cx9Ls4VN.js → MenuTab.vue_vue_type_script_setup_true_lang-DaWStDdA.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BZdj0yom.js → NavigationTab.vue_vue_type_script_setup_true_lang-CF-kBFSL.js} +3 -3
  12. package/dist/{OverviewView-5SW5eV5d.js → OverviewView-CGQE4oye.js} +4 -4
  13. package/dist/{Report-D7QE2m9x.js → Report-Q_iSKToz.js} +3 -3
  14. package/dist/{ReportEditor-CRGL55-B.js → ReportEditor-B7Tsgrmi.js} +5 -5
  15. package/dist/{ReportView-DPTA33K1.js → ReportView-DemPHOct.js} +6 -6
  16. package/dist/{Setting-Dc9348RB.js → Setting-DKF6gaAG.js} +3 -3
  17. package/dist/{Template-DaeFfFJD.js → Template-CtJVcYGk.js} +3 -3
  18. package/dist/{TileEditor-C4157Jus.js → TileEditor-DWsLtN_V.js} +778 -783
  19. package/dist/{TransitionFade-B0iVN3no.js → TransitionFade-CO1Jm8hG.js} +4 -4
  20. package/dist/{app-CtnYfBf0.js → app-C5FTlUBn.js} +12 -12
  21. package/dist/app.js +1 -1
  22. package/dist/{useRestaurantPermission-dtgeWEXZ.js → useRestaurantPermission-BrUkp18y.js} +1 -1
  23. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { computed as b, defineComponent as Be, ref as L, watch as Se, onMounted as Vt, onBeforeUnmount as no, resolveComponent as ie, createBlock as de, openBlock as Y, Transition as No, withCtx as xe, createElementBlock as re, createCommentVNode as me, createElementVNode as j, unref as s, normalizeStyle as Ie, withModifiers as Zt, toDisplayString as Te, createVNode as se, Fragment as Ve, renderList as Ft, normalizeClass as we, nextTick as $o, mergeModels as ze, useModel as He, renderSlot as Qe, h as qt, createSlots as zo, resolveDynamicComponent as oo, toRaw as Ho, markRaw as Wo, createTextVNode as Oo, onUnmounted as ao, withDirectives as Uo, vShow as Ko } from "vue";
2
- import { W as ee, j as Xo, S as It, v as Bt, k as Yo, l as dn, m as ro, d as Eo, q as qo, R as pt, n as Go } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C426Aob-.js";
3
- import { i as Qt, a as nn, u as lo } from "./app-CtnYfBf0.js";
4
- import { d as gn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Dn157Zx3.js";
1
+ import { computed as b, defineComponent as Me, ref as L, watch as Se, onMounted as Vt, onBeforeUnmount as to, resolveComponent as ie, createBlock as de, openBlock as Y, Transition as Vo, withCtx as xe, createElementBlock as re, createCommentVNode as me, createElementVNode as j, unref as s, normalizeStyle as Pe, withModifiers as Zt, toDisplayString as Te, createVNode as se, Fragment as Re, renderList as Ft, normalizeClass as we, nextTick as No, mergeModels as ze, useModel as He, renderSlot as Qe, h as qt, createSlots as $o, resolveDynamicComponent as no, toRaw as zo, markRaw as Ho, createTextVNode as Wo, onUnmounted as oo, withDirectives as Oo, vShow as Uo } from "vue";
2
+ import { W as ee, j as Ko, S as It, v as Bt, k as Xo, l as dn, m as ao, d as Yo, q as Eo, R as ht, n as qo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZTdHQMm.js";
3
+ import { i as Qt, a as nn, u as ro } from "./app-C5FTlUBn.js";
4
+ import { d as pn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js";
5
5
  import { storeToRefs as At } from "pinia";
6
- import { detectLocale as so } from "@feedmepos/mf-common";
7
- import { C as vn } from "./chart-DDDh8zNk.js";
8
- import { useBreakpoints as Nt, useSnackbar as Ln, components as jo } from "@feedmepos/ui-library";
9
- import { u as it } from "./vue-i18n-DVWuTfed.js";
10
- import { b as io, _ as Nn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
11
- import { r as lt } from "./i18n-CI_sQ5d_.js";
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 || {}), _n = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(_n || {}), ye = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(ye || {});
6
+ import { detectLocale as lo } from "@feedmepos/mf-common";
7
+ import { C as gn } from "./chart-DDDh8zNk.js";
8
+ import { useBreakpoints as Nt, useSnackbar as Tn, components as Go } from "@feedmepos/ui-library";
9
+ import { u as st } from "./vue-i18n-DVWuTfed.js";
10
+ import { b as so, _ as Vn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
11
+ import { r as rt } from "./i18n-CI_sQ5d_.js";
12
+ var vn = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(vn || {}), Je = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Je || {}), yn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(yn || {}), bn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(bn || {}), Cn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Cn || {}), xn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(xn || {}), wn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(wn || {}), ye = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(ye || {});
13
13
  ee.Circular, ee.Table, ee.BarChart, ee.LineChart, ee.StackBarChart, ee.ClusteredStackBarChart, ee.StackLineChart, ee.Scorecard, ee.Spacer;
14
- const Jo = [
14
+ const jo = [
15
15
  {
16
16
  type: ee.Circular,
17
17
  showLabel: !1,
@@ -82,7 +82,7 @@ const Jo = [
82
82
  showSearchBar: !1
83
83
  }
84
84
  ];
85
- function fn(e) {
85
+ function Jo(e) {
86
86
  const t = [e.schemaName, e.name];
87
87
  return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
88
88
  }
@@ -104,7 +104,7 @@ function Zo(e, t) {
104
104
  return !0;
105
105
  }
106
106
  }
107
- const yt = [
107
+ const vt = [
108
108
  "#36A2EB",
109
109
  "#007BA7",
110
110
  "#FF5D53",
@@ -116,15 +116,15 @@ const yt = [
116
116
  "#8358D4",
117
117
  "#9B5046"
118
118
  ];
119
- function uo(e) {
119
+ function io(e) {
120
120
  const t = Math.max(1, Math.floor(e));
121
121
  return Array.from({ length: t }, (n, o) => {
122
- const a = yt[o % yt.length], i = Math.floor(o / yt.length);
122
+ const a = vt[o % vt.length], i = Math.floor(o / vt.length);
123
123
  return i === 0 ? a : on(a, Math.min(0.18 * i, 0.72));
124
124
  });
125
125
  }
126
- const Tl = yt.map(() => "solid");
127
- function gt({
126
+ const Tl = vt.map(() => "solid");
127
+ function pt({
128
128
  datasetIndex: e,
129
129
  label: t
130
130
  }) {
@@ -154,7 +154,7 @@ function ke({
154
154
  const a = Number.isFinite(n) ? Number(n) : 0;
155
155
  return a <= 0 ? e : t ? e >= a ? (e - a) % a : Math.max(0, (e - 1 + a) % a) : e % a;
156
156
  }
157
- function co({
157
+ function uo({
158
158
  datasets: e,
159
159
  datasetIndex: t
160
160
  }) {
@@ -182,7 +182,7 @@ function $t({
182
182
  datasetIndex: t
183
183
  }) {
184
184
  var a;
185
- const n = co({
185
+ const n = uo({
186
186
  datasets: e,
187
187
  datasetIndex: t
188
188
  });
@@ -216,14 +216,14 @@ function na(e) {
216
216
  blue: Number.parseInt(t.slice(5, 7), 16)
217
217
  };
218
218
  }
219
- function fo(e) {
219
+ function co(e) {
220
220
  const t = Math.max(
221
- yt.length,
221
+ vt.length,
222
222
  Array.isArray(e) ? e.length : 0
223
- ), n = uo(t);
223
+ ), n = io(t);
224
224
  return !Array.isArray(e) || e.length === 0 ? n : n.map((o, a) => Rt(e[a]) ?? o);
225
225
  }
226
- function mo(e, t) {
226
+ function fo(e, t) {
227
227
  const { red: n, green: o, blue: a } = na(e);
228
228
  return `rgba(${n}, ${o}, ${a}, ${t})`;
229
229
  }
@@ -234,11 +234,11 @@ function on(e, t) {
234
234
  };
235
235
  return `#${o(1)}${o(3)}${o(5)}`;
236
236
  }
237
- const oa = 0.25, ho = 0.7;
238
- function po(e) {
237
+ const oa = 0.25, mo = 0.7;
238
+ function ho(e) {
239
239
  return on(e, oa);
240
240
  }
241
- function $n(e) {
241
+ function Nn(e) {
242
242
  return Math.min(0.55 + (e - 1) * 0.18, 0.95);
243
243
  }
244
244
  function Ze({
@@ -247,17 +247,17 @@ function Ze({
247
247
  opacity: n,
248
248
  customColors: o
249
249
  }) {
250
- const a = fo(o), i = a[e % a.length], r = t ? po(i) : i;
250
+ const a = co(o), i = a[e % a.length], r = t ? ho(i) : i;
251
251
  let c = typeof n == "number" ? n : 1;
252
- return t && (c = c * ho), mo(r, c);
252
+ return t && (c = c * mo), fo(r, c);
253
253
  }
254
- function Ct({
254
+ function bt({
255
255
  fallbackIndex: e,
256
256
  metricCount: t
257
257
  }) {
258
258
  return Number.isInteger(t) && Number(t) > 0 ? Math.floor(e / Number(t)) : e;
259
259
  }
260
- function _t({
260
+ function wt({
261
261
  breakdownIndex: e,
262
262
  metricIndex: t,
263
263
  metricCount: n,
@@ -268,11 +268,11 @@ function _t({
268
268
  colorMode: c,
269
269
  customColors: d
270
270
  }) {
271
- const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, A = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, C = r !== !1, w = e * m + A, v = c === "clustered" ? uo(Math.max(yt.length, e + 1)) : fo(d), p = Rt(i == null ? void 0 : i[e * m]) ?? v[e % v.length], F = C && A > 0 ? on(p, $n(A)) : Rt(i == null ? void 0 : i[w]) ?? (A > 0 ? on(p, $n(A)) : p), k = o ? po(F) : F;
271
+ const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, A = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, C = r !== !1, w = e * m + A, v = c === "clustered" ? io(Math.max(vt.length, e + 1)) : co(d), p = Rt(i == null ? void 0 : i[e * m]) ?? v[e % v.length], F = C && A > 0 ? on(p, Nn(A)) : Rt(i == null ? void 0 : i[w]) ?? (A > 0 ? on(p, Nn(A)) : p), k = o ? ho(F) : F;
272
272
  let M = typeof a == "number" ? a : 1;
273
- return o && (M = M * ho), mo(k, M);
273
+ return o && (M = M * mo), fo(k, M);
274
274
  }
275
- function go(e, t, n) {
275
+ function po(e, t, n) {
276
276
  if (e === "" || t === "")
277
277
  return null;
278
278
  let o = (d) => d == null ? void 0 : d.replace(/,/g, "");
@@ -306,7 +306,7 @@ function aa(e) {
306
306
  function zt(e) {
307
307
  return Object.entries(e).map(([t, n]) => `${t}:${n}`).join(";");
308
308
  }
309
- function vo(e) {
309
+ function go(e) {
310
310
  return {
311
311
  mode: "index",
312
312
  intersect: !1,
@@ -399,7 +399,7 @@ const ra = zt({
399
399
  };
400
400
  function da() {
401
401
  return {
402
- ...vo(),
402
+ ...go(),
403
403
  mode: "nearest",
404
404
  intersect: !0,
405
405
  usePointStyle: !0,
@@ -412,7 +412,7 @@ function da() {
412
412
  };
413
413
  }
414
414
  const fa = "rgba(0, 0, 0, 0.3)";
415
- function zn(e) {
415
+ function $n(e) {
416
416
  if (typeof document > "u" || typeof window > "u")
417
417
  return;
418
418
  const t = String((e == null ? void 0 : e.id) ?? "");
@@ -423,7 +423,7 @@ function zn(e) {
423
423
  );
424
424
  n && (n.__onViewportChange && (window.removeEventListener("scroll", n.__onViewportChange, !0), window.removeEventListener("resize", n.__onViewportChange)), n.remove());
425
425
  }
426
- function mn(e, t, n, o) {
426
+ function fn(e, t, n, o) {
427
427
  const { left: a, right: i, top: r, bottom: c } = n;
428
428
  e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = fa, e.setLineDash([5, 5]), t ? (e.moveTo(a, o), e.lineTo(i, o)) : (e.moveTo(o, r), e.lineTo(o, c)), e.stroke(), e.restore();
429
429
  }
@@ -448,7 +448,7 @@ function ha(e, t, n) {
448
448
  const o = ((p = e.options) == null ? void 0 : p.indexAxis) === "y", a = e.tooltip, i = (a == null ? void 0 : a.getActiveElements()) ?? [];
449
449
  if (i.length === 0) {
450
450
  const F = ma(e, o);
451
- F !== void 0 && mn(e.ctx, o, e.chartArea, F);
451
+ F !== void 0 && fn(e.ctx, o, e.chartArea, F);
452
452
  return;
453
453
  }
454
454
  const r = e.scales.x, c = e.scales.y;
@@ -459,13 +459,13 @@ function ha(e, t, n) {
459
459
  return;
460
460
  if (t === "bar") {
461
461
  const k = (o ? c : r).getPixelForValue(d.index);
462
- mn(e.ctx, o, e.chartArea, k);
462
+ fn(e.ctx, o, e.chartArea, k);
463
463
  return;
464
464
  }
465
465
  if (!d.element)
466
466
  return;
467
467
  const m = d.element, A = o ? c : r, C = o ? m.y : m.x, w = A.getPixelForValue(d.index), v = C ?? w;
468
- mn(e.ctx, o, e.chartArea, v);
468
+ fn(e.ctx, o, e.chartArea, v);
469
469
  }
470
470
  function Ht(e) {
471
471
  let t = !1, n = !1;
@@ -486,30 +486,30 @@ function Ht(e) {
486
486
  t && (o.ctx.restore(), t = !1);
487
487
  },
488
488
  beforeDestroy: (o) => {
489
- zn(o);
489
+ $n(o);
490
490
  },
491
491
  afterDestroy: (o) => {
492
- zn(o);
492
+ $n(o);
493
493
  }
494
494
  };
495
495
  }
496
- const pa = Number.POSITIVE_INFINITY, Sn = 2, ga = 1, va = 0.2, ya = 120, ba = 320, Ca = 24, { breakpoints: vt } = Nt(), Dn = "report-v5:locationchange";
497
- let Hn = !1;
496
+ const pa = Number.POSITIVE_INFINITY, _n = 2, ga = 1, va = 0.2, ya = 120, ba = 320, Ca = 24, { breakpoints: gt } = Nt(), Ln = "report-v5:locationchange";
497
+ let zn = !1;
498
498
  const xa = "report.widget.comparisonTooltip";
499
- function Wn() {
500
- window.dispatchEvent(new Event(Dn));
499
+ function Hn() {
500
+ window.dispatchEvent(new Event(Ln));
501
501
  }
502
502
  function wa() {
503
- if (Hn)
503
+ if (zn)
504
504
  return;
505
- Hn = !0;
505
+ zn = !0;
506
506
  const e = window.history.pushState.bind(window.history), t = window.history.replaceState.bind(window.history);
507
507
  window.history.pushState = function(...o) {
508
508
  const a = e(...o);
509
- return Wn(), a;
509
+ return Hn(), a;
510
510
  }, window.history.replaceState = function(...o) {
511
511
  const a = t(...o);
512
- return Wn(), a;
512
+ return Hn(), a;
513
513
  };
514
514
  }
515
515
  function _a(e, t) {
@@ -522,20 +522,20 @@ function _a(e, t) {
522
522
  }
523
523
  return typeof o == "string" ? o : void 0;
524
524
  }
525
- function Pn(e) {
526
- const t = `${xa}.${e}`, n = so(), o = Qt[n];
525
+ function Dn(e) {
526
+ const t = `${xa}.${e}`, n = lo(), o = Qt[n];
527
527
  return _a(o, t) ?? t;
528
528
  }
529
- function yo() {
530
- return Pn("viewBreakdown");
529
+ function vo() {
530
+ return Dn("viewBreakdown");
531
531
  }
532
532
  function Sa() {
533
- return Pn("current");
533
+ return Dn("current");
534
534
  }
535
535
  function ka() {
536
- return Pn("compared");
536
+ return Dn("compared");
537
537
  }
538
- function On(e, t) {
538
+ function Wn(e, t) {
539
539
  const n = e.trim();
540
540
  return n.length === 0 ? t : `${n} · ${t}`;
541
541
  }
@@ -560,7 +560,7 @@ function Ma(e, t) {
560
560
  }
561
561
  function Ba(e, t, n) {
562
562
  const o = Mt(e.borderColor, t) || Mt(e.color, t), a = Mt(e.backgroundColor, t), i = Mt(e.pointBorderColor, t), r = Mt(e.pointBackgroundColor, t);
563
- return n ? Un(a, r, o, i) : Un(o, i, a, r);
563
+ return n ? On(a, r, o, i) : On(o, i, a, r);
564
564
  }
565
565
  function Aa(e) {
566
566
  return e.trim().toLowerCase();
@@ -581,7 +581,7 @@ function Ra(e) {
581
581
  const t = e.replace(/\s+/g, "").toLowerCase();
582
582
  return !!(t === "transparent" || /^rgba\([^)]*,0(?:\.0+)?\)$/.test(t) || /^hsla\([^)]*,0(?:\.0+)?\)$/.test(t) || t === "#0000" || t === "#00000000");
583
583
  }
584
- function Un(...e) {
584
+ function On(...e) {
585
585
  for (const t of e) {
586
586
  if (!t) continue;
587
587
  const n = Fa(t);
@@ -590,34 +590,34 @@ function Un(...e) {
590
590
  }
591
591
  return "#9ca3af";
592
592
  }
593
- function kn(e) {
593
+ function Sn(e) {
594
594
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\"/g, "&quot;").replace(/'/g, "&#39;");
595
595
  }
596
596
  function Va(e) {
597
597
  const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
598
- return Number.isFinite(t) ? Math.max(Sn, Math.floor(t)) : pa;
598
+ return Number.isFinite(t) ? Math.max(_n, Math.floor(t)) : pa;
599
599
  }
600
600
  function Na(e) {
601
- return e <= 0 ? 320 : vt.value.xs || vt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : vt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : vt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
601
+ return e <= 0 ? 320 : gt.value.xs || gt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : gt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : gt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
602
602
  }
603
- function In(e, t) {
603
+ function Pn(e, t) {
604
604
  const n = window.innerHeight, o = Na(n), a = t ? Math.max(120, t.clientHeight - 16) : Number.POSITIVE_INFINITY, i = Math.max(120, Math.min(o, a));
605
605
  e.style.maxHeight = `${i}px`;
606
606
  }
607
- function st() {
608
- return vt.value.xs || vt.value.sm;
607
+ function lt() {
608
+ return gt.value.xs || gt.value.sm;
609
609
  }
610
- function bt(e) {
610
+ function yt(e) {
611
611
  return e.dataset.pinned === "true";
612
612
  }
613
- function bo(e, t) {
613
+ function yo(e, t) {
614
614
  if (t) {
615
615
  e.dataset.pinned = "true";
616
616
  return;
617
617
  }
618
618
  delete e.dataset.pinned;
619
619
  }
620
- function Co(e) {
620
+ function bo(e) {
621
621
  return {
622
622
  maxTooltipItems: Va(e == null ? void 0 : e.maxTooltipItems)
623
623
  };
@@ -640,7 +640,7 @@ function Wa(e, t, n, o) {
640
640
  const i = t - e.__lastPhoneTapX, r = n - e.__lastPhoneTapY;
641
641
  return Math.hypot(i, r) <= Ca;
642
642
  }
643
- function Kn(e) {
643
+ function Un(e) {
644
644
  return {
645
645
  text: `${e.datasetLabel}: ${0 .toLocaleString()}`,
646
646
  color: "#cbd5e1",
@@ -663,11 +663,11 @@ function Ua(e, t) {
663
663
  });
664
664
  }
665
665
  function Ka(e) {
666
- return `<button type="button" data-tooltip-full-details="true" style="${ra}">${kn(e)}</button>`;
666
+ return `<button type="button" data-tooltip-full-details="true" style="${ra}">${Sn(e)}</button>`;
667
667
  }
668
- function xo(e, t, n, o, a, i, r, c) {
668
+ function Co(e, t, n, o, a, i, r, c) {
669
669
  var N;
670
- const d = (N = e[0]) == null ? void 0 : N.label, m = Ta(d), C = !!(m != null && m[1]) ? On((m == null ? void 0 : m[0]) ?? "", Sa()) : (m == null ? void 0 : m[0]) ?? "", w = m != null && m[1] ? On(m[1], ka()) : void 0, v = [], p = [], F = /* @__PURE__ */ new Set();
670
+ const d = (N = e[0]) == null ? void 0 : N.label, m = Ta(d), C = !!(m != null && m[1]) ? Wn((m == null ? void 0 : m[0]) ?? "", Sa()) : (m == null ? void 0 : m[0]) ?? "", w = m != null && m[1] ? Wn(m[1], ka()) : void 0, v = [], p = [], F = /* @__PURE__ */ new Set();
671
671
  i.forEach((V, K) => {
672
672
  if (F.has(K))
673
673
  return;
@@ -699,10 +699,10 @@ function xo(e, t, n, o, a, i, r, c) {
699
699
  });
700
700
  const z = w ? k.map((V) => {
701
701
  const K = M.get(V.matchingKey);
702
- return !K || K.length === 0 ? Kn(V) : K.shift() ?? Kn(V);
703
- }) : [], q = v.length > k.length || p.length > z.length, I = (V, K = !1) => `<div style="${Oa(K)}">${kn(V)}</div>`, H = (V) => {
702
+ return !K || K.length === 0 ? Un(V) : K.shift() ?? Un(V);
703
+ }) : [], q = v.length > k.length || p.length > z.length, I = (V, K = !1) => `<div style="${Oa(K)}">${Sn(V)}</div>`, H = (V) => {
704
704
  const K = Ua(V.isBar, V.color);
705
- return `<div style="${sa}"><span style="${K}"></span><span style="${ia}">${kn(V.text)}</span></div>`;
705
+ return `<div style="${sa}"><span style="${K}"></span><span style="${ia}">${Sn(V.text)}</span></div>`;
706
706
  };
707
707
  let x = "";
708
708
  C.length > 0 && (x += I(C)), x += k.map((V) => H(V)).join(""), w && z.length > 0 && (x += I(w, x.length > 0), x += z.map((V) => H(V)).join("")), a && q && (x += Ka(n));
@@ -722,11 +722,11 @@ function xo(e, t, n, o, a, i, r, c) {
722
722
  hasCollapsedValues: q
723
723
  };
724
724
  }
725
- function Xn(e) {
725
+ function Kn(e) {
726
726
  return e.scrollHeight - e.clientHeight > ga;
727
727
  }
728
728
  function Gt(e, t, n, o, a, i, r, c, d) {
729
- const m = xo(
729
+ const m = Co(
730
730
  t,
731
731
  n,
732
732
  o,
@@ -754,7 +754,7 @@ function Xa(e, t, n, o, a, i, r, c, d) {
754
754
  ),
755
755
  maxTooltipItems: a
756
756
  };
757
- const m = Math.max(Sn, t.length);
757
+ const m = Math.max(_n, t.length);
758
758
  let A = m, C = Gt(
759
759
  e,
760
760
  t,
@@ -766,12 +766,12 @@ function Xa(e, t, n, o, a, i, r, c, d) {
766
766
  c,
767
767
  d
768
768
  );
769
- if (!Xn(e))
769
+ if (!Kn(e))
770
770
  return {
771
771
  markup: C,
772
772
  maxTooltipItems: m
773
773
  };
774
- let w = Sn, v = m;
774
+ let w = _n, v = m;
775
775
  for (; w <= v; ) {
776
776
  const F = Math.floor((w + v) / 2), k = Gt(
777
777
  e,
@@ -784,7 +784,7 @@ function Xa(e, t, n, o, a, i, r, c, d) {
784
784
  c,
785
785
  d
786
786
  );
787
- if (Xn(e)) {
787
+ if (Kn(e)) {
788
788
  v = F - 1;
789
789
  continue;
790
790
  }
@@ -805,7 +805,7 @@ function Xa(e, t, n, o, a, i, r, c, d) {
805
805
  maxTooltipItems: A
806
806
  };
807
807
  }
808
- function Yn(e, t) {
808
+ function Xn(e, t) {
809
809
  const n = Math.max(0, Math.min(1, t)), o = e.trim();
810
810
  if (o.startsWith("#")) {
811
811
  const r = o.slice(1), c = r.length === 3 ? `${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}` : r.length === 4 ? `${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}` : r.length >= 6 ? r.slice(0, 6) : "";
@@ -833,8 +833,8 @@ function Yn(e, t) {
833
833
  return e;
834
834
  }
835
835
  function jt(e, t) {
836
- return typeof e == "string" ? Yn(e, t) : Array.isArray(e) ? e.map(
837
- (n) => typeof n == "string" ? Yn(n, t) : n
836
+ return typeof e == "string" ? Xn(e, t) : Array.isArray(e) ? e.map(
837
+ (n) => typeof n == "string" ? Xn(n, t) : n
838
838
  ) : e;
839
839
  }
840
840
  function Ya(e) {
@@ -857,7 +857,7 @@ function qa(e, t) {
857
857
  jt(n.pointBackgroundColor, t)
858
858
  ));
859
859
  }
860
- function Tn(e) {
860
+ function kn(e) {
861
861
  var o;
862
862
  if (!e || typeof e != "object")
863
863
  return !1;
@@ -868,7 +868,7 @@ function Tn(e) {
868
868
  return !(n != null && (!n.isConnected || !n.ownerDocument));
869
869
  }
870
870
  function en(e, t) {
871
- if (!Tn(e))
871
+ if (!kn(e))
872
872
  return;
873
873
  const n = e.data.datasets;
874
874
  if (n.length !== 0) {
@@ -892,9 +892,9 @@ function en(e, t) {
892
892
  }
893
893
  }
894
894
  }
895
- function wo(e) {
895
+ function xo(e) {
896
896
  const t = e, n = t == null ? void 0 : t.chart;
897
- if (Tn(n))
897
+ if (kn(n))
898
898
  return n;
899
899
  const o = t == null ? void 0 : t.$el;
900
900
  if (!o)
@@ -902,20 +902,20 @@ function wo(e) {
902
902
  const a = o.querySelector("canvas");
903
903
  if (!(a instanceof HTMLCanvasElement))
904
904
  return null;
905
- const i = vn.getChart(a);
906
- return Tn(i) ? i : null;
905
+ const i = gn.getChart(a);
906
+ return kn(i) ? i : null;
907
907
  }
908
908
  function Ga(e) {
909
909
  const t = window.getComputedStyle(e);
910
910
  return [t.overflow, t.overflowX, t.overflowY].some((o) => o !== "visible");
911
911
  }
912
- function Mn(e) {
912
+ function In(e) {
913
913
  let t = e.parentElement ?? e, n = t;
914
914
  for (; n && n.parentElement && n.parentElement !== document.body && n.parentElement !== document.documentElement; )
915
915
  Ga(n) && (t = n.parentElement), n = n.parentElement;
916
916
  return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
917
917
  }
918
- function Bn(e, t, n, o, a, i, r = "center", c = !1) {
918
+ function Mn(e, t, n, o, a, i, r = "center", c = !1) {
919
919
  const d = t.getBoundingClientRect(), m = n.getBoundingClientRect(), A = n.scrollLeft, C = n.scrollTop, w = n.clientWidth, v = n.clientHeight, p = e;
920
920
  (!Number.isFinite(p.__cachedWidth) || !Number.isFinite(p.__cachedHeight) || p.__measurementHostWidth !== w || p.__measurementHostHeight !== v) && (p.__cachedWidth = e.offsetWidth, p.__cachedHeight = e.offsetHeight, p.__measurementHostWidth = w, p.__measurementHostHeight = v);
921
921
  const k = p.__cachedWidth ?? e.offsetWidth, M = p.__cachedHeight ?? e.offsetHeight, z = 8, q = d.left - m.left + A + o, I = d.top - m.top + C + a, H = c ? r === "left" ? q - k - z : q + z : r === "left" ? q - k - z : r === "right" ? q + z : q - k / 2, x = c ? I + z : i ? I - M / 2 : I + z, B = A + z;
@@ -928,12 +928,12 @@ function Bn(e, t, n, o, a, i, r = "center", c = !1) {
928
928
  const K = Math.max(B, A + w - k - z), Z = Math.max(N, C + v - M - z), X = Math.round(Math.min(Math.max(B, H), K)), O = Math.round(Math.min(Math.max(N, x), Z));
929
929
  p.__lastLeftPx === X && p.__lastTopPx === O || (p.__lastLeftPx = X, p.__lastTopPx = O, e.style.left = `${X}px`, e.style.top = `${O}px`);
930
930
  }
931
- function _o(e) {
931
+ function wo(e) {
932
932
  return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
933
933
  }
934
934
  function ja(e, t, n, o, a, i, r) {
935
935
  const c = t.getBoundingClientRect(), d = o - c.left, m = a - c.top;
936
- !Number.isFinite(d) || !Number.isFinite(m) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(m), e.dataset.caretX = String(d), e.dataset.caretY = String(m), e.dataset.anchorDirection = r, Bn(
936
+ !Number.isFinite(d) || !Number.isFinite(m) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(m), e.dataset.caretX = String(d), e.dataset.caretY = String(m), e.dataset.anchorDirection = r, Mn(
937
937
  e,
938
938
  t,
939
939
  n,
@@ -946,32 +946,32 @@ function ja(e, t, n, o, a, i, r) {
946
946
  }
947
947
  function Ja(e) {
948
948
  const t = document.createElement("div");
949
- return t.id = e, t.dataset.comparisonTooltip = "true", t.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86))", t.style.border = "1px solid rgba(255, 255, 255, 0.58)", t.style.borderRadius = "10px", t.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", t.style.color = "#111827", t.style.left = "0", t.style.opacity = "0", In(t), t.style.maxWidth = "min(360px, calc(100% - 16px))", t.style.overflow = "hidden", t.style.padding = "8px 10px", t.style.pointerEvents = "none", t.style.position = "absolute", t.style.textAlign = "left", t.style.top = "0", t.style.transform = "none", t.style.willChange = "left, top", t.style.whiteSpace = "normal", t.style.wordBreak = "normal", t.style.overflowWrap = "normal", t.style.zIndex = "10", t;
949
+ return t.id = e, t.dataset.comparisonTooltip = "true", t.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86))", t.style.border = "1px solid rgba(255, 255, 255, 0.58)", t.style.borderRadius = "10px", t.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", t.style.color = "#111827", t.style.left = "0", t.style.opacity = "0", Pn(t), t.style.maxWidth = "min(360px, calc(100% - 16px))", t.style.overflow = "hidden", t.style.padding = "8px 10px", t.style.pointerEvents = "none", t.style.position = "absolute", t.style.textAlign = "left", t.style.top = "0", t.style.transform = "none", t.style.willChange = "left, top", t.style.whiteSpace = "normal", t.style.wordBreak = "normal", t.style.overflowWrap = "normal", t.style.zIndex = "10", t;
950
950
  }
951
951
  function Za(e) {
952
952
  e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
953
953
  }
954
954
  function Qa(e) {
955
- e.__onNavigationChange && (window.removeEventListener(Dn, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
955
+ e.__onNavigationChange && (window.removeEventListener(Ln, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
956
956
  }
957
957
  function er(e) {
958
958
  e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
959
959
  }
960
- function An(e, t) {
961
- xt(e), So(e), Za(e), Qa(e), er(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), t && e.__onCanvasPointerEnter && t.removeEventListener("pointerenter", e.__onCanvasPointerEnter), t && e.__onCanvasPointerMove && t.removeEventListener("pointermove", e.__onCanvasPointerMove), t && e.__onCanvasPointerLeave && t.removeEventListener("pointerleave", e.__onCanvasPointerLeave), t && e.__onCanvasClick && t.removeEventListener("click", e.__onCanvasClick), t && e.__onCanvasPointerUp && t.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
960
+ function Bn(e, t) {
961
+ Ct(e), _o(e), Za(e), Qa(e), er(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), t && e.__onCanvasPointerEnter && t.removeEventListener("pointerenter", e.__onCanvasPointerEnter), t && e.__onCanvasPointerMove && t.removeEventListener("pointermove", e.__onCanvasPointerMove), t && e.__onCanvasPointerLeave && t.removeEventListener("pointerleave", e.__onCanvasPointerLeave), t && e.__onCanvasClick && t.removeEventListener("click", e.__onCanvasClick), t && e.__onCanvasPointerUp && t.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
962
962
  }
963
963
  function tr(e, t, n) {
964
964
  e.__onNavigationChange || (wa(), e.__onNavigationChange = () => {
965
965
  if (!n.isConnected) {
966
- An(e, n);
966
+ Bn(e, n);
967
967
  return;
968
968
  }
969
- Re(e, t, !0);
970
- }, window.addEventListener(Dn, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
969
+ Fe(e, t, !0);
970
+ }, window.addEventListener(Ln, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
971
971
  }
972
972
  function nr(e, t) {
973
973
  e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
974
- t.isConnected || An(e, t);
974
+ t.isConnected || Bn(e, t);
975
975
  }), e.__disconnectObserver.observe(document.body, {
976
976
  childList: !0,
977
977
  subtree: !0
@@ -981,25 +981,25 @@ function or(e, t, n) {
981
981
  Array.from(
982
982
  e.querySelectorAll('[data-comparison-tooltip="true"]')
983
983
  ).forEach((a) => {
984
- a.id !== t && An(a, n);
984
+ a.id !== t && Bn(a, n);
985
985
  });
986
986
  }
987
- function xt(e) {
987
+ function Ct(e) {
988
988
  typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
989
989
  }
990
- function So(e) {
990
+ function _o(e) {
991
991
  typeof e.__cursorRafId == "number" && (window.cancelAnimationFrame(e.__cursorRafId), e.__cursorRafId = void 0);
992
992
  }
993
993
  function ar(e) {
994
994
  e.__cachedWidth = void 0, e.__cachedHeight = void 0, e.__measurementHostWidth = void 0, e.__measurementHostHeight = void 0;
995
995
  }
996
- function En(e, t, n, o, a) {
996
+ function Yn(e, t, n, o, a) {
997
997
  e.__pendingCursorClientX = o, e.__pendingCursorClientY = a, typeof e.__cursorRafId != "number" && (e.__cursorRafId = window.requestAnimationFrame(() => {
998
998
  e.__cursorRafId = void 0;
999
999
  const i = e.__pendingCursorClientX, r = e.__pendingCursorClientY;
1000
1000
  if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(i) || !Number.isFinite(r))
1001
1001
  return;
1002
- const c = Mn(t);
1002
+ const c = In(t);
1003
1003
  e.parentElement !== c && c.appendChild(e), ja(
1004
1004
  e,
1005
1005
  t,
@@ -1007,22 +1007,22 @@ function En(e, t, n, o, a) {
1007
1007
  i,
1008
1008
  r,
1009
1009
  n,
1010
- _o(e)
1010
+ wo(e)
1011
1011
  );
1012
1012
  }));
1013
1013
  }
1014
- function Re(e, t, n = !1) {
1015
- bt(e) && !n || (xt(e), So(e), bo(e, !1), $a(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(t));
1014
+ function Fe(e, t, n = !1) {
1015
+ yt(e) && !n || (Ct(e), _o(e), yo(e, !1), $a(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(t));
1016
1016
  }
1017
- function qn(e, t, n = ya) {
1018
- e.__isTooltipHovered || (xt(e), e.__hideTimeoutId = window.setTimeout(() => {
1019
- e.__isTooltipHovered || Re(e, t);
1017
+ function En(e, t, n = ya) {
1018
+ e.__isTooltipHovered || (Ct(e), e.__hideTimeoutId = window.setTimeout(() => {
1019
+ e.__isTooltipHovered || Fe(e, t);
1020
1020
  }, n));
1021
1021
  }
1022
1022
  function rr(e, t, n, o, a) {
1023
- const { maxTooltipItems: i } = Co(a);
1023
+ const { maxTooltipItems: i } = bo(a);
1024
1024
  e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (r) => {
1025
- if (!(st() && bt(e)) && (En(
1025
+ if (!(lt() && yt(e)) && (Yn(
1026
1026
  e,
1027
1027
  t,
1028
1028
  o,
@@ -1037,7 +1037,7 @@ function rr(e, t, n, o, a) {
1037
1037
  }, t.addEventListener("pointerenter", e.__onCanvasPointerEnter, {
1038
1038
  passive: !0
1039
1039
  })), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (r) => {
1040
- st() && bt(e) || En(
1040
+ lt() && yt(e) || Yn(
1041
1041
  e,
1042
1042
  t,
1043
1043
  o,
@@ -1047,12 +1047,12 @@ function rr(e, t, n, o, a) {
1047
1047
  }, t.addEventListener("pointermove", e.__onCanvasPointerMove, {
1048
1048
  passive: !0
1049
1049
  })), e.__onCanvasPointerLeave || (e.__onCanvasPointerLeave = () => {
1050
- st() && bt(e) || Re(e, n);
1050
+ lt() && yt(e) || Fe(e, n);
1051
1051
  }, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
1052
1052
  passive: !0
1053
1053
  })), e.__onCanvasClick || (e.__onCanvasClick = (r) => {
1054
1054
  var k, M;
1055
- if (st() || !(a != null && a.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
1055
+ if (lt() || !(a != null && a.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
1056
1056
  return;
1057
1057
  const c = (z) => {
1058
1058
  var B, N, V, K;
@@ -1060,17 +1060,17 @@ function rr(e, t, n, o, a) {
1060
1060
  return !1;
1061
1061
  const q = (B = z.find(
1062
1062
  (Z) => typeof Z.dataIndex == "number"
1063
- )) == null ? void 0 : B.dataIndex, I = ((N = n == null ? void 0 : n.data) == null ? void 0 : N.datasets) ?? [], H = (V = n == null ? void 0 : n.config) == null ? void 0 : V.type, x = xo(
1063
+ )) == null ? void 0 : B.dataIndex, I = ((N = n == null ? void 0 : n.data) == null ? void 0 : N.datasets) ?? [], H = (V = n == null ? void 0 : n.config) == null ? void 0 : V.type, x = Co(
1064
1064
  z,
1065
1065
  o,
1066
- (a == null ? void 0 : a.viewFullDetailsLabel) ?? yo(),
1066
+ (a == null ? void 0 : a.viewFullDetailsLabel) ?? vo(),
1067
1067
  i,
1068
1068
  !0,
1069
1069
  I,
1070
1070
  q,
1071
1071
  H
1072
1072
  ).detailsPayload;
1073
- return (K = a.onViewFullDetails) == null || K.call(a, x, n), Re(e, n), !0;
1073
+ return (K = a.onViewFullDetails) == null || K.call(a, x, n), Fe(e, n), !0;
1074
1074
  }, d = ((k = n == null ? void 0 : n.tooltip) == null ? void 0 : k.dataPoints) ?? [];
1075
1075
  if (c(d))
1076
1076
  return;
@@ -1107,7 +1107,7 @@ function rr(e, t, n, o, a) {
1107
1107
  const F = ((M = n == null ? void 0 : n.tooltip) == null ? void 0 : M.dataPoints) ?? [];
1108
1108
  c(F);
1109
1109
  }, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (r) => {
1110
- if (st()) {
1110
+ if (lt()) {
1111
1111
  const c = n == null ? void 0 : n.getElementsAtEventForMode, d = n == null ? void 0 : n.tooltip;
1112
1112
  if (typeof c != "function" || typeof (d == null ? void 0 : d.setActiveElements) != "function")
1113
1113
  return;
@@ -1128,7 +1128,7 @@ function rr(e, t, n, o, a) {
1128
1128
  index: M.index
1129
1129
  }));
1130
1130
  if (w.length === 0) {
1131
- Re(e, n, !0);
1131
+ Fe(e, n, !0);
1132
1132
  return;
1133
1133
  }
1134
1134
  const v = w[0], p = Ha(
@@ -1137,10 +1137,10 @@ function rr(e, t, n, o, a) {
1137
1137
  v.index
1138
1138
  ), F = Number.isFinite(e.__lastPhoneTapAt), k = p && Wa(e, r.offsetX, r.offsetY, r.timeStamp);
1139
1139
  if (F && !k && p) {
1140
- Re(e, n, !0);
1140
+ Fe(e, n, !0);
1141
1141
  return;
1142
1142
  }
1143
- bo(e, !0), xt(e), e.dataset.cursorCanvasX = String(r.offsetX), e.dataset.cursorCanvasY = String(r.offsetY), e.dataset.caretX = String(r.offsetX), e.dataset.caretY = String(r.offsetY), d.setActiveElements(w, {
1143
+ yo(e, !0), Ct(e), e.dataset.cursorCanvasX = String(r.offsetX), e.dataset.cursorCanvasY = String(r.offsetY), e.dataset.caretX = String(r.offsetX), e.dataset.caretY = String(r.offsetY), d.setActiveElements(w, {
1144
1144
  x: r.offsetX,
1145
1145
  y: r.offsetY
1146
1146
  });
@@ -1150,7 +1150,7 @@ function rr(e, t, n, o, a) {
1150
1150
  return;
1151
1151
  }
1152
1152
  if (k && (a != null && a.onViewFullDetails) && e.__detailsPayload) {
1153
- a.onViewFullDetails(e.__detailsPayload, n), Re(e, n);
1153
+ a.onViewFullDetails(e.__detailsPayload, n), Fe(e, n);
1154
1154
  return;
1155
1155
  }
1156
1156
  za(
@@ -1167,24 +1167,24 @@ function rr(e, t, n, o, a) {
1167
1167
  }, t.addEventListener("pointerup", e.__onCanvasPointerUp)), a != null && a.onViewFullDetails && (e.__onDetailsClick || (e.__onDetailsClick = (r) => {
1168
1168
  var m;
1169
1169
  const c = r.target;
1170
- c != null && c.closest('[data-tooltip-full-details="true"]') && (r.preventDefault(), r.stopPropagation(), e.__detailsPayload && ((m = a.onViewFullDetails) == null || m.call(a, e.__detailsPayload, n), Re(e, n)));
1170
+ c != null && c.closest('[data-tooltip-full-details="true"]') && (r.preventDefault(), r.stopPropagation(), e.__detailsPayload && ((m = a.onViewFullDetails) == null || m.call(a, e.__detailsPayload, n), Fe(e, n)));
1171
1171
  }, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
1172
- e.__isTooltipHovered = !0, xt(e);
1172
+ e.__isTooltipHovered = !0, Ct(e);
1173
1173
  }, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
1174
- e.__isTooltipHovered = !1, Re(e, n);
1174
+ e.__isTooltipHovered = !1, Fe(e, n);
1175
1175
  }, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
1176
1176
  }
1177
1177
  function lr(e, t, n) {
1178
1178
  e.__onViewportChange || (e.__onViewportChange = () => {
1179
1179
  if (e.style.opacity !== "1")
1180
1180
  return;
1181
- const o = Number(e.dataset.caretX), a = Number(e.dataset.caretY), i = _o(e);
1181
+ const o = Number(e.dataset.caretX), a = Number(e.dataset.caretY), i = wo(e);
1182
1182
  if (!Number.isFinite(o) || !Number.isFinite(a)) {
1183
1183
  e.style.opacity = "0";
1184
1184
  return;
1185
1185
  }
1186
- const r = Mn(t);
1187
- e.parentElement !== r && r.appendChild(e), In(e, r), Bn(
1186
+ const r = In(t);
1187
+ e.parentElement !== r && r.appendChild(e), Pn(e, r), Mn(
1188
1188
  e,
1189
1189
  t,
1190
1190
  r,
@@ -1202,7 +1202,7 @@ function lr(e, t, n) {
1202
1202
  }));
1203
1203
  }
1204
1204
  function sr(e, t) {
1205
- const { maxTooltipItems: n } = Co(t);
1205
+ const { maxTooltipItems: n } = bo(t);
1206
1206
  return ({ chart: o, tooltip: a }) => {
1207
1207
  var X, O, T, u;
1208
1208
  if (typeof document > "u" || typeof window > "u")
@@ -1210,23 +1210,23 @@ function sr(e, t) {
1210
1210
  const i = o == null ? void 0 : o.canvas;
1211
1211
  if (!(i instanceof HTMLCanvasElement))
1212
1212
  return;
1213
- const r = Mn(i), c = `comparison-tooltip-${String(o.id)}`;
1213
+ const r = In(i), c = `comparison-tooltip-${String(o.id)}`;
1214
1214
  let d = document.querySelector(`#${c}`);
1215
- if (d || (d = Ja(c)), d.parentElement !== r && r.appendChild(d), In(d, r), lr(d, i, e), tr(d, o, i), nr(d, i), rr(d, i, o, e, t), ((a == null ? void 0 : a.opacity) ?? 0) === 0) {
1216
- if (st() && bt(d))
1215
+ if (d || (d = Ja(c)), d.parentElement !== r && r.appendChild(d), Pn(d, r), lr(d, i, e), tr(d, o, i), nr(d, i), rr(d, i, o, e, t), ((a == null ? void 0 : a.opacity) ?? 0) === 0) {
1216
+ if (lt() && yt(d))
1217
1217
  return;
1218
- t != null && t.onViewFullDetails ? qn(d, o) : Re(d, o);
1218
+ t != null && t.onViewFullDetails ? En(d, o) : Fe(d, o);
1219
1219
  return;
1220
1220
  }
1221
1221
  const m = (a == null ? void 0 : a.dataPoints) ?? [];
1222
1222
  if (m.length === 0) {
1223
- if (st() && bt(d))
1223
+ if (lt() && yt(d))
1224
1224
  return;
1225
- t != null && t.onViewFullDetails ? qn(d, o) : Re(d, o);
1225
+ t != null && t.onViewFullDetails ? En(d, o) : Fe(d, o);
1226
1226
  return;
1227
1227
  }
1228
- or(r, c, i), xt(d);
1229
- const A = (t == null ? void 0 : t.viewFullDetailsLabel) ?? yo(), C = !!(t != null && t.onViewFullDetails), w = (X = m.find((y) => typeof y.dataIndex == "number")) == null ? void 0 : X.dataIndex, v = ((O = o == null ? void 0 : o.data) == null ? void 0 : O.datasets) ?? [], p = (T = o == null ? void 0 : o.config) == null ? void 0 : T.type, {
1228
+ or(r, c, i), Ct(d);
1229
+ const A = (t == null ? void 0 : t.viewFullDetailsLabel) ?? vo(), C = !!(t != null && t.onViewFullDetails), w = (X = m.find((y) => typeof y.dataIndex == "number")) == null ? void 0 : X.dataIndex, v = ((O = o == null ? void 0 : o.data) == null ? void 0 : O.datasets) ?? [], p = (T = o == null ? void 0 : o.config) == null ? void 0 : T.type, {
1230
1230
  markup: { detailsPayload: F, hasCollapsedValues: k }
1231
1231
  } = Xa(
1232
1232
  d,
@@ -1251,10 +1251,10 @@ function sr(e, t) {
1251
1251
  return y;
1252
1252
  if (!Number.isFinite(y))
1253
1253
  return $;
1254
- const S = Number.isFinite(B) ? B : z, G = Math.abs(y - S);
1255
- return Math.abs($ - S) > G ? $ : y;
1254
+ const _ = Number.isFinite(B) ? B : z, G = Math.abs(y - _);
1255
+ return Math.abs($ - _) > G ? $ : y;
1256
1256
  }, Number.NaN) : Number.NaN, V = q, K = I, Z = e ? Number.isFinite(B) && Number.isFinite(N) && N < B ? "left" : "right" : "center";
1257
- Bn(
1257
+ Mn(
1258
1258
  d,
1259
1259
  i,
1260
1260
  r,
@@ -1266,15 +1266,15 @@ function sr(e, t) {
1266
1266
  ), d.dataset.caretX = String(V), d.dataset.caretY = String(K), d.dataset.anchorDirection = Z, d.style.opacity = "1";
1267
1267
  };
1268
1268
  }
1269
- function ko(e = !1, t) {
1269
+ function So(e = !1, t) {
1270
1270
  return {
1271
- ...vo(e ? "y" : "x"),
1271
+ ...go(e ? "y" : "x"),
1272
1272
  enabled: !1,
1273
1273
  external: sr(e, t)
1274
1274
  };
1275
1275
  }
1276
- const Gn = "en-US";
1277
- function jn(e, t) {
1276
+ const qn = "en-US";
1277
+ function Gn(e, t) {
1278
1278
  const n = t.split(".");
1279
1279
  let o = e;
1280
1280
  for (const a of n) {
@@ -1285,10 +1285,10 @@ function jn(e, t) {
1285
1285
  return typeof o == "string" ? o : void 0;
1286
1286
  }
1287
1287
  function ir() {
1288
- const e = so(), t = "report.widget.legend.comparison";
1289
- return `(${jn(Qt[e] ?? Qt[Gn], t) ?? jn(Qt[Gn], t) ?? "Comparison"})`;
1288
+ const e = lo(), t = "report.widget.legend.comparison";
1289
+ return `(${Gn(Qt[e] ?? Qt[qn], t) ?? Gn(Qt[qn], t) ?? "Comparison"})`;
1290
1290
  }
1291
- function To(e) {
1291
+ function ko(e) {
1292
1292
  function o(C, w, v) {
1293
1293
  if (C.measureText(w).width <= v) return w;
1294
1294
  const p = "…";
@@ -1458,7 +1458,7 @@ const ur = {
1458
1458
  }, pr = ["onMouseenter", "onFocus"], gr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, vr = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, yr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, br = {
1459
1459
  key: 1,
1460
1460
  class: "flex justify-center px-2 pt-2"
1461
- }, Jn = 500, Cr = 320, Jt = 30, Wt = /* @__PURE__ */ Be({
1461
+ }, jn = 500, Cr = 320, Jt = 30, Wt = /* @__PURE__ */ Me({
1462
1462
  __name: "TooltipDetailSidesheet",
1463
1463
  props: {
1464
1464
  modelValue: { type: Boolean },
@@ -1466,7 +1466,7 @@ const ur = {
1466
1466
  },
1467
1467
  emits: ["update:modelValue", "value-hover", "value-leave"],
1468
1468
  setup(e, { emit: t }) {
1469
- const n = e, o = t, { t: a } = it(), i = L(null), r = L(Jn), c = L(!1), d = L({}), m = b({
1469
+ const n = e, o = t, { t: a } = st(), i = L(null), r = L(jn), c = L(!1), d = L({}), m = b({
1470
1470
  get: () => n.modelValue,
1471
1471
  set: (T) => o("update:modelValue", T)
1472
1472
  }), A = b(() => {
@@ -1519,7 +1519,7 @@ const ur = {
1519
1519
  k(), m.value = !1;
1520
1520
  }
1521
1521
  function H() {
1522
- return typeof window > "u" ? Jn : Math.floor(window.innerWidth * 0.94);
1522
+ return typeof window > "u" ? jn : Math.floor(window.innerWidth * 0.94);
1523
1523
  }
1524
1524
  function x(T) {
1525
1525
  const u = H(), y = Math.min(Cr, u);
@@ -1557,11 +1557,11 @@ const ur = {
1557
1557
  m.value && z();
1558
1558
  }), Vt(() => {
1559
1559
  r.value = x(r.value), z(), document.addEventListener("pointerdown", X, !0), document.addEventListener("keydown", O), window.addEventListener("resize", Z);
1560
- }), no(() => {
1560
+ }), to(() => {
1561
1561
  N(), document.removeEventListener("pointerdown", X, !0), document.removeEventListener("keydown", O), window.removeEventListener("resize", Z);
1562
1562
  }), (T, u) => {
1563
1563
  const y = ie("FmButton");
1564
- return Y(), de(No, {
1564
+ return Y(), de(Vo, {
1565
1565
  "enter-active-class": "transform transition duration-200 ease-out",
1566
1566
  "enter-from-class": "translate-x-full opacity-0",
1567
1567
  "enter-to-class": "translate-x-0 opacity-100",
@@ -1575,7 +1575,7 @@ const ur = {
1575
1575
  ref_key: "panelRef",
1576
1576
  ref: i,
1577
1577
  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",
1578
- style: Ie(w.value),
1578
+ style: Pe(w.value),
1579
1579
  role: "dialog",
1580
1580
  "aria-modal": "false",
1581
1581
  "aria-label": s(a)("report.widget.comparisonTooltip.fullBreakdownTitle")
@@ -1600,13 +1600,13 @@ const ur = {
1600
1600
  class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
1601
1601
  onMouseleave: k
1602
1602
  }, [
1603
- (Y(!0), re(Ve, null, Ft(C.value, (P, W) => (Y(), re("div", {
1603
+ (Y(!0), re(Re, null, Ft(C.value, (P, W) => (Y(), re("div", {
1604
1604
  key: P.key,
1605
1605
  class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
1606
1606
  }, [
1607
1607
  P.title ? (Y(), re("p", hr, Te(P.title), 1)) : me("", !0),
1608
- (Y(!0), re(Ve, null, Ft(P.visibleValues, ($, S) => (Y(), re("button", {
1609
- key: `${$.text}-${S}`,
1608
+ (Y(!0), re(Re, null, Ft(P.visibleValues, ($, _) => (Y(), re("button", {
1609
+ key: `${$.text}-${_}`,
1610
1610
  type: "button",
1611
1611
  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",
1612
1612
  onMouseenter: (G) => F($),
@@ -1620,7 +1620,7 @@ const ur = {
1620
1620
  "inline-block h-3 w-3 shrink-0 box-border",
1621
1621
  $.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)]"
1622
1622
  ]),
1623
- style: Ie({ backgroundColor: $.color })
1623
+ style: Pe({ backgroundColor: $.color })
1624
1624
  }, null, 6),
1625
1625
  j("span", vr, Te(p($)), 1)
1626
1626
  ]),
@@ -1651,7 +1651,7 @@ const ur = {
1651
1651
  }, wr = ["aria-pressed", "onClick"], _r = ["title"], Sr = {
1652
1652
  key: 0,
1653
1653
  class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
1654
- }, kr = 36, Zn = 2, Qn = 16, Tr = 50, Lr = 6, Dr = /* @__PURE__ */ Be({
1654
+ }, kr = 36, Jn = 2, Zn = 16, Tr = 50, Lr = 6, Dr = /* @__PURE__ */ Me({
1655
1655
  __name: "ChartLegendPanel",
1656
1656
  props: {
1657
1657
  chartRef: {},
@@ -1671,7 +1671,7 @@ const ur = {
1671
1671
  },
1672
1672
  emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
1673
1673
  setup(e, { emit: t }) {
1674
- const n = e, o = t, { t: a, locale: i } = it(), r = L([]), c = L(0), d = L(!1), m = L(!1), A = L(0), C = L(null), w = L(null), v = L(null), p = L(null), F = L(!1), k = L(0), M = L(0), z = L(!1), q = L(0), I = L(0), H = b(() => n.enabled !== !1), x = b(() => n.position === "left" || n.position === "right");
1674
+ const n = e, o = t, { t: a, locale: i } = st(), r = L([]), c = L(0), d = L(!1), m = L(!1), A = L(0), C = L(null), w = L(null), v = L(null), p = L(null), F = L(!1), k = L(0), M = L(0), z = L(!1), q = L(0), I = L(0), H = b(() => n.enabled !== !1), x = b(() => n.position === "left" || n.position === "right");
1675
1675
  let B = null;
1676
1676
  const N = b(
1677
1677
  () => d.value && m.value && F.value
@@ -1691,7 +1691,7 @@ const ur = {
1691
1691
  B != null && (window.clearTimeout(B), B = null);
1692
1692
  }
1693
1693
  function u() {
1694
- const l = wo(
1694
+ const l = xo(
1695
1695
  n.chartRef
1696
1696
  );
1697
1697
  if (l)
@@ -1703,7 +1703,7 @@ const ur = {
1703
1703
  const R = g.querySelector("canvas");
1704
1704
  if (!(R instanceof HTMLCanvasElement))
1705
1705
  continue;
1706
- const U = vn.getChart(R);
1706
+ const U = gn.getChart(R);
1707
1707
  if (U)
1708
1708
  return U;
1709
1709
  }
@@ -1741,7 +1741,7 @@ const ur = {
1741
1741
  function $() {
1742
1742
  W();
1743
1743
  }
1744
- function S(l) {
1744
+ function _(l) {
1745
1745
  const h = v.value, f = w.value;
1746
1746
  if (!h || !f || !F.value)
1747
1747
  return;
@@ -1829,10 +1829,10 @@ const ur = {
1829
1829
  const f = window.getComputedStyle(h), g = parseFloat(f.paddingLeft) || 0, R = parseFloat(f.paddingRight) || 0, U = h.getBoundingClientRect().width - g - R;
1830
1830
  return Number.isFinite(U) && U > 0 ? U : null;
1831
1831
  }
1832
- function Ae() {
1832
+ function Be() {
1833
1833
  const l = u(), h = Number(l == null ? void 0 : l.height), f = pe();
1834
1834
  if (x.value)
1835
- return Number.isFinite(h) && h > 0 ? Math.max(0, Math.floor(h - Qn)) : f != null ? Math.max(0, Math.floor(f - Qn)) : 120;
1835
+ return Number.isFinite(h) && h > 0 ? Math.max(0, Math.floor(h - Zn)) : f != null ? Math.max(0, Math.floor(f - Zn)) : 120;
1836
1836
  if (f != null) {
1837
1837
  const g = f * 0.3, R = f - kr, U = Math.min(g, R);
1838
1838
  return Math.max(0, Math.floor(U));
@@ -1864,7 +1864,7 @@ const ur = {
1864
1864
  if (f) {
1865
1865
  const U = typeof l.datasetIndex == "number" ? l.datasetIndex : h, E = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : Math.max(1, Number(r.value.length));
1866
1866
  if (f === ye.breakdown) {
1867
- const D = Ct({
1867
+ const D = bt({
1868
1868
  fallbackIndex: U,
1869
1869
  metricCount: E
1870
1870
  }), le = ke({
@@ -1872,7 +1872,7 @@ const ur = {
1872
1872
  metricCount: E,
1873
1873
  mode: ye.metric
1874
1874
  });
1875
- return _t({
1875
+ return wt({
1876
1876
  breakdownIndex: D,
1877
1877
  metricIndex: le,
1878
1878
  metricCount: E,
@@ -1898,7 +1898,7 @@ const ur = {
1898
1898
  function _e(l) {
1899
1899
  return typeof l == "string" && l.trim().length > 0 ? l : Array.isArray(l) ? l.map((f) => _e(f)).find((f) => typeof f == "string" && f.trim().length > 0) ?? "" : "";
1900
1900
  }
1901
- function St(l) {
1901
+ function _t(l) {
1902
1902
  return Array.isArray(n.hiddenDataPointIndexes) ? n.hiddenDataPointIndexes.includes(l) : !1;
1903
1903
  }
1904
1904
  function Ke(l) {
@@ -1909,7 +1909,7 @@ const ur = {
1909
1909
  return l;
1910
1910
  const h = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : 1;
1911
1911
  return [...l.map((g, R) => {
1912
- const U = typeof g.datasetIndex == "number" ? g.datasetIndex : R, E = Ct({
1912
+ const U = typeof g.datasetIndex == "number" ? g.datasetIndex : R, E = bt({
1913
1913
  fallbackIndex: U,
1914
1914
  metricCount: h
1915
1915
  });
@@ -1920,7 +1920,7 @@ const ur = {
1920
1920
  };
1921
1921
  })].sort((g, R) => g.breakdownIndex !== R.breakdownIndex ? g.breakdownIndex - R.breakdownIndex : g.originalIndex - R.originalIndex).map((g) => g.item);
1922
1922
  }
1923
- function ut(l) {
1923
+ function it(l) {
1924
1924
  if (l.length <= 1)
1925
1925
  return l;
1926
1926
  const h = /* @__PURE__ */ new Map(), f = [];
@@ -1951,15 +1951,15 @@ const ur = {
1951
1951
  );
1952
1952
  typeof g.datasetKey == "string" && g.datasetKey.trim().length > 0 && te.add(g.datasetKey), f[le] = {
1953
1953
  ...he,
1954
- datasetIndexes: Array.from(ve).sort((ce, fe) => ce - fe),
1954
+ datasetIndexes: Array.from(ve).sort((ue, fe) => ue - fe),
1955
1955
  datasetKeys: Array.from(te),
1956
1956
  hidden: he.hidden === !0 && g.hidden === !0
1957
1957
  };
1958
1958
  }
1959
1959
  return f;
1960
1960
  }
1961
- function ct(l) {
1962
- var D, le, he, ve, te, ce;
1961
+ function ut(l) {
1962
+ var D, le, he, ve, te, ue;
1963
1963
  const h = l == null ? void 0 : l.legend;
1964
1964
  if (typeof (h == null ? void 0 : h.buildLabels) == "function")
1965
1965
  try {
@@ -1969,16 +1969,16 @@ const ur = {
1969
1969
  const f = Ke(h == null ? void 0 : h.legendItems);
1970
1970
  if (f.length > 0)
1971
1971
  return f;
1972
- const g = (le = (D = l == null ? void 0 : l.options) == null ? void 0 : D.plugins) == null ? void 0 : le.legend, R = g == null ? void 0 : g.labels, U = R == null ? void 0 : R.generateLabels, E = (ce = (te = (ve = (he = vn.defaults) == null ? void 0 : he.plugins) == null ? void 0 : ve.legend) == null ? void 0 : te.labels) == null ? void 0 : ce.generateLabels;
1972
+ const g = (le = (D = l == null ? void 0 : l.options) == null ? void 0 : D.plugins) == null ? void 0 : le.legend, R = g == null ? void 0 : g.labels, U = R == null ? void 0 : R.generateLabels, E = (ue = (te = (ve = (he = gn.defaults) == null ? void 0 : he.plugins) == null ? void 0 : ve.legend) == null ? void 0 : te.labels) == null ? void 0 : ue.generateLabels;
1973
1973
  let J = Ke(
1974
1974
  typeof U == "function" ? U(l) : []
1975
1975
  );
1976
1976
  return J.length === 0 && typeof E == "function" && (J = Ke(E(l))), typeof (R == null ? void 0 : R.filter) == "function" && (J = J.filter((fe) => R.filter(fe, l.data))), typeof (R == null ? void 0 : R.sort) == "function" && (J = [...J].sort((fe, Le) => R.sort(fe, Le, l.data))), (g == null ? void 0 : g.reverse) === !0 && (J = [...J].reverse()), J;
1977
1977
  }
1978
- function dt(l) {
1978
+ function ct(l) {
1979
1979
  var f;
1980
1980
  return (Array.isArray((f = l == null ? void 0 : l.data) == null ? void 0 : f.datasets) ? l.data.datasets : []).map((g, R) => {
1981
- const U = _e((g == null ? void 0 : g.borderColor) ?? (g == null ? void 0 : g.backgroundColor)), E = gt({
1981
+ const U = _e((g == null ? void 0 : g.borderColor) ?? (g == null ? void 0 : g.backgroundColor)), E = pt({
1982
1982
  datasetIndex: R,
1983
1983
  label: g == null ? void 0 : g.label
1984
1984
  });
@@ -1992,11 +1992,11 @@ const ur = {
1992
1992
  };
1993
1993
  });
1994
1994
  }
1995
- const ft = b(() => `(${a("report.widget.legend.comparison")})`), Xe = b(
1995
+ const dt = b(() => `(${a("report.widget.legend.comparison")})`), Xe = b(
1996
1996
  () => (l, h) => {
1997
1997
  const f = l == null ? "" : String(l).trim();
1998
1998
  if (f.length === 0) return f;
1999
- const g = ft.value;
1999
+ const g = dt.value;
2000
2000
  return f.endsWith(` ${g}`) || f.endsWith(g) ? f : (h == null ? void 0 : h.dash) === !0 || (h == null ? void 0 : h.isCompare) === !0 ? `${f} ${g}` : f;
2001
2001
  }
2002
2002
  );
@@ -2010,9 +2010,9 @@ const ur = {
2010
2010
  strokeStyle: _e(D),
2011
2011
  datasetIndex: 0,
2012
2012
  index: le,
2013
- hidden: St(le)
2013
+ hidden: _t(le)
2014
2014
  })) : f.map((D, le) => ({
2015
- datasetKey: gt({
2015
+ datasetKey: pt({
2016
2016
  datasetIndex: le,
2017
2017
  label: D == null ? void 0 : D.label
2018
2018
  }),
@@ -2025,7 +2025,7 @@ const ur = {
2025
2025
  ),
2026
2026
  datasetIndex: le,
2027
2027
  hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(
2028
- gt({
2028
+ pt({
2029
2029
  datasetIndex: le,
2030
2030
  label: D == null ? void 0 : D.label
2031
2031
  })
@@ -2053,15 +2053,15 @@ const ur = {
2053
2053
  const f = v.value;
2054
2054
  if (!f || l.length === 0)
2055
2055
  return 0;
2056
- const g = Math.max(0, h - Zn), R = window.getComputedStyle(f);
2056
+ const g = Math.max(0, h - Jn), R = window.getComputedStyle(f);
2057
2057
  if (R.flexDirection.startsWith("column")) {
2058
- const te = Number.parseFloat(R.rowGap || R.gap || "0") || 0, ce = Xt();
2058
+ const te = Number.parseFloat(R.rowGap || R.gap || "0") || 0, ue = Xt();
2059
2059
  let fe = 0, Le = 0;
2060
- for (let $e = 0; $e < l.length; $e += 1) {
2061
- const Fe = l[$e];
2062
- if (!Fe)
2060
+ for (let Ne = 0; Ne < l.length; Ne += 1) {
2061
+ const Ae = l[Ne];
2062
+ if (!Ae)
2063
2063
  continue;
2064
- const je = fe + (Le > 0 ? te : 0) + Fe.offsetHeight, at = l.length - ($e + 1) > 0 ? te + ce : 0;
2064
+ const je = fe + (Le > 0 ? te : 0) + Ae.offsetHeight, at = l.length - (Ne + 1) > 0 ? te + ue : 0;
2065
2065
  if (je + at > g)
2066
2066
  break;
2067
2067
  fe = je, Le += 1;
@@ -2080,7 +2080,7 @@ const ur = {
2080
2080
  return Math.max(1, J.length - 1);
2081
2081
  const le = Number.parseFloat(R.columnGap || R.gap || "0") || 0, he = f.clientWidth;
2082
2082
  for (let te = J.length; te > 0; te -= 1) {
2083
- const ce = J.slice(0, te), fe = ce[ce.length - 1];
2083
+ const ue = J.slice(0, te), fe = ue[ue.length - 1];
2084
2084
  if (!fe)
2085
2085
  continue;
2086
2086
  if (fe.offsetLeft + fe.offsetWidth + le + D <= he)
@@ -2088,7 +2088,7 @@ const ur = {
2088
2088
  }
2089
2089
  return 1;
2090
2090
  }
2091
- function kt() {
2091
+ function St() {
2092
2092
  const l = v.value;
2093
2093
  if (!l) {
2094
2094
  m.value = !1, A.value = 0, c.value = 0, y(), W();
@@ -2101,19 +2101,19 @@ const ur = {
2101
2101
  m.value = !1, A.value = 0, c.value = 0, y(), W();
2102
2102
  return;
2103
2103
  }
2104
- const f = Array.from(new Set(h.map((te) => te.offsetTop))).sort((te, ce) => te - ce), g = !d.value && r.value.length > h.length, R = !d.value && !g, U = R || A.value <= 0 ? Ae() : A.value;
2104
+ const f = Array.from(new Set(h.map((te) => te.offsetTop))).sort((te, ue) => te - ue), g = !d.value && r.value.length > h.length, R = !d.value && !g, U = R || A.value <= 0 ? Be() : A.value;
2105
2105
  if ((R || A.value <= 0) && (A.value = U), g) {
2106
- const te = Ae();
2106
+ const te = Be();
2107
2107
  if (te > 0 && (A.value = te), window.getComputedStyle(l).flexDirection.startsWith("column") && c.value < r.value.length) {
2108
- const Le = Math.max(0, A.value - Zn), $e = l.scrollHeight;
2109
- if ($e + 1 < Le) {
2110
- const Fe = h.map((De) => De.offsetHeight).filter((De) => Number.isFinite(De) && De > 0), je = Fe.length > 0 ? Fe.reduce((De, at) => De + at, 0) / Fe.length : 0;
2108
+ const Le = Math.max(0, A.value - Jn), Ne = l.scrollHeight;
2109
+ if (Ne + 1 < Le) {
2110
+ const Ae = h.map((De) => De.offsetHeight).filter((De) => Number.isFinite(De) && De > 0), je = Ae.length > 0 ? Ae.reduce((De, at) => De + at, 0) / Ae.length : 0;
2111
2111
  if (je > 0) {
2112
- const De = window.getComputedStyle(l), at = Number.parseFloat(De.rowGap || De.gap || "0") || 0, un = Math.max(1, je + at), Et = Le - $e, Pt = Math.floor(Et / un);
2113
- if (Pt > 0) {
2112
+ const De = window.getComputedStyle(l), at = Number.parseFloat(De.rowGap || De.gap || "0") || 0, un = Math.max(1, je + at), Et = Le - Ne, Dt = Math.floor(Et / un);
2113
+ if (Dt > 0) {
2114
2114
  c.value = Math.min(
2115
2115
  r.value.length,
2116
- c.value + Pt
2116
+ c.value + Dt
2117
2117
  ), We();
2118
2118
  return;
2119
2119
  }
@@ -2127,17 +2127,17 @@ const ur = {
2127
2127
  (R || c.value <= 0) && (c.value = Math.max(0, ve)), m.value = he > U, y(), W();
2128
2128
  }
2129
2129
  function We() {
2130
- $o(() => {
2131
- kt(), window.requestAnimationFrame(() => {
2132
- kt(), P(), W();
2130
+ No(() => {
2131
+ St(), window.requestAnimationFrame(() => {
2132
+ St(), P(), W();
2133
2133
  });
2134
2134
  });
2135
2135
  }
2136
- const Tt = b(() => {
2136
+ const kt = b(() => {
2137
2137
  const l = {
2138
2138
  "--legend-text-color": K.value,
2139
2139
  "--legend-font-size": `${Z.value}px`
2140
- }, h = Ae();
2140
+ }, h = Be();
2141
2141
  if (x.value) {
2142
2142
  const f = Ue();
2143
2143
  return {
@@ -2166,7 +2166,7 @@ const ur = {
2166
2166
  } : m.value ? {
2167
2167
  overflow: "hidden"
2168
2168
  } : {} : {});
2169
- function Lt() {
2169
+ function Tt() {
2170
2170
  var g;
2171
2171
  if (!H.value) {
2172
2172
  r.value = [], c.value = 0, d.value = !1, m.value = !1, A.value = 0, O({ height: 0, width: 0 });
@@ -2181,12 +2181,12 @@ const ur = {
2181
2181
  return;
2182
2182
  }
2183
2183
  try {
2184
- r.value = ct(l);
2184
+ r.value = ut(l);
2185
2185
  } catch {
2186
2186
  r.value = [];
2187
2187
  }
2188
2188
  const h = Array.isArray((g = l == null ? void 0 : l.data) == null ? void 0 : g.datasets) ? l.data.datasets : [];
2189
- r.value.length === 0 && (r.value = Ye(n.legendUpdateKey, n.chartRef)), r.value.length === 0 && (r.value = dt(l)), r.value = ut(tt(r.value));
2189
+ r.value.length === 0 && (r.value = Ye(n.legendUpdateKey, n.chartRef)), r.value.length === 0 && (r.value = ct(l)), r.value = it(tt(r.value));
2190
2190
  const f = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
2191
2191
  r.value.length === 0 && !(h.length > 0 || f) && X(0), We();
2192
2192
  }
@@ -2195,13 +2195,13 @@ const ur = {
2195
2195
  }
2196
2196
  function an(l, h) {
2197
2197
  return Array.isArray(l.datasetKeys) && l.datasetKeys.length > 0 ? l.datasetKeys.filter((f) => typeof f == "string" && f.trim().length > 0) : typeof l.datasetKey == "string" && l.datasetKey.trim().length > 0 ? [l.datasetKey] : h.map(
2198
- (f) => gt({
2198
+ (f) => pt({
2199
2199
  datasetIndex: f,
2200
2200
  label: l.text
2201
2201
  })
2202
2202
  );
2203
2203
  }
2204
- function Dt(l, h) {
2204
+ function Lt(l, h) {
2205
2205
  r.value = r.value.map(
2206
2206
  (f) => l(f) ? {
2207
2207
  ...f,
@@ -2228,7 +2228,7 @@ const ur = {
2228
2228
  U && typeof U.hidden == "boolean" && (U.hidden = !U.hidden);
2229
2229
  }
2230
2230
  function ot(l = 0) {
2231
- Lt();
2231
+ Tt();
2232
2232
  const h = u(), f = r.value.length > 0;
2233
2233
  if (h || f || l >= Lr) {
2234
2234
  T();
@@ -2248,7 +2248,7 @@ const ur = {
2248
2248
  }
2249
2249
  f && (ln(f, U), f.update());
2250
2250
  const ve = f && typeof f.getDataVisibility == "function" ? !f.getDataVisibility(U) : l.hidden !== !0;
2251
- Dt(
2251
+ Lt(
2252
2252
  (te) => typeof te.index == "number" ? te.index === U : te.datasetIndex === l.datasetIndex && te.text === l.text,
2253
2253
  ve
2254
2254
  );
@@ -2259,7 +2259,7 @@ const ur = {
2259
2259
  J.forEach((ve, te) => {
2260
2260
  o("toggleDatasetVisibility", {
2261
2261
  datasetIndex: ve,
2262
- datasetKey: D[te] ?? gt({
2262
+ datasetKey: D[te] ?? pt({
2263
2263
  datasetIndex: ve,
2264
2264
  label: l.text
2265
2265
  })
@@ -2272,9 +2272,9 @@ const ur = {
2272
2272
  if (J.length > 0) {
2273
2273
  const ve = l.hidden !== !0;
2274
2274
  J.forEach((te) => {
2275
- const ce = le[te];
2276
- ce && typeof ce == "object" && (ce.hidden = ve);
2277
- }), Dt(
2275
+ const ue = le[te];
2276
+ ue && typeof ue == "object" && (ue.hidden = ve);
2277
+ }), Lt(
2278
2278
  (te) => Ee(te, 0) === Ee(l, 0),
2279
2279
  ve
2280
2280
  );
@@ -2283,14 +2283,14 @@ const ur = {
2283
2283
  }
2284
2284
  if (J.length > 0) {
2285
2285
  const te = !J.every(
2286
- (ce) => typeof f.isDatasetVisible == "function" ? f.isDatasetVisible(ce) : l.hidden !== !0
2286
+ (ue) => typeof f.isDatasetVisible == "function" ? f.isDatasetVisible(ue) : l.hidden !== !0
2287
2287
  );
2288
- J.forEach((ce) => {
2289
- rn(f, ce, te);
2290
- const fe = le[ce];
2288
+ J.forEach((ue) => {
2289
+ rn(f, ue, te);
2290
+ const fe = le[ue];
2291
2291
  fe && typeof fe == "object" && (fe.hidden = !te);
2292
- }), f.update(), Dt(
2293
- (ce) => Ee(ce, 0) === Ee(l, 0),
2292
+ }), f.update(), Lt(
2293
+ (ue) => Ee(ue, 0) === Ee(l, 0),
2294
2294
  !te
2295
2295
  );
2296
2296
  }
@@ -2298,7 +2298,7 @@ const ur = {
2298
2298
  function sn() {
2299
2299
  d.value = !0, We();
2300
2300
  }
2301
- function Ne() {
2301
+ function Ve() {
2302
2302
  d.value = !1, v.value && (v.value.scrollTop = 0), We();
2303
2303
  }
2304
2304
  return Vt(() => {
@@ -2312,9 +2312,9 @@ const ur = {
2312
2312
  i.value
2313
2313
  ],
2314
2314
  () => {
2315
- Lt();
2315
+ Tt();
2316
2316
  }
2317
- ), no(() => {
2317
+ ), to(() => {
2318
2318
  z.value = !1, T(), O({ height: 0, width: 0 }), window.removeEventListener("mousemove", Q), window.removeEventListener("mouseup", ne);
2319
2319
  }), (l, h) => H.value ? (Y(), re("div", {
2320
2320
  key: 0,
@@ -2325,7 +2325,7 @@ const ur = {
2325
2325
  "mb-2": !x.value && l.position === "top",
2326
2326
  "mt-2": !x.value && l.position === "bottom"
2327
2327
  }]),
2328
- style: Ie(Tt.value)
2328
+ style: Pe(kt.value)
2329
2329
  }, [
2330
2330
  j("div", {
2331
2331
  ref_key: "legendScrollShellRef",
@@ -2345,10 +2345,10 @@ const ur = {
2345
2345
  class: we(["chart-legend-list m-0 flex list-none p-0", [
2346
2346
  x.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"
2347
2347
  ]]),
2348
- style: Ie(nt.value),
2348
+ style: Pe(nt.value),
2349
2349
  onScroll: $
2350
2350
  }, [
2351
- (Y(!0), re(Ve, null, Ft(qe.value, (f, g) => (Y(), re("li", {
2351
+ (Y(!0), re(Re, null, Ft(qe.value, (f, g) => (Y(), re("li", {
2352
2352
  key: Ee(f, g),
2353
2353
  class: we(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2354
2354
  "opacity-45": f.hidden
@@ -2364,11 +2364,11 @@ const ur = {
2364
2364
  n.usePointStyle !== !1 ? (Y(), re("span", {
2365
2365
  key: 0,
2366
2366
  class: "h-5 w-5 shrink-0 rounded-full",
2367
- style: Ie({ backgroundColor: et(f, g) })
2367
+ style: Pe({ backgroundColor: et(f, g) })
2368
2368
  }, null, 4)) : (Y(), re("span", {
2369
2369
  key: 1,
2370
2370
  class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
2371
- style: Ie({
2371
+ style: Pe({
2372
2372
  backgroundColor: et(f, g),
2373
2373
  borderColor: "#c7c7cc"
2374
2374
  })
@@ -2388,29 +2388,29 @@ const ur = {
2388
2388
  type: "button",
2389
2389
  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",
2390
2390
  style: { fontSize: "var(--legend-font-size)" },
2391
- onClick: h[0] || (h[0] = Zt((f) => d.value ? Ne() : sn(), ["stop"]))
2391
+ onClick: h[0] || (h[0] = Zt((f) => d.value ? Ve() : sn(), ["stop"]))
2392
2392
  }, Te(d.value ? s(a)("report.widget.legend.viewLess") : s(a)("report.widget.legend.viewMore")), 1)
2393
2393
  ])) : me("", !0)
2394
2394
  ], 38),
2395
2395
  N.value ? (Y(), re("div", {
2396
2396
  key: 0,
2397
2397
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2398
- onMousedown: S
2398
+ onMousedown: _
2399
2399
  }, [
2400
2400
  j("div", {
2401
2401
  class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
2402
- style: Ie(V.value),
2402
+ style: Pe(V.value),
2403
2403
  onMousedown: Zt(G, ["stop"])
2404
2404
  }, null, 36)
2405
2405
  ], 32)) : me("", !0)
2406
2406
  ], 512)
2407
2407
  ], 6)) : me("", !0);
2408
2408
  }
2409
- }), Me = /* @__PURE__ */ io(Dr, [["__scopeId", "data-v-a258ca90"]]);
2409
+ }), Ie = /* @__PURE__ */ so(Dr, [["__scopeId", "data-v-a258ca90"]]);
2410
2410
  function Pr(e, t) {
2411
- const { t: n } = it(), { breakpoints: o } = Nt(), a = L(!1), i = L(null), r = L(null);
2411
+ const { t: n } = st(), { breakpoints: o } = Nt(), a = L(!1), i = L(null), r = L(null);
2412
2412
  function c() {
2413
- return wo(e.value) ?? r.value;
2413
+ return xo(e.value) ?? r.value;
2414
2414
  }
2415
2415
  function d(v) {
2416
2416
  a.value = v, !v && (i.value = null, en(c()), r.value = null);
@@ -2441,7 +2441,7 @@ function Pr(e, t) {
2441
2441
  function Ir(e) {
2442
2442
  const t = L([]), n = b(() => new Set(t.value));
2443
2443
  function o(r, c) {
2444
- return gt({
2444
+ return pt({
2445
2445
  datasetIndex: c,
2446
2446
  label: r == null ? void 0 : r.label
2447
2447
  });
@@ -2482,8 +2482,8 @@ function Ot({ chartRef: e, model: t, baseDatasets: n }) {
2482
2482
  handleTooltipDetailsLeave: m
2483
2483
  } = Pr(e, {
2484
2484
  maxTooltipItems: o
2485
- }), { datalabels: A, xCfg: C, yCfg: w, isTransposed: v, legend: p } = To(t.value), F = b(
2486
- () => ko(t.value.isTransposed === !0, r.value)
2485
+ }), { datalabels: A, xCfg: C, yCfg: w, isTransposed: v, legend: p } = ko(t.value), F = b(
2486
+ () => So(t.value.isTransposed === !0, r.value)
2487
2487
  ), k = b(() => {
2488
2488
  const N = p.value.position;
2489
2489
  return !N || N === "top" || N === "bottom" || N === "left" || N === "right";
@@ -2516,7 +2516,7 @@ function Ot({ chartRef: e, model: t, baseDatasets: n }) {
2516
2516
  datasets: B
2517
2517
  };
2518
2518
  }
2519
- const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /* @__PURE__ */ Be({
2519
+ const Mr = { class: "widget-content" }, mn = 1, Qn = "rgba(0, 0, 0, 0)", Br = /* @__PURE__ */ Me({
2520
2520
  __name: "WidgetBarchart",
2521
2521
  props: /* @__PURE__ */ ze({
2522
2522
  tileIndex: {}
@@ -2537,10 +2537,10 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2537
2537
  return {
2538
2538
  label: `__comparison_gap__${u}`,
2539
2539
  data: [0],
2540
- backgroundColor: eo,
2541
- borderColor: eo,
2540
+ backgroundColor: Qn,
2541
+ borderColor: Qn,
2542
2542
  minBarLength: 0,
2543
- barPercentage: hn,
2543
+ barPercentage: mn,
2544
2544
  isSpacer: !0
2545
2545
  };
2546
2546
  }
@@ -2560,21 +2560,21 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2560
2560
  metricCount: t.value.metricCount,
2561
2561
  mode: ye.metric
2562
2562
  });
2563
- let S = u.values;
2564
- i.value && (S = o.value.map(
2563
+ let _ = u.values;
2564
+ i.value && (_ = o.value.map(
2565
2565
  (oe, ge) => ge === y ? u.values[0] : NaN
2566
2566
  ));
2567
- const G = t.value.chartColorBinding === ye.breakdown, Q = Ct({
2567
+ const G = t.value.chartColorBinding === ye.breakdown, Q = bt({
2568
2568
  fallbackIndex: P,
2569
2569
  metricCount: t.value.metricCount
2570
- }), ne = S.map((oe) => oe === null ? NaN : Number(oe));
2570
+ }), ne = _.map((oe) => oe === null ? NaN : Number(oe));
2571
2571
  return {
2572
2572
  label: u.name,
2573
2573
  data: ne,
2574
2574
  dash: !!u.isCompare,
2575
2575
  minBarLength: void 0,
2576
- barPercentage: c.value ? hn : void 0,
2577
- backgroundColor: G ? _t({
2576
+ barPercentage: c.value ? mn : void 0,
2577
+ backgroundColor: G ? wt({
2578
2578
  breakdownIndex: Q,
2579
2579
  metricIndex: $,
2580
2580
  metricCount: t.value.metricCount,
@@ -2619,7 +2619,7 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2619
2619
  return X.value.forEach((y, P) => {
2620
2620
  u.push({
2621
2621
  ...y,
2622
- barPercentage: hn
2622
+ barPercentage: mn
2623
2623
  });
2624
2624
  const W = X.value[P + 1];
2625
2625
  y.dash === !0 && W && u.push(m(P));
@@ -2634,9 +2634,9 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2634
2634
  }
2635
2635
  }));
2636
2636
  return (u, y) => {
2637
- var W, $, S, G, Q, ne;
2637
+ var W, $, _, G, Q, ne;
2638
2638
  const P = ie("FmBarChart");
2639
- return Y(), re(Ve, null, [
2639
+ return Y(), re(Re, null, [
2640
2640
  j("div", Mr, [
2641
2641
  Qe(u.$slots, "menu"),
2642
2642
  j("div", {
@@ -2644,13 +2644,13 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2644
2644
  "chart-layout--side": s(x) && (s(H).display ?? !1) && s(N)
2645
2645
  }])
2646
2646
  }, [
2647
- s(x) && (s(H).display ?? !1) && s(V) ? (Y(), de(Me, {
2647
+ s(x) && (s(H).display ?? !1) && s(V) ? (Y(), de(Ie, {
2648
2648
  key: 0,
2649
2649
  "chart-ref": n.value,
2650
2650
  enabled: s(H).display ?? !1,
2651
2651
  position: s(B),
2652
2652
  "text-color": (W = s(H).labels) == null ? void 0 : W.color,
2653
- "font-size": (S = ($ = s(H).labels) == null ? void 0 : $.font) == null ? void 0 : S.size,
2653
+ "font-size": (_ = ($ = s(H).labels) == null ? void 0 : $.font) == null ? void 0 : _.size,
2654
2654
  "legend-update-key": s(X),
2655
2655
  "use-point-style": t.value.usePointStyle ?? !0,
2656
2656
  "chart-color-binding": t.value.chartColorBinding,
@@ -2676,7 +2676,7 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2676
2676
  plugins: [s(d)],
2677
2677
  "maintain-aspect-ratio": !1
2678
2678
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
2679
- s(x) && (s(H).display ?? !1) && !s(V) ? (Y(), de(Me, {
2679
+ s(x) && (s(H).display ?? !1) && !s(V) ? (Y(), de(Ie, {
2680
2680
  key: 1,
2681
2681
  "chart-ref": n.value,
2682
2682
  enabled: s(H).display ?? !1,
@@ -2705,7 +2705,7 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2705
2705
  ], 64);
2706
2706
  };
2707
2707
  }
2708
- }), Ar = { class: "widget-content" }, Fr = /* @__PURE__ */ Be({
2708
+ }), Ar = { class: "widget-content" }, Fr = /* @__PURE__ */ Me({
2709
2709
  __name: "WidgetCircular",
2710
2710
  props: /* @__PURE__ */ ze({
2711
2711
  tileIndex: {}
@@ -2715,7 +2715,7 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2715
2715
  }),
2716
2716
  emits: ["update:modelValue"],
2717
2717
  setup(e) {
2718
- const t = He(e, "modelValue"), { breakpoints: n } = Nt(), o = L(null), a = L([]), { datalabels: i, legend: r } = To(t.value), c = b(() => {
2718
+ const t = He(e, "modelValue"), { breakpoints: n } = Nt(), o = L(null), a = L([]), { datalabels: i, legend: r } = ko(t.value), c = b(() => {
2719
2719
  const I = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((H) => H.name) : [];
2720
2720
  return I.length > 0 ? I : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((H) => String(H)) : [];
2721
2721
  }), d = b(() => {
@@ -2775,7 +2775,7 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2775
2775
  "chart-layout--side": w.value && p.value
2776
2776
  }])
2777
2777
  }, [
2778
- w.value && F.value ? (Y(), de(Me, {
2778
+ w.value && F.value ? (Y(), de(Ie, {
2779
2779
  key: 0,
2780
2780
  "chart-ref": o.value,
2781
2781
  enabled: C.value,
@@ -2807,7 +2807,7 @@ const Mr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", Br = /*
2807
2807
  datalabels: s(i),
2808
2808
  "maintain-aspect-ratio": !1
2809
2809
  }, null, 8, ["datasets", "metrics", "tooltip", "datalabels"]),
2810
- w.value && !F.value ? (Y(), de(Me, {
2810
+ w.value && !F.value ? (Y(), de(Ie, {
2811
2811
  key: 1,
2812
2812
  "chart-ref": o.value,
2813
2813
  enabled: C.value,
@@ -2837,7 +2837,7 @@ function tn(e) {
2837
2837
  const [o, a] = t.split("."), i = new Intl.NumberFormat("en-US").format(Number(o));
2838
2838
  return a !== void 0 ? `${i}.${a}` : i;
2839
2839
  }
2840
- const Rr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-600" }, Nr = { class: "flex gap-2" }, $r = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, zr = { key: 0 }, Hr = { key: 1 }, Wr = /* @__PURE__ */ Be({
2840
+ const Rr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-600" }, Nr = { class: "flex gap-2" }, $r = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, zr = { key: 0 }, Hr = { key: 1 }, Wr = /* @__PURE__ */ Me({
2841
2841
  __name: "WidgetScorecard",
2842
2842
  props: {
2843
2843
  modelValue: { required: !0 },
@@ -2845,18 +2845,18 @@ const Rr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2845
2845
  },
2846
2846
  emits: ["update:modelValue"],
2847
2847
  setup(e) {
2848
- const t = He(e, "modelValue"), { t: n } = it(), { compareDateRange: o, defaultDateSetting: a } = At(nn()), { country: i } = lo(), r = b(() => {
2848
+ const t = He(e, "modelValue"), { t: n } = st(), { compareDateRange: o, defaultDateSetting: a } = At(nn()), { country: i } = ro(), r = b(() => {
2849
2849
  var p;
2850
2850
  return ((p = t.value.data) == null ? void 0 : p.value) || "";
2851
2851
  }), c = b(() => tn(r.value)), d = b(() => {
2852
2852
  const { data: p } = t.value;
2853
- return p != null && p.comparison ? go(r.value, p.comparison, i) : null;
2853
+ return p != null && p.comparison ? po(r.value, p.comparison, i) : null;
2854
2854
  });
2855
2855
  function m(p) {
2856
2856
  switch (p) {
2857
- case yn.bar:
2857
+ case vn.bar:
2858
2858
  return "bar";
2859
- case yn.line:
2859
+ case vn.line:
2860
2860
  return "line";
2861
2861
  default:
2862
2862
  return "line";
@@ -2874,7 +2874,7 @@ const Rr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2874
2874
  data: p.values,
2875
2875
  fill: !0,
2876
2876
  color: "#36a2eb"
2877
- }))), v = b(() => ko(!1));
2877
+ }))), v = b(() => So(!1));
2878
2878
  return (p, F) => {
2879
2879
  const k = ie("FmIcon"), M = ie("FmChip"), z = ie("FmTooltip"), q = ie("FmLineChart");
2880
2880
  return Y(), re("div", Rr, [
@@ -2907,7 +2907,7 @@ const Rr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2907
2907
  }, null, 8, ["name", "color"]),
2908
2908
  j("p", {
2909
2909
  class: "fm-typo-en-body-md-600",
2910
- style: Ie({ color: d.value.icon.color })
2910
+ style: Pe({ color: d.value.icon.color })
2911
2911
  }, Te(d.value.value), 5)
2912
2912
  ]),
2913
2913
  _: 1
@@ -2963,10 +2963,10 @@ function Ur(e, t) {
2963
2963
  const n = ie("FmMenuDivider");
2964
2964
  return Y(), de(n);
2965
2965
  }
2966
- const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableData.worker-BlwP8Wjn.js", Yr = { class: "my-4" }, Er = {
2966
+ const Kr = /* @__PURE__ */ so(Or, [["render", Ur]]), Xr = "/assets/processTableData.worker-BlwP8Wjn.js", Yr = { class: "my-4" }, Er = {
2967
2967
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
2968
2968
  style: { backgroundColor: "#f9f9f9" }
2969
- }, qr = { class: "font-bold" }, Gr = { class: "text-fm-color-neutral-gray-300" }, jr = /* @__PURE__ */ Be({
2969
+ }, qr = { class: "font-bold" }, Gr = { class: "text-fm-color-neutral-gray-300" }, jr = /* @__PURE__ */ Me({
2970
2970
  __name: "WidgetTable",
2971
2971
  props: /* @__PURE__ */ ze({
2972
2972
  tileIndex: {}
@@ -2976,7 +2976,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
2976
2976
  }),
2977
2977
  emits: ["update:modelValue"],
2978
2978
  setup(e) {
2979
- const { t, te: n } = it(), o = He(e, "modelValue"), { country: a } = lo(), { clearTileSorts: i, setTileSorts: r } = Xo(), c = Ln(), d = e, m = L([]), A = L(null), C = b(() => {
2979
+ const { t, te: n } = st(), o = He(e, "modelValue"), { country: a } = ro(), { clearTileSorts: i, setTileSorts: r } = Ko(), c = Tn(), d = e, m = L([]), A = L(null), C = b(() => {
2980
2980
  var u;
2981
2981
  return ((u = o.value.data) == null ? void 0 : u.columns) || [{ label: "", key: "" }];
2982
2982
  }), w = b(() => {
@@ -3011,7 +3011,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3011
3011
  const z = b(() => o.value.filterText), q = b(() => {
3012
3012
  var y;
3013
3013
  const u = (y = o.value.grandTotalLabel) == null ? void 0 : y.trim();
3014
- return u && u.length > 0 ? u : lt(t, n, "Grand total", "other");
3014
+ return u && u.length > 0 ? u : rt(t, n, "Grand total", "other");
3015
3015
  }), I = b(() => {
3016
3016
  var u, y;
3017
3017
  if (!(z.value && z.value.trim().length > 0 || !((u = w.value[0]) != null && u.isRollup) && !((y = w.value[w.value.length - 1]) != null && y.isRollup))) {
@@ -3029,20 +3029,20 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3029
3029
  switch (I.value) {
3030
3030
  case Je.top:
3031
3031
  u = [...((y = w.value[0]) == null ? void 0 : y.cells) || []].map((W, $) => {
3032
- var S;
3032
+ var _;
3033
3033
  return {
3034
3034
  main: W,
3035
- comparison: (S = w.value[0]) == null ? void 0 : S.comparisonCells[$],
3035
+ comparison: (_ = w.value[0]) == null ? void 0 : _.comparisonCells[$],
3036
3036
  rowType: C.value[$].type
3037
3037
  };
3038
3038
  });
3039
3039
  break;
3040
3040
  case Je.bottom:
3041
3041
  u = [...((P = w.value[w.value.length - 1]) == null ? void 0 : P.cells) || []].map((W, $) => {
3042
- var S;
3042
+ var _;
3043
3043
  return {
3044
3044
  main: W,
3045
- comparison: (S = w.value[w.value.length - 1]) == null ? void 0 : S.comparisonCells[$],
3045
+ comparison: (_ = w.value[w.value.length - 1]) == null ? void 0 : _.comparisonCells[$],
3046
3046
  rowType: C.value[$].type
3047
3047
  };
3048
3048
  });
@@ -3057,7 +3057,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3057
3057
  } : (y.includes("#") && !y.startsWith("#") && (y = y.split("#")[0]), {
3058
3058
  main: y,
3059
3059
  comparison: u == null ? void 0 : u.comparison,
3060
- difference: go(u.main, u.comparison, s(a))
3060
+ difference: po(u.main, u.comparison, s(a))
3061
3061
  });
3062
3062
  }
3063
3063
  Vt(() => {
@@ -3071,27 +3071,27 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3071
3071
  N.value = [];
3072
3072
  return;
3073
3073
  }
3074
- const u = ++V, y = (o.value.data.rows || []).map((S) => ({
3075
- isRollup: S.isRollup,
3076
- cells: Array.isArray(S.cells) ? [...S.cells] : [],
3077
- comparisonCells: Array.isArray(S.comparisonCells) ? [...S.comparisonCells] : []
3078
- })), P = (o.value.data.columns || []).map((S) => ({
3079
- key: S.key,
3080
- type: S.type,
3081
- label: S.label
3074
+ const u = ++V, y = (o.value.data.rows || []).map((_) => ({
3075
+ isRollup: _.isRollup,
3076
+ cells: Array.isArray(_.cells) ? [..._.cells] : [],
3077
+ comparisonCells: Array.isArray(_.comparisonCells) ? [..._.comparisonCells] : []
3078
+ })), P = (o.value.data.columns || []).map((_) => ({
3079
+ key: _.key,
3080
+ type: _.type,
3081
+ label: _.label
3082
3082
  })), W = {
3083
3083
  rows: y,
3084
3084
  columns: P,
3085
3085
  filter: z.value ?? "",
3086
- globalSorts: Ho(m.value).map((S) => ({
3087
- key: S.key,
3088
- type: S.type
3086
+ globalSorts: zo(m.value).map((_) => ({
3087
+ key: _.key,
3088
+ type: _.type
3089
3089
  })),
3090
3090
  grandTotalPosition: I.value,
3091
3091
  pageSize: H.value
3092
3092
  };
3093
- Yo(Xr, W).then((S) => {
3094
- u === V && (S != null && S.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(S.error), N.value = []) : N.value = Wo(S.data || []));
3093
+ Xo(Xr, W).then((_) => {
3094
+ u === V && (_ != null && _.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(_.error), N.value = []) : N.value = Ho(_.data || []));
3095
3095
  });
3096
3096
  }
3097
3097
  Se(
@@ -3131,7 +3131,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3131
3131
  const T = b(() => {
3132
3132
  var u;
3133
3133
  return (u = o.value.data) != null && u.columns ? o.value.data.columns.map((y, P) => {
3134
- const W = lt(t, n, y.label, "other"), $ = m.value.find((ne) => ne.key === y.key), S = !!$, G = M(y.key), Q = S ? $.type === It.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3134
+ const W = rt(t, n, y.label, "other"), $ = m.value.find((ne) => ne.key === y.key), _ = !!$, G = M(y.key), Q = _ ? $.type === It.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3135
3135
  return {
3136
3136
  accessorKey: y.key,
3137
3137
  header: () => {
@@ -3140,7 +3140,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3140
3140
  "button",
3141
3141
  {
3142
3142
  type: "button",
3143
- class: `w-full flex items-center gap-1 group/select-header select-none ${y.type === "NUMERIC" ? "justify-end" : "justify-start"} ${S ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
3143
+ class: `w-full flex items-center gap-1 group/select-header select-none ${y.type === "NUMERIC" ? "justify-end" : "justify-start"} ${_ ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
3144
3144
  onClick: () => O(y.key)
3145
3145
  },
3146
3146
  [
@@ -3151,7 +3151,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3151
3151
  ),
3152
3152
  qt(ne, {
3153
3153
  name: Q,
3154
- color: S ? "primary" : "neutral-gray-400",
3154
+ color: _ ? "primary" : "neutral-gray-400",
3155
3155
  size: "sm",
3156
3156
  class: "transition-transform",
3157
3157
  style: Q === "arrow_upward" ? "transform: translateY(-1px);" : ""
@@ -3183,7 +3183,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3183
3183
  });
3184
3184
  return (u, y) => {
3185
3185
  const P = ie("FmTable");
3186
- return Y(), re(Ve, null, [
3186
+ return Y(), re(Re, null, [
3187
3187
  j("div", Yr, [
3188
3188
  Qe(u.$slots, "menu")
3189
3189
  ]),
@@ -3199,19 +3199,19 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3199
3199
  class: "scrollbar-hide-table",
3200
3200
  "pin-header-row": !0,
3201
3201
  "auto-reset-page-index": !0
3202
- }, zo({ _: 2 }, [
3202
+ }, $o({ _: 2 }, [
3203
3203
  I.value ? {
3204
3204
  name: "pin-top",
3205
3205
  fn: xe(() => [
3206
- (Y(), de(oo(I.value === s(Je).bottom ? "tfoot" : "tbody"), null, {
3206
+ (Y(), de(no(I.value === s(Je).bottom ? "tfoot" : "tbody"), null, {
3207
3207
  default: xe(() => [
3208
3208
  j("tr", Er, [
3209
- (Y(!0), re(Ve, null, Ft(x.value, (W, $) => {
3210
- var S;
3209
+ (Y(!0), re(Re, null, Ft(x.value, (W, $) => {
3210
+ var _;
3211
3211
  return Y(), re("td", {
3212
3212
  key: `${s(Bt)()}_${$}`,
3213
3213
  class: "text-fm-color-typo-primary px-16",
3214
- style: Ie({ ...F(), ...M((S = C.value[$]) == null ? void 0 : S.key) })
3214
+ style: Pe({ ...F(), ...M((_ = C.value[$]) == null ? void 0 : _.key) })
3215
3215
  }, [
3216
3216
  j("span", {
3217
3217
  class: we([
@@ -3220,7 +3220,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3220
3220
  "w-full min-w-0",
3221
3221
  "whitespace-nowrap"
3222
3222
  ]),
3223
- style: Ie(F())
3223
+ style: Pe(F())
3224
3224
  }, [
3225
3225
  j("p", qr, Te(W.rowType === "NUMERIC" ? s(tn)(W.main) : W.main), 1),
3226
3226
  j("p", Gr, Te(W.comparison ? W.rowType === "NUMERIC" ? `(${s(tn)(W.comparison)})` : `(${W.comparison})` : ""), 1)
@@ -3238,7 +3238,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3238
3238
  ], 64);
3239
3239
  };
3240
3240
  }
3241
- }), Jr = { class: "widget-content" }, Zr = /* @__PURE__ */ Be({
3241
+ }), Jr = { class: "widget-content" }, Zr = /* @__PURE__ */ Me({
3242
3242
  __name: "WidgetStackBarChart",
3243
3243
  props: /* @__PURE__ */ ze({
3244
3244
  tileIndex: {}
@@ -3266,8 +3266,8 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3266
3266
  colorIndex: u,
3267
3267
  breakdownIndex: y
3268
3268
  }) {
3269
- var S;
3270
- const P = t.value.chartColorBinding === ye.metric ? u : t.value.chartColorBinding === ye.breakdown ? y : T, W = (S = t.value.chartColorLayers) == null ? void 0 : S[P], $ = Number(W);
3269
+ var _;
3270
+ const P = t.value.chartColorBinding === ye.metric ? u : t.value.chartColorBinding === ye.breakdown ? y : T, W = (_ = t.value.chartColorLayers) == null ? void 0 : _[P], $ = Number(W);
3271
3271
  return Number.isInteger($) && $ > 0 ? $ : P + 1;
3272
3272
  }
3273
3273
  const C = b(() => {
@@ -3286,13 +3286,13 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3286
3286
  isCompare: !1,
3287
3287
  metricCount: t.value.metricCount,
3288
3288
  mode: ye.metric
3289
- }), S = Ct({
3289
+ }), _ = bt({
3290
3290
  fallbackIndex: P,
3291
3291
  metricCount: t.value.metricCount
3292
3292
  }), G = A({
3293
3293
  datasetIndex: P,
3294
3294
  colorIndex: W,
3295
- breakdownIndex: S
3295
+ breakdownIndex: _
3296
3296
  }), ne = u.values.map((oe) => oe === null ? NaN : Number(oe));
3297
3297
  return {
3298
3298
  dataset: {
@@ -3302,8 +3302,8 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3302
3302
  minBarLength: void 0,
3303
3303
  grouped: r.value ? !1 : void 0,
3304
3304
  order: r.value ? G : void 0,
3305
- backgroundColor: t.value.chartColorBinding === ye.breakdown ? _t({
3306
- breakdownIndex: S,
3305
+ backgroundColor: t.value.chartColorBinding === ye.breakdown ? wt({
3306
+ breakdownIndex: _,
3307
3307
  metricIndex: $,
3308
3308
  metricCount: t.value.metricCount,
3309
3309
  isCompare: u.isCompare,
@@ -3346,9 +3346,9 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3346
3346
  baseDatasets: C
3347
3347
  });
3348
3348
  return (T, u) => {
3349
- var P, W, $, S, G, Q;
3349
+ var P, W, $, _, G, Q;
3350
3350
  const y = ie("FmBarChart");
3351
- return Y(), re(Ve, null, [
3351
+ return Y(), re(Re, null, [
3352
3352
  j("div", Jr, [
3353
3353
  Qe(T.$slots, "menu"),
3354
3354
  j("div", {
@@ -3356,7 +3356,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3356
3356
  "chart-layout--side": s(B) && (s(x).display ?? !1) && s(V)
3357
3357
  }])
3358
3358
  }, [
3359
- s(B) && (s(x).display ?? !1) && s(K) ? (Y(), de(Me, {
3359
+ s(B) && (s(x).display ?? !1) && s(K) ? (Y(), de(Ie, {
3360
3360
  key: 0,
3361
3361
  "chart-ref": n.value,
3362
3362
  enabled: s(x).display ?? !1,
@@ -3391,12 +3391,12 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3391
3391
  datalabels: s(z),
3392
3392
  "maintain-aspect-ratio": !1
3393
3393
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels"]),
3394
- s(B) && (s(x).display ?? !1) && !s(K) ? (Y(), de(Me, {
3394
+ s(B) && (s(x).display ?? !1) && !s(K) ? (Y(), de(Ie, {
3395
3395
  key: 1,
3396
3396
  "chart-ref": n.value,
3397
3397
  enabled: s(x).display ?? !1,
3398
3398
  position: s(N),
3399
- "text-color": (S = s(x).labels) == null ? void 0 : S.color,
3399
+ "text-color": (_ = s(x).labels) == null ? void 0 : _.color,
3400
3400
  "font-size": (Q = (G = s(x).labels) == null ? void 0 : G.font) == null ? void 0 : Q.size,
3401
3401
  "legend-update-key": s(O),
3402
3402
  "use-point-style": t.value.usePointStyle ?? !0,
@@ -3420,7 +3420,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3420
3420
  ], 64);
3421
3421
  };
3422
3422
  }
3423
- }), Qr = { class: "widget-content" }, pn = 1, to = "rgba(0, 0, 0, 0)", el = /* @__PURE__ */ Be({
3423
+ }), Qr = { class: "widget-content" }, hn = 1, eo = "rgba(0, 0, 0, 0)", el = /* @__PURE__ */ Me({
3424
3424
  __name: "WidgetClusteredStackBarchart",
3425
3425
  props: /* @__PURE__ */ ze({
3426
3426
  tileIndex: {}
@@ -3431,117 +3431,117 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3431
3431
  emits: ["update:modelValue"],
3432
3432
  setup(e) {
3433
3433
  const t = He(e, "modelValue"), n = L(null), o = b(() => {
3434
- var S;
3435
- return ((S = t.value.data) == null ? void 0 : S.xAxis) || [];
3434
+ var _;
3435
+ return ((_ = t.value.data) == null ? void 0 : _.xAxis) || [];
3436
3436
  }), a = b(() => {
3437
- var S;
3438
- return ((S = t.value.data) == null ? void 0 : S.datasets) ?? [];
3439
- }), i = Ht("bar"), r = b(() => t.value.stackBarOverlap === !0), c = b(() => r.value === !1), d = b(() => o.value.length === 1 && a.value.some((S) => S.isCompare === !0)), m = b(() => ({
3437
+ var _;
3438
+ return ((_ = t.value.data) == null ? void 0 : _.datasets) ?? [];
3439
+ }), i = Ht("bar"), r = b(() => t.value.stackBarOverlap === !0), c = b(() => r.value === !1), d = b(() => o.value.length === 1 && a.value.some((_) => _.isCompare === !0)), m = b(() => ({
3440
3440
  ...B.value,
3441
3441
  stacked: c.value
3442
3442
  })), A = b(() => ({
3443
3443
  ...N.value,
3444
3444
  stacked: c.value
3445
3445
  }));
3446
- function C(S) {
3447
- const G = " - ", Q = S.lastIndexOf(G);
3446
+ function C(_) {
3447
+ const G = " - ", Q = _.lastIndexOf(G);
3448
3448
  return Q < 0 ? {
3449
- clusterKey: S,
3450
- metricLabel: S
3449
+ clusterKey: _,
3450
+ metricLabel: _
3451
3451
  } : {
3452
- clusterKey: S.slice(0, Q),
3453
- metricLabel: S.slice(Q + G.length)
3452
+ clusterKey: _.slice(0, Q),
3453
+ metricLabel: _.slice(Q + G.length)
3454
3454
  };
3455
3455
  }
3456
- function w(S, G) {
3457
- if (typeof S == "string") {
3458
- const Q = S.trim();
3456
+ function w(_, G) {
3457
+ if (typeof _ == "string") {
3458
+ const Q = _.trim();
3459
3459
  if (Q.length > 0)
3460
3460
  return Q;
3461
3461
  }
3462
3462
  return `Series ${G + 1}`;
3463
3463
  }
3464
3464
  function v({
3465
- datasetIndex: S,
3465
+ datasetIndex: _,
3466
3466
  colorIndex: G
3467
3467
  }) {
3468
3468
  var ge;
3469
- const Q = t.value.chartColorBinding === ye.metric ? G : S, ne = (ge = t.value.chartColorLayers) == null ? void 0 : ge[Q], oe = Number(ne);
3469
+ const Q = t.value.chartColorBinding === ye.metric ? G : _, ne = (ge = t.value.chartColorLayers) == null ? void 0 : ge[Q], oe = Number(ne);
3470
3470
  return Number.isInteger(oe) && oe > 0 ? oe : Q + 1;
3471
3471
  }
3472
- function p(S) {
3472
+ function p(_) {
3473
3473
  return {
3474
- label: `__comparison_gap__${S}`,
3475
- tooltipLabel: `__comparison_gap__${S}`,
3474
+ label: `__comparison_gap__${_}`,
3475
+ tooltipLabel: `__comparison_gap__${_}`,
3476
3476
  data: [0],
3477
3477
  grouped: !0,
3478
- stack: `__comparison_gap__${S}`,
3479
- backgroundColor: to,
3480
- borderColor: to,
3478
+ stack: `__comparison_gap__${_}`,
3479
+ backgroundColor: eo,
3480
+ borderColor: eo,
3481
3481
  minBarLength: 0,
3482
- barPercentage: pn,
3482
+ barPercentage: hn,
3483
3483
  isSpacer: !0
3484
3484
  };
3485
3485
  }
3486
3486
  const F = b(() => {
3487
3487
  if (a.value.length === 0)
3488
3488
  return [];
3489
- const S = a.value.map((ae, pe) => ({
3489
+ const _ = a.value.map((ae, pe) => ({
3490
3490
  source: ae,
3491
3491
  index: pe,
3492
3492
  name: w(ae == null ? void 0 : ae.name, pe),
3493
3493
  values: (ae == null ? void 0 : ae.values) ?? []
3494
3494
  })), G = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map();
3495
- for (const ae of S) {
3495
+ for (const ae of _) {
3496
3496
  const { clusterKey: pe, metricLabel: be } = C(ae.name);
3497
3497
  Q.has(pe) || Q.set(pe, Q.size), G.has(be) || G.set(be, G.size);
3498
3498
  }
3499
3499
  const ne = Math.max(G.size, 1), oe = t.value.chartColorBinding === ye.breakdown, ge = t.value.chartUseSecondaryMetricShades !== !1;
3500
- return S.map((ae) => {
3500
+ return _.map((ae) => {
3501
3501
  var Xe;
3502
3502
  const pe = $t({
3503
3503
  datasets: a.value,
3504
3504
  datasetIndex: ae.index
3505
- }), be = co({
3505
+ }), be = uo({
3506
3506
  datasets: a.value,
3507
3507
  datasetIndex: ae.index
3508
- }), Ae = ke({
3508
+ }), Be = ke({
3509
3509
  datasetIndex: pe,
3510
3510
  isCompare: !1,
3511
3511
  metricCount: t.value.metricCount,
3512
3512
  mode: t.value.chartColorBinding
3513
- }), { clusterKey: Ue, metricLabel: et } = C(ae.name), _e = ((Xe = S[be]) == null ? void 0 : Xe.name) ?? ae.name, { clusterKey: St, metricLabel: Ke } = C(_e), tt = ke({
3513
+ }), { clusterKey: Ue, metricLabel: et } = C(ae.name), _e = ((Xe = _[be]) == null ? void 0 : Xe.name) ?? ae.name, { clusterKey: _t, metricLabel: Ke } = C(_e), tt = ke({
3514
3514
  datasetIndex: pe,
3515
3515
  isCompare: !1,
3516
3516
  metricCount: ne,
3517
3517
  mode: ye.breakdown
3518
- }), ut = G.get(Ke) ?? 0, ct = oe ? _t({
3518
+ }), it = G.get(Ke) ?? 0, ut = oe ? wt({
3519
3519
  breakdownIndex: tt,
3520
- metricIndex: ut,
3520
+ metricIndex: it,
3521
3521
  metricCount: ne,
3522
3522
  isCompare: ae.source.isCompare,
3523
3523
  breakdownColors: t.value.chartBreakdownColors,
3524
3524
  useSecondaryMetricShades: ge,
3525
3525
  colorMode: "clustered"
3526
3526
  }) : Ze({
3527
- index: Ae,
3527
+ index: Be,
3528
3528
  isCompare: ae.source.isCompare,
3529
3529
  customColors: t.value.chartColors
3530
- }), dt = v({
3530
+ }), ct = v({
3531
3531
  datasetIndex: pe,
3532
- colorIndex: Ae
3533
- }), ft = ae.values.map((Ye) => Ye === null ? NaN : Number(Ye));
3532
+ colorIndex: Be
3533
+ }), dt = ae.values.map((Ye) => Ye === null ? NaN : Number(Ye));
3534
3534
  return {
3535
3535
  label: ae.name,
3536
3536
  tooltipLabel: `${Ue} - ${et}`,
3537
- data: ft,
3537
+ data: dt,
3538
3538
  dash: !!ae.source.isCompare,
3539
3539
  minBarLength: void 0,
3540
- barPercentage: d.value ? pn : void 0,
3540
+ barPercentage: d.value ? hn : void 0,
3541
3541
  grouped: !0,
3542
- order: r.value ? dt : void 0,
3542
+ order: r.value ? ct : void 0,
3543
3543
  stack: ae.source.isCompare ? `${Ue}__compare` : `${Ue}__main`,
3544
- backgroundColor: ct
3544
+ backgroundColor: ut
3545
3545
  };
3546
3546
  });
3547
3547
  }), {
@@ -3570,36 +3570,36 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3570
3570
  }), W = b(() => {
3571
3571
  if (!d.value)
3572
3572
  return P.value;
3573
- const S = [];
3573
+ const _ = [];
3574
3574
  return P.value.forEach((G, Q) => {
3575
- S.push({
3575
+ _.push({
3576
3576
  ...G,
3577
- barPercentage: pn
3577
+ barPercentage: hn
3578
3578
  });
3579
3579
  const ne = P.value[Q + 1];
3580
- G.dash === !0 && ne && S.push(p(Q));
3581
- }), S;
3580
+ G.dash === !0 && ne && _.push(p(Q));
3581
+ }), _;
3582
3582
  }), $ = b(() => ({
3583
3583
  display: !1,
3584
3584
  labels: {
3585
- filter: (S, G) => {
3585
+ filter: (_, G) => {
3586
3586
  var Q, ne;
3587
- return !((ne = (Q = G.datasets) == null ? void 0 : Q[S.datasetIndex ?? -1]) != null && ne.isSpacer);
3587
+ return !((ne = (Q = G.datasets) == null ? void 0 : Q[_.datasetIndex ?? -1]) != null && ne.isSpacer);
3588
3588
  }
3589
3589
  }
3590
3590
  }));
3591
- return (S, G) => {
3591
+ return (_, G) => {
3592
3592
  var ne, oe, ge, ae, pe, be;
3593
3593
  const Q = ie("FmBarChart");
3594
- return Y(), re(Ve, null, [
3594
+ return Y(), re(Re, null, [
3595
3595
  j("div", Qr, [
3596
- Qe(S.$slots, "menu"),
3596
+ Qe(_.$slots, "menu"),
3597
3597
  j("div", {
3598
3598
  class: we(["chart-layout", {
3599
3599
  "chart-layout--side": s(Z) && (s(K).display ?? !1) && s(O)
3600
3600
  }])
3601
3601
  }, [
3602
- s(Z) && (s(K).display ?? !1) && s(T) ? (Y(), de(Me, {
3602
+ s(Z) && (s(K).display ?? !1) && s(T) ? (Y(), de(Ie, {
3603
3603
  key: 0,
3604
3604
  "chart-ref": n.value,
3605
3605
  enabled: s(K).display ?? !1,
@@ -3632,7 +3632,7 @@ const Kr = /* @__PURE__ */ io(Or, [["render", Ur]]), Xr = "/assets/processTableD
3632
3632
  datalabels: s(x),
3633
3633
  "maintain-aspect-ratio": !1
3634
3634
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
3635
- s(Z) && (s(K).display ?? !1) && !s(T) ? (Y(), de(Me, {
3635
+ s(Z) && (s(K).display ?? !1) && !s(T) ? (Y(), de(Ie, {
3636
3636
  key: 1,
3637
3637
  "chart-ref": n.value,
3638
3638
  enabled: s(K).display ?? !1,
@@ -3666,7 +3666,7 @@ function tl(e) {
3666
3666
  const t = Reflect.get(e, "lineStyle"), n = Reflect.get(e, "dash") === !0;
3667
3667
  return ea(t, n);
3668
3668
  }
3669
- function Lo(e = "report-line-style-plugin") {
3669
+ function To(e = "report-line-style-plugin") {
3670
3670
  return {
3671
3671
  id: e,
3672
3672
  beforeDatasetsUpdate(t) {
@@ -3678,7 +3678,7 @@ function Lo(e = "report-line-style-plugin") {
3678
3678
  }
3679
3679
  };
3680
3680
  }
3681
- const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3681
+ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Me({
3682
3682
  __name: "WidgetStackLineChart",
3683
3683
  props: /* @__PURE__ */ ze({
3684
3684
  tileIndex: {}
@@ -3696,7 +3696,7 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3696
3696
  ), i = b(() => a.value ? ["", o.value[0], ""] : o.value), r = b(() => {
3697
3697
  var X;
3698
3698
  return ((X = t.value.data) == null ? void 0 : X.datasets) ?? [];
3699
- }), c = Ht("line"), d = Lo("report-line-style-plugin-stack-line"), m = b(() => r.value.length > 0 ? [
3699
+ }), c = Ht("line"), d = To("report-line-style-plugin-stack-line"), m = b(() => r.value.length > 0 ? [
3700
3700
  ...r.value.map((X, O) => {
3701
3701
  var oe;
3702
3702
  const T = $t({
@@ -3720,10 +3720,10 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3720
3720
  isCompare: X.isCompare,
3721
3721
  metricCount: t.value.metricCount,
3722
3722
  mode: t.value.lineStyleBinding
3723
- }), S = (oe = t.value.lineStyles) == null ? void 0 : oe[$], G = t.value.chartColorBinding === ye.breakdown, Q = Ct({
3723
+ }), _ = (oe = t.value.lineStyles) == null ? void 0 : oe[$], G = t.value.chartColorBinding === ye.breakdown, Q = bt({
3724
3724
  fallbackIndex: T,
3725
3725
  metricCount: t.value.metricCount
3726
- }), ne = G ? _t({
3726
+ }), ne = G ? wt({
3727
3727
  breakdownIndex: Q,
3728
3728
  metricIndex: W,
3729
3729
  metricCount: t.value.metricCount,
@@ -3740,7 +3740,7 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3740
3740
  label: X.name,
3741
3741
  data: y,
3742
3742
  dash: X.isCompare,
3743
- lineStyle: S,
3743
+ lineStyle: _,
3744
3744
  fill: !0,
3745
3745
  color: ne,
3746
3746
  pointRadius: a.value ? 4 : void 0,
@@ -3775,9 +3775,9 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3775
3775
  baseDatasets: m
3776
3776
  });
3777
3777
  return (X, O) => {
3778
- var u, y, P, W, $, S;
3778
+ var u, y, P, W, $, _;
3779
3779
  const T = ie("FmLineChart");
3780
- return Y(), re(Ve, null, [
3780
+ return Y(), re(Re, null, [
3781
3781
  j("div", nl, [
3782
3782
  Qe(X.$slots, "menu"),
3783
3783
  j("div", {
@@ -3785,7 +3785,7 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3785
3785
  "chart-layout--side": s(H) && (s(I).display ?? !1) && s(B)
3786
3786
  }])
3787
3787
  }, [
3788
- s(H) && (s(I).display ?? !1) && s(N) ? (Y(), de(Me, {
3788
+ s(H) && (s(I).display ?? !1) && s(N) ? (Y(), de(Ie, {
3789
3789
  key: 0,
3790
3790
  "chart-ref": n.value,
3791
3791
  enabled: s(I).display ?? !1,
@@ -3820,13 +3820,13 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3820
3820
  datalabels: s(k),
3821
3821
  "maintain-aspect-ratio": !1
3822
3822
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "plugins", "datalabels"]),
3823
- s(H) && (s(I).display ?? !1) && !s(N) ? (Y(), de(Me, {
3823
+ s(H) && (s(I).display ?? !1) && !s(N) ? (Y(), de(Ie, {
3824
3824
  key: 1,
3825
3825
  "chart-ref": n.value,
3826
3826
  enabled: s(I).display ?? !1,
3827
3827
  position: s(x),
3828
3828
  "text-color": (W = s(I).labels) == null ? void 0 : W.color,
3829
- "font-size": (S = ($ = s(I).labels) == null ? void 0 : $.font) == null ? void 0 : S.size,
3829
+ "font-size": (_ = ($ = s(I).labels) == null ? void 0 : $.font) == null ? void 0 : _.size,
3830
3830
  "legend-update-key": s(Z),
3831
3831
  "use-point-style": t.value.usePointStyle ?? !0,
3832
3832
  "chart-color-binding": t.value.chartColorBinding,
@@ -3849,7 +3849,7 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3849
3849
  ], 64);
3850
3850
  };
3851
3851
  }
3852
- }), wt = [
3852
+ }), xt = [
3853
3853
  "col-span-1",
3854
3854
  "col-span-2",
3855
3855
  "col-span-3",
@@ -3864,15 +3864,15 @@ const nl = { class: "widget-content" }, ol = /* @__PURE__ */ Be({
3864
3864
  "col-span-12"
3865
3865
  ];
3866
3866
  function al(e) {
3867
- return e < 12 ? wt[e - 1] : wt[11];
3867
+ return e < 12 ? xt[e - 1] : xt[11];
3868
3868
  }
3869
3869
  function rl(e) {
3870
- return e < 12 ? wt[Math.min(11, e * 2 - 1)] : wt[11];
3870
+ return e < 12 ? xt[Math.min(11, e * 2 - 1)] : xt[11];
3871
3871
  }
3872
3872
  function ll(e) {
3873
- return e < 12 ? wt[Math.min(11, e * 3 - 1)] : wt[11];
3873
+ return e < 12 ? xt[Math.min(11, e * 3 - 1)] : xt[11];
3874
3874
  }
3875
- const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
3875
+ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Me({
3876
3876
  __name: "WidgetLinechart",
3877
3877
  props: /* @__PURE__ */ ze({
3878
3878
  tileIndex: {}
@@ -3890,7 +3890,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
3890
3890
  return ((O = t.value.data) == null ? void 0 : O.xAxis) ?? [];
3891
3891
  }), i = b(() => a.value.length === 1 && o.value.length > 1 && o.value.every((O) => O.values.length === 1 && O.isCompare !== !0)), r = b(
3892
3892
  () => a.value.length === 1 && o.value.length > 0 && o.value.every((O) => O.values.length === 1)
3893
- ), c = b(() => i.value ? o.value.map((O) => O.name) : r.value ? ["", a.value[0], ""] : a.value), d = Ht("line"), m = Lo("report-line-style-plugin-line"), A = b(() => o.value.length > 0 ? [
3893
+ ), c = b(() => i.value ? o.value.map((O) => O.name) : r.value ? ["", a.value[0], ""] : a.value), d = Ht("line"), m = To("report-line-style-plugin-line"), A = b(() => o.value.length > 0 ? [
3894
3894
  ...o.value.map((O, T) => {
3895
3895
  var pe;
3896
3896
  const u = $t({
@@ -3910,11 +3910,11 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
3910
3910
  index: y,
3911
3911
  isCompare: O.isCompare,
3912
3912
  customColors: t.value.chartColors
3913
- }), $ = t.value.chartColorBinding === ye.breakdown, S = Ct({
3913
+ }), $ = t.value.chartColorBinding === ye.breakdown, _ = bt({
3914
3914
  fallbackIndex: u,
3915
3915
  metricCount: t.value.metricCount
3916
- }), G = $ ? _t({
3917
- breakdownIndex: S,
3916
+ }), G = $ ? wt({
3917
+ breakdownIndex: _,
3918
3918
  metricIndex: P,
3919
3919
  metricCount: t.value.metricCount,
3920
3920
  isCompare: O.isCompare,
@@ -3924,7 +3924,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
3924
3924
  }) : W;
3925
3925
  let Q = O.values;
3926
3926
  i.value ? Q = o.value.map(
3927
- (be, Ae) => Ae === T ? O.values[0] : NaN
3927
+ (be, Be) => Be === T ? O.values[0] : NaN
3928
3928
  ) : r.value && (Q = [NaN, Q[0], NaN]);
3929
3929
  const ne = Q.map((be) => be === null ? NaN : Number(be)), oe = r.value || i.value, ge = ke({
3930
3930
  datasetIndex: T,
@@ -3971,9 +3971,9 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
3971
3971
  baseDatasets: A
3972
3972
  });
3973
3973
  return (O, T) => {
3974
- var y, P, W, $, S, G;
3974
+ var y, P, W, $, _, G;
3975
3975
  const u = ie("FmLineChart");
3976
- return Y(), re(Ve, null, [
3976
+ return Y(), re(Re, null, [
3977
3977
  j("div", sl, [
3978
3978
  Qe(O.$slots, "menu"),
3979
3979
  j("div", {
@@ -3981,7 +3981,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
3981
3981
  "chart-layout--side": s(x) && (s(H).display ?? !1) && s(N)
3982
3982
  }])
3983
3983
  }, [
3984
- s(x) && (s(H).display ?? !1) && s(V) ? (Y(), de(Me, {
3984
+ s(x) && (s(H).display ?? !1) && s(V) ? (Y(), de(Ie, {
3985
3985
  key: 0,
3986
3986
  "chart-ref": n.value,
3987
3987
  enabled: s(H).display ?? !1,
@@ -4015,13 +4015,13 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
4015
4015
  plugins: [s(d), s(m)],
4016
4016
  "maintain-aspect-ratio": !1
4017
4017
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins"]),
4018
- s(x) && (s(H).display ?? !1) && !s(V) ? (Y(), de(Me, {
4018
+ s(x) && (s(H).display ?? !1) && !s(V) ? (Y(), de(Ie, {
4019
4019
  key: 1,
4020
4020
  "chart-ref": n.value,
4021
4021
  enabled: s(H).display ?? !1,
4022
4022
  position: s(B),
4023
4023
  "text-color": ($ = s(H).labels) == null ? void 0 : $.color,
4024
- "font-size": (G = (S = s(H).labels) == null ? void 0 : S.font) == null ? void 0 : G.size,
4024
+ "font-size": (G = (_ = s(H).labels) == null ? void 0 : _.font) == null ? void 0 : G.size,
4025
4025
  "legend-update-key": s(X),
4026
4026
  "chart-color-binding": t.value.chartColorBinding,
4027
4027
  "chart-colors": t.value.chartColors,
@@ -4044,7 +4044,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
4044
4044
  ], 64);
4045
4045
  };
4046
4046
  }
4047
- }), ul = { class: "flex flex-col gap-16" }, cl = { class: "flex flex-row" }, dl = /* @__PURE__ */ Be({
4047
+ }), ul = { class: "flex flex-col gap-16" }, cl = { class: "flex flex-row" }, dl = /* @__PURE__ */ Me({
4048
4048
  __name: "PdfOrientationDialog",
4049
4049
  props: /* @__PURE__ */ ze({
4050
4050
  reportType: {},
@@ -4055,7 +4055,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
4055
4055
  }),
4056
4056
  emits: ["update:modelValue"],
4057
4057
  setup(e) {
4058
- const { t } = it(), { FmForm: n } = jo, o = e, a = L(), i = He(e, "modelValue"), r = L(!0), c = L(!1), d = Ln(), { selectedLocationIds: m, dateRange: A, timeRange: C } = At(nn()), w = L(dn.PORTRAIT);
4058
+ const { t } = st(), { FmForm: n } = Go, o = e, a = L(), i = He(e, "modelValue"), r = L(!0), c = L(!1), d = Tn(), { selectedLocationIds: m, dateRange: A, timeRange: C } = At(nn()), w = L(dn.PORTRAIT);
4059
4059
  function v() {
4060
4060
  var F;
4061
4061
  (F = a.value) == null || F.validateInputs();
@@ -4063,7 +4063,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
4063
4063
  async function p() {
4064
4064
  c.value = !0;
4065
4065
  try {
4066
- o.index != null && await ro({
4066
+ o.index != null && await ao({
4067
4067
  reportType: o.reportType,
4068
4068
  index: o.index,
4069
4069
  orientationTypes: [w.value],
@@ -4087,7 +4087,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Be({
4087
4087
  "z-index": 10
4088
4088
  }, {
4089
4089
  "dialog-header": xe(() => k[3] || (k[3] = [
4090
- Oo("Select Orientation")
4090
+ Wo("Select Orientation")
4091
4091
  ])),
4092
4092
  default: xe(() => [
4093
4093
  se(s(n), {
@@ -4272,7 +4272,7 @@ function fl(e) {
4272
4272
  }
4273
4273
  function q() {
4274
4274
  if (!c) return;
4275
- const x = gn(() => v(), 100), B = () => {
4275
+ const x = pn(() => v(), 100), B = () => {
4276
4276
  if (c && i) {
4277
4277
  const N = i.querySelector("thead");
4278
4278
  N && p(c, N), k();
@@ -4311,7 +4311,7 @@ function fl(e) {
4311
4311
  n.value && o.value && setTimeout(v, 100);
4312
4312
  }), Vt(() => {
4313
4313
  o.value && setTimeout(v, 100);
4314
- }), ao(() => {
4314
+ }), oo(() => {
4315
4315
  I();
4316
4316
  }), { refresh: H, cleanup: I };
4317
4317
  }
@@ -4321,7 +4321,7 @@ const ml = {
4321
4321
  }, hl = {
4322
4322
  key: 2,
4323
4323
  class: "flex"
4324
- }, Ll = /* @__PURE__ */ Be({
4324
+ }, Ll = /* @__PURE__ */ Me({
4325
4325
  __name: "DynamicWidget",
4326
4326
  props: /* @__PURE__ */ ze({
4327
4327
  index: {
@@ -4348,18 +4348,18 @@ const ml = {
4348
4348
  }),
4349
4349
  emits: /* @__PURE__ */ ze(["update:table-response"], ["update:modelValue"]),
4350
4350
  setup(e, { emit: t }) {
4351
- const n = L(!0), o = He(e, "modelValue"), a = t, i = o.value.widget.config, { t: r, te: c, locale: d } = it(), m = e, A = L(null), C = b(() => o.value.widget.type === ee.Table), w = b(() => {
4352
- var _;
4353
- return (_ = A.value) == null ? void 0 : _.$el;
4351
+ const n = L(!0), o = He(e, "modelValue"), a = t, i = o.value.widget.config, { t: r, te: c, locale: d } = st(), m = e, A = L(null), C = b(() => o.value.widget.type === ee.Table), w = b(() => {
4352
+ var S;
4353
+ return (S = A.value) == null ? void 0 : S.$el;
4354
4354
  }), { refresh: v } = fl({
4355
4355
  containerRef: w,
4356
4356
  isTable: C
4357
4357
  }), p = L(i.rollup), F = L(Bt()), k = L(i.drillDimension), M = b(() => {
4358
4358
  if (fe.value.length > 0) {
4359
- const _ = fe.value.findIndex(
4360
- (ue) => ue.value === k.value
4359
+ const S = fe.value.findIndex(
4360
+ (ce) => ce.value === k.value
4361
4361
  );
4362
- return _ >= 0 ? _ : 0;
4362
+ return S >= 0 ? S : 0;
4363
4363
  } else
4364
4364
  return -1;
4365
4365
  }), z = b(() => M.value !== 0), q = b(
@@ -4372,22 +4372,22 @@ const ml = {
4372
4372
  Array.isArray(i.chartBreakdownColors) ? [...i.chartBreakdownColors] : void 0
4373
4373
  ), X = L(i.chartUseSecondaryMetricShades ?? !0), O = L(i.chartColorBinding), T = L(
4374
4374
  Array.isArray(i.lineStyles) ? [...i.lineStyles] : void 0
4375
- ), u = L(i.lineStyleBinding), y = L(i.showLabel ?? !1), P = L(i.labelAlign ?? Cn.center), W = L(i.labelAnchor ?? bn.center), $ = L(i.labelRotation ?? 0), S = L(i.labelOffset ?? 0), G = L(i.labelFontSize ?? 12), Q = b(() => i.showSearchBar), ne = L(i.showX ?? !0), oe = L(i.xPosition ?? xn.bottom), ge = L(i.showXGrid ?? !1), ae = L(i.showXTick ?? !0), pe = L(i.xTickFontSize ?? 12), be = L(i.showXTitle ?? !1), Ae = L(i.xTitle ?? ""), Ue = L(i.xTitleFontSize ?? 12), et = L(i.showY ?? !0), _e = L(i.yPosition ?? wn.left), St = L(i.showYGrid ?? !1), Ke = L(i.showYTick ?? !0), tt = L(i.yTickFontSize ?? 12), ut = L(i.showYTitle ?? !1), ct = L(i.yTitle ?? ""), dt = L(i.yTitleFontSize ?? 12), ft = L(i.showLegend ?? void 0), Xe = L(i.legendPosition ?? _n.top), Ye = L(i.usePointStyle ?? !0), Ut = L(i.legendFontSize), Ee = L(i.legendColor ?? "#6b6b6b"), Kt = L(i.maxTooltipItems), Xt = L(i.stackBarOverlap ?? !1), Yt = L(i.rowHeight ?? null), kt = L(i.colWidths ?? null), We = L(!1), Tt = L(""), { breakpoints: qe, getBreakpointsBoundary: nt } = Nt(), Lt = L(), Ce = b(
4375
+ ), u = L(i.lineStyleBinding), y = L(i.showLabel ?? !1), P = L(i.labelAlign ?? bn.center), W = L(i.labelAnchor ?? yn.center), $ = L(i.labelRotation ?? 0), _ = L(i.labelOffset ?? 0), G = L(i.labelFontSize ?? 12), Q = b(() => i.showSearchBar), ne = L(i.showX ?? !0), oe = L(i.xPosition ?? Cn.bottom), ge = L(i.showXGrid ?? !1), ae = L(i.showXTick ?? !0), pe = L(i.xTickFontSize ?? 12), be = L(i.showXTitle ?? !1), Be = L(i.xTitle ?? ""), Ue = L(i.xTitleFontSize ?? 12), et = L(i.showY ?? !0), _e = L(i.yPosition ?? xn.left), _t = L(i.showYGrid ?? !1), Ke = L(i.showYTick ?? !0), tt = L(i.yTickFontSize ?? 12), it = L(i.showYTitle ?? !1), ut = L(i.yTitle ?? ""), ct = L(i.yTitleFontSize ?? 12), dt = L(i.showLegend ?? void 0), Xe = L(i.legendPosition ?? wn.top), Ye = L(i.usePointStyle ?? !0), Ut = L(i.legendFontSize), Ee = L(i.legendColor ?? "#6b6b6b"), Kt = L(i.maxTooltipItems), Xt = L(i.stackBarOverlap ?? !1), Yt = L(i.rowHeight ?? null), St = L(i.colWidths ?? null), We = L(!1), kt = L(""), { breakpoints: qe, getBreakpointsBoundary: nt } = Nt(), Tt = L(), Ce = b(
4376
4376
  () => m.customScreenWidth === void 0 ? window.innerWidth : m.customScreenWidth
4377
4377
  ), an = b(
4378
4378
  () => (Ce == null ? void 0 : Ce.value) > nt("xs")[1] && (Ce == null ? void 0 : Ce.value) <= nt("sm")[1]
4379
- ), Dt = b(
4379
+ ), Lt = b(
4380
4380
  () => (Ce == null ? void 0 : Ce.value) > nt("sm")[1] && (Ce == null ? void 0 : Ce.value) <= nt("md")[1]
4381
4381
  ), rn = b(() => (Ce == null ? void 0 : Ce.value) > nt("md")[1]), ln = b(() => {
4382
- const _ = o.value.size.width;
4383
- return rn.value || Dt.value ? al(_) : an.value ? rl(_) : ll(_);
4382
+ const S = o.value.size.width;
4383
+ return rn.value || Lt.value ? al(S) : an.value ? rl(S) : ll(S);
4384
4384
  }), ot = b(
4385
- () => Jo.find((_) => _.type === o.value.widget.type)
4386
- ), Ge = gn(() => {
4387
- var _;
4388
- Lt.value = De((_ = A.value) == null ? void 0 : _.$el.offsetWidth), F.value = Bt();
4385
+ () => jo.find((S) => S.type === o.value.widget.type)
4386
+ ), Ge = pn(() => {
4387
+ var S;
4388
+ Tt.value = De((S = A.value) == null ? void 0 : S.$el.offsetWidth), F.value = Bt();
4389
4389
  }), sn = b(() => {
4390
- if (Zo(D.value.type, Ne.value))
4390
+ if (Zo(D.value.type, Ve.value))
4391
4391
  switch (o.value.widget.type) {
4392
4392
  case ee.BarChart:
4393
4393
  return Br;
@@ -4408,38 +4408,38 @@ const ml = {
4408
4408
  case ee.Table:
4409
4409
  return jr;
4410
4410
  default:
4411
- return Nn;
4411
+ return Vn;
4412
4412
  }
4413
4413
  else
4414
- return Nn;
4415
- }), Ne = L(null), { selectedLocationIds: l, dateRange: h, compareDateRange: f, timeRange: g } = At(nn()), { globalFilters: R, isAllGlobalFiltersLoaded: U } = At(Eo()), { businessDataVersion: E } = At(nn()), J = L(!0), D = b(() => {
4416
- const _ = JSON.parse(JSON.stringify(o.value.widget));
4414
+ return Vn;
4415
+ }), Ve = L(null), { selectedLocationIds: l, dateRange: h, compareDateRange: f, timeRange: g } = At(nn()), { globalFilters: R, isAllGlobalFiltersLoaded: U } = At(Yo()), { businessDataVersion: E } = At(nn()), J = L(!0), D = b(() => {
4416
+ const S = JSON.parse(JSON.stringify(o.value.widget));
4417
4417
  return {
4418
- ..._,
4418
+ ...S,
4419
4419
  config: {
4420
- ..._.config,
4420
+ ...S.config,
4421
4421
  rollup: p.value,
4422
4422
  drillDimension: k.value,
4423
4423
  showGrandTotal: !1
4424
4424
  }
4425
4425
  };
4426
4426
  }), le = b(() => {
4427
- var Pe;
4428
- const _ = ((Pe = D.value.config.metrics) == null ? void 0 : Pe.length) ?? 0;
4427
+ var $e;
4428
+ const S = (($e = D.value.config.metrics) == null ? void 0 : $e.length) ?? 0;
4429
4429
  if (!D.value.config.isBlend)
4430
- return _;
4431
- const ue = (D.value.config.joinDatasources ?? []).reduce(
4432
- (rt, cn) => {
4433
- var mt;
4434
- return rt + (((mt = cn.metrics) == null ? void 0 : mt.length) ?? 0);
4430
+ return S;
4431
+ const ce = (D.value.config.joinDatasources ?? []).reduce(
4432
+ (Pt, cn) => {
4433
+ var ft;
4434
+ return Pt + (((ft = cn.metrics) == null ? void 0 : ft.length) ?? 0);
4435
4435
  },
4436
4436
  0
4437
4437
  );
4438
- return _ + ue;
4438
+ return S + ce;
4439
4439
  });
4440
4440
  function he() {
4441
4441
  return {
4442
- data: Ne.value,
4442
+ data: Ve.value,
4443
4443
  showTitle: I.value,
4444
4444
  titleFontSize: H.value,
4445
4445
  titleBold: x.value,
@@ -4457,7 +4457,7 @@ const ml = {
4457
4457
  labelAnchor: W.value,
4458
4458
  labelAlign: P.value,
4459
4459
  labelRotation: $.value,
4460
- labelOffset: S.value,
4460
+ labelOffset: _.value,
4461
4461
  labelFontSize: G.value,
4462
4462
  showX: ne.value,
4463
4463
  xPosition: oe.value,
@@ -4465,18 +4465,18 @@ const ml = {
4465
4465
  showXTick: ae.value,
4466
4466
  xTickFontSize: pe.value,
4467
4467
  showXTitle: be.value,
4468
- xTitle: Ae.value,
4468
+ xTitle: Be.value,
4469
4469
  xTitleFontSize: Ue.value,
4470
4470
  showY: et.value,
4471
4471
  yPosition: _e.value,
4472
- showYGrid: St.value,
4472
+ showYGrid: _t.value,
4473
4473
  showYTick: Ke.value,
4474
- yTitle: ct.value,
4475
- showYTitle: ut.value,
4476
- yTitleFontSize: dt.value,
4474
+ yTitle: ut.value,
4475
+ showYTitle: it.value,
4476
+ yTitleFontSize: ct.value,
4477
4477
  yTickFontSize: tt.value,
4478
4478
  isTransposed: D.value.config.isTransposed,
4479
- showLegend: ft.value,
4479
+ showLegend: dt.value,
4480
4480
  legendPosition: Xe.value,
4481
4481
  usePointStyle: Ye.value,
4482
4482
  legendFontSize: Ut.value,
@@ -4487,12 +4487,12 @@ const ml = {
4487
4487
  }
4488
4488
  function ve() {
4489
4489
  return {
4490
- data: Ne.value,
4491
- filterText: Tt.value,
4490
+ data: Ve.value,
4491
+ filterText: kt.value,
4492
4492
  rollupPosition: D.value.config.rollupPosition,
4493
4493
  grandTotalLabel: D.value.config.grandTotalLabel,
4494
4494
  rowHeight: Yt.value,
4495
- colWidths: kt.value
4495
+ colWidths: St.value
4496
4496
  };
4497
4497
  }
4498
4498
  const te = b(() => {
@@ -4507,48 +4507,46 @@ const ml = {
4507
4507
  case ee.Circular:
4508
4508
  return he();
4509
4509
  default:
4510
- return { data: Ne.value };
4510
+ return { data: Ve.value };
4511
4511
  }
4512
- }), ce = b(() => {
4513
- const { config: _ } = o.value.widget;
4514
- if (_.rollup != null) {
4515
- const ue = [..._.dimensions].filter((Pe) => !Pe.hide);
4516
- return ue.sort(
4517
- (Pe, rt) => (_.rowIds || []).indexOf(fn(Pe)) - (_.rowIds || []).indexOf(fn(rt))
4518
- ), [
4519
- { label: lt(r, c, "None", "other"), value: "none" },
4520
- { label: lt(r, c, "Grand Total", "other"), value: 0 },
4521
- ...[...ue].slice(0, ue.length - 1).map((Pe, rt) => ({
4522
- label: lt(r, c, Pe.label, "other"),
4523
- value: rt + 1
4512
+ }), ue = b(() => {
4513
+ const { config: S } = o.value.widget;
4514
+ if (S.rollup != null) {
4515
+ const ce = [...S.dimensions].filter(($e) => !$e.hide);
4516
+ return [
4517
+ { label: rt(r, c, "None", "other"), value: "none" },
4518
+ { label: rt(r, c, "Grand Total", "other"), value: 0 },
4519
+ ...[...ce].slice(0, ce.length - 1).map(($e, Pt) => ({
4520
+ label: rt(r, c, $e.label, "other"),
4521
+ value: Pt + 1
4524
4522
  }))
4525
4523
  ];
4526
4524
  }
4527
4525
  return [];
4528
4526
  }), fe = b(() => {
4529
- const { config: _ } = D.value;
4530
- return _.isDrillable ? _.dimensions.map((ue) => ({
4531
- label: lt(r, c, ue.label, "other"),
4532
- value: fn(ue)
4527
+ const { config: S } = D.value;
4528
+ return S.isDrillable ? S.dimensions.map((ce) => ({
4529
+ label: rt(r, c, ce.label, "other"),
4530
+ value: Jo(ce)
4533
4531
  })) : [];
4534
4532
  }), Le = b(() => {
4535
- const _ = o.value.id;
4533
+ const S = o.value.id;
4536
4534
  return (R.value || []).filter(
4537
- (ue) => Array.isArray(ue.tileIds) && ue.tileIds.includes(_)
4535
+ (ce) => Array.isArray(ce.tileIds) && ce.tileIds.includes(S)
4538
4536
  );
4539
4537
  });
4540
4538
  Se(
4541
4539
  () => o.value.widget.config,
4542
- (_) => {
4543
- p.value = _.rollup, I.value = _.showTitle ?? !0, H.value = _.titleFontSize ?? 14, x.value = _.titleBold ?? !1, B.value = _.titleItalic ?? !1, N.value = _.titleUnderline ?? !1, V.value = Array.isArray(_.chartColors) ? [..._.chartColors] : void 0, K.value = Array.isArray(_.chartColorLayers) ? [..._.chartColorLayers] : void 0, Z.value = Array.isArray(_.chartBreakdownColors) ? [..._.chartBreakdownColors] : void 0, X.value = _.chartUseSecondaryMetricShades ?? !0, O.value = _.chartColorBinding, T.value = Array.isArray(_.lineStyles) ? [..._.lineStyles] : void 0, u.value = _.lineStyleBinding, y.value = _.showLabel ?? !1, P.value = _.labelAlign ?? Cn.center, W.value = _.labelAnchor ?? bn.center, $.value = _.labelRotation ?? 0, S.value = _.labelOffset ?? 0, G.value = _.labelFontSize ?? 12, ne.value = _.showX ?? !0, oe.value = _.xPosition ?? xn.bottom, ge.value = _.showXGrid ?? !1, ae.value = _.showXTick ?? !0, pe.value = _.xTickFontSize ?? 12, be.value = _.showXTitle ?? !1, Ae.value = _.xTitle ?? "", Ue.value = _.xTitleFontSize ?? 12, et.value = _.showY ?? !0, _e.value = _.yPosition ?? wn.left, St.value = _.showYGrid ?? !1, Ke.value = _.showYTick ?? !0, tt.value = _.yTickFontSize ?? 12, ut.value = _.showYTitle ?? !1, ct.value = _.yTitle ?? "", dt.value = _.yTitleFontSize ?? 12, ft.value = _.showLegend ?? void 0, Xe.value = _.legendPosition ?? _n.top, Ye.value = _.usePointStyle ?? !0, Ut.value = _.legendFontSize, Ee.value = _.legendColor ?? "#6b6b6b", Kt.value = _.maxTooltipItems, Xt.value = _.stackBarOverlap ?? !1, Yt.value = _.rowHeight ?? null, kt.value = _.colWidths ?? null, F.value = Bt();
4540
+ (S) => {
4541
+ p.value = S.rollup, I.value = S.showTitle ?? !0, H.value = S.titleFontSize ?? 14, x.value = S.titleBold ?? !1, B.value = S.titleItalic ?? !1, N.value = S.titleUnderline ?? !1, V.value = Array.isArray(S.chartColors) ? [...S.chartColors] : void 0, K.value = Array.isArray(S.chartColorLayers) ? [...S.chartColorLayers] : void 0, Z.value = Array.isArray(S.chartBreakdownColors) ? [...S.chartBreakdownColors] : void 0, X.value = S.chartUseSecondaryMetricShades ?? !0, O.value = S.chartColorBinding, T.value = Array.isArray(S.lineStyles) ? [...S.lineStyles] : void 0, u.value = S.lineStyleBinding, y.value = S.showLabel ?? !1, P.value = S.labelAlign ?? bn.center, W.value = S.labelAnchor ?? yn.center, $.value = S.labelRotation ?? 0, _.value = S.labelOffset ?? 0, G.value = S.labelFontSize ?? 12, ne.value = S.showX ?? !0, oe.value = S.xPosition ?? Cn.bottom, ge.value = S.showXGrid ?? !1, ae.value = S.showXTick ?? !0, pe.value = S.xTickFontSize ?? 12, be.value = S.showXTitle ?? !1, Be.value = S.xTitle ?? "", Ue.value = S.xTitleFontSize ?? 12, et.value = S.showY ?? !0, _e.value = S.yPosition ?? xn.left, _t.value = S.showYGrid ?? !1, Ke.value = S.showYTick ?? !0, tt.value = S.yTickFontSize ?? 12, it.value = S.showYTitle ?? !1, ut.value = S.yTitle ?? "", ct.value = S.yTitleFontSize ?? 12, dt.value = S.showLegend ?? void 0, Xe.value = S.legendPosition ?? wn.top, Ye.value = S.usePointStyle ?? !0, Ut.value = S.legendFontSize, Ee.value = S.legendColor ?? "#6b6b6b", Kt.value = S.maxTooltipItems, Xt.value = S.stackBarOverlap ?? !1, Yt.value = S.rowHeight ?? null, St.value = S.colWidths ?? null, F.value = Bt();
4544
4542
  },
4545
4543
  { deep: !0, immediate: !0 }
4546
4544
  ), Se(
4547
- [C, Ne],
4545
+ [C, Ve],
4548
4546
  () => {
4549
4547
  a(
4550
4548
  "update:table-response",
4551
- C.value ? Ne.value : null
4549
+ C.value ? Ve.value : null
4552
4550
  );
4553
4551
  },
4554
4552
  { immediate: !0 }
@@ -4577,37 +4575,37 @@ const ml = {
4577
4575
  { deep: !0 }
4578
4576
  ), Vt(() => {
4579
4577
  Ge(), qe.value.sm || qe.value.md || qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", Ge)) : addEventListener("resize", Ge), je();
4580
- }), ao(() => {
4578
+ }), oo(() => {
4581
4579
  qe.value.sm || qe.value.md || qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", Ge)) : removeEventListener("resize", Ge);
4582
4580
  });
4583
- const $e = Ln();
4584
- let Fe;
4581
+ const Ne = Tn();
4582
+ let Ae;
4585
4583
  async function je() {
4586
4584
  if (!m.isEditingStyle && !(R.value.length > 0 && !U.value)) {
4587
4585
  if (D.value.config.schemaNames.length <= 0 && !(D.value.config.dimensions.length <= 0 || D.value.config.metrics.length <= 0)) {
4588
- $e.open({
4586
+ Ne.open({
4589
4587
  message: "schema must not be empty and dimension or metrics must have at least 1 column",
4590
4588
  type: "info"
4591
4589
  }), n.value = !1;
4592
4590
  return;
4593
4591
  }
4594
4592
  try {
4595
- n.value = !0, Fe && Fe.abort(), Fe = new AbortController();
4596
- const _ = Fe.signal, ue = E.value, Pe = await gn(
4597
- qo,
4593
+ n.value = !0, Ae && Ae.abort(), Ae = new AbortController();
4594
+ const S = Ae.signal, ce = E.value, $e = await pn(
4595
+ Eo,
4598
4596
  500
4599
4597
  )({
4600
4598
  widget: D.value,
4601
- signal: _,
4599
+ signal: S,
4602
4600
  tileId: o.value.id
4603
4601
  });
4604
- E.value === ue && (Ne.value = Pe, F.value = Bt(), setTimeout(() => v(), 100)), n.value = !1;
4605
- } catch (_) {
4606
- _.code !== "ERR_CANCELED" && (Ne.value = null, $e.open({ message: `Invalid chart ${D.value.type}`, type: "error" }), console.log(_), n.value = !1);
4602
+ E.value === ce && (Ve.value = $e, F.value = Bt(), setTimeout(() => v(), 100)), n.value = !1;
4603
+ } catch (S) {
4604
+ S.code !== "ERR_CANCELED" && (Ve.value = null, Ne.open({ message: `Invalid chart ${D.value.type}`, type: "error" }), console.log(S), n.value = !1);
4607
4605
  }
4608
4606
  }
4609
4607
  }
4610
- function De(_) {
4608
+ function De(S) {
4611
4609
  switch (o.value.widget.type) {
4612
4610
  case "SPACER":
4613
4611
  return;
@@ -4616,61 +4614,61 @@ const ml = {
4616
4614
  case "TABLE":
4617
4615
  return `${o.value.size.height * 100 + (Q.value ? 72 : 0) + 96.5}px`;
4618
4616
  }
4619
- return `${Math.max(_ / o.value.size.width, 90) * o.value.size.height}px`;
4617
+ return `${Math.max(S / o.value.size.width, 90) * o.value.size.height}px`;
4620
4618
  }
4621
4619
  function at() {
4622
- const _ = M.value - 1;
4623
- _ >= 0 && (k.value = fe.value[_].value);
4620
+ const S = M.value - 1;
4621
+ S >= 0 && (k.value = fe.value[S].value);
4624
4622
  }
4625
4623
  function un() {
4626
- const _ = M.value + 1;
4627
- _ >= 0 && _ < fe.value.length && (k.value = fe.value[_].value);
4624
+ const S = M.value + 1;
4625
+ S >= 0 && S < fe.value.length && (k.value = fe.value[S].value);
4628
4626
  }
4629
- const Et = L(pt.EXCEL), Pt = L(), Do = Object.values(pt).map((_) => ({
4630
- label: Go(_),
4631
- value: _,
4627
+ const Et = L(ht.EXCEL), Dt = L(), Lo = Object.values(ht).map((S) => ({
4628
+ label: qo(S),
4629
+ value: S,
4632
4630
  onClick: async () => {
4633
- _ === pt.EXCEL || _ === pt.PDFFULLSIZE || _ === pt.PDFRECEIPT ? await ro({
4634
- reportType: _,
4631
+ S === ht.EXCEL || S === ht.PDFFULLSIZE || S === ht.PDFRECEIPT ? await ao({
4632
+ reportType: S,
4635
4633
  index: m.index,
4636
4634
  isCombinedLocationLayout: J.value,
4637
4635
  timeRange: g.value,
4638
4636
  dateRange: h.value,
4639
4637
  locationIds: l.value
4640
- }) : _ === pt.PDF && (Et.value = _, Pt.value = m.index, We.value = !0);
4638
+ }) : S === ht.PDF && (Et.value = S, Dt.value = m.index, We.value = !0);
4641
4639
  }
4642
- })), Po = D.value.type === ee.Spacer ? "flat" : "outlined", Io = D.value.type === ee.Spacer ? "p-0" : "p-16";
4643
- return (_, ue) => {
4644
- const Pe = ie("FmTooltip"), rt = ie("FmSearch"), cn = ie("FmCheckbox"), mt = ie("FmButton"), Mo = ie("FmSelect"), Bo = ie("FmMenuItem"), Ao = ie("FmMenu"), Fo = ie("FmForm"), Ro = ie("FmCircularProgress"), Vo = ie("FmCard");
4645
- return Y(), de(Vo, {
4640
+ })), Do = D.value.type === ee.Spacer ? "flat" : "outlined", Po = D.value.type === ee.Spacer ? "p-0" : "p-16";
4641
+ return (S, ce) => {
4642
+ const $e = ie("FmTooltip"), Pt = ie("FmSearch"), cn = ie("FmCheckbox"), ft = ie("FmButton"), Io = ie("FmSelect"), Mo = ie("FmMenuItem"), Bo = ie("FmMenu"), Ao = ie("FmForm"), Fo = ie("FmCircularProgress"), Ro = ie("FmCard");
4643
+ return Y(), de(Ro, {
4646
4644
  ref_key: "tileCard",
4647
4645
  ref: A,
4648
- class: we(`${ln.value} ${s(Io)}`),
4649
- variant: s(Po)
4646
+ class: we(`${ln.value} ${s(Po)}`),
4647
+ variant: s(Do)
4650
4648
  }, {
4651
4649
  default: xe(() => [
4652
4650
  se(dl, {
4653
4651
  modelValue: We.value,
4654
- "onUpdate:modelValue": ue[0] || (ue[0] = (ht) => We.value = ht),
4652
+ "onUpdate:modelValue": ce[0] || (ce[0] = (mt) => We.value = mt),
4655
4653
  "report-type": Et.value,
4656
- index: Pt.value
4654
+ index: Dt.value
4657
4655
  }, null, 8, ["modelValue", "report-type", "index"]),
4658
4656
  (s(R).length > 0 ? s(U) && !n.value : !n.value) ? (Y(), re("div", {
4659
4657
  key: 0,
4660
- style: Ie({ height: Lt.value })
4658
+ style: Pe({ height: Tt.value })
4661
4659
  }, [
4662
- (Y(), de(oo(sn.value), {
4660
+ (Y(), de(no(sn.value), {
4663
4661
  key: F.value,
4664
4662
  modelValue: te.value,
4665
- "onUpdate:modelValue": ue[4] || (ue[4] = (ht) => te.value = ht),
4663
+ "onUpdate:modelValue": ce[4] || (ce[4] = (mt) => te.value = mt),
4666
4664
  "tile-index": m.index
4667
4665
  }, {
4668
4666
  menu: xe(() => [
4669
- se(Fo, { class: "flex items-center gap-2" }, {
4667
+ se(Ao, { class: "flex items-center gap-2" }, {
4670
4668
  default: xe(() => {
4671
- var ht, Fn, Rn, Vn;
4669
+ var mt, An, Fn, Rn;
4672
4670
  return [
4673
- se(Pe, {
4671
+ se($e, {
4674
4672
  variant: "plain",
4675
4673
  placement: "right",
4676
4674
  content: D.value.description,
@@ -4681,7 +4679,7 @@ const ml = {
4681
4679
  default: xe(() => [
4682
4680
  I.value !== !1 ? (Y(), re("p", {
4683
4681
  key: 0,
4684
- style: Ie({
4682
+ style: Pe({
4685
4683
  fontSize: H.value + "px",
4686
4684
  fontWeight: x.value ? "bold" : "normal",
4687
4685
  fontStyle: B.value ? "italic" : "normal",
@@ -4692,57 +4690,57 @@ const ml = {
4692
4690
  H.value <= 18 ? "fm-typo-en-body-md-400" : "",
4693
4691
  D.value.description ? "border-b-2 border-dashed border-gray-300" : ""
4694
4692
  ]])
4695
- }, Te(s(lt)(s(r), s(c), D.value.title, "other")), 7)) : me("", !0)
4693
+ }, Te(s(rt)(s(r), s(c), D.value.title, "other")), 7)) : me("", !0)
4696
4694
  ]),
4697
4695
  _: 1
4698
4696
  }, 8, ["content", "disabled"]),
4699
- (ht = ot.value) != null && ht.showSearchBar ? (Y(), de(rt, {
4697
+ (mt = ot.value) != null && mt.showSearchBar ? (Y(), de(Pt, {
4700
4698
  key: 0,
4701
- modelValue: Tt.value,
4702
- "onUpdate:modelValue": ue[1] || (ue[1] = (Oe) => Tt.value = Oe),
4699
+ modelValue: kt.value,
4700
+ "onUpdate:modelValue": ce[1] || (ce[1] = (Oe) => kt.value = Oe),
4703
4701
  class: "grow"
4704
4702
  }, null, 8, ["modelValue"])) : (Y(), re("div", ml)),
4705
- Uo(se(cn, {
4703
+ Oo(se(cn, {
4706
4704
  modelValue: y.value,
4707
- "onUpdate:modelValue": ue[2] || (ue[2] = (Oe) => y.value = Oe),
4705
+ "onUpdate:modelValue": ce[2] || (ce[2] = (Oe) => y.value = Oe),
4708
4706
  label: "Label",
4709
4707
  value: !1
4710
4708
  }, null, 8, ["modelValue"]), [
4711
- [Ko, (Fn = ot.value) == null ? void 0 : Fn.showLabel]
4709
+ [Uo, (An = ot.value) == null ? void 0 : An.showLabel]
4712
4710
  ]),
4713
- (Rn = ot.value) != null && Rn.showDrillDimension && fe.value.length > 0 ? (Y(), re("div", hl, [
4714
- se(mt, {
4711
+ (Fn = ot.value) != null && Fn.showDrillDimension && fe.value.length > 0 ? (Y(), re("div", hl, [
4712
+ se(ft, {
4715
4713
  icon: "arrow_upward",
4716
4714
  variant: "tertiary",
4717
4715
  disabled: !z.value,
4718
4716
  onClick: at
4719
4717
  }, null, 8, ["disabled"]),
4720
- se(mt, {
4718
+ se(ft, {
4721
4719
  icon: "arrow_downward",
4722
4720
  variant: "tertiary",
4723
4721
  disabled: !q.value,
4724
4722
  onClick: un
4725
4723
  }, null, 8, ["disabled"])
4726
4724
  ])) : me("", !0),
4727
- (Vn = ot.value) != null && Vn.showRollup && ce.value.length > 0 ? (Y(), de(Mo, {
4725
+ (Rn = ot.value) != null && Rn.showRollup && ue.value.length > 0 ? (Y(), de(Io, {
4728
4726
  key: `rollup-${s(d)}`,
4729
4727
  modelValue: p.value,
4730
- "onUpdate:modelValue": ue[3] || (ue[3] = (Oe) => p.value = Oe),
4728
+ "onUpdate:modelValue": ce[3] || (ce[3] = (Oe) => p.value = Oe),
4731
4729
  class: "w-[150px]",
4732
- items: ce.value
4730
+ items: ue.value
4733
4731
  }, null, 8, ["modelValue", "items"])) : me("", !0),
4734
- m.hideExport ? me("", !0) : (Y(), de(Ao, {
4732
+ m.hideExport ? me("", !0) : (Y(), de(Bo, {
4735
4733
  key: 4,
4736
4734
  shift: !0
4737
4735
  }, {
4738
4736
  "menu-button": xe(() => [
4739
- se(mt, {
4737
+ se(ft, {
4740
4738
  icon: "more_vert",
4741
4739
  variant: "tertiary"
4742
4740
  })
4743
4741
  ]),
4744
4742
  default: xe(() => [
4745
- (Y(!0), re(Ve, null, Ft(s(Do), (Oe) => (Y(), de(Bo, {
4743
+ (Y(!0), re(Re, null, Ft(s(Lo), (Oe) => (Y(), de(Mo, {
4746
4744
  key: Oe.value,
4747
4745
  label: Oe.label,
4748
4746
  onClick: Oe.onClick
@@ -4757,7 +4755,7 @@ const ml = {
4757
4755
  ]),
4758
4756
  _: 1
4759
4757
  }, 8, ["modelValue", "tile-index"]))
4760
- ], 4)) : (Y(), de(Ro, { key: 1 }))
4758
+ ], 4)) : (Y(), de(Fo, { key: 1 }))
4761
4759
  ]),
4762
4760
  _: 1
4763
4761
  }, 8, ["class", "variant"]);
@@ -4765,13 +4763,13 @@ const ml = {
4765
4763
  }
4766
4764
  });
4767
4765
  export {
4768
- Cn as L,
4766
+ bn as L,
4769
4767
  Je as R,
4770
4768
  ye as S,
4771
4769
  Ll as _,
4772
- bn as a,
4773
- uo as b,
4770
+ yn as a,
4771
+ io as b,
4774
4772
  Tl as c,
4775
- yt as d,
4776
- fn as g
4773
+ vt as d,
4774
+ Jo as g
4777
4775
  };