@feedmepos/mf-report 5.19.18 → 5.19.20-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{App-B2WE7ZOa.js → App-tXXht-5s.js} +31 -31
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DlpIEV2j.js → BaseDialog.vue_vue_type_script_setup_true_lang-DZvH0Y-3.js} +5160 -5154
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C7mhpRK0.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BVi8DNni.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Bk7Ojrpl.js → Default.vue_vue_type_script_setup_true_lang-CC4O6KVY.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-T1mI6axf.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BQh_qEEI.js} +144 -144
  6. package/dist/{InsightView-C3xTImex.js → InsightView-BnOUYD5B.js} +5 -5
  7. package/dist/{Integration-GkPCivXG.js → Integration-BkIHfAt8.js} +2 -2
  8. package/dist/{Integrations-BGNXoeWI.js → Integrations-D4ju0l38.js} +3 -3
  9. package/dist/{Layout-BTxqXohN.js → Layout-Bx8ljvot.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BikNRnd-.js → MenuTab.vue_vue_type_script_setup_true_lang-CSLsIaD4.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C25yhFfw.js → NavigationTab.vue_vue_type_script_setup_true_lang-TcdhfNBd.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js → NoData.vue_vue_type_script_setup_true_lang-DX1We5Q0.js} +1 -1
  13. package/dist/{OverviewView-B3-uF-wj.js → OverviewView-CNqRybNx.js} +5 -5
  14. package/dist/{Report-Cg07B-ME.js → Report-CTiAbY0D.js} +4 -4
  15. package/dist/{ReportEditor-B_4Ia3lm.js → ReportEditor-C47BEkUJ.js} +6 -6
  16. package/dist/{ReportView-uZbqFFrB.js → ReportView-CQuveOhV.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js → SelectComponent.vue_vue_type_script_setup_true_lang-DYOjRnAy.js} +1 -1
  18. package/dist/{Setting-Q3RmUA-1.js → Setting-GJaJ_nux.js} +4 -4
  19. package/dist/{TileEditor-C_sn2q77.js → TileEditor-BRQvaLQy.js} +7 -7
  20. package/dist/{TransitionFade-DL95FCIn.js → TransitionFade-B-VvNjOR.js} +5 -5
  21. package/dist/app.js +11 -11
  22. package/dist/assets/{formatChartData.worker-DOuklPCk.js → formatChartData.worker-CO5zKPH5.js} +6 -6
  23. package/dist/assets/{processTableData.worker-DphUPEW7.js → processTableData.worker-BAMcED0j.js} +6 -6
  24. package/dist/{helper-B2iB0Dbh.js → helper-CLGnwM-X.js} +1 -1
  25. package/dist/{vue-i18n-D33f1SSo.js → vue-i18n-DsnU36hZ.js} +1 -1
  26. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { computed as f, defineComponent as se, mergeModels as me, useModel as re, ref as u, onMounted as we, nextTick as J, watch as G, resolveComponent as H, createElementBlock as O, openBlock as A, Fragment as de, renderSlot as xe, createVNode as I, normalizeStyle as he, unref as l, createElementVNode as M, toDisplayString as Ee, withCtx as Y, createBlock as j, createCommentVNode as be, normalizeClass as Me, h as Be, renderList as Ft, toRaw as aa, markRaw as oa, createTextVNode as la, onUnmounted as na, resolveDynamicComponent as sa, withDirectives as ra, vShow as ia } from "vue";
2
- import { W as _, d as Ve, e as ca, S as Ae, v as Ie, f as ua, g as Je, h as Rt, q as da, R as Fe, i as ha } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DlpIEV2j.js";
3
- import { u as qe, b as Ne, a as nt } from "./vue-i18n-D33f1SSo.js";
4
- import { a as St } from "./helper-B2iB0Dbh.js";
1
+ import { computed as f, defineComponent as se, mergeModels as me, useModel as re, ref as u, onMounted as we, nextTick as J, watch as G, resolveComponent as H, createElementBlock as O, openBlock as E, Fragment as de, renderSlot as xe, createVNode as I, normalizeStyle as he, unref as l, createElementVNode as M, toDisplayString as We, withCtx as Y, createBlock as j, createCommentVNode as be, normalizeClass as Me, h as Pe, renderList as Ft, toRaw as aa, markRaw as oa, createTextVNode as la, onUnmounted as na, resolveDynamicComponent as sa, withDirectives as ra, vShow as ia } from "vue";
2
+ import { W as _, d as Ve, e as ca, S as Ee, v as Ie, f as ua, g as Je, h as Rt, q as da, R as Fe, i as ha } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DZvH0Y-3.js";
3
+ import { u as qe, b as Ne, a as nt } from "./vue-i18n-DsnU36hZ.js";
4
+ import { a as St } from "./helper-CLGnwM-X.js";
5
5
  import { storeToRefs as Le, defineStore as ma } from "pinia";
6
6
  import { useBreakpoints as Lt, useSnackbar as st, components as pa } from "@feedmepos/ui-library";
7
- import { a as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js";
7
+ import { a as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DYOjRnAy.js";
8
8
  import { r as Re } from "./i18n-Cif1I9J2.js";
9
- import { _ as kt } from "./NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js";
9
+ import { _ as kt } from "./NoData.vue_vue_type_script_setup_true_lang-DX1We5Q0.js";
10
10
  var Qe = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Qe || {}), ye = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(ye || {}), et = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(et || {}), 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 || {}), at = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(at || {}), ot = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(ot || {}), lt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(lt || {});
11
11
  _.Circular, _.Table, _.BarChart, _.LineChart, _.StackBarChart, _.StackLineChart, _.Scorecard, _.Spacer;
