@feedmepos/mf-report 5.25.2-beta.0 → 5.25.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{App-v-kZLJ2v.js → App-DMuHDYhx.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CD4NT5pD.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-RWwPkAAk.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DysSXBiW.js → Default.vue_vue_type_script_setup_true_lang-CnxtL8ln.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BxHjOOB1.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BfpvahN2.js} +200 -200
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-B48Y1G2L.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C0IN0-KH.js} +88 -29
  6. package/dist/{InsightView-BSlf75_N.js → InsightView-DqkyhPRS.js} +4 -4
  7. package/dist/{Integration-B2ceUUuE.js → Integration-BKTJ727z.js} +964 -964
  8. package/dist/{Integrations-Be1UNnZS.js → Integrations-BMHnWoRW.js} +2 -2
  9. package/dist/{Layout-oaYEIQk9.js → Layout-DjJ-j0kN.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Ct2J6O6A.js → MenuTab.vue_vue_type_script_setup_true_lang-D-L6l4zc.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CUu0fKR4.js → NavigationTab.vue_vue_type_script_setup_true_lang-uWUVzAHy.js} +3 -3
  12. package/dist/{OverviewView-DC_OU3iY.js → OverviewView-B-4PoENP.js} +4 -4
  13. package/dist/{Report-Ci1RmXgI.js → Report-Bp_tty0B.js} +3 -3
  14. package/dist/{ReportEditor-C5cvdFRt.js → ReportEditor-0hk0kdmL.js} +3 -3
  15. package/dist/{ReportView-Vq8bWIdd.js → ReportView-GSTmPP6b.js} +6 -6
  16. package/dist/{Setting-B_RWoCpg.js → Setting-BaAHLVZJ.js} +3 -3
  17. package/dist/{TileEditor-CrpWIYKP.js → TileEditor-DGreZGig.js} +5 -5
  18. package/dist/{TransitionFade-DFxlUjKD.js → TransitionFade-QZGZ_3rf.js} +4 -4
  19. package/dist/{app-D8h7tRkb.js → app-CNUIrXJf.js} +16 -16
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-CcnKEQtk.js → formatChartData.worker-Bl33nKWr.js} +48 -8
  22. package/dist/assets/{processTableData.worker-B73ao-0A.js → processTableData.worker-CNwOO2hz.js} +48 -8
  23. package/dist/{useRestaurantPermission-BZ18fMvt.js → useRestaurantPermission-UZ9v67Ti.js} +1 -1
  24. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { computed as m, defineComponent as Ne, ref as D, onMounted as $e, onBeforeUnmount as Qn, resolveComponent as pe, createBlock as ge, openBlock as Y, Transition as Io, withCtx as Le, createElementBlock as fe, createCommentVNode as be, createElementVNode as Q, unref as r, normalizeStyle as De, withModifiers as en, toDisplayString as Pe, createVNode as he, Fragment as Ve, renderList as zt, normalizeClass as Ie, watch as we, nextTick as Me, mergeModels as Xe, useModel as Ee, renderSlot as nt, h as Jt, createSlots as Mo, resolveDynamicComponent as eo, toRaw as Bo, markRaw as Po, createTextVNode as Ao, onUnmounted as to, withDirectives as Fo, vShow as Ro } from "vue";
