@feedmepos/mf-report 5.7.6-beta.103 → 5.8.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/App-D-1FYTfD.js +150 -0
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Ceg0ycS-.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-g6ESEkM9.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-tBkPzAux.js → Default.vue_vue_type_script_setup_true_lang-D1H_MdWO.js} +2 -2
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-hFmuXpI-.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BVc7b2H4.js} +518 -504
  5. package/dist/{InsightView-BQjw3zo_.js → InsightView-BlFnt7q8.js} +6 -6
  6. package/dist/{Integration-DozOUHN0.js → Integration-7h1cJFLg.js} +3 -3
  7. package/dist/{Integrations-CtHf849u.js → Integrations-Dm7n-0iv.js} +3 -3
  8. package/dist/{Layout-DSzK7_nq.js → Layout-CcuoNe0d.js} +1 -1
  9. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-J99j3ig1.js → MenuTab.vue_vue_type_script_setup_true_lang-Bn3KCbjG.js} +3 -3
  10. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cdiu1oaH.js → NavigationTab.vue_vue_type_script_setup_true_lang-DuOqx76g.js} +5 -5
  11. package/dist/{NoData.vue_vue_type_script_setup_true_lang-Gjyew5eM.js → NoData.vue_vue_type_script_setup_true_lang-CAbykN6l.js} +1 -1
  12. package/dist/{OverviewView-Ctkw9OHF.js → OverviewView-Dka3jZx6.js} +5 -5
  13. package/dist/{Report-CLnz_fJe.js → Report-DopMKVRe.js} +4 -4
  14. package/dist/ReportEditor-HDMGjShp.js +621 -0
  15. package/dist/{ReportView-DR-H3SCw.js → ReportView-cqB-ep4p.js} +7 -7
  16. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BRdIROVa.js → SelectComponent.vue_vue_type_script_setup_true_lang-BEkJzB27.js} +1 -1
  17. package/dist/{Setting-Db6Z-NR7.js → Setting-CxBF2fVm.js} +4 -4
  18. package/dist/{TileEditor-Ce5fXttu.js → TileEditor-BNx2KgYJ.js} +8 -8
  19. package/dist/{TransitionFade-B7MGFLV2.js → TransitionFade-BR2i09Vy.js} +4 -4
  20. package/dist/app.js +29 -14
  21. package/dist/{global-loader-DeDK8lT7.js → global-loader-DKYDQRZx.js} +1173 -1202
  22. package/dist/{index-BUphqdhM.js → index--mBthMxH.js} +1 -1
  23. package/dist/{report-schema-tfEvDL2D.js → report-schema-DDo0Dgd1.js} +1 -1
  24. package/dist/{v4-KVHDiToS.js → v4-CfR4tJai.js} +361 -383
  25. package/package.json +1 -1
  26. package/dist/App-Bhp7FaBJ.js +0 -152
  27. package/dist/ReportEditor-B85E-p2H.js +0 -527
@@ -1,15 +1,15 @@
1
- import { computed as m, defineComponent as Z, useModel as Q, ref as u, resolveComponent as V, createElementBlock as H, openBlock as E, Fragment as te, renderSlot as ue, createVNode as W, normalizeStyle as ae, unref as n, createElementVNode as $, toDisplayString as xe, withCtx as I, createBlock as O, createCommentVNode as ce, normalizeClass as ze, h as ot, watch as ve, nextTick as nt, renderList as ut, mergeModels as dt, createTextVNode as zt, onMounted as Vt, onUnmounted as Pt, resolveDynamicComponent as Wt, withDirectives as $t, vShow as Bt } from "vue";
2
- import { W as y, v as Ae, P as We, d as ht, R as Ce, g as Ht, q as qt } from "./v4-KVHDiToS.js";
3
- import { u as Ve, b as Oe, a as Ue } from "./global-loader-DeDK8lT7.js";
4
- import { d as st } from "./index-BUphqdhM.js";
5
- import { storeToRefs as Se, defineStore as Mt } from "pinia";
6
- import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import { r as fe } from "./i18n-Cif1I9J2.js";
8
- import { _ as rt } from "./NoData.vue_vue_type_script_setup_true_lang-Gjyew5eM.js";
9
- import { components as Nt, useSnackbar as mt, useBreakpoints as Ot } from "@feedmepos/ui-library";
10
- var Be = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Be || {}), K = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(K || {}), He = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(He || {}), qe = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(qe || {}), Me = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Me || {}), Ie = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Ie || {}), Ne = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Ne || {});
1
+ import { computed as d, defineComponent as ee, useModel as te, ref as u, resolveComponent as V, createElementBlock as H, openBlock as E, Fragment as le, renderSlot as de, createVNode as $, normalizeStyle as oe, unref as n, createElementVNode as B, toDisplayString as xe, withCtx as N, createBlock as O, createCommentVNode as ue, normalizeClass as Ve, h as nt, watch as ge, nextTick as st, renderList as dt, mergeModels as mt, createTextVNode as Wt, onMounted as Ht, onUnmounted as qt, resolveDynamicComponent as Mt, withDirectives as Nt, vShow as It } from "vue";
2
+ import { W as y, v as ze, P as We, d as ht, R as Se, g as Ot, q as Ut } from "./v4-CfR4tJai.js";
3
+ import { u as Pe, b as Xe, a as Ye } from "./global-loader-DKYDQRZx.js";
4
+ import { d as rt } from "./index--mBthMxH.js";
5
+ import { storeToRefs as _e, defineStore as Xt } from "pinia";
6
+ import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ import { r as ve } from "./i18n-Cif1I9J2.js";
8
+ import { _ as it } from "./NoData.vue_vue_type_script_setup_true_lang-CAbykN6l.js";
9
+ import { components as Gt, useSnackbar as pt, useBreakpoints as jt } from "@feedmepos/ui-library";
10
+ var qe = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(qe || {}), Q = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Q || {}), Me = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Me || {}), Ne = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Ne || {}), Ie = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Ie || {}), Oe = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Oe || {}), Ue = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Ue || {});
11
11
  y.Circular, y.Table, y.BarChart, y.LineChart, y.StackBarChart, y.StackLineChart, y.Scorecard, y.Spacer;
