@feedmepos/mf-report 5.23.6 → 5.23.7-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 (24) hide show
  1. package/dist/{App-nwXmJVxf.js → App-Ck6LU2s0.js} +61 -61
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js → BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js} +1007 -952
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js} +1 -1
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js → Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js} +1 -1
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js → FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js} +201 -201
  6. package/dist/{InsightView-CZxXrb_Z.js → InsightView-BqyCopia.js} +4 -4
  7. package/dist/{Integration-BxpLsC0U.js → Integration-D-APHR8f.js} +3 -3
  8. package/dist/{Integrations-CTyK-Uyg.js → Integrations-DVG378Mt.js} +2 -2
  9. package/dist/{Layout-473B8zVn.js → Layout-DAQOMFMP.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BcMhG_lN.js → MenuTab.vue_vue_type_script_setup_true_lang-KHuDibJ5.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-pecBAfSw.js → NavigationTab.vue_vue_type_script_setup_true_lang-BAAmC1SG.js} +3 -3
  12. package/dist/{OverviewView-D6ri8d93.js → OverviewView-BDRUTz05.js} +4 -4
  13. package/dist/{Report-DFJj0YRF.js → Report-DpPlnOrU.js} +3 -3
  14. package/dist/{ReportEditor-1ku-RI85.js → ReportEditor-Bh-ZvB7p.js} +4 -4
  15. package/dist/{ReportView-DXtOkb6E.js → ReportView-tP7j8_7Y.js} +6 -6
  16. package/dist/{Setting-CxyiPw1q.js → Setting-QWpjiw0r.js} +76 -75
  17. package/dist/{TileEditor-B3dD9oLf.js → TileEditor-C6wIGQBD.js} +5 -5
  18. package/dist/{TransitionFade-MWKMOUQW.js → TransitionFade-KfsEv8Nq.js} +4 -4
  19. package/dist/{app-DC6ifZM-.js → app-Dak0RvwK.js} +181 -173
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-BcdwnlGM.js → formatChartData.worker-DP26JAuy.js} +13 -13
  22. package/dist/assets/{processTableData.worker-BacYCzdp.js → processTableData.worker-S2PCd2dS.js} +12 -12
  23. package/dist/{useRestaurantPermission-Dj_8GhOj.js → useRestaurantPermission-NgtgPUnL.js} +1 -1
  24. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { computed as v, defineComponent as at, ref as D, onMounted as it, onBeforeUnmount as ia, resolveComponent as ge, createBlock as we, openBlock as Y, Transition as Ha, withCtx as ze, createElementBlock as be, createCommentVNode as Me, createElementVNode as J, unref as l, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as me, Fragment as et, renderList as Lt, normalizeClass as qe, watch as Pe, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as ln, createSlots as Wa, resolveDynamicComponent as ua, toRaw as Oa, markRaw as Ea, createTextVNode as bn, onUnmounted as ca, withDirectives as Ua, vShow as Ka } from "vue";
