@feedmepos/mf-report 5.21.64 → 5.21.65

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 (28) hide show
  1. package/dist/{App-C6sf6uV0.js → App-DjOXbuSR.js} +5 -5
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DY2vUkqB.js → BaseDialog.vue_vue_type_script_setup_true_lang-BI3REw2h.js} +6053 -6003
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C2Dk82K3.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DbXhUMAR.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-CJ8nFclo.js → Default.vue_vue_type_script_setup_true_lang-Cwd7YD1i.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-w-vl_4ms.js → FilterSelector.vue_vue_type_script_setup_true_lang-DGktnZo1.js} +114 -114
  6. package/dist/{InsightView-B65bwZAR.js → InsightView-uUQohGVn.js} +6 -6
  7. package/dist/{Integration-yvflqE-n.js → Integration-CVRLRPdq.js} +3 -3
  8. package/dist/{Integrations-CNGGkegt.js → Integrations-DOftS93E.js} +3 -3
  9. package/dist/{Layout-BqIWtei_.js → Layout-DntjaCaj.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DUecY9qF.js → MenuTab.vue_vue_type_script_setup_true_lang-BB4h_9Df.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BmiP0-Ph.js → NavigationTab.vue_vue_type_script_setup_true_lang-DvytJlAR.js} +3600 -3581
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-D6GhiIHR.js → NoData.vue_vue_type_script_setup_true_lang-Bm43uVUi.js} +1 -1
  13. package/dist/{OverviewView-CgkjAGsb.js → OverviewView-CuQCAiyO.js} +5 -5
  14. package/dist/{Report-sRGQ-Eer.js → Report-CGj_ONkL.js} +4 -4
  15. package/dist/{ReportEditor-CDwMgWD4.js → ReportEditor-C7u26DTW.js} +6 -6
  16. package/dist/{ReportView-DwZd6_JS.js → ReportView-uZvTp_a7.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-B39tWbTt.js → SelectComponent.vue_vue_type_script_setup_true_lang-FW4jnJX6.js} +1 -1
  18. package/dist/{Setting-zZKlc_1D.js → Setting-DJh6P_el.js} +5 -5
  19. package/dist/{TileEditor-Dp0Cs7PI.js → TileEditor-CfXGe6pu.js} +8 -8
  20. package/dist/{TransitionFade-Bhwb0VIE.js → TransitionFade-BMCSWEAj.js} +6 -6
  21. package/dist/{app-DVv1khH3.js → app-CrKcmNtX.js} +19 -11
  22. package/dist/app.js +1 -1
  23. package/dist/assets/formatChartData.worker-BJvDVXA9.js +170 -0
  24. package/dist/assets/processTableData.worker-B3PWntX0.js +170 -0
  25. package/dist/{vue-i18n-BSlBDEnq.js → vue-i18n-DgYeUN5g.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/assets/formatChartData.worker-DrtZuT9M.js +0 -163
  28. package/dist/assets/processTableData.worker--vDjMZK0.js +0 -163
@@ -1,13 +1,13 @@
1
- import { computed as F, defineComponent as _e, mergeModels as We, useModel as Ve, ref as T, onMounted as Ie, nextTick as Ce, watch as me, resolveComponent as U, createElementBlock as se, openBlock as P, Fragment as xe, renderSlot as Ne, createVNode as G, normalizeStyle as De, unref as d, createElementVNode as j, toDisplayString as ke, withCtx as ce, createBlock as fe, createCommentVNode as Te, normalizeClass as Ze, h as ut, renderList as dt, toRaw as Sl, markRaw as kl, createTextVNode as wt, onUnmounted as Xt, resolveDynamicComponent as Tl, withDirectives as _l, vShow as Fl, withModifiers as gt } from "vue";
2
- import { W as N, e as at, f as Ll, S as qe, v as tt, g as Rl, h as yt, i as Gt, q as jt, R as Ke, j as $l, D as $e, c as ye, C as Se, a as zl, b as El, _ as Dl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DY2vUkqB.js";
3
- import { u as nt, b as lt, a as Rt, h as Vl } from "./vue-i18n-BSlBDEnq.js";
4
- import { d as xt, _ as Al, a as Ml, b as Wl, c as Il } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C2Dk82K3.js";
1
+ import { computed as F, defineComponent as _e, mergeModels as We, useModel as De, ref as T, onMounted as Ie, nextTick as Ce, watch as me, resolveComponent as U, createElementBlock as se, openBlock as P, Fragment as xe, renderSlot as Ne, createVNode as G, normalizeStyle as Ve, unref as d, createElementVNode as j, toDisplayString as ke, withCtx as ce, createBlock as fe, createCommentVNode as Te, normalizeClass as Ze, h as ut, renderList as dt, toRaw as Sl, markRaw as kl, createTextVNode as wt, onUnmounted as Xt, resolveDynamicComponent as Tl, withDirectives as _l, vShow as Fl, withModifiers as gt } from "vue";
2
+ import { W as N, e as at, f as Ll, S as qe, v as tt, g as Rl, h as yt, i as Gt, q as jt, R as Ke, j as $l, D as $e, c as ye, C as Se, a as zl, b as El, _ as Vl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BI3REw2h.js";
3
+ import { u as nt, b as lt, a as Rt, h as Dl } from "./vue-i18n-DgYeUN5g.js";
4
+ import { d as xt, _ as Al, a as Ml, b as Wl, c as Il } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DbXhUMAR.js";
5
5
  import { storeToRefs as ze, defineStore as Kt } from "pinia";
6
6
  import { useBreakpoints as Jt, useSnackbar as $t, components as Nl } from "@feedmepos/ui-library";
7
- import { _ as Pl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B39tWbTt.js";
7
+ import { _ as Pl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-FW4jnJX6.js";
8
8
  import { r as Ye } from "./i18n-CI_sQ5d_.js";
9
- import { _ as Ct } from "./NoData.vue_vue_type_script_setup_true_lang-D6GhiIHR.js";
10
- import { d as Je } from "./app-DVv1khH3.js";
9
+ import { _ as Ct } from "./NoData.vue_vue_type_script_setup_true_lang-Bm43uVUi.js";
10
+ import { d as Je } from "./app-CrKcmNtX.js";
11
11
  var St = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(St || {}), Oe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Oe || {}), kt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(kt || {}), Tt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Tt || {}), _t = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(_t || {}), Ft = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Ft || {}), Lt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Lt || {});
12
12
  N.Circular, N.Table, N.BarChart, N.LineChart, N.StackBarChart, N.StackLineChart, N.Scorecard, N.Spacer;
13
13
  const Bl = [
@@ -180,8 +180,8 @@ function pt(e) {
180
180
  const _ = u.scales.x, k = u.scales.y;
181
181
  if (!_ || !k)
182
182
  return;
183
- const D = u.ctx, p = C[0], x = p.element, v = ((w = u.options) == null ? void 0 : w.indexAxis) === "y", g = v ? k : _, b = v ? x.y : x.x, L = g.getPixelForValue(p.index), c = e === "bar" ? L : b ?? L, { left: t, right: r, top: h, bottom: a } = u.chartArea;
184
- D.save(), D.beginPath(), D.lineWidth = 1, D.strokeStyle = "rgba(0, 0, 0, 0.3)", D.setLineDash([5, 5]), v ? (D.moveTo(t, c), D.lineTo(r, c)) : (D.moveTo(c, h), D.lineTo(c, a)), D.stroke(), D.restore();
183
+ const V = u.ctx, p = C[0], x = p.element, v = ((w = u.options) == null ? void 0 : w.indexAxis) === "y", g = v ? k : _, b = v ? x.y : x.x, L = g.getPixelForValue(p.index), c = e === "bar" ? L : b ?? L, { left: t, right: r, top: h, bottom: a } = u.chartArea;
184
+ V.save(), V.beginPath(), V.lineWidth = 1, V.strokeStyle = "rgba(0, 0, 0, 0.3)", V.setLineDash([5, 5]), v ? (V.moveTo(t, c), V.lineTo(r, c)) : (V.moveTo(c, h), V.lineTo(c, a)), V.stroke(), V.restore();
185
185
  };
186
186
  return {
187
187
  id: "crosshair",
@@ -229,7 +229,7 @@ function ot(e = !1, o = !1) {
229
229
  return r;
230
230
  }
231
231
  return "#9ca3af";
232
- }, D = (c) => {
232
+ }, V = (c) => {
233
233
  var h, a;
234
234
  const t = c.dataset;
235
235
  return Reflect.get(t, "type") === "bar" ? !0 : ((a = (h = c.chart) == null ? void 0 : h.config) == null ? void 0 : a.type) === "bar";
@@ -244,7 +244,7 @@ function ot(e = !1, o = !1) {
244
244
  Reflect.get(l ?? {}, "backgroundColor"),
245
245
  r
246
246
  );
247
- return D(c) ? k(a, $, h, w) : k(h, w, a, $);
247
+ return V(c) ? k(a, $, h, w) : k(h, w, a, $);
248
248
  }, x = (c) => c.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\"/g, "&quot;").replace(/'/g, "&#39;"), y = (c) => {
249
249
  var Z;
250
250
  const t = (Z = c[0]) == null ? void 0 : Z.label, r = i(t), h = r[0] ?? (t == null ? "" : String(t)), a = r[1], l = [], w = [];
@@ -252,7 +252,7 @@ function ot(e = !1, o = !1) {
252
252
  const K = W.dataset ?? {}, re = {
253
253
  text: m(W),
254
254
  color: p(W),
255
- isBar: D(W)
255
+ isBar: V(W)
256
256
  };
257
257
  if (a && s(K)) {
258
258
  w.push(re);
@@ -519,8 +519,8 @@ function st(e) {
519
519
  });
520
520
  }
521
521
  }
522
- })), _ = F(() => e.isTransposed), k = F(() => e.chartWidth), D = F(() => e.chartHeight);
523
- return { datalabels: s, xCfg: m, yCfg: u, isTransposed: _, legend: C, chartWidth: k, chartHeight: D };
522
+ })), _ = F(() => e.isTransposed), k = F(() => e.chartWidth), V = F(() => e.chartHeight);
523
+ return { datalabels: s, xCfg: m, yCfg: u, isTransposed: _, legend: C, chartWidth: k, chartHeight: V };
524
524
  }