12
- const Ut = [
12
+ const Jt = [
13
13
  {
14
14
  type: y.Circular,
15
15
  showLabel: !1,
@@ -72,11 +72,11 @@ const Ut = [
72
72
  showSearchBar: !1
73
73
  }
74
74
  ];
75
- function $e(e) {
75
+ function He(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 Xt(e, t) {
79
+ function Kt(e, t) {
80
80
  switch (e) {
81
81
  case y.BarChart:
82
82
  case y.LineChart:
@@ -93,7 +93,7 @@ function Xt(e, t) {
93
93
  return !0;
94
94
  }
95
95
  }
96
- const it = [
96
+ const ct = [
97
97
  "54, 162, 235",
98
98
  //8CE6D7
99
99
  "0, 123, 167",
@@ -115,31 +115,31 @@ const it = [
115
115
  "155, 80, 70"
116
116
  //9B5046
117
117
  ];
118
- function _e({
118
+ function ke({
119
119
  index: e,
120
120
  isCompare: t,
121
- opacity: p
121
+ opacity: f
122
122
  }) {
123
- let a = typeof p == "number" ? p : 1;
124
- return t && (a = a * 0.6), `rgba(${it[e % it.length]}, ${a})`;
123
+ let a = typeof f == "number" ? f : 1;
124
+ return t && (a = a * 0.6), `rgba(${ct[e % ct.length]}, ${a})`;
125
125
  }
126
- function pt(e, t, p) {
126
+ function ft(e, t, f) {
127
127
  if (e === "" || t === "")
128
128
  return null;
129
129
  let a = (g) => g == null ? void 0 : g.replace(/,/g, "");
130
- p === "ID" && (a = (g) => g == null ? void 0 : g.replace(/\./g, "").replace(/,/g, "."));
131
- const k = Number(a(e)), S = Number(a(t));
132
- if (isNaN(k) || isNaN(S))
130
+ f === "ID" && (a = (g) => g == null ? void 0 : g.replace(/\./g, "").replace(/,/g, "."));
131
+ const k = Number(a(e)), x = Number(a(t));
132
+ if (isNaN(k) || isNaN(x))
133
133
  return null;
134
- let C = 0;
135
- S === 0 ? k === 0 ? C = 0 : C = 1 : C = (k - S) / S;
136
- const _ = Yt(C);
134
+ let b = 0;
135
+ x === 0 ? k === 0 ? b = 0 : b = 1 : b = (k - x) / x;
136
+ const _ = Zt(b);
137
137
  return {
138
- value: isNaN(C) ? "" : `${(C * 100).toFixed(0)}%`,
138
+ value: isNaN(b) ? "" : `${(b * 100).toFixed(0)}%`,
139
139
  icon: _
140
140
  };
141
141
  }
142
- function Yt(e) {
142
+ function Zt(e) {
143
143
  return e > 0 ? {
144
144
  name: "moving",
145
145
  color: "#1F7735",
@@ -154,8 +154,8 @@ function Yt(e) {
154
154
  tailwind: "fm-color-neutral-gray-100"
155
155
  };
156
156
  }
157
- function ke(e) {
158
- const t = m(() => ({
157
+ function Re(e) {
158
+ const t = d(() => ({
159
159
  display: e.showLabel,
160
160
  align: e.labelAlign,
161
161
  anchor: e.labelAnchor,
@@ -164,7 +164,7 @@ function ke(e) {
164
164
  font: {
165
165
  size: e.labelFontSize
166
166
  }
167
- })), p = m(() => ({
167
+ })), f = d(() => ({
168
168
  display: e.showX,
169
169
  position: e.xPosition,
170
170
  grid: {
@@ -176,7 +176,7 @@ function ke(e) {
176
176
  size: e.xTickFontSize
177
177
  }
178
178
  }
179
- })), a = m(() => ({
179
+ })), a = d(() => ({
180
180
  display: e.showY,
181
181
  position: e.yPosition,
182
182
  grid: {
@@ -188,14 +188,14 @@ function ke(e) {
188
188
  size: e.yTickFontSize
189
189
  }
190
190
  }
191
- })), k = m(() => ({
191
+ })), k = d(() => ({
192
192
  display: e.showLegend,
193
193
  position: e.legendPosition,
194
194
  usePointStyle: e.usePointStyle
195
- })), S = m(() => e.isTransposed), C = m(() => e.chartWidth), _ = m(() => e.chartHeight);
196
- return { datalabels: t, xCfg: p, yCfg: a, isTransposed: S, legend: k, chartWidth: C, chartHeight: _ };
195
+ })), x = d(() => e.isTransposed), b = d(() => e.chartWidth), _ = d(() => e.chartHeight);
196
+ return { datalabels: t, xCfg: f, yCfg: a, isTransposed: x, legend: k, chartWidth: b, chartHeight: _ };
197
197
  }
198
- const Gt = /* @__PURE__ */ Z({
198
+ const Qt = /* @__PURE__ */ ee({
199
199
  __name: "WidgetBarchart",
200
200
  props: {
201
201
  modelValue: { required: !0 },
@@ -203,33 +203,33 @@ const Gt = /* @__PURE__ */ Z({
203
203
  },
204
204
  emits: ["update:modelValue"],
205
205
  setup(e) {
206
- const t = Q(e, "modelValue"), p = m(() => {
206
+ const t = te(e, "modelValue"), f = d(() => {
207
207
  var r;
208
208
  return ((r = t.value.data) == null ? void 0 : r.xAxis) ?? [];
209
- }), a = m(() => {
209
+ }), a = d(() => {
210
210
  var r;
211
211
  return ((r = t.value.data) == null ? void 0 : r.datasets) ?? [];
212
- }), k = u(null), { datalabels: S, xCfg: C, yCfg: _, isTransposed: g, legend: R, chartWidth: T, chartHeight: d } = ke(
212
+ }), k = u(null), { datalabels: x, xCfg: b, yCfg: _, isTransposed: g, legend: R, chartWidth: T, chartHeight: m } = Re(
213
213
  t.value
214
- ), i = m(() => a.value.length > 0 ? [
215
- ...a.value.map((r, x) => ({
214
+ ), i = d(() => a.value.length > 0 ? [
215
+ ...a.value.map((r, S) => ({
216
216
  label: r.name,
217
217
  data: r.values,
218
218
  dash: !!r.isCompare,
219
- backgroundColor: _e({ index: x, isCompare: r.isCompare })
219
+ backgroundColor: ke({ index: S, isCompare: r.isCompare })
220
220
  }))
221
221
  ] : []);
222
- return (r, x) => {
222
+ return (r, S) => {
223
223
  const L = V("FmBarChart");
224
- return E(), H(te, null, [
225
- ue(r.$slots, "menu"),
226
- W(L, {
224
+ return E(), H(le, null, [
225
+ de(r.$slots, "menu"),
226
+ $(L, {
227
227
  ref_key: "chartRef",
228
228
  ref: k,
229
229
  class: "bar-chart",
230
230
  datasets: i.value,
231
- "x-axis": { categories: p.value },
232
- "x-cfg": n(C),
231
+ "x-axis": { categories: f.value },
232
+ "x-cfg": n(b),
233
233
  "y-cfg": n(_),
234
234
  transpose: n(g),
235
235
  legend: {
@@ -239,17 +239,17 @@ const Gt = /* @__PURE__ */ Z({
239
239
  usePointStyle: n(R).usePointStyle ?? !0
240
240
  }
241
241
  },
242
- datalabels: n(S),
242
+ datalabels: n(x),
243
243
  "maintain-aspect-ratio": !1,
244
- style: ae({
244
+ style: oe({
245
245
  "--chart-width": n(T) !== void 0 ? n(T) + "px" : "100%",
246
- "--chart-height": n(d) !== void 0 ? n(d) + "px" : "calc(100% - 36px)"
246
+ "--chart-height": n(m) !== void 0 ? n(m) + "px" : "calc(100% - 36px)"
247
247
  })
248
248
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
249
249
  ], 64);
250
250
  };
251
251
  }
252
- }), jt = /* @__PURE__ */ Z({
252
+ }), ea = /* @__PURE__ */ ee({
253
253
  __name: "WidgetCircular",
254
254
  props: {
255
255
  modelValue: { required: !0 },
@@ -257,24 +257,24 @@ const Gt = /* @__PURE__ */ Z({
257
257
  },
258
258
  emits: ["update:modelValue"],
259
259
  setup(e) {
260
- const t = Q(e, "modelValue"), { datalabels: p, legend: a, chartWidth: k, chartHeight: S } = ke(t.value), C = m(() => {
260
+ const t = te(e, "modelValue"), { datalabels: f, legend: a, chartWidth: k, chartHeight: x } = Re(t.value), b = d(() => {
261
261
  let _ = [];
262
262
  return t.value.data.datasets && t.value.data.metrics && t.value.data.datasets.length > 0 && t.value.data.metrics.length > 0 && (_ = [
263
263
  {
264
264
  label: t.value.data.metrics[0],
265
265
  data: t.value.data.datasets.map((g) => g.value),
266
- backgroundColor: t.value.data.datasets.map((g, R) => _e({ index: R }))
266
+ backgroundColor: t.value.data.datasets.map((g, R) => ke({ index: R }))
267
267
  }
268
268
  ]), _;
269
269
  });
270
270
  return (_, g) => {
271
271
  const R = V("FmPieChart");
272
- return E(), H(te, null, [
273
- ue(_.$slots, "menu"),
274
- W(R, {
272
+ return E(), H(le, null, [
273
+ de(_.$slots, "menu"),
274
+ $(R, {
275
275
  class: "circular",
276
276
  percentage: "70%",
277
- datasets: C.value,
277
+ datasets: b.value,
278
278
  metrics: t.value.data.datasets.map((T) => T.name),
279
279
  variant: "doughnut",
280
280
  legend: {
@@ -285,17 +285,17 @@ const Gt = /* @__PURE__ */ Z({
285
285
  usePointStyle: n(a).usePointStyle ?? !0
286
286
  }
287
287
  },
288
- datalabels: n(p),
288
+ datalabels: n(f),
289
289
  "maintain-aspect-ratio": !1,
290
- style: ae({
290
+ style: oe({
291
291
  "--chart-width": n(k) !== void 0 ? n(k) + "px" : "100%",
292
- "--chart-height": n(S) !== void 0 ? n(S) + "px" : "calc(100% - 36px)"
292
+ "--chart-height": n(x) !== void 0 ? n(x) + "px" : "calc(100% - 36px)"
293
293
  })
294
294
  }, null, 8, ["datasets", "metrics", "legend", "datalabels", "style"])
295
295
  ], 64);
296
296
  };
297
297
  }
298
- }), Jt = { class: "flex flex-col gap-1" }, Kt = { class: "fm-typo-en-title-sm-600" }, Zt = { class: "flex gap-2" }, Qt = { key: 0 }, ea = { key: 1 }, ta = /* @__PURE__ */ Z({
298
+ }), ta = { class: "flex flex-col gap-1" }, aa = { class: "fm-typo-en-title-sm-600" }, la = { class: "flex gap-2" }, oa = { key: 0 }, na = { key: 1 }, sa = /* @__PURE__ */ ee({
299
299
  __name: "WidgetScorecard",
300
300
  props: {
301
301
  modelValue: { required: !0 },
@@ -303,83 +303,83 @@ const Gt = /* @__PURE__ */ Z({
303
303
  },
304
304
  emits: ["update:modelValue"],
305
305
  setup(e) {
306
- const t = Q(e, "modelValue"), { t: p } = Ve(), { compareDateRange: a, defaultDateSetting: k } = Se(Oe()), { country: S } = Ue(), C = m(() => {
307
- var d;
308
- return ((d = t.value.data) == null ? void 0 : d.value) || "";
309
- }), _ = m(() => {
310
- const { data: d } = t.value;
311
- return d != null && d.comparison ? pt(C.value, d.comparison, S) : null;
306
+ const t = te(e, "modelValue"), { t: f } = Pe(), { compareDateRange: a, defaultDateSetting: k } = _e(Xe()), { country: x } = Ye(), b = d(() => {
307
+ var m;
308
+ return ((m = t.value.data) == null ? void 0 : m.value) || "";
309
+ }), _ = d(() => {
310
+ const { data: m } = t.value;
311
+ return m != null && m.comparison ? ft(b.value, m.comparison, x) : null;
312
312
  });
313
- function g(d) {
314
- switch (d) {
315
- case Be.bar:
313
+ function g(m) {
314
+ switch (m) {
315
+ case qe.bar:
316
316
  return "bar";
317
- case Be.line:
317
+ case qe.line:
318
318
  return "line";
319
319
  default:
320
320
  return "line";
321
321
  }
322
322
  }
323
- const R = m(() => {
324
- var d;
325
- return (d = t.value.data) == null ? void 0 : d.sparkline;
326
- }), T = m(() => R.value.datasets.map((d) => ({
327
- label: d.name,
328
- data: d.values,
323
+ const R = d(() => {
324
+ var m;
325
+ return (m = t.value.data) == null ? void 0 : m.sparkline;
326
+ }), T = d(() => R.value.datasets.map((m) => ({
327
+ label: m.name,
328
+ data: m.values,
329
329
  fill: !0,
330
330
  color: "#36a2eb"
331
331
  })));
332
- return (d, i) => {
332
+ return (m, i) => {
333
333
  var U;
334
- const r = V("FmIcon"), x = V("FmChip"), L = V("FmTooltip"), q = V("FmLineChart");
335
- return E(), H("div", Jt, [
336
- ue(d.$slots, "menu"),
337
- $("p", Kt, xe(C.value), 1),
338
- $("div", Zt, [
339
- W(L, {
334
+ const r = V("FmIcon"), S = V("FmChip"), L = V("FmTooltip"), M = V("FmLineChart");
335
+ return E(), H("div", ta, [
336
+ de(m.$slots, "menu"),
337
+ B("p", aa, xe(b.value), 1),
338
+ B("div", la, [
339
+ $(L, {
340
340
  content: `vs. ${(U = n(k).defaultCompareType) == null ? void 0 : U.split("_").join(" ")}`,
341
341
  placement: "right",
342
342
  "hide-arrow": "",
343
343
  variant: "plain"
344
344
  }, {
345
- default: I(() => [
346
- _.value ? (E(), O(x, {
345
+ default: N(() => [
346
+ _.value ? (E(), O(S, {
347
347
  key: 0,
348
348
  icon: _.value.icon.name,
349
- class: ze(`bg-${_.value.icon.tailwind}`),
349
+ class: Ve(`bg-${_.value.icon.tailwind}`),
350
350
  compact: ""
351
351
  }, {
352
- default: I(() => [
353
- W(r, {
352
+ default: N(() => [
353
+ $(r, {
354
354
  name: _.value.icon.name,
355
355
  color: _.value.icon.color
356
356
  }, null, 8, ["name", "color"]),
357
- $("p", {
357
+ B("p", {
358
358
  class: "fm-typo-en-body-md-600",
359
- style: ae({ color: _.value.icon.color })
359
+ style: oe({ color: _.value.icon.color })
360
360
  }, xe(_.value.value), 5)
361
361
  ]),
362
362
  _: 1
363
- }, 8, ["icon", "class"])) : ce("", !0),
364
- n(a).endDate !== null && n(a).startDate !== null && _.value === null ? (E(), O(x, {
363
+ }, 8, ["icon", "class"])) : ue("", !0),
364
+ n(a).endDate !== null && n(a).startDate !== null && _.value === null ? (E(), O(S, {
365
365
  key: 1,
366
366
  compact: ""
367
367
  }, {
368
- default: I(() => [
369
- W(r, {
368
+ default: N(() => [
369
+ $(r, {
370
370
  name: "arrow_upward",
371
371
  color: "#C7C7CC"
372
372
  }),
373
- i[0] || (i[0] = $("p", { class: "fm-typo-en-body-md-600 text-fm-color-typo-disabled" }, "N/A", -1))
373
+ i[0] || (i[0] = B("p", { class: "fm-typo-en-body-md-600 text-fm-color-typo-disabled" }, "N/A", -1))
374
374
  ]),
375
375
  _: 1
376
- })) : ce("", !0)
376
+ })) : ue("", !0)
377
377
  ]),
378
378
  _: 1
379
379
  }, 8, ["content"])
380
380
  ]),
381
- R.value ? (E(), H("div", Qt, [
382
- g(R.value.type) === "line" ? (E(), O(q, {
381
+ R.value ? (E(), H("div", oa, [
382
+ g(R.value.type) === "line" ? (E(), O(M, {
383
383
  key: 0,
384
384
  class: "sparkline",
385
385
  datasets: T.value,
@@ -391,39 +391,39 @@ const Gt = /* @__PURE__ */ Z({
391
391
  "y-cfg": { display: !1 },
392
392
  "x-cfg": { display: !1 },
393
393
  "maintain-aspect-ratio": !1
394
- }, null, 8, ["datasets", "x-axis"])) : ce("", !0)
395
- ])) : (E(), H("div", ea, i[1] || (i[1] = [
396
- $("div", { class: "sparkline" }, [
397
- $("div", { class: "flex flex-col gap-8" }, [
398
- $("div"),
399
- $("div")
394
+ }, null, 8, ["datasets", "x-axis"])) : ue("", !0)
395
+ ])) : (E(), H("div", na, i[1] || (i[1] = [
396
+ B("div", { class: "sparkline" }, [
397
+ B("div", { class: "flex flex-col gap-8" }, [
398
+ B("div"),
399
+ B("div")
400
400
  ]),
401
- $("div", { class: "grow" })
401
+ B("div", { class: "grow" })
402
402
  ], -1)
403
403
  ])))
404
404
  ]);
405
405
  };
406
406
  }
407
- }), aa = {};
408
- function la(e, t) {
409
- const p = V("FmMenuDivider");
410
- return E(), O(p);
407
+ }), ra = {};
408
+ function ia(e, t) {
409
+ const f = V("FmMenuDivider");
410
+ return E(), O(f);
411
411
  }
412
- const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimension", ct = Mt(na, () => {
413
- const e = u(0), t = u([]), p = u(!1), a = (h, c) => {
414
- e.value = h, S(h, c);
412
+ const ca = /* @__PURE__ */ Yt(ra, [["render", ia]]), ua = "mf-reporttable-dimension", ut = Xt(ua, () => {
413
+ const e = u(0), t = u([]), f = u(!1), a = (h, c) => {
414
+ e.value = h, x(h, c);
415
415
  }, k = (h, c, w, F) => {
416
- t[h] = c, t.value = [...t.value], C(h, c, w, F);
417
- }, S = (h, c) => {
416
+ t[h] = c, t.value = [...t.value], b(h, c, w, F);
417
+ }, x = (h, c) => {
418
418
  const w = (c == null ? void 0 : c.querySelectorAll("thead tr")) ?? [], F = (c == null ? void 0 : c.querySelectorAll("tbody tr")) ?? [];
419
419
  [...w, ...F].forEach((D) => {
420
420
  const l = D;
421
421
  l && (l.style.height = `${h}px`);
422
422
  });
423
- }, C = (h, c, w, F = !1) => {
424
- const f = (w == null ? void 0 : w.querySelectorAll("th")) ?? [];
423
+ }, b = (h, c, w, F = !1) => {
424
+ const p = (w == null ? void 0 : w.querySelectorAll("th")) ?? [];
425
425
  if (h === void 0) return;
426
- const D = f[h], l = F ? t[h] : c;
426
+ const D = p[h], l = F ? t[h] : c;
427
427
  if (!D || l === void 0) return;
428
428
  const s = () => {
429
429
  D.style.width = `${l}px`;
@@ -431,26 +431,26 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
431
431
  F ? requestAnimationFrame(s) : s();
432
432
  }, _ = () => {
433
433
  const h = document.querySelectorAll("th"), c = document.querySelectorAll("td"), w = document.querySelector("table");
434
- w == null || w.classList.add("table-fixed"), h.forEach((F) => F.classList.add("toggleEditResize")), c.forEach((F) => F.classList.add("toggleEditResize")), p.value = !0;
434
+ w == null || w.classList.add("table-fixed"), h.forEach((F) => F.classList.add("toggleEditResize")), c.forEach((F) => F.classList.add("toggleEditResize")), f.value = !0;
435
435
  }, g = () => {
436
436
  const h = document.querySelectorAll("th"), c = document.querySelectorAll("td"), w = document.querySelectorAll(".col-resize-handle"), F = document.querySelectorAll(".row-resize-handle");
437
- h.forEach((f) => f.classList.remove("toggleEditResize")), c.forEach((f) => f.classList.remove("toggleEditResize")), w.forEach((f) => f.remove()), F.forEach((f) => f.remove()), p.value = !1;
437
+ h.forEach((p) => p.classList.remove("toggleEditResize")), c.forEach((p) => p.classList.remove("toggleEditResize")), w.forEach((p) => p.remove()), F.forEach((p) => p.remove()), f.value = !1;
438
438
  }, R = () => {
439
439
  e.value = 0, t.value = [];
440
440
  }, T = (h, c) => {
441
441
  if (c) {
442
442
  const w = document.querySelectorAll(`thead th:nth-child(${h + 1})`), F = document.querySelectorAll(`tbody td:nth-child(${h + 1})`);
443
- [...w, ...F].forEach((f) => {
444
- f.classList.add("highlight-hover-col");
443
+ [...w, ...F].forEach((p) => {
444
+ p.classList.add("highlight-hover-col");
445
445
  });
446
446
  } else
447
447
  document.querySelectorAll(
448
448
  `thead th:nth-child(${h + 1}), tbody td:nth-child(${h + 1})`
449
449
  ).forEach((w) => w.classList.add("highlight-col"));
450
- }, d = (h) => {
450
+ }, m = (h) => {
451
451
  const c = document.querySelectorAll("thead tr"), w = document.querySelectorAll("tbody tr"), F = [...c, ...w];
452
- for (const f of F)
453
- h ? f.classList.add("highlight-hover-row") : f.classList.add("highlight-row");
452
+ for (const p of F)
453
+ h ? p.classList.add("highlight-hover-row") : p.classList.add("highlight-row");
454
454
  }, i = (h) => {
455
455
  const c = h ? ".highlight-hover-row" : ".highlight-row", w = document.querySelectorAll(c);
456
456
  for (const F of w)
@@ -459,79 +459,79 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
459
459
  h ? document.querySelectorAll(".highlight-hover-col").forEach((c) => {
460
460
  c.classList.remove("highlight-hover-col");
461
461
  }) : document.querySelectorAll(".highlight-col").forEach((c) => c.classList.remove("highlight-col"));
462
- }, x = (h, c) => {
463
- const w = /* @__PURE__ */ new Map(), F = h.clientX, f = h.target.closest("table"), D = f == null ? void 0 : f.querySelectorAll("th")[c], l = D == null ? void 0 : D.getBoundingClientRect().width, s = w.get(c) ? t[c.toString()] || 60 : (w.set(c, !0), l || t[c.toString()] || 60), v = D == null ? void 0 : D.querySelector("p");
462
+ }, S = (h, c) => {
463
+ const w = /* @__PURE__ */ new Map(), F = h.clientX, p = h.target.closest("table"), D = p == null ? void 0 : p.querySelectorAll("th")[c], l = D == null ? void 0 : D.getBoundingClientRect().width, s = w.get(c) ? t[c.toString()] || 60 : (w.set(c, !0), l || t[c.toString()] || 60), v = D == null ? void 0 : D.querySelector("p");
464
464
  if (!v) return;
465
- const b = v.textContent || "", A = window.getComputedStyle(v), P = `${A.fontWeight} ${A.fontSize} ${A.fontFamily}`, N = document.createElement("canvas").getContext("2d");
466
- if (!N) return;
467
- N.font = P;
468
- const X = N.measureText(b), Y = window.getComputedStyle(D), Re = parseFloat(Y.paddingLeft || "0"), Fe = parseFloat(Y.paddingRight || "0"), Le = X.width + Re + Fe;
465
+ const C = v.textContent || "", A = window.getComputedStyle(v), P = `${A.fontWeight} ${A.fontSize} ${A.fontFamily}`, I = document.createElement("canvas").getContext("2d");
466
+ if (!I) return;
467
+ I.font = P;
468
+ const X = I.measureText(C), Y = window.getComputedStyle(D), Fe = parseFloat(Y.paddingLeft || "0"), Le = parseFloat(Y.paddingRight || "0"), Te = X.width + Fe + Le;
469
469
  T(c, !1);
470
- const ye = (de) => {
471
- const le = de.clientX - F, oe = Math.max(Le, s + le);
472
- if (f) {
473
- k(c, oe, f, !0);
474
- let ee = 0;
475
- f.querySelectorAll("th").forEach((M, se) => {
476
- ee += se === c ? oe : t[se] || M.getBoundingClientRect().width;
477
- }), f.classList.remove("w-full"), f.style.width = `${ee}px`;
478
- const j = f == null ? void 0 : f.parentElement;
479
- if (j) {
480
- const M = j.scrollWidth, se = j.scrollLeft;
481
- j.offsetWidth + se >= M - 100 && (j.scrollLeft = M);
470
+ const we = (me) => {
471
+ const ne = me.clientX - F, se = Math.max(Te, s + ne);
472
+ if (p) {
473
+ k(c, se, p, !0);
474
+ let ae = 0;
475
+ p.querySelectorAll("th").forEach((G, J) => {
476
+ ae += J === c ? se : t[J] || G.getBoundingClientRect().width;
477
+ }), p.classList.remove("w-full"), p.style.width = `${ae}px`;
478
+ const K = p == null ? void 0 : p.parentElement;
479
+ if (K) {
480
+ const G = K.scrollWidth, J = K.scrollLeft;
481
+ K.offsetWidth + J >= G - 100 && (K.scrollLeft = G);
482
482
  }
483
483
  }
484
- }, we = () => {
485
- const de = (f == null ? void 0 : f.querySelectorAll("th")) ?? [], le = [...t.value];
486
- de.forEach((oe, ee) => {
487
- const ne = oe.getBoundingClientRect().width;
488
- t[ee] = ne, le[ee] = ne;
489
- }), t.value = le, r(!1), document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", we);
484
+ }, be = () => {
485
+ const me = (p == null ? void 0 : p.querySelectorAll("th")) ?? [], ne = [...t.value];
486
+ me.forEach((se, ae) => {
487
+ const re = se.getBoundingClientRect().width;
488
+ t[ae] = re, ne[ae] = re;
489
+ }), t.value = ne, r(!1), document.removeEventListener("mousemove", we), document.removeEventListener("mouseup", be);
490
490
  };
491
- document.addEventListener("mousemove", ye), document.addEventListener("mouseup", we);
491
+ document.addEventListener("mousemove", we), document.addEventListener("mouseup", be);
492
492
  }, L = (h) => {
493
493
  const c = h.clientY, w = h.target.closest("table"), F = e.value || 48;
494
- d(!1);
495
- const f = (l) => {
494
+ m(!1);
495
+ const p = (l) => {
496
496
  const s = Math.max(30, F + (l.clientY - c));
497
497
  w && a(s, w);
498
498
  }, D = () => {
499
- i(!1), document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", D);
499
+ i(!1), document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", D);
500
500
  };
501
- document.addEventListener("mousemove", f), document.addEventListener("mouseup", D);
501
+ document.addEventListener("mousemove", p), document.addEventListener("mouseup", D);
502
502
  };
503
503
  return {
504
504
  rowHeight: e,
505
505
  colWidths: t,
506
- isEditing: p,
506
+ isEditing: f,
507
507
  updateRowHeight: a,
508
508
  updateColWidth: k,
509
- setRowHeights: S,
510
- setColWidths: C,
509
+ setRowHeights: x,
510
+ setColWidths: b,
511
511
  enableEditMode: _,
512
512
  disableEditMode: g,
513
513
  resetStore: R,
514
514
  highlightCol: T,
515
- highlightRows: d,
515
+ highlightRows: m,
516
516
  removeRowHighlight: i,
517
517
  removeColHighlight: r,
518
- resizeCol: x,
518
+ resizeCol: S,
519
519
  resizeRow: L,
520
520
  enableCellResizing: () => {
521
521
  const h = document.querySelector("thead"), c = document.querySelectorAll("thead tr"), w = document.querySelectorAll("tbody tr"), F = [...c, ...w];
522
522
  h && h.classList.remove("sticky");
523
- const f = (D, l) => {
523
+ const p = (D, l) => {
524
524
  const s = document.createElement("div");
525
525
  return s.className = `${D}-resize-handle`, D === "col" ? (s.addEventListener("mouseenter", () => T(l, !0)), s.addEventListener("mouseleave", () => r(!0)), s.addEventListener("mousedown", (v) => {
526
- v.stopPropagation(), x(v, l);
527
- })) : (s.addEventListener("mouseenter", () => d(!0)), s.addEventListener("mouseleave", () => i(!0)), s.addEventListener("mousedown", (v) => {
526
+ v.stopPropagation(), S(v, l);
527
+ })) : (s.addEventListener("mouseenter", () => m(!0)), s.addEventListener("mouseleave", () => i(!0)), s.addEventListener("mousedown", (v) => {
528
528
  v.stopPropagation(), L(v);
529
529
  })), s;
530
530
  };
531
531
  F.forEach((D) => {
532
532
  const l = D.closest("thead") !== null;
533
- D.querySelectorAll(l ? "th" : "td").forEach((v, b) => {
534
- const A = f("col", b), P = f("row", b);
533
+ D.querySelectorAll(l ? "th" : "td").forEach((v, C) => {
534
+ const A = p("col", C), P = p("row", C);
535
535
  v.appendChild(A), v.appendChild(P);
536
536
  });
537
537
  }), _();
@@ -540,10 +540,10 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
540
540
  g();
541
541
  }
542
542
  };
543
- }), sa = { class: "my-4" }, ra = {
543
+ }), da = { class: "my-4" }, ma = {
544
544
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
545
545
  style: { backgroundColor: "#f9f9f9" }
546
- }, ia = { class: "font-bold" }, ca = { class: "text-fm-color-neutral-gray-300" }, ua = /* @__PURE__ */ Z({
546
+ }, ha = { class: "font-bold" }, pa = { class: "text-fm-color-neutral-gray-300" }, fa = /* @__PURE__ */ ee({
547
547
  __name: "WidgetTable",
548
548
  props: {
549
549
  modelValue: { required: !0 },
@@ -551,42 +551,42 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
551
551
  },
552
552
  emits: ["update:modelValue"],
553
553
  setup(e) {
554
- const { t, te: p } = Ve(), a = Q(e, "modelValue"), { country: k } = Ue(), { isEditing: S, colWidths: C, rowHeight: _ } = Se(ct()), { setColWidths: g, setRowHeights: R, enableCellResizing: T } = ct(), d = u(null), i = m(() => {
554
+ const { t, te: f } = Pe(), a = te(e, "modelValue"), { country: k } = Ye(), { isEditing: x, colWidths: b, rowHeight: _ } = _e(ut()), { setColWidths: g, setRowHeights: R, enableCellResizing: T } = ut(), m = u(null), i = d(() => {
555
555
  var l;
556
556
  return ((l = a.value.data) == null ? void 0 : l.columns) || [{ label: "", key: "" }];
557
- }), r = m(() => {
557
+ }), r = d(() => {
558
558
  var l;
559
559
  return ((l = a.value.data) == null ? void 0 : l.rows) || [];
560
- }), x = m(() => a.value.filterText), L = m(() => {
560
+ }), S = d(() => a.value.filterText), L = d(() => {
561
561
  var l, s;
562
- if (!(x.value && x.value.trim().length > 0 || !((l = r.value[0]) != null && l.isRollup) && !((s = r.value[r.value.length - 1]) != null && s.isRollup))) {
563
- if (a.value.rollupPosition === K.top || a.value.rollupPosition === void 0)
564
- return K.top;
565
- if (a.value.rollupPosition === K.bottom)
566
- return K.bottom;
562
+ if (!(S.value && S.value.trim().length > 0 || !((l = r.value[0]) != null && l.isRollup) && !((s = r.value[r.value.length - 1]) != null && s.isRollup))) {
563
+ if (a.value.rollupPosition === Q.top || a.value.rollupPosition === void 0)
564
+ return Q.top;
565
+ if (a.value.rollupPosition === Q.bottom)
566
+ return Q.bottom;
567
567
  }
568
- }), q = m(() => {
569
- const b = L.value !== void 0 ? 1 : 0, A = (d.value ? d.value.$el.offsetHeight : 0) - 48;
570
- return Math.floor((A - 34.5 - 32) / 48) - b;
571
- }), U = m(() => {
568
+ }), M = d(() => {
569
+ const C = L.value !== void 0 ? 1 : 0, A = (m.value ? m.value.$el.offsetHeight : 0) - 48;
570
+ return Math.floor((A - 34.5 - 32) / 48) - C;
571
+ }), U = d(() => {
572
572
  var s, v;
573
573
  let l = [];
574
574
  switch (L.value) {
575
- case K.top:
576
- l = [...((s = r.value[0]) == null ? void 0 : s.cells) || []].map((b, A) => {
575
+ case Q.top:
576
+ l = [...((s = r.value[0]) == null ? void 0 : s.cells) || []].map((C, A) => {
577
577
  var P;
578
578
  return {
579
- main: b,
579
+ main: C,
580
580
  comparison: (P = r.value[0]) == null ? void 0 : P.comparisonCells[A],
581
581
  rowType: i.value[A].type
582
582
  };
583
583
  });
584
584
  break;
585
- case K.bottom:
586
- l = [...((v = r.value[r.value.length - 1]) == null ? void 0 : v.cells) || []].map((b, A) => {
585
+ case Q.bottom:
586
+ l = [...((v = r.value[r.value.length - 1]) == null ? void 0 : v.cells) || []].map((C, A) => {
587
587
  var P;
588
588
  return {
589
- main: b,
589
+ main: C,
590
590
  comparison: (P = r.value[0]) == null ? void 0 : P.comparisonCells[A],
591
591
  rowType: i.value[A].type
592
592
  };
@@ -599,10 +599,10 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
599
599
  const s = {};
600
600
  for (let v = 0; v < i.value.length; v++)
601
601
  if (i.value[v].key !== "") {
602
- const b = l.comparisonCells[v];
602
+ const C = l.comparisonCells[v];
603
603
  s[i.value[v].key] = {
604
604
  main: l.cells[v],
605
- comparison: b
605
+ comparison: C
606
606
  }, s.isRollup = l.isRollup;
607
607
  }
608
608
  return s;
@@ -612,8 +612,8 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
612
612
  var v;
613
613
  const s = {};
614
614
  if ((v = a.value.data) != null && v.columns)
615
- for (let b = 0; b < a.value.data.columns.length; b++)
616
- s[a.value.data.columns[b].key] = void 0;
615
+ for (let C = 0; C < a.value.data.columns.length; C++)
616
+ s[a.value.data.columns[C].key] = void 0;
617
617
  return s;
618
618
  });
619
619
  }
@@ -624,120 +624,120 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
624
624
  } : {
625
625
  main: s,
626
626
  comparison: l == null ? void 0 : l.comparison,
627
- difference: pt(l.main, l.comparison, k)
627
+ difference: ft(l.main, l.comparison, k)
628
628
  };
629
629
  }
630
- const F = m(() => {
631
- var A, P, G;
630
+ const F = d(() => {
631
+ var A, P, j;
632
632
  let l = ((A = a.value.data) == null ? void 0 : A.rows) || [];
633
633
  switch (L.value) {
634
- case K.bottom:
634
+ case Q.bottom:
635
635
  l = (P = l[l.length - 1]) != null && P.isRollup ? l.slice(0, -1) : l;
636
636
  break;
637
- case K.top:
638
- l = (G = l[0]) != null && G.isRollup ? l.slice(1, l.length) : l;
637
+ case Q.top:
638
+ l = (j = l[0]) != null && j.isRollup ? l.slice(1, l.length) : l;
639
639
  break;
640
640
  }
641
- const s = l.filter((N) => !(x.value !== "" && (N.isRollup === !0 || !N.cells.some(
641
+ const s = l.filter((I) => !(S.value !== "" && (I.isRollup === !0 || !I.cells.some(
642
642
  (X) => {
643
643
  var Y;
644
- return ((X == null ? void 0 : X.toLowerCase()) || "").includes((Y = x.value) == null ? void 0 : Y.toLowerCase());
644
+ return ((X == null ? void 0 : X.toLowerCase()) || "").includes((Y = S.value) == null ? void 0 : Y.toLowerCase());
645
645
  }
646
- )))).map((N) => h(N)), v = s.length % q.value;
647
- let b = 0;
648
- return v > 0 ? b = Math.abs(v - q.value) : s.length === 0 && (b = q.value), s.push(...c(b)), s;
649
- }), f = m(
646
+ )))).map((I) => h(I)), v = s.length % M.value;
647
+ let C = 0;
648
+ return v > 0 ? C = Math.abs(v - M.value) : s.length === 0 && (C = M.value), s.push(...c(C)), s;
649
+ }), p = d(
650
650
  () => {
651
651
  var l;
652
- return (((l = a.value.colWidths) == null ? void 0 : l.length) ?? 0) > 0 || C.value.length > 0;
652
+ return (((l = a.value.colWidths) == null ? void 0 : l.length) ?? 0) > 0 || b.value.length > 0;
653
653
  }
654
- ), D = m(() => {
654
+ ), D = d(() => {
655
655
  var s;
656
656
  let l = [];
657
- return (s = a.value.data) != null && s.columns && (l = [...a.value.data.columns.map((b) => {
658
- const A = fe(t, p, b.label, "other");
657
+ return (s = a.value.data) != null && s.columns && (l = [...a.value.data.columns.map((C) => {
658
+ const A = ve(t, f, C.label, "other");
659
659
  return {
660
- accessorKey: b.key,
661
- header: () => ot(
660
+ accessorKey: C.key,
661
+ header: () => nt(
662
662
  "p",
663
663
  {
664
- class: `w-full ${b.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap`
664
+ class: `w-full ${C.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap`
665
665
  },
666
666
  A
667
667
  ),
668
668
  cell: (P) => {
669
669
  var X, Y;
670
- const G = w(P.getValue()), N = (Y = (X = P == null ? void 0 : P.row) == null ? void 0 : X.original) == null ? void 0 : Y.isRollup;
671
- return ot(
670
+ const j = w(P.getValue()), I = (Y = (X = P == null ? void 0 : P.row) == null ? void 0 : X.original) == null ? void 0 : Y.isRollup;
671
+ return nt(
672
672
  "div",
673
673
  {
674
674
  class: [
675
- N ? "fm-typo-en-body-md-600 text-fm-color-typo-secondary" : "fm-typo-en-body-md-400",
676
- b.type === "NUMERIC" ? "text-right" : "",
677
- f.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
675
+ I ? "fm-typo-en-body-md-600 text-fm-color-typo-secondary" : "fm-typo-en-body-md-400",
676
+ C.type === "NUMERIC" ? "text-right" : "",
677
+ p.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
678
678
  ].join(" ")
679
679
  },
680
- [G.main]
680
+ [j.main]
681
681
  );
682
682
  },
683
683
  enableSorting: !1
684
684
  };
685
685
  })]), l;
686
686
  });
687
- return ve(
688
- () => C.value.length > 0,
687
+ return ge(
688
+ () => b.value.length > 0,
689
689
  async (l) => {
690
- l && S.value && (await nt(), T());
690
+ l && x.value && (await st(), T());
691
691
  }
692
- ), ve(
692
+ ), ge(
693
693
  [() => D.value],
694
694
  async () => {
695
695
  var A;
696
- await nt();
697
- const l = (A = d.value) == null ? void 0 : A.$el;
696
+ await st();
697
+ const l = (A = m.value) == null ? void 0 : A.$el;
698
698
  if (!l) return;
699
699
  const s = l.querySelector("table");
700
700
  if (!s) return;
701
- s.classList.add(f.value ? "table-fixed" : "table-auto");
702
- let v, b;
703
- S.value ? (T(), v = C.value, b = _.value) : (b = a.value.rowHeight, v = a.value.colWidths), typeof b == "number" && R(b, l), v == null || v.forEach((P, G) => {
704
- g(G, P, l);
701
+ s.classList.add(p.value ? "table-fixed" : "table-auto");
702
+ let v, C;
703
+ x.value ? (T(), v = b.value, C = _.value) : (C = a.value.rowHeight, v = a.value.colWidths), typeof C == "number" && R(C, l), v == null || v.forEach((P, j) => {
704
+ g(j, P, l);
705
705
  });
706
706
  },
707
707
  { immediate: !0 }
708
708
  ), (l, s) => {
709
709
  const v = V("FmTable");
710
- return E(), H(te, null, [
711
- $("div", sa, [
712
- ue(l.$slots, "menu")
710
+ return E(), H(le, null, [
711
+ B("div", da, [
712
+ de(l.$slots, "menu")
713
713
  ]),
714
- W(v, {
714
+ $(v, {
715
715
  ref_key: "table",
716
- ref: d,
716
+ ref: m,
717
717
  "column-defs": D.value,
718
718
  "row-data": F.value,
719
- "search-value": x.value,
720
- "page-size": q.value,
719
+ "search-value": S.value,
720
+ "page-size": M.value,
721
721
  "shrink-at": !1,
722
722
  "force-mobile-footer": !0,
723
723
  class: "scrollbar-hide-table"
724
724
  }, {
725
- "pin-top": I(() => [
726
- $("tbody", null, [
727
- $("tr", ra, [
728
- (E(!0), H(te, null, ut(U.value, (b, A) => (E(), H("td", {
729
- key: `${n(Ae)()}_${A}`,
725
+ "pin-top": N(() => [
726
+ B("tbody", null, [
727
+ B("tr", ma, [
728
+ (E(!0), H(le, null, dt(U.value, (C, A) => (E(), H("td", {
729
+ key: `${n(ze)()}_${A}`,
730
730
  class: "h-[48px] text-fm-color-typo-primary px-16"
731
731
  }, [
732
- $("span", {
733
- class: ze([
732
+ B("span", {
733
+ class: Ve([
734
734
  "items-center text-fm-color-typo-secondary gap-2",
735
- b.rowType === "NUMERIC" ? "text-right" : "",
736
- f.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
735
+ C.rowType === "NUMERIC" ? "text-right" : "",
736
+ p.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
737
737
  ])
738
738
  }, [
739
- $("p", ia, xe(b.main), 1),
740
- $("p", ca, xe(b.comparison ? `(${b.comparison})` : ""), 1)
739
+ B("p", ha, xe(C.main), 1),
740
+ B("p", pa, xe(C.comparison ? `(${C.comparison})` : ""), 1)
741
741
  ], 2)
742
742
  ]))), 128))
743
743
  ])
@@ -748,7 +748,7 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
748
748
  ], 64);
749
749
  };
750
750
  }
751
- }), da = /* @__PURE__ */ Z({
751
+ }), va = /* @__PURE__ */ ee({
752
752
  __name: "WidgetStackBarChart",
753
753
  props: {
754
754
  modelValue: { required: !0 },
@@ -756,36 +756,36 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
756
756
  },
757
757
  emits: ["update:modelValue"],
758
758
  setup(e) {
759
- const t = Q(e, "modelValue"), p = m(() => {
760
- var x;
761
- return ((x = t.value.data) == null ? void 0 : x.xAxis) || [];
762
- }), a = m(() => {
759
+ const t = te(e, "modelValue"), f = d(() => {
760
+ var S;
761
+ return ((S = t.value.data) == null ? void 0 : S.xAxis) || [];
762
+ }), a = d(() => {
763
763
  var r;
764
764
  return ((r = t.value.data) == null ? void 0 : r.datasets) ?? [];
765
- }), k = u(null), { datalabels: S, xCfg: C, yCfg: _, isTransposed: g, legend: R, chartWidth: T, chartHeight: d } = ke(
765
+ }), k = u(null), { datalabels: x, xCfg: b, yCfg: _, isTransposed: g, legend: R, chartWidth: T, chartHeight: m } = Re(
766
766
  t.value
767
- ), i = m(() => a.value.length > 0 ? [
768
- ...a.value.map((r, x) => {
767
+ ), i = d(() => a.value.length > 0 ? [
768
+ ...a.value.map((r, S) => {
769
769
  let L = r.values;
770
770
  return {
771
771
  label: r.name,
772
772
  data: L,
773
773
  dash: !!r.isCompare,
774
- backgroundColor: _e({ index: x, isCompare: r.isCompare })
774
+ backgroundColor: ke({ index: S, isCompare: r.isCompare })
775
775
  };
776
776
  })
777
777
  ] : []);
778
- return (r, x) => {
778
+ return (r, S) => {
779
779
  const L = V("FmBarChart");
780
- return E(), H(te, null, [
781
- ue(r.$slots, "menu"),
782
- W(L, {
780
+ return E(), H(le, null, [
781
+ de(r.$slots, "menu"),
782
+ $(L, {
783
783
  ref_key: "chartRef",
784
784
  ref: k,
785
785
  class: "bar-chart",
786
786
  datasets: i.value,
787
- "x-axis": { categories: p.value },
788
- "x-cfg": n(C),
787
+ "x-axis": { categories: f.value },
788
+ "x-cfg": n(b),
789
789
  "y-cfg": n(_),
790
790
  transpose: n(g),
791
791
  stacked: !0,
@@ -797,17 +797,17 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
797
797
  usePointStyle: n(R).usePointStyle ?? !0
798
798
  }
799
799
  },
800
- datalabels: n(S),
800
+ datalabels: n(x),
801
801
  "maintain-aspect-ratio": !1,
802
- style: ae({
802
+ style: oe({
803
803
  "--chart-width": n(T) !== void 0 ? n(T) + "px" : "100%",
804
- "--chart-height": n(d) !== void 0 ? n(d) + "px" : "calc(100% - 36px)"
804
+ "--chart-height": n(m) !== void 0 ? n(m) + "px" : "calc(100% - 36px)"
805
805
  })
806
806
  }, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
807
807
  ], 64);
808
808
  };
809
809
  }
810
- }), ha = /* @__PURE__ */ Z({
810
+ }), ga = /* @__PURE__ */ ee({
811
811
  __name: "WidgetStackLineChart",
812
812
  props: {
813
813
  modelValue: { required: !0 },
@@ -815,36 +815,36 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
815
815
  },
816
816
  emits: ["update:modelValue"],
817
817
  setup(e) {
818
- const t = Q(e, "modelValue"), p = m(() => {
818
+ const t = te(e, "modelValue"), f = d(() => {
819
819
  var i;
820
820
  return ((i = t.value.data) == null ? void 0 : i.xAxis) ?? [];
821
- }), a = m(() => {
821
+ }), a = d(() => {
822
822
  var i;
823
823
  return ((i = t.value.data) == null ? void 0 : i.datasets) ?? [];
824
- }), { datalabels: k, xCfg: S, yCfg: C, isTransposed: _, legend: g, chartWidth: R, chartHeight: T } = ke(
824
+ }), { datalabels: k, xCfg: x, yCfg: b, isTransposed: _, legend: g, chartWidth: R, chartHeight: T } = Re(
825
825
  t.value
826
- ), d = m(() => a.value.length > 0 ? [
826
+ ), m = d(() => a.value.length > 0 ? [
827
827
  ...a.value.map((i, r) => {
828
- let x = i.values;
828
+ let S = i.values;
829
829
  return {
830
830
  label: i.name,
831
- data: x,
831
+ data: S,
832
832
  dash: i.isCompare,
833
833
  fill: !1,
834
- color: _e({ index: r, isCompare: i.isCompare })
834
+ color: ke({ index: r, isCompare: i.isCompare })
835
835
  };
836
836
  })
837
837
  ] : []);
838
838
  return (i, r) => {
839
- const x = V("FmLineChart");
840
- return E(), H(te, null, [
841
- ue(i.$slots, "menu"),
842
- W(x, {
839
+ const S = V("FmLineChart");
840
+ return E(), H(le, null, [
841
+ de(i.$slots, "menu"),
842
+ $(S, {
843
843
  class: "line-chart",
844
- datasets: d.value,
845
- "x-axis": { categories: p.value },
846
- "x-cfg": n(S),
847
- "y-cfg": n(C),
844
+ datasets: m.value,
845
+ "x-axis": { categories: f.value },
846
+ "x-cfg": n(x),
847
+ "y-cfg": n(b),
848
848
  transpose: n(_),
849
849
  legend: {
850
850
  display: n(g).display ?? !1,
@@ -857,7 +857,7 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
857
857
  stacked: !0,
858
858
  datalabels: n(k),
859
859
  "maintain-aspect-ratio": !1,
860
- style: ae({
860
+ style: oe({
861
861
  "--chart-width": n(R) !== void 0 ? n(R) + "px" : "97%",
862
862
  "--chart-height": n(T) !== void 0 ? n(T) + "px" : "calc(100% - 36px)"
863
863
  })
@@ -865,7 +865,7 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
865
865
  ], 64);
866
866
  };
867
867
  }
868
- }), ge = [
868
+ }), ye = [
869
869
  "col-span-1",
870
870
  "col-span-2",
871
871
  "col-span-3",
@@ -879,16 +879,16 @@ const oa = /* @__PURE__ */ It(aa, [["render", la]]), na = "mf-reporttable-dimens
879
879
  "col-span-11",
880
880
  "col-span-12"
881
881
  ];
882
- function ma(e) {
883
- return e < 12 ? ge[e - 1] : ge[11];
882
+ function ya(e) {
883
+ return e < 12 ? ye[e - 1] : ye[11];
884
884
  }
885
- function pa(e) {
886
- return e < 12 ? ge[Math.min(11, e * 2 - 1)] : ge[11];
885
+ function wa(e) {
886
+ return e < 12 ? ye[Math.min(11, e * 2 - 1)] : ye[11];
887
887
  }
888
- function fa(e) {
889
- return e < 12 ? ge[Math.min(11, e * 3 - 1)] : ge[11];
888
+ function ba(e) {
889
+ return e < 12 ? ye[Math.min(11, e * 3 - 1)] : ye[11];
890
890
  }
891
- const va = /* @__PURE__ */ Z({
891
+ const Ca = /* @__PURE__ */ ee({
892
892
  __name: "WidgetLinechart",
893
893
  props: {
894
894
  modelValue: { required: !0 },
@@ -896,33 +896,33 @@ const va = /* @__PURE__ */ Z({
896
896
  },
897
897
  emits: ["update:modelValue"],
898
898
  setup(e) {
899
- const t = Q(e, "modelValue"), p = m(() => {
899
+ const t = te(e, "modelValue"), f = d(() => {
900
900
  var i;
901
901
  return ((i = t.value.data) == null ? void 0 : i.xAxis) ?? [];
902
- }), a = m(() => {
902
+ }), a = d(() => {
903
903
  var i;
904
904
  return ((i = t.value.data) == null ? void 0 : i.datasets) ?? [];
905
- }), { datalabels: k, xCfg: S, yCfg: C, isTransposed: _, legend: g, chartWidth: R, chartHeight: T } = ke(
905
+ }), { datalabels: k, xCfg: x, yCfg: b, isTransposed: _, legend: g, chartWidth: R, chartHeight: T } = Re(
906
906
  t.value
907
- ), d = m(() => a.value.length > 0 ? [
907
+ ), m = d(() => a.value.length > 0 ? [
908
908
  ...a.value.map((i, r) => ({
909
909
  label: i.name,
910
910
  data: i.values,
911
911
  dash: !!i.isCompare,
912
912
  fill: !1,
913
- color: _e({ index: r, isCompare: i.isCompare })
913
+ color: ke({ index: r, isCompare: i.isCompare })
914
914
  }))
915
915
  ] : []);
916
916
  return (i, r) => {
917
- const x = V("FmLineChart");
918
- return E(), H(te, null, [
919
- ue(i.$slots, "menu"),
920
- W(x, {
917
+ const S = V("FmLineChart");
918
+ return E(), H(le, null, [
919
+ de(i.$slots, "menu"),
920
+ $(S, {
921
921
  class: "line-chart",
922
- datasets: d.value,
923
- "x-axis": { categories: p.value },
924
- "x-cfg": n(S),
925
- "y-cfg": n(C),
922
+ datasets: m.value,
923
+ "x-axis": { categories: f.value },
924
+ "x-cfg": n(x),
925
+ "y-cfg": n(b),
926
926
  transpose: n(_),
927
927
  legend: {
928
928
  display: n(g).display ?? !1,
@@ -935,7 +935,7 @@ const va = /* @__PURE__ */ Z({
935
935
  },
936
936
  datalabels: n(k),
937
937
  "maintain-aspect-ratio": !1,
938
- style: ae({
938
+ style: oe({
939
939
  "--chart-width": n(R) !== void 0 ? n(R) + "px" : "97%",
940
940
  "--chart-height": n(T) !== void 0 ? n(T) + "px" : "calc(100% - 36px)"
941
941
  })
@@ -943,9 +943,9 @@ const va = /* @__PURE__ */ Z({
943
943
  ], 64);
944
944
  };
945
945
  }
946
- }), ga = { class: "flex flex-col gap-16" }, ya = { class: "flex flex-row" }, wa = /* @__PURE__ */ Z({
946
+ }), Sa = { class: "flex flex-col gap-16" }, xa = { class: "flex flex-row" }, _a = /* @__PURE__ */ ee({
947
947
  __name: "PdfOrientationDialog",
948
- props: /* @__PURE__ */ dt({
948
+ props: /* @__PURE__ */ mt({
949
949
  reportType: {},
950
950
  index: {}
951
951
  }, {
@@ -954,57 +954,57 @@ const va = /* @__PURE__ */ Z({
954
954
  }),
955
955
  emits: ["update:modelValue"],
956
956
  setup(e) {
957
- const { t } = Ve(), { FmForm: p } = Nt, a = e, k = u(), S = Q(e, "modelValue"), C = u(!1), _ = mt(), { selectedLocationIds: g, dateRange: R, timeRange: T } = Se(Oe()), d = u(We.PORTRAIT);
957
+ const { t } = Pe(), { FmForm: f } = Gt, a = e, k = u(), x = te(e, "modelValue"), b = u(!1), _ = pt(), { selectedLocationIds: g, dateRange: R, timeRange: T } = _e(Xe()), m = u(We.PORTRAIT);
958
958
  function i() {
959
- var x;
960
- (x = k.value) == null || x.validateInputs();
959
+ var S;
960
+ (S = k.value) == null || S.validateInputs();
961
961
  }
962
962
  async function r() {
963
- C.value = !0;
963
+ b.value = !0;
964
964
  try {
965
965
  a.index != null && await ht({
966
966
  reportType: a.reportType,
967
967
  index: a.index,
968
- orientationTypes: [d.value],
968
+ orientationTypes: [m.value],
969
969
  timeRange: T.value,
970
970
  dateRange: R.value,
971
971
  locationIds: g.value
972
972
  });
973
- } catch (x) {
974
- _.open({ message: x.message, type: "error" });
973
+ } catch (S) {
974
+ _.open({ message: S.message, type: "error" });
975
975
  } finally {
976
- C.value = !1;
976
+ b.value = !1;
977
977
  }
978
978
  }
979
- return (x, L) => {
980
- const q = V("FmRadio"), U = V("FmRadioGroup"), h = V("FmButton"), c = V("FmDialog");
979
+ return (S, L) => {
980
+ const M = V("FmRadio"), U = V("FmRadioGroup"), h = V("FmButton"), c = V("FmDialog");
981
981
  return E(), O(c, {
982
- modelValue: S.value,
983
- "onUpdate:modelValue": L[2] || (L[2] = (w) => S.value = w),
982
+ modelValue: x.value,
983
+ "onUpdate:modelValue": L[2] || (L[2] = (w) => x.value = w),
984
984
  overlay: !0,
985
985
  "z-index": 10
986
986
  }, {
987
- "dialog-header": I(() => L[3] || (L[3] = [
988
- zt("Select Orientation")
987
+ "dialog-header": N(() => L[3] || (L[3] = [
988
+ Wt("Select Orientation")
989
989
  ])),
990
- default: I(() => [
991
- W(n(p), {
990
+ default: N(() => [
991
+ $(n(f), {
992
992
  ref_key: "form",
993
993
  ref: k,
994
994
  onValidationSuccess: r
995
995
  }, {
996
- default: I(() => [
997
- $("div", ga, [
998
- W(U, {
999
- modelValue: d.value,
1000
- "onUpdate:modelValue": L[0] || (L[0] = (w) => d.value = w)
996
+ default: N(() => [
997
+ B("div", Sa, [
998
+ $(U, {
999
+ modelValue: m.value,
1000
+ "onUpdate:modelValue": L[0] || (L[0] = (w) => m.value = w)
1001
1001
  }, {
1002
- default: I(() => [
1003
- W(q, {
1002
+ default: N(() => [
1003
+ $(M, {
1004
1004
  value: n(We).PORTRAIT,
1005
1005
  label: n(t)("report.common.portrait")
1006
1006
  }, null, 8, ["value", "label"]),
1007
- W(q, {
1007
+ $(M, {
1008
1008
  value: n(We).LANDSCAPE,
1009
1009
  label: n(t)("report.common.landscape")
1010
1010
  }, null, 8, ["value", "label"])
@@ -1012,17 +1012,17 @@ const va = /* @__PURE__ */ Z({
1012
1012
  _: 1
1013
1013
  }, 8, ["modelValue"])
1014
1014
  ]),
1015
- $("div", ya, [
1016
- L[4] || (L[4] = $("div", { class: "grow" }, null, -1)),
1017
- W(h, {
1015
+ B("div", xa, [
1016
+ L[4] || (L[4] = B("div", { class: "grow" }, null, -1)),
1017
+ $(h, {
1018
1018
  label: n(t)("report.common.cancel"),
1019
1019
  variant: "tertiary",
1020
- onClick: L[1] || (L[1] = (w) => S.value = !1)
1020
+ onClick: L[1] || (L[1] = (w) => x.value = !1)
1021
1021
  }, null, 8, ["label"]),
1022
- $("div", null, [
1023
- W(h, {
1022
+ B("div", null, [
1023
+ $(h, {
1024
1024
  label: n(t)("report.common.download"),
1025
- loading: C.value,
1025
+ loading: b.value,
1026
1026
  onClick: i
1027
1027
  }, null, 8, ["label", "loading"])
1028
1028
  ])
@@ -1035,15 +1035,15 @@ const va = /* @__PURE__ */ Z({
1035
1035
  }, 8, ["modelValue"]);
1036
1036
  };
1037
1037
  }
1038
- }), ba = {
1038
+ }), ka = {
1039
1039
  key: 1,
1040
1040
  class: "grow"
1041
- }, Ca = {
1041
+ }, Ra = {
1042
1042
  key: 2,
1043
1043
  class: "flex"
1044
- }, Da = /* @__PURE__ */ Z({
1044
+ }, $a = /* @__PURE__ */ ee({
1045
1045
  __name: "DynamicWidget",
1046
- props: /* @__PURE__ */ dt({
1046
+ props: /* @__PURE__ */ mt({
1047
1047
  index: {
1048
1048
  type: Number,
1049
1049
  default: 0
@@ -1051,6 +1051,11 @@ const va = /* @__PURE__ */ Z({
1051
1051
  hideExport: {
1052
1052
  type: Boolean,
1053
1053
  default: !1
1054
+ },
1055
+ customScreenWidth: {
1056
+ type: Number,
1057
+ required: !1,
1058
+ default: void 0
1054
1059
  }
1055
1060
  }, {
1056
1061
  modelValue: { required: !0, default: () => {
@@ -1059,47 +1064,56 @@ const va = /* @__PURE__ */ Z({
1059
1064
  }),
1060
1065
  emits: ["update:modelValue"],
1061
1066
  setup(e) {
1062
- const t = u(!0), p = Q(e, "modelValue"), a = p.value.widget.config, { t: k, te: S } = Ve(), C = e, _ = u(null), g = u(a.rollup), R = u(Ae()), T = u(a.drillDimension), d = m(() => {
1063
- if (re.value.length > 0) {
1064
- const o = re.value.findIndex(
1067
+ const t = u(!0), f = te(e, "modelValue"), a = f.value.widget.config, { t: k, te: x } = Pe(), b = e, _ = u(null), g = u(a.rollup), R = u(ze()), T = u(a.drillDimension), m = d(() => {
1068
+ if (ie.value.length > 0) {
1069
+ const o = ie.value.findIndex(
1065
1070
  (z) => z.value === T.value
1066
1071
  );
1067
1072
  return o >= 0 ? o : 0;
1068
1073
  } else
1069
1074
  return -1;
1070
- }), i = m(() => d.value !== 0), r = m(
1071
- () => d.value != re.value.length - 1
1072
- ), x = u(a.showTitle ?? !0), L = u(a.titleFontSize ?? 14), q = u(a.titleBold ?? !1), U = u(a.titleItalic ?? !1), h = u(a.titleUnderline ?? !1), c = u(a.chartWidth ?? void 0), w = u(a.chartHeight ?? void 0), F = u(a.showLabel ?? !1), f = u(a.labelAlign ?? qe.center), D = u(a.labelAnchor ?? He.center), l = u(a.labelRotation ?? 0), s = u(a.labelOffset ?? 0), v = u(a.labelFontSize ?? 12), b = m(() => a.showSearchBar), A = u(a.showX ?? !0), P = u(a.xPosition ?? Me.bottom), G = u(a.showXGrid ?? !1), N = u(a.showXTick ?? !0), X = u(a.xTickFontSize ?? 12), Y = u(a.showY ?? !0), Re = u(a.yPosition ?? Ie.left), Fe = u(a.showYGrid ?? !1), Le = u(a.showYTick ?? !0), ye = u(a.yTickFontSize ?? 12), we = u(a.showLegend ?? void 0), de = u(a.legendPosition ?? Ne.top), le = u(a.usePointStyle ?? !0), oe = u(a.rowHeight ?? 0), ee = u(a.colWidths ?? []), ne = u(!1), j = u(""), { breakpoints: M } = Ot(), se = u(), Xe = m(() => M.value.lg || M.value.md ? ma(p.value.size.width) : M.value.sm ? pa(p.value.size.width) : fa(p.value.size.width)), Te = m(
1073
- () => Ut.find((o) => o.type === p.value.widget.type)
1074
- ), he = st(() => {
1075
+ }), i = d(() => m.value !== 0), r = d(
1076
+ () => m.value != ie.value.length - 1
1077
+ ), S = u(a.showTitle ?? !0), L = u(a.titleFontSize ?? 14), M = u(a.titleBold ?? !1), U = u(a.titleItalic ?? !1), h = u(a.titleUnderline ?? !1), c = u(a.chartWidth ?? void 0), w = u(a.chartHeight ?? void 0), F = u(a.showLabel ?? !1), p = u(a.labelAlign ?? Ne.center), D = u(a.labelAnchor ?? Me.center), l = u(a.labelRotation ?? 0), s = u(a.labelOffset ?? 0), v = u(a.labelFontSize ?? 12), C = d(() => a.showSearchBar), A = u(a.showX ?? !0), P = u(a.xPosition ?? Ie.bottom), j = u(a.showXGrid ?? !1), I = u(a.showXTick ?? !0), X = u(a.xTickFontSize ?? 12), Y = u(a.showY ?? !0), Fe = u(a.yPosition ?? Oe.left), Le = u(a.showYGrid ?? !1), Te = u(a.showYTick ?? !0), we = u(a.yTickFontSize ?? 12), be = u(a.showLegend ?? void 0), me = u(a.legendPosition ?? Ue.top), ne = u(a.usePointStyle ?? !0), se = u(a.rowHeight ?? 0), ae = u(a.colWidths ?? []), re = u(!1), K = u(""), { breakpoints: G, getBreakpointsBoundary: J } = jt(), $e = u(), q = d(
1078
+ () => b.customScreenWidth === void 0 ? window.innerWidth : b.customScreenWidth
1079
+ ), vt = d(
1080
+ () => (q == null ? void 0 : q.value) > J("xs")[1] && (q == null ? void 0 : q.value) <= J("sm")[1]
1081
+ ), gt = d(
1082
+ () => (q == null ? void 0 : q.value) > J("sm")[1] && (q == null ? void 0 : q.value) <= J("md")[1]
1083
+ ), yt = d(() => (q == null ? void 0 : q.value) > J("md")[1]), wt = d(() => {
1084
+ const o = f.value.size.width;
1085
+ return yt.value || gt.value ? ya(o) : vt.value ? wa(o) : ba(o);
1086
+ }), Ee = d(
1087
+ () => Jt.find((o) => o.type === f.value.widget.type)
1088
+ ), he = rt(() => {
1075
1089
  var o;
1076
- se.value = bt((o = _.value) == null ? void 0 : o.$el.offsetWidth), R.value = Ae();
1077
- }), ft = m(() => {
1078
- if (Xt(B.value.type, me.value))
1079
- switch (p.value.widget.type) {
1090
+ $e.value = kt((o = _.value) == null ? void 0 : o.$el.offsetWidth), R.value = ze();
1091
+ }), bt = d(() => {
1092
+ if (Kt(W.value.type, pe.value))
1093
+ switch (f.value.widget.type) {
1080
1094
  case y.BarChart:
1081
- return Gt;
1095
+ return Qt;
1082
1096
  case y.StackBarChart:
1083
- return da;
1084
- case y.LineChart:
1085
1097
  return va;
1098
+ case y.LineChart:
1099
+ return Ca;
1086
1100
  case y.StackLineChart:
1087
- return ha;
1101
+ return ga;
1088
1102
  case y.Circular:
1089
- return jt;
1103
+ return ea;
1090
1104
  case y.Scorecard:
1091
- return ta;
1105
+ return sa;
1092
1106
  case y.Spacer:
1093
- return oa;
1107
+ return ca;
1094
1108
  case y.Table:
1095
- return ua;
1109
+ return fa;
1096
1110
  default:
1097
- return rt;
1111
+ return it;
1098
1112
  }
1099
1113
  else
1100
- return rt;
1101
- }), me = u(null), { selectedLocationIds: Ee, dateRange: Ye, compareDateRange: vt, timeRange: Ge } = Se(Oe()), { businessId: gt } = Se(Ue()), B = m(() => {
1102
- const o = JSON.parse(JSON.stringify(p.value.widget));
1114
+ return it;
1115
+ }), pe = u(null), { selectedLocationIds: De, dateRange: Ge, compareDateRange: Ct, timeRange: je } = _e(Xe()), { businessId: St } = _e(Ye()), W = d(() => {
1116
+ const o = JSON.parse(JSON.stringify(f.value.widget));
1103
1117
  return {
1104
1118
  ...o,
1105
1119
  config: {
@@ -1110,271 +1124,271 @@ const va = /* @__PURE__ */ Z({
1110
1124
  }
1111
1125
  };
1112
1126
  });
1113
- function yt() {
1127
+ function xt() {
1114
1128
  return {
1115
- data: me.value,
1116
- showTitle: x.value,
1129
+ data: pe.value,
1130
+ showTitle: S.value,
1117
1131
  titleFontSize: L.value,
1118
- titleBold: q.value,
1132
+ titleBold: M.value,
1119
1133
  titleItalic: U.value,
1120
1134
  titleUnderline: h.value,
1121
1135
  chartHeight: w.value,
1122
1136
  chartWidth: c.value,
1123
1137
  showLabel: F.value,
1124
1138
  labelAnchor: D.value,
1125
- labelAlign: f.value,
1139
+ labelAlign: p.value,
1126
1140
  labelRotation: l.value,
1127
1141
  labelOffset: s.value,
1128
1142
  labelFontSize: v.value,
1129
1143
  showX: A.value,
1130
1144
  xPosition: P.value,
1131
- showXGrid: G.value,
1132
- showXTick: N.value,
1145
+ showXGrid: j.value,
1146
+ showXTick: I.value,
1133
1147
  xTickFontSize: X.value,
1134
1148
  showY: Y.value,
1135
- yPosition: Re.value,
1136
- showYGrid: Fe.value,
1137
- showYTick: Le.value,
1138
- yTickFontSize: ye.value,
1139
- isTransposed: B.value.config.isTransposed,
1140
- showLegend: we.value,
1141
- legendPosition: de.value,
1142
- usePointStyle: le.value
1149
+ yPosition: Fe.value,
1150
+ showYGrid: Le.value,
1151
+ showYTick: Te.value,
1152
+ yTickFontSize: we.value,
1153
+ isTransposed: W.value.config.isTransposed,
1154
+ showLegend: be.value,
1155
+ legendPosition: me.value,
1156
+ usePointStyle: ne.value
1143
1157
  };
1144
1158
  }
1145
- function wt() {
1159
+ function _t() {
1146
1160
  return {
1147
- data: me.value,
1148
- filterText: j.value,
1149
- rollupPosition: B.value.config.rollupPosition,
1150
- rowHeight: oe.value,
1151
- colWidths: ee.value
1161
+ data: pe.value,
1162
+ filterText: K.value,
1163
+ rollupPosition: W.value.config.rollupPosition,
1164
+ rowHeight: se.value,
1165
+ colWidths: ae.value
1152
1166
  };
1153
1167
  }
1154
- const je = m(() => {
1155
- switch (B.value.type) {
1168
+ const Je = d(() => {
1169
+ switch (W.value.type) {
1156
1170
  case y.Table:
1157
- return wt();
1171
+ return _t();
1158
1172
  case y.BarChart:
1159
1173
  case y.LineChart:
1160
1174
  case y.StackBarChart:
1161
1175
  case y.StackLineChart:
1162
1176
  case y.Circular:
1163
- return yt();
1177
+ return xt();
1164
1178
  default:
1165
- return { data: me.value };
1179
+ return { data: pe.value };
1166
1180
  }
1167
- }), Je = m(() => {
1168
- const { config: o } = p.value.widget;
1181
+ }), Ke = d(() => {
1182
+ const { config: o } = f.value.widget;
1169
1183
  if (o.rollup != null) {
1170
- const z = [...o.dimensions].filter((ie) => !ie.hide);
1184
+ const z = [...o.dimensions].filter((ce) => !ce.hide);
1171
1185
  return z.sort(
1172
- (ie, be) => (o.rowIds || []).indexOf($e(ie)) - (o.rowIds || []).indexOf($e(be))
1186
+ (ce, Ce) => (o.rowIds || []).indexOf(He(ce)) - (o.rowIds || []).indexOf(He(Ce))
1173
1187
  ), [
1174
- { label: fe(k, S, "None", "other"), value: null },
1175
- { label: fe(k, S, "Grand Total", "other"), value: 0 },
1176
- ...[...z].slice(0, z.length - 1).map((ie, be) => ({
1177
- label: fe(k, S, ie.label, "other"),
1178
- value: be + 1
1188
+ { label: ve(k, x, "None", "other"), value: null },
1189
+ { label: ve(k, x, "Grand Total", "other"), value: 0 },
1190
+ ...[...z].slice(0, z.length - 1).map((ce, Ce) => ({
1191
+ label: ve(k, x, ce.label, "other"),
1192
+ value: Ce + 1
1179
1193
  }))
1180
1194
  ];
1181
1195
  }
1182
1196
  return [];
1183
- }), re = m(() => {
1184
- const { config: o } = B.value;
1197
+ }), ie = d(() => {
1198
+ const { config: o } = W.value;
1185
1199
  return o.isDrillable ? o.dimensions.map((z) => ({
1186
- label: fe(k, S, z.label, "other"),
1187
- value: $e(z)
1200
+ label: ve(k, x, z.label, "other"),
1201
+ value: He(z)
1188
1202
  })) : [];
1189
1203
  });
1190
- ve(
1191
- () => p.value.widget.config,
1204
+ ge(
1205
+ () => f.value.widget.config,
1192
1206
  (o) => {
1193
- g.value = o.rollup, x.value = o.showTitle ?? !0, L.value = o.titleFontSize ?? 14, q.value = o.titleBold ?? !1, U.value = o.titleItalic ?? !1, h.value = o.titleUnderline ?? !1, w.value = o.chartHeight ?? void 0, c.value = o.chartWidth ?? void 0, F.value = o.showLabel ?? !1, f.value = o.labelAlign ?? qe.center, D.value = o.labelAnchor ?? He.center, l.value = o.labelRotation ?? 0, s.value = o.labelOffset ?? 0, v.value = o.labelFontSize ?? 12, A.value = o.showX ?? !0, P.value = o.xPosition ?? Me.bottom, G.value = o.showXGrid ?? !1, N.value = o.showXTick ?? !0, X.value = o.xTickFontSize ?? 12, Y.value = o.showY ?? !0, Re.value = o.yPosition ?? Ie.left, Fe.value = o.showYGrid ?? !1, Le.value = o.showYTick ?? !0, ye.value = o.yTickFontSize ?? 12, we.value = o.showLegend ?? void 0, de.value = o.legendPosition ?? Ne.top, le.value = o.usePointStyle ?? !0, oe.value = o.rowHeight ?? 0, ee.value = o.colWidths ?? [];
1207
+ g.value = o.rollup, S.value = o.showTitle ?? !0, L.value = o.titleFontSize ?? 14, M.value = o.titleBold ?? !1, U.value = o.titleItalic ?? !1, h.value = o.titleUnderline ?? !1, w.value = o.chartHeight ?? void 0, c.value = o.chartWidth ?? void 0, F.value = o.showLabel ?? !1, p.value = o.labelAlign ?? Ne.center, D.value = o.labelAnchor ?? Me.center, l.value = o.labelRotation ?? 0, s.value = o.labelOffset ?? 0, v.value = o.labelFontSize ?? 12, A.value = o.showX ?? !0, P.value = o.xPosition ?? Ie.bottom, j.value = o.showXGrid ?? !1, I.value = o.showXTick ?? !0, X.value = o.xTickFontSize ?? 12, Y.value = o.showY ?? !0, Fe.value = o.yPosition ?? Oe.left, Le.value = o.showYGrid ?? !1, Te.value = o.showYTick ?? !0, we.value = o.yTickFontSize ?? 12, be.value = o.showLegend ?? void 0, me.value = o.legendPosition ?? Ue.top, ne.value = o.usePointStyle ?? !0, se.value = o.rowHeight ?? 0, ae.value = o.colWidths ?? [];
1194
1208
  },
1195
1209
  { deep: !0 }
1196
- ), ve([() => g.value], () => {
1197
- g.value !== null && (p.value.widget.config.rollup = g.value);
1198
- }), ve(
1210
+ ), ge([() => g.value], () => {
1211
+ g.value !== null && (f.value.widget.config.rollup = g.value);
1212
+ }), ge(
1199
1213
  [
1200
- () => B.value,
1201
- () => Ye.value,
1214
+ () => W.value,
1202
1215
  () => Ge.value,
1203
- () => vt.value,
1204
- () => Ee.value,
1205
- () => gt.value
1216
+ () => je.value,
1217
+ () => Ct.value,
1218
+ () => De.value,
1219
+ () => St.value
1206
1220
  ],
1207
1221
  () => {
1208
1222
  var o;
1209
- Ee.value && ((o = Ee.value) == null ? void 0 : o.length) > 0 && Ze();
1223
+ De.value && ((o = De.value) == null ? void 0 : o.length) > 0 && Qe();
1210
1224
  },
1211
1225
  {
1212
1226
  deep: !0
1213
1227
  }
1214
- ), ve(
1215
- [() => p.value.size],
1228
+ ), ge(
1229
+ [() => f.value.size],
1216
1230
  () => {
1217
1231
  he();
1218
1232
  },
1219
1233
  { deep: !0 }
1220
- ), Vt(() => {
1221
- he(), M.value.sm || M.value.md || M.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", he)) : addEventListener("resize", he), Ze();
1222
- }), Pt(() => {
1223
- M.value.sm || M.value.md || M.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", he)) : removeEventListener("resize", he);
1234
+ ), Ht(() => {
1235
+ he(), G.value.sm || G.value.md || G.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", he)) : addEventListener("resize", he), Qe();
1236
+ }), qt(() => {
1237
+ G.value.sm || G.value.md || G.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", he)) : removeEventListener("resize", he);
1224
1238
  });
1225
- const Ke = mt();
1226
- let De;
1227
- const Ze = st(async function() {
1228
- if (B.value.config.schemaNames.length <= 0 && !(B.value.config.dimensions.length <= 0 || B.value.config.metrics.length <= 0)) {
1229
- Ke.open({
1239
+ const Ze = pt();
1240
+ let Ae;
1241
+ const Qe = rt(async function() {
1242
+ if (W.value.config.schemaNames.length <= 0 && !(W.value.config.dimensions.length <= 0 || W.value.config.metrics.length <= 0)) {
1243
+ Ze.open({
1230
1244
  message: "schema must not be empty and dimension or metrics must have at least 1 column",
1231
1245
  type: "info"
1232
1246
  }), t.value = !1;
1233
1247
  return;
1234
1248
  }
1235
1249
  try {
1236
- t.value = !0, De && De.abort(), De = new AbortController();
1237
- const z = De.signal;
1238
- me.value = await qt(B.value, z), R.value = Ae(), t.value = !1;
1250
+ t.value = !0, Ae && Ae.abort(), Ae = new AbortController();
1251
+ const z = Ae.signal;
1252
+ pe.value = await Ut(W.value, z), R.value = ze(), t.value = !1;
1239
1253
  } catch (z) {
1240
- me.value = null, z.code !== "ERR_CANCELED" && (Ke.open({ message: `Invalid chart ${B.value.type}`, type: "error" }), console.log(z), t.value = !1);
1254
+ pe.value = null, z.code !== "ERR_CANCELED" && (Ze.open({ message: `Invalid chart ${W.value.type}`, type: "error" }), console.log(z), t.value = !1);
1241
1255
  }
1242
1256
  });
1243
- function bt(o) {
1244
- switch (p.value.widget.type) {
1257
+ function kt(o) {
1258
+ switch (f.value.widget.type) {
1245
1259
  case "SPACER":
1246
1260
  return;
1247
1261
  case "SCORECARD":
1248
1262
  return;
1249
1263
  case "TABLE":
1250
- return `${p.value.size.height * 100 + (b.value ? 72 : 0) + 96.5}px`;
1264
+ return `${f.value.size.height * 100 + (C.value ? 72 : 0) + 96.5}px`;
1251
1265
  }
1252
- return `${Math.max(o / p.value.size.width, 90) * p.value.size.height}px`;
1266
+ return `${Math.max(o / f.value.size.width, 90) * f.value.size.height}px`;
1253
1267
  }
1254
- function Ct() {
1255
- const o = d.value - 1;
1256
- o >= 0 && (T.value = re.value[o].value);
1268
+ function Rt() {
1269
+ const o = m.value - 1;
1270
+ o >= 0 && (T.value = ie.value[o].value);
1257
1271
  }
1258
- function xt() {
1259
- const o = d.value + 1;
1260
- o >= 0 && o < re.value.length && (T.value = re.value[o].value);
1272
+ function Ft() {
1273
+ const o = m.value + 1;
1274
+ o >= 0 && o < ie.value.length && (T.value = ie.value[o].value);
1261
1275
  }
1262
- const Qe = u(Ce.EXCEL), et = u(), St = Object.values(Ce).map((o) => ({
1263
- label: Ht(o),
1276
+ const et = u(Se.EXCEL), tt = u(), Lt = Object.values(Se).map((o) => ({
1277
+ label: Ot(o),
1264
1278
  value: o,
1265
1279
  onClick: async () => {
1266
- o === Ce.EXCEL || o === Ce.PDFFULLSIZE ? await ht({
1280
+ o === Se.EXCEL || o === Se.PDFFULLSIZE ? await ht({
1267
1281
  reportType: o,
1268
- index: C.index,
1269
- timeRange: Ge.value,
1270
- dateRange: Ye.value,
1271
- locationIds: Ee.value
1272
- }) : o === Ce.PDF && (Qe.value = o, et.value = C.index, ne.value = !0);
1282
+ index: b.index,
1283
+ timeRange: je.value,
1284
+ dateRange: Ge.value,
1285
+ locationIds: De.value
1286
+ }) : o === Se.PDF && (et.value = o, tt.value = b.index, re.value = !0);
1273
1287
  }
1274
- })), _t = B.value.type === y.Spacer ? "flat" : "outlined", kt = B.value.type === y.Spacer ? "p-0" : "p-16";
1288
+ })), Tt = W.value.type === y.Spacer ? "flat" : "outlined", Et = W.value.type === y.Spacer ? "p-0" : "p-16";
1275
1289
  return (o, z) => {
1276
- const ie = V("FmTooltip"), be = V("FmSearch"), Rt = V("FmCheckbox"), Pe = V("FmButton"), Ft = V("FmSelect"), Lt = V("FmMenuItem"), Tt = V("FmMenu"), Et = V("FmForm"), Dt = V("FmCircularProgress"), At = V("FmCard");
1277
- return E(), O(At, {
1290
+ const ce = V("FmTooltip"), Ce = V("FmSearch"), Dt = V("FmCheckbox"), Be = V("FmButton"), At = V("FmSelect"), zt = V("FmMenuItem"), Vt = V("FmMenu"), Pt = V("FmForm"), $t = V("FmCircularProgress"), Bt = V("FmCard");
1291
+ return E(), O(Bt, {
1278
1292
  ref_key: "tileCard",
1279
1293
  ref: _,
1280
- class: ze(`${Xe.value} ${n(kt)}`),
1281
- variant: n(_t)
1294
+ class: Ve(`${wt.value} ${n(Et)}`),
1295
+ variant: n(Tt)
1282
1296
  }, {
1283
- default: I(() => [
1284
- W(wa, {
1285
- modelValue: ne.value,
1286
- "onUpdate:modelValue": z[0] || (z[0] = (pe) => ne.value = pe),
1287
- "report-type": Qe.value,
1288
- index: et.value
1297
+ default: N(() => [
1298
+ $(_a, {
1299
+ modelValue: re.value,
1300
+ "onUpdate:modelValue": z[0] || (z[0] = (fe) => re.value = fe),
1301
+ "report-type": et.value,
1302
+ index: tt.value
1289
1303
  }, null, 8, ["modelValue", "report-type", "index"]),
1290
- t.value ? (E(), O(Dt, { key: 1 })) : (E(), H("div", {
1304
+ t.value ? (E(), O($t, { key: 1 })) : (E(), H("div", {
1291
1305
  key: 0,
1292
- style: ae({ height: se.value })
1306
+ style: oe({ height: $e.value })
1293
1307
  }, [
1294
- (E(), O(Wt(ft.value), {
1308
+ (E(), O(Mt(bt.value), {
1295
1309
  key: R.value,
1296
- modelValue: je.value,
1297
- "onUpdate:modelValue": z[4] || (z[4] = (pe) => je.value = pe)
1310
+ modelValue: Je.value,
1311
+ "onUpdate:modelValue": z[4] || (z[4] = (fe) => Je.value = fe)
1298
1312
  }, {
1299
- menu: I(() => [
1300
- W(Et, { class: "flex items-center gap-2" }, {
1301
- default: I(() => {
1302
- var pe, tt, at, lt;
1313
+ menu: N(() => [
1314
+ $(Pt, { class: "flex items-center gap-2" }, {
1315
+ default: N(() => {
1316
+ var fe, at, lt, ot;
1303
1317
  return [
1304
- W(ie, {
1318
+ $(ce, {
1305
1319
  variant: "plain",
1306
1320
  placement: "right",
1307
- content: B.value.description,
1321
+ content: W.value.description,
1308
1322
  "hide-arrow": !0,
1309
- disabled: !B.value.description
1323
+ disabled: !W.value.description
1310
1324
  }, {
1311
- default: I(() => [
1312
- x.value !== !1 ? (E(), H("p", {
1325
+ default: N(() => [
1326
+ S.value !== !1 ? (E(), H("p", {
1313
1327
  key: 0,
1314
- style: ae({
1328
+ style: oe({
1315
1329
  fontSize: L.value + "px",
1316
- fontWeight: q.value ? "bold" : "normal",
1330
+ fontWeight: M.value ? "bold" : "normal",
1317
1331
  fontStyle: U.value ? "italic" : "normal",
1318
1332
  textDecoration: h.value ? "underline" : "none"
1319
1333
  }),
1320
- class: ze(["text-fm-color-typo-secondary line-clamp-1", [
1334
+ class: Ve(["text-fm-color-typo-secondary line-clamp-1", [
1321
1335
  L.value <= 18 ? "fm-typo-en-body-md-400" : "",
1322
- B.value.description ? "border-b-2 border-dashed border-gray-300" : ""
1336
+ W.value.description ? "border-b-2 border-dashed border-gray-300" : ""
1323
1337
  ]])
1324
- }, xe(n(fe)(n(k), n(S), B.value.title, "other")), 7)) : ce("", !0)
1338
+ }, xe(n(ve)(n(k), n(x), W.value.title, "other")), 7)) : ue("", !0)
1325
1339
  ]),
1326
1340
  _: 1
1327
1341
  }, 8, ["content", "disabled"]),
1328
- (pe = Te.value) != null && pe.showSearchBar ? (E(), O(be, {
1342
+ (fe = Ee.value) != null && fe.showSearchBar ? (E(), O(Ce, {
1329
1343
  key: 0,
1330
- modelValue: j.value,
1331
- "onUpdate:modelValue": z[1] || (z[1] = (J) => j.value = J),
1344
+ modelValue: K.value,
1345
+ "onUpdate:modelValue": z[1] || (z[1] = (Z) => K.value = Z),
1332
1346
  class: "grow"
1333
- }, null, 8, ["modelValue"])) : (E(), H("div", ba)),
1334
- $t(W(Rt, {
1347
+ }, null, 8, ["modelValue"])) : (E(), H("div", ka)),
1348
+ Nt($(Dt, {
1335
1349
  modelValue: F.value,
1336
- "onUpdate:modelValue": z[2] || (z[2] = (J) => F.value = J),
1350
+ "onUpdate:modelValue": z[2] || (z[2] = (Z) => F.value = Z),
1337
1351
  label: "Label",
1338
1352
  value: !1
1339
1353
  }, null, 8, ["modelValue"]), [
1340
- [Bt, (tt = Te.value) == null ? void 0 : tt.showLabel]
1354
+ [It, (at = Ee.value) == null ? void 0 : at.showLabel]
1341
1355
  ]),
1342
- (at = Te.value) != null && at.showDrillDimension && re.value.length > 0 ? (E(), H("div", Ca, [
1343
- W(Pe, {
1356
+ (lt = Ee.value) != null && lt.showDrillDimension && ie.value.length > 0 ? (E(), H("div", Ra, [
1357
+ $(Be, {
1344
1358
  icon: "arrow_upward",
1345
1359
  variant: "tertiary",
1346
1360
  disabled: !i.value,
1347
- onClick: Ct
1361
+ onClick: Rt
1348
1362
  }, null, 8, ["disabled"]),
1349
- W(Pe, {
1363
+ $(Be, {
1350
1364
  icon: "arrow_downward",
1351
1365
  variant: "tertiary",
1352
1366
  disabled: !r.value,
1353
- onClick: xt
1367
+ onClick: Ft
1354
1368
  }, null, 8, ["disabled"])
1355
- ])) : ce("", !0),
1356
- (lt = Te.value) != null && lt.showRollup && Je.value.length > 0 ? (E(), O(Ft, {
1369
+ ])) : ue("", !0),
1370
+ (ot = Ee.value) != null && ot.showRollup && Ke.value.length > 0 ? (E(), O(At, {
1357
1371
  key: 3,
1358
1372
  modelValue: g.value,
1359
- "onUpdate:modelValue": z[3] || (z[3] = (J) => g.value = J),
1373
+ "onUpdate:modelValue": z[3] || (z[3] = (Z) => g.value = Z),
1360
1374
  class: "w-[150px]",
1361
- items: Je.value
1362
- }, null, 8, ["modelValue", "items"])) : ce("", !0),
1363
- C.hideExport ? ce("", !0) : (E(), O(Tt, {
1375
+ items: Ke.value
1376
+ }, null, 8, ["modelValue", "items"])) : ue("", !0),
1377
+ b.hideExport ? ue("", !0) : (E(), O(Vt, {
1364
1378
  key: 4,
1365
1379
  shift: !0
1366
1380
  }, {
1367
- "menu-button": I(() => [
1368
- W(Pe, {
1381
+ "menu-button": N(() => [
1382
+ $(Be, {
1369
1383
  icon: "more_vert",
1370
1384
  variant: "tertiary"
1371
1385
  })
1372
1386
  ]),
1373
- default: I(() => [
1374
- (E(!0), H(te, null, ut(n(St), (J) => (E(), O(Lt, {
1375
- key: J.value,
1376
- label: J.label,
1377
- onClick: J.onClick
1387
+ default: N(() => [
1388
+ (E(!0), H(le, null, dt(n(Lt), (Z) => (E(), O(zt, {
1389
+ key: Z.value,
1390
+ label: Z.label,
1391
+ onClick: Z.onClick
1378
1392
  }, null, 8, ["label", "onClick"]))), 128))
1379
1393
  ]),
1380
1394
  _: 1
@@ -1394,10 +1408,10 @@ const va = /* @__PURE__ */ Z({
1394
1408
  }
1395
1409
  });
1396
1410
  export {
1397
- qe as L,
1398
- K as R,
1399
- Da as _,
1400
- He as a,
1401
- $e as g,
1402
- ct as u
1411
+ Ne as L,
1412
+ Q as R,
1413
+ $a as _,
1414
+ Me as a,
1415
+ He as g,
1416
+ ut as u
1403
1417
  };