@feedmepos/mf-report 5.4.19 → 5.4.20-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{App-CF3FVWGd.js → App-LaiIXgeZ.js} +42 -42
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BAjFcCjr.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BaVjCBz9.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DTU8TwMk.js → Default.vue_vue_type_script_setup_true_lang-BGEw2oVZ.js} +2 -2
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-C0PCp7v9.js → DynamicWidget.vue_vue_type_script_setup_true_lang-8dt4IpG_.js} +4 -4
  5. package/dist/{InsightView-D5HT3EqU.js → InsightView-B8QPOck5.js} +6 -6
  6. package/dist/{Integration-DVnKdi1C.js → Integration-Rpft-wWc.js} +4 -5
  7. package/dist/{Integrations-DogYpaUd.js → Integrations-OOJ4jft8.js} +3 -3
  8. package/dist/{Layout-G3ADsP9Z.js → Layout-BwGPdsuV.js} +1 -1
  9. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-h2DsVKU4.js → LocationSelect.vue_vue_type_script_setup_true_lang-DtCmKms0.js} +2 -2
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BaHpOi0D.js → MenuTab.vue_vue_type_script_setup_true_lang-CwPa5SJD.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C2EyrtVK.js → NavigationTab.vue_vue_type_script_setup_true_lang-DAHyD1Qo.js} +4 -4
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-k-Kl1Nfa.js → NoData.vue_vue_type_script_setup_true_lang-8iT-uGdI.js} +1 -1
  13. package/dist/{OverviewView-Bq05K_KY.js → OverviewView-BlTpEMrM.js} +5 -5
  14. package/dist/{Report-DXcc4EwZ.js → Report-BMu6QmHg.js} +4 -4
  15. package/dist/{ReportEditor-BF4-k7r3.js → ReportEditor-BhEAyOB-.js} +5 -5
  16. package/dist/{ReportView-Ud8au7Gk.js → ReportView-DkVQgHQd.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-scO6fKPI.js → SelectComponent.vue_vue_type_script_setup_true_lang-gtUCqf4j.js} +1 -1
  18. package/dist/{Setting-DJpSkbYR.js → Setting-1b-FRYRh.js} +6 -6
  19. package/dist/{TileEditor-C-nQ5AIj.js → TileEditor-DvUTXGaA.js} +458 -456
  20. package/dist/{TransitionFade-UekW-lhI.js → TransitionFade-BHKSLNl9.js} +4 -4
  21. package/dist/app.js +38 -43
  22. package/dist/{global-loader-BCvR7YhK.js → global-loader-BKQvLNRz.js} +1356 -1356
  23. package/dist/{index-aHBUsDok.js → index-2OLtpO8C.js} +1 -1
  24. package/dist/{report-schema-B_wEcxCl.js → report-schema-D791R8wK.js} +1 -1
  25. package/dist/{timeFormat-DW5GuDi7.js → timeFormat-DWBAXBup.js} +1 -1
  26. package/dist/{v4-BkQv-xsB.js → v4-CjdGH_In.js} +1 -1
  27. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { defineComponent as G, mergeModels as J, useModel as Y, computed as U, ref as E, resolveComponent as y, createElementBlock as L, openBlock as p, createVNode as d, createElementVNode as k, unref as n, withCtx as _, toDisplayString as I, Fragment as Q, renderList as re, withModifiers as ee, createTextVNode as ne, watch as me, createCommentVNode as S, createBlock as C, renderSlot as Ce, resolveDynamicComponent as _e, normalizeClass as Te, onMounted as Le, normalizeStyle as Be, isRef as Me } from "vue";
1
+ import { defineComponent as G, mergeModels as J, useModel as Y, computed as U, ref as E, resolveComponent as y, createElementBlock as L, openBlock as p, createVNode as d, createElementVNode as k, unref as i, withCtx as _, toDisplayString as I, Fragment as Q, renderList as re, withModifiers as ee, createTextVNode as ne, watch as me, createCommentVNode as S, createBlock as C, renderSlot as Ce, resolveDynamicComponent as _e, normalizeClass as Te, onMounted as Le, normalizeStyle as Be, isRef as Me } from "vue";
2
2
  import { useRoute as Re, useRouter as je } from "vue-router";
3
- import { h as Ee, d as pe, S as ge, W as Ae, a as qe, T as Pe, _ as He } from "./TransitionFade-UekW-lhI.js";
4
- import { W as N, a as Je } from "./v4-BkQv-xsB.js";
3
+ import { h as Ee, d as pe, S as ge, W as Ae, a as qe, T as Pe, _ as He } from "./TransitionFade-BHKSLNl9.js";
4
+ import { W as N, a as Je } from "./v4-CjdGH_In.js";
5
5
  import { storeToRefs as he } from "pinia";
6
6
  import { u as Se } from "./message-dialog-UoMWOnil.js";
7
- import { c as we, d as De, p as ze } from "./index-aHBUsDok.js";
7
+ import { c as we, d as De, p as ze } from "./index-2OLtpO8C.js";
8
8
  import { useSnackbar as Ge, useBreakpoints as Ne, FmButtonColorThemeVariant as de } from "@feedmepos/ui-library";
9
- import { u as Ue } from "./report-schema-B_wEcxCl.js";
9
+ import { u as Ue } from "./report-schema-D791R8wK.js";
10
10
  import { _ as ie } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js";
