@feedmepos/mf-report 5.22.1-remy-beta.1 → 5.22.1-remy-beta.2

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 (26) hide show
  1. package/dist/{App-C7mY8Mti.js → App-iSIj8_lS.js} +17 -17
  2. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-Bnu9l9U0.js +315 -0
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CPniBJgZ.js} +37 -36
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-7MJTbycc.js → Default.vue_vue_type_script_setup_true_lang-Blc6DBml.js} +12 -11
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-Cq2Ssoih.js → FilterSelector.vue_vue_type_script_setup_true_lang-CHTMrqtt.js} +236 -235
  6. package/dist/{InsightView-CENPnVe7.js → InsightView-Ckkwb92m.js} +17 -16
  7. package/dist/{Integration-Czc6q14E.js → Integration-BoYn0XvH.js} +5 -4
  8. package/dist/{Integrations-DIXSWGS_.js → Integrations-D6Qz0hqf.js} +28 -27
  9. package/dist/{Layout-BJ7gfx7X.js → Layout-DIs6pMOT.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-V28xf-H0.js → MenuTab.vue_vue_type_script_setup_true_lang-Brwm-7zb.js} +9 -9
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-9PbGrSC0.js → NavigationTab.vue_vue_type_script_setup_true_lang-DZIauCN0.js} +98 -97
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js → NoData.vue_vue_type_script_setup_true_lang-CW6oZEnc.js} +1 -1
  13. package/dist/{OverviewView-C-DrSun5.js → OverviewView-Bx_6RMle.js} +16 -16
  14. package/dist/{Report-CrUITZYf.js → Report-E8GN07k7.js} +8 -9
  15. package/dist/{ReportEditor-hyFAa6EB.js → ReportEditor-bz8aajNj.js} +9 -8
  16. package/dist/{ReportView-Ci4mKX0q.js → ReportView-BEWiRAvV.js} +12 -12
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js → SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js} +1 -1
  18. package/dist/{Setting-BzClHxv3.js → Setting-B6nnaJaX.js} +7 -6
  19. package/dist/{TileEditor-H3XGcpji.js → TileEditor-DncjwvcR.js} +18 -17
  20. package/dist/{TransitionFade-woMemCnD.js → TransitionFade-Bold22aO.js} +22 -21
  21. package/dist/app-CDw9UOqm.js +28808 -0
  22. package/dist/app.js +6 -5184
  23. package/dist/vue-i18n-CQAzKJVO.js +2711 -0
  24. package/package.json +1 -1
  25. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-Ccrz29qZ.js +0 -19983
  26. package/dist/vue-i18n-BJW_sJot.js +0 -6457
