@feedmepos/mf-report 5.23.8 → 5.23.9

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-CutfMmAb.js → App-BZrJScUy.js} +4 -4
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CpV0wkhL.js → BaseDialog.vue_vue_type_script_setup_true_lang-pYe2bX3S.js} +19 -9
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BuW4FTY2.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-XYtSMlzj.js} +1 -1
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-B23Q_BCd.js → Default.vue_vue_type_script_setup_true_lang-cdffEExQ.js} +1 -1
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DwTI3NLV.js → FilterSelector.vue_vue_type_script_setup_true_lang-DclkRCoN.js} +390 -390
  6. package/dist/{InsightView-C0FMVct3.js → InsightView-Tv1zwcZH.js} +4 -4
  7. package/dist/{Integration-C_OXu0kD.js → Integration-IU2PWqnn.js} +3 -3
  8. package/dist/{Integrations-C7Fhc287.js → Integrations-BWvWAEZY.js} +2 -2
  9. package/dist/{Layout-DAvtVkq7.js → Layout-B1evYsv9.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B9VRnwHN.js → MenuTab.vue_vue_type_script_setup_true_lang-BQPCJYFc.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C8pYhwMf.js → NavigationTab.vue_vue_type_script_setup_true_lang-BLvQUAWn.js} +3 -3
  12. package/dist/{OverviewView-CZTeHw2W.js → OverviewView-Cz66yY79.js} +4 -4
  13. package/dist/{Report-CiK4sbAo.js → Report-I1TVhc_5.js} +3 -3
  14. package/dist/{ReportEditor-t68q9HyT.js → ReportEditor-CHns80TI.js} +4 -4
  15. package/dist/{ReportView-B_teuay7.js → ReportView-T2ThdsZQ.js} +6 -6
  16. package/dist/{Setting-BIIwu18L.js → Setting-BjVIDt8e.js} +3 -3
  17. package/dist/{TileEditor-CeBF5oiS.js → TileEditor-VPautwYN.js} +5 -5
  18. package/dist/{TransitionFade-C5APqw0a.js → TransitionFade-BCxLswdT.js} +4 -4
  19. package/dist/{app-BV4xSC2o.js → app-AWxvVekP.js} +11 -11
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-BDvFT0pw.js → formatChartData.worker-DkfLOO1x.js} +28 -28
  22. package/dist/assets/{processTableData.worker-CORwAutg.js → processTableData.worker-CC1ehXtr.js} +28 -28
  23. package/dist/{useRestaurantPermission-BjjtF5AH.js → useRestaurantPermission-C0aF3n_j.js} +1 -1
  24. package/package.json +1 -1
@@ -1,11 +1,11 @@
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-CpV0wkhL.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-BV4xSC2o.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-BuW4FTY2.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 X, 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 Xa, g as vn, h as da, q as fa, R as Ft, i as Ya, 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-pYe2bX3S.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-AWxvVekP.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-XYtSMlzj.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";
8
- import { useBreakpoints as fn, useSnackbar as An, components as io } from "@feedmepos/ui-library";
8
+ import { useBreakpoints as fn, useSnackbar as Vn, components as io } from "@feedmepos/ui-library";
9
9
  import { u as wt } from "./vue-i18n-DVWuTfed.js";
10
10
  import { _ as ha } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
11
11
  import { r as _t } from "./i18n-CI_sQ5d_.js";
@@ -117,7 +117,7 @@ const dn = [
117
117
  "#8358D4",
118
118
  "#9B5046"
119
119
  ], Er = dn.map(() => "solid");
