@feedmepos/mf-report 5.23.9 → 5.24.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/{App-BZrJScUy.js → App-Ca8EX9o9.js} +61 -61
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-pYe2bX3S.js → BaseDialog.vue_vue_type_script_setup_true_lang-Dz0x7TdH.js} +543 -536
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-XYtSMlzj.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Bgd59D_l.js} +1 -1
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-cdffEExQ.js → Default.vue_vue_type_script_setup_true_lang-2y-2eXo6.js} +1 -1
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DclkRCoN.js → FilterSelector.vue_vue_type_script_setup_true_lang-BMuFxssD.js} +176 -176
  6. package/dist/{InsightView-Tv1zwcZH.js → InsightView-CLAdR01F.js} +4 -4
  7. package/dist/{Integration-IU2PWqnn.js → Integration-DHPhQlqN.js} +3 -3
  8. package/dist/{Integrations-BWvWAEZY.js → Integrations-Cs6eso8_.js} +2 -2
  9. package/dist/{Layout-B1evYsv9.js → Layout-ZDKsMVWv.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BQPCJYFc.js → MenuTab.vue_vue_type_script_setup_true_lang-BDVdQQNa.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BLvQUAWn.js → NavigationTab.vue_vue_type_script_setup_true_lang-BPdE2225.js} +3 -3
  12. package/dist/{OverviewView-Cz66yY79.js → OverviewView-D9IsJtB8.js} +4 -4
  13. package/dist/{Report-I1TVhc_5.js → Report-C_raNCzj.js} +3 -3
  14. package/dist/ReportEditor-CHjaWaKZ.js +1442 -0
  15. package/dist/{ReportView-T2ThdsZQ.js → ReportView-DLzw1TOE.js} +6 -6
  16. package/dist/{Setting-BjVIDt8e.js → Setting-DdiCM7TR.js} +3 -3
  17. package/dist/{TileEditor-VPautwYN.js → TileEditor-CXyPjAFT.js} +5 -5
  18. package/dist/{TransitionFade-BCxLswdT.js → TransitionFade-CUbwBbWF.js} +4 -4
  19. package/dist/{app-AWxvVekP.js → app-CxNoJZY6.js} +32 -16
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{processTableData.worker-CC1ehXtr.js → formatChartData.worker-C3U_CcDO.js} +29 -29
  22. package/dist/assets/{formatChartData.worker-DkfLOO1x.js → processTableData.worker-D_oiIvNW.js} +29 -29
  23. package/dist/{useRestaurantPermission-C0aF3n_j.js → useRestaurantPermission-DAxXW0Qp.js} +1 -1
  24. package/package.json +1 -1
  25. package/dist/ReportEditor-CHns80TI.js +0 -1406