@@ -1,12 +1,13 @@
1
- import { computed as k, defineComponent as Le, mergeModels as Ie, useModel as Me, ref as h, onMounted as Ue, nextTick as we, watch as he, resolveComponent as O, createElementBlock as te, openBlock as $, Fragment as be, renderSlot as Ne, createVNode as B, normalizeStyle as Ee, unref as s, createElementVNode as H, toDisplayString as Te, withCtx as oe, createBlock as re, createCommentVNode as Fe, normalizeClass as qe, h as st, renderList as nt, toRaw as fl, markRaw as vl, createTextVNode as ht, onUnmounted as gl, resolveDynamicComponent as yl, withDirectives as bl, vShow as wl, withModifiers as ct } from "vue";
2
- import { W as A, e as et, f as xl, S as Be, v as ot, g as Sl, h as dt, i as Bt, q as Ot, R as je, j as Cl, D as ze, c as pe, C as Ce, a as kl, b as _l, _ as Tl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Ccrz29qZ.js";
3
- import { u as tt, b as Qe, a as St, d as Ke, i as Fl } from "./vue-i18n-BJW_sJot.js";
4
- import { d as Mt, _ as Ll, a as Dl, b as Rl, c as Vl } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js";
1
+ import { computed as k, defineComponent as Le, mergeModels as Ie, useModel as Me, ref as h, onMounted as Ue, nextTick as we, watch as he, resolveComponent as O, createElementBlock as te, openBlock as $, Fragment as be, renderSlot as Ne, createVNode as B, normalizeStyle as Ee, unref as o, createElementVNode as H, toDisplayString as Te, withCtx as se, createBlock as re, createCommentVNode as Fe, normalizeClass as qe, h as ot, renderList as nt, toRaw as fl, markRaw as vl, createTextVNode as ht, onUnmounted as gl, resolveDynamicComponent as yl, withDirectives as bl, vShow as wl, withModifiers as ct } from "vue";
2
+ import { n as et, a as Qe, u as St, o as xl, S as Be, r as Sl, t as Bt, v as Ot, D as ze, k as pe, C as Ce, g as Cl, h as kl, d as je, l as _l } from "./app-CDw9UOqm.js";
3
+ import { W as A, v as st, P as dt, R as Ke, g as Tl, _ as Fl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Bnu9l9U0.js";
4
+ import { d as Mt, _ as Ll, a as Dl, b as Rl, c as Vl } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CPniBJgZ.js";
5
5
  import { storeToRefs as $e, defineStore as Ht } from "pinia";
6
6
  import { useBreakpoints as qt, useSnackbar as Ct, components as zl } from "@feedmepos/ui-library";
7
- import { a as $l } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js";
7
+ import { u as tt } from "./vue-i18n-CQAzKJVO.js";
8
+ import { a as $l } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js";
8
9
  import { r as Oe } from "./i18n-DQxDgiLO.js";
9
- import { _ as ft } from "./NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js";
10
+ import { _ as ft } from "./NoData.vue_vue_type_script_setup_true_lang-CW6oZEnc.js";
10
11
  var vt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(vt || {}), Pe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Pe || {}), gt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(gt || {}), yt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(bt || {}), wt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(wt || {}), xt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(xt || {});
11
12
  A.Circular, A.Table, A.BarChart, A.LineChart, A.StackBarChart, A.StackLineChart, A.Scorecard, A.Spacer;
12
13
  const Al = [
@@ -118,16 +119,16 @@ const It = [
118
119
  function Ae({
119
120
  index: e,
120
121
  isCompare: a,
121
- opacity: o
122
+ opacity: s
122
123
  }) {
123
- let l = typeof o == "number" ? o : 1;
124
+ let l = typeof s == "number" ? s : 1;
124
125
  return a && (l = l * 0.6), `rgba(${It[e % It.length]}, ${l})`;
125
126
  }
126
- function Ut(e, a, o) {
127
+ function Ut(e, a, s) {
127
128
  if (e === "" || a === "")
128
129
  return null;
129
130
  let l = (z) => z == null ? void 0 : z.replace(/,/g, "");
130
- o === "ID" && (l = (z) => z == null ? void 0 : z.replace(/\./g, "").replace(/,/g, "."));
131
+ s === "ID" && (l = (z) => z == null ? void 0 : z.replace(/\./g, "").replace(/,/g, "."));
131
132
  const g = Number(l(e)), _ = Number(l(a));
132
133
  if (isNaN(g) || isNaN(_))
133
134
  return null;
@@ -165,7 +166,7 @@ function lt(e) {
165
166
  }
166
167
  return p.slice(0, w - 1) + i;
167
168
  }
168
- const o = k(() => ({
169
+ const s = k(() => ({
169
170
  display: e.showLabel,
170
171
  align: e.labelAlign,
171
172
  anchor: e.labelAnchor,
@@ -296,7 +297,7 @@ function lt(e) {
296
297
  }
297
298
  }
298
299
  })), D = k(() => e.isTransposed), R = k(() => e.chartWidth), z = k(() => e.chartHeight);
299
- return { datalabels: o, xCfg: l, yCfg: g, isTransposed: D, legend: _, chartWidth: R, chartHeight: z };
300
+ return { datalabels: s, xCfg: l, yCfg: g, isTransposed: D, legend: _, chartWidth: R, chartHeight: z };
300
301
  }
301
302
  const Il = /* @__PURE__ */ Le({
302
303
  __name: "WidgetBarchart",
@@ -308,14 +309,14 @@ const Il = /* @__PURE__ */ Le({
308
309
  }),
309
310
  emits: ["update:modelValue"],
310
311
  setup(e) {
311
- const a = e, o = Me(e, "modelValue"), l = h(null), g = k(() => {
312
+ const a = e, s = Me(e, "modelValue"), l = h(null), g = k(() => {
312
313
  var y;
313
- return ((y = o.value.data) == null ? void 0 : y.xAxis) ?? [];
314
+ return ((y = s.value.data) == null ? void 0 : y.xAxis) ?? [];
314
315
  }), _ = k(() => {
315
316
  var y;
316
- return ((y = o.value.data) == null ? void 0 : y.datasets) ?? [];
317
+ return ((y = s.value.data) == null ? void 0 : y.datasets) ?? [];
317
318
  }), { datalabels: D, xCfg: R, yCfg: z, isTransposed: c, legend: p, chartWidth: d, chartHeight: i } = lt(
318
- o.value
319
+ s.value
319
320
  ), w = k(() => _.value.length > 0 ? [
320
321
  ..._.value.map((y, W) => ({
321
322
  label: y.name,
@@ -343,21 +344,21 @@ const Il = /* @__PURE__ */ Le({
343
344
  class: "bar-chart",
344
345
  datasets: w.value,
345
346
  "x-axis": { categories: g.value },
346
- "x-cfg": s(R),
347
- "y-cfg": s(z),
348
- transpose: s(c),
347
+ "x-cfg": o(R),
348
+ "y-cfg": o(z),
349
+ transpose: o(c),
349
350
  legend: {
350
- display: s(p).display ?? !1,
351
- position: s(p).position,
352
- maxHeight: s(p).maxHeight,
353
- maxWidth: s(p).maxWidth,
354
- labels: s(p).labels
351
+ display: o(p).display ?? !1,
352
+ position: o(p).position,
353
+ maxHeight: o(p).maxHeight,
354
+ maxWidth: o(p).maxWidth,
355
+ labels: o(p).labels
355
356
  },
356
- datalabels: s(D),
357
+ datalabels: o(D),
357
358
  "maintain-aspect-ratio": !1,
358
359
  style: Ee({
359
- "--chart-width": s(d) !== void 0 ? s(d) + "px" : "100%",
360
- "--chart-height": s(i) !== void 0 ? s(i) + "px" : "calc(100% - 36px)"
360
+ "--chart-width": o(d) !== void 0 ? o(d) + "px" : "100%",
361
+ "--chart-height": o(i) !== void 0 ? o(i) + "px" : "calc(100% - 36px)"
361
362
  })
362
363
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
363
364
  ], 64);
@@ -373,13 +374,13 @@ const Il = /* @__PURE__ */ Le({
373
374
  }),
374
375
  emits: ["update:modelValue"],
375
376
  setup(e) {
376
- const a = e, o = Me(e, "modelValue"), { breakpoints: l } = qt(), g = h(null), { datalabels: _, legend: D, chartWidth: R, chartHeight: z } = lt(o.value), c = k(() => {
377
+ const a = e, s = Me(e, "modelValue"), { breakpoints: l } = qt(), g = h(null), { datalabels: _, legend: D, chartWidth: R, chartHeight: z } = lt(s.value), c = k(() => {
377
378
  let w = [];
378
- return o.value.data.datasets && o.value.data.metrics && o.value.data.datasets.length > 0 && o.value.data.metrics.length > 0 && (w = [
379
+ return s.value.data.datasets && s.value.data.metrics && s.value.data.datasets.length > 0 && s.value.data.metrics.length > 0 && (w = [
379
380
  {
380
- label: o.value.data.metrics[0],
381
- data: o.value.data.datasets.map((x) => x.value),
382
- backgroundColor: o.value.data.datasets.map((x, C) => Ae({ index: C }))
381
+ label: s.value.data.metrics[0],
382
+ data: s.value.data.datasets.map((x) => x.value),
383
+ backgroundColor: s.value.data.datasets.map((x, C) => Ae({ index: C }))
383
384
  }
384
385
  ]), w;
385
386
  }), p = et();
@@ -404,25 +405,25 @@ const Il = /* @__PURE__ */ Le({
404
405
  class: "circular",
405
406
  percentage: "70%",
406
407
  datasets: c.value,
407
- metrics: o.value.data.datasets.map((y) => y.name),
408
+ metrics: s.value.data.datasets.map((y) => y.name),
408
409
  variant: "doughnut",
409
410
  legend: {
410
- display: s(D).display ?? !0,
411
- position: s(D).position ?? "top",
412
- maxHeight: s(D).maxHeight,
413
- maxWidth: s(D).maxWidth,
411
+ display: o(D).display ?? !0,
412
+ position: o(D).position ?? "top",
413
+ maxHeight: o(D).maxHeight,
414
+ maxWidth: o(D).maxWidth,
414
415
  labels: {
415
- ...s(D).labels,
416
+ ...o(D).labels,
416
417
  font: {
417
418
  size: i.value
418
419
  }
419
420
  }
420
421
  },
421
- datalabels: s(_),
422
+ datalabels: o(_),
422
423
  "maintain-aspect-ratio": !1,
423
424
  style: Ee({
424
- "--chart-width": s(R) !== void 0 ? s(R) + "px" : "100%",
425
- "--chart-height": s(z) !== void 0 ? s(z) + "px" : "calc(100% - 36px)"
425
+ "--chart-width": o(R) !== void 0 ? o(R) + "px" : "100%",
426
+ "--chart-height": o(z) !== void 0 ? o(z) + "px" : "calc(100% - 36px)"
426
427
  })
427
428
  }, null, 8, ["datasets", "metrics", "legend", "datalabels", "style"])
428
429
  ], 64);
@@ -436,7 +437,7 @@ const Il = /* @__PURE__ */ Le({
436
437
  },
437
438
  emits: ["update:modelValue"],
438
439
  setup(e) {
439
- const a = Me(e, "modelValue"), { t: o } = tt(), { compareDateRange: l, defaultDateSetting: g } = $e(Qe()), { country: _ } = St(), D = k(() => {
440
+ const a = Me(e, "modelValue"), { t: s } = tt(), { compareDateRange: l, defaultDateSetting: g } = $e(Qe()), { country: _ } = St(), D = k(() => {
440
441
  var d;
441
442
  return ((d = a.value.data) == null ? void 0 : d.value) || "";
442
443
  }), R = k(() => {
@@ -470,19 +471,19 @@ const Il = /* @__PURE__ */ Le({
470
471
  H("p", Pl, Te(D.value), 1),
471
472
  H("div", Bl, [
472
473
  B(C, {
473
- content: `vs. ${(W = s(g).defaultCompareType) == null ? void 0 : W.split("_").join(" ")}`,
474
+ content: `vs. ${(W = o(g).defaultCompareType) == null ? void 0 : W.split("_").join(" ")}`,
474
475
  placement: "right",
475
476
  "hide-arrow": "",
476
477
  variant: "plain"
477
478
  }, {
478
- default: oe(() => [
479
+ default: se(() => [
479
480
  R.value ? ($(), re(x, {
480
481
  key: 0,
481
482
  icon: R.value.icon.name,
482
483
  class: qe(`bg-${R.value.icon.tailwind}`),
483
484
  compact: ""
484
485
  }, {
485
- default: oe(() => [
486
+ default: se(() => [
486
487
  B(w, {
487
488
  name: R.value.icon.name,
488
489
  color: R.value.icon.color
@@ -494,11 +495,11 @@ const Il = /* @__PURE__ */ Le({
494
495
  ]),
495
496
  _: 1
496
497
  }, 8, ["icon", "class"])) : Fe("", !0),
497
- s(l).endDate !== null && s(l).startDate !== null && R.value === null ? ($(), re(x, {
498
+ o(l).endDate !== null && o(l).startDate !== null && R.value === null ? ($(), re(x, {
498
499
  key: 1,
499
500
  compact: ""
500
501
  }, {
501
- default: oe(() => [
502
+ default: se(() => [
502
503
  B(w, {
503
504
  name: "arrow_upward",
504
505
  color: "#C7C7CC"
@@ -539,11 +540,11 @@ const Il = /* @__PURE__ */ Le({
539
540
  }
540
541
  }), Ul = {};
541
542
  function Gl(e, a) {
542
- const o = O("FmMenuDivider");
543
- return $(), re(o);
543
+ const s = O("FmMenuDivider");
544
+ return $(), re(s);
544
545
  }
545
546
  const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimension", Nt = Ht(Xl, () => {
546
- const e = h(0), a = h([]), o = h(!1), l = (v, n) => {
547
+ const e = h(0), a = h([]), s = h(!1), l = (v, n) => {
547
548
  e.value = v, _(v, n);
548
549
  }, g = (v, n, T, m) => {
549
550
  a[v] = n, a.value = [...a.value], D(v, n, T, m);
@@ -564,10 +565,10 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
564
565
  m ? requestAnimationFrame(ee) : ee();
565
566
  }, R = () => {
566
567
  const v = document.querySelectorAll("th"), n = document.querySelectorAll("td"), T = document.querySelector("table");
567
- T == null || T.classList.add("table-fixed"), v.forEach((m) => m.classList.add("toggleEditResize")), n.forEach((m) => m.classList.add("toggleEditResize")), o.value = !0;
568
+ T == null || T.classList.add("table-fixed"), v.forEach((m) => m.classList.add("toggleEditResize")), n.forEach((m) => m.classList.add("toggleEditResize")), s.value = !0;
568
569
  }, z = () => {
569
570
  const v = document.querySelectorAll("th"), n = document.querySelectorAll("td"), T = document.querySelectorAll(".col-resize-handle"), m = document.querySelectorAll(".row-resize-handle");
570
- v.forEach((L) => L.classList.remove("toggleEditResize")), n.forEach((L) => L.classList.remove("toggleEditResize")), T.forEach((L) => L.remove()), m.forEach((L) => L.remove()), o.value = !1;
571
+ v.forEach((L) => L.classList.remove("toggleEditResize")), n.forEach((L) => L.classList.remove("toggleEditResize")), T.forEach((L) => L.remove()), m.forEach((L) => L.remove()), s.value = !1;
571
572
  }, c = () => {
572
573
  e.value = 0, a.value = [];
573
574
  }, p = (v, n) => {
@@ -593,9 +594,9 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
593
594
  n.classList.remove("highlight-hover-col");
594
595
  }) : document.querySelectorAll(".highlight-col").forEach((n) => n.classList.remove("highlight-col"));
595
596
  }, x = (v, n) => {
596
- const T = /* @__PURE__ */ new Map(), m = v.clientX, L = v.target.closest("table"), U = L == null ? void 0 : L.querySelectorAll("th")[n], K = U == null ? void 0 : U.getBoundingClientRect().width, ee = T.get(n) ? a[n.toString()] || 60 : (T.set(n, !0), K || a[n.toString()] || 60), se = U == null ? void 0 : U.querySelector("p");
597
- if (!se) return;
598
- const ke = se.textContent || "", ve = window.getComputedStyle(se), _e = `${ve.fontWeight} ${ve.fontSize} ${ve.fontFamily}`, fe = document.createElement("canvas").getContext("2d");
597
+ const T = /* @__PURE__ */ new Map(), m = v.clientX, L = v.target.closest("table"), U = L == null ? void 0 : L.querySelectorAll("th")[n], K = U == null ? void 0 : U.getBoundingClientRect().width, ee = T.get(n) ? a[n.toString()] || 60 : (T.set(n, !0), K || a[n.toString()] || 60), oe = U == null ? void 0 : U.querySelector("p");
598
+ if (!oe) return;
599
+ const ke = oe.textContent || "", ve = window.getComputedStyle(oe), _e = `${ve.fontWeight} ${ve.fontSize} ${ve.fontFamily}`, fe = document.createElement("canvas").getContext("2d");
599
600
  if (!fe) return;
600
601
  fe.font = _e;
601
602
  const b = fe.measureText(ke), V = window.getComputedStyle(U), G = parseFloat(V.paddingLeft || "0"), P = parseFloat(V.paddingRight || "0"), I = b.width + G + P;
@@ -636,7 +637,7 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
636
637
  return {
637
638
  rowHeight: e,
638
639
  colWidths: a,
639
- isEditing: o,
640
+ isEditing: s,
640
641
  updateRowHeight: l,
641
642
  updateColWidth: g,
642
643
  setRowHeights: _,
@@ -655,17 +656,17 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
655
656
  v && v.classList.remove("sticky");
656
657
  const L = (U, K) => {
657
658
  const ee = document.createElement("div");
658
- return ee.className = `${U}-resize-handle`, U === "col" ? (ee.addEventListener("mouseenter", () => p(K, !0)), ee.addEventListener("mouseleave", () => w(!0)), ee.addEventListener("mousedown", (se) => {
659
- se.stopPropagation(), x(se, K);
660
- })) : (ee.addEventListener("mouseenter", () => d(!0)), ee.addEventListener("mouseleave", () => i(!0)), ee.addEventListener("mousedown", (se) => {
661
- se.stopPropagation(), C(se);
659
+ return ee.className = `${U}-resize-handle`, U === "col" ? (ee.addEventListener("mouseenter", () => p(K, !0)), ee.addEventListener("mouseleave", () => w(!0)), ee.addEventListener("mousedown", (oe) => {
660
+ oe.stopPropagation(), x(oe, K);
661
+ })) : (ee.addEventListener("mouseenter", () => d(!0)), ee.addEventListener("mouseleave", () => i(!0)), ee.addEventListener("mousedown", (oe) => {
662
+ oe.stopPropagation(), C(oe);
662
663
  })), ee;
663
664
  };
664
665
  m.forEach((U) => {
665
666
  const K = U.closest("thead") !== null;
666
- U.querySelectorAll(K ? "th" : "td").forEach((se, ke) => {
667
+ U.querySelectorAll(K ? "th" : "td").forEach((oe, ke) => {
667
668
  const ve = L("col", ke), _e = L("row", ke);
668
- se.appendChild(ve), se.appendChild(_e);
669
+ oe.appendChild(ve), oe.appendChild(_e);
669
670
  });
670
671
  }), R();
671
672
  },
@@ -677,8 +678,8 @@ const Yl = /* @__PURE__ */ $l(Ul, [["render", Gl]]), Xl = "mf-reporttable-dimens
677
678
  function pt(e) {
678
679
  if (e == null || e === "")
679
680
  return "";
680
- const a = String(e), o = Number(a);
681
- if (isNaN(o)) return a;
681
+ const a = String(e), s = Number(a);
682
+ if (isNaN(s)) return a;
682
683
  const [l, g] = a.split("."), _ = new Intl.NumberFormat("en-US").format(Number(l));
683
684
  return g !== void 0 ? `${_}.${g}` : _;
684
685
  }
@@ -695,7 +696,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
695
696
  }),
696
697
  emits: ["update:modelValue"],
697
698
  setup(e) {
698
- const { t: a, te: o } = tt(), l = Me(e, "modelValue"), { country: g } = St(), { clearTileSorts: _, setTileSorts: D } = xl(), R = Ct(), z = e, c = h([]), { isEditing: p, colWidths: d, rowHeight: i } = $e(Nt()), { setColWidths: w, setRowHeights: x, enableCellResizing: C } = Nt(), y = h(null), W = k(() => {
699
+ const { t: a, te: s } = tt(), l = Me(e, "modelValue"), { country: g } = St(), { clearTileSorts: _, setTileSorts: D } = xl(), R = Ct(), z = e, c = h([]), { isEditing: p, colWidths: d, rowHeight: i } = $e(Nt()), { setColWidths: w, setRowHeights: x, enableCellResizing: C } = Nt(), y = h(null), W = k(() => {
699
700
  var b;
700
701
  return ((b = l.value.data) == null ? void 0 : b.columns) || [{ label: "", key: "" }];
701
702
  }), v = k(() => {
@@ -737,7 +738,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
737
738
  });
738
739
  break;
739
740
  }
740
- return b.length > 0 && b[0].main === "" && (b[0].main = Oe(a, o, "Grand Total", "other")), b;
741
+ return b.length > 0 && b[0].main === "" && (b[0].main = Oe(a, s, "Grand Total", "other")), b;
741
742
  });
742
743
  function U(b) {
743
744
  let V = (b == null ? void 0 : b.main) || "";
@@ -753,7 +754,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
753
754
  _();
754
755
  });
755
756
  const K = h([]);
756
- let ee = 0, se;
757
+ let ee = 0, oe;
757
758
  function ke() {
758
759
  var I;
759
760
  if (!((I = l.value) != null && I.data)) {
@@ -805,7 +806,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
805
806
  he(
806
807
  () => ve.value,
807
808
  () => {
808
- clearTimeout(se), se = setTimeout(ke, 200);
809
+ clearTimeout(oe), oe = setTimeout(ke, 200);
809
810
  },
810
811
  { immediate: !0 }
811
812
  );
@@ -825,12 +826,12 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
825
826
  ), fe = k(() => {
826
827
  var b;
827
828
  return (b = l.value.data) != null && b.columns ? l.value.data.columns.map((V) => {
828
- const G = Oe(a, o, V.label, "other"), P = c.value.find((ie) => ie.key === V.key), I = !!P, M = I ? P.type === Be.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
829
+ const G = Oe(a, s, V.label, "other"), P = c.value.find((ie) => ie.key === V.key), I = !!P, M = I ? P.type === Be.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
829
830
  return {
830
831
  accessorKey: V.key,
831
832
  header: () => {
832
833
  const ie = O("FmIcon");
833
- return st(
834
+ return ot(
834
835
  "button",
835
836
  {
836
837
  type: "button",
@@ -838,12 +839,12 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
838
839
  onClick: () => _e(V.key)
839
840
  },
840
841
  [
841
- st(
842
+ ot(
842
843
  "span",
843
844
  { class: `${V.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
844
845
  G
845
846
  ),
846
- st(ie, {
847
+ ot(ie, {
847
848
  name: M,
848
849
  color: I ? "primary" : "neutral-gray-400",
849
850
  size: "sm",
@@ -856,7 +857,7 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
856
857
  cell: (ie) => {
857
858
  var ge, t;
858
859
  const xe = U(ie.getValue()), Se = (t = (ge = ie == null ? void 0 : ie.row) == null ? void 0 : ge.original) == null ? void 0 : t.isRollup;
859
- return st(
860
+ return ot(
860
861
  "div",
861
862
  {
862
863
  class: [
@@ -910,11 +911,11 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
910
911
  "force-mobile-footer": !0,
911
912
  class: "scrollbar-hide-table"
912
913
  }, {
913
- "pin-top": oe(() => [
914
+ "pin-top": se(() => [
914
915
  H("tbody", null, [
915
916
  H("tr", Jl, [
916
917
  ($(!0), te(be, null, nt(L.value, (P, I) => ($(), te("td", {
917
- key: `${s(ot)()}_${I}`,
918
+ key: `${o(st)()}_${I}`,
918
919
  class: "h-[48px] text-fm-color-typo-primary px-16"
919
920
  }, [
920
921
  H("span", {
@@ -924,8 +925,8 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
924
925
  De.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
925
926
  ])
926
927
  }, [
927
- H("p", Zl, Te(P.rowType === "NUMERIC" ? s(pt)(P.main) : P.main), 1),
928
- H("p", Ql, Te(P.comparison ? P.rowType === "NUMERIC" ? `(${s(pt)(P.comparison)})` : `(${P.comparison})` : ""), 1)
928
+ H("p", Zl, Te(P.rowType === "NUMERIC" ? o(pt)(P.main) : P.main), 1),
929
+ H("p", Ql, Te(P.comparison ? P.rowType === "NUMERIC" ? `(${o(pt)(P.comparison)})` : `(${P.comparison})` : ""), 1)
929
930
  ], 2)
930
931
  ]))), 128))
931
932
  ])
@@ -946,14 +947,14 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
946
947
  }),
947
948
  emits: ["update:modelValue"],
948
949
  setup(e) {
949
- const a = e, o = Me(e, "modelValue"), l = h(null), g = k(() => {
950
+ const a = e, s = Me(e, "modelValue"), l = h(null), g = k(() => {
950
951
  var W;
951
- return ((W = o.value.data) == null ? void 0 : W.xAxis) || [];
952
+ return ((W = s.value.data) == null ? void 0 : W.xAxis) || [];
952
953
  }), _ = k(() => {
953
954
  var y;
954
- return ((y = o.value.data) == null ? void 0 : y.datasets) ?? [];
955
+ return ((y = s.value.data) == null ? void 0 : y.datasets) ?? [];
955
956
  }), { datalabels: D, xCfg: R, yCfg: z, isTransposed: c, legend: p, chartWidth: d, chartHeight: i } = lt(
956
- o.value
957
+ s.value
957
958
  ), w = k(() => _.value.length > 0 ? [
958
959
  ..._.value.map((y, W) => {
959
960
  let v = y.values;
@@ -984,22 +985,22 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
984
985
  class: "bar-chart",
985
986
  datasets: w.value,
986
987
  "x-axis": { categories: g.value },
987
- "x-cfg": s(R),
988
- "y-cfg": s(z),
989
- transpose: s(c),
988
+ "x-cfg": o(R),
989
+ "y-cfg": o(z),
990
+ transpose: o(c),
990
991
  stacked: !0,
991
992
  legend: {
992
- display: s(p).display ?? !1,
993
- position: s(p).position,
994
- maxHeight: s(p).maxHeight,
995
- maxWidth: s(p).maxWidth,
996
- labels: s(p).labels
993
+ display: o(p).display ?? !1,
994
+ position: o(p).position,
995
+ maxHeight: o(p).maxHeight,
996
+ maxWidth: o(p).maxWidth,
997
+ labels: o(p).labels
997
998
  },
998
- datalabels: s(D),
999
+ datalabels: o(D),
999
1000
  "maintain-aspect-ratio": !1,
1000
1001
  style: Ee({
1001
- "--chart-width": s(d) !== void 0 ? s(d) + "px" : "100%",
1002
- "--chart-height": s(i) !== void 0 ? s(i) + "px" : "calc(100% - 36px)"
1002
+ "--chart-width": o(d) !== void 0 ? o(d) + "px" : "100%",
1003
+ "--chart-height": o(i) !== void 0 ? o(i) + "px" : "calc(100% - 36px)"
1003
1004
  })
1004
1005
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
1005
1006
  ], 64);
@@ -1016,13 +1017,13 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
1016
1017
  emits: ["update:modelValue"],
1017
1018
  setup(e) {
1018
1019
  var v;
1019
- const a = e, o = Me(e, "modelValue"), l = ((v = o.value.data) == null ? void 0 : v.xAxis) ?? [], g = k(
1020
+ const a = e, s = Me(e, "modelValue"), l = ((v = s.value.data) == null ? void 0 : v.xAxis) ?? [], g = k(
1020
1021
  () => l.length === 1 && R.value.length > 0 && R.value.every((n) => n.values.length === 1)
1021
1022
  ), _ = k(() => g.value ? ["", l[0], ""] : l), D = h(null), R = k(() => {
1022
1023
  var n;
1023
- return ((n = o.value.data) == null ? void 0 : n.datasets) ?? [];
1024
+ return ((n = s.value.data) == null ? void 0 : n.datasets) ?? [];
1024
1025
  }), { datalabels: z, xCfg: c, yCfg: p, isTransposed: d, legend: i, chartWidth: w, chartHeight: x } = lt(
1025
- o.value
1026
+ s.value
1026
1027
  ), C = k(() => R.value.length > 0 ? [
1027
1028
  ...R.value.map((n, T) => {
1028
1029
  let m = n.values;
@@ -1059,22 +1060,22 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
1059
1060
  class: "line-chart",
1060
1061
  datasets: C.value,
1061
1062
  "x-axis": { categories: _.value },
1062
- "x-cfg": s(c),
1063
- "y-cfg": s(p),
1064
- transpose: s(d),
1063
+ "x-cfg": o(c),
1064
+ "y-cfg": o(p),
1065
+ transpose: o(d),
1065
1066
  legend: {
1066
- display: s(i).display ?? !1,
1067
- position: s(i).position,
1068
- maxHeight: s(i).maxHeight,
1069
- maxWidth: s(i).maxWidth,
1070
- labels: s(i).labels
1067
+ display: o(i).display ?? !1,
1068
+ position: o(i).position,
1069
+ maxHeight: o(i).maxHeight,
1070
+ maxWidth: o(i).maxWidth,
1071
+ labels: o(i).labels
1071
1072
  },
1072
1073
  stacked: !0,
1073
- datalabels: s(z),
1074
+ datalabels: o(z),
1074
1075
  "maintain-aspect-ratio": !1,
1075
1076
  style: Ee({
1076
- "--chart-width": s(w) !== void 0 ? s(w) + "px" : "100%",
1077
- "--chart-height": s(x) !== void 0 ? s(x) + "px" : "calc(100% - 36px)"
1077
+ "--chart-width": o(w) !== void 0 ? o(w) + "px" : "100%",
1078
+ "--chart-height": o(x) !== void 0 ? o(x) + "px" : "calc(100% - 36px)"
1078
1079
  })
1079
1080
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
1080
1081
  ], 64);
@@ -1097,10 +1098,10 @@ const jl = "/assets/processTableData.worker-B_-FBESg.js", Kl = { class: "my-4" }
1097
1098
  function aa(e) {
1098
1099
  return e < 12 ? Je[e - 1] : Je[11];
1099
1100
  }
1100
- function sa(e) {
1101
+ function oa(e) {
1101
1102
  return e < 12 ? Je[Math.min(11, e * 2 - 1)] : Je[11];
1102
1103
  }
1103
- function oa(e) {
1104
+ function sa(e) {
1104
1105
  return e < 12 ? Je[Math.min(11, e * 3 - 1)] : Je[11];
1105
1106
  }
1106
1107
  const na = /* @__PURE__ */ Le({
@@ -1114,13 +1115,13 @@ const na = /* @__PURE__ */ Le({
1114
1115
  emits: ["update:modelValue"],
1115
1116
  setup(e) {
1116
1117
  var v;
1117
- const a = e, o = Me(e, "modelValue"), l = ((v = o.value.data) == null ? void 0 : v.xAxis) ?? [], g = k(
1118
+ const a = e, s = Me(e, "modelValue"), l = ((v = s.value.data) == null ? void 0 : v.xAxis) ?? [], g = k(
1118
1119
  () => l.length === 1 && R.value.length > 0 && R.value.every((n) => n.values.length === 1)
1119
1120
  ), _ = k(() => g.value ? ["", l[0], ""] : l), D = h(null), R = k(() => {
1120
1121
  var n;
1121
- return ((n = o.value.data) == null ? void 0 : n.datasets) ?? [];
1122
+ return ((n = s.value.data) == null ? void 0 : n.datasets) ?? [];
1122
1123
  }), { datalabels: z, xCfg: c, yCfg: p, isTransposed: d, legend: i, chartWidth: w, chartHeight: x } = lt(
1123
- o.value
1124
+ s.value
1124
1125
  ), C = k(() => R.value.length > 0 ? [
1125
1126
  ...R.value.map((n, T) => {
1126
1127
  let m = n.values;
@@ -1157,21 +1158,21 @@ const na = /* @__PURE__ */ Le({
1157
1158
  class: "line-chart",
1158
1159
  datasets: C.value,
1159
1160
  "x-axis": { categories: _.value },
1160
- "x-cfg": s(c),
1161
- "y-cfg": s(p),
1162
- transpose: s(d),
1161
+ "x-cfg": o(c),
1162
+ "y-cfg": o(p),
1163
+ transpose: o(d),
1163
1164
  legend: {
1164
- display: s(i).display ?? !1,
1165
- position: s(i).position,
1166
- maxHeight: s(i).maxHeight,
1167
- maxWidth: s(i).maxWidth,
1168
- labels: s(i).labels
1165
+ display: o(i).display ?? !1,
1166
+ position: o(i).position,
1167
+ maxHeight: o(i).maxHeight,
1168
+ maxWidth: o(i).maxWidth,
1169
+ labels: o(i).labels
1169
1170
  },
1170
- datalabels: s(z),
1171
+ datalabels: o(z),
1171
1172
  "maintain-aspect-ratio": !1,
1172
1173
  style: Ee({
1173
- "--chart-width": s(w) !== void 0 ? s(w) + "px" : "100%",
1174
- "--chart-height": s(x) !== void 0 ? s(x) + "px" : "calc(100% - 36px)"
1174
+ "--chart-width": o(w) !== void 0 ? o(w) + "px" : "100%",
1175
+ "--chart-height": o(x) !== void 0 ? o(x) + "px" : "calc(100% - 36px)"
1175
1176
  })
1176
1177
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
1177
1178
  ], 64);
@@ -1188,7 +1189,7 @@ const na = /* @__PURE__ */ Le({
1188
1189
  }),
1189
1190
  emits: ["update:modelValue"],
1190
1191
  setup(e) {
1191
- const { t: a } = tt(), { FmForm: o } = zl, l = e, g = h(), _ = Me(e, "modelValue"), D = h(!0), R = h(!1), z = Ct(), { selectedLocationIds: c, dateRange: p, timeRange: d } = $e(Qe()), i = h(dt.PORTRAIT);
1192
+ const { t: a } = tt(), { FmForm: s } = zl, l = e, g = h(), _ = Me(e, "modelValue"), D = h(!0), R = h(!1), z = Ct(), { selectedLocationIds: c, dateRange: p, timeRange: d } = $e(Qe()), i = h(dt.PORTRAIT);
1192
1193
  function w() {
1193
1194
  var C;
1194
1195
  (C = g.value) == null || C.validateInputs();
@@ -1219,29 +1220,29 @@ const na = /* @__PURE__ */ Le({
1219
1220
  overlay: !0,
1220
1221
  "z-index": 10
1221
1222
  }, {
1222
- "dialog-header": oe(() => y[3] || (y[3] = [
1223
+ "dialog-header": se(() => y[3] || (y[3] = [
1223
1224
  ht("Select Orientation")
1224
1225
  ])),
1225
- default: oe(() => [
1226
- B(s(o), {
1226
+ default: se(() => [
1227
+ B(o(s), {
1227
1228
  ref_key: "form",
1228
1229
  ref: g,
1229
1230
  onValidationSuccess: x
1230
1231
  }, {
1231
- default: oe(() => [
1232
+ default: se(() => [
1232
1233
  H("div", ra, [
1233
1234
  B(v, {
1234
1235
  modelValue: i.value,
1235
1236
  "onUpdate:modelValue": y[0] || (y[0] = (m) => i.value = m)
1236
1237
  }, {
1237
- default: oe(() => [
1238
+ default: se(() => [
1238
1239
  B(W, {
1239
- value: s(dt).PORTRAIT,
1240
- label: s(a)("report.common.portrait")
1240
+ value: o(dt).PORTRAIT,
1241
+ label: o(a)("report.common.portrait")
1241
1242
  }, null, 8, ["value", "label"]),
1242
1243
  B(W, {
1243
- value: s(dt).LANDSCAPE,
1244
- label: s(a)("report.common.landscape")
1244
+ value: o(dt).LANDSCAPE,
1245
+ label: o(a)("report.common.landscape")
1245
1246
  }, null, 8, ["value", "label"])
1246
1247
  ]),
1247
1248
  _: 1
@@ -1250,13 +1251,13 @@ const na = /* @__PURE__ */ Le({
1250
1251
  H("div", ia, [
1251
1252
  y[4] || (y[4] = H("div", { class: "grow" }, null, -1)),
1252
1253
  B(n, {
1253
- label: s(a)("report.common.cancel"),
1254
+ label: o(a)("report.common.cancel"),
1254
1255
  variant: "tertiary",
1255
1256
  onClick: y[1] || (y[1] = (m) => _.value = !1)
1256
1257
  }, null, 8, ["label"]),
1257
1258
  H("div", null, [
1258
1259
  B(n, {
1259
- label: s(a)("report.common.download"),
1260
+ label: o(a)("report.common.download"),
1260
1261
  loading: R.value,
1261
1262
  onClick: w
1262
1263
  }, null, 8, ["label", "loading"])
@@ -1276,7 +1277,7 @@ const na = /* @__PURE__ */ Le({
1276
1277
  }, da = {
1277
1278
  key: 2,
1278
1279
  class: "flex"
1279
- }, Pa = /* @__PURE__ */ Le({
1280
+ }, Ba = /* @__PURE__ */ Le({
1280
1281
  __name: "DynamicWidget",
1281
1282
  props: /* @__PURE__ */ Ie({
1282
1283
  index: {
@@ -1299,7 +1300,7 @@ const na = /* @__PURE__ */ Le({
1299
1300
  }),
1300
1301
  emits: ["update:modelValue"],
1301
1302
  setup(e) {
1302
- const a = h(!0), o = Me(e, "modelValue"), l = o.value.widget.config, { t: g, te: _ } = tt(), D = e, R = h(null), z = h(l.rollup), c = h(ot()), p = h(l.drillDimension), d = k(() => {
1303
+ const a = h(!0), s = Me(e, "modelValue"), l = s.value.widget.config, { t: g, te: _ } = tt(), D = e, R = h(null), z = h(l.rollup), c = h(st()), p = h(l.drillDimension), d = k(() => {
1303
1304
  if (We.value.length > 0) {
1304
1305
  const r = We.value.findIndex(
1305
1306
  (Q) => Q.value === p.value
@@ -1309,23 +1310,23 @@ const na = /* @__PURE__ */ Le({
1309
1310
  return -1;
1310
1311
  }), i = k(() => d.value !== 0), w = k(
1311
1312
  () => d.value != We.value.length - 1
1312
- ), x = h(l.showTitle ?? !0), C = h(l.titleFontSize ?? 14), y = h(l.titleBold ?? !1), W = h(l.titleItalic ?? !1), v = h(l.titleUnderline ?? !1), n = h(l.chartWidth ?? void 0), T = h(l.chartHeight ?? void 0), m = h(l.showLabel ?? !1), L = h(l.labelAlign ?? yt.center), U = h(l.labelAnchor ?? gt.center), K = h(l.labelRotation ?? 0), ee = h(l.labelOffset ?? 0), se = h(l.labelFontSize ?? 12), ke = k(() => l.showSearchBar), ve = h(l.showX ?? !0), _e = h(l.xPosition ?? bt.bottom), De = h(l.showXGrid ?? !1), fe = h(l.showXTick ?? !0), b = h(l.xTickFontSize ?? 12), V = h(l.showXTitle ?? !1), G = h(l.xTitle ?? ""), P = h(l.xTitleFontSize ?? 12), I = h(l.showY ?? !0), M = h(l.yPosition ?? wt.left), ie = h(l.showYGrid ?? !1), xe = h(l.showYTick ?? !0), Se = h(l.yTickFontSize ?? 12), ge = h(l.showYTitle ?? !1), t = h(l.yTitle ?? ""), f = h(l.yTitleFontSize ?? 12), F = h(l.showLegend ?? void 0), S = h(l.legendPosition ?? xt.top), N = h(l.usePointStyle ?? !0), le = h(l.legendMaxHeight), de = h(l.legendMaxWidth), me = h(l.rowHeight ?? 0), J = h(l.colWidths ?? []), E = h(!1), u = h(""), { breakpoints: X, getBreakpointsBoundary: j } = qt(), Z = h(), q = k(
1313
+ ), x = h(l.showTitle ?? !0), C = h(l.titleFontSize ?? 14), y = h(l.titleBold ?? !1), W = h(l.titleItalic ?? !1), v = h(l.titleUnderline ?? !1), n = h(l.chartWidth ?? void 0), T = h(l.chartHeight ?? void 0), m = h(l.showLabel ?? !1), L = h(l.labelAlign ?? yt.center), U = h(l.labelAnchor ?? gt.center), K = h(l.labelRotation ?? 0), ee = h(l.labelOffset ?? 0), oe = h(l.labelFontSize ?? 12), ke = k(() => l.showSearchBar), ve = h(l.showX ?? !0), _e = h(l.xPosition ?? bt.bottom), De = h(l.showXGrid ?? !1), fe = h(l.showXTick ?? !0), b = h(l.xTickFontSize ?? 12), V = h(l.showXTitle ?? !1), G = h(l.xTitle ?? ""), P = h(l.xTitleFontSize ?? 12), I = h(l.showY ?? !0), M = h(l.yPosition ?? wt.left), ie = h(l.showYGrid ?? !1), xe = h(l.showYTick ?? !0), Se = h(l.yTickFontSize ?? 12), ge = h(l.showYTitle ?? !1), t = h(l.yTitle ?? ""), f = h(l.yTitleFontSize ?? 12), F = h(l.showLegend ?? void 0), S = h(l.legendPosition ?? xt.top), N = h(l.usePointStyle ?? !0), le = h(l.legendMaxHeight), de = h(l.legendMaxWidth), me = h(l.rowHeight ?? 0), J = h(l.colWidths ?? []), E = h(!1), u = h(""), { breakpoints: X, getBreakpointsBoundary: j } = qt(), Z = h(), q = k(
1313
1314
  () => D.customScreenWidth === void 0 ? window.innerWidth : D.customScreenWidth
1314
1315
  ), ne = k(
1315
1316
  () => (q == null ? void 0 : q.value) > j("xs")[1] && (q == null ? void 0 : q.value) <= j("sm")[1]
1316
1317
  ), ae = k(
1317
1318
  () => (q == null ? void 0 : q.value) > j("sm")[1] && (q == null ? void 0 : q.value) <= j("md")[1]
1318
1319
  ), ye = k(() => (q == null ? void 0 : q.value) > j("md")[1]), ue = k(() => {
1319
- const r = o.value.size.width;
1320
- return ye.value || ae.value ? aa(r) : ne.value ? sa(r) : oa(r);
1320
+ const r = s.value.size.width;
1321
+ return ye.value || ae.value ? aa(r) : ne.value ? oa(r) : sa(r);
1321
1322
  }), Ge = k(
1322
- () => Al.find((r) => r.type === o.value.widget.type)
1323
+ () => Al.find((r) => r.type === s.value.widget.type)
1323
1324
  ), Y = Mt(() => {
1324
1325
  var r;
1325
- Z.value = ll((r = R.value) == null ? void 0 : r.$el.offsetWidth), c.value = ot();
1326
+ Z.value = ll((r = R.value) == null ? void 0 : r.$el.offsetWidth), c.value = st();
1326
1327
  }), Yt = k(() => {
1327
1328
  if (El(ce.value.type, Ye.value))
1328
- switch (o.value.widget.type) {
1329
+ switch (s.value.widget.type) {
1329
1330
  case A.BarChart:
1330
1331
  return Il;
1331
1332
  case A.StackBarChart:
@@ -1357,7 +1358,7 @@ const na = /* @__PURE__ */ Le({
1357
1358
  } = $e(Qe()), { businessId: Kt } = $e(St()), { businessLoadedId: Jt, businessDataVersion: it } = $e(Qe());
1358
1359
  k(() => Jt.value === Kt.value && rt.value.length > 0 && !Tt.value);
1359
1360
  const Zt = h(!0), ce = k(() => {
1360
- const r = JSON.parse(JSON.stringify(o.value.widget));
1361
+ const r = JSON.parse(JSON.stringify(s.value.widget));
1361
1362
  return {
1362
1363
  ...r,
1363
1364
  config: {
@@ -1383,7 +1384,7 @@ const na = /* @__PURE__ */ Le({
1383
1384
  labelAlign: L.value,
1384
1385
  labelRotation: K.value,
1385
1386
  labelOffset: ee.value,
1386
- labelFontSize: se.value,
1387
+ labelFontSize: oe.value,
1387
1388
  showX: ve.value,
1388
1389
  xPosition: _e.value,
1389
1390
  showXGrid: De.value,
@@ -1431,7 +1432,7 @@ const na = /* @__PURE__ */ Le({
1431
1432
  return { data: Ye.value };
1432
1433
  }
1433
1434
  }), Lt = k(() => {
1434
- const { config: r } = o.value.widget;
1435
+ const { config: r } = s.value.widget;
1435
1436
  if (r.rollup != null) {
1436
1437
  const Q = [...r.dimensions].filter((Re) => !Re.hide);
1437
1438
  return Q.sort(
@@ -1453,19 +1454,19 @@ const na = /* @__PURE__ */ Le({
1453
1454
  value: mt(Q)
1454
1455
  })) : [];
1455
1456
  }), tl = k(() => {
1456
- const r = o.value.id;
1457
+ const r = s.value.id;
1457
1458
  return (jt.value || []).filter(
1458
1459
  (Q) => Array.isArray(Q.tileIds) && Q.tileIds.includes(r)
1459
1460
  );
1460
1461
  });
1461
1462
  he(
1462
- () => o.value.widget.config,
1463
+ () => s.value.widget.config,
1463
1464
  (r) => {
1464
- z.value = r.rollup, x.value = r.showTitle ?? !0, C.value = r.titleFontSize ?? 14, y.value = r.titleBold ?? !1, W.value = r.titleItalic ?? !1, v.value = r.titleUnderline ?? !1, T.value = r.chartHeight ?? void 0, n.value = r.chartWidth ?? void 0, m.value = r.showLabel ?? !1, L.value = r.labelAlign ?? yt.center, U.value = r.labelAnchor ?? gt.center, K.value = r.labelRotation ?? 0, ee.value = r.labelOffset ?? 0, se.value = r.labelFontSize ?? 12, ve.value = r.showX ?? !0, _e.value = r.xPosition ?? bt.bottom, De.value = r.showXGrid ?? !1, fe.value = r.showXTick ?? !0, b.value = r.xTickFontSize ?? 12, V.value = r.showXTitle ?? !1, G.value = r.xTitle ?? "", P.value = r.xTitleFontSize ?? 12, I.value = r.showY ?? !0, M.value = r.yPosition ?? wt.left, ie.value = r.showYGrid ?? !1, xe.value = r.showYTick ?? !0, Se.value = r.yTickFontSize ?? 12, ge.value = r.showYTitle ?? !1, t.value = r.yTitle ?? "", f.value = r.yTitleFontSize ?? 12, F.value = r.showLegend ?? void 0, S.value = r.legendPosition ?? xt.top, N.value = r.usePointStyle ?? !0, le.value = r.legendMaxHeight, de.value = r.legendMaxWidth, me.value = r.rowHeight ?? 0, J.value = r.colWidths ?? [];
1465
+ z.value = r.rollup, x.value = r.showTitle ?? !0, C.value = r.titleFontSize ?? 14, y.value = r.titleBold ?? !1, W.value = r.titleItalic ?? !1, v.value = r.titleUnderline ?? !1, T.value = r.chartHeight ?? void 0, n.value = r.chartWidth ?? void 0, m.value = r.showLabel ?? !1, L.value = r.labelAlign ?? yt.center, U.value = r.labelAnchor ?? gt.center, K.value = r.labelRotation ?? 0, ee.value = r.labelOffset ?? 0, oe.value = r.labelFontSize ?? 12, ve.value = r.showX ?? !0, _e.value = r.xPosition ?? bt.bottom, De.value = r.showXGrid ?? !1, fe.value = r.showXTick ?? !0, b.value = r.xTickFontSize ?? 12, V.value = r.showXTitle ?? !1, G.value = r.xTitle ?? "", P.value = r.xTitleFontSize ?? 12, I.value = r.showY ?? !0, M.value = r.yPosition ?? wt.left, ie.value = r.showYGrid ?? !1, xe.value = r.showYTick ?? !0, Se.value = r.yTickFontSize ?? 12, ge.value = r.showYTitle ?? !1, t.value = r.yTitle ?? "", f.value = r.yTitleFontSize ?? 12, F.value = r.showLegend ?? void 0, S.value = r.legendPosition ?? xt.top, N.value = r.usePointStyle ?? !0, le.value = r.legendMaxHeight, de.value = r.legendMaxWidth, me.value = r.rowHeight ?? 0, J.value = r.colWidths ?? [];
1465
1466
  },
1466
1467
  { deep: !0 }
1467
1468
  ), he([() => z.value], () => {
1468
- z.value !== null && (o.value.widget.config.rollup = z.value);
1469
+ z.value !== null && (s.value.widget.config.rollup = z.value);
1469
1470
  }), he(
1470
1471
  [
1471
1472
  () => ce.value,
@@ -1481,7 +1482,7 @@ const na = /* @__PURE__ */ Le({
1481
1482
  },
1482
1483
  { deep: !0 }
1483
1484
  ), he(
1484
- [() => o.value.size],
1485
+ [() => s.value.size],
1485
1486
  () => {
1486
1487
  Y();
1487
1488
  },
@@ -1503,43 +1504,43 @@ const na = /* @__PURE__ */ Le({
1503
1504
  }
1504
1505
  try {
1505
1506
  a.value = !0, at && at.abort(), at = new AbortController();
1506
- const r = at.signal, Q = it.value, Re = await Mt(Ot, 500)(ce.value, r, o.value.id);
1507
- it.value === Q && (Ye.value = Re, c.value = ot()), a.value = !1;
1507
+ const r = at.signal, Q = it.value, Re = await Mt(Ot, 500)(ce.value, r, s.value.id);
1508
+ it.value === Q && (Ye.value = Re, c.value = st()), a.value = !1;
1508
1509
  } catch (r) {
1509
1510
  r.code !== "ERR_CANCELED" && (Ye.value = null, Dt.open({ message: `Invalid chart ${ce.value.type}`, type: "error" }), console.log(r), a.value = !1);
1510
1511
  }
1511
1512
  }
1512
1513
  function ll(r) {
1513
- switch (o.value.widget.type) {
1514
+ switch (s.value.widget.type) {
1514
1515
  case "SPACER":
1515
1516
  return;
1516
1517
  case "SCORECARD":
1517
1518
  return;
1518
1519
  case "TABLE":
1519
- return `${o.value.size.height * 100 + (ke.value ? 72 : 0) + 96.5}px`;
1520
+ return `${s.value.size.height * 100 + (ke.value ? 72 : 0) + 96.5}px`;
1520
1521
  }
1521
- return `${Math.max(r / o.value.size.width, 90) * o.value.size.height}px`;
1522
+ return `${Math.max(r / s.value.size.width, 90) * s.value.size.height}px`;
1522
1523
  }
1523
1524
  function al() {
1524
1525
  const r = d.value - 1;
1525
1526
  r >= 0 && (p.value = We.value[r].value);
1526
1527
  }
1527
- function sl() {
1528
+ function ol() {
1528
1529
  const r = d.value + 1;
1529
1530
  r >= 0 && r < We.value.length && (p.value = We.value[r].value);
1530
1531
  }
1531
- const Vt = h(je.EXCEL), zt = h(), ol = Object.values(je).map((r) => ({
1532
- label: Cl(r),
1532
+ const Vt = h(Ke.EXCEL), zt = h(), sl = Object.values(Ke).map((r) => ({
1533
+ label: Tl(r),
1533
1534
  value: r,
1534
1535
  onClick: async () => {
1535
- r === je.EXCEL || r === je.PDFFULLSIZE || r === je.PDFRECEIPT ? await Bt({
1536
+ r === Ke.EXCEL || r === Ke.PDFFULLSIZE || r === Ke.PDFRECEIPT ? await Bt({
1536
1537
  reportType: r,
1537
1538
  index: D.index,
1538
1539
  isCombinedLocationLayout: Zt.value,
1539
1540
  timeRange: _t.value,
1540
1541
  dateRange: kt.value,
1541
1542
  locationIds: rt.value
1542
- }) : r === je.PDF && (Vt.value = r, zt.value = D.index, E.value = !0);
1543
+ }) : r === Ke.PDF && (Vt.value = r, zt.value = D.index, E.value = !0);
1543
1544
  }
1544
1545
  })), nl = ce.value.type === A.Spacer ? "flat" : "outlined", rl = ce.value.type === A.Spacer ? "p-0" : "p-16";
1545
1546
  return (r, Q) => {
@@ -1547,17 +1548,17 @@ const na = /* @__PURE__ */ Le({
1547
1548
  return $(), re(hl, {
1548
1549
  ref_key: "tileCard",
1549
1550
  ref: R,
1550
- class: qe(`${ue.value} ${s(rl)}`),
1551
- variant: s(nl)
1551
+ class: qe(`${ue.value} ${o(rl)}`),
1552
+ variant: o(nl)
1552
1553
  }, {
1553
- default: oe(() => [
1554
+ default: se(() => [
1554
1555
  B(ua, {
1555
1556
  modelValue: E.value,
1556
1557
  "onUpdate:modelValue": Q[0] || (Q[0] = (Xe) => E.value = Xe),
1557
1558
  "report-type": Vt.value,
1558
1559
  index: zt.value
1559
1560
  }, null, 8, ["modelValue", "report-type", "index"]),
1560
- !a.value && !s(Tt) ? ($(), te("div", {
1561
+ !a.value && !o(Tt) ? ($(), te("div", {
1561
1562
  key: 0,
1562
1563
  style: Ee({ height: Z.value })
1563
1564
  }, [
@@ -1567,9 +1568,9 @@ const na = /* @__PURE__ */ Le({
1567
1568
  "onUpdate:modelValue": Q[4] || (Q[4] = (Xe) => Ft.value = Xe),
1568
1569
  "tile-index": D.index
1569
1570
  }, {
1570
- menu: oe(() => [
1571
+ menu: se(() => [
1571
1572
  B(ml, { class: "flex items-center gap-2" }, {
1572
- default: oe(() => {
1573
+ default: se(() => {
1573
1574
  var Xe, $t, At, Et;
1574
1575
  return [
1575
1576
  B(Re, {
@@ -1579,7 +1580,7 @@ const na = /* @__PURE__ */ Le({
1579
1580
  "hide-arrow": !0,
1580
1581
  disabled: !ce.value.description
1581
1582
  }, {
1582
- default: oe(() => [
1583
+ default: se(() => [
1583
1584
  x.value !== !1 ? ($(), te("p", {
1584
1585
  key: 0,
1585
1586
  style: Ee({
@@ -1592,7 +1593,7 @@ const na = /* @__PURE__ */ Le({
1592
1593
  C.value <= 18 ? "fm-typo-en-body-md-400" : "",
1593
1594
  ce.value.description ? "border-b-2 border-dashed border-gray-300" : ""
1594
1595
  ]])
1595
- }, Te(s(Oe)(s(g), s(_), ce.value.title, "other")), 7)) : Fe("", !0)
1596
+ }, Te(o(Oe)(o(g), o(_), ce.value.title, "other")), 7)) : Fe("", !0)
1596
1597
  ]),
1597
1598
  _: 1
1598
1599
  }, 8, ["content", "disabled"]),
@@ -1621,7 +1622,7 @@ const na = /* @__PURE__ */ Le({
1621
1622
  icon: "arrow_downward",
1622
1623
  variant: "tertiary",
1623
1624
  disabled: !w.value,
1624
- onClick: sl
1625
+ onClick: ol
1625
1626
  }, null, 8, ["disabled"])
1626
1627
  ])) : Fe("", !0),
1627
1628
  (Et = Ge.value) != null && Et.showRollup && Lt.value.length > 0 ? ($(), re(ul, {
@@ -1635,14 +1636,14 @@ const na = /* @__PURE__ */ Le({
1635
1636
  key: 4,
1636
1637
  shift: !0
1637
1638
  }, {
1638
- "menu-button": oe(() => [
1639
+ "menu-button": se(() => [
1639
1640
  B(ut, {
1640
1641
  icon: "more_vert",
1641
1642
  variant: "tertiary"
1642
1643
  })
1643
1644
  ]),
1644
- default: oe(() => [
1645
- ($(!0), te(be, null, nt(s(ol), (Ve) => ($(), re(cl, {
1645
+ default: se(() => [
1646
+ ($(!0), te(be, null, nt(o(sl), (Ve) => ($(), re(cl, {
1646
1647
  key: Ve.value,
1647
1648
  label: Ve.label,
1648
1649
  onClick: Ve.onClick
@@ -1666,37 +1667,37 @@ const na = /* @__PURE__ */ Le({
1666
1667
  });
1667
1668
  var He = /* @__PURE__ */ ((e) => (e.Select = "Select", e.TextField = "TextField", e.Timestamp = "Timestamp", e))(He || {});
1668
1669
  function ma(e) {
1669
- let a = !1, o = 1;
1670
+ let a = !1, s = 1;
1670
1671
  switch (e) {
1671
1672
  case Ce.Equal:
1672
1673
  case Ce.NotEqual:
1673
1674
  case Ce.Like:
1674
1675
  case Ce.NotLike:
1675
- a = !1, o = 1;
1676
+ a = !1, s = 1;
1676
1677
  break;
1677
1678
  case Ce.GreaterThan:
1678
1679
  case Ce.GreaterThanOrEqual:
1679
1680
  case Ce.LessThan:
1680
1681
  case Ce.LessThanOrEqual:
1681
- a = !0, o = 1;
1682
+ a = !0, s = 1;
1682
1683
  break;
1683
1684
  case Ce.Between:
1684
- a = !0, o = 2;
1685
+ a = !0, s = 2;
1685
1686
  break;
1686
1687
  }
1687
1688
  return {
1688
1689
  fixed: a,
1689
- count: o
1690
+ count: s
1690
1691
  };
1691
1692
  }
1692
- function Ba({
1693
+ function Oa({
1693
1694
  operator: e,
1694
1695
  dimensionOption: a,
1695
- dataType: o,
1696
+ dataType: s,
1696
1697
  t: l
1697
1698
  }) {
1698
1699
  const { fixed: g, count: _ } = ma(e);
1699
- switch (o) {
1700
+ switch (s) {
1700
1701
  case ze.String:
1701
1702
  return {
1702
1703
  type: "TextField",
@@ -1740,7 +1741,7 @@ function Ba({
1740
1741
  default: ""
1741
1742
  };
1742
1743
  }
1743
- function Oa(e) {
1744
+ function Ha(e) {
1744
1745
  switch (e) {
1745
1746
  case pe.HourOfDay:
1746
1747
  return 0;
@@ -1750,7 +1751,7 @@ function Oa(e) {
1750
1751
  return;
1751
1752
  }
1752
1753
  }
1753
- function Ha(e) {
1754
+ function qa(e) {
1754
1755
  switch (e) {
1755
1756
  case pe.HourOfDay:
1756
1757
  return 23;
@@ -1763,7 +1764,7 @@ function Ha(e) {
1763
1764
  function Gt({
1764
1765
  dimensionOption: e,
1765
1766
  fixed: a,
1766
- count: o,
1767
+ count: s,
1767
1768
  t: l
1768
1769
  }) {
1769
1770
  switch (e) {
@@ -1771,7 +1772,7 @@ function Gt({
1771
1772
  return {
1772
1773
  type: He.Select,
1773
1774
  fixed: a,
1774
- count: o,
1775
+ count: s,
1775
1776
  options: Array.from({ length: 24 }, (g, _) => ({
1776
1777
  label: _.toString().padStart(2, "0"),
1777
1778
  value: _.toString()
@@ -1782,7 +1783,7 @@ function Gt({
1782
1783
  return {
1783
1784
  type: He.Select,
1784
1785
  fixed: a,
1785
- count: o,
1786
+ count: s,
1786
1787
  options: [
1787
1788
  { label: l("report.days.sunday"), value: "1" },
1788
1789
  { label: l("report.days.monday"), value: "2" },
@@ -1798,7 +1799,7 @@ function Gt({
1798
1799
  return {
1799
1800
  type: He.Select,
1800
1801
  fixed: a,
1801
- count: o,
1802
+ count: s,
1802
1803
  options: Array.from({ length: 31 }, (g, _) => ({
1803
1804
  label: (_ + 1).toString(),
1804
1805
  value: (_ + 1).toString()
@@ -1809,7 +1810,7 @@ function Gt({
1809
1810
  return {
1810
1811
  type: He.Select,
1811
1812
  fixed: a,
1812
- count: o,
1813
+ count: s,
1813
1814
  options: [
1814
1815
  { label: l("report.months.january"), value: "1" },
1815
1816
  { label: l("report.months.february"), value: "2" },
@@ -1830,7 +1831,7 @@ function Gt({
1830
1831
  return {
1831
1832
  type: He.Timestamp,
1832
1833
  fixed: a,
1833
- count: o,
1834
+ count: s,
1834
1835
  default: (/* @__PURE__ */ new Date()).toISOString()
1835
1836
  };
1836
1837
  }
@@ -1839,17 +1840,17 @@ function Wt({
1839
1840
  dimensionOption: e,
1840
1841
  t: a
1841
1842
  }) {
1842
- const o = Gt({
1843
+ const s = Gt({
1843
1844
  dimensionOption: e,
1844
1845
  fixed: !1,
1845
1846
  count: 1,
1846
1847
  t: a
1847
1848
  });
1848
- return o.type === He.Select ? o.options : [];
1849
+ return s.type === He.Select ? s.options : [];
1849
1850
  }
1850
1851
  const pa = "mf-reportglobalFilter";
1851
1852
  function Pt(e, a) {
1852
- var o;
1853
+ var s;
1853
1854
  return [
1854
1855
  a,
1855
1856
  e.schemaName,
@@ -1857,11 +1858,11 @@ function Pt(e, a) {
1857
1858
  e.operator ?? "",
1858
1859
  e.option ?? "",
1859
1860
  e.dataFormula ?? "",
1860
- ((o = e.tileIds) == null ? void 0 : o.join(",")) ?? ""
1861
+ ((s = e.tileIds) == null ? void 0 : s.join(",")) ?? ""
1861
1862
  ].join("|");
1862
1863
  }
1863
1864
  const ha = Ht(pa, () => {
1864
- const e = h({}), a = h(!1), o = h(null), l = () => ({
1865
+ const e = h({}), a = h(!1), s = h(null), l = () => ({
1865
1866
  search: "",
1866
1867
  selectedValues: [],
1867
1868
  keepSelection: !1,
@@ -1872,7 +1873,7 @@ const ha = Ht(pa, () => {
1872
1873
  const x = Pt(i, w);
1873
1874
  return e.value[x] || (e.value[x] = l()), e.value[x];
1874
1875
  }
1875
- const _ = k(() => e.value), D = (i) => o.value === i;
1876
+ const _ = k(() => e.value), D = (i) => s.value === i;
1876
1877
  function R(i, w, x, C) {
1877
1878
  g(i, w)[x] = C;
1878
1879
  }
@@ -1883,15 +1884,15 @@ const ha = Ht(pa, () => {
1883
1884
  a.value = i;
1884
1885
  }
1885
1886
  function p(i) {
1886
- o.value = i;
1887
+ s.value = i;
1887
1888
  }
1888
1889
  function d() {
1889
- o.value = null;
1890
+ s.value = null;
1890
1891
  }
1891
1892
  return {
1892
1893
  allStates: _,
1893
1894
  includeUnavailable: a,
1894
- openMenuKey: o,
1895
+ openMenuKey: s,
1895
1896
  getGlobalFilter: g,
1896
1897
  isMenuOpen: D,
1897
1898
  setGlobalFilter: R,
@@ -1904,11 +1905,11 @@ const ha = Ht(pa, () => {
1904
1905
  }), fa = { class: "flex flex-row flex-wrap gap-2" }, va = { class: "inline-flex max-w-[460px]" }, ga = {
1905
1906
  key: 0,
1906
1907
  class: "flex justify-center my-2"
1907
- }, ya = { class: "px-2 pb-8" }, ba = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, wa = { class: "px-2 pb-8" }, xa = { class: "flex items-start w-full" }, Sa = ["onClick"], Ca = { class: "fm-typo-en-body-md-400" }, ka = { key: 0 }, _a = { class: "px-12 py-3" }, Ta = { class: "flex items-center justify-between" }, Fa = ["onClick"], La = { class: "fm-typo-en-body-md-400" }, Da = { class: "text-xs max-w-[200px]" }, Ra = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, qa = /* @__PURE__ */ Le({
1908
+ }, ya = { class: "px-2 pb-8" }, ba = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, wa = { class: "px-2 pb-8" }, xa = { class: "flex items-start w-full" }, Sa = ["onClick"], Ca = { class: "fm-typo-en-body-md-400" }, ka = { key: 0 }, _a = { class: "px-12 py-3" }, Ta = { class: "flex items-center justify-between" }, Fa = ["onClick"], La = { class: "fm-typo-en-body-md-400" }, Da = { class: "text-xs max-w-[200px]" }, Ra = { class: "px-4 py-3 flex flex-row justify-end gap-2 bg-white" }, Ua = /* @__PURE__ */ Le({
1908
1909
  __name: "FilterSelector",
1909
1910
  setup(e) {
1910
- const { t: a, locale: o } = tt(), { currentReport: l, editingTile: g } = $e(kl());
1911
- let { globalFilters: _, isGlobalFiltersLoading: D, timeRange: R, dateRange: z, selectedLocationIds: c } = $e(Qe()), { schemas: p } = $e(_l()), {
1911
+ const { t: a, locale: s } = tt(), { currentReport: l, editingTile: g } = $e(Cl());
1912
+ let { globalFilters: _, isGlobalFiltersLoading: D, timeRange: R, dateRange: z, selectedLocationIds: c } = $e(Qe()), { schemas: p } = $e(kl()), {
1912
1913
  showMore: d,
1913
1914
  getGlobalFilter: i,
1914
1915
  setGlobalFilter: w,
@@ -2062,14 +2063,14 @@ const ha = Ht(pa, () => {
2062
2063
  };
2063
2064
  }).filter(Boolean);
2064
2065
  }
2065
- function se(t) {
2066
+ function oe(t) {
2066
2067
  return t.options.every((f) => {
2067
2068
  var F;
2068
2069
  return (F = t.selectedValues) == null ? void 0 : F.includes(f.value);
2069
2070
  });
2070
2071
  }
2071
2072
  function ke(t) {
2072
- se(t) ? t.selectedValues = ["(EMPTY)"] : t.selectedValues = t.options.map((f) => f.value);
2073
+ oe(t) ? t.selectedValues = ["(EMPTY)"] : t.selectedValues = t.options.map((f) => f.value);
2073
2074
  }
2074
2075
  const ve = k(
2075
2076
  () => L.value.map((t) => {
@@ -2157,7 +2158,7 @@ const ha = Ht(pa, () => {
2157
2158
  if (f === null)
2158
2159
  t.values = [];
2159
2160
  else {
2160
- const S = Ke(f.startDate).startOf("day").utc().toISOString(), N = Ke(f.endDate).endOf("day").utc().toISOString();
2161
+ const S = je(f.startDate).startOf("day").utc().toISOString(), N = je(f.endDate).endOf("day").utc().toISOString();
2161
2162
  t.values = [S, N];
2162
2163
  }
2163
2164
  const F = L.value.find((S) => S.id === C(t, m.value));
@@ -2173,21 +2174,21 @@ const ha = Ht(pa, () => {
2173
2174
  }
2174
2175
  function I(t) {
2175
2176
  var le, de, me, J, E;
2176
- const f = Fl(t.filter);
2177
+ const f = _l(t.filter);
2177
2178
  if (t.type === ze.Timestamp) {
2178
2179
  const u = ((le = t.filter.values) == null ? void 0 : le.length) === 2;
2179
2180
  if (t.filter.option === pe.DateTime)
2180
2181
  return { preview: u ? `${f} is between ${Rl({
2181
2182
  startDate: ((de = t.filter.values) == null ? void 0 : de[0]) || null,
2182
2183
  endDate: ((me = t.filter.values) == null ? void 0 : me[1]) || null,
2183
- locale: o.value
2184
+ locale: s.value
2184
2185
  })}` : f, suffix: "" };
2185
2186
  if (t.filter.option === pe.TimeOfDay) {
2186
- const X = (J = t.filter.values) != null && J[0] ? Ke(t.filter.values[0]) : null, j = (E = t.filter.values) != null && E[1] ? Ke(t.filter.values[1]) : null, Z = (ne) => ne && ne.isValid() ? { hour: ne.hour(), minute: ne.minute() } : null;
2187
+ const X = (J = t.filter.values) != null && J[0] ? je(t.filter.values[0]) : null, j = (E = t.filter.values) != null && E[1] ? je(t.filter.values[1]) : null, Z = (ne) => ne && ne.isValid() ? { hour: ne.hour(), minute: ne.minute() } : null;
2187
2188
  return { preview: u ? `${f} is between ${Vl({
2188
2189
  startTime: Z(X),
2189
2190
  endTime: Z(j),
2190
- locale: o.value
2191
+ locale: s.value
2191
2192
  })}` : f, suffix: "" };
2192
2193
  }
2193
2194
  if (t.filter.option !== pe.DateTime && t.filter.option !== pe.TimeOfDay) {
@@ -2224,7 +2225,7 @@ const ha = Ht(pa, () => {
2224
2225
  if (f === null)
2225
2226
  t.values = [];
2226
2227
  else {
2227
- const me = Ke().set("hour", Number((S = f.start) == null ? void 0 : S.hour)).set("minute", Number((N = f.start) == null ? void 0 : N.minute)).toISOString(), J = Ke().set("hour", Number((le = f.end) == null ? void 0 : le.hour)).set("minute", Number((de = f.end) == null ? void 0 : de.minute)).toISOString();
2228
+ const me = je().set("hour", Number((S = f.start) == null ? void 0 : S.hour)).set("minute", Number((N = f.start) == null ? void 0 : N.minute)).toISOString(), J = je().set("hour", Number((le = f.end) == null ? void 0 : le.hour)).set("minute", Number((de = f.end) == null ? void 0 : de.minute)).toISOString();
2228
2229
  t.values = [me, J];
2229
2230
  }
2230
2231
  const F = L.value.find((me) => me.id === C(t, m.value));
@@ -2238,7 +2239,7 @@ const ha = Ht(pa, () => {
2238
2239
  return $(), te("div", {
2239
2240
  key: `${u.id}`
2240
2241
  }, [
2241
- u.filter.option === s(pe).DateTime ? ($(), re(Ll, {
2242
+ u.filter.option === o(pe).DateTime ? ($(), re(Ll, {
2242
2243
  key: 0,
2243
2244
  "model-value": { startDate: (j = u.filter.values) == null ? void 0 : j[0], endDate: (Z = u.filter.values) == null ? void 0 : Z[1] },
2244
2245
  class: "w-full",
@@ -2246,7 +2247,7 @@ const ha = Ht(pa, () => {
2246
2247
  removable: ((q = u.filter.values) == null ? void 0 : q.length) === 2,
2247
2248
  onUpdate: (ue) => V(u.filter, ue),
2248
2249
  onChipClosed: () => V(u.filter, null)
2249
- }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : u.filter.option === s(pe).TimeOfDay ? ($(), re(Tl, {
2250
+ }, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : u.filter.option === o(pe).TimeOfDay ? ($(), re(Fl, {
2250
2251
  key: 1,
2251
2252
  "model-value": { start: (ne = u.filter.values) == null ? void 0 : ne[0], end: (ae = u.filter.values) == null ? void 0 : ae[1] },
2252
2253
  class: "w-full",
@@ -2258,10 +2259,10 @@ const ha = Ht(pa, () => {
2258
2259
  key: 2,
2259
2260
  "close-on-click": !1,
2260
2261
  shift: !0,
2261
- open: s(y)(u.id),
2262
- onMenuChanged: (ue) => ue ? s(W)(u.id) : s(v)()
2262
+ open: o(y)(u.id),
2263
+ onMenuChanged: (ue) => ue ? o(W)(u.id) : o(v)()
2263
2264
  }, {
2264
- "menu-button": oe(() => [
2265
+ "menu-button": se(() => [
2265
2266
  H("div", va, [
2266
2267
  B(Dl, {
2267
2268
  "left-icon": "filter_alt",
@@ -2269,27 +2270,27 @@ const ha = Ht(pa, () => {
2269
2270
  label: I(u).preview,
2270
2271
  class: "w-full"
2271
2272
  }, {
2272
- default: oe(() => [
2273
+ default: se(() => [
2273
2274
  ht(Te(I(u).suffix), 1)
2274
2275
  ]),
2275
2276
  _: 2
2276
2277
  }, 1032, ["label"])
2277
2278
  ])
2278
2279
  ]),
2279
- "menu-wrapper": oe(({ maxHeight: ue, width: Ge }) => [
2280
+ "menu-wrapper": se(({ maxHeight: ue, width: Ge }) => [
2280
2281
  H("div", {
2281
2282
  class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
2282
2283
  style: Ee({ maxHeight: `${ue}px`, width: Ge })
2283
2284
  }, [
2284
2285
  T.value ? ($(), te("div", ga, [
2285
2286
  B(F)
2286
- ])) : u.options.length > 0 && !s(D) ? ($(), te(be, { key: 1 }, [
2287
+ ])) : u.options.length > 0 && !o(D) ? ($(), te(be, { key: 1 }, [
2287
2288
  H("div", ya, [
2288
2289
  B(S, {
2289
2290
  modelValue: u.search,
2290
2291
  "onUpdate:modelValue": [
2291
2292
  (Y) => u.search = Y,
2292
- (Y) => s(w)(u.filter, m.value, "search", Y)
2293
+ (Y) => o(w)(u.filter, m.value, "search", Y)
2293
2294
  ],
2294
2295
  type: "text",
2295
2296
  "prepend-icon": "search",
@@ -2302,7 +2303,7 @@ const ha = Ht(pa, () => {
2302
2303
  B(N, {
2303
2304
  label: G(u),
2304
2305
  "has-checkbox": !0,
2305
- "model-value": se(u),
2306
+ "model-value": oe(u),
2306
2307
  indeterminate: !0,
2307
2308
  onClick: (Y) => ke(u)
2308
2309
  }, null, 8, ["label", "model-value", "onClick"]),
@@ -2315,10 +2316,10 @@ const ha = Ht(pa, () => {
2315
2316
  "hide-arrow": !0,
2316
2317
  "z-index": 2e3
2317
2318
  }, {
2318
- content: oe(() => [
2319
+ content: se(() => [
2319
2320
  ht(Te(Y.label), 1)
2320
2321
  ]),
2321
- default: oe(() => [
2322
+ default: se(() => [
2322
2323
  H("div", xa, [
2323
2324
  B(N, {
2324
2325
  label: Se(Y.label, 110),
@@ -2345,7 +2346,7 @@ const ha = Ht(pa, () => {
2345
2346
  ve.value[X].length < u.options.length && !u.search ? ($(), re(N, {
2346
2347
  key: 0,
2347
2348
  class: "fm-typo-en-body-md-400 -ml-2",
2348
- label: s(a)("report.section.filter.loadMore"),
2349
+ label: o(a)("report.section.filter.loadMore"),
2349
2350
  onClick: ct((Y) => _e(u), ["stop"]),
2350
2351
  icon: "autorenew"
2351
2352
  }, null, 8, ["label", "onClick"])) : Fe("", !0)
@@ -2360,7 +2361,7 @@ const ha = Ht(pa, () => {
2360
2361
  size: "md",
2361
2362
  class: ""
2362
2363
  }, null, 8, ["name"]),
2363
- H("span", Ca, Te(s(a)("report.section.filter.advanced")), 1)
2364
+ H("span", Ca, Te(o(a)("report.section.filter.advanced")), 1)
2364
2365
  ], 8, Sa),
2365
2366
  B(me),
2366
2367
  u.showAdvanced ? ($(), te("div", ka, [
@@ -2377,16 +2378,16 @@ const ha = Ht(pa, () => {
2377
2378
  u.keepSelection ? "text-fm-color-primary" : "text-fm-color-neutral-gray-400"
2378
2379
  )
2379
2380
  }, null, 8, ["name", "class"]),
2380
- H("span", La, Te(s(a)("report.section.filter.keepSelection")), 1)
2381
+ H("span", La, Te(o(a)("report.section.filter.keepSelection")), 1)
2381
2382
  ], 8, Fa),
2382
2383
  B(le, {
2383
2384
  placement: "top",
2384
2385
  "z-index": 2e3
2385
2386
  }, {
2386
- content: oe(() => [
2387
- H("div", Da, Te(s(a)("report.section.filter.keepSelectionTooltip")), 1)
2387
+ content: se(() => [
2388
+ H("div", Da, Te(o(a)("report.section.filter.keepSelectionTooltip")), 1)
2388
2389
  ]),
2389
- default: oe(() => [
2390
+ default: se(() => [
2390
2391
  B(de, {
2391
2392
  name: "info",
2392
2393
  size: "md",
@@ -2401,16 +2402,16 @@ const ha = Ht(pa, () => {
2401
2402
  H("div", Ra, [
2402
2403
  B(J, {
2403
2404
  variant: "tertiary",
2404
- label: s(a)("report.common.cancel"),
2405
- onClick: f[0] || (f[0] = ct((Y) => s(v)(), ["stop"]))
2405
+ label: o(a)("report.common.cancel"),
2406
+ onClick: f[0] || (f[0] = ct((Y) => o(v)(), ["stop"]))
2406
2407
  }, null, 8, ["label"]),
2407
2408
  B(J, {
2408
2409
  color: "primary",
2409
2410
  onClick: ct((Y) => M(u), ["stop"]),
2410
- label: s(a)("report.common.apply")
2411
+ label: o(a)("report.common.apply")
2411
2412
  }, null, 8, ["onClick", "label"])
2412
2413
  ])
2413
- ], 64)) : s(D) ? Fe("", !0) : ($(), re(ft, { key: 2 }))
2414
+ ], 64)) : o(D) ? Fe("", !0) : ($(), re(ft, { key: 2 }))
2414
2415
  ], 4)
2415
2416
  ]),
2416
2417
  _: 2
@@ -2426,12 +2427,12 @@ export {
2426
2427
  He as I,
2427
2428
  yt as L,
2428
2429
  Pe as R,
2429
- Pa as _,
2430
- qa as a,
2430
+ Ba as _,
2431
+ Ua as a,
2431
2432
  gt as b,
2432
- Oa as c,
2433
- Ha as d,
2434
- Ba as e,
2433
+ Ha as c,
2434
+ qa as d,
2435
+ Oa as e,
2435
2436
  mt as g,
2436
2437
  Nt as u
2437
2438
  };