@feedmepos/mf-report 5.27.15 → 5.27.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{App-CEzp0WZ4.js → App-5d0ln9xC.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CrSKp1iF.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CrhdrwFN.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-Dxj1bHUZ.js → Default.vue_vue_type_script_setup_true_lang-D9zgt02b.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-TN9O6FyV.js → DynamicWidget.vue_vue_type_script_setup_true_lang-qBpnwsX3.js} +1002 -1000
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CwMp2GlG.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DLiqNgDh.js} +2 -2
  6. package/dist/{InsightView-DP_6xH4S.js → InsightView-Bf821zL5.js} +4 -4
  7. package/dist/{Integration-CbHZk8OP.js → Integration-DgAFLylx.js} +3 -3
  8. package/dist/{Integrations-DjKClSy1.js → Integrations-DYcvcH6L.js} +2 -2
  9. package/dist/{Layout-DEItpNUb.js → Layout-DKvcS2uv.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BpCfpm37.js → MenuTab.vue_vue_type_script_setup_true_lang-BNNYt7j2.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DWFbzyhO.js → NavigationTab.vue_vue_type_script_setup_true_lang-3IT8Py6c.js} +3 -3
  12. package/dist/{OverviewView-BuY3Xhp2.js → OverviewView-l4dJuioJ.js} +4 -4
  13. package/dist/{Report-2Wb4LLQT.js → Report-CTG78KwL.js} +3 -3
  14. package/dist/{ReportEditor-CwjixTuE.js → ReportEditor-C9Um8i5y.js} +6 -6
  15. package/dist/{ReportView-w84M2snS.js → ReportView-DbG85cqX.js} +6 -6
  16. package/dist/{Setting-Dnjw6qXA.js → Setting-1bdc64rg.js} +3 -3
  17. package/dist/{Template-CpW0c2KW.js → Template-DEP52YrH.js} +3 -3
  18. package/dist/{TileEditor-Csd5lzvA.js → TileEditor-BVPbYl3-.js} +5 -5
  19. package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-CJqmASd1.js → TileGrid.vue_vue_type_script_setup_true_lang-D40atRYl.js} +1 -1
  20. package/dist/{TransitionFade-7NwfdjYw.js → TransitionFade-CQew0WSV.js} +4 -4
  21. package/dist/{app-CNr49l0o.js → app-BJ9Xvlfi.js} +12 -12
  22. package/dist/app.js +1 -1
  23. package/dist/{useRestaurantPermission-Cwz7KJdd.js → useRestaurantPermission-ukX8nidV.js} +1 -1
  24. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { computed as g, defineComponent as Ae, ref as P, watch as we, onMounted as Nt, onBeforeUnmount as uo, resolveComponent as ce, createBlock as de, openBlock as X, Transition as Eo, withCtx as _e, createElementBlock as le, createCommentVNode as he, createElementVNode as G, unref as i, normalizeStyle as Pe, withModifiers as en, toDisplayString as Te, createVNode as fe, Fragment as Fe, renderList as ct, normalizeClass as Se, nextTick as co, mergeModels as He, useModel as We, renderSlot as et, h as jt, createSlots as Go, resolveDynamicComponent as fo, toRaw as qo, markRaw as jo, createTextVNode as Jo, onUnmounted as mo, withDirectives as Zo, vShow as Qo } from "vue";