2
- import { W as oe, i as kt, j as zo, S as Pt, v as Rt, k as No, l as dn, m as no, d as Vo, q as $o, R as gt, n as Ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-B48Y1G2L.js";
3
- import { h as Wo, z as Eo, i as Oo, j as Uo, a as on, u as kn } from "./app-D8h7tRkb.js";
4
- import { d as mn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CD4NT5pD.js";
1
+ import { computed as m, defineComponent as Ne, ref as D, onMounted as $e, onBeforeUnmount as Qn, resolveComponent as pe, createBlock as ge, openBlock as Y, Transition as Io, withCtx as Le, createElementBlock as fe, createCommentVNode as be, createElementVNode as Q, unref as r, normalizeStyle as De, withModifiers as en, toDisplayString as Pe, createVNode as he, Fragment as Ve, renderList as zt, normalizeClass as Ie, watch as we, nextTick as Me, mergeModels as Xe, useModel as Ee, renderSlot as nt, h as Jt, createSlots as Mo, resolveDynamicComponent as eo, toRaw as Bo, markRaw as Po, createTextVNode as Fo, onUnmounted as to, withDirectives as Ao, vShow as Ro } from "vue";
2
+ import { W as oe, i as kt, j as zo, S as Pt, v as Rt, k as No, l as dn, m as no, d as Vo, q as $o, R as gt, n as Ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C0IN0-KH.js";
3
+ import { h as Wo, z as Eo, i as Oo, j as Uo, a as on, u as kn } from "./app-CNUIrXJf.js";
4
+ import { d as mn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-RWwPkAAk.js";
5
5
  import { storeToRefs as it, defineStore as Ko } from "pinia";
6
6
  import { C as pn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as qo } from "@feedmepos/mf-common";
@@ -135,7 +135,7 @@ function Jo(e, n = !1) {
135
135
  if (t === "dotted")
136
136
  return [2, 4];
137
137
  }
138
- function Ae({
138
+ function Fe({
139
139
  datasetIndex: e,
140
140
  isCompare: n,
141
141
  metricCount: t,
@@ -211,7 +211,7 @@ function Tt({
211
211
  colorMode: h,
212
212
  customColors: c
213
213
  }) {
214
- const C = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, N = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, $ = l !== !1, A = e * C + N, y = h === "clustered" ? an : ao(c), g = Nt(i == null ? void 0 : i[e * C]) ?? y[e % y.length], I = $ && N > 0 ? Vn(g, $n(N)) : Nt(i == null ? void 0 : i[A]) ?? (N > 0 ? Vn(g, $n(N)) : g);
214
+ const C = Number.isInteger(t) && Number(t) > 0 ? Number(t) : 1, N = Number.isInteger(n) && Number(n) >= 0 ? Number(n) : 0, $ = l !== !1, F = e * C + N, y = h === "clustered" ? an : ao(c), g = Nt(i == null ? void 0 : i[e * C]) ?? y[e % y.length], I = $ && N > 0 ? Vn(g, $n(N)) : Nt(i == null ? void 0 : i[F]) ?? (N > 0 ? Vn(g, $n(N)) : g);
215
215
  let T = typeof s == "number" ? s : 1;
216
216
  return o && (T = T * 0.6), ro(I, T);
217
217
  }
@@ -407,7 +407,7 @@ function ca(e, n, t) {
407
407
  }
408
408
  if (!c.element)
409
409
  return;
410
- const C = c.element, N = o ? h : l, $ = o ? C.y : C.x, A = N.getPixelForValue(c.index), y = $ ?? A;
410
+ const C = c.element, N = o ? h : l, $ = o ? C.y : C.x, F = N.getPixelForValue(c.index), y = $ ?? F;
411
411
  hn(e.ctx, o, e.chartArea, y);
412
412
  }
413
413
  function $t(e) {
@@ -454,7 +454,7 @@ function pa() {
454
454
  return En(), s;
455
455
  };
456
456
  }
457
- const At = {
457
+ const Ft = {
458
458
  "en-US": Uo.report.widget.comparisonTooltip.viewBreakdown,
459
459
  "zh-CN": Oo.report.widget.comparisonTooltip.viewBreakdown,
460
460
  "zh-Hant": Eo.report.widget.comparisonTooltip.viewBreakdown,
@@ -462,7 +462,7 @@ const At = {
462
462
  };
463
463
  function io() {
464
464
  const e = qo();
465
- return e in At ? At[e] : e.startsWith("zh") ? At["zh-CN"] : e.startsWith("th") ? At["th-TH"] : At["en-US"];
465
+ return e in Ft ? Ft[e] : e.startsWith("zh") ? Ft["zh-CN"] : e.startsWith("th") ? Ft["th-TH"] : Ft["en-US"];
466
466
  }
467
467
  function va(e) {
468
468
  return e == null ? null : typeof e != "string" ? [] : e.split("#").map((n) => n.trim()).filter((n) => n.length > 0);
@@ -484,13 +484,13 @@ function xa(e, n) {
484
484
  return e.type === "bar" ? !0 : n === "bar";
485
485
  }
486
486
  function wa(e, n, t) {
487
- const o = Ft(e.borderColor, n) || Ft(e.color, n), s = Ft(e.backgroundColor, n), i = Ft(e.pointBorderColor, n), l = Ft(e.pointBackgroundColor, n);
487
+ const o = At(e.borderColor, n) || At(e.color, n), s = At(e.backgroundColor, n), i = At(e.pointBorderColor, n), l = At(e.pointBackgroundColor, n);
488
488
  return t ? On(s, l, o, i) : On(o, i, s, l);
489
489
  }
490
490
  function Sa(e) {
491
491
  return e.trim().toLowerCase();
492
492
  }
493
- function Ft(e, n) {
493
+ function At(e, n) {
494
494
  if (typeof e == "string") return e;
495
495
  if (Array.isArray(e)) {
496
496
  const t = e[n];
@@ -573,8 +573,8 @@ function Ma(e) {
573
573
  return `<button type="button" data-tooltip-full-details="true" style="${ta}">${Sn(e)}</button>`;
574
574
  }
575
575
  function fo(e, n, t, o, s, i, l, h) {
576
- var F;
577
- const c = (F = e[0]) == null ? void 0 : F.label, C = va(c), N = (C == null ? void 0 : C[0]) ?? "", $ = C == null ? void 0 : C[1], A = [], y = [], g = /* @__PURE__ */ new Set();
576
+ var A;
577
+ const c = (A = e[0]) == null ? void 0 : A.label, C = va(c), N = (C == null ? void 0 : C[0]) ?? "", $ = C == null ? void 0 : C[1], F = [], y = [], g = /* @__PURE__ */ new Set();
578
578
  i.forEach((w, u) => {
579
579
  if (g.has(u))
580
580
  return;
@@ -590,9 +590,9 @@ function fo(e, n, t, o, s, i, l, h) {
590
590
  y.push(G);
591
591
  return;
592
592
  }
593
- A.push(G);
593
+ F.push(G);
594
594
  });
595
- const I = A.slice(0, o), T = /* @__PURE__ */ new Map();
595
+ const I = F.slice(0, o), T = /* @__PURE__ */ new Map();
596
596
  y.forEach((w) => {
597
597
  const u = T.get(w.matchingKey);
598
598
  if (!u) {
@@ -604,7 +604,7 @@ function fo(e, n, t, o, s, i, l, h) {
604
604
  const B = $ ? I.map((w) => {
605
605
  const u = T.get(w.matchingKey);
606
606
  return !u || u.length === 0 ? Un(w) : u.shift() ?? Un(w);
607
- }) : [], v = A.length > I.length || y.length > B.length, f = (w, u = !1) => `<div style="${Da(u)}">${Sn(w)}</div>`, k = (w) => {
607
+ }) : [], v = F.length > I.length || y.length > B.length, f = (w, u = !1) => `<div style="${Da(u)}">${Sn(w)}</div>`, k = (w) => {
608
608
  const u = Ia(w.isBar, w.color);
609
609
  return `<div style="${oa}"><span style="${u}"></span><span style="${aa}">${Sn(w.text)}</span></div>`;
610
610
  };
@@ -613,7 +613,7 @@ function fo(e, n, t, o, s, i, l, h) {
613
613
  const x = [
614
614
  {
615
615
  title: N,
616
- values: A
616
+ values: F
617
617
  },
618
618
  {
619
619
  title: $ ?? "",
@@ -675,9 +675,9 @@ function Ba(e, n, t, o, s, i, l, h, c) {
675
675
  markup: $,
676
676
  maxTooltipItems: C
677
677
  };
678
- let A = wn, y = C;
679
- for (; A <= y; ) {
680
- const I = Math.floor((A + y) / 2), T = Zt(
678
+ let F = wn, y = C;
679
+ for (; F <= y; ) {
680
+ const I = Math.floor((F + y) / 2), T = Zt(
681
681
  e,
682
682
  n,
683
683
  t,
@@ -692,7 +692,7 @@ function Ba(e, n, t, o, s, i, l, h, c) {
692
692
  y = I - 1;
693
693
  continue;
694
694
  }
695
- N = I, $ = T, A = I + 1;
695
+ N = I, $ = T, F = I + 1;
696
696
  }
697
697
  return {
698
698
  markup: N === C ? $ : Zt(
@@ -749,11 +749,11 @@ function Pa(e) {
749
749
  pointBackgroundColor: Reflect.get(e, "pointBackgroundColor")
750
750
  });
751
751
  }
752
- function Aa(e) {
752
+ function Fa(e) {
753
753
  const n = e.__tooltipOriginalStyle;
754
754
  n && (Reflect.set(e, "borderColor", n.borderColor), Reflect.set(e, "backgroundColor", n.backgroundColor), Reflect.set(e, "pointBorderColor", n.pointBorderColor), Reflect.set(e, "pointBackgroundColor", n.pointBackgroundColor));
755
755
  }
756
- function Fa(e, n) {
756
+ function Aa(e, n) {
757
757
  const t = e.__tooltipOriginalStyle;
758
758
  t && (Reflect.set(e, "borderColor", Qt(t.borderColor, n)), Reflect.set(e, "backgroundColor", Qt(t.backgroundColor, n)), Reflect.set(e, "pointBorderColor", Qt(t.pointBorderColor, n)), Reflect.set(
759
759
  e,
@@ -777,7 +777,7 @@ function tn(e, n) {
777
777
  const t = e.data.datasets;
778
778
  if (t.length !== 0) {
779
779
  if (t.forEach((o, s) => {
780
- Pa(o), !n || s === n.datasetIndex ? Aa(o) : Fa(o, ha);
780
+ Pa(o), !n || s === n.datasetIndex ? Fa(o) : Aa(o, ha);
781
781
  }), typeof e.setActiveElements == "function")
782
782
  try {
783
783
  n ? e.setActiveElements([
@@ -820,16 +820,16 @@ function In(e) {
820
820
  return window.getComputedStyle(n).position === "static" && (n.style.position = "relative"), n;
821
821
  }
822
822
  function Mn(e, n, t, o, s, i, l = "center", h = !1) {
823
- const c = n.getBoundingClientRect(), C = t.getBoundingClientRect(), N = t.scrollLeft, $ = t.scrollTop, A = t.clientWidth, y = t.clientHeight, g = e;
824
- (!Number.isFinite(g.__cachedWidth) || !Number.isFinite(g.__cachedHeight) || g.__measurementHostWidth !== A || g.__measurementHostHeight !== y) && (g.__cachedWidth = e.offsetWidth, g.__cachedHeight = e.offsetHeight, g.__measurementHostWidth = A, g.__measurementHostHeight = y);
825
- const T = g.__cachedWidth ?? e.offsetWidth, B = g.__cachedHeight ?? e.offsetHeight, v = 8, f = c.left - C.left + N + o, k = c.top - C.top + $ + s, L = h ? l === "left" ? f - T - v : f + v : l === "left" ? f - T - v : l === "right" ? f + v : f - T / 2, x = h ? k + v : i ? k - B / 2 : k + v, F = N + v;
823
+ const c = n.getBoundingClientRect(), C = t.getBoundingClientRect(), N = t.scrollLeft, $ = t.scrollTop, F = t.clientWidth, y = t.clientHeight, g = e;
824
+ (!Number.isFinite(g.__cachedWidth) || !Number.isFinite(g.__cachedHeight) || g.__measurementHostWidth !== F || g.__measurementHostHeight !== y) && (g.__cachedWidth = e.offsetWidth, g.__cachedHeight = e.offsetHeight, g.__measurementHostWidth = F, g.__measurementHostHeight = y);
825
+ const T = g.__cachedWidth ?? e.offsetWidth, B = g.__cachedHeight ?? e.offsetHeight, v = 8, f = c.left - C.left + N + o, k = c.top - C.top + $ + s, L = h ? l === "left" ? f - T - v : f + v : l === "left" ? f - T - v : l === "right" ? f + v : f - T / 2, x = h ? k + v : i ? k - B / 2 : k + v, A = N + v;
826
826
  let w = $ + v;
827
827
  const u = document.querySelector('[data-menu-tab="true"]');
828
828
  if (u) {
829
829
  const ie = u.getBoundingClientRect().bottom - C.top + $ + v;
830
830
  w = Math.max(w, ie);
831
831
  }
832
- const M = Math.max(F, N + A - T - v), W = Math.max(w, $ + y - B - v), q = Math.round(Math.min(Math.max(F, L), M)), ee = Math.round(Math.min(Math.max(w, x), W));
832
+ const M = Math.max(A, N + F - T - v), W = Math.max(w, $ + y - B - v), q = Math.round(Math.min(Math.max(A, L), M)), ee = Math.round(Math.min(Math.max(w, x), W));
833
833
  g.__lastLeftPx === q && g.__lastTopPx === ee || (g.__lastLeftPx = q, g.__lastTopPx = ee, e.style.left = `${q}px`, e.style.top = `${ee}px`);
834
834
  }
835
835
  function mo(e) {
@@ -959,12 +959,12 @@ function Ka(e, n, t, o, s) {
959
959
  if (!(s != null && s.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
960
960
  return;
961
961
  const h = (v) => {
962
- var F, w, u, M;
962
+ var A, w, u, M;
963
963
  if (v.length === 0)
964
964
  return !1;
965
- const f = (F = v.find(
965
+ const f = (A = v.find(
966
966
  (W) => typeof W.dataIndex == "number"
967
- )) == null ? void 0 : F.dataIndex, k = ((w = t == null ? void 0 : t.data) == null ? void 0 : w.datasets) ?? [], L = (u = t == null ? void 0 : t.config) == null ? void 0 : u.type, x = fo(
967
+ )) == null ? void 0 : A.dataIndex, k = ((w = t == null ? void 0 : t.data) == null ? void 0 : w.datasets) ?? [], L = (u = t == null ? void 0 : t.config) == null ? void 0 : u.type, x = fo(
968
968
  v,
969
969
  o,
970
970
  (s == null ? void 0 : s.viewFullDetailsLabel) ?? io(),
@@ -1027,15 +1027,15 @@ function Ka(e, n, t, o, s) {
1027
1027
  "index",
1028
1028
  { intersect: !1 },
1029
1029
  !1
1030
- ), A = (C.length > 0 ? C : N).filter((y) => typeof y.datasetIndex == "number" && typeof y.index == "number").map((y) => ({
1030
+ ), F = (C.length > 0 ? C : N).filter((y) => typeof y.datasetIndex == "number" && typeof y.index == "number").map((y) => ({
1031
1031
  datasetIndex: y.datasetIndex,
1032
1032
  index: y.index
1033
1033
  }));
1034
- if (A.length === 0) {
1034
+ if (F.length === 0) {
1035
1035
  qe(e, t, !0);
1036
1036
  return;
1037
1037
  }
1038
- uo(e, !0), St(e), e.dataset.cursorCanvasX = String(l.offsetX), e.dataset.cursorCanvasY = String(l.offsetY), e.dataset.caretX = String(l.offsetX), e.dataset.caretY = String(l.offsetY), c.setActiveElements(A, {
1038
+ uo(e, !0), St(e), e.dataset.cursorCanvasX = String(l.offsetX), e.dataset.cursorCanvasY = String(l.offsetY), e.dataset.caretX = String(l.offsetX), e.dataset.caretY = String(l.offsetY), c.setActiveElements(F, {
1039
1039
  x: l.offsetX,
1040
1040
  y: l.offsetY
1041
1041
  });
@@ -1110,7 +1110,7 @@ function Xa(e, n) {
1110
1110
  return;
1111
1111
  }
1112
1112
  St(c);
1113
- const N = (n == null ? void 0 : n.viewFullDetailsLabel) ?? io(), $ = !!(n != null && n.onViewFullDetails), A = (q = C.find((J) => typeof J.dataIndex == "number")) == null ? void 0 : q.dataIndex, y = ((ee = o == null ? void 0 : o.data) == null ? void 0 : ee.datasets) ?? [], g = (G = o == null ? void 0 : o.config) == null ? void 0 : G.type, {
1113
+ const N = (n == null ? void 0 : n.viewFullDetailsLabel) ?? io(), $ = !!(n != null && n.onViewFullDetails), F = (q = C.find((J) => typeof J.dataIndex == "number")) == null ? void 0 : q.dataIndex, y = ((ee = o == null ? void 0 : o.data) == null ? void 0 : ee.datasets) ?? [], g = (G = o == null ? void 0 : o.config) == null ? void 0 : G.type, {
1114
1114
  markup: { detailsPayload: I, hasCollapsedValues: T }
1115
1115
  } = Ba(
1116
1116
  c,
@@ -1120,7 +1120,7 @@ function Xa(e, n) {
1120
1120
  t,
1121
1121
  $,
1122
1122
  y,
1123
- A,
1123
+ F,
1124
1124
  g
1125
1125
  ), B = $ && T;
1126
1126
  c.__detailsPayload = B ? I : void 0, c.style.pointerEvents = B ? "auto" : "none";
@@ -1129,15 +1129,15 @@ function Xa(e, n) {
1129
1129
  c.style.opacity = "0";
1130
1130
  return;
1131
1131
  }
1132
- const x = (ie = o == null ? void 0 : o.scales) == null ? void 0 : ie.x, F = x && typeof x.getPixelForValue == "function" ? x.getPixelForValue(0) : NaN, w = e ? C.reduce((J, _) => {
1132
+ const x = (ie = o == null ? void 0 : o.scales) == null ? void 0 : ie.x, A = x && typeof x.getPixelForValue == "function" ? x.getPixelForValue(0) : NaN, w = e ? C.reduce((J, _) => {
1133
1133
  const E = _ == null ? void 0 : _.element, z = E == null ? void 0 : E.x;
1134
1134
  if (typeof z != "number" || !Number.isFinite(z))
1135
1135
  return J;
1136
1136
  if (!Number.isFinite(J))
1137
1137
  return z;
1138
- const R = Number.isFinite(F) ? F : v, P = Math.abs(J - R);
1138
+ const R = Number.isFinite(A) ? A : v, P = Math.abs(J - R);
1139
1139
  return Math.abs(z - R) > P ? z : J;
1140
- }, Number.NaN) : Number.NaN, u = f, M = k, W = e ? Number.isFinite(F) && Number.isFinite(w) && w < F ? "left" : "right" : "center";
1140
+ }, Number.NaN) : Number.NaN, u = f, M = k, W = e ? Number.isFinite(A) && Number.isFinite(w) && w < A ? "left" : "right" : "center";
1141
1141
  Mn(
1142
1142
  c,
1143
1143
  i,
@@ -1313,8 +1313,8 @@ function Dt(e) {
1313
1313
  });
1314
1314
  }
1315
1315
  }
1316
- })), N = m(() => e.isTransposed), $ = m(() => e.chartWidth), A = m(() => e.chartHeight);
1317
- return { datalabels: l, xCfg: h, yCfg: c, isTransposed: N, legend: C, chartWidth: $, chartHeight: A };
1316
+ })), N = m(() => e.isTransposed), $ = m(() => e.chartWidth), F = m(() => e.chartHeight);
1317
+ return { datalabels: l, xCfg: h, yCfg: c, isTransposed: N, legend: C, chartWidth: $, chartHeight: F };
1318
1318
  }
1319
1319
  const Ya = {
1320
1320
  key: 0,
@@ -1343,7 +1343,7 @@ const Ya = {
1343
1343
  function $(u) {
1344
1344
  return u.value == null || u.value === "" ? "-" : typeof u.value == "number" ? Number.isFinite(u.value) ? u.value.toLocaleString() : "-" : String(u.value);
1345
1345
  }
1346
- function A(u) {
1346
+ function F(u) {
1347
1347
  const M = u.text ?? "", W = M.lastIndexOf(":");
1348
1348
  return W > -1 ? M.slice(0, W).trim() : M;
1349
1349
  }
@@ -1378,7 +1378,7 @@ const Ya = {
1378
1378
  function x() {
1379
1379
  l.value = B(l.value);
1380
1380
  }
1381
- function F(u) {
1381
+ function A(u) {
1382
1382
  var q;
1383
1383
  if (!c.value)
1384
1384
  return;
@@ -1392,9 +1392,9 @@ const Ya = {
1392
1392
  c.value && u.key === "Escape" && I();
1393
1393
  }
1394
1394
  return $e(() => {
1395
- l.value = B(l.value), document.addEventListener("pointerdown", F, !0), document.addEventListener("keydown", w), window.addEventListener("resize", x);
1395
+ l.value = B(l.value), document.addEventListener("pointerdown", A, !0), document.addEventListener("keydown", w), window.addEventListener("resize", x);
1396
1396
  }), Qn(() => {
1397
- f(), document.removeEventListener("pointerdown", F, !0), document.removeEventListener("keydown", w), window.removeEventListener("resize", x);
1397
+ f(), document.removeEventListener("pointerdown", A, !0), document.removeEventListener("keydown", w), window.removeEventListener("resize", x);
1398
1398
  }), (u, M) => {
1399
1399
  const W = pe("FmButton");
1400
1400
  return Y(), ge(Io, {
@@ -1458,7 +1458,7 @@ const Ya = {
1458
1458
  ]),
1459
1459
  style: De({ backgroundColor: G.color })
1460
1460
  }, null, 6),
1461
- Q("span", nr, Pe(A(G)), 1)
1461
+ Q("span", nr, Pe(F(G)), 1)
1462
1462
  ]),
1463
1463
  Q("span", or, Pe($(G)), 1)
1464
1464
  ], 40, er))), 128))
@@ -1477,14 +1477,14 @@ function Wt(e, n) {
1477
1477
  function l() {
1478
1478
  return ho(e.value) ?? i.value;
1479
1479
  }
1480
- function h(A) {
1481
- o.value = A, !A && (s.value = null, tn(l()), i.value = null);
1480
+ function h(F) {
1481
+ o.value = F, !F && (s.value = null, tn(l()), i.value = null);
1482
1482
  }
1483
- function c(A, y) {
1484
- s.value = A, i.value = y ?? l(), o.value = !0;
1483
+ function c(F, y) {
1484
+ s.value = F, i.value = y ?? l(), o.value = !0;
1485
1485
  }
1486
- function C(A) {
1487
- tn(l(), A.focusTarget);
1486
+ function C(F) {
1487
+ tn(l(), F.focusTarget);
1488
1488
  }
1489
1489
  function N() {
1490
1490
  tn(l());
@@ -1530,9 +1530,9 @@ const rr = {
1530
1530
  },
1531
1531
  emits: ["toggleDatasetVisibility", "toggleDataPointVisibility"],
1532
1532
  setup(e, { emit: n }) {
1533
- const t = e, o = n, { t: s } = ut(), i = D([]), l = D(0), h = D(!1), c = D(!1), C = D(0), N = D(null), $ = D(null), A = D(null), y = D(null), g = D(!1), I = D(0), T = D(0), B = D(!1), v = D(0), f = D(0), k = m(() => t.enabled !== !1), L = m(() => t.position === "left" || t.position === "right");
1533
+ const t = e, o = n, { t: s } = ut(), i = D([]), l = D(0), h = D(!1), c = D(!1), C = D(0), N = D(null), $ = D(null), F = D(null), y = D(null), g = D(!1), I = D(0), T = D(0), B = D(!1), v = D(0), f = D(0), k = m(() => t.enabled !== !1), L = m(() => t.position === "left" || t.position === "right");
1534
1534
  let x = null;
1535
- const F = m(
1535
+ const A = m(
1536
1536
  () => h.value && c.value && g.value
1537
1537
  ), w = m(() => ({
1538
1538
  height: `${Math.max(0, I.value)}px`,
@@ -1584,7 +1584,7 @@ const rr = {
1584
1584
  q({ height: 0, width: 0 });
1585
1585
  }
1586
1586
  function _() {
1587
- const a = A.value;
1587
+ const a = F.value;
1588
1588
  if (!a) {
1589
1589
  g.value = !1, I.value = 0, T.value = 0;
1590
1590
  return;
@@ -1601,7 +1601,7 @@ const rr = {
1601
1601
  _();
1602
1602
  }
1603
1603
  function z(a) {
1604
- const p = A.value, d = $.value;
1604
+ const p = F.value, d = $.value;
1605
1605
  if (!p || !d || !g.value)
1606
1606
  return;
1607
1607
  const b = d.getBoundingClientRect(), H = a.clientY - b.top, U = Math.max(0, H - I.value / 2), j = Math.max(1, p.clientHeight - I.value), te = Math.min(1, U / j), O = Math.max(0, p.scrollHeight - p.clientHeight);
@@ -1613,7 +1613,7 @@ const rr = {
1613
1613
  function P(a) {
1614
1614
  if (!B.value)
1615
1615
  return;
1616
- const p = A.value;
1616
+ const p = F.value;
1617
1617
  if (!p)
1618
1618
  return;
1619
1619
  const d = a.clientY - v.value, b = Math.max(1, p.clientHeight - I.value), U = Math.min(b, Math.max(0, f.value + d)) / b, j = Math.max(0, p.scrollHeight - p.clientHeight);
@@ -1726,7 +1726,7 @@ const rr = {
1726
1726
  const O = wt({
1727
1727
  fallbackIndex: U,
1728
1728
  metricCount: j
1729
- }), de = Ae({
1729
+ }), de = Fe({
1730
1730
  datasetIndex: U,
1731
1731
  metricCount: j,
1732
1732
  mode: _e.metric
@@ -1741,7 +1741,7 @@ const rr = {
1741
1741
  });
1742
1742
  }
1743
1743
  if (d === _e.metric) {
1744
- const O = Ae({
1744
+ const O = Fe({
1745
1745
  datasetIndex: U,
1746
1746
  metricCount: j,
1747
1747
  mode: _e.metric
@@ -1832,7 +1832,7 @@ const rr = {
1832
1832
  let te = Be(
1833
1833
  typeof U == "function" ? U(a) : []
1834
1834
  );
1835
- return te.length === 0 && typeof j == "function" && (te = Be(j(a))), typeof (H == null ? void 0 : H.filter) == "function" && (te = te.filter((Se) => H.filter(Se, a.data))), typeof (H == null ? void 0 : H.sort) == "function" && (te = [...te].sort((Se, Fe) => H.sort(Se, Fe, a.data))), (b == null ? void 0 : b.reverse) === !0 && (te = [...te].reverse()), te;
1835
+ return te.length === 0 && typeof j == "function" && (te = Be(j(a))), typeof (H == null ? void 0 : H.filter) == "function" && (te = te.filter((Se) => H.filter(Se, a.data))), typeof (H == null ? void 0 : H.sort) == "function" && (te = [...te].sort((Se, Ae) => H.sort(Se, Ae, a.data))), (b == null ? void 0 : b.reverse) === !0 && (te = [...te].reverse()), te;
1836
1836
  }
1837
1837
  function ct(a) {
1838
1838
  var d;
@@ -1904,23 +1904,23 @@ const rr = {
1904
1904
  }
1905
1905
  function qt(a, p) {
1906
1906
  var Ce;
1907
- const d = A.value;
1907
+ const d = F.value;
1908
1908
  if (!d || a.length === 0)
1909
1909
  return 0;
1910
1910
  const b = Math.max(0, p - jn), H = window.getComputedStyle(d);
1911
1911
  if (H.flexDirection.startsWith("column")) {
1912
1912
  const re = Number.parseFloat(H.rowGap || H.gap || "0") || 0, ae = Kt();
1913
- let Se = 0, Fe = 0;
1913
+ let Se = 0, Ae = 0;
1914
1914
  for (let Oe = 0; Oe < a.length; Oe += 1) {
1915
1915
  const Ue = a[Oe];
1916
1916
  if (!Ue)
1917
1917
  continue;
1918
- const Qe = Se + (Fe > 0 ? re : 0) + Ue.offsetHeight, rt = a.length - (Oe + 1) > 0 ? re + ae : 0;
1918
+ const Qe = Se + (Ae > 0 ? re : 0) + Ue.offsetHeight, rt = a.length - (Oe + 1) > 0 ? re + ae : 0;
1919
1919
  if (Qe + rt > b)
1920
1920
  break;
1921
- Se = Qe, Fe += 1;
1921
+ Se = Qe, Ae += 1;
1922
1922
  }
1923
- return Fe > 0 ? Fe : 1;
1923
+ return Ae > 0 ? Ae : 1;
1924
1924
  }
1925
1925
  const j = ((Ce = a[0]) == null ? void 0 : Ce.offsetTop) ?? 0, te = a.filter(
1926
1926
  (re) => re.offsetTop - j + re.offsetHeight <= b
@@ -1943,7 +1943,7 @@ const rr = {
1943
1943
  return 1;
1944
1944
  }
1945
1945
  function It() {
1946
- const a = A.value;
1946
+ const a = F.value;
1947
1947
  if (!a) {
1948
1948
  c.value = !1, C.value = 0, l.value = 0, ie(), _();
1949
1949
  return;
@@ -1959,11 +1959,11 @@ const rr = {
1959
1959
  if ((H || C.value <= 0) && (C.value = U), b) {
1960
1960
  const re = ue();
1961
1961
  if (re > 0 && (C.value = re), window.getComputedStyle(a).flexDirection.startsWith("column") && l.value < i.value.length) {
1962
- const Fe = Math.max(0, C.value - jn), Oe = a.scrollHeight;
1963
- if (Oe + 1 < Fe) {
1962
+ const Ae = Math.max(0, C.value - jn), Oe = a.scrollHeight;
1963
+ if (Oe + 1 < Ae) {
1964
1964
  const Ue = p.map((ke) => ke.offsetHeight).filter((ke) => Number.isFinite(ke) && ke > 0), Qe = Ue.length > 0 ? Ue.reduce((ke, rt) => ke + rt, 0) / Ue.length : 0;
1965
1965
  if (Qe > 0) {
1966
- const ke = window.getComputedStyle(a), rt = Number.parseFloat(ke.rowGap || ke.gap || "0") || 0, jt = Math.max(1, Qe + rt), mt = Fe - Oe, Bt = Math.floor(mt / jt);
1966
+ const ke = window.getComputedStyle(a), rt = Number.parseFloat(ke.rowGap || ke.gap || "0") || 0, jt = Math.max(1, Qe + rt), mt = Ae - Oe, Bt = Math.floor(mt / jt);
1967
1967
  if (Bt > 0) {
1968
1968
  l.value = Math.min(
1969
1969
  i.value.length,
@@ -2153,7 +2153,7 @@ const rr = {
2153
2153
  h.value = !0, Je();
2154
2154
  }
2155
2155
  function ht() {
2156
- h.value = !1, A.value && (A.value.scrollTop = 0), Je();
2156
+ h.value = !1, F.value && (F.value.scrollTop = 0), Je();
2157
2157
  }
2158
2158
  return $e(() => {
2159
2159
  Gt(), window.addEventListener("mousemove", P), window.addEventListener("mouseup", V);
@@ -2194,7 +2194,7 @@ const rr = {
2194
2194
  ], 512),
2195
2195
  Q("ul", {
2196
2196
  ref_key: "legendListRef",
2197
- ref: A,
2197
+ ref: F,
2198
2198
  class: Ie(["chart-legend-list m-0 flex list-none p-0", [
2199
2199
  L.value ? "flex-row flex-wrap justify-start gap-x-3 gap-y-2 pt-1" : "flex-wrap justify-center gap-x-2 gap-y-1 pt-1"
2200
2200
  ]]),
@@ -2245,7 +2245,7 @@ const rr = {
2245
2245
  }, Pe(h.value ? r(s)("report.widget.legend.viewLess") : r(s)("report.widget.legend.viewMore")), 1)
2246
2246
  ])) : be("", !0)
2247
2247
  ], 38),
2248
- F.value ? (Y(), fe("div", {
2248
+ A.value ? (Y(), fe("div", {
2249
2249
  key: 0,
2250
2250
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2251
2251
  onMousedown: z
@@ -2316,14 +2316,14 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2316
2316
  }), $ = m(() => {
2317
2317
  var z;
2318
2318
  return ((z = t.value.data) == null ? void 0 : z.datasets) ?? [];
2319
- }), A = m(() => {
2319
+ }), F = m(() => {
2320
2320
  var z;
2321
2321
  return ((z = t.value.data) == null ? void 0 : z.xAxis) ?? [];
2322
- }), y = m(() => A.value.length === 1 && $.value.length > 1 && $.value.every((z) => z.values.length === 1 && z.isCompare !== !0)), g = m(() => y.value ? $.value.map((z) => z.name) : A.value), { datalabels: I, xCfg: T, yCfg: B, isTransposed: v, legend: f, chartWidth: k, chartHeight: L } = Dt(
2322
+ }), y = m(() => F.value.length === 1 && $.value.length > 1 && $.value.every((z) => z.values.length === 1 && z.isCompare !== !0)), g = m(() => y.value ? $.value.map((z) => z.name) : F.value), { datalabels: I, xCfg: T, yCfg: B, isTransposed: v, legend: f, chartWidth: k, chartHeight: L } = Dt(
2323
2323
  t.value
2324
2324
  ), x = m(
2325
2325
  () => Lt(t.value.isTransposed === !0, h.value)
2326
- ), F = $t("bar"), w = m(() => {
2326
+ ), A = $t("bar"), w = m(() => {
2327
2327
  const z = f.value.position;
2328
2328
  return !z || z === "top" || z === "bottom" || z === "left" || z === "right";
2329
2329
  }), u = m(() => f.value.position ?? "top"), M = m(
@@ -2332,12 +2332,12 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2332
2332
  () => u.value === "top" || u.value === "left"
2333
2333
  ), q = m(() => $.value.length > 0 ? [
2334
2334
  ...$.value.map((z, R) => {
2335
- const P = Ae({
2335
+ const P = Fe({
2336
2336
  datasetIndex: R,
2337
2337
  isCompare: z.isCompare,
2338
2338
  metricCount: t.value.metricCount,
2339
2339
  mode: t.value.chartColorBinding
2340
- }), V = Ae({
2340
+ }), V = Fe({
2341
2341
  datasetIndex: R,
2342
2342
  isCompare: z.isCompare,
2343
2343
  metricCount: t.value.metricCount,
@@ -2428,7 +2428,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2428
2428
  },
2429
2429
  tooltip: x.value,
2430
2430
  datalabels: r(I),
2431
- plugins: [r(F)],
2431
+ plugins: [r(A)],
2432
2432
  "maintain-aspect-ratio": !1,
2433
2433
  style: De({
2434
2434
  "--chart-width": w.value && (r(f).display ?? !1) && M.value ? "calc(100% - var(--legend-panel-width, 0px))" : r(k) !== void 0 ? r(k) + "px" : "100%",
@@ -2492,9 +2492,9 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2492
2492
  )
2493
2493
  }
2494
2494
  ]), u;
2495
- }), A = kt();
2495
+ }), F = kt();
2496
2496
  function y() {
2497
- return A.extractChartSize(s.value, n.tileIndex) || { width: 0, height: 0 };
2497
+ return F.extractChartSize(s.value, n.tileIndex) || { width: 0, height: 0 };
2498
2498
  }
2499
2499
  $e(() => {
2500
2500
  Me(() => {
@@ -2525,7 +2525,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2525
2525
  var M;
2526
2526
  const u = (M = h.value.labels) == null ? void 0 : M.color;
2527
2527
  return typeof u == "string" && u.trim().length > 0 ? u : t.value.legendColor ?? "#6b6b6b";
2528
- }), x = m(() => g.value), F = sa();
2528
+ }), x = m(() => g.value), A = sa();
2529
2529
  function w({ itemIndex: u }) {
2530
2530
  if (i.value.includes(u)) {
2531
2531
  i.value = i.value.filter(
@@ -2569,7 +2569,7 @@ const hr = { class: "widget-content" }, mr = /* @__PURE__ */ Ne({
2569
2569
  percentage: "70%",
2570
2570
  datasets: $.value,
2571
2571
  metrics: N.value,
2572
- tooltip: r(F),
2572
+ tooltip: r(A),
2573
2573
  variant: "doughnut",
2574
2574
  legend: {
2575
2575
  display: !1
@@ -2644,7 +2644,7 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2644
2644
  display: !1,
2645
2645
  beginAtZero: !1,
2646
2646
  grace: "20%"
2647
- })), A = m(() => N.value.datasets.map((g) => ({
2647
+ })), F = m(() => N.value.datasets.map((g) => ({
2648
2648
  label: g.name,
2649
2649
  data: g.values,
2650
2650
  fill: !0,
@@ -2710,7 +2710,7 @@ const gr = { class: "flex flex-col gap-1" }, yr = { class: "fm-typo-en-title-md-
2710
2710
  C(N.value.type) === "line" ? (Y(), ge(f, {
2711
2711
  key: 0,
2712
2712
  class: "sparkline",
2713
- datasets: A.value,
2713
+ datasets: F.value,
2714
2714
  legend: {
2715
2715
  display: !1
2716
2716
  },
@@ -2745,17 +2745,17 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2745
2745
  n[v] = f, n.value = [...n.value], l(v, f, k, L);
2746
2746
  }, i = (v, f) => {
2747
2747
  const k = (f == null ? void 0 : f.querySelectorAll("thead tr")) ?? [], L = (f == null ? void 0 : f.querySelectorAll("tbody tr")) ?? [];
2748
- [...k, ...L].forEach((F) => {
2749
- const w = F;
2748
+ [...k, ...L].forEach((A) => {
2749
+ const w = A;
2750
2750
  w && (w.style.height = `${v}px`);
2751
2751
  });
2752
2752
  }, l = (v, f, k, L = !1) => {
2753
2753
  const x = (k == null ? void 0 : k.querySelectorAll("th")) ?? [];
2754
2754
  if (v === void 0) return;
2755
- const F = x[v], w = L ? n[v] : f;
2756
- if (!F || w === void 0) return;
2755
+ const A = x[v], w = L ? n[v] : f;
2756
+ if (!A || w === void 0) return;
2757
2757
  const u = () => {
2758
- F.style.width = `${w}px`;
2758
+ A.style.width = `${w}px`;
2759
2759
  };
2760
2760
  L ? requestAnimationFrame(u) : u();
2761
2761
  }, h = () => {
@@ -2780,7 +2780,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2780
2780
  const f = document.querySelectorAll("thead tr"), k = document.querySelectorAll("tbody tr"), L = [...f, ...k];
2781
2781
  for (const x of L)
2782
2782
  v ? x.classList.add("highlight-hover-row") : x.classList.add("highlight-row");
2783
- }, A = (v) => {
2783
+ }, F = (v) => {
2784
2784
  const f = v ? ".highlight-hover-row" : ".highlight-row", k = document.querySelectorAll(f);
2785
2785
  for (const L of k)
2786
2786
  L.classList.remove(f.slice(1));
@@ -2793,7 +2793,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2793
2793
  if (!L) return;
2794
2794
  const x = L.querySelectorAll("th")[f];
2795
2795
  if (!x) return;
2796
- const F = x.getBoundingClientRect().width || 60, w = x.querySelector("button"), u = (w == null ? void 0 : w.querySelector("span")) || x.querySelector("p") || x;
2796
+ const A = x.getBoundingClientRect().width || 60, w = x.querySelector("button"), u = (w == null ? void 0 : w.querySelector("span")) || x.querySelector("p") || x;
2797
2797
  let M = 60;
2798
2798
  if (u) {
2799
2799
  const J = u.textContent || "", _ = window.getComputedStyle(u), E = `${_.fontWeight} ${_.fontSize} ${_.fontFamily}`, R = document.createElement("canvas").getContext("2d");
@@ -2815,7 +2815,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2815
2815
  }), L.classList.remove("w-full"), L.style.width = `${_}px`, W = null;
2816
2816
  }, G = (J) => {
2817
2817
  const _ = J.clientX - k;
2818
- q = Math.max(M, F + _), W === null && (W = requestAnimationFrame(ee));
2818
+ q = Math.max(M, A + _), W === null && (W = requestAnimationFrame(ee));
2819
2819
  }, ie = () => {
2820
2820
  W !== null && cancelAnimationFrame(W), q !== null && (x.style.width = `${q}px`);
2821
2821
  const J = L.querySelectorAll("th"), _ = [];
@@ -2830,10 +2830,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2830
2830
  const x = (w) => {
2831
2831
  const u = Math.max(30, L + (w.clientY - f));
2832
2832
  k && o(u, k);
2833
- }, F = () => {
2834
- A(!1), document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", F);
2833
+ }, A = () => {
2834
+ F(!1), document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", A);
2835
2835
  };
2836
- document.addEventListener("mousemove", x), document.addEventListener("mouseup", F);
2836
+ document.addEventListener("mousemove", x), document.addEventListener("mouseup", A);
2837
2837
  };
2838
2838
  return {
2839
2839
  rowHeight: e,
@@ -2848,24 +2848,24 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2848
2848
  resetStore: C,
2849
2849
  highlightCol: N,
2850
2850
  highlightRows: $,
2851
- removeRowHighlight: A,
2851
+ removeRowHighlight: F,
2852
2852
  removeColHighlight: y,
2853
2853
  resizeCol: g,
2854
2854
  resizeRow: I,
2855
2855
  enableCellResizing: () => {
2856
2856
  const v = document.querySelector("thead"), f = document.querySelectorAll("thead tr"), k = document.querySelectorAll("tbody tr"), L = [...f, ...k];
2857
2857
  v && v.classList.remove("sticky");
2858
- const x = (F, w) => {
2858
+ const x = (A, w) => {
2859
2859
  const u = document.createElement("div");
2860
- return u.className = `${F}-resize-handle`, F === "col" ? (u.addEventListener("mouseenter", () => N(w, !0)), u.addEventListener("mouseleave", () => y(!0)), u.addEventListener("mousedown", (M) => {
2860
+ return u.className = `${A}-resize-handle`, A === "col" ? (u.addEventListener("mouseenter", () => N(w, !0)), u.addEventListener("mouseleave", () => y(!0)), u.addEventListener("mousedown", (M) => {
2861
2861
  M.stopPropagation(), g(M, w);
2862
- })) : (u.addEventListener("mouseenter", () => $(!0)), u.addEventListener("mouseleave", () => A(!0)), u.addEventListener("mousedown", (M) => {
2862
+ })) : (u.addEventListener("mouseenter", () => $(!0)), u.addEventListener("mouseleave", () => F(!0)), u.addEventListener("mousedown", (M) => {
2863
2863
  M.stopPropagation(), I(M);
2864
2864
  })), u;
2865
2865
  };
2866
- L.forEach((F) => {
2867
- const w = F.closest("thead") !== null;
2868
- F.querySelectorAll(w ? "th" : "td").forEach((M, W) => {
2866
+ L.forEach((A) => {
2867
+ const w = A.closest("thead") !== null;
2868
+ A.querySelectorAll(w ? "th" : "td").forEach((M, W) => {
2869
2869
  const q = x("col", W), ee = x("row", W);
2870
2870
  M.appendChild(q), M.appendChild(ee);
2871
2871
  });
@@ -2875,10 +2875,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2875
2875
  c();
2876
2876
  }
2877
2877
  };
2878
- }), Dr = "/assets/processTableData.worker-B73ao-0A.js", Ir = { class: "my-4" }, Mr = {
2878
+ }), Dr = "/assets/processTableData.worker-CNwOO2hz.js", Ir = { class: "my-4" }, Mr = {
2879
2879
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
2880
2880
  style: { backgroundColor: "#f9f9f9" }
2881
- }, Br = { class: "font-bold" }, Pr = { class: "text-fm-color-neutral-gray-300" }, Ar = /* @__PURE__ */ Ne({
2881
+ }, Br = { class: "font-bold" }, Pr = { class: "text-fm-color-neutral-gray-300" }, Fr = /* @__PURE__ */ Ne({
2882
2882
  __name: "WidgetTable",
2883
2883
  props: /* @__PURE__ */ Xe({
2884
2884
  tileIndex: {}
@@ -2888,7 +2888,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2888
2888
  }),
2889
2889
  emits: ["update:modelValue"],
2890
2890
  setup(e) {
2891
- const { t: n, te: t } = ut(), o = Ee(e, "modelValue"), { country: s } = kn(), { clearTileSorts: i, setTileSorts: l } = zo(), h = Tn(), c = e, C = D([]), { isEditing: N, colWidths: $, rowHeight: A } = it(Zn()), { setColWidths: y, setRowHeights: g, enableCellResizing: I } = Zn(), T = D(null), B = m(() => {
2891
+ const { t: n, te: t } = ut(), o = Ee(e, "modelValue"), { country: s } = kn(), { clearTileSorts: i, setTileSorts: l } = zo(), h = Tn(), c = e, C = D([]), { isEditing: N, colWidths: $, rowHeight: F } = it(Zn()), { setColWidths: y, setRowHeights: g, enableCellResizing: I } = Zn(), T = D(null), B = m(() => {
2892
2892
  var _;
2893
2893
  return ((_ = o.value.data) == null ? void 0 : _.columns) || [{ label: "", key: "" }];
2894
2894
  }), v = m(() => {
@@ -2909,7 +2909,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
2909
2909
  }), x = m(() => {
2910
2910
  const R = L.value !== void 0 ? 1 : 0, P = (T.value ? T.value.$el.offsetHeight : 0) - 48;
2911
2911
  return Math.floor((P - 34.5 - 32) / 48) - R;
2912
- }), F = m(() => {
2912
+ }), A = m(() => {
2913
2913
  var E, z;
2914
2914
  let _ = [];
2915
2915
  switch (L.value) {
@@ -3085,7 +3085,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3085
3085
  if (!E) return;
3086
3086
  E.classList.add(ie.value ? "table-fixed" : "table-auto");
3087
3087
  let z, R;
3088
- N.value ? (I(), z = $.value, R = A.value) : (R = o.value.rowHeight, z = o.value.colWidths), typeof R == "number" && g(R, _), z == null || z.forEach((V, ne) => {
3088
+ N.value ? (I(), z = $.value, R = F.value) : (R = o.value.rowHeight, z = o.value.colWidths), typeof R == "number" && g(R, _), z == null || z.forEach((V, ne) => {
3089
3089
  y(ne, V, _);
3090
3090
  });
3091
3091
  },
@@ -3115,7 +3115,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3115
3115
  (Y(), ge(eo(L.value === r(et).bottom ? "tfoot" : "tbody"), null, {
3116
3116
  default: Le(() => [
3117
3117
  Q("tr", Mr, [
3118
- (Y(!0), fe(Ve, null, zt(F.value, (R, P) => (Y(), fe("td", {
3118
+ (Y(!0), fe(Ve, null, zt(A.value, (R, P) => (Y(), fe("td", {
3119
3119
  key: `${r(Rt)()}_${P}`,
3120
3120
  class: "h-[48px] text-fm-color-typo-primary px-16"
3121
3121
  }, [
@@ -3141,7 +3141,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3141
3141
  ], 64);
3142
3142
  };
3143
3143
  }
3144
- }), Fr = { class: "widget-content" }, Rr = /* @__PURE__ */ Ne({
3144
+ }), Ar = { class: "widget-content" }, Rr = /* @__PURE__ */ Ne({
3145
3145
  __name: "WidgetStackBarChart",
3146
3146
  props: /* @__PURE__ */ Xe({
3147
3147
  tileIndex: {}
@@ -3163,14 +3163,14 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3163
3163
  }), $ = m(() => {
3164
3164
  var ne;
3165
3165
  return ((ne = t.value.data) == null ? void 0 : ne.xAxis) || [];
3166
- }), A = m(() => {
3166
+ }), F = m(() => {
3167
3167
  var V;
3168
3168
  return ((V = t.value.data) == null ? void 0 : V.datasets) ?? [];
3169
3169
  }), { datalabels: y, xCfg: g, yCfg: I, isTransposed: T, legend: B, chartWidth: v, chartHeight: f } = Dt(
3170
3170
  t.value
3171
3171
  ), k = m(
3172
3172
  () => Lt(t.value.isTransposed === !0, h.value)
3173
- ), L = $t("bar"), x = m(() => t.value.stackBarOverlap === !0), F = m(() => x.value === !1), w = m(() => {
3173
+ ), L = $t("bar"), x = m(() => t.value.stackBarOverlap === !0), A = m(() => x.value === !1), w = m(() => {
3174
3174
  const V = B.value.position;
3175
3175
  return !V || V === "top" || V === "bottom" || V === "left" || V === "right";
3176
3176
  }), u = m(() => B.value.position ?? "top"), M = m(
@@ -3179,10 +3179,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3179
3179
  () => u.value === "top" || u.value === "left"
3180
3180
  ), q = m(() => ({
3181
3181
  ...g.value,
3182
- stacked: F.value
3182
+ stacked: A.value
3183
3183
  })), ee = m(() => ({
3184
3184
  ...I.value,
3185
- stacked: F.value
3185
+ stacked: A.value
3186
3186
  }));
3187
3187
  function G({
3188
3188
  datasetIndex: V,
@@ -3194,15 +3194,15 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3194
3194
  return Number.isInteger(le) && le > 0 ? le : X + 1;
3195
3195
  }
3196
3196
  const ie = m(() => {
3197
- if (A.value.length > 0) {
3197
+ if (F.value.length > 0) {
3198
3198
  let V = 0, ne = 0;
3199
- const K = A.value.map((X, Z) => {
3200
- const le = t.value.chartColorBinding === _e.metric && (t.value.metricCount ?? 0) > 0 ? X.isCompare ? ne++ % Number(t.value.metricCount) : V++ % Number(t.value.metricCount) : Ae({
3199
+ const K = F.value.map((X, Z) => {
3200
+ const le = t.value.chartColorBinding === _e.metric && (t.value.metricCount ?? 0) > 0 ? X.isCompare ? ne++ % Number(t.value.metricCount) : V++ % Number(t.value.metricCount) : Fe({
3201
3201
  datasetIndex: Z,
3202
3202
  isCompare: X.isCompare,
3203
3203
  metricCount: t.value.metricCount,
3204
3204
  mode: t.value.chartColorBinding
3205
- }), ue = Ae({
3205
+ }), ue = Fe({
3206
3206
  datasetIndex: Z,
3207
3207
  isCompare: X.isCompare,
3208
3208
  metricCount: t.value.metricCount,
@@ -3260,7 +3260,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3260
3260
  var X, Z, le, ue, me, se;
3261
3261
  const K = pe("FmBarChart");
3262
3262
  return Y(), fe(Ve, null, [
3263
- Q("div", Fr, [
3263
+ Q("div", Ar, [
3264
3264
  nt(V.$slots, "menu"),
3265
3265
  Q("div", {
3266
3266
  class: Ie(["chart-layout", {
@@ -3294,7 +3294,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3294
3294
  "x-cfg": q.value,
3295
3295
  "y-cfg": ee.value,
3296
3296
  transpose: r(T),
3297
- stacked: F.value,
3297
+ stacked: A.value,
3298
3298
  legend: {
3299
3299
  display: !1
3300
3300
  },
@@ -3359,14 +3359,14 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3359
3359
  }), $ = m(() => {
3360
3360
  var K;
3361
3361
  return ((K = t.value.data) == null ? void 0 : K.xAxis) || [];
3362
- }), A = m(() => {
3362
+ }), F = m(() => {
3363
3363
  var K;
3364
3364
  return ((K = t.value.data) == null ? void 0 : K.datasets) ?? [];
3365
3365
  }), { datalabels: y, xCfg: g, yCfg: I, isTransposed: T, legend: B, chartWidth: v, chartHeight: f } = Dt(
3366
3366
  t.value
3367
3367
  ), k = m(
3368
3368
  () => Lt(t.value.isTransposed === !0, h.value)
3369
- ), L = $t("bar"), x = m(() => t.value.stackBarOverlap === !0), F = m(() => x.value === !1), w = m(() => {
3369
+ ), L = $t("bar"), x = m(() => t.value.stackBarOverlap === !0), A = m(() => x.value === !1), w = m(() => {
3370
3370
  const K = B.value.position;
3371
3371
  return !K || K === "top" || K === "bottom" || K === "left" || K === "right";
3372
3372
  }), u = m(() => B.value.position ?? "top"), M = m(
@@ -3375,10 +3375,10 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3375
3375
  () => u.value === "top" || u.value === "left"
3376
3376
  ), q = m(() => ({
3377
3377
  ...g.value,
3378
- stacked: F.value
3378
+ stacked: A.value
3379
3379
  })), ee = m(() => ({
3380
3380
  ...I.value,
3381
- stacked: F.value
3381
+ stacked: A.value
3382
3382
  }));
3383
3383
  function G(K) {
3384
3384
  const X = " - ", Z = K.lastIndexOf(X);
@@ -3407,9 +3407,9 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3407
3407
  return Number.isInteger(ue) && ue > 0 ? ue : Z + 1;
3408
3408
  }
3409
3409
  const _ = m(() => {
3410
- if (A.value.length === 0)
3410
+ if (F.value.length === 0)
3411
3411
  return [];
3412
- const K = A.value.map((se, ce) => ({
3412
+ const K = F.value.map((se, ce) => ({
3413
3413
  source: se,
3414
3414
  index: ce,
3415
3415
  name: ie(se == null ? void 0 : se.name, ce),
@@ -3421,7 +3421,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3421
3421
  }
3422
3422
  const le = Math.max(X.size, 1), ue = t.value.chartColorBinding === _e.breakdown, me = t.value.chartUseSecondaryMetricShades !== !1;
3423
3423
  return K.map((se) => {
3424
- const ce = Ae({
3424
+ const ce = Fe({
3425
3425
  datasetIndex: se.index,
3426
3426
  isCompare: se.source.isCompare,
3427
3427
  metricCount: t.value.metricCount,
@@ -3506,7 +3506,7 @@ const Tr = /* @__PURE__ */ oo(_r, [["render", kr]]), Lr = "mf-reporttable-dimens
3506
3506
  "x-cfg": q.value,
3507
3507
  "y-cfg": ee.value,
3508
3508
  transpose: r(T),
3509
- stacked: F.value,
3509
+ stacked: A.value,
3510
3510
  legend: {
3511
3511
  display: !1
3512
3512
  },
@@ -3588,16 +3588,16 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3588
3588
  }), $ = m(() => {
3589
3589
  var R;
3590
3590
  return ((R = t.value.data) == null ? void 0 : R.xAxis) ?? [];
3591
- }), A = m(
3591
+ }), F = m(
3592
3592
  () => $.value.length === 1 && g.value.length > 0 && g.value.every((R) => R.values.length === 1)
3593
- ), y = m(() => A.value ? ["", $.value[0], ""] : $.value), g = m(() => {
3593
+ ), y = m(() => F.value ? ["", $.value[0], ""] : $.value), g = m(() => {
3594
3594
  var R;
3595
3595
  return ((R = t.value.data) == null ? void 0 : R.datasets) ?? [];
3596
3596
  }), { datalabels: I, xCfg: T, yCfg: B, isTransposed: v, legend: f, chartWidth: k, chartHeight: L } = Dt(
3597
3597
  t.value
3598
3598
  ), x = m(
3599
3599
  () => Lt(t.value.isTransposed === !0, h.value)
3600
- ), F = $t("line"), w = vo("report-line-style-plugin-stack-line"), u = m(() => {
3600
+ ), A = $t("line"), w = vo("report-line-style-plugin-stack-line"), u = m(() => {
3601
3601
  const R = f.value.position;
3602
3602
  return !R || R === "top" || R === "bottom" || R === "left" || R === "right";
3603
3603
  }), M = m(() => f.value.position ?? "top"), W = m(
@@ -3608,18 +3608,18 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3608
3608
  ...g.value.map((R, P) => {
3609
3609
  var ce;
3610
3610
  let V = R.values;
3611
- A.value && (V = [NaN, V[0], NaN]);
3612
- const ne = V.map((xe) => xe === null ? NaN : Number(xe)), K = Ae({
3611
+ F.value && (V = [NaN, V[0], NaN]);
3612
+ const ne = V.map((xe) => xe === null ? NaN : Number(xe)), K = Fe({
3613
3613
  datasetIndex: P,
3614
3614
  isCompare: R.isCompare,
3615
3615
  metricCount: t.value.metricCount,
3616
3616
  mode: t.value.chartColorBinding
3617
- }), X = Ae({
3617
+ }), X = Fe({
3618
3618
  datasetIndex: P,
3619
3619
  isCompare: R.isCompare,
3620
3620
  metricCount: t.value.metricCount,
3621
3621
  mode: _e.metric
3622
- }), Z = Ae({
3622
+ }), Z = Fe({
3623
3623
  datasetIndex: P,
3624
3624
  isCompare: R.isCompare,
3625
3625
  metricCount: t.value.metricCount,
@@ -3647,11 +3647,11 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3647
3647
  lineStyle: le,
3648
3648
  fill: !0,
3649
3649
  color: se,
3650
- pointRadius: A.value ? 4 : void 0,
3651
- pointHoverRadius: A.value ? 6 : void 0,
3652
- pointBackgroundColor: A.value ? se : void 0,
3653
- pointBorderColor: A.value ? se : void 0,
3654
- pointBorderWidth: A.value ? 2 : void 0
3650
+ pointRadius: F.value ? 4 : void 0,
3651
+ pointHoverRadius: F.value ? 6 : void 0,
3652
+ pointBackgroundColor: F.value ? se : void 0,
3653
+ pointBorderColor: F.value ? se : void 0,
3654
+ pointBorderWidth: F.value ? 2 : void 0
3655
3655
  };
3656
3656
  })
3657
3657
  ] : []), { hiddenDatasetKeys: G, isDatasetHidden: ie, toggleDatasetVisibility: J } = Et(ee), _ = m(
@@ -3711,7 +3711,7 @@ const $r = { class: "widget-content" }, Hr = /* @__PURE__ */ Ne({
3711
3711
  display: !1
3712
3712
  },
3713
3713
  tooltip: x.value,
3714
- plugins: [r(F), r(w)],
3714
+ plugins: [r(A), r(w)],
3715
3715
  stacked: !0,
3716
3716
  datalabels: r(I),
3717
3717
  "maintain-aspect-ratio": !1,
@@ -3795,14 +3795,14 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3795
3795
  }), $ = m(() => {
3796
3796
  var P;
3797
3797
  return ((P = t.value.data) == null ? void 0 : P.datasets) ?? [];
3798
- }), A = m(() => {
3798
+ }), F = m(() => {
3799
3799
  var P;
3800
3800
  return ((P = t.value.data) == null ? void 0 : P.xAxis) ?? [];
3801
- }), y = m(() => A.value.length === 1 && $.value.length > 1 && $.value.every((P) => P.values.length === 1 && P.isCompare !== !0)), g = m(
3802
- () => A.value.length === 1 && $.value.length > 0 && $.value.every((P) => P.values.length === 1)
3803
- ), I = m(() => y.value ? $.value.map((P) => P.name) : g.value ? ["", A.value[0], ""] : A.value), { datalabels: T, xCfg: B, yCfg: v, isTransposed: f, legend: k, chartWidth: L, chartHeight: x } = Dt(
3801
+ }), y = m(() => F.value.length === 1 && $.value.length > 1 && $.value.every((P) => P.values.length === 1 && P.isCompare !== !0)), g = m(
3802
+ () => F.value.length === 1 && $.value.length > 0 && $.value.every((P) => P.values.length === 1)
3803
+ ), I = m(() => y.value ? $.value.map((P) => P.name) : g.value ? ["", F.value[0], ""] : F.value), { datalabels: T, xCfg: B, yCfg: v, isTransposed: f, legend: k, chartWidth: L, chartHeight: x } = Dt(
3804
3804
  t.value
3805
- ), F = m(
3805
+ ), A = m(
3806
3806
  () => Lt(t.value.isTransposed === !0, h.value)
3807
3807
  ), w = $t("line"), u = vo("report-line-style-plugin-line"), M = m(() => {
3808
3808
  const P = k.value.position;
@@ -3814,12 +3814,12 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3814
3814
  ), G = m(() => $.value.length > 0 ? [
3815
3815
  ...$.value.map((P, V) => {
3816
3816
  var He;
3817
- const ne = Ae({
3817
+ const ne = Fe({
3818
3818
  datasetIndex: V,
3819
3819
  isCompare: P.isCompare,
3820
3820
  metricCount: t.value.metricCount,
3821
3821
  mode: t.value.chartColorBinding
3822
- }), K = Ae({
3822
+ }), K = Fe({
3823
3823
  datasetIndex: V,
3824
3824
  isCompare: P.isCompare,
3825
3825
  metricCount: t.value.metricCount,
@@ -3844,7 +3844,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3844
3844
  y.value ? me = $.value.map(
3845
3845
  (We, Ye) => Ye === V ? P.values[0] : NaN
3846
3846
  ) : g.value && (me = [NaN, me[0], NaN]);
3847
- const se = me.map((We) => We === null ? NaN : Number(We)), ce = g.value || y.value, xe = Ae({
3847
+ const se = me.map((We) => We === null ? NaN : Number(We)), ce = g.value || y.value, xe = Fe({
3848
3848
  datasetIndex: V,
3849
3849
  isCompare: P.isCompare,
3850
3850
  metricCount: t.value.metricCount,
@@ -3920,7 +3920,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3920
3920
  legend: {
3921
3921
  display: !1
3922
3922
  },
3923
- tooltip: F.value,
3923
+ tooltip: A.value,
3924
3924
  datalabels: r(T),
3925
3925
  plugins: [r(w), r(u)],
3926
3926
  "maintain-aspect-ratio": !1,
@@ -3970,7 +3970,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3970
3970
  }),
3971
3971
  emits: ["update:modelValue"],
3972
3972
  setup(e) {
3973
- const { t: n } = ut(), { FmForm: t } = Xo, o = e, s = D(), i = Ee(e, "modelValue"), l = D(!0), h = D(!1), c = Tn(), { selectedLocationIds: C, dateRange: N, timeRange: $ } = it(on()), A = D(dn.PORTRAIT);
3973
+ const { t: n } = ut(), { FmForm: t } = Xo, o = e, s = D(), i = Ee(e, "modelValue"), l = D(!0), h = D(!1), c = Tn(), { selectedLocationIds: C, dateRange: N, timeRange: $ } = it(on()), F = D(dn.PORTRAIT);
3974
3974
  function y() {
3975
3975
  var I;
3976
3976
  (I = s.value) == null || I.validateInputs();
@@ -3981,7 +3981,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
3981
3981
  o.index != null && await no({
3982
3982
  reportType: o.reportType,
3983
3983
  index: o.index,
3984
- orientationTypes: [A.value],
3984
+ orientationTypes: [F.value],
3985
3985
  isCombinedLocationLayout: l.value,
3986
3986
  timeRange: $.value,
3987
3987
  dateRange: N.value,
@@ -4002,7 +4002,7 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
4002
4002
  "z-index": 10
4003
4003
  }, {
4004
4004
  "dialog-header": Le(() => T[3] || (T[3] = [
4005
- Ao("Select Orientation")
4005
+ Fo("Select Orientation")
4006
4006
  ])),
4007
4007
  default: Le(() => [
4008
4008
  he(r(t), {
@@ -4013,8 +4013,8 @@ const Ur = { class: "widget-content" }, Kr = /* @__PURE__ */ Ne({
4013
4013
  default: Le(() => [
4014
4014
  Q("div", qr, [
4015
4015
  he(v, {
4016
- modelValue: A.value,
4017
- "onUpdate:modelValue": T[0] || (T[0] = (L) => A.value = L)
4016
+ modelValue: F.value,
4017
+ "onUpdate:modelValue": T[0] || (T[0] = (L) => F.value = L)
4018
4018
  }, {
4019
4019
  default: Le(() => [
4020
4020
  he(B, {
@@ -4059,7 +4059,7 @@ function Gr(e) {
4059
4059
  function $() {
4060
4060
  return t.value ? t.value.querySelector("table") : null;
4061
4061
  }
4062
- function A() {
4062
+ function F() {
4063
4063
  var w;
4064
4064
  const x = [];
4065
4065
  t.value && t.value.querySelectorAll("div,section,main,article,aside").forEach((u) => {
@@ -4068,13 +4068,13 @@ function Gr(e) {
4068
4068
  (M.overflowX === "auto" || M.overflowX === "scroll") && x.push(u);
4069
4069
  }
4070
4070
  });
4071
- let F = (w = t.value) == null ? void 0 : w.parentElement;
4072
- for (; F; ) {
4073
- if (F.scrollWidth > F.clientWidth) {
4074
- const u = window.getComputedStyle(F);
4075
- (u.overflowX === "auto" || u.overflowX === "scroll") && x.push(F);
4071
+ let A = (w = t.value) == null ? void 0 : w.parentElement;
4072
+ for (; A; ) {
4073
+ if (A.scrollWidth > A.clientWidth) {
4074
+ const u = window.getComputedStyle(A);
4075
+ (u.overflowX === "auto" || u.overflowX === "scroll") && x.push(A);
4076
4076
  }
4077
- F = F.parentElement;
4077
+ A = A.parentElement;
4078
4078
  }
4079
4079
  return x;
4080
4080
  }
@@ -4098,11 +4098,11 @@ function Gr(e) {
4098
4098
  border-collapse: collapse;
4099
4099
  pointer-events: auto;
4100
4100
  `;
4101
- const F = h.cloneNode(!0);
4102
- F.style.cssText = "pointer-events: auto;", g(h, F), x.appendChild(F), i.appendChild(x), document.body.appendChild(i), B(), v(), f(), T();
4101
+ const A = h.cloneNode(!0);
4102
+ A.style.cssText = "pointer-events: auto;", g(h, A), x.appendChild(A), i.appendChild(x), document.body.appendChild(i), B(), v(), f(), T();
4103
4103
  }
4104
- function g(x, F) {
4105
- const w = x.querySelectorAll("th, td"), u = F.querySelectorAll("th, td");
4104
+ function g(x, A) {
4105
+ const w = x.querySelectorAll("th, td"), u = A.querySelectorAll("th, td");
4106
4106
  w.forEach((M, W) => {
4107
4107
  const q = u[W];
4108
4108
  if (!q) return;
@@ -4132,11 +4132,11 @@ function Gr(e) {
4132
4132
  });
4133
4133
  }
4134
4134
  function I() {
4135
- const x = n.value.xs || n.value.sm, F = document.querySelector('[data-editor-header="true"]'), w = document.querySelector('[data-menu-tab="true"]');
4136
- if (x && !F)
4135
+ const x = n.value.xs || n.value.sm, A = document.querySelector('[data-editor-header="true"]'), w = document.querySelector('[data-menu-tab="true"]');
4136
+ if (x && !A)
4137
4137
  return 1;
4138
- if (F)
4139
- return F.getBoundingClientRect().bottom;
4138
+ if (A)
4139
+ return A.getBoundingClientRect().bottom;
4140
4140
  if (w) {
4141
4141
  let u = w;
4142
4142
  for (; u; ) {
@@ -4150,8 +4150,8 @@ function Gr(e) {
4150
4150
  }
4151
4151
  function T() {
4152
4152
  if (!i || !l || !h || !t.value) return;
4153
- const x = t.value.getBoundingClientRect(), F = l.getBoundingClientRect(), w = h.getBoundingClientRect(), u = I();
4154
- if (!(F.top <= u && F.bottom >= u + w.height)) {
4153
+ const x = t.value.getBoundingClientRect(), A = l.getBoundingClientRect(), w = h.getBoundingClientRect(), u = I();
4154
+ if (!(A.top <= u && A.bottom >= u + w.height)) {
4155
4155
  i.style.visibility = "hidden";
4156
4156
  return;
4157
4157
  }
@@ -4166,11 +4166,11 @@ function Gr(e) {
4166
4166
  z && (z.style.width = `${l.offsetWidth}px`, z.style.marginLeft = `${w.left - J}px`);
4167
4167
  }
4168
4168
  function B() {
4169
- var F;
4170
- C = () => requestAnimationFrame(T), window.addEventListener("scroll", C, { passive: !0 }), A().forEach((w) => {
4169
+ var A;
4170
+ C = () => requestAnimationFrame(T), window.addEventListener("scroll", C, { passive: !0 }), F().forEach((w) => {
4171
4171
  C && w.addEventListener("scroll", C, { passive: !0 });
4172
4172
  });
4173
- let x = (F = t.value) == null ? void 0 : F.parentElement;
4173
+ let x = (A = t.value) == null ? void 0 : A.parentElement;
4174
4174
  for (; x; )
4175
4175
  x !== document.body && (x.scrollHeight > x.clientHeight || x.scrollWidth > x.clientWidth) && x.addEventListener("scroll", C, { passive: !0 }), x = x.parentElement;
4176
4176
  }
@@ -4179,22 +4179,22 @@ function Gr(e) {
4179
4179
  if (h && i) {
4180
4180
  const x = i.querySelector("thead");
4181
4181
  x && g(h, x);
4182
- const F = i.querySelector("table");
4183
- F && l && (F.style.width = `${l.offsetWidth}px`);
4182
+ const A = i.querySelector("table");
4183
+ A && l && (A.style.width = `${l.offsetWidth}px`);
4184
4184
  }
4185
4185
  T();
4186
4186
  }), t.value && c.observe(t.value), l && c.observe(l);
4187
4187
  }
4188
4188
  function f() {
4189
4189
  if (!h) return;
4190
- const x = mn(() => y(), 100), F = () => {
4190
+ const x = mn(() => y(), 100), A = () => {
4191
4191
  if (h && i) {
4192
4192
  const w = i.querySelector("thead");
4193
4193
  w && g(h, w), T();
4194
4194
  }
4195
4195
  };
4196
4196
  N = new MutationObserver((w) => {
4197
- w.some((M) => M.type === "childList" ? M.addedNodes.length > 0 || M.removedNodes.length > 0 : !1) ? x() : F();
4197
+ w.some((M) => M.type === "childList" ? M.addedNodes.length > 0 || M.removedNodes.length > 0 : !1) ? x() : A();
4198
4198
  }), N.observe(h, {
4199
4199
  childList: !0,
4200
4200
  subtree: !0,
@@ -4205,12 +4205,12 @@ function Gr(e) {
4205
4205
  function k() {
4206
4206
  var x;
4207
4207
  if (i && (i.remove(), i = null), C) {
4208
- window.removeEventListener("scroll", C), A().forEach((w) => {
4208
+ window.removeEventListener("scroll", C), F().forEach((w) => {
4209
4209
  C && w.removeEventListener("scroll", C);
4210
4210
  });
4211
- let F = (x = t.value) == null ? void 0 : x.parentElement;
4212
- for (; F; )
4213
- F.removeEventListener("scroll", C), F = F.parentElement;
4211
+ let A = (x = t.value) == null ? void 0 : x.parentElement;
4212
+ for (; A; )
4213
+ A.removeEventListener("scroll", C), A = A.parentElement;
4214
4214
  C = null;
4215
4215
  }
4216
4216
  c && (c.disconnect(), c = null), N && (N.disconnect(), N = null), l = null, h = null;
@@ -4269,7 +4269,7 @@ const jr = {
4269
4269
  }), { refresh: $ } = Gr({
4270
4270
  containerRef: N,
4271
4271
  isTable: C
4272
- }), A = D(o.rollup), y = D(Rt()), g = D(o.drillDimension), I = m(() => {
4272
+ }), F = D(o.rollup), y = D(Rt()), g = D(o.drillDimension), I = m(() => {
4273
4273
  if (ke.value.length > 0) {
4274
4274
  const S = ke.value.findIndex(
4275
4275
  (ve) => ve.value === g.value
@@ -4279,7 +4279,7 @@ const jr = {
4279
4279
  return -1;
4280
4280
  }), T = m(() => I.value !== 0), B = m(
4281
4281
  () => I.value != ke.value.length - 1
4282
- ), v = D(o.showTitle ?? !0), f = D(o.titleFontSize ?? 14), k = D(o.titleBold ?? !1), L = D(o.titleItalic ?? !1), x = D(o.titleUnderline ?? !1), F = D(o.chartWidth ?? void 0), w = D(o.chartHeight ?? void 0), u = D(
4282
+ ), v = D(o.showTitle ?? !0), f = D(o.titleFontSize ?? 14), k = D(o.titleBold ?? !1), L = D(o.titleItalic ?? !1), x = D(o.titleUnderline ?? !1), A = D(o.chartWidth ?? void 0), w = D(o.chartHeight ?? void 0), u = D(
4283
4283
  Array.isArray(o.chartColors) ? [...o.chartColors] : void 0
4284
4284
  ), M = D(
4285
4285
  Array.isArray(o.chartColorLayers) ? [...o.chartColorLayers] : void 0
@@ -4321,7 +4321,7 @@ const jr = {
4321
4321
  case oe.Spacer:
4322
4322
  return Tr;
4323
4323
  case oe.Table:
4324
- return Ar;
4324
+ return Fr;
4325
4325
  default:
4326
4326
  return Nn;
4327
4327
  }
@@ -4335,7 +4335,7 @@ const jr = {
4335
4335
  ...S,
4336
4336
  config: {
4337
4337
  ...S.config,
4338
- rollup: A.value,
4338
+ rollup: F.value,
4339
4339
  drillDimension: g.value,
4340
4340
  showGrandTotal: !1
4341
4341
  }
@@ -4354,7 +4354,7 @@ const jr = {
4354
4354
  );
4355
4355
  return S + ve;
4356
4356
  });
4357
- function Fe() {
4357
+ function Ae() {
4358
4358
  return {
4359
4359
  data: d.value,
4360
4360
  showTitle: v.value,
@@ -4363,7 +4363,7 @@ const jr = {
4363
4363
  titleItalic: L.value,
4364
4364
  titleUnderline: x.value,
4365
4365
  chartHeight: w.value,
4366
- chartWidth: F.value,
4366
+ chartWidth: A.value,
4367
4367
  chartColors: u.value,
4368
4368
  chartColorLayers: M.value,
4369
4369
  chartBreakdownColors: W.value,
@@ -4425,7 +4425,7 @@ const jr = {
4425
4425
  case oe.ClusteredStackBarChart:
4426
4426
  case oe.StackLineChart:
4427
4427
  case oe.Circular:
4428
- return Fe();
4428
+ return Ae();
4429
4429
  default:
4430
4430
  return { data: d.value };
4431
4431
  }
@@ -4460,11 +4460,11 @@ const jr = {
4460
4460
  we(
4461
4461
  () => t.value.widget.config,
4462
4462
  (S) => {
4463
- A.value = S.rollup, v.value = S.showTitle ?? !0, f.value = S.titleFontSize ?? 14, k.value = S.titleBold ?? !1, L.value = S.titleItalic ?? !1, x.value = S.titleUnderline ?? !1, w.value = S.chartHeight ?? void 0, F.value = S.chartWidth ?? void 0, u.value = Array.isArray(S.chartColors) ? [...S.chartColors] : void 0, M.value = Array.isArray(S.chartColorLayers) ? [...S.chartColorLayers] : void 0, W.value = Array.isArray(S.chartBreakdownColors) ? [...S.chartBreakdownColors] : void 0, q.value = S.chartUseSecondaryMetricShades ?? !0, ee.value = S.chartColorBinding, G.value = Array.isArray(S.lineStyles) ? [...S.lineStyles] : void 0, ie.value = S.lineStyleBinding, J.value = S.showLabel ?? !1, _.value = S.labelAlign ?? yn.center, E.value = S.labelAnchor ?? gn.center, z.value = S.labelRotation ?? 0, R.value = S.labelOffset ?? 0, P.value = S.labelFontSize ?? 12, ne.value = S.showX ?? !0, K.value = S.xPosition ?? bn.bottom, X.value = S.showXGrid ?? !1, Z.value = S.showXTick ?? !0, le.value = S.xTickFontSize ?? 12, ue.value = S.showXTitle ?? !1, me.value = S.xTitle ?? "", se.value = S.xTitleFontSize ?? 12, ce.value = S.showY ?? !0, xe.value = S.yPosition ?? Cn.left, Be.value = S.showYGrid ?? !1, He.value = S.showYTick ?? !0, We.value = S.yTickFontSize ?? 12, Ye.value = S.showYTitle ?? !1, ct.value = S.yTitle ?? "", ot.value = S.yTitleFontSize ?? 12, Ge.value = S.showLegend ?? void 0, Ot.value = S.legendPosition ?? xn.top, je.value = S.usePointStyle ?? !0, Ut.value = S.legendFontSize, Kt.value = S.legendColor ?? "#6b6b6b", qt.value = S.legendMaxWidth, It.value = S.maxTooltipItems, Je.value = S.stackBarOverlap ?? !1, Xt.value = S.rowHeight ?? 0, Yt.value = S.colWidths ?? [], y.value = Rt();
4463
+ F.value = S.rollup, v.value = S.showTitle ?? !0, f.value = S.titleFontSize ?? 14, k.value = S.titleBold ?? !1, L.value = S.titleItalic ?? !1, x.value = S.titleUnderline ?? !1, w.value = S.chartHeight ?? void 0, A.value = S.chartWidth ?? void 0, u.value = Array.isArray(S.chartColors) ? [...S.chartColors] : void 0, M.value = Array.isArray(S.chartColorLayers) ? [...S.chartColorLayers] : void 0, W.value = Array.isArray(S.chartBreakdownColors) ? [...S.chartBreakdownColors] : void 0, q.value = S.chartUseSecondaryMetricShades ?? !0, ee.value = S.chartColorBinding, G.value = Array.isArray(S.lineStyles) ? [...S.lineStyles] : void 0, ie.value = S.lineStyleBinding, J.value = S.showLabel ?? !1, _.value = S.labelAlign ?? yn.center, E.value = S.labelAnchor ?? gn.center, z.value = S.labelRotation ?? 0, R.value = S.labelOffset ?? 0, P.value = S.labelFontSize ?? 12, ne.value = S.showX ?? !0, K.value = S.xPosition ?? bn.bottom, X.value = S.showXGrid ?? !1, Z.value = S.showXTick ?? !0, le.value = S.xTickFontSize ?? 12, ue.value = S.showXTitle ?? !1, me.value = S.xTitle ?? "", se.value = S.xTitleFontSize ?? 12, ce.value = S.showY ?? !0, xe.value = S.yPosition ?? Cn.left, Be.value = S.showYGrid ?? !1, He.value = S.showYTick ?? !0, We.value = S.yTickFontSize ?? 12, Ye.value = S.showYTitle ?? !1, ct.value = S.yTitle ?? "", ot.value = S.yTitleFontSize ?? 12, Ge.value = S.showLegend ?? void 0, Ot.value = S.legendPosition ?? xn.top, je.value = S.usePointStyle ?? !0, Ut.value = S.legendFontSize, Kt.value = S.legendColor ?? "#6b6b6b", qt.value = S.legendMaxWidth, It.value = S.maxTooltipItems, Je.value = S.stackBarOverlap ?? !1, Xt.value = S.rowHeight ?? 0, Yt.value = S.colWidths ?? [], y.value = Rt();
4464
4464
  },
4465
4465
  { deep: !0 }
4466
- ), we([() => A.value], () => {
4467
- A.value !== null && (t.value.widget.config.rollup = A.value);
4466
+ ), we([() => F.value], () => {
4467
+ F.value !== null && (t.value.widget.config.rollup = F.value);
4468
4468
  }), we(
4469
4469
  [
4470
4470
  () => ae.value,
@@ -4536,7 +4536,7 @@ const jr = {
4536
4536
  const S = I.value + 1;
4537
4537
  S >= 0 && S < ke.value.length && (g.value = ke.value[S].value);
4538
4538
  }
4539
- const Pn = D(gt.EXCEL), An = D(), Co = Object.values(gt).map((S) => ({
4539
+ const Pn = D(gt.EXCEL), Fn = D(), Co = Object.values(gt).map((S) => ({
4540
4540
  label: Ho(S),
4541
4541
  value: S,
4542
4542
  onClick: async () => {
@@ -4547,7 +4547,7 @@ const jr = {
4547
4547
  timeRange: j.value,
4548
4548
  dateRange: H.value,
4549
4549
  locationIds: b.value
4550
- }) : S === gt.PDF && (Pn.value = S, An.value = h.index, Mt.value = !0);
4550
+ }) : S === gt.PDF && (Pn.value = S, Fn.value = h.index, Mt.value = !0);
4551
4551
  }
4552
4552
  })), xo = ae.value.type === oe.Spacer ? "flat" : "outlined", wo = ae.value.type === oe.Spacer ? "p-0" : "p-16";
4553
4553
  return (S, ve) => {
@@ -4563,7 +4563,7 @@ const jr = {
4563
4563
  modelValue: Mt.value,
4564
4564
  "onUpdate:modelValue": ve[0] || (ve[0] = (vt) => Mt.value = vt),
4565
4565
  "report-type": Pn.value,
4566
- index: An.value
4566
+ index: Fn.value
4567
4567
  }, null, 8, ["modelValue", "report-type", "index"]),
4568
4568
  !n.value && !r(O) ? (Y(), fe("div", {
4569
4569
  key: 0,
@@ -4578,7 +4578,7 @@ const jr = {
4578
4578
  menu: Le(() => [
4579
4579
  he(To, { class: "flex items-center gap-2" }, {
4580
4580
  default: Le(() => {
4581
- var vt, Fn, Rn, zn;
4581
+ var vt, An, Rn, zn;
4582
4582
  return [
4583
4583
  he(Re, {
4584
4584
  variant: "plain",
@@ -4611,13 +4611,13 @@ const jr = {
4611
4611
  "onUpdate:modelValue": ve[1] || (ve[1] = (Ke) => dt.value = Ke),
4612
4612
  class: "grow"
4613
4613
  }, null, 8, ["modelValue"])) : (Y(), fe("div", jr)),
4614
- Fo(he(cn, {
4614
+ Ao(he(cn, {
4615
4615
  modelValue: J.value,
4616
4616
  "onUpdate:modelValue": ve[2] || (ve[2] = (Ke) => J.value = Ke),
4617
4617
  label: "Label",
4618
4618
  value: !1
4619
4619
  }, null, 8, ["modelValue"]), [
4620
- [Ro, (Fn = ht.value) == null ? void 0 : Fn.showLabel]
4620
+ [Ro, (An = ht.value) == null ? void 0 : An.showLabel]
4621
4621
  ]),
4622
4622
  (Rn = ht.value) != null && Rn.showDrillDimension && ke.value.length > 0 ? (Y(), fe("div", Jr, [
4623
4623
  he(pt, {
@@ -4635,8 +4635,8 @@ const jr = {
4635
4635
  ])) : be("", !0),
4636
4636
  (zn = ht.value) != null && zn.showRollup && Qe.value.length > 0 ? (Y(), ge(So, {
4637
4637
  key: `rollup-${r(l)}`,
4638
- modelValue: A.value,
4639
- "onUpdate:modelValue": ve[3] || (ve[3] = (Ke) => A.value = Ke),
4638
+ modelValue: F.value,
4639
+ "onUpdate:modelValue": ve[3] || (ve[3] = (Ke) => F.value = Ke),
4640
4640
  class: "w-[150px]",
4641
4641
  items: Qe.value
4642
4642
  }, null, 8, ["modelValue", "items"])) : be("", !0),