@@ -1,7 +1,7 @@
1
- import { computed as v, defineComponent as at, ref as D, onMounted as it, onBeforeUnmount as ia, resolveComponent as ge, createBlock as we, openBlock as X, Transition as Ha, withCtx as ze, createElementBlock as be, createCommentVNode as Me, createElementVNode as J, unref as l, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as me, Fragment as et, renderList as Lt, normalizeClass as qe, watch as Pe, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as ln, createSlots as Wa, resolveDynamicComponent as ua, toRaw as Oa, markRaw as Ea, createTextVNode as bn, onUnmounted as ca, withDirectives as Ua, vShow as Ka } from "vue";
2
- import { W as ie, d as Ht, e as qa, S as St, v as Gt, f as Xa, g as vn, h as da, q as fa, R as Ft, i as Ya, D as ht, b as Je, C as st, u as Ga, a as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-pYe2bX3S.js";
3
- import { k as Za, z as Qa, l as eo, m as to, a as jt, u as Bn, d as Bt, i as no } from "./app-AWxvVekP.js";
4
- import { d as Cn, _ as ao, a as oo, b as lo, c as ro } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-XYtSMlzj.js";
1
+ import { computed as v, defineComponent as at, ref as D, onMounted as it, onBeforeUnmount as ia, resolveComponent as ge, createBlock as we, openBlock as Y, Transition as Ha, withCtx as ze, createElementBlock as be, createCommentVNode as Me, createElementVNode as J, unref as l, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as me, Fragment as et, renderList as Lt, normalizeClass as qe, watch as Pe, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as ln, createSlots as Wa, resolveDynamicComponent as ua, toRaw as Oa, markRaw as Ea, createTextVNode as bn, onUnmounted as ca, withDirectives as Ua, vShow as Ka } from "vue";
2
+ import { W as ie, d as Ht, e as qa, S as St, v as Gt, f as Ya, g as vn, h as da, q as fa, R as Ft, i as Xa, D as ht, b as Je, C as st, u as Ga, a as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Dz0x7TdH.js";
3
+ import { k as Za, z as Qa, l as eo, m as to, a as jt, u as Bn, d as Bt, i as no } from "./app-CxNoJZY6.js";
4
+ import { d as Cn, _ as ao, a as oo, b as lo, c as ro } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Bgd59D_l.js";
5
5
  import { storeToRefs as vt, defineStore as ma } from "pinia";
6
6
  import { C as wn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as so } from "@feedmepos/mf-common";
@@ -356,7 +356,7 @@ function So() {
356
356
  };
357
357
  }
358
358
  const _o = "rgba(0, 0, 0, 0.3)";
359
- function Xn(e) {
359
+ function Yn(e) {
360
360
  if (typeof document > "u" || typeof window > "u")
361
361
  return;
362
362
  const n = String((e == null ? void 0 : e.id) ?? "");
@@ -430,22 +430,22 @@ function Qt(e) {
430
430
  n && (a.ctx.restore(), n = !1);
431
431
  },
432
432
  beforeDestroy: (a) => {
433
- Xn(a);
433
+ Yn(a);
434
434
  },
435
435
  afterDestroy: (a) => {
436
- Xn(a);
436
+ Yn(a);
437
437
  }
438
438
  };
439
439
  }
440
440
  const Lo = Number.POSITIVE_INFINITY, In = 2, Do = 1, Io = 0.2, Mo = 120, { breakpoints: At } = fn(), An = "report-v5:locationchange";
441
- let Yn = !1;
441
+ let Xn = !1;
442
442
  function Gn() {
443
443
  window.dispatchEvent(new Event(An));
444
444
  }
445
445
  function Fo() {
446
- if (Yn)
446
+ if (Xn)
447
447
  return;
448
- Yn = !0;
448
+ Xn = !0;
449
449
  const e = window.history.pushState.bind(window.history), n = window.history.replaceState.bind(window.history);
450
450
  window.history.pushState = function(...a) {
451
451
  const r = e(...a);
@@ -485,13 +485,13 @@ function zo(e, n) {
485
485
  return e.type === "bar" ? !0 : n === "bar";
486
486
  }
487
487
  function Po(e, n, t) {
488
- const a = Xt(e.borderColor, n) || Xt(e.color, n), r = Xt(e.backgroundColor, n), s = Xt(e.pointBorderColor, n), u = Xt(e.pointBackgroundColor, n);
488
+ const a = Yt(e.borderColor, n) || Yt(e.color, n), r = Yt(e.backgroundColor, n), s = Yt(e.pointBorderColor, n), u = Yt(e.pointBackgroundColor, n);
489
489
  return t ? jn(r, u, a, s) : jn(a, s, r, u);
490
490
  }
491
491
  function Ro(e) {
492
492
  return e.trim().toLowerCase();
493
493
  }
494
- function Xt(e, n) {
494
+ function Yt(e, n) {
495
495
  if (typeof e == "string") return e;
496
496
  if (Array.isArray(e)) {
497
497
  const t = e[n];
@@ -643,7 +643,7 @@ function rn(e, n, t, a, r, s, u, p, d) {
643
643
  );
644
644
  return e.innerHTML !== C.html && (e.innerHTML = C.html, rl(e)), C;
645
645
  }
646
- function Xo(e, n, t, a, r, s, u, p, d) {
646
+ function Yo(e, n, t, a, r, s, u, p, d) {
647
647
  if (Number.isFinite(r))
648
648
  return {
649
649
  markup: rn(
@@ -742,7 +742,7 @@ function sn(e, n) {
742
742
  (t) => typeof t == "string" ? Qn(t, n) : t
743
743
  ) : e;
744
744
  }
745
- function Yo(e) {
745
+ function Xo(e) {
746
746
  e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
747
747
  borderColor: Reflect.get(e, "borderColor"),
748
748
  backgroundColor: Reflect.get(e, "backgroundColor"),
@@ -778,7 +778,7 @@ function un(e, n) {
778
778
  const t = e.data.datasets;
779
779
  if (t.length !== 0) {
780
780
  if (t.forEach((a, r) => {
781
- Yo(a), !n || r === n.datasetIndex ? Go(a) : jo(a, Io);
781
+ Xo(a), !n || r === n.datasetIndex ? Go(a) : jo(a, Io);
782
782
  }), typeof e.setActiveElements == "function")
783
783
  try {
784
784
  n ? e.setActiveElements([
@@ -1113,7 +1113,7 @@ function ul(e, n) {
1113
1113
  Pt(d);
1114
1114
  const N = (n == null ? void 0 : n.viewFullDetailsLabel) ?? ba(), H = !!(n != null && n.onViewFullDetails), I = (G = C.find((ne) => typeof ne.dataIndex == "number")) == null ? void 0 : G.dataIndex, b = ((le = a == null ? void 0 : a.data) == null ? void 0 : le.datasets) ?? [], f = (te = a == null ? void 0 : a.config) == null ? void 0 : te.type, {
1115
1115
  markup: { detailsPayload: M, hasCollapsedValues: B }
1116
- } = Xo(
1116
+ } = Yo(
1117
1117
  d,
1118
1118
  C,
1119
1119
  e,
@@ -1398,7 +1398,7 @@ const cl = {
1398
1398
  m(), document.removeEventListener("pointerdown", A, !0), document.removeEventListener("keydown", _), window.removeEventListener("resize", w);
1399
1399
  }), (c, F) => {
1400
1400
  const E = ge("FmButton");
1401
- return X(), we(Ha, {
1401
+ return Y(), we(Ha, {
1402
1402
  "enter-active-class": "transform transition duration-200 ease-out",
1403
1403
  "enter-from-class": "translate-x-full opacity-0",
1404
1404
  "enter-to-class": "translate-x-0 opacity-100",
@@ -1407,7 +1407,7 @@ const cl = {
1407
1407
  "leave-to-class": "translate-x-full opacity-0"
1408
1408
  }, {
1409
1409
  default: ze(() => [
1410
- d.value ? (X(), be("div", cl, [
1410
+ d.value ? (Y(), be("div", cl, [
1411
1411
  J("div", {
1412
1412
  ref_key: "panelRef",
1413
1413
  ref: s,
@@ -1437,12 +1437,12 @@ const cl = {
1437
1437
  class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
1438
1438
  onMouseleave: f
1439
1439
  }, [
1440
- (X(!0), be(et, null, Lt(C.value, (G, le) => (X(), be("div", {
1440
+ (Y(!0), be(et, null, Lt(C.value, (G, le) => (Y(), be("div", {
1441
1441
  key: `${G.title || "section"}-${le}`,
1442
1442
  class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
1443
1443
  }, [
1444
- G.title ? (X(), be("p", pl, Ge(G.title), 1)) : Me("", !0),
1445
- (X(!0), be(et, null, Lt(G.values, (te, ce) => (X(), be("button", {
1444
+ G.title ? (Y(), be("p", pl, Ge(G.title), 1)) : Me("", !0),
1445
+ (Y(!0), be(et, null, Lt(G.values, (te, ce) => (Y(), be("button", {
1446
1446
  key: `${te.text}-${ce}`,
1447
1447
  type: "button",
1448
1448
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex w-full items-start justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
@@ -1643,7 +1643,7 @@ const wl = {
1643
1643
  }
1644
1644
  return null;
1645
1645
  }
1646
- function Y() {
1646
+ function X() {
1647
1647
  var h, S, K, q;
1648
1648
  const o = (S = (h = N.value) == null ? void 0 : h.closest(".chart-layout")) == null ? void 0 : S.parentElement;
1649
1649
  if (o instanceof HTMLElement)
@@ -1665,7 +1665,7 @@ const wl = {
1665
1665
  return Number.isFinite(y) && y > 0 ? y : null;
1666
1666
  }
1667
1667
  function ae() {
1668
- const o = Y();
1668
+ const o = X();
1669
1669
  if (o) {
1670
1670
  const oe = Number(o.getBoundingClientRect().height);
1671
1671
  if (Number.isFinite(oe) && oe > 0)
@@ -1678,7 +1678,7 @@ const wl = {
1678
1678
  return Number.isFinite(q) && q > 0 ? q : null;
1679
1679
  }
1680
1680
  function ue() {
1681
- const o = Y();
1681
+ const o = X();
1682
1682
  if (o) {
1683
1683
  const oe = Number(o.getBoundingClientRect().width);
1684
1684
  if (Number.isFinite(oe) && oe > 0)
@@ -1755,7 +1755,7 @@ const wl = {
1755
1755
  function Ne(o) {
1756
1756
  return Array.isArray(t.hiddenDataPointIndexes) ? t.hiddenDataPointIndexes.includes(o) : !1;
1757
1757
  }
1758
- function Xe(o) {
1758
+ function Ye(o) {
1759
1759
  return Array.isArray(o) ? o : [];
1760
1760
  }
1761
1761
  function i(o) {
@@ -1820,14 +1820,14 @@ const wl = {
1820
1820
  y.buildLabels();
1821
1821
  } catch {
1822
1822
  }
1823
- const h = Xe(y == null ? void 0 : y.legendItems);
1823
+ const h = Ye(y == null ? void 0 : y.legendItems);
1824
1824
  if (h.length > 0)
1825
1825
  return h;
1826
1826
  const S = (ke = (j = o == null ? void 0 : o.options) == null ? void 0 : j.plugins) == null ? void 0 : ke.legend, K = S == null ? void 0 : S.labels, q = K == null ? void 0 : K.generateLabels, oe = (se = (ve = (xe = ($e = wn.defaults) == null ? void 0 : $e.plugins) == null ? void 0 : xe.legend) == null ? void 0 : ve.labels) == null ? void 0 : se.generateLabels;
1827
- let pe = Xe(
1827
+ let pe = Ye(
1828
1828
  typeof q == "function" ? q(o) : []
1829
1829
  );
1830
- return pe.length === 0 && typeof oe == "function" && (pe = Xe(oe(o))), typeof (K == null ? void 0 : K.filter) == "function" && (pe = pe.filter((Ke) => K.filter(Ke, o.data))), typeof (K == null ? void 0 : K.sort) == "function" && (pe = [...pe].sort((Ke, ot) => K.sort(Ke, ot, o.data))), (S == null ? void 0 : S.reverse) === !0 && (pe = [...pe].reverse()), pe;
1830
+ return pe.length === 0 && typeof oe == "function" && (pe = Ye(oe(o))), typeof (K == null ? void 0 : K.filter) == "function" && (pe = pe.filter((Ke) => K.filter(Ke, o.data))), typeof (K == null ? void 0 : K.sort) == "function" && (pe = [...pe].sort((Ke, ot) => K.sort(Ke, ot, o.data))), (S == null ? void 0 : S.reverse) === !0 && (pe = [...pe].reverse()), pe;
1831
1831
  }
1832
1832
  function Q(o) {
1833
1833
  var h;
@@ -1881,7 +1881,7 @@ const wl = {
1881
1881
  ) : !!(j != null && j.hidden)
1882
1882
  }));
1883
1883
  }
1884
- function Ye() {
1884
+ function Xe() {
1885
1885
  var y;
1886
1886
  const o = (y = t.chartRef) == null ? void 0 : y.datasets;
1887
1887
  return Array.isArray(o) ? o : [];
@@ -2115,7 +2115,7 @@ const wl = {
2115
2115
  });
2116
2116
  return;
2117
2117
  }
2118
- const ke = Ye();
2118
+ const ke = Xe();
2119
2119
  if (!h) {
2120
2120
  if (pe.length > 0) {
2121
2121
  const xe = o.hidden !== !0;
@@ -2163,7 +2163,7 @@ const wl = {
2163
2163
  }
2164
2164
  ), ia(() => {
2165
2165
  V.value = !1, le(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", $), window.removeEventListener("mouseup", R);
2166
- }), (o, y) => L.value ? (X(), be("div", {
2166
+ }), (o, y) => L.value ? (Y(), be("div", {
2167
2167
  key: 0,
2168
2168
  ref_key: "legendPanelRef",
2169
2169
  ref: N,
@@ -2195,7 +2195,7 @@ const wl = {
2195
2195
  style: Ze(He.value),
2196
2196
  onScroll: U
2197
2197
  }, [
2198
- (X(!0), be(et, null, Lt(Le.value, (h, S) => (X(), be("li", {
2198
+ (Y(!0), be(et, null, Lt(Le.value, (h, S) => (Y(), be("li", {
2199
2199
  key: Re(h, S),
2200
2200
  class: qe(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
2201
2201
  "w-full": x.value,
@@ -2223,7 +2223,7 @@ const wl = {
2223
2223
  }, Ge(h.text), 11, Sl)
2224
2224
  ], 10, xl)
2225
2225
  ], 2))), 128)),
2226
- d.value ? (X(), be("li", _l, [
2226
+ d.value ? (Y(), be("li", _l, [
2227
2227
  J("button", {
2228
2228
  type: "button",
2229
2229
  class: "inline-flex max-w-full cursor-pointer select-none underline items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4] transition-colors hover:bg-black/5",
@@ -2232,7 +2232,7 @@ const wl = {
2232
2232
  }, Ge(p.value ? l(r)("report.widget.legend.viewLess") : l(r)("report.widget.legend.viewMore")), 1)
2233
2233
  ])) : Me("", !0)
2234
2234
  ], 38),
2235
- A.value ? (X(), be("div", {
2235
+ A.value ? (Y(), be("div", {
2236
2236
  key: 0,
2237
2237
  class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
2238
2238
  onMousedown: z
@@ -2334,7 +2334,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2334
2334
  b.value && (re = H.value.map(
2335
2335
  (ue, he) => he === P ? z.values[0] : NaN
2336
2336
  ));
2337
- const Y = t.value.chartColorBinding === Ue.breakdown, ee = zt({
2337
+ const X = t.value.chartColorBinding === Ue.breakdown, ee = zt({
2338
2338
  fallbackIndex: P,
2339
2339
  metricCount: t.value.metricCount
2340
2340
  }), ae = re.map((ue) => ue === null ? NaN : Number(ue));
@@ -2342,7 +2342,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2342
2342
  label: z.name,
2343
2343
  data: ae,
2344
2344
  dash: !!z.isCompare,
2345
- backgroundColor: Y ? Wt({
2345
+ backgroundColor: X ? Wt({
2346
2346
  breakdownIndex: ee,
2347
2347
  metricIndex: R,
2348
2348
  metricCount: t.value.metricCount,
@@ -2373,9 +2373,9 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2373
2373
  }), Pe([ne], () => {
2374
2374
  tt(() => U());
2375
2375
  }), (z, P) => {
2376
- var R, re, Y, ee, ae, ue;
2376
+ var R, re, X, ee, ae, ue;
2377
2377
  const $ = ge("FmBarChart");
2378
- return X(), be(et, null, [
2378
+ return Y(), be(et, null, [
2379
2379
  J("div", Il, [
2380
2380
  yt(z.$slots, "menu"),
2381
2381
  J("div", {
@@ -2383,14 +2383,14 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2383
2383
  "chart-layout--side": _.value && (l(m).display ?? !1) && F.value
2384
2384
  }])
2385
2385
  }, [
2386
- _.value && (l(m).display ?? !1) && E.value ? (X(), we(rt, {
2386
+ _.value && (l(m).display ?? !1) && E.value ? (Y(), we(rt, {
2387
2387
  key: 0,
2388
2388
  "chart-ref": a.value,
2389
2389
  enabled: l(m).display ?? !1,
2390
2390
  position: c.value,
2391
2391
  "max-width": l(m).maxWidth,
2392
2392
  "text-color": (R = l(m).labels) == null ? void 0 : R.color,
2393
- "font-size": (Y = (re = l(m).labels) == null ? void 0 : re.font) == null ? void 0 : Y.size,
2393
+ "font-size": (X = (re = l(m).labels) == null ? void 0 : re.font) == null ? void 0 : X.size,
2394
2394
  "legend-update-key": ne.value,
2395
2395
  "chart-color-binding": t.value.chartColorBinding,
2396
2396
  "chart-colors": t.value.chartColors,
@@ -2421,7 +2421,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2421
2421
  "--chart-height": _.value && (l(m).display ?? !1) && !F.value ? "calc(100% - 36px - var(--legend-panel-height, 0px))" : l(x) !== void 0 ? l(x) + "px" : "100%"
2422
2422
  })
2423
2423
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
2424
- _.value && (l(m).display ?? !1) && !E.value ? (X(), we(rt, {
2424
+ _.value && (l(m).display ?? !1) && !E.value ? (Y(), we(rt, {
2425
2425
  key: 1,
2426
2426
  "chart-ref": a.value,
2427
2427
  enabled: l(m).display ?? !1,
@@ -2520,14 +2520,14 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2520
2520
  }
2521
2521
  return (c, F) => {
2522
2522
  const E = ge("FmPieChart");
2523
- return X(), be("div", Fl, [
2523
+ return Y(), be("div", Fl, [
2524
2524
  yt(c.$slots, "menu"),
2525
2525
  J("div", {
2526
2526
  class: qe(["chart-layout", {
2527
2527
  "chart-layout--side": V.value && m.value
2528
2528
  }])
2529
2529
  }, [
2530
- V.value && L.value ? (X(), we(rt, {
2530
+ V.value && L.value ? (Y(), we(rt, {
2531
2531
  key: 0,
2532
2532
  "chart-ref": r.value,
2533
2533
  enabled: B.value,
@@ -2563,7 +2563,7 @@ const Il = { class: "widget-content" }, Ml = /* @__PURE__ */ at({
2563
2563
  "--chart-height": V.value && !m.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(C) !== void 0 ? l(C) + "px" : "100%"
2564
2564
  })
2565
2565
  }, null, 8, ["datasets", "metrics", "tooltip", "datalabels", "style"]),
2566
- V.value && !L.value ? (X(), we(rt, {
2566
+ V.value && !L.value ? (Y(), we(rt, {
2567
2567
  key: 1,
2568
2568
  "chart-ref": r.value,
2569
2569
  enabled: B.value,
@@ -2633,7 +2633,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2633
2633
  }))), b = v(() => Ot(!1, !0));
2634
2634
  return (f, M) => {
2635
2635
  const B = ge("FmIcon"), V = ge("FmChip"), g = ge("FmTooltip"), m = ge("FmLineChart");
2636
- return X(), be("div", Vl, [
2636
+ return Y(), be("div", Vl, [
2637
2637
  yt(f.$slots, "menu"),
2638
2638
  J("p", Al, Ge(p.value), 1),
2639
2639
  J("div", $l, [
@@ -2650,7 +2650,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2650
2650
  ];
2651
2651
  }),
2652
2652
  default: ze(() => [
2653
- d.value ? (X(), we(V, {
2653
+ d.value ? (Y(), we(V, {
2654
2654
  key: 0,
2655
2655
  icon: d.value.icon.name,
2656
2656
  class: qe(`bg-${d.value.icon.tailwind}`),
@@ -2668,7 +2668,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2668
2668
  ]),
2669
2669
  _: 1
2670
2670
  }, 8, ["icon", "class"])) : Me("", !0),
2671
- l(a).endDate != null && l(a).startDate != null && d.value === null ? (X(), we(V, {
2671
+ l(a).endDate != null && l(a).startDate != null && d.value === null ? (Y(), we(V, {
2672
2672
  key: 1,
2673
2673
  class: "invisible pointer-events-none",
2674
2674
  "aria-hidden": "true",
@@ -2687,8 +2687,8 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2687
2687
  _: 1
2688
2688
  }, 8, ["disabled"])
2689
2689
  ]),
2690
- N.value ? (X(), be("div", zl, [
2691
- C(N.value.type) === "line" ? (X(), we(m, {
2690
+ N.value ? (Y(), be("div", zl, [
2691
+ C(N.value.type) === "line" ? (Y(), we(m, {
2692
2692
  key: 0,
2693
2693
  class: "sparkline",
2694
2694
  datasets: I.value,
@@ -2702,7 +2702,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2702
2702
  tooltip: b.value,
2703
2703
  "maintain-aspect-ratio": !1
2704
2704
  }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : Me("", !0)
2705
- ])) : (X(), be("div", Pl, M[1] || (M[1] = [
2705
+ ])) : (Y(), be("div", Pl, M[1] || (M[1] = [
2706
2706
  J("div", { class: "sparkline" }, [
2707
2707
  J("div", { class: "flex flex-col gap-8" }, [
2708
2708
  J("div"),
@@ -2717,7 +2717,7 @@ const Vl = { class: "flex flex-col gap-1" }, Al = { class: "fm-typo-en-title-md-
2717
2717
  }), Hl = {};
2718
2718
  function Wl(e, n) {
2719
2719
  const t = ge("FmMenuDivider");
2720
- return X(), we(t);
2720
+ return Y(), we(t);
2721
2721
  }
2722
2722
  const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimension", la = ma(El, () => {
2723
2723
  const e = D(0), n = D([]), t = D(!1), a = (g, m) => {
@@ -2780,8 +2780,8 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2780
2780
  const ne = c.textContent || "", k = window.getComputedStyle(c), U = `${k.fontWeight} ${k.fontSize} ${k.fontFamily}`, P = document.createElement("canvas").getContext("2d");
2781
2781
  if (P) {
2782
2782
  P.font = U;
2783
- const $ = P.measureText(ne), R = window.getComputedStyle(w), re = parseFloat(R.paddingLeft || "0"), Y = parseFloat(R.paddingRight || "0");
2784
- F = $.width + re + Y;
2783
+ const $ = P.measureText(ne), R = window.getComputedStyle(w), re = parseFloat(R.paddingLeft || "0"), X = parseFloat(R.paddingRight || "0");
2784
+ F = $.width + re + X;
2785
2785
  }
2786
2786
  }
2787
2787
  N(m, !1);
@@ -2856,10 +2856,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2856
2856
  d();
2857
2857
  }
2858
2858
  };
2859
- }), Ul = "/assets/processTableData.worker-CC1ehXtr.js", Kl = { class: "my-4" }, ql = {
2859
+ }), Ul = "/assets/processTableData.worker-D_oiIvNW.js", Kl = { class: "my-4" }, ql = {
2860
2860
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
2861
2861
  style: { backgroundColor: "#f9f9f9" }
2862
- }, Xl = { class: "font-bold" }, Yl = { class: "text-fm-color-neutral-gray-300" }, Gl = /* @__PURE__ */ at({
2862
+ }, Yl = { class: "font-bold" }, Xl = { class: "text-fm-color-neutral-gray-300" }, Gl = /* @__PURE__ */ at({
2863
2863
  __name: "WidgetTable",
2864
2864
  props: /* @__PURE__ */ gt({
2865
2865
  tileIndex: {}
@@ -2957,7 +2957,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
2957
2957
  grandTotalPosition: x.value,
2958
2958
  pageSize: w.value
2959
2959
  };
2960
- Xa(Ul, P).then((R) => {
2960
+ Ya(Ul, P).then((R) => {
2961
2961
  k === F && (R != null && R.error ? (p.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(R.error), c.value = []) : c.value = Ea(R.data || []));
2962
2962
  });
2963
2963
  }
@@ -3033,7 +3033,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3033
3033
  },
3034
3034
  cell: (re) => {
3035
3035
  var ae, ue;
3036
- const Y = _(re.getValue()), ee = (ue = (ae = re == null ? void 0 : re.row) == null ? void 0 : ae.original) == null ? void 0 : ue.isRollup;
3036
+ const X = _(re.getValue()), ee = (ue = (ae = re == null ? void 0 : re.row) == null ? void 0 : ae.original) == null ? void 0 : ue.isRollup;
3037
3037
  return ln(
3038
3038
  "div",
3039
3039
  {
@@ -3043,7 +3043,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3043
3043
  ce.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3044
3044
  ].join(" ")
3045
3045
  },
3046
- [U.type === "NUMERIC" ? cn(Y.main) : Y.main]
3046
+ [U.type === "NUMERIC" ? cn(X.main) : X.main]
3047
3047
  );
3048
3048
  },
3049
3049
  enableSorting: !1
@@ -3073,7 +3073,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3073
3073
  { immediate: !0 }
3074
3074
  ), (k, U) => {
3075
3075
  const z = ge("FmTable");
3076
- return X(), be(et, null, [
3076
+ return Y(), be(et, null, [
3077
3077
  J("div", Kl, [
3078
3078
  yt(k.$slots, "menu")
3079
3079
  ]),
@@ -3093,10 +3093,10 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3093
3093
  x.value ? {
3094
3094
  name: "pin-top",
3095
3095
  fn: ze(() => [
3096
- (X(), we(ua(x.value === l(bt).bottom ? "tfoot" : "tbody"), null, {
3096
+ (Y(), we(ua(x.value === l(bt).bottom ? "tfoot" : "tbody"), null, {
3097
3097
  default: ze(() => [
3098
3098
  J("tr", ql, [
3099
- (X(!0), be(et, null, Lt(A.value, (P, $) => (X(), be("td", {
3099
+ (Y(!0), be(et, null, Lt(A.value, (P, $) => (Y(), be("td", {
3100
3100
  key: `${l(Gt)()}_${$}`,
3101
3101
  class: "h-[48px] text-fm-color-typo-primary px-16"
3102
3102
  }, [
@@ -3107,8 +3107,8 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3107
3107
  ce.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3108
3108
  ])
3109
3109
  }, [
3110
- J("p", Xl, Ge(P.rowType === "NUMERIC" ? l(cn)(P.main) : P.main), 1),
3111
- J("p", Yl, Ge(P.comparison ? P.rowType === "NUMERIC" ? `(${l(cn)(P.comparison)})` : `(${P.comparison})` : ""), 1)
3110
+ J("p", Yl, Ge(P.rowType === "NUMERIC" ? l(cn)(P.main) : P.main), 1),
3111
+ J("p", Xl, Ge(P.comparison ? P.rowType === "NUMERIC" ? `(${l(cn)(P.comparison)})` : `(${P.comparison})` : ""), 1)
3112
3112
  ], 2)
3113
3113
  ]))), 128))
3114
3114
  ])
@@ -3168,16 +3168,16 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3168
3168
  function te({
3169
3169
  datasetIndex: R,
3170
3170
  colorIndex: re,
3171
- breakdownIndex: Y
3171
+ breakdownIndex: X
3172
3172
  }) {
3173
3173
  var he;
3174
- const ee = t.value.chartColorBinding === Ue.metric ? re : t.value.chartColorBinding === Ue.breakdown ? Y : R, ae = (he = t.value.chartColorLayers) == null ? void 0 : he[ee], ue = Number(ae);
3174
+ const ee = t.value.chartColorBinding === Ue.metric ? re : t.value.chartColorBinding === Ue.breakdown ? X : R, ae = (he = t.value.chartColorLayers) == null ? void 0 : he[ee], ue = Number(ae);
3175
3175
  return Number.isInteger(ue) && ue > 0 ? ue : ee + 1;
3176
3176
  }
3177
3177
  const ce = v(() => {
3178
3178
  if (I.value.length > 0) {
3179
3179
  let R = 0, re = 0;
3180
- const Y = I.value.map((ee, ae) => {
3180
+ const X = I.value.map((ee, ae) => {
3181
3181
  const ue = t.value.chartColorBinding === Ue.metric && (t.value.metricCount ?? 0) > 0 ? ee.isCompare ? re++ % Number(t.value.metricCount) : R++ % Number(t.value.metricCount) : nt({
3182
3182
  datasetIndex: ae,
3183
3183
  isCompare: ee.isCompare,
@@ -3195,7 +3195,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3195
3195
  datasetIndex: ae,
3196
3196
  colorIndex: ue,
3197
3197
  breakdownIndex: Se
3198
- }), Ne = ee.values.map((Xe) => Xe === null ? NaN : Number(Xe));
3198
+ }), Ne = ee.values.map((Ye) => Ye === null ? NaN : Number(Ye));
3199
3199
  return {
3200
3200
  dataset: {
3201
3201
  label: ee.name,
@@ -3219,7 +3219,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3219
3219
  }
3220
3220
  };
3221
3221
  });
3222
- return w.value ? Y.map((ee) => ee.dataset) : Y.map((ee) => ee.dataset);
3222
+ return w.value ? X.map((ee) => ee.dataset) : X.map((ee) => ee.dataset);
3223
3223
  } else
3224
3224
  return [];
3225
3225
  }), { hiddenDatasetKeys: ne, isDatasetHidden: k, toggleDatasetVisibility: U } = nn(ce), z = v(
@@ -3239,8 +3239,8 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3239
3239
  tt(() => $());
3240
3240
  }), (R, re) => {
3241
3241
  var ee, ae, ue, he, Se, de;
3242
- const Y = ge("FmBarChart");
3243
- return X(), be(et, null, [
3242
+ const X = ge("FmBarChart");
3243
+ return Y(), be(et, null, [
3244
3244
  J("div", jl, [
3245
3245
  yt(R.$slots, "menu"),
3246
3246
  J("div", {
@@ -3248,7 +3248,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3248
3248
  "chart-layout--side": _.value && (l(V).display ?? !1) && F.value
3249
3249
  }])
3250
3250
  }, [
3251
- _.value && (l(V).display ?? !1) && E.value ? (X(), we(rt, {
3251
+ _.value && (l(V).display ?? !1) && E.value ? (Y(), we(rt, {
3252
3252
  key: 0,
3253
3253
  "chart-ref": a.value,
3254
3254
  enabled: l(V).display ?? !1,
@@ -3265,7 +3265,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3265
3265
  "hidden-dataset-keys": l(ne),
3266
3266
  onToggleDatasetVisibility: l(U)
3267
3267
  }, null, 8, ["chart-ref", "enabled", "position", "max-width", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : Me("", !0),
3268
- me(Y, {
3268
+ me(X, {
3269
3269
  ref_key: "chartRef",
3270
3270
  ref: a,
3271
3271
  class: "bar-chart",
@@ -3287,7 +3287,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3287
3287
  "--chart-height": _.value && (l(V).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
3288
3288
  })
3289
3289
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
3290
- _.value && (l(V).display ?? !1) && !E.value ? (X(), we(rt, {
3290
+ _.value && (l(V).display ?? !1) && !E.value ? (Y(), we(rt, {
3291
3291
  key: 1,
3292
3292
  "chart-ref": a.value,
3293
3293
  enabled: l(V).display ?? !1,
@@ -3336,18 +3336,18 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3336
3336
  } = tn(a, {
3337
3337
  maxTooltipItems: r
3338
3338
  }), H = v(() => {
3339
- var Y;
3340
- return ((Y = t.value.data) == null ? void 0 : Y.xAxis) || [];
3339
+ var X;
3340
+ return ((X = t.value.data) == null ? void 0 : X.xAxis) || [];
3341
3341
  }), I = v(() => {
3342
- var Y;
3343
- return ((Y = t.value.data) == null ? void 0 : Y.datasets) ?? [];
3342
+ var X;
3343
+ return ((X = t.value.data) == null ? void 0 : X.datasets) ?? [];
3344
3344
  }), { datalabels: b, xCfg: f, yCfg: M, isTransposed: B, legend: V, chartWidth: g, chartHeight: m } = Et(
3345
3345
  t.value
3346
3346
  ), L = v(
3347
3347
  () => Ot(t.value.isTransposed === !0, p.value)
3348
3348
  ), x = Qt("bar"), w = v(() => t.value.stackBarOverlap === !0), A = v(() => w.value === !1), _ = v(() => {
3349
- const Y = V.value.position;
3350
- return !Y || Y === "top" || Y === "bottom" || Y === "left" || Y === "right";
3349
+ const X = V.value.position;
3350
+ return !X || X === "top" || X === "bottom" || X === "left" || X === "right";
3351
3351
  }), c = v(() => V.value.position ?? "top"), F = v(
3352
3352
  () => c.value === "left" || c.value === "right"
3353
3353
  ), E = v(
@@ -3359,53 +3359,53 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3359
3359
  ...M.value,
3360
3360
  stacked: A.value
3361
3361
  }));
3362
- function te(Y) {
3363
- const ee = " - ", ae = Y.lastIndexOf(ee);
3362
+ function te(X) {
3363
+ const ee = " - ", ae = X.lastIndexOf(ee);
3364
3364
  return ae < 0 ? {
3365
- clusterKey: Y,
3366
- metricLabel: Y
3365
+ clusterKey: X,
3366
+ metricLabel: X
3367
3367
  } : {
3368
- clusterKey: Y.slice(0, ae),
3369
- metricLabel: Y.slice(ae + ee.length)
3368
+ clusterKey: X.slice(0, ae),
3369
+ metricLabel: X.slice(ae + ee.length)
3370
3370
  };
3371
3371
  }
3372
- function ce(Y, ee) {
3373
- if (typeof Y == "string") {
3374
- const ae = Y.trim();
3372
+ function ce(X, ee) {
3373
+ if (typeof X == "string") {
3374
+ const ae = X.trim();
3375
3375
  if (ae.length > 0)
3376
3376
  return ae;
3377
3377
  }
3378
3378
  return `Series ${ee + 1}`;
3379
3379
  }
3380
3380
  function ne({
3381
- datasetIndex: Y,
3381
+ datasetIndex: X,
3382
3382
  colorIndex: ee
3383
3383
  }) {
3384
3384
  var Se;
3385
- const ae = t.value.chartColorBinding === Ue.metric ? ee : Y, ue = (Se = t.value.chartColorLayers) == null ? void 0 : Se[ae], he = Number(ue);
3385
+ const ae = t.value.chartColorBinding === Ue.metric ? ee : X, ue = (Se = t.value.chartColorLayers) == null ? void 0 : Se[ae], he = Number(ue);
3386
3386
  return Number.isInteger(he) && he > 0 ? he : ae + 1;
3387
3387
  }
3388
3388
  const k = v(() => {
3389
3389
  if (I.value.length === 0)
3390
3390
  return [];
3391
- const Y = I.value.map((de, ye) => ({
3391
+ const X = I.value.map((de, ye) => ({
3392
3392
  source: de,
3393
3393
  index: ye,
3394
3394
  name: ce(de == null ? void 0 : de.name, ye),
3395
3395
  values: (de == null ? void 0 : de.values) ?? []
3396
3396
  })), ee = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ new Map();
3397
- for (const de of Y) {
3397
+ for (const de of X) {
3398
3398
  const { clusterKey: ye, metricLabel: Ne } = te(de.name);
3399
3399
  ae.has(ye) || ae.set(ye, ae.size), ee.has(Ne) || ee.set(Ne, ee.size);
3400
3400
  }
3401
3401
  const ue = Math.max(ee.size, 1), he = t.value.chartColorBinding === Ue.breakdown, Se = t.value.chartUseSecondaryMetricShades !== !1;
3402
- return Y.map((de) => {
3402
+ return X.map((de) => {
3403
3403
  const ye = nt({
3404
3404
  datasetIndex: de.index,
3405
3405
  isCompare: de.source.isCompare,
3406
3406
  metricCount: t.value.metricCount,
3407
3407
  mode: t.value.chartColorBinding
3408
- }), { clusterKey: Ne, metricLabel: Xe } = te(de.name), i = ae.get(Ne) ?? 0, W = ee.get(Xe) ?? 0, Z = he ? Wt({
3408
+ }), { clusterKey: Ne, metricLabel: Ye } = te(de.name), i = ae.get(Ne) ?? 0, W = ee.get(Ye) ?? 0, Z = he ? Wt({
3409
3409
  breakdownIndex: i,
3410
3410
  metricIndex: W,
3411
3411
  metricCount: ue,
@@ -3423,7 +3423,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3423
3423
  }), Ce = de.values.map((Fe) => Fe === null ? NaN : Number(Fe));
3424
3424
  return {
3425
3425
  label: de.name,
3426
- tooltipLabel: `${Ne} - ${Xe}`,
3426
+ tooltipLabel: `${Ne} - ${Ye}`,
3427
3427
  data: Ce,
3428
3428
  dash: !!de.source.isCompare,
3429
3429
  grouped: !0,
@@ -3433,9 +3433,9 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3433
3433
  };
3434
3434
  });
3435
3435
  }), { hiddenDatasetKeys: U, isDatasetHidden: z, toggleDatasetVisibility: P } = nn(k), $ = v(
3436
- () => k.value.map((Y, ee) => ({
3437
- ...Y,
3438
- hidden: z(Y, ee)
3436
+ () => k.value.map((X, ee) => ({
3437
+ ...X,
3438
+ hidden: z(X, ee)
3439
3439
  }))
3440
3440
  ), R = Ht();
3441
3441
  function re() {
@@ -3447,18 +3447,18 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3447
3447
  });
3448
3448
  }), Pe([$], () => {
3449
3449
  tt(() => re());
3450
- }), (Y, ee) => {
3450
+ }), (X, ee) => {
3451
3451
  var ue, he, Se, de, ye, Ne;
3452
3452
  const ae = ge("FmBarChart");
3453
- return X(), be(et, null, [
3453
+ return Y(), be(et, null, [
3454
3454
  J("div", Zl, [
3455
- yt(Y.$slots, "menu"),
3455
+ yt(X.$slots, "menu"),
3456
3456
  J("div", {
3457
3457
  class: qe(["chart-layout", {
3458
3458
  "chart-layout--side": _.value && (l(V).display ?? !1) && F.value
3459
3459
  }])
3460
3460
  }, [
3461
- _.value && (l(V).display ?? !1) && E.value ? (X(), we(rt, {
3461
+ _.value && (l(V).display ?? !1) && E.value ? (Y(), we(rt, {
3462
3462
  key: 0,
3463
3463
  "chart-ref": a.value,
3464
3464
  enabled: l(V).display ?? !1,
@@ -3497,7 +3497,7 @@ const Ol = /* @__PURE__ */ ha(Hl, [["render", Wl]]), El = "mf-reporttable-dimens
3497
3497
  "--chart-height": _.value && (l(V).display ?? !1) && !F.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(m) !== void 0 ? l(m) + "px" : "100%"
3498
3498
  })
3499
3499
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "tooltip", "plugins", "datalabels", "style"]),
3500
- _.value && (l(V).display ?? !1) && !E.value ? (X(), we(rt, {
3500
+ _.value && (l(V).display ?? !1) && !E.value ? (Y(), we(rt, {
3501
3501
  key: 1,
3502
3502
  "chart-ref": a.value,
3503
3503
  enabled: l(V).display ?? !1,
@@ -3586,7 +3586,7 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3586
3586
  var ye;
3587
3587
  let R = P.values;
3588
3588
  I.value && (R = [NaN, R[0], NaN]);
3589
- const re = R.map((Ne) => Ne === null ? NaN : Number(Ne)), Y = nt({
3589
+ const re = R.map((Ne) => Ne === null ? NaN : Number(Ne)), X = nt({
3590
3590
  datasetIndex: $,
3591
3591
  isCompare: P.isCompare,
3592
3592
  metricCount: t.value.metricCount,
@@ -3613,7 +3613,7 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3613
3613
  useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
3614
3614
  customColors: t.value.chartColors
3615
3615
  }) : Ct({
3616
- index: Y,
3616
+ index: X,
3617
3617
  isCompare: P.isCompare,
3618
3618
  customColors: t.value.chartColors
3619
3619
  });
@@ -3647,9 +3647,9 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3647
3647
  }), Pe([k], () => {
3648
3648
  tt(() => z());
3649
3649
  }), (P, $) => {
3650
- var re, Y, ee, ae, ue, he;
3650
+ var re, X, ee, ae, ue, he;
3651
3651
  const R = ge("FmLineChart");
3652
- return X(), be(et, null, [
3652
+ return Y(), be(et, null, [
3653
3653
  J("div", tr, [
3654
3654
  yt(P.$slots, "menu"),
3655
3655
  J("div", {
@@ -3657,14 +3657,14 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3657
3657
  "chart-layout--side": c.value && (l(m).display ?? !1) && E.value
3658
3658
  }])
3659
3659
  }, [
3660
- c.value && (l(m).display ?? !1) && G.value ? (X(), we(rt, {
3660
+ c.value && (l(m).display ?? !1) && G.value ? (Y(), we(rt, {
3661
3661
  key: 0,
3662
3662
  "chart-ref": a.value,
3663
3663
  enabled: l(m).display ?? !1,
3664
3664
  position: F.value,
3665
3665
  "max-width": l(m).maxWidth,
3666
3666
  "text-color": (re = l(m).labels) == null ? void 0 : re.color,
3667
- "font-size": (ee = (Y = l(m).labels) == null ? void 0 : Y.font) == null ? void 0 : ee.size,
3667
+ "font-size": (ee = (X = l(m).labels) == null ? void 0 : X.font) == null ? void 0 : ee.size,
3668
3668
  "legend-update-key": k.value,
3669
3669
  "chart-color-binding": t.value.chartColorBinding,
3670
3670
  "chart-colors": t.value.chartColors,
@@ -3696,7 +3696,7 @@ const tr = { class: "widget-content" }, nr = /* @__PURE__ */ at({
3696
3696
  "--chart-height": c.value && (l(m).display ?? !1) && !E.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(x) !== void 0 ? l(x) + "px" : "100%"
3697
3697
  })
3698
3698
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "plugins", "datalabels", "style"]),
3699
- c.value && (l(m).display ?? !1) && !G.value ? (X(), we(rt, {
3699
+ c.value && (l(m).display ?? !1) && !G.value ? (Y(), we(rt, {
3700
3700
  key: 1,
3701
3701
  "chart-ref": a.value,
3702
3702
  enabled: l(m).display ?? !1,
@@ -3794,7 +3794,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3794
3794
  isCompare: $.isCompare,
3795
3795
  metricCount: t.value.metricCount,
3796
3796
  mode: t.value.chartColorBinding
3797
- }), Y = nt({
3797
+ }), X = nt({
3798
3798
  datasetIndex: R,
3799
3799
  isCompare: $.isCompare,
3800
3800
  metricCount: t.value.metricCount,
@@ -3808,7 +3808,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3808
3808
  metricCount: t.value.metricCount
3809
3809
  }), he = ae ? Wt({
3810
3810
  breakdownIndex: ue,
3811
- metricIndex: Y,
3811
+ metricIndex: X,
3812
3812
  metricCount: t.value.metricCount,
3813
3813
  isCompare: $.isCompare,
3814
3814
  breakdownColors: t.value.chartBreakdownColors,
@@ -3824,12 +3824,12 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3824
3824
  isCompare: $.isCompare,
3825
3825
  metricCount: t.value.metricCount,
3826
3826
  mode: t.value.lineStyleBinding
3827
- }), Xe = (i = t.value.lineStyles) == null ? void 0 : i[Ne];
3827
+ }), Ye = (i = t.value.lineStyles) == null ? void 0 : i[Ne];
3828
3828
  return {
3829
3829
  label: $.name,
3830
3830
  data: de,
3831
3831
  dash: !!$.isCompare,
3832
- lineStyle: Xe,
3832
+ lineStyle: Ye,
3833
3833
  fill: !1,
3834
3834
  color: he,
3835
3835
  pointRadius: ye ? 4 : void 0,
@@ -3855,9 +3855,9 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3855
3855
  }), Pe([U], () => {
3856
3856
  tt(() => P());
3857
3857
  }), ($, R) => {
3858
- var Y, ee, ae, ue, he, Se;
3858
+ var X, ee, ae, ue, he, Se;
3859
3859
  const re = ge("FmLineChart");
3860
- return X(), be(et, null, [
3860
+ return Y(), be(et, null, [
3861
3861
  J("div", rr, [
3862
3862
  yt($.$slots, "menu"),
3863
3863
  J("div", {
@@ -3865,13 +3865,13 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3865
3865
  "chart-layout--side": F.value && (l(L).display ?? !1) && G.value
3866
3866
  }])
3867
3867
  }, [
3868
- F.value && (l(L).display ?? !1) && le.value ? (X(), we(rt, {
3868
+ F.value && (l(L).display ?? !1) && le.value ? (Y(), we(rt, {
3869
3869
  key: 0,
3870
3870
  "chart-ref": a.value,
3871
3871
  enabled: l(L).display ?? !1,
3872
3872
  position: E.value,
3873
3873
  "max-width": l(L).maxWidth,
3874
- "text-color": (Y = l(L).labels) == null ? void 0 : Y.color,
3874
+ "text-color": (X = l(L).labels) == null ? void 0 : X.color,
3875
3875
  "font-size": (ae = (ee = l(L).labels) == null ? void 0 : ee.font) == null ? void 0 : ae.size,
3876
3876
  "legend-update-key": U.value,
3877
3877
  "chart-color-binding": t.value.chartColorBinding,
@@ -3903,7 +3903,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3903
3903
  "--chart-height": F.value && (l(L).display ?? !1) && !G.value ? "calc(100% - var(--legend-panel-height, 0px))" : l(w) !== void 0 ? l(w) + "px" : "100%"
3904
3904
  })
3905
3905
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "tooltip", "datalabels", "plugins", "style"]),
3906
- F.value && (l(L).display ?? !1) && !le.value ? (X(), we(rt, {
3906
+ F.value && (l(L).display ?? !1) && !le.value ? (Y(), we(rt, {
3907
3907
  key: 1,
3908
3908
  "chart-ref": a.value,
3909
3909
  enabled: l(L).display ?? !1,
@@ -3968,7 +3968,7 @@ const rr = { class: "widget-content" }, sr = /* @__PURE__ */ at({
3968
3968
  }
3969
3969
  return (M, B) => {
3970
3970
  const V = ge("FmRadio"), g = ge("FmRadioGroup"), m = ge("FmButton"), L = ge("FmDialog");
3971
- return X(), we(L, {
3971
+ return Y(), we(L, {
3972
3972
  modelValue: s.value,
3973
3973
  "onUpdate:modelValue": B[2] || (B[2] = (x) => s.value = x),
3974
3974
  overlay: !0,
@@ -4260,7 +4260,7 @@ const fr = {
4260
4260
  Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
4261
4261
  ), G = D(a.chartUseSecondaryMetricShades ?? !0), le = D(a.chartColorBinding), te = D(
4262
4262
  Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
4263
- ), ce = D(a.lineStyleBinding), ne = D(a.showLabel ?? !1), k = D(a.labelAlign ?? kn.center), U = D(a.labelAnchor ?? _n.center), z = D(a.labelRotation ?? 0), P = D(a.labelOffset ?? 0), $ = D(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = D(a.showX ?? !0), Y = D(a.xPosition ?? Tn.bottom), ee = D(a.showXGrid ?? !1), ae = D(a.showXTick ?? !0), ue = D(a.xTickFontSize ?? 12), he = D(a.showXTitle ?? !1), Se = D(a.xTitle ?? ""), de = D(a.xTitleFontSize ?? 12), ye = D(a.showY ?? !0), Ne = D(a.yPosition ?? Ln.left), Xe = D(a.showYGrid ?? !1), i = D(a.showYTick ?? !0), W = D(a.yTickFontSize ?? 12), Z = D(a.showYTitle ?? !1), Q = D(a.yTitle ?? ""), Ce = D(a.yTitleFontSize ?? 12), Fe = D(a.showLegend ?? void 0), Ye = D(a.legendPosition ?? Dn.top), Re = D(a.usePointStyle ?? !0), je = D(a.legendFontSize), Be = D(a.legendColor ?? "#6b6b6b"), fe = D(a.legendMaxWidth), O = D(a.maxTooltipItems), _e = D(a.stackBarOverlap ?? !1), Te = D(a.rowHeight ?? 0), Le = D(a.colWidths ?? []), He = D(!1), Ve = D(""), { breakpoints: De, getBreakpointsBoundary: Oe } = fn(), We = D(), Ee = v(
4263
+ ), ce = D(a.lineStyleBinding), ne = D(a.showLabel ?? !1), k = D(a.labelAlign ?? kn.center), U = D(a.labelAnchor ?? _n.center), z = D(a.labelRotation ?? 0), P = D(a.labelOffset ?? 0), $ = D(a.labelFontSize ?? 12), R = v(() => a.showSearchBar), re = D(a.showX ?? !0), X = D(a.xPosition ?? Tn.bottom), ee = D(a.showXGrid ?? !1), ae = D(a.showXTick ?? !0), ue = D(a.xTickFontSize ?? 12), he = D(a.showXTitle ?? !1), Se = D(a.xTitle ?? ""), de = D(a.xTitleFontSize ?? 12), ye = D(a.showY ?? !0), Ne = D(a.yPosition ?? Ln.left), Ye = D(a.showYGrid ?? !1), i = D(a.showYTick ?? !0), W = D(a.yTickFontSize ?? 12), Z = D(a.showYTitle ?? !1), Q = D(a.yTitle ?? ""), Ce = D(a.yTitleFontSize ?? 12), Fe = D(a.showLegend ?? void 0), Xe = D(a.legendPosition ?? Dn.top), Re = D(a.usePointStyle ?? !0), je = D(a.legendFontSize), Be = D(a.legendColor ?? "#6b6b6b"), fe = D(a.legendMaxWidth), O = D(a.maxTooltipItems), _e = D(a.stackBarOverlap ?? !1), Te = D(a.rowHeight ?? 0), Le = D(a.colWidths ?? []), He = D(!1), Ve = D(""), { breakpoints: De, getBreakpointsBoundary: Oe } = fn(), We = D(), Ee = v(
4264
4264
  () => p.customScreenWidth === void 0 ? window.innerWidth : p.customScreenWidth
4265
4265
  ), Ae = v(
4266
4266
  () => (Ee == null ? void 0 : Ee.value) > Oe("xs")[1] && (Ee == null ? void 0 : Ee.value) <= Oe("sm")[1]
@@ -4359,7 +4359,7 @@ const fr = {
4359
4359
  labelOffset: P.value,
4360
4360
  labelFontSize: $.value,
4361
4361
  showX: re.value,
4362
- xPosition: Y.value,
4362
+ xPosition: X.value,
4363
4363
  showXGrid: ee.value,
4364
4364
  showXTick: ae.value,
4365
4365
  xTickFontSize: ue.value,
@@ -4368,7 +4368,7 @@ const fr = {
4368
4368
  xTitleFontSize: de.value,
4369
4369
  showY: ye.value,
4370
4370
  yPosition: Ne.value,
4371
- showYGrid: Xe.value,
4371
+ showYGrid: Ye.value,
4372
4372
  showYTick: i.value,
4373
4373
  yTitle: Q.value,
4374
4374
  showYTitle: Z.value,
@@ -4376,7 +4376,7 @@ const fr = {
4376
4376
  yTickFontSize: W.value,
4377
4377
  isTransposed: se.value.config.isTransposed,
4378
4378
  showLegend: Fe.value,
4379
- legendPosition: Ye.value,
4379
+ legendPosition: Xe.value,
4380
4380
  usePointStyle: Re.value,
4381
4381
  legendFontSize: je.value,
4382
4382
  legendColor: Be.value,
@@ -4440,7 +4440,7 @@ const fr = {
4440
4440
  Pe(
4441
4441
  () => t.value.widget.config,
4442
4442
  (T) => {
4443
- I.value = T.rollup, g.value = T.showTitle ?? !0, m.value = T.titleFontSize ?? 14, L.value = T.titleBold ?? !1, x.value = T.titleItalic ?? !1, w.value = T.titleUnderline ?? !1, _.value = T.chartHeight ?? void 0, A.value = T.chartWidth ?? void 0, c.value = Array.isArray(T.chartColors) ? [...T.chartColors] : void 0, F.value = Array.isArray(T.chartColorLayers) ? [...T.chartColorLayers] : void 0, E.value = Array.isArray(T.chartBreakdownColors) ? [...T.chartBreakdownColors] : void 0, G.value = T.chartUseSecondaryMetricShades ?? !0, le.value = T.chartColorBinding, te.value = Array.isArray(T.lineStyles) ? [...T.lineStyles] : void 0, ce.value = T.lineStyleBinding, ne.value = T.showLabel ?? !1, k.value = T.labelAlign ?? kn.center, U.value = T.labelAnchor ?? _n.center, z.value = T.labelRotation ?? 0, P.value = T.labelOffset ?? 0, $.value = T.labelFontSize ?? 12, re.value = T.showX ?? !0, Y.value = T.xPosition ?? Tn.bottom, ee.value = T.showXGrid ?? !1, ae.value = T.showXTick ?? !0, ue.value = T.xTickFontSize ?? 12, he.value = T.showXTitle ?? !1, Se.value = T.xTitle ?? "", de.value = T.xTitleFontSize ?? 12, ye.value = T.showY ?? !0, Ne.value = T.yPosition ?? Ln.left, Xe.value = T.showYGrid ?? !0, i.value = T.showYTick ?? !0, W.value = T.yTickFontSize ?? 12, Z.value = T.showYTitle ?? !1, Q.value = T.yTitle ?? "", Ce.value = T.yTitleFontSize ?? 12, Fe.value = T.showLegend ?? void 0, Ye.value = T.legendPosition ?? Dn.top, Re.value = T.usePointStyle ?? !0, je.value = T.legendFontSize, Be.value = T.legendColor ?? "#6b6b6b", fe.value = T.legendMaxWidth, O.value = T.maxTooltipItems, _e.value = T.stackBarOverlap ?? !1, Te.value = T.rowHeight ?? 0, Le.value = T.colWidths ?? [], b.value = Gt();
4443
+ I.value = T.rollup, g.value = T.showTitle ?? !0, m.value = T.titleFontSize ?? 14, L.value = T.titleBold ?? !1, x.value = T.titleItalic ?? !1, w.value = T.titleUnderline ?? !1, _.value = T.chartHeight ?? void 0, A.value = T.chartWidth ?? void 0, c.value = Array.isArray(T.chartColors) ? [...T.chartColors] : void 0, F.value = Array.isArray(T.chartColorLayers) ? [...T.chartColorLayers] : void 0, E.value = Array.isArray(T.chartBreakdownColors) ? [...T.chartBreakdownColors] : void 0, G.value = T.chartUseSecondaryMetricShades ?? !0, le.value = T.chartColorBinding, te.value = Array.isArray(T.lineStyles) ? [...T.lineStyles] : void 0, ce.value = T.lineStyleBinding, ne.value = T.showLabel ?? !1, k.value = T.labelAlign ?? kn.center, U.value = T.labelAnchor ?? _n.center, z.value = T.labelRotation ?? 0, P.value = T.labelOffset ?? 0, $.value = T.labelFontSize ?? 12, re.value = T.showX ?? !0, X.value = T.xPosition ?? Tn.bottom, ee.value = T.showXGrid ?? !1, ae.value = T.showXTick ?? !0, ue.value = T.xTickFontSize ?? 12, he.value = T.showXTitle ?? !1, Se.value = T.xTitle ?? "", de.value = T.xTitleFontSize ?? 12, ye.value = T.showY ?? !0, Ne.value = T.yPosition ?? Ln.left, Ye.value = T.showYGrid ?? !0, i.value = T.showYTick ?? !0, W.value = T.yTickFontSize ?? 12, Z.value = T.showYTitle ?? !1, Q.value = T.yTitle ?? "", Ce.value = T.yTitleFontSize ?? 12, Fe.value = T.showLegend ?? void 0, Xe.value = T.legendPosition ?? Dn.top, Re.value = T.usePointStyle ?? !0, je.value = T.legendFontSize, Be.value = T.legendColor ?? "#6b6b6b", fe.value = T.legendMaxWidth, O.value = T.maxTooltipItems, _e.value = T.stackBarOverlap ?? !1, Te.value = T.rowHeight ?? 0, Le.value = T.colWidths ?? [], b.value = Gt();
4444
4444
  },
4445
4445
  { deep: !0 }
4446
4446
  ), Pe([() => I.value], () => {
@@ -4510,7 +4510,7 @@ const fr = {
4510
4510
  T >= 0 && T < ut.value.length && (f.value = ut.value[T].value);
4511
4511
  }
4512
4512
  const Hn = D(Ft.EXCEL), Wn = D(), Fa = Object.values(Ft).map((T) => ({
4513
- label: Ya(T),
4513
+ label: Xa(T),
4514
4514
  value: T,
4515
4515
  onClick: async () => {
4516
4516
  T === Ft.EXCEL || T === Ft.PDFFULLSIZE || T === Ft.PDFRECEIPT ? await da({
@@ -4525,7 +4525,7 @@ const fr = {
4525
4525
  })), Ba = se.value.type === ie.Spacer ? "flat" : "outlined", Va = se.value.type === ie.Spacer ? "p-0" : "p-16";
4526
4526
  return (T, Ie) => {
4527
4527
  const lt = ge("FmTooltip"), xt = ge("FmSearch"), pn = ge("FmCheckbox"), It = ge("FmButton"), Aa = ge("FmSelect"), $a = ge("FmMenuItem"), Na = ge("FmMenu"), za = ge("FmForm"), Pa = ge("FmCircularProgress"), Ra = ge("FmCard");
4528
- return X(), we(Ra, {
4528
+ return Y(), we(Ra, {
4529
4529
  ref_key: "tileCard",
4530
4530
  ref: d,
4531
4531
  class: qe(`${hn.value} ${l(Va)}`),
@@ -4538,11 +4538,11 @@ const fr = {
4538
4538
  "report-type": Hn.value,
4539
4539
  index: Wn.value
4540
4540
  }, null, 8, ["modelValue", "report-type", "index"]),
4541
- !n.value && !l(j) ? (X(), be("div", {
4541
+ !n.value && !l(j) ? (Y(), be("div", {
4542
4542
  key: 0,
4543
4543
  style: Ze({ height: We.value })
4544
4544
  }, [
4545
- (X(), we(ua(y.value), {
4545
+ (Y(), we(ua(y.value), {
4546
4546
  key: b.value,
4547
4547
  modelValue: Qe.value,
4548
4548
  "onUpdate:modelValue": Ie[4] || (Ie[4] = (Mt) => Qe.value = Mt),
@@ -4562,7 +4562,7 @@ const fr = {
4562
4562
  "z-index": 99
4563
4563
  }, {
4564
4564
  default: ze(() => [
4565
- g.value !== !1 ? (X(), be("p", {
4565
+ g.value !== !1 ? (Y(), be("p", {
4566
4566
  key: 0,
4567
4567
  style: Ze({
4568
4568
  fontSize: m.value + "px",
@@ -4578,12 +4578,12 @@ const fr = {
4578
4578
  ]),
4579
4579
  _: 1
4580
4580
  }, 8, ["content", "disabled"]),
4581
- (Mt = Dt.value) != null && Mt.showSearchBar ? (X(), we(xt, {
4581
+ (Mt = Dt.value) != null && Mt.showSearchBar ? (Y(), we(xt, {
4582
4582
  key: 0,
4583
4583
  modelValue: Ve.value,
4584
4584
  "onUpdate:modelValue": Ie[1] || (Ie[1] = (mt) => Ve.value = mt),
4585
4585
  class: "grow"
4586
- }, null, 8, ["modelValue"])) : (X(), be("div", fr)),
4586
+ }, null, 8, ["modelValue"])) : (Y(), be("div", fr)),
4587
4587
  Ua(me(pn, {
4588
4588
  modelValue: ne.value,
4589
4589
  "onUpdate:modelValue": Ie[2] || (Ie[2] = (mt) => ne.value = mt),
@@ -4592,7 +4592,7 @@ const fr = {
4592
4592
  }, null, 8, ["modelValue"]), [
4593
4593
  [Ka, (On = Dt.value) == null ? void 0 : On.showLabel]
4594
4594
  ]),
4595
- (En = Dt.value) != null && En.showDrillDimension && ut.value.length > 0 ? (X(), be("div", mr, [
4595
+ (En = Dt.value) != null && En.showDrillDimension && ut.value.length > 0 ? (Y(), be("div", mr, [
4596
4596
  me(It, {
4597
4597
  icon: "arrow_upward",
4598
4598
  variant: "tertiary",
@@ -4606,14 +4606,14 @@ const fr = {
4606
4606
  onClick: Ma
4607
4607
  }, null, 8, ["disabled"])
4608
4608
  ])) : Me("", !0),
4609
- (Un = Dt.value) != null && Un.showRollup && ft.value.length > 0 ? (X(), we(Aa, {
4609
+ (Un = Dt.value) != null && Un.showRollup && ft.value.length > 0 ? (Y(), we(Aa, {
4610
4610
  key: `rollup-${l(u)}`,
4611
4611
  modelValue: I.value,
4612
4612
  "onUpdate:modelValue": Ie[3] || (Ie[3] = (mt) => I.value = mt),
4613
4613
  class: "w-[150px]",
4614
4614
  items: ft.value
4615
4615
  }, null, 8, ["modelValue", "items"])) : Me("", !0),
4616
- p.hideExport ? Me("", !0) : (X(), we(Na, {
4616
+ p.hideExport ? Me("", !0) : (Y(), we(Na, {
4617
4617
  key: 4,
4618
4618
  shift: !0
4619
4619
  }, {
@@ -4624,7 +4624,7 @@ const fr = {
4624
4624
  })
4625
4625
  ]),
4626
4626
  default: ze(() => [
4627
- (X(!0), be(et, null, Lt(l(Fa), (mt) => (X(), we($a, {
4627
+ (Y(!0), be(et, null, Lt(l(Fa), (mt) => (Y(), we($a, {
4628
4628
  key: mt.value,
4629
4629
  label: mt.label,
4630
4630
  onClick: mt.onClick
@@ -4639,7 +4639,7 @@ const fr = {
4639
4639
  ]),
4640
4640
  _: 1
4641
4641
  }, 8, ["modelValue", "tile-index"]))
4642
- ], 4)) : (X(), we(Pa, { key: 1 }))
4642
+ ], 4)) : (Y(), we(Pa, { key: 1 }))
4643
4643
  ]),
4644
4644
  _: 1
4645
4645
  }, 8, ["class", "variant"]);
@@ -4732,7 +4732,7 @@ function qr(e) {
4732
4732
  return;
4733
4733
  }
4734
4734
  }
4735
- function Xr(e) {
4735
+ function Yr(e) {
4736
4736
  switch (e) {
4737
4737
  case Je.HourOfDay:
4738
4738
  return 23;
@@ -4886,7 +4886,7 @@ const vr = ma(pr, () => {
4886
4886
  }), gr = { class: "flex flex-row flex-wrap gap-2" }, yr = { class: "inline-flex max-w-[460px]" }, br = {
4887
4887
  key: 0,
4888
4888
  class: "flex justify-center my-2"
4889
- }, Cr = { class: "px-2 pb-8" }, wr = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, xr = { class: "px-2 pb-8" }, Sr = { class: "flex items-start w-full" }, _r = ["onClick"], kr = { class: "fm-typo-en-body-md-400" }, Tr = { key: 0 }, Lr = { class: "px-12 py-3" }, Dr = { class: "flex items-center justify-between" }, Ir = { class: "text-xs max-w-[200px]" }, Mr = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Yt = "(EMPTY)", Yr = /* @__PURE__ */ at({
4889
+ }, Cr = { class: "px-2 pb-8" }, wr = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, xr = { class: "px-2 pb-8" }, Sr = { class: "flex items-start w-full" }, _r = ["onClick"], kr = { class: "fm-typo-en-body-md-400" }, Tr = { key: 0 }, Lr = { class: "px-12 py-3" }, Dr = { class: "flex items-center justify-between" }, Ir = { class: "text-xs max-w-[200px]" }, Mr = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Xt = "(EMPTY)", Xr = /* @__PURE__ */ at({
4890
4890
  __name: "FilterSelector",
4891
4891
  setup(e) {
4892
4892
  const { t: n, locale: t } = wt(), { currentReport: a, editingTile: r } = vt(Ga());
@@ -4898,7 +4898,7 @@ const vr = ma(pr, () => {
4898
4898
  return ((i = a.value) == null ? void 0 : i.id) ?? "";
4899
4899
  }), w = D([]);
4900
4900
  function A(i) {
4901
- return i.filter((W) => W !== Yt);
4901
+ return i.filter((W) => W !== Xt);
4902
4902
  }
4903
4903
  function _(i) {
4904
4904
  const W = b(i.filter, x.value).selectedValues;
@@ -4980,7 +4980,7 @@ const vr = ma(pr, () => {
4980
4980
  He ? [st.Like, st.NotLike].includes(Te.operator) ? He.values = Array.from(/* @__PURE__ */ new Set([...He.values ?? [], ...Te.values ?? []])) : O.set(Le, { ...Te }) : O.set(Le, { ...Te });
4981
4981
  };
4982
4982
  return Be.forEach(_e), fe.forEach(_e), Array.from(O.values());
4983
- }, Ye = (Be) => {
4983
+ }, Xe = (Be) => {
4984
4984
  var O;
4985
4985
  const fe = (O = Be.dimensions) == null ? void 0 : O.find(
4986
4986
  (_e) => _e.schemaName === Q && _e.name === Z
@@ -4998,7 +4998,7 @@ const vr = ma(pr, () => {
4998
4998
  var Ve, De;
4999
4999
  const fe = (Ve = Be == null ? void 0 : Be.widget) == null ? void 0 : Ve.config;
5000
5000
  if (!fe) return null;
5001
- const O = Ye(fe), _e = (fe.dimensions ?? []).some((Oe) => Oe.schemaName === Q) || (fe.schemaNames ?? []).includes(Q), Te = Fe(
5001
+ const O = Xe(fe), _e = (fe.dimensions ?? []).some((Oe) => Oe.schemaName === Q) || (fe.schemaNames ?? []).includes(Q), Te = Fe(
5002
5002
  fe.filters ?? [],
5003
5003
  (i.filters ?? []).filter((Oe) => {
5004
5004
  var We;
@@ -5060,7 +5060,7 @@ const vr = ma(pr, () => {
5060
5060
  });
5061
5061
  }
5062
5062
  function te(i) {
5063
- le(i) ? i.selectedValues = [Yt] : i.selectedValues = i.options.map((W) => W.value);
5063
+ le(i) ? i.selectedValues = [Xt] : i.selectedValues = i.options.map((W) => W.value);
5064
5064
  }
5065
5065
  const ce = v(
5066
5066
  () => w.value.map((i) => {
@@ -5082,7 +5082,7 @@ const vr = ma(pr, () => {
5082
5082
  return !((W = i.filter.tileIds) != null && W.length);
5083
5083
  }
5084
5084
  function z(i) {
5085
- return String(i ?? "").trim() === "" ? Yt : String(i);
5085
+ return String(i ?? "").trim() === "" ? Xt : String(i);
5086
5086
  }
5087
5087
  function P(i) {
5088
5088
  var W, Z;
@@ -5123,7 +5123,7 @@ const vr = ma(pr, () => {
5123
5123
  return ((Te = _e.cells) == null ? void 0 : Te[0]) ?? " ";
5124
5124
  }));
5125
5125
  }
5126
- const Fe = Array.from(new Set(Ce)), Ye = _(i), Re = i.keepSelection ? Array.from(/* @__PURE__ */ new Set([...Fe, ...Ye])) : Fe, je = new Set(Ce), Be = new Set(Fe);
5126
+ const Fe = Array.from(new Set(Ce)), Xe = _(i), Re = i.keepSelection ? Array.from(/* @__PURE__ */ new Set([...Fe, ...Xe])) : Fe, je = new Set(Ce), Be = new Set(Fe);
5127
5127
  i.options = Re.map((fe) => ({
5128
5128
  label: String(fe).trim() === "" ? g.value : String(fe),
5129
5129
  value: fe,
@@ -5171,14 +5171,14 @@ const vr = ma(pr, () => {
5171
5171
  var Q;
5172
5172
  if ((Q = i.selectedValues) == null ? void 0 : Q.includes(W)) {
5173
5173
  const Ce = (i.selectedValues || []).filter(
5174
- (Fe) => Fe !== W && Fe !== Yt
5174
+ (Fe) => Fe !== W && Fe !== Xt
5175
5175
  );
5176
- i.selectedValues = Ce.length > 0 ? Ce : [Yt];
5176
+ i.selectedValues = Ce.length > 0 ? Ce : [Xt];
5177
5177
  } else
5178
5178
  i.selectedValues = [...A(i.selectedValues || []), W];
5179
5179
  f(i.filter, x.value, "selectedValues", i.selectedValues);
5180
5180
  }
5181
- function Y(i, W) {
5181
+ function X(i, W) {
5182
5182
  if (W === null)
5183
5183
  i.values = [];
5184
5184
  else {
@@ -5196,10 +5196,10 @@ const vr = ma(pr, () => {
5196
5196
  return `${n("report.section.filter.search")}`;
5197
5197
  }
5198
5198
  function ue(i) {
5199
- var Ye, Re, je, Be, fe;
5199
+ var Xe, Re, je, Be, fe;
5200
5200
  const W = no(i.filter), Z = i.options.length > 0 ? "(0 selected)" : "";
5201
5201
  if (i.type === ht.Timestamp && !k(i.filter)) {
5202
- const O = ((Ye = i.filter.values) == null ? void 0 : Ye.length) === 2;
5202
+ const O = ((Xe = i.filter.values) == null ? void 0 : Xe.length) === 2;
5203
5203
  if (i.filter.option === Je.DateTime)
5204
5204
  return { preview: O ? `${W} is between ${lo({
5205
5205
  startDate: ((Re = i.filter.values) == null ? void 0 : Re[0]) || null,
@@ -5247,42 +5247,42 @@ const vr = ma(pr, () => {
5247
5247
  function Ne(i, W) {
5248
5248
  return i ? i.length > W ? `${i.slice(0, W)}…` : i : g.value;
5249
5249
  }
5250
- function Xe(i, W) {
5251
- var Q, Ce, Fe, Ye;
5250
+ function Ye(i, W) {
5251
+ var Q, Ce, Fe, Xe;
5252
5252
  if (W === null)
5253
5253
  i.values = [];
5254
5254
  else {
5255
- const Re = Bt().tz(N.value).set("hour", Number((Q = W.start) == null ? void 0 : Q.hour)).set("minute", Number((Ce = W.start) == null ? void 0 : Ce.minute)).toISOString(), je = Bt().tz(N.value).set("hour", Number((Fe = W.end) == null ? void 0 : Fe.hour)).set("minute", Number((Ye = W.end) == null ? void 0 : Ye.minute)).toISOString();
5255
+ const Re = Bt().tz(N.value).set("hour", Number((Q = W.start) == null ? void 0 : Q.hour)).set("minute", Number((Ce = W.start) == null ? void 0 : Ce.minute)).toISOString(), je = Bt().tz(N.value).set("hour", Number((Fe = W.end) == null ? void 0 : Fe.hour)).set("minute", Number((Xe = W.end) == null ? void 0 : Xe.minute)).toISOString();
5256
5256
  i.values = [Re, je];
5257
5257
  }
5258
5258
  const Z = w.value.find((Re) => Re.filter === i);
5259
5259
  Z && (Z.keepSelection = W !== null, f(Z.filter, x.value, "keepSelection", Z.keepSelection));
5260
5260
  }
5261
5261
  return (i, W) => {
5262
- const Z = ge("FmCircularProgress"), Q = ge("FmTextField"), Ce = ge("FmMenuItem"), Fe = ge("FmTooltip"), Ye = ge("FmIcon"), Re = ge("FmMenuDivider"), je = ge("FmSwitch"), Be = ge("FmButton"), fe = ge("FmMenu");
5263
- return X(), be("div", gr, [
5264
- (X(!0), be(et, null, Lt(w.value, (O, _e) => {
5262
+ const Z = ge("FmCircularProgress"), Q = ge("FmTextField"), Ce = ge("FmMenuItem"), Fe = ge("FmTooltip"), Xe = ge("FmIcon"), Re = ge("FmMenuDivider"), je = ge("FmSwitch"), Be = ge("FmButton"), fe = ge("FmMenu");
5263
+ return Y(), be("div", gr, [
5264
+ (Y(!0), be(et, null, Lt(w.value, (O, _e) => {
5265
5265
  var Te, Le, He, Ve, De, Oe;
5266
- return X(), be("div", {
5266
+ return Y(), be("div", {
5267
5267
  key: O.id
5268
5268
  }, [
5269
- O.filter.option === l(Je).DateTime && !k(O.filter) ? (X(), we(ao, {
5269
+ O.filter.option === l(Je).DateTime && !k(O.filter) ? (Y(), we(ao, {
5270
5270
  key: 0,
5271
5271
  "model-value": { startDate: (Te = O.filter.values) == null ? void 0 : Te[0], endDate: (Le = O.filter.values) == null ? void 0 : Le[1] },
5272
5272
  class: "w-full",
5273
5273
  label: ue(O).preview,
5274
5274
  removable: ((He = O.filter.values) == null ? void 0 : He.length) === 2,
5275
- onUpdate: (We) => Y(O.filter, We),
5276
- onChipClosed: () => Y(O.filter, null)
5277
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : O.filter.option === l(Je).TimeOfDay && !k(O.filter) ? (X(), we(Ja, {
5275
+ onUpdate: (We) => X(O.filter, We),
5276
+ onChipClosed: () => X(O.filter, null)
5277
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : O.filter.option === l(Je).TimeOfDay && !k(O.filter) ? (Y(), we(Ja, {
5278
5278
  key: 1,
5279
5279
  "model-value": { start: (Ve = O.filter.values) == null ? void 0 : Ve[0], end: (De = O.filter.values) == null ? void 0 : De[1] },
5280
5280
  class: "w-full",
5281
5281
  label: ue(O).preview,
5282
5282
  removable: ((Oe = O.filter.values) == null ? void 0 : Oe.length) === 2,
5283
- onUpdate: (We) => Xe(O.filter, We),
5284
- onChipClosed: () => Xe(O.filter, null)
5285
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (X(), we(fe, {
5283
+ onUpdate: (We) => Ye(O.filter, We),
5284
+ onChipClosed: () => Ye(O.filter, null)
5285
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (Y(), we(fe, {
5286
5286
  key: 2,
5287
5287
  "close-on-click": !1,
5288
5288
  shift: !0,
@@ -5308,9 +5308,9 @@ const vr = ma(pr, () => {
5308
5308
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
5309
5309
  style: Ze({ maxHeight: `${We}px`, width: Ee })
5310
5310
  }, [
5311
- L.value ? (X(), be("div", br, [
5311
+ L.value ? (Y(), be("div", br, [
5312
5312
  me(Z)
5313
- ])) : O.options.length > 0 && !l(u) ? (X(), be(et, { key: 1 }, [
5313
+ ])) : O.options.length > 0 && !l(u) ? (Y(), be(et, { key: 1 }, [
5314
5314
  J("div", Cr, [
5315
5315
  me(Q, {
5316
5316
  modelValue: O.search,
@@ -5333,10 +5333,10 @@ const vr = ma(pr, () => {
5333
5333
  indeterminate: !0,
5334
5334
  onClick: (Ae) => te(O)
5335
5335
  }, null, 8, ["label", "model-value", "onClick"]),
5336
- (X(!0), be(et, null, Lt(ce.value[_e], (Ae) => (X(), be(et, {
5336
+ (Y(!0), be(et, null, Lt(ce.value[_e], (Ae) => (Y(), be(et, {
5337
5337
  key: Ae.value
5338
5338
  }, [
5339
- Ae.label && Ae.label.length > 110 ? (X(), we(Fe, {
5339
+ Ae.label && Ae.label.length > 110 ? (Y(), we(Fe, {
5340
5340
  key: 0,
5341
5341
  placement: "right",
5342
5342
  "hide-arrow": !0,
@@ -5360,7 +5360,7 @@ const vr = ma(pr, () => {
5360
5360
  ])
5361
5361
  ]),
5362
5362
  _: 2
5363
- }, 1024)) : (X(), we(Ce, {
5363
+ }, 1024)) : (Y(), we(Ce, {
5364
5364
  key: 1,
5365
5365
  label: Ae.label,
5366
5366
  "has-checkbox": !0,
@@ -5369,7 +5369,7 @@ const vr = ma(pr, () => {
5369
5369
  onClick: () => re(O, Ae.value)
5370
5370
  }, null, 8, ["label", "model-value", "class", "onClick"]))
5371
5371
  ], 64))), 128)),
5372
- ce.value[_e].length < O.options.length && !O.search ? (X(), we(Ce, {
5372
+ ce.value[_e].length < O.options.length && !O.search ? (Y(), we(Ce, {
5373
5373
  key: 0,
5374
5374
  class: "fm-typo-en-body-md-400 -ml-2",
5375
5375
  label: l(n)("report.section.filter.loadMore"),
@@ -5382,7 +5382,7 @@ const vr = ma(pr, () => {
5382
5382
  class: "px-12 py-2 flex items-center gap-2 cursor-pointer hover:bg-fm-color-neutral-50 transition-colors",
5383
5383
  onClick: (Ae) => de(O)
5384
5384
  }, [
5385
- me(Ye, {
5385
+ me(Xe, {
5386
5386
  name: O.showAdvanced ? "keyboard_arrow_up" : "keyboard_arrow_down",
5387
5387
  size: "md",
5388
5388
  class: ""
@@ -5390,7 +5390,7 @@ const vr = ma(pr, () => {
5390
5390
  J("span", kr, Ge(l(n)("report.section.filter.advanced")), 1)
5391
5391
  ], 8, _r),
5392
5392
  me(Re),
5393
- O.showAdvanced ? (X(), be("div", Tr, [
5393
+ O.showAdvanced ? (Y(), be("div", Tr, [
5394
5394
  J("div", Lr, [
5395
5395
  J("div", Dr, [
5396
5396
  me(je, {
@@ -5407,7 +5407,7 @@ const vr = ma(pr, () => {
5407
5407
  J("div", Ir, Ge(l(n)("report.section.filter.keepSelectionTooltip")), 1)
5408
5408
  ]),
5409
5409
  default: ze(() => [
5410
- me(Ye, {
5410
+ me(Xe, {
5411
5411
  name: "info",
5412
5412
  size: "md",
5413
5413
  class: "text-fm-color-primary"
@@ -5430,7 +5430,7 @@ const vr = ma(pr, () => {
5430
5430
  label: l(n)("report.common.apply")
5431
5431
  }, null, 8, ["onClick", "label"])
5432
5432
  ])
5433
- ], 64)) : l(u) ? Me("", !0) : (X(), we(xn, {
5433
+ ], 64)) : l(u) ? Me("", !0) : (Y(), we(xn, {
5434
5434
  key: 2,
5435
5435
  title: U(O) ? l(n)("report.messages.noWidgetsApplied") : void 0,
5436
5436
  "sub-title": U(O) ? l(n)("report.messages.assignWidgetsToUseThisFilter") : void 0
@@ -5454,7 +5454,7 @@ export {
5454
5454
  Tn as X,
5455
5455
  Ln as Y,
5456
5456
  Ur as _,
5457
- Yr as a,
5457
+ Xr as a,
5458
5458
  gn as b,
5459
5459
  _n as c,
5460
5460
  dn as d,
@@ -5462,6 +5462,6 @@ export {
5462
5462
  Dn as f,
5463
5463
  Kr as g,
5464
5464
  qr as h,
5465
- Xr as i,
5465
+ Yr as i,
5466
5466
  la as u
5467
5467
  };