@feedmepos/mf-report 5.22.30 → 5.22.31

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-Cof-X-OX.js → App-DrNd0OhG.js} +4 -4
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-Cn_mVx9D.js → BaseDialog.vue_vue_type_script_setup_true_lang-DT0G5YTp.js} +4 -4
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CJOaN-RA.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-D03qImVk.js} +1 -1
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Dz_5iNus.js → Default.vue_vue_type_script_setup_true_lang-SYfUr7CV.js} +1 -1
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-Lnxc9CzU.js → FilterSelector.vue_vue_type_script_setup_true_lang-BAlKmQBN.js} +221 -221
  6. package/dist/{InsightView-DktFtdy9.js → InsightView-BKxwhqE-.js} +4 -4
  7. package/dist/{Integration-CFtbFghr.js → Integration-CSe9xLiD.js} +908 -897
  8. package/dist/{Integrations-fSWspKwj.js → Integrations-DstbRAv7.js} +2 -2
  9. package/dist/{Layout-CcunW_mF.js → Layout-KqHc-oe1.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Bwq0tcXV.js → MenuTab.vue_vue_type_script_setup_true_lang-D353Xres.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C5bwFbZj.js → NavigationTab.vue_vue_type_script_setup_true_lang-m8FuKdYv.js} +3 -3
  12. package/dist/{OverviewView-Dq5tvKOF.js → OverviewView-DyMe7oQN.js} +4 -4
  13. package/dist/{Report-CHlX2qrM.js → Report-DQiEnVY1.js} +3 -3
  14. package/dist/{ReportEditor-Dj3PktxT.js → ReportEditor-z5Ca_cPt.js} +4 -4
  15. package/dist/{ReportView-lwvhOIVg.js → ReportView-CU5RY0cS.js} +6 -6
  16. package/dist/{Setting-BhK2ktyL.js → Setting-BlyScc05.js} +3 -3
  17. package/dist/{TileEditor-B_JDpB3I.js → TileEditor-CJHk2GIH.js} +5 -5
  18. package/dist/{TransitionFade-D7Yi5DZW.js → TransitionFade-Bo_RUoyJ.js} +4 -4
  19. package/dist/{app-DlT1RNrY.js → app-Ceu3CTy8.js} +11 -11
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-CKB5if5c.js → formatChartData.worker-DR8QpYfd.js} +1 -1
  22. package/dist/assets/{processTableData.worker-C1Lshb3k.js → processTableData.worker-V2pxR4IU.js} +1 -1
  23. package/dist/{useRestaurantPermission-DB3sRIJN.js → useRestaurantPermission-D7hSebq7.js} +1 -1
  24. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { computed as v, defineComponent as at, ref as L, onMounted as it, onBeforeUnmount as da, resolveComponent as ve, createBlock as we, openBlock as Y, Transition as Ka, withCtx as $e, createElementBlock as ge, createCommentVNode as Me, createElementVNode as J, unref as r, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as fe, Fragment as et, renderList as Lt, normalizeClass as Ye, watch as Re, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as on, createSlots as qa, resolveDynamicComponent as fa, toRaw as Ya, markRaw as Xa, createTextVNode as bn, onUnmounted as ha, withDirectives as Ga, vShow as ja } from "vue";
2
- import { W as se, d as Ht, e as Ja, S as St, v as Xt, f as Za, g as vn, h as ma, q as pa, R as Ft, i as Qa, D as mt, b as Je, C as st, u as eo, a as to, _ as no } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Cn_mVx9D.js";
3
- import { k as ao, z as oo, l as ro, m as lo, a as Gt, u as Bn, d as Bt, i as so } from "./app-DlT1RNrY.js";
4
- import { d as Cn, _ as io, a as uo, b as co, c as fo } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CJOaN-RA.js";
2
+ import { W as se, d as Ht, e as Ja, S as St, v as Xt, f as Za, g as vn, h as ma, q as pa, R as Ft, i as Qa, D as mt, b as Je, C as st, u as eo, a as to, _ as no } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DT0G5YTp.js";
3
+ import { k as ao, z as oo, l as ro, m as lo, a as Gt, u as Vn, d as Vt, i as so } from "./app-Ceu3CTy8.js";
4
+ import { d as Cn, _ as io, a as uo, b as co, c as fo } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D03qImVk.js";
5
5
  import { storeToRefs as vt, defineStore as va } from "pinia";
6
6
  import { C as wn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as ho } from "@feedmepos/mf-common";
8
- import { useBreakpoints as fn, useSnackbar as Vn, components as mo } from "@feedmepos/ui-library";
8
+ import { useBreakpoints as fn, useSnackbar as Bn, components as mo } from "@feedmepos/ui-library";
9
9
  import { u as wt } from "./vue-i18n-DVWuTfed.js";
10
10
  import { _ as ga } 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
  ], Yl = dn.map(() => "solid");