12
12
  const va = [
@@ -335,7 +335,7 @@ const ba = /* @__PURE__ */ se({
335
335
  J(() => v());
336
336
  }), (h, z) => {
337
337
  const d = H("FmBarChart");
338
- return A(), O(de, null, [
338
+ return E(), O(de, null, [
339
339
  xe(h.$slots, "menu"),
340
340
  I(d, {
341
341
  ref_key: "chartRef",
@@ -396,7 +396,7 @@ const ba = /* @__PURE__ */ se({
396
396
  const r = f(() => t.value.lg ? 12 : 8);
397
397
  return (x, b) => {
398
398
  const v = H("FmPieChart");
399
- return A(), O(de, null, [
399
+ return E(), O(de, null, [
400
400
  xe(x.$slots, "menu"),
401
401
  I(v, {
402
402
  ref_key: "chartRef",
@@ -465,9 +465,9 @@ const ba = /* @__PURE__ */ se({
465
465
  return (i, r) => {
466
466
  var z;
467
467
  const x = H("FmIcon"), b = H("FmChip"), v = H("FmTooltip"), h = H("FmLineChart");
468
- return A(), O("div", xa, [
468
+ return E(), O("div", xa, [
469
469
  xe(i.$slots, "menu"),
470
- M("p", Ca, Ee(C.value), 1),
470
+ M("p", Ca, We(C.value), 1),
471
471
  M("div", Sa, [
472
472
  I(v, {
473
473
  content: `vs. ${(z = l(w).defaultCompareType) == null ? void 0 : z.split("_").join(" ")}`,
@@ -476,7 +476,7 @@ const ba = /* @__PURE__ */ se({
476
476
  variant: "plain"
477
477
  }, {
478
478
  default: Y(() => [
479
- S.value ? (A(), j(b, {
479
+ S.value ? (E(), j(b, {
480
480
  key: 0,
481
481
  icon: S.value.icon.name,
482
482
  class: Me(`bg-${S.value.icon.tailwind}`),
@@ -490,11 +490,11 @@ const ba = /* @__PURE__ */ se({
490
490
  M("p", {
491
491
  class: "fm-typo-en-body-md-600",
492
492
  style: he({ color: S.value.icon.color })
493
- }, Ee(S.value.value), 5)
493
+ }, We(S.value.value), 5)
494
494
  ]),
495
495
  _: 1
496
496
  }, 8, ["icon", "class"])) : be("", !0),
497
- l(t).endDate !== null && l(t).startDate !== null && S.value === null ? (A(), j(b, {
497
+ l(t).endDate !== null && l(t).startDate !== null && S.value === null ? (E(), j(b, {
498
498
  key: 1,
499
499
  compact: ""
500
500
  }, {
@@ -511,8 +511,8 @@ const ba = /* @__PURE__ */ se({
511
511
  _: 1
512
512
  }, 8, ["content"])
513
513
  ]),
514
- s.value ? (A(), O("div", ka, [
515
- F(s.value.type) === "line" ? (A(), j(h, {
514
+ s.value ? (E(), O("div", ka, [
515
+ F(s.value.type) === "line" ? (E(), j(h, {
516
516
  key: 0,
517
517
  class: "sparkline",
518
518
  datasets: c.value,
@@ -525,7 +525,7 @@ const ba = /* @__PURE__ */ se({
525
525
  "x-cfg": { display: !1 },
526
526
  "maintain-aspect-ratio": !1
527
527
  }, null, 8, ["datasets", "x-axis"])) : be("", !0)
528
- ])) : (A(), O("div", Ta, r[1] || (r[1] = [
528
+ ])) : (E(), O("div", Ta, r[1] || (r[1] = [
529
529
  M("div", { class: "sparkline" }, [
530
530
  M("div", { class: "flex flex-col gap-8" }, [
531
531
  M("div"),
@@ -540,7 +540,7 @@ const ba = /* @__PURE__ */ se({
540
540
  }), Fa = {};
541
541
  function Ra(e, n) {
542
542
  const m = H("FmMenuDivider");
543
- return A(), j(m);
543
+ return E(), j(m);
544
544
  }
545
545
  const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimension", _t = ma(za, () => {
546
546
  const e = u(0), n = u([]), m = u(!1), t = (d, o) => {
@@ -550,18 +550,18 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
550
550
  }, R = (d, o) => {
551
551
  const y = (o == null ? void 0 : o.querySelectorAll("thead tr")) ?? [], g = (o == null ? void 0 : o.querySelectorAll("tbody tr")) ?? [];
552
552
  [...y, ...g].forEach((V) => {
553
- const P = V;
554
- P && (P.style.height = `${d}px`);
553
+ const $ = V;
554
+ $ && ($.style.height = `${d}px`);
555
555
  });
556
556
  }, C = (d, o, y, g = !1) => {
557
557
  const k = (y == null ? void 0 : y.querySelectorAll("th")) ?? [];
558
558
  if (d === void 0) return;
559
- const V = k[d], P = g ? n[d] : o;
560
- if (!V || P === void 0) return;
561
- const $ = () => {
562
- V.style.width = `${P}px`;
559
+ const V = k[d], $ = g ? n[d] : o;
560
+ if (!V || $ === void 0) return;
561
+ const B = () => {
562
+ V.style.width = `${$}px`;
563
563
  };
564
- g ? requestAnimationFrame($) : $();
564
+ g ? requestAnimationFrame(B) : B();
565
565
  }, S = () => {
566
566
  const d = document.querySelectorAll("th"), o = document.querySelectorAll("td"), y = document.querySelector("table");
567
567
  y == null || y.classList.add("table-fixed"), d.forEach((g) => g.classList.add("toggleEditResize")), o.forEach((g) => g.classList.add("toggleEditResize")), m.value = !0;
@@ -593,15 +593,15 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
593
593
  o.classList.remove("highlight-hover-col");
594
594
  }) : document.querySelectorAll(".highlight-col").forEach((o) => o.classList.remove("highlight-col"));
595
595
  }, b = (d, o) => {
596
- const y = /* @__PURE__ */ new Map(), g = d.clientX, k = d.target.closest("table"), V = k == null ? void 0 : k.querySelectorAll("th")[o], P = V == null ? void 0 : V.getBoundingClientRect().width, $ = y.get(o) ? n[o.toString()] || 60 : (y.set(o, !0), P || n[o.toString()] || 60), N = V == null ? void 0 : V.querySelector("p");
596
+ const y = /* @__PURE__ */ new Map(), g = d.clientX, k = d.target.closest("table"), V = k == null ? void 0 : k.querySelectorAll("th")[o], $ = V == null ? void 0 : V.getBoundingClientRect().width, B = y.get(o) ? n[o.toString()] || 60 : (y.set(o, !0), $ || n[o.toString()] || 60), N = V == null ? void 0 : V.querySelector("p");
597
597
  if (!N) return;
598
598
  const ie = N.textContent || "", Z = window.getComputedStyle(N), ce = `${Z.fontWeight} ${Z.fontSize} ${Z.fontFamily}`, ee = document.createElement("canvas").getContext("2d");
599
599
  if (!ee) return;
600
600
  ee.font = ce;
601
- const p = ee.measureText(ie), T = window.getComputedStyle(V), E = parseFloat(T.paddingLeft || "0"), D = parseFloat(T.paddingRight || "0"), W = p.width + E + D;
601
+ const p = ee.measureText(ie), T = window.getComputedStyle(V), W = parseFloat(T.paddingLeft || "0"), D = parseFloat(T.paddingRight || "0"), A = p.width + W + D;
602
602
  c(o, !1);
603
603
  const L = (te) => {
604
- const ae = te.clientX - g, Q = Math.max(W, $ + ae);
604
+ const ae = te.clientX - g, Q = Math.max(A, B + ae);
605
605
  if (k) {
606
606
  w(o, Q, k, !0);
607
607
  let K = 0;
@@ -625,9 +625,9 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
625
625
  }, v = (d) => {
626
626
  const o = d.clientY, y = d.target.closest("table"), g = e.value || 48;
627
627
  i(!1);
628
- const k = (P) => {
629
- const $ = Math.max(30, g + (P.clientY - o));
630
- y && t($, y);
628
+ const k = ($) => {
629
+ const B = Math.max(30, g + ($.clientY - o));
630
+ y && t(B, y);
631
631
  }, V = () => {
632
632
  r(!1), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", V);
633
633
  };
@@ -653,17 +653,17 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
653
653
  enableCellResizing: () => {
654
654
  const d = document.querySelector("thead"), o = document.querySelectorAll("thead tr"), y = document.querySelectorAll("tbody tr"), g = [...o, ...y];
655
655
  d && d.classList.remove("sticky");
656
- const k = (V, P) => {
657
- const $ = document.createElement("div");
658
- return $.className = `${V}-resize-handle`, V === "col" ? ($.addEventListener("mouseenter", () => c(P, !0)), $.addEventListener("mouseleave", () => x(!0)), $.addEventListener("mousedown", (N) => {
659
- N.stopPropagation(), b(N, P);
660
- })) : ($.addEventListener("mouseenter", () => i(!0)), $.addEventListener("mouseleave", () => r(!0)), $.addEventListener("mousedown", (N) => {
656
+ const k = (V, $) => {
657
+ const B = document.createElement("div");
658
+ return B.className = `${V}-resize-handle`, V === "col" ? (B.addEventListener("mouseenter", () => c($, !0)), B.addEventListener("mouseleave", () => x(!0)), B.addEventListener("mousedown", (N) => {
659
+ N.stopPropagation(), b(N, $);
660
+ })) : (B.addEventListener("mouseenter", () => i(!0)), B.addEventListener("mouseleave", () => r(!0)), B.addEventListener("mousedown", (N) => {
661
661
  N.stopPropagation(), v(N);
662
- })), $;
662
+ })), B;
663
663
  };
664
664
  g.forEach((V) => {
665
- const P = V.closest("thead") !== null;
666
- V.querySelectorAll(P ? "th" : "td").forEach((N, ie) => {
665
+ const $ = V.closest("thead") !== null;
666
+ V.querySelectorAll($ ? "th" : "td").forEach((N, ie) => {
667
667
  const Z = k("col", ie), ce = k("row", ie);
668
668
  N.appendChild(Z), N.appendChild(ce);
669
669
  });
@@ -682,10 +682,10 @@ function Ze(e) {
682
682
  const [t, w] = n.split("."), R = new Intl.NumberFormat("en-US").format(Number(t));
683
683
  return w !== void 0 ? `${R}.${w}` : R;
684
684
  }
685
- const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }, Aa = {
685
+ const Da = "/assets/processTableData.worker-BAMcED0j.js", Aa = { class: "my-4" }, Ea = {
686
686
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
687
687
  style: { backgroundColor: "#f9f9f9" }
688
- }, Ea = { class: "font-bold" }, Va = { class: "text-fm-color-neutral-gray-300" }, Ha = /* @__PURE__ */ se({
688
+ }, Wa = { class: "font-bold" }, Va = { class: "text-fm-color-neutral-gray-300" }, Ha = /* @__PURE__ */ se({
689
689
  __name: "WidgetTable",
690
690
  props: /* @__PURE__ */ me({
691
691
  tileIndex: {}
@@ -710,29 +710,29 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
710
710
  return ye.bottom;
711
711
  }
712
712
  }), g = f(() => {
713
- const D = y.value !== void 0 ? 1 : 0, W = (h.value ? h.value.$el.offsetHeight : 0) - 48;
714
- return Math.floor((W - 34.5 - 32) / 48) - D;
713
+ const D = y.value !== void 0 ? 1 : 0, A = (h.value ? h.value.$el.offsetHeight : 0) - 48;
714
+ return Math.floor((A - 34.5 - 32) / 48) - D;
715
715
  }), k = f(() => {
716
- var T, E;
716
+ var T, W;
717
717
  let p = [];
718
718
  switch (y.value) {
719
719
  case ye.top:
720
- p = [...((T = d.value[0]) == null ? void 0 : T.cells) || []].map((D, W) => {
720
+ p = [...((T = d.value[0]) == null ? void 0 : T.cells) || []].map((D, A) => {
721
721
  var L;
722
722
  return {
723
723
  main: D,
724
- comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[W],
725
- rowType: z.value[W].type
724
+ comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[A],
725
+ rowType: z.value[A].type
726
726
  };
727
727
  });
728
728
  break;
729
729
  case ye.bottom:
730
- p = [...((E = d.value[d.value.length - 1]) == null ? void 0 : E.cells) || []].map((D, W) => {
730
+ p = [...((W = d.value[d.value.length - 1]) == null ? void 0 : W.cells) || []].map((D, A) => {
731
731
  var L;
732
732
  return {
733
733
  main: D,
734
- comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[W],
735
- rowType: z.value[W].type
734
+ comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[A],
735
+ rowType: z.value[A].type
736
736
  };
737
737
  });
738
738
  break;
@@ -752,25 +752,25 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
752
752
  we(() => {
753
753
  R();
754
754
  });
755
- const P = u([]);
756
- let $ = 0, N;
755
+ const $ = u([]);
756
+ let B = 0, N;
757
757
  function ie() {
758
- var W;
759
- if (!((W = t.value) != null && W.data)) {
760
- P.value = [];
758
+ var A;
759
+ if (!((A = t.value) != null && A.data)) {
760
+ $.value = [];
761
761
  return;
762
762
  }
763
- const p = ++$, T = (t.value.data.rows || []).map((L) => ({
763
+ const p = ++B, T = (t.value.data.rows || []).map((L) => ({
764
764
  isRollup: L.isRollup,
765
765
  cells: Array.isArray(L.cells) ? [...L.cells] : [],
766
766
  comparisonCells: Array.isArray(L.comparisonCells) ? [...L.comparisonCells] : []
767
- })), E = (t.value.data.columns || []).map((L) => ({
767
+ })), W = (t.value.data.columns || []).map((L) => ({
768
768
  key: L.key,
769
769
  type: L.type,
770
770
  label: L.label
771
771
  })), D = {
772
772
  rows: T,
773
- columns: E,
773
+ columns: W,
774
774
  filter: o.value ?? "",
775
775
  globalSorts: aa(s.value).map((L) => ({
776
776
  key: L.key,
@@ -780,7 +780,7 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
780
780
  pageSize: g.value
781
781
  };
782
782
  ua(Da, D).then((L) => {
783
- p === $ && (L != null && L.error ? (S.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(L.error), P.value = []) : P.value = oa(L.data || []));
783
+ p === B && (L != null && L.error ? (S.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(L.error), $.value = []) : $.value = oa(L.data || []));
784
784
  });
785
785
  }
786
786
  G(
@@ -791,13 +791,13 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
791
791
  { immediate: !0, deep: !0 }
792
792
  );
793
793
  const Z = f(() => {
794
- var E, D;
795
- const p = ((E = t.value.data) == null ? void 0 : E.rows) || [], T = ((D = t.value.data) == null ? void 0 : D.columns) || [];
794
+ var W, D;
795
+ const p = ((W = t.value.data) == null ? void 0 : W.rows) || [], T = ((D = t.value.data) == null ? void 0 : D.columns) || [];
796
796
  return JSON.stringify({
797
797
  rowsLength: p.length,
798
- columns: T.map((W) => ({ key: W.key, type: W.type, label: W.label })),
798
+ columns: T.map((A) => ({ key: A.key, type: A.type, label: A.label })),
799
799
  filter: o.value ?? "",
800
- globalSorts: s.value.map((W) => ({ key: W.key, type: W.type })),
800
+ globalSorts: s.value.map((A) => ({ key: A.key, type: A.type })),
801
801
  grandTotalPosition: y.value,
802
802
  pageSize: g.value
803
803
  });
@@ -810,12 +810,12 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
810
810
  { immediate: !0 }
811
811
  );
812
812
  function ce(p) {
813
- const T = s.value.find((E) => E.key === p);
813
+ const T = s.value.find((W) => W.key === p);
814
814
  if (!T) {
815
- s.value.push({ key: p, type: Ae.Asc });
815
+ s.value.push({ key: p, type: Ee.Asc });
816
816
  return;
817
817
  }
818
- T.type === Ae.Asc ? T.type = Ae.Desc : T.type === Ae.Desc && (s.value = s.value.filter((E) => E.key !== p));
818
+ T.type === Ee.Asc ? T.type = Ee.Desc : T.type === Ee.Desc && (s.value = s.value.filter((W) => W.key !== p));
819
819
  }
820
820
  const pe = f(
821
821
  () => {
@@ -825,27 +825,27 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
825
825
  ), ee = f(() => {
826
826
  var p;
827
827
  return (p = t.value.data) != null && p.columns ? t.value.data.columns.map((T) => {
828
- const E = Re(n, m, T.label, "other"), D = s.value.find((U) => U.key === T.key), W = !!D, L = W ? D.type === Ae.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
828
+ const W = Re(n, m, T.label, "other"), D = s.value.find((U) => U.key === T.key), A = !!D, L = A ? D.type === Ee.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
829
829
  return {
830
830
  accessorKey: T.key,
831
831
  header: () => {
832
832
  const U = H("FmIcon");
833
- return Be(
833
+ return Pe(
834
834
  "button",
835
835
  {
836
836
  type: "button",
837
- class: `w-full flex items-center gap-1 group/select-header select-none ${T.type === "NUMERIC" ? "justify-end" : "justify-start"} ${W ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
837
+ class: `w-full flex items-center gap-1 group/select-header select-none ${T.type === "NUMERIC" ? "justify-end" : "justify-start"} ${A ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
838
838
  onClick: () => ce(T.key)
839
839
  },
840
840
  [
841
- Be(
841
+ Pe(
842
842
  "span",
843
843
  { class: `${T.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
844
- E
844
+ W
845
845
  ),
846
- Be(U, {
846
+ Pe(U, {
847
847
  name: L,
848
- color: W ? "primary" : "neutral-gray-400",
848
+ color: A ? "primary" : "neutral-gray-400",
849
849
  size: "sm",
850
850
  class: "transition-transform",
851
851
  style: L === "arrow_upward" ? "transform: translateY(-1px);" : ""
@@ -856,7 +856,7 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
856
856
  cell: (U) => {
857
857
  var Q, K;
858
858
  const te = V(U.getValue()), ae = (K = (Q = U == null ? void 0 : U.row) == null ? void 0 : Q.original) == null ? void 0 : K.isRollup;
859
- return Be(
859
+ return Pe(
860
860
  "div",
861
861
  {
862
862
  class: [
@@ -880,30 +880,30 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
880
880
  ), G(
881
881
  [() => ee.value],
882
882
  async () => {
883
- var W;
883
+ var A;
884
884
  await J();
885
- const p = (W = h.value) == null ? void 0 : W.$el;
885
+ const p = (A = h.value) == null ? void 0 : A.$el;
886
886
  if (!p) return;
887
887
  const T = p.querySelector("table");
888
888
  if (!T) return;
889
889
  T.classList.add(pe.value ? "table-fixed" : "table-auto");
890
- let E, D;
891
- c.value ? (v(), E = i.value, D = r.value) : (D = t.value.rowHeight, E = t.value.colWidths), typeof D == "number" && b(D, p), E == null || E.forEach((L, U) => {
890
+ let W, D;
891
+ c.value ? (v(), W = i.value, D = r.value) : (D = t.value.rowHeight, W = t.value.colWidths), typeof D == "number" && b(D, p), W == null || W.forEach((L, U) => {
892
892
  x(U, L, p);
893
893
  });
894
894
  },
895
895
  { immediate: !0 }
896
896
  ), (p, T) => {
897
- const E = H("FmTable");
898
- return A(), O(de, null, [
899
- M("div", Wa, [
897
+ const W = H("FmTable");
898
+ return E(), O(de, null, [
899
+ M("div", Aa, [
900
900
  xe(p.$slots, "menu")
901
901
  ]),
902
- I(E, {
902
+ I(W, {
903
903
  ref_key: "table",
904
904
  ref: h,
905
905
  "column-defs": ee.value,
906
- "row-data": P.value,
906
+ "row-data": $.value,
907
907
  "search-value": o.value,
908
908
  "page-size": g.value,
909
909
  "shrink-at": !1,
@@ -912,9 +912,9 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
912
912
  }, {
913
913
  "pin-top": Y(() => [
914
914
  M("tbody", null, [
915
- M("tr", Aa, [
916
- (A(!0), O(de, null, Ft(k.value, (D, W) => (A(), O("td", {
917
- key: `${l(Ie)()}_${W}`,
915
+ M("tr", Ea, [
916
+ (E(!0), O(de, null, Ft(k.value, (D, A) => (E(), O("td", {
917
+ key: `${l(Ie)()}_${A}`,
918
918
  class: "h-[48px] text-fm-color-typo-primary px-16"
919
919
  }, [
920
920
  M("span", {
@@ -924,8 +924,8 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
924
924
  pe.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
925
925
  ])
926
926
  }, [
927
- M("p", Ea, Ee(D.rowType === "NUMERIC" ? l(Ze)(D.main) : D.main), 1),
928
- M("p", Va, Ee(D.comparison ? D.rowType === "NUMERIC" ? `(${l(Ze)(D.comparison)})` : `(${D.comparison})` : ""), 1)
927
+ M("p", Wa, We(D.rowType === "NUMERIC" ? l(Ze)(D.main) : D.main), 1),
928
+ M("p", Va, We(D.comparison ? D.rowType === "NUMERIC" ? `(${l(Ze)(D.comparison)})` : `(${D.comparison})` : ""), 1)
929
929
  ], 2)
930
930
  ]))), 128))
931
931
  ])
@@ -936,7 +936,7 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
936
936
  ], 64);
937
937
  };
938
938
  }
939
- }), Pa = /* @__PURE__ */ se({
939
+ }), $a = /* @__PURE__ */ se({
940
940
  __name: "WidgetStackBarChart",
941
941
  props: /* @__PURE__ */ me({
942
942
  tileIndex: {}
@@ -976,7 +976,7 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
976
976
  J(() => v());
977
977
  }), (h, z) => {
978
978
  const d = H("FmBarChart");
979
- return A(), O(de, null, [
979
+ return E(), O(de, null, [
980
980
  xe(h.$slots, "menu"),
981
981
  I(d, {
982
982
  ref_key: "chartRef",
@@ -1005,7 +1005,7 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
1005
1005
  ], 64);
1006
1006
  };
1007
1007
  }
1008
- }), $a = /* @__PURE__ */ se({
1008
+ }), Ba = /* @__PURE__ */ se({
1009
1009
  __name: "WidgetStackLineChart",
1010
1010
  props: /* @__PURE__ */ me({
1011
1011
  tileIndex: {}
@@ -1051,7 +1051,7 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
1051
1051
  J(() => z());
1052
1052
  }), (o, y) => {
1053
1053
  const g = H("FmLineChart");
1054
- return A(), O(de, null, [
1054
+ return E(), O(de, null, [
1055
1055
  xe(o.$slots, "menu"),
1056
1056
  I(g, {
1057
1057
  ref_key: "chartRef",
@@ -1094,7 +1094,7 @@ const Da = "/assets/processTableData.worker-DphUPEW7.js", Wa = { class: "my-4" }
1094
1094
  "col-span-11",
1095
1095
  "col-span-12"
1096
1096
  ];
1097
- function Ba(e) {
1097
+ function Pa(e) {
1098
1098
  return e < 12 ? ze[e - 1] : ze[11];
1099
1099
  }
1100
1100
  function Ia(e) {
@@ -1149,7 +1149,7 @@ const Na = /* @__PURE__ */ se({
1149
1149
  J(() => z());
1150
1150
  }), (o, y) => {
1151
1151
  const g = H("FmLineChart");
1152
- return A(), O(de, null, [
1152
+ return E(), O(de, null, [
1153
1153
  xe(o.$slots, "menu"),
1154
1154
  I(g, {
1155
1155
  ref_key: "chartRef",
@@ -1213,7 +1213,7 @@ const Na = /* @__PURE__ */ se({
1213
1213
  }
1214
1214
  return (v, h) => {
1215
1215
  const z = H("FmRadio"), d = H("FmRadioGroup"), o = H("FmButton"), y = H("FmDialog");
1216
- return A(), j(y, {
1216
+ return E(), j(y, {
1217
1217
  modelValue: R.value,
1218
1218
  "onUpdate:modelValue": h[2] || (h[2] = (g) => R.value = g),
1219
1219
  overlay: !0,
@@ -1302,23 +1302,23 @@ const Na = /* @__PURE__ */ se({
1302
1302
  const n = u(!0), m = re(e, "modelValue"), t = m.value.widget.config, { t: w, te: R } = qe(), C = e, S = u(null), F = u(t.rollup), s = u(Ie()), c = u(t.drillDimension), i = f(() => {
1303
1303
  if (ge.value.length > 0) {
1304
1304
  const a = ge.value.findIndex(
1305
- (B) => B.value === c.value
1305
+ (P) => P.value === c.value
1306
1306
  );
1307
1307
  return a >= 0 ? a : 0;
1308
1308
  } else
1309
1309
  return -1;
1310
1310
  }), r = f(() => i.value !== 0), x = f(
1311
1311
  () => i.value != ge.value.length - 1
1312
- ), b = u(t.showTitle ?? !0), v = u(t.titleFontSize ?? 14), h = u(t.titleBold ?? !1), z = u(t.titleItalic ?? !1), d = u(t.titleUnderline ?? !1), o = u(t.chartWidth ?? void 0), y = u(t.chartHeight ?? void 0), g = u(t.showLabel ?? !1), k = u(t.labelAlign ?? tt.center), V = u(t.labelAnchor ?? et.center), P = u(t.labelRotation ?? 0), $ = u(t.labelOffset ?? 0), N = u(t.labelFontSize ?? 12), ie = f(() => t.showSearchBar), Z = u(t.showX ?? !0), ce = u(t.xPosition ?? at.bottom), pe = u(t.showXGrid ?? !1), ee = u(t.showXTick ?? !0), p = u(t.xTickFontSize ?? 12), T = u(t.showXTitle ?? !1), E = u(t.xTitle ?? ""), D = u(t.xTitleFontSize ?? 12), W = u(t.showY ?? !0), L = u(t.yPosition ?? ot.left), U = u(t.showYGrid ?? !1), te = u(t.showYTick ?? !0), ae = u(t.yTickFontSize ?? 12), Q = u(t.showYTitle ?? !1), K = u(t.yTitle ?? ""), Ce = u(t.yTitleFontSize ?? 12), ue = u(t.showLegend ?? void 0), fe = u(t.legendPosition ?? lt.top), ve = u(t.usePointStyle ?? !0), Ue = u(t.legendMaxHeight), rt = u(t.legendMaxWidth), it = u(t.rowHeight ?? 0), ct = u(t.colWidths ?? []), Oe = u(!1), Xe = u(""), { breakpoints: Se, getBreakpointsBoundary: De } = Lt(), ut = u(), X = f(
1312
+ ), b = u(t.showTitle ?? !0), v = u(t.titleFontSize ?? 14), h = u(t.titleBold ?? !1), z = u(t.titleItalic ?? !1), d = u(t.titleUnderline ?? !1), o = u(t.chartWidth ?? void 0), y = u(t.chartHeight ?? void 0), g = u(t.showLabel ?? !1), k = u(t.labelAlign ?? tt.center), V = u(t.labelAnchor ?? et.center), $ = u(t.labelRotation ?? 0), B = u(t.labelOffset ?? 0), N = u(t.labelFontSize ?? 12), ie = f(() => t.showSearchBar), Z = u(t.showX ?? !0), ce = u(t.xPosition ?? at.bottom), pe = u(t.showXGrid ?? !1), ee = u(t.showXTick ?? !0), p = u(t.xTickFontSize ?? 12), T = u(t.showXTitle ?? !1), W = u(t.xTitle ?? ""), D = u(t.xTitleFontSize ?? 12), A = u(t.showY ?? !0), L = u(t.yPosition ?? ot.left), U = u(t.showYGrid ?? !1), te = u(t.showYTick ?? !0), ae = u(t.yTickFontSize ?? 12), Q = u(t.showYTitle ?? !1), K = u(t.yTitle ?? ""), Ce = u(t.yTitleFontSize ?? 12), ue = u(t.showLegend ?? void 0), fe = u(t.legendPosition ?? lt.top), ve = u(t.usePointStyle ?? !0), Ue = u(t.legendMaxHeight), rt = u(t.legendMaxWidth), it = u(t.rowHeight ?? 0), ct = u(t.colWidths ?? []), Oe = u(!1), Xe = u(""), { breakpoints: Se, getBreakpointsBoundary: De } = Lt(), ut = u(), X = f(
1313
1313
  () => C.customScreenWidth === void 0 ? window.innerWidth : C.customScreenWidth
1314
1314
  ), Dt = f(
1315
1315
  () => (X == null ? void 0 : X.value) > De("xs")[1] && (X == null ? void 0 : X.value) <= De("sm")[1]
1316
- ), Wt = f(
1316
+ ), At = f(
1317
1317
  () => (X == null ? void 0 : X.value) > De("sm")[1] && (X == null ? void 0 : X.value) <= De("md")[1]
1318
- ), At = f(() => (X == null ? void 0 : X.value) > De("md")[1]), Et = f(() => {
1318
+ ), Et = f(() => (X == null ? void 0 : X.value) > De("md")[1]), Wt = f(() => {
1319
1319
  const a = m.value.size.width;
1320
- return At.value || Wt.value ? Ba(a) : Dt.value ? Ia(a) : Ma(a);
1321
- }), Pe = f(
1320
+ return Et.value || At.value ? Pa(a) : Dt.value ? Ia(a) : Ma(a);
1321
+ }), $e = f(
1322
1322
  () => va.find((a) => a.type === m.value.widget.type)
1323
1323
  ), ke = St(() => {
1324
1324
  var a;
@@ -1329,11 +1329,11 @@ const Na = /* @__PURE__ */ se({
1329
1329
  case _.BarChart:
1330
1330
  return ba;
1331
1331
  case _.StackBarChart:
1332
- return Pa;
1332
+ return $a;
1333
1333
  case _.LineChart:
1334
1334
  return Na;
1335
1335
  case _.StackLineChart:
1336
- return $a;
1336
+ return Ba;
1337
1337
  case _.Circular:
1338
1338
  return wa;
1339
1339
  case _.Scorecard:
@@ -1352,10 +1352,10 @@ const Na = /* @__PURE__ */ se({
1352
1352
  dateRange: dt,
1353
1353
  compareDateRange: Ht,
1354
1354
  timeRange: ht,
1355
- globalFilters: Pt,
1355
+ globalFilters: $t,
1356
1356
  isGlobalFiltersLoading: mt
1357
- } = Le(Ne()), { businessId: $t } = Le(nt()), { businessLoadedId: Bt, businessDataVersion: Ge } = Le(Ne());
1358
- f(() => Bt.value === $t.value && Ye.value.length > 0 && !mt.value);
1357
+ } = Le(Ne()), { businessId: Bt } = Le(nt()), { businessLoadedId: Pt, businessDataVersion: Ge } = Le(Ne());
1358
+ f(() => Pt.value === Bt.value && Ye.value.length > 0 && !mt.value);
1359
1359
  const It = u(!0), q = f(() => {
1360
1360
  const a = JSON.parse(JSON.stringify(m.value.widget));
1361
1361
  return {
@@ -1381,8 +1381,8 @@ const Na = /* @__PURE__ */ se({
1381
1381
  showLabel: g.value,
1382
1382
  labelAnchor: V.value,
1383
1383
  labelAlign: k.value,
1384
- labelRotation: P.value,
1385
- labelOffset: $.value,
1384
+ labelRotation: $.value,
1385
+ labelOffset: B.value,
1386
1386
  labelFontSize: N.value,
1387
1387
  showX: Z.value,
1388
1388
  xPosition: ce.value,
@@ -1390,9 +1390,9 @@ const Na = /* @__PURE__ */ se({
1390
1390
  showXTick: ee.value,
1391
1391
  xTickFontSize: p.value,
1392
1392
  showXTitle: T.value,
1393
- xTitle: E.value,
1393
+ xTitle: W.value,
1394
1394
  xTitleFontSize: D.value,
1395
- showY: W.value,
1395
+ showY: A.value,
1396
1396
  yPosition: L.value,
1397
1397
  showYGrid: U.value,
1398
1398
  showYTick: te.value,
@@ -1433,30 +1433,30 @@ const Na = /* @__PURE__ */ se({
1433
1433
  }), ft = f(() => {
1434
1434
  const { config: a } = m.value.widget;
1435
1435
  if (a.rollup != null) {
1436
- const B = [...a.dimensions].filter((oe) => !oe.hide);
1437
- return B.sort(
1438
- (oe, We) => (a.rowIds || []).indexOf(Ke(oe)) - (a.rowIds || []).indexOf(Ke(We))
1436
+ const P = [...a.dimensions].filter((oe) => !oe.hide);
1437
+ return P.sort(
1438
+ (oe, Ae) => (a.rowIds || []).indexOf(Ke(oe)) - (a.rowIds || []).indexOf(Ke(Ae))
1439
1439
  ), [
1440
1440
  { label: Re(w, R, "None", "other"), value: "none" },
1441
1441
  { label: Re(w, R, "Grand Total", "other"), value: 0 },
1442
- ...[...B].slice(0, B.length - 1).map((oe, We) => ({
1442
+ ...[...P].slice(0, P.length - 1).map((oe, Ae) => ({
1443
1443
  label: Re(w, R, oe.label, "other"),
1444
- value: We + 1
1444
+ value: Ae + 1
1445
1445
  }))
1446
1446
  ];
1447
1447
  }
1448
1448
  return [];
1449
1449
  }), ge = f(() => {
1450
1450
  const { config: a } = q.value;
1451
- return a.isDrillable ? a.dimensions.map((B) => ({
1452
- label: Re(w, R, B.label, "other"),
1453
- value: Ke(B)
1451
+ return a.isDrillable ? a.dimensions.map((P) => ({
1452
+ label: Re(w, R, P.label, "other"),
1453
+ value: Ke(P)
1454
1454
  })) : [];
1455
1455
  });
1456
1456
  G(
1457
1457
  () => m.value.widget.config,
1458
1458
  (a) => {
1459
- F.value = a.rollup, b.value = a.showTitle ?? !0, v.value = a.titleFontSize ?? 14, h.value = a.titleBold ?? !1, z.value = a.titleItalic ?? !1, d.value = a.titleUnderline ?? !1, y.value = a.chartHeight ?? void 0, o.value = a.chartWidth ?? void 0, g.value = a.showLabel ?? !1, k.value = a.labelAlign ?? tt.center, V.value = a.labelAnchor ?? et.center, P.value = a.labelRotation ?? 0, $.value = a.labelOffset ?? 0, N.value = a.labelFontSize ?? 12, Z.value = a.showX ?? !0, ce.value = a.xPosition ?? at.bottom, pe.value = a.showXGrid ?? !1, ee.value = a.showXTick ?? !0, p.value = a.xTickFontSize ?? 12, T.value = a.showXTitle ?? !1, E.value = a.xTitle ?? "", D.value = a.xTitleFontSize ?? 12, W.value = a.showY ?? !0, L.value = a.yPosition ?? ot.left, U.value = a.showYGrid ?? !1, te.value = a.showYTick ?? !0, ae.value = a.yTickFontSize ?? 12, Q.value = a.showYTitle ?? !1, K.value = a.yTitle ?? "", Ce.value = a.yTitleFontSize ?? 12, ue.value = a.showLegend ?? void 0, fe.value = a.legendPosition ?? lt.top, ve.value = a.usePointStyle ?? !0, Ue.value = a.legendMaxHeight, rt.value = a.legendMaxWidth, it.value = a.rowHeight ?? 0, ct.value = a.colWidths ?? [];
1459
+ F.value = a.rollup, b.value = a.showTitle ?? !0, v.value = a.titleFontSize ?? 14, h.value = a.titleBold ?? !1, z.value = a.titleItalic ?? !1, d.value = a.titleUnderline ?? !1, y.value = a.chartHeight ?? void 0, o.value = a.chartWidth ?? void 0, g.value = a.showLabel ?? !1, k.value = a.labelAlign ?? tt.center, V.value = a.labelAnchor ?? et.center, $.value = a.labelRotation ?? 0, B.value = a.labelOffset ?? 0, N.value = a.labelFontSize ?? 12, Z.value = a.showX ?? !0, ce.value = a.xPosition ?? at.bottom, pe.value = a.showXGrid ?? !1, ee.value = a.showXTick ?? !0, p.value = a.xTickFontSize ?? 12, T.value = a.showXTitle ?? !1, W.value = a.xTitle ?? "", D.value = a.xTitleFontSize ?? 12, A.value = a.showY ?? !0, L.value = a.yPosition ?? ot.left, U.value = a.showYGrid ?? !1, te.value = a.showYTick ?? !0, ae.value = a.yTickFontSize ?? 12, Q.value = a.showYTitle ?? !1, K.value = a.yTitle ?? "", Ce.value = a.yTitleFontSize ?? 12, ue.value = a.showLegend ?? void 0, fe.value = a.legendPosition ?? lt.top, ve.value = a.usePointStyle ?? !0, Ue.value = a.legendMaxHeight, rt.value = a.legendMaxWidth, it.value = a.rowHeight ?? 0, ct.value = a.colWidths ?? [];
1460
1460
  },
1461
1461
  { deep: !0 }
1462
1462
  ), G([() => F.value], () => {
@@ -1468,7 +1468,7 @@ const Na = /* @__PURE__ */ se({
1468
1468
  () => ht.value,
1469
1469
  () => Ht.value,
1470
1470
  () => Ye.value,
1471
- () => Pt.value,
1471
+ () => $t.value,
1472
1472
  () => Ge.value
1473
1473
  ],
1474
1474
  () => {
@@ -1487,7 +1487,7 @@ const Na = /* @__PURE__ */ se({
1487
1487
  Se.value.sm || Se.value.md || Se.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", ke)) : removeEventListener("resize", ke);
1488
1488
  });
1489
1489
  const vt = st();
1490
- let $e;
1490
+ let Be;
1491
1491
  async function gt() {
1492
1492
  if (q.value.config.schemaNames.length <= 0 && !(q.value.config.dimensions.length <= 0 || q.value.config.metrics.length <= 0)) {
1493
1493
  vt.open({
@@ -1497,9 +1497,9 @@ const Na = /* @__PURE__ */ se({
1497
1497
  return;
1498
1498
  }
1499
1499
  try {
1500
- n.value = !0, $e && $e.abort(), $e = new AbortController();
1501
- const a = $e.signal, B = Ge.value, oe = await St(da, 500)(q.value, a, m.value.id);
1502
- Ge.value === B && (Te.value = oe, s.value = Ie()), n.value = !1;
1500
+ n.value = !0, Be && Be.abort(), Be = new AbortController();
1501
+ const a = Be.signal, P = Ge.value, oe = await St(da, 500)(q.value, a, m.value.id);
1502
+ Ge.value === P && (Te.value = oe, s.value = Ie()), n.value = !1;
1503
1503
  } catch (a) {
1504
1504
  a.code !== "ERR_CANCELED" && (Te.value = null, vt.open({ message: `Invalid chart ${q.value.type}`, type: "error" }), console.log(a), n.value = !1);
1505
1505
  }
@@ -1537,29 +1537,29 @@ const Na = /* @__PURE__ */ se({
1537
1537
  }) : a === Fe.PDF && (yt.value = a, bt.value = C.index, Oe.value = !0);
1538
1538
  }
1539
1539
  })), Yt = q.value.type === _.Spacer ? "flat" : "outlined", Gt = q.value.type === _.Spacer ? "p-0" : "p-16";
1540
- return (a, B) => {
1541
- const oe = H("FmTooltip"), We = H("FmSearch"), jt = H("FmCheckbox"), je = H("FmButton"), Jt = H("FmSelect"), Kt = H("FmMenuItem"), Zt = H("FmMenu"), Qt = H("FmForm"), ea = H("FmCircularProgress"), ta = H("FmCard");
1542
- return A(), j(ta, {
1540
+ return (a, P) => {
1541
+ const oe = H("FmTooltip"), Ae = H("FmSearch"), jt = H("FmCheckbox"), je = H("FmButton"), Jt = H("FmSelect"), Kt = H("FmMenuItem"), Zt = H("FmMenu"), Qt = H("FmForm"), ea = H("FmCircularProgress"), ta = H("FmCard");
1542
+ return E(), j(ta, {
1543
1543
  ref_key: "tileCard",
1544
1544
  ref: S,
1545
- class: Me(`${Et.value} ${l(Gt)}`),
1545
+ class: Me(`${Wt.value} ${l(Gt)}`),
1546
1546
  variant: l(Yt)
1547
1547
  }, {
1548
1548
  default: Y(() => [
1549
1549
  I(Oa, {
1550
1550
  modelValue: Oe.value,
1551
- "onUpdate:modelValue": B[0] || (B[0] = (_e) => Oe.value = _e),
1551
+ "onUpdate:modelValue": P[0] || (P[0] = (_e) => Oe.value = _e),
1552
1552
  "report-type": yt.value,
1553
1553
  index: bt.value
1554
1554
  }, null, 8, ["modelValue", "report-type", "index"]),
1555
- !n.value && !l(mt) ? (A(), O("div", {
1555
+ !n.value && !l(mt) ? (E(), O("div", {
1556
1556
  key: 0,
1557
1557
  style: he({ height: ut.value })
1558
1558
  }, [
1559
- (A(), j(sa(Vt.value), {
1559
+ (E(), j(sa(Vt.value), {
1560
1560
  key: s.value,
1561
1561
  modelValue: pt.value,
1562
- "onUpdate:modelValue": B[4] || (B[4] = (_e) => pt.value = _e),
1562
+ "onUpdate:modelValue": P[4] || (P[4] = (_e) => pt.value = _e),
1563
1563
  "tile-index": C.index
1564
1564
  }, {
1565
1565
  menu: Y(() => [
@@ -1575,7 +1575,7 @@ const Na = /* @__PURE__ */ se({
1575
1575
  disabled: !q.value.description
1576
1576
  }, {
1577
1577
  default: Y(() => [
1578
- b.value !== !1 ? (A(), O("p", {
1578
+ b.value !== !1 ? (E(), O("p", {
1579
1579
  key: 0,
1580
1580
  style: he({
1581
1581
  fontSize: v.value + "px",
@@ -1587,25 +1587,25 @@ const Na = /* @__PURE__ */ se({
1587
1587
  v.value <= 18 ? "fm-typo-en-body-md-400" : "",
1588
1588
  q.value.description ? "border-b-2 border-dashed border-gray-300" : ""
1589
1589
  ]])
1590
- }, Ee(l(Re)(l(w), l(R), q.value.title, "other")), 7)) : be("", !0)
1590
+ }, We(l(Re)(l(w), l(R), q.value.title, "other")), 7)) : be("", !0)
1591
1591
  ]),
1592
1592
  _: 1
1593
1593
  }, 8, ["content", "disabled"]),
1594
- (_e = Pe.value) != null && _e.showSearchBar ? (A(), j(We, {
1594
+ (_e = $e.value) != null && _e.showSearchBar ? (E(), j(Ae, {
1595
1595
  key: 0,
1596
1596
  modelValue: Xe.value,
1597
- "onUpdate:modelValue": B[1] || (B[1] = (le) => Xe.value = le),
1597
+ "onUpdate:modelValue": P[1] || (P[1] = (le) => Xe.value = le),
1598
1598
  class: "grow"
1599
- }, null, 8, ["modelValue"])) : (A(), O("div", Xa)),
1599
+ }, null, 8, ["modelValue"])) : (E(), O("div", Xa)),
1600
1600
  ra(I(jt, {
1601
1601
  modelValue: g.value,
1602
- "onUpdate:modelValue": B[2] || (B[2] = (le) => g.value = le),
1602
+ "onUpdate:modelValue": P[2] || (P[2] = (le) => g.value = le),
1603
1603
  label: "Label",
1604
1604
  value: !1
1605
1605
  }, null, 8, ["modelValue"]), [
1606
- [ia, (wt = Pe.value) == null ? void 0 : wt.showLabel]
1606
+ [ia, (wt = $e.value) == null ? void 0 : wt.showLabel]
1607
1607
  ]),
1608
- (xt = Pe.value) != null && xt.showDrillDimension && ge.value.length > 0 ? (A(), O("div", Ya, [
1608
+ (xt = $e.value) != null && xt.showDrillDimension && ge.value.length > 0 ? (E(), O("div", Ya, [
1609
1609
  I(je, {
1610
1610
  icon: "arrow_upward",
1611
1611
  variant: "tertiary",
@@ -1619,14 +1619,14 @@ const Na = /* @__PURE__ */ se({
1619
1619
  onClick: Ot
1620
1620
  }, null, 8, ["disabled"])
1621
1621
  ])) : be("", !0),
1622
- (Ct = Pe.value) != null && Ct.showRollup && ft.value.length > 0 ? (A(), j(Jt, {
1622
+ (Ct = $e.value) != null && Ct.showRollup && ft.value.length > 0 ? (E(), j(Jt, {
1623
1623
  key: 3,
1624
1624
  modelValue: F.value,
1625
- "onUpdate:modelValue": B[3] || (B[3] = (le) => F.value = le),
1625
+ "onUpdate:modelValue": P[3] || (P[3] = (le) => F.value = le),
1626
1626
  class: "w-[150px]",
1627
1627
  items: ft.value
1628
1628
  }, null, 8, ["modelValue", "items"])) : be("", !0),
1629
- C.hideExport ? be("", !0) : (A(), j(Zt, {
1629
+ C.hideExport ? be("", !0) : (E(), j(Zt, {
1630
1630
  key: 4,
1631
1631
  shift: !0
1632
1632
  }, {
@@ -1637,7 +1637,7 @@ const Na = /* @__PURE__ */ se({
1637
1637
  })
1638
1638
  ]),
1639
1639
  default: Y(() => [
1640
- (A(!0), O(de, null, Ft(l(Xt), (le) => (A(), j(Kt, {
1640
+ (E(!0), O(de, null, Ft(l(Xt), (le) => (E(), j(Kt, {
1641
1641
  key: le.value,
1642
1642
  label: le.label,
1643
1643
  onClick: le.onClick
@@ -1652,7 +1652,7 @@ const Na = /* @__PURE__ */ se({
1652
1652
  ]),
1653
1653
  _: 1
1654
1654
  }, 8, ["modelValue", "tile-index"]))
1655
- ], 4)) : (A(), j(ea, { key: 1 }))
1655
+ ], 4)) : (E(), j(ea, { key: 1 }))
1656
1656
  ]),
1657
1657
  _: 1
1658
1658
  }, 8, ["class", "variant"]);