525
525
  const ql = /* @__PURE__ */ _e({
526
526
  __name: "WidgetBarchart",
@@ -532,13 +532,13 @@ const ql = /* @__PURE__ */ _e({
532
532
  }),
533
533
  emits: ["update:modelValue"],
534
534
  setup(e) {
535
- const o = e, i = Ve(e, "modelValue"), s = T(null), m = F(() => {
535
+ const o = e, i = De(e, "modelValue"), s = T(null), m = F(() => {
536
536
  var t;
537
537
  return ((t = i.value.data) == null ? void 0 : t.xAxis) ?? [];
538
538
  }), u = F(() => {
539
539
  var t;
540
540
  return ((t = i.value.data) == null ? void 0 : t.datasets) ?? [];
541
- }), { datalabels: C, xCfg: _, yCfg: k, isTransposed: D, legend: p, chartWidth: x, chartHeight: y } = st(
541
+ }), { datalabels: C, xCfg: _, yCfg: k, isTransposed: V, legend: p, chartWidth: x, chartHeight: y } = st(
542
542
  i.value
543
543
  ), v = F(() => ot(i.value.isTransposed === !0, !0)), g = pt("bar"), b = F(() => u.value.length > 0 ? [
544
544
  ...u.value.map((t, r) => ({
@@ -569,7 +569,7 @@ const ql = /* @__PURE__ */ _e({
569
569
  "x-axis": { categories: m.value },
570
570
  "x-cfg": d(_),
571
571
  "y-cfg": d(k),
572
- transpose: d(D),
572
+ transpose: d(V),
573
573
  legend: {
574
574
  display: d(p).display ?? !1,
575
575
  position: d(p).position,
@@ -581,7 +581,7 @@ const ql = /* @__PURE__ */ _e({
581
581
  datalabels: d(C),
582
582
  plugins: [d(g)],
583
583
  "maintain-aspect-ratio": !1,
584
- style: De({
584
+ style: Ve({
585
585
  "--chart-width": d(x) !== void 0 ? d(x) + "px" : "100%",
586
586
  "--chart-height": d(y) !== void 0 ? d(y) + "px" : "calc(100% - 36px)"
587
587
  })
@@ -599,7 +599,7 @@ const ql = /* @__PURE__ */ _e({
599
599
  }),
600
600
  emits: ["update:modelValue"],
601
601
  setup(e) {
602
- const o = e, i = Ve(e, "modelValue"), { breakpoints: s } = Jt(), m = T(null), { datalabels: u, legend: C, chartWidth: _, chartHeight: k } = st(i.value), D = F(() => {
602
+ const o = e, i = De(e, "modelValue"), { breakpoints: s } = Jt(), m = T(null), { datalabels: u, legend: C, chartWidth: _, chartHeight: k } = st(i.value), V = F(() => {
603
603
  let b = [];
604
604
  return i.value.data.datasets && i.value.data.metrics && i.value.data.datasets.length > 0 && i.value.data.metrics.length > 0 && (b = [
605
605
  {
@@ -616,7 +616,7 @@ const ql = /* @__PURE__ */ _e({
616
616
  Ce(() => {
617
617
  x();
618
618
  });
619
- }), me([D], () => {
619
+ }), me([V], () => {
620
620
  Ce(() => x());
621
621
  });
622
622
  const y = F(() => s.value.lg ? 12 : 8), v = F(
@@ -678,14 +678,14 @@ const ql = /* @__PURE__ */ _e({
678
678
  ref: m,
679
679
  class: "circular",
680
680
  percentage: "70%",
681
- datasets: D.value,
681
+ datasets: V.value,
682
682
  metrics: i.value.data.datasets.map((t) => t.name),
683
683
  tooltip: g,
684
684
  variant: "doughnut",
685
685
  legend: v.value,
686
686
  datalabels: d(u),
687
687
  "maintain-aspect-ratio": !1,
688
- style: De({
688
+ style: Ve({
689
689
  "--chart-width": d(_) !== void 0 ? d(_) + "px" : "100%",
690
690
  "--chart-height": d(k) !== void 0 ? d(k) + "px" : "calc(100% - 36px)"
691
691
  })
@@ -710,14 +710,14 @@ const Ul = { class: "flex flex-col gap-1" }, Xl = { class: "fm-typo-en-title-md-
710
710
  },
711
711
  emits: ["update:modelValue"],
712
712
  setup(e) {
713
- const o = Ve(e, "modelValue"), { t: i } = nt(), { compareDateRange: s, defaultDateSetting: m } = ze(lt()), { country: u } = Rt(), C = F(() => {
713
+ const o = De(e, "modelValue"), { t: i } = nt(), { compareDateRange: s, defaultDateSetting: m } = ze(lt()), { country: u } = Rt(), C = F(() => {
714
714
  var g;
715
715
  return ((g = o.value.data) == null ? void 0 : g.value) || "";
716
716
  }), _ = F(() => ct(C.value)), k = F(() => {
717
717
  const { data: g } = o.value;
718
718
  return g != null && g.comparison ? Zt(C.value, g.comparison, u) : null;
719
719
  });
720
- function D(g) {
720
+ function V(g) {
721
721
  switch (g) {
722
722
  case St.bar:
723
723
  return "bar";
@@ -772,7 +772,7 @@ const Ul = { class: "flex flex-col gap-1" }, Xl = { class: "fm-typo-en-title-md-
772
772
  }, null, 8, ["name", "color"]),
773
773
  j("p", {
774
774
  class: "fm-typo-en-body-md-600",
775
- style: De({ color: k.value.icon.color })
775
+ style: Ve({ color: k.value.icon.color })
776
776
  }, ke(k.value.value), 5)
777
777
  ]),
778
778
  _: 1
@@ -797,7 +797,7 @@ const Ul = { class: "flex flex-col gap-1" }, Xl = { class: "fm-typo-en-title-md-
797
797
  }, 8, ["disabled"])
798
798
  ]),
799
799
  p.value ? (P(), se("div", Kl, [
800
- D(p.value.type) === "line" ? (P(), fe(r, {
800
+ V(p.value.type) === "line" ? (P(), fe(r, {
801
801
  key: 0,
802
802
  class: "sparkline",
803
803
  datasets: y.value,
@@ -854,7 +854,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
854
854
  }, k = () => {
855
855
  const t = document.querySelectorAll("th"), r = document.querySelectorAll("td"), h = document.querySelectorAll(".col-resize-handle"), a = document.querySelectorAll(".row-resize-handle");
856
856
  t.forEach((l) => l.classList.remove("toggleEditResize")), r.forEach((l) => l.classList.remove("toggleEditResize")), h.forEach((l) => l.remove()), a.forEach((l) => l.remove()), i.value = !1;
857
- }, D = () => {
857
+ }, V = () => {
858
858
  e.value = 0, o.value = [];
859
859
  }, p = (t, r) => {
860
860
  if (r) {
@@ -935,7 +935,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
935
935
  setColWidths: C,
936
936
  enableEditMode: _,
937
937
  disableEditMode: k,
938
- resetStore: D,
938
+ resetStore: V,
939
939
  highlightCol: p,
940
940
  highlightRows: x,
941
941
  removeRowHighlight: y,
@@ -965,7 +965,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
965
965
  k();
966
966
  }
967
967
  };
968
- }), aa = "/assets/processTableData.worker--vDjMZK0.js", na = { class: "my-4" }, oa = {
968
+ }), aa = "/assets/processTableData.worker-B3PWntX0.js", na = { class: "my-4" }, oa = {
969
969
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
970
970
  style: { backgroundColor: "#f9f9f9" }
971
971
  }, sa = { class: "font-bold" }, ra = { class: "text-fm-color-neutral-gray-300" }, ia = /* @__PURE__ */ _e({
@@ -978,7 +978,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
978
978
  }),
979
979
  emits: ["update:modelValue"],
980
980
  setup(e) {
981
- const { t: o, te: i } = nt(), s = Ve(e, "modelValue"), { country: m } = Rt(), { clearTileSorts: u, setTileSorts: C } = Ll(), _ = $t(), k = e, D = T([]), { isEditing: p, colWidths: x, rowHeight: y } = ze(qt()), { setColWidths: v, setRowHeights: g, enableCellResizing: b } = qt(), L = T(null), c = F(() => {
981
+ const { t: o, te: i } = nt(), s = De(e, "modelValue"), { country: m } = Rt(), { clearTileSorts: u, setTileSorts: C } = Ll(), _ = $t(), k = e, V = T([]), { isEditing: p, colWidths: x, rowHeight: y } = ze(qt()), { setColWidths: v, setRowHeights: g, enableCellResizing: b } = qt(), L = T(null), c = F(() => {
982
982
  var S;
983
983
  return ((S = s.value.data) == null ? void 0 : S.columns) || [{ label: "", key: "" }];
984
984
  }), t = F(() => {
@@ -1055,7 +1055,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1055
1055
  rows: E,
1056
1056
  columns: X,
1057
1057
  filter: r.value ?? "",
1058
- globalSorts: Sl(D.value).map((O) => ({
1058
+ globalSorts: Sl(V.value).map((O) => ({
1059
1059
  key: O.key,
1060
1060
  type: O.type
1061
1061
  })),
@@ -1067,7 +1067,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1067
1067
  });
1068
1068
  }
1069
1069
  me(
1070
- () => D.value,
1070
+ () => V.value,
1071
1071
  (S) => {
1072
1072
  k.tileIndex === void 0 || k.tileIndex === null || C(k.tileIndex, S);
1073
1073
  },
@@ -1080,7 +1080,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1080
1080
  rowsLength: S.length,
1081
1081
  columns: E.map((B) => ({ key: B.key, type: B.type, label: B.label })),
1082
1082
  filter: r.value ?? "",
1083
- globalSorts: D.value.map((B) => ({ key: B.key, type: B.type })),
1083
+ globalSorts: V.value.map((B) => ({ key: B.key, type: B.type })),
1084
1084
  grandTotalPosition: h.value,
1085
1085
  pageSize: a.value
1086
1086
  });
@@ -1093,12 +1093,12 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1093
1093
  { immediate: !0 }
1094
1094
  );
1095
1095
  function K(S) {
1096
- const E = D.value.find((X) => X.key === S);
1096
+ const E = V.value.find((X) => X.key === S);
1097
1097
  if (!E) {
1098
- D.value.push({ key: S, type: qe.Asc });
1098
+ V.value.push({ key: S, type: qe.Asc });
1099
1099
  return;
1100
1100
  }
1101
- E.type === qe.Asc ? E.type = qe.Desc : E.type === qe.Desc && (D.value = D.value.filter((X) => X.key !== S));
1101
+ E.type === qe.Asc ? E.type = qe.Desc : E.type === qe.Desc && (V.value = V.value.filter((X) => X.key !== S));
1102
1102
  }
1103
1103
  const re = F(
1104
1104
  () => {
@@ -1108,7 +1108,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1108
1108
  ), ue = F(() => {
1109
1109
  var S;
1110
1110
  return (S = s.value.data) != null && S.columns ? s.value.data.columns.map((E) => {
1111
- const X = Ye(o, i, E.label, "other"), q = D.value.find((he) => he.key === E.key), B = !!q, O = B ? q.type === qe.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
1111
+ const X = Ye(o, i, E.label, "other"), q = V.value.find((he) => he.key === E.key), B = !!q, O = B ? q.type === qe.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
1112
1112
  return {
1113
1113
  accessorKey: E.key,
1114
1114
  header: () => {
@@ -1231,13 +1231,13 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1231
1231
  }),
1232
1232
  emits: ["update:modelValue"],
1233
1233
  setup(e) {
1234
- const o = e, i = Ve(e, "modelValue"), s = T(null), m = F(() => {
1234
+ const o = e, i = De(e, "modelValue"), s = T(null), m = F(() => {
1235
1235
  var r;
1236
1236
  return ((r = i.value.data) == null ? void 0 : r.xAxis) || [];
1237
1237
  }), u = F(() => {
1238
1238
  var t;
1239
1239
  return ((t = i.value.data) == null ? void 0 : t.datasets) ?? [];
1240
- }), { datalabels: C, xCfg: _, yCfg: k, isTransposed: D, legend: p, chartWidth: x, chartHeight: y } = st(
1240
+ }), { datalabels: C, xCfg: _, yCfg: k, isTransposed: V, legend: p, chartWidth: x, chartHeight: y } = st(
1241
1241
  i.value
1242
1242
  ), v = F(() => ot(i.value.isTransposed === !0, !0)), g = pt("bar"), b = F(() => u.value.length > 0 ? [
1243
1243
  ...u.value.map((t, r) => {
@@ -1271,7 +1271,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1271
1271
  "x-axis": { categories: m.value },
1272
1272
  "x-cfg": d(_),
1273
1273
  "y-cfg": d(k),
1274
- transpose: d(D),
1274
+ transpose: d(V),
1275
1275
  stacked: !0,
1276
1276
  legend: {
1277
1277
  display: d(p).display ?? !1,
@@ -1284,7 +1284,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1284
1284
  plugins: [d(g)],
1285
1285
  datalabels: d(C),
1286
1286
  "maintain-aspect-ratio": !1,
1287
- style: De({
1287
+ style: Ve({
1288
1288
  "--chart-width": d(x) !== void 0 ? d(x) + "px" : "100%",
1289
1289
  "--chart-height": d(y) !== void 0 ? d(y) + "px" : "calc(100% - 36px)"
1290
1290
  })
@@ -1303,12 +1303,12 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1303
1303
  emits: ["update:modelValue"],
1304
1304
  setup(e) {
1305
1305
  var h;
1306
- const o = e, i = Ve(e, "modelValue"), s = ((h = i.value.data) == null ? void 0 : h.xAxis) ?? [], m = F(
1306
+ const o = e, i = De(e, "modelValue"), s = ((h = i.value.data) == null ? void 0 : h.xAxis) ?? [], m = F(
1307
1307
  () => s.length === 1 && _.value.length > 0 && _.value.every((a) => a.values.length === 1)
1308
1308
  ), u = F(() => m.value ? ["", s[0], ""] : s), C = T(null), _ = F(() => {
1309
1309
  var a;
1310
1310
  return ((a = i.value.data) == null ? void 0 : a.datasets) ?? [];
1311
- }), { datalabels: k, xCfg: D, yCfg: p, isTransposed: x, legend: y, chartWidth: v, chartHeight: g } = st(
1311
+ }), { datalabels: k, xCfg: V, yCfg: p, isTransposed: x, legend: y, chartWidth: v, chartHeight: g } = st(
1312
1312
  i.value
1313
1313
  ), b = F(() => ot(i.value.isTransposed === !0, !0)), L = pt("line"), c = F(() => _.value.length > 0 ? [
1314
1314
  ..._.value.map((a, l) => {
@@ -1346,7 +1346,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1346
1346
  class: "line-chart",
1347
1347
  datasets: c.value,
1348
1348
  "x-axis": { categories: u.value },
1349
- "x-cfg": d(D),
1349
+ "x-cfg": d(V),
1350
1350
  "y-cfg": d(p),
1351
1351
  transpose: d(x),
1352
1352
  legend: {
@@ -1361,7 +1361,7 @@ const ta = /* @__PURE__ */ Pl(Ql, [["render", ea]]), la = "mf-reporttable-dimens
1361
1361
  stacked: !0,
1362
1362
  datalabels: d(k),
1363
1363
  "maintain-aspect-ratio": !1,
1364
- style: De({
1364
+ style: Ve({
1365
1365
  "--chart-width": d(v) !== void 0 ? d(v) + "px" : "100%",
1366
1366
  "--chart-height": d(g) !== void 0 ? d(g) + "px" : "calc(100% - 36px)"
1367
1367
  })
@@ -1403,12 +1403,12 @@ const fa = /* @__PURE__ */ _e({
1403
1403
  emits: ["update:modelValue"],
1404
1404
  setup(e) {
1405
1405
  var h;
1406
- const o = e, i = Ve(e, "modelValue"), s = ((h = i.value.data) == null ? void 0 : h.xAxis) ?? [], m = F(
1406
+ const o = e, i = De(e, "modelValue"), s = ((h = i.value.data) == null ? void 0 : h.xAxis) ?? [], m = F(
1407
1407
  () => s.length === 1 && _.value.length > 0 && _.value.every((a) => a.values.length === 1)
1408
1408
  ), u = F(() => m.value ? ["", s[0], ""] : s), C = T(null), _ = F(() => {
1409
1409
  var a;
1410
1410
  return ((a = i.value.data) == null ? void 0 : a.datasets) ?? [];
1411
- }), { datalabels: k, xCfg: D, yCfg: p, isTransposed: x, legend: y, chartWidth: v, chartHeight: g } = st(
1411
+ }), { datalabels: k, xCfg: V, yCfg: p, isTransposed: x, legend: y, chartWidth: v, chartHeight: g } = st(
1412
1412
  i.value
1413
1413
  ), b = F(() => ot(i.value.isTransposed === !0, !0)), L = pt("line"), c = F(() => _.value.length > 0 ? [
1414
1414
  ..._.value.map((a, l) => {
@@ -1446,7 +1446,7 @@ const fa = /* @__PURE__ */ _e({
1446
1446
  class: "line-chart",
1447
1447
  datasets: c.value,
1448
1448
  "x-axis": { categories: u.value },
1449
- "x-cfg": d(D),
1449
+ "x-cfg": d(V),
1450
1450
  "y-cfg": d(p),
1451
1451
  transpose: d(x),
1452
1452
  legend: {
@@ -1460,7 +1460,7 @@ const fa = /* @__PURE__ */ _e({
1460
1460
  datalabels: d(k),
1461
1461
  plugins: [d(L)],
1462
1462
  "maintain-aspect-ratio": !1,
1463
- style: De({
1463
+ style: Ve({
1464
1464
  "--chart-width": d(v) !== void 0 ? d(v) + "px" : "100%",
1465
1465
  "--chart-height": d(g) !== void 0 ? d(g) + "px" : "calc(100% - 36px)"
1466
1466
  })
@@ -1479,7 +1479,7 @@ const fa = /* @__PURE__ */ _e({
1479
1479
  }),
1480
1480
  emits: ["update:modelValue"],
1481
1481
  setup(e) {
1482
- const { t: o } = nt(), { FmForm: i } = Nl, s = e, m = T(), u = Ve(e, "modelValue"), C = T(!0), _ = T(!1), k = $t(), { selectedLocationIds: D, dateRange: p, timeRange: x } = ze(lt()), y = T(yt.PORTRAIT);
1482
+ const { t: o } = nt(), { FmForm: i } = Nl, s = e, m = T(), u = De(e, "modelValue"), C = T(!0), _ = T(!1), k = $t(), { selectedLocationIds: V, dateRange: p, timeRange: x } = ze(lt()), y = T(yt.PORTRAIT);
1483
1483
  function v() {
1484
1484
  var b;
1485
1485
  (b = m.value) == null || b.validateInputs();
@@ -1494,7 +1494,7 @@ const fa = /* @__PURE__ */ _e({
1494
1494
  isCombinedLocationLayout: C.value,
1495
1495
  timeRange: x.value,
1496
1496
  dateRange: p.value,
1497
- locationIds: D.value
1497
+ locationIds: V.value
1498
1498
  });
1499
1499
  } catch (b) {
1500
1500
  k.open({ message: b.message, type: "error" });
@@ -1564,7 +1564,7 @@ const fa = /* @__PURE__ */ _e({
1564
1564
  });
1565
1565
  function ya(e) {
1566
1566
  const { containerRef: o, stickyOffset: i = T(0), enabled: s = T(!0) } = e;
1567
- let m = null, u = null, C = null, _ = null, k = null, D = null;
1567
+ let m = null, u = null, C = null, _ = null, k = null, V = null;
1568
1568
  function p() {
1569
1569
  return o.value ? o.value.querySelector("table") : null;
1570
1570
  }
@@ -1694,9 +1694,9 @@ function ya(e) {
1694
1694
  w && g(C, w), b();
1695
1695
  }
1696
1696
  };
1697
- D = new MutationObserver((w) => {
1697
+ V = new MutationObserver((w) => {
1698
1698
  w.some((A) => A.type === "childList" ? A.addedNodes.length > 0 || A.removedNodes.length > 0 : !1) ? a() : l();
1699
- }), D.observe(C, {
1699
+ }), V.observe(C, {
1700
1700
  childList: !0,
1701
1701
  subtree: !0,
1702
1702
  attributes: !0,
@@ -1716,7 +1716,7 @@ function ya(e) {
1716
1716
  w.removeEventListener("scroll", k), w = w.parentElement;
1717
1717
  k = null;
1718
1718
  }
1719
- _ && (_.disconnect(), _ = null), D && (D.disconnect(), D = null), u = null, C = null;
1719
+ _ && (_.disconnect(), _ = null), V && (V.disconnect(), V = null), u = null, C = null;
1720
1720
  }
1721
1721
  function h() {
1722
1722
  v();
@@ -1770,12 +1770,12 @@ const ba = {
1770
1770
  }),
1771
1771
  emits: ["update:modelValue"],
1772
1772
  setup(e) {
1773
- const o = T(!0), i = Ve(e, "modelValue"), s = i.value.widget.config, { t: m, te: u, locale: C } = nt(), _ = e, k = T(null), D = F(() => _.stickyHeaderOffset), p = F(() => i.value.widget.type === N.Table), x = F(() => {
1773
+ const o = T(!0), i = De(e, "modelValue"), s = i.value.widget.config, { t: m, te: u, locale: C } = nt(), _ = e, k = T(null), V = F(() => _.stickyHeaderOffset), p = F(() => i.value.widget.type === N.Table), x = F(() => {
1774
1774
  var f;
1775
1775
  return (f = k.value) == null ? void 0 : f.$el;
1776
1776
  }), { refresh: y } = ya({
1777
1777
  containerRef: x,
1778
- stickyOffset: D,
1778
+ stickyOffset: V,
1779
1779
  enabled: p
1780
1780
  }), v = T(s.rollup), g = T(tt()), b = T(s.drillDimension), L = F(() => {
1781
1781
  if (He.value.length > 0) {
@@ -1787,7 +1787,7 @@ const ba = {
1787
1787
  return -1;
1788
1788
  }), c = F(() => L.value !== 0), t = F(
1789
1789
  () => L.value != He.value.length - 1
1790
- ), r = T(s.showTitle ?? !0), h = T(s.titleFontSize ?? 14), a = T(s.titleBold ?? !1), l = T(s.titleItalic ?? !1), w = T(s.titleUnderline ?? !1), $ = T(s.chartWidth ?? void 0), A = T(s.chartHeight ?? void 0), I = T(s.showLabel ?? !1), Z = T(s.labelAlign ?? Tt.center), W = T(s.labelAnchor ?? kt.center), K = T(s.labelRotation ?? 0), re = T(s.labelOffset ?? 0), ue = T(s.labelFontSize ?? 12), S = F(() => s.showSearchBar), E = T(s.showX ?? !0), X = T(s.xPosition ?? _t.bottom), q = T(s.showXGrid ?? !1), B = T(s.showXTick ?? !0), O = T(s.xTickFontSize ?? 12), he = T(s.showXTitle ?? !1), Fe = T(s.xTitle ?? ""), Ae = T(s.xTitleFontSize ?? 12), Pe = T(s.showY ?? !0), Me = T(s.yPosition ?? Ft.left), n = T(s.showYGrid ?? !1), z = T(s.showYTick ?? !0), M = T(s.yTickFontSize ?? 12), V = T(s.showYTitle ?? !1), J = T(s.yTitle ?? ""), de = T(s.yTitleFontSize ?? 12), be = T(s.showLegend ?? void 0), ge = T(s.legendPosition ?? Lt.top), oe = T(s.usePointStyle ?? !0), H = T(s.legendMaxHeight), Y = T(s.legendMaxWidth), R = T(s.rowHeight ?? 0), Q = T(s.colWidths ?? []), ee = T(!1), pe = T(""), { breakpoints: ae, getBreakpointsBoundary: te } = Jt(), we = T(), le = F(
1790
+ ), r = T(s.showTitle ?? !0), h = T(s.titleFontSize ?? 14), a = T(s.titleBold ?? !1), l = T(s.titleItalic ?? !1), w = T(s.titleUnderline ?? !1), $ = T(s.chartWidth ?? void 0), A = T(s.chartHeight ?? void 0), I = T(s.showLabel ?? !1), Z = T(s.labelAlign ?? Tt.center), W = T(s.labelAnchor ?? kt.center), K = T(s.labelRotation ?? 0), re = T(s.labelOffset ?? 0), ue = T(s.labelFontSize ?? 12), S = F(() => s.showSearchBar), E = T(s.showX ?? !0), X = T(s.xPosition ?? _t.bottom), q = T(s.showXGrid ?? !1), B = T(s.showXTick ?? !0), O = T(s.xTickFontSize ?? 12), he = T(s.showXTitle ?? !1), Fe = T(s.xTitle ?? ""), Ae = T(s.xTitleFontSize ?? 12), Pe = T(s.showY ?? !0), Me = T(s.yPosition ?? Ft.left), n = T(s.showYGrid ?? !1), z = T(s.showYTick ?? !0), M = T(s.yTickFontSize ?? 12), D = T(s.showYTitle ?? !1), J = T(s.yTitle ?? ""), de = T(s.yTitleFontSize ?? 12), be = T(s.showLegend ?? void 0), ge = T(s.legendPosition ?? Lt.top), oe = T(s.usePointStyle ?? !0), H = T(s.legendMaxHeight), Y = T(s.legendMaxWidth), R = T(s.rowHeight ?? 0), Q = T(s.colWidths ?? []), ee = T(!1), pe = T(""), { breakpoints: ae, getBreakpointsBoundary: te } = Jt(), we = T(), le = F(
1791
1791
  () => _.customScreenWidth === void 0 ? window.innerWidth : _.customScreenWidth
1792
1792
  ), Be = F(
1793
1793
  () => (le == null ? void 0 : le.value) > te("xs")[1] && (le == null ? void 0 : le.value) <= te("sm")[1]
@@ -1831,9 +1831,9 @@ const ba = {
1831
1831
  compareDateRange: ll,
1832
1832
  timeRange: Et,
1833
1833
  globalFilters: al,
1834
- isGlobalFiltersLoading: Dt
1834
+ isGlobalFiltersLoading: Vt
1835
1835
  } = ze(lt()), { businessId: nl } = ze(Rt()), { businessLoadedId: ol, businessDataVersion: ht } = ze(lt());
1836
- F(() => ol.value === nl.value && ft.value.length > 0 && !Dt.value);
1836
+ F(() => ol.value === nl.value && ft.value.length > 0 && !Vt.value);
1837
1837
  const sl = T(!0), ve = F(() => {
1838
1838
  const f = JSON.parse(JSON.stringify(i.value.widget));
1839
1839
  return {
@@ -1875,7 +1875,7 @@ const ba = {
1875
1875
  showYGrid: n.value,
1876
1876
  showYTick: z.value,
1877
1877
  yTitle: J.value,
1878
- showYTitle: V.value,
1878
+ showYTitle: D.value,
1879
1879
  yTitleFontSize: de.value,
1880
1880
  yTickFontSize: M.value,
1881
1881
  isTransposed: ve.value.config.isTransposed,
@@ -1895,7 +1895,7 @@ const ba = {
1895
1895
  colWidths: Q.value
1896
1896
  };
1897
1897
  }
1898
- const Vt = F(() => {
1898
+ const Dt = F(() => {
1899
1899
  switch (ve.value.type) {
1900
1900
  case N.Table:
1901
1901
  return il();
@@ -1939,7 +1939,7 @@ const ba = {
1939
1939
  me(
1940
1940
  () => i.value.widget.config,
1941
1941
  (f) => {
1942
- v.value = f.rollup, r.value = f.showTitle ?? !0, h.value = f.titleFontSize ?? 14, a.value = f.titleBold ?? !1, l.value = f.titleItalic ?? !1, w.value = f.titleUnderline ?? !1, A.value = f.chartHeight ?? void 0, $.value = f.chartWidth ?? void 0, I.value = f.showLabel ?? !1, Z.value = f.labelAlign ?? Tt.center, W.value = f.labelAnchor ?? kt.center, K.value = f.labelRotation ?? 0, re.value = f.labelOffset ?? 0, ue.value = f.labelFontSize ?? 12, E.value = f.showX ?? !0, X.value = f.xPosition ?? _t.bottom, q.value = f.showXGrid ?? !1, B.value = f.showXTick ?? !0, O.value = f.xTickFontSize ?? 12, he.value = f.showXTitle ?? !1, Fe.value = f.xTitle ?? "", Ae.value = f.xTitleFontSize ?? 12, Pe.value = f.showY ?? !0, Me.value = f.yPosition ?? Ft.left, n.value = f.showYGrid ?? !1, z.value = f.showYTick ?? !0, M.value = f.yTickFontSize ?? 12, V.value = f.showYTitle ?? !1, J.value = f.yTitle ?? "", de.value = f.yTitleFontSize ?? 12, be.value = f.showLegend ?? void 0, ge.value = f.legendPosition ?? Lt.top, oe.value = f.usePointStyle ?? !0, H.value = f.legendMaxHeight, Y.value = f.legendMaxWidth, R.value = f.rowHeight ?? 0, Q.value = f.colWidths ?? [], g.value = tt();
1942
+ v.value = f.rollup, r.value = f.showTitle ?? !0, h.value = f.titleFontSize ?? 14, a.value = f.titleBold ?? !1, l.value = f.titleItalic ?? !1, w.value = f.titleUnderline ?? !1, A.value = f.chartHeight ?? void 0, $.value = f.chartWidth ?? void 0, I.value = f.showLabel ?? !1, Z.value = f.labelAlign ?? Tt.center, W.value = f.labelAnchor ?? kt.center, K.value = f.labelRotation ?? 0, re.value = f.labelOffset ?? 0, ue.value = f.labelFontSize ?? 12, E.value = f.showX ?? !0, X.value = f.xPosition ?? _t.bottom, q.value = f.showXGrid ?? !1, B.value = f.showXTick ?? !0, O.value = f.xTickFontSize ?? 12, he.value = f.showXTitle ?? !1, Fe.value = f.xTitle ?? "", Ae.value = f.xTitleFontSize ?? 12, Pe.value = f.showY ?? !0, Me.value = f.yPosition ?? Ft.left, n.value = f.showYGrid ?? !1, z.value = f.showYTick ?? !0, M.value = f.yTickFontSize ?? 12, D.value = f.showYTitle ?? !1, J.value = f.yTitle ?? "", de.value = f.yTitleFontSize ?? 12, be.value = f.showLegend ?? void 0, ge.value = f.legendPosition ?? Lt.top, oe.value = f.usePointStyle ?? !0, H.value = f.legendMaxHeight, Y.value = f.legendMaxWidth, R.value = f.rowHeight ?? 0, Q.value = f.colWidths ?? [], g.value = tt();
1943
1943
  },
1944
1944
  { deep: !0 }
1945
1945
  ), me([() => v.value], () => {
@@ -2037,14 +2037,14 @@ const ba = {
2037
2037
  "report-type": It.value,
2038
2038
  index: Nt.value
2039
2039
  }, null, 8, ["modelValue", "report-type", "index"]),
2040
- !o.value && !d(Dt) ? (P(), se("div", {
2040
+ !o.value && !d(Vt) ? (P(), se("div", {
2041
2041
  key: 0,
2042
- style: De({ height: we.value })
2042
+ style: Ve({ height: we.value })
2043
2043
  }, [
2044
2044
  (P(), fe(Tl(tl.value), {
2045
2045
  key: g.value,
2046
- modelValue: Vt.value,
2047
- "onUpdate:modelValue": ne[4] || (ne[4] = (je) => Vt.value = je),
2046
+ modelValue: Dt.value,
2047
+ "onUpdate:modelValue": ne[4] || (ne[4] = (je) => Dt.value = je),
2048
2048
  "tile-index": _.index
2049
2049
  }, {
2050
2050
  menu: ce(() => [
@@ -2063,7 +2063,7 @@ const ba = {
2063
2063
  default: ce(() => [
2064
2064
  r.value !== !1 ? (P(), se("p", {
2065
2065
  key: 0,
2066
- style: De({
2066
+ style: Ve({
2067
2067
  fontSize: h.value + "px",
2068
2068
  fontWeight: a.value ? "bold" : "normal",
2069
2069
  fontStyle: l.value ? "italic" : "normal",
@@ -2360,7 +2360,7 @@ const Sa = Kt(Ca, () => {
2360
2360
  function k(y, v, g = 50) {
2361
2361
  m(y, v).visibleCount += g;
2362
2362
  }
2363
- function D(y) {
2363
+ function V(y) {
2364
2364
  o.value = y;
2365
2365
  }
2366
2366
  function p(y) {
@@ -2377,7 +2377,7 @@ const Sa = Kt(Ca, () => {
2377
2377
  isMenuOpen: C,
2378
2378
  setGlobalFilter: _,
2379
2379
  showMore: k,
2380
- setIncludeUnavailable: D,
2380
+ setIncludeUnavailable: V,
2381
2381
  openMenu: p,
2382
2382
  closeMenu: x,
2383
2383
  getKey: Ut
@@ -2385,11 +2385,11 @@ const Sa = Kt(Ca, () => {
2385
2385
  }), ka = { class: "flex flex-row flex-wrap gap-2" }, Ta = { class: "inline-flex max-w-[460px]" }, _a = {
2386
2386
  key: 0,
2387
2387
  class: "flex justify-center my-2"
2388
- }, Fa = { class: "px-2 pb-8" }, La = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Ra = { class: "px-2 pb-8" }, $a = { class: "flex items-start w-full" }, za = ["onClick"], Ea = { class: "fm-typo-en-body-md-400" }, Da = { key: 0 }, Va = { class: "px-12 py-3" }, Aa = { class: "flex items-center justify-between" }, Ma = { class: "text-xs max-w-[200px]" }, Wa = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Za = /* @__PURE__ */ _e({
2388
+ }, Fa = { class: "px-2 pb-8" }, La = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, Ra = { class: "px-2 pb-8" }, $a = { class: "flex items-start w-full" }, za = ["onClick"], Ea = { class: "fm-typo-en-body-md-400" }, Va = { key: 0 }, Da = { class: "px-12 py-3" }, Aa = { class: "flex items-center justify-between" }, Ma = { class: "text-xs max-w-[200px]" }, Wa = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Za = /* @__PURE__ */ _e({
2389
2389
  __name: "FilterSelector",
2390
2390
  setup(e) {
2391
2391
  const { t: o, locale: i } = nt(), { currentReport: s, editingTile: m } = ze(zl());
2392
- let { globalFilters: u, isGlobalFiltersLoading: C, timeRange: _, dateRange: k, selectedLocationIds: D, timezone: p } = ze(lt()), { schemas: x } = ze(El()), { showMore: y, getGlobalFilter: v, setGlobalFilter: g, setIncludeUnavailable: b, getKey: L, isMenuOpen: c } = Sa();
2392
+ let { globalFilters: u, isGlobalFiltersLoading: C, timeRange: _, dateRange: k, selectedLocationIds: V, timezone: p } = ze(lt()), { schemas: x } = ze(El()), { showMore: y, getGlobalFilter: v, setGlobalFilter: g, setIncludeUnavailable: b, getKey: L, isMenuOpen: c } = Sa();
2393
2393
  const t = F(() => o("report.input.unknown"));
2394
2394
  let r = null;
2395
2395
  const h = T(!1), a = F(() => {
@@ -2398,7 +2398,7 @@ const Sa = Kt(Ca, () => {
2398
2398
  }), l = T([]);
2399
2399
  function w(n) {
2400
2400
  const M = v(n.filter, a.value).selectedValues;
2401
- n.selectedValues = n.keepSelection ? M : n.options.map((V) => V.value), n.filter.values = [...n.selectedValues], g(n.filter, a.value, "selectedValues", n.selectedValues);
2401
+ n.selectedValues = n.keepSelection ? M : n.options.map((D) => D.value), n.filter.values = [...n.selectedValues], g(n.filter, a.value, "selectedValues", n.selectedValues);
2402
2402
  }
2403
2403
  me(
2404
2404
  () => ({
@@ -2407,14 +2407,14 @@ const Sa = Kt(Ca, () => {
2407
2407
  }),
2408
2408
  () => {
2409
2409
  l.value = (u.value || []).map((n, z) => {
2410
- const M = v(n, a.value), V = M.selectedValues.length ? [...M.selectedValues] : [...n.values ?? []];
2410
+ const M = v(n, a.value), D = M.selectedValues.length ? [...M.selectedValues] : [...n.values ?? []];
2411
2411
  return {
2412
2412
  id: `${L(n, a.value)}|${z}`,
2413
2413
  filter: n,
2414
2414
  search: M.search,
2415
2415
  options: [],
2416
2416
  type: $(n),
2417
- selectedValues: V,
2417
+ selectedValues: D,
2418
2418
  visibleCount: M.visibleCount,
2419
2419
  keepSelection: M.keepSelection,
2420
2420
  showAdvanced: M.showAdvanced
@@ -2423,7 +2423,7 @@ const Sa = Kt(Ca, () => {
2423
2423
  },
2424
2424
  { immediate: !0 }
2425
2425
  ), me(
2426
- [_, k, D],
2426
+ [_, k, V],
2427
2427
  async () => {
2428
2428
  await ue();
2429
2429
  },
@@ -2444,21 +2444,21 @@ const Sa = Kt(Ca, () => {
2444
2444
  );
2445
2445
  function $(n) {
2446
2446
  var M;
2447
- const z = (M = x.value.find((V) => V.name === n.schemaName)) == null ? void 0 : M.fields.find((V) => V.name === n.name);
2447
+ const z = (M = x.value.find((D) => D.name === n.schemaName)) == null ? void 0 : M.fields.find((D) => D.name === n.name);
2448
2448
  return z == null ? void 0 : z.type;
2449
2449
  }
2450
2450
  function A(n) {
2451
2451
  var ge;
2452
2452
  if (!s.value && !m.value) return [];
2453
- const z = m.value ? [m.value] : [...((ge = s.value) == null ? void 0 : ge.tiles) ?? []], { name: M = "", schemaName: V = "" } = n, J = z.filter((oe) => {
2453
+ const z = m.value ? [m.value] : [...((ge = s.value) == null ? void 0 : ge.tiles) ?? []], { name: M = "", schemaName: D = "" } = n, J = z.filter((oe) => {
2454
2454
  var ee, pe;
2455
2455
  const H = (ee = oe == null ? void 0 : oe.widget) == null ? void 0 : ee.config;
2456
2456
  if (!H || (pe = n.tileIds) != null && pe.length && !n.tileIds.includes(oe.id)) return !1;
2457
2457
  const Y = (H.dimensions ?? []).some(
2458
- (ae) => ae.schemaName === V && ae.name === M
2458
+ (ae) => ae.schemaName === D && ae.name === M
2459
2459
  ), R = (H.joinDatasources ?? []).some(
2460
- (ae) => (ae.dimensions ?? []).some((te) => te.schemaName === V && te.name === M)
2461
- ), Q = (H.schemaNames ?? []).includes(V);
2460
+ (ae) => (ae.dimensions ?? []).some((te) => te.schemaName === D && te.name === M)
2461
+ ), Q = (H.schemaNames ?? []).includes(D);
2462
2462
  return Y || R || Q;
2463
2463
  });
2464
2464
  if (!J.length) return [];
@@ -2471,11 +2471,11 @@ const Sa = Kt(Ca, () => {
2471
2471
  }, be = (oe) => {
2472
2472
  var Y;
2473
2473
  const H = (Y = oe.dimensions) == null ? void 0 : Y.find(
2474
- (R) => R.schemaName === V && R.name === M
2474
+ (R) => R.schemaName === D && R.name === M
2475
2475
  );
2476
2476
  return {
2477
2477
  name: M,
2478
- schemaName: V,
2478
+ schemaName: D,
2479
2479
  label: (H == null ? void 0 : H.label) ?? M,
2480
2480
  hide: !1,
2481
2481
  option: n.option ?? null,
@@ -2486,14 +2486,14 @@ const Sa = Kt(Ca, () => {
2486
2486
  var ae, te;
2487
2487
  const H = (ae = oe == null ? void 0 : oe.widget) == null ? void 0 : ae.config;
2488
2488
  if (!H) return null;
2489
- const Y = be(H), R = (H.dimensions ?? []).some((we) => we.schemaName === V) || (H.schemaNames ?? []).includes(V), Q = de(
2489
+ const Y = be(H), R = (H.dimensions ?? []).some((we) => we.schemaName === D) || (H.schemaNames ?? []).includes(D), Q = de(
2490
2490
  H.filters ?? [],
2491
2491
  (n.filters ?? []).filter((we) => {
2492
2492
  var le;
2493
2493
  return (le = H.schemaNames) == null ? void 0 : le.includes(we.schemaName);
2494
2494
  })
2495
2495
  ), ee = (te = H.joinDatasources) == null ? void 0 : te.find(
2496
- (we) => (we.schemaNames ?? []).includes(V) || (we.dimensions ?? []).some((le) => le.schemaName === V)
2496
+ (we) => (we.schemaNames ?? []).includes(D) || (we.dimensions ?? []).some((le) => le.schemaName === D)
2497
2497
  ), pe = de(
2498
2498
  (ee == null ? void 0 : ee.filters) ?? [],
2499
2499
  (n.filters ?? []).filter((we) => {
@@ -2509,7 +2509,7 @@ const Sa = Kt(Ca, () => {
2509
2509
  schemas: H.schemas,
2510
2510
  dimensions: R ? [Y] : [],
2511
2511
  filters: Q,
2512
- sorts: R ? [{ name: M, schemaName: V, type: qe.Asc, aggregation: null, dimensionOption: null }] : [],
2512
+ sorts: R ? [{ name: M, schemaName: D, type: qe.Asc, aggregation: null, dimensionOption: null }] : [],
2513
2513
  joinDatasources: !R && ee ? [
2514
2514
  {
2515
2515
  ...ee,
@@ -2517,7 +2517,7 @@ const Sa = Kt(Ca, () => {
2517
2517
  sorts: [
2518
2518
  {
2519
2519
  name: M,
2520
- schemaName: V,
2520
+ schemaName: D,
2521
2521
  type: qe.Asc,
2522
2522
  aggregation: null,
2523
2523
  dimensionOption: null
@@ -2567,13 +2567,13 @@ const Sa = Kt(Ca, () => {
2567
2567
  switch (n.type) {
2568
2568
  case $e.String:
2569
2569
  try {
2570
- const V = A(n.filter);
2571
- if (!V.length) {
2570
+ const D = A(n.filter);
2571
+ if (!D.length) {
2572
2572
  n.options = [];
2573
2573
  return;
2574
2574
  }
2575
2575
  const J = [];
2576
- for (const H of V) {
2576
+ for (const H of D) {
2577
2577
  const Y = await jt(H, z);
2578
2578
  (Y == null ? void 0 : Y.type) === N.Table && J.push(...Y.rows.map((R) => {
2579
2579
  var Q;
@@ -2586,10 +2586,10 @@ const Sa = Kt(Ca, () => {
2586
2586
  value: H,
2587
2587
  available: n.keepSelection ? oe.has(H) : new Set(de).has(H)
2588
2588
  })), w(n);
2589
- } catch (V) {
2590
- if ((V == null ? void 0 : V.code) === "ERR_CANCELED" || (V == null ? void 0 : V.name) === "CanceledError")
2589
+ } catch (D) {
2590
+ if ((D == null ? void 0 : D.code) === "ERR_CANCELED" || (D == null ? void 0 : D.name) === "CanceledError")
2591
2591
  return;
2592
- throw V;
2592
+ throw D;
2593
2593
  }
2594
2594
  break;
2595
2595
  case $e.Bool: {
@@ -2601,8 +2601,8 @@ const Sa = Kt(Ca, () => {
2601
2601
  }
2602
2602
  case $e.Timestamp:
2603
2603
  if (n.filter.option !== ye.DateTime && n.filter.option !== ye.TimeOfDay) {
2604
- const V = n.filter.option;
2605
- n.options = Yt({ dimensionOption: V, t: o }), n.filter.values = n.options.length ? n.options.map((J) => J.value) : ["NULL"];
2604
+ const D = n.filter.option;
2605
+ n.options = Yt({ dimensionOption: D, t: o }), n.filter.values = n.options.length ? n.options.map((J) => J.value) : ["NULL"];
2606
2606
  }
2607
2607
  w(n);
2608
2608
  break;
@@ -2624,8 +2624,8 @@ const Sa = Kt(Ca, () => {
2624
2624
  }
2625
2625
  }
2626
2626
  function S(n, z) {
2627
- var V;
2628
- if ((V = n.selectedValues) == null ? void 0 : V.includes(z)) {
2627
+ var D;
2628
+ if ((D = n.selectedValues) == null ? void 0 : D.includes(z)) {
2629
2629
  let J = (n.selectedValues || []).filter((de) => de !== z && de !== "(EMPTY)");
2630
2630
  n.selectedValues = J.length > 0 ? J : ["(EMPTY)"];
2631
2631
  } else
@@ -2636,10 +2636,10 @@ const Sa = Kt(Ca, () => {
2636
2636
  if (z === null)
2637
2637
  n.values = [];
2638
2638
  else {
2639
- const V = Je(z.startDate).tz(p.value).startOf("day").utc().toISOString(), J = Je(z.endDate).tz(p.value).endOf("day").utc().toISOString();
2640
- n.values = [V, J];
2639
+ const D = Je(z.startDate).tz(p.value).startOf("day").utc().toISOString(), J = Je(z.endDate).tz(p.value).endOf("day").utc().toISOString();
2640
+ n.values = [D, J];
2641
2641
  }
2642
- const M = l.value.find((V) => V.filter === n);
2642
+ const M = l.value.find((D) => D.filter === n);
2643
2643
  M && (M.keepSelection = z !== null, g(M.filter, a.value, "keepSelection", M.keepSelection));
2644
2644
  }
2645
2645
  function X(n) {
@@ -2647,12 +2647,12 @@ const Sa = Kt(Ca, () => {
2647
2647
  return `${o("report.section.filter.selectAll")} (${z.length}/${n.options.length})`;
2648
2648
  }
2649
2649
  function q(n) {
2650
- const z = n.options.length, M = o("report.section.filter.search"), V = o("report.common.results", { count: z });
2651
- return `${M} (${V})`;
2650
+ const z = n.options.length, M = o("report.section.filter.search"), D = o("report.common.results", { count: z });
2651
+ return `${M} (${D})`;
2652
2652
  }
2653
2653
  function B(n) {
2654
2654
  var de, be, ge, oe, H;
2655
- const z = Vl(n.filter);
2655
+ const z = Dl(n.filter);
2656
2656
  if (n.type === $e.Timestamp) {
2657
2657
  const Y = ((de = n.filter.values) == null ? void 0 : de.length) === 2;
2658
2658
  if (n.filter.option === ye.DateTime)
@@ -2681,10 +2681,10 @@ const Sa = Kt(Ca, () => {
2681
2681
  } : { preview: z, suffix: "" };
2682
2682
  }
2683
2683
  }
2684
- const V = (n.selectedValues || []).filter((Y) => Y !== "(EMPTY)").map((Y) => Y === !0 ? o("report.common.yes") || "Yes" : Y === !1 ? o("report.common.no") || "No" : String(Y).trim() === "" ? t.value : String(Y)), J = V.map((Y) => Y.length > 20 ? `${Y.slice(0, 20)}…` : Y).join(", ");
2685
- return V.length ? {
2684
+ const D = (n.selectedValues || []).filter((Y) => Y !== "(EMPTY)").map((Y) => Y === !0 ? o("report.common.yes") || "Yes" : Y === !1 ? o("report.common.no") || "No" : String(Y).trim() === "" ? t.value : String(Y)), J = D.map((Y) => Y.length > 20 ? `${Y.slice(0, 20)}…` : Y).join(", ");
2685
+ return D.length ? {
2686
2686
  preview: `${z}: ${J}`,
2687
- suffix: `(${V.length} selected)`
2687
+ suffix: `(${D.length} selected)`
2688
2688
  } : { preview: J, suffix: `${z}` };
2689
2689
  }
2690
2690
  function O(n) {
@@ -2703,18 +2703,18 @@ const Sa = Kt(Ca, () => {
2703
2703
  return n ? n.length > z ? `${n.slice(0, z)}…` : n : t.value;
2704
2704
  }
2705
2705
  function Me(n, z) {
2706
- var V, J, de, be;
2706
+ var D, J, de, be;
2707
2707
  if (z === null)
2708
2708
  n.values = [];
2709
2709
  else {
2710
- const ge = Je().tz(p.value).set("hour", Number((V = z.start) == null ? void 0 : V.hour)).set("minute", Number((J = z.start) == null ? void 0 : J.minute)).toISOString(), oe = Je().tz(p.value).set("hour", Number((de = z.end) == null ? void 0 : de.hour)).set("minute", Number((be = z.end) == null ? void 0 : be.minute)).toISOString();
2710
+ const ge = Je().tz(p.value).set("hour", Number((D = z.start) == null ? void 0 : D.hour)).set("minute", Number((J = z.start) == null ? void 0 : J.minute)).toISOString(), oe = Je().tz(p.value).set("hour", Number((de = z.end) == null ? void 0 : de.hour)).set("minute", Number((be = z.end) == null ? void 0 : be.minute)).toISOString();
2711
2711
  n.values = [ge, oe];
2712
2712
  }
2713
2713
  const M = l.value.find((ge) => ge.filter === n);
2714
2714
  M && (M.keepSelection = z !== null, g(M.filter, a.value, "keepSelection", M.keepSelection));
2715
2715
  }
2716
2716
  return (n, z) => {
2717
- const M = U("FmCircularProgress"), V = U("FmTextField"), J = U("FmMenuItem"), de = U("FmTooltip"), be = U("FmIcon"), ge = U("FmMenuDivider"), oe = U("FmSwitch"), H = U("FmButton"), Y = U("FmMenu");
2717
+ const M = U("FmCircularProgress"), D = U("FmTextField"), J = U("FmMenuItem"), de = U("FmTooltip"), be = U("FmIcon"), ge = U("FmMenuDivider"), oe = U("FmSwitch"), H = U("FmButton"), Y = U("FmMenu");
2718
2718
  return P(), se("div", ka, [
2719
2719
  (P(!0), se(xe, null, dt(l.value, (R, Q) => {
2720
2720
  var ee, pe, ae, te, we, le;
@@ -2729,7 +2729,7 @@ const Sa = Kt(Ca, () => {
2729
2729
  removable: ((ae = R.filter.values) == null ? void 0 : ae.length) === 2,
2730
2730
  onUpdate: (Be) => E(R.filter, Be),
2731
2731
  onChipClosed: () => E(R.filter, null)
2732
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : R.filter.option === d(ye).TimeOfDay ? (P(), fe(Dl, {
2732
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : R.filter.option === d(ye).TimeOfDay ? (P(), fe(Vl, {
2733
2733
  key: 1,
2734
2734
  "model-value": { start: (te = R.filter.values) == null ? void 0 : te[0], end: (we = R.filter.values) == null ? void 0 : we[1] },
2735
2735
  class: "w-full",
@@ -2761,13 +2761,13 @@ const Sa = Kt(Ca, () => {
2761
2761
  "menu-wrapper": ce(({ maxHeight: Be, width: mt }) => [
2762
2762
  j("div", {
2763
2763
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
2764
- style: De({ maxHeight: `${Be}px`, width: mt })
2764
+ style: Ve({ maxHeight: `${Be}px`, width: mt })
2765
2765
  }, [
2766
2766
  h.value ? (P(), se("div", _a, [
2767
2767
  G(M)
2768
2768
  ])) : R.options.length > 0 && !d(C) ? (P(), se(xe, { key: 1 }, [
2769
2769
  j("div", Fa, [
2770
- G(V, {
2770
+ G(D, {
2771
2771
  modelValue: R.search,
2772
2772
  "onUpdate:modelValue": [
2773
2773
  (ie) => R.search = ie,
@@ -2845,8 +2845,8 @@ const Sa = Kt(Ca, () => {
2845
2845
  j("span", Ea, ke(d(o)("report.section.filter.advanced")), 1)
2846
2846
  ], 8, za),
2847
2847
  G(ge),
2848
- R.showAdvanced ? (P(), se("div", Da, [
2849
- j("div", Va, [
2848
+ R.showAdvanced ? (P(), se("div", Va, [
2849
+ j("div", Da, [
2850
2850
  j("div", Aa, [
2851
2851
  G(oe, {
2852
2852
  "model-value": R.keepSelection,