@feedmepos/mf-report 5.21.21 → 5.21.22

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 (19) hide show
  1. package/dist/{App-B7fFqqwq.js → App-DZ3HhJKH.js} +3 -3
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-C83DEzrp.js → BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-D92YVuhu.js → Default.vue_vue_type_script_setup_true_lang-CNeKCjDW.js} +1 -1
  4. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-MZ4U7iLX.js → FilterSelector.vue_vue_type_script_setup_true_lang-BMx7tOtZ.js} +121 -121
  5. package/dist/{InsightView-BOQTMg97.js → InsightView-D1CpIEsq.js} +2 -2
  6. package/dist/{Layout-wF45_J-D.js → Layout-C6UYMnHF.js} +1 -1
  7. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BihZAGGq.js → MenuTab.vue_vue_type_script_setup_true_lang-CwqcSiyi.js} +3 -3
  8. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Dl1yJJzh.js → NavigationTab.vue_vue_type_script_setup_true_lang-Df-6pRpd.js} +1 -1
  9. package/dist/{OverviewView-CJtDx82s.js → OverviewView-BZNGKxWW.js} +4 -4
  10. package/dist/{Report-B-FPQEWW.js → Report-CQQqMJGY.js} +2 -2
  11. package/dist/{ReportEditor-DTZolrEZ.js → ReportEditor-BhdJ6wyM.js} +3 -3
  12. package/dist/{ReportView-LcQ1cADg.js → ReportView-8k_9MNip.js} +5 -5
  13. package/dist/{Setting-DIQOPxWh.js → Setting-dC3iUZYd.js} +2 -2
  14. package/dist/{TileEditor-CeZfIiHu.js → TileEditor-CS65HkRc.js} +739 -727
  15. package/dist/{TransitionFade-CrOThVuD.js → TransitionFade-5WYqlTMU.js} +2 -2
  16. package/dist/app.js +9 -9
  17. package/dist/assets/{formatChartData.worker-B07P_JTj.js → formatChartData.worker-BxpediKG.js} +1 -1
  18. package/dist/assets/{processTableData.worker-D4nIiACG.js → processTableData.worker-93fLL2HJ.js} +1 -1
  19. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
- import { defineComponent as q, mergeModels as G, useModel as ee, computed as $, ref as H, resolveComponent as w, createElementBlock as z, openBlock as f, createVNode as r, createElementVNode as h, unref as l, withCtx as O, toDisplayString as j, Fragment as Z, renderList as de, withModifiers as te, createTextVNode as pe, watch as ue, createCommentVNode as U, createBlock as D, onUnmounted as Xe, renderSlot as Oe, onMounted as ke, onBeforeUnmount as qe, resolveDynamicComponent as Ie, normalizeClass as Le, withDirectives as ne, vShow as ie, normalizeStyle as We, isRef as He } from "vue";
1
+ import { defineComponent as W, mergeModels as K, useModel as le, computed as $, ref as E, resolveComponent as V, createElementBlock as R, openBlock as b, createVNode as r, createElementVNode as h, unref as l, withCtx as N, toDisplayString as L, Fragment as te, renderList as me, withModifiers as ae, createTextVNode as ce, watch as re, createCommentVNode as U, createBlock as D, onUnmounted as Xe, renderSlot as Oe, onMounted as Se, onBeforeUnmount as qe, resolveDynamicComponent as Ie, normalizeClass as Le, withDirectives as ie, vShow as se, normalizeStyle as We, isRef as He } from "vue";
2
2
  import { useRoute as Ee, useRouter as Ye } from "vue-router";
