@feedmepos/mf-report 5.24.3 → 5.24.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/{App-CH45KtMi.js → App-CJjtEvCd.js} +61 -61
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C3gJtMm-.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-B5DNvvB7.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-Duu-LyqL.js → Default.vue_vue_type_script_setup_true_lang-BsPh59cR.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CtV3BEJO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DWft8Sie.js} +620 -600
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BDXjO_Sp.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-9lOgWzji.js} +4398 -4376
  6. package/dist/{InsightView-BWVD5IIN.js → InsightView-DTFWoh2b.js} +4 -4
  7. package/dist/{Integration-BVN352PX.js → Integration-syhbdF_d.js} +3 -3
  8. package/dist/{Integrations-BUojqghs.js → Integrations-DzQFDTzA.js} +2 -2
  9. package/dist/{Layout-B5kumbJ0.js → Layout-CMjQcuy_.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D1-Jlcbz.js → MenuTab.vue_vue_type_script_setup_true_lang-BUcq4EoE.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DDbNobqI.js → NavigationTab.vue_vue_type_script_setup_true_lang-BUGf_Gx0.js} +3 -3
  12. package/dist/{OverviewView-DJOcIDmH.js → OverviewView-Ksmn1tHX.js} +4 -4
  13. package/dist/{Report-CuZpyzTW.js → Report-DccVLICj.js} +3 -3
  14. package/dist/{ReportEditor-B3haFTU6.js → ReportEditor-BpJE0vo3.js} +3 -3
  15. package/dist/{ReportView-4JWtTu3y.js → ReportView-BC1lGzxw.js} +6 -6
  16. package/dist/{Setting-Dl8HsHao.js → Setting-D2WKQ7hu.js} +3 -3
  17. package/dist/{TileEditor-1hvqccL1.js → TileEditor-CjkX4lXZ.js} +5 -5
  18. package/dist/{TransitionFade-9A8VZ8Fm.js → TransitionFade-DCnaURka.js} +4 -4
  19. package/dist/{app-CBHDMsDR.js → app-BKTTPSRU.js} +12 -12
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-DaLXwMTs.js → formatChartData.worker-CVpRfTHb.js} +13 -13
  22. package/dist/assets/{processTableData.worker-Be0ZD94L.js → processTableData.worker-CiRM5jBF.js} +13 -13
  23. package/dist/style.css +1 -1
  24. package/dist/{useRestaurantPermission-CGonMXA-.js → useRestaurantPermission-Bmw1sAa2.js} +1 -1
  25. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { computed as m, defineComponent as Ne, ref as D, onMounted as $e, onBeforeUnmount as Qn, resolveComponent as pe, createBlock as ye, openBlock as Y, Transition as Io, withCtx as Te, createElementBlock as ve, createCommentVNode as Ce, createElementVNode as Q, unref as r, normalizeStyle as Ie, withModifiers as Qt, toDisplayString as Ae, createVNode as he, Fragment as Ve, renderList as Rt, normalizeClass as Le, watch as we, nextTick as Me, mergeModels as Ye, useModel as Oe, renderSlot as nt, h as jt, createSlots as Mo, resolveDynamicComponent as eo, toRaw as Bo, markRaw as Ao, createTextVNode as Fo, onUnmounted as to, withDirectives as Po, vShow as Ro } from "vue";