120
- function Vt({
120
+ function Bt({
121
121
  datasetIndex: e,
122
122
  label: n
123
123
  }) {
@@ -212,7 +212,7 @@ function Wt({
212
212
  colorMode: h,
213
213
  customColors: c
214
214
  }) {
215
- const _ = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, B = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, H = i !== !1, T = e * _ + B, C = h === "clustered" ? dn : ya(c), d = jt(s == null ? void 0 : s[e * _]) ?? C[e % C.length], F = H && B > 0 ? Yn(d, Xn(B)) : jt(s == null ? void 0 : s[T]) ?? (B > 0 ? Yn(d, Xn(B)) : d);
215
+ const _ = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, V = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, H = i !== !1, T = e * _ + V, C = h === "clustered" ? dn : ya(c), d = jt(s == null ? void 0 : s[e * _]) ?? C[e % C.length], F = H && V > 0 ? Yn(d, Xn(V)) : jt(s == null ? void 0 : s[T]) ?? (V > 0 ? Yn(d, Xn(V)) : d);
216
216
  let M = typeof l == "number" ? l : 1;
217
217
  return a && (M = M * 0.6), ba(F, M);
218
218
  }
@@ -350,7 +350,7 @@ function ko(e, n, t) {
350
350
  }
351
351
  if (!c.element)
352
352
  return;
353
- const _ = c.element, B = a ? h : i, H = a ? _.y : _.x, T = B.getPixelForValue(c.index), C = H ?? T;
353
+ const _ = c.element, V = a ? h : i, H = a ? _.y : _.x, T = V.getPixelForValue(c.index), C = H ?? T;
354
354
  yn(e.ctx, a, e.chartArea, C);
355
355
  }
356
356
  function Jt(e) {
@@ -410,7 +410,7 @@ function xa() {
410
410
  function Fo(e) {
411
411
  return typeof e != "string" ? [] : e.split("#").map((n) => n.trim()).filter((n) => n.length > 0);
412
412
  }
413
- function Bo(e) {
413
+ function Vo(e) {
414
414
  return Reflect.get(e, "dash") === !0 || Reflect.get(e, "isCompare") === !0;
415
415
  }
416
416
  function $n(e, n) {
@@ -428,7 +428,7 @@ function _a(e) {
428
428
  const t = Reflect.get(e.dataset, "label");
429
429
  return typeof t == "string" ? t : "";
430
430
  }
431
- function Vo(e) {
431
+ function Bo(e) {
432
432
  return e.trim().toLowerCase();
433
433
  }
434
434
  function Zn(e) {
@@ -600,7 +600,7 @@ function Go(e) {
600
600
  }
601
601
  function La(e, n, t, a, l) {
602
602
  var f;
603
- const s = (f = e[0]) == null ? void 0 : f.label, i = Fo(s), h = i[0] ?? (s == null ? "" : String(s)), c = i[1], _ = [], B = [];
603
+ const s = (f = e[0]) == null ? void 0 : f.label, i = Fo(s), h = i[0] ?? (s == null ? "" : String(s)), c = i[1], _ = [], V = [];
604
604
  e.forEach((g) => {
605
605
  const w = g.dataset ?? {}, x = g.datasetIndex >= 0 && g.dataIndex >= 0 ? {
606
606
  datasetIndex: g.datasetIndex,
@@ -611,17 +611,17 @@ function La(e, n, t, a, l) {
611
611
  isBar: ka(g),
612
612
  value: $n(g, n),
613
613
  datasetLabel: A,
614
- matchingKey: Vo(A),
614
+ matchingKey: Bo(A),
615
615
  focusTarget: x
616
616
  };
617
- if (c && Bo(w)) {
618
- B.push(P);
617
+ if (c && Vo(w)) {
618
+ V.push(P);
619
619
  return;
620
620
  }
621
621
  _.push(P);
622
622
  });
623
623
  const H = _.slice(0, a), T = /* @__PURE__ */ new Map();
624
- B.forEach((g) => {
624
+ V.forEach((g) => {
625
625
  const w = T.get(g.matchingKey);
626
626
  if (!w) {
627
627
  T.set(g.matchingKey, [g]);
@@ -632,7 +632,7 @@ function La(e, n, t, a, l) {
632
632
  const C = c ? H.map((g) => {
633
633
  const w = T.get(g.matchingKey);
634
634
  return !w || w.length === 0 ? ea(g) : w.shift() ?? ea(g);
635
- }) : [], d = _.length > H.length || B.length > C.length, F = (g, w = !1) => `<div style="${Yo(w)}">${Mn(g)}</div>`, M = (g) => {
635
+ }) : [], d = _.length > H.length || V.length > C.length, F = (g, w = !1) => `<div style="${Yo(w)}">${Mn(g)}</div>`, M = (g) => {
636
636
  const w = Xo(g.isBar, g.color);
637
637
  return `<div style="${Eo}"><span style="${w}"></span><span style="${Uo}">${Mn(g.text)}</span></div>`;
638
638
  };
@@ -645,7 +645,7 @@ function La(e, n, t, a, l) {
645
645
  },
646
646
  {
647
647
  title: c ?? "",
648
- values: B
648
+ values: V
649
649
  }
650
650
  ].filter((g) => g.values.length > 0);
651
651
  return {
@@ -694,9 +694,9 @@ function jo(e, n, t, a, l, s) {
694
694
  markup: c,
695
695
  maxTooltipItems: i
696
696
  };
697
- let _ = In, B = i;
698
- for (; _ <= B; ) {
699
- const T = Math.floor((_ + B) / 2), C = ln(
697
+ let _ = In, V = i;
698
+ for (; _ <= V; ) {
699
+ const T = Math.floor((_ + V) / 2), C = ln(
700
700
  e,
701
701
  n,
702
702
  t,
@@ -705,7 +705,7 @@ function jo(e, n, t, a, l, s) {
705
705
  s
706
706
  );
707
707
  if (ta(e)) {
708
- B = T - 1;
708
+ V = T - 1;
709
709
  continue;
710
710
  }
711
711
  h = T, c = C, _ = T + 1;
@@ -727,8 +727,8 @@ function na(e, n) {
727
727
  if (a.startsWith("#")) {
728
728
  const i = a.slice(1), h = i.length === 3 ? `${i[0]}${i[0]}${i[1]}${i[1]}${i[2]}${i[2]}` : i.length === 4 ? `${i[0]}${i[0]}${i[1]}${i[1]}${i[2]}${i[2]}` : i.length >= 6 ? i.slice(0, 6) : "";
729
729
  if (/^[0-9a-fA-F]{6}$/.test(h)) {
730
- const c = Number.parseInt(h.slice(0, 2), 16), _ = Number.parseInt(h.slice(2, 4), 16), B = Number.parseInt(h.slice(4, 6), 16);
731
- return `rgba(${c}, ${_}, ${B}, ${t})`;
730
+ const c = Number.parseInt(h.slice(0, 2), 16), _ = Number.parseInt(h.slice(2, 4), 16), V = Number.parseInt(h.slice(4, 6), 16);
731
+ return `rgba(${c}, ${_}, ${V}, ${t})`;
732
732
  }
733
733
  }
734
734
  const l = a.match(/^rgba?\(([^)]+)\)$/i);
@@ -834,16 +834,16 @@ function zn(e) {
834
834
  return window.getComputedStyle(n).position === "static" && (n.style.position = "relative"), n;
835
835
  }
836
836
  function Nn(e, n, t, a, l, s, i = "center", h = !1) {
837
- const c = n.getBoundingClientRect(), _ = t.getBoundingClientRect(), B = t.scrollLeft, H = t.scrollTop, T = t.clientWidth, C = t.clientHeight, d = e;
837
+ const c = n.getBoundingClientRect(), _ = t.getBoundingClientRect(), V = t.scrollLeft, H = t.scrollTop, T = t.clientWidth, C = t.clientHeight, d = e;
838
838
  (!Number.isFinite(d.__cachedWidth) || !Number.isFinite(d.__cachedHeight) || d.__measurementHostWidth !== T || d.__measurementHostHeight !== C) && (d.__cachedWidth = e.offsetWidth, d.__cachedHeight = e.offsetHeight, d.__measurementHostWidth = T, d.__measurementHostHeight = C);
839
- const M = d.__cachedWidth ?? e.offsetWidth, I = d.__cachedHeight ?? e.offsetHeight, b = 8, f = c.left - _.left + B + a, g = c.top - _.top + H + l, w = h ? i === "left" ? f - M - b : f + b : i === "left" ? f - M - b : i === "right" ? f + b : f - M / 2, x = h ? g + b : s ? g - I / 2 : g + b, A = B + b;
839
+ const M = d.__cachedWidth ?? e.offsetWidth, I = d.__cachedHeight ?? e.offsetHeight, b = 8, f = c.left - _.left + V + a, g = c.top - _.top + H + l, w = h ? i === "left" ? f - M - b : f + b : i === "left" ? f - M - b : i === "right" ? f + b : f - M / 2, x = h ? g + b : s ? g - I / 2 : g + b, A = V + b;
840
840
  let P = H + b;
841
841
  const p = document.querySelector('[data-menu-tab="true"]');
842
842
  if (p) {
843
843
  const ce = p.getBoundingClientRect().bottom - _.top + H + b;
844
844
  P = Math.max(P, ce);
845
845
  }
846
- const V = Math.max(A, B + T - M - b), X = Math.max(P, H + C - I - b), G = Math.round(Math.min(Math.max(A, w), V)), oe = Math.round(Math.min(Math.max(P, x), X));
846
+ const B = Math.max(A, V + T - M - b), X = Math.max(P, H + C - I - b), G = Math.round(Math.min(Math.max(A, w), B)), oe = Math.round(Math.min(Math.max(P, x), X));
847
847
  d.__lastLeftPx === G && d.__lastTopPx === oe || (d.__lastLeftPx = G, d.__lastTopPx = oe, e.style.left = `${G}px`, e.style.top = `${oe}px`);
848
848
  }
849
849
  function Ia(e) {
@@ -990,7 +990,7 @@ function cr(e, n, t, a, l) {
990
990
  const _ = t == null ? void 0 : t.getElementsAtEventForMode;
991
991
  if (typeof _ != "function")
992
992
  return;
993
- const B = _.call(
993
+ const V = _.call(
994
994
  t,
995
995
  i,
996
996
  "nearest",
@@ -1002,7 +1002,7 @@ function cr(e, n, t, a, l) {
1002
1002
  "index",
1003
1003
  { intersect: !1 },
1004
1004
  !1
1005
- ), C = (B.length > 0 ? B : H).filter((b) => typeof b.datasetIndex == "number" && typeof b.index == "number").map((b) => ({ datasetIndex: b.datasetIndex, index: b.index }));
1005
+ ), C = (V.length > 0 ? V : H).filter((b) => typeof b.datasetIndex == "number" && typeof b.index == "number").map((b) => ({ datasetIndex: b.datasetIndex, index: b.index }));
1006
1006
  if (C.length === 0)
1007
1007
  return;
1008
1008
  const d = t == null ? void 0 : t.tooltip;
@@ -1030,13 +1030,13 @@ function cr(e, n, t, a, l) {
1030
1030
  "nearest",
1031
1031
  { intersect: !0 },
1032
1032
  !1
1033
- ), B = h.call(
1033
+ ), V = h.call(
1034
1034
  t,
1035
1035
  i,
1036
1036
  "index",
1037
1037
  { intersect: !1 },
1038
1038
  !1
1039
- ), T = (_.length > 0 ? _ : B).filter((C) => typeof C.datasetIndex == "number" && typeof C.index == "number").map((C) => ({
1039
+ ), T = (_.length > 0 ? _ : V).filter((C) => typeof C.datasetIndex == "number" && typeof C.index == "number").map((C) => ({
1040
1040
  datasetIndex: C.datasetIndex,
1041
1041
  index: C.index
1042
1042
  }));
@@ -1119,13 +1119,13 @@ function fr(e, n) {
1119
1119
  return;
1120
1120
  }
1121
1121
  zt(c);
1122
- const B = (n == null ? void 0 : n.viewFullDetailsLabel) ?? xa(), H = !!(n != null && n.onViewFullDetails), {
1122
+ const V = (n == null ? void 0 : n.viewFullDetailsLabel) ?? xa(), H = !!(n != null && n.onViewFullDetails), {
1123
1123
  markup: { detailsPayload: T, hasCollapsedValues: C }
1124
1124
  } = jo(
1125
1125
  c,
1126
1126
  _,
1127
1127
  e,
1128
- B,
1128
+ V,
1129
1129
  t,
1130
1130
  H
1131
1131
  ), d = H && C;
@@ -1135,14 +1135,14 @@ function fr(e, n) {
1135
1135
  c.style.opacity = "0";
1136
1136
  return;
1137
1137
  }
1138
- const f = (p = a == null ? void 0 : a.scales) == null ? void 0 : p.x, g = f && typeof f.getPixelForValue == "function" ? f.getPixelForValue(0) : NaN, w = e ? _.reduce((V, X) => {
1138
+ const f = (p = a == null ? void 0 : a.scales) == null ? void 0 : p.x, g = f && typeof f.getPixelForValue == "function" ? f.getPixelForValue(0) : NaN, w = e ? _.reduce((B, X) => {
1139
1139
  const G = X == null ? void 0 : X.element, oe = G == null ? void 0 : G.x;
1140
1140
  if (typeof oe != "number" || !Number.isFinite(oe))
1141
- return V;
1142
- if (!Number.isFinite(V))
1141
+ return B;
1142
+ if (!Number.isFinite(B))
1143
1143
  return oe;
1144
- const te = Number.isFinite(g) ? g : F, ce = Math.abs(V - te);
1145
- return Math.abs(oe - te) > ce ? oe : V;
1144
+ const te = Number.isFinite(g) ? g : F, ce = Math.abs(B - te);
1145
+ return Math.abs(oe - te) > ce ? oe : B;
1146
1146
  }, Number.NaN) : Number.NaN, x = M, A = I, P = e ? Number.isFinite(g) && Number.isFinite(w) && w < g ? "left" : "right" : "center";
1147
1147
  Nn(
1148
1148
  c,
@@ -1175,8 +1175,8 @@ function hr(e, n) {
1175
1175
  if (c >= n)
1176
1176
  return "";
1177
1177
  if (c === n - 1) {
1178
- const _ = a.slice(n - 1).reduce((H, T) => H + $n(T, e), 0), B = Math.max(0, a.length - (n - 1));
1179
- return zo(_, B);
1178
+ const _ = a.slice(n - 1).reduce((H, T) => H + $n(T, e), 0), V = Math.max(0, a.length - (n - 1));
1179
+ return zo(_, V);
1180
1180
  }
1181
1181
  }
1182
1182
  return Sa(t, e);
@@ -1351,8 +1351,8 @@ function Et(e) {
1351
1351
  });
1352
1352
  }
1353
1353
  }
1354
- })), B = v(() => e.isTransposed), H = v(() => e.chartWidth), T = v(() => e.chartHeight);
1355
- return { datalabels: i, xCfg: h, yCfg: c, isTransposed: B, legend: _, chartWidth: H, chartHeight: T };
1354
+ })), V = v(() => e.isTransposed), H = v(() => e.chartWidth), T = v(() => e.chartHeight);
1355
+ return { datalabels: i, xCfg: h, yCfg: c, isTransposed: V, legend: _, chartWidth: H, chartHeight: T };
1356
1356
  }
1357
1357
  const mr = {
1358
1358
  key: 0,
@@ -1373,8 +1373,8 @@ const mr = {
1373
1373
  set: (p) => a("update:modelValue", p)
1374
1374
  }), _ = v(() => {
1375
1375
  var p;
1376
- return (((p = t.detailsPayload) == null ? void 0 : p.sections) ?? []).filter((V) => V.values.length > 0);
1377
- }), B = v(() => ({
1376
+ return (((p = t.detailsPayload) == null ? void 0 : p.sections) ?? []).filter((B) => B.values.length > 0);
1377
+ }), V = v(() => ({
1378
1378
  width: `${i.value}px`,
1379
1379
  maxWidth: "94vw"
1380
1380
  }));
@@ -1382,8 +1382,8 @@ const mr = {
1382
1382
  return p.value.toLocaleString();
1383
1383
  }
1384
1384
  function T(p) {
1385
- const V = `: ${H(p)}`;
1386
- return p.text.endsWith(V) ? p.text.slice(0, -V.length) : p.text;
1385
+ const B = `: ${H(p)}`;
1386
+ return p.text.endsWith(B) ? p.text.slice(0, -B.length) : p.text;
1387
1387
  }
1388
1388
  function C(p) {
1389
1389
  a("value-hover", p);
@@ -1398,8 +1398,8 @@ const mr = {
1398
1398
  return typeof window > "u" ? ra : Math.floor(window.innerWidth * 0.94);
1399
1399
  }
1400
1400
  function I(p) {
1401
- const V = M(), X = Math.min(_r, V);
1402
- return Math.min(V, Math.max(X, Math.floor(p)));
1401
+ const B = M(), X = Math.min(_r, B);
1402
+ return Math.min(B, Math.max(X, Math.floor(p)));
1403
1403
  }
1404
1404
  function b(p) {
1405
1405
  typeof window > "u" || (i.value = I(window.innerWidth - p));
@@ -1420,11 +1420,11 @@ const mr = {
1420
1420
  var G;
1421
1421
  if (!c.value)
1422
1422
  return;
1423
- const V = p.target;
1424
- if (!(V instanceof Node))
1423
+ const B = p.target;
1424
+ if (!(B instanceof Node))
1425
1425
  return;
1426
- const X = V instanceof Element ? V : null;
1427
- X != null && X.closest('[data-tooltip-full-details="true"]') || (G = s.value) != null && G.contains(V) || F();
1426
+ const X = B instanceof Element ? B : null;
1427
+ X != null && X.closest('[data-tooltip-full-details="true"]') || (G = s.value) != null && G.contains(B) || F();
1428
1428
  }
1429
1429
  function P(p) {
1430
1430
  c.value && p.key === "Escape" && F();
@@ -1433,7 +1433,7 @@ const mr = {
1433
1433
  i.value = I(i.value), document.addEventListener("pointerdown", A, !0), document.addEventListener("keydown", P), window.addEventListener("resize", x);
1434
1434
  }), da(() => {
1435
1435
  f(), document.removeEventListener("pointerdown", A, !0), document.removeEventListener("keydown", P), window.removeEventListener("resize", x);
1436
- }), (p, V) => {
1436
+ }), (p, B) => {
1437
1437
  const X = ve("FmButton");
1438
1438
  return Y(), we(Ka, {
1439
1439
  "enter-active-class": "transform transition duration-200 ease-out",
@@ -1449,7 +1449,7 @@ const mr = {
1449
1449
  ref_key: "panelRef",
1450
1450
  ref: s,
1451
1451
  class: "glassmorphism pointer-events-auto relative ml-auto flex h-full flex-col px-24 py-3 overflow-hidden rounded-l-2xl border border-fm-color-border-secondary bg-fm-color-neutral-white duration-200 ease-out",
1452
- style: Ze(B.value),
1452
+ style: Ze(V.value),
1453
1453
  role: "dialog",
1454
1454
  "aria-modal": "false",
1455
1455
  "aria-label": r(l)("report.widget.comparisonTooltip.fullBreakdownTitle")
@@ -1524,7 +1524,7 @@ function en(e, n) {
1524
1524
  function _(T) {
1525
1525
  un(i(), T.focusTarget);
1526
1526
  }
1527
- function B() {
1527
+ function V() {
1528
1528
  un(i());
1529
1529
  }
1530
1530
  const H = v(() => ({
@@ -1538,7 +1538,7 @@ function en(e, n) {
1538
1538
  tooltipOptions: H,
1539
1539
  handleTooltipDetailsSheetVisibility: h,
1540
1540
  handleTooltipDetailsHover: _,
1541
- handleTooltipDetailsLeave: B
1541
+ handleTooltipDetailsLeave: V
1542
1542
  };
1543
1543
  }
1544
1544
  const kr = {
@@ -1548,7 +1548,7 @@ const kr = {
1548
1548
  }, Tr = ["aria-pressed", "onClick"], Lr = ["title"], Dr = {
1549
1549
  key: 0,
1550
1550
  class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
1551
- }, Ir = 36, la = 2, sa = 16, Mr = 50, Fr = 6, Br = /* @__PURE__ */ at({
1551
+ }, Ir = 36, la = 2, sa = 16, Mr = 50, Fr = 6, Vr = /* @__PURE__ */ at({
1552
1552
  __name: "ChartLegendPanel",
1553
1553
  props: {
1554
1554
  chartRef: {},
@@ -1568,14 +1568,14 @@ const kr = {
1568
1568
  },
1569
1569
  emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
1570
1570
  setup(e, { emit: n }) {
1571
- const t = e, a = n, { t: l } = wt(), s = L([]), i = L(0), h = L(!1), c = L(!1), _ = L(0), B = L(null), H = L(null), T = L(null), C = L(null), d = L(!1), F = L(0), M = L(0), I = L(!1), b = L(0), f = L(0), g = v(() => t.enabled !== !1), w = v(() => t.position === "left" || t.position === "right");
1571
+ const t = e, a = n, { t: l } = wt(), s = L([]), i = L(0), h = L(!1), c = L(!1), _ = L(0), V = L(null), H = L(null), T = L(null), C = L(null), d = L(!1), F = L(0), M = L(0), I = L(!1), b = L(0), f = L(0), g = v(() => t.enabled !== !1), w = v(() => t.position === "left" || t.position === "right");
1572
1572
  let x = null;
1573
1573
  const A = v(
1574
1574
  () => h.value && c.value && d.value
1575
1575
  ), P = v(() => ({
1576
1576
  height: `${Math.max(0, F.value)}px`,
1577
1577
  transform: `translateY(${Math.max(0, M.value)}px)`
1578
- })), p = v(() => typeof t.textColor == "string" && t.textColor.trim().length > 0 ? t.textColor : "#6b6b6b"), V = v(() => typeof t.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? t.fontSize : 12);
1578
+ })), p = v(() => typeof t.textColor == "string" && t.textColor.trim().length > 0 ? t.textColor : "#6b6b6b"), B = v(() => typeof t.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? t.fontSize : 12);
1579
1579
  function X(o) {
1580
1580
  G({ height: o, width: 0 });
1581
1581
  }
@@ -1591,7 +1591,7 @@ const kr = {
1591
1591
  const o = Da(t.chartRef);
1592
1592
  if (o)
1593
1593
  return o;
1594
- const y = B.value, m = [y == null ? void 0 : y.parentElement, y == null ? void 0 : y.closest(".h-full"), y];
1594
+ const y = V.value, m = [y == null ? void 0 : y.parentElement, y == null ? void 0 : y.closest(".h-full"), y];
1595
1595
  for (const S of m) {
1596
1596
  if (!(S instanceof HTMLElement))
1597
1597
  continue;
@@ -1609,7 +1609,7 @@ const kr = {
1609
1609
  }
1610
1610
  function ie() {
1611
1611
  var S;
1612
- const o = (S = B.value) == null ? void 0 : S.getBoundingClientRect(), y = Number((o == null ? void 0 : o.height) ?? 0), m = Number((o == null ? void 0 : o.width) ?? 0);
1612
+ const o = (S = V.value) == null ? void 0 : S.getBoundingClientRect(), y = Number((o == null ? void 0 : o.height) ?? 0), m = Number((o == null ? void 0 : o.width) ?? 0);
1613
1613
  if (Number.isFinite(y) && y >= 0) {
1614
1614
  G({
1615
1615
  height: w.value ? 0 : y,
@@ -1662,7 +1662,7 @@ const kr = {
1662
1662
  var y;
1663
1663
  const o = [
1664
1664
  (y = t.chartRef) == null ? void 0 : y.$el,
1665
- B.value
1665
+ V.value
1666
1666
  ];
1667
1667
  for (const m of o) {
1668
1668
  if (!(m instanceof HTMLElement))
@@ -1682,7 +1682,7 @@ const kr = {
1682
1682
  }
1683
1683
  function pe() {
1684
1684
  var m, S, U, K;
1685
- const o = (S = (m = B.value) == null ? void 0 : m.closest(".chart-layout")) == null ? void 0 : S.parentElement;
1685
+ const o = (S = (m = V.value) == null ? void 0 : m.closest(".chart-layout")) == null ? void 0 : S.parentElement;
1686
1686
  if (o instanceof HTMLElement)
1687
1687
  return o;
1688
1688
  const y = (U = t.chartRef) == null ? void 0 : U.$el;
@@ -1695,7 +1695,7 @@ const kr = {
1695
1695
  }
1696
1696
  function O() {
1697
1697
  var m, S, U, K;
1698
- const o = ((m = B.value) == null ? void 0 : m.closest(".chart-layout")) ?? ((K = (U = (S = t.chartRef) == null ? void 0 : S.$el) == null ? void 0 : U.closest) == null ? void 0 : K.call(U, ".chart-layout")) ?? null;
1698
+ const o = ((m = V.value) == null ? void 0 : m.closest(".chart-layout")) ?? ((K = (U = (S = t.chartRef) == null ? void 0 : S.$el) == null ? void 0 : U.closest) == null ? void 0 : K.call(U, ".chart-layout")) ?? null;
1699
1699
  if (!(o instanceof HTMLElement))
1700
1700
  return null;
1701
1701
  const y = Number(o.getBoundingClientRect().width);
@@ -1742,7 +1742,7 @@ const kr = {
1742
1742
  const o = O();
1743
1743
  if (o != null)
1744
1744
  return Math.max(0, Math.floor(o * 0.3));
1745
- const y = te(), m = Number(y == null ? void 0 : y.width), S = Number(((K = B.value) == null ? void 0 : K.getBoundingClientRect().width) ?? 0);
1745
+ const y = te(), m = Number(y == null ? void 0 : y.width), S = Number(((K = V.value) == null ? void 0 : K.getBoundingClientRect().width) ?? 0);
1746
1746
  if (Number.isFinite(m) && m > 0) {
1747
1747
  const ae = m + (Number.isFinite(S) ? S : 0);
1748
1748
  return Math.max(0, Math.floor(ae * 0.3));
@@ -1869,7 +1869,7 @@ const kr = {
1869
1869
  function Z(o) {
1870
1870
  var m;
1871
1871
  return (Array.isArray((m = o == null ? void 0 : o.data) == null ? void 0 : m.datasets) ? o.data.datasets : []).map((S, U) => {
1872
- const K = ue((S == null ? void 0 : S.borderColor) ?? (S == null ? void 0 : S.backgroundColor)), ae = Vt({
1872
+ const K = ue((S == null ? void 0 : S.borderColor) ?? (S == null ? void 0 : S.backgroundColor)), ae = Bt({
1873
1873
  datasetIndex: U,
1874
1874
  label: S == null ? void 0 : S.label
1875
1875
  });
@@ -1898,7 +1898,7 @@ const kr = {
1898
1898
  index: _e,
1899
1899
  hidden: We(_e)
1900
1900
  })) : m.map((j, _e) => ({
1901
- datasetKey: Vt({
1901
+ datasetKey: Bt({
1902
1902
  datasetIndex: _e,
1903
1903
  label: j == null ? void 0 : j.label
1904
1904
  }),
@@ -1911,7 +1911,7 @@ const kr = {
1911
1911
  ),
1912
1912
  datasetIndex: _e,
1913
1913
  hidden: Array.isArray(t.hiddenDatasetKeys) ? t.hiddenDatasetKeys.includes(
1914
- Vt({
1914
+ Bt({
1915
1915
  datasetIndex: _e,
1916
1916
  label: j == null ? void 0 : j.label
1917
1917
  })
@@ -2022,7 +2022,7 @@ const kr = {
2022
2022
  const Te = v(() => {
2023
2023
  const o = {
2024
2024
  "--legend-text-color": p.value,
2025
- "--legend-font-size": `${V.value}px`
2025
+ "--legend-font-size": `${B.value}px`
2026
2026
  }, y = ye();
2027
2027
  if (w.value) {
2028
2028
  const m = Ce();
@@ -2051,7 +2051,7 @@ const kr = {
2051
2051
  } : c.value ? {
2052
2052
  overflow: "hidden"
2053
2053
  } : {} : {});
2054
- function Be() {
2054
+ function Ve() {
2055
2055
  var S;
2056
2056
  if (!g.value) {
2057
2057
  s.value = [], i.value = 0, h.value = !1, c.value = !1, _.value = 0, G({ height: 0, width: 0 });
@@ -2080,7 +2080,7 @@ const kr = {
2080
2080
  }
2081
2081
  function Ee(o, y) {
2082
2082
  return Array.isArray(o.datasetKeys) && o.datasetKeys.length > 0 ? o.datasetKeys.filter((m) => typeof m == "string" && m.trim().length > 0) : typeof o.datasetKey == "string" && o.datasetKey.trim().length > 0 ? [o.datasetKey] : y.map(
2083
- (m) => Vt({
2083
+ (m) => Bt({
2084
2084
  datasetIndex: m,
2085
2085
  label: o.text
2086
2086
  })
@@ -2100,7 +2100,7 @@ const kr = {
2100
2100
  const S = Array.isArray((U = o == null ? void 0 : o.data) == null ? void 0 : U.datasets) ? o.data.datasets[y] : null;
2101
2101
  S && typeof S == "object" && (S.hidden = !m);
2102
2102
  }
2103
- function Ve(o, y) {
2103
+ function Be(o, y) {
2104
2104
  var ae;
2105
2105
  if (typeof o.toggleDataVisibility == "function") {
2106
2106
  o.toggleDataVisibility(y);
@@ -2113,7 +2113,7 @@ const kr = {
2113
2113
  K && typeof K.hidden == "boolean" && (K.hidden = !K.hidden);
2114
2114
  }
2115
2115
  function nn(o = 0) {
2116
- Be();
2116
+ Ve();
2117
2117
  const y = te(), m = s.value.length > 0;
2118
2118
  if (y || m || o >= Fr) {
2119
2119
  oe();
@@ -2131,7 +2131,7 @@ const kr = {
2131
2131
  a("toggleDataPointVisibility", { itemIndex: K });
2132
2132
  return;
2133
2133
  }
2134
- m && (Ve(m, K), m.update());
2134
+ m && (Be(m, K), m.update());
2135
2135
  const xe = m && typeof m.getDataVisibility == "function" ? !m.getDataVisibility(K) : o.hidden !== !0;
2136
2136
  Oe(
2137
2137
  (me) => typeof me.index == "number" ? me.index === K : me.datasetIndex === o.datasetIndex && me.text === o.text,
@@ -2144,7 +2144,7 @@ const kr = {
2144
2144
  he.forEach((xe, me) => {
2145
2145
  a("toggleDatasetVisibility", {
2146
2146
  datasetIndex: xe,
2147
- datasetKey: j[me] ?? Vt({
2147
+ datasetKey: j[me] ?? Bt({
2148
2148
  datasetIndex: xe,
2149
2149
  label: o.text
2150
2150
  })
@@ -2196,14 +2196,14 @@ const kr = {
2196
2196
  t.hiddenDataPointIndexes
2197
2197
  ],
2198
2198
  () => {
2199
- Be();
2199
+ Ve();
2200
2200
  }
2201
2201
  ), da(() => {
2202
2202
  I.value = !1, oe(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", $), window.removeEventListener("mouseup", R);
2203
2203
  }), (o, y) => g.value ? (Y(), ge("div", {
2204
2204
  key: 0,
2205
2205
  ref_key: "legendPanelRef",
2206
- ref: B,
2206
+ ref: V,
2207
2207
  class: Ye(["chart-legend-panel relative z-[2] flex min-w-0 flex-col overflow-hidden pointer-events-auto", {
2208
2208
  "self-stretch h-full": w.value,
2209
2209
  "mb-2": !w.value && o.position === "top",
@@ -2283,11 +2283,11 @@ const kr = {
2283
2283
  ], 512)
2284
2284
  ], 6)) : Me("", !0);
2285
2285
  }
2286
- }), lt = /* @__PURE__ */ ga(Br, [["__scopeId", "data-v-6006dfdf"]]);
2286
+ }), lt = /* @__PURE__ */ ga(Vr, [["__scopeId", "data-v-6006dfdf"]]);
2287
2287
  function tn(e) {
2288
2288
  const n = L([]), t = v(() => new Set(n.value));
2289
2289
  function a(i, h) {
2290
- return Vt({
2290
+ return Bt({
2291
2291
  datasetIndex: h,
2292
2292
  label: i == null ? void 0 : i.label
2293
2293
  });
@@ -2307,7 +2307,7 @@ function tn(e) {
2307
2307
  e,
2308
2308
  (i) => {
2309
2309
  const h = new Set(
2310
- i.map((_, B) => a(_, B))
2310
+ i.map((_, V) => a(_, V))
2311
2311
  ), c = n.value.filter((_) => h.has(_));
2312
2312
  c.length !== n.value.length && (n.value = c);
2313
2313
  },
@@ -2318,7 +2318,7 @@ function tn(e) {
2318
2318
  toggleDatasetVisibility: s
2319
2319
  };
2320
2320
  }
2321
- const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2321
+ const Br = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2322
2322
  __name: "WidgetBarchart",
2323
2323
  props: /* @__PURE__ */ gt({
2324
2324
  tileIndex: {}
@@ -2334,7 +2334,7 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2334
2334
  tooltipOptions: h,
2335
2335
  handleTooltipDetailsSheetVisibility: c,
2336
2336
  handleTooltipDetailsHover: _,
2337
- handleTooltipDetailsLeave: B
2337
+ handleTooltipDetailsLeave: V
2338
2338
  } = en(a, {
2339
2339
  maxTooltipItems: l
2340
2340
  }), H = v(() => {
@@ -2350,7 +2350,7 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2350
2350
  ), A = Jt("bar"), P = v(() => {
2351
2351
  const z = f.value.position;
2352
2352
  return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
2353
- }), p = v(() => f.value.position ?? "top"), V = v(
2353
+ }), p = v(() => f.value.position ?? "top"), B = v(
2354
2354
  () => p.value === "left" || p.value === "right"
2355
2355
  ), X = v(
2356
2356
  () => p.value === "top" || p.value === "left"
@@ -2413,10 +2413,10 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2413
2413
  var R, re, pe, O, ne, ee;
2414
2414
  const $ = ve("FmBarChart");
2415
2415
  return Y(), ge(et, null, [
2416
- J("div", Vr, [
2416
+ J("div", Br, [
2417
2417
  yt(z.$slots, "menu"),
2418
2418
  J("div", {
2419
- class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(f).display ?? !1) && V.value }])
2419
+ class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(f).display ?? !1) && B.value }])
2420
2420
  }, [
2421
2421
  P.value && (r(f).display ?? !1) && X.value ? (Y(), we(lt, {
2422
2422
  key: 0,
@@ -2452,8 +2452,8 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2452
2452
  plugins: [r(A)],
2453
2453
  "maintain-aspect-ratio": !1,
2454
2454
  style: Ze({
2455
- "--chart-width": P.value && (r(f).display ?? !1) && V.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(g) !== void 0 ? r(g) + "px" : "100%",
2456
- "--chart-height": P.value && (r(f).display ?? !1) && !V.value ? "calc(100% - 36px - var(--legend-panel-height, 0px))" : r(w) !== void 0 ? r(w) + "px" : "100%"
2455
+ "--chart-width": P.value && (r(f).display ?? !1) && B.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(g) !== void 0 ? r(g) + "px" : "100%",
2456
+ "--chart-height": P.value && (r(f).display ?? !1) && !B.value ? "calc(100% - 36px - var(--legend-panel-height, 0px))" : r(w) !== void 0 ? r(w) + "px" : "100%"
2457
2457
  })
2458
2458
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
2459
2459
  P.value && (r(f).display ?? !1) && !X.value ? (Y(), we(lt, {
@@ -2480,7 +2480,7 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2480
2480
  "details-payload": r(i),
2481
2481
  "onUpdate:modelValue": r(c),
2482
2482
  onValueHover: r(_),
2483
- onValueLeave: r(B)
2483
+ onValueLeave: r(V)
2484
2484
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
2485
2485
  ], 64);
2486
2486
  };
@@ -2495,15 +2495,15 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2495
2495
  }),
2496
2496
  emits: ["update:modelValue"],
2497
2497
  setup(e) {
2498
- const n = e, t = ct(e, "modelValue"), { breakpoints: a } = fn(), l = L(null), s = L([]), { datalabels: i, legend: h, chartWidth: c, chartHeight: _ } = Et(t.value), B = v(() => {
2499
- const p = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((V) => V.name) : [];
2500
- return p.length > 0 ? p : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((V) => String(V)) : [];
2498
+ const n = e, t = ct(e, "modelValue"), { breakpoints: a } = fn(), l = L(null), s = L([]), { datalabels: i, legend: h, chartWidth: c, chartHeight: _ } = Et(t.value), V = v(() => {
2499
+ const p = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((B) => B.name) : [];
2500
+ return p.length > 0 ? p : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((B) => String(B)) : [];
2501
2501
  }), H = v(() => {
2502
2502
  let p = [];
2503
2503
  return Array.isArray(t.value.data.datasets) && t.value.data.datasets.length > 0 && (p = [
2504
2504
  {
2505
- label: B.value[0] ?? (Array.isArray(t.value.data.metrics) && t.value.data.metrics.length > 0 ? String(t.value.data.metrics[0]) : "Series"),
2506
- labels: B.value,
2505
+ label: V.value[0] ?? (Array.isArray(t.value.data.metrics) && t.value.data.metrics.length > 0 ? String(t.value.data.metrics[0]) : "Series"),
2506
+ labels: V.value,
2507
2507
  data: t.value.data.datasets.map(
2508
2508
  (X, G) => s.value.includes(G) ? null : X.value
2509
2509
  ),
@@ -2525,11 +2525,11 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2525
2525
  }), Re(
2526
2526
  () => t.value.data.datasets,
2527
2527
  (p) => {
2528
- const V = new Set(
2528
+ const B = new Set(
2529
2529
  Array.isArray(p) ? p.map((X, G) => G) : []
2530
2530
  );
2531
2531
  s.value = s.value.filter(
2532
- (X) => V.has(X)
2532
+ (X) => B.has(X)
2533
2533
  );
2534
2534
  },
2535
2535
  { deep: !0 }
@@ -2542,18 +2542,18 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2542
2542
  ), g = v(
2543
2543
  () => b.value === "top" || b.value === "left"
2544
2544
  ), w = v(() => {
2545
- var V;
2546
- const p = (V = h.value.labels) == null ? void 0 : V.color;
2545
+ var B;
2546
+ const p = (B = h.value.labels) == null ? void 0 : B.color;
2547
2547
  return typeof p == "string" && p.trim().length > 0 ? p : t.value.legendColor ?? "#6b6b6b";
2548
2548
  }), x = v(() => d.value), A = xo();
2549
2549
  function P({ itemIndex: p }) {
2550
2550
  if (s.value.includes(p)) {
2551
- s.value = s.value.filter((V) => V !== p);
2551
+ s.value = s.value.filter((B) => B !== p);
2552
2552
  return;
2553
2553
  }
2554
2554
  s.value = [...s.value, p];
2555
2555
  }
2556
- return (p, V) => {
2556
+ return (p, B) => {
2557
2557
  const X = ve("FmPieChart");
2558
2558
  return Y(), ge("div", $r, [
2559
2559
  yt(p.$slots, "menu"),
@@ -2585,7 +2585,7 @@ const Vr = { class: "widget-content" }, Ar = /* @__PURE__ */ at({
2585
2585
  class: "circular",
2586
2586
  percentage: "70%",
2587
2587
  datasets: H.value,
2588
- metrics: B.value,
2588
+ metrics: V.value,
2589
2589
  tooltip: r(A),
2590
2590
  variant: "doughnut",
2591
2591
  legend: {
@@ -2636,7 +2636,7 @@ const Pr = { class: "flex flex-col gap-1" }, zr = { class: "fm-typo-en-title-md-
2636
2636
  },
2637
2637
  emits: ["update:modelValue"],
2638
2638
  setup(e) {
2639
- const n = ct(e, "modelValue"), { t } = wt(), { compareDateRange: a, defaultDateSetting: l } = vt(Gt()), { country: s } = Bn(), i = v(() => {
2639
+ const n = ct(e, "modelValue"), { t } = wt(), { compareDateRange: a, defaultDateSetting: l } = vt(Gt()), { country: s } = Vn(), i = v(() => {
2640
2640
  var d;
2641
2641
  return ((d = n.value.data) == null ? void 0 : d.value) || "";
2642
2642
  }), h = v(() => cn(i.value)), c = v(() => {
@@ -2653,14 +2653,14 @@ const Pr = { class: "flex flex-col gap-1" }, zr = { class: "fm-typo-en-title-md-
2653
2653
  return "line";
2654
2654
  }
2655
2655
  }
2656
- const B = v(() => {
2656
+ const V = v(() => {
2657
2657
  var d;
2658
2658
  return (d = n.value.data) == null ? void 0 : d.sparkline;
2659
2659
  }), H = v(() => ({
2660
2660
  display: !1,
2661
2661
  beginAtZero: !1,
2662
2662
  grace: "20%"
2663
- })), T = v(() => B.value.datasets.map((d) => ({
2663
+ })), T = v(() => V.value.datasets.map((d) => ({
2664
2664
  label: d.name,
2665
2665
  data: d.values,
2666
2666
  fill: !0,
@@ -2722,8 +2722,8 @@ const Pr = { class: "flex flex-col gap-1" }, zr = { class: "fm-typo-en-title-md-
2722
2722
  _: 1
2723
2723
  }, 8, ["disabled"])
2724
2724
  ]),
2725
- B.value ? (Y(), ge("div", Wr, [
2726
- _(B.value.type) === "line" ? (Y(), we(f, {
2725
+ V.value ? (Y(), ge("div", Wr, [
2726
+ _(V.value.type) === "line" ? (Y(), we(f, {
2727
2727
  key: 0,
2728
2728
  class: "sparkline",
2729
2729
  datasets: T.value,
@@ -2731,7 +2731,7 @@ const Pr = { class: "flex flex-col gap-1" }, zr = { class: "fm-typo-en-title-md-
2731
2731
  display: !1
2732
2732
  },
2733
2733
  datalabels: { display: !1 },
2734
- "x-axis": { categories: B.value.dimensions },
2734
+ "x-axis": { categories: V.value.dimensions },
2735
2735
  "y-cfg": H.value,
2736
2736
  "x-cfg": { display: !1 },
2737
2737
  tooltip: C.value,
@@ -2782,7 +2782,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2782
2782
  b.forEach((x) => x.classList.remove("toggleEditResize")), f.forEach((x) => x.classList.remove("toggleEditResize")), g.forEach((x) => x.remove()), w.forEach((x) => x.remove()), t.value = !1;
2783
2783
  }, _ = () => {
2784
2784
  e.value = 0, n.value = [];
2785
- }, B = (b, f) => {
2785
+ }, V = (b, f) => {
2786
2786
  if (f) {
2787
2787
  const g = document.querySelectorAll(`thead th:nth-child(${b + 1})`), w = document.querySelectorAll(`tbody td:nth-child(${b + 1})`);
2788
2788
  [...g, ...w].forEach((x) => {
@@ -2810,16 +2810,16 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2810
2810
  const x = w.querySelectorAll("th")[f];
2811
2811
  if (!x) return;
2812
2812
  const A = x.getBoundingClientRect().width || 60, P = x.querySelector("button"), p = (P == null ? void 0 : P.querySelector("span")) || x.querySelector("p") || x;
2813
- let V = 60;
2813
+ let B = 60;
2814
2814
  if (p) {
2815
2815
  const ie = p.textContent || "", D = window.getComputedStyle(p), q = `${D.fontWeight} ${D.fontSize} ${D.fontFamily}`, N = document.createElement("canvas").getContext("2d");
2816
2816
  if (N) {
2817
2817
  N.font = q;
2818
2818
  const $ = N.measureText(ie), R = window.getComputedStyle(x), re = parseFloat(R.paddingLeft || "0"), pe = parseFloat(R.paddingRight || "0");
2819
- V = $.width + re + pe;
2819
+ B = $.width + re + pe;
2820
2820
  }
2821
2821
  }
2822
- B(f, !1);
2822
+ V(f, !1);
2823
2823
  let X = null, G = null;
2824
2824
  const oe = () => {
2825
2825
  if (G === null) return;
@@ -2831,7 +2831,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2831
2831
  }), w.classList.remove("w-full"), w.style.width = `${D}px`, X = null;
2832
2832
  }, te = (ie) => {
2833
2833
  const D = ie.clientX - g;
2834
- G = Math.max(V, A + D), X === null && (X = requestAnimationFrame(oe));
2834
+ G = Math.max(B, A + D), X === null && (X = requestAnimationFrame(oe));
2835
2835
  }, ce = () => {
2836
2836
  X !== null && cancelAnimationFrame(X), G !== null && (x.style.width = `${G}px`);
2837
2837
  const ie = w.querySelectorAll("th"), D = [];
@@ -2862,7 +2862,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2862
2862
  enableEditMode: h,
2863
2863
  disableEditMode: c,
2864
2864
  resetStore: _,
2865
- highlightCol: B,
2865
+ highlightCol: V,
2866
2866
  highlightRows: H,
2867
2867
  removeRowHighlight: T,
2868
2868
  removeColHighlight: C,
@@ -2873,17 +2873,17 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2873
2873
  b && b.classList.remove("sticky");
2874
2874
  const x = (A, P) => {
2875
2875
  const p = document.createElement("div");
2876
- return p.className = `${A}-resize-handle`, A === "col" ? (p.addEventListener("mouseenter", () => B(P, !0)), p.addEventListener("mouseleave", () => C(!0)), p.addEventListener("mousedown", (V) => {
2877
- V.stopPropagation(), d(V, P);
2878
- })) : (p.addEventListener("mouseenter", () => H(!0)), p.addEventListener("mouseleave", () => T(!0)), p.addEventListener("mousedown", (V) => {
2879
- V.stopPropagation(), F(V);
2876
+ return p.className = `${A}-resize-handle`, A === "col" ? (p.addEventListener("mouseenter", () => V(P, !0)), p.addEventListener("mouseleave", () => C(!0)), p.addEventListener("mousedown", (B) => {
2877
+ B.stopPropagation(), d(B, P);
2878
+ })) : (p.addEventListener("mouseenter", () => H(!0)), p.addEventListener("mouseleave", () => T(!0)), p.addEventListener("mousedown", (B) => {
2879
+ B.stopPropagation(), F(B);
2880
2880
  })), p;
2881
2881
  };
2882
2882
  w.forEach((A) => {
2883
2883
  const P = A.closest("thead") !== null;
2884
- A.querySelectorAll(P ? "th" : "td").forEach((V, X) => {
2884
+ A.querySelectorAll(P ? "th" : "td").forEach((B, X) => {
2885
2885
  const G = x("col", X), oe = x("row", X);
2886
- V.appendChild(G), V.appendChild(oe);
2886
+ B.appendChild(G), B.appendChild(oe);
2887
2887
  });
2888
2888
  }), h();
2889
2889
  },
@@ -2891,7 +2891,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2891
2891
  c();
2892
2892
  }
2893
2893
  };
2894
- }), Xr = "/assets/processTableData.worker-C1Lshb3k.js", Gr = { class: "my-4" }, jr = {
2894
+ }), Xr = "/assets/processTableData.worker-V2pxR4IU.js", Gr = { class: "my-4" }, jr = {
2895
2895
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
2896
2896
  style: { backgroundColor: "#f9f9f9" }
2897
2897
  }, Jr = { class: "font-bold" }, Zr = { class: "text-fm-color-neutral-gray-300" }, Qr = /* @__PURE__ */ at({
@@ -2904,7 +2904,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2904
2904
  }),
2905
2905
  emits: ["update:modelValue"],
2906
2906
  setup(e) {
2907
- const { t: n, te: t } = wt(), a = ct(e, "modelValue"), { country: l } = Bn(), { clearTileSorts: s, setTileSorts: i } = Ja(), h = Vn(), c = e, _ = L([]), { isEditing: B, colWidths: H, rowHeight: T } = vt(ia()), { setColWidths: C, setRowHeights: d, enableCellResizing: F } = ia(), M = L(null), I = v(() => {
2907
+ const { t: n, te: t } = wt(), a = ct(e, "modelValue"), { country: l } = Vn(), { clearTileSorts: s, setTileSorts: i } = Ja(), h = Bn(), c = e, _ = L([]), { isEditing: V, colWidths: H, rowHeight: T } = vt(ia()), { setColWidths: C, setRowHeights: d, enableCellResizing: F } = ia(), M = L(null), I = v(() => {
2908
2908
  var D;
2909
2909
  return ((D = a.value.data) == null ? void 0 : D.columns) || [{ label: "", key: "" }];
2910
2910
  }), b = v(() => {
@@ -2966,14 +2966,14 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2966
2966
  s();
2967
2967
  });
2968
2968
  const p = L([]);
2969
- let V = 0, X;
2969
+ let B = 0, X;
2970
2970
  function G() {
2971
2971
  var $;
2972
2972
  if (!(($ = a.value) != null && $.data)) {
2973
2973
  p.value = [];
2974
2974
  return;
2975
2975
  }
2976
- const D = ++V, q = (a.value.data.rows || []).map((R) => ({
2976
+ const D = ++B, q = (a.value.data.rows || []).map((R) => ({
2977
2977
  isRollup: R.isRollup,
2978
2978
  cells: Array.isArray(R.cells) ? [...R.cells] : [],
2979
2979
  comparisonCells: Array.isArray(R.comparisonCells) ? [...R.comparisonCells] : []
@@ -2993,7 +2993,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
2993
2993
  pageSize: x.value
2994
2994
  };
2995
2995
  Za(Xr, N).then((R) => {
2996
- D === V && (R != null && R.error ? (h.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(R.error), p.value = []) : p.value = Xa(R.data || []));
2996
+ D === B && (R != null && R.error ? (h.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(R.error), p.value = []) : p.value = Xa(R.data || []));
2997
2997
  });
2998
2998
  }
2999
2999
  Re(
@@ -3088,7 +3088,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3088
3088
  return Re(
3089
3089
  () => H.value.length > 0,
3090
3090
  async (D) => {
3091
- D && B.value && (await tt(), F());
3091
+ D && V.value && (await tt(), F());
3092
3092
  }
3093
3093
  ), Re(
3094
3094
  [() => ie.value],
@@ -3101,7 +3101,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3101
3101
  if (!q) return;
3102
3102
  q.classList.add(ce.value ? "table-fixed" : "table-auto");
3103
3103
  let z, N;
3104
- B.value ? (F(), z = H.value, N = T.value) : (N = a.value.rowHeight, z = a.value.colWidths), typeof N == "number" && d(N, D), z == null || z.forEach((R, re) => {
3104
+ V.value ? (F(), z = H.value, N = T.value) : (N = a.value.rowHeight, z = a.value.colWidths), typeof N == "number" && d(N, D), z == null || z.forEach((R, re) => {
3105
3105
  C(re, R, D);
3106
3106
  });
3107
3107
  },
@@ -3173,7 +3173,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3173
3173
  tooltipOptions: h,
3174
3174
  handleTooltipDetailsSheetVisibility: c,
3175
3175
  handleTooltipDetailsHover: _,
3176
- handleTooltipDetailsLeave: B
3176
+ handleTooltipDetailsLeave: V
3177
3177
  } = en(a, {
3178
3178
  maxTooltipItems: l
3179
3179
  }), H = v(() => {
@@ -3189,7 +3189,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3189
3189
  ), w = Jt("bar"), x = v(() => t.value.stackBarOverlap === !0), A = v(() => x.value === !1), P = v(() => {
3190
3190
  const R = I.value.position;
3191
3191
  return !R || R === "top" || R === "bottom" || R === "left" || R === "right";
3192
- }), p = v(() => I.value.position ?? "top"), V = v(
3192
+ }), p = v(() => I.value.position ?? "top"), B = v(
3193
3193
  () => p.value === "left" || p.value === "right"
3194
3194
  ), X = v(
3195
3195
  () => p.value === "top" || p.value === "left"
@@ -3280,7 +3280,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3280
3280
  J("div", el, [
3281
3281
  yt(R.$slots, "menu"),
3282
3282
  J("div", {
3283
- class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(I).display ?? !1) && V.value }])
3283
+ class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(I).display ?? !1) && B.value }])
3284
3284
  }, [
3285
3285
  P.value && (r(I).display ?? !1) && X.value ? (Y(), we(lt, {
3286
3286
  key: 0,
@@ -3317,8 +3317,8 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3317
3317
  datalabels: r(C),
3318
3318
  "maintain-aspect-ratio": !1,
3319
3319
  style: Ze({
3320
- "--chart-width": P.value && (r(I).display ?? !1) && V.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(b) !== void 0 ? r(b) + "px" : "100%",
3321
- "--chart-height": P.value && (r(I).display ?? !1) && !V.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(f) !== void 0 ? r(f) + "px" : "100%"
3320
+ "--chart-width": P.value && (r(I).display ?? !1) && B.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(b) !== void 0 ? r(b) + "px" : "100%",
3321
+ "--chart-height": P.value && (r(I).display ?? !1) && !B.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(f) !== void 0 ? r(f) + "px" : "100%"
3322
3322
  })
3323
3323
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
3324
3324
  P.value && (r(I).display ?? !1) && !X.value ? (Y(), we(lt, {
@@ -3345,7 +3345,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3345
3345
  "details-payload": r(i),
3346
3346
  "onUpdate:modelValue": r(c),
3347
3347
  onValueHover: r(_),
3348
- onValueLeave: r(B)
3348
+ onValueLeave: r(V)
3349
3349
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3350
3350
  ], 64);
3351
3351
  };
@@ -3366,7 +3366,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3366
3366
  tooltipOptions: h,
3367
3367
  handleTooltipDetailsSheetVisibility: c,
3368
3368
  handleTooltipDetailsHover: _,
3369
- handleTooltipDetailsLeave: B
3369
+ handleTooltipDetailsLeave: V
3370
3370
  } = en(a, {
3371
3371
  maxTooltipItems: l
3372
3372
  }), H = v(() => {
@@ -3382,7 +3382,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3382
3382
  ), w = Jt("bar"), x = v(() => t.value.stackBarOverlap === !0), A = v(() => x.value === !1), P = v(() => {
3383
3383
  const O = I.value.position;
3384
3384
  return !O || O === "top" || O === "bottom" || O === "left" || O === "right";
3385
- }), p = v(() => I.value.position ?? "top"), V = v(
3385
+ }), p = v(() => I.value.position ?? "top"), B = v(
3386
3386
  () => p.value === "left" || p.value === "right"
3387
3387
  ), X = v(
3388
3388
  () => p.value === "top" || p.value === "left"
@@ -3494,7 +3494,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3494
3494
  J("div", nl, [
3495
3495
  yt(O.$slots, "menu"),
3496
3496
  J("div", {
3497
- class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(I).display ?? !1) && V.value }])
3497
+ class: Ye(["chart-layout", { "chart-layout--side": P.value && (r(I).display ?? !1) && B.value }])
3498
3498
  }, [
3499
3499
  P.value && (r(I).display ?? !1) && X.value ? (Y(), we(lt, {
3500
3500
  key: 0,
@@ -3531,8 +3531,8 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3531
3531
  datalabels: r(C),
3532
3532
  "maintain-aspect-ratio": !1,
3533
3533
  style: Ze({
3534
- "--chart-width": P.value && (r(I).display ?? !1) && V.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(b) !== void 0 ? r(b) + "px" : "100%",
3535
- "--chart-height": P.value && (r(I).display ?? !1) && !V.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(f) !== void 0 ? r(f) + "px" : "100%"
3534
+ "--chart-width": P.value && (r(I).display ?? !1) && B.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(b) !== void 0 ? r(b) + "px" : "100%",
3535
+ "--chart-height": P.value && (r(I).display ?? !1) && !B.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(f) !== void 0 ? r(f) + "px" : "100%"
3536
3536
  })
3537
3537
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
3538
3538
  P.value && (r(I).display ?? !1) && !X.value ? (Y(), we(lt, {
@@ -3559,7 +3559,7 @@ const qr = /* @__PURE__ */ ga(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3559
3559
  "details-payload": r(i),
3560
3560
  "onUpdate:modelValue": r(c),
3561
3561
  onValueHover: r(_),
3562
- onValueLeave: r(B)
3562
+ onValueLeave: r(V)
3563
3563
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3564
3564
  ], 64);
3565
3565
  };
@@ -3597,7 +3597,7 @@ const rl = { class: "widget-content" }, ll = /* @__PURE__ */ at({
3597
3597
  tooltipOptions: h,
3598
3598
  handleTooltipDetailsSheetVisibility: c,
3599
3599
  handleTooltipDetailsHover: _,
3600
- handleTooltipDetailsLeave: B
3600
+ handleTooltipDetailsLeave: V
3601
3601
  } = en(a, {
3602
3602
  maxTooltipItems: l
3603
3603
  }), H = v(() => {
@@ -3615,10 +3615,10 @@ const rl = { class: "widget-content" }, ll = /* @__PURE__ */ at({
3615
3615
  ), A = Jt("line"), P = Fa("report-line-style-plugin-stack-line"), p = v(() => {
3616
3616
  const N = f.value.position;
3617
3617
  return !N || N === "top" || N === "bottom" || N === "left" || N === "right";
3618
- }), V = v(() => f.value.position ?? "top"), X = v(
3619
- () => V.value === "left" || V.value === "right"
3618
+ }), B = v(() => f.value.position ?? "top"), X = v(
3619
+ () => B.value === "left" || B.value === "right"
3620
3620
  ), G = v(
3621
- () => V.value === "top" || V.value === "left"
3621
+ () => B.value === "top" || B.value === "left"
3622
3622
  ), oe = v(() => d.value.length > 0 ? [
3623
3623
  ...d.value.map((N, $) => {
3624
3624
  var ke;
@@ -3697,7 +3697,7 @@ const rl = { class: "widget-content" }, ll = /* @__PURE__ */ at({
3697
3697
  key: 0,
3698
3698
  "chart-ref": a.value,
3699
3699
  enabled: r(f).display ?? !1,
3700
- position: V.value,
3700
+ position: B.value,
3701
3701
  "max-width": r(f).maxWidth,
3702
3702
  "text-color": (re = r(f).labels) == null ? void 0 : re.color,
3703
3703
  "font-size": (O = (pe = r(f).labels) == null ? void 0 : pe.font) == null ? void 0 : O.size,
@@ -3736,7 +3736,7 @@ const rl = { class: "widget-content" }, ll = /* @__PURE__ */ at({
3736
3736
  key: 1,
3737
3737
  "chart-ref": a.value,
3738
3738
  enabled: r(f).display ?? !1,
3739
- position: V.value,
3739
+ position: B.value,
3740
3740
  "max-width": r(f).maxWidth,
3741
3741
  "text-color": (ne = r(f).labels) == null ? void 0 : ne.color,
3742
3742
  "font-size": (ye = (ee = r(f).labels) == null ? void 0 : ee.font) == null ? void 0 : ye.size,
@@ -3756,7 +3756,7 @@ const rl = { class: "widget-content" }, ll = /* @__PURE__ */ at({
3756
3756
  "details-payload": r(i),
3757
3757
  "onUpdate:modelValue": r(c),
3758
3758
  onValueHover: r(_),
3759
- onValueLeave: r(B)
3759
+ onValueLeave: r(V)
3760
3760
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3761
3761
  ], 64);
3762
3762
  };
@@ -3800,7 +3800,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
3800
3800
  tooltipOptions: h,
3801
3801
  handleTooltipDetailsSheetVisibility: c,
3802
3802
  handleTooltipDetailsHover: _,
3803
- handleTooltipDetailsLeave: B
3803
+ handleTooltipDetailsLeave: V
3804
3804
  } = en(a, {
3805
3805
  maxTooltipItems: l
3806
3806
  }), H = v(() => {
@@ -3815,7 +3815,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
3815
3815
  t.value
3816
3816
  ), A = v(
3817
3817
  () => Ot(t.value.isTransposed === !0, !0, h.value)
3818
- ), P = Jt("line"), p = Fa("report-line-style-plugin-line"), V = v(() => {
3818
+ ), P = Jt("line"), p = Fa("report-line-style-plugin-line"), B = v(() => {
3819
3819
  const $ = g.value.position;
3820
3820
  return !$ || $ === "top" || $ === "bottom" || $ === "left" || $ === "right";
3821
3821
  }), X = v(() => g.value.position ?? "top"), G = v(
@@ -3897,9 +3897,9 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
3897
3897
  J("div", cl, [
3898
3898
  yt($.$slots, "menu"),
3899
3899
  J("div", {
3900
- class: Ye(["chart-layout", { "chart-layout--side": V.value && (r(g).display ?? !1) && G.value }])
3900
+ class: Ye(["chart-layout", { "chart-layout--side": B.value && (r(g).display ?? !1) && G.value }])
3901
3901
  }, [
3902
- V.value && (r(g).display ?? !1) && oe.value ? (Y(), we(lt, {
3902
+ B.value && (r(g).display ?? !1) && oe.value ? (Y(), we(lt, {
3903
3903
  key: 0,
3904
3904
  "chart-ref": a.value,
3905
3905
  enabled: r(g).display ?? !1,
@@ -3933,11 +3933,11 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
3933
3933
  plugins: [r(P), r(p)],
3934
3934
  "maintain-aspect-ratio": !1,
3935
3935
  style: Ze({
3936
- "--chart-width": V.value && (r(g).display ?? !1) && G.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(w) !== void 0 ? r(w) + "px" : "100%",
3937
- "--chart-height": V.value && (r(g).display ?? !1) && !G.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(x) !== void 0 ? r(x) + "px" : "100%"
3936
+ "--chart-width": B.value && (r(g).display ?? !1) && G.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(w) !== void 0 ? r(w) + "px" : "100%",
3937
+ "--chart-height": B.value && (r(g).display ?? !1) && !G.value ? "calc(100% - var(--legend-panel-height, 0px))" : r(x) !== void 0 ? r(x) + "px" : "100%"
3938
3938
  })
3939
3939
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
3940
- V.value && (r(g).display ?? !1) && !oe.value ? (Y(), we(lt, {
3940
+ B.value && (r(g).display ?? !1) && !oe.value ? (Y(), we(lt, {
3941
3941
  key: 1,
3942
3942
  "chart-ref": a.value,
3943
3943
  enabled: r(g).display ?? !1,
@@ -3961,7 +3961,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
3961
3961
  "details-payload": r(i),
3962
3962
  "onUpdate:modelValue": r(c),
3963
3963
  onValueHover: r(_),
3964
- onValueLeave: r(B)
3964
+ onValueLeave: r(V)
3965
3965
  }, null, 8, ["model-value", "details-payload", "onUpdate:modelValue", "onValueHover", "onValueLeave"])
3966
3966
  ], 64);
3967
3967
  };
@@ -3977,7 +3977,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
3977
3977
  }),
3978
3978
  emits: ["update:modelValue"],
3979
3979
  setup(e) {
3980
- const { t: n } = wt(), { FmForm: t } = mo, a = e, l = L(), s = ct(e, "modelValue"), i = L(!0), h = L(!1), c = Vn(), { selectedLocationIds: _, dateRange: B, timeRange: H } = vt(Gt()), T = L(vn.PORTRAIT);
3980
+ const { t: n } = wt(), { FmForm: t } = mo, a = e, l = L(), s = ct(e, "modelValue"), i = L(!0), h = L(!1), c = Bn(), { selectedLocationIds: _, dateRange: V, timeRange: H } = vt(Gt()), T = L(vn.PORTRAIT);
3981
3981
  function C() {
3982
3982
  var F;
3983
3983
  (F = l.value) == null || F.validateInputs();
@@ -3991,7 +3991,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
3991
3991
  orientationTypes: [T.value],
3992
3992
  isCombinedLocationLayout: i.value,
3993
3993
  timeRange: H.value,
3994
- dateRange: B.value,
3994
+ dateRange: V.value,
3995
3995
  locationIds: _.value
3996
3996
  });
3997
3997
  } catch (F) {
@@ -4062,7 +4062,7 @@ const cl = { class: "widget-content" }, dl = /* @__PURE__ */ at({
4062
4062
  });
4063
4063
  function pl(e) {
4064
4064
  const { breakpoints: n } = fn(), { containerRef: t, isTable: a = L(!0) } = e;
4065
- let l = L(1), s = null, i = null, h = null, c = null, _ = null, B = null;
4065
+ let l = L(1), s = null, i = null, h = null, c = null, _ = null, V = null;
4066
4066
  function H() {
4067
4067
  return t.value ? t.value.querySelector("table") : null;
4068
4068
  }
@@ -4071,8 +4071,8 @@ function pl(e) {
4071
4071
  const x = [];
4072
4072
  t.value && t.value.querySelectorAll("div,section,main,article,aside").forEach((p) => {
4073
4073
  if (p.scrollWidth > p.clientWidth) {
4074
- const V = window.getComputedStyle(p);
4075
- (V.overflowX === "auto" || V.overflowX === "scroll") && x.push(p);
4074
+ const B = window.getComputedStyle(p);
4075
+ (B.overflowX === "auto" || B.overflowX === "scroll") && x.push(p);
4076
4076
  }
4077
4077
  });
4078
4078
  let A = (P = t.value) == null ? void 0 : P.parentElement;
@@ -4110,10 +4110,10 @@ function pl(e) {
4110
4110
  }
4111
4111
  function d(x, A) {
4112
4112
  const P = x.querySelectorAll("th, td"), p = A.querySelectorAll("th, td");
4113
- P.forEach((V, X) => {
4113
+ P.forEach((B, X) => {
4114
4114
  const G = p[X];
4115
4115
  if (!G) return;
4116
- const oe = V, te = window.getComputedStyle(oe);
4116
+ const oe = B, te = window.getComputedStyle(oe);
4117
4117
  Object.assign(G.style, {
4118
4118
  width: `${oe.offsetWidth}px`,
4119
4119
  minWidth: `${oe.offsetWidth}px`,
@@ -4200,9 +4200,9 @@ function pl(e) {
4200
4200
  P && d(h, P), M();
4201
4201
  }
4202
4202
  };
4203
- B = new MutationObserver((P) => {
4204
- P.some((V) => V.type === "childList" ? V.addedNodes.length > 0 || V.removedNodes.length > 0 : !1) ? x() : A();
4205
- }), B.observe(h, {
4203
+ V = new MutationObserver((P) => {
4204
+ P.some((B) => B.type === "childList" ? B.addedNodes.length > 0 || B.removedNodes.length > 0 : !1) ? x() : A();
4205
+ }), V.observe(h, {
4206
4206
  childList: !0,
4207
4207
  subtree: !0,
4208
4208
  attributes: !0,
@@ -4220,7 +4220,7 @@ function pl(e) {
4220
4220
  A.removeEventListener("scroll", _), A = A.parentElement;
4221
4221
  _ = null;
4222
4222
  }
4223
- c && (c.disconnect(), c = null), B && (B.disconnect(), B = null), i = null, h = null;
4223
+ c && (c.disconnect(), c = null), V && (V.disconnect(), V = null), i = null, h = null;
4224
4224
  }
4225
4225
  function w() {
4226
4226
  C();
@@ -4270,11 +4270,11 @@ const vl = {
4270
4270
  }),
4271
4271
  emits: ["update:modelValue"],
4272
4272
  setup(e) {
4273
- const n = L(!0), t = ct(e, "modelValue"), a = t.value.widget.config, { t: l, te: s, locale: i } = wt(), h = e, c = L(null), _ = v(() => t.value.widget.type === se.Table), B = v(() => {
4273
+ const n = L(!0), t = ct(e, "modelValue"), a = t.value.widget.config, { t: l, te: s, locale: i } = wt(), h = e, c = L(null), _ = v(() => t.value.widget.type === se.Table), V = v(() => {
4274
4274
  var k;
4275
4275
  return (k = c.value) == null ? void 0 : k.$el;
4276
4276
  }), { refresh: H } = pl({
4277
- containerRef: B,
4277
+ containerRef: V,
4278
4278
  isTable: _
4279
4279
  }), T = L(a.rollup), C = L(Xt()), d = L(a.drillDimension), F = v(() => {
4280
4280
  if (ut.value.length > 0) {
@@ -4288,26 +4288,26 @@ const vl = {
4288
4288
  () => F.value != ut.value.length - 1
4289
4289
  ), b = L(a.showTitle ?? !0), f = L(a.titleFontSize ?? 14), g = L(a.titleBold ?? !1), w = L(a.titleItalic ?? !1), x = L(a.titleUnderline ?? !1), A = L(a.chartWidth ?? void 0), P = L(a.chartHeight ?? void 0), p = L(
4290
4290
  Array.isArray(a.chartColors) ? [...a.chartColors] : void 0
4291
- ), V = L(
4291
+ ), B = L(
4292
4292
  Array.isArray(a.chartColorLayers) ? [...a.chartColorLayers] : void 0
4293
4293
  ), X = L(
4294
4294
  Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
4295
4295
  ), G = L(a.chartUseSecondaryMetricShades ?? !0), oe = L(a.chartColorBinding), te = L(
4296
4296
  Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
4297
- ), ce = L(a.lineStyleBinding), ie = L(a.showLabel ?? !1), D = L(a.labelAlign ?? kn.center), q = L(a.labelAnchor ?? _n.center), z = L(a.labelRotation ?? 0), N = L(a.labelOffset ?? 0), $ = L(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = L(a.showX ?? !0), pe = L(a.xPosition ?? Tn.bottom), O = L(a.showXGrid ?? !1), ne = L(a.showXTick ?? !0), ee = L(a.xTickFontSize ?? 12), ye = L(a.showXTitle ?? !1), Ce = L(a.xTitle ?? ""), ke = L(a.xTitleFontSize ?? 12), ue = L(a.showY ?? !0), We = L(a.yPosition ?? Ln.left), Pe = L(a.showYGrid ?? !1), u = L(a.showYTick ?? !0), E = L(a.yTickFontSize ?? 12), Q = L(a.showYTitle ?? !1), Z = L(a.yTitle ?? ""), be = L(a.yTitleFontSize ?? 12), ze = L(a.showLegend ?? void 0), Xe = L(a.legendPosition ?? Dn.top), Ne = L(a.usePointStyle ?? !0), je = L(a.legendFontSize), Fe = L(a.legendColor ?? "#6b6b6b"), de = L(a.legendMaxWidth), W = L(a.maxTooltipItems), Se = L(a.stackBarOverlap ?? !1), Te = L(a.rowHeight ?? 0), Le = L(a.colWidths ?? []), He = L(!1), Be = L(""), { breakpoints: De, getBreakpointsBoundary: Ee } = fn(), Oe = L(), Ue = v(
4297
+ ), ce = L(a.lineStyleBinding), ie = L(a.showLabel ?? !1), D = L(a.labelAlign ?? kn.center), q = L(a.labelAnchor ?? _n.center), z = L(a.labelRotation ?? 0), N = L(a.labelOffset ?? 0), $ = L(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = L(a.showX ?? !0), pe = L(a.xPosition ?? Tn.bottom), O = L(a.showXGrid ?? !1), ne = L(a.showXTick ?? !0), ee = L(a.xTickFontSize ?? 12), ye = L(a.showXTitle ?? !1), Ce = L(a.xTitle ?? ""), ke = L(a.xTitleFontSize ?? 12), ue = L(a.showY ?? !0), We = L(a.yPosition ?? Ln.left), Pe = L(a.showYGrid ?? !1), u = L(a.showYTick ?? !0), E = L(a.yTickFontSize ?? 12), Q = L(a.showYTitle ?? !1), Z = L(a.yTitle ?? ""), be = L(a.yTitleFontSize ?? 12), ze = L(a.showLegend ?? void 0), Xe = L(a.legendPosition ?? Dn.top), Ne = L(a.usePointStyle ?? !0), je = L(a.legendFontSize), Fe = L(a.legendColor ?? "#6b6b6b"), de = L(a.legendMaxWidth), W = L(a.maxTooltipItems), Se = L(a.stackBarOverlap ?? !1), Te = L(a.rowHeight ?? 0), Le = L(a.colWidths ?? []), He = L(!1), Ve = L(""), { breakpoints: De, getBreakpointsBoundary: Ee } = fn(), Oe = L(), Ue = v(
4298
4298
  () => h.customScreenWidth === void 0 ? window.innerWidth : h.customScreenWidth
4299
- ), Ve = v(
4299
+ ), Be = v(
4300
4300
  () => (Ue == null ? void 0 : Ue.value) > Ee("xs")[1] && (Ue == null ? void 0 : Ue.value) <= Ee("sm")[1]
4301
4301
  ), nn = v(
4302
4302
  () => (Ue == null ? void 0 : Ue.value) > Ee("sm")[1] && (Ue == null ? void 0 : Ue.value) <= Ee("md")[1]
4303
4303
  ), hn = v(() => (Ue == null ? void 0 : Ue.value) > Ee("md")[1]), mn = v(() => {
4304
4304
  const k = t.value.size.width;
4305
- return hn.value || nn.value ? sl(k) : Ve.value ? il(k) : ul(k);
4305
+ return hn.value || nn.value ? sl(k) : Be.value ? il(k) : ul(k);
4306
4306
  }), Dt = v(
4307
4307
  () => po.find((k) => k.type === t.value.widget.type)
4308
4308
  ), o = Cn(() => {
4309
4309
  var k;
4310
- Oe.value = Va((k = c.value) == null ? void 0 : k.$el.offsetWidth), C.value = Xt();
4310
+ Oe.value = Ba((k = c.value) == null ? void 0 : k.$el.offsetWidth), C.value = Xt();
4311
4311
  }), y = v(() => {
4312
4312
  if (vo(le.value.type, m.value))
4313
4313
  switch (t.value.widget.type) {
@@ -4341,7 +4341,7 @@ const vl = {
4341
4341
  timeRange: ae,
4342
4342
  globalFilters: he,
4343
4343
  isGlobalFiltersLoading: j
4344
- } = vt(Gt()), { businessId: _e } = vt(Bn()), { businessLoadedId: Ae, businessDataVersion: xe } = vt(Gt());
4344
+ } = vt(Gt()), { businessId: _e } = vt(Vn()), { businessLoadedId: Ae, businessDataVersion: xe } = vt(Gt());
4345
4345
  v(() => Ae.value === _e.value && S.value.length > 0 && !j.value);
4346
4346
  const me = L(!0), le = v(() => {
4347
4347
  const k = JSON.parse(JSON.stringify(t.value.widget));
@@ -4379,7 +4379,7 @@ const vl = {
4379
4379
  chartHeight: P.value,
4380
4380
  chartWidth: A.value,
4381
4381
  chartColors: p.value,
4382
- chartColorLayers: V.value,
4382
+ chartColorLayers: B.value,
4383
4383
  chartBreakdownColors: X.value,
4384
4384
  chartUseSecondaryMetricShades: G.value,
4385
4385
  chartColorBinding: oe.value,
@@ -4422,7 +4422,7 @@ const vl = {
4422
4422
  function dt() {
4423
4423
  return {
4424
4424
  data: m.value,
4425
- filterText: Be.value,
4425
+ filterText: Ve.value,
4426
4426
  rollupPosition: le.value.config.rollupPosition,
4427
4427
  grandTotalLabel: le.value.config.grandTotalLabel,
4428
4428
  rowHeight: Te.value,
@@ -4474,7 +4474,7 @@ const vl = {
4474
4474
  Re(
4475
4475
  () => t.value.widget.config,
4476
4476
  (k) => {
4477
- T.value = k.rollup, b.value = k.showTitle ?? !0, f.value = k.titleFontSize ?? 14, g.value = k.titleBold ?? !1, w.value = k.titleItalic ?? !1, x.value = k.titleUnderline ?? !1, P.value = k.chartHeight ?? void 0, A.value = k.chartWidth ?? void 0, p.value = Array.isArray(k.chartColors) ? [...k.chartColors] : void 0, V.value = Array.isArray(k.chartColorLayers) ? [...k.chartColorLayers] : void 0, X.value = Array.isArray(k.chartBreakdownColors) ? [...k.chartBreakdownColors] : void 0, G.value = k.chartUseSecondaryMetricShades ?? !0, oe.value = k.chartColorBinding, te.value = Array.isArray(k.lineStyles) ? [...k.lineStyles] : void 0, ce.value = k.lineStyleBinding, ie.value = k.showLabel ?? !1, D.value = k.labelAlign ?? kn.center, q.value = k.labelAnchor ?? _n.center, z.value = k.labelRotation ?? 0, N.value = k.labelOffset ?? 0, $.value = k.labelFontSize ?? 12, re.value = k.showX ?? !0, pe.value = k.xPosition ?? Tn.bottom, O.value = k.showXGrid ?? !1, ne.value = k.showXTick ?? !0, ee.value = k.xTickFontSize ?? 12, ye.value = k.showXTitle ?? !1, Ce.value = k.xTitle ?? "", ke.value = k.xTitleFontSize ?? 12, ue.value = k.showY ?? !0, We.value = k.yPosition ?? Ln.left, Pe.value = k.showYGrid ?? !0, u.value = k.showYTick ?? !0, E.value = k.yTickFontSize ?? 12, Q.value = k.showYTitle ?? !1, Z.value = k.yTitle ?? "", be.value = k.yTitleFontSize ?? 12, ze.value = k.showLegend ?? void 0, Xe.value = k.legendPosition ?? Dn.top, Ne.value = k.usePointStyle ?? !0, je.value = k.legendFontSize, Fe.value = k.legendColor ?? "#6b6b6b", de.value = k.legendMaxWidth, W.value = k.maxTooltipItems, Se.value = k.stackBarOverlap ?? !1, Te.value = k.rowHeight ?? 0, Le.value = k.colWidths ?? [], C.value = Xt();
4477
+ T.value = k.rollup, b.value = k.showTitle ?? !0, f.value = k.titleFontSize ?? 14, g.value = k.titleBold ?? !1, w.value = k.titleItalic ?? !1, x.value = k.titleUnderline ?? !1, P.value = k.chartHeight ?? void 0, A.value = k.chartWidth ?? void 0, p.value = Array.isArray(k.chartColors) ? [...k.chartColors] : void 0, B.value = Array.isArray(k.chartColorLayers) ? [...k.chartColorLayers] : void 0, X.value = Array.isArray(k.chartBreakdownColors) ? [...k.chartBreakdownColors] : void 0, G.value = k.chartUseSecondaryMetricShades ?? !0, oe.value = k.chartColorBinding, te.value = Array.isArray(k.lineStyles) ? [...k.lineStyles] : void 0, ce.value = k.lineStyleBinding, ie.value = k.showLabel ?? !1, D.value = k.labelAlign ?? kn.center, q.value = k.labelAnchor ?? _n.center, z.value = k.labelRotation ?? 0, N.value = k.labelOffset ?? 0, $.value = k.labelFontSize ?? 12, re.value = k.showX ?? !0, pe.value = k.xPosition ?? Tn.bottom, O.value = k.showXGrid ?? !1, ne.value = k.showXTick ?? !0, ee.value = k.xTickFontSize ?? 12, ye.value = k.showXTitle ?? !1, Ce.value = k.xTitle ?? "", ke.value = k.xTitleFontSize ?? 12, ue.value = k.showY ?? !0, We.value = k.yPosition ?? Ln.left, Pe.value = k.showYGrid ?? !0, u.value = k.showYTick ?? !0, E.value = k.yTickFontSize ?? 12, Q.value = k.showYTitle ?? !1, Z.value = k.yTitle ?? "", be.value = k.yTitleFontSize ?? 12, ze.value = k.showLegend ?? void 0, Xe.value = k.legendPosition ?? Dn.top, Ne.value = k.usePointStyle ?? !0, je.value = k.legendFontSize, Fe.value = k.legendColor ?? "#6b6b6b", de.value = k.legendMaxWidth, W.value = k.maxTooltipItems, Se.value = k.stackBarOverlap ?? !1, Te.value = k.rowHeight ?? 0, Le.value = k.colWidths ?? [], C.value = Xt();
4478
4478
  },
4479
4479
  { deep: !0 }
4480
4480
  ), Re([() => T.value], () => {
@@ -4504,7 +4504,7 @@ const vl = {
4504
4504
  }), ha(() => {
4505
4505
  De.value.sm || De.value.md || De.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", o)) : removeEventListener("resize", o);
4506
4506
  });
4507
- const Kt = Vn();
4507
+ const Kt = Bn();
4508
4508
  let an;
4509
4509
  async function Wn() {
4510
4510
  if (!h.isStyleEditing) {
@@ -4524,7 +4524,7 @@ const vl = {
4524
4524
  }
4525
4525
  }
4526
4526
  }
4527
- function Va(k) {
4527
+ function Ba(k) {
4528
4528
  switch (t.value.widget.type) {
4529
4529
  case "SPACER":
4530
4530
  return;
@@ -4614,8 +4614,8 @@ const vl = {
4614
4614
  }, 8, ["content", "disabled"]),
4615
4615
  (Mt = Dt.value) != null && Mt.showSearchBar ? (Y(), we(xt, {
4616
4616
  key: 0,
4617
- modelValue: Be.value,
4618
- "onUpdate:modelValue": Ie[1] || (Ie[1] = (ht) => Be.value = ht),
4617
+ modelValue: Ve.value,
4618
+ "onUpdate:modelValue": Ie[1] || (Ie[1] = (ht) => Ve.value = ht),
4619
4619
  class: "grow"
4620
4620
  }, null, 8, ["modelValue"])) : (Y(), ge("div", vl)),
4621
4621
  Ga(fe(pn, {
@@ -4741,7 +4741,7 @@ function Gl({
4741
4741
  default: !0
4742
4742
  };
4743
4743
  case mt.Timestamp:
4744
- return Ba({
4744
+ return Va({
4745
4745
  dimensionOption: n,
4746
4746
  fixed: l,
4747
4747
  count: s,
@@ -4776,7 +4776,7 @@ function Jl(e) {
4776
4776
  return;
4777
4777
  }
4778
4778
  }
4779
- function Ba({
4779
+ function Va({
4780
4780
  dimensionOption: e,
4781
4781
  fixed: n,
4782
4782
  count: t,
@@ -4855,7 +4855,7 @@ function ua({
4855
4855
  dimensionOption: e,
4856
4856
  t: n
4857
4857
  }) {
4858
- const t = Ba({
4858
+ const t = Va({
4859
4859
  dimensionOption: e,
4860
4860
  fixed: !1,
4861
4861
  count: 1,
@@ -4898,7 +4898,7 @@ const Cl = va(bl, () => {
4898
4898
  function _(T) {
4899
4899
  n.value = T;
4900
4900
  }
4901
- function B(T) {
4901
+ function V(T) {
4902
4902
  t.value = T;
4903
4903
  }
4904
4904
  function H() {
@@ -4913,18 +4913,18 @@ const Cl = va(bl, () => {
4913
4913
  setGlobalFilter: h,
4914
4914
  showMore: c,
4915
4915
  setIncludeUnavailable: _,
4916
- openMenu: B,
4916
+ openMenu: V,
4917
4917
  closeMenu: H,
4918
4918
  getKey: ca
4919
4919
  };
4920
4920
  }), wl = { class: "flex flex-row flex-wrap gap-2" }, xl = { class: "inline-flex max-w-[460px]" }, Sl = {
4921
4921
  key: 0,
4922
4922
  class: "flex justify-center my-2"
4923
- }, _l = { class: "px-2 pb-8" }, kl = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Tl = { class: "px-2 pb-8" }, Ll = { class: "flex items-start w-full" }, Dl = ["onClick"], Il = { class: "fm-typo-en-body-md-400" }, Ml = { key: 0 }, Fl = { class: "px-12 py-3" }, Bl = { class: "flex items-center justify-between" }, Vl = { class: "text-xs max-w-[200px]" }, Al = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Yt = "(EMPTY)", Zl = /* @__PURE__ */ at({
4923
+ }, _l = { class: "px-2 pb-8" }, kl = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Tl = { class: "px-2 pb-8" }, Ll = { class: "flex items-start w-full" }, Dl = ["onClick"], Il = { class: "fm-typo-en-body-md-400" }, Ml = { key: 0 }, Fl = { class: "px-12 py-3" }, Vl = { class: "flex items-center justify-between" }, Bl = { class: "text-xs max-w-[200px]" }, Al = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Yt = "(EMPTY)", Zl = /* @__PURE__ */ at({
4924
4924
  __name: "FilterSelector",
4925
4925
  setup(e) {
4926
4926
  const { t: n, locale: t } = wt(), { currentReport: a, editingTile: l } = vt(eo());
4927
- let { globalFilters: s, isGlobalFiltersLoading: i, timeRange: h, dateRange: c, selectedLocationIds: _, timezone: B } = vt(Gt()), { schemas: H } = vt(to()), { showMore: T, getGlobalFilter: C, setGlobalFilter: d, setIncludeUnavailable: F, getKey: M, isMenuOpen: I } = Cl();
4927
+ let { globalFilters: s, isGlobalFiltersLoading: i, timeRange: h, dateRange: c, selectedLocationIds: _, timezone: V } = vt(Gt()), { schemas: H } = vt(to()), { showMore: T, getGlobalFilter: C, setGlobalFilter: d, setIncludeUnavailable: F, getKey: M, isMenuOpen: I } = Cl();
4928
4928
  const b = v(() => n("report.input.unknown"));
4929
4929
  let f = null;
4930
4930
  const g = L(!1), w = v(() => {
@@ -4941,7 +4941,7 @@ const Cl = va(bl, () => {
4941
4941
  function p(u) {
4942
4942
  u.options = [], u.selectedValues = [], u.filter.values = [], d(u.filter, w.value, "selectedValues", []);
4943
4943
  }
4944
- function V(u) {
4944
+ function B(u) {
4945
4945
  const Q = C(u.filter, w.value).selectedValues;
4946
4946
  u.selectedValues = u.keepSelection ? Q : u.options.map((Z) => Z.value), u.filter.values = [...u.selectedValues], d(u.filter, w.value, "selectedValues", u.selectedValues);
4947
4947
  }
@@ -5001,9 +5001,9 @@ const Cl = va(bl, () => {
5001
5001
  const de = (Le = Fe == null ? void 0 : Fe.widget) == null ? void 0 : Le.config;
5002
5002
  if (!de || (He = u.tileIds) != null && He.length && !u.tileIds.includes(Fe.id)) return !1;
5003
5003
  const W = (de.dimensions ?? []).some(
5004
- (Be) => Be.schemaName === Z && Be.name === Q
5004
+ (Ve) => Ve.schemaName === Z && Ve.name === Q
5005
5005
  ), Se = (de.joinDatasources ?? []).some(
5006
- (Be) => (Be.dimensions ?? []).some((De) => De.schemaName === Z && De.name === Q)
5006
+ (Ve) => (Ve.dimensions ?? []).some((De) => De.schemaName === Z && De.name === Q)
5007
5007
  ), Te = (de.schemaNames ?? []).includes(Z);
5008
5008
  return W || Se || Te;
5009
5009
  });
@@ -5029,8 +5029,8 @@ const Cl = va(bl, () => {
5029
5029
  };
5030
5030
  };
5031
5031
  return be.map((Fe) => {
5032
- var Be, De;
5033
- const de = (Be = Fe == null ? void 0 : Fe.widget) == null ? void 0 : Be.config;
5032
+ var Ve, De;
5033
+ const de = (Ve = Fe == null ? void 0 : Fe.widget) == null ? void 0 : Ve.config;
5034
5034
  if (!de) return null;
5035
5035
  const W = Xe(de), Se = (de.dimensions ?? []).some((Ee) => Ee.schemaName === Z) || (de.schemaNames ?? []).includes(Z), Te = ze(
5036
5036
  de.filters ?? [],
@@ -5138,7 +5138,7 @@ const Cl = va(bl, () => {
5138
5138
  }
5139
5139
  if (!(!u.type && (u.type = X(u.filter), !u.type))) {
5140
5140
  if (D(u.filter)) {
5141
- u.options = N(u.filter), V(u);
5141
+ u.options = N(u.filter), B(u);
5142
5142
  return;
5143
5143
  }
5144
5144
  switch (u.type) {
@@ -5162,7 +5162,7 @@ const Cl = va(bl, () => {
5162
5162
  label: String(de).trim() === "" ? b.value : String(de),
5163
5163
  value: de,
5164
5164
  available: u.keepSelection ? je.has(de) : Fe.has(de)
5165
- })), V(u);
5165
+ })), B(u);
5166
5166
  } catch (Z) {
5167
5167
  if ((Z == null ? void 0 : Z.code) === "ERR_CANCELED" || (Z == null ? void 0 : Z.name) === "CanceledError")
5168
5168
  return;
@@ -5173,7 +5173,7 @@ const Cl = va(bl, () => {
5173
5173
  u.options = [
5174
5174
  { label: n("report.common.yes"), value: !0 },
5175
5175
  { label: n("report.common.no"), value: !1 }
5176
- ], V(u);
5176
+ ], B(u);
5177
5177
  break;
5178
5178
  }
5179
5179
  case mt.Timestamp:
@@ -5181,7 +5181,7 @@ const Cl = va(bl, () => {
5181
5181
  const Z = u.filter.option;
5182
5182
  u.options = ua({ dimensionOption: Z, t: n }), u.filter.values = u.options.length ? u.options.map((be) => be.value) : ["NULL"];
5183
5183
  }
5184
- V(u);
5184
+ B(u);
5185
5185
  break;
5186
5186
  case mt.Numeric:
5187
5187
  break;
@@ -5216,7 +5216,7 @@ const Cl = va(bl, () => {
5216
5216
  if (E === null)
5217
5217
  u.values = [];
5218
5218
  else {
5219
- const Z = Bt(E.startDate).tz(B.value).startOf("day").utc().toISOString(), be = Bt(E.endDate).tz(B.value).endOf("day").utc().toISOString();
5219
+ const Z = Vt(E.startDate).tz(V.value).startOf("day").utc().toISOString(), be = Vt(E.endDate).tz(V.value).endOf("day").utc().toISOString();
5220
5220
  u.values = [Z, be];
5221
5221
  }
5222
5222
  const Q = x.value.find((Z) => Z.filter === u);
@@ -5239,10 +5239,10 @@ const Cl = va(bl, () => {
5239
5239
  startDate: ((Ne = u.filter.values) == null ? void 0 : Ne[0]) || null,
5240
5240
  endDate: ((je = u.filter.values) == null ? void 0 : je[1]) || null,
5241
5241
  locale: t.value,
5242
- timezone: B.value
5242
+ timezone: V.value
5243
5243
  })}` : E, suffix: "" };
5244
5244
  if (u.filter.option === Je.TimeOfDay) {
5245
- const Se = (Fe = u.filter.values) != null && Fe[0] ? Bt(u.filter.values[0]).tz(B.value) : null, Te = (de = u.filter.values) != null && de[1] ? Bt(u.filter.values[1]).tz(B.value) : null, Le = (Be) => Be && Be.isValid() ? { hour: Be.hour(), minute: Be.minute() } : null;
5245
+ const Se = (Fe = u.filter.values) != null && Fe[0] ? Vt(u.filter.values[0]).tz(V.value) : null, Te = (de = u.filter.values) != null && de[1] ? Vt(u.filter.values[1]).tz(V.value) : null, Le = (Ve) => Ve && Ve.isValid() ? { hour: Ve.hour(), minute: Ve.minute() } : null;
5246
5246
  return { preview: W ? `${E} is between ${fo({
5247
5247
  startTime: Le(Se),
5248
5248
  endTime: Le(Te),
@@ -5253,9 +5253,9 @@ const Cl = va(bl, () => {
5253
5253
  const Se = ua({
5254
5254
  dimensionOption: u.filter.option,
5255
5255
  t: n
5256
- }), Te = new Map(Se.map((De) => [String(De.value), De.label])), He = A(u.selectedValues || []).map((De) => Te.get(String(De)) ?? String(De)), Be = He.map((De) => De.length > 20 ? `${De.slice(0, 20)}…` : De).join(", ");
5256
+ }), Te = new Map(Se.map((De) => [String(De.value), De.label])), He = A(u.selectedValues || []).map((De) => Te.get(String(De)) ?? String(De)), Ve = He.map((De) => De.length > 20 ? `${De.slice(0, 20)}…` : De).join(", ");
5257
5257
  return He.length ? {
5258
- preview: `${E}: ${Be}`,
5258
+ preview: `${E}: ${Ve}`,
5259
5259
  suffix: `(${He.length} selected)`
5260
5260
  } : { preview: E, suffix: Q };
5261
5261
  }
@@ -5286,7 +5286,7 @@ const Cl = va(bl, () => {
5286
5286
  if (E === null)
5287
5287
  u.values = [];
5288
5288
  else {
5289
- const Ne = Bt().tz(B.value).set("hour", Number((Z = E.start) == null ? void 0 : Z.hour)).set("minute", Number((be = E.start) == null ? void 0 : be.minute)).toISOString(), je = Bt().tz(B.value).set("hour", Number((ze = E.end) == null ? void 0 : ze.hour)).set("minute", Number((Xe = E.end) == null ? void 0 : Xe.minute)).toISOString();
5289
+ const Ne = Vt().tz(V.value).set("hour", Number((Z = E.start) == null ? void 0 : Z.hour)).set("minute", Number((be = E.start) == null ? void 0 : be.minute)).toISOString(), je = Vt().tz(V.value).set("hour", Number((ze = E.end) == null ? void 0 : ze.hour)).set("minute", Number((Xe = E.end) == null ? void 0 : Xe.minute)).toISOString();
5290
5290
  u.values = [Ne, je];
5291
5291
  }
5292
5292
  const Q = x.value.find((Ne) => Ne.filter === u);
@@ -5296,7 +5296,7 @@ const Cl = va(bl, () => {
5296
5296
  const Q = ve("FmCircularProgress"), Z = ve("FmTextField"), be = ve("FmMenuItem"), ze = ve("FmTooltip"), Xe = ve("FmIcon"), Ne = ve("FmMenuDivider"), je = ve("FmSwitch"), Fe = ve("FmButton"), de = ve("FmMenu");
5297
5297
  return Y(), ge("div", wl, [
5298
5298
  (Y(!0), ge(et, null, Lt(x.value, (W, Se) => {
5299
- var Te, Le, He, Be, De, Ee;
5299
+ var Te, Le, He, Ve, De, Ee;
5300
5300
  return Y(), ge("div", {
5301
5301
  key: W.id
5302
5302
  }, [
@@ -5310,7 +5310,7 @@ const Cl = va(bl, () => {
5310
5310
  onChipClosed: () => pe(W.filter, null)
5311
5311
  }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : W.filter.option === r(Je).TimeOfDay && !D(W.filter) ? (Y(), we(no, {
5312
5312
  key: 1,
5313
- "model-value": { start: (Be = W.filter.values) == null ? void 0 : Be[0], end: (De = W.filter.values) == null ? void 0 : De[1] },
5313
+ "model-value": { start: (Ve = W.filter.values) == null ? void 0 : Ve[0], end: (De = W.filter.values) == null ? void 0 : De[1] },
5314
5314
  class: "w-full",
5315
5315
  label: ee(W).preview,
5316
5316
  removable: ((Ee = W.filter.values) == null ? void 0 : Ee.length) === 2,
@@ -5349,8 +5349,8 @@ const Cl = va(bl, () => {
5349
5349
  fe(Z, {
5350
5350
  modelValue: W.search,
5351
5351
  "onUpdate:modelValue": [
5352
- (Ve) => W.search = Ve,
5353
- (Ve) => r(d)(W.filter, w.value, "search", Ve)
5352
+ (Be) => W.search = Be,
5353
+ (Be) => r(d)(W.filter, w.value, "search", Be)
5354
5354
  ],
5355
5355
  type: "text",
5356
5356
  "prepend-icon": "search",
@@ -5365,56 +5365,56 @@ const Cl = va(bl, () => {
5365
5365
  "has-checkbox": !0,
5366
5366
  "model-value": oe(W),
5367
5367
  indeterminate: !0,
5368
- onClick: (Ve) => te(W)
5368
+ onClick: (Be) => te(W)
5369
5369
  }, null, 8, ["label", "model-value", "onClick"]),
5370
- (Y(!0), ge(et, null, Lt(ce.value[Se], (Ve) => (Y(), ge(et, {
5371
- key: Ve.value
5370
+ (Y(!0), ge(et, null, Lt(ce.value[Se], (Be) => (Y(), ge(et, {
5371
+ key: Be.value
5372
5372
  }, [
5373
- Ve.label && Ve.label.length > 110 ? (Y(), we(ze, {
5373
+ Be.label && Be.label.length > 110 ? (Y(), we(ze, {
5374
5374
  key: 0,
5375
5375
  placement: "right",
5376
5376
  "hide-arrow": !0,
5377
5377
  "z-index": 2e3
5378
5378
  }, {
5379
5379
  content: $e(() => [
5380
- bn(Ge(Ve.label), 1)
5380
+ bn(Ge(Be.label), 1)
5381
5381
  ]),
5382
5382
  default: $e(() => [
5383
5383
  J("div", Ll, [
5384
5384
  fe(be, {
5385
- label: We(Ve.label, 110),
5385
+ label: We(Be.label, 110),
5386
5386
  "has-checkbox": !0,
5387
- "model-value": W.selectedValues.includes(Ve.value),
5387
+ "model-value": W.selectedValues.includes(Be.value),
5388
5388
  class: Ye([
5389
5389
  "flex-1 text-left",
5390
- { "bg-gray-200": Ve.available === !1 }
5390
+ { "bg-gray-200": Be.available === !1 }
5391
5391
  ]),
5392
- onClick: () => re(W, Ve.value)
5392
+ onClick: () => re(W, Be.value)
5393
5393
  }, null, 8, ["label", "model-value", "class", "onClick"])
5394
5394
  ])
5395
5395
  ]),
5396
5396
  _: 2
5397
5397
  }, 1024)) : (Y(), we(be, {
5398
5398
  key: 1,
5399
- label: Ve.label,
5399
+ label: Be.label,
5400
5400
  "has-checkbox": !0,
5401
- "model-value": W.selectedValues.includes(Ve.value),
5402
- class: Ye(["flex-1 text-left", { "bg-gray-100": Ve.available === !1 }]),
5403
- onClick: () => re(W, Ve.value)
5401
+ "model-value": W.selectedValues.includes(Be.value),
5402
+ class: Ye(["flex-1 text-left", { "bg-gray-100": Be.available === !1 }]),
5403
+ onClick: () => re(W, Be.value)
5404
5404
  }, null, 8, ["label", "model-value", "class", "onClick"]))
5405
5405
  ], 64))), 128)),
5406
5406
  ce.value[Se].length < W.options.length && !W.search ? (Y(), we(be, {
5407
5407
  key: 0,
5408
5408
  class: "fm-typo-en-body-md-400 -ml-2",
5409
5409
  label: r(n)("report.section.filter.loadMore"),
5410
- onClick: Tt((Ve) => ie(W), ["stop"]),
5410
+ onClick: Tt((Be) => ie(W), ["stop"]),
5411
5411
  icon: "autorenew"
5412
5412
  }, null, 8, ["label", "onClick"])) : Me("", !0)
5413
5413
  ])
5414
5414
  ]),
5415
5415
  J("div", {
5416
5416
  class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
5417
- onClick: (Ve) => ke(W)
5417
+ onClick: (Be) => ke(W)
5418
5418
  }, [
5419
5419
  fe(Xe, {
5420
5420
  name: W.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
@@ -5426,7 +5426,7 @@ const Cl = va(bl, () => {
5426
5426
  fe(Ne),
5427
5427
  W.showAdvanced ? (Y(), ge("div", Ml, [
5428
5428
  J("div", Fl, [
5429
- J("div", Bl, [
5429
+ J("div", Vl, [
5430
5430
  fe(je, {
5431
5431
  "model-value": W.keepSelection,
5432
5432
  label: r(n)("report.section.filter.keepSelection"),
@@ -5438,7 +5438,7 @@ const Cl = va(bl, () => {
5438
5438
  "z-index": 2e3
5439
5439
  }, {
5440
5440
  content: $e(() => [
5441
- J("div", Vl, Ge(r(n)("report.section.filter.keepSelectionTooltip")), 1)
5441
+ J("div", Bl, Ge(r(n)("report.section.filter.keepSelectionTooltip")), 1)
5442
5442
  ]),
5443
5443
  default: $e(() => [
5444
5444
  fe(Xe, {
@@ -5456,11 +5456,11 @@ const Cl = va(bl, () => {
5456
5456
  fe(Fe, {
5457
5457
  variant: "tertiary",
5458
5458
  label: r(n)("report.common.cancel"),
5459
- onClick: Tt((Ve) => Ce(W), ["stop"])
5459
+ onClick: Tt((Be) => Ce(W), ["stop"])
5460
5460
  }, null, 8, ["label", "onClick"]),
5461
5461
  fe(Fe, {
5462
5462
  color: "primary",
5463
- onClick: Tt((Ve) => ye(W), ["stop"]),
5463
+ onClick: Tt((Be) => ye(W), ["stop"]),
5464
5464
  label: r(n)("report.common.apply")
5465
5465
  }, null, 8, ["onClick", "label"])
5466
5466
  ])