@feedmepos/mf-report 5.6.0-beta.1 → 5.7.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- import { computed as h, defineComponent as U, useModel as G, ref as y, resolveComponent as F, createElementBlock as z, openBlock as x, Fragment as X, renderSlot as Z, createVNode as H, normalizeStyle as Y, unref as r, createElementVNode as A, toDisplayString as ne, withCtx as M, createBlock as V, createCommentVNode as Q, normalizeClass as me, h as je, watch as se, nextTick as xt, renderList as Ze, mergeModels as _t, onMounted as kt, onUnmounted as Rt, resolveDynamicComponent as Lt, withDirectives as Ft, vShow as Et } from "vue";
2
- import { W as f, v as he, R as Tt, g as Wt, d as Dt, q as zt } from "./v4-DVU_9OHv.js";
1
+ import { computed as h, defineComponent as U, useModel as G, ref as g, resolveComponent as F, createElementBlock as D, openBlock as x, Fragment as X, renderSlot as Z, createVNode as H, normalizeStyle as Y, unref as r, createElementVNode as A, toDisplayString as ne, withCtx as V, createBlock as M, createCommentVNode as Q, normalizeClass as me, h as je, watch as se, nextTick as xt, renderList as Ze, mergeModels as _t, onMounted as kt, onUnmounted as Rt, resolveDynamicComponent as Lt, withDirectives as Ft, vShow as Tt } from "vue";
2
+ import { W as f, v as he, R as Et, g as Wt, d as Dt, q as zt } from "./v4-DVU_9OHv.js";
3
3
  import { u as Re, b as et, a as Le } from "./global-loader-DqYGIXIo.js";
4
4
  import { d as Je } from "./index-BChph3k1.js";
5
- import { storeToRefs as we, defineStore as $t } from "pinia";
6
- import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { storeToRefs as we, defineStore as At } from "pinia";
6
+ import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  import { r as ae } from "./i18n-Cif1I9J2.js";
8
8
  import { _ as Ke } from "./NoData.vue_vue_type_script_setup_true_lang-EVDtMqna.js";
9
- import { useBreakpoints as Ht, useSnackbar as Bt } from "@feedmepos/ui-library";
9
+ import { useBreakpoints as $t, useSnackbar as Pt } from "@feedmepos/ui-library";
10
10
  var be = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(be || {}), O = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(O || {}), Ce = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ce || {}), Se = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Se || {}), xe = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(xe || {}), _e = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(_e || {}), ke = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(ke || {});
11
11
  f.Circular, f.Table, f.BarChart, f.LineChart, f.StackBarChart, f.StackLineChart, f.Scorecard, f.Spacer;
12
- const Pt = [
12
+ const Bt = [
13
13
  {
14
14
  type: f.Circular,
15
15
  showLabel: !1,
@@ -76,7 +76,7 @@ function ye(e) {
76
76
  const t = [e.schemaName, e.name];
77
77
  return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^a-zA-Z0-9]/g, "")), t.join("_").toLowerCase();
78
78
  }