3
- import { h as Je, d as _e, S as Fe, _ as Ge, W as Ke, b as Qe, T as Ze, a as el } from "./TransitionFade-CrOThVuD.js";
4
- import { W as R, b as Be, d as ce, D as ll, S as Te, C as ol, P as $e, a as tl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-C83DEzrp.js";
5
- import { storeToRefs as re } from "pinia";
3
+ import { h as Je, d as Ve, S as Ce, _ as Ge, W as Ke, b as Qe, T as Ze, a as el } from "./TransitionFade-5WYqlTMU.js";
4
+ import { W as z, b as Be, d as ve, D as ll, S as Te, C as ol, P as $e, a as tl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
5
+ import { storeToRefs as de } from "pinia";
6
6
  import { u as je } from "./message-dialog-UoMWOnil.js";
7
- import { u as J, j as ve, b as ze, d as fe, h as al } from "./vue-i18n-D1iec8Wy.js";
7
+ import { u as J, j as fe, b as ze, d as ge, h as al } from "./vue-i18n-D1iec8Wy.js";
8
8
  import { useSnackbar as nl, useBreakpoints as Re, FmButtonColorThemeVariant as De } from "@feedmepos/ui-library";
9
- import { a as Q } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js";
9
+ import { a as ee } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js";
10
10
  import { r as Y } from "./i18n-7InkCBCc.js";
11
- import { g as me, u as ge, L as se, b as Ve, _ as Me, a as il } from "./FilterSelector.vue_vue_type_script_setup_true_lang-MZ4U7iLX.js";
12
- import { d as be } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js";
11
+ import { g as pe, u as be, L as ue, b as we, _ as Me, a as il } from "./FilterSelector.vue_vue_type_script_setup_true_lang-BMx7tOtZ.js";
12
+ import { d as ye } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js";
13
13
  import { _ as Pe } from "./NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js";
14
- const he = [
14
+ const Fe = [
15
15
  {
16
- type: R.Circular,
16
+ type: z.Circular,
17
17
  maxDimension: null,
18
18
  maxMetric: 1,
19
19
  hasBreakdownDimension: !1,
@@ -30,7 +30,7 @@ const he = [
30
30
  periodType: null
31
31
  },
32
32
  {
33
- type: R.Table,
33
+ type: z.Table,
34
34
  maxDimension: null,
35
35
  maxMetric: null,
36
36
  hasBreakdownDimension: !1,
@@ -47,7 +47,7 @@ const he = [
47
47
  periodType: null
48
48
  },
49
49
  {
50
- type: R.BarChart,
50
+ type: z.BarChart,
51
51
  maxDimension: null,
52
52
  maxMetric: 1,
53
53
  hasBreakdownDimension: !0,
@@ -64,7 +64,7 @@ const he = [
64
64
  periodType: null
65
65
  },
66
66
  {
67
- type: R.LineChart,
67
+ type: z.LineChart,
68
68
  maxDimension: null,
69
69
  maxMetric: 1,
70
70
  hasBreakdownDimension: !0,
@@ -81,7 +81,7 @@ const he = [
81
81
  periodType: null
82
82
  },
83
83
  {
84
- type: R.StackBarChart,
84
+ type: z.StackBarChart,
85
85
  maxDimension: null,
86
86
  maxMetric: 1,
87
87
  hasBreakdownDimension: !0,
@@ -98,7 +98,7 @@ const he = [
98
98
  periodType: null
99
99
  },
100
100
  {
101
- type: R.StackLineChart,
101
+ type: z.StackLineChart,
102
102
  maxDimension: null,
103
103
  maxMetric: 1,
104
104
  hasBreakdownDimension: !0,
@@ -115,7 +115,7 @@ const he = [
115
115
  periodType: null
116
116
  },
117
117
  {
118
- type: R.Scorecard,
118
+ type: z.Scorecard,
119
119
  maxDimension: null,
120
120
  maxMetric: 1,
121
121
  hasBreakdownDimension: !1,
@@ -132,7 +132,7 @@ const he = [
132
132
  periodType: null
133
133
  },
134
134
  {
135
- type: R.Spacer,
135
+ type: z.Spacer,
136
136
  maxDimension: 0,
137
137
  maxMetric: 0,
138
138
  hasBreakdownDimension: !1,
@@ -148,9 +148,9 @@ const he = [
148
148
  canSearch: !1,
149
149
  periodType: null
150
150
  }
151
- ], sl = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body-lg-600" }, rl = { class: "text-sm text-fm-color-neutral-gray-400" }, dl = ["onClick"], ml = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, pl = /* @__PURE__ */ q({
151
+ ], sl = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body-lg-600" }, rl = { class: "text-sm text-fm-color-neutral-gray-400" }, dl = ["onClick"], ml = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, pl = /* @__PURE__ */ W({
152
152
  __name: "SchemaSection",
153
- props: /* @__PURE__ */ G({
153
+ props: /* @__PURE__ */ K({
154
154
  options: {
155
155
  type: Array,
156
156
  default: () => []
@@ -164,8 +164,8 @@ const he = [
164
164
  modelModifiers: {}
165
165
  }),
166
166
  emits: ["update:modelValue"],
167
- setup(V) {
168
- const { t: d, te: t } = J(), s = ee(V, "modelValue"), n = V, { schemas: v } = re(Be()), g = $(
167
+ setup(F) {
168
+ const { t: d, te: t } = J(), s = le(F, "modelValue"), n = F, { schemas: v } = de(Be()), f = $(
169
169
  () => v.value.map((p) => ({
170
170
  label: p.label,
171
171
  value: p.name,
@@ -173,13 +173,13 @@ const he = [
173
173
  }))
174
174
  ), m = $(() => {
175
175
  if (s.value.schemaNames.length === 0 || o.value === 0)
176
- return g.value.filter((p) => !p.raw.isJoinOnly);
176
+ return f.value.filter((p) => !p.raw.isJoinOnly);
177
177
  {
178
178
  const p = s.value.schemaNames[0], k = v.value.find((_) => _.name === p), x = ((k == null ? void 0 : k.joins) || []).map((_) => _);
179
- return g.value.filter((_) => x.includes(_.raw.name));
179
+ return f.value.filter((_) => x.includes(_.raw.name));
180
180
  }
181
- }), y = H(!1), c = H(""), o = H(), u = nl();
182
- function F(p) {
181
+ }), y = E(!1), c = E(""), o = E(), u = nl();
182
+ function w(p) {
183
183
  var k;
184
184
  return Y(
185
185
  d,
@@ -191,28 +191,28 @@ const he = [
191
191
  function C(p) {
192
192
  o.value = p, y.value = !0, p !== void 0 ? c.value = s.value.schemaNames[p] : c.value = "";
193
193
  }
194
- function I() {
194
+ function O() {
195
195
  c.value !== "" ? (o.value !== void 0 ? s.value.schemaNames[o.value] = c.value : s.value.schemaNames.push(c.value), y.value = !1) : u.open({ message: d("report.section.schema.nothingSelected"), type: "error" });
196
196
  }
197
197
  return (p, k) => {
198
- const x = w("FmForm"), _ = w("FmIcon"), a = w("FmField");
199
- return f(), z("div", sl, [
200
- r(ce, {
198
+ const x = V("FmForm"), _ = V("FmIcon"), a = V("FmField");
199
+ return b(), R("div", sl, [
200
+ r(ve, {
201
201
  modelValue: y.value,
202
202
  "onUpdate:modelValue": k[1] || (k[1] = (e) => y.value = e),
203
203
  title: n.label,
204
204
  "primary-button-label": l(d)("report.common.confirm"),
205
205
  "secondary-button-label": l(d)("report.common.cancel"),
206
- onConfirm: I
206
+ onConfirm: O
207
207
  }, {
208
- content: O(() => [
208
+ content: N(() => [
209
209
  r(x, { ref: "form" }, {
210
- default: O(() => [
211
- r(Q, {
210
+ default: N(() => [
211
+ r(ee, {
212
212
  modelValue: c.value,
213
213
  "onUpdate:modelValue": k[0] || (k[0] = (e) => c.value = e),
214
214
  label: l(d)("report.section.schema.title"),
215
- items: o.value === 0 ? g.value.map((e) => ({
215
+ items: o.value === 0 ? f.value.map((e) => ({
216
216
  label: l(Y)(l(d), l(t), e.label, "schema"),
217
217
  value: e.value
218
218
  })) : m.value.map((e) => ({
@@ -227,10 +227,10 @@ const he = [
227
227
  _: 1
228
228
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
229
229
  h("div", null, [
230
- h("p", ul, j(l(d)("report.section.schema.title")), 1),
231
- h("p", rl, j(l(d)("report.section.schema.description")), 1)
230
+ h("p", ul, L(l(d)("report.section.schema.title")), 1),
231
+ h("p", rl, L(l(d)("report.section.schema.description")), 1)
232
232
  ]),
233
- (f(!0), z(Z, null, de(s.value.schemaNames, (e, i) => (f(), z("div", {
233
+ (b(!0), R(te, null, me(s.value.schemaNames, (e, i) => (b(), R("div", {
234
234
  key: i,
235
235
  class: "flex flex-col gap-2 w-full"
236
236
  }, [
@@ -238,11 +238,11 @@ const he = [
238
238
  class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
239
239
  onClick: (T) => C(i)
240
240
  }, [
241
- h("p", ml, j(F(e)), 1),
241
+ h("p", ml, L(w(e)), 1),
242
242
  k[3] || (k[3] = h("div", { class: "grow" }, null, -1)),
243
243
  r(_, {
244
244
  name: "close",
245
- onClick: te(
245
+ onClick: ae(
246
246
  () => {
247
247
  s.value.schemaNames = l(Je)(s.value.schemaNames, i);
248
248
  },
@@ -257,8 +257,8 @@ const he = [
257
257
  C();
258
258
  })
259
259
  }, {
260
- default: O(() => [
261
- pe(j(l(d)("report.section.schema.add")), 1)
260
+ default: N(() => [
261
+ ce(L(l(d)("report.section.schema.add")), 1)
262
262
  ]),
263
263
  _: 1
264
264
  })
@@ -268,9 +268,9 @@ const he = [
268
268
  }), cl = {
269
269
  key: 0,
270
270
  class: "flex flex-col my-2 gap-8"
271
- }, vl = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, fl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, gl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, we = /* @__PURE__ */ q({
271
+ }, vl = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, fl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, gl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, xe = /* @__PURE__ */ W({
272
272
  __name: "DimensionSection",
273
- props: /* @__PURE__ */ G({
273
+ props: /* @__PURE__ */ K({
274
274
  options: {
275
275
  type: Array,
276
276
  default: () => []
@@ -300,30 +300,30 @@ const he = [
300
300
  modelModifiers: {}
301
301
  }),
302
302
  emits: ["update:modelValue"],
303
- setup(V) {
304
- const { t: d, te: t } = J(), s = ee(V, "modelValue"), n = V, v = $(() => d(`report.section.dimension.${n.label}`)), g = H(!1), m = $(
303
+ setup(F) {
304
+ const { t: d, te: t } = J(), s = le(F, "modelValue"), n = F, v = $(() => d(`report.section.dimension.${n.label}`)), f = E(!1), m = $(
305
305
  () => s.value.map((a, e) => ({
306
306
  index: e,
307
307
  labels: [a.label || a.name],
308
308
  value: a
309
309
  }))
310
- ), y = H(s.value.length > 0 ? 0 : void 0);
310
+ ), y = E(s.value.length > 0 ? 0 : void 0);
311
311
  function c(a) {
312
312
  var e, i, T, S;
313
- g.value = !0, o.value = a != null && a.value ? JSON.parse(
313
+ f.value = !0, o.value = a != null && a.value ? JSON.parse(
314
314
  JSON.stringify({
315
315
  ...a.value,
316
316
  label: Y(d, t, (e = a.value) == null ? void 0 : e.label, "other"),
317
- moveToColumn: (((i = n.config) == null ? void 0 : i.columnIds) || []).includes(me(a.value))
317
+ moveToColumn: (((i = n.config) == null ? void 0 : i.columnIds) || []).includes(pe(a.value))
318
318
  })
319
319
  ) : void 0, y.value = a == null ? void 0 : a.index, u.value = !!((T = o.value) != null && T.dataFormula || (S = o.value) != null && S.displayFormula), o.value && o.value.formatter === void 0 && (n.options.find(
320
- (b) => {
321
- var M, A;
322
- return b.schemaName === ((M = o.value) == null ? void 0 : M.schemaName) && b.name === ((A = o.value) == null ? void 0 : A.name);
320
+ (g) => {
321
+ var M, X;
322
+ return g.schemaName === ((M = o.value) == null ? void 0 : M.schemaName) && g.name === ((X = o.value) == null ? void 0 : X.name);
323
323
  }
324
324
  ), a != null && a.value.timeFormatter && o.value.formatter === void 0 && (o.value.formatter = a == null ? void 0 : a.value.timeFormatter, o.value.timeFormatter = void 0));
325
325
  }
326
- const o = H(void 0), u = H(!1), F = $(
326
+ const o = E(void 0), u = E(!1), w = $(
327
327
  () => n.options.find(
328
328
  (a) => {
329
329
  var e, i;
@@ -331,7 +331,7 @@ const he = [
331
331
  }
332
332
  ) ?? {}
333
333
  );
334
- ue(
334
+ re(
335
335
  () => {
336
336
  var a;
337
337
  return (a = o.value) == null ? void 0 : a.option;
@@ -343,10 +343,10 @@ const he = [
343
343
  const C = $(
344
344
  () => {
345
345
  var a, e, i;
346
- return (i = (a = F.value) == null ? void 0 : a.fillGapDimensionOptions) == null ? void 0 : i.includes(((e = o.value) == null ? void 0 : e.option) || "");
346
+ return (i = (a = w.value) == null ? void 0 : a.fillGapDimensionOptions) == null ? void 0 : i.includes(((e = o.value) == null ? void 0 : e.option) || "");
347
347
  }
348
348
  );
349
- function I(a) {
349
+ function O(a) {
350
350
  var e, i;
351
351
  (a.schemaName !== ((e = o.value) == null ? void 0 : e.schemaName) || a.name !== ((i = o.value) == null ? void 0 : i.name)) && (o.value = {
352
352
  schemaName: a.schemaName,
@@ -363,7 +363,7 @@ const he = [
363
363
  return;
364
364
  }
365
365
  const a = [...m.value.map((e) => e.value)];
366
- u.value || (o.value.dataFormula = void 0), y.value !== void 0 ? a[y.value] = o.value : a.push(o.value), s.value = a, g.value = !1;
366
+ u.value || (o.value.dataFormula = void 0), y.value !== void 0 ? a[y.value] = o.value : a.push(o.value), s.value = a, f.value = !1;
367
367
  }
368
368
  function k(a) {
369
369
  const i = [...m.value.map((T) => T.value)].filter((T, S) => S !== a);
@@ -379,116 +379,116 @@ const he = [
379
379
  }))
380
380
  );
381
381
  return (a, e) => {
382
- const i = w("FmTextField"), T = w("FmStepperField"), S = w("FmCheckbox"), b = w("FmTextarea"), M = w("FmForm"), A = w("FmIcon"), W = w("FmButton"), E = w("FmListItem"), K = w("FmList"), oe = w("FmField");
383
- return V.max !== 0 ? (f(), z("div", cl, [
384
- r(ce, {
385
- modelValue: g.value,
386
- "onUpdate:modelValue": e[12] || (e[12] = (B) => g.value = B),
382
+ const i = V("FmTextField"), T = V("FmStepperField"), S = V("FmCheckbox"), g = V("FmTextarea"), M = V("FmForm"), X = V("FmIcon"), Q = V("FmButton"), q = V("FmListItem"), H = V("FmList"), Z = V("FmField");
383
+ return F.max !== 0 ? (b(), R("div", cl, [
384
+ r(ve, {
385
+ modelValue: f.value,
386
+ "onUpdate:modelValue": e[12] || (e[12] = (I) => f.value = I),
387
387
  title: v.value,
388
388
  "primary-button-label": l(d)("report.common.confirm"),
389
389
  "secondary-button-label": l(d)("report.common.cancel"),
390
390
  onConfirm: p
391
391
  }, {
392
- content: O(() => [
392
+ content: N(() => [
393
393
  r(M, {
394
394
  ref: "form",
395
395
  class: "flex flex-col gap-2 w-[490px]"
396
396
  }, {
397
- default: O(() => {
398
- var B, N, X, le, ae, L, Se;
397
+ default: N(() => {
398
+ var I, B, P, G, ne, j, oe;
399
399
  return [
400
- r(Q, {
401
- "model-value": F.value,
400
+ r(ee, {
401
+ "model-value": w.value,
402
402
  items: _.value,
403
403
  placeholder: v.value,
404
404
  label: v.value,
405
- "onUpdate:modelValue": e[0] || (e[0] = (P) => I(P))
405
+ "onUpdate:modelValue": e[0] || (e[0] = (A) => O(A))
406
406
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
407
- o.value ? (f(), z(Z, { key: 0 }, [
407
+ o.value ? (b(), R(te, { key: 0 }, [
408
408
  r(i, {
409
409
  modelValue: o.value.label,
410
- "onUpdate:modelValue": e[1] || (e[1] = (P) => o.value.label = P),
410
+ "onUpdate:modelValue": e[1] || (e[1] = (A) => o.value.label = A),
411
411
  label: l(d)("report.section.dimension.label")
412
412
  }, null, 8, ["modelValue", "label"]),
413
- (((B = F.value) == null ? void 0 : B.dimensionOptions) || []).length > 0 ? (f(), D(Q, {
413
+ (((I = w.value) == null ? void 0 : I.dimensionOptions) || []).length > 0 ? (b(), D(ee, {
414
414
  key: 0,
415
415
  modelValue: o.value.option,
416
- "onUpdate:modelValue": e[2] || (e[2] = (P) => o.value.option = P),
417
- items: ((N = F.value) == null ? void 0 : N.dimensionOptions.map((P) => ({
418
- label: l(Y)(l(d), l(t), P, "field"),
419
- value: P
416
+ "onUpdate:modelValue": e[2] || (e[2] = (A) => o.value.option = A),
417
+ items: ((B = w.value) == null ? void 0 : B.dimensionOptions.map((A) => ({
418
+ label: l(Y)(l(d), l(t), A, "field"),
419
+ value: A
420
420
  }))) ?? []
421
421
  }, null, 8, ["modelValue", "items"])) : U("", !0),
422
- (X = F.value) != null && X.isNumericType ? (f(), D(T, {
422
+ (P = w.value) != null && P.isNumericType ? (b(), D(T, {
423
423
  key: 1,
424
424
  label: l(d)("report.common.decimal"),
425
- "model-value": ((le = o.value) == null ? void 0 : le.decimal) ?? 2,
426
- "onUpdate:modelValue": e[3] || (e[3] = (P) => {
427
- x(P);
425
+ "model-value": ((G = o.value) == null ? void 0 : G.decimal) ?? 2,
426
+ "onUpdate:modelValue": e[3] || (e[3] = (A) => {
427
+ x(A);
428
428
  })
429
429
  }, null, 8, ["label", "model-value"])) : U("", !0),
430
- (ae = F.value) != null && ae.isNumericType ? (f(), D(Q, {
430
+ (ne = w.value) != null && ne.isNumericType ? (b(), D(ee, {
431
431
  key: 2,
432
432
  modelValue: o.value.formatter,
433
- "onUpdate:modelValue": e[4] || (e[4] = (P) => o.value.formatter = P),
433
+ "onUpdate:modelValue": e[4] || (e[4] = (A) => o.value.formatter = A),
434
434
  placeholder: l(d)("report.section.dimension.formatter"),
435
435
  label: l(d)("report.section.dimension.formatter"),
436
436
  items: [
437
437
  { label: "NONE", value: null },
438
- ...(((L = F.value) == null ? void 0 : L.formatters) || []).map((P) => ({
439
- label: P,
440
- value: P
438
+ ...(((j = w.value) == null ? void 0 : j.formatters) || []).map((A) => ({
439
+ label: A,
440
+ value: A
441
441
  }))
442
442
  ]
443
443
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : U("", !0),
444
- C.value ? (f(), D(S, {
444
+ C.value ? (b(), D(S, {
445
445
  key: 3,
446
446
  "model-value": o.value.fillGap ?? !1,
447
447
  label: l(d)("report.section.dimension.fillGap"),
448
448
  value: "",
449
449
  placeholder: "Fill gap",
450
- "onUpdate:modelValue": e[5] || (e[5] = (P) => {
451
- o.value && (o.value.fillGap = P);
450
+ "onUpdate:modelValue": e[5] || (e[5] = (A) => {
451
+ o.value && (o.value.fillGap = A);
452
452
  })
453
453
  }, null, 8, ["model-value", "label"])) : U("", !0),
454
- ((Se = F.value) == null ? void 0 : Se.type) === l(ll).Timestamp ? (f(), D(S, {
454
+ ((oe = w.value) == null ? void 0 : oe.type) === l(ll).Timestamp ? (b(), D(S, {
455
455
  key: 4,
456
456
  "model-value": o.value.dateComparison ?? !1,
457
457
  label: l(d)("report.section.dimension.dateComparison"),
458
458
  value: "",
459
- "onUpdate:modelValue": e[6] || (e[6] = (P) => {
460
- o.value && (o.value.dateComparison = P);
459
+ "onUpdate:modelValue": e[6] || (e[6] = (A) => {
460
+ o.value && (o.value.dateComparison = A);
461
461
  })
462
462
  }, null, 8, ["model-value", "label"])) : U("", !0),
463
463
  r(S, {
464
464
  modelValue: o.value.hide,
465
- "onUpdate:modelValue": e[7] || (e[7] = (P) => o.value.hide = P),
465
+ "onUpdate:modelValue": e[7] || (e[7] = (A) => o.value.hide = A),
466
466
  label: l(d)("report.section.dimension.hide"),
467
467
  value: ""
468
468
  }, null, 8, ["modelValue", "label"]),
469
- n.hasRowColumn ? (f(), D(S, {
469
+ n.hasRowColumn ? (b(), D(S, {
470
470
  key: 5,
471
471
  modelValue: o.value.moveToColumn,
472
- "onUpdate:modelValue": e[8] || (e[8] = (P) => o.value.moveToColumn = P),
472
+ "onUpdate:modelValue": e[8] || (e[8] = (A) => o.value.moveToColumn = A),
473
473
  label: l(d)("report.section.dimension.moveToColumn"),
474
474
  value: ""
475
475
  }, null, 8, ["modelValue", "label"])) : U("", !0),
476
476
  r(S, {
477
477
  modelValue: u.value,
478
- "onUpdate:modelValue": e[9] || (e[9] = (P) => u.value = P),
478
+ "onUpdate:modelValue": e[9] || (e[9] = (A) => u.value = A),
479
479
  label: l(d)("report.section.dimension.advance"),
480
480
  value: !0
481
481
  }, null, 8, ["modelValue", "label"]),
482
- u.value ? (f(), D(b, {
482
+ u.value ? (b(), D(g, {
483
483
  key: 6,
484
484
  modelValue: o.value.dataFormula,
485
- "onUpdate:modelValue": e[10] || (e[10] = (P) => o.value.dataFormula = P),
485
+ "onUpdate:modelValue": e[10] || (e[10] = (A) => o.value.dataFormula = A),
486
486
  placeholder: l(d)("report.section.dimension.dataFormula")
487
487
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0),
488
- u.value ? (f(), D(b, {
488
+ u.value ? (b(), D(g, {
489
489
  key: 7,
490
490
  modelValue: o.value.displayFormula,
491
- "onUpdate:modelValue": e[11] || (e[11] = (P) => o.value.displayFormula = P),
491
+ "onUpdate:modelValue": e[11] || (e[11] = (A) => o.value.displayFormula = A),
492
492
  placeholder: l(d)("report.section.dimension.displayFormula")
493
493
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0)
494
494
  ], 64)) : U("", !0)
@@ -500,30 +500,30 @@ const he = [
500
500
  _: 1
501
501
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
502
502
  h("div", null, [
503
- h("p", vl, j(v.value), 1),
504
- h("p", fl, j(l(d)("report.section.dimension.description")), 1)
503
+ h("p", vl, L(v.value), 1),
504
+ h("p", fl, L(l(d)("report.section.dimension.description")), 1)
505
505
  ]),
506
- r(K, null, {
507
- default: O(() => [
508
- r(l(_e), {
506
+ r(H, null, {
507
+ default: N(() => [
508
+ r(l(Ve), {
509
509
  list: s.value,
510
510
  "item-key": "id",
511
511
  class: "flex flex-col gap-2"
512
512
  }, {
513
- item: O(({ element: B, index: N }) => [
514
- r(E, {
513
+ item: N(({ element: I, index: B }) => [
514
+ r(q, {
515
515
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
516
- onClick: te((X) => c(m.value[N]), ["stop"])
516
+ onClick: ae((P) => c(m.value[B]), ["stop"])
517
517
  }, {
518
- default: O(() => [
519
- r(A, { name: "drag_handle" }),
520
- h("p", gl, j(l(Y)(l(d), l(t), B.label, "other")), 1),
518
+ default: N(() => [
519
+ r(X, { name: "drag_handle" }),
520
+ h("p", gl, L(l(Y)(l(d), l(t), I.label, "other")), 1),
521
521
  e[14] || (e[14] = h("div", { class: "grow" }, null, -1)),
522
- r(W, {
522
+ r(Q, {
523
523
  icon: "close",
524
524
  size: "md",
525
525
  variant: "tertiary",
526
- onClick: te((X) => k(N), ["stop"])
526
+ onClick: ae((P) => k(B), ["stop"])
527
527
  }, null, 8, ["onClick"])
528
528
  ]),
529
529
  _: 2
@@ -534,79 +534,79 @@ const he = [
534
534
  ]),
535
535
  _: 1
536
536
  }),
537
- r(oe, {
537
+ r(Z, {
538
538
  class: "text-fm-color-typo-tertiary",
539
539
  onClick: e[13] || (e[13] = () => {
540
540
  c();
541
541
  })
542
542
  }, {
543
- default: O(() => [
544
- pe(j(l(d)("report.section.dimension.add")), 1)
543
+ default: N(() => [
544
+ ce(L(l(d)("report.section.dimension.add")), 1)
545
545
  ]),
546
546
  _: 1
547
547
  })
548
548
  ])) : U("", !0);
549
549
  };
550
550
  }
551
- }), xe = {
551
+ }), ke = {
552
552
  value: "_metric_name"
553
553
  };
554
- function bl(V, d, t) {
555
- switch (V) {
556
- case R.BarChart:
557
- case R.StackBarChart:
558
- case R.LineChart:
559
- case R.StackLineChart:
560
- case R.Circular:
554
+ function bl(F, d, t) {
555
+ switch (F) {
556
+ case z.BarChart:
557
+ case z.StackBarChart:
558
+ case z.LineChart:
559
+ case z.StackLineChart:
560
+ case z.Circular:
561
561
  return d.length > 1;
562
562
  default:
563
563
  return t;
564
564
  }
565
565
  }
566
- function yl(V) {
566
+ function yl(F) {
567
567
  var s;
568
- const { rowIds: d, columnIds: t } = ye(V.widget.config);
568
+ const { rowIds: d, columnIds: t } = he(F.widget.config);
569
569
  return {
570
- ...V,
570
+ ...F,
571
571
  widget: {
572
- ...V.widget,
572
+ ...F.widget,
573
573
  config: {
574
- ...V.widget.config,
574
+ ...F.widget.config,
575
575
  rowIds: d,
576
576
  columnIds: t,
577
577
  isDrillable: bl(
578
- V.widget.type,
579
- V.widget.config.dimensions,
580
- V.widget.config.isDrillable
578
+ F.widget.type,
579
+ F.widget.config.dimensions,
580
+ F.widget.config.isDrillable
581
581
  ),
582
- joinDatasources: (s = V.widget.config.joinDatasources) == null ? void 0 : s.map((n) => {
583
- const { rowIds: v, columnIds: g } = ye(n);
582
+ joinDatasources: (s = F.widget.config.joinDatasources) == null ? void 0 : s.map((n) => {
583
+ const { rowIds: v, columnIds: f } = he(n);
584
584
  return {
585
585
  ...n,
586
586
  rowIds: v,
587
- columnIds: g
587
+ columnIds: f
588
588
  };
589
589
  })
590
590
  }
591
591
  }
592
592
  };
593
593
  }
594
- function ye(V) {
595
- const d = V.dimensions.filter((g) => g.hide !== !0 && !g.moveToColumn).map((g) => me(g)), t = V.dimensions.filter((g) => g.hide !== !0 && g.moveToColumn == !0).map((g) => me(g)), s = V.metrics.length > 0;
596
- s && V.metrics.find((g) => g.moveToRow == !0) ? d.push(xe.value) : s && t.push(xe.value);
594
+ function he(F) {
595
+ const d = F.dimensions.filter((f) => f.hide !== !0 && !f.moveToColumn).map((f) => pe(f)), t = F.dimensions.filter((f) => f.hide !== !0 && f.moveToColumn == !0).map((f) => pe(f)), s = F.metrics.length > 0;
596
+ s && F.metrics.find((f) => f.moveToRow == !0) ? d.push(ke.value) : s && t.push(ke.value);
597
597
  const n = [], v = [];
598
- for (const g of d)
599
- n.push(g);
600
- for (const g of t)
601
- v.push(g);
598
+ for (const f of d)
599
+ n.push(f);
600
+ for (const f of t)
601
+ v.push(f);
602
602
  return {
603
603
  rowIds: n,
604
604
  columnIds: v
605
605
  };
606
606
  }
607
- const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body-lg-600" }, wl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Fl = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, xl = /* @__PURE__ */ q({
607
+ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body-lg-600" }, Fl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, wl = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, xl = /* @__PURE__ */ W({
608
608
  __name: "MetricSection",
609
- props: /* @__PURE__ */ G({
609
+ props: /* @__PURE__ */ K({
610
610
  options: {
611
611
  type: Array,
612
612
  default: () => []
@@ -632,17 +632,17 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
632
632
  modelValue: { required: !1, default: [] },
633
633
  modelModifiers: {}
634
634
  }),
635
- emits: /* @__PURE__ */ G(["config"], ["update:modelValue"]),
636
- setup(V, { emit: d }) {
637
- const { t, te: s } = J(), n = ee(V, "modelValue"), v = V;
635
+ emits: /* @__PURE__ */ K(["config"], ["update:modelValue"]),
636
+ setup(F, { emit: d }) {
637
+ const { t, te: s } = J(), n = le(F, "modelValue"), v = F;
638
638
  $(() => !!v.max && n.value.length === v.max);
639
- const g = $(() => t(`report.section.metric.${v.label}`)), m = H(!1), y = $(
639
+ const f = $(() => t(`report.section.metric.${v.label}`)), m = E(!1), y = $(
640
640
  () => n.value.map((e, i) => ({
641
641
  index: i,
642
642
  labels: [e.label || e.name],
643
643
  value: e
644
644
  }))
645
- ), c = H(n.value.length > 0 ? 0 : void 0);
645
+ ), c = E(n.value.length > 0 ? 0 : void 0);
646
646
  function o(e) {
647
647
  var i, T, S;
648
648
  m.value = !0, u.value = e != null && e.value ? JSON.parse(
@@ -650,14 +650,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
650
650
  ...e.value,
651
651
  label: Y(t, s, e.value.label, "other")
652
652
  })
653
- ) : void 0, c.value = e == null ? void 0 : e.index, F.value = !!((i = u.value) != null && i.dataFormula || (T = u.value) != null && T.displayFormula), u.value && u.value.formatter === void 0 && (v.options.find(
654
- (b) => {
655
- var M, A;
656
- return b.schemaName === ((M = u.value) == null ? void 0 : M.schemaName) && b.name === ((A = u.value) == null ? void 0 : A.name);
653
+ ) : void 0, c.value = e == null ? void 0 : e.index, w.value = !!((i = u.value) != null && i.dataFormula || (T = u.value) != null && T.displayFormula), u.value && u.value.formatter === void 0 && (v.options.find(
654
+ (g) => {
655
+ var M, X;
656
+ return g.schemaName === ((M = u.value) == null ? void 0 : M.schemaName) && g.name === ((X = u.value) == null ? void 0 : X.name);
657
657
  }
658
- ), e != null && e.value.timeFormatter && u.value.formatter === void 0 && (u.value.formatter = e == null ? void 0 : e.value.timeFormatter, u.value.timeFormatter = void 0)), ((S = v.config.rowIds) == null ? void 0 : S.findIndex((b) => b === xe.value)) !== -1 && u.value && (u.value.moveToRow = !0);
658
+ ), e != null && e.value.timeFormatter && u.value.formatter === void 0 && (u.value.formatter = e == null ? void 0 : e.value.timeFormatter, u.value.timeFormatter = void 0)), ((S = v.config.rowIds) == null ? void 0 : S.findIndex((g) => g === ke.value)) !== -1 && u.value && (u.value.moveToRow = !0);
659
659
  }
660
- const u = H(void 0), F = H(!1), C = $(
660
+ const u = E(void 0), w = E(!1), C = $(
661
661
  () => v.options.find(
662
662
  (e) => {
663
663
  var i, T;
@@ -665,17 +665,17 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
665
665
  }
666
666
  ) ?? {}
667
667
  );
668
- function I(e, i) {
668
+ function O(e, i) {
669
669
  var T;
670
670
  return (e == null ? void 0 : e.isNumericType) || ((T = e == null ? void 0 : e.isNumericAggregations) == null ? void 0 : T.includes(i || ""));
671
671
  }
672
672
  const p = $(
673
673
  () => {
674
674
  var e;
675
- return I(C.value, (e = u.value) == null ? void 0 : e.aggregation);
675
+ return O(C.value, (e = u.value) == null ? void 0 : e.aggregation);
676
676
  }
677
677
  );
678
- ue(p, (e) => {
678
+ re(p, (e) => {
679
679
  u.value && (e ? u.value.decimal = typeof u.value.decimal != "number" ? 2 : u.value.decimal : u.value.decimal = void 0);
680
680
  });
681
681
  function k(e) {
@@ -685,14 +685,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
685
685
  name: e.name,
686
686
  aggregation: e.aggregations[0],
687
687
  label: Y(t, s, e.label, "other"),
688
- decimal: I(e, e.aggregations[0]) ? 2 : void 0,
688
+ decimal: O(e, e.aggregations[0]) ? 2 : void 0,
689
689
  moveToRow: !1,
690
690
  hide: !1
691
- }, F.value = !1);
691
+ }, w.value = !1);
692
692
  }
693
693
  function x() {
694
694
  const e = [...y.value.map((i) => i.value)];
695
- u.value && (F.value || (u.value.dataFormula = void 0), c.value !== void 0 ? e[c.value] = u.value : e.push(u.value)), n.value = e, m.value = !1;
695
+ u.value && (w.value || (u.value.dataFormula = void 0), c.value !== void 0 ? e[c.value] = u.value : e.push(u.value)), n.value = e, m.value = !1;
696
696
  }
697
697
  function _(e) {
698
698
  const i = [...y.value.map((T) => T.value)];
@@ -705,96 +705,96 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
705
705
  }))
706
706
  );
707
707
  return (e, i) => {
708
- const T = w("FmTextField"), S = w("FmStepperField"), b = w("FmCheckbox"), M = w("FmTextarea"), A = w("FmForm"), W = w("FmIcon"), E = w("FmButton"), K = w("FmListItem"), oe = w("FmList"), B = w("FmField");
709
- return f(), z("div", hl, [
710
- r(ce, {
708
+ const T = V("FmTextField"), S = V("FmStepperField"), g = V("FmCheckbox"), M = V("FmTextarea"), X = V("FmForm"), Q = V("FmIcon"), q = V("FmButton"), H = V("FmListItem"), Z = V("FmList"), I = V("FmField");
709
+ return b(), R("div", hl, [
710
+ r(ve, {
711
711
  modelValue: m.value,
712
- "onUpdate:modelValue": i[10] || (i[10] = (N) => m.value = N),
713
- title: g.value,
712
+ "onUpdate:modelValue": i[10] || (i[10] = (B) => m.value = B),
713
+ title: f.value,
714
714
  onConfirm: x
715
715
  }, {
716
- content: O(() => [
717
- r(A, {
716
+ content: N(() => [
717
+ r(X, {
718
718
  ref: "form",
719
719
  class: "flex flex-col gap-2 w-[490px]"
720
720
  }, {
721
- default: O(() => {
722
- var N, X, le, ae;
721
+ default: N(() => {
722
+ var B, P, G, ne;
723
723
  return [
724
- r(Q, {
724
+ r(ee, {
725
725
  "model-value": C.value,
726
726
  items: a.value,
727
- placeholder: g.value,
728
- label: g.value,
729
- "onUpdate:modelValue": i[0] || (i[0] = (L) => k(L))
727
+ placeholder: f.value,
728
+ label: f.value,
729
+ "onUpdate:modelValue": i[0] || (i[0] = (j) => k(j))
730
730
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
731
- u.value ? (f(), z(Z, { key: 0 }, [
731
+ u.value ? (b(), R(te, { key: 0 }, [
732
732
  r(T, {
733
733
  modelValue: u.value.label,
734
- "onUpdate:modelValue": i[1] || (i[1] = (L) => u.value.label = L),
734
+ "onUpdate:modelValue": i[1] || (i[1] = (j) => u.value.label = j),
735
735
  label: l(t)("report.section.metric.label")
736
736
  }, null, 8, ["modelValue", "label"]),
737
- (((N = C.value) == null ? void 0 : N.aggregations) || []).length > 0 ? (f(), D(Q, {
737
+ (((B = C.value) == null ? void 0 : B.aggregations) || []).length > 0 ? (b(), D(ee, {
738
738
  key: 0,
739
739
  modelValue: u.value.aggregation,
740
- "onUpdate:modelValue": i[2] || (i[2] = (L) => u.value.aggregation = L),
740
+ "onUpdate:modelValue": i[2] || (i[2] = (j) => u.value.aggregation = j),
741
741
  label: l(t)("report.section.metric.aggregation"),
742
- items: ((X = C.value) == null ? void 0 : X.aggregations.map((L) => ({
743
- label: l(s)(`report.section.metric.aggregationType.${L}`) ? l(t)(`report.section.metric.aggregationType.${L}`) : l(Y)(l(t), l(s), L, "field"),
744
- value: L
742
+ items: ((P = C.value) == null ? void 0 : P.aggregations.map((j) => ({
743
+ label: l(s)(`report.section.metric.aggregationType.${j}`) ? l(t)(`report.section.metric.aggregationType.${j}`) : l(Y)(l(t), l(s), j, "field"),
744
+ value: j
745
745
  }))) ?? []
746
746
  }, null, 8, ["modelValue", "label", "items"])) : U("", !0),
747
- p.value ? (f(), D(S, {
747
+ p.value ? (b(), D(S, {
748
748
  key: 1,
749
749
  label: l(t)("report.common.decimal"),
750
- "model-value": ((le = u.value) == null ? void 0 : le.decimal) ?? 2,
751
- "onUpdate:modelValue": i[3] || (i[3] = (L) => {
752
- u.value && (u.value.decimal = L);
750
+ "model-value": ((G = u.value) == null ? void 0 : G.decimal) ?? 2,
751
+ "onUpdate:modelValue": i[3] || (i[3] = (j) => {
752
+ u.value && (u.value.decimal = j);
753
753
  })
754
754
  }, null, 8, ["label", "model-value"])) : U("", !0),
755
- p.value ? (f(), D(Q, {
755
+ p.value ? (b(), D(ee, {
756
756
  key: 2,
757
757
  modelValue: u.value.formatter,
758
- "onUpdate:modelValue": i[4] || (i[4] = (L) => u.value.formatter = L),
758
+ "onUpdate:modelValue": i[4] || (i[4] = (j) => u.value.formatter = j),
759
759
  placeholder: l(t)("report.section.metric.formatter"),
760
760
  label: l(t)("report.section.metric.formatter"),
761
761
  items: [
762
762
  { label: l(t)("report.section.metric.formatterType.NONE"), value: null },
763
- ...(((ae = C.value) == null ? void 0 : ae.formatters) || []).map((L) => ({
764
- label: l(s)(`report.section.metric.formatterType.${L}`) ? l(t)(`report.section.metric.formatterType.${L}`) : l(Y)(l(t), l(s), L, "field"),
765
- value: L
763
+ ...(((ne = C.value) == null ? void 0 : ne.formatters) || []).map((j) => ({
764
+ label: l(s)(`report.section.metric.formatterType.${j}`) ? l(t)(`report.section.metric.formatterType.${j}`) : l(Y)(l(t), l(s), j, "field"),
765
+ value: j
766
766
  }))
767
767
  ]
768
768
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : U("", !0),
769
- r(b, {
769
+ r(g, {
770
770
  modelValue: u.value.hide,
771
- "onUpdate:modelValue": i[5] || (i[5] = (L) => u.value.hide = L),
771
+ "onUpdate:modelValue": i[5] || (i[5] = (j) => u.value.hide = j),
772
772
  label: l(t)("report.section.metric.hide"),
773
773
  value: ""
774
774
  }, null, 8, ["modelValue", "label"]),
775
- v.hasRowColumn ? (f(), D(b, {
775
+ v.hasRowColumn ? (b(), D(g, {
776
776
  key: 3,
777
777
  modelValue: u.value.moveToRow,
778
- "onUpdate:modelValue": i[6] || (i[6] = (L) => u.value.moveToRow = L),
778
+ "onUpdate:modelValue": i[6] || (i[6] = (j) => u.value.moveToRow = j),
779
779
  label: l(t)("report.section.metric.moveToRow"),
780
780
  value: ""
781
781
  }, null, 8, ["modelValue", "label"])) : U("", !0),
782
- r(b, {
783
- modelValue: F.value,
784
- "onUpdate:modelValue": i[7] || (i[7] = (L) => F.value = L),
782
+ r(g, {
783
+ modelValue: w.value,
784
+ "onUpdate:modelValue": i[7] || (i[7] = (j) => w.value = j),
785
785
  label: l(t)("report.section.metric.advance"),
786
786
  value: !0
787
787
  }, null, 8, ["modelValue", "label"]),
788
- F.value ? (f(), D(M, {
788
+ w.value ? (b(), D(M, {
789
789
  key: 4,
790
790
  modelValue: u.value.dataFormula,
791
- "onUpdate:modelValue": i[8] || (i[8] = (L) => u.value.dataFormula = L),
791
+ "onUpdate:modelValue": i[8] || (i[8] = (j) => u.value.dataFormula = j),
792
792
  placeholder: l(t)("report.section.metric.dataFormula")
793
793
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0),
794
- F.value ? (f(), D(M, {
794
+ w.value ? (b(), D(M, {
795
795
  key: 5,
796
796
  modelValue: u.value.displayFormula,
797
- "onUpdate:modelValue": i[9] || (i[9] = (L) => u.value.displayFormula = L),
797
+ "onUpdate:modelValue": i[9] || (i[9] = (j) => u.value.displayFormula = j),
798
798
  placeholder: l(t)("report.section.metric.displayFormula")
799
799
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0)
800
800
  ], 64)) : U("", !0)
@@ -806,30 +806,30 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
806
806
  _: 1
807
807
  }, 8, ["modelValue", "title"]),
808
808
  h("div", null, [
809
- h("p", Vl, j(g.value), 1),
810
- h("p", wl, j(l(t)("report.section.metric.description")), 1)
809
+ h("p", Vl, L(f.value), 1),
810
+ h("p", Fl, L(l(t)("report.section.metric.description")), 1)
811
811
  ]),
812
- r(oe, null, {
813
- default: O(() => [
814
- r(l(_e), {
812
+ r(Z, null, {
813
+ default: N(() => [
814
+ r(l(Ve), {
815
815
  list: n.value,
816
816
  "item-key": "id",
817
817
  class: "flex flex-col gap-2 w-full"
818
818
  }, {
819
- item: O(({ element: N, index: X }) => [
820
- r(K, {
819
+ item: N(({ element: B, index: P }) => [
820
+ r(H, {
821
821
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
822
- onClick: te((le) => o(y.value[X]), ["stop"])
822
+ onClick: ae((G) => o(y.value[P]), ["stop"])
823
823
  }, {
824
- default: O(() => [
825
- r(W, { name: "drag_handle" }),
826
- h("p", Fl, j(l(Y)(l(t), l(s), N.label, "other")), 1),
824
+ default: N(() => [
825
+ r(Q, { name: "drag_handle" }),
826
+ h("p", wl, L(l(Y)(l(t), l(s), B.label, "other")), 1),
827
827
  i[12] || (i[12] = h("div", { class: "grow" }, null, -1)),
828
- r(E, {
828
+ r(q, {
829
829
  icon: "close",
830
830
  size: "md",
831
831
  variant: "tertiary",
832
- onClick: te((le) => _(X), ["stop"])
832
+ onClick: ae((G) => _(P), ["stop"])
833
833
  }, null, 8, ["onClick"])
834
834
  ]),
835
835
  _: 2
@@ -840,23 +840,23 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
840
840
  ]),
841
841
  _: 1
842
842
  }),
843
- r(B, {
843
+ r(I, {
844
844
  class: "text-fm-color-typo-tertiary",
845
845
  onClick: i[11] || (i[11] = () => {
846
846
  o();
847
847
  })
848
848
  }, {
849
- default: O(() => [
850
- pe(j(l(t)("report.section.metric.add")), 1)
849
+ default: N(() => [
850
+ ce(L(l(t)("report.section.metric.add")), 1)
851
851
  ]),
852
852
  _: 1
853
853
  })
854
854
  ]);
855
855
  };
856
856
  }
857
- }), Cl = { class: "flex flex-col my-2 gap-8" }, kl = { class: "fm-typo-en-body-lg-600" }, _l = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Sl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Tl = /* @__PURE__ */ q({
857
+ }), Cl = { class: "flex flex-col my-2 gap-8" }, kl = { class: "fm-typo-en-body-lg-600" }, _l = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Sl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Tl = /* @__PURE__ */ W({
858
858
  __name: "SortSection",
859
- props: /* @__PURE__ */ G({
859
+ props: /* @__PURE__ */ K({
860
860
  options: {
861
861
  type: Array,
862
862
  default: () => []
@@ -870,8 +870,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
870
870
  modelModifiers: {}
871
871
  }),
872
872
  emits: ["update:modelValue"],
873
- setup(V) {
874
- const { t: d, te: t } = J(), s = ee(V, "modelValue"), n = V, v = $(() => d(`report.section.sort.${n.label}`)), g = H(!1), m = $(
873
+ setup(F) {
874
+ const { t: d, te: t } = J(), s = le(F, "modelValue"), n = F, v = $(() => d(`report.section.sort.${n.label}`)), f = E(!1), m = $(
875
875
  () => s.value.map((x, _) => {
876
876
  const a = n.options.find(
877
877
  (i) => i.schemaName === x.schemaName && i.name === x.name
@@ -882,12 +882,12 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
882
882
  value: x
883
883
  };
884
884
  })
885
- ), y = H(s.value.length > 0 ? 0 : void 0);
885
+ ), y = E(s.value.length > 0 ? 0 : void 0);
886
886
  function c(x) {
887
887
  var _;
888
- g.value = !0, o.value = x != null && x.value ? JSON.parse(JSON.stringify(x.value)) : void 0, y.value = x == null ? void 0 : x.index, u.value = !!((_ = o.value) != null && _.dataFormula);
888
+ f.value = !0, o.value = x != null && x.value ? JSON.parse(JSON.stringify(x.value)) : void 0, y.value = x == null ? void 0 : x.index, u.value = !!((_ = o.value) != null && _.dataFormula);
889
889
  }
890
- const o = H(void 0), u = H(!1), F = $(
890
+ const o = E(void 0), u = E(!1), w = $(
891
891
  () => n.options.find(
892
892
  (x) => {
893
893
  var _, a;
@@ -905,17 +905,17 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
905
905
  type: Te.Asc
906
906
  });
907
907
  }
908
- function I() {
908
+ function O() {
909
909
  if (!o.value) {
910
910
  console.log("new sort is undefined");
911
911
  return;
912
912
  }
913
913
  const x = [...m.value.map((_) => _.value)];
914
- u.value || (o.value.dataFormula = void 0), y.value !== void 0 ? x[y.value] = o.value : x.push(o.value), s.value = x, g.value = !1;
914
+ u.value || (o.value.dataFormula = void 0), y.value !== void 0 ? x[y.value] = o.value : x.push(o.value), s.value = x, f.value = !1;
915
915
  }
916
916
  function p(x) {
917
917
  const _ = [...m.value.map((a) => a.value)];
918
- _.splice(x, 1), s.value = _, g.value = !1;
918
+ _.splice(x, 1), s.value = _, f.value = !1;
919
919
  }
920
920
  const k = $(
921
921
  () => n.options.map((x) => ({
@@ -924,69 +924,69 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
924
924
  }))
925
925
  );
926
926
  return (x, _) => {
927
- const a = w("FmCheckbox"), e = w("FmTextarea"), i = w("FmForm"), T = w("FmIcon"), S = w("FmButton"), b = w("FmListItem"), M = w("FmList"), A = w("FmField");
928
- return f(), z("div", Cl, [
929
- r(ce, {
930
- modelValue: g.value,
931
- "onUpdate:modelValue": _[6] || (_[6] = (W) => g.value = W),
927
+ const a = V("FmCheckbox"), e = V("FmTextarea"), i = V("FmForm"), T = V("FmIcon"), S = V("FmButton"), g = V("FmListItem"), M = V("FmList"), X = V("FmField");
928
+ return b(), R("div", Cl, [
929
+ r(ve, {
930
+ modelValue: f.value,
931
+ "onUpdate:modelValue": _[6] || (_[6] = (Q) => f.value = Q),
932
932
  title: v.value,
933
- onConfirm: I
933
+ onConfirm: O
934
934
  }, {
935
- content: O(() => [
935
+ content: N(() => [
936
936
  r(i, {
937
937
  ref: "form",
938
938
  class: "flex flex-col gap-2 w-[490px]"
939
939
  }, {
940
- default: O(() => {
941
- var W, E, K, oe;
940
+ default: N(() => {
941
+ var Q, q, H, Z;
942
942
  return [
943
- r(Q, {
944
- "model-value": F.value,
943
+ r(ee, {
944
+ "model-value": w.value,
945
945
  items: k.value,
946
946
  placeholder: v.value,
947
947
  label: v.value,
948
- "onUpdate:modelValue": _[0] || (_[0] = (B) => C(B))
948
+ "onUpdate:modelValue": _[0] || (_[0] = (I) => C(I))
949
949
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
950
- o.value ? (f(), z(Z, { key: 0 }, [
951
- (((W = F.value) == null ? void 0 : W.dimensionOptions) || []).length > 0 ? (f(), D(Q, {
950
+ o.value ? (b(), R(te, { key: 0 }, [
951
+ (((Q = w.value) == null ? void 0 : Q.dimensionOptions) || []).length > 0 ? (b(), D(ee, {
952
952
  key: 0,
953
953
  modelValue: o.value.dimensionOption,
954
- "onUpdate:modelValue": _[1] || (_[1] = (B) => o.value.dimensionOption = B),
955
- items: ((E = F.value) == null ? void 0 : E.dimensionOptions.map((B) => ({ label: B, value: B }))) ?? [],
954
+ "onUpdate:modelValue": _[1] || (_[1] = (I) => o.value.dimensionOption = I),
955
+ items: ((q = w.value) == null ? void 0 : q.dimensionOptions.map((I) => ({ label: I, value: I }))) ?? [],
956
956
  placeholder: l(d)("report.section.sort.format"),
957
957
  label: l(d)("report.section.sort.format")
958
958
  }, null, 8, ["modelValue", "items", "placeholder", "label"])) : U("", !0),
959
- (((K = F.value) == null ? void 0 : K.aggregations) || []).length > 0 ? (f(), D(Q, {
959
+ (((H = w.value) == null ? void 0 : H.aggregations) || []).length > 0 ? (b(), D(ee, {
960
960
  key: 1,
961
961
  modelValue: o.value.aggregation,
962
- "onUpdate:modelValue": _[2] || (_[2] = (B) => o.value.aggregation = B),
963
- items: ((oe = F.value) == null ? void 0 : oe.aggregations.map((B) => ({
964
- label: l(t)(`report.section.metric.aggregationType.${B}`) ? l(d)(`report.section.metric.aggregationType.${B}`) : B,
965
- value: B
962
+ "onUpdate:modelValue": _[2] || (_[2] = (I) => o.value.aggregation = I),
963
+ items: ((Z = w.value) == null ? void 0 : Z.aggregations.map((I) => ({
964
+ label: l(t)(`report.section.metric.aggregationType.${I}`) ? l(d)(`report.section.metric.aggregationType.${I}`) : I,
965
+ value: I
966
966
  }))) ?? [],
967
967
  label: l(d)("report.section.sort.aggregation"),
968
968
  placeholder: l(d)("report.section.sort.aggregation")
969
969
  }, null, 8, ["modelValue", "items", "label", "placeholder"])) : U("", !0),
970
- r(Q, {
970
+ r(ee, {
971
971
  modelValue: o.value.type,
972
- "onUpdate:modelValue": _[3] || (_[3] = (B) => o.value.type = B),
973
- items: Object.values(l(Te)).map((B) => ({
974
- label: l(t)(`report.section.sort.sortType.${B}`) ? l(d)(`report.section.sort.sortType.${B}`) : B,
975
- value: B
972
+ "onUpdate:modelValue": _[3] || (_[3] = (I) => o.value.type = I),
973
+ items: Object.values(l(Te)).map((I) => ({
974
+ label: l(t)(`report.section.sort.sortType.${I}`) ? l(d)(`report.section.sort.sortType.${I}`) : I,
975
+ value: I
976
976
  })),
977
977
  placeholder: l(d)("report.section.sort.order"),
978
978
  label: l(d)("report.section.sort.order")
979
979
  }, null, 8, ["modelValue", "items", "placeholder", "label"]),
980
980
  r(a, {
981
981
  modelValue: u.value,
982
- "onUpdate:modelValue": _[4] || (_[4] = (B) => u.value = B),
982
+ "onUpdate:modelValue": _[4] || (_[4] = (I) => u.value = I),
983
983
  label: l(d)("report.section.sort.advance"),
984
984
  value: !0
985
985
  }, null, 8, ["modelValue", "label"]),
986
- u.value ? (f(), D(e, {
986
+ u.value ? (b(), D(e, {
987
987
  key: 2,
988
988
  modelValue: o.value.dataFormula,
989
- "onUpdate:modelValue": _[5] || (_[5] = (B) => o.value.dataFormula = B),
989
+ "onUpdate:modelValue": _[5] || (_[5] = (I) => o.value.dataFormula = I),
990
990
  placeholder: l(d)("report.section.sort.dataFormula")
991
991
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0)
992
992
  ], 64)) : U("", !0)
@@ -998,30 +998,30 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
998
998
  _: 1
999
999
  }, 8, ["modelValue", "title"]),
1000
1000
  h("div", null, [
1001
- h("p", kl, j(v.value), 1),
1002
- h("p", _l, j(l(d)("report.section.sort.description")), 1)
1001
+ h("p", kl, L(v.value), 1),
1002
+ h("p", _l, L(l(d)("report.section.sort.description")), 1)
1003
1003
  ]),
1004
1004
  r(M, null, {
1005
- default: O(() => [
1006
- r(l(_e), {
1005
+ default: N(() => [
1006
+ r(l(Ve), {
1007
1007
  list: s.value,
1008
1008
  "item-key": "id",
1009
1009
  class: "flex flex-col gap-2 w-full"
1010
1010
  }, {
1011
- item: O(({ element: W, index: E }) => [
1012
- r(b, {
1011
+ item: N(({ element: Q, index: q }) => [
1012
+ r(g, {
1013
1013
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1014
- onClick: te((K) => c(m.value[E]), ["stop"])
1014
+ onClick: ae((H) => c(m.value[q]), ["stop"])
1015
1015
  }, {
1016
- default: O(() => [
1016
+ default: N(() => [
1017
1017
  r(T, { name: "drag_handle" }),
1018
- h("p", Sl, j(m.value[E].label), 1),
1018
+ h("p", Sl, L(m.value[q].label), 1),
1019
1019
  _[8] || (_[8] = h("div", { class: "grow" }, null, -1)),
1020
1020
  r(S, {
1021
1021
  icon: "close",
1022
1022
  size: "md",
1023
1023
  variant: "tertiary",
1024
- onClick: te((K) => p(E), ["stop"])
1024
+ onClick: ae((H) => p(q), ["stop"])
1025
1025
  }, null, 8, ["onClick"])
1026
1026
  ]),
1027
1027
  _: 2
@@ -1032,39 +1032,39 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1032
1032
  ]),
1033
1033
  _: 1
1034
1034
  }),
1035
- r(A, {
1035
+ r(X, {
1036
1036
  class: "text-fm-color-typo-tertiary",
1037
1037
  onClick: _[7] || (_[7] = () => {
1038
1038
  c();
1039
1039
  })
1040
1040
  }, {
1041
- default: O(() => [
1042
- pe(j(l(d)("report.section.sort.add")), 1)
1041
+ default: N(() => [
1042
+ ce(L(l(d)("report.section.sort.add")), 1)
1043
1043
  ]),
1044
1044
  _: 1
1045
1045
  })
1046
1046
  ]);
1047
1047
  };
1048
1048
  }
1049
- }), $l = { class: "fm-typo-en-body-lg-600" }, Dl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ul = /* @__PURE__ */ q({
1049
+ }), $l = { class: "fm-typo-en-body-lg-600" }, Dl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ul = /* @__PURE__ */ W({
1050
1050
  __name: "LimitSection",
1051
1051
  props: {
1052
1052
  modelValue: { required: !0, default: null },
1053
1053
  modelModifiers: {}
1054
1054
  },
1055
1055
  emits: ["update:modelValue"],
1056
- setup(V) {
1057
- const { t: d } = J(), t = ee(V, "modelValue"), s = be((n) => {
1056
+ setup(F) {
1057
+ const { t: d } = J(), t = le(F, "modelValue"), s = ye((n) => {
1058
1058
  n !== "" ? t.value = n : t.value = null;
1059
1059
  }, 1e3);
1060
1060
  return (n, v) => {
1061
- const g = w("FmTextField");
1062
- return f(), z(Z, null, [
1061
+ const f = V("FmTextField");
1062
+ return b(), R(te, null, [
1063
1063
  h("div", null, [
1064
- h("p", $l, j(l(d)("report.section.limit.title")), 1),
1065
- h("p", Dl, j(l(d)("report.section.limit.description")), 1)
1064
+ h("p", $l, L(l(d)("report.section.limit.title")), 1),
1065
+ h("p", Dl, L(l(d)("report.section.limit.description")), 1)
1066
1066
  ]),
1067
- r(g, {
1067
+ r(f, {
1068
1068
  "model-value": t.value,
1069
1069
  inputmode: "numeric",
1070
1070
  placeholder: l(d)("report.section.limit.placeholder"),
@@ -1073,9 +1073,9 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1073
1073
  ], 64);
1074
1074
  };
1075
1075
  }
1076
- }), Nl = { class: "flex flex-col my-2 gap-8" }, Ol = { class: "fm-typo-en-body-lg-600" }, Il = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ll = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Bl = /* @__PURE__ */ q({
1076
+ }), Nl = { class: "flex flex-col my-2 gap-8" }, Ol = { class: "fm-typo-en-body-lg-600" }, Il = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ll = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Bl = /* @__PURE__ */ W({
1077
1077
  __name: "ConditionSection",
1078
- props: /* @__PURE__ */ G({
1078
+ props: /* @__PURE__ */ K({
1079
1079
  joinFieldOptions: {
1080
1080
  type: Array,
1081
1081
  default: () => []
@@ -1093,18 +1093,18 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1093
1093
  modelModifiers: {}
1094
1094
  }),
1095
1095
  emits: ["update:modelValue"],
1096
- setup(V) {
1097
- const { t: d, te: t } = J(), s = ee(V, "modelValue"), n = V, v = $(() => d(`report.section.condition.${n.label}`)), g = H(!1), m = $(
1096
+ setup(F) {
1097
+ const { t: d, te: t } = J(), s = le(F, "modelValue"), n = F, v = $(() => d(`report.section.condition.${n.label}`)), f = E(!1), m = $(
1098
1098
  () => s.value.map((a, e) => {
1099
- var S, b;
1099
+ var S, g;
1100
1100
  const i = n.joinFieldOptions.find(
1101
1101
  (M) => {
1102
- var A, W;
1103
- return M.schemaName === ((A = a.joinDimension) == null ? void 0 : A.schemaName) && M.name === ((W = a.joinDimension) == null ? void 0 : W.name);
1102
+ var X, Q;
1103
+ return M.schemaName === ((X = a.joinDimension) == null ? void 0 : X.schemaName) && M.name === ((Q = a.joinDimension) == null ? void 0 : Q.name);
1104
1104
  }
1105
1105
  ), T = (i == null ? void 0 : i.labels) || [
1106
1106
  (S = a.joinDimension) == null ? void 0 : S.schemaName,
1107
- (b = a.joinDimension) == null ? void 0 : b.name
1107
+ (g = a.joinDimension) == null ? void 0 : g.name
1108
1108
  ];
1109
1109
  return {
1110
1110
  index: e,
@@ -1112,22 +1112,22 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1112
1112
  value: a
1113
1113
  };
1114
1114
  })
1115
- ), y = H(s.value.length > 0 ? 0 : void 0);
1115
+ ), y = E(s.value.length > 0 ? 0 : void 0);
1116
1116
  function c(a) {
1117
1117
  a ? (o.value = a != null && a.value ? JSON.parse(JSON.stringify(a.value)) : void 0, y.value = a == null ? void 0 : a.index) : (o.value = {
1118
1118
  joinDimension: null,
1119
1119
  operator: "",
1120
1120
  mainDimensions: []
1121
- }, y.value = void 0), g.value = !0;
1121
+ }, y.value = void 0), f.value = !0;
1122
1122
  }
1123
- const o = H(void 0), u = $(
1123
+ const o = E(void 0), u = $(
1124
1124
  () => n.joinFieldOptions.find(
1125
1125
  (a) => {
1126
1126
  var e, i;
1127
1127
  return a.schemaName === ((i = (e = o.value) == null ? void 0 : e.joinDimension) == null ? void 0 : i.schemaName) && a.name === o.value.joinDimension.name;
1128
1128
  }
1129
1129
  ) ?? {}
1130
- ), F = $(
1130
+ ), w = $(
1131
1131
  () => {
1132
1132
  var a;
1133
1133
  return (((a = o.value) == null ? void 0 : a.mainDimensions) || []).map(
@@ -1139,7 +1139,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1139
1139
  ), C = $(
1140
1140
  () => n.joinFieldOptions.map((a) => ({ label: a.labels.join(" "), value: a }))
1141
1141
  );
1142
- function I(a) {
1142
+ function O(a) {
1143
1143
  var e, i, T, S;
1144
1144
  o.value && (o.value && a.schemaName !== ((i = (e = o.value) == null ? void 0 : e.joinDimension) == null ? void 0 : i.schemaName) || a.name !== ((S = (T = o.value) == null ? void 0 : T.joinDimension) == null ? void 0 : S.name)) && (o.value = {
1145
1145
  ...o.value,
@@ -1153,8 +1153,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1153
1153
  }, a.joinConditionOperators.includes(o.value.operator) || k(a.joinConditionOperators[0]));
1154
1154
  }
1155
1155
  function p(a, e) {
1156
- var i, T, S, b;
1157
- if (o.value && e >= 0 && (o.value && a.schemaName !== ((T = (i = o.value) == null ? void 0 : i.mainDimensions[e]) == null ? void 0 : T.schemaName) || a.name !== ((b = (S = o.value) == null ? void 0 : S.mainDimensions[e]) == null ? void 0 : b.name))) {
1156
+ var i, T, S, g;
1157
+ if (o.value && e >= 0 && (o.value && a.schemaName !== ((T = (i = o.value) == null ? void 0 : i.mainDimensions[e]) == null ? void 0 : T.schemaName) || a.name !== ((g = (S = o.value) == null ? void 0 : S.mainDimensions[e]) == null ? void 0 : g.name))) {
1158
1158
  const M = [...o.value.mainDimensions];
1159
1159
  M[e] = {
1160
1160
  schemaName: a.schemaName,
@@ -1191,79 +1191,79 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1191
1191
  const a = [...m.value.map((e) => e.value)];
1192
1192
  o.value && (o.value.mainDimensions = o.value.mainDimensions.filter(
1193
1193
  (e) => e !== "" && e != null
1194
- ), y.value !== void 0 ? a[y.value] = o.value : a.push(o.value)), s.value = a, g.value = !1;
1194
+ ), y.value !== void 0 ? a[y.value] = o.value : a.push(o.value)), s.value = a, f.value = !1;
1195
1195
  }
1196
1196
  function _(a) {
1197
1197
  const e = [...m.value.map((i) => i.value)];
1198
1198
  e.splice(a, 1), s.value = e;
1199
1199
  }
1200
1200
  return (a, e) => {
1201
- const i = w("FmMenuDivider"), T = w("FmForm"), S = w("FmButton"), b = w("FmListItem"), M = w("FmList"), A = w("FmField");
1202
- return f(), z("div", Nl, [
1203
- r(ce, {
1204
- modelValue: g.value,
1205
- "onUpdate:modelValue": e[2] || (e[2] = (W) => g.value = W),
1201
+ const i = V("FmMenuDivider"), T = V("FmForm"), S = V("FmIcon"), g = V("FmButton"), M = V("FmListItem"), X = V("FmList"), Q = V("FmField");
1202
+ return b(), R("div", Nl, [
1203
+ r(ve, {
1204
+ modelValue: f.value,
1205
+ "onUpdate:modelValue": e[2] || (e[2] = (q) => f.value = q),
1206
1206
  title: v.value,
1207
1207
  onConfirm: x
1208
1208
  }, {
1209
- content: O(() => [
1209
+ content: N(() => [
1210
1210
  r(T, {
1211
1211
  ref: "form",
1212
1212
  class: "flex flex-col gap-2 w-[490px]"
1213
1213
  }, {
1214
- default: O(() => {
1215
- var W, E, K, oe, B;
1214
+ default: N(() => {
1215
+ var q, H, Z, I, B;
1216
1216
  return [
1217
- r(Q, {
1217
+ r(ee, {
1218
1218
  label: l(d)("report.section.condition.joinDatasource"),
1219
1219
  "model-value": u.value,
1220
1220
  items: C.value,
1221
1221
  placeholder: l(d)("report.section.condition.joinDimension"),
1222
- "onUpdate:modelValue": e[0] || (e[0] = (N) => I(N))
1222
+ "onUpdate:modelValue": e[0] || (e[0] = (P) => O(P))
1223
1223
  }, null, 8, ["label", "model-value", "items", "placeholder"]),
1224
1224
  r(i),
1225
- (W = o.value) != null && W.joinDimension && (((E = u.value) == null ? void 0 : E.dimensionOptions) || []).length > 0 ? (f(), D(Q, {
1225
+ (q = o.value) != null && q.joinDimension && (((H = u.value) == null ? void 0 : H.dimensionOptions) || []).length > 0 ? (b(), D(ee, {
1226
1226
  key: 0,
1227
1227
  modelValue: o.value.joinDimension.option,
1228
- "onUpdate:modelValue": e[1] || (e[1] = (N) => o.value.joinDimension.option = N),
1228
+ "onUpdate:modelValue": e[1] || (e[1] = (P) => o.value.joinDimension.option = P),
1229
1229
  label: l(d)("report.section.condition.format"),
1230
- items: ((K = u.value) == null ? void 0 : K.dimensionOptions.map((N) => ({
1231
- label: l(t)(`report.section.filter.${l(ve)(N)}`) ? l(d)(`report.section.filter.${l(ve)(N)}`) : N,
1232
- value: N
1230
+ items: ((Z = u.value) == null ? void 0 : Z.dimensionOptions.map((P) => ({
1231
+ label: l(t)(`report.section.filter.${l(fe)(P)}`) ? l(d)(`report.section.filter.${l(fe)(P)}`) : P,
1232
+ value: P
1233
1233
  }))) ?? []
1234
1234
  }, null, 8, ["modelValue", "label", "items"])) : U("", !0),
1235
- o.value && (((oe = u.value) == null ? void 0 : oe.joinConditionOperators) || []).length > 0 ? (f(), D(Q, {
1235
+ o.value && (((I = u.value) == null ? void 0 : I.joinConditionOperators) || []).length > 0 ? (b(), D(ee, {
1236
1236
  key: 1,
1237
1237
  "model-value": o.value.operator,
1238
1238
  label: l(d)("report.section.condition.operator"),
1239
- items: u.value.joinConditionOperators.map((N) => ({
1240
- label: l(d)("report.section.comparisonOperator." + N),
1241
- value: N
1239
+ items: u.value.joinConditionOperators.map((P) => ({
1240
+ label: l(d)("report.section.comparisonOperator." + P),
1241
+ value: P
1242
1242
  })) ?? [],
1243
1243
  "onUpdate:modelValue": k
1244
1244
  }, null, 8, ["model-value", "label", "items"])) : U("", !0),
1245
- (f(!0), z(Z, null, de(((B = o.value) == null ? void 0 : B.mainDimensions) || [], (N, X) => {
1246
- var le, ae;
1247
- return f(), z("div", {
1248
- key: X,
1245
+ (b(!0), R(te, null, me(((B = o.value) == null ? void 0 : B.mainDimensions) || [], (P, G) => {
1246
+ var ne, j;
1247
+ return b(), R("div", {
1248
+ key: G,
1249
1249
  class: "flex flex-col gap-2"
1250
1250
  }, [
1251
- r(Q, {
1252
- "model-value": F.value[X],
1253
- label: l(d)("report.section.condition.mainDatasource", { index: X + 1 }),
1254
- items: n.mainFieldOptions.map((L) => ({
1255
- label: L.labels.join(" "),
1256
- value: L
1251
+ r(ee, {
1252
+ "model-value": w.value[G],
1253
+ label: l(d)("report.section.condition.mainDatasource", { index: G + 1 }),
1254
+ items: n.mainFieldOptions.map((oe) => ({
1255
+ label: oe.labels.join(" "),
1256
+ value: oe
1257
1257
  })),
1258
- "onUpdate:modelValue": (L) => p(L, X)
1258
+ "onUpdate:modelValue": (oe) => p(oe, G)
1259
1259
  }, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
1260
- N && (((le = F.value[X]) == null ? void 0 : le.dimensionOptions) || []).length > 0 && N ? (f(), D(Q, {
1260
+ P && (((ne = w.value[G]) == null ? void 0 : ne.dimensionOptions) || []).length > 0 && P ? (b(), D(ee, {
1261
1261
  key: 0,
1262
- modelValue: N.option,
1263
- "onUpdate:modelValue": (L) => N.option = L,
1264
- items: (ae = F.value[X]) == null ? void 0 : ae.dimensionOptions.map((L) => ({
1265
- label: l(t)(`report.section.filter.${l(ve)(L)}`) ? l(d)(`report.section.filter.${l(ve)(L)}`) : L,
1266
- value: L
1262
+ modelValue: P.option,
1263
+ "onUpdate:modelValue": (oe) => P.option = oe,
1264
+ items: (j = w.value[G]) == null ? void 0 : j.dimensionOptions.map((oe) => ({
1265
+ label: l(t)(`report.section.filter.${l(fe)(oe)}`) ? l(d)(`report.section.filter.${l(fe)(oe)}`) : oe,
1266
+ value: oe
1267
1267
  }))
1268
1268
  }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : U("", !0),
1269
1269
  r(i)
@@ -1277,46 +1277,58 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1277
1277
  _: 1
1278
1278
  }, 8, ["modelValue", "title"]),
1279
1279
  h("div", null, [
1280
- h("p", Ol, j(v.value), 1),
1281
- h("p", Il, j(l(d)("report.section.condition.description")), 1)
1280
+ h("p", Ol, L(v.value), 1),
1281
+ h("p", Il, L(l(d)("report.section.condition.description")), 1)
1282
1282
  ]),
1283
- r(M, { class: "flex flex-col gap-2" }, {
1284
- default: O(() => [
1285
- (f(!0), z(Z, null, de(s.value, (W, E) => (f(), D(b, {
1286
- key: E,
1287
- class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1288
- onClick: (K) => c(m.value[E])
1283
+ r(X, { class: "flex flex-col gap-2" }, {
1284
+ default: N(() => [
1285
+ r(l(Ve), {
1286
+ list: s.value,
1287
+ "item-key": (q) => {
1288
+ var H, Z;
1289
+ return `${(H = q.joinDimension) == null ? void 0 : H.schemaName}:${(Z = q.joinDimension) == null ? void 0 : Z.name}`;
1290
+ },
1291
+ class: "flex flex-col gap-2 w-full"
1289
1292
  }, {
1290
- default: O(() => [
1291
- h("p", Ll, j(m.value[E].label), 1),
1292
- e[4] || (e[4] = h("div", { class: "grow" }, null, -1)),
1293
- r(S, {
1294
- icon: "close",
1295
- size: "md",
1296
- variant: "tertiary",
1297
- onClick: te((K) => _(E), ["stop"])
1298
- }, null, 8, ["onClick"])
1293
+ item: N(({ element: q, index: H }) => [
1294
+ r(M, {
1295
+ class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1296
+ onClick: ae((Z) => c(m.value[H]), ["stop"])
1297
+ }, {
1298
+ default: N(() => [
1299
+ r(S, { name: "drag_handle" }),
1300
+ h("p", Ll, L(m.value[H].label), 1),
1301
+ e[4] || (e[4] = h("div", { class: "grow" }, null, -1)),
1302
+ r(g, {
1303
+ icon: "close",
1304
+ size: "md",
1305
+ variant: "tertiary",
1306
+ onClick: ae((Z) => _(H), ["stop"])
1307
+ }, null, 8, ["onClick"])
1308
+ ]),
1309
+ _: 2
1310
+ }, 1032, ["onClick"])
1299
1311
  ]),
1300
- _: 2
1301
- }, 1032, ["onClick"]))), 128))
1312
+ _: 1
1313
+ }, 8, ["list", "item-key"])
1302
1314
  ]),
1303
1315
  _: 1
1304
1316
  }),
1305
- r(A, {
1317
+ r(Q, {
1306
1318
  class: "text-fm-color-typo-tertiary cursor-pointer",
1307
- onClick: e[3] || (e[3] = (W) => c())
1319
+ onClick: e[3] || (e[3] = (q) => c())
1308
1320
  }, {
1309
- default: O(() => [
1310
- pe(j(l(d)("report.section.condition.add")), 1)
1321
+ default: N(() => [
1322
+ ce(L(l(d)("report.section.condition.add")), 1)
1311
1323
  ]),
1312
1324
  _: 1
1313
1325
  })
1314
1326
  ]);
1315
1327
  };
1316
1328
  }
1317
- }), Ue = /* @__PURE__ */ q({
1329
+ }), Ue = /* @__PURE__ */ W({
1318
1330
  __name: "Datasource",
1319
- props: /* @__PURE__ */ G({
1331
+ props: /* @__PURE__ */ K({
1320
1332
  label: {
1321
1333
  type: String,
1322
1334
  default: "Label"
@@ -1343,29 +1355,29 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1343
1355
  modelValue: { required: !0 },
1344
1356
  modelModifiers: {}
1345
1357
  }),
1346
- emits: /* @__PURE__ */ G(["click-close"], ["update:modelValue"]),
1347
- setup(V, { emit: d }) {
1348
- const { disableEditMode: t, resetStore: s } = ge(), n = ee(V, "modelValue");
1349
- ue(
1358
+ emits: /* @__PURE__ */ K(["click-close"], ["update:modelValue"]),
1359
+ setup(F, { emit: d }) {
1360
+ const { disableEditMode: t, resetStore: s } = be(), n = le(F, "modelValue");
1361
+ re(
1350
1362
  [() => n.value.dimensions, () => n.value.metrics],
1351
1363
  () => {
1352
- const { rowIds: a, columnIds: e } = ye(n.value);
1364
+ const { rowIds: a, columnIds: e } = he(n.value);
1353
1365
  n.value.rowIds = a, n.value.columnIds = e;
1354
1366
  },
1355
1367
  { deep: !0 }
1356
1368
  );
1357
- const v = V, g = d, { schemas: m } = re(Be());
1369
+ const v = F, f = d, { schemas: m } = de(Be());
1358
1370
  Xe(() => {
1359
1371
  t(), s();
1360
1372
  });
1361
- const { t: y, te: c, locale: o } = J(), u = $(() => !v.mainDatasourceConfig), F = $(
1362
- () => [R.BarChart, R.LineChart, R.Scorecard].includes(v.config.type)
1373
+ const { t: y, te: c, locale: o } = J(), u = $(() => !v.mainDatasourceConfig), w = $(
1374
+ () => [z.BarChart, z.LineChart, z.Scorecard].includes(v.config.type)
1363
1375
  ), C = $(() => {
1364
1376
  const a = [...n.value.dimensions].filter((e) => !e.hide);
1365
1377
  return a.sort(
1366
- (e, i) => (n.value.rowIds || []).indexOf(me(e)) - (n.value.rowIds || []).indexOf(me(i))
1378
+ (e, i) => (n.value.rowIds || []).indexOf(pe(e)) - (n.value.rowIds || []).indexOf(pe(i))
1367
1379
  ), a;
1368
- }), I = $(() => v.config.type === R.Scorecard), p = $(
1380
+ }), O = $(() => v.config.type === z.Scorecard), p = $(
1369
1381
  () => {
1370
1382
  var a;
1371
1383
  return (((a = v.mainDatasourceConfig) == null ? void 0 : a.schemaNames) || []).reduce(
@@ -1417,139 +1429,139 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1417
1429
  }))
1418
1430
  ]);
1419
1431
  return (a, e) => {
1420
- const i = w("FmButton"), T = w("FmSwitch"), S = w("FmSelect");
1421
- return f(), D(Fe, null, {
1422
- header: O(() => [
1423
- h("p", null, j(v.label), 1),
1432
+ const i = V("FmButton"), T = V("FmSwitch"), S = V("FmSelect");
1433
+ return b(), D(Ce, null, {
1434
+ header: N(() => [
1435
+ h("p", null, L(v.label), 1),
1424
1436
  e[19] || (e[19] = h("div", { class: "grow" }, null, -1)),
1425
- v.closeable ? (f(), D(i, {
1437
+ v.closeable ? (b(), D(i, {
1426
1438
  key: 0,
1427
1439
  icon: "close",
1428
1440
  variant: "tertiary",
1429
1441
  size: "md",
1430
- onClick: e[0] || (e[0] = te((b) => g("click-close"), ["stop"]))
1442
+ onClick: e[0] || (e[0] = ae((g) => f("click-close"), ["stop"]))
1431
1443
  })) : U("", !0)
1432
1444
  ]),
1433
- content: O(() => [
1445
+ content: N(() => [
1434
1446
  r(pl, {
1435
1447
  modelValue: n.value,
1436
- "onUpdate:modelValue": e[1] || (e[1] = (b) => n.value = b),
1448
+ "onUpdate:modelValue": e[1] || (e[1] = (g) => n.value = g),
1437
1449
  label: l(y)("report.section.schema.title")
1438
1450
  }, null, 8, ["modelValue", "label"]),
1439
- r(we, {
1451
+ r(xe, {
1440
1452
  modelValue: n.value.dimensions,
1441
- "onUpdate:modelValue": e[2] || (e[2] = (b) => n.value.dimensions = b),
1453
+ "onUpdate:modelValue": e[2] || (e[2] = (g) => n.value.dimensions = g),
1442
1454
  options: k.value,
1443
1455
  config: n.value,
1444
1456
  max: v.config.maxDimension,
1445
1457
  "has-row-column": !0,
1446
- onConfig: e[3] || (e[3] = (b) => {
1447
- n.value = b;
1458
+ onConfig: e[3] || (e[3] = (g) => {
1459
+ n.value = g;
1448
1460
  })
1449
1461
  }, null, 8, ["modelValue", "options", "config", "max"]),
1450
1462
  r(T, {
1451
1463
  "label-placement": "right",
1452
1464
  label: l(y)("report.section.datasource.comparable"),
1453
1465
  "model-value": n.value.isComparable ?? !1,
1454
- "onUpdate:modelValue": e[4] || (e[4] = (b) => {
1455
- n.value.isComparable = b;
1466
+ "onUpdate:modelValue": e[4] || (e[4] = (g) => {
1467
+ n.value.isComparable = g;
1456
1468
  })
1457
1469
  }, null, 8, ["label", "model-value"]),
1458
- F.value ? (f(), D(T, {
1470
+ w.value ? (b(), D(T, {
1459
1471
  key: 0,
1460
1472
  "label-placement": "right",
1461
1473
  label: l(y)("report.section.datasource.cumulative"),
1462
1474
  "model-value": n.value.isCumulative ?? !1,
1463
- "onUpdate:modelValue": e[5] || (e[5] = (b) => {
1464
- n.value.isCumulative = b;
1475
+ "onUpdate:modelValue": e[5] || (e[5] = (g) => {
1476
+ n.value.isCumulative = g;
1465
1477
  })
1466
1478
  }, null, 8, ["label", "model-value"])) : U("", !0),
1467
- v.config.isDrillConfigurable && u.value ? (f(), D(T, {
1479
+ v.config.isDrillConfigurable && u.value ? (b(), D(T, {
1468
1480
  key: 1,
1469
1481
  label: l(y)("report.section.datasource.drill"),
1470
1482
  "label-placement": "right",
1471
1483
  "model-value": n.value.isDrillable ?? !1,
1472
- "onUpdate:modelValue": e[6] || (e[6] = (b) => {
1473
- n.value.isDrillable = b;
1484
+ "onUpdate:modelValue": e[6] || (e[6] = (g) => {
1485
+ n.value.isDrillable = g;
1474
1486
  })
1475
1487
  }, null, 8, ["label", "model-value"])) : U("", !0),
1476
- u.value ? (f(), D(T, {
1488
+ u.value ? (b(), D(T, {
1477
1489
  key: 2,
1478
1490
  modelValue: n.value.isBlend,
1479
- "onUpdate:modelValue": e[7] || (e[7] = (b) => n.value.isBlend = b),
1491
+ "onUpdate:modelValue": e[7] || (e[7] = (g) => n.value.isBlend = g),
1480
1492
  label: l(y)("report.section.datasource.blend"),
1481
1493
  "label-placement": "right"
1482
1494
  }, null, 8, ["modelValue", "label"])) : U("", !0),
1483
- v.config.canRollup && u.value ? (f(), D(S, {
1495
+ v.config.canRollup && u.value ? (b(), D(S, {
1484
1496
  key: `rollup-${l(o)}`,
1485
1497
  modelValue: n.value.rollup,
1486
- "onUpdate:modelValue": e[8] || (e[8] = (b) => n.value.rollup = b),
1498
+ "onUpdate:modelValue": e[8] || (e[8] = (g) => n.value.rollup = g),
1487
1499
  label: l(y)("report.section.datasource.subTotal"),
1488
1500
  items: x.value
1489
1501
  }, null, 8, ["modelValue", "label", "items"])) : U("", !0),
1490
- u.value ? U("", !0) : (f(), D(S, {
1502
+ u.value ? U("", !0) : (b(), D(S, {
1491
1503
  key: `periodType-${l(o)}`,
1492
1504
  modelValue: n.value.periodType,
1493
- "onUpdate:modelValue": e[9] || (e[9] = (b) => n.value.periodType = b),
1505
+ "onUpdate:modelValue": e[9] || (e[9] = (g) => n.value.periodType = g),
1494
1506
  label: l(y)("report.section.datasource.periodType.label"),
1495
1507
  items: _.value
1496
1508
  }, null, 8, ["modelValue", "label", "items"])),
1497
- v.config.canTranspose && u.value ? (f(), D(T, {
1509
+ v.config.canTranspose && u.value ? (b(), D(T, {
1498
1510
  key: 5,
1499
1511
  modelValue: n.value.isTransposed,
1500
- "onUpdate:modelValue": e[10] || (e[10] = (b) => n.value.isTransposed = b),
1512
+ "onUpdate:modelValue": e[10] || (e[10] = (g) => n.value.isTransposed = g),
1501
1513
  label: l(y)("report.section.datasource.transpose"),
1502
1514
  "label-placement": "right"
1503
1515
  }, null, 8, ["modelValue", "label"])) : U("", !0),
1504
- v.config.hasBreakdownDimension ? (f(), D(we, {
1516
+ v.config.hasBreakdownDimension ? (b(), D(xe, {
1505
1517
  key: 6,
1506
1518
  "model-value": n.value.breakdownDimension ? [n.value.breakdownDimension] : [],
1507
1519
  label: "breakdownDimension",
1508
1520
  max: 1,
1509
1521
  options: k.value,
1510
- "onUpdate:modelValue": e[11] || (e[11] = (b) => {
1511
- n.value.breakdownDimension = b[0];
1522
+ "onUpdate:modelValue": e[11] || (e[11] = (g) => {
1523
+ n.value.breakdownDimension = g[0];
1512
1524
  })
1513
1525
  }, null, 8, ["model-value", "options"])) : U("", !0),
1514
- I.value ? (f(), D(we, {
1526
+ O.value ? (b(), D(xe, {
1515
1527
  key: 7,
1516
1528
  "model-value": n.value.sparklineDimension ? [n.value.sparklineDimension] : [],
1517
1529
  label: "sparklineDimension",
1518
1530
  max: 1,
1519
1531
  options: k.value,
1520
- "onUpdate:modelValue": e[12] || (e[12] = (b) => {
1521
- n.value.sparklineDimension = b[0];
1532
+ "onUpdate:modelValue": e[12] || (e[12] = (g) => {
1533
+ n.value.sparklineDimension = g[0];
1522
1534
  })
1523
1535
  }, null, 8, ["model-value", "options"])) : U("", !0),
1524
1536
  r(xl, {
1525
1537
  modelValue: n.value.metrics,
1526
- "onUpdate:modelValue": e[13] || (e[13] = (b) => n.value.metrics = b),
1538
+ "onUpdate:modelValue": e[13] || (e[13] = (g) => n.value.metrics = g),
1527
1539
  options: k.value,
1528
1540
  max: v.config.maxMetric,
1529
1541
  config: n.value,
1530
- "has-row-column": v.config.type === l(R).Table,
1531
- onConfig: e[14] || (e[14] = (b) => {
1532
- n.value = b;
1542
+ "has-row-column": v.config.type === l(z).Table,
1543
+ onConfig: e[14] || (e[14] = (g) => {
1544
+ n.value = g;
1533
1545
  })
1534
1546
  }, null, 8, ["modelValue", "options", "max", "config", "has-row-column"]),
1535
1547
  r(Ge, {
1536
1548
  modelValue: n.value.filters,
1537
- "onUpdate:modelValue": e[15] || (e[15] = (b) => n.value.filters = b),
1549
+ "onUpdate:modelValue": e[15] || (e[15] = (g) => n.value.filters = g),
1538
1550
  options: k.value
1539
1551
  }, null, 8, ["modelValue", "options"]),
1540
1552
  r(Tl, {
1541
1553
  modelValue: n.value.sorts,
1542
- "onUpdate:modelValue": e[16] || (e[16] = (b) => n.value.sorts = b),
1554
+ "onUpdate:modelValue": e[16] || (e[16] = (g) => n.value.sorts = g),
1543
1555
  options: k.value
1544
1556
  }, null, 8, ["modelValue", "options"]),
1545
1557
  r(Ul, {
1546
1558
  modelValue: n.value.limit,
1547
- "onUpdate:modelValue": e[17] || (e[17] = (b) => n.value.limit = b)
1559
+ "onUpdate:modelValue": e[17] || (e[17] = (g) => n.value.limit = g)
1548
1560
  }, null, 8, ["modelValue"]),
1549
- n.value.conditions ? (f(), D(Bl, {
1561
+ n.value.conditions ? (b(), D(Bl, {
1550
1562
  key: 8,
1551
1563
  modelValue: n.value.conditions,
1552
- "onUpdate:modelValue": e[18] || (e[18] = (b) => n.value.conditions = b),
1564
+ "onUpdate:modelValue": e[18] || (e[18] = (g) => n.value.conditions = g),
1553
1565
  "join-field-options": k.value,
1554
1566
  "main-field-options": p.value
1555
1567
  }, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : U("", !0)
@@ -1558,9 +1570,9 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1558
1570
  });
1559
1571
  };
1560
1572
  }
1561
- }), jl = { class: "fm-typo-en-title-sm-600" }, Ce = /* @__PURE__ */ q({
1573
+ }), jl = { class: "fm-typo-en-title-sm-600" }, _e = /* @__PURE__ */ W({
1562
1574
  __name: "TileEditorTabHeader",
1563
- props: /* @__PURE__ */ G({
1575
+ props: /* @__PURE__ */ K({
1564
1576
  icon: {
1565
1577
  type: String,
1566
1578
  required: !0
@@ -1570,33 +1582,33 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1570
1582
  modelModifiers: {}
1571
1583
  }),
1572
1584
  emits: ["update:modelValue"],
1573
- setup(V) {
1574
- const { t: d } = J(), t = ee(V, "modelValue"), s = V;
1585
+ setup(F) {
1586
+ const { t: d } = J(), t = le(F, "modelValue"), s = F;
1575
1587
  return (n, v) => {
1576
- const g = w("FmIcon");
1577
- return f(), z("div", {
1588
+ const f = V("FmIcon");
1589
+ return b(), R("div", {
1578
1590
  class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
1579
1591
  onClick: v[0] || (v[0] = (m) => t.value = !t.value)
1580
1592
  }, [
1581
- h("p", jl, j(l(d)("report.tile.setting")), 1),
1593
+ h("p", jl, L(l(d)("report.tile.setting")), 1),
1582
1594
  v[1] || (v[1] = h("div", { class: "grow" }, null, -1)),
1583
- r(g, {
1595
+ r(f, {
1584
1596
  name: s.icon
1585
1597
  }, null, 8, ["name"])
1586
1598
  ]);
1587
1599
  };
1588
1600
  }
1589
- }), zl = /* @__PURE__ */ q({
1601
+ }), zl = /* @__PURE__ */ W({
1590
1602
  __name: "TileEditorTabDesktop",
1591
1603
  props: {
1592
1604
  modelValue: { required: !0, default: !1 },
1593
1605
  modelModifiers: {}
1594
1606
  },
1595
1607
  emits: ["update:modelValue"],
1596
- setup(V) {
1597
- const d = ee(V, "modelValue");
1598
- return (t, s) => (f(), z(Z, null, [
1599
- r(Ce, {
1608
+ setup(F) {
1609
+ const d = le(F, "modelValue");
1610
+ return (t, s) => (b(), R(te, null, [
1611
+ r(_e, {
1600
1612
  modelValue: d.value,
1601
1613
  "onUpdate:modelValue": s[0] || (s[0] = (n) => d.value = n),
1602
1614
  icon: "keyboard_double_arrow_left"
@@ -1604,19 +1616,19 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1604
1616
  Oe(t.$slots, "default")
1605
1617
  ], 64));
1606
1618
  }
1607
- }), Rl = { class: "fixed bottom-0 w-full" }, Ml = /* @__PURE__ */ q({
1619
+ }), Rl = { class: "fixed bottom-0 w-full" }, Ml = /* @__PURE__ */ W({
1608
1620
  __name: "TileEditorTabMobile",
1609
1621
  props: {
1610
1622
  modelValue: { required: !0, default: !1 },
1611
1623
  modelModifiers: {}
1612
1624
  },
1613
1625
  emits: ["update:modelValue"],
1614
- setup(V) {
1615
- const d = ee(V, "modelValue");
1626
+ setup(F) {
1627
+ const d = le(F, "modelValue");
1616
1628
  return (t, s) => {
1617
- const n = w("FmTopSheet");
1618
- return f(), z("div", Rl, [
1619
- r(Ce, {
1629
+ const n = V("FmTopSheet");
1630
+ return b(), R("div", Rl, [
1631
+ r(_e, {
1620
1632
  modelValue: d.value,
1621
1633
  "onUpdate:modelValue": s[0] || (s[0] = (v) => d.value = v),
1622
1634
  icon: "keyboard_double_arrow_up"
@@ -1626,8 +1638,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1626
1638
  "onUpdate:modelValue": s[2] || (s[2] = (v) => d.value = v),
1627
1639
  "fullscreen-size": "sm"
1628
1640
  }, {
1629
- default: O(() => [
1630
- r(Ce, {
1641
+ default: N(() => [
1642
+ r(_e, {
1631
1643
  modelValue: d.value,
1632
1644
  "onUpdate:modelValue": s[1] || (s[1] = (v) => d.value = v),
1633
1645
  icon: "keyboard_double_arrow_down"
@@ -1639,17 +1651,17 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1639
1651
  ]);
1640
1652
  };
1641
1653
  }
1642
- }), Pl = { class: "flex gap-16" }, Al = { class: "flex flex-col gap-8 max-w-[120px]" }, Xl = { class: "fm-typo-en-body-lg-600" }, ql = { class: "flex flex-col gap-16" }, Wl = { class: "fm-typo-en-body-lg-600" }, Hl = { class: "flex flex-row gap-8" }, El = /* @__PURE__ */ q({
1654
+ }), Pl = { class: "flex gap-16" }, Al = { class: "flex flex-col gap-8 max-w-[120px]" }, Xl = { class: "fm-typo-en-body-lg-600" }, ql = { class: "flex flex-col gap-16" }, Wl = { class: "fm-typo-en-body-lg-600" }, Hl = { class: "flex flex-row gap-8" }, El = /* @__PURE__ */ W({
1643
1655
  __name: "TitleSection",
1644
1656
  props: {
1645
1657
  model: {}
1646
1658
  },
1647
1659
  emits: ["update:model"],
1648
- setup(V, { emit: d }) {
1649
- const t = V, s = d, { t: n } = J(), v = $({
1660
+ setup(F, { emit: d }) {
1661
+ const t = F, s = d, { t: n } = J(), v = $({
1650
1662
  get: () => t.model.showTitle ?? !1,
1651
1663
  set: (o) => s("update:model", { ...t.model, showTitle: o })
1652
- }), g = $({
1664
+ }), f = $({
1653
1665
  get: () => t.model.titleFontSize ?? 14,
1654
1666
  set: (o) => s("update:model", { ...t.model, titleFontSize: Math.min(Number(o), 24) })
1655
1667
  }), m = $({
@@ -1663,22 +1675,22 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1663
1675
  set: (o) => s("update:model", { ...t.model, titleUnderline: o })
1664
1676
  });
1665
1677
  return (o, u) => {
1666
- const F = w("FmStepperField"), C = w("FmButton"), I = w("FmSwitch");
1667
- return f(), z(Z, null, [
1678
+ const w = V("FmStepperField"), C = V("FmButton"), O = V("FmSwitch");
1679
+ return b(), R(te, null, [
1668
1680
  h("div", null, [
1669
1681
  h("div", Pl, [
1670
1682
  h("div", Al, [
1671
- h("p", Xl, j(l(n)("report.section.datasource.title.titleFontSize")), 1),
1672
- r(F, {
1673
- modelValue: g.value,
1674
- "onUpdate:modelValue": u[0] || (u[0] = (p) => g.value = p),
1683
+ h("p", Xl, L(l(n)("report.section.datasource.title.titleFontSize")), 1),
1684
+ r(w, {
1685
+ modelValue: f.value,
1686
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => f.value = p),
1675
1687
  max: 24,
1676
1688
  min: 1,
1677
1689
  type: "number"
1678
1690
  }, null, 8, ["modelValue"])
1679
1691
  ]),
1680
1692
  h("div", ql, [
1681
- h("p", Wl, j(l(n)("report.section.datasource.title.textStyleFormat")), 1),
1693
+ h("p", Wl, L(l(n)("report.section.datasource.title.textStyleFormat")), 1),
1682
1694
  h("div", Hl, [
1683
1695
  r(C, {
1684
1696
  "append-icon": "format_bold",
@@ -1709,7 +1721,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1709
1721
  ])
1710
1722
  ])
1711
1723
  ]),
1712
- r(I, {
1724
+ r(O, {
1713
1725
  modelValue: v.value,
1714
1726
  "onUpdate:modelValue": u[4] || (u[4] = (p) => v.value = p),
1715
1727
  label: l(n)("report.section.datasource.title.showTitle"),
@@ -1721,21 +1733,21 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1721
1733
  }), Yl = { class: "flex flex-col gap-8" }, Jl = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Gl = { class: "flex flex-row gap-2" }, Kl = {
1722
1734
  key: 0,
1723
1735
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
1724
- }, Ql = /* @__PURE__ */ q({
1736
+ }, Ql = /* @__PURE__ */ W({
1725
1737
  __name: "TableResizeSection",
1726
1738
  props: {
1727
1739
  layout: {}
1728
1740
  },
1729
1741
  emits: ["update:layout"],
1730
- setup(V, { emit: d }) {
1731
- const { t } = J(), s = V, n = d, { isEditing: v, colWidths: g, rowHeight: m } = re(ge()), { enableCellResizing: y, cancelResizingChanges: c, resetStore: o, disableEditMode: u } = ge();
1742
+ setup(F, { emit: d }) {
1743
+ const { t } = J(), s = F, n = d, { isEditing: v, colWidths: f, rowHeight: m } = de(be()), { enableCellResizing: y, cancelResizingChanges: c, resetStore: o, disableEditMode: u } = be();
1732
1744
  $(
1733
1745
  () => {
1734
- var C, I, p;
1735
- return (((I = (C = s.layout) == null ? void 0 : C.colWidths) == null ? void 0 : I.length) ?? 0) > 0 || g.value.length > 0 || (((p = s.layout) == null ? void 0 : p.rowHeight) ?? 0) > 0 || m.value > 0;
1746
+ var C, O, p;
1747
+ return (((O = (C = s.layout) == null ? void 0 : C.colWidths) == null ? void 0 : O.length) ?? 0) > 0 || f.value.length > 0 || (((p = s.layout) == null ? void 0 : p.rowHeight) ?? 0) > 0 || m.value > 0;
1736
1748
  }
1737
1749
  );
1738
- function F() {
1750
+ function w() {
1739
1751
  o(), u(), n("update:layout", {
1740
1752
  ...s.layout,
1741
1753
  rowHeight: void 0,
@@ -1744,8 +1756,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1744
1756
  const C = document.querySelector("table");
1745
1757
  if (C) {
1746
1758
  C.classList.remove("table-fixed"), C.classList.add("table-auto"), C.style.width = "";
1747
- const I = C.querySelectorAll("th"), p = C.querySelectorAll("td"), k = C.querySelectorAll("tr");
1748
- I.forEach((x) => {
1759
+ const O = C.querySelectorAll("th"), p = C.querySelectorAll("td"), k = C.querySelectorAll("tr");
1760
+ O.forEach((x) => {
1749
1761
  x.style.width = "";
1750
1762
  }), p.forEach((x) => {
1751
1763
  x.style.width = "";
@@ -1754,15 +1766,15 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1754
1766
  });
1755
1767
  }
1756
1768
  }
1757
- return ke(() => {
1758
- var C, I;
1759
- ((C = s.layout) == null ? void 0 : C.rowHeight) !== void 0 && (m.value = s.layout.rowHeight), (I = s.layout) != null && I.colWidths && (g.value = [...s.layout.colWidths]);
1760
- }), (C, I) => {
1761
- const p = w("FmButton");
1762
- return f(), z("div", Yl, [
1763
- h("p", Jl, j(l(t)("report.section.datasource.tableLayout")), 1),
1769
+ return Se(() => {
1770
+ var C, O;
1771
+ ((C = s.layout) == null ? void 0 : C.rowHeight) !== void 0 && (m.value = s.layout.rowHeight), (O = s.layout) != null && O.colWidths && (f.value = [...s.layout.colWidths]);
1772
+ }), (C, O) => {
1773
+ const p = V("FmButton");
1774
+ return b(), R("div", Yl, [
1775
+ h("p", Jl, L(l(t)("report.section.datasource.tableLayout")), 1),
1764
1776
  h("div", Gl, [
1765
- l(v) ? U("", !0) : (f(), D(p, {
1777
+ l(v) ? U("", !0) : (b(), D(p, {
1766
1778
  key: 0,
1767
1779
  label: l(t)("report.section.datasource.resizeTable"),
1768
1780
  variant: "secondary",
@@ -1771,7 +1783,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1771
1783
  class: "[&_.label]:line-clamp-none w-full",
1772
1784
  onClick: l(y)
1773
1785
  }, null, 8, ["label", "onClick"])),
1774
- l(v) ? (f(), D(p, {
1786
+ l(v) ? (b(), D(p, {
1775
1787
  key: 1,
1776
1788
  label: l(t)("report.common.cancel"),
1777
1789
  variant: "primary",
@@ -1786,16 +1798,16 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1786
1798
  icon: "restore",
1787
1799
  "icon-position": "prepend",
1788
1800
  class: "[&_.label]:line-clamp-none w-full",
1789
- onClick: F
1801
+ onClick: w
1790
1802
  }, null, 8, ["label"])
1791
1803
  ]),
1792
- l(v) ? (f(), z("p", Kl, j(l(t)("report.section.datasource.resizeTableHelper")), 1)) : U("", !0)
1804
+ l(v) ? (b(), R("p", Kl, L(l(t)("report.section.datasource.resizeTableHelper")), 1)) : U("", !0)
1793
1805
  ]);
1794
1806
  };
1795
1807
  }
1796
- }), Zl = { class: "flex gap-16 justify-center items-center" }, eo = { class: "fm-typo-en-title-sm-600" }, lo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, to = { class: "h-[40x]" }, Ne = "YYYY-MM-DD", Ae = /* @__PURE__ */ q({
1808
+ }), Zl = { class: "flex gap-16 justify-center items-center" }, eo = { class: "fm-typo-en-title-sm-600" }, lo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, to = { class: "h-[40x]" }, Ne = "YYYY-MM-DD", Ae = /* @__PURE__ */ W({
1797
1809
  __name: "TileEditorTab",
1798
- props: /* @__PURE__ */ G({
1810
+ props: /* @__PURE__ */ K({
1799
1811
  hideConfiguration: {
1800
1812
  type: Boolean,
1801
1813
  default: !1
@@ -1806,23 +1818,23 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1806
1818
  },
1807
1819
  modelModifiers: {}
1808
1820
  }),
1809
- emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
1810
- setup(V, { emit: d }) {
1821
+ emits: /* @__PURE__ */ K(["hideConfiguration"], ["update:modelValue"]),
1822
+ setup(F, { emit: d }) {
1811
1823
  var i, T;
1812
- const t = ze(), { dateRange: s, timezone: n } = re(t), v = {
1824
+ const t = ze(), { dateRange: s, timezone: n } = de(t), v = {
1813
1825
  startDate: s.value.startDate,
1814
1826
  endDate: s.value.endDate
1815
- }, g = H({
1816
- startDate: (i = fe(s.value.startDate)) == null ? void 0 : i.tz(n.value).format(Ne),
1817
- endDate: (T = fe(s.value.endDate)) == null ? void 0 : T.tz(n.value).format(Ne)
1827
+ }, f = E({
1828
+ startDate: (i = ge(s.value.startDate)) == null ? void 0 : i.tz(n.value).format(Ne),
1829
+ endDate: (T = ge(s.value.endDate)) == null ? void 0 : T.tz(n.value).format(Ne)
1818
1830
  });
1819
- ue(
1820
- g,
1831
+ re(
1832
+ f,
1821
1833
  () => {
1822
- g.value.endDate || (g.value.endDate = g.value.startDate);
1834
+ f.value.endDate || (f.value.endDate = f.value.startDate);
1823
1835
  const S = {
1824
- startDate: fe.tz(g.value.startDate, n.value).startOf("day").utc().toISOString(),
1825
- endDate: fe.tz(g.value.endDate, n.value).endOf("day").utc().toISOString()
1836
+ startDate: ge.tz(f.value.startDate, n.value).startOf("day").utc().toISOString(),
1837
+ endDate: ge.tz(f.value.endDate, n.value).endOf("day").utc().toISOString()
1826
1838
  };
1827
1839
  s.value = S;
1828
1840
  },
@@ -1830,13 +1842,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1830
1842
  ), qe(() => {
1831
1843
  s.value = { ...v };
1832
1844
  });
1833
- const m = ee(V, "modelValue"), { breakpoints: y } = Re(), c = V, { promptMessage: o } = je(), u = d, { t: F, locale: C } = J();
1834
- function I(S) {
1845
+ const m = le(F, "modelValue"), { breakpoints: y } = Re(), c = F, { promptMessage: o } = je(), u = d, { t: w, locale: C } = J();
1846
+ function O(S) {
1835
1847
  m.value = yl(S);
1836
1848
  }
1837
1849
  function p() {
1838
1850
  const S = [...m.value.widget.config.joinDatasources || []];
1839
- S.push({ ...Qe(m.value.widget.type), conditions: [] }), I({
1851
+ S.push({ ...Qe(m.value.widget.type), conditions: [] }), O({
1840
1852
  ...m.value,
1841
1853
  widget: {
1842
1854
  ...m.value.widget,
@@ -1849,11 +1861,11 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1849
1861
  }
1850
1862
  async function k(S) {
1851
1863
  if (!await o({
1852
- title: F("report.tile.datasource.remove"),
1853
- message: F("report.tile.datasource.confirmRemove", { index: S + 1 })
1864
+ title: w("report.tile.datasource.remove"),
1865
+ message: w("report.tile.datasource.confirmRemove", { index: S + 1 })
1854
1866
  })) return;
1855
1867
  const M = [...m.value.widget.config.joinDatasources || []];
1856
- M.splice(S, 1), I({
1868
+ M.splice(S, 1), O({
1857
1869
  ...m.value,
1858
1870
  widget: {
1859
1871
  ...m.value.widget,
@@ -1864,197 +1876,197 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
1864
1876
  }
1865
1877
  });
1866
1878
  }
1867
- const x = (S, b) => {
1868
- let M = 1, A = 1;
1879
+ const x = (S, g) => {
1880
+ let M = 1, X = 1;
1869
1881
  switch (S) {
1870
- case R.Scorecard:
1871
- M = 1, A = 2;
1882
+ case z.Scorecard:
1883
+ M = 1, X = 2;
1872
1884
  break;
1873
- case R.BarChart:
1874
- case R.StackBarChart:
1875
- case R.LineChart:
1876
- case R.StackLineChart:
1877
- M = 4, A = 6;
1885
+ case z.BarChart:
1886
+ case z.StackBarChart:
1887
+ case z.LineChart:
1888
+ case z.StackLineChart:
1889
+ M = 4, X = 6;
1878
1890
  break;
1879
- case R.Table:
1880
- M = 4, A = 12;
1891
+ case z.Table:
1892
+ M = 4, X = 12;
1881
1893
  break;
1882
- case R.Circular:
1883
- M = 4, A = 4;
1894
+ case z.Circular:
1895
+ M = 4, X = 4;
1884
1896
  break;
1885
- case R.Spacer:
1886
- M = 0, A = 12;
1897
+ case z.Spacer:
1898
+ M = 0, X = 12;
1887
1899
  break;
1888
1900
  }
1889
1901
  return {
1890
- id: b.id,
1902
+ id: g.id,
1891
1903
  size: {
1892
1904
  height: M,
1893
- width: A
1905
+ width: X
1894
1906
  },
1895
1907
  widget: {
1896
- ...b.widget,
1908
+ ...g.widget,
1897
1909
  type: S
1898
1910
  }
1899
1911
  };
1900
1912
  }, _ = $(
1901
- () => he.find((S) => S.type === m.value.widget.type)
1902
- ), a = $(() => m.value.widget.config.joinDatasources), e = be((S) => {
1913
+ () => Fe.find((S) => S.type === m.value.widget.type)
1914
+ ), a = $(() => m.value.widget.config.joinDatasources), e = ye((S) => {
1903
1915
  m.value.widget.title = S;
1904
1916
  }, 500);
1905
- return ue(
1917
+ return re(
1906
1918
  () => m.value.size.height,
1907
1919
  (S) => {
1908
1920
  S < 1 && (m.value.size.height = 1), S > 12 && (m.value.size.height = 12);
1909
1921
  }
1910
- ), ue(
1922
+ ), re(
1911
1923
  () => m.value.size.width,
1912
1924
  (S) => {
1913
1925
  S < 1 && (m.value.size.width = 1), S > 12 && (m.value.size.width = 12);
1914
1926
  }
1915
- ), (S, b) => {
1916
- const M = w("FmCircularProgress"), A = w("FmSimpleDateRangePicker"), W = w("FmTextField"), E = w("FmTextarea"), K = w("FmStepperField"), oe = w("FmButton"), B = w("FmForm");
1917
- return f(), D(Ie(l(y).lg || l(y).md ? zl : Ml), {
1927
+ ), (S, g) => {
1928
+ const M = V("FmCircularProgress"), X = V("FmSimpleDateRangePicker"), Q = V("FmTextField"), q = V("FmTextarea"), H = V("FmStepperField"), Z = V("FmButton"), I = V("FmForm");
1929
+ return b(), D(Ie(l(y).lg || l(y).md ? zl : Ml), {
1918
1930
  "model-value": c.hideConfiguration,
1919
- "onUpdate:modelValue": b[9] || (b[9] = (N) => u("hideConfiguration", N))
1931
+ "onUpdate:modelValue": g[9] || (g[9] = (B) => u("hideConfiguration", B))
1920
1932
  }, {
1921
- default: O(() => [
1922
- m.value ? (f(), D(B, {
1933
+ default: N(() => [
1934
+ m.value ? (b(), D(I, {
1923
1935
  key: 1,
1924
1936
  ref: "form",
1925
1937
  class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
1926
1938
  }, {
1927
- default: O(() => [
1939
+ default: N(() => [
1928
1940
  h("div", Zl, [
1929
- (f(), D(A, {
1941
+ (b(), D(X, {
1930
1942
  key: `date-picker-${l(C)}`,
1931
- modelValue: g.value,
1932
- "onUpdate:modelValue": b[0] || (b[0] = (N) => g.value = N)
1943
+ modelValue: f.value,
1944
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => f.value = B)
1933
1945
  }, null, 8, ["modelValue"]))
1934
1946
  ]),
1935
- r(Fe, null, {
1936
- header: O(() => [
1937
- h("p", eo, j(l(F)("report.tile.widget.details")), 1),
1938
- b[10] || (b[10] = h("div", { class: "grow" }, null, -1))
1947
+ r(Ce, null, {
1948
+ header: N(() => [
1949
+ h("p", eo, L(l(w)("report.tile.widget.details")), 1),
1950
+ g[10] || (g[10] = h("div", { class: "grow" }, null, -1))
1939
1951
  ]),
1940
- content: O(() => [
1941
- r(W, {
1952
+ content: N(() => [
1953
+ r(Q, {
1942
1954
  "model-value": m.value.widget.title,
1943
- label: l(F)("report.tile.widget.title"),
1944
- placeholder: l(F)("report.tile.widget.titlePlaceholder"),
1955
+ label: l(w)("report.tile.widget.title"),
1956
+ placeholder: l(w)("report.tile.widget.titlePlaceholder"),
1945
1957
  "onUpdate:modelValue": l(e)
1946
1958
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
1947
- r(E, {
1959
+ r(q, {
1948
1960
  modelValue: m.value.widget.description,
1949
- "onUpdate:modelValue": b[1] || (b[1] = (N) => m.value.widget.description = N),
1961
+ "onUpdate:modelValue": g[1] || (g[1] = (B) => m.value.widget.description = B),
1950
1962
  disabled: m.value.widget.title === "",
1951
- placeholder: l(F)("report.tile.widget.descriptionPlaceholder"),
1952
- "helper-text": l(F)("report.tile.widget.descriptionHelper")
1963
+ placeholder: l(w)("report.tile.widget.descriptionPlaceholder"),
1964
+ "helper-text": l(w)("report.tile.widget.descriptionHelper")
1953
1965
  }, {
1954
- label: O(() => [
1955
- h("p", lo, j(l(F)("report.tile.widget.widgetDescription")), 1),
1956
- h("p", oo, " (" + j(l(F)("report.tile.widget.optional")) + ") ", 1)
1966
+ label: N(() => [
1967
+ h("p", lo, L(l(w)("report.tile.widget.widgetDescription")), 1),
1968
+ h("p", oo, " (" + L(l(w)("report.tile.widget.optional")) + ") ", 1)
1957
1969
  ]),
1958
1970
  _: 1
1959
1971
  }, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
1960
1972
  r(El, {
1961
1973
  model: m.value.widget.config,
1962
- "onUpdate:model": b[2] || (b[2] = (N) => m.value.widget.config = N)
1974
+ "onUpdate:model": g[2] || (g[2] = (B) => m.value.widget.config = B)
1963
1975
  }, null, 8, ["model"]),
1964
1976
  h("div", {
1965
1977
  class: Le(["flex flex-row", `${l(y).sm || l(y).xs ? "gap-16" : "gap-2"}`])
1966
1978
  }, [
1967
- r(K, {
1979
+ r(H, {
1968
1980
  modelValue: m.value.size.width,
1969
- "onUpdate:modelValue": b[3] || (b[3] = (N) => m.value.size.width = N),
1970
- label: l(F)("report.tile.widget.width"),
1981
+ "onUpdate:modelValue": g[3] || (g[3] = (B) => m.value.size.width = B),
1982
+ label: l(w)("report.tile.widget.width"),
1971
1983
  min: 1,
1972
1984
  max: 12
1973
1985
  }, null, 8, ["modelValue", "label"]),
1974
- r(K, {
1986
+ r(H, {
1975
1987
  modelValue: m.value.size.height,
1976
- "onUpdate:modelValue": b[4] || (b[4] = (N) => m.value.size.height = N),
1977
- label: l(F)("report.tile.widget.height"),
1988
+ "onUpdate:modelValue": g[4] || (g[4] = (B) => m.value.size.height = B),
1989
+ label: l(w)("report.tile.widget.height"),
1978
1990
  min: 1,
1979
1991
  max: 12,
1980
- disabled: m.value.widget.type === l(R).Scorecard
1992
+ disabled: m.value.widget.type === l(z).Scorecard
1981
1993
  }, null, 8, ["modelValue", "label", "disabled"])
1982
1994
  ], 2),
1983
- m.value.widget.type === l(R).Table ? (f(), D(Ql, {
1995
+ m.value.widget.type === l(z).Table ? (b(), D(Ql, {
1984
1996
  key: 0,
1985
1997
  layout: m.value.widget.config,
1986
- "onUpdate:layout": b[5] || (b[5] = (N) => m.value.widget.config = N)
1998
+ "onUpdate:layout": g[5] || (g[5] = (B) => m.value.widget.config = B)
1987
1999
  }, null, 8, ["layout"])) : U("", !0)
1988
2000
  ]),
1989
2001
  _: 1
1990
2002
  }),
1991
- r(Fe, null, {
1992
- header: O(() => [
1993
- h("p", null, j(l(F)("report.tile.widget.type")), 1),
1994
- b[11] || (b[11] = h("div", { class: "grow" }, null, -1))
2003
+ r(Ce, null, {
2004
+ header: N(() => [
2005
+ h("p", null, L(l(w)("report.tile.widget.type")), 1),
2006
+ g[11] || (g[11] = h("div", { class: "grow" }, null, -1))
1995
2007
  ]),
1996
- content: O(() => [
2008
+ content: N(() => [
1997
2009
  r(Ke, {
1998
2010
  "is-list": !0,
1999
2011
  "model-value": m.value.widget.type,
2000
2012
  class: "grid grid-cols-1 gap-2",
2001
2013
  "child-class": "flex flex-row p-[8px] gap-2",
2002
- "exclude-widge-type": [l(R).Spacer],
2003
- "onUpdate:modelValue": b[6] || (b[6] = (N) => m.value = x(N, m.value))
2014
+ "exclude-widge-type": [l(z).Spacer],
2015
+ "onUpdate:modelValue": g[6] || (g[6] = (B) => m.value = x(B, m.value))
2004
2016
  }, null, 8, ["model-value", "exclude-widge-type"])
2005
2017
  ]),
2006
2018
  _: 1
2007
2019
  }),
2008
2020
  r(Ue, {
2009
2021
  modelValue: m.value.widget.config,
2010
- "onUpdate:modelValue": b[7] || (b[7] = (N) => m.value.widget.config = N),
2011
- label: l(F)("report.tile.datasource.main"),
2022
+ "onUpdate:modelValue": g[7] || (g[7] = (B) => m.value.widget.config = B),
2023
+ label: l(w)("report.tile.datasource.main"),
2012
2024
  config: _.value
2013
2025
  }, null, 8, ["modelValue", "label", "config"]),
2014
- a.value ? (f(!0), z(Z, { key: 0 }, de(a.value, (N, X) => (f(), z("div", { key: X }, [
2026
+ a.value ? (b(!0), R(te, { key: 0 }, me(a.value, (B, P) => (b(), R("div", { key: P }, [
2015
2027
  r(Ue, {
2016
- modelValue: a.value[X],
2017
- "onUpdate:modelValue": (le) => a.value[X] = le,
2018
- label: l(F)("report.tile.datasource.join", { index: X + 1 }),
2028
+ modelValue: a.value[P],
2029
+ "onUpdate:modelValue": (G) => a.value[P] = G,
2030
+ label: l(w)("report.tile.datasource.join", { index: P + 1 }),
2019
2031
  config: _.value,
2020
2032
  "main-datasource-config": m.value.widget.config,
2021
2033
  closeable: !0,
2022
- onClickClose: (le) => k(X)
2034
+ onClickClose: (G) => k(P)
2023
2035
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
2024
2036
  ]))), 128)) : U("", !0),
2025
2037
  h("div", to, [
2026
- r(oe, {
2027
- label: l(F)("report.tile.datasource.joinButton"),
2038
+ r(Z, {
2039
+ label: l(w)("report.tile.datasource.joinButton"),
2028
2040
  variant: "secondary",
2029
2041
  icon: "add",
2030
2042
  "icon-position": "prepend",
2031
2043
  "border-color": "primary",
2032
2044
  "text-color": "primary",
2033
2045
  class: "w-full",
2034
- onClick: b[8] || (b[8] = (N) => p())
2046
+ onClick: g[8] || (g[8] = (B) => p())
2035
2047
  }, null, 8, ["label"])
2036
2048
  ])
2037
2049
  ]),
2038
2050
  _: 1
2039
- }, 512)) : (f(), D(M, { key: 0 }))
2051
+ }, 512)) : (b(), D(M, { key: 0 }))
2040
2052
  ]),
2041
2053
  _: 1
2042
2054
  }, 8, ["model-value"]);
2043
2055
  };
2044
2056
  }
2045
- }), ao = { class: "flex flex-col gap-8" }, no = { class: "pl-32 flex flex-col gap-8" }, io = { class: "fm-typo-en-body-lg-600" }, so = { class: "flex flex-row gap-8" }, uo = { class: "fm-typo-en-body-lg-600" }, ro = { class: "flex flex-row gap-8" }, mo = /* @__PURE__ */ q({
2057
+ }), ao = { class: "flex flex-col gap-8" }, no = { class: "pl-32 flex flex-col gap-8" }, io = { class: "fm-typo-en-body-lg-600" }, so = { class: "flex flex-row gap-8" }, uo = { class: "fm-typo-en-body-lg-600" }, ro = { class: "flex flex-row gap-8" }, mo = /* @__PURE__ */ W({
2046
2058
  __name: "LabelSection",
2047
2059
  props: {
2048
2060
  model: {}
2049
2061
  },
2050
2062
  emits: ["update:model"],
2051
- setup(V, { emit: d }) {
2052
- const t = V, s = d, { t: n } = J(), v = $({
2063
+ setup(F, { emit: d }) {
2064
+ const t = F, s = d, { t: n } = J(), v = $({
2053
2065
  get: () => t.model.showLabel ?? !1,
2054
2066
  set: (C) => {
2055
2067
  s("update:model", { ...t.model, showLabel: C });
2056
2068
  }
2057
- }), g = $({
2069
+ }), f = $({
2058
2070
  get: () => t.model.labelRotation ?? 0,
2059
2071
  set: (C) => s("update:model", { ...t.model, labelRotation: C })
2060
2072
  }), m = $({
@@ -2074,40 +2086,40 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2074
2086
  labelAnchor: t.model.labelAnchor === C ? void 0 : C
2075
2087
  });
2076
2088
  }, u = [
2077
- { icon: "align_horizontal_left", value: se.left, tooltip: "alignLeft" },
2078
- { icon: "align_justify_center", value: se.center, tooltip: "alignCenter" },
2079
- { icon: "align_horizontal_right", value: se.right, tooltip: "alignRight" },
2080
- { icon: "align_justify_flex_start", value: se.start, tooltip: "alignStart" },
2081
- { icon: "align_justify_flex_end", value: se.end, tooltip: "alignEnd" },
2082
- { icon: "align_flex_start", value: se.top, tooltip: "alignTop" },
2083
- { icon: "align_flex_end", value: se.bottom, tooltip: "alignBottom" }
2084
- ], F = [
2085
- { icon: "format_align_left", value: Ve.start, tooltip: "anchorStart" },
2086
- { icon: "format_align_center", value: Ve.center, tooltip: "anchorCenter" },
2087
- { icon: "format_align_right", value: Ve.end, tooltip: "anchorEnd" }
2089
+ { icon: "align_horizontal_left", value: ue.left, tooltip: "alignLeft" },
2090
+ { icon: "align_justify_center", value: ue.center, tooltip: "alignCenter" },
2091
+ { icon: "align_horizontal_right", value: ue.right, tooltip: "alignRight" },
2092
+ { icon: "align_justify_flex_start", value: ue.start, tooltip: "alignStart" },
2093
+ { icon: "align_justify_flex_end", value: ue.end, tooltip: "alignEnd" },
2094
+ { icon: "align_flex_start", value: ue.top, tooltip: "alignTop" },
2095
+ { icon: "align_flex_end", value: ue.bottom, tooltip: "alignBottom" }
2096
+ ], w = [
2097
+ { icon: "format_align_left", value: we.start, tooltip: "anchorStart" },
2098
+ { icon: "format_align_center", value: we.center, tooltip: "anchorCenter" },
2099
+ { icon: "format_align_right", value: we.end, tooltip: "anchorEnd" }
2088
2100
  ];
2089
- return (C, I) => {
2090
- const p = w("FmCheckbox"), k = w("FmButton"), x = w("FmTooltip"), _ = w("FmTextField"), a = w("FmStepperField");
2091
- return f(), z("div", ao, [
2101
+ return (C, O) => {
2102
+ const p = V("FmCheckbox"), k = V("FmButton"), x = V("FmTooltip"), _ = V("FmTextField"), a = V("FmStepperField");
2103
+ return b(), R("div", ao, [
2092
2104
  r(p, {
2093
2105
  modelValue: v.value,
2094
- "onUpdate:modelValue": I[0] || (I[0] = (e) => v.value = e),
2106
+ "onUpdate:modelValue": O[0] || (O[0] = (e) => v.value = e),
2095
2107
  value: !1,
2096
2108
  label: l(n)("report.section.datasource.label.showLabel"),
2097
2109
  "label-placement": "right",
2098
2110
  class: "fm-typo-en-body-lg-400"
2099
2111
  }, null, 8, ["modelValue", "label"]),
2100
- ne(h("div", no, [
2101
- h("p", io, j(l(n)("report.section.datasource.alignment.textAlignment")), 1),
2112
+ ie(h("div", no, [
2113
+ h("p", io, L(l(n)("report.section.datasource.alignment.textAlignment")), 1),
2102
2114
  h("div", so, [
2103
- (f(), z(Z, null, de(u, ({ icon: e, value: i, tooltip: T }) => r(x, {
2115
+ (b(), R(te, null, me(u, ({ icon: e, value: i, tooltip: T }) => r(x, {
2104
2116
  key: i,
2105
2117
  variant: "plain",
2106
2118
  placement: "top",
2107
2119
  content: l(n)(`report.section.datasource.alignment.alignOptions.${T}`),
2108
2120
  "z-index": 50
2109
2121
  }, {
2110
- default: O(() => [
2122
+ default: N(() => [
2111
2123
  r(k, {
2112
2124
  "append-icon": e,
2113
2125
  variant: "tertiary",
@@ -2120,16 +2132,16 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2120
2132
  _: 2
2121
2133
  }, 1032, ["content"])), 64))
2122
2134
  ]),
2123
- h("p", uo, j(l(n)("report.section.datasource.alignment.anchor")), 1),
2135
+ h("p", uo, L(l(n)("report.section.datasource.alignment.anchor")), 1),
2124
2136
  h("div", ro, [
2125
- (f(), z(Z, null, de(F, ({ icon: e, value: i, tooltip: T }) => r(x, {
2137
+ (b(), R(te, null, me(w, ({ icon: e, value: i, tooltip: T }) => r(x, {
2126
2138
  key: i,
2127
2139
  variant: "plain",
2128
2140
  placement: "top",
2129
2141
  content: l(n)(`report.section.datasource.alignment.anchorOptions.${T}`),
2130
2142
  "z-index": 50
2131
2143
  }, {
2132
- default: O(() => [
2144
+ default: N(() => [
2133
2145
  r(k, {
2134
2146
  "append-icon": e,
2135
2147
  variant: "tertiary",
@@ -2143,8 +2155,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2143
2155
  }, 1032, ["content"])), 64))
2144
2156
  ]),
2145
2157
  r(_, {
2146
- modelValue: g.value,
2147
- "onUpdate:modelValue": I[1] || (I[1] = (e) => g.value = e),
2158
+ modelValue: f.value,
2159
+ "onUpdate:modelValue": O[1] || (O[1] = (e) => f.value = e),
2148
2160
  label: l(n)("report.section.datasource.alignment.rotation"),
2149
2161
  type: "number",
2150
2162
  min: -180,
@@ -2153,36 +2165,36 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2153
2165
  }, null, 8, ["modelValue", "label"]),
2154
2166
  r(_, {
2155
2167
  modelValue: m.value,
2156
- "onUpdate:modelValue": I[2] || (I[2] = (e) => m.value = e),
2168
+ "onUpdate:modelValue": O[2] || (O[2] = (e) => m.value = e),
2157
2169
  label: l(n)("report.section.datasource.alignment.offset"),
2158
2170
  type: "number"
2159
2171
  }, null, 8, ["modelValue", "label"]),
2160
2172
  r(a, {
2161
2173
  modelValue: y.value,
2162
- "onUpdate:modelValue": I[3] || (I[3] = (e) => y.value = e),
2174
+ "onUpdate:modelValue": O[3] || (O[3] = (e) => y.value = e),
2163
2175
  label: l(n)("report.section.datasource.fontSize"),
2164
2176
  type: "number",
2165
2177
  min: 1
2166
2178
  }, null, 8, ["modelValue", "label"])
2167
2179
  ], 512), [
2168
- [ie, v.value]
2180
+ [se, v.value]
2169
2181
  ])
2170
2182
  ]);
2171
2183
  };
2172
2184
  }
2173
- }), po = { class: "flex flex-col gap-8" }, co = { class: "pl-32 flex flex-col gap-8" }, vo = { class: "pl-32 flex flex-col gap-8" }, fo = { class: "pl-32 flex flex-col gap-8" }, go = { class: "pl-32 flex flex-col gap-8" }, bo = { class: "pl-32 flex flex-col gap-8" }, yo = { class: "pl-32 flex flex-col gap-8" }, ho = /* @__PURE__ */ q({
2185
+ }), po = { class: "flex flex-col gap-8" }, co = { class: "pl-32 flex flex-col gap-8" }, vo = { class: "pl-32 flex flex-col gap-8" }, fo = { class: "pl-32 flex flex-col gap-8" }, go = { class: "pl-32 flex flex-col gap-8" }, bo = { class: "pl-32 flex flex-col gap-8" }, yo = { class: "pl-32 flex flex-col gap-8" }, ho = /* @__PURE__ */ W({
2174
2186
  __name: "XySection",
2175
2187
  props: {
2176
2188
  model: {}
2177
2189
  },
2178
2190
  emits: ["update:model"],
2179
- setup(V, { emit: d }) {
2180
- const t = V, s = d, { t: n } = J(), v = $({
2191
+ setup(F, { emit: d }) {
2192
+ const t = F, s = d, { t: n } = J(), v = $({
2181
2193
  get: () => t.model.showX ?? !0,
2182
2194
  set: (p) => {
2183
2195
  s("update:model", { ...t.model, showX: p });
2184
2196
  }
2185
- }), g = $({
2197
+ }), f = $({
2186
2198
  get: () => t.model.showXGrid ?? !1,
2187
2199
  set: (p) => {
2188
2200
  s("update:model", { ...t.model, showXGrid: p });
@@ -2212,22 +2224,22 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2212
2224
  set: (p) => {
2213
2225
  s("update:model", { ...t.model, showXTitle: p });
2214
2226
  }
2215
- }), F = $({
2227
+ }), w = $({
2216
2228
  get: () => t.model.showYTitle ?? !1,
2217
2229
  set: (p) => {
2218
2230
  s("update:model", { ...t.model, showYTitle: p });
2219
2231
  }
2220
- }), C = be((p) => {
2232
+ }), C = ye((p) => {
2221
2233
  s("update:model", { ...t.model, xTitle: p });
2222
- }, 500), I = be((p) => {
2234
+ }, 500), O = ye((p) => {
2223
2235
  s("update:model", { ...t.model, yTitle: p });
2224
2236
  }, 500);
2225
- return ke(() => {
2237
+ return Se(() => {
2226
2238
  var p, k, x, _;
2227
- !t.model.xTitle && ((k = (p = t.model.metrics) == null ? void 0 : p[0]) != null && k.label) && C(t.model.metrics[0].label), !t.model.yTitle && ((_ = (x = t.model.dimensions) == null ? void 0 : x[0]) != null && _.label) && I(t.model.dimensions[0].label);
2239
+ !t.model.xTitle && ((k = (p = t.model.metrics) == null ? void 0 : p[0]) != null && k.label) && C(t.model.metrics[0].label), !t.model.yTitle && ((_ = (x = t.model.dimensions) == null ? void 0 : x[0]) != null && _.label) && O(t.model.dimensions[0].label);
2228
2240
  }), (p, k) => {
2229
- const x = w("FmCheckbox"), _ = w("FmStepperField"), a = w("FmTextField");
2230
- return f(), z("div", po, [
2241
+ const x = V("FmCheckbox"), _ = V("FmStepperField"), a = V("FmTextField");
2242
+ return b(), R("div", po, [
2231
2243
  r(x, {
2232
2244
  modelValue: v.value,
2233
2245
  "onUpdate:modelValue": k[0] || (k[0] = (e) => v.value = e),
@@ -2235,10 +2247,10 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2235
2247
  "label-placement": "right",
2236
2248
  value: !0
2237
2249
  }, null, 8, ["modelValue", "label"]),
2238
- ne(h("div", co, [
2250
+ ie(h("div", co, [
2239
2251
  r(x, {
2240
- modelValue: g.value,
2241
- "onUpdate:modelValue": k[1] || (k[1] = (e) => g.value = e),
2252
+ modelValue: f.value,
2253
+ "onUpdate:modelValue": k[1] || (k[1] = (e) => f.value = e),
2242
2254
  label: l(n)("report.section.datasource.axis.showGrid"),
2243
2255
  "label-placement": "right",
2244
2256
  value: !1
@@ -2250,7 +2262,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2250
2262
  "label-placement": "right",
2251
2263
  value: !0
2252
2264
  }, null, 8, ["modelValue", "label"]),
2253
- ne(h("div", vo, [
2265
+ ie(h("div", vo, [
2254
2266
  r(_, {
2255
2267
  label: l(n)("report.section.datasource.fontSize"),
2256
2268
  type: "number",
@@ -2261,7 +2273,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2261
2273
  })
2262
2274
  }, null, 8, ["label", "model-value"])
2263
2275
  ], 512), [
2264
- [ie, p.model.showXTick ?? !0]
2276
+ [se, p.model.showXTick ?? !0]
2265
2277
  ]),
2266
2278
  r(x, {
2267
2279
  modelValue: u.value,
@@ -2270,7 +2282,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2270
2282
  "label-placement": "right",
2271
2283
  value: !0
2272
2284
  }, null, 8, ["modelValue", "label"]),
2273
- ne(h("div", fo, [
2285
+ ie(h("div", fo, [
2274
2286
  r(a, {
2275
2287
  "model-value": p.model.xTitle,
2276
2288
  label: l(n)("report.common.title"),
@@ -2287,10 +2299,10 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2287
2299
  })
2288
2300
  }, null, 8, ["label", "model-value"])
2289
2301
  ], 512), [
2290
- [ie, u.value]
2302
+ [se, u.value]
2291
2303
  ])
2292
2304
  ], 512), [
2293
- [ie, p.model.showX ?? !0]
2305
+ [se, p.model.showX ?? !0]
2294
2306
  ]),
2295
2307
  r(x, {
2296
2308
  modelValue: y.value,
@@ -2299,7 +2311,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2299
2311
  "label-placement": "right",
2300
2312
  value: !0
2301
2313
  }, null, 8, ["modelValue", "label"]),
2302
- ne(h("div", go, [
2314
+ ie(h("div", go, [
2303
2315
  r(x, {
2304
2316
  modelValue: c.value,
2305
2317
  "onUpdate:modelValue": k[7] || (k[7] = (e) => c.value = e),
@@ -2314,7 +2326,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2314
2326
  "label-placement": "right",
2315
2327
  value: !0
2316
2328
  }, null, 8, ["modelValue", "label"]),
2317
- ne(h("div", bo, [
2329
+ ie(h("div", bo, [
2318
2330
  r(_, {
2319
2331
  label: l(n)("report.section.datasource.fontSize"),
2320
2332
  type: "number",
@@ -2325,21 +2337,21 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2325
2337
  })
2326
2338
  }, null, 8, ["label", "model-value"])
2327
2339
  ], 512), [
2328
- [ie, p.model.showYTick ?? !0]
2340
+ [se, p.model.showYTick ?? !0]
2329
2341
  ]),
2330
2342
  r(x, {
2331
- modelValue: F.value,
2332
- "onUpdate:modelValue": k[10] || (k[10] = (e) => F.value = e),
2343
+ modelValue: w.value,
2344
+ "onUpdate:modelValue": k[10] || (k[10] = (e) => w.value = e),
2333
2345
  label: l(n)("report.section.datasource.axis.showTitle"),
2334
2346
  "label-placement": "right",
2335
2347
  value: !0
2336
2348
  }, null, 8, ["modelValue", "label"]),
2337
- ne(h("div", yo, [
2349
+ ie(h("div", yo, [
2338
2350
  r(a, {
2339
2351
  "model-value": p.model.yTitle,
2340
2352
  label: l(n)("report.common.title"),
2341
2353
  placeholder: l(n)("report.tile.widget.titlePlaceholder"),
2342
- "onUpdate:modelValue": l(I)
2354
+ "onUpdate:modelValue": l(O)
2343
2355
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2344
2356
  r(_, {
2345
2357
  label: l(n)("report.section.datasource.fontSize"),
@@ -2351,28 +2363,28 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2351
2363
  })
2352
2364
  }, null, 8, ["label", "model-value"])
2353
2365
  ], 512), [
2354
- [ie, F.value]
2366
+ [se, w.value]
2355
2367
  ])
2356
2368
  ], 512), [
2357
- [ie, p.model.showY ?? !0]
2369
+ [se, p.model.showY ?? !0]
2358
2370
  ])
2359
2371
  ]);
2360
2372
  };
2361
2373
  }
2362
- }), Vo = { class: "flex flex-col gap-8" }, wo = { class: "pl-32 flex flex-col gap-8" }, Fo = /* @__PURE__ */ q({
2374
+ }), Vo = { class: "flex flex-col gap-8" }, Fo = { class: "pl-32 flex flex-col gap-8" }, wo = /* @__PURE__ */ W({
2363
2375
  __name: "LegendSection",
2364
2376
  props: {
2365
2377
  model: {},
2366
2378
  isCircularWidget: { type: Boolean }
2367
2379
  },
2368
2380
  emits: ["update:model"],
2369
- setup(V, { emit: d }) {
2370
- const t = V, s = d, { t: n } = J(), v = [
2381
+ setup(F, { emit: d }) {
2382
+ const t = F, s = d, { t: n } = J(), v = [
2371
2383
  { label: n("report.section.datasource.position.top"), value: "top" },
2372
2384
  { label: n("report.section.datasource.position.bottom"), value: "bottom" },
2373
2385
  { label: n("report.section.datasource.position.left"), value: "left" },
2374
2386
  { label: n("report.section.datasource.position.right"), value: "right" }
2375
- ], g = $({
2387
+ ], f = $({
2376
2388
  get: () => t.model.showLegend !== void 0 ? t.model.showLegend : t.isCircularWidget === !0,
2377
2389
  set: (o) => {
2378
2390
  s("update:model", { ...t.model, showLegend: o });
@@ -2394,67 +2406,67 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2394
2406
  }
2395
2407
  });
2396
2408
  return (o, u) => {
2397
- const F = w("FmCheckbox"), C = w("FmSelect"), I = w("FmStepperField");
2398
- return f(), z("div", Vo, [
2399
- r(F, {
2400
- modelValue: g.value,
2401
- "onUpdate:modelValue": u[0] || (u[0] = (p) => g.value = p),
2409
+ const w = V("FmCheckbox"), C = V("FmSelect"), O = V("FmStepperField");
2410
+ return b(), R("div", Vo, [
2411
+ r(w, {
2412
+ modelValue: f.value,
2413
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => f.value = p),
2402
2414
  class: "fm-typo-en-body-lg-400",
2403
2415
  value: !1,
2404
2416
  label: l(n)("report.section.datasource.legend.showLegend")
2405
2417
  }, null, 8, ["modelValue", "label"]),
2406
- ne(h("div", wo, [
2418
+ ie(h("div", Fo, [
2407
2419
  r(C, {
2408
2420
  label: l(n)("report.section.datasource.position.showPosition"),
2409
2421
  items: v,
2410
2422
  "model-value": o.model.legendPosition ?? "top",
2411
2423
  "onUpdate:modelValue": u[1] || (u[1] = (p) => s("update:model", { ...o.model, legendPosition: p }))
2412
2424
  }, null, 8, ["label", "model-value"]),
2413
- r(F, {
2425
+ r(w, {
2414
2426
  modelValue: m.value,
2415
2427
  "onUpdate:modelValue": u[2] || (u[2] = (p) => m.value = p),
2416
2428
  label: l(n)("report.section.datasource.legend.usePointStyle"),
2417
2429
  value: !1
2418
2430
  }, null, 8, ["modelValue", "label"]),
2419
- o.model.legendPosition === "top" || o.model.legendPosition === "bottom" || !o.model.legendPosition ? (f(), D(I, {
2431
+ o.model.legendPosition === "top" || o.model.legendPosition === "bottom" || !o.model.legendPosition ? (b(), D(O, {
2420
2432
  key: 0,
2421
2433
  label: l(n)("report.section.datasource.legend.maxHeight"),
2422
2434
  "model-value": y.value,
2423
2435
  "onUpdate:modelValue": u[3] || (u[3] = (p) => s("update:model", { ...o.model, legendMaxHeight: p }))
2424
2436
  }, null, 8, ["label", "model-value"])) : U("", !0),
2425
- o.model.legendPosition === "left" || o.model.legendPosition === "right" ? (f(), D(I, {
2437
+ o.model.legendPosition === "left" || o.model.legendPosition === "right" ? (b(), D(O, {
2426
2438
  key: 1,
2427
2439
  label: l(n)("report.section.datasource.legend.maxWidth"),
2428
2440
  "model-value": c.value,
2429
2441
  "onUpdate:modelValue": u[4] || (u[4] = (p) => s("update:model", { ...o.model, legendMaxWidth: p }))
2430
2442
  }, null, 8, ["label", "model-value"])) : U("", !0)
2431
2443
  ], 512), [
2432
- [ie, g.value]
2444
+ [se, f.value]
2433
2445
  ])
2434
2446
  ]);
2435
2447
  };
2436
2448
  }
2437
- }), xo = { class: "flex flex-row gap-16" }, Co = /* @__PURE__ */ q({
2449
+ }), xo = { class: "flex flex-row gap-16" }, Co = /* @__PURE__ */ W({
2438
2450
  __name: "ChartSizeSection",
2439
2451
  props: {
2440
2452
  model: {}
2441
2453
  },
2442
2454
  emits: ["update:model"],
2443
- setup(V, { emit: d }) {
2444
- const t = V, s = d, { t: n } = J(), v = $({
2455
+ setup(F, { emit: d }) {
2456
+ const t = F, s = d, { t: n } = J(), v = $({
2445
2457
  get: () => t.model.chartHeight ?? null,
2446
2458
  set: (m) => {
2447
2459
  s("update:model", { ...t.model, chartHeight: m ?? void 0 });
2448
2460
  }
2449
- }), g = $({
2461
+ }), f = $({
2450
2462
  get: () => t.model.chartWidth ?? null,
2451
2463
  set: (m) => {
2452
2464
  s("update:model", { ...t.model, chartWidth: m ?? void 0 });
2453
2465
  }
2454
2466
  });
2455
2467
  return (m, y) => {
2456
- const c = w("FmStepperField");
2457
- return f(), z("div", xo, [
2468
+ const c = V("FmStepperField");
2469
+ return b(), R("div", xo, [
2458
2470
  r(c, {
2459
2471
  modelValue: v.value,
2460
2472
  "onUpdate:modelValue": y[0] || (y[0] = (o) => v.value = o),
@@ -2465,8 +2477,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2465
2477
  placeholder: "Auto"
2466
2478
  }, null, 8, ["modelValue", "label"]),
2467
2479
  r(c, {
2468
- modelValue: g.value,
2469
- "onUpdate:modelValue": y[1] || (y[1] = (o) => g.value = o),
2480
+ modelValue: f.value,
2481
+ "onUpdate:modelValue": y[1] || (y[1] = (o) => f.value = o),
2470
2482
  type: "number",
2471
2483
  label: l(n)("report.section.datasource.chartWidth"),
2472
2484
  suffix: "px",
@@ -2476,9 +2488,9 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2476
2488
  ]);
2477
2489
  };
2478
2490
  }
2479
- }), ko = { class: "flex flex-col gap-16" }, _o = { class: "flex flex-col gap-8" }, So = { class: "fm-typo-en-body-lg-600" }, To = { class: "flex flex-col gap-8" }, $o = /* @__PURE__ */ q({
2491
+ }), ko = { class: "flex flex-col gap-16" }, _o = { class: "flex flex-col gap-8" }, So = { class: "fm-typo-en-body-lg-600" }, To = { class: "flex flex-col gap-8" }, $o = /* @__PURE__ */ W({
2480
2492
  __name: "StyleDatasource",
2481
- props: /* @__PURE__ */ G({
2493
+ props: /* @__PURE__ */ K({
2482
2494
  label: {
2483
2495
  type: String,
2484
2496
  default: "Label"
@@ -2505,50 +2517,50 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2505
2517
  modelValue: { required: !0 },
2506
2518
  modelModifiers: {}
2507
2519
  }),
2508
- emits: /* @__PURE__ */ G(["click-close"], ["update:modelValue"]),
2509
- setup(V, { emit: d }) {
2510
- const t = ee(V, "modelValue");
2511
- ue(
2520
+ emits: /* @__PURE__ */ K(["click-close"], ["update:modelValue"]),
2521
+ setup(F, { emit: d }) {
2522
+ const t = le(F, "modelValue");
2523
+ re(
2512
2524
  [() => t.value.dimensions, () => t.value.metrics],
2513
2525
  () => {
2514
- const { rowIds: y, columnIds: c } = ye(t.value);
2526
+ const { rowIds: y, columnIds: c } = he(t.value);
2515
2527
  t.value.rowIds = y, t.value.columnIds = c;
2516
2528
  },
2517
2529
  { deep: !0 }
2518
2530
  );
2519
- const s = V, n = d, { t: v, te: g } = J(), m = $(() => s.config.type === R.Circular);
2531
+ const s = F, n = d, { t: v, te: f } = J(), m = $(() => s.config.type === z.Circular);
2520
2532
  return (y, c) => {
2521
- const o = w("FmButton");
2522
- return f(), z(Z, null, [
2533
+ const o = V("FmButton");
2534
+ return b(), R(te, null, [
2523
2535
  c[5] || (c[5] = h("div", { class: "grow" }, null, -1)),
2524
- s.closeable ? (f(), D(o, {
2536
+ s.closeable ? (b(), D(o, {
2525
2537
  key: 0,
2526
2538
  icon: "close",
2527
2539
  variant: "tertiary",
2528
2540
  size: "md",
2529
- onClick: c[0] || (c[0] = te((u) => n("click-close"), ["stop"]))
2541
+ onClick: c[0] || (c[0] = ae((u) => n("click-close"), ["stop"]))
2530
2542
  })) : U("", !0),
2531
2543
  h("div", ko, [
2532
- s.config.hasChart ? (f(), D(Co, {
2544
+ s.config.hasChart ? (b(), D(Co, {
2533
2545
  key: 0,
2534
2546
  model: t.value,
2535
2547
  "onUpdate:model": c[1] || (c[1] = (u) => t.value = u)
2536
2548
  }, null, 8, ["model"])) : U("", !0),
2537
2549
  h("div", _o, [
2538
- h("p", So, j(l(v)("report.section.style.configuration")), 1),
2550
+ h("p", So, L(l(v)("report.section.style.configuration")), 1),
2539
2551
  h("div", To, [
2540
- s.config.hasLabel ? (f(), D(mo, {
2552
+ s.config.hasLabel ? (b(), D(mo, {
2541
2553
  key: 0,
2542
2554
  model: t.value,
2543
2555
  "onUpdate:model": c[2] || (c[2] = (u) => t.value = u)
2544
2556
  }, null, 8, ["model"])) : U("", !0),
2545
- s.config.hasLegend ? (f(), D(Fo, {
2557
+ s.config.hasLegend ? (b(), D(wo, {
2546
2558
  key: 1,
2547
2559
  model: t.value,
2548
2560
  "is-circular-widget": m.value,
2549
2561
  "onUpdate:model": c[3] || (c[3] = (u) => t.value = u)
2550
2562
  }, null, 8, ["model", "is-circular-widget"])) : U("", !0),
2551
- s.config.hasXy ? (f(), D(ho, {
2563
+ s.config.hasXy ? (b(), D(ho, {
2552
2564
  key: 2,
2553
2565
  model: t.value,
2554
2566
  "onUpdate:model": c[4] || (c[4] = (u) => t.value = u)
@@ -2559,7 +2571,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2559
2571
  ], 64);
2560
2572
  };
2561
2573
  }
2562
- }), Do = { class: "fixed bottom-6 right-6" }, Uo = { class: "flex items-center gap-8" }, No = { class: "fm-typo-en-title-sm-600" }, Oo = /* @__PURE__ */ q({
2574
+ }), Do = { class: "fixed bottom-6 right-6" }, Uo = { class: "flex items-center gap-8" }, No = { class: "fm-typo-en-title-sm-600" }, Oo = /* @__PURE__ */ W({
2563
2575
  __name: "StyleEditorTab",
2564
2576
  props: {
2565
2577
  modelValue: {
@@ -2568,20 +2580,20 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2568
2580
  modelModifiers: {}
2569
2581
  },
2570
2582
  emits: ["update:modelValue"],
2571
- setup(V) {
2572
- const { t: d } = J(), t = ee(V, "modelValue"), s = $(
2573
- () => he.find((v) => v.type === t.value.widget.type)
2574
- ), n = H(!1);
2575
- return (v, g) => {
2576
- const m = w("FmCircularProgress"), y = w("FmButton"), c = w("FmSideSheet");
2577
- return f(), D(c, {
2583
+ setup(F) {
2584
+ const { t: d } = J(), t = le(F, "modelValue"), s = $(
2585
+ () => Fe.find((v) => v.type === t.value.widget.type)
2586
+ ), n = E(!1);
2587
+ return (v, f) => {
2588
+ const m = V("FmCircularProgress"), y = V("FmButton"), c = V("FmSideSheet");
2589
+ return b(), D(c, {
2578
2590
  modelValue: n.value,
2579
- "onUpdate:modelValue": g[2] || (g[2] = (o) => n.value = o),
2591
+ "onUpdate:modelValue": f[2] || (f[2] = (o) => n.value = o),
2580
2592
  "close-button": !1,
2581
2593
  "no-overlay": "",
2582
2594
  "dismiss-away": !0
2583
2595
  }, {
2584
- "side-sheet-button": O(() => [
2596
+ "side-sheet-button": N(() => [
2585
2597
  h("div", Do, [
2586
2598
  r(y, {
2587
2599
  label: l(d)("report.section.style.button"),
@@ -2591,22 +2603,22 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2591
2603
  }, null, 8, ["label"])
2592
2604
  ])
2593
2605
  ]),
2594
- "side-sheet-header": O(() => [
2606
+ "side-sheet-header": N(() => [
2595
2607
  h("div", Uo, [
2596
2608
  r(y, {
2597
2609
  "prepend-icon": "arrow_back",
2598
2610
  variant: "tertiary",
2599
2611
  class: "fm-icon--rounded fm-icon--md text-fm-color-black",
2600
- onClick: g[0] || (g[0] = (o) => n.value = !1)
2612
+ onClick: f[0] || (f[0] = (o) => n.value = !1)
2601
2613
  }),
2602
- h("p", No, j(l(d)("report.section.style.title")), 1)
2614
+ h("p", No, L(l(d)("report.section.style.title")), 1)
2603
2615
  ])
2604
2616
  ]),
2605
- default: O(() => [
2606
- t.value ? U("", !0) : (f(), D(m, { key: 0 })),
2617
+ default: N(() => [
2618
+ t.value ? U("", !0) : (b(), D(m, { key: 0 })),
2607
2619
  r($o, {
2608
2620
  modelValue: t.value.widget.config,
2609
- "onUpdate:modelValue": g[1] || (g[1] = (o) => t.value.widget.config = o),
2621
+ "onUpdate:modelValue": f[1] || (f[1] = (o) => t.value.widget.config = o),
2610
2622
  config: s.value
2611
2623
  }, null, 8, ["modelValue", "config"])
2612
2624
  ]),
@@ -2617,9 +2629,9 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2617
2629
  }), Io = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, Lo = { class: "flex bg-fm-color-neutral-white w-[88px]" }, Bo = { class: "w-full overflow-y-auto" }, jo = {
2618
2630
  class: "grid grid-cols-12 w-full p-24",
2619
2631
  style: { backgroundColor: "#F6F8FC" }
2620
- }, zo = /* @__PURE__ */ q({
2632
+ }, zo = /* @__PURE__ */ W({
2621
2633
  __name: "TileEditorDesktop",
2622
- props: /* @__PURE__ */ G({
2634
+ props: /* @__PURE__ */ K({
2623
2635
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
2624
2636
  index: { type: Number, required: !0, default: 0 }
2625
2637
  }, {
@@ -2628,41 +2640,41 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2628
2640
  },
2629
2641
  modelModifiers: {}
2630
2642
  }),
2631
- emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
2632
- setup(V, { emit: d }) {
2633
- const t = ee(V, "modelValue"), s = V, n = $(
2634
- () => he.find((y) => {
2643
+ emits: /* @__PURE__ */ K(["hideConfiguration"], ["update:modelValue"]),
2644
+ setup(F, { emit: d }) {
2645
+ const t = le(F, "modelValue"), s = F, n = $(
2646
+ () => Fe.find((y) => {
2635
2647
  var c;
2636
2648
  return y.type === ((c = t.value) == null ? void 0 : c.widget.type);
2637
2649
  })
2638
- ), v = d, g = [
2639
- R.BarChart,
2640
- R.StackBarChart,
2641
- R.LineChart,
2642
- R.StackLineChart,
2643
- R.Circular
2644
- ], m = $(() => g.includes(t.value.widget.type));
2650
+ ), v = d, f = [
2651
+ z.BarChart,
2652
+ z.StackBarChart,
2653
+ z.LineChart,
2654
+ z.StackLineChart,
2655
+ z.Circular
2656
+ ], m = $(() => f.includes(t.value.widget.type));
2645
2657
  return (y, c) => {
2646
- const o = w("FmCircularProgress"), u = w("FmButton");
2647
- return f(), z("div", null, [
2648
- t.value ? (f(), z(Z, { key: 1 }, [
2658
+ const o = V("FmCircularProgress"), u = V("FmButton");
2659
+ return b(), R("div", null, [
2660
+ t.value ? (b(), R(te, { key: 1 }, [
2649
2661
  r(Ze, {
2650
- "model-value": !V.hideConfiguration
2662
+ "model-value": !F.hideConfiguration
2651
2663
  }, {
2652
- right: O(() => [
2664
+ right: N(() => [
2653
2665
  h("div", Io, [
2654
2666
  r(Ae, {
2655
2667
  modelValue: t.value,
2656
- "onUpdate:modelValue": c[0] || (c[0] = (F) => t.value = F),
2668
+ "onUpdate:modelValue": c[0] || (c[0] = (w) => t.value = w),
2657
2669
  config: n.value,
2658
- "hide-configuration": V.hideConfiguration,
2659
- onHideConfiguration: c[1] || (c[1] = (F) => {
2660
- v("hideConfiguration", F);
2670
+ "hide-configuration": F.hideConfiguration,
2671
+ onHideConfiguration: c[1] || (c[1] = (w) => {
2672
+ v("hideConfiguration", w);
2661
2673
  })
2662
2674
  }, null, 8, ["modelValue", "config", "hide-configuration"])
2663
2675
  ])
2664
2676
  ]),
2665
- left: O(() => [
2677
+ left: N(() => [
2666
2678
  h("div", Lo, [
2667
2679
  r(u, {
2668
2680
  variant: "secondary",
@@ -2671,7 +2683,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2671
2683
  "text-color": l(De).ColorPrimary,
2672
2684
  class: "m-24 my-16",
2673
2685
  size: "md",
2674
- onClick: c[2] || (c[2] = (F) => v("hideConfiguration", !s.hideConfiguration))
2686
+ onClick: c[2] || (c[2] = (w) => v("hideConfiguration", !s.hideConfiguration))
2675
2687
  }, null, 8, ["border-color", "text-color"])
2676
2688
  ])
2677
2689
  ]),
@@ -2679,33 +2691,33 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2679
2691
  }, 8, ["model-value"]),
2680
2692
  h("div", Bo, [
2681
2693
  h("div", jo, [
2682
- t.value ? (f(), D(Me, {
2694
+ t.value ? (b(), D(Me, {
2683
2695
  key: 0,
2684
2696
  "model-value": t.value,
2685
2697
  index: s.index,
2686
2698
  "hide-export": !0
2687
- }, null, 8, ["model-value", "index"])) : (f(), D(Pe, { key: 1 }))
2699
+ }, null, 8, ["model-value", "index"])) : (b(), D(Pe, { key: 1 }))
2688
2700
  ])
2689
2701
  ]),
2690
- m.value ? (f(), D(Oo, {
2702
+ m.value ? (b(), D(Oo, {
2691
2703
  key: 0,
2692
2704
  modelValue: t.value,
2693
- "onUpdate:modelValue": c[3] || (c[3] = (F) => t.value = F),
2694
- "hide-configuration": V.hideConfiguration,
2695
- onHideConfiguration: c[4] || (c[4] = (F) => {
2696
- v("hideConfiguration", F);
2705
+ "onUpdate:modelValue": c[3] || (c[3] = (w) => t.value = w),
2706
+ "hide-configuration": F.hideConfiguration,
2707
+ onHideConfiguration: c[4] || (c[4] = (w) => {
2708
+ v("hideConfiguration", w);
2697
2709
  })
2698
2710
  }, null, 8, ["modelValue", "hide-configuration"])) : U("", !0)
2699
- ], 64)) : (f(), D(o, { key: 0 }))
2711
+ ], 64)) : (b(), D(o, { key: 0 }))
2700
2712
  ]);
2701
2713
  };
2702
2714
  }
2703
2715
  }), Ro = {
2704
2716
  key: 0,
2705
2717
  class: "flex w-full justify-center items-center"
2706
- }, Mo = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, Po = /* @__PURE__ */ q({
2718
+ }, Mo = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, Po = /* @__PURE__ */ W({
2707
2719
  __name: "TileEditorMobile",
2708
- props: /* @__PURE__ */ G({
2720
+ props: /* @__PURE__ */ K({
2709
2721
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
2710
2722
  index: { type: Number, required: !0, default: 0 }
2711
2723
  }, {
@@ -2714,36 +2726,36 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2714
2726
  },
2715
2727
  modelModifiers: {}
2716
2728
  }),
2717
- emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
2718
- setup(V, { emit: d }) {
2719
- const t = ee(V, "modelValue"), s = V, n = $(
2720
- () => he.find((g) => {
2729
+ emits: /* @__PURE__ */ K(["hideConfiguration"], ["update:modelValue"]),
2730
+ setup(F, { emit: d }) {
2731
+ const t = le(F, "modelValue"), s = F, n = $(
2732
+ () => Fe.find((f) => {
2721
2733
  var m;
2722
- return g.type === ((m = t.value) == null ? void 0 : m.widget.type);
2734
+ return f.type === ((m = t.value) == null ? void 0 : m.widget.type);
2723
2735
  })
2724
2736
  ), v = d;
2725
- return (g, m) => {
2726
- const y = w("FmCircularProgress");
2727
- return f(), z("div", null, [
2728
- t.value ? (f(), z(Z, { key: 1 }, [
2737
+ return (f, m) => {
2738
+ const y = V("FmCircularProgress");
2739
+ return b(), R("div", null, [
2740
+ t.value ? (b(), R(te, { key: 1 }, [
2729
2741
  h("div", Mo, [
2730
- t.value ? (f(), D(Me, {
2742
+ t.value ? (b(), D(Me, {
2731
2743
  key: 0,
2732
2744
  "model-value": t.value,
2733
2745
  index: s.index,
2734
2746
  "hide-export": !0
2735
- }, null, 8, ["model-value", "index"])) : (f(), D(Pe, { key: 1 }))
2747
+ }, null, 8, ["model-value", "index"])) : (b(), D(Pe, { key: 1 }))
2736
2748
  ]),
2737
2749
  r(Ae, {
2738
2750
  modelValue: t.value,
2739
2751
  "onUpdate:modelValue": m[0] || (m[0] = (c) => t.value = c),
2740
2752
  config: n.value,
2741
- "hide-configuration": V.hideConfiguration,
2753
+ "hide-configuration": F.hideConfiguration,
2742
2754
  onHideConfiguration: m[1] || (m[1] = (c) => {
2743
2755
  v("hideConfiguration", c);
2744
2756
  })
2745
2757
  }, null, 8, ["modelValue", "config", "hide-configuration"])
2746
- ], 64)) : (f(), z("div", Ro, [
2758
+ ], 64)) : (b(), R("div", Ro, [
2747
2759
  r(y)
2748
2760
  ]))
2749
2761
  ]);
@@ -2755,17 +2767,17 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2755
2767
  }, Xo = {
2756
2768
  key: 0,
2757
2769
  class: "flex items-start justify-start px-24 py-12 flex-wrap w-full"
2758
- }, tt = /* @__PURE__ */ q({
2770
+ }, tt = /* @__PURE__ */ W({
2759
2771
  __name: "TileEditor",
2760
- setup(V) {
2761
- const { rowHeight: d, colWidths: t } = re(ge()), s = Ee(), n = Ye(), v = tl(), { globalFilters: g } = re(ze()), { currentSelectWidgetType: m, editingReport: y, editingTile: c, editingTileIndex: o } = re(v), { breakpoints: u } = Re(), { promptMessage: F } = je(), { t: C } = J(), I = H(!1);
2772
+ setup(F) {
2773
+ const { rowHeight: d, colWidths: t } = de(be()), s = Ee(), n = Ye(), v = tl(), { globalFilters: f } = de(ze()), { currentSelectWidgetType: m, editingReport: y, editingTile: c, editingTileIndex: o } = de(v), { breakpoints: u } = Re(), { promptMessage: w } = je(), { t: C } = J(), O = E(!1);
2762
2774
  function p() {
2763
2775
  m.value = void 0, c.value = void 0, o.value = -1, n.back();
2764
2776
  }
2765
2777
  async function k() {
2766
2778
  var a;
2767
2779
  if (!y.value) return;
2768
- await F({
2780
+ await w({
2769
2781
  title: C("report.tile.save.title"),
2770
2782
  message: C("report.tile.save.confirm", { title: (a = c.value) == null ? void 0 : a.widget.title })
2771
2783
  }) && c.value && (c.value.widget.config = {
@@ -2777,17 +2789,17 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2777
2789
  async function x() {
2778
2790
  var a;
2779
2791
  if (!y.value) return;
2780
- await F({
2792
+ await w({
2781
2793
  title: C("report.tile.cancel.title"),
2782
2794
  message: C("report.tile.cancel.confirm", { title: (a = c.value) == null ? void 0 : a.widget.title })
2783
2795
  }) && p();
2784
2796
  }
2785
- return ke(() => {
2797
+ return Se(() => {
2786
2798
  y.value || n.push({ name: "reports" });
2787
2799
  }), (_, a) => {
2788
- const e = w("FmPageHead");
2789
- return f(), D(el, null, {
2790
- default: O(() => [
2800
+ const e = V("FmPageHead");
2801
+ return b(), D(el, null, {
2802
+ default: N(() => [
2791
2803
  r(e, {
2792
2804
  actions: [
2793
2805
  { label: l(C)("report.common.cancel"), value: "cancel", isPrimary: !1 },
@@ -2797,29 +2809,29 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
2797
2809
  i === "cancel" && x(), i === "save" && k();
2798
2810
  })
2799
2811
  }, {
2800
- title: O(() => {
2812
+ title: N(() => {
2801
2813
  var i;
2802
2814
  return [
2803
- l(u).lg || l(u).md ? (f(), z("p", Ao, j(l(al)(((i = l(c)) == null ? void 0 : i.widget.type) ?? "New report")), 1)) : U("", !0)
2815
+ l(u).lg || l(u).md ? (b(), R("p", Ao, L(l(al)(((i = l(c)) == null ? void 0 : i.widget.type) ?? "New report")), 1)) : U("", !0)
2804
2816
  ];
2805
2817
  }),
2806
2818
  _: 1
2807
2819
  }, 8, ["actions"]),
2808
- l(c) && (l(g) || []).some((i) => {
2820
+ l(c) && (l(f) || []).some((i) => {
2809
2821
  const T = i.tileIds, S = l(c) && l(c).id;
2810
2822
  return Array.isArray(T) && typeof S == "string" && T.includes(S);
2811
- }) ? (f(), z("div", Xo, [
2823
+ }) ? (b(), R("div", Xo, [
2812
2824
  r(il)
2813
2825
  ])) : U("", !0),
2814
- l(c) ? (f(), D(Ie(l(u).lg || l(u).md ? zo : Po), {
2826
+ l(c) ? (b(), D(Ie(l(u).lg || l(u).md ? zo : Po), {
2815
2827
  key: 1,
2816
2828
  modelValue: l(c),
2817
2829
  "onUpdate:modelValue": a[1] || (a[1] = (i) => He(c) ? c.value = i : null),
2818
2830
  class: Le(`${l(u).lg || l(u).md ? "flex" : ""} w-full`),
2819
2831
  style: We({ height: `calc( 100% - ${l(u).lg || l(u).md ? 72 : 64}px)` }),
2820
- "hide-configuration": I.value,
2832
+ "hide-configuration": O.value,
2821
2833
  index: Number(l(s).params.tileIndex),
2822
- onHideConfiguration: a[2] || (a[2] = (i) => I.value = i)
2834
+ onHideConfiguration: a[2] || (a[2] = (i) => O.value = i)
2823
2835
  }, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : U("", !0)
2824
2836
  ]),
2825
2837
  _: 1