2
- import { W as oe, i as St, j as zo, S as Bt, v as Pt, k as No, l as cn, m as no, d as Vo, q as $o, R as pt, n as Ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BDXjO_Sp.js";
3
- import { h as Wo, z as Eo, i as Oo, j as Uo, a as nn, u as _n } from "./app-CBHDMsDR.js";
4
- import { d as hn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C3gJtMm-.js";
1
+ import { computed as m, defineComponent as Ne, ref as D, onMounted as $e, onBeforeUnmount as Qn, resolveComponent as ve, createBlock as ye, openBlock as Y, Transition as Io, withCtx as Te, createElementBlock as he, createCommentVNode as Ce, createElementVNode as ee, unref as r, normalizeStyle as Le, withModifiers as Qt, toDisplayString as Pe, createVNode as me, Fragment as Ve, renderList as Rt, normalizeClass as De, watch as we, nextTick as Me, mergeModels as Ye, useModel as Oe, renderSlot as nt, h as jt, createSlots as Mo, resolveDynamicComponent as eo, toRaw as Bo, markRaw as Po, createTextVNode as Fo, onUnmounted as to, withDirectives as Ao, vShow as Ro } from "vue";
2
+ import { W as oe, i as St, j as zo, S as Bt, v as At, k as No, l as cn, m as no, d as Vo, q as $o, R as pt, n as Ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-9lOgWzji.js";
3
+ import { h as Wo, z as Eo, i as Oo, j as Uo, a as nn, u as _n } from "./app-BKTTPSRU.js";
4
+ import { d as hn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B5DNvvB7.js";
5
5
  import { storeToRefs as st, defineStore as Ko } from "pinia";
6
6
  import { C as mn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as qo } from "@feedmepos/mf-common";
@@ -211,7 +211,7 @@ function _t({
211
211
  colorMode: h,
212
212
  customColors: c
213
213
  }) {
214
- const b = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, N = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, $ = l !== !1, F = e * b + N, y = h === "clustered" ? on : ao(c), g = zt(i == null ? void 0 : i[e * b]) ?? y[e % y.length], I = $ && N > 0 ? Vn(g, $n(N)) : zt(i == null ? void 0 : i[F]) ?? (N > 0 ? Vn(g, $n(N)) : g);
214
+ const C = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, N = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, $ = l !== !1, F = e * C + N, y = h === "clustered" ? on : ao(c), g = zt(i == null ? void 0 : i[e * C]) ?? y[e % y.length], I = $ && N > 0 ? Vn(g, $n(N)) : zt(i == null ? void 0 : i[F]) ?? (N > 0 ? Vn(g, $n(N)) : g);
215
215
  let L = typeof s == "number" ? s : 1;
216
216
  return o && (L = L * 0.6), ro(I, L);
217
217
  }
@@ -407,7 +407,7 @@ function ca(e, n, t) {
407
407
  }
408
408
  if (!c.element)
409
409
  return;
410
- const b = c.element, N = o ? h : l, $ = o ? b.y : b.x, F = N.getPixelForValue(c.index), y = $ ?? F;
410
+ const C = c.element, N = o ? h : l, $ = o ? C.y : C.x, F = N.getPixelForValue(c.index), y = $ ?? F;
411
411
  fn(e.ctx, o, e.chartArea, y);
412
412
  }
413
413
  function Vt(e) {
@@ -454,7 +454,7 @@ function pa() {
454
454
  return En(), s;
455
455
  };
456
456
  }
457
- const At = {
457
+ const Pt = {
458
458
  "en-US": Uo.report.widget.comparisonTooltip.viewBreakdown,
459
459
  "zh-CN": Oo.report.widget.comparisonTooltip.viewBreakdown,
460
460
  "zh-Hant": Eo.report.widget.comparisonTooltip.viewBreakdown,
@@ -462,7 +462,7 @@ const At = {
462
462
  };
463
463
  function io() {
464
464
  const e = qo();
465
- return e in At ? At[e] : e.startsWith("zh") ? At["zh-CN"] : e.startsWith("th") ? At["th-TH"] : At["en-US"];
465
+ return e in Pt ? Pt[e] : e.startsWith("zh") ? Pt["zh-CN"] : e.startsWith("th") ? Pt["th-TH"] : Pt["en-US"];
466
466
  }
467
467
  function va(e) {
468
468
  return e == null ? null : typeof e != "string" ? [] : e.split("#").map((n) => n.trim()).filter((n) => n.length > 0);
@@ -573,8 +573,8 @@ function Ma(e) {
573
573
  return `<button type="button" data-tooltip-full-details="true" style="${ta}">${wn(e)}</button>`;
574
574
  }
575
575
  function fo(e, n, t, o, s, i, l, h) {
576
- var P;
577
- const c = (P = e[0]) == null ? void 0 : P.label, b = va(c), N = (b == null ? void 0 : b[0]) ?? "", $ = b == null ? void 0 : b[1], F = [], y = [], g = /* @__PURE__ */ new Set();
576
+ var A;
577
+ const c = (A = e[0]) == null ? void 0 : A.label, C = va(c), N = (C == null ? void 0 : C[0]) ?? "", $ = C == null ? void 0 : C[1], F = [], y = [], g = /* @__PURE__ */ new Set();
578
578
  i.forEach((w, u) => {
579
579
  if (g.has(u))
580
580
  return;
@@ -630,7 +630,7 @@ function Kn(e) {
630
630
  return e.scrollHeight - e.clientHeight > fa;
631
631
  }
632
632
  function Jt(e, n, t, o, s, i, l, h, c) {
633
- const b = fo(
633
+ const C = fo(
634
634
  n,
635
635
  t,
636
636
  o,
@@ -640,7 +640,7 @@ function Jt(e, n, t, o, s, i, l, h, c) {
640
640
  h,
641
641
  c
642
642
  );
643
- return e.innerHTML !== b.html && (e.innerHTML = b.html, Ua(e)), b;
643
+ return e.innerHTML !== C.html && (e.innerHTML = C.html, Ua(e)), C;
644
644
  }
645
645
  function Ba(e, n, t, o, s, i, l, h, c) {
646
646
  if (Number.isFinite(s))
@@ -658,13 +658,13 @@ function Ba(e, n, t, o, s, i, l, h, c) {
658
658
  ),
659
659
  maxTooltipItems: s
660
660
  };
661
- const b = Math.max(xn, n.length);
662
- let N = b, $ = Jt(
661
+ const C = Math.max(xn, n.length);
662
+ let N = C, $ = Jt(
663
663
  e,
664
664
  n,
665
665
  t,
666
666
  o,
667
- b,
667
+ C,
668
668
  i,
669
669
  l,
670
670
  h,
@@ -673,9 +673,9 @@ function Ba(e, n, t, o, s, i, l, h, c) {
673
673
  if (!Kn(e))
674
674
  return {
675
675
  markup: $,
676
- maxTooltipItems: b
676
+ maxTooltipItems: C
677
677
  };
678
- let F = xn, y = b;
678
+ let F = xn, y = C;
679
679
  for (; F <= y; ) {
680
680
  const I = Math.floor((F + y) / 2), L = Jt(
681
681
  e,
@@ -695,7 +695,7 @@ function Ba(e, n, t, o, s, i, l, h, c) {
695
695
  N = I, $ = L, F = I + 1;
696
696
  }
697
697
  return {
698
- markup: N === b ? $ : Jt(
698
+ markup: N === C ? $ : Jt(
699
699
  e,
700
700
  n,
701
701
  t,
@@ -714,24 +714,24 @@ function qn(e, n) {
714
714
  if (o.startsWith("#")) {
715
715
  const l = o.slice(1), h = l.length === 3 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length === 4 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length >= 6 ? l.slice(0, 6) : "";
716
716
  if (/^[0-9a-fA-F]{6}$/.test(h)) {
717
- const c = Number.parseInt(h.slice(0, 2), 16), b = Number.parseInt(h.slice(2, 4), 16), N = Number.parseInt(h.slice(4, 6), 16);
718
- return `rgba(${c}, ${b}, ${N}, ${t})`;
717
+ const c = Number.parseInt(h.slice(0, 2), 16), C = Number.parseInt(h.slice(2, 4), 16), N = Number.parseInt(h.slice(4, 6), 16);
718
+ return `rgba(${c}, ${C}, ${N}, ${t})`;
719
719
  }
720
720
  }
721
721
  const s = o.match(/^rgba?\(([^)]+)\)$/i);
722
722
  if (s) {
723
723
  const l = s[1].split(",").map((h) => h.trim());
724
724
  if (l.length >= 3) {
725
- const [h, c, b] = l;
726
- return `rgba(${h}, ${c}, ${b}, ${t})`;
725
+ const [h, c, C] = l;
726
+ return `rgba(${h}, ${c}, ${C}, ${t})`;
727
727
  }
728
728
  }
729
729
  const i = o.match(/^hsla?\(([^)]+)\)$/i);
730
730
  if (i) {
731
731
  const l = i[1].split(",").map((h) => h.trim());
732
732
  if (l.length >= 3) {
733
- const [h, c, b] = l;
734
- return `hsla(${h}, ${c}, ${b}, ${t})`;
733
+ const [h, c, C] = l;
734
+ return `hsla(${h}, ${c}, ${C}, ${t})`;
735
735
  }
736
736
  }
737
737
  return e;
@@ -741,7 +741,7 @@ function Zt(e, n) {
741
741
  (t) => typeof t == "string" ? qn(t, n) : t
742
742
  ) : e;
743
743
  }
744
- function Aa(e) {
744
+ function Pa(e) {
745
745
  e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
746
746
  borderColor: Reflect.get(e, "borderColor"),
747
747
  backgroundColor: Reflect.get(e, "backgroundColor"),
@@ -753,7 +753,7 @@ function Fa(e) {
753
753
  const n = e.__tooltipOriginalStyle;
754
754
  n && (Reflect.set(e, "borderColor", n.borderColor), Reflect.set(e, "backgroundColor", n.backgroundColor), Reflect.set(e, "pointBorderColor", n.pointBorderColor), Reflect.set(e, "pointBackgroundColor", n.pointBackgroundColor));
755
755
  }
756
- function Pa(e, n) {
756
+ function Aa(e, n) {
757
757
  const t = e.__tooltipOriginalStyle;
758
758
  t && (Reflect.set(e, "borderColor", Zt(t.borderColor, n)), Reflect.set(e, "backgroundColor", Zt(t.backgroundColor, n)), Reflect.set(e, "pointBorderColor", Zt(t.pointBorderColor, n)), Reflect.set(
759
759
  e,
@@ -777,7 +777,7 @@ function en(e, n) {
777
777
  const t = e.data.datasets;
778
778
  if (t.length !== 0) {
779
779
  if (t.forEach((o, s) => {
780
- Aa(o), !n || s === n.datasetIndex ? Fa(o) : Pa(o, ha);
780
+ Pa(o), !n || s === n.datasetIndex ? Fa(o) : Aa(o, ha);
781
781
  }), typeof e.setActiveElements == "function")
782
782
  try {
783
783
  n ? e.setActiveElements([
@@ -820,29 +820,29 @@ function Dn(e) {
820
820
  return window.getComputedStyle(n).position === "static" && (n.style.position = "relative"), n;
821
821
  }
822
822
  function In(e, n, t, o, s, i, l = "center", h = !1) {
823
- const c = n.getBoundingClientRect(), b = t.getBoundingClientRect(), N = t.scrollLeft, $ = t.scrollTop, F = t.clientWidth, y = t.clientHeight, g = e;
823
+ const c = n.getBoundingClientRect(), C = t.getBoundingClientRect(), N = t.scrollLeft, $ = t.scrollTop, F = t.clientWidth, y = t.clientHeight, g = e;
824
824
  (!Number.isFinite(g.__cachedWidth) || !Number.isFinite(g.__cachedHeight) || g.__measurementHostWidth !== F || g.__measurementHostHeight !== y) && (g.__cachedWidth = e.offsetWidth, g.__cachedHeight = e.offsetHeight, g.__measurementHostWidth = F, g.__measurementHostHeight = y);
825
- const L = g.__cachedWidth ?? e.offsetWidth, B = g.__cachedHeight ?? e.offsetHeight, v = 8, f = c.left - b.left + N + o, T = c.top - b.top + $ + s, k = h ? l === "left" ? f - L - v : f + v : l === "left" ? f - L - v : l === "right" ? f + v : f - L / 2, x = h ? T + v : i ? T - B / 2 : T + v, P = N + v;
825
+ const L = g.__cachedWidth ?? e.offsetWidth, B = g.__cachedHeight ?? e.offsetHeight, v = 8, f = c.left - C.left + N + o, T = c.top - C.top + $ + s, k = h ? l === "left" ? f - L - v : f + v : l === "left" ? f - L - v : l === "right" ? f + v : f - L / 2, x = h ? T + v : i ? T - B / 2 : T + v, A = N + v;
826
826
  let w = $ + v;
827
827
  const u = document.querySelector('[data-menu-tab="true"]');
828
828
  if (u) {
829
- const re = u.getBoundingClientRect().bottom - b.top + $ + v;
830
- w = Math.max(w, re);
829
+ const le = u.getBoundingClientRect().bottom - C.top + $ + v;
830
+ w = Math.max(w, le);
831
831
  }
832
- const M = Math.max(P, N + F - L - v), W = Math.max(w, $ + y - B - v), K = Math.round(Math.min(Math.max(P, k), M)), te = Math.round(Math.min(Math.max(w, x), W));
832
+ const M = Math.max(A, N + F - L - v), W = Math.max(w, $ + y - B - v), K = Math.round(Math.min(Math.max(A, k), M)), te = Math.round(Math.min(Math.max(w, x), W));
833
833
  g.__lastLeftPx === K && g.__lastTopPx === te || (g.__lastLeftPx = K, g.__lastTopPx = te, e.style.left = `${K}px`, e.style.top = `${te}px`);
834
834
  }
835
835
  function mo(e) {
836
836
  return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
837
837
  }
838
838
  function za(e, n, t, o, s, i, l) {
839
- const h = n.getBoundingClientRect(), c = o - h.left, b = s - h.top;
840
- !Number.isFinite(c) || !Number.isFinite(b) || (e.dataset.cursorCanvasX = String(c), e.dataset.cursorCanvasY = String(b), e.dataset.caretX = String(c), e.dataset.caretY = String(b), e.dataset.anchorDirection = l, In(
839
+ const h = n.getBoundingClientRect(), c = o - h.left, C = s - h.top;
840
+ !Number.isFinite(c) || !Number.isFinite(C) || (e.dataset.cursorCanvasX = String(c), e.dataset.cursorCanvasY = String(C), e.dataset.caretX = String(c), e.dataset.caretY = String(C), e.dataset.anchorDirection = l, In(
841
841
  e,
842
842
  n,
843
843
  t,
844
844
  c,
845
- b,
845
+ C,
846
846
  i,
847
847
  l,
848
848
  !0
@@ -959,12 +959,12 @@ function Ka(e, n, t, o, s) {
959
959
  if (!(s != null && s.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
960
960
  return;
961
961
  const h = (v) => {
962
- var P, w, u, M;
962
+ var A, w, u, M;
963
963
  if (v.length === 0)
964
964
  return !1;
965
- const f = (P = v.find(
965
+ const f = (A = v.find(
966
966
  (W) => typeof W.dataIndex == "number"
967
- )) == null ? void 0 : P.dataIndex, T = ((w = t == null ? void 0 : t.data) == null ? void 0 : w.datasets) ?? [], k = (u = t == null ? void 0 : t.config) == null ? void 0 : u.type, x = fo(
967
+ )) == null ? void 0 : A.dataIndex, T = ((w = t == null ? void 0 : t.data) == null ? void 0 : w.datasets) ?? [], k = (u = t == null ? void 0 : t.config) == null ? void 0 : u.type, x = fo(
968
968
  v,
969
969
  o,
970
970
  (s == null ? void 0 : s.viewFullDetailsLabel) ?? io(),
@@ -978,16 +978,16 @@ function Ka(e, n, t, o, s) {
978
978
  }, c = ((L = t == null ? void 0 : t.tooltip) == null ? void 0 : L.dataPoints) ?? [];
979
979
  if (h(c))
980
980
  return;
981
- const b = t == null ? void 0 : t.getElementsAtEventForMode;
982
- if (typeof b != "function")
981
+ const C = t == null ? void 0 : t.getElementsAtEventForMode;
982
+ if (typeof C != "function")
983
983
  return;
984
- const N = b.call(
984
+ const N = C.call(
985
985
  t,
986
986
  l,
987
987
  "nearest",
988
988
  { intersect: !0 },
989
989
  !1
990
- ), $ = b.call(
990
+ ), $ = C.call(
991
991
  t,
992
992
  l,
993
993
  "index",
@@ -1015,7 +1015,7 @@ function Ka(e, n, t, o, s) {
1015
1015
  const h = t == null ? void 0 : t.getElementsAtEventForMode, c = t == null ? void 0 : t.tooltip;
1016
1016
  if (typeof h != "function" || typeof (c == null ? void 0 : c.setActiveElements) != "function")
1017
1017
  return;
1018
- const b = h.call(
1018
+ const C = h.call(
1019
1019
  t,
1020
1020
  l,
1021
1021
  "nearest",
@@ -1027,7 +1027,7 @@ function Ka(e, n, t, o, s) {
1027
1027
  "index",
1028
1028
  { intersect: !1 },
1029
1029
  !1
1030
- ), F = (b.length > 0 ? b : N).filter((y) => typeof y.datasetIndex == "number" && typeof y.index == "number").map((y) => ({
1030
+ ), F = (C.length > 0 ? C : N).filter((y) => typeof y.datasetIndex == "number" && typeof y.index == "number").map((y) => ({
1031
1031
  datasetIndex: y.datasetIndex,
1032
1032
  index: y.index
1033
1033
  }));
@@ -1048,9 +1048,9 @@ function Ka(e, n, t, o, s) {
1048
1048
  }
1049
1049
  e.__onCanvasClick && e.__onCanvasClick(l);
1050
1050
  }, n.addEventListener("pointerup", e.__onCanvasPointerUp)), s != null && s.onViewFullDetails && (e.__onDetailsClick || (e.__onDetailsClick = (l) => {
1051
- var b;
1051
+ var C;
1052
1052
  const h = l.target;
1053
- h != null && h.closest('[data-tooltip-full-details="true"]') && (l.preventDefault(), l.stopPropagation(), e.__detailsPayload && ((b = s.onViewFullDetails) == null || b.call(s, e.__detailsPayload, t), Xe(e, t)));
1053
+ h != null && h.closest('[data-tooltip-full-details="true"]') && (l.preventDefault(), l.stopPropagation(), e.__detailsPayload && ((C = s.onViewFullDetails) == null || C.call(s, e.__detailsPayload, t), Xe(e, t)));
1054
1054
  }, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
1055
1055
  e.__isTooltipHovered = !0, xt(e);
1056
1056
  }, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
@@ -1087,7 +1087,7 @@ function qa(e, n, t) {
1087
1087
  function Xa(e, n) {
1088
1088
  const { maxTooltipItems: t } = co(n);
1089
1089
  return ({ chart: o, tooltip: s }) => {
1090
- var K, te, G, re;
1090
+ var K, te, G, le;
1091
1091
  if (typeof document > "u" || typeof window > "u")
1092
1092
  return;
1093
1093
  const i = o == null ? void 0 : o.canvas;
@@ -1102,19 +1102,19 @@ function Xa(e, n) {
1102
1102
  n != null && n.onViewFullDetails ? Yn(c, o) : Xe(c, o);
1103
1103
  return;
1104
1104
  }
1105
- const b = (s == null ? void 0 : s.dataPoints) ?? [];
1106
- if (b.length === 0) {
1105
+ const C = (s == null ? void 0 : s.dataPoints) ?? [];
1106
+ if (C.length === 0) {
1107
1107
  if (yt() && bt(c))
1108
1108
  return;
1109
1109
  n != null && n.onViewFullDetails ? Yn(c, o) : Xe(c, o);
1110
1110
  return;
1111
1111
  }
1112
1112
  xt(c);
1113
- const N = (n == null ? void 0 : n.viewFullDetailsLabel) ?? io(), $ = !!(n != null && n.onViewFullDetails), F = (K = b.find((J) => typeof J.dataIndex == "number")) == null ? void 0 : K.dataIndex, y = ((te = o == null ? void 0 : o.data) == null ? void 0 : te.datasets) ?? [], g = (G = o == null ? void 0 : o.config) == null ? void 0 : G.type, {
1113
+ const N = (n == null ? void 0 : n.viewFullDetailsLabel) ?? io(), $ = !!(n != null && n.onViewFullDetails), F = (K = C.find((J) => typeof J.dataIndex == "number")) == null ? void 0 : K.dataIndex, y = ((te = o == null ? void 0 : o.data) == null ? void 0 : te.datasets) ?? [], g = (G = o == null ? void 0 : o.config) == null ? void 0 : G.type, {
1114
1114
  markup: { detailsPayload: I, hasCollapsedValues: L }
1115
1115
  } = Ba(
1116
1116
  c,
1117
- b,
1117
+ C,
1118
1118
  e,
1119
1119
  N,
1120
1120
  t,
@@ -1129,15 +1129,15 @@ function Xa(e, n) {
1129
1129
  c.style.opacity = "0";
1130
1130
  return;
1131
1131
  }
1132
- const x = (re = o == null ? void 0 : o.scales) == null ? void 0 : re.x, P = x && typeof x.getPixelForValue == "function" ? x.getPixelForValue(0) : NaN, w = e ? b.reduce((J, _) => {
1132
+ const x = (le = o == null ? void 0 : o.scales) == null ? void 0 : le.x, A = x && typeof x.getPixelForValue == "function" ? x.getPixelForValue(0) : NaN, w = e ? C.reduce((J, _) => {
1133
1133
  const E = _ == null ? void 0 : _.element, z = E == null ? void 0 : E.x;
1134
1134
  if (typeof z != "number" || !Number.isFinite(z))
1135
1135
  return J;
1136
1136
  if (!Number.isFinite(J))
1137
1137
  return z;
1138
- const R = Number.isFinite(P) ? P : v, A = Math.abs(J - R);
1139
- return Math.abs(z - R) > A ? z : J;
1140
- }, Number.NaN) : Number.NaN, u = f, M = T, W = e ? Number.isFinite(P) && Number.isFinite(w) && w < P ? "left" : "right" : "center";
1138
+ const R = Number.isFinite(A) ? A : v, P = Math.abs(J - R);
1139
+ return Math.abs(z - R) > P ? z : J;
1140
+ }, Number.NaN) : Number.NaN, u = f, M = T, W = e ? Number.isFinite(A) && Number.isFinite(w) && w < A ? "left" : "right" : "center";
1141
1141
  In(
1142
1142
  c,
1143
1143
  i,
@@ -1267,7 +1267,7 @@ function Tt(e) {
1267
1267
  size: e.yTitleFontSize
1268
1268
  }
1269
1269
  }
1270
- })), b = m(() => ({
1270
+ })), C = m(() => ({
1271
1271
  display: e.showLegend,
1272
1272
  position: e.legendPosition,
1273
1273
  usePointStyle: e.usePointStyle,
@@ -1314,7 +1314,7 @@ function Tt(e) {
1314
1314
  }
1315
1315
  }
1316
1316
  })), N = m(() => e.isTransposed), $ = m(() => e.chartWidth), F = m(() => e.chartHeight);
1317
- return { datalabels: l, xCfg: h, yCfg: c, isTransposed: N, legend: b, chartWidth: $, chartHeight: F };
1317
+ return { datalabels: l, xCfg: h, yCfg: c, isTransposed: N, legend: C, chartWidth: $, chartHeight: F };
1318
1318
  }
1319
1319
  const Ya = {
1320
1320
  key: 0,
@@ -1333,7 +1333,7 @@ const Ya = {
1333
1333
  const t = e, o = n, { t: s } = it(), i = D(null), l = D(Gn), h = D(!1), c = m({
1334
1334
  get: () => t.modelValue,
1335
1335
  set: (u) => o("update:modelValue", u)
1336
- }), b = m(() => {
1336
+ }), C = m(() => {
1337
1337
  var u;
1338
1338
  return (((u = t.detailsPayload) == null ? void 0 : u.sections) ?? []).filter((M) => M.values.length > 0);
1339
1339
  }), N = m(() => ({
@@ -1378,7 +1378,7 @@ const Ya = {
1378
1378
  function x() {
1379
1379
  l.value = B(l.value);
1380
1380
  }
1381
- function P(u) {
1381
+ function A(u) {
1382
1382
  var K;
1383
1383
  if (!c.value)
1384
1384
  return;
@@ -1392,11 +1392,11 @@ const Ya = {
1392
1392
  c.value && u.key === "Escape" && I();
1393
1393
  }
1394
1394
  return $e(() => {
1395
- l.value = B(l.value), document.addEventListener("pointerdown", P, !0), document.addEventListener("keydown", w), window.addEventListener("resize", x);
1395
+ l.value = B(l.value), document.addEventListener("pointerdown", A, !0), document.addEventListener("keydown", w), window.addEventListener("resize", x);
1396
1396
  }), Qn(() => {
1397
- f(), document.removeEventListener("pointerdown", P, !0), document.removeEventListener("keydown", w), window.removeEventListener("resize", x);
1397
+ f(), document.removeEventListener("pointerdown", A, !0), document.removeEventListener("keydown", w), window.removeEventListener("resize", x);
1398
1398
  }), (u, M) => {
1399
- const W = pe("FmButton");
1399
+ const W = ve("FmButton");
1400
1400
  return Y(), ye(Io, {
1401
1401
  "enter-active-class": "transform transition duration-200 ease-out",
1402
1402
  "enter-from-class": "translate-x-full opacity-0",
@@ -1406,24 +1406,24 @@ const Ya = {
1406
1406
  "leave-to-class": "translate-x-full opacity-0"
1407
1407
  }, {
1408
1408
  default: Te(() => [
1409
- c.value ? (Y(), ve("div", Ya, [
1410
- Q("div", {
1409
+ c.value ? (Y(), he("div", Ya, [
1410
+ ee("div", {
1411
1411
  ref_key: "panelRef",
1412
1412
  ref: i,
1413
1413
  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",
1414
- style: Ie(N.value),
1414
+ style: Le(N.value),
1415
1415
  role: "dialog",
1416
1416
  "aria-modal": "false",
1417
1417
  "aria-label": r(s)("report.widget.comparisonTooltip.fullBreakdownTitle")
1418
1418
  }, [
1419
- Q("div", {
1419
+ ee("div", {
1420
1420
  class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
1421
1421
  onPointerdown: Qt(k, ["prevent"])
1422
1422
  }, null, 32),
1423
- Q("div", ja, [
1424
- Q("div", Ja, Ae(r(s)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
1425
- Q("div", Za, [
1426
- he(W, {
1423
+ ee("div", ja, [
1424
+ ee("div", Ja, Pe(r(s)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
1425
+ ee("div", Za, [
1426
+ me(W, {
1427
1427
  class: "relative z-30 h-9 w-9 shrink-0",
1428
1428
  variant: "tertiary",
1429
1429
  icon: "close",
@@ -1432,17 +1432,17 @@ const Ya = {
1432
1432
  }, null, 8, ["aria-label"])
1433
1433
  ])
1434
1434
  ]),
1435
- Q("div", {
1435
+ ee("div", {
1436
1436
  class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
1437
1437
  onMouseleave: g
1438
1438
  }, [
1439
- (Y(!0), ve(Ve, null, Rt(b.value, (K, te) => (Y(), ve("div", {
1439
+ (Y(!0), he(Ve, null, Rt(C.value, (K, te) => (Y(), he("div", {
1440
1440
  key: `${K.title || "section"}-${te}`,
1441
1441
  class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
1442
1442
  }, [
1443
- K.title ? (Y(), ve("p", Qa, Ae(K.title), 1)) : Ce("", !0),
1444
- (Y(!0), ve(Ve, null, Rt(K.values, (G, re) => (Y(), ve("button", {
1445
- key: `${G.text}-${re}`,
1443
+ K.title ? (Y(), he("p", Qa, Pe(K.title), 1)) : Ce("", !0),
1444
+ (Y(!0), he(Ve, null, Rt(K.values, (G, le) => (Y(), he("button", {
1445
+ key: `${G.text}-${le}`,
1446
1446
  type: "button",
1447
1447
  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",
1448
1448
  onMouseenter: (J) => y(G),
@@ -1450,17 +1450,17 @@ const Ya = {
1450
1450
  onMouseleave: g,
1451
1451
  onBlur: g
1452
1452
  }, [
1453
- Q("span", tr, [
1454
- Q("span", {
1455
- class: Le([
1453
+ ee("span", tr, [
1454
+ ee("span", {
1455
+ class: De([
1456
1456
  "inline-block h-3 w-3 shrink-0 box-border",
1457
1457
  G.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)]"
1458
1458
  ]),
1459
- style: Ie({ backgroundColor: G.color })
1459
+ style: Le({ backgroundColor: G.color })
1460
1460
  }, null, 6),
1461
- Q("span", nr, Ae(F(G)), 1)
1461
+ ee("span", nr, Pe(F(G)), 1)
1462
1462
  ]),
1463
- Q("span", or, Ae($(G)), 1)
1463
+ ee("span", or, Pe($(G)), 1)
1464
1464
  ], 40, er))), 128))
1465
1465
  ]))), 128))
1466
1466
  ], 32)
@@ -1483,7 +1483,7 @@ function Ht(e, n) {
1483
1483
  function c(F, y) {
1484
1484
  s.value = F, i.value = y ?? l(), o.value = !0;
1485
1485
  }
1486
- function b(F) {
1486
+ function C(F) {
1487
1487
  en(l(), F.focusTarget);
1488
1488
  }
1489
1489
  function N() {
@@ -1499,7 +1499,7 @@ function Ht(e, n) {
1499
1499
  tooltipDetailsPayload: s,
1500
1500
  tooltipOptions: $,
1501
1501
  handleTooltipDetailsSheetVisibility: h,
1502
- handleTooltipDetailsHover: b,
1502
+ handleTooltipDetailsHover: C,
1503
1503
  handleTooltipDetailsLeave: N
1504
1504
  };
1505
1505
  }
@@ -1526,13 +1526,14 @@ const rr = {
1526
1526
  chartColors: {},
1527
1527
  chartBreakdownColors: {},
1528
1528
  chartUseSecondaryMetricShades: { type: Boolean },
1529
- metricCount: {}
1529
+ metricCount: {},
1530
+ usePointStyle: { type: Boolean }
1530
1531
  },
1531
1532
  emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
1532
1533
  setup(e, { emit: n }) {
1533
- const t = e, o = n, { t: s } = it(), i = D([]), l = D(0), h = D(!1), c = D(!1), b = D(0), N = D(null), $ = D(null), F = D(null), y = D(null), g = D(!1), I = D(0), L = D(0), B = D(!1), v = D(0), f = D(0), T = m(() => t.enabled !== !1), k = m(() => t.position === "left" || t.position === "right");
1534
+ const t = e, o = n, { t: s } = it(), i = D([]), l = D(0), h = D(!1), c = D(!1), C = D(0), N = D(null), $ = D(null), F = D(null), y = D(null), g = D(!1), I = D(0), L = D(0), B = D(!1), v = D(0), f = D(0), T = m(() => t.enabled !== !1), k = m(() => t.position === "left" || t.position === "right");
1534
1535
  let x = null;
1535
- const P = m(
1536
+ const A = m(
1536
1537
  () => h.value && c.value && g.value
1537
1538
  ), w = m(() => ({
1538
1539
  height: `${Math.max(0, I.value)}px`,
@@ -1542,8 +1543,8 @@ const rr = {
1542
1543
  K({ height: a, width: 0 });
1543
1544
  }
1544
1545
  function K({ height: a, width: p }) {
1545
- var C;
1546
- const d = (C = t.chartRef) == null ? void 0 : C.$el;
1546
+ var b;
1547
+ const d = (b = t.chartRef) == null ? void 0 : b.$el;
1547
1548
  d instanceof HTMLElement && (d.style.setProperty("--legend-panel-height", `${Math.max(0, Math.floor(a))}px`), d.style.setProperty("--legend-panel-width", `${Math.max(0, Math.floor(p))}px`));
1548
1549
  }
1549
1550
  function te() {
@@ -1554,10 +1555,10 @@ const rr = {
1554
1555
  if (a)
1555
1556
  return a;
1556
1557
  const p = N.value, d = [p == null ? void 0 : p.parentElement, p == null ? void 0 : p.closest(".h-full"), p];
1557
- for (const C of d) {
1558
- if (!(C instanceof HTMLElement))
1558
+ for (const b of d) {
1559
+ if (!(b instanceof HTMLElement))
1559
1560
  continue;
1560
- const H = C.querySelector("canvas");
1561
+ const H = b.querySelector("canvas");
1561
1562
  if (!(H instanceof HTMLCanvasElement))
1562
1563
  continue;
1563
1564
  const O = mn.getChart(H);
@@ -1566,12 +1567,12 @@ const rr = {
1566
1567
  }
1567
1568
  return null;
1568
1569
  }
1569
- function re() {
1570
+ function le() {
1570
1571
  J();
1571
1572
  }
1572
1573
  function J() {
1573
- var C;
1574
- const a = (C = N.value) == null ? void 0 : C.getBoundingClientRect(), p = Number((a == null ? void 0 : a.height) ?? 0), d = Number((a == null ? void 0 : a.width) ?? 0);
1574
+ var b;
1575
+ const a = (b = N.value) == null ? void 0 : b.getBoundingClientRect(), p = Number((a == null ? void 0 : a.height) ?? 0), d = Number((a == null ? void 0 : a.width) ?? 0);
1575
1576
  if (Number.isFinite(p) && p >= 0) {
1576
1577
  K({
1577
1578
  height: k.value ? 0 : p,
@@ -1587,12 +1588,12 @@ const rr = {
1587
1588
  g.value = !1, I.value = 0, L.value = 0;
1588
1589
  return;
1589
1590
  }
1590
- const p = a.clientHeight, d = a.scrollHeight, C = a.scrollTop, H = d > p + 1;
1591
+ const p = a.clientHeight, d = a.scrollHeight, b = a.scrollTop, H = d > p + 1;
1591
1592
  if (g.value = H, !H || p <= 0) {
1592
1593
  I.value = 0, L.value = 0;
1593
1594
  return;
1594
1595
  }
1595
- const O = p, j = Math.max(18, Math.round(p / d * O)), se = Math.max(0, O - j), q = Math.max(1, d - p), fe = Math.round(C / q * se);
1596
+ const O = p, j = Math.max(18, Math.round(p / d * O)), se = Math.max(0, O - j), q = Math.max(1, d - p), fe = Math.round(b / q * se);
1596
1597
  I.value = j, L.value = fe;
1597
1598
  }
1598
1599
  function E() {
@@ -1602,19 +1603,19 @@ const rr = {
1602
1603
  const p = F.value, d = $.value;
1603
1604
  if (!p || !d || !g.value)
1604
1605
  return;
1605
- const C = d.getBoundingClientRect(), H = a.clientY - C.top, O = Math.max(0, H - I.value / 2), j = Math.max(1, p.clientHeight - I.value), se = Math.min(1, O / j), q = Math.max(0, p.scrollHeight - p.clientHeight);
1606
+ const b = d.getBoundingClientRect(), H = a.clientY - b.top, O = Math.max(0, H - I.value / 2), j = Math.max(1, p.clientHeight - I.value), se = Math.min(1, O / j), q = Math.max(0, p.scrollHeight - p.clientHeight);
1606
1607
  p.scrollTop = se * q, _();
1607
1608
  }
1608
1609
  function R(a) {
1609
1610
  g.value && (B.value = !0, v.value = a.clientY, f.value = L.value);
1610
1611
  }
1611
- function A(a) {
1612
+ function P(a) {
1612
1613
  if (!B.value)
1613
1614
  return;
1614
1615
  const p = F.value;
1615
1616
  if (!p)
1616
1617
  return;
1617
- const d = a.clientY - v.value, C = Math.max(1, p.clientHeight - I.value), O = Math.min(C, Math.max(0, f.value + d)) / C, j = Math.max(0, p.scrollHeight - p.clientHeight);
1618
+ const d = a.clientY - v.value, b = Math.max(1, p.clientHeight - I.value), O = Math.min(b, Math.max(0, f.value + d)) / b, j = Math.max(0, p.scrollHeight - p.clientHeight);
1618
1619
  p.scrollTop = O * j, _();
1619
1620
  }
1620
1621
  function V() {
@@ -1622,29 +1623,26 @@ const rr = {
1622
1623
  }
1623
1624
  function ne() {
1624
1625
  var p;
1625
- const a = [
1626
- (p = t.chartRef) == null ? void 0 : p.$el,
1627
- N.value
1628
- ];
1626
+ const a = [(p = t.chartRef) == null ? void 0 : p.$el, N.value];
1629
1627
  for (const d of a) {
1630
1628
  if (!(d instanceof HTMLElement))
1631
1629
  continue;
1632
- const C = d.closest('[class*="fm-card"]');
1633
- if (C)
1634
- return C;
1630
+ const b = d.closest('[class*="fm-card"]');
1631
+ if (b)
1632
+ return b;
1635
1633
  }
1636
1634
  for (const d of a) {
1637
1635
  if (!(d instanceof HTMLElement))
1638
1636
  continue;
1639
- const C = d.closest(".h-full") ?? d.parentElement;
1640
- if (C)
1641
- return C;
1637
+ const b = d.closest(".h-full") ?? d.parentElement;
1638
+ if (b)
1639
+ return b;
1642
1640
  }
1643
1641
  return null;
1644
1642
  }
1645
1643
  function U() {
1646
- var d, C, H, O;
1647
- const a = (C = (d = N.value) == null ? void 0 : d.closest(".chart-layout")) == null ? void 0 : C.parentElement;
1644
+ var d, b, H, O;
1645
+ const a = (b = (d = N.value) == null ? void 0 : d.closest(".chart-layout")) == null ? void 0 : b.parentElement;
1648
1646
  if (a instanceof HTMLElement)
1649
1647
  return a;
1650
1648
  const p = (H = t.chartRef) == null ? void 0 : H.$el;
@@ -1656,8 +1654,8 @@ const rr = {
1656
1654
  return null;
1657
1655
  }
1658
1656
  function X() {
1659
- var d, C, H, O;
1660
- const a = ((d = N.value) == null ? void 0 : d.closest(".chart-layout")) ?? ((O = (H = (C = t.chartRef) == null ? void 0 : C.$el) == null ? void 0 : H.closest) == null ? void 0 : O.call(H, ".chart-layout")) ?? null;
1657
+ var d, b, H, O;
1658
+ const a = ((d = N.value) == null ? void 0 : d.closest(".chart-layout")) ?? ((O = (H = (b = t.chartRef) == null ? void 0 : b.$el) == null ? void 0 : H.closest) == null ? void 0 : O.call(H, ".chart-layout")) ?? null;
1661
1659
  if (!(a instanceof HTMLElement))
1662
1660
  return null;
1663
1661
  const p = Number(a.getBoundingClientRect().width);
@@ -1673,7 +1671,7 @@ const rr = {
1673
1671
  const p = ne();
1674
1672
  if (!p)
1675
1673
  return null;
1676
- const d = window.getComputedStyle(p), C = parseFloat(d.paddingTop) || 0, H = parseFloat(d.paddingBottom) || 0, O = p.getBoundingClientRect().height - C - H;
1674
+ const d = window.getComputedStyle(p), b = parseFloat(d.paddingTop) || 0, H = parseFloat(d.paddingBottom) || 0, O = p.getBoundingClientRect().height - b - H;
1677
1675
  return Number.isFinite(O) && O > 0 ? O : null;
1678
1676
  }
1679
1677
  function ae() {
@@ -1686,7 +1684,7 @@ const rr = {
1686
1684
  const p = ne();
1687
1685
  if (!p)
1688
1686
  return null;
1689
- const d = window.getComputedStyle(p), C = parseFloat(d.paddingLeft) || 0, H = parseFloat(d.paddingRight) || 0, O = p.getBoundingClientRect().width - C - H;
1687
+ const d = window.getComputedStyle(p), b = parseFloat(d.paddingLeft) || 0, H = parseFloat(d.paddingRight) || 0, O = p.getBoundingClientRect().width - b - H;
1690
1688
  return Number.isFinite(O) && O > 0 ? O : null;
1691
1689
  }
1692
1690
  function ue() {
@@ -1694,25 +1692,25 @@ const rr = {
1694
1692
  if (k.value)
1695
1693
  return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p - Jn)) : d != null ? Math.max(0, Math.floor(d - Jn)) : 120;
1696
1694
  if (d != null) {
1697
- const C = d * 0.3, H = d - ur, O = Math.min(C, H);
1695
+ const b = d * 0.3, H = d - ur, O = Math.min(b, H);
1698
1696
  return Math.max(0, Math.floor(O));
1699
1697
  }
1700
1698
  return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p * 0.3)) : 120;
1701
1699
  }
1702
- function me() {
1700
+ function pe() {
1703
1701
  var O;
1704
1702
  const a = X();
1705
1703
  if (a != null)
1706
1704
  return Math.max(0, Math.floor(a * 0.3));
1707
- const p = G(), d = Number(p == null ? void 0 : p.width), C = Number(((O = N.value) == null ? void 0 : O.getBoundingClientRect().width) ?? 0);
1705
+ const p = G(), d = Number(p == null ? void 0 : p.width), b = Number(((O = N.value) == null ? void 0 : O.getBoundingClientRect().width) ?? 0);
1708
1706
  if (Number.isFinite(d) && d > 0) {
1709
- const j = d + (Number.isFinite(C) ? C : 0);
1707
+ const j = d + (Number.isFinite(b) ? b : 0);
1710
1708
  return Math.max(0, Math.floor(j * 0.3));
1711
1709
  }
1712
1710
  const H = ae();
1713
1711
  return H != null ? Math.max(0, Math.floor(H * 0.3)) : 180;
1714
1712
  }
1715
- function le(a, p) {
1713
+ function re(a, p) {
1716
1714
  const d = t.chartColorBinding;
1717
1715
  if (d) {
1718
1716
  const O = typeof a.datasetIndex == "number" ? a.datasetIndex : p, j = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : Math.max(1, Number(i.value.length));
@@ -1745,8 +1743,8 @@ const rr = {
1745
1743
  const se = typeof a.index == "number" ? a.index : O;
1746
1744
  return tt({ index: se, customColors: t.chartColors });
1747
1745
  }
1748
- const C = a;
1749
- return ce(a.fillStyle) || ce(a.strokeStyle) || ce(C.color) || "#9ca3af";
1746
+ const b = a;
1747
+ return ce(a.fillStyle) || ce(a.strokeStyle) || ce(b.color) || "#9ca3af";
1750
1748
  }
1751
1749
  function ce(a) {
1752
1750
  return typeof a == "string" && a.trim().length > 0 ? a : Array.isArray(a) ? a.map((d) => ce(d)).find((d) => typeof d == "string" && d.trim().length > 0) ?? "" : "";
@@ -1761,34 +1759,34 @@ const rr = {
1761
1759
  if (a.length <= 1)
1762
1760
  return a;
1763
1761
  const p = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : 1;
1764
- return [...a.map((C, H) => {
1765
- const O = typeof C.datasetIndex == "number" ? C.datasetIndex : H, j = Ct({
1762
+ return [...a.map((b, H) => {
1763
+ const O = typeof b.datasetIndex == "number" ? b.datasetIndex : H, j = Ct({
1766
1764
  fallbackIndex: O,
1767
1765
  metricCount: p
1768
1766
  });
1769
1767
  return {
1770
- item: C,
1768
+ item: b,
1771
1769
  originalIndex: H,
1772
1770
  breakdownIndex: j
1773
1771
  };
1774
- })].sort((C, H) => C.breakdownIndex !== H.breakdownIndex ? C.breakdownIndex - H.breakdownIndex : C.originalIndex - H.originalIndex).map((C) => C.item);
1772
+ })].sort((b, H) => b.breakdownIndex !== H.breakdownIndex ? b.breakdownIndex - H.breakdownIndex : b.originalIndex - H.originalIndex).map((b) => b.item);
1775
1773
  }
1776
1774
  function We(a) {
1777
1775
  if (a.length <= 1)
1778
1776
  return a;
1779
1777
  const p = /* @__PURE__ */ new Map(), d = [];
1780
- for (const C of a) {
1781
- const H = typeof C.index == "number", O = C.datasetIndex, j = typeof O == "number" && !H, se = typeof C.text == "string" ? C.text.trim() : "";
1778
+ for (const b of a) {
1779
+ const H = typeof b.index == "number", O = b.datasetIndex, j = typeof O == "number" && !H, se = typeof b.text == "string" ? b.text.trim() : "";
1782
1780
  if (!j || !se) {
1783
- d.push(C);
1781
+ d.push(b);
1784
1782
  continue;
1785
1783
  }
1786
1784
  const q = se.toLowerCase(), fe = p.get(q);
1787
1785
  if (fe == null) {
1788
1786
  d.push({
1789
- ...C,
1787
+ ...b,
1790
1788
  datasetIndexes: [O],
1791
- datasetKeys: typeof C.datasetKey == "string" && C.datasetKey.trim().length > 0 ? [C.datasetKey] : []
1789
+ datasetKeys: typeof b.datasetKey == "string" && b.datasetKey.trim().length > 0 ? [b.datasetKey] : []
1792
1790
  }), p.set(q, d.length - 1);
1793
1791
  continue;
1794
1792
  }
@@ -1802,17 +1800,17 @@ const rr = {
1802
1800
  const ie = new Set(
1803
1801
  Array.isArray(be.datasetKeys) ? be.datasetKeys : typeof be.datasetKey == "string" && be.datasetKey.trim().length > 0 ? [be.datasetKey] : []
1804
1802
  );
1805
- typeof C.datasetKey == "string" && C.datasetKey.trim().length > 0 && ie.add(C.datasetKey), d[fe] = {
1803
+ typeof b.datasetKey == "string" && b.datasetKey.trim().length > 0 && ie.add(b.datasetKey), d[fe] = {
1806
1804
  ...be,
1807
- datasetIndexes: Array.from(de).sort((ee, _e) => ee - _e),
1805
+ datasetIndexes: Array.from(de).sort((Q, _e) => Q - _e),
1808
1806
  datasetKeys: Array.from(ie),
1809
- hidden: be.hidden === !0 && C.hidden === !0
1807
+ hidden: be.hidden === !0 && b.hidden === !0
1810
1808
  };
1811
1809
  }
1812
1810
  return d;
1813
1811
  }
1814
1812
  function Ge(a) {
1815
- var q, fe, be, de, ie, ee;
1813
+ var q, fe, be, de, ie, Q;
1816
1814
  const p = a == null ? void 0 : a.legend;
1817
1815
  if (typeof (p == null ? void 0 : p.buildLabels) == "function")
1818
1816
  try {
@@ -1822,21 +1820,21 @@ const rr = {
1822
1820
  const d = Be(p == null ? void 0 : p.legendItems);
1823
1821
  if (d.length > 0)
1824
1822
  return d;
1825
- const C = (fe = (q = a == null ? void 0 : a.options) == null ? void 0 : q.plugins) == null ? void 0 : fe.legend, H = C == null ? void 0 : C.labels, O = H == null ? void 0 : H.generateLabels, j = (ee = (ie = (de = (be = mn.defaults) == null ? void 0 : be.plugins) == null ? void 0 : de.legend) == null ? void 0 : ie.labels) == null ? void 0 : ee.generateLabels;
1823
+ const b = (fe = (q = a == null ? void 0 : a.options) == null ? void 0 : q.plugins) == null ? void 0 : fe.legend, H = b == null ? void 0 : b.labels, O = H == null ? void 0 : H.generateLabels, j = (Q = (ie = (de = (be = mn.defaults) == null ? void 0 : be.plugins) == null ? void 0 : de.legend) == null ? void 0 : ie.labels) == null ? void 0 : Q.generateLabels;
1826
1824
  let se = Be(
1827
1825
  typeof O == "function" ? O(a) : []
1828
1826
  );
1829
- return se.length === 0 && typeof j == "function" && (se = Be(j(a))), typeof (H == null ? void 0 : H.filter) == "function" && (se = se.filter((_e) => H.filter(_e, a.data))), typeof (H == null ? void 0 : H.sort) == "function" && (se = [...se].sort((_e, Pe) => H.sort(_e, Pe, a.data))), (C == null ? void 0 : C.reverse) === !0 && (se = [...se].reverse()), se;
1827
+ return se.length === 0 && typeof j == "function" && (se = Be(j(a))), typeof (H == null ? void 0 : H.filter) == "function" && (se = se.filter((_e) => H.filter(_e, a.data))), typeof (H == null ? void 0 : H.sort) == "function" && (se = [...se].sort((_e, Ae) => H.sort(_e, Ae, a.data))), (b == null ? void 0 : b.reverse) === !0 && (se = [...se].reverse()), se;
1830
1828
  }
1831
1829
  function ut(a) {
1832
1830
  var d;
1833
- return (Array.isArray((d = a == null ? void 0 : a.data) == null ? void 0 : d.datasets) ? a.data.datasets : []).map((C, H) => {
1834
- const O = ce((C == null ? void 0 : C.borderColor) ?? (C == null ? void 0 : C.backgroundColor)), j = vt({
1831
+ return (Array.isArray((d = a == null ? void 0 : a.data) == null ? void 0 : d.datasets) ? a.data.datasets : []).map((b, H) => {
1832
+ const O = ce((b == null ? void 0 : b.borderColor) ?? (b == null ? void 0 : b.backgroundColor)), j = vt({
1835
1833
  datasetIndex: H,
1836
- label: C == null ? void 0 : C.label
1834
+ label: b == null ? void 0 : b.label
1837
1835
  });
1838
1836
  return {
1839
- text: ot(C == null ? void 0 : C.label),
1837
+ text: ot(b == null ? void 0 : b.label),
1840
1838
  fillStyle: O,
1841
1839
  strokeStyle: O,
1842
1840
  datasetIndex: H,
@@ -1851,7 +1849,7 @@ const rr = {
1851
1849
  function je(a, p) {
1852
1850
  if (!Array.isArray(a) || a.length === 0)
1853
1851
  return [];
1854
- const d = a, C = d[0], H = Array.isArray(C == null ? void 0 : C.labels) ? C.labels : [], O = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [], j = H.length > 0 ? H : O, se = C == null ? void 0 : C.backgroundColor;
1852
+ const d = a, b = d[0], H = Array.isArray(b == null ? void 0 : b.labels) ? b.labels : [], O = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [], j = H.length > 0 ? H : O, se = b == null ? void 0 : b.backgroundColor;
1855
1853
  return d.length === 1 && Array.isArray(se) && se.length > 1 ? se.map((q, fe) => ({
1856
1854
  text: j[fe] == null || String(j[fe]).trim().length === 0 ? `Series ${fe + 1}` : String(j[fe]),
1857
1855
  fillStyle: ce(q),
@@ -1901,23 +1899,23 @@ const rr = {
1901
1899
  const d = F.value;
1902
1900
  if (!d || a.length === 0)
1903
1901
  return 0;
1904
- const C = Math.max(0, p - jn);
1902
+ const b = Math.max(0, p - jn);
1905
1903
  if (k.value) {
1906
- const de = window.getComputedStyle(d), ie = Number.parseFloat(de.rowGap || de.gap || "0") || 0, ee = Ut();
1907
- let _e = 0, Pe = 0;
1904
+ const de = window.getComputedStyle(d), ie = Number.parseFloat(de.rowGap || de.gap || "0") || 0, Q = Ut();
1905
+ let _e = 0, Ae = 0;
1908
1906
  for (let Ue = 0; Ue < a.length; Ue += 1) {
1909
- const De = a[Ue];
1910
- if (!De)
1907
+ const Ie = a[Ue];
1908
+ if (!Ie)
1911
1909
  continue;
1912
- const Ke = _e + (Pe > 0 ? ie : 0) + De.offsetHeight, It = a.length - (Ue + 1) > 0 ? ie + ee : 0;
1913
- if (Ke + It > C)
1910
+ const Ke = _e + (Ae > 0 ? ie : 0) + Ie.offsetHeight, It = a.length - (Ue + 1) > 0 ? ie + Q : 0;
1911
+ if (Ke + It > b)
1914
1912
  break;
1915
- _e = Ke, Pe += 1;
1913
+ _e = Ke, Ae += 1;
1916
1914
  }
1917
- return Pe > 0 ? Pe : 1;
1915
+ return Ae > 0 ? Ae : 1;
1918
1916
  }
1919
1917
  const H = ((be = a[0]) == null ? void 0 : be.offsetTop) ?? 0, O = a.filter(
1920
- (de) => de.offsetTop - H + de.offsetHeight <= C
1918
+ (de) => de.offsetTop - H + de.offsetHeight <= b
1921
1919
  );
1922
1920
  if (O.length === 0)
1923
1921
  return 0;
@@ -1928,10 +1926,10 @@ const rr = {
1928
1926
  return Math.max(1, O.length - 1);
1929
1927
  const se = window.getComputedStyle(d), q = Number.parseFloat(se.columnGap || se.gap || "0") || 0, fe = d.clientWidth;
1930
1928
  for (let de = O.length; de > 0; de -= 1) {
1931
- const ie = O.slice(0, de), ee = ie[ie.length - 1];
1932
- if (!ee)
1929
+ const ie = O.slice(0, de), Q = ie[ie.length - 1];
1930
+ if (!Q)
1933
1931
  continue;
1934
- if (ee.offsetLeft + ee.offsetWidth + q + j <= fe)
1932
+ if (Q.offsetLeft + Q.offsetWidth + q + j <= fe)
1935
1933
  return de;
1936
1934
  }
1937
1935
  return 1;
@@ -1939,25 +1937,25 @@ const rr = {
1939
1937
  function Lt() {
1940
1938
  const a = F.value;
1941
1939
  if (!a) {
1942
- c.value = !1, b.value = 0, l.value = 0, re(), _();
1940
+ c.value = !1, C.value = 0, l.value = 0, le(), _();
1943
1941
  return;
1944
1942
  }
1945
1943
  const p = Array.from(
1946
1944
  a.querySelectorAll(".chart-legend-item[data-legend-data='true']")
1947
1945
  );
1948
1946
  if (p.length === 0) {
1949
- c.value = !1, b.value = 0, l.value = 0, re(), _();
1947
+ c.value = !1, C.value = 0, l.value = 0, le(), _();
1950
1948
  return;
1951
1949
  }
1952
- const d = Array.from(new Set(p.map((ie) => ie.offsetTop))).sort((ie, ee) => ie - ee), C = !h.value && i.value.length > p.length, H = !h.value && !C, O = H || b.value <= 0 ? ue() : b.value;
1953
- if ((H || b.value <= 0) && (b.value = O), C) {
1950
+ const d = Array.from(new Set(p.map((ie) => ie.offsetTop))).sort((ie, Q) => ie - Q), b = !h.value && i.value.length > p.length, H = !h.value && !b, O = H || C.value <= 0 ? ue() : C.value;
1951
+ if ((H || C.value <= 0) && (C.value = O), b) {
1954
1952
  const ie = ue();
1955
- if (ie > 0 && (b.value = ie), k.value && l.value < i.value.length) {
1956
- const ee = Math.max(0, b.value - jn), _e = a.scrollHeight;
1957
- if (_e + 1 < ee) {
1958
- const Pe = p.map((De) => De.offsetHeight).filter((De) => Number.isFinite(De) && De > 0), Ue = Pe.length > 0 ? Pe.reduce((De, Ke) => De + Ke, 0) / Pe.length : 0;
1953
+ if (ie > 0 && (C.value = ie), k.value && l.value < i.value.length) {
1954
+ const Q = Math.max(0, C.value - jn), _e = a.scrollHeight;
1955
+ if (_e + 1 < Q) {
1956
+ const Ae = p.map((Ie) => Ie.offsetHeight).filter((Ie) => Number.isFinite(Ie) && Ie > 0), Ue = Ae.length > 0 ? Ae.reduce((Ie, Ke) => Ie + Ke, 0) / Ae.length : 0;
1959
1957
  if (Ue > 0) {
1960
- const De = window.getComputedStyle(a), Ke = Number.parseFloat(De.rowGap || De.gap || "0") || 0, Ee = Math.max(1, Ue + Ke), It = ee - _e, Mt = Math.floor(It / Ee);
1958
+ const Ie = window.getComputedStyle(a), Ke = Number.parseFloat(Ie.rowGap || Ie.gap || "0") || 0, Ee = Math.max(1, Ue + Ke), It = Q - _e, Mt = Math.floor(It / Ee);
1961
1959
  if (Mt > 0) {
1962
1960
  l.value = Math.min(
1963
1961
  i.value.length,
@@ -1968,11 +1966,11 @@ const rr = {
1968
1966
  }
1969
1967
  }
1970
1968
  }
1971
- c.value = !0, re(), _();
1969
+ c.value = !0, le(), _();
1972
1970
  return;
1973
1971
  }
1974
1972
  const j = d[0] ?? 0, se = d[d.length - 1] ?? j, q = p.filter((ie) => ie.offsetTop === se), fe = Math.max(...q.map((ie) => ie.offsetHeight), 0), be = Math.max(0, se - j + fe), de = Kt(p, O);
1975
- (H || l.value <= 0) && (l.value = Math.max(0, de)), c.value = be > O, re(), _();
1973
+ (H || l.value <= 0) && (l.value = Math.max(0, de)), c.value = be > O, le(), _();
1976
1974
  }
1977
1975
  function Ze() {
1978
1976
  Me(() => {
@@ -1987,7 +1985,7 @@ const rr = {
1987
1985
  "--legend-font-size": `${M.value}px`
1988
1986
  }, p = ue();
1989
1987
  if (k.value) {
1990
- const d = me();
1988
+ const d = pe();
1991
1989
  return {
1992
1990
  ...a,
1993
1991
  width: "fit-content",
@@ -2014,12 +2012,12 @@ const rr = {
2014
2012
  overflow: "hidden"
2015
2013
  } : {} : {});
2016
2014
  function ct() {
2017
- var C;
2015
+ var b;
2018
2016
  if (!T.value) {
2019
- i.value = [], l.value = 0, h.value = !1, c.value = !1, b.value = 0, K({ height: 0, width: 0 });
2017
+ i.value = [], l.value = 0, h.value = !1, c.value = !1, C.value = 0, K({ height: 0, width: 0 });
2020
2018
  return;
2021
2019
  }
2022
- l.value = 0, c.value = !1, b.value = 0;
2020
+ l.value = 0, c.value = !1, C.value = 0;
2023
2021
  const a = G();
2024
2022
  if (!a) {
2025
2023
  i.value = He(
@@ -2032,7 +2030,7 @@ const rr = {
2032
2030
  } catch {
2033
2031
  i.value = [];
2034
2032
  }
2035
- const p = Array.isArray((C = a == null ? void 0 : a.data) == null ? void 0 : C.datasets) ? a.data.datasets : [];
2033
+ const p = Array.isArray((b = a == null ? void 0 : a.data) == null ? void 0 : b.datasets) ? a.data.datasets : [];
2036
2034
  i.value.length === 0 && (i.value = je(t.legendUpdateKey, t.chartRef)), i.value.length === 0 && (i.value = ut(a)), i.value = We(He(i.value));
2037
2035
  const d = Array.isArray(t.legendUpdateKey) && t.legendUpdateKey.length > 0 || !Array.isArray(t.legendUpdateKey) && !!t.legendUpdateKey;
2038
2036
  i.value.length === 0 && !(p.length > 0 || d) && W(0), Ze();
@@ -2059,8 +2057,8 @@ const rr = {
2059
2057
  function ke(a, p, d) {
2060
2058
  var H;
2061
2059
  typeof a.setDatasetVisibility == "function" ? a.setDatasetVisibility(p, d) : d && typeof a.show == "function" ? a.show(p) : !d && typeof a.hide == "function" && a.hide(p);
2062
- const C = Array.isArray((H = a == null ? void 0 : a.data) == null ? void 0 : H.datasets) ? a.data.datasets[p] : null;
2063
- C && typeof C == "object" && (C.hidden = !d);
2060
+ const b = Array.isArray((H = a == null ? void 0 : a.data) == null ? void 0 : H.datasets) ? a.data.datasets[p] : null;
2061
+ b && typeof b == "object" && (b.hidden = !d);
2064
2062
  }
2065
2063
  function rn(a, p) {
2066
2064
  var j;
@@ -2068,8 +2066,8 @@ const rr = {
2068
2066
  a.toggleDataVisibility(p);
2069
2067
  return;
2070
2068
  }
2071
- const d = Array.isArray((j = a == null ? void 0 : a.data) == null ? void 0 : j.datasets) ? a.data.datasets[0] : null, C = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
2072
- if (p < 0 || p >= C.length)
2069
+ const d = Array.isArray((j = a == null ? void 0 : a.data) == null ? void 0 : j.datasets) ? a.data.datasets[0] : null, b = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
2070
+ if (p < 0 || p >= b.length)
2073
2071
  return;
2074
2072
  const H = typeof a.getDatasetMeta == "function" ? a.getDatasetMeta(0) : null, O = Array.isArray(H == null ? void 0 : H.data) ? H.data[p] : null;
2075
2073
  O && typeof O.hidden == "boolean" && (O.hidden = !O.hidden);
@@ -2087,7 +2085,7 @@ const rr = {
2087
2085
  }
2088
2086
  function ln(a, p) {
2089
2087
  var be;
2090
- const d = G(), C = String(((be = d == null ? void 0 : d.config) == null ? void 0 : be.type) ?? ""), H = C === "pie" || C === "doughnut" || C === "polarArea", O = typeof a.index == "number" ? a.index : typeof p == "number" ? p : null;
2088
+ const d = G(), b = String(((be = d == null ? void 0 : d.config) == null ? void 0 : be.type) ?? ""), H = b === "pie" || b === "doughnut" || b === "polarArea", O = typeof a.index == "number" ? a.index : typeof p == "number" ? p : null;
2091
2089
  if ((H || typeof a.index == "number") && typeof O == "number") {
2092
2090
  if (Array.isArray(t.hiddenDataPointIndexes)) {
2093
2091
  o("toggleDataPointVisibility", { itemIndex: O });
@@ -2119,8 +2117,8 @@ const rr = {
2119
2117
  if (se.length > 0) {
2120
2118
  const de = a.hidden !== !0;
2121
2119
  se.forEach((ie) => {
2122
- const ee = fe[ie];
2123
- ee && typeof ee == "object" && (ee.hidden = de);
2120
+ const Q = fe[ie];
2121
+ Q && typeof Q == "object" && (Q.hidden = de);
2124
2122
  }), dt(
2125
2123
  (ie) => Je(ie, 0) === Je(a, 0),
2126
2124
  de
@@ -2130,14 +2128,14 @@ const rr = {
2130
2128
  }
2131
2129
  if (se.length > 0) {
2132
2130
  const ie = !se.every(
2133
- (ee) => typeof d.isDatasetVisible == "function" ? d.isDatasetVisible(ee) : a.hidden !== !0
2131
+ (Q) => typeof d.isDatasetVisible == "function" ? d.isDatasetVisible(Q) : a.hidden !== !0
2134
2132
  );
2135
- se.forEach((ee) => {
2136
- ke(d, ee, ie);
2137
- const _e = fe[ee];
2133
+ se.forEach((Q) => {
2134
+ ke(d, Q, ie);
2135
+ const _e = fe[Q];
2138
2136
  _e && typeof _e == "object" && (_e.hidden = !ie);
2139
2137
  }), d.update(), dt(
2140
- (ee) => Je(ee, 0) === Je(a, 0),
2138
+ (Q) => Je(Q, 0) === Je(a, 0),
2141
2139
  !ie
2142
2140
  );
2143
2141
  }
@@ -2149,7 +2147,7 @@ const rr = {
2149
2147
  h.value = !1, F.value && (F.value.scrollTop = 0), Ze();
2150
2148
  }
2151
2149
  return $e(() => {
2152
- Yt(), window.addEventListener("mousemove", A), window.addEventListener("mouseup", V);
2150
+ Yt(), window.addEventListener("mousemove", P), window.addEventListener("mouseup", V);
2153
2151
  }), we(
2154
2152
  () => [
2155
2153
  t.enabled,
@@ -2161,91 +2159,99 @@ const rr = {
2161
2159
  ct();
2162
2160
  }
2163
2161
  ), Qn(() => {
2164
- B.value = !1, te(), K({ height: 0, width: 0 }), window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", V);
2165
- }), (a, p) => T.value ? (Y(), ve("div", {
2162
+ B.value = !1, te(), K({ height: 0, width: 0 }), window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", V);
2163
+ }), (a, p) => T.value ? (Y(), he("div", {
2166
2164
  key: 0,
2167
2165
  ref_key: "legendPanelRef",
2168
2166
  ref: N,
2169
- class: Le(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
2167
+ class: De(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
2170
2168
  "self-stretch h-full": k.value,
2171
2169
  "mb-2": !k.value && a.position === "top",
2172
2170
  "mt-2": !k.value && a.position === "bottom"
2173
2171
  }]),
2174
- style: Ie(qt.value)
2172
+ style: Le(qt.value)
2175
2173
  }, [
2176
- Q("div", {
2174
+ ee("div", {
2177
2175
  ref_key: "legendScrollShellRef",
2178
2176
  ref: $,
2179
2177
  class: "relative z-[2] flex flex-1 min-h-0 flex-col overflow-hidden"
2180
2178
  }, [
2181
- Q("div", {
2179
+ ee("div", {
2182
2180
  ref_key: "legendToggleMeasureRef",
2183
2181
  ref: y,
2184
2182
  class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
2185
2183
  }, [
2186
- Q("button", rr, Ae(r(s)("report.widget.legend.viewMore")), 1)
2184
+ ee("button", rr, Pe(r(s)("report.widget.legend.viewMore")), 1)
2187
2185
  ], 512),
2188
- Q("ul", {
2186
+ ee("ul", {
2189
2187
  ref_key: "legendListRef",
2190
2188
  ref: F,
2191
- class: Le(["chart-legend-list m-0 flex list-none p-0", [
2189
+ class: De(["chart-legend-list m-0 flex list-none p-0", [
2192
2190
  k.value ? "flex-col flex-nowrap gap-2 text-left" : "flex-wrap justify-center gap-x-2 gap-y-1 pt-1"
2193
2191
  ]]),
2194
- style: Ie(Dt.value),
2192
+ style: Le(Dt.value),
2195
2193
  onScroll: E
2196
2194
  }, [
2197
- (Y(!0), ve(Ve, null, Rt(Xt.value, (d, C) => (Y(), ve("li", {
2198
- key: Je(d, C),
2199
- class: Le(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2195
+ (Y(!0), he(Ve, null, Rt(Xt.value, (d, b) => (Y(), he("li", {
2196
+ key: Je(d, b),
2197
+ class: De(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2200
2198
  "w-full": k.value,
2201
2199
  "opacity-45": d.hidden
2202
2200
  }]),
2203
2201
  "data-legend-data": "true"
2204
2202
  }, [
2205
- Q("button", {
2203
+ ee("button", {
2206
2204
  type: "button",
2207
- class: Le(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "w-full items-start justify-start text-left": k.value }]),
2205
+ class: De(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "w-full items-start justify-start text-left": k.value }]),
2208
2206
  "aria-pressed": d.hidden === !0 ? "false" : "true",
2209
- onClick: Qt((H) => ln(d, C), ["stop"])
2207
+ onClick: Qt((H) => ln(d, b), ["stop"])
2210
2208
  }, [
2211
- Q("span", {
2209
+ t.usePointStyle !== !1 ? (Y(), he("span", {
2210
+ key: 0,
2212
2211
  class: "h-5 w-5 shrink-0 rounded-full",
2213
- style: Ie({ backgroundColor: le(d, C) })
2214
- }, null, 4),
2215
- Q("span", {
2216
- class: Le(["chart-legend-text leading-[1.4]", {
2212
+ style: Le({ backgroundColor: re(d, b) })
2213
+ }, null, 4)) : (Y(), he("span", {
2214
+ key: 1,
2215
+ class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
2216
+ style: Le({
2217
+ backgroundColor: re(d, b),
2218
+ borderColor: "#c7c7cc"
2219
+ })
2220
+ }, null, 4)),
2221
+ ee("span", {
2222
+ class: De(["chart-legend-text leading-[1.4]", {
2217
2223
  "flex-1 min-w-0 max-w-none whitespace-normal break-words text-left": k.value,
2218
2224
  "whitespace-nowrap overflow-hidden": !k.value,
2219
2225
  "line-through": d.hidden
2220
2226
  }]),
2221
2227
  title: d.text ?? ""
2222
- }, Ae(d.text), 11, sr)
2228
+ }, Pe(d.text), 11, sr)
2223
2229
  ], 10, lr)
2224
2230
  ], 2))), 128)),
2225
- c.value ? (Y(), ve("li", ir, [
2226
- Q("button", {
2231
+ c.value ? (Y(), he("li", ir, [
2232
+ ee("button", {
2227
2233
  type: "button",
2228
2234
  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",
2229
2235
  style: { fontSize: "var(--legend-font-size)" },
2230
2236
  onClick: p[0] || (p[0] = Qt((d) => h.value ? ft() : sn(), ["stop"]))
2231
- }, Ae(h.value ? r(s)("report.widget.legend.viewLess") : r(s)("report.widget.legend.viewMore")), 1)
2237
+ }, Pe(h.value ? r(s)("report.widget.legend.viewLess") : r(s)("report.widget.legend.viewMore")), 1)
2232
2238
  ])) : Ce("", !0)
2233
2239
  ], 38),
2234
- P.value ? (Y(), ve("div", {
2240
+ A.value ? (Y(), he("div", {
2235
2241
  key: 0,
2236
2242
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2237
2243
  onMousedown: z
2238
2244
  }, [
2239
- Q("div", {
2245
+ ee("div", {
2240
2246
  class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
2241
- style: Ie(w.value),
2247
+ style: Le(w.value),
2242
2248
  onMousedown: Qt(R, ["stop"])
2243
2249
  }, null, 36)
2244
2250
  ], 32)) : Ce("", !0)
2245
2251
  ], 512)
2246
2252
  ], 6)) : Ce("", !0);
2247
2253
  }
2248
- }), ze = /* @__PURE__ */ oo(fr, [["__scopeId", "data-v-6006dfdf"]]);
2254
+ }), ze = /* @__PURE__ */ oo(fr, [["__scopeId", "data-v-ca89b018"]]);
2249
2255
  function Wt(e) {
2250
2256
  const n = D([]), t = m(() => new Set(n.value));
2251
2257
  function o(l, h) {
@@ -2260,7 +2266,7 @@ function Wt(e) {
2260
2266
  function i({ datasetIndex: l, datasetKey: h }) {
2261
2267
  const c = h ?? o(e.value[l], l);
2262
2268
  if (t.value.has(c)) {
2263
- n.value = n.value.filter((b) => b !== c);
2269
+ n.value = n.value.filter((C) => C !== c);
2264
2270
  return;
2265
2271
  }
2266
2272
  n.value = [...n.value, c];
@@ -2269,8 +2275,8 @@ function Wt(e) {
2269
2275
  e,
2270
2276
  (l) => {
2271
2277
  const h = new Set(
2272
- l.map((b, N) => o(b, N))
2273
- ), c = n.value.filter((b) => h.has(b));
2278
+ l.map((C, N) => o(C, N))
2279
+ ), c = n.value.filter((C) => h.has(C));
2274
2280
  c.length !== n.value.length && (n.value = c);
2275
2281
  },
2276
2282
  { immediate: !0 }
@@ -2295,7 +2301,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2295
2301
  tooltipDetailsPayload: l,
2296
2302
  tooltipOptions: h,
2297
2303
  handleTooltipDetailsSheetVisibility: c,
2298
- handleTooltipDetailsHover: b,
2304
+ handleTooltipDetailsHover: C,
2299
2305
  handleTooltipDetailsLeave: N
2300
2306
  } = Ht(o, {
2301
2307
  maxTooltipItems: s
@@ -2309,7 +2315,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2309
2315
  t.value
2310
2316
  ), x = m(
2311
2317
  () => kt(t.value.isTransposed === !0, h.value)
2312
- ), P = Vt("bar"), w = m(() => {
2318
+ ), A = Vt("bar"), w = m(() => {
2313
2319
  const z = f.value.position;
2314
2320
  return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
2315
2321
  }), u = m(() => f.value.position ?? "top"), M = m(
@@ -2318,7 +2324,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2318
2324
  () => u.value === "top" || u.value === "left"
2319
2325
  ), K = m(() => $.value.length > 0 ? [
2320
2326
  ...$.value.map((z, R) => {
2321
- const A = Fe({
2327
+ const P = Fe({
2322
2328
  datasetIndex: R,
2323
2329
  isCompare: z.isCompare,
2324
2330
  metricCount: t.value.metricCount,
@@ -2350,13 +2356,13 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2350
2356
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
2351
2357
  customColors: t.value.chartColors
2352
2358
  }) : tt({
2353
- index: A,
2359
+ index: P,
2354
2360
  isCompare: z.isCompare,
2355
2361
  customColors: t.value.chartColors
2356
2362
  })
2357
2363
  };
2358
2364
  })
2359
- ] : []), { hiddenDatasetKeys: te, isDatasetHidden: G, toggleDatasetVisibility: re } = Wt(K), J = m(
2365
+ ] : []), { hiddenDatasetKeys: te, isDatasetHidden: G, toggleDatasetVisibility: le } = Wt(K), J = m(
2360
2366
  () => K.value.map((z, R) => ({
2361
2367
  ...z,
2362
2368
  hidden: G(z, R)
@@ -2373,12 +2379,12 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2373
2379
  Me(() => E());
2374
2380
  }), (z, R) => {
2375
2381
  var V, ne, U, X, Z, ae;
2376
- const A = pe("FmBarChart");
2377
- return Y(), ve(Ve, null, [
2378
- Q("div", hr, [
2382
+ const P = ve("FmBarChart");
2383
+ return Y(), he(Ve, null, [
2384
+ ee("div", hr, [
2379
2385
  nt(z.$slots, "menu"),
2380
- Q("div", {
2381
- class: Le(["chart-layout", {
2386
+ ee("div", {
2387
+ class: De(["chart-layout", {
2382
2388
  "chart-layout--side": w.value && (r(f).display ?? !1) && M.value
2383
2389
  }])
2384
2390
  }, [
@@ -2391,15 +2397,16 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2391
2397
  "text-color": (V = r(f).labels) == null ? void 0 : V.color,
2392
2398
  "font-size": (U = (ne = r(f).labels) == null ? void 0 : ne.font) == null ? void 0 : U.size,
2393
2399
  "legend-update-key": J.value,
2400
+ "use-point-style": t.value.usePointStyle ?? !0,
2394
2401
  "chart-color-binding": t.value.chartColorBinding,
2395
2402
  "chart-colors": t.value.chartColors,
2396
2403
  "chart-breakdown-colors": t.value.chartBreakdownColors,
2397
2404
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
2398
2405
  "metric-count": t.value.metricCount,
2399
2406
  "hidden-dataset-keys": r(te),
2400
- onToggleDatasetVisibility: r(re)
2401
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
2402
- he(A, {
2407
+ onToggleDatasetVisibility: r(le)
2408
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
2409
+ me(P, {
2403
2410
  ref_key: "chartRef",
2404
2411
  ref: o,
2405
2412
  class: "bar-chart",
@@ -2413,9 +2420,9 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2413
2420
  },
2414
2421
  tooltip: x.value,
2415
2422
  datalabels: r(I),
2416
- plugins: [r(P)],
2423
+ plugins: [r(A)],
2417
2424
  "maintain-aspect-ratio": !1,
2418
- style: Ie({
2425
+ style: Le({
2419
2426
  "--chart-width": w.value && (r(f).display ?? !1) && M.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(T) !== void 0 ? r(T) + "px" : "100%",
2420
2427
  "--chart-height": w.value && (r(f).display ?? !1) && !M.value ? "calc(100% - 36px - var(--legend-panel-height, 0px))" : r(k) !== void 0 ? r(k) + "px" : "100%"
2421
2428
  })
@@ -2429,21 +2436,22 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2429
2436
  "text-color": (X = r(f).labels) == null ? void 0 : X.color,
2430
2437
  "font-size": (ae = (Z = r(f).labels) == null ? void 0 : Z.font) == null ? void 0 : ae.size,
2431
2438
  "legend-update-key": J.value,
2439
+ "use-point-style": t.value.usePointStyle ?? !0,
2432
2440
  "chart-color-binding": t.value.chartColorBinding,
2433
2441
  "chart-colors": t.value.chartColors,
2434
2442
  "chart-breakdown-colors": t.value.chartBreakdownColors,
2435
2443
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
2436
2444
  "metric-count": t.value.metricCount,
2437
2445
  "hidden-dataset-keys": r(te),
2438
- onToggleDatasetVisibility: r(re)
2439
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
2446
+ onToggleDatasetVisibility: r(le)
2447
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
2440
2448
  ], 2)
2441
2449
  ]),
2442
- he($t, {
2450
+ me($t, {
2443
2451
  "model-value": r(i),
2444
2452
  "details-payload": r(l),
2445
2453
  "onUpdate:modelValue": r(c),
2446
- onValueHover: r(b),
2454
+ onValueHover: r(C),
2447
2455
  onValueLeave: r(N)
2448
2456
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
2449
2457
  ], 64);
@@ -2459,7 +2467,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2459
2467
  }),
2460
2468
  emits: ["update:modelValue"],
2461
2469
  setup(e) {
2462
- const n = e, t = Oe(e, "modelValue"), { breakpoints: o } = an(), s = D(null), i = D([]), { datalabels: l, legend: h, chartWidth: c, chartHeight: b } = Tt(t.value), N = m(() => {
2470
+ const n = e, t = Oe(e, "modelValue"), { breakpoints: o } = an(), s = D(null), i = D([]), { datalabels: l, legend: h, chartWidth: c, chartHeight: C } = Tt(t.value), N = m(() => {
2463
2471
  const u = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((M) => M.name) : [];
2464
2472
  return u.length > 0 ? u : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((M) => String(M)) : [];
2465
2473
  }), $ = m(() => {
@@ -2509,20 +2517,22 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2509
2517
  var M;
2510
2518
  const u = (M = h.value.labels) == null ? void 0 : M.color;
2511
2519
  return typeof u == "string" && u.trim().length > 0 ? u : t.value.legendColor ?? "#6b6b6b";
2512
- }), x = m(() => g.value), P = sa();
2520
+ }), x = m(() => g.value), A = sa();
2513
2521
  function w({ itemIndex: u }) {
2514
2522
  if (i.value.includes(u)) {
2515
- i.value = i.value.filter((M) => M !== u);
2523
+ i.value = i.value.filter(
2524
+ (M) => M !== u
2525
+ );
2516
2526
  return;
2517
2527
  }
2518
2528
  i.value = [...i.value, u];
2519
2529
  }
2520
2530
  return (u, M) => {
2521
- const W = pe("FmPieChart");
2522
- return Y(), ve("div", pr, [
2531
+ const W = ve("FmPieChart");
2532
+ return Y(), he("div", pr, [
2523
2533
  nt(u.$slots, "menu"),
2524
- Q("div", {
2525
- class: Le(["chart-layout", {
2534
+ ee("div", {
2535
+ class: De(["chart-layout", {
2526
2536
  "chart-layout--side": B.value && f.value
2527
2537
  }])
2528
2538
  }, [
@@ -2535,6 +2545,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2535
2545
  "text-color": k.value,
2536
2546
  "font-size": x.value,
2537
2547
  "legend-update-key": $.value,
2548
+ "use-point-style": t.value.usePointStyle ?? !0,
2538
2549
  "chart-color-binding": t.value.chartColorBinding,
2539
2550
  "chart-colors": t.value.chartColors,
2540
2551
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -2542,24 +2553,24 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2542
2553
  "metric-count": t.value.metricCount,
2543
2554
  "hidden-data-point-indexes": i.value,
2544
2555
  onToggleDataPointVisibility: w
2545
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : Ce("", !0),
2546
- he(W, {
2556
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : Ce("", !0),
2557
+ me(W, {
2547
2558
  ref_key: "chartRef",
2548
2559
  ref: s,
2549
2560
  class: "circular",
2550
2561
  percentage: "70%",
2551
2562
  datasets: $.value,
2552
2563
  metrics: N.value,
2553
- tooltip: r(P),
2564
+ tooltip: r(A),
2554
2565
  variant: "doughnut",
2555
2566
  legend: {
2556
2567
  display: !1
2557
2568
  },
2558
2569
  datalabels: r(l),
2559
2570
  "maintain-aspect-ratio": !1,
2560
- style: Ie({
2571
+ style: Le({
2561
2572
  "--chart-width": B.value && f.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(c) !== void 0 ? r(c) + "px" : "100%",
2562
- "--chart-height": B.value && !f.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(b) !== void 0 ? r(b) + "px" : "100%"
2573
+ "--chart-height": B.value && !f.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(C) !== void 0 ? r(C) + "px" : "100%"
2563
2574
  })
2564
2575
  }, null, 8, ["datasets", "metrics", "tooltip", "datalabels", "style"]),
2565
2576
  B.value && !T.value ? (Y(), ye(ze, {
@@ -2571,6 +2582,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2571
2582
  "text-color": k.value,
2572
2583
  "font-size": x.value,
2573
2584
  "legend-update-key": $.value,
2585
+ "use-point-style": t.value.usePointStyle ?? !0,
2574
2586
  "chart-color-binding": t.value.chartColorBinding,
2575
2587
  "chart-colors": t.value.chartColors,
2576
2588
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -2578,7 +2590,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2578
2590
  "metric-count": t.value.metricCount,
2579
2591
  "hidden-data-point-indexes": i.value,
2580
2592
  onToggleDataPointVisibility: w
2581
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : Ce("", !0)
2593
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : Ce("", !0)
2582
2594
  ], 2)
2583
2595
  ]);
2584
2596
  };
@@ -2607,7 +2619,7 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2607
2619
  const { data: g } = n.value;
2608
2620
  return g != null && g.comparison ? lo(l.value, g.comparison, i) : null;
2609
2621
  });
2610
- function b(g) {
2622
+ function C(g) {
2611
2623
  switch (g) {
2612
2624
  case pn.bar:
2613
2625
  return "bar";
@@ -2631,12 +2643,12 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2631
2643
  color: "#36a2eb"
2632
2644
  }))), y = m(() => kt(!1, !0));
2633
2645
  return (g, I) => {
2634
- const L = pe("FmIcon"), B = pe("FmChip"), v = pe("FmTooltip"), f = pe("FmLineChart");
2635
- return Y(), ve("div", gr, [
2646
+ const L = ve("FmIcon"), B = ve("FmChip"), v = ve("FmTooltip"), f = ve("FmLineChart");
2647
+ return Y(), he("div", gr, [
2636
2648
  nt(g.$slots, "menu"),
2637
- Q("p", yr, Ae(h.value), 1),
2638
- Q("div", br, [
2639
- he(v, {
2649
+ ee("p", yr, Pe(h.value), 1),
2650
+ ee("div", br, [
2651
+ me(v, {
2640
2652
  disabled: c.value === null,
2641
2653
  placement: "right",
2642
2654
  "hide-arrow": "",
@@ -2645,25 +2657,25 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2645
2657
  content: Te(() => {
2646
2658
  var T;
2647
2659
  return [
2648
- Q("span", Cr, Ae(`vs. ${(T = r(s).defaultCompareType) == null ? void 0 : T.split("_").join(" ")}`), 1)
2660
+ ee("span", Cr, Pe(`vs. ${(T = r(s).defaultCompareType) == null ? void 0 : T.split("_").join(" ")}`), 1)
2649
2661
  ];
2650
2662
  }),
2651
2663
  default: Te(() => [
2652
2664
  c.value ? (Y(), ye(B, {
2653
2665
  key: 0,
2654
2666
  icon: c.value.icon.name,
2655
- class: Le(`bg-${c.value.icon.tailwind}`),
2667
+ class: De(`bg-${c.value.icon.tailwind}`),
2656
2668
  compact: ""
2657
2669
  }, {
2658
2670
  default: Te(() => [
2659
- he(L, {
2671
+ me(L, {
2660
2672
  name: c.value.icon.name,
2661
2673
  color: c.value.icon.color
2662
2674
  }, null, 8, ["name", "color"]),
2663
- Q("p", {
2675
+ ee("p", {
2664
2676
  class: "fm-typo-en-body-md-600",
2665
- style: Ie({ color: c.value.icon.color })
2666
- }, Ae(c.value.value), 5)
2677
+ style: Le({ color: c.value.icon.color })
2678
+ }, Pe(c.value.value), 5)
2667
2679
  ]),
2668
2680
  _: 1
2669
2681
  }, 8, ["icon", "class"])) : Ce("", !0),
@@ -2674,11 +2686,11 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2674
2686
  compact: ""
2675
2687
  }, {
2676
2688
  default: Te(() => [
2677
- he(L, {
2689
+ me(L, {
2678
2690
  name: "arrow_upward",
2679
2691
  color: "#C7C7CC"
2680
2692
  }),
2681
- I[0] || (I[0] = Q("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
2693
+ I[0] || (I[0] = ee("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
2682
2694
  ]),
2683
2695
  _: 1
2684
2696
  })) : Ce("", !0)
@@ -2686,8 +2698,8 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2686
2698
  _: 1
2687
2699
  }, 8, ["disabled"])
2688
2700
  ]),
2689
- N.value ? (Y(), ve("div", xr, [
2690
- b(N.value.type) === "line" ? (Y(), ye(f, {
2701
+ N.value ? (Y(), he("div", xr, [
2702
+ C(N.value.type) === "line" ? (Y(), ye(f, {
2691
2703
  key: 0,
2692
2704
  class: "sparkline",
2693
2705
  datasets: F.value,
@@ -2701,13 +2713,13 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2701
2713
  tooltip: y.value,
2702
2714
  "maintain-aspect-ratio": !1
2703
2715
  }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : Ce("", !0)
2704
- ])) : (Y(), ve("div", wr, I[1] || (I[1] = [
2705
- Q("div", { class: "sparkline" }, [
2706
- Q("div", { class: "flex flex-col gap-8" }, [
2707
- Q("div"),
2708
- Q("div")
2716
+ ])) : (Y(), he("div", wr, I[1] || (I[1] = [
2717
+ ee("div", { class: "sparkline" }, [
2718
+ ee("div", { class: "flex flex-col gap-8" }, [
2719
+ ee("div"),
2720
+ ee("div")
2709
2721
  ]),
2710
- Q("div", { class: "grow" })
2722
+ ee("div", { class: "grow" })
2711
2723
  ], -1)
2712
2724
  ])))
2713
2725
  ]);
@@ -2715,7 +2727,7 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2715
2727
  }
2716
2728
  }), _r = {};
2717
2729
  function kr(e, n) {
2718
- const t = pe("FmMenuDivider");
2730
+ const t = ve("FmMenuDivider");
2719
2731
  return Y(), ye(t);
2720
2732
  }
2721
2733
  const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimension", Zn = Ko(Lr, () => {
@@ -2725,17 +2737,17 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2725
2737
  n[v] = f, n.value = [...n.value], l(v, f, T, k);
2726
2738
  }, i = (v, f) => {
2727
2739
  const T = (f == null ? void 0 : f.querySelectorAll("thead tr")) ?? [], k = (f == null ? void 0 : f.querySelectorAll("tbody tr")) ?? [];
2728
- [...T, ...k].forEach((P) => {
2729
- const w = P;
2740
+ [...T, ...k].forEach((A) => {
2741
+ const w = A;
2730
2742
  w && (w.style.height = `${v}px`);
2731
2743
  });
2732
2744
  }, l = (v, f, T, k = !1) => {
2733
2745
  const x = (T == null ? void 0 : T.querySelectorAll("th")) ?? [];
2734
2746
  if (v === void 0) return;
2735
- const P = x[v], w = k ? n[v] : f;
2736
- if (!P || w === void 0) return;
2747
+ const A = x[v], w = k ? n[v] : f;
2748
+ if (!A || w === void 0) return;
2737
2749
  const u = () => {
2738
- P.style.width = `${w}px`;
2750
+ A.style.width = `${w}px`;
2739
2751
  };
2740
2752
  k ? requestAnimationFrame(u) : u();
2741
2753
  }, h = () => {
@@ -2744,7 +2756,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2744
2756
  }, c = () => {
2745
2757
  const v = document.querySelectorAll("th"), f = document.querySelectorAll("td"), T = document.querySelectorAll(".col-resize-handle"), k = document.querySelectorAll(".row-resize-handle");
2746
2758
  v.forEach((x) => x.classList.remove("toggleEditResize")), f.forEach((x) => x.classList.remove("toggleEditResize")), T.forEach((x) => x.remove()), k.forEach((x) => x.remove()), t.value = !1;
2747
- }, b = () => {
2759
+ }, C = () => {
2748
2760
  e.value = 0, n.value = [];
2749
2761
  }, N = (v, f) => {
2750
2762
  if (f) {
@@ -2773,14 +2785,14 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2773
2785
  if (!k) return;
2774
2786
  const x = k.querySelectorAll("th")[f];
2775
2787
  if (!x) return;
2776
- const P = x.getBoundingClientRect().width || 60, w = x.querySelector("button"), u = (w == null ? void 0 : w.querySelector("span")) || x.querySelector("p") || x;
2788
+ const A = x.getBoundingClientRect().width || 60, w = x.querySelector("button"), u = (w == null ? void 0 : w.querySelector("span")) || x.querySelector("p") || x;
2777
2789
  let M = 60;
2778
2790
  if (u) {
2779
2791
  const J = u.textContent || "", _ = window.getComputedStyle(u), E = `${_.fontWeight} ${_.fontSize} ${_.fontFamily}`, R = document.createElement("canvas").getContext("2d");
2780
2792
  if (R) {
2781
2793
  R.font = E;
2782
- const A = R.measureText(J), V = window.getComputedStyle(x), ne = parseFloat(V.paddingLeft || "0"), U = parseFloat(V.paddingRight || "0");
2783
- M = A.width + ne + U;
2794
+ const P = R.measureText(J), V = window.getComputedStyle(x), ne = parseFloat(V.paddingLeft || "0"), U = parseFloat(V.paddingRight || "0");
2795
+ M = P.width + ne + U;
2784
2796
  }
2785
2797
  }
2786
2798
  N(f, !1);
@@ -2795,25 +2807,25 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2795
2807
  }), k.classList.remove("w-full"), k.style.width = `${_}px`, W = null;
2796
2808
  }, G = (J) => {
2797
2809
  const _ = J.clientX - T;
2798
- K = Math.max(M, P + _), W === null && (W = requestAnimationFrame(te));
2799
- }, re = () => {
2810
+ K = Math.max(M, A + _), W === null && (W = requestAnimationFrame(te));
2811
+ }, le = () => {
2800
2812
  W !== null && cancelAnimationFrame(W), K !== null && (x.style.width = `${K}px`);
2801
2813
  const J = k.querySelectorAll("th"), _ = [];
2802
2814
  J.forEach((E) => {
2803
2815
  _.push(E.getBoundingClientRect().width);
2804
- }), n.value = _, y(!1), document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", re);
2816
+ }), n.value = _, y(!1), document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", le);
2805
2817
  };
2806
- document.addEventListener("mousemove", G), document.addEventListener("mouseup", re);
2818
+ document.addEventListener("mousemove", G), document.addEventListener("mouseup", le);
2807
2819
  }, I = (v) => {
2808
2820
  const f = v.clientY, T = v.target.closest("table"), k = e.value || 48;
2809
2821
  $(!1);
2810
2822
  const x = (w) => {
2811
2823
  const u = Math.max(30, k + (w.clientY - f));
2812
2824
  T && o(u, T);
2813
- }, P = () => {
2814
- F(!1), document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", P);
2825
+ }, A = () => {
2826
+ F(!1), document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", A);
2815
2827
  };
2816
- document.addEventListener("mousemove", x), document.addEventListener("mouseup", P);
2828
+ document.addEventListener("mousemove", x), document.addEventListener("mouseup", A);
2817
2829
  };
2818
2830
  return {
2819
2831
  rowHeight: e,
@@ -2825,7 +2837,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2825
2837
  setColWidths: l,
2826
2838
  enableEditMode: h,
2827
2839
  disableEditMode: c,
2828
- resetStore: b,
2840
+ resetStore: C,
2829
2841
  highlightCol: N,
2830
2842
  highlightRows: $,
2831
2843
  removeRowHighlight: F,
@@ -2835,17 +2847,17 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2835
2847
  enableCellResizing: () => {
2836
2848
  const v = document.querySelector("thead"), f = document.querySelectorAll("thead tr"), T = document.querySelectorAll("tbody tr"), k = [...f, ...T];
2837
2849
  v && v.classList.remove("sticky");
2838
- const x = (P, w) => {
2850
+ const x = (A, w) => {
2839
2851
  const u = document.createElement("div");
2840
- return u.className = `${P}-resize-handle`, P === "col" ? (u.addEventListener("mouseenter", () => N(w, !0)), u.addEventListener("mouseleave", () => y(!0)), u.addEventListener("mousedown", (M) => {
2852
+ return u.className = `${A}-resize-handle`, A === "col" ? (u.addEventListener("mouseenter", () => N(w, !0)), u.addEventListener("mouseleave", () => y(!0)), u.addEventListener("mousedown", (M) => {
2841
2853
  M.stopPropagation(), g(M, w);
2842
2854
  })) : (u.addEventListener("mouseenter", () => $(!0)), u.addEventListener("mouseleave", () => F(!0)), u.addEventListener("mousedown", (M) => {
2843
2855
  M.stopPropagation(), I(M);
2844
2856
  })), u;
2845
2857
  };
2846
- k.forEach((P) => {
2847
- const w = P.closest("thead") !== null;
2848
- P.querySelectorAll(w ? "th" : "td").forEach((M, W) => {
2858
+ k.forEach((A) => {
2859
+ const w = A.closest("thead") !== null;
2860
+ A.querySelectorAll(w ? "th" : "td").forEach((M, W) => {
2849
2861
  const K = x("col", W), te = x("row", W);
2850
2862
  M.appendChild(K), M.appendChild(te);
2851
2863
  });
@@ -2855,10 +2867,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2855
2867
  c();
2856
2868
  }
2857
2869
  };
2858
- }), Dr = "/assets/processTableData.worker-Be0ZD94L.js", Ir = { class: "my-4" }, Mr = {
2870
+ }), Dr = "/assets/processTableData.worker-CiRM5jBF.js", Ir = { class: "my-4" }, Mr = {
2859
2871
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
2860
2872
  style: { backgroundColor: "#f9f9f9" }
2861
- }, Br = { class: "font-bold" }, Ar = { class: "text-fm-color-neutral-gray-300" }, Fr = /* @__PURE__ */ Ne({
2873
+ }, Br = { class: "font-bold" }, Pr = { class: "text-fm-color-neutral-gray-300" }, Fr = /* @__PURE__ */ Ne({
2862
2874
  __name: "WidgetTable",
2863
2875
  props: /* @__PURE__ */ Ye({
2864
2876
  tileIndex: {}
@@ -2868,7 +2880,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2868
2880
  }),
2869
2881
  emits: ["update:modelValue"],
2870
2882
  setup(e) {
2871
- const { t: n, te: t } = it(), o = Oe(e, "modelValue"), { country: s } = _n(), { clearTileSorts: i, setTileSorts: l } = zo(), h = kn(), c = e, b = D([]), { isEditing: N, colWidths: $, rowHeight: F } = st(Zn()), { setColWidths: y, setRowHeights: g, enableCellResizing: I } = Zn(), L = D(null), B = m(() => {
2883
+ const { t: n, te: t } = it(), o = Oe(e, "modelValue"), { country: s } = _n(), { clearTileSorts: i, setTileSorts: l } = zo(), h = kn(), c = e, C = D([]), { isEditing: N, colWidths: $, rowHeight: F } = st(Zn()), { setColWidths: y, setRowHeights: g, enableCellResizing: I } = Zn(), L = D(null), B = m(() => {
2872
2884
  var _;
2873
2885
  return ((_ = o.value.data) == null ? void 0 : _.columns) || [{ label: "", key: "" }];
2874
2886
  }), v = m(() => {
@@ -2887,29 +2899,29 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2887
2899
  return et.bottom;
2888
2900
  }
2889
2901
  }), x = m(() => {
2890
- const R = k.value !== void 0 ? 1 : 0, A = (L.value ? L.value.$el.offsetHeight : 0) - 48;
2891
- return Math.floor((A - 34.5 - 32) / 48) - R;
2892
- }), P = m(() => {
2902
+ const R = k.value !== void 0 ? 1 : 0, P = (L.value ? L.value.$el.offsetHeight : 0) - 48;
2903
+ return Math.floor((P - 34.5 - 32) / 48) - R;
2904
+ }), A = m(() => {
2893
2905
  var E, z;
2894
2906
  let _ = [];
2895
2907
  switch (k.value) {
2896
2908
  case et.top:
2897
- _ = [...((E = v.value[0]) == null ? void 0 : E.cells) || []].map((R, A) => {
2909
+ _ = [...((E = v.value[0]) == null ? void 0 : E.cells) || []].map((R, P) => {
2898
2910
  var V;
2899
2911
  return {
2900
2912
  main: R,
2901
- comparison: (V = v.value[0]) == null ? void 0 : V.comparisonCells[A],
2902
- rowType: B.value[A].type
2913
+ comparison: (V = v.value[0]) == null ? void 0 : V.comparisonCells[P],
2914
+ rowType: B.value[P].type
2903
2915
  };
2904
2916
  });
2905
2917
  break;
2906
2918
  case et.bottom:
2907
- _ = [...((z = v.value[v.value.length - 1]) == null ? void 0 : z.cells) || []].map((R, A) => {
2919
+ _ = [...((z = v.value[v.value.length - 1]) == null ? void 0 : z.cells) || []].map((R, P) => {
2908
2920
  var V;
2909
2921
  return {
2910
2922
  main: R,
2911
- comparison: (V = v.value[v.value.length - 1]) == null ? void 0 : V.comparisonCells[A],
2912
- rowType: B.value[A].type
2923
+ comparison: (V = v.value[v.value.length - 1]) == null ? void 0 : V.comparisonCells[P],
2924
+ rowType: B.value[P].type
2913
2925
  };
2914
2926
  });
2915
2927
  break;
@@ -2932,8 +2944,8 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2932
2944
  const u = D([]);
2933
2945
  let M = 0, W;
2934
2946
  function K() {
2935
- var A;
2936
- if (!((A = o.value) != null && A.data)) {
2947
+ var P;
2948
+ if (!((P = o.value) != null && P.data)) {
2937
2949
  u.value = [];
2938
2950
  return;
2939
2951
  }
@@ -2949,7 +2961,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2949
2961
  rows: E,
2950
2962
  columns: z,
2951
2963
  filter: f.value ?? "",
2952
- globalSorts: Bo(b.value).map((V) => ({
2964
+ globalSorts: Bo(C.value).map((V) => ({
2953
2965
  key: V.key,
2954
2966
  type: V.type
2955
2967
  })),
@@ -2957,11 +2969,11 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2957
2969
  pageSize: x.value
2958
2970
  };
2959
2971
  No(Dr, R).then((V) => {
2960
- _ === M && (V != null && V.error ? (h.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(V.error), u.value = []) : u.value = Ao(V.data || []));
2972
+ _ === M && (V != null && V.error ? (h.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(V.error), u.value = []) : u.value = Po(V.data || []));
2961
2973
  });
2962
2974
  }
2963
2975
  we(
2964
- () => b.value,
2976
+ () => C.value,
2965
2977
  (_) => {
2966
2978
  c.tileIndex === void 0 || c.tileIndex === null || l(c.tileIndex, _);
2967
2979
  },
@@ -2972,9 +2984,9 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2972
2984
  const _ = ((z = o.value.data) == null ? void 0 : z.rows) || [], E = ((R = o.value.data) == null ? void 0 : R.columns) || [];
2973
2985
  return JSON.stringify({
2974
2986
  rowsLength: _.length,
2975
- columns: E.map((A) => ({ key: A.key, type: A.type, label: A.label })),
2987
+ columns: E.map((P) => ({ key: P.key, type: P.type, label: P.label })),
2976
2988
  filter: f.value ?? "",
2977
- globalSorts: b.value.map((A) => ({ key: A.key, type: A.type })),
2989
+ globalSorts: C.value.map((P) => ({ key: P.key, type: P.type })),
2978
2990
  grandTotalPosition: k.value,
2979
2991
  pageSize: x.value
2980
2992
  });
@@ -2987,14 +2999,14 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2987
2999
  { immediate: !0 }
2988
3000
  );
2989
3001
  function G(_) {
2990
- const E = b.value.find((z) => z.key === _);
3002
+ const E = C.value.find((z) => z.key === _);
2991
3003
  if (!E) {
2992
- b.value.push({ key: _, type: Bt.Asc });
3004
+ C.value.push({ key: _, type: Bt.Asc });
2993
3005
  return;
2994
3006
  }
2995
- E.type === Bt.Asc ? E.type = Bt.Desc : E.type === Bt.Desc && (b.value = b.value.filter((z) => z.key !== _));
3007
+ E.type === Bt.Asc ? E.type = Bt.Desc : E.type === Bt.Desc && (C.value = C.value.filter((z) => z.key !== _));
2996
3008
  }
2997
- const re = m(
3009
+ const le = m(
2998
3010
  () => {
2999
3011
  var _;
3000
3012
  return (((_ = o.value.colWidths) == null ? void 0 : _.length) ?? 0) > 0 || $.value.length > 0;
@@ -3002,16 +3014,16 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3002
3014
  ), J = m(() => {
3003
3015
  var _;
3004
3016
  return (_ = o.value.data) != null && _.columns ? o.value.data.columns.map((E) => {
3005
- const z = lt(n, t, E.label, "other"), R = b.value.find((ne) => ne.key === E.key), A = !!R, V = A ? R.type === Bt.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3017
+ const z = lt(n, t, E.label, "other"), R = C.value.find((ne) => ne.key === E.key), P = !!R, V = P ? R.type === Bt.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3006
3018
  return {
3007
3019
  accessorKey: E.key,
3008
3020
  header: () => {
3009
- const ne = pe("FmIcon");
3021
+ const ne = ve("FmIcon");
3010
3022
  return jt(
3011
3023
  "button",
3012
3024
  {
3013
3025
  type: "button",
3014
- class: `w-full flex items-center gap-1 group/select-header select-none ${E.type === "NUMERIC" ? "justify-end" : "justify-start"} ${A ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
3026
+ class: `w-full flex items-center gap-1 group/select-header select-none ${E.type === "NUMERIC" ? "justify-end" : "justify-start"} ${P ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
3015
3027
  onClick: () => G(E.key)
3016
3028
  },
3017
3029
  [
@@ -3022,7 +3034,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3022
3034
  ),
3023
3035
  jt(ne, {
3024
3036
  name: V,
3025
- color: A ? "primary" : "neutral-gray-400",
3037
+ color: P ? "primary" : "neutral-gray-400",
3026
3038
  size: "sm",
3027
3039
  class: "transition-transform",
3028
3040
  style: V === "arrow_upward" ? "transform: translateY(-1px);" : ""
@@ -3039,7 +3051,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3039
3051
  class: [
3040
3052
  X ? "fm-typo-en-body-md-600 text-fm-color-typo-primary" : "fm-typo-en-body-md-400",
3041
3053
  E.type === "NUMERIC" ? "text-right" : "",
3042
- re.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3054
+ le.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3043
3055
  ].join(" ")
3044
3056
  },
3045
3057
  [E.type === "NUMERIC" ? tn(U.main) : U.main]
@@ -3057,13 +3069,13 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3057
3069
  ), we(
3058
3070
  [() => J.value],
3059
3071
  async () => {
3060
- var A;
3072
+ var P;
3061
3073
  await Me();
3062
- const _ = (A = L.value) == null ? void 0 : A.$el;
3074
+ const _ = (P = L.value) == null ? void 0 : P.$el;
3063
3075
  if (!_) return;
3064
3076
  const E = _.querySelector("table");
3065
3077
  if (!E) return;
3066
- E.classList.add(re.value ? "table-fixed" : "table-auto");
3078
+ E.classList.add(le.value ? "table-fixed" : "table-auto");
3067
3079
  let z, R;
3068
3080
  N.value ? (I(), z = $.value, R = F.value) : (R = o.value.rowHeight, z = o.value.colWidths), typeof R == "number" && g(R, _), z == null || z.forEach((V, ne) => {
3069
3081
  y(ne, V, _);
@@ -3071,12 +3083,12 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3071
3083
  },
3072
3084
  { immediate: !0 }
3073
3085
  ), (_, E) => {
3074
- const z = pe("FmTable");
3075
- return Y(), ve(Ve, null, [
3076
- Q("div", Ir, [
3086
+ const z = ve("FmTable");
3087
+ return Y(), he(Ve, null, [
3088
+ ee("div", Ir, [
3077
3089
  nt(_.$slots, "menu")
3078
3090
  ]),
3079
- he(z, {
3091
+ me(z, {
3080
3092
  ref_key: "table",
3081
3093
  ref: L,
3082
3094
  "column-defs": J.value,
@@ -3094,20 +3106,20 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3094
3106
  fn: Te(() => [
3095
3107
  (Y(), ye(eo(k.value === r(et).bottom ? "tfoot" : "tbody"), null, {
3096
3108
  default: Te(() => [
3097
- Q("tr", Mr, [
3098
- (Y(!0), ve(Ve, null, Rt(P.value, (R, A) => (Y(), ve("td", {
3099
- key: `${r(Pt)()}_${A}`,
3109
+ ee("tr", Mr, [
3110
+ (Y(!0), he(Ve, null, Rt(A.value, (R, P) => (Y(), he("td", {
3111
+ key: `${r(At)()}_${P}`,
3100
3112
  class: "h-[48px] text-fm-color-typo-primary px-16"
3101
3113
  }, [
3102
- Q("span", {
3103
- class: Le([
3114
+ ee("span", {
3115
+ class: De([
3104
3116
  "items-center text-fm-color-typo-secondary gap-2",
3105
3117
  R.rowType === "NUMERIC" ? "text-right" : "",
3106
- re.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3118
+ le.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3107
3119
  ])
3108
3120
  }, [
3109
- Q("p", Br, Ae(R.rowType === "NUMERIC" ? r(tn)(R.main) : R.main), 1),
3110
- Q("p", Ar, Ae(R.comparison ? R.rowType === "NUMERIC" ? `(${r(tn)(R.comparison)})` : `(${R.comparison})` : ""), 1)
3121
+ ee("p", Br, Pe(R.rowType === "NUMERIC" ? r(tn)(R.main) : R.main), 1),
3122
+ ee("p", Pr, Pe(R.comparison ? R.rowType === "NUMERIC" ? `(${r(tn)(R.comparison)})` : `(${R.comparison})` : ""), 1)
3111
3123
  ], 2)
3112
3124
  ]))), 128))
3113
3125
  ])
@@ -3121,7 +3133,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3121
3133
  ], 64);
3122
3134
  };
3123
3135
  }
3124
- }), Pr = { class: "widget-content" }, Rr = /* @__PURE__ */ Ne({
3136
+ }), Ar = { class: "widget-content" }, Rr = /* @__PURE__ */ Ne({
3125
3137
  __name: "WidgetStackBarChart",
3126
3138
  props: /* @__PURE__ */ Ye({
3127
3139
  tileIndex: {}
@@ -3136,7 +3148,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3136
3148
  tooltipDetailsPayload: l,
3137
3149
  tooltipOptions: h,
3138
3150
  handleTooltipDetailsSheetVisibility: c,
3139
- handleTooltipDetailsHover: b,
3151
+ handleTooltipDetailsHover: C,
3140
3152
  handleTooltipDetailsLeave: N
3141
3153
  } = Ht(o, {
3142
3154
  maxTooltipItems: s
@@ -3150,7 +3162,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3150
3162
  t.value
3151
3163
  ), T = m(
3152
3164
  () => kt(t.value.isTransposed === !0, h.value)
3153
- ), k = Vt("bar"), x = m(() => t.value.stackBarOverlap === !0), P = m(() => x.value === !1), w = m(() => {
3165
+ ), k = Vt("bar"), x = m(() => t.value.stackBarOverlap === !0), A = m(() => x.value === !1), w = m(() => {
3154
3166
  const V = B.value.position;
3155
3167
  return !V || V === "top" || V === "bottom" || V === "left" || V === "right";
3156
3168
  }), u = m(() => B.value.position ?? "top"), M = m(
@@ -3159,10 +3171,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3159
3171
  () => u.value === "top" || u.value === "left"
3160
3172
  ), K = m(() => ({
3161
3173
  ...g.value,
3162
- stacked: P.value
3174
+ stacked: A.value
3163
3175
  })), te = m(() => ({
3164
3176
  ...I.value,
3165
- stacked: P.value
3177
+ stacked: A.value
3166
3178
  }));
3167
3179
  function G({
3168
3180
  datasetIndex: V,
@@ -3173,7 +3185,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3173
3185
  const X = t.value.chartColorBinding === Se.metric ? ne : t.value.chartColorBinding === Se.breakdown ? U : V, Z = (ue = t.value.chartColorLayers) == null ? void 0 : ue[X], ae = Number(Z);
3174
3186
  return Number.isInteger(ae) && ae > 0 ? ae : X + 1;
3175
3187
  }
3176
- const re = m(() => {
3188
+ const le = m(() => {
3177
3189
  if (F.value.length > 0) {
3178
3190
  let V = 0, ne = 0;
3179
3191
  const U = F.value.map((X, Z) => {
@@ -3187,13 +3199,13 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3187
3199
  isCompare: X.isCompare,
3188
3200
  metricCount: t.value.metricCount,
3189
3201
  mode: Se.metric
3190
- }), me = Ct({
3202
+ }), pe = Ct({
3191
3203
  fallbackIndex: Z,
3192
3204
  metricCount: t.value.metricCount
3193
- }), le = G({
3205
+ }), re = G({
3194
3206
  datasetIndex: Z,
3195
3207
  colorIndex: ae,
3196
- breakdownIndex: me
3208
+ breakdownIndex: pe
3197
3209
  }), xe = X.values.map((Be) => Be === null ? NaN : Number(Be));
3198
3210
  return {
3199
3211
  dataset: {
@@ -3201,9 +3213,9 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3201
3213
  data: xe,
3202
3214
  dash: !!X.isCompare,
3203
3215
  grouped: x.value ? !1 : void 0,
3204
- order: x.value ? le : void 0,
3216
+ order: x.value ? re : void 0,
3205
3217
  backgroundColor: t.value.chartColorBinding === Se.breakdown ? _t({
3206
- breakdownIndex: me,
3218
+ breakdownIndex: pe,
3207
3219
  metricIndex: ue,
3208
3220
  metricCount: t.value.metricCount,
3209
3221
  isCompare: X.isCompare,
@@ -3221,29 +3233,29 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3221
3233
  return x.value ? U.map((X) => X.dataset) : U.map((X) => X.dataset);
3222
3234
  } else
3223
3235
  return [];
3224
- }), { hiddenDatasetKeys: J, isDatasetHidden: _, toggleDatasetVisibility: E } = Wt(re), z = m(
3225
- () => re.value.map((V, ne) => ({
3236
+ }), { hiddenDatasetKeys: J, isDatasetHidden: _, toggleDatasetVisibility: E } = Wt(le), z = m(
3237
+ () => le.value.map((V, ne) => ({
3226
3238
  ...V,
3227
3239
  hidden: _(V, ne)
3228
3240
  }))
3229
3241
  ), R = St();
3230
- function A() {
3242
+ function P() {
3231
3243
  return R.extractChartSize(o.value, n.tileIndex) || { width: 0, height: 0 };
3232
3244
  }
3233
3245
  return $e(() => {
3234
3246
  Me(() => {
3235
- A();
3247
+ P();
3236
3248
  });
3237
3249
  }), we([z], () => {
3238
- Me(() => A());
3250
+ Me(() => P());
3239
3251
  }), (V, ne) => {
3240
- var X, Z, ae, ue, me, le;
3241
- const U = pe("FmBarChart");
3242
- return Y(), ve(Ve, null, [
3243
- Q("div", Pr, [
3252
+ var X, Z, ae, ue, pe, re;
3253
+ const U = ve("FmBarChart");
3254
+ return Y(), he(Ve, null, [
3255
+ ee("div", Ar, [
3244
3256
  nt(V.$slots, "menu"),
3245
- Q("div", {
3246
- class: Le(["chart-layout", {
3257
+ ee("div", {
3258
+ class: De(["chart-layout", {
3247
3259
  "chart-layout--side": w.value && (r(B).display ?? !1) && M.value
3248
3260
  }])
3249
3261
  }, [
@@ -3256,6 +3268,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3256
3268
  "text-color": (X = r(B).labels) == null ? void 0 : X.color,
3257
3269
  "font-size": (ae = (Z = r(B).labels) == null ? void 0 : Z.font) == null ? void 0 : ae.size,
3258
3270
  "legend-update-key": z.value,
3271
+ "use-point-style": t.value.usePointStyle ?? !0,
3259
3272
  "chart-color-binding": t.value.chartColorBinding,
3260
3273
  "chart-colors": t.value.chartColors,
3261
3274
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3263,8 +3276,8 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3263
3276
  "metric-count": t.value.metricCount,
3264
3277
  "hidden-dataset-keys": r(J),
3265
3278
  onToggleDatasetVisibility: r(E)
3266
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
3267
- he(U, {
3279
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
3280
+ me(U, {
3268
3281
  ref_key: "chartRef",
3269
3282
  ref: o,
3270
3283
  class: "bar-chart",
@@ -3273,7 +3286,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3273
3286
  "x-cfg": K.value,
3274
3287
  "y-cfg": te.value,
3275
3288
  transpose: r(L),
3276
- stacked: P.value,
3289
+ stacked: A.value,
3277
3290
  legend: {
3278
3291
  display: !1
3279
3292
  },
@@ -3281,7 +3294,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3281
3294
  plugins: [r(k)],
3282
3295
  datalabels: r(y),
3283
3296
  "maintain-aspect-ratio": !1,
3284
- style: Ie({
3297
+ style: Le({
3285
3298
  "--chart-width": w.value && (r(B).display ?? !1) && M.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(v) !== void 0 ? r(v) + "px" : "100%",
3286
3299
  "--chart-height": w.value && (r(B).display ?? !1) && !M.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(f) !== void 0 ? r(f) + "px" : "100%"
3287
3300
  })
@@ -3293,8 +3306,9 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3293
3306
  position: u.value,
3294
3307
  "max-width": r(B).maxWidth,
3295
3308
  "text-color": (ue = r(B).labels) == null ? void 0 : ue.color,
3296
- "font-size": (le = (me = r(B).labels) == null ? void 0 : me.font) == null ? void 0 : le.size,
3309
+ "font-size": (re = (pe = r(B).labels) == null ? void 0 : pe.font) == null ? void 0 : re.size,
3297
3310
  "legend-update-key": z.value,
3311
+ "use-point-style": t.value.usePointStyle ?? !0,
3298
3312
  "chart-color-binding": t.value.chartColorBinding,
3299
3313
  "chart-colors": t.value.chartColors,
3300
3314
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3302,14 +3316,14 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3302
3316
  "metric-count": t.value.metricCount,
3303
3317
  "hidden-dataset-keys": r(J),
3304
3318
  onToggleDatasetVisibility: r(E)
3305
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
3319
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
3306
3320
  ], 2)
3307
3321
  ]),
3308
- he($t, {
3322
+ me($t, {
3309
3323
  "model-value": r(i),
3310
3324
  "details-payload": r(l),
3311
3325
  "onUpdate:modelValue": r(c),
3312
- onValueHover: r(b),
3326
+ onValueHover: r(C),
3313
3327
  onValueLeave: r(N)
3314
3328
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3315
3329
  ], 64);
@@ -3330,7 +3344,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3330
3344
  tooltipDetailsPayload: l,
3331
3345
  tooltipOptions: h,
3332
3346
  handleTooltipDetailsSheetVisibility: c,
3333
- handleTooltipDetailsHover: b,
3347
+ handleTooltipDetailsHover: C,
3334
3348
  handleTooltipDetailsLeave: N
3335
3349
  } = Ht(o, {
3336
3350
  maxTooltipItems: s
@@ -3344,7 +3358,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3344
3358
  t.value
3345
3359
  ), T = m(
3346
3360
  () => kt(t.value.isTransposed === !0, h.value)
3347
- ), k = Vt("bar"), x = m(() => t.value.stackBarOverlap === !0), P = m(() => x.value === !1), w = m(() => {
3361
+ ), k = Vt("bar"), x = m(() => t.value.stackBarOverlap === !0), A = m(() => x.value === !1), w = m(() => {
3348
3362
  const U = B.value.position;
3349
3363
  return !U || U === "top" || U === "bottom" || U === "left" || U === "right";
3350
3364
  }), u = m(() => B.value.position ?? "top"), M = m(
@@ -3353,10 +3367,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3353
3367
  () => u.value === "top" || u.value === "left"
3354
3368
  ), K = m(() => ({
3355
3369
  ...g.value,
3356
- stacked: P.value
3370
+ stacked: A.value
3357
3371
  })), te = m(() => ({
3358
3372
  ...I.value,
3359
- stacked: P.value
3373
+ stacked: A.value
3360
3374
  }));
3361
3375
  function G(U) {
3362
3376
  const X = " - ", Z = U.lastIndexOf(X);
@@ -3368,7 +3382,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3368
3382
  metricLabel: U.slice(Z + X.length)
3369
3383
  };
3370
3384
  }
3371
- function re(U, X) {
3385
+ function le(U, X) {
3372
3386
  if (typeof U == "string") {
3373
3387
  const Z = U.trim();
3374
3388
  if (Z.length > 0)
@@ -3380,58 +3394,58 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3380
3394
  datasetIndex: U,
3381
3395
  colorIndex: X
3382
3396
  }) {
3383
- var me;
3384
- const Z = t.value.chartColorBinding === Se.metric ? X : U, ae = (me = t.value.chartColorLayers) == null ? void 0 : me[Z], ue = Number(ae);
3397
+ var pe;
3398
+ const Z = t.value.chartColorBinding === Se.metric ? X : U, ae = (pe = t.value.chartColorLayers) == null ? void 0 : pe[Z], ue = Number(ae);
3385
3399
  return Number.isInteger(ue) && ue > 0 ? ue : Z + 1;
3386
3400
  }
3387
3401
  const _ = m(() => {
3388
3402
  if (F.value.length === 0)
3389
3403
  return [];
3390
- const U = F.value.map((le, ce) => ({
3391
- source: le,
3404
+ const U = F.value.map((re, ce) => ({
3405
+ source: re,
3392
3406
  index: ce,
3393
- name: re(le == null ? void 0 : le.name, ce),
3394
- values: (le == null ? void 0 : le.values) ?? []
3407
+ name: le(re == null ? void 0 : re.name, ce),
3408
+ values: (re == null ? void 0 : re.values) ?? []
3395
3409
  })), X = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map();
3396
- for (const le of U) {
3397
- const { clusterKey: ce, metricLabel: xe } = G(le.name);
3410
+ for (const re of U) {
3411
+ const { clusterKey: ce, metricLabel: xe } = G(re.name);
3398
3412
  Z.has(ce) || Z.set(ce, Z.size), X.has(xe) || X.set(xe, X.size);
3399
3413
  }
3400
- const ae = Math.max(X.size, 1), ue = t.value.chartColorBinding === Se.breakdown, me = t.value.chartUseSecondaryMetricShades !== !1;
3401
- return U.map((le) => {
3414
+ const ae = Math.max(X.size, 1), ue = t.value.chartColorBinding === Se.breakdown, pe = t.value.chartUseSecondaryMetricShades !== !1;
3415
+ return U.map((re) => {
3402
3416
  const ce = Fe({
3403
- datasetIndex: le.index,
3404
- isCompare: le.source.isCompare,
3417
+ datasetIndex: re.index,
3418
+ isCompare: re.source.isCompare,
3405
3419
  metricCount: t.value.metricCount,
3406
3420
  mode: t.value.chartColorBinding
3407
- }), { clusterKey: xe, metricLabel: Be } = G(le.name), He = Z.get(xe) ?? 0, We = X.get(Be) ?? 0, Ge = ue ? _t({
3421
+ }), { clusterKey: xe, metricLabel: Be } = G(re.name), He = Z.get(xe) ?? 0, We = X.get(Be) ?? 0, Ge = ue ? _t({
3408
3422
  breakdownIndex: He,
3409
3423
  metricIndex: We,
3410
3424
  metricCount: ae,
3411
- isCompare: le.source.isCompare,
3425
+ isCompare: re.source.isCompare,
3412
3426
  breakdownColors: t.value.chartBreakdownColors,
3413
- useSecondaryMetricShades: me,
3427
+ useSecondaryMetricShades: pe,
3414
3428
  colorMode: "clustered"
3415
3429
  }) : tt({
3416
3430
  index: ce,
3417
- isCompare: le.source.isCompare,
3431
+ isCompare: re.source.isCompare,
3418
3432
  customColors: t.value.chartColors
3419
3433
  }), ut = J({
3420
- datasetIndex: le.index,
3434
+ datasetIndex: re.index,
3421
3435
  colorIndex: ce
3422
- }), ot = le.values.map((je) => je === null ? NaN : Number(je));
3436
+ }), ot = re.values.map((je) => je === null ? NaN : Number(je));
3423
3437
  return {
3424
- label: le.name,
3438
+ label: re.name,
3425
3439
  tooltipLabel: `${xe} - ${Be}`,
3426
3440
  data: ot,
3427
- dash: !!le.source.isCompare,
3441
+ dash: !!re.source.isCompare,
3428
3442
  grouped: !0,
3429
3443
  order: x.value ? ut : void 0,
3430
- stack: le.source.isCompare ? `${xe}__compare` : `${xe}__main`,
3444
+ stack: re.source.isCompare ? `${xe}__compare` : `${xe}__main`,
3431
3445
  backgroundColor: Ge
3432
3446
  };
3433
3447
  });
3434
- }), { hiddenDatasetKeys: E, isDatasetHidden: z, toggleDatasetVisibility: R } = Wt(_), A = m(
3448
+ }), { hiddenDatasetKeys: E, isDatasetHidden: z, toggleDatasetVisibility: R } = Wt(_), P = m(
3435
3449
  () => _.value.map((U, X) => ({
3436
3450
  ...U,
3437
3451
  hidden: z(U, X)
@@ -3444,16 +3458,16 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3444
3458
  Me(() => {
3445
3459
  ne();
3446
3460
  });
3447
- }), we([A], () => {
3461
+ }), we([P], () => {
3448
3462
  Me(() => ne());
3449
3463
  }), (U, X) => {
3450
- var ae, ue, me, le, ce, xe;
3451
- const Z = pe("FmBarChart");
3452
- return Y(), ve(Ve, null, [
3453
- Q("div", zr, [
3464
+ var ae, ue, pe, re, ce, xe;
3465
+ const Z = ve("FmBarChart");
3466
+ return Y(), he(Ve, null, [
3467
+ ee("div", zr, [
3454
3468
  nt(U.$slots, "menu"),
3455
- Q("div", {
3456
- class: Le(["chart-layout", {
3469
+ ee("div", {
3470
+ class: De(["chart-layout", {
3457
3471
  "chart-layout--side": w.value && (r(B).display ?? !1) && M.value
3458
3472
  }])
3459
3473
  }, [
@@ -3464,8 +3478,9 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3464
3478
  position: u.value,
3465
3479
  "max-width": r(B).maxWidth,
3466
3480
  "text-color": (ae = r(B).labels) == null ? void 0 : ae.color,
3467
- "font-size": (me = (ue = r(B).labels) == null ? void 0 : ue.font) == null ? void 0 : me.size,
3468
- "legend-update-key": A.value,
3481
+ "font-size": (pe = (ue = r(B).labels) == null ? void 0 : ue.font) == null ? void 0 : pe.size,
3482
+ "legend-update-key": P.value,
3483
+ "use-point-style": t.value.usePointStyle ?? !0,
3469
3484
  "chart-color-binding": t.value.chartColorBinding,
3470
3485
  "chart-colors": t.value.chartColors,
3471
3486
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3473,17 +3488,17 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3473
3488
  "metric-count": t.value.metricCount,
3474
3489
  "hidden-dataset-keys": r(E),
3475
3490
  onToggleDatasetVisibility: r(R)
3476
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
3477
- he(Z, {
3491
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
3492
+ me(Z, {
3478
3493
  ref_key: "chartRef",
3479
3494
  ref: o,
3480
3495
  class: "bar-chart",
3481
- datasets: A.value,
3496
+ datasets: P.value,
3482
3497
  "x-axis": { categories: $.value },
3483
3498
  "x-cfg": K.value,
3484
3499
  "y-cfg": te.value,
3485
3500
  transpose: r(L),
3486
- stacked: P.value,
3501
+ stacked: A.value,
3487
3502
  legend: {
3488
3503
  display: !1
3489
3504
  },
@@ -3491,7 +3506,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3491
3506
  plugins: [r(k)],
3492
3507
  datalabels: r(y),
3493
3508
  "maintain-aspect-ratio": !1,
3494
- style: Ie({
3509
+ style: Le({
3495
3510
  "--chart-width": w.value && (r(B).display ?? !1) && M.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(v) !== void 0 ? r(v) + "px" : "100%",
3496
3511
  "--chart-height": w.value && (r(B).display ?? !1) && !M.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(f) !== void 0 ? r(f) + "px" : "100%"
3497
3512
  })
@@ -3502,9 +3517,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3502
3517
  enabled: r(B).display ?? !1,
3503
3518
  position: u.value,
3504
3519
  "max-width": r(B).maxWidth,
3505
- "text-color": (le = r(B).labels) == null ? void 0 : le.color,
3520
+ "text-color": (re = r(B).labels) == null ? void 0 : re.color,
3506
3521
  "font-size": (xe = (ce = r(B).labels) == null ? void 0 : ce.font) == null ? void 0 : xe.size,
3507
- "legend-update-key": A.value,
3522
+ "legend-update-key": P.value,
3523
+ "use-point-style": t.value.usePointStyle ?? !0,
3508
3524
  "chart-color-binding": t.value.chartColorBinding,
3509
3525
  "chart-colors": t.value.chartColors,
3510
3526
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3512,14 +3528,14 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3512
3528
  "metric-count": t.value.metricCount,
3513
3529
  "hidden-dataset-keys": r(E),
3514
3530
  onToggleDatasetVisibility: r(R)
3515
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
3531
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
3516
3532
  ], 2)
3517
3533
  ]),
3518
- he($t, {
3534
+ me($t, {
3519
3535
  "model-value": r(i),
3520
3536
  "details-payload": r(l),
3521
3537
  "onUpdate:modelValue": r(c),
3522
- onValueHover: r(b),
3538
+ onValueHover: r(C),
3523
3539
  onValueLeave: r(N)
3524
3540
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3525
3541
  ], 64);
@@ -3557,7 +3573,7 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3557
3573
  tooltipDetailsPayload: l,
3558
3574
  tooltipOptions: h,
3559
3575
  handleTooltipDetailsSheetVisibility: c,
3560
- handleTooltipDetailsHover: b,
3576
+ handleTooltipDetailsHover: C,
3561
3577
  handleTooltipDetailsLeave: N
3562
3578
  } = Ht(o, {
3563
3579
  maxTooltipItems: s
@@ -3573,7 +3589,7 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3573
3589
  t.value
3574
3590
  ), x = m(
3575
3591
  () => kt(t.value.isTransposed === !0, h.value)
3576
- ), P = Vt("line"), w = vo("report-line-style-plugin-stack-line"), u = m(() => {
3592
+ ), A = Vt("line"), w = vo("report-line-style-plugin-stack-line"), u = m(() => {
3577
3593
  const R = f.value.position;
3578
3594
  return !R || R === "top" || R === "bottom" || R === "left" || R === "right";
3579
3595
  }), M = m(() => f.value.position ?? "top"), W = m(
@@ -3581,30 +3597,30 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3581
3597
  ), K = m(
3582
3598
  () => M.value === "top" || M.value === "left"
3583
3599
  ), te = m(() => g.value.length > 0 ? [
3584
- ...g.value.map((R, A) => {
3600
+ ...g.value.map((R, P) => {
3585
3601
  var ce;
3586
3602
  let V = R.values;
3587
3603
  F.value && (V = [NaN, V[0], NaN]);
3588
3604
  const ne = V.map((xe) => xe === null ? NaN : Number(xe)), U = Fe({
3589
- datasetIndex: A,
3605
+ datasetIndex: P,
3590
3606
  isCompare: R.isCompare,
3591
3607
  metricCount: t.value.metricCount,
3592
3608
  mode: t.value.chartColorBinding
3593
3609
  }), X = Fe({
3594
- datasetIndex: A,
3610
+ datasetIndex: P,
3595
3611
  isCompare: R.isCompare,
3596
3612
  metricCount: t.value.metricCount,
3597
3613
  mode: Se.metric
3598
3614
  }), Z = Fe({
3599
- datasetIndex: A,
3615
+ datasetIndex: P,
3600
3616
  isCompare: R.isCompare,
3601
3617
  metricCount: t.value.metricCount,
3602
3618
  mode: t.value.lineStyleBinding
3603
- }), ae = (ce = t.value.lineStyles) == null ? void 0 : ce[Z], ue = t.value.chartColorBinding === Se.breakdown, me = Ct({
3604
- fallbackIndex: A,
3619
+ }), ae = (ce = t.value.lineStyles) == null ? void 0 : ce[Z], ue = t.value.chartColorBinding === Se.breakdown, pe = Ct({
3620
+ fallbackIndex: P,
3605
3621
  metricCount: t.value.metricCount
3606
- }), le = ue ? _t({
3607
- breakdownIndex: me,
3622
+ }), re = ue ? _t({
3623
+ breakdownIndex: pe,
3608
3624
  metricIndex: X,
3609
3625
  metricCount: t.value.metricCount,
3610
3626
  isCompare: R.isCompare,
@@ -3622,18 +3638,18 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3622
3638
  dash: R.isCompare,
3623
3639
  lineStyle: ae,
3624
3640
  fill: !0,
3625
- color: le,
3641
+ color: re,
3626
3642
  pointRadius: F.value ? 4 : void 0,
3627
3643
  pointHoverRadius: F.value ? 6 : void 0,
3628
- pointBackgroundColor: F.value ? le : void 0,
3629
- pointBorderColor: F.value ? le : void 0,
3644
+ pointBackgroundColor: F.value ? re : void 0,
3645
+ pointBorderColor: F.value ? re : void 0,
3630
3646
  pointBorderWidth: F.value ? 2 : void 0
3631
3647
  };
3632
3648
  })
3633
- ] : []), { hiddenDatasetKeys: G, isDatasetHidden: re, toggleDatasetVisibility: J } = Wt(te), _ = m(
3634
- () => te.value.map((R, A) => ({
3649
+ ] : []), { hiddenDatasetKeys: G, isDatasetHidden: le, toggleDatasetVisibility: J } = Wt(te), _ = m(
3650
+ () => te.value.map((R, P) => ({
3635
3651
  ...R,
3636
- hidden: re(R, A)
3652
+ hidden: le(R, P)
3637
3653
  }))
3638
3654
  ), E = St();
3639
3655
  function z() {
@@ -3645,14 +3661,14 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3645
3661
  });
3646
3662
  }), we([_], () => {
3647
3663
  Me(() => z());
3648
- }), (R, A) => {
3664
+ }), (R, P) => {
3649
3665
  var ne, U, X, Z, ae, ue;
3650
- const V = pe("FmLineChart");
3651
- return Y(), ve(Ve, null, [
3652
- Q("div", $r, [
3666
+ const V = ve("FmLineChart");
3667
+ return Y(), he(Ve, null, [
3668
+ ee("div", $r, [
3653
3669
  nt(R.$slots, "menu"),
3654
- Q("div", {
3655
- class: Le(["chart-layout", {
3670
+ ee("div", {
3671
+ class: De(["chart-layout", {
3656
3672
  "chart-layout--side": u.value && (r(f).display ?? !1) && W.value
3657
3673
  }])
3658
3674
  }, [
@@ -3665,6 +3681,7 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3665
3681
  "text-color": (ne = r(f).labels) == null ? void 0 : ne.color,
3666
3682
  "font-size": (X = (U = r(f).labels) == null ? void 0 : U.font) == null ? void 0 : X.size,
3667
3683
  "legend-update-key": _.value,
3684
+ "use-point-style": t.value.usePointStyle ?? !0,
3668
3685
  "chart-color-binding": t.value.chartColorBinding,
3669
3686
  "chart-colors": t.value.chartColors,
3670
3687
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3672,8 +3689,8 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3672
3689
  "metric-count": t.value.metricCount,
3673
3690
  "hidden-dataset-keys": r(G),
3674
3691
  onToggleDatasetVisibility: r(J)
3675
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
3676
- he(V, {
3692
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
3693
+ me(V, {
3677
3694
  ref_key: "chartRef",
3678
3695
  ref: o,
3679
3696
  class: "line-chart",
@@ -3686,11 +3703,11 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3686
3703
  display: !1
3687
3704
  },
3688
3705
  tooltip: x.value,
3689
- plugins: [r(P), r(w)],
3706
+ plugins: [r(A), r(w)],
3690
3707
  stacked: !0,
3691
3708
  datalabels: r(I),
3692
3709
  "maintain-aspect-ratio": !1,
3693
- style: Ie({
3710
+ style: Le({
3694
3711
  "--chart-width": u.value && (r(f).display ?? !1) && W.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(T) !== void 0 ? r(T) + "px" : "100%",
3695
3712
  "--chart-height": u.value && (r(f).display ?? !1) && !W.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(k) !== void 0 ? r(k) + "px" : "100%"
3696
3713
  })
@@ -3704,6 +3721,7 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3704
3721
  "text-color": (Z = r(f).labels) == null ? void 0 : Z.color,
3705
3722
  "font-size": (ue = (ae = r(f).labels) == null ? void 0 : ae.font) == null ? void 0 : ue.size,
3706
3723
  "legend-update-key": _.value,
3724
+ "use-point-style": t.value.usePointStyle ?? !0,
3707
3725
  "chart-color-binding": t.value.chartColorBinding,
3708
3726
  "chart-colors": t.value.chartColors,
3709
3727
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3711,14 +3729,14 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3711
3729
  "metric-count": t.value.metricCount,
3712
3730
  "hidden-dataset-keys": r(G),
3713
3731
  onToggleDatasetVisibility: r(J)
3714
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
3732
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
3715
3733
  ], 2)
3716
3734
  ]),
3717
- he($t, {
3735
+ me($t, {
3718
3736
  "model-value": r(i),
3719
3737
  "details-payload": r(l),
3720
3738
  "onUpdate:modelValue": r(c),
3721
- onValueHover: r(b),
3739
+ onValueHover: r(C),
3722
3740
  onValueLeave: r(N)
3723
3741
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3724
3742
  ], 64);
@@ -3762,45 +3780,45 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3762
3780
  tooltipDetailsPayload: l,
3763
3781
  tooltipOptions: h,
3764
3782
  handleTooltipDetailsSheetVisibility: c,
3765
- handleTooltipDetailsHover: b,
3783
+ handleTooltipDetailsHover: C,
3766
3784
  handleTooltipDetailsLeave: N
3767
3785
  } = Ht(o, {
3768
3786
  maxTooltipItems: s
3769
3787
  }), $ = m(() => {
3770
- var A;
3771
- return ((A = t.value.data) == null ? void 0 : A.datasets) ?? [];
3788
+ var P;
3789
+ return ((P = t.value.data) == null ? void 0 : P.datasets) ?? [];
3772
3790
  }), F = m(() => {
3773
- var A;
3774
- return ((A = t.value.data) == null ? void 0 : A.xAxis) ?? [];
3775
- }), y = m(() => F.value.length === 1 && $.value.length > 1 && $.value.every((A) => A.values.length === 1 && A.isCompare !== !0)), g = m(
3776
- () => F.value.length === 1 && $.value.length > 0 && $.value.every((A) => A.values.length === 1)
3777
- ), I = m(() => y.value ? $.value.map((A) => A.name) : g.value ? ["", F.value[0], ""] : F.value), { datalabels: L, xCfg: B, yCfg: v, isTransposed: f, legend: T, chartWidth: k, chartHeight: x } = Tt(
3791
+ var P;
3792
+ return ((P = t.value.data) == null ? void 0 : P.xAxis) ?? [];
3793
+ }), y = m(() => F.value.length === 1 && $.value.length > 1 && $.value.every((P) => P.values.length === 1 && P.isCompare !== !0)), g = m(
3794
+ () => F.value.length === 1 && $.value.length > 0 && $.value.every((P) => P.values.length === 1)
3795
+ ), I = m(() => y.value ? $.value.map((P) => P.name) : g.value ? ["", F.value[0], ""] : F.value), { datalabels: L, xCfg: B, yCfg: v, isTransposed: f, legend: T, chartWidth: k, chartHeight: x } = Tt(
3778
3796
  t.value
3779
- ), P = m(
3797
+ ), A = m(
3780
3798
  () => kt(t.value.isTransposed === !0, h.value)
3781
3799
  ), w = Vt("line"), u = vo("report-line-style-plugin-line"), M = m(() => {
3782
- const A = T.value.position;
3783
- return !A || A === "top" || A === "bottom" || A === "left" || A === "right";
3800
+ const P = T.value.position;
3801
+ return !P || P === "top" || P === "bottom" || P === "left" || P === "right";
3784
3802
  }), W = m(() => T.value.position ?? "top"), K = m(
3785
3803
  () => W.value === "left" || W.value === "right"
3786
3804
  ), te = m(
3787
3805
  () => W.value === "top" || W.value === "left"
3788
3806
  ), G = m(() => $.value.length > 0 ? [
3789
- ...$.value.map((A, V) => {
3807
+ ...$.value.map((P, V) => {
3790
3808
  var He;
3791
3809
  const ne = Fe({
3792
3810
  datasetIndex: V,
3793
- isCompare: A.isCompare,
3811
+ isCompare: P.isCompare,
3794
3812
  metricCount: t.value.metricCount,
3795
3813
  mode: t.value.chartColorBinding
3796
3814
  }), U = Fe({
3797
3815
  datasetIndex: V,
3798
- isCompare: A.isCompare,
3816
+ isCompare: P.isCompare,
3799
3817
  metricCount: t.value.metricCount,
3800
3818
  mode: Se.metric
3801
3819
  }), X = tt({
3802
3820
  index: ne,
3803
- isCompare: A.isCompare,
3821
+ isCompare: P.isCompare,
3804
3822
  customColors: t.value.chartColors
3805
3823
  }), Z = t.value.chartColorBinding === Se.breakdown, ae = Ct({
3806
3824
  fallbackIndex: V,
@@ -3809,25 +3827,25 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3809
3827
  breakdownIndex: ae,
3810
3828
  metricIndex: U,
3811
3829
  metricCount: t.value.metricCount,
3812
- isCompare: A.isCompare,
3830
+ isCompare: P.isCompare,
3813
3831
  breakdownColors: t.value.chartBreakdownColors,
3814
3832
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
3815
3833
  customColors: t.value.chartColors
3816
3834
  }) : X;
3817
- let me = A.values;
3818
- y.value ? me = $.value.map(
3819
- (We, Ge) => Ge === V ? A.values[0] : NaN
3820
- ) : g.value && (me = [NaN, me[0], NaN]);
3821
- const le = me.map((We) => We === null ? NaN : Number(We)), ce = g.value || y.value, xe = Fe({
3835
+ let pe = P.values;
3836
+ y.value ? pe = $.value.map(
3837
+ (We, Ge) => Ge === V ? P.values[0] : NaN
3838
+ ) : g.value && (pe = [NaN, pe[0], NaN]);
3839
+ const re = pe.map((We) => We === null ? NaN : Number(We)), ce = g.value || y.value, xe = Fe({
3822
3840
  datasetIndex: V,
3823
- isCompare: A.isCompare,
3841
+ isCompare: P.isCompare,
3824
3842
  metricCount: t.value.metricCount,
3825
3843
  mode: t.value.lineStyleBinding
3826
3844
  }), Be = (He = t.value.lineStyles) == null ? void 0 : He[xe];
3827
3845
  return {
3828
- label: A.name,
3829
- data: le,
3830
- dash: !!A.isCompare,
3846
+ label: P.name,
3847
+ data: re,
3848
+ dash: !!P.isCompare,
3831
3849
  lineStyle: Be,
3832
3850
  fill: !1,
3833
3851
  color: ue,
@@ -3838,10 +3856,10 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3838
3856
  pointBorderWidth: ce ? 2 : void 0
3839
3857
  };
3840
3858
  })
3841
- ] : []), { hiddenDatasetKeys: re, isDatasetHidden: J, toggleDatasetVisibility: _ } = Wt(G), E = m(
3842
- () => G.value.map((A, V) => ({
3843
- ...A,
3844
- hidden: J(A, V)
3859
+ ] : []), { hiddenDatasetKeys: le, isDatasetHidden: J, toggleDatasetVisibility: _ } = Wt(G), E = m(
3860
+ () => G.value.map((P, V) => ({
3861
+ ...P,
3862
+ hidden: J(P, V)
3845
3863
  }))
3846
3864
  ), z = St();
3847
3865
  function R() {
@@ -3853,14 +3871,14 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3853
3871
  });
3854
3872
  }), we([E], () => {
3855
3873
  Me(() => R());
3856
- }), (A, V) => {
3857
- var U, X, Z, ae, ue, me;
3858
- const ne = pe("FmLineChart");
3859
- return Y(), ve(Ve, null, [
3860
- Q("div", Ur, [
3861
- nt(A.$slots, "menu"),
3862
- Q("div", {
3863
- class: Le(["chart-layout", {
3874
+ }), (P, V) => {
3875
+ var U, X, Z, ae, ue, pe;
3876
+ const ne = ve("FmLineChart");
3877
+ return Y(), he(Ve, null, [
3878
+ ee("div", Ur, [
3879
+ nt(P.$slots, "menu"),
3880
+ ee("div", {
3881
+ class: De(["chart-layout", {
3864
3882
  "chart-layout--side": M.value && (r(T).display ?? !1) && K.value
3865
3883
  }])
3866
3884
  }, [
@@ -3878,10 +3896,11 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3878
3896
  "chart-breakdown-colors": t.value.chartBreakdownColors,
3879
3897
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3880
3898
  "metric-count": t.value.metricCount,
3881
- "hidden-dataset-keys": r(re),
3899
+ "hidden-dataset-keys": r(le),
3900
+ "use-point-style": t.value.usePointStyle ?? !0,
3882
3901
  onToggleDatasetVisibility: r(_)
3883
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0),
3884
- he(ne, {
3902
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : Ce("", !0),
3903
+ me(ne, {
3885
3904
  ref_key: "chartRef",
3886
3905
  ref: o,
3887
3906
  class: "line-chart",
@@ -3893,11 +3912,11 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3893
3912
  legend: {
3894
3913
  display: !1
3895
3914
  },
3896
- tooltip: P.value,
3915
+ tooltip: A.value,
3897
3916
  datalabels: r(L),
3898
3917
  plugins: [r(w), r(u)],
3899
3918
  "maintain-aspect-ratio": !1,
3900
- style: Ie({
3919
+ style: Le({
3901
3920
  "--chart-width": M.value && (r(T).display ?? !1) && K.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(k) !== void 0 ? r(k) + "px" : "100%",
3902
3921
  "--chart-height": M.value && (r(T).display ?? !1) && !K.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(x) !== void 0 ? r(x) + "px" : "100%"
3903
3922
  })
@@ -3909,23 +3928,24 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3909
3928
  position: W.value,
3910
3929
  "max-width": r(T).maxWidth,
3911
3930
  "text-color": (ae = r(T).labels) == null ? void 0 : ae.color,
3912
- "font-size": (me = (ue = r(T).labels) == null ? void 0 : ue.font) == null ? void 0 : me.size,
3931
+ "font-size": (pe = (ue = r(T).labels) == null ? void 0 : ue.font) == null ? void 0 : pe.size,
3913
3932
  "legend-update-key": E.value,
3914
3933
  "chart-color-binding": t.value.chartColorBinding,
3915
3934
  "chart-colors": t.value.chartColors,
3916
3935
  "chart-breakdown-colors": t.value.chartBreakdownColors,
3917
3936
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3918
3937
  "metric-count": t.value.metricCount,
3919
- "hidden-dataset-keys": r(re),
3938
+ "hidden-dataset-keys": r(le),
3939
+ "use-point-style": t.value.usePointStyle ?? !0,
3920
3940
  onToggleDatasetVisibility: r(_)
3921
- }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Ce("", !0)
3941
+ }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : Ce("", !0)
3922
3942
  ], 2)
3923
3943
  ]),
3924
- he($t, {
3944
+ me($t, {
3925
3945
  "model-value": r(i),
3926
3946
  "details-payload": r(l),
3927
3947
  "onUpdate:modelValue": r(c),
3928
- onValueHover: r(b),
3948
+ onValueHover: r(C),
3929
3949
  onValueLeave: r(N)
3930
3950
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3931
3951
  ], 64);
@@ -3942,7 +3962,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3942
3962
  }),
3943
3963
  emits: ["update:modelValue"],
3944
3964
  setup(e) {
3945
- const { t: n } = it(), { FmForm: t } = Xo, o = e, s = D(), i = Oe(e, "modelValue"), l = D(!0), h = D(!1), c = kn(), { selectedLocationIds: b, dateRange: N, timeRange: $ } = st(nn()), F = D(cn.PORTRAIT);
3965
+ const { t: n } = it(), { FmForm: t } = Xo, o = e, s = D(), i = Oe(e, "modelValue"), l = D(!0), h = D(!1), c = kn(), { selectedLocationIds: C, dateRange: N, timeRange: $ } = st(nn()), F = D(cn.PORTRAIT);
3946
3966
  function y() {
3947
3967
  var I;
3948
3968
  (I = s.value) == null || I.validateInputs();
@@ -3957,7 +3977,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3957
3977
  isCombinedLocationLayout: l.value,
3958
3978
  timeRange: $.value,
3959
3979
  dateRange: N.value,
3960
- locationIds: b.value
3980
+ locationIds: C.value
3961
3981
  });
3962
3982
  } catch (I) {
3963
3983
  c.open({ message: I.message, type: "error" });
@@ -3966,7 +3986,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3966
3986
  }
3967
3987
  }
3968
3988
  return (I, L) => {
3969
- const B = pe("FmRadio"), v = pe("FmRadioGroup"), f = pe("FmButton"), T = pe("FmDialog");
3989
+ const B = ve("FmRadio"), v = ve("FmRadioGroup"), f = ve("FmButton"), T = ve("FmDialog");
3970
3990
  return Y(), ye(T, {
3971
3991
  modelValue: i.value,
3972
3992
  "onUpdate:modelValue": L[2] || (L[2] = (k) => i.value = k),
@@ -3977,23 +3997,23 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3977
3997
  Fo("Select Orientation")
3978
3998
  ])),
3979
3999
  default: Te(() => [
3980
- he(r(t), {
4000
+ me(r(t), {
3981
4001
  ref_key: "form",
3982
4002
  ref: s,
3983
4003
  onValidationSuccess: g
3984
4004
  }, {
3985
4005
  default: Te(() => [
3986
- Q("div", qr, [
3987
- he(v, {
4006
+ ee("div", qr, [
4007
+ me(v, {
3988
4008
  modelValue: F.value,
3989
4009
  "onUpdate:modelValue": L[0] || (L[0] = (k) => F.value = k)
3990
4010
  }, {
3991
4011
  default: Te(() => [
3992
- he(B, {
4012
+ me(B, {
3993
4013
  value: r(cn).PORTRAIT,
3994
4014
  label: r(n)("report.common.portrait")
3995
4015
  }, null, 8, ["value", "label"]),
3996
- he(B, {
4016
+ me(B, {
3997
4017
  value: r(cn).LANDSCAPE,
3998
4018
  label: r(n)("report.common.landscape")
3999
4019
  }, null, 8, ["value", "label"])
@@ -4001,15 +4021,15 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
4001
4021
  _: 1
4002
4022
  }, 8, ["modelValue"])
4003
4023
  ]),
4004
- Q("div", Xr, [
4005
- L[4] || (L[4] = Q("div", { class: "grow" }, null, -1)),
4006
- he(f, {
4024
+ ee("div", Xr, [
4025
+ L[4] || (L[4] = ee("div", { class: "grow" }, null, -1)),
4026
+ me(f, {
4007
4027
  label: r(n)("report.common.cancel"),
4008
4028
  variant: "tertiary",
4009
4029
  onClick: L[1] || (L[1] = (k) => i.value = !1)
4010
4030
  }, null, 8, ["label"]),
4011
- Q("div", null, [
4012
- he(f, {
4031
+ ee("div", null, [
4032
+ me(f, {
4013
4033
  label: r(n)("report.common.download"),
4014
4034
  loading: h.value,
4015
4035
  onClick: y
@@ -4027,7 +4047,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
4027
4047
  });
4028
4048
  function Gr(e) {
4029
4049
  const { breakpoints: n } = an(), { containerRef: t, isTable: o = D(!0) } = e;
4030
- let s = D(1), i = null, l = null, h = null, c = null, b = null, N = null;
4050
+ let s = D(1), i = null, l = null, h = null, c = null, C = null, N = null;
4031
4051
  function $() {
4032
4052
  return t.value ? t.value.querySelector("table") : null;
4033
4053
  }
@@ -4040,13 +4060,13 @@ function Gr(e) {
4040
4060
  (M.overflowX === "auto" || M.overflowX === "scroll") && x.push(u);
4041
4061
  }
4042
4062
  });
4043
- let P = (w = t.value) == null ? void 0 : w.parentElement;
4044
- for (; P; ) {
4045
- if (P.scrollWidth > P.clientWidth) {
4046
- const u = window.getComputedStyle(P);
4047
- (u.overflowX === "auto" || u.overflowX === "scroll") && x.push(P);
4063
+ let A = (w = t.value) == null ? void 0 : w.parentElement;
4064
+ for (; A; ) {
4065
+ if (A.scrollWidth > A.clientWidth) {
4066
+ const u = window.getComputedStyle(A);
4067
+ (u.overflowX === "auto" || u.overflowX === "scroll") && x.push(A);
4048
4068
  }
4049
- P = P.parentElement;
4069
+ A = A.parentElement;
4050
4070
  }
4051
4071
  return x;
4052
4072
  }
@@ -4070,11 +4090,11 @@ function Gr(e) {
4070
4090
  border-collapse: collapse;
4071
4091
  pointer-events: auto;
4072
4092
  `;
4073
- const P = h.cloneNode(!0);
4074
- P.style.cssText = "pointer-events: auto;", g(h, P), x.appendChild(P), i.appendChild(x), document.body.appendChild(i), B(), v(), f(), L();
4093
+ const A = h.cloneNode(!0);
4094
+ A.style.cssText = "pointer-events: auto;", g(h, A), x.appendChild(A), i.appendChild(x), document.body.appendChild(i), B(), v(), f(), L();
4075
4095
  }
4076
- function g(x, P) {
4077
- const w = x.querySelectorAll("th, td"), u = P.querySelectorAll("th, td");
4096
+ function g(x, A) {
4097
+ const w = x.querySelectorAll("th, td"), u = A.querySelectorAll("th, td");
4078
4098
  w.forEach((M, W) => {
4079
4099
  const K = u[W];
4080
4100
  if (!K) return;
@@ -4094,8 +4114,8 @@ function Gr(e) {
4094
4114
  boxSizing: "border-box",
4095
4115
  cursor: G.cursor || "pointer",
4096
4116
  pointerEvents: "auto"
4097
- }), K.onclick = (re) => {
4098
- re.preventDefault(), re.stopPropagation();
4117
+ }), K.onclick = (le) => {
4118
+ le.preventDefault(), le.stopPropagation();
4099
4119
  const J = te.querySelector(
4100
4120
  "button, a, [role='button']"
4101
4121
  );
@@ -4104,11 +4124,11 @@ function Gr(e) {
4104
4124
  });
4105
4125
  }
4106
4126
  function I() {
4107
- const x = n.value.xs || n.value.sm, P = document.querySelector('[data-editor-header="true"]'), w = document.querySelector('[data-menu-tab="true"]');
4108
- if (x && !P)
4127
+ const x = n.value.xs || n.value.sm, A = document.querySelector('[data-editor-header="true"]'), w = document.querySelector('[data-menu-tab="true"]');
4128
+ if (x && !A)
4109
4129
  return 1;
4110
- if (P)
4111
- return P.getBoundingClientRect().bottom;
4130
+ if (A)
4131
+ return A.getBoundingClientRect().bottom;
4112
4132
  if (w) {
4113
4133
  let u = w;
4114
4134
  for (; u; ) {
@@ -4122,13 +4142,13 @@ function Gr(e) {
4122
4142
  }
4123
4143
  function L() {
4124
4144
  if (!i || !l || !h || !t.value) return;
4125
- const x = t.value.getBoundingClientRect(), P = l.getBoundingClientRect(), w = h.getBoundingClientRect(), u = I();
4126
- if (!(P.top <= u && P.bottom >= u + w.height)) {
4145
+ const x = t.value.getBoundingClientRect(), A = l.getBoundingClientRect(), w = h.getBoundingClientRect(), u = I();
4146
+ if (!(A.top <= u && A.bottom >= u + w.height)) {
4127
4147
  i.style.visibility = "hidden";
4128
4148
  return;
4129
4149
  }
4130
4150
  i.style.visibility = "visible", i.style.top = `${u}px`;
4131
- const W = window.getComputedStyle(t.value), K = parseFloat(W.paddingLeft) || 0, te = parseFloat(W.paddingRight) || 0, G = x.left + K, re = x.right - te, J = Math.max(G, x.left), _ = Math.min(re, x.right), E = Math.max(0, _ - J);
4151
+ const W = window.getComputedStyle(t.value), K = parseFloat(W.paddingLeft) || 0, te = parseFloat(W.paddingRight) || 0, G = x.left + K, le = x.right - te, J = Math.max(G, x.left), _ = Math.min(le, x.right), E = Math.max(0, _ - J);
4132
4152
  if (E <= 0) {
4133
4153
  i.style.visibility = "hidden";
4134
4154
  return;
@@ -4138,35 +4158,35 @@ function Gr(e) {
4138
4158
  z && (z.style.width = `${l.offsetWidth}px`, z.style.marginLeft = `${w.left - J}px`);
4139
4159
  }
4140
4160
  function B() {
4141
- var P;
4142
- b = () => requestAnimationFrame(L), window.addEventListener("scroll", b, { passive: !0 }), F().forEach((w) => {
4143
- b && w.addEventListener("scroll", b, { passive: !0 });
4161
+ var A;
4162
+ C = () => requestAnimationFrame(L), window.addEventListener("scroll", C, { passive: !0 }), F().forEach((w) => {
4163
+ C && w.addEventListener("scroll", C, { passive: !0 });
4144
4164
  });
4145
- let x = (P = t.value) == null ? void 0 : P.parentElement;
4165
+ let x = (A = t.value) == null ? void 0 : A.parentElement;
4146
4166
  for (; x; )
4147
- x !== document.body && (x.scrollHeight > x.clientHeight || x.scrollWidth > x.clientWidth) && x.addEventListener("scroll", b, { passive: !0 }), x = x.parentElement;
4167
+ x !== document.body && (x.scrollHeight > x.clientHeight || x.scrollWidth > x.clientWidth) && x.addEventListener("scroll", C, { passive: !0 }), x = x.parentElement;
4148
4168
  }
4149
4169
  function v() {
4150
4170
  c = new ResizeObserver(() => {
4151
4171
  if (h && i) {
4152
4172
  const x = i.querySelector("thead");
4153
4173
  x && g(h, x);
4154
- const P = i.querySelector("table");
4155
- P && l && (P.style.width = `${l.offsetWidth}px`);
4174
+ const A = i.querySelector("table");
4175
+ A && l && (A.style.width = `${l.offsetWidth}px`);
4156
4176
  }
4157
4177
  L();
4158
4178
  }), t.value && c.observe(t.value), l && c.observe(l);
4159
4179
  }
4160
4180
  function f() {
4161
4181
  if (!h) return;
4162
- const x = hn(() => y(), 100), P = () => {
4182
+ const x = hn(() => y(), 100), A = () => {
4163
4183
  if (h && i) {
4164
4184
  const w = i.querySelector("thead");
4165
4185
  w && g(h, w), L();
4166
4186
  }
4167
4187
  };
4168
4188
  N = new MutationObserver((w) => {
4169
- w.some((M) => M.type === "childList" ? M.addedNodes.length > 0 || M.removedNodes.length > 0 : !1) ? x() : P();
4189
+ w.some((M) => M.type === "childList" ? M.addedNodes.length > 0 || M.removedNodes.length > 0 : !1) ? x() : A();
4170
4190
  }), N.observe(h, {
4171
4191
  childList: !0,
4172
4192
  subtree: !0,
@@ -4176,14 +4196,14 @@ function Gr(e) {
4176
4196
  }
4177
4197
  function T() {
4178
4198
  var x;
4179
- if (i && (i.remove(), i = null), b) {
4180
- window.removeEventListener("scroll", b), F().forEach((w) => {
4181
- b && w.removeEventListener("scroll", b);
4199
+ if (i && (i.remove(), i = null), C) {
4200
+ window.removeEventListener("scroll", C), F().forEach((w) => {
4201
+ C && w.removeEventListener("scroll", C);
4182
4202
  });
4183
- let P = (x = t.value) == null ? void 0 : x.parentElement;
4184
- for (; P; )
4185
- P.removeEventListener("scroll", b), P = P.parentElement;
4186
- b = null;
4203
+ let A = (x = t.value) == null ? void 0 : x.parentElement;
4204
+ for (; A; )
4205
+ A.removeEventListener("scroll", C), A = A.parentElement;
4206
+ C = null;
4187
4207
  }
4188
4208
  c && (c.disconnect(), c = null), N && (N.disconnect(), N = null), l = null, h = null;
4189
4209
  }
@@ -4235,13 +4255,13 @@ const jr = {
4235
4255
  }),
4236
4256
  emits: ["update:modelValue"],
4237
4257
  setup(e) {
4238
- const n = D(!0), t = Oe(e, "modelValue"), o = t.value.widget.config, { t: s, te: i, locale: l } = it(), h = e, c = D(null), b = m(() => t.value.widget.type === oe.Table), N = m(() => {
4258
+ const n = D(!0), t = Oe(e, "modelValue"), o = t.value.widget.config, { t: s, te: i, locale: l } = it(), h = e, c = D(null), C = m(() => t.value.widget.type === oe.Table), N = m(() => {
4239
4259
  var S;
4240
4260
  return (S = c.value) == null ? void 0 : S.$el;
4241
4261
  }), { refresh: $ } = Gr({
4242
4262
  containerRef: N,
4243
- isTable: b
4244
- }), F = D(o.rollup), y = D(Pt()), g = D(o.drillDimension), I = m(() => {
4263
+ isTable: C
4264
+ }), F = D(o.rollup), y = D(At()), g = D(o.drillDimension), I = m(() => {
4245
4265
  if (Ee.value.length > 0) {
4246
4266
  const S = Ee.value.findIndex(
4247
4267
  (ge) => ge.value === g.value
@@ -4251,7 +4271,7 @@ const jr = {
4251
4271
  return -1;
4252
4272
  }), L = m(() => I.value !== 0), B = m(
4253
4273
  () => I.value != Ee.value.length - 1
4254
- ), v = D(o.showTitle ?? !0), f = D(o.titleFontSize ?? 14), T = D(o.titleBold ?? !1), k = D(o.titleItalic ?? !1), x = D(o.titleUnderline ?? !1), P = D(o.chartWidth ?? void 0), w = D(o.chartHeight ?? void 0), u = D(
4274
+ ), v = D(o.showTitle ?? !0), f = D(o.titleFontSize ?? 14), T = D(o.titleBold ?? !1), k = D(o.titleItalic ?? !1), x = D(o.titleUnderline ?? !1), A = D(o.chartWidth ?? void 0), w = D(o.chartHeight ?? void 0), u = D(
4255
4275
  Array.isArray(o.chartColors) ? [...o.chartColors] : void 0
4256
4276
  ), M = D(
4257
4277
  Array.isArray(o.chartColorLayers) ? [...o.chartColorLayers] : void 0
@@ -4259,7 +4279,7 @@ const jr = {
4259
4279
  Array.isArray(o.chartBreakdownColors) ? [...o.chartBreakdownColors] : void 0
4260
4280
  ), K = D(o.chartUseSecondaryMetricShades ?? !0), te = D(o.chartColorBinding), G = D(
4261
4281
  Array.isArray(o.lineStyles) ? [...o.lineStyles] : void 0
4262
- ), re = D(o.lineStyleBinding), J = D(o.showLabel ?? !1), _ = D(o.labelAlign ?? gn.center), E = D(o.labelAnchor ?? vn.center), z = D(o.labelRotation ?? 0), R = D(o.labelOffset ?? 0), A = D(o.labelFontSize ?? 12), V = m(() => o.showSearchBar), ne = D(o.showX ?? !0), U = D(o.xPosition ?? yn.bottom), X = D(o.showXGrid ?? !1), Z = D(o.showXTick ?? !0), ae = D(o.xTickFontSize ?? 12), ue = D(o.showXTitle ?? !1), me = D(o.xTitle ?? ""), le = D(o.xTitleFontSize ?? 12), ce = D(o.showY ?? !0), xe = D(o.yPosition ?? bn.left), Be = D(o.showYGrid ?? !1), He = D(o.showYTick ?? !0), We = D(o.yTickFontSize ?? 12), Ge = D(o.showYTitle ?? !1), ut = D(o.yTitle ?? ""), ot = D(o.yTitleFontSize ?? 12), je = D(o.showLegend ?? void 0), Et = D(o.legendPosition ?? Cn.top), Je = D(o.usePointStyle ?? !0), Ot = D(o.legendFontSize), Ut = D(o.legendColor ?? "#6b6b6b"), Kt = D(o.legendMaxWidth), Lt = D(o.maxTooltipItems), Ze = D(o.stackBarOverlap ?? !1), qt = D(o.rowHeight ?? 0), Xt = D(o.colWidths ?? []), Dt = D(!1), ct = D(""), { breakpoints: Qe, getBreakpointsBoundary: at } = an(), dt = D(), ke = m(
4282
+ ), le = D(o.lineStyleBinding), J = D(o.showLabel ?? !1), _ = D(o.labelAlign ?? gn.center), E = D(o.labelAnchor ?? vn.center), z = D(o.labelRotation ?? 0), R = D(o.labelOffset ?? 0), P = D(o.labelFontSize ?? 12), V = m(() => o.showSearchBar), ne = D(o.showX ?? !0), U = D(o.xPosition ?? yn.bottom), X = D(o.showXGrid ?? !1), Z = D(o.showXTick ?? !0), ae = D(o.xTickFontSize ?? 12), ue = D(o.showXTitle ?? !1), pe = D(o.xTitle ?? ""), re = D(o.xTitleFontSize ?? 12), ce = D(o.showY ?? !0), xe = D(o.yPosition ?? bn.left), Be = D(o.showYGrid ?? !1), He = D(o.showYTick ?? !0), We = D(o.yTickFontSize ?? 12), Ge = D(o.showYTitle ?? !1), ut = D(o.yTitle ?? ""), ot = D(o.yTitleFontSize ?? 12), je = D(o.showLegend ?? void 0), Et = D(o.legendPosition ?? Cn.top), Je = D(o.usePointStyle ?? !0), Ot = D(o.legendFontSize), Ut = D(o.legendColor ?? "#6b6b6b"), Kt = D(o.legendMaxWidth), Lt = D(o.maxTooltipItems), Ze = D(o.stackBarOverlap ?? !1), qt = D(o.rowHeight ?? 0), Xt = D(o.colWidths ?? []), Dt = D(!1), ct = D(""), { breakpoints: Qe, getBreakpointsBoundary: at } = an(), dt = D(), ke = m(
4263
4283
  () => h.customScreenWidth === void 0 ? window.innerWidth : h.customScreenWidth
4264
4284
  ), rn = m(
4265
4285
  () => (ke == null ? void 0 : ke.value) > at("xs")[1] && (ke == null ? void 0 : ke.value) <= at("sm")[1]
@@ -4272,9 +4292,9 @@ const jr = {
4272
4292
  () => Yo.find((S) => S.type === t.value.widget.type)
4273
4293
  ), a = hn(() => {
4274
4294
  var S;
4275
- dt.value = go((S = c.value) == null ? void 0 : S.$el.offsetWidth), y.value = Pt();
4295
+ dt.value = go((S = c.value) == null ? void 0 : S.$el.offsetWidth), y.value = At();
4276
4296
  }), p = m(() => {
4277
- if (Go(ee.value.type, d.value))
4297
+ if (Go(Q.value.type, d.value))
4278
4298
  switch (t.value.widget.type) {
4279
4299
  case oe.BarChart:
4280
4300
  return mr;
@@ -4299,9 +4319,9 @@ const jr = {
4299
4319
  }
4300
4320
  else
4301
4321
  return Nn;
4302
- }), d = D(null), { selectedLocationIds: C, dateRange: H, compareDateRange: O, timeRange: j } = st(nn()), { globalFilters: se, isGlobalFiltersLoading: q } = st(Vo()), { businessId: fe } = st(_n()), { businessLoadedId: be, businessDataVersion: de } = st(nn());
4303
- m(() => be.value === fe.value && C.value.length > 0 && !q.value);
4304
- const ie = D(!0), ee = m(() => {
4322
+ }), d = D(null), { selectedLocationIds: b, dateRange: H, compareDateRange: O, timeRange: j } = st(nn()), { globalFilters: se, isGlobalFiltersLoading: q } = st(Vo()), { businessId: fe } = st(_n()), { businessLoadedId: be, businessDataVersion: de } = st(nn());
4323
+ m(() => be.value === fe.value && b.value.length > 0 && !q.value);
4324
+ const ie = D(!0), Q = m(() => {
4305
4325
  const S = JSON.parse(JSON.stringify(t.value.widget));
4306
4326
  return {
4307
4327
  ...S,
@@ -4314,10 +4334,10 @@ const jr = {
4314
4334
  };
4315
4335
  }), _e = m(() => {
4316
4336
  var Re;
4317
- const S = ((Re = ee.value.config.metrics) == null ? void 0 : Re.length) ?? 0;
4318
- if (!ee.value.config.isBlend)
4337
+ const S = ((Re = Q.value.config.metrics) == null ? void 0 : Re.length) ?? 0;
4338
+ if (!Q.value.config.isBlend)
4319
4339
  return S;
4320
- const ge = (ee.value.config.joinDatasources ?? []).reduce(
4340
+ const ge = (Q.value.config.joinDatasources ?? []).reduce(
4321
4341
  (rt, un) => {
4322
4342
  var ht;
4323
4343
  return rt + (((ht = un.metrics) == null ? void 0 : ht.length) ?? 0);
@@ -4326,7 +4346,7 @@ const jr = {
4326
4346
  );
4327
4347
  return S + ge;
4328
4348
  });
4329
- function Pe() {
4349
+ function Ae() {
4330
4350
  return {
4331
4351
  data: d.value,
4332
4352
  showTitle: v.value,
@@ -4335,7 +4355,7 @@ const jr = {
4335
4355
  titleItalic: k.value,
4336
4356
  titleUnderline: x.value,
4337
4357
  chartHeight: w.value,
4338
- chartWidth: P.value,
4358
+ chartWidth: A.value,
4339
4359
  chartColors: u.value,
4340
4360
  chartColorLayers: M.value,
4341
4361
  chartBreakdownColors: W.value,
@@ -4343,21 +4363,21 @@ const jr = {
4343
4363
  chartColorBinding: te.value,
4344
4364
  metricCount: _e.value,
4345
4365
  lineStyles: G.value,
4346
- lineStyleBinding: re.value,
4366
+ lineStyleBinding: le.value,
4347
4367
  showLabel: J.value,
4348
4368
  labelAnchor: E.value,
4349
4369
  labelAlign: _.value,
4350
4370
  labelRotation: z.value,
4351
4371
  labelOffset: R.value,
4352
- labelFontSize: A.value,
4372
+ labelFontSize: P.value,
4353
4373
  showX: ne.value,
4354
4374
  xPosition: U.value,
4355
4375
  showXGrid: X.value,
4356
4376
  showXTick: Z.value,
4357
4377
  xTickFontSize: ae.value,
4358
4378
  showXTitle: ue.value,
4359
- xTitle: me.value,
4360
- xTitleFontSize: le.value,
4379
+ xTitle: pe.value,
4380
+ xTitleFontSize: re.value,
4361
4381
  showY: ce.value,
4362
4382
  yPosition: xe.value,
4363
4383
  showYGrid: Be.value,
@@ -4366,7 +4386,7 @@ const jr = {
4366
4386
  showYTitle: Ge.value,
4367
4387
  yTitleFontSize: ot.value,
4368
4388
  yTickFontSize: We.value,
4369
- isTransposed: ee.value.config.isTransposed,
4389
+ isTransposed: Q.value.config.isTransposed,
4370
4390
  showLegend: je.value,
4371
4391
  legendPosition: Et.value,
4372
4392
  usePointStyle: Je.value,
@@ -4381,14 +4401,14 @@ const jr = {
4381
4401
  return {
4382
4402
  data: d.value,
4383
4403
  filterText: ct.value,
4384
- rollupPosition: ee.value.config.rollupPosition,
4385
- grandTotalLabel: ee.value.config.grandTotalLabel,
4404
+ rollupPosition: Q.value.config.rollupPosition,
4405
+ grandTotalLabel: Q.value.config.grandTotalLabel,
4386
4406
  rowHeight: qt.value,
4387
4407
  colWidths: Xt.value
4388
4408
  };
4389
4409
  }
4390
- const De = m(() => {
4391
- switch (ee.value.type) {
4410
+ const Ie = m(() => {
4411
+ switch (Q.value.type) {
4392
4412
  case oe.Table:
4393
4413
  return Ue();
4394
4414
  case oe.BarChart:
@@ -4397,7 +4417,7 @@ const jr = {
4397
4417
  case oe.ClusteredStackBarChart:
4398
4418
  case oe.StackLineChart:
4399
4419
  case oe.Circular:
4400
- return Pe();
4420
+ return Ae();
4401
4421
  default:
4402
4422
  return { data: d.value };
4403
4423
  }
@@ -4418,7 +4438,7 @@ const jr = {
4418
4438
  }
4419
4439
  return [];
4420
4440
  }), Ee = m(() => {
4421
- const { config: S } = ee.value;
4441
+ const { config: S } = Q.value;
4422
4442
  return S.isDrillable ? S.dimensions.map((ge) => ({
4423
4443
  label: lt(s, i, ge.label, "other"),
4424
4444
  value: dn(ge)
@@ -4432,18 +4452,18 @@ const jr = {
4432
4452
  we(
4433
4453
  () => t.value.widget.config,
4434
4454
  (S) => {
4435
- F.value = S.rollup, v.value = S.showTitle ?? !0, f.value = S.titleFontSize ?? 14, T.value = S.titleBold ?? !1, k.value = S.titleItalic ?? !1, x.value = S.titleUnderline ?? !1, w.value = S.chartHeight ?? void 0, P.value = S.chartWidth ?? void 0, u.value = Array.isArray(S.chartColors) ? [...S.chartColors] : void 0, M.value = Array.isArray(S.chartColorLayers) ? [...S.chartColorLayers] : void 0, W.value = Array.isArray(S.chartBreakdownColors) ? [...S.chartBreakdownColors] : void 0, K.value = S.chartUseSecondaryMetricShades ?? !0, te.value = S.chartColorBinding, G.value = Array.isArray(S.lineStyles) ? [...S.lineStyles] : void 0, re.value = S.lineStyleBinding, J.value = S.showLabel ?? !1, _.value = S.labelAlign ?? gn.center, E.value = S.labelAnchor ?? vn.center, z.value = S.labelRotation ?? 0, R.value = S.labelOffset ?? 0, A.value = S.labelFontSize ?? 12, ne.value = S.showX ?? !0, U.value = S.xPosition ?? yn.bottom, X.value = S.showXGrid ?? !1, Z.value = S.showXTick ?? !0, ae.value = S.xTickFontSize ?? 12, ue.value = S.showXTitle ?? !1, me.value = S.xTitle ?? "", le.value = S.xTitleFontSize ?? 12, ce.value = S.showY ?? !0, xe.value = S.yPosition ?? bn.left, Be.value = S.showYGrid ?? !0, He.value = S.showYTick ?? !0, We.value = S.yTickFontSize ?? 12, Ge.value = S.showYTitle ?? !1, ut.value = S.yTitle ?? "", ot.value = S.yTitleFontSize ?? 12, je.value = S.showLegend ?? void 0, Et.value = S.legendPosition ?? Cn.top, Je.value = S.usePointStyle ?? !0, Ot.value = S.legendFontSize, Ut.value = S.legendColor ?? "#6b6b6b", Kt.value = S.legendMaxWidth, Lt.value = S.maxTooltipItems, Ze.value = S.stackBarOverlap ?? !1, qt.value = S.rowHeight ?? 0, Xt.value = S.colWidths ?? [], y.value = Pt();
4455
+ F.value = S.rollup, v.value = S.showTitle ?? !0, f.value = S.titleFontSize ?? 14, T.value = S.titleBold ?? !1, k.value = S.titleItalic ?? !1, x.value = S.titleUnderline ?? !1, w.value = S.chartHeight ?? void 0, A.value = S.chartWidth ?? void 0, u.value = Array.isArray(S.chartColors) ? [...S.chartColors] : void 0, M.value = Array.isArray(S.chartColorLayers) ? [...S.chartColorLayers] : void 0, W.value = Array.isArray(S.chartBreakdownColors) ? [...S.chartBreakdownColors] : void 0, K.value = S.chartUseSecondaryMetricShades ?? !0, te.value = S.chartColorBinding, G.value = Array.isArray(S.lineStyles) ? [...S.lineStyles] : void 0, le.value = S.lineStyleBinding, J.value = S.showLabel ?? !1, _.value = S.labelAlign ?? gn.center, E.value = S.labelAnchor ?? vn.center, z.value = S.labelRotation ?? 0, R.value = S.labelOffset ?? 0, P.value = S.labelFontSize ?? 12, ne.value = S.showX ?? !0, U.value = S.xPosition ?? yn.bottom, X.value = S.showXGrid ?? !1, Z.value = S.showXTick ?? !0, ae.value = S.xTickFontSize ?? 12, ue.value = S.showXTitle ?? !1, pe.value = S.xTitle ?? "", re.value = S.xTitleFontSize ?? 12, ce.value = S.showY ?? !0, xe.value = S.yPosition ?? bn.left, Be.value = S.showYGrid ?? !0, He.value = S.showYTick ?? !0, We.value = S.yTickFontSize ?? 12, Ge.value = S.showYTitle ?? !1, ut.value = S.yTitle ?? "", ot.value = S.yTitleFontSize ?? 12, je.value = S.showLegend ?? void 0, Et.value = S.legendPosition ?? Cn.top, Je.value = S.usePointStyle ?? !0, Ot.value = S.legendFontSize, Ut.value = S.legendColor ?? "#6b6b6b", Kt.value = S.legendMaxWidth, Lt.value = S.maxTooltipItems, Ze.value = S.stackBarOverlap ?? !1, qt.value = S.rowHeight ?? 0, Xt.value = S.colWidths ?? [], y.value = At();
4436
4456
  },
4437
4457
  { deep: !0 }
4438
4458
  ), we([() => F.value], () => {
4439
4459
  F.value !== null && (t.value.widget.config.rollup = F.value);
4440
4460
  }), we(
4441
4461
  [
4442
- () => ee.value,
4462
+ () => Q.value,
4443
4463
  () => H.value,
4444
4464
  () => j.value,
4445
4465
  () => O.value,
4446
- () => C.value,
4466
+ () => b.value,
4447
4467
  () => It.value,
4448
4468
  () => de.value
4449
4469
  ],
@@ -4466,7 +4486,7 @@ const jr = {
4466
4486
  let Gt;
4467
4487
  async function Bn() {
4468
4488
  if (!h.isStyleEditing) {
4469
- if (ee.value.config.schemaNames.length <= 0 && !(ee.value.config.dimensions.length <= 0 || ee.value.config.metrics.length <= 0)) {
4489
+ if (Q.value.config.schemaNames.length <= 0 && !(Q.value.config.dimensions.length <= 0 || Q.value.config.metrics.length <= 0)) {
4470
4490
  Mt.open({
4471
4491
  message: "schema must not be empty and dimension or metrics must have at least 1 column",
4472
4492
  type: "info"
@@ -4479,13 +4499,13 @@ const jr = {
4479
4499
  $o,
4480
4500
  500
4481
4501
  )({
4482
- widget: ee.value,
4502
+ widget: Q.value,
4483
4503
  signal: S,
4484
4504
  tileId: t.value.id
4485
4505
  });
4486
- de.value === ge && (d.value = Re, y.value = Pt(), setTimeout(() => $(), 100)), n.value = !1;
4506
+ de.value === ge && (d.value = Re, y.value = At(), setTimeout(() => $(), 100)), n.value = !1;
4487
4507
  } catch (S) {
4488
- S.code !== "ERR_CANCELED" && (d.value = null, Mt.open({ message: `Invalid chart ${ee.value.type}`, type: "error" }), console.log(S), n.value = !1);
4508
+ S.code !== "ERR_CANCELED" && (d.value = null, Mt.open({ message: `Invalid chart ${Q.value.type}`, type: "error" }), console.log(S), n.value = !1);
4489
4509
  }
4490
4510
  }
4491
4511
  }
@@ -4508,7 +4528,7 @@ const jr = {
4508
4528
  const S = I.value + 1;
4509
4529
  S >= 0 && S < Ee.value.length && (g.value = Ee.value[S].value);
4510
4530
  }
4511
- const An = D(pt.EXCEL), Fn = D(), Co = Object.values(pt).map((S) => ({
4531
+ const Pn = D(pt.EXCEL), Fn = D(), Co = Object.values(pt).map((S) => ({
4512
4532
  label: Ho(S),
4513
4533
  value: S,
4514
4534
  onClick: async () => {
@@ -4518,62 +4538,62 @@ const jr = {
4518
4538
  isCombinedLocationLayout: ie.value,
4519
4539
  timeRange: j.value,
4520
4540
  dateRange: H.value,
4521
- locationIds: C.value
4522
- }) : S === pt.PDF && (An.value = S, Fn.value = h.index, Dt.value = !0);
4541
+ locationIds: b.value
4542
+ }) : S === pt.PDF && (Pn.value = S, Fn.value = h.index, Dt.value = !0);
4523
4543
  }
4524
- })), xo = ee.value.type === oe.Spacer ? "flat" : "outlined", wo = ee.value.type === oe.Spacer ? "p-0" : "p-16";
4544
+ })), xo = Q.value.type === oe.Spacer ? "flat" : "outlined", wo = Q.value.type === oe.Spacer ? "p-0" : "p-16";
4525
4545
  return (S, ge) => {
4526
- const Re = pe("FmTooltip"), rt = pe("FmSearch"), un = pe("FmCheckbox"), ht = pe("FmButton"), So = pe("FmSelect"), _o = pe("FmMenuItem"), ko = pe("FmMenu"), To = pe("FmForm"), Lo = pe("FmCircularProgress"), Do = pe("FmCard");
4546
+ const Re = ve("FmTooltip"), rt = ve("FmSearch"), un = ve("FmCheckbox"), ht = ve("FmButton"), So = ve("FmSelect"), _o = ve("FmMenuItem"), ko = ve("FmMenu"), To = ve("FmForm"), Lo = ve("FmCircularProgress"), Do = ve("FmCard");
4527
4547
  return Y(), ye(Do, {
4528
4548
  ref_key: "tileCard",
4529
4549
  ref: c,
4530
- class: Le(`${sn.value} ${r(wo)}`),
4550
+ class: De(`${sn.value} ${r(wo)}`),
4531
4551
  variant: r(xo)
4532
4552
  }, {
4533
4553
  default: Te(() => [
4534
- he(Yr, {
4554
+ me(Yr, {
4535
4555
  modelValue: Dt.value,
4536
4556
  "onUpdate:modelValue": ge[0] || (ge[0] = (mt) => Dt.value = mt),
4537
- "report-type": An.value,
4557
+ "report-type": Pn.value,
4538
4558
  index: Fn.value
4539
4559
  }, null, 8, ["modelValue", "report-type", "index"]),
4540
- !n.value && !r(q) ? (Y(), ve("div", {
4560
+ !n.value && !r(q) ? (Y(), he("div", {
4541
4561
  key: 0,
4542
- style: Ie({ height: dt.value })
4562
+ style: Le({ height: dt.value })
4543
4563
  }, [
4544
4564
  (Y(), ye(eo(p.value), {
4545
4565
  key: y.value,
4546
- modelValue: De.value,
4547
- "onUpdate:modelValue": ge[4] || (ge[4] = (mt) => De.value = mt),
4566
+ modelValue: Ie.value,
4567
+ "onUpdate:modelValue": ge[4] || (ge[4] = (mt) => Ie.value = mt),
4548
4568
  "tile-index": h.index
4549
4569
  }, {
4550
4570
  menu: Te(() => [
4551
- he(To, { class: "flex items-center gap-2" }, {
4571
+ me(To, { class: "flex items-center gap-2" }, {
4552
4572
  default: Te(() => {
4553
- var mt, Pn, Rn, zn;
4573
+ var mt, An, Rn, zn;
4554
4574
  return [
4555
- he(Re, {
4575
+ me(Re, {
4556
4576
  variant: "plain",
4557
4577
  placement: "right",
4558
- content: ee.value.description,
4578
+ content: Q.value.description,
4559
4579
  "hide-arrow": !0,
4560
- disabled: !ee.value.description,
4580
+ disabled: !Q.value.description,
4561
4581
  "z-index": 99
4562
4582
  }, {
4563
4583
  default: Te(() => [
4564
- v.value !== !1 ? (Y(), ve("p", {
4584
+ v.value !== !1 ? (Y(), he("p", {
4565
4585
  key: 0,
4566
- style: Ie({
4586
+ style: Le({
4567
4587
  fontSize: f.value + "px",
4568
4588
  fontWeight: T.value ? "bold" : "normal",
4569
4589
  fontStyle: k.value ? "italic" : "normal",
4570
4590
  textDecoration: x.value ? "underline" : "none"
4571
4591
  }),
4572
- class: Le(["text-fm-color-typo-secondary line-clamp-1", [
4592
+ class: De(["text-fm-color-typo-secondary line-clamp-1", [
4573
4593
  f.value <= 18 ? "fm-typo-en-body-md-400" : "",
4574
- ee.value.description ? "border-b-2 border-dashed border-gray-300" : ""
4594
+ Q.value.description ? "border-b-2 border-dashed border-gray-300" : ""
4575
4595
  ]])
4576
- }, Ae(r(lt)(r(s), r(i), ee.value.title, "other")), 7)) : Ce("", !0)
4596
+ }, Pe(r(lt)(r(s), r(i), Q.value.title, "other")), 7)) : Ce("", !0)
4577
4597
  ]),
4578
4598
  _: 1
4579
4599
  }, 8, ["content", "disabled"]),
@@ -4582,23 +4602,23 @@ const jr = {
4582
4602
  modelValue: ct.value,
4583
4603
  "onUpdate:modelValue": ge[1] || (ge[1] = (qe) => ct.value = qe),
4584
4604
  class: "grow"
4585
- }, null, 8, ["modelValue"])) : (Y(), ve("div", jr)),
4586
- Po(he(un, {
4605
+ }, null, 8, ["modelValue"])) : (Y(), he("div", jr)),
4606
+ Ao(me(un, {
4587
4607
  modelValue: J.value,
4588
4608
  "onUpdate:modelValue": ge[2] || (ge[2] = (qe) => J.value = qe),
4589
4609
  label: "Label",
4590
4610
  value: !1
4591
4611
  }, null, 8, ["modelValue"]), [
4592
- [Ro, (Pn = ft.value) == null ? void 0 : Pn.showLabel]
4612
+ [Ro, (An = ft.value) == null ? void 0 : An.showLabel]
4593
4613
  ]),
4594
- (Rn = ft.value) != null && Rn.showDrillDimension && Ee.value.length > 0 ? (Y(), ve("div", Jr, [
4595
- he(ht, {
4614
+ (Rn = ft.value) != null && Rn.showDrillDimension && Ee.value.length > 0 ? (Y(), he("div", Jr, [
4615
+ me(ht, {
4596
4616
  icon: "arrow_upward",
4597
4617
  variant: "tertiary",
4598
4618
  disabled: !L.value,
4599
4619
  onClick: yo
4600
4620
  }, null, 8, ["disabled"]),
4601
- he(ht, {
4621
+ me(ht, {
4602
4622
  icon: "arrow_downward",
4603
4623
  variant: "tertiary",
4604
4624
  disabled: !B.value,
@@ -4617,13 +4637,13 @@ const jr = {
4617
4637
  shift: !0
4618
4638
  }, {
4619
4639
  "menu-button": Te(() => [
4620
- he(ht, {
4640
+ me(ht, {
4621
4641
  icon: "more_vert",
4622
4642
  variant: "tertiary"
4623
4643
  })
4624
4644
  ]),
4625
4645
  default: Te(() => [
4626
- (Y(!0), ve(Ve, null, Rt(r(Co), (qe) => (Y(), ye(_o, {
4646
+ (Y(!0), he(Ve, null, Rt(r(Co), (qe) => (Y(), ye(_o, {
4627
4647
  key: qe.value,
4628
4648
  label: qe.label,
4629
4649
  onClick: qe.onClick