11
- import { _ as P } from "./SelectComponent.vue_vue_type_script_setup_true_lang-scO6fKPI.js";
12
- import { u as le, d as ve } from "./global-loader-BCvR7YhK.js";
13
- import { g as ce, _ as $e } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-C0PCp7v9.js";
14
- import { _ as Oe } from "./NoData.vue_vue_type_script_setup_true_lang-k-Kl1Nfa.js";
11
+ import { _ as P } from "./SelectComponent.vue_vue_type_script_setup_true_lang-gtUCqf4j.js";
12
+ import { u as le, d as ve } from "./global-loader-BKQvLNRz.js";
13
+ import { g as ce, _ as $e } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-8dt4IpG_.js";
14
+ import { _ as Oe } from "./NoData.vue_vue_type_script_setup_true_lang-8iT-uGdI.js";
15
15
  var oe = /* @__PURE__ */ ((s) => (s.DateTime = "DATE_TIME", s.Hour = "HOUR", s.Day = "DAY", s.Week = "WEEK", s.Month = "MONTH", s.TimeOfDay = "TIME_OF_DAY", s.HourOfDay = "HOUR_OF_DAY", s.DayOfWeek = "DAY_OF_WEEK", s.DayOfMonth = "DAY_OF_MONTH", s.MonthOfYear = "MONTH_OF_YEAR", s.Year = "YEAR", s))(oe || {}), be = /* @__PURE__ */ ((s) => (s.Asc = "ASC", s.Desc = "DESC", s))(be || {}), Z = /* @__PURE__ */ ((s) => (s.Equal = "EQUAL", s.NotEqual = "NOT_EQUAL", s.GreaterThan = "GREATER_THAN", s.LessThan = "LESS_THAN", s.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", s.LessThanOrEqual = "LESS_THAN_OR_EQUAL", s.Between = "BETWEEN", s.Like = "LIKE", s.NotLike = "NOT_LIKE", s.And = "AND", s.Or = "OR", s))(Z || {}), te = /* @__PURE__ */ ((s) => (s.String = "STRING", s.Timestamp = "TIMESTAMP", s.Bool = "BOOL", s.Numeric = "NUMERIC", s))(te || {});
16
16
  const xe = [
17
17
  {
@@ -127,48 +127,48 @@ const xe = [
127
127
  }),
128
128
  emits: ["update:modelValue"],
129
129
  setup(s) {
130
- const { t: u } = le(), l = Y(s, "modelValue"), c = s, { schemas: g } = he(Ue()), b = U(
130
+ const { t: u } = le(), a = Y(s, "modelValue"), c = s, { schemas: g } = he(Ue()), b = U(
131
131
  () => g.value.map((V) => ({
132
132
  labels: [V.label],
133
133
  value: V.name,
134
134
  raw: V
135
135
  }))
136
136
  ), v = U(() => {
137
- if (l.value.schemaNames.length === 0 || t.value === 0)
137
+ if (a.value.schemaNames.length === 0 || t.value === 0)
138
138
  return b.value.filter((V) => !V.raw.isJoinOnly);
139
139
  {
140
- const V = l.value.schemaNames[0], m = g.value.find((o) => o.name === V), F = ((m == null ? void 0 : m.joins) || []).map((o) => o);
140
+ const V = a.value.schemaNames[0], m = g.value.find((o) => o.name === V), F = ((m == null ? void 0 : m.joins) || []).map((o) => o);
141
141
  return b.value.filter((o) => F.includes(o.raw.name));
142
142
  }
143
- }), f = E(!1), i = E(""), t = E(), w = Ge();
143
+ }), f = E(!1), n = E(""), t = E(), w = Ge();
144
144
  function D(V) {
145
145
  var m;
146
146
  return (m = g.value.find((F) => F.name === V)) == null ? void 0 : m.label;
147
147
  }
148
148
  function O(V) {
149
- t.value = V, f.value = !0, V !== void 0 ? i.value = l.value.schemaNames[V] : i.value = "";
149
+ t.value = V, f.value = !0, V !== void 0 ? n.value = a.value.schemaNames[V] : n.value = "";
150
150
  }
151
151
  function R() {
152
- i.value !== "" ? (t.value !== void 0 ? l.value.schemaNames[t.value] = i.value : l.value.schemaNames.push(i.value), f.value = !1) : w.open({ message: u("report.section.schema.nothingSelected"), type: "error" });
152
+ n.value !== "" ? (t.value !== void 0 ? a.value.schemaNames[t.value] = n.value : a.value.schemaNames.push(n.value), f.value = !1) : w.open({ message: u("report.section.schema.nothingSelected"), type: "error" });
153
153
  }
154
154
  return (V, m) => {
155
- const F = y("FmForm"), o = y("FmIcon"), a = y("FmField");
155
+ const F = y("FmForm"), o = y("FmIcon"), l = y("FmField");
156
156
  return p(), L("div", We, [
157
157
  d(ie, {
158
158
  modelValue: f.value,
159
159
  "onUpdate:modelValue": m[1] || (m[1] = (e) => f.value = e),
160
160
  title: c.label,
161
- "primary-button-label": n(u)("report.common.confirm"),
162
- "secondary-button-label": n(u)("report.common.cancel"),
161
+ "primary-button-label": i(u)("report.common.confirm"),
162
+ "secondary-button-label": i(u)("report.common.cancel"),
163
163
  onConfirm: R
164
164
  }, {
165
165
  content: _(() => [
166
166
  d(F, { ref: "form" }, {
167
167
  default: _(() => [
168
168
  d(P, {
169
- modelValue: i.value,
170
- "onUpdate:modelValue": m[0] || (m[0] = (e) => i.value = e),
171
- label: n(u)("report.section.schema.title"),
169
+ modelValue: n.value,
170
+ "onUpdate:modelValue": m[0] || (m[0] = (e) => n.value = e),
171
+ label: i(u)("report.section.schema.title"),
172
172
  items: t.value === 0 ? b.value.map((e) => ({ label: e.labels[0], value: e.value })) : v.value.map((e) => ({
173
173
  label: e.labels[0],
174
174
  value: e.value
@@ -181,10 +181,10 @@ const xe = [
181
181
  _: 1
182
182
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
183
183
  k("div", null, [
184
- k("p", Ye, I(n(u)("report.section.schema.title")), 1),
185
- k("p", Ke, I(n(u)("report.section.schema.description")), 1)
184
+ k("p", Ye, I(i(u)("report.section.schema.title")), 1),
185
+ k("p", Ke, I(i(u)("report.section.schema.description")), 1)
186
186
  ]),
187
- (p(!0), L(Q, null, re(l.value.schemaNames, (e, r) => (p(), L("div", {
187
+ (p(!0), L(Q, null, re(a.value.schemaNames, (e, r) => (p(), L("div", {
188
188
  key: r,
189
189
  class: "flex flex-col gap-2 w-full"
190
190
  }, [
@@ -198,21 +198,21 @@ const xe = [
198
198
  name: "close",
199
199
  onClick: ee(
200
200
  () => {
201
- l.value.schemaNames = n(Ee)(l.value.schemaNames, r);
201
+ a.value.schemaNames = i(Ee)(a.value.schemaNames, r);
202
202
  },
203
203
  ["stop"]
204
204
  )
205
205
  }, null, 8, ["onClick"])
206
206
  ], 8, Qe)
207
207
  ]))), 128)),
208
- d(a, {
208
+ d(l, {
209
209
  class: "text-fm-color-typo-tertiary",
210
210
  onClick: m[2] || (m[2] = () => {
211
211
  O();
212
212
  })
213
213
  }, {
214
214
  default: _(() => [
215
- ne(I(n(u)("report.section.schema.add")), 1)
215
+ ne(I(i(u)("report.section.schema.add")), 1)
216
216
  ]),
217
217
  _: 1
218
218
  })
@@ -255,84 +255,84 @@ const xe = [
255
255
  }),
256
256
  emits: ["update:modelValue"],
257
257
  setup(s) {
258
- const { t: u } = le(), l = Y(s, "modelValue"), c = s, g = E(!1), b = U(
259
- () => l.value.map((a, e) => ({
258
+ const { t: u } = le(), a = Y(s, "modelValue"), c = s, g = E(!1), b = U(
259
+ () => a.value.map((l, e) => ({
260
260
  index: e,
261
- labels: [a.label || a.name],
262
- value: a
261
+ labels: [l.label || l.name],
262
+ value: l
263
263
  }))
264
- ), v = E(l.value.length > 0 ? 0 : void 0);
265
- function f(a) {
264
+ ), v = E(a.value.length > 0 ? 0 : void 0);
265
+ function f(l) {
266
266
  var e, r;
267
- g.value = !0, i.value = a != null && a.value ? JSON.parse(JSON.stringify(a.value)) : void 0, v.value = a == null ? void 0 : a.index, t.value = !!((e = i.value) != null && e.dataFormula || (r = i.value) != null && r.displayFormula);
267
+ g.value = !0, n.value = l != null && l.value ? JSON.parse(JSON.stringify(l.value)) : void 0, v.value = l == null ? void 0 : l.index, t.value = !!((e = n.value) != null && e.dataFormula || (r = n.value) != null && r.displayFormula);
268
268
  }
269
- U(() => !!c.max && l.value.length === c.max);
270
- const i = E(void 0), t = E(!1), w = U(
269
+ U(() => !!c.max && a.value.length === c.max);
270
+ const n = E(void 0), t = E(!1), w = U(
271
271
  () => c.options.find(
272
- (a) => {
272
+ (l) => {
273
273
  var e, r;
274
- return a.schemaName === ((e = i.value) == null ? void 0 : e.schemaName) && a.name === ((r = i.value) == null ? void 0 : r.name);
274
+ return l.schemaName === ((e = n.value) == null ? void 0 : e.schemaName) && l.name === ((r = n.value) == null ? void 0 : r.name);
275
275
  }
276
276
  ) ?? {}
277
277
  );
278
278
  me(
279
279
  () => {
280
- var a;
281
- return (a = i.value) == null ? void 0 : a.option;
280
+ var l;
281
+ return (l = n.value) == null ? void 0 : l.option;
282
282
  },
283
283
  () => {
284
- !D.value && i.value && (i.value.fillGap = !1);
284
+ !D.value && n.value && (n.value.fillGap = !1);
285
285
  }
286
286
  );
287
287
  const D = U(
288
288
  () => {
289
- var a, e, r;
290
- return (r = (a = w.value) == null ? void 0 : a.fillGapDimensionOptions) == null ? void 0 : r.includes(((e = i.value) == null ? void 0 : e.option) || "");
289
+ var l, e, r;
290
+ return (r = (l = w.value) == null ? void 0 : l.fillGapDimensionOptions) == null ? void 0 : r.includes(((e = n.value) == null ? void 0 : e.option) || "");
291
291
  }
292
292
  );
293
- function O(a) {
293
+ function O(l) {
294
294
  var e, r;
295
- (a.schemaName !== ((e = i.value) == null ? void 0 : e.schemaName) || a.name !== ((r = i.value) == null ? void 0 : r.name)) && (i.value = {
296
- schemaName: a.schemaName,
297
- name: a.name,
298
- option: a.dimensionOptions[0],
299
- label: a.label,
300
- decimal: a.isNumericType ? 2 : void 0,
295
+ (l.schemaName !== ((e = n.value) == null ? void 0 : e.schemaName) || l.name !== ((r = n.value) == null ? void 0 : r.name)) && (n.value = {
296
+ schemaName: l.schemaName,
297
+ name: l.name,
298
+ option: l.dimensionOptions[0],
299
+ label: l.label,
300
+ decimal: l.isNumericType ? 2 : void 0,
301
301
  hide: !1
302
302
  }, t.value = !1);
303
303
  }
304
304
  function R() {
305
- if (!i.value) {
305
+ if (!n.value) {
306
306
  console.error("new field is undefined");
307
307
  return;
308
308
  }
309
- const a = [...b.value.map((e) => e.value)];
310
- v.value !== void 0 ? a[v.value] = i.value : a.push(i.value), l.value = a, g.value = !1;
309
+ const l = [...b.value.map((e) => e.value)];
310
+ v.value !== void 0 ? l[v.value] = n.value : l.push(n.value), a.value = l, g.value = !1;
311
311
  }
312
- function V(a) {
313
- const r = [...b.value.map((T) => T.value)].filter((T, j) => j !== a);
314
- l.value = r;
312
+ function V(l) {
313
+ const r = [...b.value.map((T) => T.value)].filter((T, j) => j !== l);
314
+ a.value = r;
315
315
  }
316
- function m(a) {
317
- i.value && (i.value.decimal = Number(a));
316
+ function m(l) {
317
+ n.value && (n.value.decimal = Number(l));
318
318
  }
319
319
  const F = U(
320
- () => c.options.map((a) => ({
321
- label: a.labels.join(" "),
322
- value: a
320
+ () => c.options.map((l) => ({
321
+ label: l.labels.join(" "),
322
+ value: l
323
323
  }))
324
324
  ), o = U(
325
325
  () => c.label ? c.label : u(`report.section.dimension.${c.label}`)
326
326
  );
327
- return (a, e) => {
327
+ return (l, e) => {
328
328
  const r = y("FmTextField"), T = y("FmStepperField"), j = y("FmCheckbox"), q = y("FmTextarea"), X = y("FmForm"), B = y("FmIcon"), M = y("FmButton"), A = y("FmListItem"), z = y("FmList"), H = y("FmField");
329
329
  return s.max !== 0 ? (p(), L("div", el, [
330
330
  d(ie, {
331
331
  modelValue: g.value,
332
332
  "onUpdate:modelValue": e[12] || (e[12] = (x) => g.value = x),
333
333
  title: o.value,
334
- "primary-button-label": n(u)("report.common.confirm"),
335
- "secondary-button-label": n(u)("report.common.cancel"),
334
+ "primary-button-label": i(u)("report.common.confirm"),
335
+ "secondary-button-label": i(u)("report.common.cancel"),
336
336
  onConfirm: R
337
337
  }, {
338
338
  content: _(() => [
@@ -350,16 +350,16 @@ const xe = [
350
350
  label: o.value,
351
351
  "onUpdate:modelValue": e[0] || (e[0] = (h) => O(h))
352
352
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
353
- i.value ? (p(), L(Q, { key: 0 }, [
353
+ n.value ? (p(), L(Q, { key: 0 }, [
354
354
  d(r, {
355
- modelValue: i.value.label,
356
- "onUpdate:modelValue": e[1] || (e[1] = (h) => i.value.label = h),
357
- label: n(u)(`report.section.dimension.${s.label}`)
355
+ modelValue: n.value.label,
356
+ "onUpdate:modelValue": e[1] || (e[1] = (h) => n.value.label = h),
357
+ label: o.value
358
358
  }, null, 8, ["modelValue", "label"]),
359
359
  (((x = w.value) == null ? void 0 : x.dimensionOptions) || []).length > 0 ? (p(), C(P, {
360
360
  key: 0,
361
- modelValue: i.value.option,
362
- "onUpdate:modelValue": e[2] || (e[2] = (h) => i.value.option = h),
361
+ modelValue: n.value.option,
362
+ "onUpdate:modelValue": e[2] || (e[2] = (h) => n.value.option = h),
363
363
  items: (($ = w.value) == null ? void 0 : $.dimensionOptions.map((h) => ({
364
364
  label: h,
365
365
  value: h
@@ -367,69 +367,69 @@ const xe = [
367
367
  }, null, 8, ["modelValue", "items"])) : S("", !0),
368
368
  (K = w.value) != null && K.isNumericType ? (p(), C(T, {
369
369
  key: 1,
370
- label: n(u)("report.common.decimal"),
371
- "model-value": ((ae = i.value) == null ? void 0 : ae.decimal) ?? 2,
370
+ label: i(u)("report.common.decimal"),
371
+ "model-value": ((ae = n.value) == null ? void 0 : ae.decimal) ?? 2,
372
372
  "onUpdate:modelValue": e[3] || (e[3] = (h) => {
373
373
  m(h);
374
374
  })
375
375
  }, null, 8, ["label", "model-value"])) : S("", !0),
376
376
  (W = w.value) != null && W.isNumericType ? (p(), C(P, {
377
377
  key: 2,
378
- modelValue: i.value.timeFormatter,
379
- "onUpdate:modelValue": e[4] || (e[4] = (h) => i.value.timeFormatter = h),
380
- placeholder: n(u)("report.section.dimension.timeFormatter"),
381
- label: n(u)("report.section.dimension.timeFormatter"),
378
+ modelValue: n.value.timeFormatter,
379
+ "onUpdate:modelValue": e[4] || (e[4] = (h) => n.value.timeFormatter = h),
380
+ placeholder: i(u)("report.section.dimension.timeFormatter"),
381
+ label: i(u)("report.section.dimension.timeFormatter"),
382
382
  items: w.value.timeFormatters.map((h) => ({ label: h, value: h }))
383
383
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : S("", !0),
384
384
  D.value ? (p(), C(j, {
385
385
  key: 3,
386
- "model-value": i.value.fillGap ?? !1,
387
- label: n(u)("report.section.dimension.fillGap"),
386
+ "model-value": n.value.fillGap ?? !1,
387
+ label: i(u)("report.section.dimension.fillGap"),
388
388
  value: "",
389
389
  placeholder: "Fill gap",
390
390
  "onUpdate:modelValue": e[5] || (e[5] = (h) => {
391
- i.value && (i.value.fillGap = h);
391
+ n.value && (n.value.fillGap = h);
392
392
  })
393
393
  }, null, 8, ["model-value", "label"])) : S("", !0),
394
- ((ue = w.value) == null ? void 0 : ue.type) === n(te).Timestamp ? (p(), C(j, {
394
+ ((ue = w.value) == null ? void 0 : ue.type) === i(te).Timestamp ? (p(), C(j, {
395
395
  key: 4,
396
- "model-value": i.value.dateComparison ?? !1,
397
- label: n(u)("report.section.dimension.dateComparison"),
396
+ "model-value": n.value.dateComparison ?? !1,
397
+ label: i(u)("report.section.dimension.dateComparison"),
398
398
  value: "",
399
399
  "onUpdate:modelValue": e[6] || (e[6] = (h) => {
400
- i.value && (i.value.dateComparison = h);
400
+ n.value && (n.value.dateComparison = h);
401
401
  })
402
402
  }, null, 8, ["model-value", "label"])) : S("", !0),
403
403
  d(j, {
404
- modelValue: i.value.hide,
405
- "onUpdate:modelValue": e[7] || (e[7] = (h) => i.value.hide = h),
406
- label: n(u)("report.section.dimension.hide"),
404
+ modelValue: n.value.hide,
405
+ "onUpdate:modelValue": e[7] || (e[7] = (h) => n.value.hide = h),
406
+ label: i(u)("report.section.dimension.hide"),
407
407
  value: ""
408
408
  }, null, 8, ["modelValue", "label"]),
409
409
  c.hasRowColumn ? (p(), C(j, {
410
410
  key: 5,
411
- modelValue: i.value.moveToColumn,
412
- "onUpdate:modelValue": e[8] || (e[8] = (h) => i.value.moveToColumn = h),
413
- label: n(u)("report.section.dimension.moveToColumn"),
411
+ modelValue: n.value.moveToColumn,
412
+ "onUpdate:modelValue": e[8] || (e[8] = (h) => n.value.moveToColumn = h),
413
+ label: i(u)("report.section.dimension.moveToColumn"),
414
414
  value: ""
415
415
  }, null, 8, ["modelValue", "label"])) : S("", !0),
416
416
  d(j, {
417
417
  modelValue: t.value,
418
418
  "onUpdate:modelValue": e[9] || (e[9] = (h) => t.value = h),
419
- label: n(u)("report.section.dimension.advance"),
419
+ label: i(u)("report.section.dimension.advance"),
420
420
  value: !0
421
421
  }, null, 8, ["modelValue", "label"]),
422
422
  t.value ? (p(), C(q, {
423
423
  key: 6,
424
- modelValue: i.value.dataFormula,
425
- "onUpdate:modelValue": e[10] || (e[10] = (h) => i.value.dataFormula = h),
426
- placeholder: n(u)("report.section.dimension.dataFormula")
424
+ modelValue: n.value.dataFormula,
425
+ "onUpdate:modelValue": e[10] || (e[10] = (h) => n.value.dataFormula = h),
426
+ placeholder: i(u)("report.section.dimension.dataFormula")
427
427
  }, null, 8, ["modelValue", "placeholder"])) : S("", !0),
428
428
  t.value ? (p(), C(q, {
429
429
  key: 7,
430
- modelValue: i.value.displayFormula,
431
- "onUpdate:modelValue": e[11] || (e[11] = (h) => i.value.displayFormula = h),
432
- placeholder: n(u)("report.section.dimension.displayFormula")
430
+ modelValue: n.value.displayFormula,
431
+ "onUpdate:modelValue": e[11] || (e[11] = (h) => n.value.displayFormula = h),
432
+ placeholder: i(u)("report.section.dimension.displayFormula")
433
433
  }, null, 8, ["modelValue", "placeholder"])) : S("", !0)
434
434
  ], 64)) : S("", !0)
435
435
  ];
@@ -441,12 +441,12 @@ const xe = [
441
441
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
442
442
  k("div", null, [
443
443
  k("p", ll, I(o.value), 1),
444
- k("p", al, I(n(u)("report.section.dimension.description")), 1)
444
+ k("p", al, I(i(u)("report.section.dimension.description")), 1)
445
445
  ]),
446
446
  d(z, null, {
447
447
  default: _(() => [
448
- d(n(pe), {
449
- list: l.value,
448
+ d(i(pe), {
449
+ list: a.value,
450
450
  "item-key": "id",
451
451
  class: "flex flex-col gap-2"
452
452
  }, {
@@ -481,7 +481,7 @@ const xe = [
481
481
  })
482
482
  }, {
483
483
  default: _(() => [
484
- ne(I(n(u)("report.section.dimension.add")), 1)
484
+ ne(I(i(u)("report.section.dimension.add")), 1)
485
485
  ]),
486
486
  _: 1
487
487
  })
@@ -491,7 +491,7 @@ const xe = [
491
491
  }), ye = {
492
492
  value: "_metric_name"
493
493
  };
494
- function tl(s, u, l) {
494
+ function tl(s, u, a) {
495
495
  switch (s) {
496
496
  case N.BarChart:
497
497
  case N.StackBarChart:
@@ -500,12 +500,12 @@ function tl(s, u, l) {
500
500
  case N.Circular:
501
501
  return u.length > 1;
502
502
  default:
503
- return l;
503
+ return a;
504
504
  }
505
505
  }
506
506
  function nl(s) {
507
507
  var c;
508
- const { rowIds: u, columnIds: l } = Fe(s.widget.config);
508
+ const { rowIds: u, columnIds: a } = Fe(s.widget.config);
509
509
  return {
510
510
  ...s,
511
511
  widget: {
@@ -513,7 +513,7 @@ function nl(s) {
513
513
  config: {
514
514
  ...s.widget.config,
515
515
  rowIds: u,
516
- columnIds: l,
516
+ columnIds: a,
517
517
  isDrillable: tl(
518
518
  s.widget.type,
519
519
  s.widget.config.dimensions,
@@ -532,12 +532,12 @@ function nl(s) {
532
532
  };
533
533
  }
534
534
  function Fe(s) {
535
- const u = s.dimensions.filter((v) => v.hide !== !0 && !v.moveToColumn).map((v) => ce(v)), l = s.dimensions.filter((v) => v.hide !== !0 && v.moveToColumn == !0).map((v) => ce(v)), c = s.metrics.length > 0;
536
- c && s.metrics.find((v) => v.moveToRow == !0) ? u.push(ye.value) : c && l.push(ye.value);
535
+ const u = s.dimensions.filter((v) => v.hide !== !0 && !v.moveToColumn).map((v) => ce(v)), a = s.dimensions.filter((v) => v.hide !== !0 && v.moveToColumn == !0).map((v) => ce(v)), c = s.metrics.length > 0;
536
+ c && s.metrics.find((v) => v.moveToRow == !0) ? u.push(ye.value) : c && a.push(ye.value);
537
537
  const g = [], b = [];
538
538
  for (const v of u)
539
539
  g.push(v);
540
- for (const v of l)
540
+ for (const v of a)
541
541
  b.push(v);
542
542
  return {
543
543
  rowIds: g,
@@ -574,7 +574,7 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
574
574
  }),
575
575
  emits: /* @__PURE__ */ J(["config"], ["update:modelValue"]),
576
576
  setup(s, { emit: u }) {
577
- const { t: l } = le(), c = Y(s, "modelValue"), g = s;
577
+ const { t: a } = le(), c = Y(s, "modelValue"), g = s;
578
578
  U(() => !!g.max && c.value.length === g.max);
579
579
  const b = E(!1), v = U(
580
580
  () => c.value.map((e, r) => ({
@@ -583,7 +583,7 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
583
583
  value: e
584
584
  }))
585
585
  ), f = E(c.value.length > 0 ? 0 : void 0);
586
- function i(e) {
586
+ function n(e) {
587
587
  var r, T, j;
588
588
  b.value = !0, t.value = e != null && e.value ? JSON.parse(JSON.stringify(e.value)) : void 0, f.value = e == null ? void 0 : e.index, w.value = !!((r = t.value) != null && r.dataFormula || (T = t.value) != null && T.displayFormula), ((j = g.config.rowIds) == null ? void 0 : j.findIndex((q) => q === ye.value)) !== -1 && t.value && (t.value.moveToRow = !0);
589
589
  }
@@ -633,16 +633,16 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
633
633
  label: e.labels.join(" "),
634
634
  value: e
635
635
  }))
636
- ), a = U(
637
- () => g.label ? g.label : l(`report.section.metric.${g.label}`)
636
+ ), l = U(
637
+ () => g.label ? g.label : a(`report.section.metric.${g.label}`)
638
638
  );
639
639
  return (e, r) => {
640
640
  const T = y("FmTextField"), j = y("FmStepperField"), q = y("FmCheckbox"), X = y("FmTextarea"), B = y("FmForm"), M = y("FmIcon"), A = y("FmButton"), z = y("FmListItem"), H = y("FmList"), x = y("FmField");
641
641
  return p(), L("div", il, [
642
642
  d(ie, {
643
643
  modelValue: b.value,
644
- "onUpdate:modelValue": r[9] || (r[9] = ($) => b.value = $),
645
- title: a.value,
644
+ "onUpdate:modelValue": r[10] || (r[10] = ($) => b.value = $),
645
+ title: l.value,
646
646
  onConfirm: m
647
647
  }, {
648
648
  content: _(() => [
@@ -656,21 +656,21 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
656
656
  d(P, {
657
657
  "model-value": D.value,
658
658
  items: o.value,
659
- placeholder: a.value,
660
- label: a.value,
659
+ placeholder: l.value,
660
+ label: l.value,
661
661
  "onUpdate:modelValue": r[0] || (r[0] = (h) => V(h))
662
662
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
663
663
  t.value ? (p(), L(Q, { key: 0 }, [
664
664
  d(T, {
665
665
  modelValue: t.value.label,
666
666
  "onUpdate:modelValue": r[1] || (r[1] = (h) => t.value.label = h),
667
- label: n(l)(`report.section.metric.${s.label}`)
667
+ label: l.value
668
668
  }, null, 8, ["modelValue", "label"]),
669
669
  ((($ = D.value) == null ? void 0 : $.aggregations) || []).length > 0 ? (p(), C(P, {
670
670
  key: 0,
671
671
  modelValue: t.value.aggregation,
672
672
  "onUpdate:modelValue": r[2] || (r[2] = (h) => t.value.aggregation = h),
673
- label: n(l)("report.section.metric.aggregation"),
673
+ label: i(a)("report.section.metric.aggregation"),
674
674
  items: ((K = D.value) == null ? void 0 : K.aggregations.map((h) => ({
675
675
  label: h,
676
676
  value: h
@@ -678,48 +678,50 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
678
678
  }, null, 8, ["modelValue", "label", "items"])) : S("", !0),
679
679
  (ae = D.value) != null && ae.isNumericType ? (p(), C(j, {
680
680
  key: 1,
681
- label: n(l)("report.common.decimal"),
681
+ label: i(a)("report.common.decimal"),
682
682
  "model-value": ((W = t.value) == null ? void 0 : W.decimal) ?? 2,
683
- "onUpdate:modelValue": e.onUpdateDecimal
684
- }, null, 8, ["label", "model-value", "onUpdate:modelValue"])) : S("", !0),
683
+ "onUpdate:modelValue": r[3] || (r[3] = (h) => {
684
+ t.value && (t.value.decimal = h);
685
+ })
686
+ }, null, 8, ["label", "model-value"])) : S("", !0),
685
687
  (ue = D.value) != null && ue.isNumericType ? (p(), C(P, {
686
688
  key: 2,
687
689
  modelValue: t.value.timeFormatter,
688
- "onUpdate:modelValue": r[3] || (r[3] = (h) => t.value.timeFormatter = h),
689
- placeholder: n(l)("report.section.metric.timeFormatter"),
690
- label: n(l)("report.section.metric.timeFormatter"),
690
+ "onUpdate:modelValue": r[4] || (r[4] = (h) => t.value.timeFormatter = h),
691
+ placeholder: i(a)("report.section.metric.timeFormatter"),
692
+ label: i(a)("report.section.metric.timeFormatter"),
691
693
  items: D.value.timeFormatters.map((h) => ({ label: h, value: h }))
692
694
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : S("", !0),
693
695
  d(q, {
694
696
  modelValue: t.value.hide,
695
- "onUpdate:modelValue": r[4] || (r[4] = (h) => t.value.hide = h),
696
- label: n(l)("report.section.metric.hide"),
697
+ "onUpdate:modelValue": r[5] || (r[5] = (h) => t.value.hide = h),
698
+ label: i(a)("report.section.metric.hide"),
697
699
  value: ""
698
700
  }, null, 8, ["modelValue", "label"]),
699
701
  g.hasRowColumn ? (p(), C(q, {
700
702
  key: 3,
701
703
  modelValue: t.value.moveToRow,
702
- "onUpdate:modelValue": r[5] || (r[5] = (h) => t.value.moveToRow = h),
703
- label: n(l)("report.section.metric.moveToRow"),
704
+ "onUpdate:modelValue": r[6] || (r[6] = (h) => t.value.moveToRow = h),
705
+ label: i(a)("report.section.metric.moveToRow"),
704
706
  value: ""
705
707
  }, null, 8, ["modelValue", "label"])) : S("", !0),
706
708
  d(q, {
707
709
  modelValue: w.value,
708
- "onUpdate:modelValue": r[6] || (r[6] = (h) => w.value = h),
709
- label: n(l)("report.section.metric.advance"),
710
+ "onUpdate:modelValue": r[7] || (r[7] = (h) => w.value = h),
711
+ label: i(a)("report.section.metric.advance"),
710
712
  value: !0
711
713
  }, null, 8, ["modelValue", "label"]),
712
714
  w.value ? (p(), C(X, {
713
715
  key: 4,
714
716
  modelValue: t.value.dataFormula,
715
- "onUpdate:modelValue": r[7] || (r[7] = (h) => t.value.dataFormula = h),
716
- placeholder: n(l)("report.section.metric.dataFormula")
717
+ "onUpdate:modelValue": r[8] || (r[8] = (h) => t.value.dataFormula = h),
718
+ placeholder: i(a)("report.section.metric.dataFormula")
717
719
  }, null, 8, ["modelValue", "placeholder"])) : S("", !0),
718
720
  w.value ? (p(), C(X, {
719
721
  key: 5,
720
722
  modelValue: t.value.displayFormula,
721
- "onUpdate:modelValue": r[8] || (r[8] = (h) => t.value.displayFormula = h),
722
- placeholder: n(l)("report.section.metric.displayFormula")
723
+ "onUpdate:modelValue": r[9] || (r[9] = (h) => t.value.displayFormula = h),
724
+ placeholder: i(a)("report.section.metric.displayFormula")
723
725
  }, null, 8, ["modelValue", "placeholder"])) : S("", !0)
724
726
  ], 64)) : S("", !0)
725
727
  ];
@@ -730,12 +732,12 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
730
732
  _: 1
731
733
  }, 8, ["modelValue", "title"]),
732
734
  k("div", null, [
733
- k("p", ul, I(a.value), 1),
734
- k("p", sl, I(n(l)("report.section.metric.description")), 1)
735
+ k("p", ul, I(l.value), 1),
736
+ k("p", sl, I(i(a)("report.section.metric.description")), 1)
735
737
  ]),
736
738
  d(H, null, {
737
739
  default: _(() => [
738
- d(n(pe), {
740
+ d(i(pe), {
739
741
  list: c.value,
740
742
  "item-key": "id",
741
743
  class: "flex flex-col gap-2 w-full"
@@ -743,12 +745,12 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
743
745
  item: _(({ element: $, index: K }) => [
744
746
  d(z, {
745
747
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
746
- onClick: ee((ae) => i(v.value[K]), ["stop"])
748
+ onClick: ee((ae) => n(v.value[K]), ["stop"])
747
749
  }, {
748
750
  default: _(() => [
749
751
  d(M, { name: "drag_handle" }),
750
752
  k("p", rl, I($.label), 1),
751
- r[11] || (r[11] = k("div", { class: "grow" }, null, -1)),
753
+ r[12] || (r[12] = k("div", { class: "grow" }, null, -1)),
752
754
  d(A, {
753
755
  icon: "close",
754
756
  size: "md",
@@ -766,12 +768,12 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
766
768
  }),
767
769
  d(x, {
768
770
  class: "text-fm-color-typo-tertiary",
769
- onClick: r[10] || (r[10] = () => {
770
- i();
771
+ onClick: r[11] || (r[11] = () => {
772
+ n();
771
773
  })
772
774
  }, {
773
775
  default: _(() => [
774
- ne(I(n(l)("report.section.metric.add")), 1)
776
+ ne(I(i(a)("report.section.metric.add")), 1)
775
777
  ]),
776
778
  _: 1
777
779
  })
@@ -781,36 +783,36 @@ const il = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body
781
783
  });
782
784
  var se = /* @__PURE__ */ ((s) => (s.Select = "Select", s.TextField = "TextField", s.Timestamp = "Timestamp", s))(se || {});
783
785
  function dl(s) {
784
- let u = !1, l = 1;
786
+ let u = !1, a = 1;
785
787
  switch (s) {
786
788
  case Z.Equal:
787
789
  case Z.NotEqual:
788
790
  case Z.Like:
789
791
  case Z.NotLike:
790
- u = !1, l = 1;
792
+ u = !1, a = 1;
791
793
  break;
792
794
  case Z.GreaterThan:
793
795
  case Z.GreaterThanOrEqual:
794
796
  case Z.LessThan:
795
797
  case Z.LessThanOrEqual:
796
- u = !0, l = 1;
798
+ u = !0, a = 1;
797
799
  break;
798
800
  case Z.Between:
799
- u = !0, l = 2;
801
+ u = !0, a = 2;
800
802
  break;
801
803
  }
802
804
  return {
803
805
  fixed: u,
804
- count: l
806
+ count: a
805
807
  };
806
808
  }
807
809
  function cl({
808
810
  operator: s,
809
811
  dimensionOption: u,
810
- dataType: l
812
+ dataType: a
811
813
  }) {
812
814
  const { fixed: c, count: g } = dl(s);
813
- switch (l) {
815
+ switch (a) {
814
816
  case te.String:
815
817
  return {
816
818
  type: "TextField",
@@ -885,55 +887,55 @@ const pl = { class: "grow" }, vl = {
885
887
  }),
886
888
  emits: ["update:modelValue"],
887
889
  setup(s) {
888
- const u = Y(s, "modelValue"), l = s;
890
+ const u = Y(s, "modelValue"), a = s;
889
891
  function c(f) {
890
892
  return (f ? ve(f) : ve()).format("HH:mm");
891
893
  }
892
- function g({ hour: f, minute: i }) {
893
- return ve().set("hour", f).set("minute", i).toISOString();
894
+ function g({ hour: f, minute: n }) {
895
+ return ve().set("hour", f).set("minute", n).toISOString();
894
896
  }
895
- function b(f, i) {
897
+ function b(f, n) {
896
898
  var w;
897
899
  const t = [...u.value];
898
- ((w = l.config) == null ? void 0 : w.type) === se.Timestamp ? t[f] = g({
899
- hour: Number(i.split(":")[0]),
900
- minute: Number(i.split(":")[1])
901
- }) : t[f] = i, u.value = t;
900
+ ((w = a.config) == null ? void 0 : w.type) === se.Timestamp ? t[f] = g({
901
+ hour: Number(n.split(":")[0]),
902
+ minute: Number(n.split(":")[1])
903
+ }) : t[f] = n, u.value = t;
902
904
  }
903
905
  function v(f) {
904
906
  if (f === 0)
905
907
  u.value = [void 0, ...u.value];
906
908
  else {
907
- const i = [...u.value];
908
- i.splice(f, 1), u.value = i;
909
+ const n = [...u.value];
910
+ n.splice(f, 1), u.value = n;
909
911
  }
910
912
  }
911
- return (f, i) => {
913
+ return (f, n) => {
912
914
  const t = y("FmSelect"), w = y("FmTextField"), D = y("FmTimePicker"), O = y("FmButton");
913
915
  return p(!0), L(Q, null, re(new Array(u.value.length !== 0 ? u.value.length : 1), (R, V) => {
914
- var m, F, o, a;
916
+ var m, F, o, l;
915
917
  return p(), L("div", {
916
918
  key: V,
917
919
  class: "flex flex-row align-center gap-2 w-full"
918
920
  }, [
919
921
  k("div", pl, [
920
- ((m = l.config) == null ? void 0 : m.type) === n(se).Select ? (p(), C(t, {
922
+ ((m = a.config) == null ? void 0 : m.type) === i(se).Select ? (p(), C(t, {
921
923
  key: 0,
922
924
  "model-value": u.value[V],
923
- items: l.config.options,
925
+ items: a.config.options,
924
926
  "onUpdate:modelValue": (e) => b(V, e)
925
- }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((F = l.config) == null ? void 0 : F.type) === n(se).TextField ? (p(), C(w, {
927
+ }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((F = a.config) == null ? void 0 : F.type) === i(se).TextField ? (p(), C(w, {
926
928
  key: 1,
927
929
  "model-value": u.value[V],
928
930
  "onUpdate:modelValue": (e) => b(V, e)
929
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : ((o = l.config) == null ? void 0 : o.type) === n(se).Timestamp ? (p(), L("div", vl, [
931
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : ((o = a.config) == null ? void 0 : o.type) === i(se).Timestamp ? (p(), L("div", vl, [
930
932
  d(D, {
931
933
  "model-value": c(u.value[V]),
932
934
  "onUpdate:modelValue": (e) => b(V, e)
933
935
  }, null, 8, ["model-value", "onUpdate:modelValue"])
934
936
  ])) : S("", !0)
935
937
  ]),
936
- ((a = l.config) == null ? void 0 : a.fixed) === !1 ? (p(), L("div", fl, [
938
+ ((l = a.config) == null ? void 0 : l.fixed) === !1 ? (p(), L("div", fl, [
937
939
  d(O, {
938
940
  icon: V === 0 ? "add" : "remove",
939
941
  onClick: (e) => v(V)
@@ -960,37 +962,37 @@ const pl = { class: "grow" }, vl = {
960
962
  }),
961
963
  emits: ["update:modelValue"],
962
964
  setup(s) {
963
- const { t: u } = le(), l = Y(s, "modelValue"), c = s, g = U(() => u(`report.section.filter.${c.label}`)), b = E(!1), v = U(
964
- () => l.value.map((a, e) => {
965
+ const { t: u } = le(), a = Y(s, "modelValue"), c = s, g = U(() => u(`report.section.filter.${c.label}`)), b = E(!1), v = U(
966
+ () => a.value.map((l, e) => {
965
967
  const r = c.options.find(
966
- (T) => T.schemaName === a.schemaName && T.name === a.name
968
+ (T) => T.schemaName === l.schemaName && T.name === l.name
967
969
  );
968
970
  return {
969
971
  index: e,
970
- labels: (r == null ? void 0 : r.labels) || [a.schemaName, a.name],
971
- value: a
972
+ labels: (r == null ? void 0 : r.labels) || [l.schemaName, l.name],
973
+ value: l
972
974
  };
973
975
  })
974
- ), f = E(l.value.length > 0 ? 0 : void 0);
975
- function i(a) {
976
+ ), f = E(a.value.length > 0 ? 0 : void 0);
977
+ function n(l) {
976
978
  var e;
977
- b.value = !0, t.value = a != null && a.value ? JSON.parse(JSON.stringify(a.value)) : void 0, f.value = a == null ? void 0 : a.index, w.value = !!((e = t.value) != null && e.dataFormula), R();
979
+ b.value = !0, t.value = l != null && l.value ? JSON.parse(JSON.stringify(l.value)) : void 0, f.value = l == null ? void 0 : l.index, w.value = !!((e = t.value) != null && e.dataFormula), R();
978
980
  }
979
981
  const t = E(void 0), w = E(!1), D = E(void 0), O = U(
980
982
  () => c.options.find(
981
- (a) => {
983
+ (l) => {
982
984
  var e, r;
983
- return a.schemaName === ((e = t.value) == null ? void 0 : e.schemaName) && a.name === ((r = t.value) == null ? void 0 : r.name);
985
+ return l.schemaName === ((e = t.value) == null ? void 0 : e.schemaName) && l.name === ((r = t.value) == null ? void 0 : r.name);
984
986
  }
985
987
  ) ?? {}
986
988
  );
987
989
  me(
988
990
  () => {
989
- var a;
990
- return (a = t.value) == null ? void 0 : a.option;
991
+ var l;
992
+ return (l = t.value) == null ? void 0 : l.option;
991
993
  },
992
- (a, e) => {
993
- if (e !== void 0 && a !== e && t.value) {
994
+ (l, e) => {
995
+ if (e !== void 0 && l !== e && t.value) {
994
996
  if (R(), !D.value)
995
997
  return;
996
998
  t.value = {
@@ -1007,11 +1009,11 @@ const pl = { class: "grow" }, vl = {
1007
1009
  }
1008
1010
  ), me(
1009
1011
  () => {
1010
- var a;
1011
- return (a = t.value) == null ? void 0 : a.operator;
1012
+ var l;
1013
+ return (l = t.value) == null ? void 0 : l.operator;
1012
1014
  },
1013
- (a, e) => {
1014
- if (a !== e && O.value && t.value) {
1015
+ (l, e) => {
1016
+ if (l !== e && O.value && t.value) {
1015
1017
  if (R(), !D.value)
1016
1018
  return;
1017
1019
  const r = t.value.values.length - D.value.count;
@@ -1038,41 +1040,41 @@ const pl = { class: "grow" }, vl = {
1038
1040
  dimensionOption: t.value.option
1039
1041
  }));
1040
1042
  }
1041
- function V(a) {
1043
+ function V(l) {
1042
1044
  var e, r, T;
1043
- (a.schemaName !== ((e = t.value) == null ? void 0 : e.schemaName) || a.name !== ((r = t.value) == null ? void 0 : r.name)) && (t.value = {
1044
- schemaName: a.schemaName,
1045
- name: a.name,
1046
- operator: a.filterOperators[0],
1047
- option: a.filterDimensionOptions[0],
1045
+ (l.schemaName !== ((e = t.value) == null ? void 0 : e.schemaName) || l.name !== ((r = t.value) == null ? void 0 : r.name)) && (t.value = {
1046
+ schemaName: l.schemaName,
1047
+ name: l.name,
1048
+ operator: l.filterOperators[0],
1049
+ option: l.filterDimensionOptions[0],
1048
1050
  values: []
1049
1051
  }, R(), t.value.values = [(T = D.value) == null ? void 0 : T.default]);
1050
1052
  }
1051
1053
  function m() {
1052
- const a = [...v.value.map((e) => e.value)];
1054
+ const l = [...v.value.map((e) => e.value)];
1053
1055
  t.value && (t.value.values = t.value.values.filter(
1054
1056
  (e) => e !== "" && e !== null
1055
- ), f.value !== void 0 ? a[Number(f.value)] = t.value : a.push(t.value), l.value = a), b.value = !1;
1057
+ ), f.value !== void 0 ? l[Number(f.value)] = t.value : l.push(t.value), a.value = l), b.value = !1;
1056
1058
  }
1057
- function F(a) {
1059
+ function F(l) {
1058
1060
  const e = [...v.value.map((r) => r.value)];
1059
- e.splice(a, 1), l.value = e, b.value = !1;
1061
+ e.splice(l, 1), a.value = e, b.value = !1;
1060
1062
  }
1061
1063
  const o = U(
1062
- () => c.options.map((a) => ({
1063
- label: a.labels.join(" "),
1064
- value: a
1064
+ () => c.options.map((l) => ({
1065
+ label: l.labels.join(" "),
1066
+ value: l
1065
1067
  }))
1066
1068
  );
1067
- return (a, e) => {
1069
+ return (l, e) => {
1068
1070
  const r = y("FmCheckbox"), T = y("FmTextarea"), j = y("FmTextField"), q = y("FmForm"), X = y("FmIcon"), B = y("FmButton"), M = y("FmListItem"), A = y("FmList"), z = y("FmField");
1069
1071
  return p(), L("div", bl, [
1070
1072
  d(ie, {
1071
1073
  modelValue: b.value,
1072
1074
  "onUpdate:modelValue": e[6] || (e[6] = (H) => b.value = H),
1073
1075
  title: g.value,
1074
- "primary-button-label": n(u)("report.common.confirm"),
1075
- "secondary-button-label": n(u)("report.common.cancel"),
1076
+ "primary-button-label": i(u)("report.common.confirm"),
1077
+ "secondary-button-label": i(u)("report.common.cancel"),
1076
1078
  onConfirm: m
1077
1079
  }, {
1078
1080
  content: _(() => [
@@ -1094,20 +1096,20 @@ const pl = { class: "grow" }, vl = {
1094
1096
  d(r, {
1095
1097
  modelValue: w.value,
1096
1098
  "onUpdate:modelValue": e[1] || (e[1] = ($) => w.value = $),
1097
- label: n(u)("report.section.filter.advance"),
1099
+ label: i(u)("report.section.filter.advance"),
1098
1100
  value: !0
1099
1101
  }, null, 8, ["modelValue", "label"]),
1100
1102
  w.value ? (p(), C(T, {
1101
1103
  key: 0,
1102
1104
  modelValue: t.value.dataFormula,
1103
1105
  "onUpdate:modelValue": e[2] || (e[2] = ($) => t.value.dataFormula = $),
1104
- placeholder: n(u)("report.section.filter.dataFormula")
1106
+ placeholder: i(u)("report.section.filter.dataFormula")
1105
1107
  }, null, 8, ["modelValue", "placeholder"])) : S("", !0),
1106
1108
  d(j, {
1107
1109
  modelValue: t.value.option,
1108
1110
  "onUpdate:modelValue": e[3] || (e[3] = ($) => t.value.option = $),
1109
- placeholder: n(u)("report.section.filter.timeFormatter"),
1110
- label: n(u)("report.section.filter.timeFormatter")
1111
+ placeholder: i(u)("report.section.filter.timeFormatter"),
1112
+ label: i(u)("report.section.filter.timeFormatter")
1111
1113
  }, null, 8, ["modelValue", "placeholder", "label"]),
1112
1114
  (((H = O.value) == null ? void 0 : H.filterOperators) || []).length > 0 ? (p(), C(P, {
1113
1115
  key: 1,
@@ -1131,23 +1133,23 @@ const pl = { class: "grow" }, vl = {
1131
1133
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
1132
1134
  k("div", null, [
1133
1135
  k("p", yl, I(g.value), 1),
1134
- k("p", Fl, I(n(u)("report.section.filter.description")), 1)
1136
+ k("p", Fl, I(i(u)("report.section.filter.description")), 1)
1135
1137
  ]),
1136
1138
  d(A, null, {
1137
1139
  default: _(() => [
1138
- d(n(pe), {
1139
- list: l.value,
1140
+ d(i(pe), {
1141
+ list: a.value,
1140
1142
  "item-key": "id",
1141
1143
  class: "flex flex-col gap-2 w-full"
1142
1144
  }, {
1143
1145
  item: _(({ element: H, index: x }) => [
1144
1146
  d(M, {
1145
1147
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1146
- onClick: ee(($) => i(v.value[x]), ["stop"])
1148
+ onClick: ee(($) => n(v.value[x]), ["stop"])
1147
1149
  }, {
1148
1150
  default: _(() => [
1149
1151
  d(X, { name: "drag_handle" }),
1150
- k("p", Vl, I(n(we)(H.name)), 1),
1152
+ k("p", Vl, I(i(we)(H.name)), 1),
1151
1153
  e[8] || (e[8] = k("div", { class: "grow" }, null, -1)),
1152
1154
  d(B, {
1153
1155
  icon: "close",
@@ -1167,11 +1169,11 @@ const pl = { class: "grow" }, vl = {
1167
1169
  d(z, {
1168
1170
  class: "text-fm-color-typo-tertiary",
1169
1171
  onClick: e[7] || (e[7] = () => {
1170
- i();
1172
+ n();
1171
1173
  })
1172
1174
  }, {
1173
1175
  default: _(() => [
1174
- ne(I(n(u)("report.section.filter.add")), 1)
1176
+ ne(I(i(u)("report.section.filter.add")), 1)
1175
1177
  ]),
1176
1178
  _: 1
1177
1179
  })
@@ -1195,35 +1197,35 @@ const pl = { class: "grow" }, vl = {
1195
1197
  }),
1196
1198
  emits: ["update:modelValue"],
1197
1199
  setup(s) {
1198
- const { t: u } = le(), l = Y(s, "modelValue"), c = s, g = U(
1200
+ const { t: u } = le(), a = Y(s, "modelValue"), c = s, g = U(
1199
1201
  () => c.label ? c.label : u(`report.section.sort.${c.label}`)
1200
1202
  ), b = E(!1), v = U(
1201
- () => l.value.map((F, o) => {
1202
- const a = c.options.find(
1203
+ () => a.value.map((F, o) => {
1204
+ const l = c.options.find(
1203
1205
  (e) => e.schemaName === F.schemaName && e.name === F.name
1204
1206
  );
1205
1207
  return {
1206
1208
  index: o,
1207
- labels: (a == null ? void 0 : a.labels) || [F.schemaName, F.name],
1209
+ labels: (l == null ? void 0 : l.labels) || [F.schemaName, F.name],
1208
1210
  value: F
1209
1211
  };
1210
1212
  })
1211
- ), f = E(l.value.length > 0 ? 0 : void 0);
1212
- function i(F) {
1213
+ ), f = E(a.value.length > 0 ? 0 : void 0);
1214
+ function n(F) {
1213
1215
  var o;
1214
1216
  b.value = !0, t.value = F != null && F.value ? JSON.parse(JSON.stringify(F.value)) : void 0, f.value = F == null ? void 0 : F.index, w.value = !!((o = t.value) != null && o.dataFormula);
1215
1217
  }
1216
1218
  const t = E(void 0), w = E(!1), D = U(
1217
1219
  () => c.options.find(
1218
1220
  (F) => {
1219
- var o, a;
1220
- return F.schemaName === ((o = t.value) == null ? void 0 : o.schemaName) && F.name === ((a = t.value) == null ? void 0 : a.name);
1221
+ var o, l;
1222
+ return F.schemaName === ((o = t.value) == null ? void 0 : o.schemaName) && F.name === ((l = t.value) == null ? void 0 : l.name);
1221
1223
  }
1222
1224
  ) ?? {}
1223
1225
  );
1224
1226
  function O(F) {
1225
- var o, a;
1226
- (F.schemaName !== ((o = t.value) == null ? void 0 : o.schemaName) || F.name !== ((a = t.value) == null ? void 0 : a.name)) && (t.value = {
1227
+ var o, l;
1228
+ (F.schemaName !== ((o = t.value) == null ? void 0 : o.schemaName) || F.name !== ((l = t.value) == null ? void 0 : l.name)) && (t.value = {
1227
1229
  schemaName: F.schemaName,
1228
1230
  name: F.name,
1229
1231
  dimensionOption: F.dimensionOptions[0],
@@ -1237,11 +1239,11 @@ const pl = { class: "grow" }, vl = {
1237
1239
  return;
1238
1240
  }
1239
1241
  const F = [...v.value.map((o) => o.value)];
1240
- f.value !== void 0 ? F[f.value] = t.value : F.push(t.value), l.value = F, b.value = !1;
1242
+ f.value !== void 0 ? F[f.value] = t.value : F.push(t.value), a.value = F, b.value = !1;
1241
1243
  }
1242
1244
  function V(F) {
1243
- const o = [...v.value.map((a) => a.value)];
1244
- o.splice(F, 1), l.value = o, b.value = !1;
1245
+ const o = [...v.value.map((l) => l.value)];
1246
+ o.splice(F, 1), a.value = o, b.value = !1;
1245
1247
  }
1246
1248
  const m = U(
1247
1249
  () => c.options.map((F) => ({
@@ -1250,7 +1252,7 @@ const pl = { class: "grow" }, vl = {
1250
1252
  }))
1251
1253
  );
1252
1254
  return (F, o) => {
1253
- const a = y("FmCheckbox"), e = y("FmTextarea"), r = y("FmForm"), T = y("FmIcon"), j = y("FmButton"), q = y("FmListItem"), X = y("FmList"), B = y("FmField");
1255
+ const l = y("FmCheckbox"), e = y("FmTextarea"), r = y("FmForm"), T = y("FmIcon"), j = y("FmButton"), q = y("FmListItem"), X = y("FmList"), B = y("FmField");
1254
1256
  return p(), L("div", wl, [
1255
1257
  d(ie, {
1256
1258
  modelValue: b.value,
@@ -1279,35 +1281,35 @@ const pl = { class: "grow" }, vl = {
1279
1281
  modelValue: t.value.dimensionOption,
1280
1282
  "onUpdate:modelValue": o[1] || (o[1] = (x) => t.value.dimensionOption = x),
1281
1283
  items: ((A = D.value) == null ? void 0 : A.dimensionOptions.map((x) => ({ label: x, value: x }))) ?? [],
1282
- placeholder: n(u)("report.section.sort.format"),
1283
- label: n(u)("report.section.sort.format")
1284
+ placeholder: i(u)("report.section.sort.format"),
1285
+ label: i(u)("report.section.sort.format")
1284
1286
  }, null, 8, ["modelValue", "items", "placeholder", "label"])) : S("", !0),
1285
1287
  (((z = D.value) == null ? void 0 : z.aggregations) || []).length > 0 ? (p(), C(P, {
1286
1288
  key: 1,
1287
1289
  modelValue: t.value.aggregation,
1288
1290
  "onUpdate:modelValue": o[2] || (o[2] = (x) => t.value.aggregation = x),
1289
1291
  items: ((H = D.value) == null ? void 0 : H.aggregations.map((x) => ({ label: x, value: x }))) ?? [],
1290
- label: n(u)("report.section.sort.aggregation"),
1291
- placeholder: n(u)("report.section.sort.aggregation")
1292
+ label: i(u)("report.section.sort.aggregation"),
1293
+ placeholder: i(u)("report.section.sort.aggregation")
1292
1294
  }, null, 8, ["modelValue", "items", "label", "placeholder"])) : S("", !0),
1293
1295
  d(P, {
1294
1296
  modelValue: t.value.type,
1295
1297
  "onUpdate:modelValue": o[3] || (o[3] = (x) => t.value.type = x),
1296
- items: Object.values(n(be)).map((x) => ({ label: x, value: x })),
1297
- placeholder: n(u)("report.section.sort.order"),
1298
- label: n(u)("report.section.sort.order")
1298
+ items: Object.values(i(be)).map((x) => ({ label: x, value: x })),
1299
+ placeholder: i(u)("report.section.sort.order"),
1300
+ label: i(u)("report.section.sort.order")
1299
1301
  }, null, 8, ["modelValue", "items", "placeholder", "label"]),
1300
- d(a, {
1302
+ d(l, {
1301
1303
  modelValue: w.value,
1302
1304
  "onUpdate:modelValue": o[4] || (o[4] = (x) => w.value = x),
1303
- label: n(u)("report.section.sort.advance"),
1305
+ label: i(u)("report.section.sort.advance"),
1304
1306
  value: !0
1305
1307
  }, null, 8, ["modelValue", "label"]),
1306
1308
  w.value ? (p(), C(e, {
1307
1309
  key: 2,
1308
1310
  modelValue: t.value.dataFormula,
1309
1311
  "onUpdate:modelValue": o[5] || (o[5] = (x) => t.value.dataFormula = x),
1310
- placeholder: n(u)("report.section.sort.dataFormula")
1312
+ placeholder: i(u)("report.section.sort.dataFormula")
1311
1313
  }, null, 8, ["modelValue", "placeholder"])) : S("", !0)
1312
1314
  ], 64)) : S("", !0)
1313
1315
  ];
@@ -1319,23 +1321,23 @@ const pl = { class: "grow" }, vl = {
1319
1321
  }, 8, ["modelValue", "title"]),
1320
1322
  k("div", null, [
1321
1323
  k("p", xl, I(g.value), 1),
1322
- k("p", kl, I(n(u)("report.section.sort.description")), 1)
1324
+ k("p", kl, I(i(u)("report.section.sort.description")), 1)
1323
1325
  ]),
1324
1326
  d(X, null, {
1325
1327
  default: _(() => [
1326
- d(n(pe), {
1327
- list: l.value,
1328
+ d(i(pe), {
1329
+ list: a.value,
1328
1330
  "item-key": "id",
1329
1331
  class: "flex flex-col gap-2 w-full"
1330
1332
  }, {
1331
1333
  item: _(({ element: M, index: A }) => [
1332
1334
  d(q, {
1333
1335
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1334
- onClick: ee((z) => i(v.value[A]), ["stop"])
1336
+ onClick: ee((z) => n(v.value[A]), ["stop"])
1335
1337
  }, {
1336
1338
  default: _(() => [
1337
1339
  d(T, { name: "drag_handle" }),
1338
- k("p", Cl, I(n(we)(M.name)), 1),
1340
+ k("p", Cl, I(i(we)(M.name)), 1),
1339
1341
  o[8] || (o[8] = k("div", { class: "grow" }, null, -1)),
1340
1342
  d(j, {
1341
1343
  icon: "close",
@@ -1355,11 +1357,11 @@ const pl = { class: "grow" }, vl = {
1355
1357
  d(B, {
1356
1358
  class: "text-fm-color-typo-tertiary",
1357
1359
  onClick: o[7] || (o[7] = () => {
1358
- i();
1360
+ n();
1359
1361
  })
1360
1362
  }, {
1361
1363
  default: _(() => [
1362
- ne(I(n(u)("report.section.sort.add")), 1)
1364
+ ne(I(i(u)("report.section.sort.add")), 1)
1363
1365
  ]),
1364
1366
  _: 1
1365
1367
  })
@@ -1374,21 +1376,21 @@ const pl = { class: "grow" }, vl = {
1374
1376
  },
1375
1377
  emits: ["update:modelValue"],
1376
1378
  setup(s) {
1377
- const { t: u } = le(), l = Y(s, "modelValue"), c = De((g) => {
1378
- g !== "" ? l.value = g : l.value = null;
1379
+ const { t: u } = le(), a = Y(s, "modelValue"), c = De((g) => {
1380
+ g !== "" ? a.value = g : a.value = null;
1379
1381
  }, 1e3);
1380
1382
  return (g, b) => {
1381
1383
  const v = y("FmTextField");
1382
1384
  return p(), L(Q, null, [
1383
1385
  k("div", null, [
1384
- k("p", Tl, I(n(u)("report.section.limit.title")), 1),
1385
- k("p", Sl, I(n(u)("report.section.limit.description")), 1)
1386
+ k("p", Tl, I(i(u)("report.section.limit.title")), 1),
1387
+ k("p", Sl, I(i(u)("report.section.limit.description")), 1)
1386
1388
  ]),
1387
1389
  d(v, {
1388
- "model-value": l.value,
1390
+ "model-value": a.value,
1389
1391
  inputmode: "numeric",
1390
- placeholder: n(u)("report.section.limit.placeholder"),
1391
- "onUpdate:modelValue": b[0] || (b[0] = (f) => n(c)(f))
1392
+ placeholder: i(u)("report.section.limit.placeholder"),
1393
+ "onUpdate:modelValue": b[0] || (b[0] = (f) => i(c)(f))
1392
1394
  }, null, 8, ["model-value", "placeholder"])
1393
1395
  ], 64);
1394
1396
  };
@@ -1410,36 +1412,36 @@ const pl = { class: "grow" }, vl = {
1410
1412
  }),
1411
1413
  emits: ["update:modelValue"],
1412
1414
  setup(s) {
1413
- const { t: u } = le(), l = Y(s, "modelValue"), c = s, g = E(!1), b = U(
1414
- () => l.value.map((o, a) => {
1415
+ const { t: u } = le(), a = Y(s, "modelValue"), c = s, g = E(!1), b = U(
1416
+ () => a.value.map((o, l) => {
1415
1417
  var e, r;
1416
1418
  return {
1417
- index: a,
1419
+ index: l,
1418
1420
  labels: [(e = o.joinDimension) == null ? void 0 : e.schemaName, (r = o.joinDimension) == null ? void 0 : r.name],
1419
1421
  value: o
1420
1422
  };
1421
1423
  })
1422
- ), v = E(l.value.length > 0 ? 0 : void 0);
1424
+ ), v = E(a.value.length > 0 ? 0 : void 0);
1423
1425
  function f(o) {
1424
- o ? (i.value = o != null && o.value ? JSON.parse(JSON.stringify(o.value)) : void 0, v.value = o == null ? void 0 : o.index) : (i.value = {
1426
+ o ? (n.value = o != null && o.value ? JSON.parse(JSON.stringify(o.value)) : void 0, v.value = o == null ? void 0 : o.index) : (n.value = {
1425
1427
  joinDimension: null,
1426
1428
  operator: "",
1427
1429
  mainDimensions: []
1428
1430
  }, v.value = void 0), g.value = !0;
1429
1431
  }
1430
- const i = E(void 0), t = U(
1432
+ const n = E(void 0), t = U(
1431
1433
  () => c.joinFieldOptions.find(
1432
1434
  (o) => {
1433
- var a, e;
1434
- return o.schemaName === ((e = (a = i.value) == null ? void 0 : a.joinDimension) == null ? void 0 : e.schemaName) && o.name === i.value.joinDimension.name;
1435
+ var l, e;
1436
+ return o.schemaName === ((e = (l = n.value) == null ? void 0 : l.joinDimension) == null ? void 0 : e.schemaName) && o.name === n.value.joinDimension.name;
1435
1437
  }
1436
1438
  ) ?? {}
1437
1439
  ), w = U(
1438
1440
  () => {
1439
1441
  var o;
1440
- return (((o = i.value) == null ? void 0 : o.mainDimensions) || []).map(
1441
- (a) => c.mainFieldOptions.find(
1442
- (e) => e.schemaName === (a == null ? void 0 : a.schemaName) && e.name === a.name
1442
+ return (((o = n.value) == null ? void 0 : o.mainDimensions) || []).map(
1443
+ (l) => c.mainFieldOptions.find(
1444
+ (e) => e.schemaName === (l == null ? void 0 : l.schemaName) && e.name === l.name
1443
1445
  ) ?? {}
1444
1446
  );
1445
1447
  }
@@ -1447,9 +1449,9 @@ const pl = { class: "grow" }, vl = {
1447
1449
  () => c.joinFieldOptions.map((o) => ({ label: o.labels.join(" "), value: o }))
1448
1450
  );
1449
1451
  function O(o) {
1450
- var a, e, r, T;
1451
- i.value && (i.value && o.schemaName !== ((e = (a = i.value) == null ? void 0 : a.joinDimension) == null ? void 0 : e.schemaName) || o.name !== ((T = (r = i.value) == null ? void 0 : r.joinDimension) == null ? void 0 : T.name)) && (i.value = {
1452
- ...i.value,
1452
+ var l, e, r, T;
1453
+ n.value && (n.value && o.schemaName !== ((e = (l = n.value) == null ? void 0 : l.joinDimension) == null ? void 0 : e.schemaName) || o.name !== ((T = (r = n.value) == null ? void 0 : r.joinDimension) == null ? void 0 : T.name)) && (n.value = {
1454
+ ...n.value,
1453
1455
  joinDimension: {
1454
1456
  schemaName: o.schemaName,
1455
1457
  name: o.name,
@@ -1457,37 +1459,37 @@ const pl = { class: "grow" }, vl = {
1457
1459
  label: o.label,
1458
1460
  hide: !0
1459
1461
  }
1460
- }, o.joinConditionOperators.includes(i.value.operator) || V(o.joinConditionOperators[0]));
1462
+ }, o.joinConditionOperators.includes(n.value.operator) || V(o.joinConditionOperators[0]));
1461
1463
  }
1462
- function R(o, a) {
1464
+ function R(o, l) {
1463
1465
  var e, r, T, j;
1464
- if (i.value && a >= 0 && (i.value && o.schemaName !== ((r = (e = i.value) == null ? void 0 : e.mainDimensions[a]) == null ? void 0 : r.schemaName) || o.name !== ((j = (T = i.value) == null ? void 0 : T.mainDimensions[a]) == null ? void 0 : j.name))) {
1465
- const q = [...i.value.mainDimensions];
1466
- q[a] = {
1466
+ if (n.value && l >= 0 && (n.value && o.schemaName !== ((r = (e = n.value) == null ? void 0 : e.mainDimensions[l]) == null ? void 0 : r.schemaName) || o.name !== ((j = (T = n.value) == null ? void 0 : T.mainDimensions[l]) == null ? void 0 : j.name))) {
1467
+ const q = [...n.value.mainDimensions];
1468
+ q[l] = {
1467
1469
  schemaName: o.schemaName,
1468
1470
  name: o.name,
1469
1471
  option: o.dimensionOptions[0],
1470
1472
  label: o.label,
1471
1473
  hide: !0
1472
- }, i.value = {
1473
- ...i.value,
1474
+ }, n.value = {
1475
+ ...n.value,
1474
1476
  mainDimensions: q
1475
1477
  };
1476
1478
  }
1477
1479
  }
1478
1480
  function V(o) {
1479
- if (i.value)
1481
+ if (n.value)
1480
1482
  switch (o) {
1481
1483
  case Z.Between:
1482
- i.value = {
1483
- ...i.value,
1484
+ n.value = {
1485
+ ...n.value,
1484
1486
  operator: o,
1485
1487
  mainDimensions: [null, null]
1486
1488
  };
1487
1489
  break;
1488
1490
  default:
1489
- i.value = {
1490
- ...i.value,
1491
+ n.value = {
1492
+ ...n.value,
1491
1493
  operator: o,
1492
1494
  mainDimensions: [null]
1493
1495
  };
@@ -1495,22 +1497,22 @@ const pl = { class: "grow" }, vl = {
1495
1497
  }
1496
1498
  }
1497
1499
  function m() {
1498
- const o = [...b.value.map((a) => a.value)];
1499
- i.value && (i.value.mainDimensions = i.value.mainDimensions.filter(
1500
- (a) => a !== "" && a != null
1501
- ), v.value !== void 0 ? o[v.value] = i.value : o.push(i.value)), l.value = o, g.value = !1;
1500
+ const o = [...b.value.map((l) => l.value)];
1501
+ n.value && (n.value.mainDimensions = n.value.mainDimensions.filter(
1502
+ (l) => l !== "" && l != null
1503
+ ), v.value !== void 0 ? o[v.value] = n.value : o.push(n.value)), a.value = o, g.value = !1;
1502
1504
  }
1503
1505
  function F(o) {
1504
- const a = [...b.value.map((e) => e.value)];
1505
- a.splice(o, 1), l.value = a;
1506
+ const l = [...b.value.map((e) => e.value)];
1507
+ l.splice(o, 1), a.value = l;
1506
1508
  }
1507
- return (o, a) => {
1509
+ return (o, l) => {
1508
1510
  const e = y("FmMenuDivider"), r = y("FmForm"), T = y("FmButton"), j = y("FmListItem"), q = y("FmList"), X = y("FmField");
1509
1511
  return p(), L("div", Nl, [
1510
1512
  d(ie, {
1511
1513
  modelValue: g.value,
1512
- "onUpdate:modelValue": a[2] || (a[2] = (B) => g.value = B),
1513
- title: n(u)("report.section.condition.condition"),
1514
+ "onUpdate:modelValue": l[2] || (l[2] = (B) => g.value = B),
1515
+ title: i(u)("report.section.condition.condition"),
1514
1516
  onConfirm: m
1515
1517
  }, {
1516
1518
  content: _(() => [
@@ -1522,34 +1524,34 @@ const pl = { class: "grow" }, vl = {
1522
1524
  var B, M, A, z, H;
1523
1525
  return [
1524
1526
  d(P, {
1525
- label: n(u)("report.section.condition.joinDatasource"),
1527
+ label: i(u)("report.section.condition.joinDatasource"),
1526
1528
  "model-value": t.value,
1527
1529
  items: D.value,
1528
- placeholder: n(u)("report.section.condition.joinDimension"),
1529
- "onUpdate:modelValue": a[0] || (a[0] = (x) => O(x))
1530
+ placeholder: i(u)("report.section.condition.joinDimension"),
1531
+ "onUpdate:modelValue": l[0] || (l[0] = (x) => O(x))
1530
1532
  }, null, 8, ["label", "model-value", "items", "placeholder"]),
1531
1533
  d(e),
1532
- (B = i.value) != null && B.joinDimension && (((M = t.value) == null ? void 0 : M.dimensionOptions) || []).length > 0 ? (p(), C(P, {
1534
+ (B = n.value) != null && B.joinDimension && (((M = t.value) == null ? void 0 : M.dimensionOptions) || []).length > 0 ? (p(), C(P, {
1533
1535
  key: 0,
1534
- modelValue: i.value.joinDimension.option,
1535
- "onUpdate:modelValue": a[1] || (a[1] = (x) => i.value.joinDimension.option = x),
1536
- label: n(u)("report.section.condition.format"),
1536
+ modelValue: n.value.joinDimension.option,
1537
+ "onUpdate:modelValue": l[1] || (l[1] = (x) => n.value.joinDimension.option = x),
1538
+ label: i(u)("report.section.condition.format"),
1537
1539
  items: ((A = t.value) == null ? void 0 : A.dimensionOptions.map((x) => ({
1538
1540
  label: x,
1539
1541
  value: x
1540
1542
  }))) ?? []
1541
1543
  }, null, 8, ["modelValue", "label", "items"])) : S("", !0),
1542
- i.value && (((z = t.value) == null ? void 0 : z.joinConditionOperators) || []).length > 0 ? (p(), C(P, {
1544
+ n.value && (((z = t.value) == null ? void 0 : z.joinConditionOperators) || []).length > 0 ? (p(), C(P, {
1543
1545
  key: 1,
1544
- "model-value": i.value.operator,
1545
- label: n(u)("report.section.condition.operator"),
1546
+ "model-value": n.value.operator,
1547
+ label: i(u)("report.section.condition.operator"),
1546
1548
  items: t.value.joinConditionOperators.map((x) => ({
1547
1549
  label: x,
1548
1550
  value: x
1549
1551
  })) ?? [],
1550
1552
  "onUpdate:modelValue": V
1551
1553
  }, null, 8, ["model-value", "label", "items"])) : S("", !0),
1552
- (p(!0), L(Q, null, re(((H = i.value) == null ? void 0 : H.mainDimensions) || [], (x, $) => {
1554
+ (p(!0), L(Q, null, re(((H = n.value) == null ? void 0 : H.mainDimensions) || [], (x, $) => {
1553
1555
  var K, ae;
1554
1556
  return p(), L("div", {
1555
1557
  key: $,
@@ -1557,7 +1559,7 @@ const pl = { class: "grow" }, vl = {
1557
1559
  }, [
1558
1560
  d(P, {
1559
1561
  "model-value": w.value[$],
1560
- label: n(u)("report.section.condition.mainDatasource", { index: $ + 1 }),
1562
+ label: i(u)("report.section.condition.mainDatasource", { index: $ + 1 }),
1561
1563
  items: c.mainFieldOptions.map((W) => ({
1562
1564
  label: W.labels.join(" "),
1563
1565
  value: W
@@ -1584,12 +1586,12 @@ const pl = { class: "grow" }, vl = {
1584
1586
  _: 1
1585
1587
  }, 8, ["modelValue", "title"]),
1586
1588
  k("div", null, [
1587
- k("p", Ul, I(n(u)("report.section.condition.condition")), 1),
1588
- k("p", $l, I(n(u)("report.section.condition.description")), 1)
1589
+ k("p", Ul, I(i(u)("report.section.condition.condition")), 1),
1590
+ k("p", $l, I(i(u)("report.section.condition.description")), 1)
1589
1591
  ]),
1590
1592
  d(q, { class: "flex flex-col gap-2" }, {
1591
1593
  default: _(() => [
1592
- (p(!0), L(Q, null, re(l.value, (B, M) => (p(), C(j, {
1594
+ (p(!0), L(Q, null, re(a.value, (B, M) => (p(), C(j, {
1593
1595
  key: M,
1594
1596
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1595
1597
  onClick: (A) => f(b.value[M])
@@ -1597,8 +1599,8 @@ const pl = { class: "grow" }, vl = {
1597
1599
  default: _(() => {
1598
1600
  var A, z;
1599
1601
  return [
1600
- k("p", Ol, I(n(ze)(((A = B.joinDimension) == null ? void 0 : A.schemaName) ?? "")) + " " + I((z = B.joinDimension) == null ? void 0 : z.label), 1),
1601
- a[4] || (a[4] = k("div", { class: "grow" }, null, -1)),
1602
+ k("p", Ol, I(i(ze)(((A = B.joinDimension) == null ? void 0 : A.schemaName) ?? "")) + " " + I((z = B.joinDimension) == null ? void 0 : z.label), 1),
1603
+ l[4] || (l[4] = k("div", { class: "grow" }, null, -1)),
1602
1604
  d(T, {
1603
1605
  icon: "close",
1604
1606
  size: "md",
@@ -1614,10 +1616,10 @@ const pl = { class: "grow" }, vl = {
1614
1616
  }),
1615
1617
  d(X, {
1616
1618
  class: "text-fm-color-typo-tertiary cursor-pointer",
1617
- onClick: a[3] || (a[3] = (B) => f())
1619
+ onClick: l[3] || (l[3] = (B) => f())
1618
1620
  }, {
1619
1621
  default: _(() => [
1620
- ne(I(n(u)("report.section.condition.add")), 1)
1622
+ ne(I(i(u)("report.section.condition.add")), 1)
1621
1623
  ]),
1622
1624
  _: 1
1623
1625
  })
@@ -1655,33 +1657,33 @@ const pl = { class: "grow" }, vl = {
1655
1657
  }),
1656
1658
  emits: /* @__PURE__ */ J(["click-close"], ["update:modelValue"]),
1657
1659
  setup(s, { emit: u }) {
1658
- const l = Y(s, "modelValue");
1660
+ const a = Y(s, "modelValue");
1659
1661
  me(
1660
- [() => l.value.dimensions, () => l.value.metrics],
1662
+ [() => a.value.dimensions, () => a.value.metrics],
1661
1663
  () => {
1662
- const { rowIds: V, columnIds: m } = Fe(l.value);
1663
- l.value.rowIds = V, l.value.columnIds = m;
1664
+ const { rowIds: V, columnIds: m } = Fe(a.value);
1665
+ a.value.rowIds = V, a.value.columnIds = m;
1664
1666
  },
1665
1667
  { deep: !0 }
1666
1668
  );
1667
- const c = s, g = u, { schemas: b } = he(Ue()), { t: v } = le(), f = U(() => !c.mainDatasourceConfig), i = U(
1669
+ const c = s, g = u, { schemas: b } = he(Ue()), { t: v } = le(), f = U(() => !c.mainDatasourceConfig), n = U(
1668
1670
  () => [N.BarChart, N.LineChart, N.Scorecard].includes(c.config.type)
1669
1671
  ), t = U(() => {
1670
- const V = [...l.value.dimensions].filter((m) => !m.hide);
1672
+ const V = [...a.value.dimensions].filter((m) => !m.hide);
1671
1673
  return V.sort(
1672
- (m, F) => (l.value.rowIds || []).indexOf(ce(m)) - (l.value.rowIds || []).indexOf(ce(F))
1674
+ (m, F) => (a.value.rowIds || []).indexOf(ce(m)) - (a.value.rowIds || []).indexOf(ce(F))
1673
1675
  ), V;
1674
1676
  }), w = U(() => c.config.type === N.Scorecard), D = U(
1675
1677
  () => {
1676
1678
  var V;
1677
1679
  return (((V = c.mainDatasourceConfig) == null ? void 0 : V.schemaNames) || []).reduce(
1678
1680
  (m, F) => {
1679
- const o = b.value.find((a) => a.name === F);
1681
+ const o = b.value.find((l) => l.name === F);
1680
1682
  return o && (m = [
1681
1683
  ...m,
1682
- ...o.fields.map((a) => ({
1683
- ...a,
1684
- labels: [o.label, a.label || a.name]
1684
+ ...o.fields.map((l) => ({
1685
+ ...l,
1686
+ labels: [o.label, l.label || l.name]
1685
1687
  }))
1686
1688
  ]), m;
1687
1689
  },
@@ -1689,7 +1691,7 @@ const pl = { class: "grow" }, vl = {
1689
1691
  );
1690
1692
  }
1691
1693
  ), O = U(
1692
- () => l.value.schemaNames.reduce((V, m) => {
1694
+ () => a.value.schemaNames.reduce((V, m) => {
1693
1695
  const F = b.value.find((o) => o.name === m);
1694
1696
  return F && (V = [
1695
1697
  ...V,
@@ -1705,7 +1707,7 @@ const pl = { class: "grow" }, vl = {
1705
1707
  ...[...t.value].slice(0, t.value.length - 1).map((V, m) => ({ labels: [V.label], value: m + 1 }))
1706
1708
  ]);
1707
1709
  return (V, m) => {
1708
- const F = y("FmButton"), o = y("FmSwitch"), a = y("FmSelect");
1710
+ const F = y("FmButton"), o = y("FmSwitch"), l = y("FmSelect");
1709
1711
  return p(), C(ge, null, {
1710
1712
  header: _(() => [
1711
1713
  k("p", null, I(c.label), 1),
@@ -1720,119 +1722,119 @@ const pl = { class: "grow" }, vl = {
1720
1722
  ]),
1721
1723
  content: _(() => [
1722
1724
  d(Ze, {
1723
- modelValue: l.value,
1724
- "onUpdate:modelValue": m[1] || (m[1] = (e) => l.value = e),
1725
- label: n(v)("report.section.schema.title")
1725
+ modelValue: a.value,
1726
+ "onUpdate:modelValue": m[1] || (m[1] = (e) => a.value = e),
1727
+ label: i(v)("report.section.schema.title")
1726
1728
  }, null, 8, ["modelValue", "label"]),
1727
1729
  d(fe, {
1728
- modelValue: l.value.dimensions,
1729
- "onUpdate:modelValue": m[2] || (m[2] = (e) => l.value.dimensions = e),
1730
+ modelValue: a.value.dimensions,
1731
+ "onUpdate:modelValue": m[2] || (m[2] = (e) => a.value.dimensions = e),
1730
1732
  options: O.value,
1731
- config: l.value,
1733
+ config: a.value,
1732
1734
  max: c.config.maxDimension,
1733
1735
  "has-row-column": !0,
1734
1736
  onConfig: m[3] || (m[3] = (e) => {
1735
- l.value = e;
1737
+ a.value = e;
1736
1738
  })
1737
1739
  }, null, 8, ["modelValue", "options", "config", "max"]),
1738
1740
  d(o, {
1739
1741
  "label-placement": "right",
1740
- label: n(v)("report.section.datasource.comparable"),
1741
- "model-value": l.value.isComparable ?? !1,
1742
+ label: i(v)("report.section.datasource.comparable"),
1743
+ "model-value": a.value.isComparable ?? !1,
1742
1744
  "onUpdate:modelValue": m[4] || (m[4] = (e) => {
1743
- l.value.isComparable = e;
1745
+ a.value.isComparable = e;
1744
1746
  })
1745
1747
  }, null, 8, ["label", "model-value"]),
1746
- i.value ? (p(), C(o, {
1748
+ n.value ? (p(), C(o, {
1747
1749
  key: 0,
1748
1750
  "label-placement": "right",
1749
- label: n(v)("report.section.datasource.cumulative"),
1750
- "model-value": l.value.isCumulative ?? !1,
1751
+ label: i(v)("report.section.datasource.cumulative"),
1752
+ "model-value": a.value.isCumulative ?? !1,
1751
1753
  "onUpdate:modelValue": m[5] || (m[5] = (e) => {
1752
- l.value.isCumulative = e;
1754
+ a.value.isCumulative = e;
1753
1755
  })
1754
1756
  }, null, 8, ["label", "model-value"])) : S("", !0),
1755
1757
  c.config.hasLabel ? (p(), C(o, {
1756
1758
  key: 1,
1757
- label: n(v)("report.section.datasource.showLabel"),
1759
+ label: i(v)("report.section.datasource.showLabel"),
1758
1760
  "label-placement": "right",
1759
- "model-value": l.value.showLabel ?? !1,
1761
+ "model-value": a.value.showLabel ?? !1,
1760
1762
  "onUpdate:modelValue": m[6] || (m[6] = (e) => {
1761
- l.value.showLabel = e;
1763
+ a.value.showLabel = e;
1762
1764
  })
1763
1765
  }, null, 8, ["label", "model-value"])) : S("", !0),
1764
1766
  c.config.isDrillConfigurable && f.value ? (p(), C(o, {
1765
1767
  key: 2,
1766
- label: n(v)("report.section.datasource.drill"),
1768
+ label: i(v)("report.section.datasource.drill"),
1767
1769
  "label-placement": "right",
1768
- "model-value": l.value.isDrillable ?? !1,
1770
+ "model-value": a.value.isDrillable ?? !1,
1769
1771
  "onUpdate:modelValue": m[7] || (m[7] = (e) => {
1770
- l.value.isDrillable = e;
1772
+ a.value.isDrillable = e;
1771
1773
  })
1772
1774
  }, null, 8, ["label", "model-value"])) : S("", !0),
1773
- c.config.canRollup && f.value ? (p(), C(a, {
1775
+ c.config.canRollup && f.value ? (p(), C(l, {
1774
1776
  key: 3,
1775
- modelValue: l.value.rollup,
1776
- "onUpdate:modelValue": m[8] || (m[8] = (e) => l.value.rollup = e),
1777
- label: n(v)("report.section.datasource.subTotal"),
1777
+ modelValue: a.value.rollup,
1778
+ "onUpdate:modelValue": m[8] || (m[8] = (e) => a.value.rollup = e),
1779
+ label: i(v)("report.section.datasource.subTotal"),
1778
1780
  items: R.value.map((e) => ({ label: e.labels[0], value: e.value }))
1779
1781
  }, null, 8, ["modelValue", "label", "items"])) : S("", !0),
1780
1782
  c.config.canTranspose && f.value ? (p(), C(o, {
1781
1783
  key: 4,
1782
- modelValue: l.value.isTransposed,
1783
- "onUpdate:modelValue": m[9] || (m[9] = (e) => l.value.isTransposed = e),
1784
- label: n(v)("report.section.datasource.transpose"),
1784
+ modelValue: a.value.isTransposed,
1785
+ "onUpdate:modelValue": m[9] || (m[9] = (e) => a.value.isTransposed = e),
1786
+ label: i(v)("report.section.datasource.transpose"),
1785
1787
  "label-placement": "right"
1786
1788
  }, null, 8, ["modelValue", "label"])) : S("", !0),
1787
1789
  c.config.hasBreakdownDimension ? (p(), C(fe, {
1788
1790
  key: 5,
1789
- "model-value": l.value.breakdownDimension ? [l.value.breakdownDimension] : [],
1790
- label: n(v)("report.section.dimension.breakdownDimension"),
1791
+ "model-value": a.value.breakdownDimension ? [a.value.breakdownDimension] : [],
1792
+ label: i(v)("report.section.dimension.breakdownDimension"),
1791
1793
  max: 1,
1792
1794
  options: O.value,
1793
1795
  "onUpdate:modelValue": m[10] || (m[10] = (e) => {
1794
- l.value.breakdownDimension = e[0];
1796
+ a.value.breakdownDimension = e[0];
1795
1797
  })
1796
1798
  }, null, 8, ["model-value", "label", "options"])) : S("", !0),
1797
1799
  w.value ? (p(), C(fe, {
1798
1800
  key: 6,
1799
- "model-value": l.value.sparklineDimension ? [l.value.sparklineDimension] : [],
1800
- label: n(v)("report.section.dimension.sparklineDimension"),
1801
+ "model-value": a.value.sparklineDimension ? [a.value.sparklineDimension] : [],
1802
+ label: i(v)("report.section.dimension.sparklineDimension"),
1801
1803
  max: 1,
1802
1804
  options: O.value,
1803
1805
  "onUpdate:modelValue": m[11] || (m[11] = (e) => {
1804
- l.value.sparklineDimension = e[0];
1806
+ a.value.sparklineDimension = e[0];
1805
1807
  })
1806
1808
  }, null, 8, ["model-value", "label", "options"])) : S("", !0),
1807
1809
  d(ml, {
1808
- modelValue: l.value.metrics,
1809
- "onUpdate:modelValue": m[12] || (m[12] = (e) => l.value.metrics = e),
1810
+ modelValue: a.value.metrics,
1811
+ "onUpdate:modelValue": m[12] || (m[12] = (e) => a.value.metrics = e),
1810
1812
  options: O.value,
1811
1813
  max: c.config.maxMetric,
1812
- config: l.value,
1813
- "has-row-column": c.config.type === n(N).Table,
1814
+ config: a.value,
1815
+ "has-row-column": c.config.type === i(N).Table,
1814
1816
  onConfig: m[13] || (m[13] = (e) => {
1815
- l.value = e;
1817
+ a.value = e;
1816
1818
  })
1817
1819
  }, null, 8, ["modelValue", "options", "max", "config", "has-row-column"]),
1818
1820
  d(hl, {
1819
- modelValue: l.value.filters,
1820
- "onUpdate:modelValue": m[14] || (m[14] = (e) => l.value.filters = e),
1821
+ modelValue: a.value.filters,
1822
+ "onUpdate:modelValue": m[14] || (m[14] = (e) => a.value.filters = e),
1821
1823
  options: O.value
1822
1824
  }, null, 8, ["modelValue", "options"]),
1823
1825
  d(_l, {
1824
- modelValue: l.value.sorts,
1825
- "onUpdate:modelValue": m[15] || (m[15] = (e) => l.value.sorts = e),
1826
+ modelValue: a.value.sorts,
1827
+ "onUpdate:modelValue": m[15] || (m[15] = (e) => a.value.sorts = e),
1826
1828
  options: O.value
1827
1829
  }, null, 8, ["modelValue", "options"]),
1828
1830
  d(Dl, {
1829
- modelValue: l.value.limit,
1830
- "onUpdate:modelValue": m[16] || (m[16] = (e) => l.value.limit = e)
1831
+ modelValue: a.value.limit,
1832
+ "onUpdate:modelValue": m[16] || (m[16] = (e) => a.value.limit = e)
1831
1833
  }, null, 8, ["modelValue"]),
1832
- l.value.conditions ? (p(), C(Il, {
1834
+ a.value.conditions ? (p(), C(Il, {
1833
1835
  key: 7,
1834
- modelValue: l.value.conditions,
1835
- "onUpdate:modelValue": m[17] || (m[17] = (e) => l.value.conditions = e),
1836
+ modelValue: a.value.conditions,
1837
+ "onUpdate:modelValue": m[17] || (m[17] = (e) => a.value.conditions = e),
1836
1838
  "join-field-options": O.value,
1837
1839
  "main-field-options": D.value
1838
1840
  }, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : S("", !0)
@@ -1854,14 +1856,14 @@ const pl = { class: "grow" }, vl = {
1854
1856
  }),
1855
1857
  emits: ["update:modelValue"],
1856
1858
  setup(s) {
1857
- const { t: u } = le(), l = Y(s, "modelValue"), c = s;
1859
+ const { t: u } = le(), a = Y(s, "modelValue"), c = s;
1858
1860
  return (g, b) => {
1859
1861
  const v = y("FmIcon");
1860
1862
  return p(), L("div", {
1861
1863
  class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
1862
- onClick: b[0] || (b[0] = (f) => l.value = !l.value)
1864
+ onClick: b[0] || (b[0] = (f) => a.value = !a.value)
1863
1865
  }, [
1864
- k("p", Ll, I(n(u)("report.tile.setting")), 1),
1866
+ k("p", Ll, I(i(u)("report.tile.setting")), 1),
1865
1867
  b[1] || (b[1] = k("div", { class: "grow" }, null, -1)),
1866
1868
  d(v, {
1867
1869
  name: c.icon
@@ -1878,13 +1880,13 @@ const pl = { class: "grow" }, vl = {
1878
1880
  emits: ["update:modelValue"],
1879
1881
  setup(s) {
1880
1882
  const u = Y(s, "modelValue");
1881
- return (l, c) => (p(), L(Q, null, [
1883
+ return (a, c) => (p(), L(Q, null, [
1882
1884
  d(Ve, {
1883
1885
  modelValue: u.value,
1884
1886
  "onUpdate:modelValue": c[0] || (c[0] = (g) => u.value = g),
1885
1887
  icon: "keyboard_double_arrow_left"
1886
1888
  }, null, 8, ["modelValue"]),
1887
- Ce(l.$slots, "default")
1889
+ Ce(a.$slots, "default")
1888
1890
  ], 64));
1889
1891
  }
1890
1892
  }), Ml = { class: "fixed bottom-0 w-full" }, Rl = /* @__PURE__ */ G({
@@ -1896,7 +1898,7 @@ const pl = { class: "grow" }, vl = {
1896
1898
  emits: ["update:modelValue"],
1897
1899
  setup(s) {
1898
1900
  const u = Y(s, "modelValue");
1899
- return (l, c) => {
1901
+ return (a, c) => {
1900
1902
  const g = y("FmTopSheet");
1901
1903
  return p(), L("div", Ml, [
1902
1904
  d(Ve, {
@@ -1915,7 +1917,7 @@ const pl = { class: "grow" }, vl = {
1915
1917
  "onUpdate:modelValue": c[1] || (c[1] = (b) => u.value = b),
1916
1918
  icon: "keyboard_double_arrow_down"
1917
1919
  }, null, 8, ["modelValue"]),
1918
- u.value ? Ce(l.$slots, "default", { key: 0 }) : S("", !0)
1920
+ u.value ? Ce(a.$slots, "default", { key: 0 }) : S("", !0)
1919
1921
  ]),
1920
1922
  _: 3
1921
1923
  }, 8, ["modelValue"])
@@ -1937,18 +1939,18 @@ const pl = { class: "grow" }, vl = {
1937
1939
  }),
1938
1940
  emits: /* @__PURE__ */ J(["hideConfiguration"], ["update:modelValue"]),
1939
1941
  setup(s, { emit: u }) {
1940
- const l = Y(s, "modelValue"), { breakpoints: c } = Ne(), g = s, { promptMessage: b } = Se(), v = u, { t: f } = le();
1941
- function i(o) {
1942
- l.value = nl(o);
1942
+ const a = Y(s, "modelValue"), { breakpoints: c } = Ne(), g = s, { promptMessage: b } = Se(), v = u, { t: f } = le();
1943
+ function n(o) {
1944
+ a.value = nl(o);
1943
1945
  }
1944
1946
  function t() {
1945
- const o = [...l.value.widget.config.joinDatasources || []];
1946
- o.push({ ...qe(l.value.widget.type), conditions: [] }), i({
1947
- ...l.value,
1947
+ const o = [...a.value.widget.config.joinDatasources || []];
1948
+ o.push({ ...qe(a.value.widget.type), conditions: [] }), n({
1949
+ ...a.value,
1948
1950
  widget: {
1949
- ...l.value.widget,
1951
+ ...a.value.widget,
1950
1952
  config: {
1951
- ...l.value.widget.config,
1953
+ ...a.value.widget.config,
1952
1954
  joinDatasources: o
1953
1955
  }
1954
1956
  }
@@ -1959,19 +1961,19 @@ const pl = { class: "grow" }, vl = {
1959
1961
  title: f("report.tile.datasource.remove"),
1960
1962
  message: f("report.tile.datasource.confirmRemove", { index: o + 1 })
1961
1963
  })) return;
1962
- const e = [...l.value.widget.config.joinDatasources || []];
1963
- e.splice(o, 1), i({
1964
- ...l.value,
1964
+ const e = [...a.value.widget.config.joinDatasources || []];
1965
+ e.splice(o, 1), n({
1966
+ ...a.value,
1965
1967
  widget: {
1966
- ...l.value.widget,
1968
+ ...a.value.widget,
1967
1969
  config: {
1968
- ...l.value.widget.config,
1970
+ ...a.value.widget.config,
1969
1971
  joinDatasources: e
1970
1972
  }
1971
1973
  }
1972
1974
  });
1973
1975
  }
1974
- const D = (o, a) => {
1976
+ const D = (o, l) => {
1975
1977
  let e = 1, r = 1;
1976
1978
  switch (o) {
1977
1979
  case N.Scorecard:
@@ -1999,14 +2001,14 @@ const pl = { class: "grow" }, vl = {
1999
2001
  width: r
2000
2002
  },
2001
2003
  widget: {
2002
- ...a.widget,
2004
+ ...l.widget,
2003
2005
  type: o
2004
2006
  }
2005
2007
  };
2006
2008
  }, O = U(
2007
- () => xe.find((o) => o.type === l.value.widget.type)
2008
- ), R = U(() => l.value.widget.config.joinDatasources), V = U(() => {
2009
- switch (l.value.widget.type) {
2009
+ () => xe.find((o) => o.type === a.value.widget.type)
2010
+ ), R = U(() => a.value.widget.config.joinDatasources), V = U(() => {
2011
+ switch (a.value.widget.type) {
2010
2012
  case N.Table:
2011
2013
  case N.BarChart:
2012
2014
  case N.LineChart:
@@ -2020,7 +2022,7 @@ const pl = { class: "grow" }, vl = {
2020
2022
  return 1;
2021
2023
  }
2022
2024
  }), m = U(() => {
2023
- switch (l.value.widget.type) {
2025
+ switch (a.value.widget.type) {
2024
2026
  case N.Table:
2025
2027
  case N.BarChart:
2026
2028
  case N.LineChart:
@@ -2032,16 +2034,16 @@ const pl = { class: "grow" }, vl = {
2032
2034
  return 1;
2033
2035
  }
2034
2036
  }), F = De((o) => {
2035
- l.value.widget.title = o;
2037
+ a.value.widget.title = o;
2036
2038
  }, 500);
2037
- return (o, a) => {
2039
+ return (o, l) => {
2038
2040
  const e = y("FmCircularProgress"), r = y("FmTextField"), T = y("FmTextarea"), j = y("FmStepperField"), q = y("FmButton"), X = y("FmForm");
2039
- return p(), C(_e(n(c).lg || n(c).md ? Bl : Rl), {
2041
+ return p(), C(_e(i(c).lg || i(c).md ? Bl : Rl), {
2040
2042
  "model-value": g.hideConfiguration,
2041
- "onUpdate:modelValue": a[6] || (a[6] = (B) => v("hideConfiguration", B))
2043
+ "onUpdate:modelValue": l[6] || (l[6] = (B) => v("hideConfiguration", B))
2042
2044
  }, {
2043
2045
  default: _(() => [
2044
- l.value ? (p(), C(X, {
2046
+ a.value ? (p(), C(X, {
2045
2047
  key: 1,
2046
2048
  ref: "form",
2047
2049
  class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
@@ -2049,41 +2051,41 @@ const pl = { class: "grow" }, vl = {
2049
2051
  default: _(() => [
2050
2052
  d(ge, null, {
2051
2053
  header: _(() => [
2052
- k("p", null, I(n(f)("report.tile.widget.details")), 1),
2053
- a[7] || (a[7] = k("div", { class: "grow" }, null, -1))
2054
+ k("p", null, I(i(f)("report.tile.widget.details")), 1),
2055
+ l[7] || (l[7] = k("div", { class: "grow" }, null, -1))
2054
2056
  ]),
2055
2057
  content: _(() => [
2056
2058
  d(r, {
2057
- "model-value": l.value.widget.title,
2058
- label: n(f)("report.tile.widget.title"),
2059
- placeholder: n(f)("report.tile.widget.titlePlaceholder"),
2060
- "onUpdate:modelValue": n(F)
2059
+ "model-value": a.value.widget.title,
2060
+ label: i(f)("report.tile.widget.title"),
2061
+ placeholder: i(f)("report.tile.widget.titlePlaceholder"),
2062
+ "onUpdate:modelValue": i(F)
2061
2063
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2062
2064
  d(T, {
2063
- modelValue: l.value.widget.description,
2064
- "onUpdate:modelValue": a[0] || (a[0] = (B) => l.value.widget.description = B),
2065
- disabled: l.value.widget.title === "",
2066
- label: n(f)("report.tile.widget.description"),
2067
- placeholder: n(f)("report.tile.widget.descriptionPlaceholder"),
2068
- "helper-text": n(f)("report.tile.widget.descriptionHelper")
2065
+ modelValue: a.value.widget.description,
2066
+ "onUpdate:modelValue": l[0] || (l[0] = (B) => a.value.widget.description = B),
2067
+ disabled: a.value.widget.title === "",
2068
+ label: i(f)("report.tile.widget.description"),
2069
+ placeholder: i(f)("report.tile.widget.descriptionPlaceholder"),
2070
+ "helper-text": i(f)("report.tile.widget.descriptionHelper")
2069
2071
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "helper-text"]),
2070
2072
  k("div", {
2071
- class: Te(["flex flex-row", `${n(c).sm || n(c).xs ? "gap-16" : "gap-2"}`])
2073
+ class: Te(["flex flex-row", `${i(c).sm || i(c).xs ? "gap-16" : "gap-2"}`])
2072
2074
  }, [
2073
2075
  d(j, {
2074
- modelValue: l.value.size.width,
2075
- "onUpdate:modelValue": a[1] || (a[1] = (B) => l.value.size.width = B),
2076
- label: n(f)("report.tile.widget.width"),
2076
+ modelValue: a.value.size.width,
2077
+ "onUpdate:modelValue": l[1] || (l[1] = (B) => a.value.size.width = B),
2078
+ label: i(f)("report.tile.widget.width"),
2077
2079
  min: V.value,
2078
2080
  max: 12
2079
2081
  }, null, 8, ["modelValue", "label", "min"]),
2080
2082
  d(j, {
2081
- modelValue: l.value.size.height,
2082
- "onUpdate:modelValue": a[2] || (a[2] = (B) => l.value.size.height = B),
2083
- label: n(f)("report.tile.widget.height"),
2083
+ modelValue: a.value.size.height,
2084
+ "onUpdate:modelValue": l[2] || (l[2] = (B) => a.value.size.height = B),
2085
+ label: i(f)("report.tile.widget.height"),
2084
2086
  min: m.value,
2085
2087
  max: 12,
2086
- disabled: l.value.widget.type === n(N).Scorecard
2088
+ disabled: a.value.widget.type === i(N).Scorecard
2087
2089
  }, null, 8, ["modelValue", "label", "min", "disabled"])
2088
2090
  ], 2)
2089
2091
  ]),
@@ -2091,25 +2093,25 @@ const pl = { class: "grow" }, vl = {
2091
2093
  }),
2092
2094
  d(ge, null, {
2093
2095
  header: _(() => [
2094
- k("p", null, I(n(f)("report.tile.widget.type")), 1),
2095
- a[8] || (a[8] = k("div", { class: "grow" }, null, -1))
2096
+ k("p", null, I(i(f)("report.tile.widget.type")), 1),
2097
+ l[8] || (l[8] = k("div", { class: "grow" }, null, -1))
2096
2098
  ]),
2097
2099
  content: _(() => [
2098
2100
  d(Ae, {
2099
2101
  "is-list": !0,
2100
- "model-value": l.value.widget.type,
2102
+ "model-value": a.value.widget.type,
2101
2103
  class: "grid grid-cols-1 gap-2",
2102
2104
  "child-class": "flex flex-row p-[8px] gap-2",
2103
- "exclude-widge-type": [n(N).Spacer],
2104
- "onUpdate:modelValue": a[3] || (a[3] = (B) => l.value = D(B, l.value))
2105
+ "exclude-widge-type": [i(N).Spacer],
2106
+ "onUpdate:modelValue": l[3] || (l[3] = (B) => a.value = D(B, a.value))
2105
2107
  }, null, 8, ["model-value", "exclude-widge-type"])
2106
2108
  ]),
2107
2109
  _: 1
2108
2110
  }),
2109
2111
  d(ke, {
2110
- modelValue: l.value.widget.config,
2111
- "onUpdate:modelValue": a[4] || (a[4] = (B) => l.value.widget.config = B),
2112
- label: n(f)("report.tile.datasource.main"),
2112
+ modelValue: a.value.widget.config,
2113
+ "onUpdate:modelValue": l[4] || (l[4] = (B) => a.value.widget.config = B),
2114
+ label: i(f)("report.tile.datasource.main"),
2113
2115
  config: O.value
2114
2116
  }, null, 8, ["modelValue", "label", "config"]),
2115
2117
  R.value ? (p(!0), L(Q, { key: 0 }, re(R.value, (B, M) => (p(), L("div", { key: M }, [
@@ -2118,21 +2120,21 @@ const pl = { class: "grow" }, vl = {
2118
2120
  "onUpdate:modelValue": (A) => R.value[M] = A,
2119
2121
  label: `Join datasource ${M + 1}`,
2120
2122
  config: O.value,
2121
- "main-datasource-config": l.value.widget.config,
2123
+ "main-datasource-config": a.value.widget.config,
2122
2124
  closeable: !0,
2123
2125
  onClickClose: (A) => w(M)
2124
2126
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
2125
2127
  ]))), 128)) : S("", !0),
2126
2128
  k("div", jl, [
2127
2129
  d(q, {
2128
- label: n(f)("report.tile.datasource.joinButton"),
2130
+ label: i(f)("report.tile.datasource.joinButton"),
2129
2131
  variant: "secondary",
2130
2132
  icon: "add",
2131
2133
  "icon-position": "prepend",
2132
- "border-color": n(de).ColorPrimary,
2133
- "text-color": n(de).ColorPrimary,
2134
+ "border-color": i(de).ColorPrimary,
2135
+ "text-color": i(de).ColorPrimary,
2134
2136
  class: "w-full",
2135
- onClick: a[5] || (a[5] = (B) => t())
2137
+ onClick: l[5] || (l[5] = (B) => t())
2136
2138
  }, null, 8, ["label", "border-color", "text-color"])
2137
2139
  ])
2138
2140
  ]),
@@ -2159,24 +2161,24 @@ const pl = { class: "grow" }, vl = {
2159
2161
  }),
2160
2162
  emits: /* @__PURE__ */ J(["hideConfiguration"], ["update:modelValue"]),
2161
2163
  setup(s, { emit: u }) {
2162
- const l = Y(s, "modelValue"), c = s, g = U(
2164
+ const a = Y(s, "modelValue"), c = s, g = U(
2163
2165
  () => xe.find((v) => {
2164
2166
  var f;
2165
- return v.type === ((f = l.value) == null ? void 0 : f.widget.type);
2167
+ return v.type === ((f = a.value) == null ? void 0 : f.widget.type);
2166
2168
  })
2167
2169
  ), b = u;
2168
2170
  return (v, f) => {
2169
- const i = y("FmCircularProgress"), t = y("FmButton");
2171
+ const n = y("FmCircularProgress"), t = y("FmButton");
2170
2172
  return p(), L("div", null, [
2171
- l.value ? (p(), L(Q, { key: 1 }, [
2173
+ a.value ? (p(), L(Q, { key: 1 }, [
2172
2174
  d(Pe, {
2173
2175
  "model-value": !s.hideConfiguration
2174
2176
  }, {
2175
2177
  right: _(() => [
2176
2178
  k("div", El, [
2177
2179
  d(Ie, {
2178
- modelValue: l.value,
2179
- "onUpdate:modelValue": f[0] || (f[0] = (w) => l.value = w),
2180
+ modelValue: a.value,
2181
+ "onUpdate:modelValue": f[0] || (f[0] = (w) => a.value = w),
2180
2182
  config: g.value,
2181
2183
  "hide-configuration": s.hideConfiguration,
2182
2184
  onHideConfiguration: f[1] || (f[1] = (w) => {
@@ -2190,8 +2192,8 @@ const pl = { class: "grow" }, vl = {
2190
2192
  d(t, {
2191
2193
  variant: "secondary",
2192
2194
  icon: "keyboard_double_arrow_right",
2193
- "border-color": n(de).ColorPrimary,
2194
- "text-color": n(de).ColorPrimary,
2195
+ "border-color": i(de).ColorPrimary,
2196
+ "text-color": i(de).ColorPrimary,
2195
2197
  class: "m-24 my-16",
2196
2198
  size: "md",
2197
2199
  onClick: f[2] || (f[2] = (w) => b("hideConfiguration", !c.hideConfiguration))
@@ -2202,15 +2204,15 @@ const pl = { class: "grow" }, vl = {
2202
2204
  }, 8, ["model-value"]),
2203
2205
  k("div", ql, [
2204
2206
  k("div", Pl, [
2205
- l.value ? (p(), C($e, {
2207
+ a.value ? (p(), C($e, {
2206
2208
  key: 0,
2207
- "model-value": l.value,
2209
+ "model-value": a.value,
2208
2210
  index: c.index,
2209
2211
  "hide-export": !0
2210
2212
  }, null, 8, ["model-value", "index"])) : (p(), C(Oe, { key: 1 }))
2211
2213
  ])
2212
2214
  ])
2213
- ], 64)) : (p(), C(i, { key: 0 }))
2215
+ ], 64)) : (p(), C(n, { key: 0 }))
2214
2216
  ]);
2215
2217
  };
2216
2218
  }
@@ -2230,27 +2232,27 @@ const pl = { class: "grow" }, vl = {
2230
2232
  }),
2231
2233
  emits: /* @__PURE__ */ J(["hideConfiguration"], ["update:modelValue"]),
2232
2234
  setup(s, { emit: u }) {
2233
- const l = Y(s, "modelValue"), c = s, g = U(
2235
+ const a = Y(s, "modelValue"), c = s, g = U(
2234
2236
  () => xe.find((v) => {
2235
2237
  var f;
2236
- return v.type === ((f = l.value) == null ? void 0 : f.widget.type);
2238
+ return v.type === ((f = a.value) == null ? void 0 : f.widget.type);
2237
2239
  })
2238
2240
  ), b = u;
2239
2241
  return (v, f) => {
2240
- const i = y("FmCircularProgress");
2242
+ const n = y("FmCircularProgress");
2241
2243
  return p(), L("div", null, [
2242
- l.value ? (p(), L(Q, { key: 1 }, [
2244
+ a.value ? (p(), L(Q, { key: 1 }, [
2243
2245
  k("div", zl, [
2244
- l.value ? (p(), C($e, {
2246
+ a.value ? (p(), C($e, {
2245
2247
  key: 0,
2246
- "model-value": l.value,
2248
+ "model-value": a.value,
2247
2249
  index: c.index,
2248
2250
  "hide-export": !0
2249
2251
  }, null, 8, ["model-value", "index"])) : (p(), C(Oe, { key: 1 }))
2250
2252
  ]),
2251
2253
  d(Ie, {
2252
- modelValue: l.value,
2253
- "onUpdate:modelValue": f[0] || (f[0] = (t) => l.value = t),
2254
+ modelValue: a.value,
2255
+ "onUpdate:modelValue": f[0] || (f[0] = (t) => a.value = t),
2254
2256
  config: g.value,
2255
2257
  "hide-configuration": s.hideConfiguration,
2256
2258
  onHideConfiguration: f[1] || (f[1] = (t) => {
@@ -2258,7 +2260,7 @@ const pl = { class: "grow" }, vl = {
2258
2260
  })
2259
2261
  }, null, 8, ["modelValue", "config", "hide-configuration"])
2260
2262
  ], 64)) : (p(), L("div", Jl, [
2261
- d(i)
2263
+ d(n)
2262
2264
  ]))
2263
2265
  ]);
2264
2266
  };
@@ -2269,14 +2271,14 @@ const pl = { class: "grow" }, vl = {
2269
2271
  }, ra = /* @__PURE__ */ G({
2270
2272
  __name: "TileEditor",
2271
2273
  setup(s) {
2272
- const u = Re(), l = je(), c = Je(), { currentSelectWidgetType: g, editingReport: b, editingTile: v, editingIndex: f } = he(c), { breakpoints: i } = Ne(), { promptMessage: t } = Se(), { t: w } = le(), D = E(!1);
2274
+ const u = Re(), a = je(), c = Je(), { currentSelectWidgetType: g, editingReport: b, editingTile: v, editingIndex: f } = he(c), { breakpoints: n } = Ne(), { promptMessage: t } = Se(), { t: w } = le(), D = E(!1);
2273
2275
  async function O() {
2274
2276
  var m;
2275
2277
  if (!b.value) return;
2276
2278
  await t({
2277
2279
  title: w("report.tile.save.title"),
2278
2280
  message: w("report.tile.save.confirm", { title: (m = v.value) == null ? void 0 : m.widget.title })
2279
- }) && (v.value && (b.value.tiles[f.value] = v.value), g.value = void 0, l.back());
2281
+ }) && (v.value && (b.value.tiles[f.value] = v.value), g.value = void 0, a.back());
2280
2282
  }
2281
2283
  async function R() {
2282
2284
  var m;
@@ -2284,10 +2286,10 @@ const pl = { class: "grow" }, vl = {
2284
2286
  await t({
2285
2287
  title: w("report.tile.cancel.title"),
2286
2288
  message: w("report.tile.cancel.confirm", { title: (m = v.value) == null ? void 0 : m.widget.title })
2287
- }) && (g.value = void 0, l.back());
2289
+ }) && (g.value = void 0, a.back());
2288
2290
  }
2289
2291
  return Le(() => {
2290
- b.value || l.push({ name: "reports" });
2292
+ b.value || a.push({ name: "reports" });
2291
2293
  }), (V, m) => {
2292
2294
  const F = y("FmPageHead");
2293
2295
  return p(), C(He, null, {
@@ -2304,19 +2306,19 @@ const pl = { class: "grow" }, vl = {
2304
2306
  title: _(() => {
2305
2307
  var o;
2306
2308
  return [
2307
- n(i).lg || n(i).md ? (p(), L("p", Wl, I(n(we)(((o = n(v)) == null ? void 0 : o.widget.type) ?? "New report")), 1)) : S("", !0)
2309
+ i(n).lg || i(n).md ? (p(), L("p", Wl, I(i(we)(((o = i(v)) == null ? void 0 : o.widget.type) ?? "New report")), 1)) : S("", !0)
2308
2310
  ];
2309
2311
  }),
2310
2312
  _: 1
2311
2313
  }),
2312
- n(v) ? (p(), C(_e(n(i).lg || n(i).md ? Hl : Gl), {
2314
+ i(v) ? (p(), C(_e(i(n).lg || i(n).md ? Hl : Gl), {
2313
2315
  key: 0,
2314
- modelValue: n(v),
2316
+ modelValue: i(v),
2315
2317
  "onUpdate:modelValue": m[1] || (m[1] = (o) => Me(v) ? v.value = o : null),
2316
- class: Te(`${n(i).lg || n(i).md ? "flex" : ""} w-full`),
2317
- style: Be({ height: `calc( 100% - ${n(i).lg || n(i).md ? 72 : 64}px)` }),
2318
+ class: Te(`${i(n).lg || i(n).md ? "flex" : ""} w-full`),
2319
+ style: Be({ height: `calc( 100% - ${i(n).lg || i(n).md ? 72 : 64}px)` }),
2318
2320
  "hide-configuration": D.value,
2319
- index: Number(n(u).params.tileIndex),
2321
+ index: Number(i(u).params.tileIndex),
2320
2322
  onHideConfiguration: m[2] || (m[2] = (o) => D.value = o)
2321
2323
  }, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : S("", !0)
2322
2324
  ]),