79
- function Vt(e, t) {
79
+ function Mt(e, t) {
80
80
  switch (e) {
81
81
  case f.BarChart:
82
82
  case f.LineChart:
@@ -133,13 +133,13 @@ function tt(e, t, l) {
133
133
  return null;
134
134
  let d = 0;
135
135
  c === 0 ? s === 0 ? d = 0 : d = 1 : d = (s - c) / c;
136
- const u = Mt(d);
136
+ const u = Vt(d);
137
137
  return {
138
138
  value: isNaN(d) ? "" : `${(d * 100).toFixed(0)}%`,
139
139
  icon: u
140
140
  };
141
141
  }
142
- function Mt(e) {
142
+ function Vt(e) {
143
143
  return e > 0 ? {
144
144
  name: "moving",
145
145
  color: "#1F7735",
@@ -209,9 +209,9 @@ const qt = /* @__PURE__ */ U({
209
209
  }), a = h(() => {
210
210
  var p;
211
211
  return ((p = t.value.data) == null ? void 0 : p.datasets) ?? [];
212
- }), s = y(null), { datalabels: c, xCfg: d, yCfg: u, isTransposed: i, legend: v, chartWidth: C, chartHeight: m } = ie(
212
+ }), s = g(null), { datalabels: c, xCfg: d, yCfg: u, isTransposed: i, legend: w, chartWidth: C, chartHeight: m } = ie(
213
213
  t.value
214
- ), g = h(() => a.value.length > 0 ? [
214
+ ), v = h(() => a.value.length > 0 ? [
215
215
  ...a.value.map((p, _) => ({
216
216
  label: p.name,
217
217
  data: p.values,
@@ -221,22 +221,22 @@ const qt = /* @__PURE__ */ U({
221
221
  ] : []);
222
222
  return (p, _) => {
223
223
  const T = F("FmBarChart");
224
- return x(), z(X, null, [
224
+ return x(), D(X, null, [
225
225
  Z(p.$slots, "menu"),
226
226
  H(T, {
227
227
  ref_key: "chartRef",
228
228
  ref: s,
229
229
  class: "bar-chart",
230
- datasets: g.value,
230
+ datasets: v.value,
231
231
  "x-axis": { categories: l.value },
232
232
  "x-cfg": r(d),
233
233
  "y-cfg": r(u),
234
234
  transpose: r(i),
235
235
  legend: {
236
- display: r(v).display ?? !1,
237
- position: r(v).position,
236
+ display: r(w).display ?? !1,
237
+ position: r(w).position,
238
238
  labels: {
239
- usePointStyle: r(v).usePointStyle ?? !0
239
+ usePointStyle: r(w).usePointStyle ?? !0
240
240
  }
241
241
  },
242
242
  datalabels: r(c),
@@ -263,15 +263,15 @@ const qt = /* @__PURE__ */ U({
263
263
  {
264
264
  label: t.value.data.metrics[0],
265
265
  data: t.value.data.datasets.map((i) => i.value),
266
- backgroundColor: t.value.data.datasets.map((i, v) => re({ index: v }))
266
+ backgroundColor: t.value.data.datasets.map((i, w) => re({ index: w }))
267
267
  }
268
268
  ]), u;
269
269
  });
270
270
  return (u, i) => {
271
- const v = F("FmPieChart");
272
- return x(), z(X, null, [
271
+ const w = F("FmPieChart");
272
+ return x(), D(X, null, [
273
273
  Z(u.$slots, "menu"),
274
- H(v, {
274
+ H(w, {
275
275
  class: "circular",
276
276
  percentage: "70%",
277
277
  datasets: d.value,
@@ -320,36 +320,36 @@ const qt = /* @__PURE__ */ U({
320
320
  return "line";
321
321
  }
322
322
  }
323
- const v = h(() => {
323
+ const w = h(() => {
324
324
  var m;
325
325
  return (m = t.value.data) == null ? void 0 : m.sparkline;
326
- }), C = h(() => v.value.datasets.map((m) => ({
326
+ }), C = h(() => w.value.datasets.map((m) => ({
327
327
  label: m.name,
328
328
  data: m.values,
329
329
  fill: !0,
330
330
  color: "#36a2eb"
331
331
  })));
332
- return (m, g) => {
333
- var P;
332
+ return (m, v) => {
333
+ var B;
334
334
  const p = F("FmIcon"), _ = F("FmChip"), T = F("FmTooltip"), q = F("FmLineChart");
335
- return x(), z("div", It, [
335
+ return x(), D("div", It, [
336
336
  Z(m.$slots, "menu"),
337
337
  A("p", Ot, ne(d.value), 1),
338
338
  A("div", Xt, [
339
339
  H(T, {
340
- content: `vs. ${(P = r(s).defaultCompareType) == null ? void 0 : P.split("_").join(" ")}`,
340
+ content: `vs. ${(B = r(s).defaultCompareType) == null ? void 0 : B.split("_").join(" ")}`,
341
341
  placement: "right",
342
342
  "hide-arrow": "",
343
343
  variant: "plain"
344
344
  }, {
345
- default: M(() => [
346
- u.value ? (x(), V(_, {
345
+ default: V(() => [
346
+ u.value ? (x(), M(_, {
347
347
  key: 0,
348
348
  icon: u.value.icon.name,
349
349
  class: me(`bg-${u.value.icon.tailwind}`),
350
350
  compact: ""
351
351
  }, {
352
- default: M(() => [
352
+ default: V(() => [
353
353
  H(p, {
354
354
  name: u.value.icon.name,
355
355
  color: u.value.icon.color
@@ -361,16 +361,16 @@ const qt = /* @__PURE__ */ U({
361
361
  ]),
362
362
  _: 1
363
363
  }, 8, ["icon", "class"])) : Q("", !0),
364
- r(a).endDate !== null && r(a).startDate !== null && u.value === null ? (x(), V(_, {
364
+ r(a).endDate !== null && r(a).startDate !== null && u.value === null ? (x(), M(_, {
365
365
  key: 1,
366
366
  compact: ""
367
367
  }, {
368
- default: M(() => [
368
+ default: V(() => [
369
369
  H(p, {
370
370
  name: "arrow_upward",
371
371
  color: "#C7C7CC"
372
372
  }),
373
- g[0] || (g[0] = A("p", { class: "fm-typo-en-body-md-600 text-fm-color-typo-disabled" }, "N/A", -1))
373
+ v[0] || (v[0] = A("p", { class: "fm-typo-en-body-md-600 text-fm-color-typo-disabled" }, "N/A", -1))
374
374
  ]),
375
375
  _: 1
376
376
  })) : Q("", !0)
@@ -378,8 +378,8 @@ const qt = /* @__PURE__ */ U({
378
378
  _: 1
379
379
  }, 8, ["content"])
380
380
  ]),
381
- v.value ? (x(), z("div", Yt, [
382
- i(v.value.type) === "line" ? (x(), V(q, {
381
+ w.value ? (x(), D("div", Yt, [
382
+ i(w.value.type) === "line" ? (x(), M(q, {
383
383
  key: 0,
384
384
  class: "sparkline",
385
385
  datasets: C.value,
@@ -387,12 +387,12 @@ const qt = /* @__PURE__ */ U({
387
387
  display: !1
388
388
  },
389
389
  datalabels: { display: !1 },
390
- "x-axis": { categories: v.value.dimensions },
390
+ "x-axis": { categories: w.value.dimensions },
391
391
  "y-cfg": { display: !1 },
392
392
  "x-cfg": { display: !1 },
393
393
  "maintain-aspect-ratio": !1
394
394
  }, null, 8, ["datasets", "x-axis"])) : Q("", !0)
395
- ])) : (x(), z("div", Ut, g[1] || (g[1] = [
395
+ ])) : (x(), D("div", Ut, v[1] || (v[1] = [
396
396
  A("div", { class: "sparkline" }, [
397
397
  A("div", { class: "flex flex-col gap-8" }, [
398
398
  A("div"),
@@ -407,9 +407,9 @@ const qt = /* @__PURE__ */ U({
407
407
  }), jt = {};
408
408
  function Jt(e, t) {
409
409
  const l = F("FmMenuDivider");
410
- return x(), V(l);
410
+ return x(), M(l);
411
411
  }
412
- const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimension", Zt = $t(Qt, {
412
+ const Kt = /* @__PURE__ */ Ht(jt, [["render", Jt]]), Qt = "mf-reporttable-dimension", Zt = At(Qt, {
413
413
  state: () => ({
414
414
  rowHeight: 0,
415
415
  colWidths: [],
@@ -419,8 +419,8 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
419
419
  updateRowHeight(e, t) {
420
420
  this.rowHeight = e, this.setRowHeights(e, t);
421
421
  },
422
- updateColWidth(e, t, l) {
423
- this.colWidths[e] = t, this.setColWidths(e, t, l, !0);
422
+ updateColWidth(e, t, l, a) {
423
+ this.colWidths[e] = t, this.setColWidths(e, t, l, a);
424
424
  },
425
425
  setRowHeights(e, t) {
426
426
  const l = (t == null ? void 0 : t.querySelectorAll("thead tr")) ?? [], a = (t == null ? void 0 : t.querySelectorAll("tbody tr")) ?? [];
@@ -431,27 +431,17 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
431
431
  },
432
432
  setColWidths(e, t, l, a = !1) {
433
433
  const s = (l == null ? void 0 : l.querySelectorAll("th")) ?? [];
434
- if (e !== void 0)
435
- if (a)
436
- s.forEach((c, d) => {
437
- const u = this.colWidths[d], i = c;
438
- requestAnimationFrame(() => {
439
- if (u)
440
- i.style.width = `${u}px`;
441
- else {
442
- const v = i.getBoundingClientRect().width;
443
- i.style.width = `${v}px`;
444
- }
445
- });
446
- });
447
- else {
448
- const c = s[e], d = c;
449
- c && (d.style.width = `${t}px`);
450
- }
434
+ if (e === void 0) return;
435
+ const c = s[e], d = a ? this.colWidths[e] : t;
436
+ if (!c || d === void 0) return;
437
+ const u = () => {
438
+ c.style.width = `${d}px`;
439
+ };
440
+ a ? requestAnimationFrame(u) : u();
451
441
  },
452
442
  enableEditMode() {
453
- const e = document.querySelectorAll("th"), t = document.querySelectorAll("td");
454
- e.forEach((l) => l.classList.add("toggleEditResize")), t.forEach((l) => l.classList.add("toggleEditResize")), this.isEditing = !0;
443
+ const e = document.querySelectorAll("th"), t = document.querySelectorAll("td"), l = document.querySelector("table");
444
+ l == null || l.classList.add("table-fixed"), e.forEach((a) => a.classList.add("toggleEditResize")), t.forEach((a) => a.classList.add("toggleEditResize")), this.isEditing = !0;
455
445
  },
456
446
  disableEditMode() {
457
447
  const e = document.querySelectorAll("th"), t = document.querySelectorAll("td"), l = document.querySelectorAll(".col-resize-handle"), a = document.querySelectorAll(".row-resize-handle");
@@ -489,32 +479,32 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
489
479
  resizeCol(e, t) {
490
480
  const l = /* @__PURE__ */ new Map(), a = e.clientX, s = e.target.closest("table"), c = s == null ? void 0 : s.querySelectorAll("th")[t], d = c == null ? void 0 : c.getBoundingClientRect().width, u = l.get(t) ? this.colWidths[t.toString()] || 60 : (l.set(t, !0), d || this.colWidths[t.toString()] || 60), i = c == null ? void 0 : c.querySelector("p");
491
481
  if (!i) return;
492
- const v = i.textContent || "", C = window.getComputedStyle(i), m = `${C.fontWeight} ${C.fontSize} ${C.fontFamily}`, p = document.createElement("canvas").getContext("2d");
482
+ const w = i.textContent || "", C = window.getComputedStyle(i), m = `${C.fontWeight} ${C.fontSize} ${C.fontFamily}`, p = document.createElement("canvas").getContext("2d");
493
483
  if (!p) return;
494
484
  p.font = m;
495
- const _ = p.measureText(v), T = window.getComputedStyle(c), q = parseFloat(T.paddingLeft || "0"), P = parseFloat(T.paddingRight || "0"), n = _.width + q + P;
485
+ const _ = p.measureText(w), T = window.getComputedStyle(c), q = parseFloat(T.paddingLeft || "0"), B = parseFloat(T.paddingRight || "0"), n = _.width + q + B;
496
486
  this.highlightCol(t, !1);
497
- const w = (b) => {
487
+ const y = (b) => {
498
488
  const k = b.clientX - a, R = Math.max(n, u + k);
499
489
  if (s) {
500
- this.updateColWidth(t, R, s);
501
- let $ = 0;
502
- s.querySelectorAll("th").forEach((D, j) => {
503
- $ += j === t ? R : this.colWidths[j] || D.getBoundingClientRect().width;
504
- }), s.classList.remove("w-full"), s.style.width = `${$}px`;
490
+ this.updateColWidth(t, R, s, !0);
491
+ let z = 0;
492
+ s.querySelectorAll("th").forEach((P, j) => {
493
+ z += j === t ? R : this.colWidths[j] || P.getBoundingClientRect().width;
494
+ }), s.classList.remove("w-full"), s.style.width = `${z}px`;
505
495
  const E = s == null ? void 0 : s.parentElement;
506
496
  if (E) {
507
- const D = E.scrollWidth, j = E.scrollLeft;
508
- E.offsetWidth + j >= D - 100 && (E.scrollLeft = D);
497
+ const P = E.scrollWidth, j = E.scrollLeft;
498
+ E.offsetWidth + j >= P - 100 && (E.scrollLeft = P);
509
499
  }
510
500
  }
511
501
  }, S = () => {
512
502
  ((s == null ? void 0 : s.querySelectorAll("th")) ?? []).forEach((k, R) => {
513
- const $ = k.getBoundingClientRect().width;
514
- this.colWidths[R] = $;
515
- }), this.removeColHighlight(!1), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", S);
503
+ const z = k.getBoundingClientRect().width;
504
+ this.colWidths[R] = z;
505
+ }), this.removeColHighlight(!1), document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", S);
516
506
  };
517
- document.addEventListener("mousemove", w), document.addEventListener("mouseup", S);
507
+ document.addEventListener("mousemove", y), document.addEventListener("mouseup", S);
518
508
  },
519
509
  resizeRow(e) {
520
510
  const t = e.clientY, l = e.target.closest("table"), a = this.rowHeight || 48;
@@ -540,11 +530,14 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
540
530
  };
541
531
  a.forEach((c) => {
542
532
  const d = c.closest("thead") !== null;
543
- c.querySelectorAll(d ? "th" : "td").forEach((i, v) => {
544
- const C = s("col", v), m = s("row", v);
533
+ c.querySelectorAll(d ? "th" : "td").forEach((i, w) => {
534
+ const C = s("col", w), m = s("row", w);
545
535
  i.appendChild(C), i.appendChild(m);
546
536
  });
547
537
  }), this.enableEditMode();
538
+ },
539
+ cancelResizingChanges() {
540
+ this.disableEditMode();
548
541
  }
549
542
  }
550
543
  }), ea = { class: "my-4" }, ta = {
@@ -558,15 +551,15 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
558
551
  },
559
552
  emits: ["update:modelValue"],
560
553
  setup(e) {
561
- const { t, te: l } = Re(), a = G(e, "modelValue"), { country: s } = Le(), c = Zt(), d = y(null), u = h(() => {
554
+ const { t, te: l } = Re(), a = G(e, "modelValue"), { country: s } = Le(), c = Zt(), d = g(null), u = h(() => {
562
555
  var n;
563
556
  return ((n = a.value.data) == null ? void 0 : n.columns) || [{ label: "", key: "" }];
564
557
  }), i = h(() => {
565
558
  var n;
566
559
  return ((n = a.value.data) == null ? void 0 : n.rows) || [];
567
- }), v = h(() => a.value.filterText), C = h(() => {
568
- var n, w;
569
- if (!(v.value && v.value.trim().length > 0 || !((n = i.value[0]) != null && n.isRollup) && !((w = i.value[i.value.length - 1]) != null && w.isRollup))) {
560
+ }), w = h(() => a.value.filterText), C = h(() => {
561
+ var n, y;
562
+ if (!(w.value && w.value.trim().length > 0 || !((n = i.value[0]) != null && n.isRollup) && !((y = i.value[i.value.length - 1]) != null && y.isRollup))) {
570
563
  if (a.value.rollupPosition === O.top || a.value.rollupPosition === void 0)
571
564
  return O.top;
572
565
  if (a.value.rollupPosition === O.bottom)
@@ -575,12 +568,12 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
575
568
  }), m = h(() => {
576
569
  const b = C.value !== void 0 ? 1 : 0, k = (d.value ? d.value.$el.offsetHeight : 0) - 48;
577
570
  return Math.floor((k - 34.5 - 32) / 48) - b;
578
- }), g = h(() => {
579
- var w, S;
571
+ }), v = h(() => {
572
+ var y, S;
580
573
  let n = [];
581
574
  switch (C.value) {
582
575
  case O.top:
583
- n = [...((w = i.value[0]) == null ? void 0 : w.cells) || []].map((b, k) => {
576
+ n = [...((y = i.value[0]) == null ? void 0 : y.cells) || []].map((b, k) => {
584
577
  var R;
585
578
  return {
586
579
  main: b,
@@ -603,60 +596,60 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
603
596
  return n.length > 0 && n[0].main === "" && (n[0].main = "Grand total"), n;
604
597
  });
605
598
  function p(n) {
606
- const w = {};
599
+ const y = {};
607
600
  for (let S = 0; S < u.value.length; S++)
608
601
  if (u.value[S].key !== "") {
609
602
  const b = n.comparisonCells[S];
610
- w[u.value[S].key] = {
603
+ y[u.value[S].key] = {
611
604
  main: n.cells[S],
612
605
  comparison: b
613
- }, w.isRollup = n.isRollup;
606
+ }, y.isRollup = n.isRollup;
614
607
  }
615
- return w;
608
+ return y;
616
609
  }
617
610
  function _(n) {
618
611
  return [...new Array(n < 0 ? 0 : n)].map(() => {
619
612
  var S;
620
- const w = {};
613
+ const y = {};
621
614
  if ((S = a.value.data) != null && S.columns)
622
615
  for (let b = 0; b < a.value.data.columns.length; b++)
623
- w[a.value.data.columns[b].key] = void 0;
624
- return w;
616
+ y[a.value.data.columns[b].key] = void 0;
617
+ return y;
625
618
  });
626
619
  }
627
620
  function T(n) {
628
- let w = (n == null ? void 0 : n.main) || "";
629
- return w.includes("#") && !w.startsWith("#") && (w = w.split("#")[0]), !n || n.main === "" || n.comparison === "" ? {
630
- main: w
621
+ let y = (n == null ? void 0 : n.main) || "";
622
+ return y.includes("#") && !y.startsWith("#") && (y = y.split("#")[0]), !n || n.main === "" || n.comparison === "" ? {
623
+ main: y
631
624
  } : {
632
- main: w,
625
+ main: y,
633
626
  comparison: n == null ? void 0 : n.comparison,
634
627
  difference: tt(n.main, n.comparison, s)
635
628
  };
636
629
  }
637
630
  const q = h(() => {
638
- var k, R, $;
631
+ var k, R, z;
639
632
  let n = ((k = a.value.data) == null ? void 0 : k.rows) || [];
640
633
  switch (C.value) {
641
634
  case O.bottom:
642
635
  n = (R = n[n.length - 1]) != null && R.isRollup ? n.slice(0, -1) : n;
643
636
  break;
644
637
  case O.top:
645
- n = ($ = n[0]) != null && $.isRollup ? n.slice(1, n.length) : n;
638
+ n = (z = n[0]) != null && z.isRollup ? n.slice(1, n.length) : n;
646
639
  break;
647
640
  }
648
- const w = n.filter((B) => !(v.value !== "" && (B.isRollup === !0 || !B.cells.some(
641
+ const y = n.filter(($) => !(w.value !== "" && ($.isRollup === !0 || !$.cells.some(
649
642
  (E) => {
650
- var D;
651
- return ((E == null ? void 0 : E.toLowerCase()) || "").includes((D = v.value) == null ? void 0 : D.toLowerCase());
643
+ var P;
644
+ return ((E == null ? void 0 : E.toLowerCase()) || "").includes((P = w.value) == null ? void 0 : P.toLowerCase());
652
645
  }
653
- )))).map((B) => p(B)), S = w.length % m.value;
646
+ )))).map(($) => p($)), S = y.length % m.value;
654
647
  let b = 0;
655
- return S > 0 ? b = Math.abs(S - m.value) : w.length === 0 && (b = m.value), w.push(..._(b)), w;
656
- }), P = h(() => {
657
- var w;
648
+ return S > 0 ? b = Math.abs(S - m.value) : y.length === 0 && (b = m.value), y.push(..._(b)), y;
649
+ }), B = h(() => {
650
+ var y;
658
651
  let n = [];
659
- return (w = a.value.data) != null && w.columns && (n = [...a.value.data.columns.map((b) => {
652
+ return (y = a.value.data) != null && y.columns && (n = [...a.value.data.columns.map((b) => {
660
653
  const k = ae(t, l, b.label, "other");
661
654
  return {
662
655
  accessorKey: b.key,
@@ -668,14 +661,14 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
668
661
  k
669
662
  ),
670
663
  cell: (R) => {
671
- var E, D;
672
- const $ = T(R.getValue()), B = (D = (E = R == null ? void 0 : R.row) == null ? void 0 : E.original) == null ? void 0 : D.isRollup;
664
+ var E, P;
665
+ const z = T(R.getValue()), $ = (P = (E = R == null ? void 0 : R.row) == null ? void 0 : E.original) == null ? void 0 : P.isRollup;
673
666
  return je(
674
667
  "div",
675
668
  {
676
- class: `${B ? "fm-typo-en-body-md-600 text-fm-color-typo-secondary" : "fm-typo-en-body-md-400"} ${b.type === "NUMERIC" ? "text-right" : ""} whitespace-normal break-words line-clamp-2`
669
+ class: `${$ ? "fm-typo-en-body-md-600 text-fm-color-typo-secondary" : "fm-typo-en-body-md-400"} ${b.type === "NUMERIC" ? "text-right" : ""} whitespace-normal break-words line-clamp-2`
677
670
  },
678
- [$.main]
671
+ [z.main]
679
672
  );
680
673
  },
681
674
  enableSorting: !1
@@ -683,45 +676,45 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
683
676
  })]), n;
684
677
  });
685
678
  return se(
686
- [() => P.value],
679
+ [() => B.value],
687
680
  async () => {
688
- var k, R, $, B;
681
+ var R, z;
689
682
  await xt();
690
- const n = (k = d.value) == null ? void 0 : k.$el;
683
+ const n = (R = d.value) == null ? void 0 : R.$el;
691
684
  if (!n) return;
692
- const w = n.querySelector("table");
693
- if (!w) return;
694
- const S = (R = a.value.colWidths) == null ? void 0 : R.length;
695
- w.classList.add(S ? "table-fixed" : "table-auto"), c.isEditing && c.enableCellResizing();
685
+ const y = n.querySelector("table");
686
+ if (!y) return;
687
+ const S = !!((z = a.value.colWidths) != null && z.length);
688
+ y.classList.add(S ? "table-fixed" : "table-auto"), c.isEditing && c.enableCellResizing();
696
689
  const b = c.rowHeight || a.value.rowHeight;
697
- typeof b == "number" && c.setRowHeights(b, n), ($ = a.value.colWidths) == null || $.forEach((E, D) => {
698
- c.setColWidths(D, E, n);
699
- }), (B = c.colWidths) == null || B.forEach((E, D) => {
700
- c.setColWidths(D, E, n);
690
+ typeof b == "number" && c.setRowHeights(b, n);
691
+ const k = a.value.colWidths ?? c.colWidths;
692
+ k == null || k.forEach(($, E) => {
693
+ c.setColWidths(E, $, n);
701
694
  });
702
695
  },
703
696
  { immediate: !0 }
704
- ), (n, w) => {
697
+ ), (n, y) => {
705
698
  const S = F("FmTable");
706
- return x(), z(X, null, [
699
+ return x(), D(X, null, [
707
700
  A("div", ea, [
708
701
  Z(n.$slots, "menu")
709
702
  ]),
710
703
  H(S, {
711
704
  ref_key: "table",
712
705
  ref: d,
713
- "column-defs": P.value,
706
+ "column-defs": B.value,
714
707
  "row-data": q.value,
715
- "search-value": v.value,
708
+ "search-value": w.value,
716
709
  "page-size": m.value,
717
710
  "shrink-at": !1,
718
711
  "force-mobile-footer": !0,
719
712
  class: "scrollbar-hide-table"
720
713
  }, {
721
- "pin-top": M(() => [
714
+ "pin-top": V(() => [
722
715
  A("tbody", null, [
723
716
  A("tr", ta, [
724
- (x(!0), z(X, null, Ze(g.value, (b, k) => (x(), z("td", {
717
+ (x(!0), D(X, null, Ze(v.value, (b, k) => (x(), D("td", {
725
718
  key: `${r(he)()}_${k}`,
726
719
  class: "h-[48px] text-fm-color-typo-primary px-16"
727
720
  }, [
@@ -754,9 +747,9 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
754
747
  }), a = h(() => {
755
748
  var p;
756
749
  return ((p = t.value.data) == null ? void 0 : p.datasets) ?? [];
757
- }), s = y(null), { datalabels: c, xCfg: d, yCfg: u, isTransposed: i, legend: v, chartWidth: C, chartHeight: m } = ie(
750
+ }), s = g(null), { datalabels: c, xCfg: d, yCfg: u, isTransposed: i, legend: w, chartWidth: C, chartHeight: m } = ie(
758
751
  t.value
759
- ), g = h(() => a.value.length > 0 ? [
752
+ ), v = h(() => a.value.length > 0 ? [
760
753
  ...a.value.map((p, _) => {
761
754
  let T = p.values;
762
755
  return {
@@ -769,24 +762,24 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
769
762
  ] : []);
770
763
  return (p, _) => {
771
764
  const T = F("FmBarChart");
772
- return x(), z(X, null, [
765
+ return x(), D(X, null, [
773
766
  Z(p.$slots, "menu"),
774
767
  H(T, {
775
768
  ref_key: "chartRef",
776
769
  ref: s,
777
770
  class: "bar-chart",
778
- datasets: g.value,
771
+ datasets: v.value,
779
772
  "x-axis": { categories: l.value },
780
773
  "x-cfg": r(d),
781
774
  "y-cfg": r(u),
782
775
  transpose: r(i),
783
776
  stacked: !0,
784
777
  legend: {
785
- display: r(v).display ?? !1,
786
- position: r(v).position,
778
+ display: r(w).display ?? !1,
779
+ position: r(w).position,
787
780
  maxHeight: 54,
788
781
  labels: {
789
- usePointStyle: r(v).usePointStyle ?? !0
782
+ usePointStyle: r(w).usePointStyle ?? !0
790
783
  }
791
784
  },
792
785
  datalabels: r(c),
@@ -808,29 +801,29 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
808
801
  emits: ["update:modelValue"],
809
802
  setup(e) {
810
803
  const t = G(e, "modelValue"), l = h(() => {
811
- var g;
812
- return ((g = t.value.data) == null ? void 0 : g.xAxis) ?? [];
804
+ var v;
805
+ return ((v = t.value.data) == null ? void 0 : v.xAxis) ?? [];
813
806
  }), a = h(() => {
814
- var g;
815
- return ((g = t.value.data) == null ? void 0 : g.datasets) ?? [];
816
- }), { datalabels: s, xCfg: c, yCfg: d, isTransposed: u, legend: i, chartWidth: v, chartHeight: C } = ie(
807
+ var v;
808
+ return ((v = t.value.data) == null ? void 0 : v.datasets) ?? [];
809
+ }), { datalabels: s, xCfg: c, yCfg: d, isTransposed: u, legend: i, chartWidth: w, chartHeight: C } = ie(
817
810
  t.value
818
811
  ), m = h(() => a.value.length > 0 ? [
819
- ...a.value.map((g, p) => {
820
- let _ = g.values;
812
+ ...a.value.map((v, p) => {
813
+ let _ = v.values;
821
814
  return {
822
- label: g.name,
815
+ label: v.name,
823
816
  data: _,
824
- dash: g.isCompare,
817
+ dash: v.isCompare,
825
818
  fill: !1,
826
- color: re({ index: p, isCompare: g.isCompare })
819
+ color: re({ index: p, isCompare: v.isCompare })
827
820
  };
828
821
  })
829
822
  ] : []);
830
- return (g, p) => {
823
+ return (v, p) => {
831
824
  const _ = F("FmLineChart");
832
- return x(), z(X, null, [
833
- Z(g.$slots, "menu"),
825
+ return x(), D(X, null, [
826
+ Z(v.$slots, "menu"),
834
827
  H(_, {
835
828
  class: "line-chart",
836
829
  datasets: m.value,
@@ -850,7 +843,7 @@ const Kt = /* @__PURE__ */ At(jt, [["render", Jt]]), Qt = "mf-reporttable-dimens
850
843
  datalabels: r(s),
851
844
  "maintain-aspect-ratio": !1,
852
845
  style: Y({
853
- "--chart-width": r(v) !== void 0 ? r(v) + "px" : "97%",
846
+ "--chart-width": r(w) !== void 0 ? r(w) + "px" : "97%",
854
847
  "--chart-height": r(C) !== void 0 ? r(C) + "px" : "calc(100% - 36px)"
855
848
  })
856
849
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
@@ -889,26 +882,26 @@ const ua = /* @__PURE__ */ U({
889
882
  emits: ["update:modelValue"],
890
883
  setup(e) {
891
884
  const t = G(e, "modelValue"), l = h(() => {
892
- var g;
893
- return ((g = t.value.data) == null ? void 0 : g.xAxis) ?? [];
885
+ var v;
886
+ return ((v = t.value.data) == null ? void 0 : v.xAxis) ?? [];
894
887
  }), a = h(() => {
895
- var g;
896
- return ((g = t.value.data) == null ? void 0 : g.datasets) ?? [];
897
- }), { datalabels: s, xCfg: c, yCfg: d, isTransposed: u, legend: i, chartWidth: v, chartHeight: C } = ie(
888
+ var v;
889
+ return ((v = t.value.data) == null ? void 0 : v.datasets) ?? [];
890
+ }), { datalabels: s, xCfg: c, yCfg: d, isTransposed: u, legend: i, chartWidth: w, chartHeight: C } = ie(
898
891
  t.value
899
892
  ), m = h(() => a.value.length > 0 ? [
900
- ...a.value.map((g, p) => ({
901
- label: g.name,
902
- data: g.values,
903
- dash: !!g.isCompare,
893
+ ...a.value.map((v, p) => ({
894
+ label: v.name,
895
+ data: v.values,
896
+ dash: !!v.isCompare,
904
897
  fill: !1,
905
- color: re({ index: p, isCompare: g.isCompare })
898
+ color: re({ index: p, isCompare: v.isCompare })
906
899
  }))
907
900
  ] : []);
908
- return (g, p) => {
901
+ return (v, p) => {
909
902
  const _ = F("FmLineChart");
910
- return x(), z(X, null, [
911
- Z(g.$slots, "menu"),
903
+ return x(), D(X, null, [
904
+ Z(v.$slots, "menu"),
912
905
  H(_, {
913
906
  class: "line-chart",
914
907
  datasets: m.value,
@@ -928,7 +921,7 @@ const ua = /* @__PURE__ */ U({
928
921
  datalabels: r(s),
929
922
  "maintain-aspect-ratio": !1,
930
923
  style: Y({
931
- "--chart-width": r(v) !== void 0 ? r(v) + "px" : "97%",
924
+ "--chart-width": r(w) !== void 0 ? r(w) + "px" : "97%",
932
925
  "--chart-height": r(C) !== void 0 ? r(C) + "px" : "calc(100% - 36px)"
933
926
  })
934
927
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
@@ -959,7 +952,7 @@ const ua = /* @__PURE__ */ U({
959
952
  }),
960
953
  emits: ["update:modelValue"],
961
954
  setup(e) {
962
- const t = y(!0), l = G(e, "modelValue"), a = l.value.widget.config, { t: s, te: c } = Re(), d = e, u = y(null), i = y(a.rollup), v = y(he()), C = y(a.drillDimension), m = h(() => {
955
+ const t = g(!0), l = G(e, "modelValue"), a = l.value.widget.config, { t: s, te: c } = Re(), d = e, u = g(null), i = g(a.rollup), w = g(he()), C = g(a.drillDimension), m = h(() => {
963
956
  if (J.value.length > 0) {
964
957
  const o = J.value.findIndex(
965
958
  (L) => L.value === C.value
@@ -967,15 +960,15 @@ const ua = /* @__PURE__ */ U({
967
960
  return o >= 0 ? o : 0;
968
961
  } else
969
962
  return -1;
970
- }), g = h(() => m.value !== 0), p = h(
963
+ }), v = h(() => m.value !== 0), p = h(
971
964
  () => m.value != J.value.length - 1
972
- ), _ = y(a.showTitle ?? !0), T = y(a.titleFontSize ?? 14), q = y(a.titleBold ?? !1), P = y(a.titleItalic ?? !1), n = y(a.titleUnderline ?? !1), w = y(a.chartWidth ?? void 0), S = y(a.chartHeight ?? void 0), b = y(a.showLabel ?? !1), k = y(a.labelAlign ?? Se.center), R = y(a.labelAnchor ?? Ce.center), $ = y(a.labelRotation ?? 0), B = y(a.labelOffset ?? 0), E = y(a.labelFontSize ?? 12), D = h(() => a.showSearchBar), j = y(a.showX ?? !0), pe = y(a.xPosition ?? xe.bottom), Fe = y(a.showXGrid ?? !1), Ee = y(a.showXTick ?? !0), Te = y(a.xTickFontSize ?? 12), We = y(a.showY ?? !0), De = y(a.yPosition ?? _e.left), ze = y(a.showYGrid ?? !1), $e = y(a.showYTick ?? !0), Ae = y(a.yTickFontSize ?? 12), He = y(a.showLegend ?? void 0), Be = y(a.legendPosition ?? ke.top), Pe = y(a.usePointStyle ?? !0), Ve = y(a.rowHeight ?? 0), Me = y(a.colWidths ?? []), fe = y(""), { breakpoints: N } = Ht(), qe = y(), at = h(() => N.value.lg || N.value.md ? ra(l.value.size.width) : N.value.sm ? ia(l.value.size.width) : ca(l.value.size.width)), ce = h(
973
- () => Pt.find((o) => o.type === l.value.widget.type)
965
+ ), _ = g(a.showTitle ?? !0), T = g(a.titleFontSize ?? 14), q = g(a.titleBold ?? !1), B = g(a.titleItalic ?? !1), n = g(a.titleUnderline ?? !1), y = g(a.chartWidth ?? void 0), S = g(a.chartHeight ?? void 0), b = g(a.showLabel ?? !1), k = g(a.labelAlign ?? Se.center), R = g(a.labelAnchor ?? Ce.center), z = g(a.labelRotation ?? 0), $ = g(a.labelOffset ?? 0), E = g(a.labelFontSize ?? 12), P = h(() => a.showSearchBar), j = g(a.showX ?? !0), pe = g(a.xPosition ?? xe.bottom), Fe = g(a.showXGrid ?? !1), Te = g(a.showXTick ?? !0), Ee = g(a.xTickFontSize ?? 12), We = g(a.showY ?? !0), De = g(a.yPosition ?? _e.left), ze = g(a.showYGrid ?? !1), Ae = g(a.showYTick ?? !0), He = g(a.yTickFontSize ?? 12), $e = g(a.showLegend ?? void 0), Pe = g(a.legendPosition ?? ke.top), Be = g(a.usePointStyle ?? !0), Me = g(a.rowHeight ?? 0), Ve = g(a.colWidths ?? []), fe = g(""), { breakpoints: N } = $t(), qe = g(), at = h(() => N.value.lg || N.value.md ? ra(l.value.size.width) : N.value.sm ? ia(l.value.size.width) : ca(l.value.size.width)), ce = h(
966
+ () => Bt.find((o) => o.type === l.value.widget.type)
974
967
  ), ee = Je(() => {
975
968
  var o;
976
- qe.value = ut((o = u.value) == null ? void 0 : o.$el.offsetWidth), v.value = he();
969
+ qe.value = ut((o = u.value) == null ? void 0 : o.$el.offsetWidth), w.value = he();
977
970
  }), lt = h(() => {
978
- if (Vt(W.value.type, te.value))
971
+ if (Mt(W.value.type, te.value))
979
972
  switch (l.value.widget.type) {
980
973
  case f.BarChart:
981
974
  return qt;
@@ -998,7 +991,7 @@ const ua = /* @__PURE__ */ U({
998
991
  }
999
992
  else
1000
993
  return Ke;
1001
- }), te = y(null), { selectedLocationIds: ve, dateRange: ot, compareDateRange: st, timeRange: nt } = we(et()), { businessId: rt } = we(Le()), W = h(() => {
994
+ }), te = g(null), { selectedLocationIds: ve, dateRange: ot, compareDateRange: st, timeRange: nt } = we(et()), { businessId: rt } = we(Le()), W = h(() => {
1002
995
  const o = JSON.parse(JSON.stringify(l.value.widget));
1003
996
  return {
1004
997
  ...o,
@@ -1016,30 +1009,30 @@ const ua = /* @__PURE__ */ U({
1016
1009
  showTitle: _.value,
1017
1010
  titleFontSize: T.value,
1018
1011
  titleBold: q.value,
1019
- titleItalic: P.value,
1012
+ titleItalic: B.value,
1020
1013
  titleUnderline: n.value,
1021
1014
  chartHeight: S.value,
1022
- chartWidth: w.value,
1015
+ chartWidth: y.value,
1023
1016
  showLabel: b.value,
1024
1017
  labelAnchor: R.value,
1025
1018
  labelAlign: k.value,
1026
- labelRotation: $.value,
1027
- labelOffset: B.value,
1019
+ labelRotation: z.value,
1020
+ labelOffset: $.value,
1028
1021
  labelFontSize: E.value,
1029
1022
  showX: j.value,
1030
1023
  xPosition: pe.value,
1031
1024
  showXGrid: Fe.value,
1032
- showXTick: Ee.value,
1033
- xTickFontSize: Te.value,
1025
+ showXTick: Te.value,
1026
+ xTickFontSize: Ee.value,
1034
1027
  showY: We.value,
1035
1028
  yPosition: De.value,
1036
1029
  showYGrid: ze.value,
1037
- showYTick: $e.value,
1038
- yTickFontSize: Ae.value,
1030
+ showYTick: Ae.value,
1031
+ yTickFontSize: He.value,
1039
1032
  isTransposed: W.value.config.isTransposed,
1040
- showLegend: He.value,
1041
- legendPosition: Be.value,
1042
- usePointStyle: Pe.value
1033
+ showLegend: $e.value,
1034
+ legendPosition: Pe.value,
1035
+ usePointStyle: Be.value
1043
1036
  };
1044
1037
  }
1045
1038
  function ct() {
@@ -1047,8 +1040,8 @@ const ua = /* @__PURE__ */ U({
1047
1040
  data: te.value,
1048
1041
  filterText: fe.value,
1049
1042
  rollupPosition: W.value.config.rollupPosition,
1050
- rowHeight: Ve.value,
1051
- colWidths: Me.value
1043
+ rowHeight: Me.value,
1044
+ colWidths: Ve.value
1052
1045
  };
1053
1046
  }
1054
1047
  const Ne = h(() => {
@@ -1090,7 +1083,7 @@ const ua = /* @__PURE__ */ U({
1090
1083
  se(
1091
1084
  () => l.value.widget.config,
1092
1085
  (o) => {
1093
- i.value = o.rollup, _.value = o.showTitle ?? !0, T.value = o.titleFontSize ?? 14, q.value = o.titleBold ?? !1, P.value = o.titleItalic ?? !1, n.value = o.titleUnderline ?? !1, S.value = o.chartHeight ?? void 0, w.value = o.chartWidth ?? void 0, b.value = o.showLabel ?? !1, k.value = o.labelAlign ?? Se.center, R.value = o.labelAnchor ?? Ce.center, $.value = o.labelRotation ?? 0, B.value = o.labelOffset ?? 0, E.value = o.labelFontSize ?? 12, j.value = o.showX ?? !0, pe.value = o.xPosition ?? xe.bottom, Fe.value = o.showXGrid ?? !1, Ee.value = o.showXTick ?? !0, Te.value = o.xTickFontSize ?? 12, We.value = o.showY ?? !0, De.value = o.yPosition ?? _e.left, ze.value = o.showYGrid ?? !1, $e.value = o.showYTick ?? !0, Ae.value = o.yTickFontSize ?? 12, He.value = o.showLegend ?? void 0, Be.value = o.legendPosition ?? ke.top, Pe.value = o.usePointStyle ?? !0, Ve.value = o.rowHeight ?? 0, Me.value = o.colWidths ?? [];
1086
+ i.value = o.rollup, _.value = o.showTitle ?? !0, T.value = o.titleFontSize ?? 14, q.value = o.titleBold ?? !1, B.value = o.titleItalic ?? !1, n.value = o.titleUnderline ?? !1, S.value = o.chartHeight ?? void 0, y.value = o.chartWidth ?? void 0, b.value = o.showLabel ?? !1, k.value = o.labelAlign ?? Se.center, R.value = o.labelAnchor ?? Ce.center, z.value = o.labelRotation ?? 0, $.value = o.labelOffset ?? 0, E.value = o.labelFontSize ?? 12, j.value = o.showX ?? !0, pe.value = o.xPosition ?? xe.bottom, Fe.value = o.showXGrid ?? !1, Te.value = o.showXTick ?? !0, Ee.value = o.xTickFontSize ?? 12, We.value = o.showY ?? !0, De.value = o.yPosition ?? _e.left, ze.value = o.showYGrid ?? !1, Ae.value = o.showYTick ?? !0, He.value = o.yTickFontSize ?? 12, $e.value = o.showLegend ?? void 0, Pe.value = o.legendPosition ?? ke.top, Be.value = o.usePointStyle ?? !0, Me.value = o.rowHeight ?? 0, Ve.value = o.colWidths ?? [];
1094
1087
  },
1095
1088
  { deep: !0 }
1096
1089
  ), se([() => i.value], () => {
@@ -1122,7 +1115,7 @@ const ua = /* @__PURE__ */ U({
1122
1115
  }), Rt(() => {
1123
1116
  N.value.sm || N.value.md || N.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", ee)) : removeEventListener("resize", ee);
1124
1117
  });
1125
- const Oe = Bt();
1118
+ const Oe = Pt();
1126
1119
  let ue;
1127
1120
  const Xe = Je(async function() {
1128
1121
  if (W.value.config.schemaNames.length <= 0 && !(W.value.config.dimensions.length <= 0 || W.value.config.metrics.length <= 0)) {
@@ -1135,7 +1128,7 @@ const ua = /* @__PURE__ */ U({
1135
1128
  try {
1136
1129
  t.value = !0, ue && ue.abort(), ue = new AbortController();
1137
1130
  const L = ue.signal;
1138
- te.value = await zt(W.value, L), v.value = he(), t.value = !1;
1131
+ te.value = await zt(W.value, L), w.value = he(), t.value = !1;
1139
1132
  } catch (L) {
1140
1133
  te.value = null, L.code !== "ERR_CANCELED" && (Oe.open({ message: `Invalid chart ${W.value.type}`, type: "error" }), console.log(L), t.value = !1);
1141
1134
  }
@@ -1147,7 +1140,7 @@ const ua = /* @__PURE__ */ U({
1147
1140
  case "SCORECARD":
1148
1141
  return;
1149
1142
  case "TABLE":
1150
- return `${l.value.size.height * 100 + (D.value ? 72 : 0) + 96.5}px`;
1143
+ return `${l.value.size.height * 100 + (P.value ? 72 : 0) + 96.5}px`;
1151
1144
  }
1152
1145
  return `${Math.max(o / l.value.size.width, 90) * l.value.size.height}px`;
1153
1146
  }
@@ -1159,7 +1152,7 @@ const ua = /* @__PURE__ */ U({
1159
1152
  const o = m.value + 1;
1160
1153
  o >= 0 && o < J.value.length && (C.value = J.value[o].value);
1161
1154
  }
1162
- const mt = Object.values(Tt).map((o) => ({
1155
+ const mt = Object.values(Et).map((o) => ({
1163
1156
  label: Wt(o),
1164
1157
  value: o,
1165
1158
  onClick: async () => {
@@ -1168,25 +1161,25 @@ const ua = /* @__PURE__ */ U({
1168
1161
  })), pt = W.value.type === f.Spacer ? "flat" : "outlined", ft = W.value.type === f.Spacer ? "p-0" : "p-16";
1169
1162
  return (o, L) => {
1170
1163
  const K = F("FmTooltip"), oe = F("FmSearch"), vt = F("FmCheckbox"), ge = F("FmButton"), gt = F("FmSelect"), yt = F("FmMenuItem"), wt = F("FmMenu"), bt = F("FmForm"), Ct = F("FmCircularProgress"), St = F("FmCard");
1171
- return x(), V(St, {
1164
+ return x(), M(St, {
1172
1165
  ref_key: "tileCard",
1173
1166
  ref: u,
1174
1167
  class: me(`${at.value} ${r(ft)}`),
1175
1168
  variant: r(pt)
1176
1169
  }, {
1177
- default: M(() => [
1178
- t.value ? (x(), V(Ct, { key: 1 })) : (x(), z("div", {
1170
+ default: V(() => [
1171
+ t.value ? (x(), M(Ct, { key: 1 })) : (x(), D("div", {
1179
1172
  key: 0,
1180
1173
  style: Y({ height: qe.value })
1181
1174
  }, [
1182
- (x(), V(Lt(lt.value), {
1183
- key: v.value,
1175
+ (x(), M(Lt(lt.value), {
1176
+ key: w.value,
1184
1177
  modelValue: Ne.value,
1185
1178
  "onUpdate:modelValue": L[3] || (L[3] = (de) => Ne.value = de)
1186
1179
  }, {
1187
- menu: M(() => [
1180
+ menu: V(() => [
1188
1181
  H(bt, { class: "flex items-center gap-2" }, {
1189
- default: M(() => {
1182
+ default: V(() => {
1190
1183
  var de, Ye, Ue, Ge;
1191
1184
  return [
1192
1185
  H(K, {
@@ -1196,13 +1189,13 @@ const ua = /* @__PURE__ */ U({
1196
1189
  "hide-arrow": !0,
1197
1190
  disabled: !W.value.description
1198
1191
  }, {
1199
- default: M(() => [
1200
- _.value !== !1 ? (x(), z("p", {
1192
+ default: V(() => [
1193
+ _.value !== !1 ? (x(), D("p", {
1201
1194
  key: 0,
1202
1195
  style: Y({
1203
1196
  fontSize: T.value + "px",
1204
1197
  fontWeight: q.value ? "bold" : "normal",
1205
- fontStyle: P.value ? "italic" : "normal",
1198
+ fontStyle: B.value ? "italic" : "normal",
1206
1199
  textDecoration: n.value ? "underline" : "none"
1207
1200
  }),
1208
1201
  class: me(["text-fm-color-typo-secondary line-clamp-1", [
@@ -1213,25 +1206,25 @@ const ua = /* @__PURE__ */ U({
1213
1206
  ]),
1214
1207
  _: 1
1215
1208
  }, 8, ["content", "disabled"]),
1216
- (de = ce.value) != null && de.showSearchBar ? (x(), V(oe, {
1209
+ (de = ce.value) != null && de.showSearchBar ? (x(), M(oe, {
1217
1210
  key: 0,
1218
1211
  modelValue: fe.value,
1219
1212
  "onUpdate:modelValue": L[0] || (L[0] = (I) => fe.value = I),
1220
1213
  class: "grow"
1221
- }, null, 8, ["modelValue"])) : (x(), z("div", da)),
1214
+ }, null, 8, ["modelValue"])) : (x(), D("div", da)),
1222
1215
  Ft(H(vt, {
1223
1216
  modelValue: b.value,
1224
1217
  "onUpdate:modelValue": L[1] || (L[1] = (I) => b.value = I),
1225
1218
  label: "Label",
1226
1219
  value: !1
1227
1220
  }, null, 8, ["modelValue"]), [
1228
- [Et, (Ye = ce.value) == null ? void 0 : Ye.showLabel]
1221
+ [Tt, (Ye = ce.value) == null ? void 0 : Ye.showLabel]
1229
1222
  ]),
1230
- (Ue = ce.value) != null && Ue.showDrillDimension && J.value.length > 0 ? (x(), z("div", ha, [
1223
+ (Ue = ce.value) != null && Ue.showDrillDimension && J.value.length > 0 ? (x(), D("div", ha, [
1231
1224
  H(ge, {
1232
1225
  icon: "arrow_upward",
1233
1226
  variant: "tertiary",
1234
- disabled: !g.value,
1227
+ disabled: !v.value,
1235
1228
  onClick: dt
1236
1229
  }, null, 8, ["disabled"]),
1237
1230
  H(ge, {
@@ -1241,25 +1234,25 @@ const ua = /* @__PURE__ */ U({
1241
1234
  onClick: ht
1242
1235
  }, null, 8, ["disabled"])
1243
1236
  ])) : Q("", !0),
1244
- (Ge = ce.value) != null && Ge.showRollup && Ie.value.length > 0 ? (x(), V(gt, {
1237
+ (Ge = ce.value) != null && Ge.showRollup && Ie.value.length > 0 ? (x(), M(gt, {
1245
1238
  key: 3,
1246
1239
  modelValue: i.value,
1247
1240
  "onUpdate:modelValue": L[2] || (L[2] = (I) => i.value = I),
1248
1241
  class: "w-[150px]",
1249
1242
  items: Ie.value
1250
1243
  }, null, 8, ["modelValue", "items"])) : Q("", !0),
1251
- d.hideExport ? Q("", !0) : (x(), V(wt, {
1244
+ d.hideExport ? Q("", !0) : (x(), M(wt, {
1252
1245
  key: 4,
1253
1246
  shift: !0
1254
1247
  }, {
1255
- "menu-button": M(() => [
1248
+ "menu-button": V(() => [
1256
1249
  H(ge, {
1257
1250
  icon: "more_vert",
1258
1251
  variant: "tertiary"
1259
1252
  })
1260
1253
  ]),
1261
- default: M(() => [
1262
- (x(!0), z(X, null, Ze(r(mt), (I) => (x(), V(yt, {
1254
+ default: V(() => [
1255
+ (x(!0), D(X, null, Ze(r(mt), (I) => (x(), M(yt, {
1263
1256
  key: I.value,
1264
1257
  label: I.label,
1265
1258
  onClick: I.onClick