2
- import { W as ie, d as Ht, e as qa, S as St, v as Gt, f as Ya, g as vn, h as da, q as fa, R as Ft, i as Xa, D as ht, b as Je, C as st, u as Ga, a as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
3
- import { k as Za, z as Qa, l as eo, m as to, a as jt, u as Bn, d as Bt, i as no } from "./app-DC6ifZM-.js";
4
- import { d as Cn, _ as ao, a as oo, b as lo, c as ro } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js";
1
+ import { computed as v, defineComponent as at, ref as D, onMounted as it, onBeforeUnmount as ia, resolveComponent as ge, createBlock as we, openBlock as Y, Transition as Ha, withCtx as Pe, createElementBlock as be, createCommentVNode as Me, createElementVNode as J, unref as l, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as me, Fragment as et, renderList as Lt, normalizeClass as qe, watch as ze, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as ln, createSlots as Wa, resolveDynamicComponent as ua, toRaw as Oa, markRaw as Ea, createTextVNode as bn, onUnmounted as ca, withDirectives as Ua, vShow as Ka } from "vue";
2
+ import { W as ie, d as Ht, e as qa, S as St, v as Gt, f as Ya, g as vn, h as da, q as fa, R as Ft, i as Xa, D as ht, b as Je, C as st, u as Ga, a as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
3
+ import { k as Za, z as Qa, l as eo, m as to, a as jt, u as Bn, d as Bt, i as no } from "./app-Dak0RvwK.js";
4
+ import { d as Cn, _ as ao, a as oo, b as lo, c as ro } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js";
5
5
  import { storeToRefs as vt, defineStore as ma } from "pinia";
6
6
  import { C as wn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as so } from "@feedmepos/mf-common";
@@ -195,7 +195,7 @@ function Ct({
195
195
  let s = typeof t == "number" ? t : 1;
196
196
  return n && (s = s * 0.6), va(r[e % r.length], s);
197
197
  }
198
- function zt({
198
+ function Pt({
199
199
  fallbackIndex: e,
200
200
  metricCount: n
201
201
  }) {
@@ -481,10 +481,10 @@ function $o(e, n) {
481
481
  function No(e, n) {
482
482
  return `${e}: ${isNaN(n) ? "" : n.toLocaleString()}`;
483
483
  }
484
- function zo(e, n) {
484
+ function Po(e, n) {
485
485
  return e.type === "bar" ? !0 : n === "bar";
486
486
  }
487
- function Po(e, n, t) {
487
+ function zo(e, n, t) {
488
488
  const a = Yt(e.borderColor, n) || Yt(e.color, n), r = Yt(e.backgroundColor, n), s = Yt(e.pointBorderColor, n), u = Yt(e.pointBackgroundColor, n);
489
489
  return t ? jn(r, u, a, s) : jn(a, s, r, u);
490
490
  }
@@ -579,9 +579,9 @@ function xa(e, n, t, a, r, s, u, p) {
579
579
  s.forEach((_, c) => {
580
580
  if (f.has(c))
581
581
  return;
582
- const F = _ ?? {}, E = Ao(F), G = $o(F, u), le = zo(F, p), te = {
582
+ const F = _ ?? {}, E = Ao(F), G = $o(F, u), le = Po(F, p), te = {
583
583
  text: No(E, G),
584
- color: Po(F, u, le),
584
+ color: zo(F, u, le),
585
585
  isBar: le,
586
586
  value: G,
587
587
  datasetLabel: E,
@@ -820,7 +820,7 @@ function Nn(e) {
820
820
  Jo(t) && (n = t.parentElement), t = t.parentElement;
821
821
  return window.getComputedStyle(n).position === "static" && (n.style.position = "relative"), n;
822
822
  }
823
- function zn(e, n, t, a, r, s, u = "center", p = !1) {
823
+ function Pn(e, n, t, a, r, s, u = "center", p = !1) {
824
824
  const d = n.getBoundingClientRect(), C = t.getBoundingClientRect(), N = t.scrollLeft, H = t.scrollTop, I = t.clientWidth, b = t.clientHeight, f = e;
825
825
  (!Number.isFinite(f.__cachedWidth) || !Number.isFinite(f.__cachedHeight) || f.__measurementHostWidth !== I || f.__measurementHostHeight !== b) && (f.__cachedWidth = e.offsetWidth, f.__cachedHeight = e.offsetHeight, f.__measurementHostWidth = I, f.__measurementHostHeight = b);
826
826
  const B = f.__cachedWidth ?? e.offsetWidth, V = f.__cachedHeight ?? e.offsetHeight, g = 8, m = d.left - C.left + N + a, L = d.top - C.top + H + r, x = p ? u === "left" ? m - B - g : m + g : u === "left" ? m - B - g : u === "right" ? m + g : m - B / 2, w = p ? L + g : s ? L - V / 2 : L + g, A = N + g;
@@ -838,7 +838,7 @@ function _a(e) {
838
838
  }
839
839
  function Zo(e, n, t, a, r, s, u) {
840
840
  const p = n.getBoundingClientRect(), d = a - p.left, C = r - p.top;
841
- !Number.isFinite(d) || !Number.isFinite(C) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(C), e.dataset.caretX = String(d), e.dataset.caretY = String(C), e.dataset.anchorDirection = u, zn(
841
+ !Number.isFinite(d) || !Number.isFinite(C) || (e.dataset.cursorCanvasX = String(d), e.dataset.cursorCanvasY = String(C), e.dataset.caretX = String(d), e.dataset.caretY = String(C), e.dataset.anchorDirection = u, Pn(
842
842
  e,
843
843
  n,
844
844
  t,
@@ -862,13 +862,13 @@ function tl(e) {
862
862
  function nl(e) {
863
863
  e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
864
864
  }
865
- function Pn(e, n) {
866
- Pt(e), ka(e), el(e), tl(e), nl(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), n && e.__onCanvasPointerEnter && n.removeEventListener("pointerenter", e.__onCanvasPointerEnter), n && e.__onCanvasPointerMove && n.removeEventListener("pointermove", e.__onCanvasPointerMove), n && e.__onCanvasPointerLeave && n.removeEventListener("pointerleave", e.__onCanvasPointerLeave), n && e.__onCanvasClick && n.removeEventListener("click", e.__onCanvasClick), n && e.__onCanvasPointerUp && n.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
865
+ function zn(e, n) {
866
+ zt(e), ka(e), el(e), tl(e), nl(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), n && e.__onCanvasPointerEnter && n.removeEventListener("pointerenter", e.__onCanvasPointerEnter), n && e.__onCanvasPointerMove && n.removeEventListener("pointermove", e.__onCanvasPointerMove), n && e.__onCanvasPointerLeave && n.removeEventListener("pointerleave", e.__onCanvasPointerLeave), n && e.__onCanvasClick && n.removeEventListener("click", e.__onCanvasClick), n && e.__onCanvasPointerUp && n.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
867
867
  }
868
868
  function al(e, n, t) {
869
869
  e.__onNavigationChange || (Fo(), e.__onNavigationChange = () => {
870
870
  if (!t.isConnected) {
871
- Pn(e, t);
871
+ zn(e, t);
872
872
  return;
873
873
  }
874
874
  pt(e, n, !0);
@@ -876,7 +876,7 @@ function al(e, n, t) {
876
876
  }
877
877
  function ol(e, n) {
878
878
  e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
879
- n.isConnected || Pn(e, n);
879
+ n.isConnected || zn(e, n);
880
880
  }), e.__disconnectObserver.observe(document.body, {
881
881
  childList: !0,
882
882
  subtree: !0
@@ -886,10 +886,10 @@ function ll(e, n, t) {
886
886
  Array.from(
887
887
  e.querySelectorAll('[data-comparison-tooltip="true"]')
888
888
  ).forEach((r) => {
889
- r.id !== n && Pn(r, t);
889
+ r.id !== n && zn(r, t);
890
890
  });
891
891
  }
892
- function Pt(e) {
892
+ function zt(e) {
893
893
  typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
894
894
  }
895
895
  function ka(e) {
@@ -917,10 +917,10 @@ function ea(e, n, t, a, r) {
917
917
  }));
918
918
  }
919
919
  function pt(e, n, t = !1) {
920
- Nt(e) && !t || (Pt(e), ka(e), Ca(e, !1), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", un(n));
920
+ Nt(e) && !t || (zt(e), ka(e), Ca(e, !1), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", un(n));
921
921
  }
922
922
  function ta(e, n, t = Mo) {
923
- e.__isTooltipHovered || (Pt(e), e.__hideTimeoutId = window.setTimeout(() => {
923
+ e.__isTooltipHovered || (zt(e), e.__hideTimeoutId = window.setTimeout(() => {
924
924
  e.__isTooltipHovered || pt(e, n);
925
925
  }, t));
926
926
  }
@@ -1036,7 +1036,7 @@ function sl(e, n, t, a, r) {
1036
1036
  pt(e, t, !0);
1037
1037
  return;
1038
1038
  }
1039
- Ca(e, !0), Pt(e), e.dataset.cursorCanvasX = String(u.offsetX), e.dataset.cursorCanvasY = String(u.offsetY), e.dataset.caretX = String(u.offsetX), e.dataset.caretY = String(u.offsetY), d.setActiveElements(I, {
1039
+ Ca(e, !0), zt(e), e.dataset.cursorCanvasX = String(u.offsetX), e.dataset.cursorCanvasY = String(u.offsetY), e.dataset.caretX = String(u.offsetX), e.dataset.caretY = String(u.offsetY), d.setActiveElements(I, {
1040
1040
  x: u.offsetX,
1041
1041
  y: u.offsetY
1042
1042
  });
@@ -1053,7 +1053,7 @@ function sl(e, n, t, a, r) {
1053
1053
  const p = u.target;
1054
1054
  p != null && p.closest('[data-tooltip-full-details="true"]') && (u.preventDefault(), u.stopPropagation(), e.__detailsPayload && ((C = r.onViewFullDetails) == null || C.call(r, e.__detailsPayload, t), pt(e, t)));
1055
1055
  }, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
1056
- e.__isTooltipHovered = !0, Pt(e);
1056
+ e.__isTooltipHovered = !0, zt(e);
1057
1057
  }, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
1058
1058
  e.__isTooltipHovered = !1, pt(e, t);
1059
1059
  }, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
@@ -1068,7 +1068,7 @@ function il(e, n, t) {
1068
1068
  return;
1069
1069
  }
1070
1070
  const u = Nn(n);
1071
- e.parentElement !== u && u.appendChild(e), $n(e, u), zn(
1071
+ e.parentElement !== u && u.appendChild(e), $n(e, u), Pn(
1072
1072
  e,
1073
1073
  n,
1074
1074
  u,
@@ -1110,7 +1110,7 @@ function ul(e, n) {
1110
1110
  n != null && n.onViewFullDetails ? ta(d, a) : pt(d, a);
1111
1111
  return;
1112
1112
  }
1113
- Pt(d);
1113
+ zt(d);
1114
1114
  const N = (n == null ? void 0 : n.viewFullDetailsLabel) ?? ba(), H = !!(n != null && n.onViewFullDetails), I = (G = C.find((ne) => typeof ne.dataIndex == "number")) == null ? void 0 : G.dataIndex, b = ((le = a == null ? void 0 : a.data) == null ? void 0 : le.datasets) ?? [], f = (te = a == null ? void 0 : a.config) == null ? void 0 : te.type, {
1115
1115
  markup: { detailsPayload: M, hasCollapsedValues: B }
1116
1116
  } = Yo(
@@ -1131,15 +1131,15 @@ function ul(e, n) {
1131
1131
  return;
1132
1132
  }
1133
1133
  const w = (ce = a == null ? void 0 : a.scales) == null ? void 0 : ce.x, A = w && typeof w.getPixelForValue == "function" ? w.getPixelForValue(0) : NaN, _ = e ? C.reduce((ne, k) => {
1134
- const U = k == null ? void 0 : k.element, z = U == null ? void 0 : U.x;
1135
- if (typeof z != "number" || !Number.isFinite(z))
1134
+ const U = k == null ? void 0 : k.element, P = U == null ? void 0 : U.x;
1135
+ if (typeof P != "number" || !Number.isFinite(P))
1136
1136
  return ne;
1137
1137
  if (!Number.isFinite(ne))
1138
- return z;
1139
- const P = Number.isFinite(A) ? A : g, $ = Math.abs(ne - P);
1140
- return Math.abs(z - P) > $ ? z : ne;
1138
+ return P;
1139
+ const z = Number.isFinite(A) ? A : g, $ = Math.abs(ne - z);
1140
+ return Math.abs(P - z) > $ ? P : ne;
1141
1141
  }, Number.NaN) : Number.NaN, c = m, F = L, E = e ? Number.isFinite(A) && Number.isFinite(_) && _ < A ? "left" : "right" : "center";
1142
- zn(
1142
+ Pn(
1143
1143
  d,
1144
1144
  s,
1145
1145
  u,
@@ -1406,7 +1406,7 @@ const cl = {
1406
1406
  "leave-from-class": "translate-x-0 opacity-100",
1407
1407
  "leave-to-class": "translate-x-full opacity-0"
1408
1408
  }, {
1409
- default: ze(() => [
1409
+ default: Pe(() => [
1410
1410
  d.value ? (Y(), be("div", cl, [
1411
1411
  J("div", {
1412
1412
  ref_key: "panelRef",
@@ -1599,14 +1599,14 @@ const wl = {
1599
1599
  function U() {
1600
1600
  k();
1601
1601
  }
1602
- function z(o) {
1602
+ function P(o) {
1603
1603
  const y = I.value, h = H.value;
1604
1604
  if (!y || !h || !f.value)
1605
1605
  return;
1606
1606
  const S = h.getBoundingClientRect(), K = o.clientY - S.top, q = Math.max(0, K - M.value / 2), oe = Math.max(1, y.clientHeight - M.value), pe = Math.min(1, q / oe), j = Math.max(0, y.scrollHeight - y.clientHeight);
1607
1607
  y.scrollTop = pe * j, k();
1608
1608
  }
1609
- function P(o) {
1609
+ function z(o) {
1610
1610
  f.value && (V.value = !0, g.value = o.clientY, m.value = B.value);
1611
1611
  }
1612
1612
  function $(o) {
@@ -1718,7 +1718,7 @@ const wl = {
1718
1718
  if (h) {
1719
1719
  const q = typeof o.datasetIndex == "number" ? o.datasetIndex : y, oe = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : Math.max(1, Number(s.value.length));
1720
1720
  if (h === Ue.breakdown) {
1721
- const j = zt({
1721
+ const j = Pt({
1722
1722
  fallbackIndex: q,
1723
1723
  metricCount: oe
1724
1724
  }), ke = nt({
@@ -1763,7 +1763,7 @@ const wl = {
1763
1763
  return o;
1764
1764
  const y = Number.isInteger(t.metricCount) && Number(t.metricCount) > 0 ? Number(t.metricCount) : 1;
1765
1765
  return [...o.map((S, K) => {
1766
- const q = typeof S.datasetIndex == "number" ? S.datasetIndex : K, oe = zt({
1766
+ const q = typeof S.datasetIndex == "number" ? S.datasetIndex : K, oe = Pt({
1767
1767
  fallbackIndex: q,
1768
1768
  metricCount: y
1769
1769
  });
@@ -2151,7 +2151,7 @@ const wl = {
2151
2151
  }
2152
2152
  return it(() => {
2153
2153
  an(), window.addEventListener("mousemove", $), window.addEventListener("mouseup", R);
2154
- }), Pe(
2154
+ }), ze(
2155
2155
  () => [
2156
2156
  t.enabled,
2157
2157
  t.legendUpdateKey,
@@ -2235,12 +2235,12 @@ const wl = {
2235
2235
  A.value ? (Y(), be("div", {
2236
2236
  key: 0,
2237
2237
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2238
- onMousedown: z
2238
+ onMousedown: P
2239
2239
  }, [
2240
2240
  J("div", {
2241
2241
  class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
2242
2242
  style: Ze(_.value),
2243
- onMousedown: Tt(P, ["stop"])
2243
+ onMousedown: Tt(z, ["stop"])
2244
2244
  }, null, 36)
2245
2245
  ], 32)) : Me("", !0)
2246
2246
  ], 512)
@@ -2266,7 +2266,7 @@ function nn(e) {
2266
2266
  }
2267
2267
  n.value = [...n.value, d];
2268
2268
  }
2269
- return Pe(
2269
+ return ze(
2270
2270
  e,
2271
2271
  (u) => {
2272
2272
  const p = new Set(
@@ -2301,66 +2301,66 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2301
2301
  } = tn(a, {
2302
2302
  maxTooltipItems: r
2303
2303
  }), H = v(() => {
2304
- var z;
2305
- return ((z = t.value.data) == null ? void 0 : z.datasets) ?? [];
2304
+ var P;
2305
+ return ((P = t.value.data) == null ? void 0 : P.datasets) ?? [];
2306
2306
  }), I = v(() => {
2307
- var z;
2308
- return ((z = t.value.data) == null ? void 0 : z.xAxis) ?? [];
2309
- }), b = v(() => I.value.length === 1 && H.value.length > 1 && H.value.every((z) => z.values.length === 1 && z.isCompare !== !0)), f = v(() => b.value ? H.value.map((z) => z.name) : I.value), { datalabels: M, xCfg: B, yCfg: V, isTransposed: g, legend: m, chartWidth: L, chartHeight: x } = Et(
2307
+ var P;
2308
+ return ((P = t.value.data) == null ? void 0 : P.xAxis) ?? [];
2309
+ }), b = v(() => I.value.length === 1 && H.value.length > 1 && H.value.every((P) => P.values.length === 1 && P.isCompare !== !0)), f = v(() => b.value ? H.value.map((P) => P.name) : I.value), { datalabels: M, xCfg: B, yCfg: V, isTransposed: g, legend: m, chartWidth: L, chartHeight: x } = Et(
2310
2310
  t.value
2311
2311
  ), w = v(
2312
2312
  () => Ot(t.value.isTransposed === !0, p.value)
2313
2313
  ), A = Qt("bar"), _ = v(() => {
2314
- const z = m.value.position;
2315
- return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
2314
+ const P = m.value.position;
2315
+ return !P || P === "top" || P === "bottom" || P === "left" || P === "right";
2316
2316
  }), c = v(() => m.value.position ?? "top"), F = v(
2317
2317
  () => c.value === "left" || c.value === "right"
2318
2318
  ), E = v(
2319
2319
  () => c.value === "top" || c.value === "left"
2320
2320
  ), G = v(() => H.value.length > 0 ? [
2321
- ...H.value.map((z, P) => {
2321
+ ...H.value.map((P, z) => {
2322
2322
  const $ = nt({
2323
- datasetIndex: P,
2324
- isCompare: z.isCompare,
2323
+ datasetIndex: z,
2324
+ isCompare: P.isCompare,
2325
2325
  metricCount: t.value.metricCount,
2326
2326
  mode: t.value.chartColorBinding
2327
2327
  }), R = nt({
2328
- datasetIndex: P,
2329
- isCompare: z.isCompare,
2328
+ datasetIndex: z,
2329
+ isCompare: P.isCompare,
2330
2330
  metricCount: t.value.metricCount,
2331
2331
  mode: Ue.metric
2332
2332
  });
2333
- let re = z.values;
2333
+ let re = P.values;
2334
2334
  b.value && (re = H.value.map(
2335
- (ue, he) => he === P ? z.values[0] : NaN
2335
+ (ue, he) => he === z ? P.values[0] : NaN
2336
2336
  ));
2337
- const X = t.value.chartColorBinding === Ue.breakdown, ee = zt({
2338
- fallbackIndex: P,
2337
+ const X = t.value.chartColorBinding === Ue.breakdown, ee = Pt({
2338
+ fallbackIndex: z,
2339
2339
  metricCount: t.value.metricCount
2340
2340
  }), ae = re.map((ue) => ue === null ? NaN : Number(ue));
2341
2341
  return {
2342
- label: z.name,
2342
+ label: P.name,
2343
2343
  data: ae,
2344
- dash: !!z.isCompare,
2344
+ dash: !!P.isCompare,
2345
2345
  backgroundColor: X ? Wt({
2346
2346
  breakdownIndex: ee,
2347
2347
  metricIndex: R,
2348
2348
  metricCount: t.value.metricCount,
2349
- isCompare: z.isCompare,
2349
+ isCompare: P.isCompare,
2350
2350
  breakdownColors: t.value.chartBreakdownColors,
2351
2351
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
2352
2352
  customColors: t.value.chartColors
2353
2353
  }) : Ct({
2354
2354
  index: $,
2355
- isCompare: z.isCompare,
2355
+ isCompare: P.isCompare,
2356
2356
  customColors: t.value.chartColors
2357
2357
  })
2358
2358
  };
2359
2359
  })
2360
2360
  ] : []), { hiddenDatasetKeys: le, isDatasetHidden: te, toggleDatasetVisibility: ce } = nn(G), ne = v(
2361
- () => G.value.map((z, P) => ({
2362
- ...z,
2363
- hidden: te(z, P)
2361
+ () => G.value.map((P, z) => ({
2362
+ ...P,
2363
+ hidden: te(P, z)
2364
2364
  }))
2365
2365
  ), k = Ht();
2366
2366
  function U() {
@@ -2370,14 +2370,14 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2370
2370
  tt(() => {
2371
2371
  U();
2372
2372
  });
2373
- }), Pe([ne], () => {
2373
+ }), ze([ne], () => {
2374
2374
  tt(() => U());
2375
- }), (z, P) => {
2375
+ }), (P, z) => {
2376
2376
  var R, re, X, ee, ae, ue;
2377
2377
  const $ = ge("FmBarChart");
2378
2378
  return Y(), be(et, null, [
2379
2379
  J("div", Il, [
2380
- yt(z.$slots, "menu"),
2380
+ yt(P.$slots, "menu"),
2381
2381
  J("div", {
2382
2382
  class: qe(["chart-layout", {
2383
2383
  "chart-layout--side": _.value && (l(m).display ?? !1) && F.value
@@ -2485,9 +2485,9 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2485
2485
  tt(() => {
2486
2486
  b();
2487
2487
  });
2488
- }), Pe([H], () => {
2488
+ }), ze([H], () => {
2489
2489
  tt(() => b());
2490
- }), Pe(
2490
+ }), ze(
2491
2491
  () => t.value.data.datasets,
2492
2492
  (c) => {
2493
2493
  const F = new Set(
@@ -2593,7 +2593,7 @@ function cn(e) {
2593
2593
  const [a, r] = n.split("."), s = new Intl.NumberFormat("en-US").format(Number(a));
2594
2594
  return r !== void 0 ? `${s}.${r}` : s;
2595
2595
  }
2596
- const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-600" }, $l = { class: "flex gap-2" }, Nl = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, zl = { key: 0 }, Pl = { key: 1 }, Rl = /* @__PURE__ */ at({
2596
+ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-600" }, $l = { class: "flex gap-2" }, Nl = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Pl = { key: 0 }, zl = { key: 1 }, Rl = /* @__PURE__ */ at({
2597
2597
  __name: "WidgetScorecard",
2598
2598
  props: {
2599
2599
  modelValue: { required: !0 },
@@ -2643,20 +2643,20 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2643
2643
  "hide-arrow": "",
2644
2644
  variant: "rich"
2645
2645
  }, {
2646
- content: ze(() => {
2646
+ content: Pe(() => {
2647
2647
  var L;
2648
2648
  return [
2649
2649
  J("span", Nl, Ge(`vs. ${(L = l(r).defaultCompareType) == null ? void 0 : L.split("_").join(" ")}`), 1)
2650
2650
  ];
2651
2651
  }),
2652
- default: ze(() => [
2652
+ default: Pe(() => [
2653
2653
  d.value ? (Y(), we(V, {
2654
2654
  key: 0,
2655
2655
  icon: d.value.icon.name,
2656
2656
  class: qe(`bg-${d.value.icon.tailwind}`),
2657
2657
  compact: ""
2658
2658
  }, {
2659
- default: ze(() => [
2659
+ default: Pe(() => [
2660
2660
  me(B, {
2661
2661
  name: d.value.icon.name,
2662
2662
  color: d.value.icon.color
@@ -2674,7 +2674,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2674
2674
  "aria-hidden": "true",
2675
2675
  compact: ""
2676
2676
  }, {
2677
- default: ze(() => [
2677
+ default: Pe(() => [
2678
2678
  me(B, {
2679
2679
  name: "arrow_upward",
2680
2680
  color: "#C7C7CC"
@@ -2687,7 +2687,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2687
2687
  _: 1
2688
2688
  }, 8, ["disabled"])
2689
2689
  ]),
2690
- N.value ? (Y(), be("div", zl, [
2690
+ N.value ? (Y(), be("div", Pl, [
2691
2691
  C(N.value.type) === "line" ? (Y(), we(m, {
2692
2692
  key: 0,
2693
2693
  class: "sparkline",
@@ -2702,7 +2702,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2702
2702
  tooltip: b.value,
2703
2703
  "maintain-aspect-ratio": !1
2704
2704
  }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : Me("", !0)
2705
- ])) : (Y(), be("div", Pl, M[1] || (M[1] = [
2705
+ ])) : (Y(), be("div", zl, M[1] || (M[1] = [
2706
2706
  J("div", { class: "sparkline" }, [
2707
2707
  J("div", { class: "flex flex-col gap-8" }, [
2708
2708
  J("div"),
@@ -2777,10 +2777,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2777
2777
  const A = w.getBoundingClientRect().width || 60, _ = w.querySelector("button"), c = (_ == null ? void 0 : _.querySelector("span")) || w.querySelector("p") || w;
2778
2778
  let F = 60;
2779
2779
  if (c) {
2780
- const ne = c.textContent || "", k = window.getComputedStyle(c), U = `${k.fontWeight} ${k.fontSize} ${k.fontFamily}`, P = document.createElement("canvas").getContext("2d");
2781
- if (P) {
2782
- P.font = U;
2783
- const $ = P.measureText(ne), R = window.getComputedStyle(w), re = parseFloat(R.paddingLeft || "0"), X = parseFloat(R.paddingRight || "0");
2780
+ const ne = c.textContent || "", k = window.getComputedStyle(c), U = `${k.fontWeight} ${k.fontSize} ${k.fontFamily}`, z = document.createElement("canvas").getContext("2d");
2781
+ if (z) {
2782
+ z.font = U;
2783
+ const $ = z.measureText(ne), R = window.getComputedStyle(w), re = parseFloat(R.paddingLeft || "0"), X = parseFloat(R.paddingRight || "0");
2784
2784
  F = $.width + re + X;
2785
2785
  }
2786
2786
  }
@@ -2791,8 +2791,8 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2791
2791
  const ne = w;
2792
2792
  ne.style.width = `${G}px`;
2793
2793
  let k = 0;
2794
- x.querySelectorAll("th").forEach((z, P) => {
2795
- k += P === m ? G : z.getBoundingClientRect().width;
2794
+ x.querySelectorAll("th").forEach((P, z) => {
2795
+ k += z === m ? G : P.getBoundingClientRect().width;
2796
2796
  }), x.classList.remove("w-full"), x.style.width = `${k}px`, E = null;
2797
2797
  }, te = (ne) => {
2798
2798
  const k = ne.clientX - L;
@@ -2856,7 +2856,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2856
2856
  d();
2857
2857
  }
2858
2858
  };
2859
- }), Ul = "/assets/processTableData.worker-BacYCzdp.js", Kl = { class: "my-4" }, ql = {
2859
+ }), Ul = "/assets/processTableData.worker-S2PCd2dS.js", Kl = { class: "my-4" }, ql = {
2860
2860
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
2861
2861
  style: { backgroundColor: "#f9f9f9" }
2862
2862
  }, Yl = { class: "font-bold" }, Xl = { class: "text-fm-color-neutral-gray-300" }, Gl = /* @__PURE__ */ at({
@@ -2888,27 +2888,27 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2888
2888
  return bt.bottom;
2889
2889
  }
2890
2890
  }), w = v(() => {
2891
- const P = x.value !== void 0 ? 1 : 0, $ = (B.value ? B.value.$el.offsetHeight : 0) - 48;
2892
- return Math.floor(($ - 34.5 - 32) / 48) - P;
2891
+ const z = x.value !== void 0 ? 1 : 0, $ = (B.value ? B.value.$el.offsetHeight : 0) - 48;
2892
+ return Math.floor(($ - 34.5 - 32) / 48) - z;
2893
2893
  }), A = v(() => {
2894
- var U, z;
2894
+ var U, P;
2895
2895
  let k = [];
2896
2896
  switch (x.value) {
2897
2897
  case bt.top:
2898
- k = [...((U = g.value[0]) == null ? void 0 : U.cells) || []].map((P, $) => {
2898
+ k = [...((U = g.value[0]) == null ? void 0 : U.cells) || []].map((z, $) => {
2899
2899
  var R;
2900
2900
  return {
2901
- main: P,
2901
+ main: z,
2902
2902
  comparison: (R = g.value[0]) == null ? void 0 : R.comparisonCells[$],
2903
2903
  rowType: V.value[$].type
2904
2904
  };
2905
2905
  });
2906
2906
  break;
2907
2907
  case bt.bottom:
2908
- k = [...((z = g.value[g.value.length - 1]) == null ? void 0 : z.cells) || []].map((P, $) => {
2908
+ k = [...((P = g.value[g.value.length - 1]) == null ? void 0 : P.cells) || []].map((z, $) => {
2909
2909
  var R;
2910
2910
  return {
2911
- main: P,
2911
+ main: z,
2912
2912
  comparison: (R = g.value[g.value.length - 1]) == null ? void 0 : R.comparisonCells[$],
2913
2913
  rowType: V.value[$].type
2914
2914
  };
@@ -2942,13 +2942,13 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2942
2942
  isRollup: R.isRollup,
2943
2943
  cells: Array.isArray(R.cells) ? [...R.cells] : [],
2944
2944
  comparisonCells: Array.isArray(R.comparisonCells) ? [...R.comparisonCells] : []
2945
- })), z = (a.value.data.columns || []).map((R) => ({
2945
+ })), P = (a.value.data.columns || []).map((R) => ({
2946
2946
  key: R.key,
2947
2947
  type: R.type,
2948
2948
  label: R.label
2949
- })), P = {
2949
+ })), z = {
2950
2950
  rows: U,
2951
- columns: z,
2951
+ columns: P,
2952
2952
  filter: m.value ?? "",
2953
2953
  globalSorts: Oa(C.value).map((R) => ({
2954
2954
  key: R.key,
@@ -2957,11 +2957,11 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2957
2957
  grandTotalPosition: x.value,
2958
2958
  pageSize: w.value
2959
2959
  };
2960
- Ya(Ul, P).then((R) => {
2960
+ Ya(Ul, z).then((R) => {
2961
2961
  k === F && (R != null && R.error ? (p.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(R.error), c.value = []) : c.value = Ea(R.data || []));
2962
2962
  });
2963
2963
  }
2964
- Pe(
2964
+ ze(
2965
2965
  () => C.value,
2966
2966
  (k) => {
2967
2967
  d.tileIndex === void 0 || d.tileIndex === null || u(d.tileIndex, k);
@@ -2969,8 +2969,8 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2969
2969
  { immediate: !0, deep: !0 }
2970
2970
  );
2971
2971
  const le = v(() => {
2972
- var z, P;
2973
- const k = ((z = a.value.data) == null ? void 0 : z.rows) || [], U = ((P = a.value.data) == null ? void 0 : P.columns) || [];
2972
+ var P, z;
2973
+ const k = ((P = a.value.data) == null ? void 0 : P.rows) || [], U = ((z = a.value.data) == null ? void 0 : z.columns) || [];
2974
2974
  return JSON.stringify({
2975
2975
  rowsLength: k.length,
2976
2976
  columns: U.map(($) => ({ key: $.key, type: $.type, label: $.label })),
@@ -2980,7 +2980,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2980
2980
  pageSize: w.value
2981
2981
  });
2982
2982
  });
2983
- Pe(
2983
+ ze(
2984
2984
  () => le.value,
2985
2985
  () => {
2986
2986
  clearTimeout(E), E = setTimeout(G, 200);
@@ -2988,12 +2988,12 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2988
2988
  { immediate: !0 }
2989
2989
  );
2990
2990
  function te(k) {
2991
- const U = C.value.find((z) => z.key === k);
2991
+ const U = C.value.find((P) => P.key === k);
2992
2992
  if (!U) {
2993
2993
  C.value.push({ key: k, type: St.Asc });
2994
2994
  return;
2995
2995
  }
2996
- U.type === St.Asc ? U.type = St.Desc : U.type === St.Desc && (C.value = C.value.filter((z) => z.key !== k));
2996
+ U.type === St.Asc ? U.type = St.Desc : U.type === St.Desc && (C.value = C.value.filter((P) => P.key !== k));
2997
2997
  }
2998
2998
  const ce = v(
2999
2999
  () => {
@@ -3003,7 +3003,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3003
3003
  ), ne = v(() => {
3004
3004
  var k;
3005
3005
  return (k = a.value.data) != null && k.columns ? a.value.data.columns.map((U) => {
3006
- const z = _t(n, t, U.label, "other"), P = C.value.find((re) => re.key === U.key), $ = !!P, R = $ ? P.type === St.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3006
+ const P = _t(n, t, U.label, "other"), z = C.value.find((re) => re.key === U.key), $ = !!z, R = $ ? z.type === St.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
3007
3007
  return {
3008
3008
  accessorKey: U.key,
3009
3009
  header: () => {
@@ -3019,7 +3019,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3019
3019
  ln(
3020
3020
  "span",
3021
3021
  { class: `${U.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
3022
- z
3022
+ P
3023
3023
  ),
3024
3024
  ln(re, {
3025
3025
  name: R,
@@ -3050,12 +3050,12 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3050
3050
  };
3051
3051
  }) : [];
3052
3052
  });
3053
- return Pe(
3053
+ return ze(
3054
3054
  () => H.value.length > 0,
3055
3055
  async (k) => {
3056
3056
  k && N.value && (await tt(), M());
3057
3057
  }
3058
- ), Pe(
3058
+ ), ze(
3059
3059
  [() => ne.value],
3060
3060
  async () => {
3061
3061
  var $;
@@ -3065,19 +3065,19 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3065
3065
  const U = k.querySelector("table");
3066
3066
  if (!U) return;
3067
3067
  U.classList.add(ce.value ? "table-fixed" : "table-auto");
3068
- let z, P;
3069
- N.value ? (M(), z = H.value, P = I.value) : (P = a.value.rowHeight, z = a.value.colWidths), typeof P == "number" && f(P, k), z == null || z.forEach((R, re) => {
3068
+ let P, z;
3069
+ N.value ? (M(), P = H.value, z = I.value) : (z = a.value.rowHeight, P = a.value.colWidths), typeof z == "number" && f(z, k), P == null || P.forEach((R, re) => {
3070
3070
  b(re, R, k);
3071
3071
  });
3072
3072
  },
3073
3073
  { immediate: !0 }
3074
3074
  ), (k, U) => {
3075
- const z = ge("FmTable");
3075
+ const P = ge("FmTable");
3076
3076
  return Y(), be(et, null, [
3077
3077
  J("div", Kl, [
3078
3078
  yt(k.$slots, "menu")
3079
3079
  ]),
3080
- me(z, {
3080
+ me(P, {
3081
3081
  ref_key: "table",
3082
3082
  ref: B,
3083
3083
  "column-defs": ne.value,
@@ -3092,23 +3092,23 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3092
3092
  }, Wa({ _: 2 }, [
3093
3093
  x.value ? {
3094
3094
  name: "pin-top",
3095
- fn: ze(() => [
3095
+ fn: Pe(() => [
3096
3096
  (Y(), we(ua(x.value === l(bt).bottom ? "tfoot" : "tbody"), null, {
3097
- default: ze(() => [
3097
+ default: Pe(() => [
3098
3098
  J("tr", ql, [
3099
- (Y(!0), be(et, null, Lt(A.value, (P, $) => (Y(), be("td", {
3099
+ (Y(!0), be(et, null, Lt(A.value, (z, $) => (Y(), be("td", {
3100
3100
  key: `${l(Gt)()}_${$}`,
3101
3101
  class: "h-[48px] text-fm-color-typo-primary px-16"
3102
3102
  }, [
3103
3103
  J("span", {
3104
3104
  class: qe([
3105
3105
  "items-center text-fm-color-typo-secondary gap-2",
3106
- P.rowType === "NUMERIC" ? "text-right" : "",
3106
+ z.rowType === "NUMERIC" ? "text-right" : "",
3107
3107
  ce.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3108
3108
  ])
3109
3109
  }, [
3110
- J("p", Yl, Ge(P.rowType === "NUMERIC" ? l(cn)(P.main) : P.main), 1),
3111
- J("p", Xl, Ge(P.comparison ? P.rowType === "NUMERIC" ? `(${l(cn)(P.comparison)})` : `(${P.comparison})` : ""), 1)
3110
+ J("p", Yl, Ge(z.rowType === "NUMERIC" ? l(cn)(z.main) : z.main), 1),
3111
+ J("p", Xl, Ge(z.comparison ? z.rowType === "NUMERIC" ? `(${l(cn)(z.comparison)})` : `(${z.comparison})` : ""), 1)
3112
3112
  ], 2)
3113
3113
  ]))), 128))
3114
3114
  ])
@@ -3188,7 +3188,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3188
3188
  isCompare: ee.isCompare,
3189
3189
  metricCount: t.value.metricCount,
3190
3190
  mode: Ue.metric
3191
- }), Se = zt({
3191
+ }), Se = Pt({
3192
3192
  fallbackIndex: ae,
3193
3193
  metricCount: t.value.metricCount
3194
3194
  }), de = te({
@@ -3222,20 +3222,20 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3222
3222
  return w.value ? X.map((ee) => ee.dataset) : X.map((ee) => ee.dataset);
3223
3223
  } else
3224
3224
  return [];
3225
- }), { hiddenDatasetKeys: ne, isDatasetHidden: k, toggleDatasetVisibility: U } = nn(ce), z = v(
3225
+ }), { hiddenDatasetKeys: ne, isDatasetHidden: k, toggleDatasetVisibility: U } = nn(ce), P = v(
3226
3226
  () => ce.value.map((R, re) => ({
3227
3227
  ...R,
3228
3228
  hidden: k(R, re)
3229
3229
  }))
3230
- ), P = Ht();
3230
+ ), z = Ht();
3231
3231
  function $() {
3232
- return P.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
3232
+ return z.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
3233
3233
  }
3234
3234
  return it(() => {
3235
3235
  tt(() => {
3236
3236
  $();
3237
3237
  });
3238
- }), Pe([z], () => {
3238
+ }), ze([P], () => {
3239
3239
  tt(() => $());
3240
3240
  }), (R, re) => {
3241
3241
  var ee, ae, ue, he, Se, de;
@@ -3256,7 +3256,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3256
3256
  "max-width": l(V).maxWidth,
3257
3257
  "text-color": (ee = l(V).labels) == null ? void 0 : ee.color,
3258
3258
  "font-size": (ue = (ae = l(V).labels) == null ? void 0 : ae.font) == null ? void 0 : ue.size,
3259
- "legend-update-key": z.value,
3259
+ "legend-update-key": P.value,
3260
3260
  "chart-color-binding": t.value.chartColorBinding,
3261
3261
  "chart-colors": t.value.chartColors,
3262
3262
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3269,7 +3269,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3269
3269
  ref_key: "chartRef",
3270
3270
  ref: a,
3271
3271
  class: "bar-chart",
3272
- datasets: z.value,
3272
+ datasets: P.value,
3273
3273
  "x-axis": { categories: H.value },
3274
3274
  "x-cfg": G.value,
3275
3275
  "y-cfg": le.value,
@@ -3295,7 +3295,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3295
3295
  "max-width": l(V).maxWidth,
3296
3296
  "text-color": (he = l(V).labels) == null ? void 0 : he.color,
3297
3297
  "font-size": (de = (Se = l(V).labels) == null ? void 0 : Se.font) == null ? void 0 : de.size,
3298
- "legend-update-key": z.value,
3298
+ "legend-update-key": P.value,
3299
3299
  "chart-color-binding": t.value.chartColorBinding,
3300
3300
  "chart-colors": t.value.chartColors,
3301
3301
  "chart-breakdown-colors": t.value.chartBreakdownColors,
@@ -3432,10 +3432,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3432
3432
  backgroundColor: Z
3433
3433
  };
3434
3434
  });
3435
- }), { hiddenDatasetKeys: U, isDatasetHidden: z, toggleDatasetVisibility: P } = nn(k), $ = v(
3435
+ }), { hiddenDatasetKeys: U, isDatasetHidden: P, toggleDatasetVisibility: z } = nn(k), $ = v(
3436
3436
  () => k.value.map((X, ee) => ({
3437
3437
  ...X,
3438
- hidden: z(X, ee)
3438
+ hidden: P(X, ee)
3439
3439
  }))
3440
3440
  ), R = Ht();
3441
3441
  function re() {
@@ -3445,7 +3445,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3445
3445
  tt(() => {
3446
3446
  re();
3447
3447
  });
3448
- }), Pe([$], () => {
3448
+ }), ze([$], () => {
3449
3449
  tt(() => re());
3450
3450
  }), (X, ee) => {
3451
3451
  var ue, he, Se, de, ye, Ne;
@@ -3473,7 +3473,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3473
3473
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3474
3474
  "metric-count": t.value.metricCount,
3475
3475
  "hidden-dataset-keys": l(U),
3476
- onToggleDatasetVisibility: l(P)
3476
+ onToggleDatasetVisibility: l(z)
3477
3477
  }, 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"])) : Me("", !0),
3478
3478
  me(ae, {
3479
3479
  ref_key: "chartRef",
@@ -3512,7 +3512,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3512
3512
  "chart-use-secondary-metric-shades": t.value.chartUseSecondaryMetricShades,
3513
3513
  "metric-count": t.value.metricCount,
3514
3514
  "hidden-dataset-keys": l(U),
3515
- onToggleDatasetVisibility: l(P)
3515
+ onToggleDatasetVisibility: l(z)
3516
3516
  }, 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"])) : Me("", !0)
3517
3517
  ], 2)
3518
3518
  ]),
@@ -3563,64 +3563,64 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3563
3563
  } = tn(a, {
3564
3564
  maxTooltipItems: r
3565
3565
  }), H = v(() => {
3566
- var P;
3567
- return ((P = t.value.data) == null ? void 0 : P.xAxis) ?? [];
3566
+ var z;
3567
+ return ((z = t.value.data) == null ? void 0 : z.xAxis) ?? [];
3568
3568
  }), I = v(
3569
- () => H.value.length === 1 && f.value.length > 0 && f.value.every((P) => P.values.length === 1)
3569
+ () => H.value.length === 1 && f.value.length > 0 && f.value.every((z) => z.values.length === 1)
3570
3570
  ), b = v(() => I.value ? ["", H.value[0], ""] : H.value), f = v(() => {
3571
- var P;
3572
- return ((P = t.value.data) == null ? void 0 : P.datasets) ?? [];
3571
+ var z;
3572
+ return ((z = t.value.data) == null ? void 0 : z.datasets) ?? [];
3573
3573
  }), { datalabels: M, xCfg: B, yCfg: V, isTransposed: g, legend: m, chartWidth: L, chartHeight: x } = Et(
3574
3574
  t.value
3575
3575
  ), w = v(
3576
3576
  () => Ot(t.value.isTransposed === !0, p.value)
3577
3577
  ), A = Qt("line"), _ = Ta("report-line-style-plugin-stack-line"), c = v(() => {
3578
- const P = m.value.position;
3579
- return !P || P === "top" || P === "bottom" || P === "left" || P === "right";
3578
+ const z = m.value.position;
3579
+ return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
3580
3580
  }), F = v(() => m.value.position ?? "top"), E = v(
3581
3581
  () => F.value === "left" || F.value === "right"
3582
3582
  ), G = v(
3583
3583
  () => F.value === "top" || F.value === "left"
3584
3584
  ), le = v(() => f.value.length > 0 ? [
3585
- ...f.value.map((P, $) => {
3585
+ ...f.value.map((z, $) => {
3586
3586
  var ye;
3587
- let R = P.values;
3587
+ let R = z.values;
3588
3588
  I.value && (R = [NaN, R[0], NaN]);
3589
3589
  const re = R.map((Ne) => Ne === null ? NaN : Number(Ne)), X = nt({
3590
3590
  datasetIndex: $,
3591
- isCompare: P.isCompare,
3591
+ isCompare: z.isCompare,
3592
3592
  metricCount: t.value.metricCount,
3593
3593
  mode: t.value.chartColorBinding
3594
3594
  }), ee = nt({
3595
3595
  datasetIndex: $,
3596
- isCompare: P.isCompare,
3596
+ isCompare: z.isCompare,
3597
3597
  metricCount: t.value.metricCount,
3598
3598
  mode: Ue.metric
3599
3599
  }), ae = nt({
3600
3600
  datasetIndex: $,
3601
- isCompare: P.isCompare,
3601
+ isCompare: z.isCompare,
3602
3602
  metricCount: t.value.metricCount,
3603
3603
  mode: t.value.lineStyleBinding
3604
- }), ue = (ye = t.value.lineStyles) == null ? void 0 : ye[ae], he = t.value.chartColorBinding === Ue.breakdown, Se = zt({
3604
+ }), ue = (ye = t.value.lineStyles) == null ? void 0 : ye[ae], he = t.value.chartColorBinding === Ue.breakdown, Se = Pt({
3605
3605
  fallbackIndex: $,
3606
3606
  metricCount: t.value.metricCount
3607
3607
  }), de = he ? Wt({
3608
3608
  breakdownIndex: Se,
3609
3609
  metricIndex: ee,
3610
3610
  metricCount: t.value.metricCount,
3611
- isCompare: P.isCompare,
3611
+ isCompare: z.isCompare,
3612
3612
  breakdownColors: t.value.chartBreakdownColors,
3613
3613
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
3614
3614
  customColors: t.value.chartColors
3615
3615
  }) : Ct({
3616
3616
  index: X,
3617
- isCompare: P.isCompare,
3617
+ isCompare: z.isCompare,
3618
3618
  customColors: t.value.chartColors
3619
3619
  });
3620
3620
  return {
3621
- label: P.name,
3621
+ label: z.name,
3622
3622
  data: re,
3623
- dash: P.isCompare,
3623
+ dash: z.isCompare,
3624
3624
  lineStyle: ue,
3625
3625
  fill: !0,
3626
3626
  color: de,
@@ -3632,26 +3632,26 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3632
3632
  };
3633
3633
  })
3634
3634
  ] : []), { hiddenDatasetKeys: te, isDatasetHidden: ce, toggleDatasetVisibility: ne } = nn(le), k = v(
3635
- () => le.value.map((P, $) => ({
3636
- ...P,
3637
- hidden: ce(P, $)
3635
+ () => le.value.map((z, $) => ({
3636
+ ...z,
3637
+ hidden: ce(z, $)
3638
3638
  }))
3639
3639
  ), U = Ht();
3640
- function z() {
3640
+ function P() {
3641
3641
  return U.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
3642
3642
  }
3643
3643
  return it(() => {
3644
3644
  tt(() => {
3645
- z();
3645
+ P();
3646
3646
  });
3647
- }), Pe([k], () => {
3648
- tt(() => z());
3649
- }), (P, $) => {
3647
+ }), ze([k], () => {
3648
+ tt(() => P());
3649
+ }), (z, $) => {
3650
3650
  var re, X, ee, ae, ue, he;
3651
3651
  const R = ge("FmLineChart");
3652
3652
  return Y(), be(et, null, [
3653
3653
  J("div", tr, [
3654
- yt(P.$slots, "menu"),
3654
+ yt(z.$slots, "menu"),
3655
3655
  J("div", {
3656
3656
  class: qe(["chart-layout", {
3657
3657
  "chart-layout--side": c.value && (l(m).display ?? !1) && E.value
@@ -3803,7 +3803,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3803
3803
  index: re,
3804
3804
  isCompare: $.isCompare,
3805
3805
  customColors: t.value.chartColors
3806
- }), ae = t.value.chartColorBinding === Ue.breakdown, ue = zt({
3806
+ }), ae = t.value.chartColorBinding === Ue.breakdown, ue = Pt({
3807
3807
  fallbackIndex: R,
3808
3808
  metricCount: t.value.metricCount
3809
3809
  }), he = ae ? Wt({
@@ -3844,16 +3844,16 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3844
3844
  ...$,
3845
3845
  hidden: ne($, R)
3846
3846
  }))
3847
- ), z = Ht();
3848
- function P() {
3849
- return z.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
3847
+ ), P = Ht();
3848
+ function z() {
3849
+ return P.extractChartSize(a.value, n.tileIndex) || { width: 0, height: 0 };
3850
3850
  }
3851
3851
  return it(() => {
3852
3852
  tt(() => {
3853
- P();
3853
+ z();
3854
3854
  });
3855
- }), Pe([U], () => {
3856
- tt(() => P());
3855
+ }), ze([U], () => {
3856
+ tt(() => z());
3857
3857
  }), ($, R) => {
3858
3858
  var X, ee, ae, ue, he, Se;
3859
3859
  const re = ge("FmLineChart");
@@ -3974,22 +3974,22 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3974
3974
  overlay: !0,
3975
3975
  "z-index": 10
3976
3976
  }, {
3977
- "dialog-header": ze(() => B[3] || (B[3] = [
3977
+ "dialog-header": Pe(() => B[3] || (B[3] = [
3978
3978
  bn("Select Orientation")
3979
3979
  ])),
3980
- default: ze(() => [
3980
+ default: Pe(() => [
3981
3981
  me(l(t), {
3982
3982
  ref_key: "form",
3983
3983
  ref: r,
3984
3984
  onValidationSuccess: f
3985
3985
  }, {
3986
- default: ze(() => [
3986
+ default: Pe(() => [
3987
3987
  J("div", ir, [
3988
3988
  me(g, {
3989
3989
  modelValue: I.value,
3990
3990
  "onUpdate:modelValue": B[0] || (B[0] = (x) => I.value = x)
3991
3991
  }, {
3992
- default: ze(() => [
3992
+ default: Pe(() => [
3993
3993
  me(V, {
3994
3994
  value: l(vn).PORTRAIT,
3995
3995
  label: l(n)("report.common.portrait")
@@ -4135,8 +4135,8 @@ function dr(e) {
4135
4135
  return;
4136
4136
  }
4137
4137
  s.style.left = `${ne}px`, s.style.width = `${U}px`;
4138
- const z = s.querySelector("table");
4139
- z && (z.style.width = `${u.offsetWidth}px`, z.style.marginLeft = `${_.left - ne}px`);
4138
+ const P = s.querySelector("table");
4139
+ P && (P.style.width = `${u.offsetWidth}px`, P.style.marginLeft = `${_.left - ne}px`);
4140
4140
  }
4141
4141
  function V() {
4142
4142
  var A;
@@ -4191,11 +4191,11 @@ function dr(e) {
4191
4191
  function x() {
4192
4192
  b();
4193
4193
  }
4194
- return Pe(a, (w) => {
4194
+ return ze(a, (w) => {
4195
4195
  w ? b() : L();
4196
- }), Pe(r, () => {
4196
+ }), ze(r, () => {
4197
4197
  s && (s.style.top = `${r.value}px`, B());
4198
- }), Pe(t, () => {
4198
+ }), ze(t, () => {
4199
4199
  t.value && a.value && setTimeout(b, 100);
4200
4200
  }), it(() => {
4201
4201
  a.value && setTimeout(b, 100);
@@ -4260,7 +4260,7 @@ const fr = {
4260
4260
  Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
4261
4261
  ), G = D(a.chartUseSecondaryMetricShades ?? !0), le = D(a.chartColorBinding), te = D(
4262
4262
  Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
4263
- ), ce = D(a.lineStyleBinding), ne = D(a.showLabel ?? !1), k = D(a.labelAlign ?? kn.center), U = D(a.labelAnchor ?? _n.center), z = D(a.labelRotation ?? 0), P = D(a.labelOffset ?? 0), $ = D(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = D(a.showX ?? !0), X = D(a.xPosition ?? Tn.bottom), ee = D(a.showXGrid ?? !1), ae = D(a.showXTick ?? !0), ue = D(a.xTickFontSize ?? 12), he = D(a.showXTitle ?? !1), Se = D(a.xTitle ?? ""), de = D(a.xTitleFontSize ?? 12), ye = D(a.showY ?? !0), Ne = D(a.yPosition ?? Ln.left), Ye = D(a.showYGrid ?? !1), i = D(a.showYTick ?? !0), W = D(a.yTickFontSize ?? 12), Z = D(a.showYTitle ?? !1), Q = D(a.yTitle ?? ""), Ce = D(a.yTitleFontSize ?? 12), Fe = D(a.showLegend ?? void 0), Xe = D(a.legendPosition ?? Dn.top), Re = D(a.usePointStyle ?? !0), je = D(a.legendFontSize), Be = D(a.legendColor ?? "#6b6b6b"), fe = D(a.legendMaxWidth), O = D(a.maxTooltipItems), _e = D(a.stackBarOverlap ?? !1), Te = D(a.rowHeight ?? 0), Le = D(a.colWidths ?? []), He = D(!1), Ve = D(""), { breakpoints: De, getBreakpointsBoundary: Oe } = fn(), We = D(), Ee = v(
4263
+ ), ce = D(a.lineStyleBinding), ne = D(a.showLabel ?? !1), k = D(a.labelAlign ?? kn.center), U = D(a.labelAnchor ?? _n.center), P = D(a.labelRotation ?? 0), z = D(a.labelOffset ?? 0), $ = D(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = D(a.showX ?? !0), X = D(a.xPosition ?? Tn.bottom), ee = D(a.showXGrid ?? !1), ae = D(a.showXTick ?? !0), ue = D(a.xTickFontSize ?? 12), he = D(a.showXTitle ?? !1), Se = D(a.xTitle ?? ""), de = D(a.xTitleFontSize ?? 12), ye = D(a.showY ?? !0), Ne = D(a.yPosition ?? Ln.left), Ye = D(a.showYGrid ?? !1), i = D(a.showYTick ?? !0), W = D(a.yTickFontSize ?? 12), Z = D(a.showYTitle ?? !1), Q = D(a.yTitle ?? ""), Ce = D(a.yTitleFontSize ?? 12), Fe = D(a.showLegend ?? void 0), Xe = D(a.legendPosition ?? Dn.top), Re = D(a.usePointStyle ?? !0), je = D(a.legendFontSize), Be = D(a.legendColor ?? "#6b6b6b"), fe = D(a.legendMaxWidth), O = D(a.maxTooltipItems), _e = D(a.stackBarOverlap ?? !1), Te = D(a.rowHeight ?? 0), Le = D(a.colWidths ?? []), He = D(!1), Ve = D(""), { breakpoints: De, getBreakpointsBoundary: Oe } = fn(), We = D(), Ee = v(
4264
4264
  () => p.customScreenWidth === void 0 ? window.innerWidth : p.customScreenWidth
4265
4265
  ), Ae = v(
4266
4266
  () => (Ee == null ? void 0 : Ee.value) > Oe("xs")[1] && (Ee == null ? void 0 : Ee.value) <= Oe("sm")[1]
@@ -4355,8 +4355,8 @@ const fr = {
4355
4355
  showLabel: ne.value,
4356
4356
  labelAnchor: U.value,
4357
4357
  labelAlign: k.value,
4358
- labelRotation: z.value,
4359
- labelOffset: P.value,
4358
+ labelRotation: P.value,
4359
+ labelOffset: z.value,
4360
4360
  labelFontSize: $.value,
4361
4361
  showX: re.value,
4362
4362
  xPosition: X.value,
@@ -4437,15 +4437,15 @@ const fr = {
4437
4437
  (Ie) => Array.isArray(Ie.tileIds) && Ie.tileIds.includes(T)
4438
4438
  );
4439
4439
  });
4440
- Pe(
4440
+ ze(
4441
4441
  () => t.value.widget.config,
4442
4442
  (T) => {
4443
- I.value = T.rollup, g.value = T.showTitle ?? !0, m.value = T.titleFontSize ?? 14, L.value = T.titleBold ?? !1, x.value = T.titleItalic ?? !1, w.value = T.titleUnderline ?? !1, _.value = T.chartHeight ?? void 0, A.value = T.chartWidth ?? void 0, c.value = Array.isArray(T.chartColors) ? [...T.chartColors] : void 0, F.value = Array.isArray(T.chartColorLayers) ? [...T.chartColorLayers] : void 0, E.value = Array.isArray(T.chartBreakdownColors) ? [...T.chartBreakdownColors] : void 0, G.value = T.chartUseSecondaryMetricShades ?? !0, le.value = T.chartColorBinding, te.value = Array.isArray(T.lineStyles) ? [...T.lineStyles] : void 0, ce.value = T.lineStyleBinding, ne.value = T.showLabel ?? !1, k.value = T.labelAlign ?? kn.center, U.value = T.labelAnchor ?? _n.center, z.value = T.labelRotation ?? 0, P.value = T.labelOffset ?? 0, $.value = T.labelFontSize ?? 12, re.value = T.showX ?? !0, X.value = T.xPosition ?? Tn.bottom, ee.value = T.showXGrid ?? !1, ae.value = T.showXTick ?? !0, ue.value = T.xTickFontSize ?? 12, he.value = T.showXTitle ?? !1, Se.value = T.xTitle ?? "", de.value = T.xTitleFontSize ?? 12, ye.value = T.showY ?? !0, Ne.value = T.yPosition ?? Ln.left, Ye.value = T.showYGrid ?? !0, i.value = T.showYTick ?? !0, W.value = T.yTickFontSize ?? 12, Z.value = T.showYTitle ?? !1, Q.value = T.yTitle ?? "", Ce.value = T.yTitleFontSize ?? 12, Fe.value = T.showLegend ?? void 0, Xe.value = T.legendPosition ?? Dn.top, Re.value = T.usePointStyle ?? !0, je.value = T.legendFontSize, Be.value = T.legendColor ?? "#6b6b6b", fe.value = T.legendMaxWidth, O.value = T.maxTooltipItems, _e.value = T.stackBarOverlap ?? !1, Te.value = T.rowHeight ?? 0, Le.value = T.colWidths ?? [], b.value = Gt();
4443
+ I.value = T.rollup, g.value = T.showTitle ?? !0, m.value = T.titleFontSize ?? 14, L.value = T.titleBold ?? !1, x.value = T.titleItalic ?? !1, w.value = T.titleUnderline ?? !1, _.value = T.chartHeight ?? void 0, A.value = T.chartWidth ?? void 0, c.value = Array.isArray(T.chartColors) ? [...T.chartColors] : void 0, F.value = Array.isArray(T.chartColorLayers) ? [...T.chartColorLayers] : void 0, E.value = Array.isArray(T.chartBreakdownColors) ? [...T.chartBreakdownColors] : void 0, G.value = T.chartUseSecondaryMetricShades ?? !0, le.value = T.chartColorBinding, te.value = Array.isArray(T.lineStyles) ? [...T.lineStyles] : void 0, ce.value = T.lineStyleBinding, ne.value = T.showLabel ?? !1, k.value = T.labelAlign ?? kn.center, U.value = T.labelAnchor ?? _n.center, P.value = T.labelRotation ?? 0, z.value = T.labelOffset ?? 0, $.value = T.labelFontSize ?? 12, re.value = T.showX ?? !0, X.value = T.xPosition ?? Tn.bottom, ee.value = T.showXGrid ?? !1, ae.value = T.showXTick ?? !0, ue.value = T.xTickFontSize ?? 12, he.value = T.showXTitle ?? !1, Se.value = T.xTitle ?? "", de.value = T.xTitleFontSize ?? 12, ye.value = T.showY ?? !0, Ne.value = T.yPosition ?? Ln.left, Ye.value = T.showYGrid ?? !0, i.value = T.showYTick ?? !0, W.value = T.yTickFontSize ?? 12, Z.value = T.showYTitle ?? !1, Q.value = T.yTitle ?? "", Ce.value = T.yTitleFontSize ?? 12, Fe.value = T.showLegend ?? void 0, Xe.value = T.legendPosition ?? Dn.top, Re.value = T.usePointStyle ?? !0, je.value = T.legendFontSize, Be.value = T.legendColor ?? "#6b6b6b", fe.value = T.legendMaxWidth, O.value = T.maxTooltipItems, _e.value = T.stackBarOverlap ?? !1, Te.value = T.rowHeight ?? 0, Le.value = T.colWidths ?? [], b.value = Gt();
4444
4444
  },
4445
4445
  { deep: !0 }
4446
- ), Pe([() => I.value], () => {
4446
+ ), ze([() => I.value], () => {
4447
4447
  I.value !== null && (t.value.widget.config.rollup = I.value);
4448
- }), Pe(
4448
+ }), ze(
4449
4449
  [
4450
4450
  () => se.value,
4451
4451
  () => K.value,
@@ -4459,7 +4459,7 @@ const fr = {
4459
4459
  Rn();
4460
4460
  },
4461
4461
  { deep: !0 }
4462
- ), Pe(
4462
+ ), ze(
4463
4463
  [() => t.value.size],
4464
4464
  () => {
4465
4465
  o();
@@ -4524,14 +4524,14 @@ const fr = {
4524
4524
  }
4525
4525
  })), Ba = se.value.type === ie.Spacer ? "flat" : "outlined", Va = se.value.type === ie.Spacer ? "p-0" : "p-16";
4526
4526
  return (T, Ie) => {
4527
- const lt = ge("FmTooltip"), xt = ge("FmSearch"), pn = ge("FmCheckbox"), It = ge("FmButton"), Aa = ge("FmSelect"), $a = ge("FmMenuItem"), Na = ge("FmMenu"), za = ge("FmForm"), Pa = ge("FmCircularProgress"), Ra = ge("FmCard");
4527
+ const lt = ge("FmTooltip"), xt = ge("FmSearch"), pn = ge("FmCheckbox"), It = ge("FmButton"), Aa = ge("FmSelect"), $a = ge("FmMenuItem"), Na = ge("FmMenu"), Pa = ge("FmForm"), za = ge("FmCircularProgress"), Ra = ge("FmCard");
4528
4528
  return Y(), we(Ra, {
4529
4529
  ref_key: "tileCard",
4530
4530
  ref: d,
4531
4531
  class: qe(`${hn.value} ${l(Va)}`),
4532
4532
  variant: l(Ba)
4533
4533
  }, {
4534
- default: ze(() => [
4534
+ default: Pe(() => [
4535
4535
  me(cr, {
4536
4536
  modelValue: He.value,
4537
4537
  "onUpdate:modelValue": Ie[0] || (Ie[0] = (Mt) => He.value = Mt),
@@ -4548,9 +4548,9 @@ const fr = {
4548
4548
  "onUpdate:modelValue": Ie[4] || (Ie[4] = (Mt) => Qe.value = Mt),
4549
4549
  "tile-index": p.index
4550
4550
  }, {
4551
- menu: ze(() => [
4552
- me(za, { class: "flex items-center gap-2" }, {
4553
- default: ze(() => {
4551
+ menu: Pe(() => [
4552
+ me(Pa, { class: "flex items-center gap-2" }, {
4553
+ default: Pe(() => {
4554
4554
  var Mt, On, En, Un;
4555
4555
  return [
4556
4556
  me(lt, {
@@ -4561,7 +4561,7 @@ const fr = {
4561
4561
  disabled: !se.value.description,
4562
4562
  "z-index": 99
4563
4563
  }, {
4564
- default: ze(() => [
4564
+ default: Pe(() => [
4565
4565
  g.value !== !1 ? (Y(), be("p", {
4566
4566
  key: 0,
4567
4567
  style: Ze({
@@ -4617,13 +4617,13 @@ const fr = {
4617
4617
  key: 4,
4618
4618
  shift: !0
4619
4619
  }, {
4620
- "menu-button": ze(() => [
4620
+ "menu-button": Pe(() => [
4621
4621
  me(It, {
4622
4622
  icon: "more_vert",
4623
4623
  variant: "tertiary"
4624
4624
  })
4625
4625
  ]),
4626
- default: ze(() => [
4626
+ default: Pe(() => [
4627
4627
  (Y(!0), be(et, null, Lt(l(Fa), (mt) => (Y(), we($a, {
4628
4628
  key: mt.value,
4629
4629
  label: mt.label,
@@ -4639,7 +4639,7 @@ const fr = {
4639
4639
  ]),
4640
4640
  _: 1
4641
4641
  }, 8, ["modelValue", "tile-index"]))
4642
- ], 4)) : (Y(), we(Pa, { key: 1 }))
4642
+ ], 4)) : (Y(), we(za, { key: 1 }))
4643
4643
  ]),
4644
4644
  _: 1
4645
4645
  }, 8, ["class", "variant"]);
@@ -4911,7 +4911,7 @@ const vr = ma(pr, () => {
4911
4911
  const Z = b(i.filter, x.value).selectedValues;
4912
4912
  i.selectedValues = i.keepSelection ? Z : i.options.map((Q) => Q.value), i.filter.values = [...i.selectedValues], f(i.filter, x.value, "selectedValues", i.selectedValues);
4913
4913
  }
4914
- Pe(
4914
+ ze(
4915
4915
  () => ({
4916
4916
  reportId: x.value,
4917
4917
  globalFilters: s.value
@@ -4933,13 +4933,13 @@ const vr = ma(pr, () => {
4933
4933
  }), R();
4934
4934
  },
4935
4935
  { immediate: !0 }
4936
- ), Pe(
4936
+ ), ze(
4937
4937
  [p, d, C],
4938
4938
  async () => {
4939
4939
  await R();
4940
4940
  },
4941
4941
  { deep: !0, immediate: !0 }
4942
- ), Pe(
4942
+ ), ze(
4943
4943
  [() => r.value],
4944
4944
  async () => {
4945
4945
  w.value.forEach((i) => {
@@ -4947,7 +4947,7 @@ const vr = ma(pr, () => {
4947
4947
  }), await R();
4948
4948
  },
4949
4949
  { deep: !0 }
4950
- ), Pe(
4950
+ ), ze(
4951
4951
  () => t.value,
4952
4952
  async () => {
4953
4953
  await R(!0);
@@ -5081,18 +5081,18 @@ const vr = ma(pr, () => {
5081
5081
  var W;
5082
5082
  return !((W = i.filter.tileIds) != null && W.length);
5083
5083
  }
5084
- function z(i) {
5084
+ function P(i) {
5085
5085
  return String(i ?? "").trim() === "" ? Xt : String(i);
5086
5086
  }
5087
- function P(i) {
5087
+ function z(i) {
5088
5088
  var W, Z;
5089
5089
  return (((W = i.customTimeRanges) == null ? void 0 : W.length) ?? 0) > 0 ? i.customTimeRanges.map((Q) => ({
5090
- label: z(Q.name),
5091
- value: z(Q.name),
5090
+ label: P(Q.name),
5091
+ value: P(Q.name),
5092
5092
  available: !0
5093
5093
  })) : (((Z = i.customOptions) == null ? void 0 : Z.length) ?? 0) > 0 ? i.customOptions.map((Q) => ({
5094
- label: z(Q.label),
5095
- value: z(Q.label),
5094
+ label: P(Q.label),
5095
+ value: P(Q.label),
5096
5096
  available: !0
5097
5097
  })) : [];
5098
5098
  }
@@ -5104,7 +5104,7 @@ const vr = ma(pr, () => {
5104
5104
  }
5105
5105
  if (!(!i.type && (i.type = E(i.filter), !i.type))) {
5106
5106
  if (k(i.filter)) {
5107
- i.options = P(i.filter), F(i);
5107
+ i.options = z(i.filter), F(i);
5108
5108
  return;
5109
5109
  }
5110
5110
  switch (i.type) {
@@ -5288,7 +5288,7 @@ const vr = ma(pr, () => {
5288
5288
  shift: !0,
5289
5289
  open: l(V)(O.id)
5290
5290
  }, {
5291
- "menu-button": ze(() => [
5291
+ "menu-button": Pe(() => [
5292
5292
  J("div", yr, [
5293
5293
  me(oo, {
5294
5294
  "left-icon": "filter_alt",
@@ -5296,14 +5296,14 @@ const vr = ma(pr, () => {
5296
5296
  label: ue(O).preview,
5297
5297
  class: "w-full"
5298
5298
  }, {
5299
- default: ze(() => [
5299
+ default: Pe(() => [
5300
5300
  bn(Ge(ue(O).suffix), 1)
5301
5301
  ]),
5302
5302
  _: 2
5303
5303
  }, 1032, ["label"])
5304
5304
  ])
5305
5305
  ]),
5306
- "menu-wrapper": ze(({ maxHeight: We, width: Ee }) => [
5306
+ "menu-wrapper": Pe(({ maxHeight: We, width: Ee }) => [
5307
5307
  J("div", {
5308
5308
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
5309
5309
  style: Ze({ maxHeight: `${We}px`, width: Ee })
@@ -5342,10 +5342,10 @@ const vr = ma(pr, () => {
5342
5342
  "hide-arrow": !0,
5343
5343
  "z-index": 2e3
5344
5344
  }, {
5345
- content: ze(() => [
5345
+ content: Pe(() => [
5346
5346
  bn(Ge(Ae.label), 1)
5347
5347
  ]),
5348
- default: ze(() => [
5348
+ default: Pe(() => [
5349
5349
  J("div", Sr, [
5350
5350
  me(Ce, {
5351
5351
  label: Ne(Ae.label, 110),
@@ -5403,10 +5403,10 @@ const vr = ma(pr, () => {
5403
5403
  placement: "top",
5404
5404
  "z-index": 2e3
5405
5405
  }, {
5406
- content: ze(() => [
5406
+ content: Pe(() => [
5407
5407
  J("div", Ir, Ge(l(n)("report.section.filter.keepSelectionTooltip")), 1)
5408
5408
  ]),
5409
- default: ze(() => [
5409
+ default: Pe(() => [
5410
5410
  me(Xe, {
5411
5411
  name: "info",
5412
5412
  size: "md",