2
- import { W as Y, w as ea, S as Pt, x as Mt, y as ta, z as pn, A as po, j as na, B as oa, E as aa, F as ra, R as yt, G as la } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CwMp2GlG.js";
3
- import { i as tn, a as an, u as ho } from "./app-CNr49l0o.js";
4
- import { d as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CrSKp1iF.js";
1
+ import { computed as g, defineComponent as Ae, ref as I, watch as we, onMounted as Nt, onBeforeUnmount as uo, resolveComponent as ce, createBlock as de, openBlock as X, Transition as Eo, withCtx as _e, createElementBlock as le, createCommentVNode as he, createElementVNode as q, unref as i, normalizeStyle as Pe, withModifiers as en, toDisplayString as Te, createVNode as fe, Fragment as Fe, renderList as ct, normalizeClass as Se, nextTick as co, mergeModels as He, useModel as We, renderSlot as et, h as jt, createSlots as Go, resolveDynamicComponent as fo, toRaw as qo, markRaw as jo, createTextVNode as Jo, onUnmounted as mo, withDirectives as Zo, vShow as Qo } from "vue";
2
+ import { W as Y, w as ea, S as Pt, x as Mt, y as ta, z as pn, A as po, j as na, B as oa, E as aa, F as ra, R as yt, G as la } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DLiqNgDh.js";
3
+ import { i as tn, a as an, u as ho } from "./app-BJ9Xvlfi.js";
4
+ import { d as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CrhdrwFN.js";
5
5
  import { storeToRefs as At } from "pinia";
6
6
  import { detectLocale as In } from "@feedmepos/mf-common";
7
7
  import { C as bn } from "./chart-DDDh8zNk.js";
@@ -264,9 +264,9 @@ function kt({
264
264
  colorMode: c,
265
265
  customColors: u
266
266
  }) {
267
- const f = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, B = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, O = r !== !1, x = e * f + B, v = c === "clustered" ? vo(Math.max(xt.length, e + 1)) : bo(u), y = Rt(a == null ? void 0 : a[e * f]) ?? v[e % v.length], S = O && B > 0 ? rn(y, Kn(B)) : Rt(a == null ? void 0 : a[x]) ?? (B > 0 ? rn(y, Kn(B)) : y), D = o ? wo(S) : S;
268
- let k = typeof l == "number" ? l : 1;
269
- return o && (k = k * xo), Co(D, k);
267
+ const f = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, P = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, O = r !== !1, x = e * f + P, v = c === "clustered" ? vo(Math.max(xt.length, e + 1)) : bo(u), y = Rt(a == null ? void 0 : a[e * f]) ?? v[e % v.length], _ = O && P > 0 ? rn(y, Kn(P)) : Rt(a == null ? void 0 : a[x]) ?? (P > 0 ? rn(y, Kn(P)) : y), L = o ? wo(_) : _;
268
+ let S = typeof l == "number" ? l : 1;
269
+ return o && (S = S * xo), Co(L, S);
270
270
  }
271
271
  function _o(e, t, n) {
272
272
  if (e === "" || t === "")
@@ -470,8 +470,8 @@ function Ta(e, t, n) {
470
470
  return;
471
471
  const o = ((y = e.options) == null ? void 0 : y.indexAxis) === "y", l = e.tooltip, a = (l == null ? void 0 : l.getActiveElements()) ?? [];
472
472
  if (a.length === 0) {
473
- const S = ka(e, o);
474
- S !== void 0 && hn(e.ctx, o, e.chartArea, S);
473
+ const _ = ka(e, o);
474
+ _ !== void 0 && hn(e.ctx, o, e.chartArea, _);
475
475
  return;
476
476
  }
477
477
  const r = e.scales.x, c = e.scales.y;
@@ -481,13 +481,13 @@ function Ta(e, t, n) {
481
481
  if (!u)
482
482
  return;
483
483
  if (t === "bar") {
484
- const D = (o ? c : r).getPixelForValue(u.index);
485
- hn(e.ctx, o, e.chartArea, D);
484
+ const L = (o ? c : r).getPixelForValue(u.index);
485
+ hn(e.ctx, o, e.chartArea, L);
486
486
  return;
487
487
  }
488
488
  if (!u.element)
489
489
  return;
490
- const f = u.element, B = o ? c : r, O = o ? f.y : f.x, x = B.getPixelForValue(u.index), v = O ?? x;
490
+ const f = u.element, P = o ? c : r, O = o ? f.y : f.x, x = P.getPixelForValue(u.index), v = O ?? x;
491
491
  hn(e.ctx, o, e.chartArea, v);
492
492
  }
493
493
  function Ht(e) {
@@ -689,18 +689,18 @@ function nr(e) {
689
689
  return `<button type="button" data-tooltip-full-details="true" style="${va}">${Tn(e)}</button>`;
690
690
  }
691
691
  function Io(e, t, n, o, l, a, r, c) {
692
- var I;
693
- const u = (I = e[0]) == null ? void 0 : I.label, f = Va(u), O = !!(f != null && f[1]) ? qn((f == null ? void 0 : f[0]) ?? "", Na()) : (f == null ? void 0 : f[0]) ?? "", x = f != null && f[1] ? qn(f[1], $a()) : void 0, v = [], y = [], S = /* @__PURE__ */ new Set();
694
- a.forEach((A, q) => {
695
- if (S.has(q))
692
+ var D;
693
+ const u = (D = e[0]) == null ? void 0 : D.label, f = Va(u), O = !!(f != null && f[1]) ? qn((f == null ? void 0 : f[0]) ?? "", Na()) : (f == null ? void 0 : f[0]) ?? "", x = f != null && f[1] ? qn(f[1], $a()) : void 0, v = [], y = [], _ = /* @__PURE__ */ new Set();
694
+ a.forEach((A, E) => {
695
+ if (_.has(E))
696
696
  return;
697
697
  const Q = A ?? {};
698
698
  if (Q.isSpacer === !0)
699
699
  return;
700
- const oe = Ha(Q), j = Wa(Q, r), L = Ua(Q, c), h = {
700
+ const oe = Ha(Q), j = Wa(Q, r), T = Ua(Q, c), h = {
701
701
  text: Oa(oe, j),
702
- color: Ka(Q, r, L),
703
- isBar: L,
702
+ color: Ka(Q, r, T),
703
+ isBar: T,
704
704
  value: j,
705
705
  datasetLabel: oe,
706
706
  matchingKey: Xa(oe)
@@ -711,25 +711,25 @@ function Io(e, t, n, o, l, a, r, c) {
711
711
  }
712
712
  v.push(h);
713
713
  });
714
- const D = v.slice(0, o), k = /* @__PURE__ */ new Map();
714
+ const L = v.slice(0, o), S = /* @__PURE__ */ new Map();
715
715
  y.forEach((A) => {
716
- const q = k.get(A.matchingKey);
717
- if (!q) {
718
- k.set(A.matchingKey, [A]);
716
+ const E = S.get(A.matchingKey);
717
+ if (!E) {
718
+ S.set(A.matchingKey, [A]);
719
719
  return;
720
720
  }
721
- q.push(A);
721
+ E.push(A);
722
722
  });
723
- const w = x ? D.map((A) => {
724
- const q = k.get(A.matchingKey);
725
- return !q || q.length === 0 ? Jn(A) : q.shift() ?? Jn(A);
726
- }) : [], $ = v.length > D.length || y.length > w.length, V = (A, q = !1) => `<div style="${er(q)}">${Tn(A)}</div>`, z = (A) => {
727
- const q = tr(A.isBar, A.color);
728
- return `<div style="${ba}"><span style="${q}"></span><span style="${Ca}">${Tn(A.text)}</span></div>`;
723
+ const B = x ? L.map((A) => {
724
+ const E = S.get(A.matchingKey);
725
+ return !E || E.length === 0 ? Jn(A) : E.shift() ?? Jn(A);
726
+ }) : [], F = v.length > L.length || y.length > B.length, R = (A, E = !1) => `<div style="${er(E)}">${Tn(A)}</div>`, V = (A) => {
727
+ const E = tr(A.isBar, A.color);
728
+ return `<div style="${ba}"><span style="${E}"></span><span style="${Ca}">${Tn(A.text)}</span></div>`;
729
729
  };
730
- let b = "";
731
- O.length > 0 && (b += V(O)), b += D.map((A) => z(A)).join(""), x && w.length > 0 && (b += V(x, b.length > 0), b += w.map((A) => z(A)).join("")), l && $ && (b += nr(n));
732
- const T = [
730
+ let C = "";
731
+ O.length > 0 && (C += R(O)), C += L.map((A) => V(A)).join(""), x && B.length > 0 && (C += R(x, C.length > 0), C += B.map((A) => V(A)).join("")), l && F && (C += nr(n));
732
+ const k = [
733
733
  {
734
734
  title: O,
735
735
  values: v
@@ -740,9 +740,9 @@ function Io(e, t, n, o, l, a, r, c) {
740
740
  }
741
741
  ].filter((A) => A.values.length > 0);
742
742
  return {
743
- html: b,
744
- detailsPayload: { sections: T },
745
- hasCollapsedValues: $
743
+ html: C,
744
+ detailsPayload: { sections: k },
745
+ hasCollapsedValues: F
746
746
  };
747
747
  }
748
748
  function Zn(e) {
@@ -778,7 +778,7 @@ function or(e, t, n, o, l, a, r, c, u) {
778
778
  maxTooltipItems: l
779
779
  };
780
780
  const f = Math.max(kn, t.length);
781
- let B = f, O = Jt(
781
+ let P = f, O = Jt(
782
782
  e,
783
783
  t,
784
784
  n,
@@ -796,36 +796,36 @@ function or(e, t, n, o, l, a, r, c, u) {
796
796
  };
797
797
  let x = kn, v = f;
798
798
  for (; x <= v; ) {
799
- const S = Math.floor((x + v) / 2), D = Jt(
799
+ const _ = Math.floor((x + v) / 2), L = Jt(
800
800
  e,
801
801
  t,
802
802
  n,
803
803
  o,
804
- S,
804
+ _,
805
805
  a,
806
806
  r,
807
807
  c,
808
808
  u
809
809
  );
810
810
  if (Zn(e)) {
811
- v = S - 1;
811
+ v = _ - 1;
812
812
  continue;
813
813
  }
814
- B = S, O = D, x = S + 1;
814
+ P = _, O = L, x = _ + 1;
815
815
  }
816
816
  return {
817
- markup: B === f ? O : Jt(
817
+ markup: P === f ? O : Jt(
818
818
  e,
819
819
  t,
820
820
  n,
821
821
  o,
822
- B,
822
+ P,
823
823
  a,
824
824
  r,
825
825
  c,
826
826
  u
827
827
  ),
828
- maxTooltipItems: B
828
+ maxTooltipItems: P
829
829
  };
830
830
  }
831
831
  function Qn(e, t) {
@@ -833,8 +833,8 @@ function Qn(e, t) {
833
833
  if (o.startsWith("#")) {
834
834
  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) : "";
835
835
  if (/^[0-9a-fA-F]{6}$/.test(c)) {
836
- const u = Number.parseInt(c.slice(0, 2), 16), f = Number.parseInt(c.slice(2, 4), 16), B = Number.parseInt(c.slice(4, 6), 16);
837
- return `rgba(${u}, ${f}, ${B}, ${n})`;
836
+ const u = Number.parseInt(c.slice(0, 2), 16), f = Number.parseInt(c.slice(2, 4), 16), P = Number.parseInt(c.slice(4, 6), 16);
837
+ return `rgba(${u}, ${f}, ${P}, ${n})`;
838
838
  }
839
839
  }
840
840
  const l = o.match(/^rgba?\(([^)]+)\)$/i);
@@ -939,16 +939,16 @@ function Fn(e) {
939
939
  return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
940
940
  }
941
941
  function Rn(e, t, n, o, l, a, r = "center", c = !1) {
942
- const u = t.getBoundingClientRect(), f = n.getBoundingClientRect(), B = n.scrollLeft, O = n.scrollTop, x = n.clientWidth, v = n.clientHeight, y = e;
942
+ const u = t.getBoundingClientRect(), f = n.getBoundingClientRect(), P = n.scrollLeft, O = n.scrollTop, x = n.clientWidth, v = n.clientHeight, y = e;
943
943
  (!Number.isFinite(y.__cachedWidth) || !Number.isFinite(y.__cachedHeight) || y.__measurementHostWidth !== x || y.__measurementHostHeight !== v) && (y.__cachedWidth = e.offsetWidth, y.__cachedHeight = e.offsetHeight, y.__measurementHostWidth = x, y.__measurementHostHeight = v);
944
- const D = y.__cachedWidth ?? e.offsetWidth, k = y.__cachedHeight ?? e.offsetHeight, w = 8, $ = u.left - f.left + B + o, V = u.top - f.top + O + l, z = c ? r === "left" ? $ - D - w : $ + w : r === "left" ? $ - D - w : r === "right" ? $ + w : $ - D / 2, b = c ? V + w : a ? V - k / 2 : V + w, T = B + w;
945
- let I = O + w;
944
+ const L = y.__cachedWidth ?? e.offsetWidth, S = y.__cachedHeight ?? e.offsetHeight, B = 8, F = u.left - f.left + P + o, R = u.top - f.top + O + l, V = c ? r === "left" ? F - L - B : F + B : r === "left" ? F - L - B : r === "right" ? F + B : F - L / 2, C = c ? R + B : a ? R - S / 2 : R + B, k = P + B;
945
+ let D = O + B;
946
946
  const A = document.querySelector('[data-menu-tab="true"]');
947
947
  if (A) {
948
- const h = A.getBoundingClientRect().bottom - f.top + O + w;
949
- I = Math.max(I, h);
948
+ const h = A.getBoundingClientRect().bottom - f.top + O + B;
949
+ D = Math.max(D, h);
950
950
  }
951
- const q = Math.max(T, B + x - D - w), Q = Math.max(I, O + v - k - w), oe = Math.round(Math.min(Math.max(T, z), q)), j = Math.round(Math.min(Math.max(I, b), Q));
951
+ const E = Math.max(k, P + x - L - B), Q = Math.max(D, O + v - S - B), oe = Math.round(Math.min(Math.max(k, V), E)), j = Math.round(Math.min(Math.max(D, C), Q));
952
952
  y.__lastLeftPx === oe && y.__lastTopPx === j || (y.__lastLeftPx = oe, y.__lastTopPx = j, e.style.left = `${oe}px`, e.style.top = `${j}px`);
953
953
  }
954
954
  function Bo(e) {
@@ -1074,33 +1074,33 @@ function vr(e, t, n, o, l) {
1074
1074
  }, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
1075
1075
  passive: !0
1076
1076
  })), e.__onCanvasClick || (e.__onCanvasClick = (r) => {
1077
- var D, k;
1077
+ var L, S;
1078
1078
  if (ut() || !(l != null && l.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
1079
1079
  return;
1080
- const c = (w) => {
1081
- var T, I, A, q;
1082
- if (w.length === 0)
1080
+ const c = (B) => {
1081
+ var k, D, A, E;
1082
+ if (B.length === 0)
1083
1083
  return !1;
1084
- const $ = (T = w.find(
1084
+ const F = (k = B.find(
1085
1085
  (Q) => typeof Q.dataIndex == "number"
1086
- )) == null ? void 0 : T.dataIndex, V = ((I = n == null ? void 0 : n.data) == null ? void 0 : I.datasets) ?? [], z = (A = n == null ? void 0 : n.config) == null ? void 0 : A.type, b = Io(
1087
- w,
1086
+ )) == null ? void 0 : k.dataIndex, R = ((D = n == null ? void 0 : n.data) == null ? void 0 : D.datasets) ?? [], V = (A = n == null ? void 0 : n.config) == null ? void 0 : A.type, C = Io(
1087
+ B,
1088
1088
  o,
1089
1089
  (l == null ? void 0 : l.viewFullDetailsLabel) ?? To(),
1090
1090
  a,
1091
1091
  !0,
1092
- V,
1093
- $,
1094
- z
1092
+ R,
1093
+ F,
1094
+ V
1095
1095
  ).detailsPayload;
1096
- return (q = l.onViewFullDetails) == null || q.call(l, b, n), ze(e, n), !0;
1097
- }, u = ((D = n == null ? void 0 : n.tooltip) == null ? void 0 : D.dataPoints) ?? [];
1096
+ return (E = l.onViewFullDetails) == null || E.call(l, C, n), ze(e, n), !0;
1097
+ }, u = ((L = n == null ? void 0 : n.tooltip) == null ? void 0 : L.dataPoints) ?? [];
1098
1098
  if (c(u))
1099
1099
  return;
1100
1100
  const f = n == null ? void 0 : n.getElementsAtEventForMode;
1101
1101
  if (typeof f != "function")
1102
1102
  return;
1103
- const B = f.call(
1103
+ const P = f.call(
1104
1104
  n,
1105
1105
  r,
1106
1106
  "nearest",
@@ -1112,7 +1112,7 @@ function vr(e, t, n, o, l) {
1112
1112
  "index",
1113
1113
  { intersect: !1 },
1114
1114
  !1
1115
- ), v = (B.length > 0 ? B : O).filter((w) => typeof w.datasetIndex == "number" && typeof w.index == "number").map((w) => ({ datasetIndex: w.datasetIndex, index: w.index }));
1115
+ ), v = (P.length > 0 ? P : O).filter((B) => typeof B.datasetIndex == "number" && typeof B.index == "number").map((B) => ({ datasetIndex: B.datasetIndex, index: B.index }));
1116
1116
  if (v.length === 0)
1117
1117
  return;
1118
1118
  const y = n == null ? void 0 : n.tooltip;
@@ -1127,8 +1127,8 @@ function vr(e, t, n, o, l) {
1127
1127
  } catch {
1128
1128
  return;
1129
1129
  }
1130
- const S = ((k = n == null ? void 0 : n.tooltip) == null ? void 0 : k.dataPoints) ?? [];
1131
- c(S);
1130
+ const _ = ((S = n == null ? void 0 : n.tooltip) == null ? void 0 : S.dataPoints) ?? [];
1131
+ c(_);
1132
1132
  }, t.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (r) => {
1133
1133
  if (ut()) {
1134
1134
  const c = n == null ? void 0 : n.getElementsAtEventForMode, u = n == null ? void 0 : n.tooltip;
@@ -1140,15 +1140,15 @@ function vr(e, t, n, o, l) {
1140
1140
  "nearest",
1141
1141
  { intersect: !0 },
1142
1142
  !1
1143
- ), B = c.call(
1143
+ ), P = c.call(
1144
1144
  n,
1145
1145
  r,
1146
1146
  "index",
1147
1147
  { intersect: !1 },
1148
1148
  !1
1149
- ), x = (f.length > 0 ? f : B).filter((k) => typeof k.datasetIndex == "number" && typeof k.index == "number").map((k) => ({
1150
- datasetIndex: k.datasetIndex,
1151
- index: k.index
1149
+ ), x = (f.length > 0 ? f : P).filter((S) => typeof S.datasetIndex == "number" && typeof S.index == "number").map((S) => ({
1150
+ datasetIndex: S.datasetIndex,
1151
+ index: S.index
1152
1152
  }));
1153
1153
  if (x.length === 0) {
1154
1154
  ze(e, n, !0);
@@ -1158,8 +1158,8 @@ function vr(e, t, n, o, l) {
1158
1158
  e,
1159
1159
  v.datasetIndex,
1160
1160
  v.index
1161
- ), S = Number.isFinite(e.__lastPhoneTapAt), D = y && Qa(e, r.offsetX, r.offsetY, r.timeStamp);
1162
- if (S && !D && y) {
1161
+ ), _ = Number.isFinite(e.__lastPhoneTapAt), L = y && Qa(e, r.offsetX, r.offsetY, r.timeStamp);
1162
+ if (_ && !L && y) {
1163
1163
  ze(e, n, !0);
1164
1164
  return;
1165
1165
  }
@@ -1172,7 +1172,7 @@ function vr(e, t, n, o, l) {
1172
1172
  } catch {
1173
1173
  return;
1174
1174
  }
1175
- if (D && (l != null && l.onViewFullDetails) && e.__detailsPayload) {
1175
+ if (L && (l != null && l.onViewFullDetails) && e.__detailsPayload) {
1176
1176
  l.onViewFullDetails(e.__detailsPayload, n), ze(e, n);
1177
1177
  return;
1178
1178
  }
@@ -1227,7 +1227,7 @@ function yr(e, t, n) {
1227
1227
  function br(e, t) {
1228
1228
  const { maxTooltipItems: n } = Do(t);
1229
1229
  return ({ chart: o, tooltip: l }) => {
1230
- var oe, j, L, h;
1230
+ var oe, j, T, h;
1231
1231
  if (typeof document > "u" || typeof window > "u")
1232
1232
  return;
1233
1233
  const a = o == null ? void 0 : o.canvas;
@@ -1249,44 +1249,44 @@ function br(e, t) {
1249
1249
  return;
1250
1250
  }
1251
1251
  hr(r, c, a), St(u);
1252
- const B = (t == null ? void 0 : t.viewFullDetailsLabel) ?? To(), O = !!(t != null && t.onViewFullDetails), x = (oe = f.find((p) => typeof p.dataIndex == "number")) == null ? void 0 : oe.dataIndex, v = ((j = o == null ? void 0 : o.data) == null ? void 0 : j.datasets) ?? [], y = (L = o == null ? void 0 : o.config) == null ? void 0 : L.type, {
1253
- markup: { detailsPayload: S, hasCollapsedValues: D }
1252
+ const P = (t == null ? void 0 : t.viewFullDetailsLabel) ?? To(), O = !!(t != null && t.onViewFullDetails), x = (oe = f.find((p) => typeof p.dataIndex == "number")) == null ? void 0 : oe.dataIndex, v = ((j = o == null ? void 0 : o.data) == null ? void 0 : j.datasets) ?? [], y = (T = o == null ? void 0 : o.config) == null ? void 0 : T.type, {
1253
+ markup: { detailsPayload: _, hasCollapsedValues: L }
1254
1254
  } = or(
1255
1255
  u,
1256
1256
  f,
1257
1257
  e,
1258
- B,
1258
+ P,
1259
1259
  n,
1260
1260
  O,
1261
1261
  v,
1262
1262
  x,
1263
1263
  y
1264
- ), k = O && D;
1265
- u.__detailsPayload = k ? S : void 0, u.style.pointerEvents = k ? "auto" : "none";
1266
- const w = typeof (l == null ? void 0 : l.caretX) == "number" ? l.caretX : 0, $ = Number(u.dataset.cursorCanvasX), V = Number(u.dataset.cursorCanvasY);
1267
- if (!(Number.isFinite($) && Number.isFinite(V))) {
1264
+ ), S = O && L;
1265
+ u.__detailsPayload = S ? _ : void 0, u.style.pointerEvents = S ? "auto" : "none";
1266
+ const B = typeof (l == null ? void 0 : l.caretX) == "number" ? l.caretX : 0, F = Number(u.dataset.cursorCanvasX), R = Number(u.dataset.cursorCanvasY);
1267
+ if (!(Number.isFinite(F) && Number.isFinite(R))) {
1268
1268
  u.style.opacity = "0";
1269
1269
  return;
1270
1270
  }
1271
- const b = (h = o == null ? void 0 : o.scales) == null ? void 0 : h.x, T = b && typeof b.getPixelForValue == "function" ? b.getPixelForValue(0) : NaN, I = e ? f.reduce((p, M) => {
1272
- const N = M == null ? void 0 : M.element, F = N == null ? void 0 : N.x;
1273
- if (typeof F != "number" || !Number.isFinite(F))
1271
+ const C = (h = o == null ? void 0 : o.scales) == null ? void 0 : h.x, k = C && typeof C.getPixelForValue == "function" ? C.getPixelForValue(0) : NaN, D = e ? f.reduce((p, M) => {
1272
+ const z = M == null ? void 0 : M.element, N = z == null ? void 0 : z.x;
1273
+ if (typeof N != "number" || !Number.isFinite(N))
1274
1274
  return p;
1275
1275
  if (!Number.isFinite(p))
1276
- return F;
1277
- const K = Number.isFinite(T) ? T : w, H = Math.abs(p - K);
1278
- return Math.abs(F - K) > H ? F : p;
1279
- }, Number.NaN) : Number.NaN, A = $, q = V, Q = e ? Number.isFinite(T) && Number.isFinite(I) && I < T ? "left" : "right" : "center";
1276
+ return N;
1277
+ const K = Number.isFinite(k) ? k : B, H = Math.abs(p - K);
1278
+ return Math.abs(N - K) > H ? N : p;
1279
+ }, Number.NaN) : Number.NaN, A = F, E = R, Q = e ? Number.isFinite(k) && Number.isFinite(D) && D < k ? "left" : "right" : "center";
1280
1280
  Rn(
1281
1281
  u,
1282
1282
  a,
1283
1283
  r,
1284
1284
  A,
1285
- q,
1285
+ E,
1286
1286
  e,
1287
1287
  Q,
1288
1288
  !0
1289
- ), u.dataset.caretX = String(A), u.dataset.caretY = String(q), u.dataset.anchorDirection = Q, u.style.opacity = "1";
1289
+ ), u.dataset.caretX = String(A), u.dataset.caretY = String(E), u.dataset.anchorDirection = Q, u.style.opacity = "1";
1290
1290
  };
1291
1291
  }
1292
1292
  function Dn(e = !1, t) {
@@ -1314,13 +1314,13 @@ function Cr() {
1314
1314
  function Ao(e) {
1315
1315
  function o(x, v, y) {
1316
1316
  if (x.measureText(v).width <= y) return v;
1317
- const S = "…";
1318
- let D = 0, k = v.length;
1319
- for (; D < k; ) {
1320
- const w = Math.floor((D + k) / 2), $ = v.slice(0, w) + S;
1321
- x.measureText($).width <= y ? D = w + 1 : k = w;
1317
+ const _ = "…";
1318
+ let L = 0, S = v.length;
1319
+ for (; L < S; ) {
1320
+ const B = Math.floor((L + S) / 2), F = v.slice(0, B) + _;
1321
+ x.measureText(F).width <= y ? L = B + 1 : S = B;
1322
1322
  }
1323
- return v.slice(0, D - 1) + S;
1323
+ return v.slice(0, L - 1) + _;
1324
1324
  }
1325
1325
  function l(x) {
1326
1326
  const v = x == null ? "" : String(x), [y] = v.split("#");
@@ -1333,8 +1333,8 @@ function Ao(e) {
1333
1333
  function r(x, v) {
1334
1334
  const y = x == null ? "" : String(x).trim();
1335
1335
  if (y.length === 0) return y;
1336
- const S = Cr();
1337
- return y.endsWith(` ${S}`) || y.endsWith(S) ? y : (v == null ? void 0 : v.dash) === !0 || (v == null ? void 0 : v.isCompare) === !0 ? `${y} ${S}` : y;
1336
+ const _ = Cr();
1337
+ return y.endsWith(` ${_}`) || y.endsWith(_) ? y : (v == null ? void 0 : v.dash) === !0 || (v == null ? void 0 : v.isCompare) === !0 ? `${y} ${_}` : y;
1338
1338
  }
1339
1339
  const c = g(() => ({
1340
1340
  display: e.showLabel,
@@ -1362,15 +1362,15 @@ function Ao(e) {
1362
1362
  callback: function(x) {
1363
1363
  if ((e == null ? void 0 : e.isTransposed) === !0) return a(x);
1364
1364
  let y = String(x);
1365
- const S = this;
1366
- if (S && typeof S.getLabelForValue == "function" && (y = S.getLabelForValue(x)), S != null && S.type && S.type !== "category")
1365
+ const _ = this;
1366
+ if (_ && typeof _.getLabelForValue == "function" && (y = _.getLabelForValue(x)), _ != null && _.type && _.type !== "category")
1367
1367
  return a(y);
1368
1368
  y = l(y);
1369
- const D = S == null ? void 0 : S.chart, k = S == null ? void 0 : S.ctx, w = D.height * 0.25;
1370
- if (k && w > 0) {
1371
- k.save();
1372
- const V = k.measureText(y).width > w ? o(k, y, w) : y;
1373
- return k.restore(), V;
1369
+ const L = _ == null ? void 0 : _.chart, S = _ == null ? void 0 : _.ctx, B = L.height * 0.25;
1370
+ if (S && B > 0) {
1371
+ S.save();
1372
+ const R = S.measureText(y).width > B ? o(S, y, B) : y;
1373
+ return S.restore(), R;
1374
1374
  }
1375
1375
  return y;
1376
1376
  },
@@ -1388,8 +1388,8 @@ function Ao(e) {
1388
1388
  afterBuildTicks: (x) => {
1389
1389
  const v = Array.isArray(x == null ? void 0 : x.ticks) ? x.ticks : [];
1390
1390
  if (v.length === 0) return;
1391
- const y = l(x.getLabelForValue(v[0].value)), S = !isNaN(Number(y));
1392
- x.options.ticks.minRotation = S || v.length < 10 ? 0 : 90;
1391
+ const y = l(x.getLabelForValue(v[0].value)), _ = !isNaN(Number(y));
1392
+ x.options.ticks.minRotation = _ || v.length < 10 ? 0 : 90;
1393
1393
  },
1394
1394
  afterFit: (x) => {
1395
1395
  if (!(e != null && e.isTransposed)) {
@@ -1412,15 +1412,15 @@ function Ao(e) {
1412
1412
  callback: function(x) {
1413
1413
  if (!((e == null ? void 0 : e.isTransposed) === !0)) return a(x);
1414
1414
  let y = String(x);
1415
- const S = this;
1416
- if (S && typeof S.getLabelForValue == "function" && (y = S.getLabelForValue(x)), S != null && S.type && S.type !== "category")
1415
+ const _ = this;
1416
+ if (_ && typeof _.getLabelForValue == "function" && (y = _.getLabelForValue(x)), _ != null && _.type && _.type !== "category")
1417
1417
  return a(y);
1418
1418
  y = l(y);
1419
- const D = S == null ? void 0 : S.chart, k = S == null ? void 0 : S.ctx, w = D.width * 0.4;
1420
- if (k && w > 0) {
1421
- k.save();
1422
- const V = k.measureText(y).width > w ? o(k, y, w) : y;
1423
- return k.restore(), V;
1419
+ const L = _ == null ? void 0 : _.chart, S = _ == null ? void 0 : _.ctx, B = L.width * 0.4;
1420
+ if (S && B > 0) {
1421
+ S.save();
1422
+ const R = S.measureText(y).width > B ? o(S, y, B) : y;
1423
+ return S.restore(), R;
1424
1424
  }
1425
1425
  return y;
1426
1426
  }
@@ -1432,7 +1432,7 @@ function Ao(e) {
1432
1432
  size: e.yTitleFontSize
1433
1433
  }
1434
1434
  }
1435
- })), B = g(() => ({
1435
+ })), P = g(() => ({
1436
1436
  display: e.showLegend,
1437
1437
  position: e.legendPosition,
1438
1438
  usePointStyle: e.usePointStyle,
@@ -1444,41 +1444,41 @@ function Ao(e) {
1444
1444
  size: e.legendFontSize
1445
1445
  },
1446
1446
  generateLabels: (x) => {
1447
- var S;
1448
- const v = e.legendColor ?? "#6b6b6b", y = ((S = x == null ? void 0 : x.data) == null ? void 0 : S.datasets) || [];
1447
+ var _;
1448
+ const v = e.legendColor ?? "#6b6b6b", y = ((_ = x == null ? void 0 : x.data) == null ? void 0 : _.datasets) || [];
1449
1449
  if (y.length === 0) return [];
1450
1450
  if (y.length === 1 && Array.isArray(y[0].backgroundColor) && y[0].backgroundColor.length > 1 && Array.isArray(y[0].data)) {
1451
- const D = y[0];
1452
- return x.data.labels.map((w, $) => {
1453
- const V = D.backgroundColor[$];
1451
+ const L = y[0];
1452
+ return x.data.labels.map((B, F) => {
1453
+ const R = L.backgroundColor[F];
1454
1454
  return {
1455
- text: w,
1455
+ text: B,
1456
1456
  fontColor: v,
1457
1457
  color: v,
1458
- fillStyle: V,
1459
- strokeStyle: V,
1458
+ fillStyle: R,
1459
+ strokeStyle: R,
1460
1460
  datasetIndex: 0,
1461
- index: $,
1462
- hidden: x.getDataVisibility ? !x.getDataVisibility($) : !1
1461
+ index: F,
1462
+ hidden: x.getDataVisibility ? !x.getDataVisibility(F) : !1
1463
1463
  };
1464
1464
  });
1465
1465
  }
1466
- return x.data.datasets.map((D, k) => {
1467
- const w = D.borderColor || D.backgroundColor;
1466
+ return x.data.datasets.map((L, S) => {
1467
+ const B = L.borderColor || L.backgroundColor;
1468
1468
  return {
1469
- text: r(D.label, D),
1469
+ text: r(L.label, L),
1470
1470
  fontColor: v,
1471
1471
  color: v,
1472
- fillStyle: w,
1473
- strokeStyle: w,
1474
- datasetIndex: k,
1475
- hidden: !x.isDatasetVisible(k)
1472
+ fillStyle: B,
1473
+ strokeStyle: B,
1474
+ datasetIndex: S,
1475
+ hidden: !x.isDatasetVisible(S)
1476
1476
  };
1477
1477
  });
1478
1478
  }
1479
1479
  }
1480
1480
  })), O = g(() => e.isTransposed);
1481
- return { datalabels: c, xCfg: u, yCfg: f, isTransposed: O, legend: B };
1481
+ return { datalabels: c, xCfg: u, yCfg: f, isTransposed: O, legend: P };
1482
1482
  }
1483
1483
  const xr = {
1484
1484
  key: 0,
@@ -1497,100 +1497,100 @@ const xr = {
1497
1497
  },
1498
1498
  emits: ["update:modelValue", "value-hover", "value-leave"],
1499
1499
  setup(e, { emit: t }) {
1500
- const n = e, o = t, { t: l } = dt(), a = P(null), r = P(ao), c = P(!1), u = P({}), f = g({
1500
+ const n = e, o = t, { t: l } = dt(), a = I(null), r = I(ao), c = I(!1), u = I({}), f = g({
1501
1501
  get: () => n.modelValue,
1502
- set: (L) => o("update:modelValue", L)
1503
- }), B = g(() => {
1504
- var L;
1505
- return (((L = n.detailsPayload) == null ? void 0 : L.sections) ?? []).filter((h) => h.values.length > 0);
1502
+ set: (T) => o("update:modelValue", T)
1503
+ }), P = g(() => {
1504
+ var T;
1505
+ return (((T = n.detailsPayload) == null ? void 0 : T.sections) ?? []).filter((h) => h.values.length > 0);
1506
1506
  }), O = g(
1507
- () => B.value.map((L, h) => {
1508
- const p = k(L.title, h), M = Math.min(u.value[p] ?? Qt, L.values.length);
1507
+ () => P.value.map((T, h) => {
1508
+ const p = S(T.title, h), M = Math.min(u.value[p] ?? Qt, T.values.length);
1509
1509
  return {
1510
- ...L,
1510
+ ...T,
1511
1511
  key: p,
1512
- visibleValues: L.values.slice(0, M),
1513
- hasMore: M < L.values.length,
1514
- remainingCount: L.values.length - M
1512
+ visibleValues: T.values.slice(0, M),
1513
+ hasMore: M < T.values.length,
1514
+ remainingCount: T.values.length - M
1515
1515
  };
1516
1516
  })
1517
1517
  ), x = g(() => ({
1518
1518
  width: `${r.value}px`,
1519
1519
  maxWidth: "94vw"
1520
1520
  }));
1521
- function v(L) {
1522
- return L.value == null || L.value === "" ? "-" : typeof L.value == "number" ? Number.isFinite(L.value) ? L.value.toLocaleString() : "-" : String(L.value);
1521
+ function v(T) {
1522
+ return T.value == null || T.value === "" ? "-" : typeof T.value == "number" ? Number.isFinite(T.value) ? T.value.toLocaleString() : "-" : String(T.value);
1523
1523
  }
1524
- function y(L) {
1525
- const h = L.text ?? "", p = h.lastIndexOf(":");
1524
+ function y(T) {
1525
+ const h = T.text ?? "", p = h.lastIndexOf(":");
1526
1526
  return p > -1 ? h.slice(0, p).trim() : h;
1527
1527
  }
1528
- function S(L) {
1529
- o("value-hover", L);
1528
+ function _(T) {
1529
+ o("value-hover", T);
1530
1530
  }
1531
- function D() {
1531
+ function L() {
1532
1532
  o("value-leave");
1533
1533
  }
1534
- function k(L, h) {
1535
- return `${L || "section"}-${h}`;
1534
+ function S(T, h) {
1535
+ return `${T || "section"}-${h}`;
1536
1536
  }
1537
- function w() {
1538
- u.value = B.value.reduce(
1539
- (L, h, p) => (L[k(h.title, p)] = Qt, L),
1537
+ function B() {
1538
+ u.value = P.value.reduce(
1539
+ (T, h, p) => (T[S(h.title, p)] = Qt, T),
1540
1540
  {}
1541
1541
  );
1542
1542
  }
1543
- function $(L) {
1543
+ function F(T) {
1544
1544
  u.value = {
1545
1545
  ...u.value,
1546
- [L]: (u.value[L] ?? Qt) + Qt
1546
+ [T]: (u.value[T] ?? Qt) + Qt
1547
1547
  };
1548
1548
  }
1549
- function V() {
1550
- D(), f.value = !1;
1549
+ function R() {
1550
+ L(), f.value = !1;
1551
1551
  }
1552
- function z() {
1552
+ function V() {
1553
1553
  return typeof window > "u" ? ao : Math.floor(window.innerWidth * 0.94);
1554
1554
  }
1555
- function b(L) {
1556
- const h = z(), p = Math.min(Mr, h);
1557
- return Math.min(h, Math.max(p, Math.floor(L)));
1555
+ function C(T) {
1556
+ const h = V(), p = Math.min(Mr, h);
1557
+ return Math.min(h, Math.max(p, Math.floor(T)));
1558
1558
  }
1559
- function T(L) {
1560
- typeof window > "u" || (r.value = b(window.innerWidth - L));
1559
+ function k(T) {
1560
+ typeof window > "u" || (r.value = C(window.innerWidth - T));
1561
1561
  }
1562
- function I() {
1563
- c.value = !1, document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", I), document.removeEventListener("pointercancel", I);
1562
+ function D() {
1563
+ c.value = !1, document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", D), document.removeEventListener("pointercancel", D);
1564
1564
  }
1565
- function A(L) {
1566
- c.value && T(L.clientX);
1565
+ function A(T) {
1566
+ c.value && k(T.clientX);
1567
1567
  }
1568
- function q(L) {
1569
- f.value && (c.value = !0, T(L.clientX), document.addEventListener("pointermove", A), document.addEventListener("pointerup", I), document.addEventListener("pointercancel", I));
1568
+ function E(T) {
1569
+ f.value && (c.value = !0, k(T.clientX), document.addEventListener("pointermove", A), document.addEventListener("pointerup", D), document.addEventListener("pointercancel", D));
1570
1570
  }
1571
1571
  function Q() {
1572
- r.value = b(r.value);
1572
+ r.value = C(r.value);
1573
1573
  }
1574
- function oe(L) {
1574
+ function oe(T) {
1575
1575
  var M;
1576
1576
  if (!f.value)
1577
1577
  return;
1578
- const h = L.target;
1578
+ const h = T.target;
1579
1579
  if (!(h instanceof Node))
1580
1580
  return;
1581
1581
  const p = h instanceof Element ? h : null;
1582
- p != null && p.closest('[data-tooltip-full-details="true"]') || (M = a.value) != null && M.contains(h) || V();
1582
+ p != null && p.closest('[data-tooltip-full-details="true"]') || (M = a.value) != null && M.contains(h) || R();
1583
1583
  }
1584
- function j(L) {
1585
- f.value && L.key === "Escape" && V();
1584
+ function j(T) {
1585
+ f.value && T.key === "Escape" && R();
1586
1586
  }
1587
- return we([B, f], () => {
1588
- f.value && w();
1587
+ return we([P, f], () => {
1588
+ f.value && B();
1589
1589
  }), Nt(() => {
1590
- r.value = b(r.value), w(), document.addEventListener("pointerdown", oe, !0), document.addEventListener("keydown", j), window.addEventListener("resize", Q);
1590
+ r.value = C(r.value), B(), document.addEventListener("pointerdown", oe, !0), document.addEventListener("keydown", j), window.addEventListener("resize", Q);
1591
1591
  }), uo(() => {
1592
- I(), document.removeEventListener("pointerdown", oe, !0), document.removeEventListener("keydown", j), window.removeEventListener("resize", Q);
1593
- }), (L, h) => {
1592
+ D(), document.removeEventListener("pointerdown", oe, !0), document.removeEventListener("keydown", j), window.removeEventListener("resize", Q);
1593
+ }), (T, h) => {
1594
1594
  const p = ce("FmButton");
1595
1595
  return X(), de(Eo, {
1596
1596
  "enter-active-class": "transform transition duration-200 ease-out",
@@ -1602,7 +1602,7 @@ const xr = {
1602
1602
  }, {
1603
1603
  default: _e(() => [
1604
1604
  f.value ? (X(), le("div", xr, [
1605
- G("div", {
1605
+ q("div", {
1606
1606
  ref_key: "panelRef",
1607
1607
  ref: a,
1608
1608
  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",
@@ -1611,51 +1611,51 @@ const xr = {
1611
1611
  "aria-modal": "false",
1612
1612
  "aria-label": i(l)("report.widget.comparisonTooltip.fullBreakdownTitle")
1613
1613
  }, [
1614
- G("div", {
1614
+ q("div", {
1615
1615
  class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
1616
- onPointerdown: en(q, ["prevent"])
1616
+ onPointerdown: en(E, ["prevent"])
1617
1617
  }, null, 32),
1618
- G("div", _r, [
1619
- G("div", Sr, Te(i(l)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
1620
- G("div", kr, [
1618
+ q("div", _r, [
1619
+ q("div", Sr, Te(i(l)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
1620
+ q("div", kr, [
1621
1621
  fe(p, {
1622
1622
  class: "relative z-30 h-9 w-9 shrink-0",
1623
1623
  variant: "tertiary",
1624
1624
  icon: "close",
1625
1625
  "aria-label": i(l)("report.dynamic.common.close"),
1626
- onClick: V
1626
+ onClick: R
1627
1627
  }, null, 8, ["aria-label"])
1628
1628
  ])
1629
1629
  ]),
1630
- G("div", {
1630
+ q("div", {
1631
1631
  class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
1632
- onMouseleave: D
1632
+ onMouseleave: L
1633
1633
  }, [
1634
- (X(!0), le(Fe, null, ct(O.value, (M, N) => (X(), le("div", {
1634
+ (X(!0), le(Fe, null, ct(O.value, (M, z) => (X(), le("div", {
1635
1635
  key: M.key,
1636
1636
  class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
1637
1637
  }, [
1638
1638
  M.title ? (X(), le("p", Tr, Te(M.title), 1)) : he("", !0),
1639
- (X(!0), le(Fe, null, ct(M.visibleValues, (F, K) => (X(), le("button", {
1640
- key: `${F.text}-${K}`,
1639
+ (X(!0), le(Fe, null, ct(M.visibleValues, (N, K) => (X(), le("button", {
1640
+ key: `${N.text}-${K}`,
1641
1641
  type: "button",
1642
1642
  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",
1643
- onMouseenter: (H) => S(F),
1644
- onFocus: (H) => S(F),
1645
- onMouseleave: D,
1646
- onBlur: D
1643
+ onMouseenter: (H) => _(N),
1644
+ onFocus: (H) => _(N),
1645
+ onMouseleave: L,
1646
+ onBlur: L
1647
1647
  }, [
1648
- G("span", Dr, [
1649
- G("span", {
1648
+ q("span", Dr, [
1649
+ q("span", {
1650
1650
  class: Se([
1651
1651
  "inline-block h-3 w-3 shrink-0 box-border",
1652
- F.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)]"
1652
+ N.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)]"
1653
1653
  ]),
1654
- style: Pe({ backgroundColor: F.color })
1654
+ style: Pe({ backgroundColor: N.color })
1655
1655
  }, null, 6),
1656
- G("span", Ir, Te(y(F)), 1)
1656
+ q("span", Ir, Te(y(N)), 1)
1657
1657
  ]),
1658
- G("span", Pr, Te(v(F)), 1)
1658
+ q("span", Pr, Te(v(N)), 1)
1659
1659
  ], 40, Lr))), 128)),
1660
1660
  M.hasMore ? (X(), le("div", Br, [
1661
1661
  fe(p, {
@@ -1663,7 +1663,7 @@ const xr = {
1663
1663
  variant: "tertiary",
1664
1664
  size: "sm",
1665
1665
  label: `${i(l)("report.widget.legend.viewMore")} (${M.remainingCount})`,
1666
- onClick: (F) => $(M.key)
1666
+ onClick: (N) => F(M.key)
1667
1667
  }, null, 8, ["label", "onClick"])
1668
1668
  ])) : he("", !0)
1669
1669
  ]))), 128))
@@ -1702,14 +1702,14 @@ const xr = {
1702
1702
  },
1703
1703
  emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
1704
1704
  setup(e, { emit: t }) {
1705
- const n = e, o = t, { t: l, locale: a } = dt(), r = P([]), c = P(0), u = P(!1), f = P(!1), B = P(0), O = P(null), x = P(null), v = P(null), y = P(null), S = P(!1), D = P(0), k = P(0), w = P(!1), $ = P(0), V = P(0), z = g(() => n.enabled !== !1), b = g(() => n.position === "left" || n.position === "right");
1706
- let T = null;
1707
- const I = g(
1708
- () => u.value && f.value && S.value
1705
+ const n = e, o = t, { t: l, locale: a } = dt(), r = I([]), c = I(0), u = I(!1), f = I(!1), P = I(0), O = I(null), x = I(null), v = I(null), y = I(null), _ = I(!1), L = I(0), S = I(0), B = I(!1), F = I(0), R = I(0), V = g(() => n.enabled !== !1), C = g(() => n.position === "left" || n.position === "right");
1706
+ let k = null;
1707
+ const D = g(
1708
+ () => u.value && f.value && _.value
1709
1709
  ), A = g(() => ({
1710
- height: `${Math.max(0, D.value)}px`,
1711
- transform: `translateY(${Math.max(0, k.value)}px)`
1712
- })), q = g(() => typeof n.textColor == "string" && n.textColor.trim().length > 0 ? n.textColor : "#6b6b6b"), Q = g(() => typeof n.fontSize == "number" && Number.isFinite(n.fontSize) && n.fontSize > 0 ? n.fontSize : 12);
1710
+ height: `${Math.max(0, L.value)}px`,
1711
+ transform: `translateY(${Math.max(0, S.value)}px)`
1712
+ })), E = g(() => typeof n.textColor == "string" && n.textColor.trim().length > 0 ? n.textColor : "#6b6b6b"), Q = g(() => typeof n.fontSize == "number" && Number.isFinite(n.fontSize) && n.fontSize > 0 ? n.fontSize : 12);
1713
1713
  function oe(s) {
1714
1714
  j({ height: s, width: 0 });
1715
1715
  }
@@ -1718,11 +1718,11 @@ const xr = {
1718
1718
  const d = (W = n.chartRef) == null ? void 0 : W.$el;
1719
1719
  if (!(d instanceof HTMLElement))
1720
1720
  return;
1721
- const C = `${Math.max(0, Math.floor(s))}px`, R = `${Math.max(0, Math.floor(m))}px`;
1722
- d.style.getPropertyValue("--legend-panel-height") !== C && d.style.setProperty("--legend-panel-height", C), d.style.getPropertyValue("--legend-panel-width") !== R && d.style.setProperty("--legend-panel-width", R);
1721
+ const b = `${Math.max(0, Math.floor(s))}px`, $ = `${Math.max(0, Math.floor(m))}px`;
1722
+ d.style.getPropertyValue("--legend-panel-height") !== b && d.style.setProperty("--legend-panel-height", b), d.style.getPropertyValue("--legend-panel-width") !== $ && d.style.setProperty("--legend-panel-width", $);
1723
1723
  }
1724
- function L() {
1725
- T != null && (window.clearTimeout(T), T = null);
1724
+ function T() {
1725
+ k != null && (window.clearTimeout(k), k = null);
1726
1726
  }
1727
1727
  function h() {
1728
1728
  const s = Po(
@@ -1731,13 +1731,13 @@ const xr = {
1731
1731
  if (s)
1732
1732
  return s;
1733
1733
  const m = O.value, d = [m == null ? void 0 : m.parentElement, m == null ? void 0 : m.closest(".h-full"), m];
1734
- for (const C of d) {
1735
- if (!(C instanceof HTMLElement))
1734
+ for (const b of d) {
1735
+ if (!(b instanceof HTMLElement))
1736
1736
  continue;
1737
- const R = C.querySelector("canvas");
1738
- if (!(R instanceof HTMLCanvasElement))
1737
+ const $ = b.querySelector("canvas");
1738
+ if (!($ instanceof HTMLCanvasElement))
1739
1739
  continue;
1740
- const W = bn.getChart(R);
1740
+ const W = bn.getChart($);
1741
1741
  if (W)
1742
1742
  return W;
1743
1743
  }
@@ -1747,55 +1747,55 @@ const xr = {
1747
1747
  M();
1748
1748
  }
1749
1749
  function M() {
1750
- var C;
1751
- const s = (C = O.value) == null ? void 0 : C.getBoundingClientRect(), m = Number((s == null ? void 0 : s.height) ?? 0), d = Number((s == null ? void 0 : s.width) ?? 0);
1750
+ var b;
1751
+ const s = (b = O.value) == null ? void 0 : b.getBoundingClientRect(), m = Number((s == null ? void 0 : s.height) ?? 0), d = Number((s == null ? void 0 : s.width) ?? 0);
1752
1752
  if (Number.isFinite(m) && m >= 0) {
1753
1753
  j({
1754
- height: b.value ? 0 : m,
1755
- width: b.value && Number.isFinite(d) && d >= 0 ? d : 0
1754
+ height: C.value ? 0 : m,
1755
+ width: C.value && Number.isFinite(d) && d >= 0 ? d : 0
1756
1756
  });
1757
1757
  return;
1758
1758
  }
1759
1759
  j({ height: 0, width: 0 });
1760
1760
  }
1761
- function N() {
1761
+ function z() {
1762
1762
  const s = v.value;
1763
1763
  if (!s) {
1764
- S.value = !1, D.value = 0, k.value = 0;
1764
+ _.value = !1, L.value = 0, S.value = 0;
1765
1765
  return;
1766
1766
  }
1767
- const m = s.clientHeight, d = s.scrollHeight, C = s.scrollTop, R = d > m + 1;
1768
- if (S.value = R, !R || m <= 0) {
1769
- D.value = 0, k.value = 0;
1767
+ const m = s.clientHeight, d = s.scrollHeight, b = s.scrollTop, $ = d > m + 1;
1768
+ if (_.value = $, !$ || m <= 0) {
1769
+ L.value = 0, S.value = 0;
1770
1770
  return;
1771
1771
  }
1772
- const W = m, Z = Math.max(18, Math.round(m / d * W)), ee = Math.max(0, W - Z), U = Math.max(1, d - m), ie = Math.round(C / U * ee);
1773
- D.value = Z, k.value = ie;
1772
+ const W = m, Z = Math.max(18, Math.round(m / d * W)), ee = Math.max(0, W - Z), U = Math.max(1, d - m), ie = Math.round(b / U * ee);
1773
+ L.value = Z, S.value = ie;
1774
1774
  }
1775
- function F() {
1776
- N();
1775
+ function N() {
1776
+ z();
1777
1777
  }
1778
1778
  function K(s) {
1779
1779
  const m = v.value, d = x.value;
1780
- if (!m || !d || !S.value)
1780
+ if (!m || !d || !_.value)
1781
1781
  return;
1782
- const C = d.getBoundingClientRect(), R = s.clientY - C.top, W = Math.max(0, R - D.value / 2), Z = Math.max(1, m.clientHeight - D.value), ee = Math.min(1, W / Z), U = Math.max(0, m.scrollHeight - m.clientHeight);
1783
- m.scrollTop = ee * U, N();
1782
+ const b = d.getBoundingClientRect(), $ = s.clientY - b.top, W = Math.max(0, $ - L.value / 2), Z = Math.max(1, m.clientHeight - L.value), ee = Math.min(1, W / Z), U = Math.max(0, m.scrollHeight - m.clientHeight);
1783
+ m.scrollTop = ee * U, z();
1784
1784
  }
1785
1785
  function H(s) {
1786
- S.value && (w.value = !0, $.value = s.clientY, V.value = k.value);
1786
+ _.value && (B.value = !0, F.value = s.clientY, R.value = S.value);
1787
1787
  }
1788
1788
  function J(s) {
1789
- if (!w.value)
1789
+ if (!B.value)
1790
1790
  return;
1791
1791
  const m = v.value;
1792
1792
  if (!m)
1793
1793
  return;
1794
- const d = s.clientY - $.value, C = Math.max(1, m.clientHeight - D.value), W = Math.min(C, Math.max(0, V.value + d)) / C, Z = Math.max(0, m.scrollHeight - m.clientHeight);
1795
- m.scrollTop = W * Z, N();
1794
+ const d = s.clientY - F.value, b = Math.max(1, m.clientHeight - L.value), W = Math.min(b, Math.max(0, R.value + d)) / b, Z = Math.max(0, m.scrollHeight - m.clientHeight);
1795
+ m.scrollTop = W * Z, z();
1796
1796
  }
1797
- function E() {
1798
- w.value && (w.value = !1);
1797
+ function G() {
1798
+ B.value && (B.value = !1);
1799
1799
  }
1800
1800
  function ae() {
1801
1801
  var m;
@@ -1803,25 +1803,25 @@ const xr = {
1803
1803
  for (const d of s) {
1804
1804
  if (!(d instanceof HTMLElement))
1805
1805
  continue;
1806
- const C = d.closest('[class*="fm-card"]');
1807
- if (C)
1808
- return C;
1806
+ const b = d.closest('[class*="fm-card"]');
1807
+ if (b)
1808
+ return b;
1809
1809
  }
1810
1810
  for (const d of s) {
1811
1811
  if (!(d instanceof HTMLElement))
1812
1812
  continue;
1813
- const C = d.closest(".h-full") ?? d.parentElement;
1814
- if (C)
1815
- return C;
1813
+ const b = d.closest(".h-full") ?? d.parentElement;
1814
+ if (b)
1815
+ return b;
1816
1816
  }
1817
1817
  return null;
1818
1818
  }
1819
1819
  function me() {
1820
- var d, C, R, W;
1821
- const s = (C = (d = O.value) == null ? void 0 : d.closest(".chart-layout")) == null ? void 0 : C.parentElement;
1820
+ var d, b, $, W;
1821
+ const s = (b = (d = O.value) == null ? void 0 : d.closest(".chart-layout")) == null ? void 0 : b.parentElement;
1822
1822
  if (s instanceof HTMLElement)
1823
1823
  return s;
1824
- const m = (R = n.chartRef) == null ? void 0 : R.$el;
1824
+ const m = ($ = n.chartRef) == null ? void 0 : $.$el;
1825
1825
  if (m instanceof HTMLElement) {
1826
1826
  const Z = (W = m.closest(".chart-layout")) == null ? void 0 : W.parentElement;
1827
1827
  if (Z instanceof HTMLElement)
@@ -1830,8 +1830,8 @@ const xr = {
1830
1830
  return null;
1831
1831
  }
1832
1832
  function ue() {
1833
- var d, C, R, W;
1834
- const s = ((d = O.value) == null ? void 0 : d.closest(".chart-layout")) ?? ((W = (R = (C = n.chartRef) == null ? void 0 : C.$el) == null ? void 0 : R.closest) == null ? void 0 : W.call(R, ".chart-layout")) ?? null;
1833
+ var d, b, $, W;
1834
+ const s = ((d = O.value) == null ? void 0 : d.closest(".chart-layout")) ?? ((W = ($ = (b = n.chartRef) == null ? void 0 : b.$el) == null ? void 0 : $.closest) == null ? void 0 : W.call($, ".chart-layout")) ?? null;
1835
1835
  if (!(s instanceof HTMLElement))
1836
1836
  return null;
1837
1837
  const m = Number(s.getBoundingClientRect().width);
@@ -1847,7 +1847,7 @@ const xr = {
1847
1847
  const m = ae();
1848
1848
  if (!m)
1849
1849
  return null;
1850
- const d = window.getComputedStyle(m), C = parseFloat(d.paddingTop) || 0, R = parseFloat(d.paddingBottom) || 0, W = m.getBoundingClientRect().height - C - R;
1850
+ const d = window.getComputedStyle(m), b = parseFloat(d.paddingTop) || 0, $ = parseFloat(d.paddingBottom) || 0, W = m.getBoundingClientRect().height - b - $;
1851
1851
  return Number.isFinite(W) && W > 0 ? W : null;
1852
1852
  }
1853
1853
  function ve() {
@@ -1860,22 +1860,22 @@ const xr = {
1860
1860
  const m = ae();
1861
1861
  if (!m)
1862
1862
  return null;
1863
- const d = window.getComputedStyle(m), C = parseFloat(d.paddingLeft) || 0, R = parseFloat(d.paddingRight) || 0, W = m.getBoundingClientRect().width - C - R;
1863
+ const d = window.getComputedStyle(m), b = parseFloat(d.paddingLeft) || 0, $ = parseFloat(d.paddingRight) || 0, W = m.getBoundingClientRect().width - b - $;
1864
1864
  return Number.isFinite(W) && W > 0 ? W : null;
1865
1865
  }
1866
1866
  function Ce() {
1867
1867
  const s = h(), m = Number(s == null ? void 0 : s.height), d = re();
1868
- if (b.value)
1868
+ if (C.value)
1869
1869
  return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m - lo)) : d != null ? Math.max(0, Math.floor(d - lo)) : 120;
1870
1870
  if (d != null) {
1871
- const C = d * 0.3, R = d - $r, W = Math.min(C, R);
1871
+ const b = d * 0.3, $ = d - $r, W = Math.min(b, $);
1872
1872
  return Math.max(0, Math.floor(W));
1873
1873
  }
1874
1874
  return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m * 0.3)) : 120;
1875
1875
  }
1876
1876
  function Ne() {
1877
1877
  var W;
1878
- if (b.value) {
1878
+ if (C.value) {
1879
1879
  const Z = ve();
1880
1880
  if (Z != null)
1881
1881
  return Math.max(0, Math.floor(Z * 0.3));
@@ -1885,13 +1885,13 @@ const xr = {
1885
1885
  const s = ue();
1886
1886
  if (s != null)
1887
1887
  return Math.max(0, Math.floor(s * 0.3));
1888
- const m = h(), d = Number(m == null ? void 0 : m.width), C = Number(((W = O.value) == null ? void 0 : W.getBoundingClientRect().width) ?? 0);
1888
+ const m = h(), d = Number(m == null ? void 0 : m.width), b = Number(((W = O.value) == null ? void 0 : W.getBoundingClientRect().width) ?? 0);
1889
1889
  if (Number.isFinite(d) && d > 0) {
1890
- const Z = d + (Number.isFinite(C) ? C : 0);
1890
+ const Z = d + (Number.isFinite(b) ? b : 0);
1891
1891
  return Math.max(0, Math.floor(Z * 0.3));
1892
1892
  }
1893
- const R = ve();
1894
- return R != null ? Math.max(0, Math.floor(R * 0.3)) : 180;
1893
+ const $ = ve();
1894
+ return $ != null ? Math.max(0, Math.floor($ * 0.3)) : 180;
1895
1895
  }
1896
1896
  function $e(s, m) {
1897
1897
  const d = n.chartColorBinding;
@@ -1926,8 +1926,8 @@ const xr = {
1926
1926
  const ee = typeof s.index == "number" ? s.index : W;
1927
1927
  return Ye({ index: ee, customColors: n.chartColors });
1928
1928
  }
1929
- const C = s;
1930
- return Le(s.fillStyle) || Le(s.strokeStyle) || Le(C.color) || "#9ca3af";
1929
+ const b = s;
1930
+ return Le(s.fillStyle) || Le(s.strokeStyle) || Le(b.color) || "#9ca3af";
1931
1931
  }
1932
1932
  function Le(s) {
1933
1933
  return typeof s == "string" && s.trim().length > 0 ? s : Array.isArray(s) ? s.map((d) => Le(d)).find((d) => typeof d == "string" && d.trim().length > 0) ?? "" : "";
@@ -1942,34 +1942,34 @@ const xr = {
1942
1942
  if (s.length <= 1)
1943
1943
  return s;
1944
1944
  const m = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : 1;
1945
- return [...s.map((C, R) => {
1946
- const W = typeof C.datasetIndex == "number" ? C.datasetIndex : R, Z = _t({
1945
+ return [...s.map((b, $) => {
1946
+ const W = typeof b.datasetIndex == "number" ? b.datasetIndex : $, Z = _t({
1947
1947
  fallbackIndex: W,
1948
1948
  metricCount: m
1949
1949
  });
1950
1950
  return {
1951
- item: C,
1952
- originalIndex: R,
1951
+ item: b,
1952
+ originalIndex: $,
1953
1953
  breakdownIndex: Z
1954
1954
  };
1955
- })].sort((C, R) => C.breakdownIndex !== R.breakdownIndex ? C.breakdownIndex - R.breakdownIndex : C.originalIndex - R.originalIndex).map((C) => C.item);
1955
+ })].sort((b, $) => b.breakdownIndex !== $.breakdownIndex ? b.breakdownIndex - $.breakdownIndex : b.originalIndex - $.originalIndex).map((b) => b.item);
1956
1956
  }
1957
1957
  function mt(s) {
1958
1958
  if (s.length <= 1)
1959
1959
  return s;
1960
1960
  const m = /* @__PURE__ */ new Map(), d = [];
1961
- for (const C of s) {
1962
- const R = typeof C.index == "number", W = C.datasetIndex, Z = typeof W == "number" && !R, ee = typeof C.text == "string" ? C.text.trim() : "";
1961
+ for (const b of s) {
1962
+ const $ = typeof b.index == "number", W = b.datasetIndex, Z = typeof W == "number" && !$, ee = typeof b.text == "string" ? b.text.trim() : "";
1963
1963
  if (!Z || !ee) {
1964
- d.push(C);
1964
+ d.push(b);
1965
1965
  continue;
1966
1966
  }
1967
1967
  const U = ee.toLowerCase(), ie = m.get(U);
1968
1968
  if (ie == null) {
1969
1969
  d.push({
1970
- ...C,
1970
+ ...b,
1971
1971
  datasetIndexes: [W],
1972
- datasetKeys: typeof C.datasetKey == "string" && C.datasetKey.trim().length > 0 ? [C.datasetKey] : []
1972
+ datasetKeys: typeof b.datasetKey == "string" && b.datasetKey.trim().length > 0 ? [b.datasetKey] : []
1973
1973
  }), m.set(U, d.length - 1);
1974
1974
  continue;
1975
1975
  }
@@ -1983,11 +1983,11 @@ const xr = {
1983
1983
  const ne = new Set(
1984
1984
  Array.isArray(ge.datasetKeys) ? ge.datasetKeys : typeof ge.datasetKey == "string" && ge.datasetKey.trim().length > 0 ? [ge.datasetKey] : []
1985
1985
  );
1986
- typeof C.datasetKey == "string" && C.datasetKey.trim().length > 0 && ne.add(C.datasetKey), d[ie] = {
1986
+ typeof b.datasetKey == "string" && b.datasetKey.trim().length > 0 && ne.add(b.datasetKey), d[ie] = {
1987
1987
  ...ge,
1988
1988
  datasetIndexes: Array.from(te).sort((pe, ye) => pe - ye),
1989
1989
  datasetKeys: Array.from(ne),
1990
- hidden: ge.hidden === !0 && C.hidden === !0
1990
+ hidden: ge.hidden === !0 && b.hidden === !0
1991
1991
  };
1992
1992
  }
1993
1993
  return d;
@@ -2003,26 +2003,26 @@ const xr = {
2003
2003
  const d = tt(m == null ? void 0 : m.legendItems);
2004
2004
  if (d.length > 0)
2005
2005
  return d;
2006
- const C = (ie = (U = s == null ? void 0 : s.options) == null ? void 0 : U.plugins) == null ? void 0 : ie.legend, R = C == null ? void 0 : C.labels, W = R == null ? void 0 : R.generateLabels, Z = (pe = (ne = (te = (ge = bn.defaults) == null ? void 0 : ge.plugins) == null ? void 0 : te.legend) == null ? void 0 : ne.labels) == null ? void 0 : pe.generateLabels;
2006
+ const b = (ie = (U = s == null ? void 0 : s.options) == null ? void 0 : U.plugins) == null ? void 0 : ie.legend, $ = b == null ? void 0 : b.labels, W = $ == null ? void 0 : $.generateLabels, Z = (pe = (ne = (te = (ge = bn.defaults) == null ? void 0 : ge.plugins) == null ? void 0 : te.legend) == null ? void 0 : ne.labels) == null ? void 0 : pe.generateLabels;
2007
2007
  let ee = tt(
2008
2008
  typeof W == "function" ? W(s) : []
2009
2009
  );
2010
- return ee.length === 0 && typeof Z == "function" && (ee = tt(Z(s))), typeof (R == null ? void 0 : R.filter) == "function" && (ee = ee.filter((ye) => R.filter(ye, s.data))), typeof (R == null ? void 0 : R.sort) == "function" && (ee = [...ee].sort((ye, Me) => R.sort(ye, Me, s.data))), (C == null ? void 0 : C.reverse) === !0 && (ee = [...ee].reverse()), ee;
2010
+ return ee.length === 0 && typeof Z == "function" && (ee = tt(Z(s))), typeof ($ == null ? void 0 : $.filter) == "function" && (ee = ee.filter((ye) => $.filter(ye, s.data))), typeof ($ == null ? void 0 : $.sort) == "function" && (ee = [...ee].sort((ye, Me) => $.sort(ye, Me, s.data))), (b == null ? void 0 : b.reverse) === !0 && (ee = [...ee].reverse()), ee;
2011
2011
  }
2012
2012
  function ht(s) {
2013
2013
  var d;
2014
- return (Array.isArray((d = s == null ? void 0 : s.data) == null ? void 0 : d.datasets) ? s.data.datasets : []).map((C, R) => {
2015
- const W = Le((C == null ? void 0 : C.borderColor) ?? (C == null ? void 0 : C.backgroundColor)), Z = bt({
2016
- datasetIndex: R,
2017
- label: C == null ? void 0 : C.label
2014
+ return (Array.isArray((d = s == null ? void 0 : s.data) == null ? void 0 : d.datasets) ? s.data.datasets : []).map((b, $) => {
2015
+ const W = Le((b == null ? void 0 : b.borderColor) ?? (b == null ? void 0 : b.backgroundColor)), Z = bt({
2016
+ datasetIndex: $,
2017
+ label: b == null ? void 0 : b.label
2018
2018
  });
2019
2019
  return {
2020
- text: ot.value(C == null ? void 0 : C.label, C),
2020
+ text: ot.value(b == null ? void 0 : b.label, b),
2021
2021
  fillStyle: W,
2022
2022
  strokeStyle: W,
2023
- datasetIndex: R,
2023
+ datasetIndex: $,
2024
2024
  datasetKey: Z,
2025
- hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(Z) : typeof s.isDatasetVisible == "function" ? !s.isDatasetVisible(R) : !1
2025
+ hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(Z) : typeof s.isDatasetVisible == "function" ? !s.isDatasetVisible($) : !1
2026
2026
  };
2027
2027
  });
2028
2028
  }
@@ -2030,14 +2030,14 @@ const xr = {
2030
2030
  () => (s, m) => {
2031
2031
  const d = s == null ? "" : String(s).trim();
2032
2032
  if (d.length === 0) return d;
2033
- const C = gt.value;
2034
- return d.endsWith(` ${C}`) || d.endsWith(C) ? d : (m == null ? void 0 : m.dash) === !0 || (m == null ? void 0 : m.isCompare) === !0 ? `${d} ${C}` : d;
2033
+ const b = gt.value;
2034
+ return d.endsWith(` ${b}`) || d.endsWith(b) ? d : (m == null ? void 0 : m.dash) === !0 || (m == null ? void 0 : m.isCompare) === !0 ? `${d} ${b}` : d;
2035
2035
  }
2036
2036
  );
2037
2037
  function Ee(s, m) {
2038
2038
  if (!Array.isArray(s) || s.length === 0)
2039
2039
  return [];
2040
- const d = s, C = d[0], R = Array.isArray(C == null ? void 0 : C.labels) ? C.labels : [], W = Array.isArray(m == null ? void 0 : m.metrics) ? m.metrics : [], Z = R.length > 0 ? R : W, ee = C == null ? void 0 : C.backgroundColor;
2040
+ const d = s, b = d[0], $ = Array.isArray(b == null ? void 0 : b.labels) ? b.labels : [], W = Array.isArray(m == null ? void 0 : m.metrics) ? m.metrics : [], Z = $.length > 0 ? $ : W, ee = b == null ? void 0 : b.backgroundColor;
2041
2041
  return d.length === 1 && Array.isArray(ee) && ee.length > 1 ? ee.map((U, ie) => ({
2042
2042
  text: Z[ie] == null || String(Z[ie]).trim().length === 0 ? `Series ${ie + 1}` : String(Z[ie]),
2043
2043
  fillStyle: Le(U),
@@ -2087,23 +2087,23 @@ const xr = {
2087
2087
  const d = v.value;
2088
2088
  if (!d || s.length === 0)
2089
2089
  return 0;
2090
- const C = Math.max(0, m - ro), R = window.getComputedStyle(d);
2091
- if (R.flexDirection.startsWith("column")) {
2092
- const ne = Number.parseFloat(R.rowGap || R.gap || "0") || 0, pe = Kt();
2090
+ const b = Math.max(0, m - ro), $ = window.getComputedStyle(d);
2091
+ if ($.flexDirection.startsWith("column")) {
2092
+ const ne = Number.parseFloat($.rowGap || $.gap || "0") || 0, pe = Kt();
2093
2093
  let ye = 0, Me = 0;
2094
2094
  for (let Ve = 0; Ve < s.length; Ve += 1) {
2095
2095
  const ke = s[Ve];
2096
2096
  if (!ke)
2097
2097
  continue;
2098
2098
  const lt = ye + (Me > 0 ? ne : 0) + ke.offsetHeight, Je = s.length - (Ve + 1) > 0 ? ne + pe : 0;
2099
- if (lt + Je > C)
2099
+ if (lt + Je > b)
2100
2100
  break;
2101
2101
  ye = lt, Me += 1;
2102
2102
  }
2103
2103
  return Me > 0 ? Me : 1;
2104
2104
  }
2105
2105
  const Z = ((te = s[0]) == null ? void 0 : te.offsetTop) ?? 0, ee = s.filter(
2106
- (ne) => ne.offsetTop - Z + ne.offsetHeight <= C
2106
+ (ne) => ne.offsetTop - Z + ne.offsetHeight <= b
2107
2107
  );
2108
2108
  if (ee.length === 0)
2109
2109
  return 0;
@@ -2112,7 +2112,7 @@ const xr = {
2112
2112
  const U = Ut();
2113
2113
  if (U <= 0)
2114
2114
  return Math.max(1, ee.length - 1);
2115
- const ie = Number.parseFloat(R.columnGap || R.gap || "0") || 0, ge = d.clientWidth;
2115
+ const ie = Number.parseFloat($.columnGap || $.gap || "0") || 0, ge = d.clientWidth;
2116
2116
  for (let ne = ee.length; ne > 0; ne -= 1) {
2117
2117
  const pe = ee.slice(0, ne), ye = pe[pe.length - 1];
2118
2118
  if (!ye)
@@ -2125,21 +2125,21 @@ const xr = {
2125
2125
  function Tt() {
2126
2126
  const s = v.value;
2127
2127
  if (!s) {
2128
- f.value = !1, B.value = 0, c.value = 0, p(), N();
2128
+ f.value = !1, P.value = 0, c.value = 0, p(), z();
2129
2129
  return;
2130
2130
  }
2131
2131
  const m = Array.from(
2132
2132
  s.querySelectorAll(".chart-legend-item[data-legend-data='true']")
2133
2133
  );
2134
2134
  if (m.length === 0) {
2135
- f.value = !1, B.value = 0, c.value = 0, p(), N();
2135
+ f.value = !1, P.value = 0, c.value = 0, p(), z();
2136
2136
  return;
2137
2137
  }
2138
- const d = Array.from(new Set(m.map((ne) => ne.offsetTop))).sort((ne, pe) => ne - pe), C = !u.value && r.value.length > m.length, R = !u.value && !C, W = R || B.value <= 0 ? Ce() : B.value;
2139
- if ((R || B.value <= 0) && (B.value = W), C) {
2138
+ const d = Array.from(new Set(m.map((ne) => ne.offsetTop))).sort((ne, pe) => ne - pe), b = !u.value && r.value.length > m.length, $ = !u.value && !b, W = $ || P.value <= 0 ? Ce() : P.value;
2139
+ if (($ || P.value <= 0) && (P.value = W), b) {
2140
2140
  const ne = Ce();
2141
- if (ne > 0 && (B.value = ne), window.getComputedStyle(s).flexDirection.startsWith("column") && c.value < r.value.length) {
2142
- const Me = Math.max(0, B.value - ro), Ve = s.scrollHeight;
2141
+ if (ne > 0 && (P.value = ne), window.getComputedStyle(s).flexDirection.startsWith("column") && c.value < r.value.length) {
2142
+ const Me = Math.max(0, P.value - ro), Ve = s.scrollHeight;
2143
2143
  if (Ve + 1 < Me) {
2144
2144
  const ke = m.map((De) => De.offsetHeight).filter((De) => Number.isFinite(De) && De > 0), lt = ke.length > 0 ? ke.reduce((De, Je) => De + Je, 0) / ke.length : 0;
2145
2145
  if (lt > 0) {
@@ -2154,25 +2154,25 @@ const xr = {
2154
2154
  }
2155
2155
  }
2156
2156
  }
2157
- f.value = !0, p(), N();
2157
+ f.value = !0, p(), z();
2158
2158
  return;
2159
2159
  }
2160
2160
  const Z = d[0] ?? 0, ee = d[d.length - 1] ?? Z, U = m.filter((ne) => ne.offsetTop === ee), ie = Math.max(...U.map((ne) => ne.offsetHeight), 0), ge = Math.max(0, ee - Z + ie), te = Xt(m, W);
2161
- (R || c.value <= 0) && (c.value = Math.max(0, te)), f.value = ge > W, p(), N();
2161
+ ($ || c.value <= 0) && (c.value = Math.max(0, te)), f.value = ge > W, p(), z();
2162
2162
  }
2163
2163
  function Oe() {
2164
2164
  co(() => {
2165
2165
  Tt(), window.requestAnimationFrame(() => {
2166
- Tt(), M(), N();
2166
+ Tt(), M(), z();
2167
2167
  });
2168
2168
  });
2169
2169
  }
2170
2170
  const Lt = g(() => {
2171
2171
  const s = {
2172
- "--legend-text-color": q.value,
2172
+ "--legend-text-color": E.value,
2173
2173
  "--legend-font-size": `${Q.value}px`
2174
2174
  }, m = Ce();
2175
- if (b.value) {
2175
+ if (C.value) {
2176
2176
  const d = Ne();
2177
2177
  return {
2178
2178
  ...s,
@@ -2191,9 +2191,9 @@ const xr = {
2191
2191
  }), qe = g(() => {
2192
2192
  if (u.value || !f.value)
2193
2193
  return r.value;
2194
- const s = Math.max(1, c.value), m = b.value ? s : Math.max(0, s - 1);
2194
+ const s = Math.max(1, c.value), m = C.value ? s : Math.max(0, s - 1);
2195
2195
  return r.value.slice(0, Math.min(m, r.value.length));
2196
- }), rt = g(() => z.value ? f.value && u.value ? {
2196
+ }), rt = g(() => V.value ? f.value && u.value ? {
2197
2197
  flex: "1 1 auto",
2198
2198
  minHeight: "0",
2199
2199
  overflowY: "auto"
@@ -2201,12 +2201,12 @@ const xr = {
2201
2201
  overflow: "hidden"
2202
2202
  } : {} : {});
2203
2203
  function Dt() {
2204
- var C;
2205
- if (!z.value) {
2206
- r.value = [], c.value = 0, u.value = !1, f.value = !1, B.value = 0, j({ height: 0, width: 0 });
2204
+ var b;
2205
+ if (!V.value) {
2206
+ r.value = [], c.value = 0, u.value = !1, f.value = !1, P.value = 0, j({ height: 0, width: 0 });
2207
2207
  return;
2208
2208
  }
2209
- c.value = 0, f.value = !1, B.value = 0;
2209
+ c.value = 0, f.value = !1, P.value = 0;
2210
2210
  const s = h();
2211
2211
  if (!s) {
2212
2212
  r.value = nt(
@@ -2219,7 +2219,7 @@ const xr = {
2219
2219
  } catch {
2220
2220
  r.value = [];
2221
2221
  }
2222
- const m = Array.isArray((C = s == null ? void 0 : s.data) == null ? void 0 : C.datasets) ? s.data.datasets : [];
2222
+ const m = Array.isArray((b = s == null ? void 0 : s.data) == null ? void 0 : b.datasets) ? s.data.datasets : [];
2223
2223
  r.value.length === 0 && (r.value = Ee(n.legendUpdateKey, n.chartRef)), r.value.length === 0 && (r.value = ht(s)), r.value = mt(nt(r.value));
2224
2224
  const d = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
2225
2225
  r.value.length === 0 && !(m.length > 0 || d) && oe(0), Oe();
@@ -2244,10 +2244,10 @@ const xr = {
2244
2244
  );
2245
2245
  }
2246
2246
  function ln(s, m, d) {
2247
- var R;
2247
+ var $;
2248
2248
  typeof s.setDatasetVisibility == "function" ? s.setDatasetVisibility(m, d) : d && typeof s.show == "function" ? s.show(m) : !d && typeof s.hide == "function" && s.hide(m);
2249
- const C = Array.isArray((R = s == null ? void 0 : s.data) == null ? void 0 : R.datasets) ? s.data.datasets[m] : null;
2250
- C && typeof C == "object" && (C.hidden = !d);
2249
+ const b = Array.isArray(($ = s == null ? void 0 : s.data) == null ? void 0 : $.datasets) ? s.data.datasets[m] : null;
2250
+ b && typeof b == "object" && (b.hidden = !d);
2251
2251
  }
2252
2252
  function sn(s, m) {
2253
2253
  var Z;
@@ -2255,27 +2255,27 @@ const xr = {
2255
2255
  s.toggleDataVisibility(m);
2256
2256
  return;
2257
2257
  }
2258
- const d = Array.isArray((Z = s == null ? void 0 : s.data) == null ? void 0 : Z.datasets) ? s.data.datasets[0] : null, C = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
2259
- if (m < 0 || m >= C.length)
2258
+ const d = Array.isArray((Z = s == null ? void 0 : s.data) == null ? void 0 : Z.datasets) ? s.data.datasets[0] : null, b = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
2259
+ if (m < 0 || m >= b.length)
2260
2260
  return;
2261
- const R = typeof s.getDatasetMeta == "function" ? s.getDatasetMeta(0) : null, W = Array.isArray(R == null ? void 0 : R.data) ? R.data[m] : null;
2261
+ const $ = typeof s.getDatasetMeta == "function" ? s.getDatasetMeta(0) : null, W = Array.isArray($ == null ? void 0 : $.data) ? $.data[m] : null;
2262
2262
  W && typeof W.hidden == "boolean" && (W.hidden = !W.hidden);
2263
2263
  }
2264
2264
  function Et(s = 0) {
2265
2265
  Dt();
2266
2266
  const m = h(), d = r.value.length > 0;
2267
2267
  if (m || d || s >= zr) {
2268
- L();
2268
+ T();
2269
2269
  return;
2270
2270
  }
2271
- L(), T = window.setTimeout(() => {
2271
+ T(), k = window.setTimeout(() => {
2272
2272
  Et(s + 1);
2273
2273
  }, Vr);
2274
2274
  }
2275
2275
  function Ue(s, m) {
2276
2276
  var ge;
2277
- const d = h(), C = String(((ge = d == null ? void 0 : d.config) == null ? void 0 : ge.type) ?? ""), R = C === "pie" || C === "doughnut" || C === "polarArea", W = typeof s.index == "number" ? s.index : typeof m == "number" ? m : null;
2278
- if ((R || typeof s.index == "number") && typeof W == "number") {
2277
+ const d = h(), b = String(((ge = d == null ? void 0 : d.config) == null ? void 0 : ge.type) ?? ""), $ = b === "pie" || b === "doughnut" || b === "polarArea", W = typeof s.index == "number" ? s.index : typeof m == "number" ? m : null;
2278
+ if (($ || typeof s.index == "number") && typeof W == "number") {
2279
2279
  if (Array.isArray(n.hiddenDataPointIndexes)) {
2280
2280
  o("toggleDataPointVisibility", { itemIndex: W });
2281
2281
  return;
@@ -2336,7 +2336,7 @@ const xr = {
2336
2336
  u.value = !1, v.value && (v.value.scrollTop = 0), Oe();
2337
2337
  }
2338
2338
  return Nt(() => {
2339
- Et(), window.addEventListener("mousemove", J), window.addEventListener("mouseup", E);
2339
+ Et(), window.addEventListener("mousemove", J), window.addEventListener("mouseup", G);
2340
2340
  }), we(
2341
2341
  () => [
2342
2342
  n.enabled,
@@ -2349,68 +2349,68 @@ const xr = {
2349
2349
  Dt();
2350
2350
  }
2351
2351
  ), uo(() => {
2352
- w.value = !1, L(), j({ height: 0, width: 0 }), window.removeEventListener("mousemove", J), window.removeEventListener("mouseup", E);
2353
- }), (s, m) => z.value ? (X(), le("div", {
2352
+ B.value = !1, T(), j({ height: 0, width: 0 }), window.removeEventListener("mousemove", J), window.removeEventListener("mouseup", G);
2353
+ }), (s, m) => V.value ? (X(), le("div", {
2354
2354
  key: 0,
2355
2355
  ref_key: "legendPanelRef",
2356
2356
  ref: O,
2357
2357
  class: Se(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
2358
- "self-stretch h-full pt-2": b.value,
2359
- "mb-2": !b.value && s.position === "top",
2360
- "mt-2": !b.value && s.position === "bottom"
2358
+ "self-stretch h-full pt-2": C.value,
2359
+ "mb-2": !C.value && s.position === "top",
2360
+ "mt-2": !C.value && s.position === "bottom"
2361
2361
  }]),
2362
2362
  style: Pe(Lt.value)
2363
2363
  }, [
2364
- G("div", {
2364
+ q("div", {
2365
2365
  ref_key: "legendScrollShellRef",
2366
2366
  ref: x,
2367
2367
  class: "relative z-[2] flex flex-1 min-h-0 flex-col overflow-hidden"
2368
2368
  }, [
2369
- G("div", {
2369
+ q("div", {
2370
2370
  ref_key: "legendToggleMeasureRef",
2371
2371
  ref: y,
2372
2372
  class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
2373
2373
  }, [
2374
- G("button", Ar, Te(i(l)("report.widget.legend.viewMore")), 1)
2374
+ q("button", Ar, Te(i(l)("report.widget.legend.viewMore")), 1)
2375
2375
  ], 512),
2376
- G("ul", {
2376
+ q("ul", {
2377
2377
  ref_key: "legendListRef",
2378
2378
  ref: v,
2379
2379
  class: Se(["chart-legend-list m-0 flex list-none p-0", [
2380
- b.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"
2380
+ C.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"
2381
2381
  ]]),
2382
2382
  style: Pe(rt.value),
2383
- onScroll: F
2383
+ onScroll: N
2384
2384
  }, [
2385
- (X(!0), le(Fe, null, ct(qe.value, (d, C) => (X(), le("li", {
2386
- key: Ge(d, C),
2385
+ (X(!0), le(Fe, null, ct(qe.value, (d, b) => (X(), le("li", {
2386
+ key: Ge(d, b),
2387
2387
  class: Se(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2388
2388
  "opacity-45": d.hidden
2389
2389
  }]),
2390
2390
  "data-legend-data": "true"
2391
2391
  }, [
2392
- G("button", {
2392
+ q("button", {
2393
2393
  type: "button",
2394
- class: Se(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": b.value }]),
2394
+ class: Se(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": C.value }]),
2395
2395
  "aria-pressed": d.hidden === !0 ? "false" : "true",
2396
- onClick: en((R) => Ue(d, C), ["stop"])
2396
+ onClick: en(($) => Ue(d, b), ["stop"])
2397
2397
  }, [
2398
2398
  n.usePointStyle !== !1 ? (X(), le("span", {
2399
2399
  key: 0,
2400
2400
  class: "h-5 w-5 shrink-0 rounded-full",
2401
- style: Pe({ backgroundColor: $e(d, C) })
2401
+ style: Pe({ backgroundColor: $e(d, b) })
2402
2402
  }, null, 4)) : (X(), le("span", {
2403
2403
  key: 1,
2404
2404
  class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
2405
2405
  style: Pe({
2406
- backgroundColor: $e(d, C),
2406
+ backgroundColor: $e(d, b),
2407
2407
  borderColor: "#c7c7cc"
2408
2408
  })
2409
2409
  }, null, 4)),
2410
- G("span", {
2410
+ q("span", {
2411
2411
  class: Se(["chart-legend-text leading-[1.4]", {
2412
- "max-w-[120px] whitespace-nowrap overflow-hidden text-left": b.value,
2413
- "whitespace-nowrap overflow-hidden": !b.value,
2412
+ "max-w-[120px] whitespace-nowrap overflow-hidden text-left": C.value,
2413
+ "whitespace-nowrap overflow-hidden": !C.value,
2414
2414
  "line-through": d.hidden
2415
2415
  }]),
2416
2416
  title: d.text ?? ""
@@ -2418,7 +2418,7 @@ const xr = {
2418
2418
  ], 10, Fr)
2419
2419
  ], 2))), 128)),
2420
2420
  f.value ? (X(), le("li", Nr, [
2421
- G("button", {
2421
+ q("button", {
2422
2422
  type: "button",
2423
2423
  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",
2424
2424
  style: { fontSize: "var(--legend-font-size)" },
@@ -2426,12 +2426,12 @@ const xr = {
2426
2426
  }, Te(u.value ? i(l)("report.widget.legend.viewLess") : i(l)("report.widget.legend.viewMore")), 1)
2427
2427
  ])) : he("", !0)
2428
2428
  ], 38),
2429
- I.value ? (X(), le("div", {
2429
+ D.value ? (X(), le("div", {
2430
2430
  key: 0,
2431
2431
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2432
2432
  onMousedown: K
2433
2433
  }, [
2434
- G("div", {
2434
+ q("div", {
2435
2435
  class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
2436
2436
  style: Pe(A.value),
2437
2437
  onMousedown: en(H, ["stop"])
@@ -2442,7 +2442,7 @@ const xr = {
2442
2442
  }
2443
2443
  }), Re = /* @__PURE__ */ go(Hr, [["__scopeId", "data-v-706fa016"]]);
2444
2444
  function Wr(e, t) {
2445
- const { t: n } = dt(), { breakpoints: o } = $t(), l = P(!1), a = P(null), r = P(null);
2445
+ const { t: n } = dt(), { breakpoints: o } = $t(), l = I(!1), a = I(null), r = I(null);
2446
2446
  function c() {
2447
2447
  return Po(e.value) ?? r.value;
2448
2448
  }
@@ -2452,7 +2452,7 @@ function Wr(e, t) {
2452
2452
  function f(v, y) {
2453
2453
  a.value = v, r.value = y ?? c(), l.value = !0;
2454
2454
  }
2455
- function B(v) {
2455
+ function P(v) {
2456
2456
  on(c(), v.focusTarget);
2457
2457
  }
2458
2458
  function O() {
@@ -2468,12 +2468,12 @@ function Wr(e, t) {
2468
2468
  tooltipDetailsPayload: a,
2469
2469
  tooltipOptions: x,
2470
2470
  handleTooltipDetailsSheetVisibility: u,
2471
- handleTooltipDetailsHover: B,
2471
+ handleTooltipDetailsHover: P,
2472
2472
  handleTooltipDetailsLeave: O
2473
2473
  };
2474
2474
  }
2475
2475
  function Or(e) {
2476
- const t = P([]), n = g(() => new Set(t.value));
2476
+ const t = I([]), n = g(() => new Set(t.value));
2477
2477
  function o(r, c) {
2478
2478
  return bt({
2479
2479
  datasetIndex: c,
@@ -2495,7 +2495,7 @@ function Or(e) {
2495
2495
  e,
2496
2496
  (r) => {
2497
2497
  const c = new Set(
2498
- r.map((f, B) => o(f, B))
2498
+ r.map((f, P) => o(f, P))
2499
2499
  ), u = t.value.filter((f) => c.has(f));
2500
2500
  u.length !== t.value.length && (t.value = u);
2501
2501
  },
@@ -2516,18 +2516,18 @@ function Ot({ chartRef: e, model: t, baseDatasets: n }) {
2516
2516
  handleTooltipDetailsLeave: f
2517
2517
  } = Wr(e, {
2518
2518
  maxTooltipItems: o
2519
- }), { datalabels: B, xCfg: O, yCfg: x, isTransposed: v, legend: y } = Ao(t.value), S = g(
2519
+ }), { datalabels: P, xCfg: O, yCfg: x, isTransposed: v, legend: y } = Ao(t.value), _ = g(
2520
2520
  () => Dn(t.value.isTransposed === !0, r.value)
2521
- ), D = g(() => {
2522
- const I = y.value.position;
2523
- return !I || I === "top" || I === "bottom" || I === "left" || I === "right";
2524
- }), k = g(() => y.value.position ?? "top"), w = g(
2525
- () => k.value === "left" || k.value === "right"
2526
- ), $ = g(
2527
- () => k.value === "top" || k.value === "left"
2528
- ), { hiddenDatasetKeys: V, isDatasetHidden: z, toggleDatasetVisibility: b } = Or(n), T = g(() => n.value.map((I, A) => ({
2529
- ...I,
2530
- hidden: z(I, A)
2521
+ ), L = g(() => {
2522
+ const D = y.value.position;
2523
+ return !D || D === "top" || D === "bottom" || D === "left" || D === "right";
2524
+ }), S = g(() => y.value.position ?? "top"), B = g(
2525
+ () => S.value === "left" || S.value === "right"
2526
+ ), F = g(
2527
+ () => S.value === "top" || S.value === "left"
2528
+ ), { hiddenDatasetKeys: R, isDatasetHidden: V, toggleDatasetVisibility: C } = Or(n), k = g(() => n.value.map((D, A) => ({
2529
+ ...D,
2530
+ hidden: V(D, A)
2531
2531
  })));
2532
2532
  return {
2533
2533
  isTooltipDetailsSheetOpen: l,
@@ -2535,19 +2535,19 @@ function Ot({ chartRef: e, model: t, baseDatasets: n }) {
2535
2535
  handleTooltipDetailsSheetVisibility: c,
2536
2536
  handleTooltipDetailsHover: u,
2537
2537
  handleTooltipDetailsLeave: f,
2538
- comparisonTooltip: S,
2539
- datalabels: B,
2538
+ comparisonTooltip: _,
2539
+ datalabels: P,
2540
2540
  xCfg: O,
2541
2541
  yCfg: x,
2542
2542
  isTransposed: v,
2543
2543
  legend: y,
2544
- useCustomLegend: D,
2545
- legendPosition: k,
2546
- isLegendSide: w,
2547
- isLegendBeforeChart: $,
2548
- hiddenDatasetKeys: V,
2549
- toggleDatasetVisibility: b,
2550
- datasets: T
2544
+ useCustomLegend: L,
2545
+ legendPosition: S,
2546
+ isLegendSide: B,
2547
+ isLegendBeforeChart: F,
2548
+ hiddenDatasetKeys: R,
2549
+ toggleDatasetVisibility: C,
2550
+ datasets: k
2551
2551
  };
2552
2552
  }
2553
2553
  const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /* @__PURE__ */ Ae({
@@ -2560,7 +2560,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2560
2560
  }),
2561
2561
  emits: ["update:modelValue"],
2562
2562
  setup(e) {
2563
- const t = We(e, "modelValue"), n = P(null), o = g(() => {
2563
+ const t = We(e, "modelValue"), n = I(null), o = g(() => {
2564
2564
  var p;
2565
2565
  return ((p = t.value.data) == null ? void 0 : p.datasets) ?? [];
2566
2566
  }), l = g(() => {
@@ -2569,7 +2569,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2569
2569
  }), a = g(() => l.value.length === 1 && o.value.length > 1 && o.value.every((p) => p.values.length === 1 && p.isCompare !== !0)), r = g(() => a.value ? o.value.map((p) => p.name) : l.value), c = g(() => ({
2570
2570
  categories: r.value
2571
2571
  })), u = g(() => l.value.length === 1 && o.value.some((p) => p.isCompare === !0)), f = Ht("bar");
2572
- function B(p) {
2572
+ function P(p) {
2573
2573
  return {
2574
2574
  label: `__comparison_gap__${p}`,
2575
2575
  data: [0],
@@ -2582,16 +2582,16 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2582
2582
  }
2583
2583
  const O = g(() => o.value.length > 0 ? [
2584
2584
  ...o.value.map((p, M) => {
2585
- const N = Vt({
2585
+ const z = Vt({
2586
2586
  datasets: o.value,
2587
2587
  datasetIndex: M
2588
- }), F = Be({
2589
- datasetIndex: N,
2588
+ }), N = Be({
2589
+ datasetIndex: z,
2590
2590
  isCompare: !1,
2591
2591
  metricCount: t.value.metricCount,
2592
2592
  mode: t.value.chartColorBinding
2593
2593
  }), K = Be({
2594
- datasetIndex: N,
2594
+ datasetIndex: z,
2595
2595
  isCompare: !1,
2596
2596
  metricCount: t.value.metricCount,
2597
2597
  mode: be.metric
@@ -2600,8 +2600,8 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2600
2600
  a.value && (H = o.value.map(
2601
2601
  (me, ue) => ue === M ? p.values[0] : NaN
2602
2602
  ));
2603
- const J = t.value.chartColorBinding === be.breakdown, E = _t({
2604
- fallbackIndex: N,
2603
+ const J = t.value.chartColorBinding === be.breakdown, G = _t({
2604
+ fallbackIndex: z,
2605
2605
  metricCount: t.value.metricCount
2606
2606
  }), ae = H.map((me) => me === null ? NaN : Number(me));
2607
2607
  return {
@@ -2611,7 +2611,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2611
2611
  minBarLength: void 0,
2612
2612
  barPercentage: u.value ? gn : void 0,
2613
2613
  backgroundColor: J ? kt({
2614
- breakdownIndex: E,
2614
+ breakdownIndex: G,
2615
2615
  metricIndex: K,
2616
2616
  metricCount: t.value.metricCount,
2617
2617
  isCompare: p.isCompare,
@@ -2619,7 +2619,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2619
2619
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
2620
2620
  customColors: t.value.chartColors
2621
2621
  }) : Ye({
2622
- index: F,
2622
+ index: N,
2623
2623
  isCompare: p.isCompare,
2624
2624
  customColors: t.value.chartColors
2625
2625
  })
@@ -2629,18 +2629,18 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2629
2629
  isTooltipDetailsSheetOpen: x,
2630
2630
  tooltipDetailsPayload: v,
2631
2631
  handleTooltipDetailsSheetVisibility: y,
2632
- handleTooltipDetailsHover: S,
2633
- handleTooltipDetailsLeave: D,
2634
- comparisonTooltip: k,
2635
- datalabels: w,
2636
- xCfg: $,
2637
- yCfg: V,
2638
- isTransposed: z,
2639
- legend: b,
2640
- useCustomLegend: T,
2641
- legendPosition: I,
2632
+ handleTooltipDetailsHover: _,
2633
+ handleTooltipDetailsLeave: L,
2634
+ comparisonTooltip: S,
2635
+ datalabels: B,
2636
+ xCfg: F,
2637
+ yCfg: R,
2638
+ isTransposed: V,
2639
+ legend: C,
2640
+ useCustomLegend: k,
2641
+ legendPosition: D,
2642
2642
  isLegendSide: A,
2643
- isLegendBeforeChart: q,
2643
+ isLegendBeforeChart: E,
2644
2644
  hiddenDatasetKeys: Q,
2645
2645
  toggleDatasetVisibility: oe,
2646
2646
  datasets: j
@@ -2648,45 +2648,45 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2648
2648
  chartRef: n,
2649
2649
  model: t,
2650
2650
  baseDatasets: O
2651
- }), L = g(() => {
2651
+ }), T = g(() => {
2652
2652
  if (!u.value)
2653
2653
  return j.value;
2654
2654
  const p = [];
2655
- return j.value.forEach((M, N) => {
2655
+ return j.value.forEach((M, z) => {
2656
2656
  p.push({
2657
2657
  ...M,
2658
2658
  barPercentage: gn
2659
2659
  });
2660
- const F = j.value[N + 1];
2661
- M.dash === !0 && F && p.push(B(N));
2660
+ const N = j.value[z + 1];
2661
+ M.dash === !0 && N && p.push(P(z));
2662
2662
  }), p;
2663
2663
  }), h = g(() => ({
2664
2664
  display: !1,
2665
2665
  labels: {
2666
2666
  filter: (p, M) => {
2667
- var N, F;
2668
- return !((F = (N = M.datasets) == null ? void 0 : N[p.datasetIndex ?? -1]) != null && F.isSpacer);
2667
+ var z, N;
2668
+ return !((N = (z = M.datasets) == null ? void 0 : z[p.datasetIndex ?? -1]) != null && N.isSpacer);
2669
2669
  }
2670
2670
  }
2671
2671
  }));
2672
2672
  return (p, M) => {
2673
- var F, K, H, J, E, ae;
2674
- const N = ce("FmBarChart");
2673
+ var N, K, H, J, G, ae;
2674
+ const z = ce("FmBarChart");
2675
2675
  return X(), le(Fe, null, [
2676
- G("div", Ur, [
2676
+ q("div", Ur, [
2677
2677
  et(p.$slots, "menu"),
2678
- G("div", {
2678
+ q("div", {
2679
2679
  class: Se(["chart-layout", {
2680
- "chart-layout--side": i(T) && (i(b).display ?? !1) && i(A)
2680
+ "chart-layout--side": i(k) && (i(C).display ?? !1) && i(A)
2681
2681
  }])
2682
2682
  }, [
2683
- i(T) && (i(b).display ?? !1) && i(q) ? (X(), de(Re, {
2683
+ i(k) && (i(C).display ?? !1) && i(E) ? (X(), de(Re, {
2684
2684
  key: 0,
2685
2685
  "chart-ref": n.value,
2686
- enabled: i(b).display ?? !1,
2687
- position: i(I),
2688
- "text-color": (F = i(b).labels) == null ? void 0 : F.color,
2689
- "font-size": (H = (K = i(b).labels) == null ? void 0 : K.font) == null ? void 0 : H.size,
2686
+ enabled: i(C).display ?? !1,
2687
+ position: i(D),
2688
+ "text-color": (N = i(C).labels) == null ? void 0 : N.color,
2689
+ "font-size": (H = (K = i(C).labels) == null ? void 0 : K.font) == null ? void 0 : H.size,
2690
2690
  "legend-update-key": i(j),
2691
2691
  "use-point-style": t.value.usePointStyle ?? !0,
2692
2692
  "chart-color-binding": t.value.chartColorBinding,
@@ -2697,28 +2697,28 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2697
2697
  "hidden-dataset-keys": i(Q),
2698
2698
  onToggleDatasetVisibility: i(oe)
2699
2699
  }, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
2700
- fe(N, {
2700
+ fe(z, {
2701
2701
  ref_key: "chartRef",
2702
2702
  ref: n,
2703
2703
  class: "bar-chart",
2704
- datasets: L.value,
2704
+ datasets: T.value,
2705
2705
  "x-axis": c.value,
2706
- "x-cfg": i($),
2707
- "y-cfg": i(V),
2708
- transpose: i(z),
2706
+ "x-cfg": i(F),
2707
+ "y-cfg": i(R),
2708
+ transpose: i(V),
2709
2709
  legend: h.value,
2710
- tooltip: i(k),
2711
- datalabels: i(w),
2710
+ tooltip: i(S),
2711
+ datalabels: i(B),
2712
2712
  plugins: [i(f)],
2713
2713
  "maintain-aspect-ratio": !1
2714
2714
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
2715
- i(T) && (i(b).display ?? !1) && !i(q) ? (X(), de(Re, {
2715
+ i(k) && (i(C).display ?? !1) && !i(E) ? (X(), de(Re, {
2716
2716
  key: 1,
2717
2717
  "chart-ref": n.value,
2718
- enabled: i(b).display ?? !1,
2719
- position: i(I),
2720
- "text-color": (J = i(b).labels) == null ? void 0 : J.color,
2721
- "font-size": (ae = (E = i(b).labels) == null ? void 0 : E.font) == null ? void 0 : ae.size,
2718
+ enabled: i(C).display ?? !1,
2719
+ position: i(D),
2720
+ "text-color": (J = i(C).labels) == null ? void 0 : J.color,
2721
+ "font-size": (ae = (G = i(C).labels) == null ? void 0 : G.font) == null ? void 0 : ae.size,
2722
2722
  "legend-update-key": i(j),
2723
2723
  "use-point-style": t.value.usePointStyle ?? !0,
2724
2724
  "chart-color-binding": t.value.chartColorBinding,
@@ -2735,8 +2735,8 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2735
2735
  "model-value": i(x),
2736
2736
  "details-payload": i(v),
2737
2737
  "onUpdate:modelValue": i(y),
2738
- onValueHover: i(S),
2739
- onValueLeave: i(D)
2738
+ onValueHover: i(_),
2739
+ onValueLeave: i(L)
2740
2740
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
2741
2741
  ], 64);
2742
2742
  };
@@ -2751,75 +2751,75 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2751
2751
  }),
2752
2752
  emits: ["update:modelValue"],
2753
2753
  setup(e) {
2754
- const t = We(e, "modelValue"), { breakpoints: n } = $t(), o = P(null), l = P([]), { datalabels: a, legend: r } = Ao(t.value), c = g(() => {
2755
- const z = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((b) => b.name) : [];
2756
- return z.length > 0 ? z : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((b) => String(b)) : [];
2754
+ const t = We(e, "modelValue"), { breakpoints: n } = $t(), o = I(null), l = I([]), { datalabels: a, legend: r } = Ao(t.value), c = g(() => {
2755
+ const V = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((C) => C.name) : [];
2756
+ return V.length > 0 ? V : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((C) => String(C)) : [];
2757
2757
  }), u = g(() => {
2758
- let z = [];
2759
- return Array.isArray(t.value.data.datasets) && t.value.data.datasets.length > 0 && (z = [
2758
+ let V = [];
2759
+ return Array.isArray(t.value.data.datasets) && t.value.data.datasets.length > 0 && (V = [
2760
2760
  {
2761
2761
  label: c.value[0] ?? (Array.isArray(t.value.data.metrics) && t.value.data.metrics.length > 0 ? String(t.value.data.metrics[0]) : "Series"),
2762
2762
  labels: c.value,
2763
2763
  data: t.value.data.datasets.map(
2764
- (T, I) => l.value.includes(I) ? null : T.value
2764
+ (k, D) => l.value.includes(D) ? null : k.value
2765
2765
  ),
2766
2766
  backgroundColor: t.value.data.datasets.map(
2767
- (T, I) => Ye({ index: I, customColors: t.value.chartColors })
2767
+ (k, D) => Ye({ index: D, customColors: t.value.chartColors })
2768
2768
  )
2769
2769
  }
2770
- ]), z;
2770
+ ]), V;
2771
2771
  });
2772
2772
  we(
2773
2773
  () => t.value.data.datasets,
2774
- (z) => {
2775
- const b = new Set(
2776
- Array.isArray(z) ? z.map((T, I) => I) : []
2774
+ (V) => {
2775
+ const C = new Set(
2776
+ Array.isArray(V) ? V.map((k, D) => D) : []
2777
2777
  );
2778
2778
  l.value = l.value.filter(
2779
- (T) => b.has(T)
2779
+ (k) => C.has(k)
2780
2780
  );
2781
2781
  },
2782
2782
  { deep: !0 }
2783
2783
  );
2784
- const f = g(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : n.value.lg ? 12 : 8), B = g(() => {
2785
- const z = r.value.position;
2786
- return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
2787
- }), O = g(() => r.value.display !== !1), x = g(() => B.value && O.value), v = g(() => r.value.position ?? "top"), y = g(
2784
+ const f = g(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : n.value.lg ? 12 : 8), P = g(() => {
2785
+ const V = r.value.position;
2786
+ return !V || V === "top" || V === "bottom" || V === "left" || V === "right";
2787
+ }), O = g(() => r.value.display !== !1), x = g(() => P.value && O.value), v = g(() => r.value.position ?? "top"), y = g(
2788
2788
  () => v.value === "left" || v.value === "right"
2789
- ), S = g(
2789
+ ), _ = g(
2790
2790
  () => v.value === "top" || v.value === "left"
2791
- ), D = g(() => {
2792
- var b;
2793
- const z = (b = r.value.labels) == null ? void 0 : b.color;
2794
- return typeof z == "string" && z.trim().length > 0 ? z : t.value.legendColor ?? "#6b6b6b";
2795
- }), k = g(() => f.value), w = g(() => ({
2791
+ ), L = g(() => {
2792
+ var C;
2793
+ const V = (C = r.value.labels) == null ? void 0 : C.color;
2794
+ return typeof V == "string" && V.trim().length > 0 ? V : t.value.legendColor ?? "#6b6b6b";
2795
+ }), S = g(() => f.value), B = g(() => ({
2796
2796
  display: !1
2797
- })), $ = _a();
2798
- function V({ itemIndex: z }) {
2799
- if (l.value.includes(z)) {
2797
+ })), F = _a();
2798
+ function R({ itemIndex: V }) {
2799
+ if (l.value.includes(V)) {
2800
2800
  l.value = l.value.filter(
2801
- (b) => b !== z
2801
+ (C) => C !== V
2802
2802
  );
2803
2803
  return;
2804
2804
  }
2805
- l.value = [...l.value, z];
2805
+ l.value = [...l.value, V];
2806
2806
  }
2807
- return (z, b) => {
2808
- const T = ce("FmPieChart");
2807
+ return (V, C) => {
2808
+ const k = ce("FmPieChart");
2809
2809
  return X(), le("div", Xr, [
2810
- et(z.$slots, "menu"),
2811
- G("div", {
2810
+ et(V.$slots, "menu"),
2811
+ q("div", {
2812
2812
  class: Se(["chart-layout", {
2813
2813
  "chart-layout--side": x.value && y.value
2814
2814
  }])
2815
2815
  }, [
2816
- x.value && S.value ? (X(), de(Re, {
2816
+ x.value && _.value ? (X(), de(Re, {
2817
2817
  key: 0,
2818
2818
  "chart-ref": o.value,
2819
2819
  enabled: O.value,
2820
2820
  position: v.value,
2821
- "text-color": D.value,
2822
- "font-size": k.value,
2821
+ "text-color": L.value,
2822
+ "font-size": S.value,
2823
2823
  "legend-update-key": u.value,
2824
2824
  "use-point-style": t.value.usePointStyle ?? !0,
2825
2825
  "chart-color-binding": t.value.chartColorBinding,
@@ -2828,28 +2828,28 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2828
2828
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
2829
2829
  "metric-count": t.value.metricCount,
2830
2830
  "hidden-data-point-indexes": l.value,
2831
- onToggleDataPointVisibility: V
2831
+ onToggleDataPointVisibility: R
2832
2832
  }, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : he("", !0),
2833
- fe(T, {
2833
+ fe(k, {
2834
2834
  ref_key: "chartRef",
2835
2835
  ref: o,
2836
2836
  class: "circular",
2837
2837
  percentage: "70%",
2838
2838
  datasets: u.value,
2839
2839
  metrics: c.value,
2840
- tooltip: i($),
2840
+ tooltip: i(F),
2841
2841
  variant: "doughnut",
2842
- legend: w.value,
2842
+ legend: B.value,
2843
2843
  datalabels: i(a),
2844
2844
  "maintain-aspect-ratio": !1
2845
2845
  }, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
2846
- x.value && !S.value ? (X(), de(Re, {
2846
+ x.value && !_.value ? (X(), de(Re, {
2847
2847
  key: 1,
2848
2848
  "chart-ref": o.value,
2849
2849
  enabled: O.value,
2850
2850
  position: v.value,
2851
- "text-color": D.value,
2852
- "font-size": k.value,
2851
+ "text-color": L.value,
2852
+ "font-size": S.value,
2853
2853
  "legend-update-key": u.value,
2854
2854
  "use-point-style": t.value.usePointStyle ?? !0,
2855
2855
  "chart-color-binding": t.value.chartColorBinding,
@@ -2858,7 +2858,7 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2858
2858
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
2859
2859
  "metric-count": t.value.metricCount,
2860
2860
  "hidden-data-point-indexes": l.value,
2861
- onToggleDataPointVisibility: V
2861
+ onToggleDataPointVisibility: R
2862
2862
  }, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : he("", !0)
2863
2863
  ], 2)
2864
2864
  ]);
@@ -2888,25 +2888,25 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2888
2888
  });
2889
2889
  });
2890
2890
  return (o, l) => (X(), le("div", Er, [
2891
- G("div", Gr, [
2891
+ q("div", Gr, [
2892
2892
  (X(!0), le(Fe, null, ct(n.value, (a, r) => (X(), le("div", {
2893
2893
  key: r,
2894
2894
  class: "flex flex-col gap-1 flex-1 min-w-[80px]"
2895
2895
  }, [
2896
- G("div", qr, [
2897
- G("span", {
2896
+ q("div", qr, [
2897
+ q("span", {
2898
2898
  class: "inline-block w-3 h-3 rounded-sm shrink-0",
2899
2899
  style: Pe({ backgroundColor: a.color })
2900
2900
  }, null, 4),
2901
- G("p", {
2901
+ q("p", {
2902
2902
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate",
2903
2903
  title: a.label
2904
2904
  }, Te(a.label), 9, jr)
2905
2905
  ]),
2906
- G("p", Jr, Te(a.display), 1)
2906
+ q("p", Jr, Te(a.display), 1)
2907
2907
  ]))), 128))
2908
2908
  ]),
2909
- G("div", Zr, [
2909
+ q("div", Zr, [
2910
2910
  (X(!0), le(Fe, null, ct(n.value, (a, r) => (X(), le("div", {
2911
2911
  key: r,
2912
2912
  style: Pe({ width: `${a.width}%`, backgroundColor: a.color })
@@ -2929,14 +2929,14 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2929
2929
  emits: ["update:modelValue"],
2930
2930
  setup(e) {
2931
2931
  const t = We(e, "modelValue"), { t: n } = dt(), { compareDateRange: o, defaultDateSetting: l } = At(an()), { country: a } = ho(), r = g(() => {
2932
- var k;
2933
- return ((k = t.value.data) == null ? void 0 : k.value) || "";
2932
+ var S;
2933
+ return ((S = t.value.data) == null ? void 0 : S.value) || "";
2934
2934
  }), c = g(() => Ft(r.value)), u = g(() => {
2935
- const { data: k } = t.value;
2936
- return k != null && k.comparison ? _o(r.value, k.comparison, a) : null;
2935
+ const { data: S } = t.value;
2936
+ return S != null && S.comparison ? _o(r.value, S.comparison, a) : null;
2937
2937
  });
2938
- function f(k) {
2939
- switch (k) {
2938
+ function f(S) {
2939
+ switch (S) {
2940
2940
  case nn.bar:
2941
2941
  return "bar";
2942
2942
  case nn.stackedBar:
@@ -2946,31 +2946,31 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2946
2946
  return "line";
2947
2947
  }
2948
2948
  }
2949
- const B = g(() => {
2950
- var k;
2951
- return (k = t.value.data) == null ? void 0 : k.sparkline;
2949
+ const P = g(() => {
2950
+ var S;
2951
+ return (S = t.value.data) == null ? void 0 : S.sparkline;
2952
2952
  }), O = g(() => ({
2953
2953
  display: !1,
2954
2954
  beginAtZero: !1
2955
2955
  })), x = g(() => ({
2956
2956
  display: !1,
2957
2957
  beginAtZero: !0
2958
- })), v = g(() => B.value.datasets.map((k) => ({
2959
- label: k.name,
2960
- data: k.values,
2958
+ })), v = g(() => P.value.datasets.map((S) => ({
2959
+ label: S.name,
2960
+ data: S.values,
2961
2961
  fill: !0,
2962
2962
  color: "#36a2eb"
2963
2963
  }))), y = g(
2964
- () => v.value.map((k) => ({ ...k, backgroundColor: "rgba(54,162,235,0.25)" }))
2965
- ), S = g(() => Dn(!1)), D = g(() => Dn(!1));
2966
- return (k, w) => {
2967
- var I;
2968
- const $ = ce("FmIcon"), V = ce("FmChip"), z = ce("FmTooltip"), b = ce("FmLineChart"), T = ce("FmBarChart");
2964
+ () => v.value.map((S) => ({ ...S, backgroundColor: "rgba(54,162,235,0.25)" }))
2965
+ ), _ = g(() => Dn(!1)), L = g(() => Dn(!1));
2966
+ return (S, B) => {
2967
+ var D;
2968
+ const F = ce("FmIcon"), R = ce("FmChip"), V = ce("FmTooltip"), C = ce("FmLineChart"), k = ce("FmBarChart");
2969
2969
  return X(), le("div", el, [
2970
- et(k.$slots, "menu"),
2971
- G("p", tl, Te(c.value), 1),
2972
- G("div", nl, [
2973
- fe(z, {
2970
+ et(S.$slots, "menu"),
2971
+ q("p", tl, Te(c.value), 1),
2972
+ q("div", nl, [
2973
+ fe(V, {
2974
2974
  disabled: u.value === null,
2975
2975
  placement: "right",
2976
2976
  "hide-arrow": "",
@@ -2979,40 +2979,40 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
2979
2979
  content: _e(() => {
2980
2980
  var A;
2981
2981
  return [
2982
- G("span", ol, Te(`vs. ${(A = i(l).defaultCompareType) == null ? void 0 : A.split("_").join(" ")}`), 1)
2982
+ q("span", ol, Te(`vs. ${(A = i(l).defaultCompareType) == null ? void 0 : A.split("_").join(" ")}`), 1)
2983
2983
  ];
2984
2984
  }),
2985
2985
  default: _e(() => [
2986
- u.value ? (X(), de(V, {
2986
+ u.value ? (X(), de(R, {
2987
2987
  key: 0,
2988
2988
  icon: u.value.icon.name,
2989
2989
  class: Se(`bg-${u.value.icon.tailwind}`),
2990
2990
  compact: ""
2991
2991
  }, {
2992
2992
  default: _e(() => [
2993
- fe($, {
2993
+ fe(F, {
2994
2994
  name: u.value.icon.name,
2995
2995
  color: u.value.icon.color
2996
2996
  }, null, 8, ["name", "color"]),
2997
- G("p", {
2997
+ q("p", {
2998
2998
  class: "fm-typo-en-body-md-600",
2999
2999
  style: Pe({ color: u.value.icon.color })
3000
3000
  }, Te(u.value.value), 5)
3001
3001
  ]),
3002
3002
  _: 1
3003
3003
  }, 8, ["icon", "class"])) : he("", !0),
3004
- i(o).endDate != null && i(o).startDate != null && u.value === null ? (X(), de(V, {
3004
+ i(o).endDate != null && i(o).startDate != null && u.value === null ? (X(), de(R, {
3005
3005
  key: 1,
3006
3006
  class: "invisible pointer-events-none",
3007
3007
  "aria-hidden": "true",
3008
3008
  compact: ""
3009
3009
  }, {
3010
3010
  default: _e(() => [
3011
- fe($, {
3011
+ fe(F, {
3012
3012
  name: "arrow_upward",
3013
3013
  color: "#C7C7CC"
3014
3014
  }),
3015
- w[0] || (w[0] = G("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
3015
+ B[0] || (B[0] = q("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
3016
3016
  ]),
3017
3017
  _: 1
3018
3018
  })) : he("", !0)
@@ -3020,8 +3020,8 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
3020
3020
  _: 1
3021
3021
  }, 8, ["disabled"])
3022
3022
  ]),
3023
- B.value ? (X(), le("div", al, [
3024
- f(B.value.type) === "line" ? (X(), de(b, {
3023
+ P.value ? (X(), le("div", al, [
3024
+ f(P.value.type) === "line" ? (X(), de(C, {
3025
3025
  key: 0,
3026
3026
  class: "sparkline sparkline-chart",
3027
3027
  datasets: y.value,
@@ -3029,12 +3029,12 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
3029
3029
  display: !1
3030
3030
  },
3031
3031
  datalabels: { display: !1 },
3032
- "x-axis": { categories: B.value.dimensions },
3032
+ "x-axis": { categories: P.value.dimensions },
3033
3033
  "y-cfg": O.value,
3034
3034
  "x-cfg": { display: !1 },
3035
- tooltip: S.value,
3035
+ tooltip: _.value,
3036
3036
  "maintain-aspect-ratio": !1
3037
- }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : f(B.value.type) === "bar" ? (X(), de(T, {
3037
+ }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : f(P.value.type) === "bar" ? (X(), de(k, {
3038
3038
  key: 1,
3039
3039
  class: "sparkline sparkline-chart",
3040
3040
  datasets: v.value,
@@ -3042,24 +3042,24 @@ const Ur = { class: "widget-content" }, gn = 1, so = "rgba(0, 0, 0, 0)", Kr = /*
3042
3042
  display: !1
3043
3043
  },
3044
3044
  datalabels: { display: !1 },
3045
- "x-axis": { categories: B.value.dimensions },
3045
+ "x-axis": { categories: P.value.dimensions },
3046
3046
  "y-cfg": x.value,
3047
3047
  "x-cfg": { display: !1 },
3048
- tooltip: D.value,
3048
+ tooltip: L.value,
3049
3049
  "maintain-aspect-ratio": !1
3050
3050
  }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (X(), de(Qr, {
3051
3051
  key: 2,
3052
- dimensions: B.value.dimensions,
3053
- values: ((I = B.value.datasets[0]) == null ? void 0 : I.values) ?? [],
3054
- "percent-of-total": B.value.percentOfTotal === !0
3052
+ dimensions: P.value.dimensions,
3053
+ values: ((D = P.value.datasets[0]) == null ? void 0 : D.values) ?? [],
3054
+ "percent-of-total": P.value.percentOfTotal === !0
3055
3055
  }, null, 8, ["dimensions", "values", "percent-of-total"]))
3056
- ])) : (X(), le("div", rl, w[1] || (w[1] = [
3057
- G("div", { class: "sparkline" }, [
3058
- G("div", { class: "flex flex-col gap-8" }, [
3059
- G("div"),
3060
- G("div")
3056
+ ])) : (X(), le("div", rl, B[1] || (B[1] = [
3057
+ q("div", { class: "sparkline" }, [
3058
+ q("div", { class: "flex flex-col gap-8" }, [
3059
+ q("div"),
3060
+ q("div")
3061
3061
  ]),
3062
- G("div", { class: "grow" })
3062
+ q("div", { class: "grow" })
3063
3063
  ], -1)
3064
3064
  ])))
3065
3065
  ]);
@@ -3083,7 +3083,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3083
3083
  }),
3084
3084
  emits: ["update:modelValue"],
3085
3085
  setup(e) {
3086
- const { t, te: n } = dt(), o = We(e, "modelValue"), { country: l } = ho(), { clearTileSorts: a, setTileSorts: r } = ea(), c = Pn(), u = e, f = P([]), B = P(null), O = g(() => {
3086
+ const { t, te: n } = dt(), o = We(e, "modelValue"), { country: l } = ho(), { clearTileSorts: a, setTileSorts: r } = ea(), c = Pn(), u = e, f = I([]), P = I(null), O = g(() => {
3087
3087
  var h;
3088
3088
  return ((h = o.value.data) == null ? void 0 : h.columns) || [{ label: "", key: "" }];
3089
3089
  }), x = g(() => {
@@ -3092,21 +3092,21 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3092
3092
  }), v = g(() => o.value.colWidths ?? null), y = g(
3093
3093
  () => o.value.rowHeight && o.value.rowHeight > 0 ? o.value.rowHeight : 48
3094
3094
  );
3095
- function S() {
3095
+ function _() {
3096
3096
  const h = `${y.value}px`;
3097
3097
  return {
3098
3098
  height: h,
3099
3099
  minHeight: h
3100
3100
  };
3101
3101
  }
3102
- function D(h) {
3102
+ function L(h) {
3103
3103
  var M;
3104
3104
  const p = h ? (M = v.value) == null ? void 0 : M[h] : void 0;
3105
3105
  if (!(!p || p <= 0))
3106
3106
  return `${p}px`;
3107
3107
  }
3108
- function k(h) {
3109
- const p = D(h);
3108
+ function S(h) {
3109
+ const p = L(h);
3110
3110
  if (p)
3111
3111
  return {
3112
3112
  boxSizing: "border-box",
@@ -3115,49 +3115,49 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3115
3115
  maxWidth: p
3116
3116
  };
3117
3117
  }
3118
- const w = g(() => o.value.filterText), $ = g(() => {
3118
+ const B = g(() => o.value.filterText), F = g(() => {
3119
3119
  var p;
3120
3120
  const h = (p = o.value.grandTotalLabel) == null ? void 0 : p.trim();
3121
3121
  return h && h.length > 0 ? h : it(t, n, "Grand total", "other");
3122
- }), V = g(() => {
3122
+ }), R = g(() => {
3123
3123
  var h, p;
3124
- if (!(w.value && w.value.trim().length > 0 || !((h = x.value[0]) != null && h.isRollup) && !((p = x.value[x.value.length - 1]) != null && p.isRollup))) {
3124
+ if (!(B.value && B.value.trim().length > 0 || !((h = x.value[0]) != null && h.isRollup) && !((p = x.value[x.value.length - 1]) != null && p.isRollup))) {
3125
3125
  if (o.value.rollupPosition === Xe.top || o.value.rollupPosition === void 0)
3126
3126
  return Xe.top;
3127
3127
  if (o.value.rollupPosition === Xe.bottom)
3128
3128
  return Xe.bottom;
3129
3129
  }
3130
- }), z = g(() => {
3131
- const h = y.value, p = 34.5, M = 32, N = V.value !== void 0 ? 1 : 0, F = (B.value ? B.value.$el.offsetHeight : 0) - h;
3132
- return Math.floor((F - p - M) / h) - N;
3133
- }), b = g(() => {
3130
+ }), V = g(() => {
3131
+ const h = y.value, p = 34.5, M = 32, z = R.value !== void 0 ? 1 : 0, N = (P.value ? P.value.$el.offsetHeight : 0) - h;
3132
+ return Math.floor((N - p - M) / h) - z;
3133
+ }), C = g(() => {
3134
3134
  var p, M;
3135
3135
  let h = [];
3136
- switch (V.value) {
3136
+ switch (R.value) {
3137
3137
  case Xe.top:
3138
- h = [...((p = x.value[0]) == null ? void 0 : p.cells) || []].map((N, F) => {
3138
+ h = [...((p = x.value[0]) == null ? void 0 : p.cells) || []].map((z, N) => {
3139
3139
  var K;
3140
3140
  return {
3141
- main: N,
3142
- comparison: (K = x.value[0]) == null ? void 0 : K.comparisonCells[F],
3143
- rowType: O.value[F].type
3141
+ main: z,
3142
+ comparison: (K = x.value[0]) == null ? void 0 : K.comparisonCells[N],
3143
+ rowType: O.value[N].type
3144
3144
  };
3145
3145
  });
3146
3146
  break;
3147
3147
  case Xe.bottom:
3148
- h = [...((M = x.value[x.value.length - 1]) == null ? void 0 : M.cells) || []].map((N, F) => {
3148
+ h = [...((M = x.value[x.value.length - 1]) == null ? void 0 : M.cells) || []].map((z, N) => {
3149
3149
  var K;
3150
3150
  return {
3151
- main: N,
3152
- comparison: (K = x.value[x.value.length - 1]) == null ? void 0 : K.comparisonCells[F],
3153
- rowType: O.value[F].type
3151
+ main: z,
3152
+ comparison: (K = x.value[x.value.length - 1]) == null ? void 0 : K.comparisonCells[N],
3153
+ rowType: O.value[N].type
3154
3154
  };
3155
3155
  });
3156
3156
  break;
3157
3157
  }
3158
- return h.length > 0 && h[0].main === "" && (h[0].main = $.value), h;
3158
+ return h.length > 0 && h[0].main === "" && (h[0].main = F.value), h;
3159
3159
  });
3160
- function T(h) {
3160
+ function k(h) {
3161
3161
  let p = (h == null ? void 0 : h.main) || "";
3162
3162
  return !h || h.main === "" || !h.comparison ? {
3163
3163
  main: p
@@ -3170,12 +3170,12 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3170
3170
  Nt(() => {
3171
3171
  a();
3172
3172
  });
3173
- const I = P([]);
3174
- let A = 0, q;
3173
+ const D = I([]);
3174
+ let A = 0, E;
3175
3175
  function Q() {
3176
- var F;
3177
- if (!((F = o.value) != null && F.data)) {
3178
- I.value = [];
3176
+ var N;
3177
+ if (!((N = o.value) != null && N.data)) {
3178
+ D.value = [];
3179
3179
  return;
3180
3180
  }
3181
3181
  const h = ++A, p = (o.value.data.rows || []).map((K) => ({
@@ -3186,19 +3186,19 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3186
3186
  key: K.key,
3187
3187
  type: K.type,
3188
3188
  label: K.label
3189
- })), N = {
3189
+ })), z = {
3190
3190
  rows: p,
3191
3191
  columns: M,
3192
- filter: w.value ?? "",
3192
+ filter: B.value ?? "",
3193
3193
  globalSorts: qo(f.value).map((K) => ({
3194
3194
  key: K.key,
3195
3195
  type: K.type
3196
3196
  })),
3197
- grandTotalPosition: V.value,
3198
- pageSize: z.value
3197
+ grandTotalPosition: R.value,
3198
+ pageSize: V.value
3199
3199
  };
3200
- ta(cl, N).then((K) => {
3201
- h === A && (K != null && K.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(K.error), I.value = []) : I.value = jo(K.data || []));
3200
+ ta(cl, z).then((K) => {
3201
+ h === A && (K != null && K.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(K.error), D.value = []) : D.value = jo(K.data || []));
3202
3202
  });
3203
3203
  }
3204
3204
  we(
@@ -3209,21 +3209,21 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3209
3209
  { immediate: !0, deep: !0 }
3210
3210
  );
3211
3211
  const oe = g(() => {
3212
- var M, N;
3213
- const h = ((M = o.value.data) == null ? void 0 : M.rows) || [], p = ((N = o.value.data) == null ? void 0 : N.columns) || [];
3212
+ var M, z;
3213
+ const h = ((M = o.value.data) == null ? void 0 : M.rows) || [], p = ((z = o.value.data) == null ? void 0 : z.columns) || [];
3214
3214
  return JSON.stringify({
3215
3215
  rowsLength: h.length,
3216
- columns: p.map((F) => ({ key: F.key, type: F.type, label: F.label })),
3217
- filter: w.value ?? "",
3218
- globalSorts: f.value.map((F) => ({ key: F.key, type: F.type })),
3219
- grandTotalPosition: V.value,
3220
- pageSize: z.value
3216
+ columns: p.map((N) => ({ key: N.key, type: N.type, label: N.label })),
3217
+ filter: B.value ?? "",
3218
+ globalSorts: f.value.map((N) => ({ key: N.key, type: N.type })),
3219
+ grandTotalPosition: R.value,
3220
+ pageSize: V.value
3221
3221
  });
3222
3222
  });
3223
3223
  we(
3224
3224
  () => oe.value,
3225
3225
  () => {
3226
- clearTimeout(q), q = setTimeout(Q, 200);
3226
+ clearTimeout(E), E = setTimeout(Q, 200);
3227
3227
  },
3228
3228
  { immediate: !0 }
3229
3229
  );
@@ -3235,14 +3235,14 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3235
3235
  }
3236
3236
  p.type === Pt.Asc ? p.type = Pt.Desc : p.type === Pt.Desc && (f.value = f.value.filter((M) => M.key !== h));
3237
3237
  }
3238
- const L = g(() => {
3238
+ const T = g(() => {
3239
3239
  var h;
3240
3240
  return (h = o.value.data) != null && h.columns ? o.value.data.columns.map((p, M) => {
3241
- const N = it(t, n, p.label, "other"), F = f.value.find((E) => E.key === p.key), K = !!F, H = k(p.key), J = K ? F.type === Pt.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3241
+ const z = it(t, n, p.label, "other"), N = f.value.find((G) => G.key === p.key), K = !!N, H = S(p.key), J = K ? N.type === Pt.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3242
3242
  return {
3243
3243
  accessorKey: p.key,
3244
3244
  header: () => {
3245
- const E = ce("FmIcon");
3245
+ const G = ce("FmIcon");
3246
3246
  return jt(
3247
3247
  "button",
3248
3248
  {
@@ -3254,9 +3254,9 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3254
3254
  jt(
3255
3255
  "span",
3256
3256
  { class: `${p.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
3257
- N
3257
+ z
3258
3258
  ),
3259
- jt(E, {
3259
+ jt(G, {
3260
3260
  name: J,
3261
3261
  color: K ? "primary" : "neutral-gray-400",
3262
3262
  size: "sm",
@@ -3266,9 +3266,9 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3266
3266
  ]
3267
3267
  );
3268
3268
  },
3269
- cell: (E) => {
3269
+ cell: (G) => {
3270
3270
  var ue, re;
3271
- const ae = T(E.getValue()), me = (re = (ue = E == null ? void 0 : E.row) == null ? void 0 : ue.original) == null ? void 0 : re.isRollup;
3271
+ const ae = k(G.getValue()), me = (re = (ue = G == null ? void 0 : G.row) == null ? void 0 : ue.original) == null ? void 0 : re.isRollup;
3272
3272
  return jt(
3273
3273
  "div",
3274
3274
  {
@@ -3278,7 +3278,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3278
3278
  "flex items-center w-full min-w-0",
3279
3279
  "whitespace-nowrap"
3280
3280
  ].join(" "),
3281
- style: S()
3281
+ style: _()
3282
3282
  },
3283
3283
  [p.type === "NUMERIC" ? Ft(ae.main) : ae.main]
3284
3284
  );
@@ -3291,49 +3291,49 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3291
3291
  return (h, p) => {
3292
3292
  const M = ce("FmTable");
3293
3293
  return X(), le("div", dl, [
3294
- G("div", fl, [
3294
+ q("div", fl, [
3295
3295
  et(h.$slots, "menu")
3296
3296
  ]),
3297
3297
  fe(M, {
3298
3298
  ref_key: "table",
3299
- ref: B,
3300
- "column-defs": L.value,
3301
- "row-data": I.value,
3302
- "search-value": w.value,
3303
- "page-size": z.value,
3299
+ ref: P,
3300
+ "column-defs": T.value,
3301
+ "row-data": D.value,
3302
+ "search-value": B.value,
3303
+ "page-size": V.value,
3304
3304
  "shrink-at": !1,
3305
3305
  "force-mobile-footer": !0,
3306
3306
  class: "scrollbar-hide-table min-h-0 flex-1",
3307
3307
  "pin-header-row": !0,
3308
3308
  "auto-reset-page-index": !0
3309
3309
  }, Go({ _: 2 }, [
3310
- V.value ? {
3310
+ R.value ? {
3311
3311
  name: "pin-top",
3312
3312
  fn: _e(() => [
3313
- (X(), de(fo(V.value === i(Xe).bottom ? "tfoot" : "tbody"), null, {
3313
+ (X(), de(fo(R.value === i(Xe).bottom ? "tfoot" : "tbody"), null, {
3314
3314
  default: _e(() => [
3315
- G("tr", ml, [
3316
- (X(!0), le(Fe, null, ct(b.value, (N, F) => {
3315
+ q("tr", ml, [
3316
+ (X(!0), le(Fe, null, ct(C.value, (z, N) => {
3317
3317
  var K;
3318
3318
  return X(), le("td", {
3319
- key: `${i(Mt)()}_${F}`,
3319
+ key: `${i(Mt)()}_${N}`,
3320
3320
  class: "text-fm-color-typo-primary px-16",
3321
3321
  style: Pe({
3322
- ...S(),
3323
- ...k((K = O.value[F]) == null ? void 0 : K.key)
3322
+ ..._(),
3323
+ ...S((K = O.value[N]) == null ? void 0 : K.key)
3324
3324
  })
3325
3325
  }, [
3326
- G("span", {
3326
+ q("span", {
3327
3327
  class: Se([
3328
3328
  "flex items-center text-fm-color-typo-secondary gap-2",
3329
- N.rowType === "NUMERIC" ? "text-right justify-end" : "",
3329
+ z.rowType === "NUMERIC" ? "text-right justify-end" : "",
3330
3330
  "w-full min-w-0",
3331
3331
  "whitespace-nowrap"
3332
3332
  ]),
3333
- style: Pe(S())
3333
+ style: Pe(_())
3334
3334
  }, [
3335
- G("p", pl, Te(N.rowType === "NUMERIC" ? i(Ft)(N.main) : N.main), 1),
3336
- G("p", hl, Te(N.comparison ? N.rowType === "NUMERIC" ? `(${i(Ft)(N.comparison)})` : `(${N.comparison})` : ""), 1)
3335
+ q("p", pl, Te(z.rowType === "NUMERIC" ? i(Ft)(z.main) : z.main), 1),
3336
+ q("p", hl, Te(z.comparison ? z.rowType === "NUMERIC" ? `(${i(Ft)(z.comparison)})` : `(${z.comparison})` : ""), 1)
3337
3337
  ], 6)
3338
3338
  ], 4);
3339
3339
  }), 128))
@@ -3358,7 +3358,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3358
3358
  }),
3359
3359
  emits: ["update:modelValue"],
3360
3360
  setup(e) {
3361
- const t = We(e, "modelValue"), n = P(null), o = g(() => {
3361
+ const t = We(e, "modelValue"), n = I(null), o = g(() => {
3362
3362
  var M;
3363
3363
  return ((M = t.value.data) == null ? void 0 : M.xAxis) || [];
3364
3364
  }), l = g(() => ({
@@ -3367,10 +3367,10 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3367
3367
  var p;
3368
3368
  return ((p = t.value.data) == null ? void 0 : p.datasets) ?? [];
3369
3369
  }), r = Ht("bar"), c = g(() => t.value.stackBarOverlap === !0), u = g(() => c.value === !1), f = g(() => ({
3370
- ...z.value,
3370
+ ...V.value,
3371
3371
  stacked: u.value
3372
- })), B = g(() => ({
3373
- ...b.value,
3372
+ })), P = g(() => ({
3373
+ ...C.value,
3374
3374
  stacked: u.value
3375
3375
  })), O = g(() => ({
3376
3376
  display: !1
@@ -3378,33 +3378,33 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3378
3378
  function x({
3379
3379
  datasetIndex: p,
3380
3380
  colorIndex: M,
3381
- breakdownIndex: N
3381
+ breakdownIndex: z
3382
3382
  }) {
3383
3383
  var J;
3384
- const F = t.value.chartColorBinding === be.metric ? M : t.value.chartColorBinding === be.breakdown ? N : p, K = (J = t.value.chartColorLayers) == null ? void 0 : J[F], H = Number(K);
3385
- return Number.isInteger(H) && H > 0 ? H : F + 1;
3384
+ const N = t.value.chartColorBinding === be.metric ? M : t.value.chartColorBinding === be.breakdown ? z : p, K = (J = t.value.chartColorLayers) == null ? void 0 : J[N], H = Number(K);
3385
+ return Number.isInteger(H) && H > 0 ? H : N + 1;
3386
3386
  }
3387
3387
  const v = g(() => {
3388
3388
  if (a.value.length > 0) {
3389
- const p = a.value.map((M, N) => {
3390
- const F = Vt({
3389
+ const p = a.value.map((M, z) => {
3390
+ const N = Vt({
3391
3391
  datasets: a.value,
3392
- datasetIndex: N
3392
+ datasetIndex: z
3393
3393
  }), K = Be({
3394
- datasetIndex: F,
3394
+ datasetIndex: N,
3395
3395
  isCompare: !1,
3396
3396
  metricCount: t.value.metricCount,
3397
3397
  mode: t.value.chartColorBinding
3398
3398
  }), H = Be({
3399
- datasetIndex: F,
3399
+ datasetIndex: N,
3400
3400
  isCompare: !1,
3401
3401
  metricCount: t.value.metricCount,
3402
3402
  mode: be.metric
3403
3403
  }), J = _t({
3404
- fallbackIndex: F,
3404
+ fallbackIndex: N,
3405
3405
  metricCount: t.value.metricCount
3406
- }), E = x({
3407
- datasetIndex: F,
3406
+ }), G = x({
3407
+ datasetIndex: N,
3408
3408
  colorIndex: K,
3409
3409
  breakdownIndex: J
3410
3410
  }), me = M.values.map((ue) => ue === null ? NaN : Number(ue));
@@ -3415,7 +3415,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3415
3415
  dash: !!M.isCompare,
3416
3416
  minBarLength: void 0,
3417
3417
  grouped: c.value ? !1 : void 0,
3418
- order: c.value ? E : void 0,
3418
+ order: c.value ? G : void 0,
3419
3419
  backgroundColor: t.value.chartColorBinding === be.breakdown ? kt({
3420
3420
  breakdownIndex: J,
3421
3421
  metricIndex: H,
@@ -3437,22 +3437,22 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3437
3437
  return [];
3438
3438
  }), {
3439
3439
  isTooltipDetailsSheetOpen: y,
3440
- tooltipDetailsPayload: S,
3441
- handleTooltipDetailsSheetVisibility: D,
3442
- handleTooltipDetailsHover: k,
3443
- handleTooltipDetailsLeave: w,
3444
- comparisonTooltip: $,
3445
- datalabels: V,
3446
- xCfg: z,
3447
- yCfg: b,
3448
- isTransposed: T,
3449
- legend: I,
3440
+ tooltipDetailsPayload: _,
3441
+ handleTooltipDetailsSheetVisibility: L,
3442
+ handleTooltipDetailsHover: S,
3443
+ handleTooltipDetailsLeave: B,
3444
+ comparisonTooltip: F,
3445
+ datalabels: R,
3446
+ xCfg: V,
3447
+ yCfg: C,
3448
+ isTransposed: k,
3449
+ legend: D,
3450
3450
  useCustomLegend: A,
3451
- legendPosition: q,
3451
+ legendPosition: E,
3452
3452
  isLegendSide: Q,
3453
3453
  isLegendBeforeChart: oe,
3454
3454
  hiddenDatasetKeys: j,
3455
- toggleDatasetVisibility: L,
3455
+ toggleDatasetVisibility: T,
3456
3456
  datasets: h
3457
3457
  } = Ot({
3458
3458
  chartRef: n,
@@ -3460,23 +3460,23 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3460
3460
  baseDatasets: v
3461
3461
  });
3462
3462
  return (p, M) => {
3463
- var F, K, H, J, E, ae;
3464
- const N = ce("FmBarChart");
3463
+ var N, K, H, J, G, ae;
3464
+ const z = ce("FmBarChart");
3465
3465
  return X(), le(Fe, null, [
3466
- G("div", vl, [
3466
+ q("div", vl, [
3467
3467
  et(p.$slots, "menu"),
3468
- G("div", {
3468
+ q("div", {
3469
3469
  class: Se(["chart-layout", {
3470
- "chart-layout--side": i(A) && (i(I).display ?? !1) && i(Q)
3470
+ "chart-layout--side": i(A) && (i(D).display ?? !1) && i(Q)
3471
3471
  }])
3472
3472
  }, [
3473
- i(A) && (i(I).display ?? !1) && i(oe) ? (X(), de(Re, {
3473
+ i(A) && (i(D).display ?? !1) && i(oe) ? (X(), de(Re, {
3474
3474
  key: 0,
3475
3475
  "chart-ref": n.value,
3476
- enabled: i(I).display ?? !1,
3477
- position: i(q),
3478
- "text-color": (F = i(I).labels) == null ? void 0 : F.color,
3479
- "font-size": (H = (K = i(I).labels) == null ? void 0 : K.font) == null ? void 0 : H.size,
3476
+ enabled: i(D).display ?? !1,
3477
+ position: i(E),
3478
+ "text-color": (N = i(D).labels) == null ? void 0 : N.color,
3479
+ "font-size": (H = (K = i(D).labels) == null ? void 0 : K.font) == null ? void 0 : H.size,
3480
3480
  "legend-update-key": i(h),
3481
3481
  "use-point-style": t.value.usePointStyle ?? !0,
3482
3482
  "chart-color-binding": t.value.chartColorBinding,
@@ -3485,31 +3485,31 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3485
3485
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3486
3486
  "metric-count": t.value.metricCount,
3487
3487
  "hidden-dataset-keys": i(j),
3488
- onToggleDatasetVisibility: i(L)
3488
+ onToggleDatasetVisibility: i(T)
3489
3489
  }, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
3490
- fe(N, {
3490
+ fe(z, {
3491
3491
  ref_key: "chartRef",
3492
3492
  ref: n,
3493
3493
  class: "bar-chart",
3494
3494
  datasets: i(h),
3495
3495
  "x-axis": l.value,
3496
3496
  "x-cfg": f.value,
3497
- "y-cfg": B.value,
3498
- transpose: i(T),
3497
+ "y-cfg": P.value,
3498
+ transpose: i(k),
3499
3499
  stacked: u.value,
3500
3500
  legend: O.value,
3501
- tooltip: i($),
3501
+ tooltip: i(F),
3502
3502
  plugins: [i(r)],
3503
- datalabels: i(V),
3503
+ datalabels: i(R),
3504
3504
  "maintain-aspect-ratio": !1
3505
3505
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
3506
- i(A) && (i(I).display ?? !1) && !i(oe) ? (X(), de(Re, {
3506
+ i(A) && (i(D).display ?? !1) && !i(oe) ? (X(), de(Re, {
3507
3507
  key: 1,
3508
3508
  "chart-ref": n.value,
3509
- enabled: i(I).display ?? !1,
3510
- position: i(q),
3511
- "text-color": (J = i(I).labels) == null ? void 0 : J.color,
3512
- "font-size": (ae = (E = i(I).labels) == null ? void 0 : E.font) == null ? void 0 : ae.size,
3509
+ enabled: i(D).display ?? !1,
3510
+ position: i(E),
3511
+ "text-color": (J = i(D).labels) == null ? void 0 : J.color,
3512
+ "font-size": (ae = (G = i(D).labels) == null ? void 0 : G.font) == null ? void 0 : ae.size,
3513
3513
  "legend-update-key": i(h),
3514
3514
  "use-point-style": t.value.usePointStyle ?? !0,
3515
3515
  "chart-color-binding": t.value.chartColorBinding,
@@ -3518,16 +3518,16 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3518
3518
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3519
3519
  "metric-count": t.value.metricCount,
3520
3520
  "hidden-dataset-keys": i(j),
3521
- onToggleDatasetVisibility: i(L)
3521
+ onToggleDatasetVisibility: i(T)
3522
3522
  }, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0)
3523
3523
  ], 2)
3524
3524
  ]),
3525
3525
  fe(Wt, {
3526
3526
  "model-value": i(y),
3527
- "details-payload": i(S),
3528
- "onUpdate:modelValue": i(D),
3529
- onValueHover: i(k),
3530
- onValueLeave: i(w)
3527
+ "details-payload": i(_),
3528
+ "onUpdate:modelValue": i(L),
3529
+ onValueHover: i(S),
3530
+ onValueLeave: i(B)
3531
3531
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3532
3532
  ], 64);
3533
3533
  };
@@ -3542,7 +3542,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3542
3542
  }),
3543
3543
  emits: ["update:modelValue"],
3544
3544
  setup(e) {
3545
- const t = We(e, "modelValue"), n = P(null), o = g(() => {
3545
+ const t = We(e, "modelValue"), n = I(null), o = g(() => {
3546
3546
  var H;
3547
3547
  return ((H = t.value.data) == null ? void 0 : H.xAxis) || [];
3548
3548
  }), l = g(() => ({
@@ -3550,28 +3550,28 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3550
3550
  })), a = g(() => {
3551
3551
  var H;
3552
3552
  return ((H = t.value.data) == null ? void 0 : H.datasets) ?? [];
3553
- }), r = Ht("bar"), c = g(() => t.value.stackBarOverlap === !0), u = g(() => c.value === !1), f = g(() => o.value.length === 1 && a.value.some((H) => H.isCompare === !0)), B = g(() => ({
3554
- ...I.value,
3553
+ }), r = Ht("bar"), c = g(() => t.value.stackBarOverlap === !0), u = g(() => c.value === !1), f = g(() => o.value.length === 1 && a.value.some((H) => H.isCompare === !0)), P = g(() => ({
3554
+ ...D.value,
3555
3555
  stacked: u.value
3556
3556
  })), O = g(() => ({
3557
3557
  ...A.value,
3558
3558
  stacked: u.value
3559
3559
  }));
3560
3560
  function x(H) {
3561
- const J = " - ", E = H.lastIndexOf(J);
3562
- return E < 0 ? {
3561
+ const J = " - ", G = H.lastIndexOf(J);
3562
+ return G < 0 ? {
3563
3563
  clusterKey: H,
3564
3564
  metricLabel: H
3565
3565
  } : {
3566
- clusterKey: H.slice(0, E),
3567
- metricLabel: H.slice(E + J.length)
3566
+ clusterKey: H.slice(0, G),
3567
+ metricLabel: H.slice(G + J.length)
3568
3568
  };
3569
3569
  }
3570
3570
  function v(H, J) {
3571
3571
  if (typeof H == "string") {
3572
- const E = H.trim();
3573
- if (E.length > 0)
3574
- return E;
3572
+ const G = H.trim();
3573
+ if (G.length > 0)
3574
+ return G;
3575
3575
  }
3576
3576
  return `Series ${J + 1}`;
3577
3577
  }
@@ -3580,10 +3580,10 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3580
3580
  colorIndex: J
3581
3581
  }) {
3582
3582
  var ue;
3583
- const E = t.value.chartColorBinding === be.metric ? J : H, ae = (ue = t.value.chartColorLayers) == null ? void 0 : ue[E], me = Number(ae);
3584
- return Number.isInteger(me) && me > 0 ? me : E + 1;
3583
+ const G = t.value.chartColorBinding === be.metric ? J : H, ae = (ue = t.value.chartColorLayers) == null ? void 0 : ue[G], me = Number(ae);
3584
+ return Number.isInteger(me) && me > 0 ? me : G + 1;
3585
3585
  }
3586
- function S(H) {
3586
+ function _(H) {
3587
3587
  return {
3588
3588
  label: `__comparison_gap__${H}`,
3589
3589
  tooltipLabel: `__comparison_gap__${H}`,
@@ -3597,7 +3597,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3597
3597
  isSpacer: !0
3598
3598
  };
3599
3599
  }
3600
- const D = g(() => {
3600
+ const L = g(() => {
3601
3601
  if (a.value.length === 0)
3602
3602
  return [];
3603
3603
  const H = a.value.map((re, ve) => ({
@@ -3605,10 +3605,10 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3605
3605
  index: ve,
3606
3606
  name: v(re == null ? void 0 : re.name, ve),
3607
3607
  values: (re == null ? void 0 : re.values) ?? []
3608
- })), J = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
3608
+ })), J = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map();
3609
3609
  for (const re of H) {
3610
3610
  const { clusterKey: ve, metricLabel: Ce } = x(re.name);
3611
- E.has(ve) || E.set(ve, E.size), J.has(Ce) || J.set(Ce, J.size);
3611
+ G.has(ve) || G.set(ve, G.size), J.has(Ce) || J.set(Ce, J.size);
3612
3612
  }
3613
3613
  const ae = Math.max(J.size, 1), me = t.value.chartColorBinding === be.breakdown, ue = t.value.chartUseSecondaryMetricShades !== !1;
3614
3614
  return H.map((re) => {
@@ -3659,58 +3659,58 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3659
3659
  };
3660
3660
  });
3661
3661
  }), {
3662
- isTooltipDetailsSheetOpen: k,
3663
- tooltipDetailsPayload: w,
3664
- handleTooltipDetailsSheetVisibility: $,
3665
- handleTooltipDetailsHover: V,
3666
- handleTooltipDetailsLeave: z,
3667
- comparisonTooltip: b,
3668
- datalabels: T,
3669
- xCfg: I,
3662
+ isTooltipDetailsSheetOpen: S,
3663
+ tooltipDetailsPayload: B,
3664
+ handleTooltipDetailsSheetVisibility: F,
3665
+ handleTooltipDetailsHover: R,
3666
+ handleTooltipDetailsLeave: V,
3667
+ comparisonTooltip: C,
3668
+ datalabels: k,
3669
+ xCfg: D,
3670
3670
  yCfg: A,
3671
- isTransposed: q,
3671
+ isTransposed: E,
3672
3672
  legend: Q,
3673
3673
  useCustomLegend: oe,
3674
3674
  legendPosition: j,
3675
- isLegendSide: L,
3675
+ isLegendSide: T,
3676
3676
  isLegendBeforeChart: h,
3677
3677
  hiddenDatasetKeys: p,
3678
3678
  toggleDatasetVisibility: M,
3679
- datasets: N
3679
+ datasets: z
3680
3680
  } = Ot({
3681
3681
  chartRef: n,
3682
3682
  model: t,
3683
- baseDatasets: D
3684
- }), F = g(() => {
3683
+ baseDatasets: L
3684
+ }), N = g(() => {
3685
3685
  if (!f.value)
3686
- return N.value;
3686
+ return z.value;
3687
3687
  const H = [];
3688
- return N.value.forEach((J, E) => {
3688
+ return z.value.forEach((J, G) => {
3689
3689
  H.push({
3690
3690
  ...J,
3691
3691
  barPercentage: vn
3692
3692
  });
3693
- const ae = N.value[E + 1];
3694
- J.dash === !0 && ae && H.push(S(E));
3693
+ const ae = z.value[G + 1];
3694
+ J.dash === !0 && ae && H.push(_(G));
3695
3695
  }), H;
3696
3696
  }), K = g(() => ({
3697
3697
  display: !1,
3698
3698
  labels: {
3699
3699
  filter: (H, J) => {
3700
- var E, ae;
3701
- return !((ae = (E = J.datasets) == null ? void 0 : E[H.datasetIndex ?? -1]) != null && ae.isSpacer);
3700
+ var G, ae;
3701
+ return !((ae = (G = J.datasets) == null ? void 0 : G[H.datasetIndex ?? -1]) != null && ae.isSpacer);
3702
3702
  }
3703
3703
  }
3704
3704
  }));
3705
3705
  return (H, J) => {
3706
3706
  var ae, me, ue, re, ve, Ce;
3707
- const E = ce("FmBarChart");
3707
+ const G = ce("FmBarChart");
3708
3708
  return X(), le(Fe, null, [
3709
- G("div", bl, [
3709
+ q("div", bl, [
3710
3710
  et(H.$slots, "menu"),
3711
- G("div", {
3711
+ q("div", {
3712
3712
  class: Se(["chart-layout", {
3713
- "chart-layout--side": i(oe) && (i(Q).display ?? !1) && i(L)
3713
+ "chart-layout--side": i(oe) && (i(Q).display ?? !1) && i(T)
3714
3714
  }])
3715
3715
  }, [
3716
3716
  i(oe) && (i(Q).display ?? !1) && i(h) ? (X(), de(Re, {
@@ -3720,7 +3720,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3720
3720
  position: i(j),
3721
3721
  "text-color": (ae = i(Q).labels) == null ? void 0 : ae.color,
3722
3722
  "font-size": (ue = (me = i(Q).labels) == null ? void 0 : me.font) == null ? void 0 : ue.size,
3723
- "legend-update-key": i(N),
3723
+ "legend-update-key": i(z),
3724
3724
  "use-point-style": t.value.usePointStyle ?? !0,
3725
3725
  "chart-color-binding": t.value.chartColorBinding,
3726
3726
  "chart-colors": t.value.chartColors,
@@ -3730,20 +3730,20 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3730
3730
  "hidden-dataset-keys": i(p),
3731
3731
  onToggleDatasetVisibility: i(M)
3732
3732
  }, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
3733
- fe(E, {
3733
+ fe(G, {
3734
3734
  ref_key: "chartRef",
3735
3735
  ref: n,
3736
3736
  class: "bar-chart",
3737
- datasets: F.value,
3737
+ datasets: N.value,
3738
3738
  "x-axis": l.value,
3739
- "x-cfg": B.value,
3739
+ "x-cfg": P.value,
3740
3740
  "y-cfg": O.value,
3741
- transpose: i(q),
3741
+ transpose: i(E),
3742
3742
  stacked: u.value,
3743
3743
  legend: K.value,
3744
- tooltip: i(b),
3744
+ tooltip: i(C),
3745
3745
  plugins: [i(r)],
3746
- datalabels: i(T),
3746
+ datalabels: i(k),
3747
3747
  "maintain-aspect-ratio": !1
3748
3748
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
3749
3749
  i(oe) && (i(Q).display ?? !1) && !i(h) ? (X(), de(Re, {
@@ -3753,7 +3753,7 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3753
3753
  position: i(j),
3754
3754
  "text-color": (re = i(Q).labels) == null ? void 0 : re.color,
3755
3755
  "font-size": (Ce = (ve = i(Q).labels) == null ? void 0 : ve.font) == null ? void 0 : Ce.size,
3756
- "legend-update-key": i(N),
3756
+ "legend-update-key": i(z),
3757
3757
  "use-point-style": t.value.usePointStyle ?? !0,
3758
3758
  "chart-color-binding": t.value.chartColorBinding,
3759
3759
  "chart-colors": t.value.chartColors,
@@ -3766,11 +3766,11 @@ const ul = /* @__PURE__ */ go(sl, [["render", il]]), cl = "/assets/processTableD
3766
3766
  ], 2)
3767
3767
  ]),
3768
3768
  fe(Wt, {
3769
- "model-value": i(k),
3770
- "details-payload": i(w),
3771
- "onUpdate:modelValue": i($),
3772
- onValueHover: i(V),
3773
- onValueLeave: i(z)
3769
+ "model-value": i(S),
3770
+ "details-payload": i(B),
3771
+ "onUpdate:modelValue": i(F),
3772
+ onValueHover: i(R),
3773
+ onValueLeave: i(V)
3774
3774
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3775
3775
  ], 64);
3776
3776
  };
@@ -3802,28 +3802,28 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
3802
3802
  }),
3803
3803
  emits: ["update:modelValue"],
3804
3804
  setup(e) {
3805
- const t = We(e, "modelValue"), n = P(null), o = g(() => {
3806
- var L;
3807
- return ((L = t.value.data) == null ? void 0 : L.xAxis) ?? [];
3805
+ const t = We(e, "modelValue"), n = I(null), o = g(() => {
3806
+ var T;
3807
+ return ((T = t.value.data) == null ? void 0 : T.xAxis) ?? [];
3808
3808
  }), l = g(
3809
- () => o.value.length === 1 && u.value.length > 0 && u.value.every((L) => L.values.length === 1)
3809
+ () => o.value.length === 1 && u.value.length > 0 && u.value.every((T) => T.values.length === 1)
3810
3810
  ), a = g(() => l.value ? ["", o.value[0], ""] : o.value), r = g(() => ({
3811
3811
  categories: a.value
3812
3812
  })), c = g(() => ({
3813
3813
  display: !1
3814
3814
  })), u = g(() => {
3815
- var L;
3816
- return ((L = t.value.data) == null ? void 0 : L.datasets) ?? [];
3817
- }), f = Ht("line"), B = Fo("report-line-style-plugin-stack-line"), O = g(() => u.value.length > 0 ? [
3818
- ...u.value.map((L, h) => {
3815
+ var T;
3816
+ return ((T = t.value.data) == null ? void 0 : T.datasets) ?? [];
3817
+ }), f = Ht("line"), P = Fo("report-line-style-plugin-stack-line"), O = g(() => u.value.length > 0 ? [
3818
+ ...u.value.map((T, h) => {
3819
3819
  var ue;
3820
3820
  const p = Vt({
3821
3821
  datasets: u.value,
3822
3822
  datasetIndex: h
3823
3823
  });
3824
- let M = L.values;
3824
+ let M = T.values;
3825
3825
  l.value && (M = [NaN, M[0], NaN]);
3826
- const N = M.map((re) => re === null ? NaN : Number(re)), F = Be({
3826
+ const z = M.map((re) => re === null ? NaN : Number(re)), N = Be({
3827
3827
  datasetIndex: p,
3828
3828
  isCompare: !1,
3829
3829
  metricCount: t.value.metricCount,
@@ -3835,29 +3835,29 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
3835
3835
  mode: be.metric
3836
3836
  }), H = Be({
3837
3837
  datasetIndex: h,
3838
- isCompare: L.isCompare,
3838
+ isCompare: T.isCompare,
3839
3839
  metricCount: t.value.metricCount,
3840
3840
  mode: t.value.lineStyleBinding
3841
- }), J = (ue = t.value.lineStyles) == null ? void 0 : ue[H], E = t.value.chartColorBinding === be.breakdown, ae = _t({
3841
+ }), J = (ue = t.value.lineStyles) == null ? void 0 : ue[H], G = t.value.chartColorBinding === be.breakdown, ae = _t({
3842
3842
  fallbackIndex: p,
3843
3843
  metricCount: t.value.metricCount
3844
- }), me = E ? kt({
3844
+ }), me = G ? kt({
3845
3845
  breakdownIndex: ae,
3846
3846
  metricIndex: K,
3847
3847
  metricCount: t.value.metricCount,
3848
- isCompare: L.isCompare,
3848
+ isCompare: T.isCompare,
3849
3849
  breakdownColors: t.value.chartBreakdownColors,
3850
3850
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
3851
3851
  customColors: t.value.chartColors
3852
3852
  }) : Ye({
3853
- index: F,
3854
- isCompare: L.isCompare,
3853
+ index: N,
3854
+ isCompare: T.isCompare,
3855
3855
  customColors: t.value.chartColors
3856
3856
  });
3857
3857
  return {
3858
- label: L.name,
3859
- data: N,
3860
- dash: L.isCompare,
3858
+ label: T.name,
3859
+ data: z,
3860
+ dash: T.isCompare,
3861
3861
  lineStyle: J,
3862
3862
  fill: !0,
3863
3863
  color: me,
@@ -3872,18 +3872,18 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
3872
3872
  isTooltipDetailsSheetOpen: x,
3873
3873
  tooltipDetailsPayload: v,
3874
3874
  handleTooltipDetailsSheetVisibility: y,
3875
- handleTooltipDetailsHover: S,
3876
- handleTooltipDetailsLeave: D,
3877
- comparisonTooltip: k,
3878
- datalabels: w,
3879
- xCfg: $,
3880
- yCfg: V,
3881
- isTransposed: z,
3882
- legend: b,
3883
- useCustomLegend: T,
3884
- legendPosition: I,
3875
+ handleTooltipDetailsHover: _,
3876
+ handleTooltipDetailsLeave: L,
3877
+ comparisonTooltip: S,
3878
+ datalabels: B,
3879
+ xCfg: F,
3880
+ yCfg: R,
3881
+ isTransposed: V,
3882
+ legend: C,
3883
+ useCustomLegend: k,
3884
+ legendPosition: D,
3885
3885
  isLegendSide: A,
3886
- isLegendBeforeChart: q,
3886
+ isLegendBeforeChart: E,
3887
3887
  hiddenDatasetKeys: Q,
3888
3888
  toggleDatasetVisibility: oe,
3889
3889
  datasets: j
@@ -3892,24 +3892,24 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
3892
3892
  model: t,
3893
3893
  baseDatasets: O
3894
3894
  });
3895
- return (L, h) => {
3896
- var M, N, F, K, H, J;
3895
+ return (T, h) => {
3896
+ var M, z, N, K, H, J;
3897
3897
  const p = ce("FmLineChart");
3898
3898
  return X(), le(Fe, null, [
3899
- G("div", wl, [
3900
- et(L.$slots, "menu"),
3901
- G("div", {
3899
+ q("div", wl, [
3900
+ et(T.$slots, "menu"),
3901
+ q("div", {
3902
3902
  class: Se(["chart-layout", {
3903
- "chart-layout--side": i(T) && (i(b).display ?? !1) && i(A)
3903
+ "chart-layout--side": i(k) && (i(C).display ?? !1) && i(A)
3904
3904
  }])
3905
3905
  }, [
3906
- i(T) && (i(b).display ?? !1) && i(q) ? (X(), de(Re, {
3906
+ i(k) && (i(C).display ?? !1) && i(E) ? (X(), de(Re, {
3907
3907
  key: 0,
3908
3908
  "chart-ref": n.value,
3909
- enabled: i(b).display ?? !1,
3910
- position: i(I),
3911
- "text-color": (M = i(b).labels) == null ? void 0 : M.color,
3912
- "font-size": (F = (N = i(b).labels) == null ? void 0 : N.font) == null ? void 0 : F.size,
3909
+ enabled: i(C).display ?? !1,
3910
+ position: i(D),
3911
+ "text-color": (M = i(C).labels) == null ? void 0 : M.color,
3912
+ "font-size": (N = (z = i(C).labels) == null ? void 0 : z.font) == null ? void 0 : N.size,
3913
3913
  "legend-update-key": i(j),
3914
3914
  "use-point-style": t.value.usePointStyle ?? !0,
3915
3915
  "chart-color-binding": t.value.chartColorBinding,
@@ -3926,23 +3926,23 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
3926
3926
  class: "line-chart",
3927
3927
  datasets: i(j),
3928
3928
  "x-axis": r.value,
3929
- "x-cfg": i($),
3930
- "y-cfg": i(V),
3931
- transpose: i(z),
3929
+ "x-cfg": i(F),
3930
+ "y-cfg": i(R),
3931
+ transpose: i(V),
3932
3932
  legend: c.value,
3933
- tooltip: i(k),
3934
- plugins: [i(f), i(B)],
3933
+ tooltip: i(S),
3934
+ plugins: [i(f), i(P)],
3935
3935
  stacked: !0,
3936
- datalabels: i(w),
3936
+ datalabels: i(B),
3937
3937
  "maintain-aspect-ratio": !1
3938
3938
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "plugins", "datalabels"]),
3939
- i(T) && (i(b).display ?? !1) && !i(q) ? (X(), de(Re, {
3939
+ i(k) && (i(C).display ?? !1) && !i(E) ? (X(), de(Re, {
3940
3940
  key: 1,
3941
3941
  "chart-ref": n.value,
3942
- enabled: i(b).display ?? !1,
3943
- position: i(I),
3944
- "text-color": (K = i(b).labels) == null ? void 0 : K.color,
3945
- "font-size": (J = (H = i(b).labels) == null ? void 0 : H.font) == null ? void 0 : J.size,
3942
+ enabled: i(C).display ?? !1,
3943
+ position: i(D),
3944
+ "text-color": (K = i(C).labels) == null ? void 0 : K.color,
3945
+ "font-size": (J = (H = i(C).labels) == null ? void 0 : H.font) == null ? void 0 : J.size,
3946
3946
  "legend-update-key": i(j),
3947
3947
  "use-point-style": t.value.usePointStyle ?? !0,
3948
3948
  "chart-color-binding": t.value.chartColorBinding,
@@ -3959,8 +3959,8 @@ const wl = { class: "widget-content" }, _l = /* @__PURE__ */ Ae({
3959
3959
  "model-value": i(x),
3960
3960
  "details-payload": i(v),
3961
3961
  "onUpdate:modelValue": i(y),
3962
- onValueHover: i(S),
3963
- onValueLeave: i(D)
3962
+ onValueHover: i(_),
3963
+ onValueLeave: i(L)
3964
3964
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3965
3965
  ], 64);
3966
3966
  };
@@ -4011,7 +4011,7 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4011
4011
  }),
4012
4012
  emits: ["update:modelValue"],
4013
4013
  setup(e) {
4014
- const t = We(e, "modelValue"), n = P(null), o = g(() => {
4014
+ const t = We(e, "modelValue"), n = I(null), o = g(() => {
4015
4015
  var h;
4016
4016
  return ((h = t.value.data) == null ? void 0 : h.datasets) ?? [];
4017
4017
  }), l = g(() => {
@@ -4023,32 +4023,32 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4023
4023
  categories: c.value
4024
4024
  })), f = g(() => ({
4025
4025
  display: !1
4026
- })), B = Ht("line"), O = Fo("report-line-style-plugin-line"), x = g(() => o.value.length > 0 ? [
4026
+ })), P = Ht("line"), O = Fo("report-line-style-plugin-line"), x = g(() => o.value.length > 0 ? [
4027
4027
  ...o.value.map((h, p) => {
4028
4028
  var Ce;
4029
4029
  const M = Vt({
4030
4030
  datasets: o.value,
4031
4031
  datasetIndex: p
4032
- }), N = Be({
4032
+ }), z = Be({
4033
4033
  datasetIndex: M,
4034
4034
  isCompare: !1,
4035
4035
  metricCount: t.value.metricCount,
4036
4036
  mode: t.value.chartColorBinding
4037
- }), F = Be({
4037
+ }), N = Be({
4038
4038
  datasetIndex: M,
4039
4039
  isCompare: !1,
4040
4040
  metricCount: t.value.metricCount,
4041
4041
  mode: be.metric
4042
4042
  }), K = Ye({
4043
- index: N,
4043
+ index: z,
4044
4044
  isCompare: h.isCompare,
4045
4045
  customColors: t.value.chartColors
4046
4046
  }), H = t.value.chartColorBinding === be.breakdown, J = _t({
4047
4047
  fallbackIndex: M,
4048
4048
  metricCount: t.value.metricCount
4049
- }), E = H ? kt({
4049
+ }), G = H ? kt({
4050
4050
  breakdownIndex: J,
4051
- metricIndex: F,
4051
+ metricIndex: N,
4052
4052
  metricCount: t.value.metricCount,
4053
4053
  isCompare: h.isCompare,
4054
4054
  breakdownColors: t.value.chartBreakdownColors,
@@ -4071,57 +4071,57 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4071
4071
  dash: !!h.isCompare,
4072
4072
  lineStyle: ve,
4073
4073
  fill: !1,
4074
- color: E,
4074
+ color: G,
4075
4075
  pointRadius: ue ? 4 : void 0,
4076
4076
  pointHoverRadius: ue ? 6 : void 0,
4077
- pointBackgroundColor: ue ? E : void 0,
4078
- pointBorderColor: ue ? E : void 0,
4077
+ pointBackgroundColor: ue ? G : void 0,
4078
+ pointBorderColor: ue ? G : void 0,
4079
4079
  pointBorderWidth: ue ? 2 : void 0
4080
4080
  };
4081
4081
  })
4082
4082
  ] : []), {
4083
4083
  isTooltipDetailsSheetOpen: v,
4084
4084
  tooltipDetailsPayload: y,
4085
- handleTooltipDetailsSheetVisibility: S,
4086
- handleTooltipDetailsHover: D,
4087
- handleTooltipDetailsLeave: k,
4088
- comparisonTooltip: w,
4089
- datalabels: $,
4090
- xCfg: V,
4091
- yCfg: z,
4092
- isTransposed: b,
4093
- legend: T,
4094
- useCustomLegend: I,
4085
+ handleTooltipDetailsSheetVisibility: _,
4086
+ handleTooltipDetailsHover: L,
4087
+ handleTooltipDetailsLeave: S,
4088
+ comparisonTooltip: B,
4089
+ datalabels: F,
4090
+ xCfg: R,
4091
+ yCfg: V,
4092
+ isTransposed: C,
4093
+ legend: k,
4094
+ useCustomLegend: D,
4095
4095
  legendPosition: A,
4096
- isLegendSide: q,
4096
+ isLegendSide: E,
4097
4097
  isLegendBeforeChart: Q,
4098
4098
  hiddenDatasetKeys: oe,
4099
4099
  toggleDatasetVisibility: j,
4100
- datasets: L
4100
+ datasets: T
4101
4101
  } = Ot({
4102
4102
  chartRef: n,
4103
4103
  model: t,
4104
4104
  baseDatasets: x
4105
4105
  });
4106
4106
  return (h, p) => {
4107
- var N, F, K, H, J, E;
4107
+ var z, N, K, H, J, G;
4108
4108
  const M = ce("FmLineChart");
4109
4109
  return X(), le(Fe, null, [
4110
- G("div", Al, [
4110
+ q("div", Al, [
4111
4111
  et(h.$slots, "menu"),
4112
- G("div", {
4112
+ q("div", {
4113
4113
  class: Se(["chart-layout", {
4114
- "chart-layout--side": i(I) && (i(T).display ?? !1) && i(q)
4114
+ "chart-layout--side": i(D) && (i(k).display ?? !1) && i(E)
4115
4115
  }])
4116
4116
  }, [
4117
- i(I) && (i(T).display ?? !1) && i(Q) ? (X(), de(Re, {
4117
+ i(D) && (i(k).display ?? !1) && i(Q) ? (X(), de(Re, {
4118
4118
  key: 0,
4119
4119
  "chart-ref": n.value,
4120
- enabled: i(T).display ?? !1,
4120
+ enabled: i(k).display ?? !1,
4121
4121
  position: i(A),
4122
- "text-color": (N = i(T).labels) == null ? void 0 : N.color,
4123
- "font-size": (K = (F = i(T).labels) == null ? void 0 : F.font) == null ? void 0 : K.size,
4124
- "legend-update-key": i(L),
4122
+ "text-color": (z = i(k).labels) == null ? void 0 : z.color,
4123
+ "font-size": (K = (N = i(k).labels) == null ? void 0 : N.font) == null ? void 0 : K.size,
4124
+ "legend-update-key": i(T),
4125
4125
  "chart-color-binding": t.value.chartColorBinding,
4126
4126
  "chart-colors": t.value.chartColors,
4127
4127
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -4135,25 +4135,25 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4135
4135
  ref_key: "chartRef",
4136
4136
  ref: n,
4137
4137
  class: "line-chart",
4138
- datasets: i(L),
4138
+ datasets: i(T),
4139
4139
  "x-axis": u.value,
4140
- "x-cfg": i(V),
4141
- "y-cfg": i(z),
4142
- transpose: i(b),
4140
+ "x-cfg": i(R),
4141
+ "y-cfg": i(V),
4142
+ transpose: i(C),
4143
4143
  legend: f.value,
4144
- tooltip: i(w),
4145
- datalabels: i($),
4146
- plugins: [i(B), i(O)],
4144
+ tooltip: i(B),
4145
+ datalabels: i(F),
4146
+ plugins: [i(P), i(O)],
4147
4147
  "maintain-aspect-ratio": !1
4148
4148
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
4149
- i(I) && (i(T).display ?? !1) && !i(Q) ? (X(), de(Re, {
4149
+ i(D) && (i(k).display ?? !1) && !i(Q) ? (X(), de(Re, {
4150
4150
  key: 1,
4151
4151
  "chart-ref": n.value,
4152
- enabled: i(T).display ?? !1,
4152
+ enabled: i(k).display ?? !1,
4153
4153
  position: i(A),
4154
- "text-color": (H = i(T).labels) == null ? void 0 : H.color,
4155
- "font-size": (E = (J = i(T).labels) == null ? void 0 : J.font) == null ? void 0 : E.size,
4156
- "legend-update-key": i(L),
4154
+ "text-color": (H = i(k).labels) == null ? void 0 : H.color,
4155
+ "font-size": (G = (J = i(k).labels) == null ? void 0 : J.font) == null ? void 0 : G.size,
4156
+ "legend-update-key": i(T),
4157
4157
  "chart-color-binding": t.value.chartColorBinding,
4158
4158
  "chart-colors": t.value.chartColors,
4159
4159
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -4168,9 +4168,9 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4168
4168
  fe(Wt, {
4169
4169
  "model-value": i(v),
4170
4170
  "details-payload": i(y),
4171
- "onUpdate:modelValue": i(S),
4172
- onValueHover: i(D),
4173
- onValueLeave: i(k)
4171
+ "onUpdate:modelValue": i(_),
4172
+ onValueHover: i(L),
4173
+ onValueLeave: i(S)
4174
4174
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
4175
4175
  ], 64);
4176
4176
  };
@@ -4186,10 +4186,10 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4186
4186
  }),
4187
4187
  emits: ["update:modelValue"],
4188
4188
  setup(e) {
4189
- const { t } = dt(), { FmForm: n } = sa, o = e, l = P(), a = We(e, "modelValue"), r = P(!0), c = P(!1), u = Pn(), { selectedLocationIds: f, dateRange: B, timeRange: O } = At(an()), x = P(pn.PORTRAIT);
4189
+ const { t } = dt(), { FmForm: n } = sa, o = e, l = I(), a = We(e, "modelValue"), r = I(!0), c = I(!1), u = Pn(), { selectedLocationIds: f, dateRange: P, timeRange: O } = At(an()), x = I(pn.PORTRAIT);
4190
4190
  function v() {
4191
- var S;
4192
- (S = l.value) == null || S.validateInputs();
4191
+ var _;
4192
+ (_ = l.value) == null || _.validateInputs();
4193
4193
  }
4194
4194
  async function y() {
4195
4195
  c.value = !0;
@@ -4200,24 +4200,24 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4200
4200
  orientationTypes: [x.value],
4201
4201
  isCombinedLocationLayout: r.value,
4202
4202
  timeRange: O.value,
4203
- dateRange: B.value,
4203
+ dateRange: P.value,
4204
4204
  locationIds: f.value
4205
4205
  });
4206
- } catch (S) {
4207
- u.open({ message: S.message, type: "error" });
4206
+ } catch (_) {
4207
+ u.open({ message: _.message, type: "error" });
4208
4208
  } finally {
4209
4209
  c.value = !1;
4210
4210
  }
4211
4211
  }
4212
- return (S, D) => {
4213
- const k = ce("FmRadio"), w = ce("FmRadioGroup"), $ = ce("FmButton"), V = ce("FmDialog");
4214
- return X(), de(V, {
4212
+ return (_, L) => {
4213
+ const S = ce("FmRadio"), B = ce("FmRadioGroup"), F = ce("FmButton"), R = ce("FmDialog");
4214
+ return X(), de(R, {
4215
4215
  modelValue: a.value,
4216
- "onUpdate:modelValue": D[2] || (D[2] = (z) => a.value = z),
4216
+ "onUpdate:modelValue": L[2] || (L[2] = (V) => a.value = V),
4217
4217
  overlay: !0,
4218
4218
  "z-index": 10
4219
4219
  }, {
4220
- "dialog-header": _e(() => D[3] || (D[3] = [
4220
+ "dialog-header": _e(() => L[3] || (L[3] = [
4221
4221
  Jo("Select Orientation")
4222
4222
  ])),
4223
4223
  default: _e(() => [
@@ -4227,17 +4227,17 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4227
4227
  onValidationSuccess: y
4228
4228
  }, {
4229
4229
  default: _e(() => [
4230
- G("div", Rl, [
4231
- fe(w, {
4230
+ q("div", Rl, [
4231
+ fe(B, {
4232
4232
  modelValue: x.value,
4233
- "onUpdate:modelValue": D[0] || (D[0] = (z) => x.value = z)
4233
+ "onUpdate:modelValue": L[0] || (L[0] = (V) => x.value = V)
4234
4234
  }, {
4235
4235
  default: _e(() => [
4236
- fe(k, {
4236
+ fe(S, {
4237
4237
  value: i(pn).PORTRAIT,
4238
4238
  label: i(t)("report.common.portrait")
4239
4239
  }, null, 8, ["value", "label"]),
4240
- fe(k, {
4240
+ fe(S, {
4241
4241
  value: i(pn).LANDSCAPE,
4242
4242
  label: i(t)("report.common.landscape")
4243
4243
  }, null, 8, ["value", "label"])
@@ -4245,15 +4245,15 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4245
4245
  _: 1
4246
4246
  }, 8, ["modelValue"])
4247
4247
  ]),
4248
- G("div", Nl, [
4249
- D[4] || (D[4] = G("div", { class: "grow" }, null, -1)),
4250
- fe($, {
4248
+ q("div", Nl, [
4249
+ L[4] || (L[4] = q("div", { class: "grow" }, null, -1)),
4250
+ fe(F, {
4251
4251
  label: i(t)("report.common.cancel"),
4252
4252
  variant: "tertiary",
4253
- onClick: D[1] || (D[1] = (z) => a.value = !1)
4253
+ onClick: L[1] || (L[1] = (V) => a.value = !1)
4254
4254
  }, null, 8, ["label"]),
4255
- G("div", null, [
4256
- fe($, {
4255
+ q("div", null, [
4256
+ fe(F, {
4257
4257
  label: i(t)("report.common.download"),
4258
4258
  loading: c.value,
4259
4259
  onClick: v
@@ -4270,32 +4270,32 @@ const Al = { class: "widget-content" }, Fl = /* @__PURE__ */ Ae({
4270
4270
  }
4271
4271
  });
4272
4272
  function Vl(e) {
4273
- const { breakpoints: t } = $t(), { containerRef: n, isTable: o = P(!0) } = e;
4274
- let l = P(1), a = null, r = null, c = null, u = null, f = null, B = null;
4273
+ const { breakpoints: t } = $t(), { containerRef: n, isTable: o = I(!0) } = e;
4274
+ let l = I(1), a = null, r = null, c = null, u = null, f = null, P = null;
4275
4275
  function O() {
4276
4276
  return n.value ? n.value.querySelector("table") : null;
4277
4277
  }
4278
4278
  function x() {
4279
- var I;
4280
- const b = [];
4279
+ var D;
4280
+ const C = [];
4281
4281
  n.value && n.value.querySelectorAll("div,section,main,article,aside").forEach((A) => {
4282
4282
  if (A.scrollWidth > A.clientWidth) {
4283
- const q = window.getComputedStyle(A);
4284
- (q.overflowX === "auto" || q.overflowX === "scroll") && b.push(A);
4283
+ const E = window.getComputedStyle(A);
4284
+ (E.overflowX === "auto" || E.overflowX === "scroll") && C.push(A);
4285
4285
  }
4286
4286
  });
4287
- let T = (I = n.value) == null ? void 0 : I.parentElement;
4288
- for (; T; ) {
4289
- if (T.scrollWidth > T.clientWidth) {
4290
- const A = window.getComputedStyle(T);
4291
- (A.overflowX === "auto" || A.overflowX === "scroll") && b.push(T);
4287
+ let k = (D = n.value) == null ? void 0 : D.parentElement;
4288
+ for (; k; ) {
4289
+ if (k.scrollWidth > k.clientWidth) {
4290
+ const A = window.getComputedStyle(k);
4291
+ (A.overflowX === "auto" || A.overflowX === "scroll") && C.push(k);
4292
4292
  }
4293
- T = T.parentElement;
4293
+ k = k.parentElement;
4294
4294
  }
4295
- return b;
4295
+ return C;
4296
4296
  }
4297
4297
  function v() {
4298
- if (V(), !o.value || !n.value || (r = O(), !r) || (c = r.querySelector("thead"), !c)) return;
4298
+ if (R(), !o.value || !n.value || (r = O(), !r) || (c = r.querySelector("thead"), !c)) return;
4299
4299
  a = document.createElement("div"), a.className = "sticky-header-clone", a.style.cssText = `
4300
4300
  position: fixed;
4301
4301
  top: ${l.value}px;
@@ -4306,37 +4306,37 @@ function Vl(e) {
4306
4306
  pointer-events: none;
4307
4307
  visibility: hidden;
4308
4308
  `;
4309
- const b = document.createElement("table");
4310
- b.className = r.className, b.style.cssText = `
4309
+ const C = document.createElement("table");
4310
+ C.className = r.className, C.style.cssText = `
4311
4311
  table-layout: fixed;
4312
4312
  width: ${r.offsetWidth}px;
4313
4313
  margin: 0;
4314
4314
  border-collapse: collapse;
4315
4315
  pointer-events: auto;
4316
4316
  `;
4317
- const T = c.cloneNode(!0);
4318
- T.style.cssText = "pointer-events: auto;", y(c, T), b.appendChild(T), a.appendChild(b), document.body.appendChild(a), k(), w(), $(), D();
4317
+ const k = c.cloneNode(!0);
4318
+ k.style.cssText = "pointer-events: auto;", y(c, k), C.appendChild(k), a.appendChild(C), document.body.appendChild(a), S(), B(), F(), L();
4319
4319
  }
4320
- function y(b, T) {
4321
- const I = b.querySelectorAll("th, td"), A = T.querySelectorAll("th, td");
4322
- I.forEach((q, Q) => {
4320
+ function y(C, k) {
4321
+ const D = C.querySelectorAll("th, td"), A = k.querySelectorAll("th, td");
4322
+ D.forEach((E, Q) => {
4323
4323
  const oe = A[Q];
4324
4324
  if (!oe) return;
4325
- const j = q, L = window.getComputedStyle(j);
4325
+ const j = E, T = window.getComputedStyle(j);
4326
4326
  Object.assign(oe.style, {
4327
4327
  width: `${j.offsetWidth}px`,
4328
4328
  minWidth: `${j.offsetWidth}px`,
4329
4329
  maxWidth: `${j.offsetWidth}px`,
4330
4330
  height: `${j.offsetHeight}px`,
4331
- padding: L.padding,
4332
- backgroundColor: L.backgroundColor,
4333
- borderBottom: L.borderBottom,
4334
- fontSize: L.fontSize,
4335
- fontWeight: L.fontWeight,
4336
- textAlign: L.textAlign,
4337
- verticalAlign: L.verticalAlign,
4331
+ padding: T.padding,
4332
+ backgroundColor: T.backgroundColor,
4333
+ borderBottom: T.borderBottom,
4334
+ fontSize: T.fontSize,
4335
+ fontWeight: T.fontWeight,
4336
+ textAlign: T.textAlign,
4337
+ verticalAlign: T.verticalAlign,
4338
4338
  boxSizing: "border-box",
4339
- cursor: L.cursor || "pointer",
4339
+ cursor: T.cursor || "pointer",
4340
4340
  pointerEvents: "auto"
4341
4341
  }), oe.onclick = (h) => {
4342
4342
  h.preventDefault(), h.stopPropagation();
@@ -4347,104 +4347,104 @@ function Vl(e) {
4347
4347
  };
4348
4348
  });
4349
4349
  }
4350
- function S() {
4351
- const b = t.value.xs || t.value.sm, T = document.querySelector('[data-editor-header="true"]'), I = document.querySelector('[data-menu-tab="true"]');
4352
- if (b && !T)
4350
+ function _() {
4351
+ const C = t.value.xs || t.value.sm, k = document.querySelector('[data-editor-header="true"]'), D = document.querySelector('[data-menu-tab="true"]');
4352
+ if (C && !k)
4353
4353
  return 1;
4354
- if (T)
4355
- return T.getBoundingClientRect().bottom;
4356
- if (I) {
4357
- let A = I;
4354
+ if (k)
4355
+ return k.getBoundingClientRect().bottom;
4356
+ if (D) {
4357
+ let A = D;
4358
4358
  for (; A; ) {
4359
4359
  if (window.getComputedStyle(A).position === "sticky")
4360
4360
  return A.getBoundingClientRect().bottom;
4361
4361
  A = A.parentElement;
4362
4362
  }
4363
- return I.getBoundingClientRect().bottom;
4363
+ return D.getBoundingClientRect().bottom;
4364
4364
  }
4365
4365
  return l.value;
4366
4366
  }
4367
- function D() {
4367
+ function L() {
4368
4368
  if (!a || !r || !c || !n.value) return;
4369
- const b = n.value.getBoundingClientRect(), T = r.getBoundingClientRect(), I = c.getBoundingClientRect(), A = S();
4370
- if (!(T.top <= A && T.bottom >= A + I.height)) {
4369
+ const C = n.value.getBoundingClientRect(), k = r.getBoundingClientRect(), D = c.getBoundingClientRect(), A = _();
4370
+ if (!(k.top <= A && k.bottom >= A + D.height)) {
4371
4371
  a.style.visibility = "hidden";
4372
4372
  return;
4373
4373
  }
4374
4374
  a.style.visibility = "visible", a.style.top = `${A}px`;
4375
- const Q = window.getComputedStyle(n.value), oe = parseFloat(Q.paddingLeft) || 0, j = parseFloat(Q.paddingRight) || 0, L = b.left + oe, h = b.right - j, p = Math.max(L, b.left), M = Math.min(h, b.right), N = Math.max(0, M - p);
4376
- if (N <= 0) {
4375
+ const Q = window.getComputedStyle(n.value), oe = parseFloat(Q.paddingLeft) || 0, j = parseFloat(Q.paddingRight) || 0, T = C.left + oe, h = C.right - j, p = Math.max(T, C.left), M = Math.min(h, C.right), z = Math.max(0, M - p);
4376
+ if (z <= 0) {
4377
4377
  a.style.visibility = "hidden";
4378
4378
  return;
4379
4379
  }
4380
- a.style.left = `${p}px`, a.style.width = `${N}px`;
4381
- const F = a.querySelector("table");
4382
- F && (F.style.width = `${r.offsetWidth}px`, F.style.marginLeft = `${I.left - p}px`);
4380
+ a.style.left = `${p}px`, a.style.width = `${z}px`;
4381
+ const N = a.querySelector("table");
4382
+ N && (N.style.width = `${r.offsetWidth}px`, N.style.marginLeft = `${D.left - p}px`);
4383
4383
  }
4384
- function k() {
4385
- var T;
4386
- f = () => requestAnimationFrame(D), window.addEventListener("scroll", f, { passive: !0 }), x().forEach((I) => {
4387
- f && I.addEventListener("scroll", f, { passive: !0 });
4384
+ function S() {
4385
+ var k;
4386
+ f = () => requestAnimationFrame(L), window.addEventListener("scroll", f, { passive: !0 }), x().forEach((D) => {
4387
+ f && D.addEventListener("scroll", f, { passive: !0 });
4388
4388
  });
4389
- let b = (T = n.value) == null ? void 0 : T.parentElement;
4390
- for (; b; )
4391
- b !== document.body && (b.scrollHeight > b.clientHeight || b.scrollWidth > b.clientWidth) && b.addEventListener("scroll", f, { passive: !0 }), b = b.parentElement;
4389
+ let C = (k = n.value) == null ? void 0 : k.parentElement;
4390
+ for (; C; )
4391
+ C !== document.body && (C.scrollHeight > C.clientHeight || C.scrollWidth > C.clientWidth) && C.addEventListener("scroll", f, { passive: !0 }), C = C.parentElement;
4392
4392
  }
4393
- function w() {
4393
+ function B() {
4394
4394
  u = new ResizeObserver(() => {
4395
4395
  if (c && a) {
4396
- const b = a.querySelector("thead");
4397
- b && y(c, b);
4398
- const T = a.querySelector("table");
4399
- T && r && (T.style.width = `${r.offsetWidth}px`);
4396
+ const C = a.querySelector("thead");
4397
+ C && y(c, C);
4398
+ const k = a.querySelector("table");
4399
+ k && r && (k.style.width = `${r.offsetWidth}px`);
4400
4400
  }
4401
- D();
4401
+ L();
4402
4402
  }), n.value && u.observe(n.value), r && u.observe(r);
4403
4403
  }
4404
- function $() {
4404
+ function F() {
4405
4405
  if (!c) return;
4406
- const b = yn(() => v(), 100), T = () => {
4406
+ const C = yn(() => v(), 100), k = () => {
4407
4407
  if (c && a) {
4408
- const I = a.querySelector("thead");
4409
- I && y(c, I), D();
4408
+ const D = a.querySelector("thead");
4409
+ D && y(c, D), L();
4410
4410
  }
4411
4411
  };
4412
- B = new MutationObserver((I) => {
4413
- I.some((q) => q.type === "childList" ? q.addedNodes.length > 0 || q.removedNodes.length > 0 : !1) ? b() : T();
4414
- }), B.observe(c, {
4412
+ P = new MutationObserver((D) => {
4413
+ D.some((E) => E.type === "childList" ? E.addedNodes.length > 0 || E.removedNodes.length > 0 : !1) ? C() : k();
4414
+ }), P.observe(c, {
4415
4415
  childList: !0,
4416
4416
  subtree: !0,
4417
4417
  attributes: !0,
4418
4418
  characterData: !0
4419
4419
  });
4420
4420
  }
4421
- function V() {
4422
- var b;
4421
+ function R() {
4422
+ var C;
4423
4423
  if (a && (a.remove(), a = null), f) {
4424
- window.removeEventListener("scroll", f), x().forEach((I) => {
4425
- f && I.removeEventListener("scroll", f);
4424
+ window.removeEventListener("scroll", f), x().forEach((D) => {
4425
+ f && D.removeEventListener("scroll", f);
4426
4426
  });
4427
- let T = (b = n.value) == null ? void 0 : b.parentElement;
4428
- for (; T; )
4429
- T.removeEventListener("scroll", f), T = T.parentElement;
4427
+ let k = (C = n.value) == null ? void 0 : C.parentElement;
4428
+ for (; k; )
4429
+ k.removeEventListener("scroll", f), k = k.parentElement;
4430
4430
  f = null;
4431
4431
  }
4432
- u && (u.disconnect(), u = null), B && (B.disconnect(), B = null), r = null, c = null;
4432
+ u && (u.disconnect(), u = null), P && (P.disconnect(), P = null), r = null, c = null;
4433
4433
  }
4434
- function z() {
4434
+ function V() {
4435
4435
  v();
4436
4436
  }
4437
- return we(o, (b) => {
4438
- b ? v() : V();
4437
+ return we(o, (C) => {
4438
+ C ? v() : R();
4439
4439
  }), we(l, () => {
4440
- a && (a.style.top = `${l.value}px`, D());
4440
+ a && (a.style.top = `${l.value}px`, L());
4441
4441
  }), we(n, () => {
4442
4442
  n.value && o.value && setTimeout(v, 100);
4443
4443
  }), Nt(() => {
4444
4444
  o.value && setTimeout(v, 100);
4445
4445
  }), mo(() => {
4446
- V();
4447
- }), { refresh: z, cleanup: V };
4446
+ R();
4447
+ }), { refresh: V, cleanup: R };
4448
4448
  }
4449
4449
  function zl(e) {
4450
4450
  let t, n, o, l;
@@ -4521,41 +4521,43 @@ function Hl(e) {
4521
4521
  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();
4522
4522
  }
4523
4523
  function Wl(e, t, n = []) {
4524
- var v, y, S, D, k;
4524
+ var v, y, _, L, S, B;
4525
4525
  if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
4526
4526
  return [];
4527
- const o = (w) => w.schemaName === t.schemaName && w.name === t.name && (t.option ? w.option === t.option : !0), l = n.findIndex(o);
4527
+ const o = (F) => F.schemaName === t.schemaName && F.name === t.name && (t.option ? F.option === t.option : !0), l = n.findIndex(o);
4528
4528
  if (l === -1)
4529
4529
  return [];
4530
4530
  if (((v = n[l]) == null ? void 0 : v.hide) === !0)
4531
4531
  return [];
4532
- const a = n.filter((w) => w.hide !== !0), r = a.findIndex(o);
4532
+ if (((y = n[l]) == null ? void 0 : y.moveToColumn) === !0)
4533
+ return [];
4534
+ const a = n.filter((F) => F.hide !== !0 && F.moveToColumn !== !0), r = a.findIndex(o);
4533
4535
  if (r === -1)
4534
4536
  return [];
4535
4537
  const u = e.columns.reduce(
4536
- (w, $, V) => ((($ == null ? void 0 : $.aggregationType) ?? null) === null && w.push(V), w),
4538
+ (F, R, V) => (((R == null ? void 0 : R.aggregationType) ?? null) === null && F.push(V), F),
4537
4539
  []
4538
4540
  )[r];
4539
4541
  if (typeof u == "number")
4540
- return e.rows.map((w) => {
4541
- var $;
4542
- return ($ = w == null ? void 0 : w.cells) == null ? void 0 : $[u];
4543
- }).filter((w) => w != null);
4544
- const f = e.columns.reduce((w, $, V) => (String(($ == null ? void 0 : $.type) ?? ($ == null ? void 0 : $.dataType) ?? "").toUpperCase() === "STRING" && w.push(V), w), []), O = a.reduce(
4545
- (w, $, V) => {
4546
- var b, T, I, A;
4542
+ return e.rows.map((F) => {
4543
+ var R;
4544
+ return (R = F == null ? void 0 : F.cells) == null ? void 0 : R[u];
4545
+ }).filter((F) => F != null);
4546
+ const f = e.columns.reduce((F, R, V) => (String((R == null ? void 0 : R.type) ?? (R == null ? void 0 : R.dataType) ?? "").toUpperCase() === "STRING" && F.push(V), F), []), O = a.reduce(
4547
+ (F, R, V) => {
4548
+ var k, D, A, E;
4547
4549
  return String(
4548
- ((T = (b = e.columns) == null ? void 0 : b[V]) == null ? void 0 : T.type) ?? ((A = (I = e.columns) == null ? void 0 : I[V]) == null ? void 0 : A.dataType) ?? ""
4549
- ).toUpperCase() === "STRING" && w.push(V), w;
4550
+ ((D = (k = e.columns) == null ? void 0 : k[V]) == null ? void 0 : D.type) ?? ((E = (A = e.columns) == null ? void 0 : A[V]) == null ? void 0 : E.dataType) ?? ""
4551
+ ).toUpperCase() === "STRING" && F.push(V), F;
4550
4552
  },
4551
4553
  []
4552
4554
  ).indexOf(r), x = O >= 0 ? f[O] ?? -1 : String(
4553
- ((S = (y = e.columns) == null ? void 0 : y[r]) == null ? void 0 : S.type) ?? ((k = (D = e.columns) == null ? void 0 : D[r]) == null ? void 0 : k.dataType) ?? ""
4555
+ ((L = (_ = e.columns) == null ? void 0 : _[r]) == null ? void 0 : L.type) ?? ((B = (S = e.columns) == null ? void 0 : S[r]) == null ? void 0 : B.dataType) ?? ""
4554
4556
  ).toUpperCase() === "STRING" ? r : -1;
4555
- return x === -1 ? [] : e.rows.map((w) => {
4556
- var $;
4557
- return ($ = w == null ? void 0 : w.cells) == null ? void 0 : $[x];
4558
- }).filter((w) => w != null);
4557
+ return x === -1 ? [] : e.rows.map((F) => {
4558
+ var R;
4559
+ return (R = F == null ? void 0 : F.cells) == null ? void 0 : R[x];
4560
+ }).filter((F) => F != null);
4559
4561
  }
4560
4562
  const Ol = {
4561
4563
  key: 0,
@@ -4606,53 +4608,53 @@ const Ol = {
4606
4608
  }),
4607
4609
  emits: /* @__PURE__ */ He(["update:table-response"], ["update:modelValue"]),
4608
4610
  setup(e, { emit: t }) {
4609
- const n = P(!0), o = We(e, "modelValue"), l = t, a = o.value.widget.config, { t: r, te: c, locale: u } = dt(), f = e, B = P(null), O = g(() => o.value.widget.type === Y.Table), x = g(() => {
4610
- var _;
4611
- return (_ = B.value) == null ? void 0 : _.$el;
4611
+ const n = I(!0), o = We(e, "modelValue"), l = t, a = o.value.widget.config, { t: r, te: c, locale: u } = dt(), f = e, P = I(null), O = g(() => o.value.widget.type === Y.Table), x = g(() => {
4612
+ var w;
4613
+ return (w = P.value) == null ? void 0 : w.$el;
4612
4614
  }), { refresh: v } = Vl({
4613
4615
  containerRef: x,
4614
4616
  isTable: O
4615
- }), y = P(a.rollup), S = P(Mt()), D = P(a.drillDimension), k = g(() => {
4617
+ }), y = I(a.rollup), _ = I(Mt()), L = I(a.drillDimension), S = g(() => {
4616
4618
  if (ke.value.length > 0) {
4617
- const _ = ke.value.findIndex(
4618
- (se) => se.value === D.value
4619
+ const w = ke.value.findIndex(
4620
+ (se) => se.value === L.value
4619
4621
  );
4620
- return _ >= 0 ? _ : 0;
4622
+ return w >= 0 ? w : 0;
4621
4623
  } else
4622
4624
  return -1;
4623
- }), w = g(() => k.value !== 0), $ = g(
4624
- () => k.value != ke.value.length - 1
4625
- ), V = P(a.showTitle ?? !0), z = P(a.titleFontSize ?? 14), b = P(a.titleBold ?? !1), T = P(a.titleItalic ?? !1), I = P(a.titleUnderline ?? !1), A = P(
4625
+ }), B = g(() => S.value !== 0), F = g(
4626
+ () => S.value != ke.value.length - 1
4627
+ ), R = I(a.showTitle ?? !0), V = I(a.titleFontSize ?? 14), C = I(a.titleBold ?? !1), k = I(a.titleItalic ?? !1), D = I(a.titleUnderline ?? !1), A = I(
4626
4628
  Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
4627
- ), q = P(
4629
+ ), E = I(
4628
4630
  Array.isArray(a.chartColorLayers) ? [...a.chartColorLayers] : void 0
4629
- ), Q = P(
4631
+ ), Q = I(
4630
4632
  Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
4631
- ), oe = P(a.chartUseSecondaryMetricShades ?? !0), j = P(a.chartColorBinding), L = P(
4633
+ ), oe = I(a.chartUseSecondaryMetricShades ?? !0), j = I(a.chartColorBinding), T = I(
4632
4634
  Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
4633
- ), h = P(a.lineStyleBinding), p = P(a.showLabel ?? !1), M = P(a.labelAlign ?? xn.center), N = P(a.labelAnchor ?? Cn.center), F = P(a.labelRotation ?? 0), K = P(a.labelOffset ?? 0), H = P(a.labelFontSize ?? 12), J = g(
4635
+ ), h = I(a.lineStyleBinding), p = I(a.showLabel ?? !1), M = I(a.labelAlign ?? xn.center), z = I(a.labelAnchor ?? Cn.center), N = I(a.labelRotation ?? 0), K = I(a.labelOffset ?? 0), H = I(a.labelFontSize ?? 12), J = g(
4634
4636
  () => {
4635
- var _;
4636
- return ((_ = Ue.value) == null ? void 0 : _.showSearchBar) === !0 && (te.value.config.showSearchBar ?? !0);
4637
+ var w;
4638
+ return ((w = Ue.value) == null ? void 0 : w.showSearchBar) === !0 && (te.value.config.showSearchBar ?? !0);
4637
4639
  }
4638
- ), E = P(a.showX ?? !0), ae = P(a.xPosition ?? wn.bottom), me = P(a.showXGrid ?? !1), ue = P(a.showXTick ?? !0), re = P(a.xTickFontSize ?? 12), ve = P(a.showXTitle ?? !1), Ce = P(a.xTitle ?? ""), Ne = P(a.xTitleFontSize ?? 12), $e = P(a.showY ?? !0), Le = P(a.yPosition ?? _n.left), ft = P(a.showYGrid ?? !1), tt = P(a.showYTick ?? !0), nt = P(a.yTickFontSize ?? 12), mt = P(a.showYTitle ?? !1), pt = P(a.yTitle ?? ""), ht = P(a.yTitleFontSize ?? 12), gt = P(a.showLegend ?? void 0), ot = P(a.legendPosition ?? Sn.top), Ee = P(a.usePointStyle ?? !0), at = P(a.legendFontSize), Ge = P(a.legendColor ?? "#6b6b6b"), Ut = P(a.maxTooltipItems), Kt = P(a.stackBarOverlap ?? !1), Xt = P(a.rowHeight ?? null), Tt = P(a.colWidths ?? null), Oe = P(!1), Lt = P(""), { breakpoints: qe, getBreakpointsBoundary: rt } = $t(), Dt = P(), Yt = P(window.innerWidth), xe = g(
4640
+ ), G = I(a.showX ?? !0), ae = I(a.xPosition ?? wn.bottom), me = I(a.showXGrid ?? !1), ue = I(a.showXTick ?? !0), re = I(a.xTickFontSize ?? 12), ve = I(a.showXTitle ?? !1), Ce = I(a.xTitle ?? ""), Ne = I(a.xTitleFontSize ?? 12), $e = I(a.showY ?? !0), Le = I(a.yPosition ?? _n.left), ft = I(a.showYGrid ?? !1), tt = I(a.showYTick ?? !0), nt = I(a.yTickFontSize ?? 12), mt = I(a.showYTitle ?? !1), pt = I(a.yTitle ?? ""), ht = I(a.yTitleFontSize ?? 12), gt = I(a.showLegend ?? void 0), ot = I(a.legendPosition ?? Sn.top), Ee = I(a.usePointStyle ?? !0), at = I(a.legendFontSize), Ge = I(a.legendColor ?? "#6b6b6b"), Ut = I(a.maxTooltipItems), Kt = I(a.stackBarOverlap ?? !1), Xt = I(a.rowHeight ?? null), Tt = I(a.colWidths ?? null), Oe = I(!1), Lt = I(""), { breakpoints: qe, getBreakpointsBoundary: rt } = $t(), Dt = I(), Yt = I(window.innerWidth), xe = g(
4639
4641
  () => f.customScreenWidth === void 0 ? Yt.value : f.customScreenWidth
4640
4642
  ), It = g(
4641
4643
  () => (xe == null ? void 0 : xe.value) > rt("xs")[1] && (xe == null ? void 0 : xe.value) <= rt("sm")[1]
4642
4644
  ), ln = g(
4643
4645
  () => (xe == null ? void 0 : xe.value) > rt("sm")[1] && (xe == null ? void 0 : xe.value) <= rt("md")[1]
4644
4646
  ), sn = g(() => (xe == null ? void 0 : xe.value) > rt("md")[1]), Et = g(() => {
4645
- const _ = o.value.size.width;
4646
- return sn.value || ln.value ? Ll(_) : It.value ? Dl(_) : Il(_);
4647
+ const w = o.value.size.width;
4648
+ return sn.value || ln.value ? Ll(w) : It.value ? Dl(w) : Il(w);
4647
4649
  }), Ue = g(
4648
- () => ia.find((_) => _.type === o.value.widget.type)
4650
+ () => ia.find((w) => w.type === o.value.widget.type)
4649
4651
  ), un = g(
4650
4652
  () => {
4651
- var _, se, Ie;
4652
- return V.value || J.value || (((_ = Ue.value) == null ? void 0 : _.showLabel) ?? !1) || (((se = Ue.value) == null ? void 0 : se.showDrillDimension) ?? !1) && ke.value.length > 0 || (((Ie = Ue.value) == null ? void 0 : Ie.showRollup) ?? !1) && Ve.value.length > 0;
4653
+ var w, se, Ie;
4654
+ return R.value || J.value || (((w = Ue.value) == null ? void 0 : w.showLabel) ?? !1) || (((se = Ue.value) == null ? void 0 : se.showDrillDimension) ?? !1) && ke.value.length > 0 || (((Ie = Ue.value) == null ? void 0 : Ie.showRollup) ?? !1) && Ve.value.length > 0;
4653
4655
  }
4654
4656
  ), je = yn(async () => {
4655
- Yt.value = window.innerWidth, Dt.value = Ro(), S.value = Mt(), await co(), v();
4657
+ Yt.value = window.innerWidth, Dt.value = Ro(), _.value = Mt(), await co(), v();
4656
4658
  }), s = g(() => {
4657
4659
  if (ua(te.value.type, m.value))
4658
4660
  switch (o.value.widget.type) {
@@ -4679,22 +4681,22 @@ const Ol = {
4679
4681
  }
4680
4682
  else
4681
4683
  return Un;
4682
- }), m = P(null), { selectedLocationIds: d, dateRange: C, compareDateRange: R, timeRange: W } = At(an()), Z = na(), { globalFilters: ee, lastAppliedTileFilterIds: U } = At(Z), { businessDataVersion: ie } = At(an()), ge = P(!0), te = g(() => {
4683
- const _ = JSON.parse(JSON.stringify(o.value.widget));
4684
+ }), m = I(null), { selectedLocationIds: d, dateRange: b, compareDateRange: $, timeRange: W } = At(an()), Z = na(), { globalFilters: ee, lastAppliedTileFilterIds: U } = At(Z), { businessDataVersion: ie } = At(an()), ge = I(!0), te = g(() => {
4685
+ const w = JSON.parse(JSON.stringify(o.value.widget));
4684
4686
  return {
4685
- ..._,
4687
+ ...w,
4686
4688
  config: {
4687
- ..._.config,
4689
+ ...w.config,
4688
4690
  rollup: y.value,
4689
- drillDimension: D.value,
4691
+ drillDimension: L.value,
4690
4692
  showGrandTotal: !1
4691
4693
  }
4692
4694
  };
4693
4695
  }), ne = g(() => {
4694
4696
  var Ie;
4695
- const _ = ((Ie = te.value.config.metrics) == null ? void 0 : Ie.length) ?? 0;
4697
+ const w = ((Ie = te.value.config.metrics) == null ? void 0 : Ie.length) ?? 0;
4696
4698
  if (!te.value.config.isBlend)
4697
- return _;
4699
+ return w;
4698
4700
  const se = (te.value.config.joinDatasources ?? []).reduce(
4699
4701
  (st, Ze) => {
4700
4702
  var Qe;
@@ -4702,31 +4704,31 @@ const Ol = {
4702
4704
  },
4703
4705
  0
4704
4706
  );
4705
- return _ + se;
4707
+ return w + se;
4706
4708
  });
4707
4709
  function pe() {
4708
4710
  return {
4709
4711
  data: m.value,
4710
- showTitle: V.value,
4711
- titleFontSize: z.value,
4712
- titleBold: b.value,
4713
- titleItalic: T.value,
4714
- titleUnderline: I.value,
4712
+ showTitle: R.value,
4713
+ titleFontSize: V.value,
4714
+ titleBold: C.value,
4715
+ titleItalic: k.value,
4716
+ titleUnderline: D.value,
4715
4717
  chartColors: A.value,
4716
- chartColorLayers: q.value,
4718
+ chartColorLayers: E.value,
4717
4719
  chartBreakdownColors: Q.value,
4718
4720
  chartUseSecondaryMetricShades: oe.value,
4719
4721
  chartColorBinding: j.value,
4720
4722
  metricCount: ne.value,
4721
- lineStyles: L.value,
4723
+ lineStyles: T.value,
4722
4724
  lineStyleBinding: h.value,
4723
4725
  showLabel: p.value,
4724
- labelAnchor: N.value,
4726
+ labelAnchor: z.value,
4725
4727
  labelAlign: M.value,
4726
- labelRotation: F.value,
4728
+ labelRotation: N.value,
4727
4729
  labelOffset: K.value,
4728
4730
  labelFontSize: H.value,
4729
- showX: E.value,
4731
+ showX: G.value,
4730
4732
  xPosition: ae.value,
4731
4733
  showXGrid: me.value,
4732
4734
  showXTick: ue.value,
@@ -4777,9 +4779,9 @@ const Ol = {
4777
4779
  return { data: m.value };
4778
4780
  }
4779
4781
  }), Ve = g(() => {
4780
- const { config: _ } = o.value.widget;
4781
- if (_.rollup != null) {
4782
- const se = [..._.dimensions].filter((Ie) => !Ie.hide);
4782
+ const { config: w } = o.value.widget;
4783
+ if (w.rollup != null) {
4784
+ const se = [...w.dimensions].filter((Ie) => !Ie.hide);
4783
4785
  return [
4784
4786
  { label: it(r, c, "None", "other"), value: "none" },
4785
4787
  { label: it(r, c, "Grand Total", "other"), value: 0 },
@@ -4791,25 +4793,25 @@ const Ol = {
4791
4793
  }
4792
4794
  return [];
4793
4795
  }), ke = g(() => {
4794
- const { config: _ } = te.value;
4795
- return _.isDrillable ? _.dimensions.map((se) => ({
4796
+ const { config: w } = te.value;
4797
+ return w.isDrillable ? w.dimensions.map((se) => ({
4796
4798
  label: it(r, c, se.label, "other"),
4797
4799
  value: Hl(se)
4798
4800
  })) : [];
4799
4801
  }), lt = g(
4800
- () => `${(d.value || []).join("|")}|${JSON.stringify(C.value)}|${JSON.stringify(
4802
+ () => `${(d.value || []).join("|")}|${JSON.stringify(b.value)}|${JSON.stringify(
4801
4803
  W.value
4802
4804
  )}`
4803
4805
  ), De = g(() => {
4804
- const _ = o.value.id;
4806
+ const w = o.value.id;
4805
4807
  return (ee.value || []).filter(
4806
- (se) => Array.isArray(se.tileIds) && se.tileIds.includes(_)
4808
+ (se) => Array.isArray(se.tileIds) && se.tileIds.includes(w)
4807
4809
  );
4808
4810
  });
4809
4811
  we(
4810
4812
  () => o.value.widget.config,
4811
- (_) => {
4812
- y.value = _.rollup, V.value = _.showTitle ?? !0, z.value = _.titleFontSize ?? 14, b.value = _.titleBold ?? !1, T.value = _.titleItalic ?? !1, I.value = _.titleUnderline ?? !1, A.value = Array.isArray(_.chartColors) ? [..._.chartColors] : void 0, q.value = Array.isArray(_.chartColorLayers) ? [..._.chartColorLayers] : void 0, Q.value = Array.isArray(_.chartBreakdownColors) ? [..._.chartBreakdownColors] : void 0, oe.value = _.chartUseSecondaryMetricShades ?? !0, j.value = _.chartColorBinding, L.value = Array.isArray(_.lineStyles) ? [..._.lineStyles] : void 0, h.value = _.lineStyleBinding, p.value = _.showLabel ?? !1, M.value = _.labelAlign ?? xn.center, N.value = _.labelAnchor ?? Cn.center, F.value = _.labelRotation ?? 0, K.value = _.labelOffset ?? 0, H.value = _.labelFontSize ?? 12, E.value = _.showX ?? !0, ae.value = _.xPosition ?? wn.bottom, me.value = _.showXGrid ?? !1, ue.value = _.showXTick ?? !0, re.value = _.xTickFontSize ?? 12, ve.value = _.showXTitle ?? !1, Ce.value = _.xTitle ?? "", Ne.value = _.xTitleFontSize ?? 12, $e.value = _.showY ?? !0, Le.value = _.yPosition ?? _n.left, ft.value = _.showYGrid ?? !1, tt.value = _.showYTick ?? !0, nt.value = _.yTickFontSize ?? 12, mt.value = _.showYTitle ?? !1, pt.value = _.yTitle ?? "", ht.value = _.yTitleFontSize ?? 12, gt.value = _.showLegend ?? void 0, ot.value = _.legendPosition ?? Sn.top, Ee.value = _.usePointStyle ?? !0, at.value = _.legendFontSize, Ge.value = _.legendColor ?? "#6b6b6b", Ut.value = _.maxTooltipItems, Kt.value = _.stackBarOverlap ?? !1, Xt.value = _.rowHeight ?? null, Tt.value = _.colWidths ?? null, S.value = Mt();
4813
+ (w) => {
4814
+ y.value = w.rollup, R.value = w.showTitle ?? !0, V.value = w.titleFontSize ?? 14, C.value = w.titleBold ?? !1, k.value = w.titleItalic ?? !1, D.value = w.titleUnderline ?? !1, A.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0, E.value = Array.isArray(w.chartColorLayers) ? [...w.chartColorLayers] : void 0, Q.value = Array.isArray(w.chartBreakdownColors) ? [...w.chartBreakdownColors] : void 0, oe.value = w.chartUseSecondaryMetricShades ?? !0, j.value = w.chartColorBinding, T.value = Array.isArray(w.lineStyles) ? [...w.lineStyles] : void 0, h.value = w.lineStyleBinding, p.value = w.showLabel ?? !1, M.value = w.labelAlign ?? xn.center, z.value = w.labelAnchor ?? Cn.center, N.value = w.labelRotation ?? 0, K.value = w.labelOffset ?? 0, H.value = w.labelFontSize ?? 12, G.value = w.showX ?? !0, ae.value = w.xPosition ?? wn.bottom, me.value = w.showXGrid ?? !1, ue.value = w.showXTick ?? !0, re.value = w.xTickFontSize ?? 12, ve.value = w.showXTitle ?? !1, Ce.value = w.xTitle ?? "", Ne.value = w.xTitleFontSize ?? 12, $e.value = w.showY ?? !0, Le.value = w.yPosition ?? _n.left, ft.value = w.showYGrid ?? !1, tt.value = w.showYTick ?? !0, nt.value = w.yTickFontSize ?? 12, mt.value = w.showYTitle ?? !1, pt.value = w.yTitle ?? "", ht.value = w.yTitleFontSize ?? 12, gt.value = w.showLegend ?? void 0, ot.value = w.legendPosition ?? Sn.top, Ee.value = w.usePointStyle ?? !0, at.value = w.legendFontSize, Ge.value = w.legendColor ?? "#6b6b6b", Ut.value = w.maxTooltipItems, Kt.value = w.stackBarOverlap ?? !1, Xt.value = w.rowHeight ?? null, Tt.value = w.colWidths ?? null, _.value = Mt();
4813
4815
  },
4814
4816
  { deep: !0, immediate: !0 }
4815
4817
  ), we(
@@ -4825,22 +4827,22 @@ const Ol = {
4825
4827
  y.value !== null && (o.value.widget.config.rollup = y.value);
4826
4828
  }), we(
4827
4829
  lt,
4828
- (_, se) => {
4829
- se !== void 0 && _ !== se && De.value.length > 0 && Vn();
4830
+ (w, se) => {
4831
+ se !== void 0 && w !== se && De.value.length > 0 && Vn();
4830
4832
  },
4831
4833
  { flush: "pre" }
4832
4834
  ), we(
4833
4835
  () => o.value,
4834
- (_, se) => {
4835
- !f.isTileEditor || !_ || se !== void 0 && Vn();
4836
+ (w, se) => {
4837
+ !f.isTileEditor || !w || se !== void 0 && Vn();
4836
4838
  },
4837
4839
  { deep: !0, flush: "pre" }
4838
4840
  ), we(
4839
4841
  [
4840
4842
  () => te.value,
4841
- () => C.value,
4843
+ () => b.value,
4842
4844
  () => W.value,
4843
- () => R.value,
4845
+ () => $.value,
4844
4846
  () => d.value,
4845
4847
  () => ie.value
4846
4848
  ],
@@ -4850,8 +4852,8 @@ const Ol = {
4850
4852
  { deep: !0, flush: "post" }
4851
4853
  ), we(
4852
4854
  () => U.value,
4853
- (_) => {
4854
- f.isEditingStyle || _.includes(o.value.id) && fn();
4855
+ (w) => {
4856
+ f.isEditingStyle || w.includes(o.value.id) && fn();
4855
4857
  },
4856
4858
  { flush: "post" }
4857
4859
  ), we(
@@ -4884,12 +4886,12 @@ const Ol = {
4884
4886
  dn();
4885
4887
  try {
4886
4888
  n.value = !0, qt && qt.abort(), qt = new AbortController();
4887
- const _ = qt.signal, se = ie.value, Ie = await yn(
4889
+ const w = qt.signal, se = ie.value, Ie = await yn(
4888
4890
  aa,
4889
4891
  500
4890
4892
  )({
4891
4893
  widget: te.value,
4892
- signal: _,
4894
+ signal: w,
4893
4895
  tileId: o.value.id
4894
4896
  });
4895
4897
  if (ie.value === se) {
@@ -4901,11 +4903,11 @@ const Ol = {
4901
4903
  De.value.length > 0 && De.value.forEach((Ze) => {
4902
4904
  const Qe = Wl(Ie, Ze, st), mn = Array.from(new Set(Qe));
4903
4905
  cn(ra(Ze, f.reportId), mn);
4904
- }), S.value = Mt(), setTimeout(() => v(), 100);
4906
+ }), _.value = Mt(), setTimeout(() => v(), 100);
4905
4907
  }
4906
4908
  n.value = !1;
4907
- } catch (_) {
4908
- _.code !== "ERR_CANCELED" && (m.value = null, Je.open({ message: `Invalid chart ${te.value.type}`, type: "error" }), console.log(_), n.value = !1);
4909
+ } catch (w) {
4910
+ w.code !== "ERR_CANCELED" && (m.value = null, Je.open({ message: `Invalid chart ${te.value.type}`, type: "error" }), console.log(w), n.value = !1);
4909
4911
  } finally {
4910
4912
  Gt();
4911
4913
  }
@@ -4916,32 +4918,32 @@ const Ol = {
4916
4918
  return `${Ml(o.value.size.height, o.value.widget.type)}px`;
4917
4919
  }
4918
4920
  function No() {
4919
- const _ = k.value - 1;
4920
- _ >= 0 && (D.value = ke.value[_].value);
4921
+ const w = S.value - 1;
4922
+ w >= 0 && (L.value = ke.value[w].value);
4921
4923
  }
4922
4924
  function $o() {
4923
- const _ = k.value + 1;
4924
- _ >= 0 && _ < ke.value.length && (D.value = ke.value[_].value);
4925
+ const w = S.value + 1;
4926
+ w >= 0 && w < ke.value.length && (L.value = ke.value[w].value);
4925
4927
  }
4926
- const zn = P(yt.EXCEL), Hn = P(), Vo = Object.values(yt).map((_) => ({
4927
- label: la(_),
4928
- value: _,
4928
+ const zn = I(yt.EXCEL), Hn = I(), Vo = Object.values(yt).map((w) => ({
4929
+ label: la(w),
4930
+ value: w,
4929
4931
  onClick: async () => {
4930
- _ === yt.EXCEL || _ === yt.PDFFULLSIZE || _ === yt.PDFRECEIPT ? await po({
4931
- reportType: _,
4932
+ w === yt.EXCEL || w === yt.PDFFULLSIZE || w === yt.PDFRECEIPT ? await po({
4933
+ reportType: w,
4932
4934
  index: f.index,
4933
4935
  isCombinedLocationLayout: ge.value,
4934
4936
  timeRange: W.value,
4935
- dateRange: C.value,
4937
+ dateRange: b.value,
4936
4938
  locationIds: d.value
4937
- }) : _ === yt.PDF && (zn.value = _, Hn.value = f.index, Oe.value = !0);
4939
+ }) : w === yt.PDF && (zn.value = w, Hn.value = f.index, Oe.value = !0);
4938
4940
  }
4939
4941
  })), zo = f.flat || te.value.type === Y.Spacer ? "flat" : "outlined", Ho = te.value.type === Y.Spacer ? "p-0" : "p-16", Wo = g(() => f.flat ? "w-full" : Et.value);
4940
- return (_, se) => {
4942
+ return (w, se) => {
4941
4943
  const Ie = ce("FmTooltip"), st = ce("FmSearch"), Ze = ce("FmCheckbox"), Qe = ce("FmButton"), mn = ce("FmSelect"), Oo = ce("FmMenuItem"), Uo = ce("FmMenu"), Ko = ce("FmForm"), Xo = ce("FmCircularProgress"), Yo = ce("FmCard");
4942
4944
  return X(), de(Yo, {
4943
4945
  ref_key: "tileCard",
4944
- ref: B,
4946
+ ref: P,
4945
4947
  class: Se(`${Wo.value} ${i(Ho)}`),
4946
4948
  variant: i(zo),
4947
4949
  style: Pe({ height: Dt.value })
@@ -4955,7 +4957,7 @@ const Ol = {
4955
4957
  }, null, 8, ["modelValue", "report-type", "index"]),
4956
4958
  n.value ? (X(), de(Xo, { key: 1 })) : (X(), le("div", Ol, [
4957
4959
  (X(), de(fo(s.value), {
4958
- key: S.value,
4960
+ key: _.value,
4959
4961
  modelValue: Me.value,
4960
4962
  "onUpdate:modelValue": se[4] || (se[4] = (vt) => Me.value = vt),
4961
4963
  "tile-index": f.index
@@ -4977,17 +4979,17 @@ const Ol = {
4977
4979
  "z-index": 99
4978
4980
  }, {
4979
4981
  default: _e(() => [
4980
- V.value !== !1 ? (X(), le("p", {
4982
+ R.value !== !1 ? (X(), le("p", {
4981
4983
  key: 0,
4982
4984
  style: Pe({
4983
- fontSize: z.value + "px",
4984
- fontWeight: b.value ? "bold" : "normal",
4985
- fontStyle: T.value ? "italic" : "normal",
4986
- paddingRight: T.value ? "4px" : "0px",
4987
- textDecoration: I.value ? "underline" : "none"
4985
+ fontSize: V.value + "px",
4986
+ fontWeight: C.value ? "bold" : "normal",
4987
+ fontStyle: k.value ? "italic" : "normal",
4988
+ paddingRight: k.value ? "4px" : "0px",
4989
+ textDecoration: D.value ? "underline" : "none"
4988
4990
  }),
4989
4991
  class: Se(["text-fm-color-typo-secondary line-clamp-1", [
4990
- z.value <= 18 ? "fm-typo-en-body-md-400" : "",
4992
+ V.value <= 18 ? "fm-typo-en-body-md-400" : "",
4991
4993
  te.value.description ? "border-b-2 border-dashed border-gray-300" : ""
4992
4994
  ]])
4993
4995
  }, Te(i(it)(i(r), i(c), te.value.title, "other")), 7)) : he("", !0)
@@ -5012,13 +5014,13 @@ const Ol = {
5012
5014
  fe(Qe, {
5013
5015
  icon: "arrow_upward",
5014
5016
  variant: "tertiary",
5015
- disabled: !w.value,
5017
+ disabled: !B.value,
5016
5018
  onClick: No
5017
5019
  }, null, 8, ["disabled"]),
5018
5020
  fe(Qe, {
5019
5021
  icon: "arrow_downward",
5020
5022
  variant: "tertiary",
5021
- disabled: !$.value,
5023
+ disabled: !F.value,
5022
5024
  onClick: $o
5023
5025
  }, null, 8, ["disabled"])
5024
5026
  ])) : he("", !0),