120
- function At({
120
+ function Vt({
121
121
  datasetIndex: e,
122
122
  label: n
123
123
  }) {
@@ -356,7 +356,7 @@ function So() {
356
356
  };
357
357
  }
358
358
  const _o = "rgba(0, 0, 0, 0.3)";
359
- function Yn(e) {
359
+ function Xn(e) {
360
360
  if (typeof document > "u" || typeof window > "u")
361
361
  return;
362
362
  const n = String((e == null ? void 0 : e.id) ?? "");
@@ -430,22 +430,22 @@ function Qt(e) {
430
430
  n && (a.ctx.restore(), n = !1);
431
431
  },
432
432
  beforeDestroy: (a) => {
433
- Yn(a);
433
+ Xn(a);
434
434
  },
435
435
  afterDestroy: (a) => {
436
- Yn(a);
436
+ Xn(a);
437
437
  }
438
438
  };
439
439
  }
440
- const Lo = Number.POSITIVE_INFINITY, In = 2, Do = 1, Io = 0.2, Mo = 120, { breakpoints: Vt } = fn(), Vn = "report-v5:locationchange";
441
- let Xn = !1;
440
+ const Lo = Number.POSITIVE_INFINITY, In = 2, Do = 1, Io = 0.2, Mo = 120, { breakpoints: At } = fn(), An = "report-v5:locationchange";
441
+ let Yn = !1;
442
442
  function Gn() {
443
- window.dispatchEvent(new Event(Vn));
443
+ window.dispatchEvent(new Event(An));
444
444
  }
445
445
  function Fo() {
446
- if (Xn)
446
+ if (Yn)
447
447
  return;
448
- Xn = !0;
448
+ Yn = !0;
449
449
  const e = window.history.pushState.bind(window.history), n = window.history.replaceState.bind(window.history);
450
450
  window.history.pushState = function(...a) {
451
451
  const r = e(...a);
@@ -468,10 +468,10 @@ function ba() {
468
468
  function Bo(e) {
469
469
  return e == null ? null : typeof e != "string" ? [] : e.split("#").map((n) => n.trim()).filter((n) => n.length > 0);
470
470
  }
471
- function Ao(e) {
471
+ function Vo(e) {
472
472
  return e.dash === !0 || e.isCompare === !0;
473
473
  }
474
- function Vo(e) {
474
+ function Ao(e) {
475
475
  return typeof e.label == "string" ? e.label : "N/A";
476
476
  }
477
477
  function $o(e, n) {
@@ -485,13 +485,13 @@ function zo(e, n) {
485
485
  return e.type === "bar" ? !0 : n === "bar";
486
486
  }
487
487
  function Po(e, n, t) {
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);
488
+ const a = Xt(e.borderColor, n) || Xt(e.color, n), r = Xt(e.backgroundColor, n), s = Xt(e.pointBorderColor, n), u = Xt(e.pointBackgroundColor, n);
489
489
  return t ? jn(r, u, a, s) : jn(a, s, r, u);
490
490
  }
491
491
  function Ro(e) {
492
492
  return e.trim().toLowerCase();
493
493
  }
494
- function Yt(e, n) {
494
+ function Xt(e, n) {
495
495
  if (typeof e == "string") return e;
496
496
  if (Array.isArray(e)) {
497
497
  const t = e[n];
@@ -524,14 +524,14 @@ function Oo(e) {
524
524
  return Number.isFinite(n) ? Math.max(In, Math.floor(n)) : Lo;
525
525
  }
526
526
  function Eo(e) {
527
- return e <= 0 ? 320 : Vt.value.xs || Vt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : Vt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : Vt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
527
+ return e <= 0 ? 320 : At.value.xs || At.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : At.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : At.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
528
528
  }
529
529
  function $n(e, n) {
530
530
  const t = window.innerHeight, a = Eo(t), r = n ? Math.max(120, n.clientHeight - 16) : Number.POSITIVE_INFINITY, s = Math.max(120, Math.min(a, r));
531
531
  e.style.maxHeight = `${s}px`;
532
532
  }
533
533
  function $t() {
534
- return Vt.value.xs || Vt.value.sm;
534
+ return At.value.xs || At.value.sm;
535
535
  }
536
536
  function Nt(e) {
537
537
  return e.dataset.pinned === "true";
@@ -574,12 +574,12 @@ function qo(e) {
574
574
  return `<button type="button" data-tooltip-full-details="true" style="${go}">${Mn(e)}</button>`;
575
575
  }
576
576
  function xa(e, n, t, a, r, s, u, p) {
577
- var V;
578
- const d = (V = e[0]) == null ? void 0 : V.label, C = Bo(d), N = (C == null ? void 0 : C[0]) ?? "", H = C == null ? void 0 : C[1], I = [], b = [], f = /* @__PURE__ */ new Set();
577
+ var A;
578
+ const d = (A = e[0]) == null ? void 0 : A.label, C = Bo(d), N = (C == null ? void 0 : C[0]) ?? "", H = C == null ? void 0 : C[1], I = [], b = [], f = /* @__PURE__ */ new Set();
579
579
  s.forEach((_, c) => {
580
580
  if (f.has(c))
581
581
  return;
582
- const F = _ ?? {}, E = Vo(F), G = $o(F, u), le = zo(F, p), te = {
582
+ const F = _ ?? {}, E = Ao(F), G = $o(F, u), le = zo(F, p), te = {
583
583
  text: No(E, G),
584
584
  color: Po(F, u, le),
585
585
  isBar: le,
@@ -587,7 +587,7 @@ function xa(e, n, t, a, r, s, u, p) {
587
587
  datasetLabel: E,
588
588
  matchingKey: Ro(E)
589
589
  };
590
- if (H && Ao(F)) {
590
+ if (H && Vo(F)) {
591
591
  b.push(te);
592
592
  return;
593
593
  }
@@ -602,15 +602,15 @@ function xa(e, n, t, a, r, s, u, p) {
602
602
  }
603
603
  c.push(_);
604
604
  });
605
- const A = H ? M.map((_) => {
605
+ const V = H ? M.map((_) => {
606
606
  const c = B.get(_.matchingKey);
607
607
  return !c || c.length === 0 ? Jn(_) : c.shift() ?? Jn(_);
608
- }) : [], g = I.length > M.length || b.length > A.length, m = (_, c = !1) => `<div style="${Uo(c)}">${Mn(_)}</div>`, L = (_) => {
608
+ }) : [], g = I.length > M.length || b.length > V.length, m = (_, c = !1) => `<div style="${Uo(c)}">${Mn(_)}</div>`, L = (_) => {
609
609
  const c = Ko(_.isBar, _.color);
610
610
  return `<div style="${bo}"><span style="${c}"></span><span style="${Co}">${Mn(_.text)}</span></div>`;
611
611
  };
612
612
  let x = "";
613
- N.length > 0 && (x += m(N)), x += M.map((_) => L(_)).join(""), H && A.length > 0 && (x += m(H, x.length > 0), x += A.map((_) => L(_)).join("")), r && g && (x += qo(t));
613
+ N.length > 0 && (x += m(N)), x += M.map((_) => L(_)).join(""), H && V.length > 0 && (x += m(H, x.length > 0), x += V.map((_) => L(_)).join("")), r && g && (x += qo(t));
614
614
  const w = [
615
615
  {
616
616
  title: N,
@@ -643,7 +643,7 @@ function rn(e, n, t, a, r, s, u, p, d) {
643
643
  );
644
644
  return e.innerHTML !== C.html && (e.innerHTML = C.html, rl(e)), C;
645
645
  }
646
- function Yo(e, n, t, a, r, s, u, p, d) {
646
+ function Xo(e, n, t, a, r, s, u, p, d) {
647
647
  if (Number.isFinite(r))
648
648
  return {
649
649
  markup: rn(
@@ -742,7 +742,7 @@ function sn(e, n) {
742
742
  (t) => typeof t == "string" ? Qn(t, n) : t
743
743
  ) : e;
744
744
  }
745
- function Xo(e) {
745
+ function Yo(e) {
746
746
  e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
747
747
  borderColor: Reflect.get(e, "borderColor"),
748
748
  backgroundColor: Reflect.get(e, "backgroundColor"),
@@ -778,7 +778,7 @@ function un(e, n) {
778
778
  const t = e.data.datasets;
779
779
  if (t.length !== 0) {
780
780
  if (t.forEach((a, r) => {
781
- Xo(a), !n || r === n.datasetIndex ? Go(a) : jo(a, Io);
781
+ Yo(a), !n || r === n.datasetIndex ? Go(a) : jo(a, Io);
782
782
  }), typeof e.setActiveElements == "function")
783
783
  try {
784
784
  n ? e.setActiveElements([
@@ -823,14 +823,14 @@ function Nn(e) {
823
823
  function zn(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
- const B = f.__cachedWidth ?? e.offsetWidth, A = 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 - A / 2 : L + g, V = N + g;
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;
827
827
  let _ = H + g;
828
828
  const c = document.querySelector('[data-menu-tab="true"]');
829
829
  if (c) {
830
830
  const ce = c.getBoundingClientRect().bottom - C.top + H + g;
831
831
  _ = Math.max(_, ce);
832
832
  }
833
- const F = Math.max(V, N + I - B - g), E = Math.max(_, H + b - A - g), G = Math.round(Math.min(Math.max(V, x), F)), le = Math.round(Math.min(Math.max(_, w), E));
833
+ const F = Math.max(A, N + I - B - g), E = Math.max(_, H + b - V - g), G = Math.round(Math.min(Math.max(A, x), F)), le = Math.round(Math.min(Math.max(_, w), E));
834
834
  f.__lastLeftPx === G && f.__lastTopPx === le || (f.__lastLeftPx = G, f.__lastTopPx = le, e.style.left = `${G}px`, e.style.top = `${le}px`);
835
835
  }
836
836
  function _a(e) {
@@ -857,7 +857,7 @@ function el(e) {
857
857
  e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
858
858
  }
859
859
  function tl(e) {
860
- e.__onNavigationChange && (window.removeEventListener(Vn, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
860
+ e.__onNavigationChange && (window.removeEventListener(An, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
861
861
  }
862
862
  function nl(e) {
863
863
  e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
@@ -872,7 +872,7 @@ function al(e, n, t) {
872
872
  return;
873
873
  }
874
874
  pt(e, n, !0);
875
- }, window.addEventListener(Vn, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
875
+ }, window.addEventListener(An, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
876
876
  }
877
877
  function ol(e, n) {
878
878
  e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
@@ -956,16 +956,16 @@ function sl(e, n, t, a, r) {
956
956
  }, n.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
957
957
  passive: !0
958
958
  })), e.__onCanvasClick || (e.__onCanvasClick = (u) => {
959
- var B, A;
959
+ var B, V;
960
960
  if (!(r != null && r.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
961
961
  return;
962
962
  const p = (g) => {
963
- var V, _, c, F;
963
+ var A, _, c, F;
964
964
  if (g.length === 0)
965
965
  return !1;
966
- const m = (V = g.find(
966
+ const m = (A = g.find(
967
967
  (E) => typeof E.dataIndex == "number"
968
- )) == null ? void 0 : V.dataIndex, L = ((_ = t == null ? void 0 : t.data) == null ? void 0 : _.datasets) ?? [], x = (c = t == null ? void 0 : t.config) == null ? void 0 : c.type, w = xa(
968
+ )) == null ? void 0 : A.dataIndex, L = ((_ = t == null ? void 0 : t.data) == null ? void 0 : _.datasets) ?? [], x = (c = t == null ? void 0 : t.config) == null ? void 0 : c.type, w = xa(
969
969
  g,
970
970
  a,
971
971
  (r == null ? void 0 : r.viewFullDetailsLabel) ?? ba(),
@@ -1009,7 +1009,7 @@ function sl(e, n, t, a, r) {
1009
1009
  } catch {
1010
1010
  return;
1011
1011
  }
1012
- const M = ((A = t == null ? void 0 : t.tooltip) == null ? void 0 : A.dataPoints) ?? [];
1012
+ const M = ((V = t == null ? void 0 : t.tooltip) == null ? void 0 : V.dataPoints) ?? [];
1013
1013
  p(M);
1014
1014
  }, n.addEventListener("click", e.__onCanvasClick)), e.__onCanvasPointerUp || (e.__onCanvasPointerUp = (u) => {
1015
1015
  if ($t()) {
@@ -1113,7 +1113,7 @@ function ul(e, n) {
1113
1113
  Pt(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
- } = Yo(
1116
+ } = Xo(
1117
1117
  d,
1118
1118
  C,
1119
1119
  e,
@@ -1123,22 +1123,22 @@ function ul(e, n) {
1123
1123
  b,
1124
1124
  I,
1125
1125
  f
1126
- ), A = H && B;
1127
- d.__detailsPayload = A ? M : void 0, d.style.pointerEvents = A ? "auto" : "none";
1126
+ ), V = H && B;
1127
+ d.__detailsPayload = V ? M : void 0, d.style.pointerEvents = V ? "auto" : "none";
1128
1128
  const g = typeof (r == null ? void 0 : r.caretX) == "number" ? r.caretX : 0, m = Number(d.dataset.cursorCanvasX), L = Number(d.dataset.cursorCanvasY);
1129
1129
  if (!(Number.isFinite(m) && Number.isFinite(L))) {
1130
1130
  d.style.opacity = "0";
1131
1131
  return;
1132
1132
  }
1133
- const w = (ce = a == null ? void 0 : a.scales) == null ? void 0 : ce.x, V = w && typeof w.getPixelForValue == "function" ? w.getPixelForValue(0) : NaN, _ = e ? C.reduce((ne, k) => {
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
1134
  const U = k == null ? void 0 : k.element, z = U == null ? void 0 : U.x;
1135
1135
  if (typeof z != "number" || !Number.isFinite(z))
1136
1136
  return ne;
1137
1137
  if (!Number.isFinite(ne))
1138
1138
  return z;
1139
- const P = Number.isFinite(V) ? V : g, $ = Math.abs(ne - P);
1139
+ const P = Number.isFinite(A) ? A : g, $ = Math.abs(ne - P);
1140
1140
  return Math.abs(z - P) > $ ? z : ne;
1141
- }, Number.NaN) : Number.NaN, c = m, F = L, E = e ? Number.isFinite(V) && Number.isFinite(_) && _ < V ? "left" : "right" : "center";
1141
+ }, Number.NaN) : Number.NaN, c = m, F = L, E = e ? Number.isFinite(A) && Number.isFinite(_) && _ < A ? "left" : "right" : "center";
1142
1142
  zn(
1143
1143
  d,
1144
1144
  s,
@@ -1162,12 +1162,12 @@ function Et(e) {
1162
1162
  function a(b, f, M) {
1163
1163
  if (b.measureText(f).width <= M) return f;
1164
1164
  const B = "…";
1165
- let A = 0, g = f.length;
1166
- for (; A < g; ) {
1167
- const m = Math.floor((A + g) / 2), L = f.slice(0, m) + B;
1168
- b.measureText(L).width <= M ? A = m + 1 : g = m;
1165
+ let V = 0, g = f.length;
1166
+ for (; V < g; ) {
1167
+ const m = Math.floor((V + g) / 2), L = f.slice(0, m) + B;
1168
+ b.measureText(L).width <= M ? V = m + 1 : g = m;
1169
1169
  }
1170
- return f.slice(0, A - 1) + B;
1170
+ return f.slice(0, V - 1) + B;
1171
1171
  }
1172
1172
  function r(b) {
1173
1173
  const f = b == null ? "" : String(b), [M] = f.split("#");
@@ -1204,7 +1204,7 @@ function Et(e) {
1204
1204
  let M = String(b);
1205
1205
  const B = this;
1206
1206
  B && typeof B.getLabelForValue == "function" && (M = B.getLabelForValue(b)), M = r(M);
1207
- const A = B == null ? void 0 : B.chart, g = B == null ? void 0 : B.ctx, m = A.height * 0.25;
1207
+ const V = B == null ? void 0 : B.chart, g = B == null ? void 0 : B.ctx, m = V.height * 0.25;
1208
1208
  if (g && m > 0) {
1209
1209
  g.save();
1210
1210
  const x = g.measureText(M).width > m ? a(g, M, m) : M;
@@ -1252,7 +1252,7 @@ function Et(e) {
1252
1252
  let M = String(b);
1253
1253
  const B = this;
1254
1254
  B && typeof B.getLabelForValue == "function" && (M = B.getLabelForValue(b)), M = r(M);
1255
- const A = B == null ? void 0 : B.chart, g = B == null ? void 0 : B.ctx, m = A.width * 0.4;
1255
+ const V = B == null ? void 0 : B.chart, g = B == null ? void 0 : B.ctx, m = V.width * 0.4;
1256
1256
  if (g && m > 0) {
1257
1257
  g.save();
1258
1258
  const x = g.measureText(M).width > m ? a(g, M, m) : M;
@@ -1285,9 +1285,9 @@ function Et(e) {
1285
1285
  const f = e.legendColor ?? "#6b6b6b", M = ((B = b == null ? void 0 : b.data) == null ? void 0 : B.datasets) || [];
1286
1286
  if (M.length === 0) return [];
1287
1287
  if (M.length === 1 && Array.isArray(M[0].backgroundColor) && M[0].backgroundColor.length > 1 && Array.isArray(M[0].data)) {
1288
- const A = M[0];
1288
+ const V = M[0];
1289
1289
  return b.data.labels.map((m, L) => {
1290
- const x = A.backgroundColor[L];
1290
+ const x = V.backgroundColor[L];
1291
1291
  return {
1292
1292
  text: m,
1293
1293
  fontColor: f,
@@ -1300,10 +1300,10 @@ function Et(e) {
1300
1300
  };
1301
1301
  });
1302
1302
  }
1303
- return b.data.datasets.map((A, g) => {
1304
- const m = A.borderColor || A.backgroundColor;
1303
+ return b.data.datasets.map((V, g) => {
1304
+ const m = V.borderColor || V.backgroundColor;
1305
1305
  return {
1306
- text: s(A.label),
1306
+ text: s(V.label),
1307
1307
  fontColor: f,
1308
1308
  color: f,
1309
1309
  fillStyle: m,
@@ -1360,12 +1360,12 @@ const cl = {
1360
1360
  function B() {
1361
1361
  return typeof window > "u" ? na : Math.floor(window.innerWidth * 0.94);
1362
1362
  }
1363
- function A(c) {
1363
+ function V(c) {
1364
1364
  const F = B(), E = Math.min(Cl, F);
1365
1365
  return Math.min(F, Math.max(E, Math.floor(c)));
1366
1366
  }
1367
1367
  function g(c) {
1368
- typeof window > "u" || (u.value = A(window.innerWidth - c));
1368
+ typeof window > "u" || (u.value = V(window.innerWidth - c));
1369
1369
  }
1370
1370
  function m() {
1371
1371
  p.value = !1, document.removeEventListener("pointermove", L), document.removeEventListener("pointerup", m), document.removeEventListener("pointercancel", m);
@@ -1377,9 +1377,9 @@ const cl = {
1377
1377
  d.value && (p.value = !0, g(c.clientX), document.addEventListener("pointermove", L), document.addEventListener("pointerup", m), document.addEventListener("pointercancel", m));
1378
1378
  }
1379
1379
  function w() {
1380
- u.value = A(u.value);
1380
+ u.value = V(u.value);
1381
1381
  }
1382
- function V(c) {
1382
+ function A(c) {
1383
1383
  var G;
1384
1384
  if (!d.value)
1385
1385
  return;
@@ -1393,12 +1393,12 @@ const cl = {
1393
1393
  d.value && c.key === "Escape" && M();
1394
1394
  }
1395
1395
  return it(() => {
1396
- u.value = A(u.value), document.addEventListener("pointerdown", V, !0), document.addEventListener("keydown", _), window.addEventListener("resize", w);
1396
+ u.value = V(u.value), document.addEventListener("pointerdown", A, !0), document.addEventListener("keydown", _), window.addEventListener("resize", w);
1397
1397
  }), ia(() => {
1398
- m(), document.removeEventListener("pointerdown", V, !0), document.removeEventListener("keydown", _), window.removeEventListener("resize", w);
1398
+ m(), document.removeEventListener("pointerdown", A, !0), document.removeEventListener("keydown", _), window.removeEventListener("resize", w);
1399
1399
  }), (c, F) => {
1400
1400
  const E = ge("FmButton");
1401
- return Y(), we(Ha, {
1401
+ return X(), we(Ha, {
1402
1402
  "enter-active-class": "transform transition duration-200 ease-out",
1403
1403
  "enter-from-class": "translate-x-full opacity-0",
1404
1404
  "enter-to-class": "translate-x-0 opacity-100",
@@ -1407,7 +1407,7 @@ const cl = {
1407
1407
  "leave-to-class": "translate-x-full opacity-0"
1408
1408
  }, {
1409
1409
  default: ze(() => [
1410
- d.value ? (Y(), be("div", cl, [
1410
+ d.value ? (X(), be("div", cl, [
1411
1411
  J("div", {
1412
1412
  ref_key: "panelRef",
1413
1413
  ref: s,
@@ -1437,12 +1437,12 @@ const cl = {
1437
1437
  class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
1438
1438
  onMouseleave: f
1439
1439
  }, [
1440
- (Y(!0), be(et, null, Lt(C.value, (G, le) => (Y(), be("div", {
1440
+ (X(!0), be(et, null, Lt(C.value, (G, le) => (X(), be("div", {
1441
1441
  key: `${G.title || "section"}-${le}`,
1442
1442
  class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
1443
1443
  }, [
1444
- G.title ? (Y(), be("p", pl, Ge(G.title), 1)) : Me("", !0),
1445
- (Y(!0), be(et, null, Lt(G.values, (te, ce) => (Y(), be("button", {
1444
+ G.title ? (X(), be("p", pl, Ge(G.title), 1)) : Me("", !0),
1445
+ (X(!0), be(et, null, Lt(G.values, (te, ce) => (X(), be("button", {
1446
1446
  key: `${te.text}-${ce}`,
1447
1447
  type: "button",
1448
1448
  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",
@@ -1531,9 +1531,9 @@ const wl = {
1531
1531
  },
1532
1532
  emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
1533
1533
  setup(e, { emit: n }) {
1534
- const t = e, a = n, { t: r } = wt(), s = D([]), u = D(0), p = D(!1), d = D(!1), C = D(0), N = D(null), H = D(null), I = D(null), b = D(null), f = D(!1), M = D(0), B = D(0), A = D(!1), g = D(0), m = D(0), L = v(() => t.enabled !== !1), x = v(() => t.position === "left" || t.position === "right");
1534
+ const t = e, a = n, { t: r } = wt(), s = D([]), u = D(0), p = D(!1), d = D(!1), C = D(0), N = D(null), H = D(null), I = D(null), b = D(null), f = D(!1), M = D(0), B = D(0), V = D(!1), g = D(0), m = D(0), L = v(() => t.enabled !== !1), x = v(() => t.position === "left" || t.position === "right");
1535
1535
  let w = null;
1536
- const V = v(
1536
+ const A = v(
1537
1537
  () => p.value && d.value && f.value
1538
1538
  ), _ = v(() => ({
1539
1539
  height: `${Math.max(0, M.value)}px`,
@@ -1607,10 +1607,10 @@ const wl = {
1607
1607
  y.scrollTop = pe * j, k();
1608
1608
  }
1609
1609
  function P(o) {
1610
- f.value && (A.value = !0, g.value = o.clientY, m.value = B.value);
1610
+ f.value && (V.value = !0, g.value = o.clientY, m.value = B.value);
1611
1611
  }
1612
1612
  function $(o) {
1613
- if (!A.value)
1613
+ if (!V.value)
1614
1614
  return;
1615
1615
  const y = I.value;
1616
1616
  if (!y)
@@ -1619,7 +1619,7 @@ const wl = {
1619
1619
  y.scrollTop = q * oe, k();
1620
1620
  }
1621
1621
  function R() {
1622
- A.value && (A.value = !1);
1622
+ V.value && (V.value = !1);
1623
1623
  }
1624
1624
  function re() {
1625
1625
  var y;
@@ -1643,7 +1643,7 @@ const wl = {
1643
1643
  }
1644
1644
  return null;
1645
1645
  }
1646
- function X() {
1646
+ function Y() {
1647
1647
  var h, S, K, q;
1648
1648
  const o = (S = (h = N.value) == null ? void 0 : h.closest(".chart-layout")) == null ? void 0 : S.parentElement;
1649
1649
  if (o instanceof HTMLElement)
@@ -1665,7 +1665,7 @@ const wl = {
1665
1665
  return Number.isFinite(y) && y > 0 ? y : null;
1666
1666
  }
1667
1667
  function ae() {
1668
- const o = X();
1668
+ const o = Y();
1669
1669
  if (o) {
1670
1670
  const oe = Number(o.getBoundingClientRect().height);
1671
1671
  if (Number.isFinite(oe) && oe > 0)
@@ -1678,7 +1678,7 @@ const wl = {
1678
1678
  return Number.isFinite(q) && q > 0 ? q : null;
1679
1679
  }
1680
1680
  function ue() {
1681
- const o = X();
1681
+ const o = Y();
1682
1682
  if (o) {
1683
1683
  const oe = Number(o.getBoundingClientRect().width);
1684
1684
  if (Number.isFinite(oe) && oe > 0)
@@ -1755,7 +1755,7 @@ const wl = {
1755
1755
  function Ne(o) {
1756
1756
  return Array.isArray(t.hiddenDataPointIndexes) ? t.hiddenDataPointIndexes.includes(o) : !1;
1757
1757
  }
1758
- function Ye(o) {
1758
+ function Xe(o) {
1759
1759
  return Array.isArray(o) ? o : [];
1760
1760
  }
1761
1761
  function i(o) {
@@ -1820,19 +1820,19 @@ const wl = {
1820
1820
  y.buildLabels();
1821
1821
  } catch {
1822
1822
  }
1823
- const h = Ye(y == null ? void 0 : y.legendItems);
1823
+ const h = Xe(y == null ? void 0 : y.legendItems);
1824
1824
  if (h.length > 0)
1825
1825
  return h;
1826
1826
  const S = (ke = (j = o == null ? void 0 : o.options) == null ? void 0 : j.plugins) == null ? void 0 : ke.legend, K = S == null ? void 0 : S.labels, q = K == null ? void 0 : K.generateLabels, oe = (se = (ve = (xe = ($e = wn.defaults) == null ? void 0 : $e.plugins) == null ? void 0 : xe.legend) == null ? void 0 : ve.labels) == null ? void 0 : se.generateLabels;
1827
- let pe = Ye(
1827
+ let pe = Xe(
1828
1828
  typeof q == "function" ? q(o) : []
1829
1829
  );
1830
- return pe.length === 0 && typeof oe == "function" && (pe = Ye(oe(o))), typeof (K == null ? void 0 : K.filter) == "function" && (pe = pe.filter((Ke) => K.filter(Ke, o.data))), typeof (K == null ? void 0 : K.sort) == "function" && (pe = [...pe].sort((Ke, ot) => K.sort(Ke, ot, o.data))), (S == null ? void 0 : S.reverse) === !0 && (pe = [...pe].reverse()), pe;
1830
+ return pe.length === 0 && typeof oe == "function" && (pe = Xe(oe(o))), typeof (K == null ? void 0 : K.filter) == "function" && (pe = pe.filter((Ke) => K.filter(Ke, o.data))), typeof (K == null ? void 0 : K.sort) == "function" && (pe = [...pe].sort((Ke, ot) => K.sort(Ke, ot, o.data))), (S == null ? void 0 : S.reverse) === !0 && (pe = [...pe].reverse()), pe;
1831
1831
  }
1832
1832
  function Q(o) {
1833
1833
  var h;
1834
1834
  return (Array.isArray((h = o == null ? void 0 : o.data) == null ? void 0 : h.datasets) ? o.data.datasets : []).map((S, K) => {
1835
- const q = ye((S == null ? void 0 : S.borderColor) ?? (S == null ? void 0 : S.backgroundColor)), oe = At({
1835
+ const q = ye((S == null ? void 0 : S.borderColor) ?? (S == null ? void 0 : S.backgroundColor)), oe = Vt({
1836
1836
  datasetIndex: K,
1837
1837
  label: S == null ? void 0 : S.label
1838
1838
  });
@@ -1861,7 +1861,7 @@ const wl = {
1861
1861
  index: ke,
1862
1862
  hidden: Ne(ke)
1863
1863
  })) : h.map((j, ke) => ({
1864
- datasetKey: At({
1864
+ datasetKey: Vt({
1865
1865
  datasetIndex: ke,
1866
1866
  label: j == null ? void 0 : j.label
1867
1867
  }),
@@ -1874,14 +1874,14 @@ const wl = {
1874
1874
  ),
1875
1875
  datasetIndex: ke,
1876
1876
  hidden: Array.isArray(t.hiddenDatasetKeys) ? t.hiddenDatasetKeys.includes(
1877
- At({
1877
+ Vt({
1878
1878
  datasetIndex: ke,
1879
1879
  label: j == null ? void 0 : j.label
1880
1880
  })
1881
1881
  ) : !!(j != null && j.hidden)
1882
1882
  }));
1883
1883
  }
1884
- function Xe() {
1884
+ function Ye() {
1885
1885
  var y;
1886
1886
  const o = (y = t.chartRef) == null ? void 0 : y.datasets;
1887
1887
  return Array.isArray(o) ? o : [];
@@ -2014,7 +2014,7 @@ const wl = {
2014
2014
  } : d.value ? {
2015
2015
  overflow: "hidden"
2016
2016
  } : {} : {});
2017
- function Ae() {
2017
+ function Ve() {
2018
2018
  var S;
2019
2019
  if (!L.value) {
2020
2020
  s.value = [], u.value = 0, p.value = !1, d.value = !1, C.value = 0, G({ height: 0, width: 0 });
@@ -2043,7 +2043,7 @@ const wl = {
2043
2043
  }
2044
2044
  function Oe(o, y) {
2045
2045
  return Array.isArray(o.datasetKeys) && o.datasetKeys.length > 0 ? o.datasetKeys.filter((h) => typeof h == "string" && h.trim().length > 0) : typeof o.datasetKey == "string" && o.datasetKey.trim().length > 0 ? [o.datasetKey] : y.map(
2046
- (h) => At({
2046
+ (h) => Vt({
2047
2047
  datasetIndex: h,
2048
2048
  label: o.text
2049
2049
  })
@@ -2063,7 +2063,7 @@ const wl = {
2063
2063
  const S = Array.isArray((K = o == null ? void 0 : o.data) == null ? void 0 : K.datasets) ? o.data.datasets[y] : null;
2064
2064
  S && typeof S == "object" && (S.hidden = !h);
2065
2065
  }
2066
- function Ve(o, y) {
2066
+ function Ae(o, y) {
2067
2067
  var oe;
2068
2068
  if (typeof o.toggleDataVisibility == "function") {
2069
2069
  o.toggleDataVisibility(y);
@@ -2076,7 +2076,7 @@ const wl = {
2076
2076
  q && typeof q.hidden == "boolean" && (q.hidden = !q.hidden);
2077
2077
  }
2078
2078
  function an(o = 0) {
2079
- Ae();
2079
+ Ve();
2080
2080
  const y = te(), h = s.value.length > 0;
2081
2081
  if (y || h || o >= Ll) {
2082
2082
  le();
@@ -2094,7 +2094,7 @@ const wl = {
2094
2094
  a("toggleDataPointVisibility", { itemIndex: q });
2095
2095
  return;
2096
2096
  }
2097
- h && (Ve(h, q), h.update());
2097
+ h && (Ae(h, q), h.update());
2098
2098
  const xe = h && typeof h.getDataVisibility == "function" ? !h.getDataVisibility(q) : o.hidden !== !0;
2099
2099
  We(
2100
2100
  (ve) => typeof ve.index == "number" ? ve.index === q : ve.datasetIndex === o.datasetIndex && ve.text === o.text,
@@ -2107,7 +2107,7 @@ const wl = {
2107
2107
  pe.forEach((xe, ve) => {
2108
2108
  a("toggleDatasetVisibility", {
2109
2109
  datasetIndex: xe,
2110
- datasetKey: j[ve] ?? At({
2110
+ datasetKey: j[ve] ?? Vt({
2111
2111
  datasetIndex: xe,
2112
2112
  label: o.text
2113
2113
  })
@@ -2115,7 +2115,7 @@ const wl = {
2115
2115
  });
2116
2116
  return;
2117
2117
  }
2118
- const ke = Xe();
2118
+ const ke = Ye();
2119
2119
  if (!h) {
2120
2120
  if (pe.length > 0) {
2121
2121
  const xe = o.hidden !== !0;
@@ -2159,11 +2159,11 @@ const wl = {
2159
2159
  t.hiddenDataPointIndexes
2160
2160
  ],
2161
2161
  () => {
2162
- Ae();
2162
+ Ve();
2163
2163
  }
2164
2164
  ), ia(() => {
2165
- A.value = !1, le(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", $), window.removeEventListener("mouseup", R);
2166
- }), (o, y) => L.value ? (Y(), be("div", {
2165
+ V.value = !1, le(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", $), window.removeEventListener("mouseup", R);
2166
+ }), (o, y) => L.value ? (X(), be("div", {
2167
2167
  key: 0,
2168
2168
  ref_key: "legendPanelRef",
2169
2169
  ref: N,
@@ -2195,7 +2195,7 @@ const wl = {
2195
2195
  style: Ze(He.value),
2196
2196
  onScroll: U
2197
2197
  }, [
2198
- (Y(!0), be(et, null, Lt(Le.value, (h, S) => (Y(), be("li", {
2198
+ (X(!0), be(et, null, Lt(Le.value, (h, S) => (X(), be("li", {
2199
2199
  key: Re(h, S),
2200
2200
  class: qe(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2201
2201
  "w-full": x.value,
@@ -2223,7 +2223,7 @@ const wl = {
2223
2223
  }, Ge(h.text), 11, Sl)
2224
2224
  ], 10, xl)
2225
2225
  ], 2))), 128)),
2226
- d.value ? (Y(), be("li", _l, [
2226
+ d.value ? (X(), be("li", _l, [
2227
2227
  J("button", {
2228
2228
  type: "button",
2229
2229
  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",
@@ -2232,7 +2232,7 @@ const wl = {
2232
2232
  }, Ge(p.value ? l(r)("report.widget.legend.viewLess") : l(r)("report.widget.legend.viewMore")), 1)
2233
2233
  ])) : Me("", !0)
2234
2234
  ], 38),
2235
- V.value ? (Y(), be("div", {
2235
+ A.value ? (X(), be("div", {
2236
2236
  key: 0,
2237
2237
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2238
2238
  onMousedown: z
@@ -2250,7 +2250,7 @@ const wl = {
2250
2250
  function nn(e) {
2251
2251
  const n = D([]), t = v(() => new Set(n.value));
2252
2252
  function a(u, p) {
2253
- return At({
2253
+ return Vt({
2254
2254
  datasetIndex: p,
2255
2255
  label: u == null ? void 0 : u.label
2256
2256
  });
@@ -2306,11 +2306,11 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2306
2306
  }), I = v(() => {
2307
2307
  var z;
2308
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: A, isTransposed: g, legend: m, chartWidth: L, chartHeight: x } = Et(
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(
2310
2310
  t.value
2311
2311
  ), w = v(
2312
2312
  () => Ot(t.value.isTransposed === !0, p.value)
2313
- ), V = Qt("bar"), _ = v(() => {
2313
+ ), A = Qt("bar"), _ = v(() => {
2314
2314
  const z = m.value.position;
2315
2315
  return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
2316
2316
  }), c = v(() => m.value.position ?? "top"), F = v(
@@ -2334,7 +2334,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2334
2334
  b.value && (re = H.value.map(
2335
2335
  (ue, he) => he === P ? z.values[0] : NaN
2336
2336
  ));
2337
- const X = t.value.chartColorBinding === Ue.breakdown, ee = zt({
2337
+ const Y = t.value.chartColorBinding === Ue.breakdown, ee = zt({
2338
2338
  fallbackIndex: P,
2339
2339
  metricCount: t.value.metricCount
2340
2340
  }), ae = re.map((ue) => ue === null ? NaN : Number(ue));
@@ -2342,7 +2342,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2342
2342
  label: z.name,
2343
2343
  data: ae,
2344
2344
  dash: !!z.isCompare,
2345
- backgroundColor: X ? Wt({
2345
+ backgroundColor: Y ? Wt({
2346
2346
  breakdownIndex: ee,
2347
2347
  metricIndex: R,
2348
2348
  metricCount: t.value.metricCount,
@@ -2373,9 +2373,9 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2373
2373
  }), Pe([ne], () => {
2374
2374
  tt(() => U());
2375
2375
  }), (z, P) => {
2376
- var R, re, X, ee, ae, ue;
2376
+ var R, re, Y, ee, ae, ue;
2377
2377
  const $ = ge("FmBarChart");
2378
- return Y(), be(et, null, [
2378
+ return X(), be(et, null, [
2379
2379
  J("div", Il, [
2380
2380
  yt(z.$slots, "menu"),
2381
2381
  J("div", {
@@ -2383,14 +2383,14 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2383
2383
  "chart-layout--side": _.value && (l(m).display ?? !1) && F.value
2384
2384
  }])
2385
2385
  }, [
2386
- _.value && (l(m).display ?? !1) && E.value ? (Y(), we(rt, {
2386
+ _.value && (l(m).display ?? !1) && E.value ? (X(), we(rt, {
2387
2387
  key: 0,
2388
2388
  "chart-ref": a.value,
2389
2389
  enabled: l(m).display ?? !1,
2390
2390
  position: c.value,
2391
2391
  "max-width": l(m).maxWidth,
2392
2392
  "text-color": (R = l(m).labels) == null ? void 0 : R.color,
2393
- "font-size": (X = (re = l(m).labels) == null ? void 0 : re.font) == null ? void 0 : X.size,
2393
+ "font-size": (Y = (re = l(m).labels) == null ? void 0 : re.font) == null ? void 0 : Y.size,
2394
2394
  "legend-update-key": ne.value,
2395
2395
  "chart-color-binding": t.value.chartColorBinding,
2396
2396
  "chart-colors": t.value.chartColors,
@@ -2407,21 +2407,21 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2407
2407
  datasets: ne.value,
2408
2408
  "x-axis": { categories: f.value },
2409
2409
  "x-cfg": l(B),
2410
- "y-cfg": l(A),
2410
+ "y-cfg": l(V),
2411
2411
  transpose: l(g),
2412
2412
  legend: {
2413
2413
  display: !1
2414
2414
  },
2415
2415
  tooltip: w.value,
2416
2416
  datalabels: l(M),
2417
- plugins: [l(V)],
2417
+ plugins: [l(A)],
2418
2418
  "maintain-aspect-ratio": !1,
2419
2419
  style: Ze({
2420
2420
  "--chart-width": _.value && (l(m).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(L) !== void 0 ? l(L) + "px" : "100%",
2421
2421
  "--chart-height": _.value && (l(m).display ?? !1) && !F.value ? "calc(100% - 36px - var(--legend-panel-height, 0px))" : l(x) !== void 0 ? l(x) + "px" : "100%"
2422
2422
  })
2423
2423
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
2424
- _.value && (l(m).display ?? !1) && !E.value ? (Y(), we(rt, {
2424
+ _.value && (l(m).display ?? !1) && !E.value ? (X(), we(rt, {
2425
2425
  key: 1,
2426
2426
  "chart-ref": a.value,
2427
2427
  enabled: l(m).display ?? !1,
@@ -2502,7 +2502,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2502
2502
  const f = v(() => typeof t.value.legendFontSize == "number" ? t.value.legendFontSize : a.value.lg ? 12 : 8), M = v(() => {
2503
2503
  const c = p.value.position;
2504
2504
  return !c || c === "top" || c === "bottom" || c === "left" || c === "right";
2505
- }), B = v(() => p.value.display !== !1), A = v(() => M.value && B.value), g = v(() => p.value.position ?? "top"), m = v(
2505
+ }), B = v(() => p.value.display !== !1), V = v(() => M.value && B.value), g = v(() => p.value.position ?? "top"), m = v(
2506
2506
  () => g.value === "left" || g.value === "right"
2507
2507
  ), L = v(
2508
2508
  () => g.value === "top" || g.value === "left"
@@ -2510,7 +2510,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2510
2510
  var F;
2511
2511
  const c = (F = p.value.labels) == null ? void 0 : F.color;
2512
2512
  return typeof c == "string" && c.trim().length > 0 ? c : t.value.legendColor ?? "#6b6b6b";
2513
- }), w = v(() => f.value), V = So();
2513
+ }), w = v(() => f.value), A = So();
2514
2514
  function _({ itemIndex: c }) {
2515
2515
  if (s.value.includes(c)) {
2516
2516
  s.value = s.value.filter((F) => F !== c);
@@ -2520,14 +2520,14 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2520
2520
  }
2521
2521
  return (c, F) => {
2522
2522
  const E = ge("FmPieChart");
2523
- return Y(), be("div", Fl, [
2523
+ return X(), be("div", Fl, [
2524
2524
  yt(c.$slots, "menu"),
2525
2525
  J("div", {
2526
2526
  class: qe(["chart-layout", {
2527
- "chart-layout--side": A.value && m.value
2527
+ "chart-layout--side": V.value && m.value
2528
2528
  }])
2529
2529
  }, [
2530
- A.value && L.value ? (Y(), we(rt, {
2530
+ V.value && L.value ? (X(), we(rt, {
2531
2531
  key: 0,
2532
2532
  "chart-ref": r.value,
2533
2533
  enabled: B.value,
@@ -2551,7 +2551,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2551
2551
  percentage: "70%",
2552
2552
  datasets: H.value,
2553
2553
  metrics: N.value,
2554
- tooltip: l(V),
2554
+ tooltip: l(A),
2555
2555
  variant: "doughnut",
2556
2556
  legend: {
2557
2557
  display: !1
@@ -2559,11 +2559,11 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2559
2559
  datalabels: l(u),
2560
2560
  "maintain-aspect-ratio": !1,
2561
2561
  style: Ze({
2562
- "--chart-width": A.value && m.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(d) !== void 0 ? l(d) + "px" : "100%",
2563
- "--chart-height": A.value && !m.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(C) !== void 0 ? l(C) + "px" : "100%"
2562
+ "--chart-width": V.value && m.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(d) !== void 0 ? l(d) + "px" : "100%",
2563
+ "--chart-height": V.value && !m.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(C) !== void 0 ? l(C) + "px" : "100%"
2564
2564
  })
2565
2565
  }, null, 8, ["datasets", "metrics", "tooltip", "datalabels", "style"]),
2566
- A.value && !L.value ? (Y(), we(rt, {
2566
+ V.value && !L.value ? (X(), we(rt, {
2567
2567
  key: 1,
2568
2568
  "chart-ref": r.value,
2569
2569
  enabled: B.value,
@@ -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 Al = { class: "flex flex-col gap-1" }, Vl = { 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" }, zl = { key: 0 }, Pl = { key: 1 }, Rl = /* @__PURE__ */ at({
2597
2597
  __name: "WidgetScorecard",
2598
2598
  props: {
2599
2599
  modelValue: { required: !0 },
@@ -2632,10 +2632,10 @@ const Al = { class: "flex flex-col gap-1" }, Vl = { class: "fm-typo-en-title-md-
2632
2632
  color: "#36a2eb"
2633
2633
  }))), b = v(() => Ot(!1, !0));
2634
2634
  return (f, M) => {
2635
- const B = ge("FmIcon"), A = ge("FmChip"), g = ge("FmTooltip"), m = ge("FmLineChart");
2636
- return Y(), be("div", Al, [
2635
+ const B = ge("FmIcon"), V = ge("FmChip"), g = ge("FmTooltip"), m = ge("FmLineChart");
2636
+ return X(), be("div", Vl, [
2637
2637
  yt(f.$slots, "menu"),
2638
- J("p", Vl, Ge(p.value), 1),
2638
+ J("p", Al, Ge(p.value), 1),
2639
2639
  J("div", $l, [
2640
2640
  me(g, {
2641
2641
  disabled: d.value === null,
@@ -2650,7 +2650,7 @@ const Al = { class: "flex flex-col gap-1" }, Vl = { class: "fm-typo-en-title-md-
2650
2650
  ];
2651
2651
  }),
2652
2652
  default: ze(() => [
2653
- d.value ? (Y(), we(A, {
2653
+ d.value ? (X(), we(V, {
2654
2654
  key: 0,
2655
2655
  icon: d.value.icon.name,
2656
2656
  class: qe(`bg-${d.value.icon.tailwind}`),
@@ -2668,7 +2668,7 @@ const Al = { class: "flex flex-col gap-1" }, Vl = { class: "fm-typo-en-title-md-
2668
2668
  ]),
2669
2669
  _: 1
2670
2670
  }, 8, ["icon", "class"])) : Me("", !0),
2671
- l(a).endDate != null && l(a).startDate != null && d.value === null ? (Y(), we(A, {
2671
+ l(a).endDate != null && l(a).startDate != null && d.value === null ? (X(), we(V, {
2672
2672
  key: 1,
2673
2673
  class: "invisible pointer-events-none",
2674
2674
  "aria-hidden": "true",
@@ -2687,8 +2687,8 @@ const Al = { class: "flex flex-col gap-1" }, Vl = { class: "fm-typo-en-title-md-
2687
2687
  _: 1
2688
2688
  }, 8, ["disabled"])
2689
2689
  ]),
2690
- N.value ? (Y(), be("div", zl, [
2691
- C(N.value.type) === "line" ? (Y(), we(m, {
2690
+ N.value ? (X(), be("div", zl, [
2691
+ C(N.value.type) === "line" ? (X(), we(m, {
2692
2692
  key: 0,
2693
2693
  class: "sparkline",
2694
2694
  datasets: I.value,
@@ -2702,7 +2702,7 @@ const Al = { class: "flex flex-col gap-1" }, Vl = { 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
+ ])) : (X(), be("div", Pl, M[1] || (M[1] = [
2706
2706
  J("div", { class: "sparkline" }, [
2707
2707
  J("div", { class: "flex flex-col gap-8" }, [
2708
2708
  J("div"),
@@ -2717,7 +2717,7 @@ const Al = { class: "flex flex-col gap-1" }, Vl = { class: "fm-typo-en-title-md-
2717
2717
  }), Hl = {};
2718
2718
  function Wl(e, n) {
2719
2719
  const t = ge("FmMenuDivider");
2720
- return Y(), we(t);
2720
+ return X(), we(t);
2721
2721
  }
2722
2722
  const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimension", la = ma(El, () => {
2723
2723
  const e = D(0), n = D([]), t = D(!1), a = (g, m) => {
@@ -2726,17 +2726,17 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2726
2726
  n[g] = m, n.value = [...n.value], u(g, m, L, x);
2727
2727
  }, s = (g, m) => {
2728
2728
  const L = (m == null ? void 0 : m.querySelectorAll("thead tr")) ?? [], x = (m == null ? void 0 : m.querySelectorAll("tbody tr")) ?? [];
2729
- [...L, ...x].forEach((V) => {
2730
- const _ = V;
2729
+ [...L, ...x].forEach((A) => {
2730
+ const _ = A;
2731
2731
  _ && (_.style.height = `${g}px`);
2732
2732
  });
2733
2733
  }, u = (g, m, L, x = !1) => {
2734
2734
  const w = (L == null ? void 0 : L.querySelectorAll("th")) ?? [];
2735
2735
  if (g === void 0) return;
2736
- const V = w[g], _ = x ? n[g] : m;
2737
- if (!V || _ === void 0) return;
2736
+ const A = w[g], _ = x ? n[g] : m;
2737
+ if (!A || _ === void 0) return;
2738
2738
  const c = () => {
2739
- V.style.width = `${_}px`;
2739
+ A.style.width = `${_}px`;
2740
2740
  };
2741
2741
  x ? requestAnimationFrame(c) : c();
2742
2742
  }, p = () => {
@@ -2774,14 +2774,14 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2774
2774
  if (!x) return;
2775
2775
  const w = x.querySelectorAll("th")[m];
2776
2776
  if (!w) return;
2777
- const V = w.getBoundingClientRect().width || 60, _ = w.querySelector("button"), c = (_ == null ? void 0 : _.querySelector("span")) || w.querySelector("p") || w;
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
2780
  const ne = c.textContent || "", k = window.getComputedStyle(c), U = `${k.fontWeight} ${k.fontSize} ${k.fontFamily}`, P = document.createElement("canvas").getContext("2d");
2781
2781
  if (P) {
2782
2782
  P.font = U;
2783
- const $ = P.measureText(ne), R = window.getComputedStyle(w), re = parseFloat(R.paddingLeft || "0"), X = parseFloat(R.paddingRight || "0");
2784
- F = $.width + re + X;
2783
+ const $ = P.measureText(ne), R = window.getComputedStyle(w), re = parseFloat(R.paddingLeft || "0"), Y = parseFloat(R.paddingRight || "0");
2784
+ F = $.width + re + Y;
2785
2785
  }
2786
2786
  }
2787
2787
  N(m, !1);
@@ -2796,7 +2796,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
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;
2799
- G = Math.max(F, V + k), E === null && (E = requestAnimationFrame(le));
2799
+ G = Math.max(F, A + k), E === null && (E = requestAnimationFrame(le));
2800
2800
  }, ce = () => {
2801
2801
  E !== null && cancelAnimationFrame(E), G !== null && (w.style.width = `${G}px`);
2802
2802
  const ne = x.querySelectorAll("th"), k = [];
@@ -2811,10 +2811,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2811
2811
  const w = (_) => {
2812
2812
  const c = Math.max(30, x + (_.clientY - m));
2813
2813
  L && a(c, L);
2814
- }, V = () => {
2815
- I(!1), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", V);
2814
+ }, A = () => {
2815
+ I(!1), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", A);
2816
2816
  };
2817
- document.addEventListener("mousemove", w), document.addEventListener("mouseup", V);
2817
+ document.addEventListener("mousemove", w), document.addEventListener("mouseup", A);
2818
2818
  };
2819
2819
  return {
2820
2820
  rowHeight: e,
@@ -2836,17 +2836,17 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2836
2836
  enableCellResizing: () => {
2837
2837
  const g = document.querySelector("thead"), m = document.querySelectorAll("thead tr"), L = document.querySelectorAll("tbody tr"), x = [...m, ...L];
2838
2838
  g && g.classList.remove("sticky");
2839
- const w = (V, _) => {
2839
+ const w = (A, _) => {
2840
2840
  const c = document.createElement("div");
2841
- return c.className = `${V}-resize-handle`, V === "col" ? (c.addEventListener("mouseenter", () => N(_, !0)), c.addEventListener("mouseleave", () => b(!0)), c.addEventListener("mousedown", (F) => {
2841
+ return c.className = `${A}-resize-handle`, A === "col" ? (c.addEventListener("mouseenter", () => N(_, !0)), c.addEventListener("mouseleave", () => b(!0)), c.addEventListener("mousedown", (F) => {
2842
2842
  F.stopPropagation(), f(F, _);
2843
2843
  })) : (c.addEventListener("mouseenter", () => H(!0)), c.addEventListener("mouseleave", () => I(!0)), c.addEventListener("mousedown", (F) => {
2844
2844
  F.stopPropagation(), M(F);
2845
2845
  })), c;
2846
2846
  };
2847
- x.forEach((V) => {
2848
- const _ = V.closest("thead") !== null;
2849
- V.querySelectorAll(_ ? "th" : "td").forEach((F, E) => {
2847
+ x.forEach((A) => {
2848
+ const _ = A.closest("thead") !== null;
2849
+ A.querySelectorAll(_ ? "th" : "td").forEach((F, E) => {
2850
2850
  const G = w("col", E), le = w("row", E);
2851
2851
  F.appendChild(G), F.appendChild(le);
2852
2852
  });
@@ -2856,10 +2856,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2856
2856
  d();
2857
2857
  }
2858
2858
  };
2859
- }), Ul = "/assets/processTableData.worker-CORwAutg.js", Kl = { class: "my-4" }, ql = {
2859
+ }), Ul = "/assets/processTableData.worker-CC1ehXtr.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
- }, Yl = { class: "font-bold" }, Xl = { class: "text-fm-color-neutral-gray-300" }, Gl = /* @__PURE__ */ at({
2862
+ }, Xl = { class: "font-bold" }, Yl = { class: "text-fm-color-neutral-gray-300" }, Gl = /* @__PURE__ */ at({
2863
2863
  __name: "WidgetTable",
2864
2864
  props: /* @__PURE__ */ gt({
2865
2865
  tileIndex: {}
@@ -2869,7 +2869,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2869
2869
  }),
2870
2870
  emits: ["update:modelValue"],
2871
2871
  setup(e) {
2872
- const { t: n, te: t } = wt(), a = ct(e, "modelValue"), { country: r } = Bn(), { clearTileSorts: s, setTileSorts: u } = qa(), p = An(), d = e, C = D([]), { isEditing: N, colWidths: H, rowHeight: I } = vt(la()), { setColWidths: b, setRowHeights: f, enableCellResizing: M } = la(), B = D(null), A = v(() => {
2872
+ const { t: n, te: t } = wt(), a = ct(e, "modelValue"), { country: r } = Bn(), { clearTileSorts: s, setTileSorts: u } = qa(), p = Vn(), d = e, C = D([]), { isEditing: N, colWidths: H, rowHeight: I } = vt(la()), { setColWidths: b, setRowHeights: f, enableCellResizing: M } = la(), B = D(null), V = v(() => {
2873
2873
  var k;
2874
2874
  return ((k = a.value.data) == null ? void 0 : k.columns) || [{ label: "", key: "" }];
2875
2875
  }), g = v(() => {
@@ -2890,7 +2890,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2890
2890
  }), w = v(() => {
2891
2891
  const P = x.value !== void 0 ? 1 : 0, $ = (B.value ? B.value.$el.offsetHeight : 0) - 48;
2892
2892
  return Math.floor(($ - 34.5 - 32) / 48) - P;
2893
- }), V = v(() => {
2893
+ }), A = v(() => {
2894
2894
  var U, z;
2895
2895
  let k = [];
2896
2896
  switch (x.value) {
@@ -2900,7 +2900,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2900
2900
  return {
2901
2901
  main: P,
2902
2902
  comparison: (R = g.value[0]) == null ? void 0 : R.comparisonCells[$],
2903
- rowType: A.value[$].type
2903
+ rowType: V.value[$].type
2904
2904
  };
2905
2905
  });
2906
2906
  break;
@@ -2910,7 +2910,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2910
2910
  return {
2911
2911
  main: P,
2912
2912
  comparison: (R = g.value[g.value.length - 1]) == null ? void 0 : R.comparisonCells[$],
2913
- rowType: A.value[$].type
2913
+ rowType: V.value[$].type
2914
2914
  };
2915
2915
  });
2916
2916
  break;
@@ -2957,7 +2957,7 @@ 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
+ Xa(Ul, P).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
  }
@@ -3033,7 +3033,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3033
3033
  },
3034
3034
  cell: (re) => {
3035
3035
  var ae, ue;
3036
- const X = _(re.getValue()), ee = (ue = (ae = re == null ? void 0 : re.row) == null ? void 0 : ae.original) == null ? void 0 : ue.isRollup;
3036
+ const Y = _(re.getValue()), ee = (ue = (ae = re == null ? void 0 : re.row) == null ? void 0 : ae.original) == null ? void 0 : ue.isRollup;
3037
3037
  return ln(
3038
3038
  "div",
3039
3039
  {
@@ -3043,7 +3043,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3043
3043
  ce.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3044
3044
  ].join(" ")
3045
3045
  },
3046
- [U.type === "NUMERIC" ? cn(X.main) : X.main]
3046
+ [U.type === "NUMERIC" ? cn(Y.main) : Y.main]
3047
3047
  );
3048
3048
  },
3049
3049
  enableSorting: !1
@@ -3073,7 +3073,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3073
3073
  { immediate: !0 }
3074
3074
  ), (k, U) => {
3075
3075
  const z = ge("FmTable");
3076
- return Y(), be(et, null, [
3076
+ return X(), be(et, null, [
3077
3077
  J("div", Kl, [
3078
3078
  yt(k.$slots, "menu")
3079
3079
  ]),
@@ -3093,10 +3093,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3093
3093
  x.value ? {
3094
3094
  name: "pin-top",
3095
3095
  fn: ze(() => [
3096
- (Y(), we(ua(x.value === l(bt).bottom ? "tfoot" : "tbody"), null, {
3096
+ (X(), we(ua(x.value === l(bt).bottom ? "tfoot" : "tbody"), null, {
3097
3097
  default: ze(() => [
3098
3098
  J("tr", ql, [
3099
- (Y(!0), be(et, null, Lt(V.value, (P, $) => (Y(), be("td", {
3099
+ (X(!0), be(et, null, Lt(A.value, (P, $) => (X(), be("td", {
3100
3100
  key: `${l(Gt)()}_${$}`,
3101
3101
  class: "h-[48px] text-fm-color-typo-primary px-16"
3102
3102
  }, [
@@ -3107,8 +3107,8 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
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", Xl, Ge(P.rowType === "NUMERIC" ? l(cn)(P.main) : P.main), 1),
3111
+ J("p", Yl, Ge(P.comparison ? P.rowType === "NUMERIC" ? `(${l(cn)(P.comparison)})` : `(${P.comparison})` : ""), 1)
3112
3112
  ], 2)
3113
3113
  ]))), 128))
3114
3114
  ])
@@ -3147,37 +3147,37 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3147
3147
  }), I = v(() => {
3148
3148
  var R;
3149
3149
  return ((R = t.value.data) == null ? void 0 : R.datasets) ?? [];
3150
- }), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend: A, chartWidth: g, chartHeight: m } = Et(
3150
+ }), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend: V, chartWidth: g, chartHeight: m } = Et(
3151
3151
  t.value
3152
3152
  ), L = v(
3153
3153
  () => Ot(t.value.isTransposed === !0, p.value)
3154
- ), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0), V = v(() => w.value === !1), _ = v(() => {
3155
- const R = A.value.position;
3154
+ ), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0), A = v(() => w.value === !1), _ = v(() => {
3155
+ const R = V.value.position;
3156
3156
  return !R || R === "top" || R === "bottom" || R === "left" || R === "right";
3157
- }), c = v(() => A.value.position ?? "top"), F = v(
3157
+ }), c = v(() => V.value.position ?? "top"), F = v(
3158
3158
  () => c.value === "left" || c.value === "right"
3159
3159
  ), E = v(
3160
3160
  () => c.value === "top" || c.value === "left"
3161
3161
  ), G = v(() => ({
3162
3162
  ...f.value,
3163
- stacked: V.value
3163
+ stacked: A.value
3164
3164
  })), le = v(() => ({
3165
3165
  ...M.value,
3166
- stacked: V.value
3166
+ stacked: A.value
3167
3167
  }));
3168
3168
  function te({
3169
3169
  datasetIndex: R,
3170
3170
  colorIndex: re,
3171
- breakdownIndex: X
3171
+ breakdownIndex: Y
3172
3172
  }) {
3173
3173
  var he;
3174
- const ee = t.value.chartColorBinding === Ue.metric ? re : t.value.chartColorBinding === Ue.breakdown ? X : R, ae = (he = t.value.chartColorLayers) == null ? void 0 : he[ee], ue = Number(ae);
3174
+ const ee = t.value.chartColorBinding === Ue.metric ? re : t.value.chartColorBinding === Ue.breakdown ? Y : R, ae = (he = t.value.chartColorLayers) == null ? void 0 : he[ee], ue = Number(ae);
3175
3175
  return Number.isInteger(ue) && ue > 0 ? ue : ee + 1;
3176
3176
  }
3177
3177
  const ce = v(() => {
3178
3178
  if (I.value.length > 0) {
3179
3179
  let R = 0, re = 0;
3180
- const X = I.value.map((ee, ae) => {
3180
+ const Y = I.value.map((ee, ae) => {
3181
3181
  const ue = t.value.chartColorBinding === Ue.metric && (t.value.metricCount ?? 0) > 0 ? ee.isCompare ? re++ % Number(t.value.metricCount) : R++ % Number(t.value.metricCount) : nt({
3182
3182
  datasetIndex: ae,
3183
3183
  isCompare: ee.isCompare,
@@ -3195,7 +3195,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3195
3195
  datasetIndex: ae,
3196
3196
  colorIndex: ue,
3197
3197
  breakdownIndex: Se
3198
- }), Ne = ee.values.map((Ye) => Ye === null ? NaN : Number(Ye));
3198
+ }), Ne = ee.values.map((Xe) => Xe === null ? NaN : Number(Xe));
3199
3199
  return {
3200
3200
  dataset: {
3201
3201
  label: ee.name,
@@ -3219,7 +3219,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3219
3219
  }
3220
3220
  };
3221
3221
  });
3222
- return w.value ? X.map((ee) => ee.dataset) : X.map((ee) => ee.dataset);
3222
+ return w.value ? Y.map((ee) => ee.dataset) : Y.map((ee) => ee.dataset);
3223
3223
  } else
3224
3224
  return [];
3225
3225
  }), { hiddenDatasetKeys: ne, isDatasetHidden: k, toggleDatasetVisibility: U } = nn(ce), z = v(
@@ -3239,23 +3239,23 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3239
3239
  tt(() => $());
3240
3240
  }), (R, re) => {
3241
3241
  var ee, ae, ue, he, Se, de;
3242
- const X = ge("FmBarChart");
3243
- return Y(), be(et, null, [
3242
+ const Y = ge("FmBarChart");
3243
+ return X(), be(et, null, [
3244
3244
  J("div", jl, [
3245
3245
  yt(R.$slots, "menu"),
3246
3246
  J("div", {
3247
3247
  class: qe(["chart-layout", {
3248
- "chart-layout--side": _.value && (l(A).display ?? !1) && F.value
3248
+ "chart-layout--side": _.value && (l(V).display ?? !1) && F.value
3249
3249
  }])
3250
3250
  }, [
3251
- _.value && (l(A).display ?? !1) && E.value ? (Y(), we(rt, {
3251
+ _.value && (l(V).display ?? !1) && E.value ? (X(), we(rt, {
3252
3252
  key: 0,
3253
3253
  "chart-ref": a.value,
3254
- enabled: l(A).display ?? !1,
3254
+ enabled: l(V).display ?? !1,
3255
3255
  position: c.value,
3256
- "max-width": l(A).maxWidth,
3257
- "text-color": (ee = l(A).labels) == null ? void 0 : ee.color,
3258
- "font-size": (ue = (ae = l(A).labels) == null ? void 0 : ae.font) == null ? void 0 : ue.size,
3256
+ "max-width": l(V).maxWidth,
3257
+ "text-color": (ee = l(V).labels) == null ? void 0 : ee.color,
3258
+ "font-size": (ue = (ae = l(V).labels) == null ? void 0 : ae.font) == null ? void 0 : ue.size,
3259
3259
  "legend-update-key": z.value,
3260
3260
  "chart-color-binding": t.value.chartColorBinding,
3261
3261
  "chart-colors": t.value.chartColors,
@@ -3265,7 +3265,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3265
3265
  "hidden-dataset-keys": l(ne),
3266
3266
  onToggleDatasetVisibility: l(U)
3267
3267
  }, 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),
3268
- me(X, {
3268
+ me(Y, {
3269
3269
  ref_key: "chartRef",
3270
3270
  ref: a,
3271
3271
  class: "bar-chart",
@@ -3274,7 +3274,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3274
3274
  "x-cfg": G.value,
3275
3275
  "y-cfg": le.value,
3276
3276
  transpose: l(B),
3277
- stacked: V.value,
3277
+ stacked: A.value,
3278
3278
  legend: {
3279
3279
  display: !1
3280
3280
  },
@@ -3283,18 +3283,18 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3283
3283
  datalabels: l(b),
3284
3284
  "maintain-aspect-ratio": !1,
3285
3285
  style: Ze({
3286
- "--chart-width": _.value && (l(A).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(g) !== void 0 ? l(g) + "px" : "100%",
3287
- "--chart-height": _.value && (l(A).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
3286
+ "--chart-width": _.value && (l(V).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(g) !== void 0 ? l(g) + "px" : "100%",
3287
+ "--chart-height": _.value && (l(V).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
3288
3288
  })
3289
3289
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
3290
- _.value && (l(A).display ?? !1) && !E.value ? (Y(), we(rt, {
3290
+ _.value && (l(V).display ?? !1) && !E.value ? (X(), we(rt, {
3291
3291
  key: 1,
3292
3292
  "chart-ref": a.value,
3293
- enabled: l(A).display ?? !1,
3293
+ enabled: l(V).display ?? !1,
3294
3294
  position: c.value,
3295
- "max-width": l(A).maxWidth,
3296
- "text-color": (he = l(A).labels) == null ? void 0 : he.color,
3297
- "font-size": (de = (Se = l(A).labels) == null ? void 0 : Se.font) == null ? void 0 : de.size,
3295
+ "max-width": l(V).maxWidth,
3296
+ "text-color": (he = l(V).labels) == null ? void 0 : he.color,
3297
+ "font-size": (de = (Se = l(V).labels) == null ? void 0 : Se.font) == null ? void 0 : de.size,
3298
3298
  "legend-update-key": z.value,
3299
3299
  "chart-color-binding": t.value.chartColorBinding,
3300
3300
  "chart-colors": t.value.chartColors,
@@ -3336,76 +3336,76 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3336
3336
  } = tn(a, {
3337
3337
  maxTooltipItems: r
3338
3338
  }), H = v(() => {
3339
- var X;
3340
- return ((X = t.value.data) == null ? void 0 : X.xAxis) || [];
3339
+ var Y;
3340
+ return ((Y = t.value.data) == null ? void 0 : Y.xAxis) || [];
3341
3341
  }), I = v(() => {
3342
- var X;
3343
- return ((X = t.value.data) == null ? void 0 : X.datasets) ?? [];
3344
- }), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend: A, chartWidth: g, chartHeight: m } = Et(
3342
+ var Y;
3343
+ return ((Y = t.value.data) == null ? void 0 : Y.datasets) ?? [];
3344
+ }), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend: V, chartWidth: g, chartHeight: m } = Et(
3345
3345
  t.value
3346
3346
  ), L = v(
3347
3347
  () => Ot(t.value.isTransposed === !0, p.value)
3348
- ), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0), V = v(() => w.value === !1), _ = v(() => {
3349
- const X = A.value.position;
3350
- return !X || X === "top" || X === "bottom" || X === "left" || X === "right";
3351
- }), c = v(() => A.value.position ?? "top"), F = v(
3348
+ ), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0), A = v(() => w.value === !1), _ = v(() => {
3349
+ const Y = V.value.position;
3350
+ return !Y || Y === "top" || Y === "bottom" || Y === "left" || Y === "right";
3351
+ }), c = v(() => V.value.position ?? "top"), F = v(
3352
3352
  () => c.value === "left" || c.value === "right"
3353
3353
  ), E = v(
3354
3354
  () => c.value === "top" || c.value === "left"
3355
3355
  ), G = v(() => ({
3356
3356
  ...f.value,
3357
- stacked: V.value
3357
+ stacked: A.value
3358
3358
  })), le = v(() => ({
3359
3359
  ...M.value,
3360
- stacked: V.value
3360
+ stacked: A.value
3361
3361
  }));
3362
- function te(X) {
3363
- const ee = " - ", ae = X.lastIndexOf(ee);
3362
+ function te(Y) {
3363
+ const ee = " - ", ae = Y.lastIndexOf(ee);
3364
3364
  return ae < 0 ? {
3365
- clusterKey: X,
3366
- metricLabel: X
3365
+ clusterKey: Y,
3366
+ metricLabel: Y
3367
3367
  } : {
3368
- clusterKey: X.slice(0, ae),
3369
- metricLabel: X.slice(ae + ee.length)
3368
+ clusterKey: Y.slice(0, ae),
3369
+ metricLabel: Y.slice(ae + ee.length)
3370
3370
  };
3371
3371
  }
3372
- function ce(X, ee) {
3373
- if (typeof X == "string") {
3374
- const ae = X.trim();
3372
+ function ce(Y, ee) {
3373
+ if (typeof Y == "string") {
3374
+ const ae = Y.trim();
3375
3375
  if (ae.length > 0)
3376
3376
  return ae;
3377
3377
  }
3378
3378
  return `Series ${ee + 1}`;
3379
3379
  }
3380
3380
  function ne({
3381
- datasetIndex: X,
3381
+ datasetIndex: Y,
3382
3382
  colorIndex: ee
3383
3383
  }) {
3384
3384
  var Se;
3385
- const ae = t.value.chartColorBinding === Ue.metric ? ee : X, ue = (Se = t.value.chartColorLayers) == null ? void 0 : Se[ae], he = Number(ue);
3385
+ const ae = t.value.chartColorBinding === Ue.metric ? ee : Y, ue = (Se = t.value.chartColorLayers) == null ? void 0 : Se[ae], he = Number(ue);
3386
3386
  return Number.isInteger(he) && he > 0 ? he : ae + 1;
3387
3387
  }
3388
3388
  const k = v(() => {
3389
3389
  if (I.value.length === 0)
3390
3390
  return [];
3391
- const X = I.value.map((de, ye) => ({
3391
+ const Y = I.value.map((de, ye) => ({
3392
3392
  source: de,
3393
3393
  index: ye,
3394
3394
  name: ce(de == null ? void 0 : de.name, ye),
3395
3395
  values: (de == null ? void 0 : de.values) ?? []
3396
3396
  })), ee = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ new Map();
3397
- for (const de of X) {
3397
+ for (const de of Y) {
3398
3398
  const { clusterKey: ye, metricLabel: Ne } = te(de.name);
3399
3399
  ae.has(ye) || ae.set(ye, ae.size), ee.has(Ne) || ee.set(Ne, ee.size);
3400
3400
  }
3401
3401
  const ue = Math.max(ee.size, 1), he = t.value.chartColorBinding === Ue.breakdown, Se = t.value.chartUseSecondaryMetricShades !== !1;
3402
- return X.map((de) => {
3402
+ return Y.map((de) => {
3403
3403
  const ye = nt({
3404
3404
  datasetIndex: de.index,
3405
3405
  isCompare: de.source.isCompare,
3406
3406
  metricCount: t.value.metricCount,
3407
3407
  mode: t.value.chartColorBinding
3408
- }), { clusterKey: Ne, metricLabel: Ye } = te(de.name), i = ae.get(Ne) ?? 0, W = ee.get(Ye) ?? 0, Z = he ? Wt({
3408
+ }), { clusterKey: Ne, metricLabel: Xe } = te(de.name), i = ae.get(Ne) ?? 0, W = ee.get(Xe) ?? 0, Z = he ? Wt({
3409
3409
  breakdownIndex: i,
3410
3410
  metricIndex: W,
3411
3411
  metricCount: ue,
@@ -3423,7 +3423,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3423
3423
  }), Ce = de.values.map((Fe) => Fe === null ? NaN : Number(Fe));
3424
3424
  return {
3425
3425
  label: de.name,
3426
- tooltipLabel: `${Ne} - ${Ye}`,
3426
+ tooltipLabel: `${Ne} - ${Xe}`,
3427
3427
  data: Ce,
3428
3428
  dash: !!de.source.isCompare,
3429
3429
  grouped: !0,
@@ -3433,9 +3433,9 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3433
3433
  };
3434
3434
  });
3435
3435
  }), { hiddenDatasetKeys: U, isDatasetHidden: z, toggleDatasetVisibility: P } = nn(k), $ = v(
3436
- () => k.value.map((X, ee) => ({
3437
- ...X,
3438
- hidden: z(X, ee)
3436
+ () => k.value.map((Y, ee) => ({
3437
+ ...Y,
3438
+ hidden: z(Y, ee)
3439
3439
  }))
3440
3440
  ), R = Ht();
3441
3441
  function re() {
@@ -3447,25 +3447,25 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3447
3447
  });
3448
3448
  }), Pe([$], () => {
3449
3449
  tt(() => re());
3450
- }), (X, ee) => {
3450
+ }), (Y, ee) => {
3451
3451
  var ue, he, Se, de, ye, Ne;
3452
3452
  const ae = ge("FmBarChart");
3453
- return Y(), be(et, null, [
3453
+ return X(), be(et, null, [
3454
3454
  J("div", Zl, [
3455
- yt(X.$slots, "menu"),
3455
+ yt(Y.$slots, "menu"),
3456
3456
  J("div", {
3457
3457
  class: qe(["chart-layout", {
3458
- "chart-layout--side": _.value && (l(A).display ?? !1) && F.value
3458
+ "chart-layout--side": _.value && (l(V).display ?? !1) && F.value
3459
3459
  }])
3460
3460
  }, [
3461
- _.value && (l(A).display ?? !1) && E.value ? (Y(), we(rt, {
3461
+ _.value && (l(V).display ?? !1) && E.value ? (X(), we(rt, {
3462
3462
  key: 0,
3463
3463
  "chart-ref": a.value,
3464
- enabled: l(A).display ?? !1,
3464
+ enabled: l(V).display ?? !1,
3465
3465
  position: c.value,
3466
- "max-width": l(A).maxWidth,
3467
- "text-color": (ue = l(A).labels) == null ? void 0 : ue.color,
3468
- "font-size": (Se = (he = l(A).labels) == null ? void 0 : he.font) == null ? void 0 : Se.size,
3466
+ "max-width": l(V).maxWidth,
3467
+ "text-color": (ue = l(V).labels) == null ? void 0 : ue.color,
3468
+ "font-size": (Se = (he = l(V).labels) == null ? void 0 : he.font) == null ? void 0 : Se.size,
3469
3469
  "legend-update-key": $.value,
3470
3470
  "chart-color-binding": t.value.chartColorBinding,
3471
3471
  "chart-colors": t.value.chartColors,
@@ -3484,7 +3484,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3484
3484
  "x-cfg": G.value,
3485
3485
  "y-cfg": le.value,
3486
3486
  transpose: l(B),
3487
- stacked: V.value,
3487
+ stacked: A.value,
3488
3488
  legend: {
3489
3489
  display: !1
3490
3490
  },
@@ -3493,18 +3493,18 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3493
3493
  datalabels: l(b),
3494
3494
  "maintain-aspect-ratio": !1,
3495
3495
  style: Ze({
3496
- "--chart-width": _.value && (l(A).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(g) !== void 0 ? l(g) + "px" : "100%",
3497
- "--chart-height": _.value && (l(A).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
3496
+ "--chart-width": _.value && (l(V).display ?? !1) && F.value ? "calc(100% - var(--legend-panel-width, 0px))" : l(g) !== void 0 ? l(g) + "px" : "100%",
3497
+ "--chart-height": _.value && (l(V).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
3498
3498
  })
3499
3499
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
3500
- _.value && (l(A).display ?? !1) && !E.value ? (Y(), we(rt, {
3500
+ _.value && (l(V).display ?? !1) && !E.value ? (X(), we(rt, {
3501
3501
  key: 1,
3502
3502
  "chart-ref": a.value,
3503
- enabled: l(A).display ?? !1,
3503
+ enabled: l(V).display ?? !1,
3504
3504
  position: c.value,
3505
- "max-width": l(A).maxWidth,
3506
- "text-color": (de = l(A).labels) == null ? void 0 : de.color,
3507
- "font-size": (Ne = (ye = l(A).labels) == null ? void 0 : ye.font) == null ? void 0 : Ne.size,
3505
+ "max-width": l(V).maxWidth,
3506
+ "text-color": (de = l(V).labels) == null ? void 0 : de.color,
3507
+ "font-size": (Ne = (ye = l(V).labels) == null ? void 0 : ye.font) == null ? void 0 : Ne.size,
3508
3508
  "legend-update-key": $.value,
3509
3509
  "chart-color-binding": t.value.chartColorBinding,
3510
3510
  "chart-colors": t.value.chartColors,
@@ -3570,11 +3570,11 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3570
3570
  ), b = v(() => I.value ? ["", H.value[0], ""] : H.value), f = v(() => {
3571
3571
  var P;
3572
3572
  return ((P = t.value.data) == null ? void 0 : P.datasets) ?? [];
3573
- }), { datalabels: M, xCfg: B, yCfg: A, isTransposed: g, legend: m, chartWidth: L, chartHeight: x } = Et(
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
- ), V = Qt("line"), _ = Ta("report-line-style-plugin-stack-line"), c = v(() => {
3577
+ ), A = Qt("line"), _ = Ta("report-line-style-plugin-stack-line"), c = v(() => {
3578
3578
  const P = m.value.position;
3579
3579
  return !P || P === "top" || P === "bottom" || P === "left" || P === "right";
3580
3580
  }), F = v(() => m.value.position ?? "top"), E = v(
@@ -3586,7 +3586,7 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3586
3586
  var ye;
3587
3587
  let R = P.values;
3588
3588
  I.value && (R = [NaN, R[0], NaN]);
3589
- const re = R.map((Ne) => Ne === null ? NaN : Number(Ne)), X = nt({
3589
+ const re = R.map((Ne) => Ne === null ? NaN : Number(Ne)), Y = nt({
3590
3590
  datasetIndex: $,
3591
3591
  isCompare: P.isCompare,
3592
3592
  metricCount: t.value.metricCount,
@@ -3613,7 +3613,7 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3613
3613
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
3614
3614
  customColors: t.value.chartColors
3615
3615
  }) : Ct({
3616
- index: X,
3616
+ index: Y,
3617
3617
  isCompare: P.isCompare,
3618
3618
  customColors: t.value.chartColors
3619
3619
  });
@@ -3647,9 +3647,9 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3647
3647
  }), Pe([k], () => {
3648
3648
  tt(() => z());
3649
3649
  }), (P, $) => {
3650
- var re, X, ee, ae, ue, he;
3650
+ var re, Y, ee, ae, ue, he;
3651
3651
  const R = ge("FmLineChart");
3652
- return Y(), be(et, null, [
3652
+ return X(), be(et, null, [
3653
3653
  J("div", tr, [
3654
3654
  yt(P.$slots, "menu"),
3655
3655
  J("div", {
@@ -3657,14 +3657,14 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3657
3657
  "chart-layout--side": c.value && (l(m).display ?? !1) && E.value
3658
3658
  }])
3659
3659
  }, [
3660
- c.value && (l(m).display ?? !1) && G.value ? (Y(), we(rt, {
3660
+ c.value && (l(m).display ?? !1) && G.value ? (X(), we(rt, {
3661
3661
  key: 0,
3662
3662
  "chart-ref": a.value,
3663
3663
  enabled: l(m).display ?? !1,
3664
3664
  position: F.value,
3665
3665
  "max-width": l(m).maxWidth,
3666
3666
  "text-color": (re = l(m).labels) == null ? void 0 : re.color,
3667
- "font-size": (ee = (X = l(m).labels) == null ? void 0 : X.font) == null ? void 0 : ee.size,
3667
+ "font-size": (ee = (Y = l(m).labels) == null ? void 0 : Y.font) == null ? void 0 : ee.size,
3668
3668
  "legend-update-key": k.value,
3669
3669
  "chart-color-binding": t.value.chartColorBinding,
3670
3670
  "chart-colors": t.value.chartColors,
@@ -3681,13 +3681,13 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3681
3681
  datasets: k.value,
3682
3682
  "x-axis": { categories: b.value },
3683
3683
  "x-cfg": l(B),
3684
- "y-cfg": l(A),
3684
+ "y-cfg": l(V),
3685
3685
  transpose: l(g),
3686
3686
  legend: {
3687
3687
  display: !1
3688
3688
  },
3689
3689
  tooltip: w.value,
3690
- plugins: [l(V), l(_)],
3690
+ plugins: [l(A), l(_)],
3691
3691
  stacked: !0,
3692
3692
  datalabels: l(M),
3693
3693
  "maintain-aspect-ratio": !1,
@@ -3696,7 +3696,7 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3696
3696
  "--chart-height": c.value && (l(m).display ?? !1) && !E.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(x) !== void 0 ? l(x) + "px" : "100%"
3697
3697
  })
3698
3698
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "plugins", "datalabels", "style"]),
3699
- c.value && (l(m).display ?? !1) && !G.value ? (Y(), we(rt, {
3699
+ c.value && (l(m).display ?? !1) && !G.value ? (X(), we(rt, {
3700
3700
  key: 1,
3701
3701
  "chart-ref": a.value,
3702
3702
  enabled: l(m).display ?? !1,
@@ -3775,9 +3775,9 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3775
3775
  return (($ = t.value.data) == null ? void 0 : $.xAxis) ?? [];
3776
3776
  }), b = v(() => I.value.length === 1 && H.value.length > 1 && H.value.every(($) => $.values.length === 1 && $.isCompare !== !0)), f = v(
3777
3777
  () => I.value.length === 1 && H.value.length > 0 && H.value.every(($) => $.values.length === 1)
3778
- ), M = v(() => b.value ? H.value.map(($) => $.name) : f.value ? ["", I.value[0], ""] : I.value), { datalabels: B, xCfg: A, yCfg: g, isTransposed: m, legend: L, chartWidth: x, chartHeight: w } = Et(
3778
+ ), M = v(() => b.value ? H.value.map(($) => $.name) : f.value ? ["", I.value[0], ""] : I.value), { datalabels: B, xCfg: V, yCfg: g, isTransposed: m, legend: L, chartWidth: x, chartHeight: w } = Et(
3779
3779
  t.value
3780
- ), V = v(
3780
+ ), A = v(
3781
3781
  () => Ot(t.value.isTransposed === !0, p.value)
3782
3782
  ), _ = Qt("line"), c = Ta("report-line-style-plugin-line"), F = v(() => {
3783
3783
  const $ = L.value.position;
@@ -3794,7 +3794,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3794
3794
  isCompare: $.isCompare,
3795
3795
  metricCount: t.value.metricCount,
3796
3796
  mode: t.value.chartColorBinding
3797
- }), X = nt({
3797
+ }), Y = nt({
3798
3798
  datasetIndex: R,
3799
3799
  isCompare: $.isCompare,
3800
3800
  metricCount: t.value.metricCount,
@@ -3808,7 +3808,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3808
3808
  metricCount: t.value.metricCount
3809
3809
  }), he = ae ? Wt({
3810
3810
  breakdownIndex: ue,
3811
- metricIndex: X,
3811
+ metricIndex: Y,
3812
3812
  metricCount: t.value.metricCount,
3813
3813
  isCompare: $.isCompare,
3814
3814
  breakdownColors: t.value.chartBreakdownColors,
@@ -3824,12 +3824,12 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3824
3824
  isCompare: $.isCompare,
3825
3825
  metricCount: t.value.metricCount,
3826
3826
  mode: t.value.lineStyleBinding
3827
- }), Ye = (i = t.value.lineStyles) == null ? void 0 : i[Ne];
3827
+ }), Xe = (i = t.value.lineStyles) == null ? void 0 : i[Ne];
3828
3828
  return {
3829
3829
  label: $.name,
3830
3830
  data: de,
3831
3831
  dash: !!$.isCompare,
3832
- lineStyle: Ye,
3832
+ lineStyle: Xe,
3833
3833
  fill: !1,
3834
3834
  color: he,
3835
3835
  pointRadius: ye ? 4 : void 0,
@@ -3855,9 +3855,9 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3855
3855
  }), Pe([U], () => {
3856
3856
  tt(() => P());
3857
3857
  }), ($, R) => {
3858
- var X, ee, ae, ue, he, Se;
3858
+ var Y, ee, ae, ue, he, Se;
3859
3859
  const re = ge("FmLineChart");
3860
- return Y(), be(et, null, [
3860
+ return X(), be(et, null, [
3861
3861
  J("div", rr, [
3862
3862
  yt($.$slots, "menu"),
3863
3863
  J("div", {
@@ -3865,13 +3865,13 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3865
3865
  "chart-layout--side": F.value && (l(L).display ?? !1) && G.value
3866
3866
  }])
3867
3867
  }, [
3868
- F.value && (l(L).display ?? !1) && le.value ? (Y(), we(rt, {
3868
+ F.value && (l(L).display ?? !1) && le.value ? (X(), we(rt, {
3869
3869
  key: 0,
3870
3870
  "chart-ref": a.value,
3871
3871
  enabled: l(L).display ?? !1,
3872
3872
  position: E.value,
3873
3873
  "max-width": l(L).maxWidth,
3874
- "text-color": (X = l(L).labels) == null ? void 0 : X.color,
3874
+ "text-color": (Y = l(L).labels) == null ? void 0 : Y.color,
3875
3875
  "font-size": (ae = (ee = l(L).labels) == null ? void 0 : ee.font) == null ? void 0 : ae.size,
3876
3876
  "legend-update-key": U.value,
3877
3877
  "chart-color-binding": t.value.chartColorBinding,
@@ -3888,13 +3888,13 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3888
3888
  class: "line-chart",
3889
3889
  datasets: U.value,
3890
3890
  "x-axis": { categories: M.value },
3891
- "x-cfg": l(A),
3891
+ "x-cfg": l(V),
3892
3892
  "y-cfg": l(g),
3893
3893
  transpose: l(m),
3894
3894
  legend: {
3895
3895
  display: !1
3896
3896
  },
3897
- tooltip: V.value,
3897
+ tooltip: A.value,
3898
3898
  datalabels: l(B),
3899
3899
  plugins: [l(_), l(c)],
3900
3900
  "maintain-aspect-ratio": !1,
@@ -3903,7 +3903,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3903
3903
  "--chart-height": F.value && (l(L).display ?? !1) && !G.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(w) !== void 0 ? l(w) + "px" : "100%"
3904
3904
  })
3905
3905
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
3906
- F.value && (l(L).display ?? !1) && !le.value ? (Y(), we(rt, {
3906
+ F.value && (l(L).display ?? !1) && !le.value ? (X(), we(rt, {
3907
3907
  key: 1,
3908
3908
  "chart-ref": a.value,
3909
3909
  enabled: l(L).display ?? !1,
@@ -3943,7 +3943,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3943
3943
  }),
3944
3944
  emits: ["update:modelValue"],
3945
3945
  setup(e) {
3946
- const { t: n } = wt(), { FmForm: t } = io, a = e, r = D(), s = ct(e, "modelValue"), u = D(!0), p = D(!1), d = An(), { selectedLocationIds: C, dateRange: N, timeRange: H } = vt(jt()), I = D(vn.PORTRAIT);
3946
+ const { t: n } = wt(), { FmForm: t } = io, a = e, r = D(), s = ct(e, "modelValue"), u = D(!0), p = D(!1), d = Vn(), { selectedLocationIds: C, dateRange: N, timeRange: H } = vt(jt()), I = D(vn.PORTRAIT);
3947
3947
  function b() {
3948
3948
  var M;
3949
3949
  (M = r.value) == null || M.validateInputs();
@@ -3967,8 +3967,8 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3967
3967
  }
3968
3968
  }
3969
3969
  return (M, B) => {
3970
- const A = ge("FmRadio"), g = ge("FmRadioGroup"), m = ge("FmButton"), L = ge("FmDialog");
3971
- return Y(), we(L, {
3970
+ const V = ge("FmRadio"), g = ge("FmRadioGroup"), m = ge("FmButton"), L = ge("FmDialog");
3971
+ return X(), we(L, {
3972
3972
  modelValue: s.value,
3973
3973
  "onUpdate:modelValue": B[2] || (B[2] = (x) => s.value = x),
3974
3974
  overlay: !0,
@@ -3990,11 +3990,11 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3990
3990
  "onUpdate:modelValue": B[0] || (B[0] = (x) => I.value = x)
3991
3991
  }, {
3992
3992
  default: ze(() => [
3993
- me(A, {
3993
+ me(V, {
3994
3994
  value: l(vn).PORTRAIT,
3995
3995
  label: l(n)("report.common.portrait")
3996
3996
  }, null, 8, ["value", "label"]),
3997
- me(A, {
3997
+ me(V, {
3998
3998
  value: l(vn).LANDSCAPE,
3999
3999
  label: l(n)("report.common.landscape")
4000
4000
  }, null, 8, ["value", "label"])
@@ -4041,13 +4041,13 @@ function dr(e) {
4041
4041
  (F.overflowX === "auto" || F.overflowX === "scroll") && w.push(c);
4042
4042
  }
4043
4043
  });
4044
- let V = (_ = t.value) == null ? void 0 : _.parentElement;
4045
- for (; V; ) {
4046
- if (V.scrollWidth > V.clientWidth) {
4047
- const c = window.getComputedStyle(V);
4048
- (c.overflowX === "auto" || c.overflowX === "scroll") && w.push(V);
4044
+ let A = (_ = t.value) == null ? void 0 : _.parentElement;
4045
+ for (; A; ) {
4046
+ if (A.scrollWidth > A.clientWidth) {
4047
+ const c = window.getComputedStyle(A);
4048
+ (c.overflowX === "auto" || c.overflowX === "scroll") && w.push(A);
4049
4049
  }
4050
- V = V.parentElement;
4050
+ A = A.parentElement;
4051
4051
  }
4052
4052
  return w;
4053
4053
  }
@@ -4071,11 +4071,11 @@ function dr(e) {
4071
4071
  border-collapse: collapse;
4072
4072
  pointer-events: auto;
4073
4073
  `;
4074
- const V = p.cloneNode(!0);
4075
- V.style.cssText = "pointer-events: auto;", f(p, V), w.appendChild(V), s.appendChild(w), document.body.appendChild(s), A(), g(), m(), B();
4074
+ const A = p.cloneNode(!0);
4075
+ A.style.cssText = "pointer-events: auto;", f(p, A), w.appendChild(A), s.appendChild(w), document.body.appendChild(s), V(), g(), m(), B();
4076
4076
  }
4077
- function f(w, V) {
4078
- const _ = w.querySelectorAll("th, td"), c = V.querySelectorAll("th, td");
4077
+ function f(w, A) {
4078
+ const _ = w.querySelectorAll("th, td"), c = A.querySelectorAll("th, td");
4079
4079
  _.forEach((F, E) => {
4080
4080
  const G = c[E];
4081
4081
  if (!G) return;
@@ -4105,11 +4105,11 @@ function dr(e) {
4105
4105
  });
4106
4106
  }
4107
4107
  function M() {
4108
- const w = n.value.xs || n.value.sm, V = document.querySelector('[data-editor-header="true"]'), _ = document.querySelector('[data-menu-tab="true"]');
4109
- if (w && !V)
4108
+ const w = n.value.xs || n.value.sm, A = document.querySelector('[data-editor-header="true"]'), _ = document.querySelector('[data-menu-tab="true"]');
4109
+ if (w && !A)
4110
4110
  return 1;
4111
- if (V)
4112
- return V.getBoundingClientRect().bottom;
4111
+ if (A)
4112
+ return A.getBoundingClientRect().bottom;
4113
4113
  if (_) {
4114
4114
  let c = _;
4115
4115
  for (; c; ) {
@@ -4123,8 +4123,8 @@ function dr(e) {
4123
4123
  }
4124
4124
  function B() {
4125
4125
  if (!s || !u || !p || !t.value) return;
4126
- const w = t.value.getBoundingClientRect(), V = u.getBoundingClientRect(), _ = p.getBoundingClientRect(), c = M();
4127
- if (!(V.top <= c && V.bottom >= c + _.height)) {
4126
+ const w = t.value.getBoundingClientRect(), A = u.getBoundingClientRect(), _ = p.getBoundingClientRect(), c = M();
4127
+ if (!(A.top <= c && A.bottom >= c + _.height)) {
4128
4128
  s.style.visibility = "hidden";
4129
4129
  return;
4130
4130
  }
@@ -4138,12 +4138,12 @@ function dr(e) {
4138
4138
  const z = s.querySelector("table");
4139
4139
  z && (z.style.width = `${u.offsetWidth}px`, z.style.marginLeft = `${_.left - ne}px`);
4140
4140
  }
4141
- function A() {
4142
- var V;
4141
+ function V() {
4142
+ var A;
4143
4143
  C = () => requestAnimationFrame(B), window.addEventListener("scroll", C, { passive: !0 }), I().forEach((_) => {
4144
4144
  C && _.addEventListener("scroll", C, { passive: !0 });
4145
4145
  });
4146
- let w = (V = t.value) == null ? void 0 : V.parentElement;
4146
+ let w = (A = t.value) == null ? void 0 : A.parentElement;
4147
4147
  for (; w; )
4148
4148
  w !== document.body && (w.scrollHeight > w.clientHeight || w.scrollWidth > w.clientWidth) && w.addEventListener("scroll", C, { passive: !0 }), w = w.parentElement;
4149
4149
  }
@@ -4152,22 +4152,22 @@ function dr(e) {
4152
4152
  if (p && s) {
4153
4153
  const w = s.querySelector("thead");
4154
4154
  w && f(p, w);
4155
- const V = s.querySelector("table");
4156
- V && u && (V.style.width = `${u.offsetWidth}px`);
4155
+ const A = s.querySelector("table");
4156
+ A && u && (A.style.width = `${u.offsetWidth}px`);
4157
4157
  }
4158
4158
  B();
4159
4159
  }), t.value && d.observe(t.value), u && d.observe(u);
4160
4160
  }
4161
4161
  function m() {
4162
4162
  if (!p) return;
4163
- const w = Cn(() => b(), 100), V = () => {
4163
+ const w = Cn(() => b(), 100), A = () => {
4164
4164
  if (p && s) {
4165
4165
  const _ = s.querySelector("thead");
4166
4166
  _ && f(p, _), B();
4167
4167
  }
4168
4168
  };
4169
4169
  N = new MutationObserver((_) => {
4170
- _.some((F) => F.type === "childList" ? F.addedNodes.length > 0 || F.removedNodes.length > 0 : !1) ? w() : V();
4170
+ _.some((F) => F.type === "childList" ? F.addedNodes.length > 0 || F.removedNodes.length > 0 : !1) ? w() : A();
4171
4171
  }), N.observe(p, {
4172
4172
  childList: !0,
4173
4173
  subtree: !0,
@@ -4181,9 +4181,9 @@ function dr(e) {
4181
4181
  window.removeEventListener("scroll", C), I().forEach((_) => {
4182
4182
  C && _.removeEventListener("scroll", C);
4183
4183
  });
4184
- let V = (w = t.value) == null ? void 0 : w.parentElement;
4185
- for (; V; )
4186
- V.removeEventListener("scroll", C), V = V.parentElement;
4184
+ let A = (w = t.value) == null ? void 0 : w.parentElement;
4185
+ for (; A; )
4186
+ A.removeEventListener("scroll", C), A = A.parentElement;
4187
4187
  C = null;
4188
4188
  }
4189
4189
  d && (d.disconnect(), d = null), N && (N.disconnect(), N = null), u = null, p = null;
@@ -4250,9 +4250,9 @@ const fr = {
4250
4250
  return T >= 0 ? T : 0;
4251
4251
  } else
4252
4252
  return -1;
4253
- }), B = v(() => M.value !== 0), A = v(
4253
+ }), B = v(() => M.value !== 0), V = v(
4254
4254
  () => M.value != ut.value.length - 1
4255
- ), g = D(a.showTitle ?? !0), m = D(a.titleFontSize ?? 14), L = D(a.titleBold ?? !1), x = D(a.titleItalic ?? !1), w = D(a.titleUnderline ?? !1), V = D(a.chartWidth ?? void 0), _ = D(a.chartHeight ?? void 0), c = D(
4255
+ ), g = D(a.showTitle ?? !0), m = D(a.titleFontSize ?? 14), L = D(a.titleBold ?? !1), x = D(a.titleItalic ?? !1), w = D(a.titleUnderline ?? !1), A = D(a.chartWidth ?? void 0), _ = D(a.chartHeight ?? void 0), c = D(
4256
4256
  Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
4257
4257
  ), F = D(
4258
4258
  Array.isArray(a.chartColorLayers) ? [...a.chartColorLayers] : void 0
@@ -4260,15 +4260,15 @@ 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), Ae = 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), z = D(a.labelRotation ?? 0), P = D(a.labelOffset ?? 0), $ = D(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = D(a.showX ?? !0), Y = 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), Xe = 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), Ye = 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
- ), Ve = v(
4265
+ ), Ae = v(
4266
4266
  () => (Ee == null ? void 0 : Ee.value) > Oe("xs")[1] && (Ee == null ? void 0 : Ee.value) <= Oe("sm")[1]
4267
4267
  ), an = v(
4268
4268
  () => (Ee == null ? void 0 : Ee.value) > Oe("sm")[1] && (Ee == null ? void 0 : Ee.value) <= Oe("md")[1]
4269
4269
  ), mn = v(() => (Ee == null ? void 0 : Ee.value) > Oe("md")[1]), hn = v(() => {
4270
4270
  const T = t.value.size.width;
4271
- return mn.value || an.value ? ar(T) : Ve.value ? or(T) : lr(T);
4271
+ return mn.value || an.value ? ar(T) : Ae.value ? or(T) : lr(T);
4272
4272
  }), Dt = v(
4273
4273
  () => uo.find((T) => T.type === t.value.widget.type)
4274
4274
  ), o = Cn(() => {
@@ -4343,7 +4343,7 @@ const fr = {
4343
4343
  titleItalic: x.value,
4344
4344
  titleUnderline: w.value,
4345
4345
  chartHeight: _.value,
4346
- chartWidth: V.value,
4346
+ chartWidth: A.value,
4347
4347
  chartColors: c.value,
4348
4348
  chartColorLayers: F.value,
4349
4349
  chartBreakdownColors: E.value,
@@ -4359,7 +4359,7 @@ const fr = {
4359
4359
  labelOffset: P.value,
4360
4360
  labelFontSize: $.value,
4361
4361
  showX: re.value,
4362
- xPosition: X.value,
4362
+ xPosition: Y.value,
4363
4363
  showXGrid: ee.value,
4364
4364
  showXTick: ae.value,
4365
4365
  xTickFontSize: ue.value,
@@ -4368,7 +4368,7 @@ const fr = {
4368
4368
  xTitleFontSize: de.value,
4369
4369
  showY: ye.value,
4370
4370
  yPosition: Ne.value,
4371
- showYGrid: Ye.value,
4371
+ showYGrid: Xe.value,
4372
4372
  showYTick: i.value,
4373
4373
  yTitle: Q.value,
4374
4374
  showYTitle: Z.value,
@@ -4376,7 +4376,7 @@ const fr = {
4376
4376
  yTickFontSize: W.value,
4377
4377
  isTransposed: se.value.config.isTransposed,
4378
4378
  showLegend: Fe.value,
4379
- legendPosition: Xe.value,
4379
+ legendPosition: Ye.value,
4380
4380
  usePointStyle: Re.value,
4381
4381
  legendFontSize: je.value,
4382
4382
  legendColor: Be.value,
@@ -4388,7 +4388,7 @@ const fr = {
4388
4388
  function dt() {
4389
4389
  return {
4390
4390
  data: h.value,
4391
- filterText: Ae.value,
4391
+ filterText: Ve.value,
4392
4392
  rollupPosition: se.value.config.rollupPosition,
4393
4393
  grandTotalLabel: se.value.config.grandTotalLabel,
4394
4394
  rowHeight: Te.value,
@@ -4440,7 +4440,7 @@ const fr = {
4440
4440
  Pe(
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, V.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, z.value = T.labelRotation ?? 0, P.value = T.labelOffset ?? 0, $.value = T.labelFontSize ?? 12, re.value = T.showX ?? !0, Y.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, Xe.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, Ye.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
4446
  ), Pe([() => I.value], () => {
@@ -4470,7 +4470,7 @@ const fr = {
4470
4470
  }), ca(() => {
4471
4471
  De.value.sm || De.value.md || De.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", o)) : removeEventListener("resize", o);
4472
4472
  });
4473
- const Kt = An();
4473
+ const Kt = Vn();
4474
4474
  let on;
4475
4475
  async function Rn() {
4476
4476
  if (!p.isStyleEditing) {
@@ -4510,7 +4510,7 @@ const fr = {
4510
4510
  T >= 0 && T < ut.value.length && (f.value = ut.value[T].value);
4511
4511
  }
4512
4512
  const Hn = D(Ft.EXCEL), Wn = D(), Fa = Object.values(Ft).map((T) => ({
4513
- label: Xa(T),
4513
+ label: Ya(T),
4514
4514
  value: T,
4515
4515
  onClick: async () => {
4516
4516
  T === Ft.EXCEL || T === Ft.PDFFULLSIZE || T === Ft.PDFRECEIPT ? await da({
@@ -4522,13 +4522,13 @@ const fr = {
4522
4522
  locationIds: S.value
4523
4523
  }) : T === Ft.PDF && (Hn.value = T, Wn.value = p.index, He.value = !0);
4524
4524
  }
4525
- })), Ba = se.value.type === ie.Spacer ? "flat" : "outlined", Aa = se.value.type === ie.Spacer ? "p-0" : "p-16";
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"), Va = ge("FmSelect"), $a = ge("FmMenuItem"), Na = ge("FmMenu"), za = ge("FmForm"), Pa = ge("FmCircularProgress"), Ra = ge("FmCard");
4528
- return Y(), we(Ra, {
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");
4528
+ return X(), we(Ra, {
4529
4529
  ref_key: "tileCard",
4530
4530
  ref: d,
4531
- class: qe(`${hn.value} ${l(Aa)}`),
4531
+ class: qe(`${hn.value} ${l(Va)}`),
4532
4532
  variant: l(Ba)
4533
4533
  }, {
4534
4534
  default: ze(() => [
@@ -4538,11 +4538,11 @@ const fr = {
4538
4538
  "report-type": Hn.value,
4539
4539
  index: Wn.value
4540
4540
  }, null, 8, ["modelValue", "report-type", "index"]),
4541
- !n.value && !l(j) ? (Y(), be("div", {
4541
+ !n.value && !l(j) ? (X(), be("div", {
4542
4542
  key: 0,
4543
4543
  style: Ze({ height: We.value })
4544
4544
  }, [
4545
- (Y(), we(ua(y.value), {
4545
+ (X(), we(ua(y.value), {
4546
4546
  key: b.value,
4547
4547
  modelValue: Qe.value,
4548
4548
  "onUpdate:modelValue": Ie[4] || (Ie[4] = (Mt) => Qe.value = Mt),
@@ -4562,7 +4562,7 @@ const fr = {
4562
4562
  "z-index": 99
4563
4563
  }, {
4564
4564
  default: ze(() => [
4565
- g.value !== !1 ? (Y(), be("p", {
4565
+ g.value !== !1 ? (X(), be("p", {
4566
4566
  key: 0,
4567
4567
  style: Ze({
4568
4568
  fontSize: m.value + "px",
@@ -4578,12 +4578,12 @@ const fr = {
4578
4578
  ]),
4579
4579
  _: 1
4580
4580
  }, 8, ["content", "disabled"]),
4581
- (Mt = Dt.value) != null && Mt.showSearchBar ? (Y(), we(xt, {
4581
+ (Mt = Dt.value) != null && Mt.showSearchBar ? (X(), we(xt, {
4582
4582
  key: 0,
4583
- modelValue: Ae.value,
4584
- "onUpdate:modelValue": Ie[1] || (Ie[1] = (mt) => Ae.value = mt),
4583
+ modelValue: Ve.value,
4584
+ "onUpdate:modelValue": Ie[1] || (Ie[1] = (mt) => Ve.value = mt),
4585
4585
  class: "grow"
4586
- }, null, 8, ["modelValue"])) : (Y(), be("div", fr)),
4586
+ }, null, 8, ["modelValue"])) : (X(), be("div", fr)),
4587
4587
  Ua(me(pn, {
4588
4588
  modelValue: ne.value,
4589
4589
  "onUpdate:modelValue": Ie[2] || (Ie[2] = (mt) => ne.value = mt),
@@ -4592,7 +4592,7 @@ const fr = {
4592
4592
  }, null, 8, ["modelValue"]), [
4593
4593
  [Ka, (On = Dt.value) == null ? void 0 : On.showLabel]
4594
4594
  ]),
4595
- (En = Dt.value) != null && En.showDrillDimension && ut.value.length > 0 ? (Y(), be("div", mr, [
4595
+ (En = Dt.value) != null && En.showDrillDimension && ut.value.length > 0 ? (X(), be("div", mr, [
4596
4596
  me(It, {
4597
4597
  icon: "arrow_upward",
4598
4598
  variant: "tertiary",
@@ -4602,18 +4602,18 @@ const fr = {
4602
4602
  me(It, {
4603
4603
  icon: "arrow_downward",
4604
4604
  variant: "tertiary",
4605
- disabled: !A.value,
4605
+ disabled: !V.value,
4606
4606
  onClick: Ma
4607
4607
  }, null, 8, ["disabled"])
4608
4608
  ])) : Me("", !0),
4609
- (Un = Dt.value) != null && Un.showRollup && ft.value.length > 0 ? (Y(), we(Va, {
4609
+ (Un = Dt.value) != null && Un.showRollup && ft.value.length > 0 ? (X(), we(Aa, {
4610
4610
  key: `rollup-${l(u)}`,
4611
4611
  modelValue: I.value,
4612
4612
  "onUpdate:modelValue": Ie[3] || (Ie[3] = (mt) => I.value = mt),
4613
4613
  class: "w-[150px]",
4614
4614
  items: ft.value
4615
4615
  }, null, 8, ["modelValue", "items"])) : Me("", !0),
4616
- p.hideExport ? Me("", !0) : (Y(), we(Na, {
4616
+ p.hideExport ? Me("", !0) : (X(), we(Na, {
4617
4617
  key: 4,
4618
4618
  shift: !0
4619
4619
  }, {
@@ -4624,7 +4624,7 @@ const fr = {
4624
4624
  })
4625
4625
  ]),
4626
4626
  default: ze(() => [
4627
- (Y(!0), be(et, null, Lt(l(Fa), (mt) => (Y(), we($a, {
4627
+ (X(!0), be(et, null, Lt(l(Fa), (mt) => (X(), we($a, {
4628
4628
  key: mt.value,
4629
4629
  label: mt.label,
4630
4630
  onClick: mt.onClick
@@ -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)) : (X(), we(Pa, { key: 1 }))
4643
4643
  ]),
4644
4644
  _: 1
4645
4645
  }, 8, ["class", "variant"]);
@@ -4732,7 +4732,7 @@ function qr(e) {
4732
4732
  return;
4733
4733
  }
4734
4734
  }
4735
- function Yr(e) {
4735
+ function Xr(e) {
4736
4736
  switch (e) {
4737
4737
  case Je.HourOfDay:
4738
4738
  return 23;
@@ -4886,19 +4886,19 @@ const vr = ma(pr, () => {
4886
4886
  }), gr = { class: "flex flex-row flex-wrap gap-2" }, yr = { class: "inline-flex max-w-[460px]" }, br = {
4887
4887
  key: 0,
4888
4888
  class: "flex justify-center my-2"
4889
- }, Cr = { class: "px-2 pb-8" }, wr = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, xr = { class: "px-2 pb-8" }, Sr = { class: "flex items-start w-full" }, _r = ["onClick"], kr = { class: "fm-typo-en-body-md-400" }, Tr = { key: 0 }, Lr = { class: "px-12 py-3" }, Dr = { class: "flex items-center justify-between" }, Ir = { class: "text-xs max-w-[200px]" }, Mr = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Xt = "(EMPTY)", Xr = /* @__PURE__ */ at({
4889
+ }, Cr = { class: "px-2 pb-8" }, wr = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, xr = { class: "px-2 pb-8" }, Sr = { class: "flex items-start w-full" }, _r = ["onClick"], kr = { class: "fm-typo-en-body-md-400" }, Tr = { key: 0 }, Lr = { class: "px-12 py-3" }, Dr = { class: "flex items-center justify-between" }, Ir = { class: "text-xs max-w-[200px]" }, Mr = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Yt = "(EMPTY)", Yr = /* @__PURE__ */ at({
4890
4890
  __name: "FilterSelector",
4891
4891
  setup(e) {
4892
4892
  const { t: n, locale: t } = wt(), { currentReport: a, editingTile: r } = vt(Ga());
4893
- let { globalFilters: s, isGlobalFiltersLoading: u, timeRange: p, dateRange: d, selectedLocationIds: C, timezone: N } = vt(jt()), { schemas: H } = vt(ja()), { showMore: I, getGlobalFilter: b, setGlobalFilter: f, setIncludeUnavailable: M, getKey: B, isMenuOpen: A } = vr();
4893
+ let { globalFilters: s, isGlobalFiltersLoading: u, timeRange: p, dateRange: d, selectedLocationIds: C, timezone: N } = vt(jt()), { schemas: H } = vt(ja()), { showMore: I, getGlobalFilter: b, setGlobalFilter: f, setIncludeUnavailable: M, getKey: B, isMenuOpen: V } = vr();
4894
4894
  const g = v(() => n("report.input.unknown"));
4895
4895
  let m = null;
4896
4896
  const L = D(!1), x = v(() => {
4897
4897
  var i;
4898
4898
  return ((i = a.value) == null ? void 0 : i.id) ?? "";
4899
4899
  }), w = D([]);
4900
- function V(i) {
4901
- return i.filter((W) => W !== Xt);
4900
+ function A(i) {
4901
+ return i.filter((W) => W !== Yt);
4902
4902
  }
4903
4903
  function _(i) {
4904
4904
  const W = b(i.filter, x.value).selectedValues;
@@ -4967,9 +4967,9 @@ const vr = ma(pr, () => {
4967
4967
  const fe = (Le = Be == null ? void 0 : Be.widget) == null ? void 0 : Le.config;
4968
4968
  if (!fe || (He = i.tileIds) != null && He.length && !i.tileIds.includes(Be.id)) return !1;
4969
4969
  const O = (fe.dimensions ?? []).some(
4970
- (Ae) => Ae.schemaName === Q && Ae.name === Z
4970
+ (Ve) => Ve.schemaName === Q && Ve.name === Z
4971
4971
  ), _e = (fe.joinDatasources ?? []).some(
4972
- (Ae) => (Ae.dimensions ?? []).some((De) => De.schemaName === Q && De.name === Z)
4972
+ (Ve) => (Ve.dimensions ?? []).some((De) => De.schemaName === Q && De.name === Z)
4973
4973
  ), Te = (fe.schemaNames ?? []).includes(Q);
4974
4974
  return O || _e || Te;
4975
4975
  });
@@ -4980,7 +4980,7 @@ const vr = ma(pr, () => {
4980
4980
  He ? [st.Like, st.NotLike].includes(Te.operator) ? He.values = Array.from(/* @__PURE__ */ new Set([...He.values ?? [], ...Te.values ?? []])) : O.set(Le, { ...Te }) : O.set(Le, { ...Te });
4981
4981
  };
4982
4982
  return Be.forEach(_e), fe.forEach(_e), Array.from(O.values());
4983
- }, Xe = (Be) => {
4983
+ }, Ye = (Be) => {
4984
4984
  var O;
4985
4985
  const fe = (O = Be.dimensions) == null ? void 0 : O.find(
4986
4986
  (_e) => _e.schemaName === Q && _e.name === Z
@@ -4995,10 +4995,10 @@ const vr = ma(pr, () => {
4995
4995
  };
4996
4996
  };
4997
4997
  return Ce.map((Be) => {
4998
- var Ae, De;
4999
- const fe = (Ae = Be == null ? void 0 : Be.widget) == null ? void 0 : Ae.config;
4998
+ var Ve, De;
4999
+ const fe = (Ve = Be == null ? void 0 : Be.widget) == null ? void 0 : Ve.config;
5000
5000
  if (!fe) return null;
5001
- const O = Xe(fe), _e = (fe.dimensions ?? []).some((Oe) => Oe.schemaName === Q) || (fe.schemaNames ?? []).includes(Q), Te = Fe(
5001
+ const O = Ye(fe), _e = (fe.dimensions ?? []).some((Oe) => Oe.schemaName === Q) || (fe.schemaNames ?? []).includes(Q), Te = Fe(
5002
5002
  fe.filters ?? [],
5003
5003
  (i.filters ?? []).filter((Oe) => {
5004
5004
  var We;
@@ -5060,7 +5060,7 @@ const vr = ma(pr, () => {
5060
5060
  });
5061
5061
  }
5062
5062
  function te(i) {
5063
- le(i) ? i.selectedValues = [Xt] : i.selectedValues = i.options.map((W) => W.value);
5063
+ le(i) ? i.selectedValues = [Yt] : i.selectedValues = i.options.map((W) => W.value);
5064
5064
  }
5065
5065
  const ce = v(
5066
5066
  () => w.value.map((i) => {
@@ -5082,7 +5082,7 @@ const vr = ma(pr, () => {
5082
5082
  return !((W = i.filter.tileIds) != null && W.length);
5083
5083
  }
5084
5084
  function z(i) {
5085
- return String(i ?? "").trim() === "" ? Xt : String(i);
5085
+ return String(i ?? "").trim() === "" ? Yt : String(i);
5086
5086
  }
5087
5087
  function P(i) {
5088
5088
  var W, Z;
@@ -5123,7 +5123,7 @@ const vr = ma(pr, () => {
5123
5123
  return ((Te = _e.cells) == null ? void 0 : Te[0]) ?? " ";
5124
5124
  }));
5125
5125
  }
5126
- const Fe = Array.from(new Set(Ce)), Xe = _(i), Re = i.keepSelection ? Array.from(/* @__PURE__ */ new Set([...Fe, ...Xe])) : Fe, je = new Set(Ce), Be = new Set(Fe);
5126
+ const Fe = Array.from(new Set(Ce)), Ye = _(i), Re = i.keepSelection ? Array.from(/* @__PURE__ */ new Set([...Fe, ...Ye])) : Fe, je = new Set(Ce), Be = new Set(Fe);
5127
5127
  i.options = Re.map((fe) => ({
5128
5128
  label: String(fe).trim() === "" ? g.value : String(fe),
5129
5129
  value: fe,
@@ -5171,14 +5171,14 @@ const vr = ma(pr, () => {
5171
5171
  var Q;
5172
5172
  if ((Q = i.selectedValues) == null ? void 0 : Q.includes(W)) {
5173
5173
  const Ce = (i.selectedValues || []).filter(
5174
- (Fe) => Fe !== W && Fe !== Xt
5174
+ (Fe) => Fe !== W && Fe !== Yt
5175
5175
  );
5176
- i.selectedValues = Ce.length > 0 ? Ce : [Xt];
5176
+ i.selectedValues = Ce.length > 0 ? Ce : [Yt];
5177
5177
  } else
5178
- i.selectedValues = [...V(i.selectedValues || []), W];
5178
+ i.selectedValues = [...A(i.selectedValues || []), W];
5179
5179
  f(i.filter, x.value, "selectedValues", i.selectedValues);
5180
5180
  }
5181
- function X(i, W) {
5181
+ function Y(i, W) {
5182
5182
  if (W === null)
5183
5183
  i.values = [];
5184
5184
  else {
@@ -5189,17 +5189,17 @@ const vr = ma(pr, () => {
5189
5189
  Z && (Z.keepSelection = W !== null, f(Z.filter, x.value, "keepSelection", Z.keepSelection));
5190
5190
  }
5191
5191
  function ee(i) {
5192
- const W = V(i.selectedValues || []);
5192
+ const W = A(i.selectedValues || []);
5193
5193
  return `${n("report.section.filter.selectAll")} (${W.length}/${i.options.length})`;
5194
5194
  }
5195
5195
  function ae(i) {
5196
5196
  return `${n("report.section.filter.search")}`;
5197
5197
  }
5198
5198
  function ue(i) {
5199
- var Xe, Re, je, Be, fe;
5199
+ var Ye, Re, je, Be, fe;
5200
5200
  const W = no(i.filter), Z = i.options.length > 0 ? "(0 selected)" : "";
5201
5201
  if (i.type === ht.Timestamp && !k(i.filter)) {
5202
- const O = ((Xe = i.filter.values) == null ? void 0 : Xe.length) === 2;
5202
+ const O = ((Ye = i.filter.values) == null ? void 0 : Ye.length) === 2;
5203
5203
  if (i.filter.option === Je.DateTime)
5204
5204
  return { preview: O ? `${W} is between ${lo({
5205
5205
  startDate: ((Re = i.filter.values) == null ? void 0 : Re[0]) || null,
@@ -5208,7 +5208,7 @@ const vr = ma(pr, () => {
5208
5208
  timezone: N.value
5209
5209
  })}` : W, suffix: "" };
5210
5210
  if (i.filter.option === Je.TimeOfDay) {
5211
- const _e = (Be = i.filter.values) != null && Be[0] ? Bt(i.filter.values[0]).tz(N.value) : null, Te = (fe = i.filter.values) != null && fe[1] ? Bt(i.filter.values[1]).tz(N.value) : null, Le = (Ae) => Ae && Ae.isValid() ? { hour: Ae.hour(), minute: Ae.minute() } : null;
5211
+ const _e = (Be = i.filter.values) != null && Be[0] ? Bt(i.filter.values[0]).tz(N.value) : null, Te = (fe = i.filter.values) != null && fe[1] ? Bt(i.filter.values[1]).tz(N.value) : null, Le = (Ve) => Ve && Ve.isValid() ? { hour: Ve.hour(), minute: Ve.minute() } : null;
5212
5212
  return { preview: O ? `${W} is between ${ro({
5213
5213
  startTime: Le(_e),
5214
5214
  endTime: Le(Te),
@@ -5219,14 +5219,14 @@ const vr = ma(pr, () => {
5219
5219
  const _e = ra({
5220
5220
  dimensionOption: i.filter.option,
5221
5221
  t: n
5222
- }), Te = new Map(_e.map((De) => [String(De.value), De.label])), He = V(i.selectedValues || []).map((De) => Te.get(String(De)) ?? String(De)), Ae = He.map((De) => De.length > 20 ? `${De.slice(0, 20)}…` : De).join(", ");
5222
+ }), Te = new Map(_e.map((De) => [String(De.value), De.label])), He = A(i.selectedValues || []).map((De) => Te.get(String(De)) ?? String(De)), Ve = He.map((De) => De.length > 20 ? `${De.slice(0, 20)}…` : De).join(", ");
5223
5223
  return He.length ? {
5224
- preview: `${W}: ${Ae}`,
5224
+ preview: `${W}: ${Ve}`,
5225
5225
  suffix: `(${He.length} selected)`
5226
5226
  } : { preview: W, suffix: Z };
5227
5227
  }
5228
5228
  }
5229
- const Ce = V(i.selectedValues || []).map((O) => O === !0 ? n("report.common.yes") || "Yes" : O === !1 ? n("report.common.no") || "No" : String(O).trim() === "" ? g.value : String(O)), Fe = Ce.map((O) => O.length > 20 ? `${O.slice(0, 20)}…` : O).join(", ");
5229
+ const Ce = A(i.selectedValues || []).map((O) => O === !0 ? n("report.common.yes") || "Yes" : O === !1 ? n("report.common.no") || "No" : String(O).trim() === "" ? g.value : String(O)), Fe = Ce.map((O) => O.length > 20 ? `${O.slice(0, 20)}…` : O).join(", ");
5230
5230
  return Ce.length ? {
5231
5231
  preview: `${W}: ${Fe}`,
5232
5232
  suffix: `(${Ce.length} selected)`
@@ -5247,46 +5247,46 @@ const vr = ma(pr, () => {
5247
5247
  function Ne(i, W) {
5248
5248
  return i ? i.length > W ? `${i.slice(0, W)}…` : i : g.value;
5249
5249
  }
5250
- function Ye(i, W) {
5251
- var Q, Ce, Fe, Xe;
5250
+ function Xe(i, W) {
5251
+ var Q, Ce, Fe, Ye;
5252
5252
  if (W === null)
5253
5253
  i.values = [];
5254
5254
  else {
5255
- const Re = Bt().tz(N.value).set("hour", Number((Q = W.start) == null ? void 0 : Q.hour)).set("minute", Number((Ce = W.start) == null ? void 0 : Ce.minute)).toISOString(), je = Bt().tz(N.value).set("hour", Number((Fe = W.end) == null ? void 0 : Fe.hour)).set("minute", Number((Xe = W.end) == null ? void 0 : Xe.minute)).toISOString();
5255
+ const Re = Bt().tz(N.value).set("hour", Number((Q = W.start) == null ? void 0 : Q.hour)).set("minute", Number((Ce = W.start) == null ? void 0 : Ce.minute)).toISOString(), je = Bt().tz(N.value).set("hour", Number((Fe = W.end) == null ? void 0 : Fe.hour)).set("minute", Number((Ye = W.end) == null ? void 0 : Ye.minute)).toISOString();
5256
5256
  i.values = [Re, je];
5257
5257
  }
5258
5258
  const Z = w.value.find((Re) => Re.filter === i);
5259
5259
  Z && (Z.keepSelection = W !== null, f(Z.filter, x.value, "keepSelection", Z.keepSelection));
5260
5260
  }
5261
5261
  return (i, W) => {
5262
- const Z = ge("FmCircularProgress"), Q = ge("FmTextField"), Ce = ge("FmMenuItem"), Fe = ge("FmTooltip"), Xe = ge("FmIcon"), Re = ge("FmMenuDivider"), je = ge("FmSwitch"), Be = ge("FmButton"), fe = ge("FmMenu");
5263
- return Y(), be("div", gr, [
5264
- (Y(!0), be(et, null, Lt(w.value, (O, _e) => {
5265
- var Te, Le, He, Ae, De, Oe;
5266
- return Y(), be("div", {
5262
+ const Z = ge("FmCircularProgress"), Q = ge("FmTextField"), Ce = ge("FmMenuItem"), Fe = ge("FmTooltip"), Ye = ge("FmIcon"), Re = ge("FmMenuDivider"), je = ge("FmSwitch"), Be = ge("FmButton"), fe = ge("FmMenu");
5263
+ return X(), be("div", gr, [
5264
+ (X(!0), be(et, null, Lt(w.value, (O, _e) => {
5265
+ var Te, Le, He, Ve, De, Oe;
5266
+ return X(), be("div", {
5267
5267
  key: O.id
5268
5268
  }, [
5269
- O.filter.option === l(Je).DateTime && !k(O.filter) ? (Y(), we(ao, {
5269
+ O.filter.option === l(Je).DateTime && !k(O.filter) ? (X(), we(ao, {
5270
5270
  key: 0,
5271
5271
  "model-value": { startDate: (Te = O.filter.values) == null ? void 0 : Te[0], endDate: (Le = O.filter.values) == null ? void 0 : Le[1] },
5272
5272
  class: "w-full",
5273
5273
  label: ue(O).preview,
5274
5274
  removable: ((He = O.filter.values) == null ? void 0 : He.length) === 2,
5275
- onUpdate: (We) => X(O.filter, We),
5276
- onChipClosed: () => X(O.filter, null)
5277
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : O.filter.option === l(Je).TimeOfDay && !k(O.filter) ? (Y(), we(Ja, {
5275
+ onUpdate: (We) => Y(O.filter, We),
5276
+ onChipClosed: () => Y(O.filter, null)
5277
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : O.filter.option === l(Je).TimeOfDay && !k(O.filter) ? (X(), we(Ja, {
5278
5278
  key: 1,
5279
- "model-value": { start: (Ae = O.filter.values) == null ? void 0 : Ae[0], end: (De = O.filter.values) == null ? void 0 : De[1] },
5279
+ "model-value": { start: (Ve = O.filter.values) == null ? void 0 : Ve[0], end: (De = O.filter.values) == null ? void 0 : De[1] },
5280
5280
  class: "w-full",
5281
5281
  label: ue(O).preview,
5282
5282
  removable: ((Oe = O.filter.values) == null ? void 0 : Oe.length) === 2,
5283
- onUpdate: (We) => Ye(O.filter, We),
5284
- onChipClosed: () => Ye(O.filter, null)
5285
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (Y(), we(fe, {
5283
+ onUpdate: (We) => Xe(O.filter, We),
5284
+ onChipClosed: () => Xe(O.filter, null)
5285
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (X(), we(fe, {
5286
5286
  key: 2,
5287
5287
  "close-on-click": !1,
5288
5288
  shift: !0,
5289
- open: l(A)(O.id)
5289
+ open: l(V)(O.id)
5290
5290
  }, {
5291
5291
  "menu-button": ze(() => [
5292
5292
  J("div", yr, [
@@ -5308,15 +5308,15 @@ const vr = ma(pr, () => {
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 })
5310
5310
  }, [
5311
- L.value ? (Y(), be("div", br, [
5311
+ L.value ? (X(), be("div", br, [
5312
5312
  me(Z)
5313
- ])) : O.options.length > 0 && !l(u) ? (Y(), be(et, { key: 1 }, [
5313
+ ])) : O.options.length > 0 && !l(u) ? (X(), be(et, { key: 1 }, [
5314
5314
  J("div", Cr, [
5315
5315
  me(Q, {
5316
5316
  modelValue: O.search,
5317
5317
  "onUpdate:modelValue": [
5318
- (Ve) => O.search = Ve,
5319
- (Ve) => l(f)(O.filter, x.value, "search", Ve)
5318
+ (Ae) => O.search = Ae,
5319
+ (Ae) => l(f)(O.filter, x.value, "search", Ae)
5320
5320
  ],
5321
5321
  type: "text",
5322
5322
  "prepend-icon": "search",
@@ -5331,58 +5331,58 @@ const vr = ma(pr, () => {
5331
5331
  "has-checkbox": !0,
5332
5332
  "model-value": le(O),
5333
5333
  indeterminate: !0,
5334
- onClick: (Ve) => te(O)
5334
+ onClick: (Ae) => te(O)
5335
5335
  }, null, 8, ["label", "model-value", "onClick"]),
5336
- (Y(!0), be(et, null, Lt(ce.value[_e], (Ve) => (Y(), be(et, {
5337
- key: Ve.value
5336
+ (X(!0), be(et, null, Lt(ce.value[_e], (Ae) => (X(), be(et, {
5337
+ key: Ae.value
5338
5338
  }, [
5339
- Ve.label && Ve.label.length > 110 ? (Y(), we(Fe, {
5339
+ Ae.label && Ae.label.length > 110 ? (X(), we(Fe, {
5340
5340
  key: 0,
5341
5341
  placement: "right",
5342
5342
  "hide-arrow": !0,
5343
5343
  "z-index": 2e3
5344
5344
  }, {
5345
5345
  content: ze(() => [
5346
- bn(Ge(Ve.label), 1)
5346
+ bn(Ge(Ae.label), 1)
5347
5347
  ]),
5348
5348
  default: ze(() => [
5349
5349
  J("div", Sr, [
5350
5350
  me(Ce, {
5351
- label: Ne(Ve.label, 110),
5351
+ label: Ne(Ae.label, 110),
5352
5352
  "has-checkbox": !0,
5353
- "model-value": O.selectedValues.includes(Ve.value),
5353
+ "model-value": O.selectedValues.includes(Ae.value),
5354
5354
  class: qe([
5355
5355
  "flex-1 text-left",
5356
- { "bg-gray-200": Ve.available === !1 }
5356
+ { "bg-gray-200": Ae.available === !1 }
5357
5357
  ]),
5358
- onClick: () => re(O, Ve.value)
5358
+ onClick: () => re(O, Ae.value)
5359
5359
  }, null, 8, ["label", "model-value", "class", "onClick"])
5360
5360
  ])
5361
5361
  ]),
5362
5362
  _: 2
5363
- }, 1024)) : (Y(), we(Ce, {
5363
+ }, 1024)) : (X(), we(Ce, {
5364
5364
  key: 1,
5365
- label: Ve.label,
5365
+ label: Ae.label,
5366
5366
  "has-checkbox": !0,
5367
- "model-value": O.selectedValues.includes(Ve.value),
5368
- class: qe(["flex-1 text-left", { "bg-gray-100": Ve.available === !1 }]),
5369
- onClick: () => re(O, Ve.value)
5367
+ "model-value": O.selectedValues.includes(Ae.value),
5368
+ class: qe(["flex-1 text-left", { "bg-gray-100": Ae.available === !1 }]),
5369
+ onClick: () => re(O, Ae.value)
5370
5370
  }, null, 8, ["label", "model-value", "class", "onClick"]))
5371
5371
  ], 64))), 128)),
5372
- ce.value[_e].length < O.options.length && !O.search ? (Y(), we(Ce, {
5372
+ ce.value[_e].length < O.options.length && !O.search ? (X(), we(Ce, {
5373
5373
  key: 0,
5374
5374
  class: "fm-typo-en-body-md-400 -ml-2",
5375
5375
  label: l(n)("report.section.filter.loadMore"),
5376
- onClick: Tt((Ve) => ne(O), ["stop"]),
5376
+ onClick: Tt((Ae) => ne(O), ["stop"]),
5377
5377
  icon: "autorenew"
5378
5378
  }, null, 8, ["label", "onClick"])) : Me("", !0)
5379
5379
  ])
5380
5380
  ]),
5381
5381
  J("div", {
5382
5382
  class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
5383
- onClick: (Ve) => de(O)
5383
+ onClick: (Ae) => de(O)
5384
5384
  }, [
5385
- me(Xe, {
5385
+ me(Ye, {
5386
5386
  name: O.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
5387
5387
  size: "md",
5388
5388
  class: ""
@@ -5390,7 +5390,7 @@ const vr = ma(pr, () => {
5390
5390
  J("span", kr, Ge(l(n)("report.section.filter.advanced")), 1)
5391
5391
  ], 8, _r),
5392
5392
  me(Re),
5393
- O.showAdvanced ? (Y(), be("div", Tr, [
5393
+ O.showAdvanced ? (X(), be("div", Tr, [
5394
5394
  J("div", Lr, [
5395
5395
  J("div", Dr, [
5396
5396
  me(je, {
@@ -5407,7 +5407,7 @@ const vr = ma(pr, () => {
5407
5407
  J("div", Ir, Ge(l(n)("report.section.filter.keepSelectionTooltip")), 1)
5408
5408
  ]),
5409
5409
  default: ze(() => [
5410
- me(Xe, {
5410
+ me(Ye, {
5411
5411
  name: "info",
5412
5412
  size: "md",
5413
5413
  class: "text-fm-color-primary"
@@ -5422,15 +5422,15 @@ const vr = ma(pr, () => {
5422
5422
  me(Be, {
5423
5423
  variant: "tertiary",
5424
5424
  label: l(n)("report.common.cancel"),
5425
- onClick: Tt((Ve) => Se(O), ["stop"])
5425
+ onClick: Tt((Ae) => Se(O), ["stop"])
5426
5426
  }, null, 8, ["label", "onClick"]),
5427
5427
  me(Be, {
5428
5428
  color: "primary",
5429
- onClick: Tt((Ve) => he(O), ["stop"]),
5429
+ onClick: Tt((Ae) => he(O), ["stop"]),
5430
5430
  label: l(n)("report.common.apply")
5431
5431
  }, null, 8, ["onClick", "label"])
5432
5432
  ])
5433
- ], 64)) : l(u) ? Me("", !0) : (Y(), we(xn, {
5433
+ ], 64)) : l(u) ? Me("", !0) : (X(), we(xn, {
5434
5434
  key: 2,
5435
5435
  title: U(O) ? l(n)("report.messages.noWidgetsApplied") : void 0,
5436
5436
  "sub-title": U(O) ? l(n)("report.messages.assignWidgetsToUseThisFilter") : void 0
@@ -5454,7 +5454,7 @@ export {
5454
5454
  Tn as X,
5455
5455
  Ln as Y,
5456
5456
  Ur as _,
5457
- Xr as a,
5457
+ Yr as a,
5458
5458
  gn as b,
5459
5459
  _n as c,
5460
5460
  dn as d,
@@ -5462,6 +5462,6 @@ export {
5462
5462
  Dn as f,
5463
5463
  Kr as g,
5464
5464
  qr as h,
5465
- Yr as i,
5465
+ Xr as i,
5466
5466
  la as u
5467
5467
  };