@feedmepos/mf-report 5.5.17-beta.0 → 5.5.19-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 (25) hide show
  1. package/dist/{App-SoNnCt5K.js → App-CLnzOdcp.js} +5 -5
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Bym218wx.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Dzy-IsJ-.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BPyDSlSv.js → Default.vue_vue_type_script_setup_true_lang-_QnPqizz.js} +2 -2
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BLmgj9pB.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CcIPg_AA.js} +4 -4
  5. package/dist/{InsightView-BNTy2BY6.js → InsightView-kvM1KVs-.js} +6 -6
  6. package/dist/{Integration-carh07Vr.js → Integration-MJ5FilrP.js} +3 -3
  7. package/dist/{Integrations-CkNOG-0a.js → Integrations-B_SfHWp7.js} +3 -3
  8. package/dist/{Layout-BSSq5DmA.js → Layout-8HsL51-r.js} +1 -1
  9. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-C27xOs2V.js → MenuTab.vue_vue_type_script_setup_true_lang-V5YN79nY.js} +3 -3
  10. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BGj4JBTM.js → NavigationTab.vue_vue_type_script_setup_true_lang-mgkDNg0Y.js} +5 -5
  11. package/dist/{NoData.vue_vue_type_script_setup_true_lang-Ds28wS8h.js → NoData.vue_vue_type_script_setup_true_lang-BW9flMLk.js} +1 -1
  12. package/dist/{OverviewView-C9xnNMRn.js → OverviewView-CrPqRz6b.js} +5 -5
  13. package/dist/{Report-B-JUEWzb.js → Report-CmlTfbfB.js} +4 -4
  14. package/dist/{ReportEditor-4BlCIApQ.js → ReportEditor-f1MKywGb.js} +5 -5
  15. package/dist/{ReportView-DgYlVDaO.js → ReportView-CoBDOkR0.js} +7 -7
  16. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-8tR4yk5A.js → SelectComponent.vue_vue_type_script_setup_true_lang-CAdj-Rtr.js} +1 -1
  17. package/dist/{Setting-K0PpkSOk.js → Setting-55Dx_fXx.js} +4 -4
  18. package/dist/{TileEditor-BPYpu6C1.js → TileEditor-BSXtpncD.js} +896 -912
  19. package/dist/{TransitionFade-CQfGcjzn.js → TransitionFade-VZXtmhuF.js} +4 -4
  20. package/dist/app.js +11 -11
  21. package/dist/{global-loader-DfQXrz7M.js → global-loader-L0Oj4uDq.js} +1 -1
  22. package/dist/{index-OX-gt0RL.js → index-148XMTJB.js} +1 -1
  23. package/dist/{report-schema-Cnf7q4YC.js → report-schema-BCqKnYOV.js} +1 -1
  24. package/dist/{v4-CKZZ3hoL.js → v4-8L1abgxj.js} +1 -1
  25. package/package.json +2 -2
@@ -1,22 +1,22 @@
1
- import { defineComponent as q, mergeModels as X, useModel as le, computed as T, ref as E, resolveComponent as h, createElementBlock as $, openBlock as y, createVNode as d, createElementVNode as C, unref as a, withCtx as S, toDisplayString as I, Fragment as H, renderList as de, withModifiers as te, createTextVNode as se, watch as ce, createCommentVNode as x, createBlock as k, renderSlot as Ue, resolveDynamicComponent as Ne, normalizeClass as De, onMounted as je, normalizeStyle as Ae, isRef as Ee } from "vue";
1
+ import { defineComponent as E, mergeModels as W, useModel as le, computed as N, ref as A, resolveComponent as h, createElementBlock as D, openBlock as F, createVNode as d, createElementVNode as _, unref as a, withCtx as S, toDisplayString as I, Fragment as H, renderList as ce, withModifiers as te, createTextVNode as re, watch as ue, createCommentVNode as k, createBlock as C, renderSlot as Ue, resolveDynamicComponent as Ne, normalizeClass as De, onMounted as je, normalizeStyle as Ae, isRef as Ee } from "vue";
2
2
  import { useRoute as Pe, useRouter as ze } from "vue-router";
3
- import { h as qe, d as be, S as Fe, W as He, a as Ye, T as Ge, _ as We } from "./TransitionFade-CQfGcjzn.js";
4
- import { W as D, a as Xe } from "./v4-CKZZ3hoL.js";
3
+ import { h as qe, d as be, S as Fe, W as He, a as Ye, T as Ge, _ as Xe } from "./TransitionFade-VZXtmhuF.js";
4
+ import { W as M, a as Je } from "./v4-8L1abgxj.js";
5
5
  import { storeToRefs as ke } from "pinia";
6
6
  import { u as $e } from "./message-dialog-UoMWOnil.js";
7
- import { c as Ce, d as Oe, p as Je } from "./index-OX-gt0RL.js";
7
+ import { c as Ce, d as Oe, p as We } from "./index-148XMTJB.js";
8
8
  import { useSnackbar as Ke, useBreakpoints as Le, FmButtonColorThemeVariant as ve } from "@feedmepos/ui-library";
9
- import { u as Ie } from "./report-schema-Cnf7q4YC.js";
10
- import { _ as re } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js";
11
- import { _ as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-8tR4yk5A.js";
12
- import { u as Z, d as ge } from "./global-loader-DfQXrz7M.js";
9
+ import { u as Ie } from "./report-schema-BCqKnYOV.js";
10
+ import { _ as me } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js";
11
+ import { _ as G } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CAdj-Rtr.js";
12
+ import { u as Z, d as ge } from "./global-loader-L0Oj4uDq.js";
13
13
  import { r as Q } from "./i18n-Cif1I9J2.js";
14
- import { g as fe, L as ne, a as pe, _ as Be } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BLmgj9pB.js";
15
- import { _ as Re } from "./NoData.vue_vue_type_script_setup_true_lang-Ds28wS8h.js";
16
- var ue = /* @__PURE__ */ ((m) => (m.DateTime = "DATE_TIME", m.Hour = "HOUR", m.Day = "DAY", m.Week = "WEEK", m.Month = "MONTH", m.TimeOfDay = "TIME_OF_DAY", m.HourOfDay = "HOUR_OF_DAY", m.DayOfWeek = "DAY_OF_WEEK", m.DayOfMonth = "DAY_OF_MONTH", m.MonthOfYear = "MONTH_OF_YEAR", m.Year = "YEAR", m))(ue || {}), he = /* @__PURE__ */ ((m) => (m.Asc = "ASC", m.Desc = "DESC", m))(he || {}), ae = /* @__PURE__ */ ((m) => (m.Equal = "EQUAL", m.NotEqual = "NOT_EQUAL", m.GreaterThan = "GREATER_THAN", m.LessThan = "LESS_THAN", m.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", m.LessThanOrEqual = "LESS_THAN_OR_EQUAL", m.Between = "BETWEEN", m.Like = "LIKE", m.NotLike = "NOT_LIKE", m.And = "AND", m.Or = "OR", m))(ae || {}), ie = /* @__PURE__ */ ((m) => (m.String = "STRING", m.Timestamp = "TIMESTAMP", m.Bool = "BOOL", m.Numeric = "NUMERIC", m))(ie || {});
14
+ import { g as fe, L as ne, a as pe, _ as Be } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CcIPg_AA.js";
15
+ import { _ as Re } from "./NoData.vue_vue_type_script_setup_true_lang-BW9flMLk.js";
16
+ var ie = /* @__PURE__ */ ((m) => (m.DateTime = "DATE_TIME", m.Hour = "HOUR", m.Day = "DAY", m.Week = "WEEK", m.Month = "MONTH", m.TimeOfDay = "TIME_OF_DAY", m.HourOfDay = "HOUR_OF_DAY", m.DayOfWeek = "DAY_OF_WEEK", m.DayOfMonth = "DAY_OF_MONTH", m.MonthOfYear = "MONTH_OF_YEAR", m.Year = "YEAR", m))(ie || {}), he = /* @__PURE__ */ ((m) => (m.Asc = "ASC", m.Desc = "DESC", m))(he || {}), ae = /* @__PURE__ */ ((m) => (m.Equal = "EQUAL", m.NotEqual = "NOT_EQUAL", m.GreaterThan = "GREATER_THAN", m.LessThan = "LESS_THAN", m.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", m.LessThanOrEqual = "LESS_THAN_OR_EQUAL", m.Between = "BETWEEN", m.Like = "LIKE", m.NotLike = "NOT_LIKE", m.And = "AND", m.Or = "OR", m))(ae || {}), se = /* @__PURE__ */ ((m) => (m.String = "STRING", m.Timestamp = "TIMESTAMP", m.Bool = "BOOL", m.Numeric = "NUMERIC", m))(se || {});
17
17
  const _e = [
18
18
  {
19
- type: D.Circular,
19
+ type: M.Circular,
20
20
  maxDimension: null,
21
21
  maxMetric: 1,
22
22
  hasBreakdownDimension: !1,
@@ -31,7 +31,7 @@ const _e = [
31
31
  canSearch: !1
32
32
  },
33
33
  {
34
- type: D.Table,
34
+ type: M.Table,
35
35
  maxDimension: null,
36
36
  maxMetric: null,
37
37
  hasBreakdownDimension: !1,
@@ -46,7 +46,7 @@ const _e = [
46
46
  canSearch: !0
47
47
  },
48
48
  {
49
- type: D.BarChart,
49
+ type: M.BarChart,
50
50
  maxDimension: null,
51
51
  maxMetric: 1,
52
52
  hasBreakdownDimension: !0,
@@ -61,7 +61,7 @@ const _e = [
61
61
  canSearch: !1
62
62
  },
63
63
  {
64
- type: D.LineChart,
64
+ type: M.LineChart,
65
65
  maxDimension: null,
66
66
  maxMetric: 1,
67
67
  hasBreakdownDimension: !0,
@@ -76,7 +76,7 @@ const _e = [
76
76
  canSearch: !1
77
77
  },
78
78
  {
79
- type: D.StackBarChart,
79
+ type: M.StackBarChart,
80
80
  maxDimension: null,
81
81
  maxMetric: 1,
82
82
  hasBreakdownDimension: !0,
@@ -91,7 +91,7 @@ const _e = [
91
91
  canSearch: !1
92
92
  },
93
93
  {
94
- type: D.StackLineChart,
94
+ type: M.StackLineChart,
95
95
  maxDimension: null,
96
96
  maxMetric: 1,
97
97
  hasBreakdownDimension: !0,
@@ -106,7 +106,7 @@ const _e = [
106
106
  canSearch: !1
107
107
  },
108
108
  {
109
- type: D.Scorecard,
109
+ type: M.Scorecard,
110
110
  maxDimension: null,
111
111
  maxMetric: 1,
112
112
  hasBreakdownDimension: !1,
@@ -121,7 +121,7 @@ const _e = [
121
121
  canSearch: !1
122
122
  },
123
123
  {
124
- type: D.Spacer,
124
+ type: M.Spacer,
125
125
  maxDimension: 0,
126
126
  maxMetric: 0,
127
127
  hasBreakdownDimension: !1,
@@ -135,9 +135,9 @@ const _e = [
135
135
  showRollupPosition: !1,
136
136
  canSearch: !1
137
137
  }
138
- ], Qe = { class: "flex flex-col my-2 gap-8" }, Ze = { class: "fm-typo-en-body-lg-600" }, el = { class: "text-sm text-fm-color-neutral-gray-400" }, ll = ["onClick"], ol = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, al = /* @__PURE__ */ q({
138
+ ], Qe = { class: "flex flex-col my-2 gap-8" }, Ze = { class: "fm-typo-en-body-lg-600" }, el = { class: "text-sm text-fm-color-neutral-gray-400" }, ll = ["onClick"], ol = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, al = /* @__PURE__ */ E({
139
139
  __name: "SchemaSection",
140
- props: /* @__PURE__ */ X({
140
+ props: /* @__PURE__ */ W({
141
141
  options: {
142
142
  type: Array,
143
143
  default: () => []
@@ -152,41 +152,41 @@ const _e = [
152
152
  }),
153
153
  emits: ["update:modelValue"],
154
154
  setup(m) {
155
- const { t: r, te: e } = Z(), p = le(m, "modelValue"), c = m, { schemas: i } = ke(Ie()), g = T(
156
- () => i.value.map((U) => ({
157
- label: U.label,
158
- value: U.name,
159
- raw: U
155
+ const { t: r, te: e } = Z(), p = le(m, "modelValue"), c = m, { schemas: n } = ke(Ie()), y = N(
156
+ () => n.value.map((w) => ({
157
+ label: w.label,
158
+ value: w.name,
159
+ raw: w
160
160
  }))
161
- ), b = T(() => {
161
+ ), b = N(() => {
162
162
  if (p.value.schemaNames.length === 0 || v.value === 0)
163
- return g.value.filter((U) => !U.raw.isJoinOnly);
163
+ return y.value.filter((w) => !w.raw.isJoinOnly);
164
164
  {
165
- const U = p.value.schemaNames[0], F = i.value.find((u) => u.name === U), o = ((F == null ? void 0 : F.joins) || []).map((u) => u);
166
- return g.value.filter((u) => o.includes(u.raw.name));
165
+ const w = p.value.schemaNames[0], g = n.value.find((i) => i.name === w), o = ((g == null ? void 0 : g.joins) || []).map((i) => i);
166
+ return y.value.filter((i) => o.includes(i.raw.name));
167
167
  }
168
- }), f = E(!1), l = E(""), v = E(), w = Ke();
169
- function N(U) {
170
- var F;
168
+ }), f = A(!1), l = A(""), v = A(), x = Ke();
169
+ function U(w) {
170
+ var g;
171
171
  return Q(
172
172
  r,
173
173
  e,
174
- (F = i.value.find((o) => o.name === U)) == null ? void 0 : F.label,
174
+ (g = n.value.find((o) => o.name === w)) == null ? void 0 : g.label,
175
175
  "schema"
176
176
  );
177
177
  }
178
- function V(U) {
179
- v.value = U, f.value = !0, U !== void 0 ? l.value = p.value.schemaNames[U] : l.value = "";
178
+ function V(w) {
179
+ v.value = w, f.value = !0, w !== void 0 ? l.value = p.value.schemaNames[w] : l.value = "";
180
180
  }
181
181
  function B() {
182
- l.value !== "" ? (v.value !== void 0 ? p.value.schemaNames[v.value] = l.value : p.value.schemaNames.push(l.value), f.value = !1) : w.open({ message: r("report.section.schema.nothingSelected"), type: "error" });
182
+ l.value !== "" ? (v.value !== void 0 ? p.value.schemaNames[v.value] = l.value : p.value.schemaNames.push(l.value), f.value = !1) : x.open({ message: r("report.section.schema.nothingSelected"), type: "error" });
183
183
  }
184
- return (U, F) => {
185
- const o = h("FmForm"), u = h("FmIcon"), n = h("FmField");
186
- return y(), $("div", Qe, [
187
- d(re, {
184
+ return (w, g) => {
185
+ const o = h("FmForm"), i = h("FmIcon"), u = h("FmField");
186
+ return F(), D("div", Qe, [
187
+ d(me, {
188
188
  modelValue: f.value,
189
- "onUpdate:modelValue": F[1] || (F[1] = (t) => f.value = t),
189
+ "onUpdate:modelValue": g[1] || (g[1] = (t) => f.value = t),
190
190
  title: c.label,
191
191
  "primary-button-label": a(r)("report.common.confirm"),
192
192
  "secondary-button-label": a(r)("report.common.cancel"),
@@ -195,11 +195,11 @@ const _e = [
195
195
  content: S(() => [
196
196
  d(o, { ref: "form" }, {
197
197
  default: S(() => [
198
- d(Y, {
198
+ d(G, {
199
199
  modelValue: l.value,
200
- "onUpdate:modelValue": F[0] || (F[0] = (t) => l.value = t),
200
+ "onUpdate:modelValue": g[0] || (g[0] = (t) => l.value = t),
201
201
  label: a(r)("report.section.schema.title"),
202
- items: v.value === 0 ? g.value.map((t) => ({
202
+ items: v.value === 0 ? y.value.map((t) => ({
203
203
  label: a(Q)(a(r), a(e), t.label, "schema"),
204
204
  value: t.value
205
205
  })) : b.value.map((t) => ({
@@ -213,21 +213,21 @@ const _e = [
213
213
  ]),
214
214
  _: 1
215
215
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
216
- C("div", null, [
217
- C("p", Ze, I(a(r)("report.section.schema.title")), 1),
218
- C("p", el, I(a(r)("report.section.schema.description")), 1)
216
+ _("div", null, [
217
+ _("p", Ze, I(a(r)("report.section.schema.title")), 1),
218
+ _("p", el, I(a(r)("report.section.schema.description")), 1)
219
219
  ]),
220
- (y(!0), $(H, null, de(p.value.schemaNames, (t, s) => (y(), $("div", {
220
+ (F(!0), D(H, null, ce(p.value.schemaNames, (t, s) => (F(), D("div", {
221
221
  key: s,
222
222
  class: "flex flex-col gap-2 w-full"
223
223
  }, [
224
- C("div", {
224
+ _("div", {
225
225
  class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
226
- onClick: (O) => V(s)
226
+ onClick: ($) => V(s)
227
227
  }, [
228
- C("p", ol, I(N(t)), 1),
229
- F[3] || (F[3] = C("div", { class: "grow" }, null, -1)),
230
- d(u, {
228
+ _("p", ol, I(U(t)), 1),
229
+ g[3] || (g[3] = _("div", { class: "grow" }, null, -1)),
230
+ d(i, {
231
231
  name: "close",
232
232
  onClick: te(
233
233
  () => {
@@ -238,14 +238,14 @@ const _e = [
238
238
  }, null, 8, ["onClick"])
239
239
  ], 8, ll)
240
240
  ]))), 128)),
241
- d(n, {
241
+ d(u, {
242
242
  class: "text-fm-color-typo-tertiary",
243
- onClick: F[2] || (F[2] = () => {
243
+ onClick: g[2] || (g[2] = () => {
244
244
  V();
245
245
  })
246
246
  }, {
247
247
  default: S(() => [
248
- se(I(a(r)("report.section.schema.add")), 1)
248
+ re(I(a(r)("report.section.schema.add")), 1)
249
249
  ]),
250
250
  _: 1
251
251
  })
@@ -255,9 +255,9 @@ const _e = [
255
255
  }), tl = {
256
256
  key: 0,
257
257
  class: "flex flex-col my-2 gap-8"
258
- }, nl = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, ul = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, il = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, ye = /* @__PURE__ */ q({
258
+ }, nl = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, ul = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, il = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, ye = /* @__PURE__ */ E({
259
259
  __name: "DimensionSection",
260
- props: /* @__PURE__ */ X({
260
+ props: /* @__PURE__ */ W({
261
261
  options: {
262
262
  type: Array,
263
263
  default: () => []
@@ -288,53 +288,53 @@ const _e = [
288
288
  }),
289
289
  emits: ["update:modelValue"],
290
290
  setup(m) {
291
- const { t: r, te: e } = Z(), p = le(m, "modelValue"), c = m, i = E(!1), g = T(
292
- () => p.value.map((n, t) => ({
291
+ const { t: r, te: e } = Z(), p = le(m, "modelValue"), c = m, n = A(!1), y = N(
292
+ () => p.value.map((u, t) => ({
293
293
  index: t,
294
- labels: [n.label || n.name],
295
- value: n
294
+ labels: [u.label || u.name],
295
+ value: u
296
296
  }))
297
- ), b = E(p.value.length > 0 ? 0 : void 0);
298
- function f(n) {
299
- var t, s, O;
300
- i.value = !0, l.value = n != null && n.value ? JSON.parse(
297
+ ), b = A(p.value.length > 0 ? 0 : void 0);
298
+ function f(u) {
299
+ var t, s, $;
300
+ n.value = !0, l.value = u != null && u.value ? JSON.parse(
301
301
  JSON.stringify({
302
- ...n.value,
303
- label: Q(r, e, (t = n.value) == null ? void 0 : t.label, "other")
302
+ ...u.value,
303
+ label: Q(r, e, (t = u.value) == null ? void 0 : t.label, "other")
304
304
  })
305
- ) : void 0, b.value = n == null ? void 0 : n.index, v.value = !!((s = l.value) != null && s.dataFormula || (O = l.value) != null && O.displayFormula);
305
+ ) : void 0, b.value = u == null ? void 0 : u.index, v.value = !!((s = l.value) != null && s.dataFormula || ($ = l.value) != null && $.displayFormula);
306
306
  }
307
- const l = E(void 0), v = E(!1), w = T(
307
+ const l = A(void 0), v = A(!1), x = N(
308
308
  () => c.options.find(
309
- (n) => {
309
+ (u) => {
310
310
  var t, s;
311
- return n.schemaName === ((t = l.value) == null ? void 0 : t.schemaName) && n.name === ((s = l.value) == null ? void 0 : s.name);
311
+ return u.schemaName === ((t = l.value) == null ? void 0 : t.schemaName) && u.name === ((s = l.value) == null ? void 0 : s.name);
312
312
  }
313
313
  ) ?? {}
314
314
  );
315
- ce(
315
+ ue(
316
316
  () => {
317
- var n;
318
- return (n = l.value) == null ? void 0 : n.option;
317
+ var u;
318
+ return (u = l.value) == null ? void 0 : u.option;
319
319
  },
320
320
  () => {
321
- !N.value && l.value && (l.value.fillGap = !1);
321
+ !U.value && l.value && (l.value.fillGap = !1);
322
322
  }
323
323
  );
324
- const N = T(
324
+ const U = N(
325
325
  () => {
326
- var n, t, s;
327
- return (s = (n = w.value) == null ? void 0 : n.fillGapDimensionOptions) == null ? void 0 : s.includes(((t = l.value) == null ? void 0 : t.option) || "");
326
+ var u, t, s;
327
+ return (s = (u = x.value) == null ? void 0 : u.fillGapDimensionOptions) == null ? void 0 : s.includes(((t = l.value) == null ? void 0 : t.option) || "");
328
328
  }
329
329
  );
330
- function V(n) {
330
+ function V(u) {
331
331
  var t, s;
332
- (n.schemaName !== ((t = l.value) == null ? void 0 : t.schemaName) || n.name !== ((s = l.value) == null ? void 0 : s.name)) && (l.value = {
333
- schemaName: n.schemaName,
334
- name: n.name,
335
- option: n.dimensionOptions[0],
336
- label: Q(r, e, n.label, "other"),
337
- decimal: n.isNumericType ? 2 : void 0,
332
+ (u.schemaName !== ((t = l.value) == null ? void 0 : t.schemaName) || u.name !== ((s = l.value) == null ? void 0 : s.name)) && (l.value = {
333
+ schemaName: u.schemaName,
334
+ name: u.name,
335
+ option: u.dimensionOptions[0],
336
+ label: Q(r, e, u.label, "other"),
337
+ decimal: u.isNumericType ? 2 : void 0,
338
338
  hide: !1
339
339
  }, v.value = !1);
340
340
  }
@@ -343,132 +343,132 @@ const _e = [
343
343
  console.error("new field is undefined");
344
344
  return;
345
345
  }
346
- const n = [...g.value.map((t) => t.value)];
347
- b.value !== void 0 ? n[b.value] = l.value : n.push(l.value), p.value = n, i.value = !1;
346
+ const u = [...y.value.map((t) => t.value)];
347
+ b.value !== void 0 ? u[b.value] = l.value : u.push(l.value), p.value = u, n.value = !1;
348
348
  }
349
- function U(n) {
350
- const s = [...g.value.map((O) => O.value)].filter((O, P) => P !== n);
349
+ function w(u) {
350
+ const s = [...y.value.map(($) => $.value)].filter(($, O) => O !== u);
351
351
  p.value = s;
352
352
  }
353
- function F(n) {
354
- l.value && (l.value.decimal = Number(n));
353
+ function g(u) {
354
+ l.value && (l.value.decimal = Number(u));
355
355
  }
356
- const o = T(
357
- () => c.options.map((n) => ({
358
- label: n.labels.join(" "),
359
- value: n
356
+ const o = N(
357
+ () => c.options.map((u) => ({
358
+ label: u.labels.join(" "),
359
+ value: u
360
360
  }))
361
- ), u = T(
361
+ ), i = N(
362
362
  () => c.label ? c.label : r(`report.section.dimension.${c.label}`)
363
363
  );
364
- return (n, t) => {
365
- const s = h("FmTextField"), O = h("FmStepperField"), P = h("FmCheckbox"), J = h("FmTextarea"), R = h("FmForm"), A = h("FmIcon"), z = h("FmButton"), K = h("FmListItem"), G = h("FmList"), _ = h("FmField");
366
- return m.max !== 0 ? (y(), $("div", tl, [
367
- d(re, {
368
- modelValue: i.value,
369
- "onUpdate:modelValue": t[12] || (t[12] = (L) => i.value = L),
370
- title: u.value,
364
+ return (u, t) => {
365
+ const s = h("FmTextField"), $ = h("FmStepperField"), O = h("FmCheckbox"), P = h("FmTextarea"), z = h("FmForm"), q = h("FmIcon"), Y = h("FmButton"), K = h("FmListItem"), X = h("FmList"), T = h("FmField");
366
+ return m.max !== 0 ? (F(), D("div", tl, [
367
+ d(me, {
368
+ modelValue: n.value,
369
+ "onUpdate:modelValue": t[12] || (t[12] = (L) => n.value = L),
370
+ title: i.value,
371
371
  "primary-button-label": a(r)("report.common.confirm"),
372
372
  "secondary-button-label": a(r)("report.common.cancel"),
373
373
  onConfirm: B
374
374
  }, {
375
375
  content: S(() => [
376
- d(R, {
376
+ d(z, {
377
377
  ref: "form",
378
378
  class: "flex flex-col gap-2 w-[490px]"
379
379
  }, {
380
380
  default: S(() => {
381
- var L, ee, oe, W, j, Te;
381
+ var L, ee, oe, J, j, Te;
382
382
  return [
383
- d(Y, {
384
- "model-value": w.value,
383
+ d(G, {
384
+ "model-value": x.value,
385
385
  items: o.value,
386
- placeholder: u.value,
387
- label: u.value,
388
- "onUpdate:modelValue": t[0] || (t[0] = (M) => V(M))
386
+ placeholder: i.value,
387
+ label: i.value,
388
+ "onUpdate:modelValue": t[0] || (t[0] = (R) => V(R))
389
389
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
390
- l.value ? (y(), $(H, { key: 0 }, [
390
+ l.value ? (F(), D(H, { key: 0 }, [
391
391
  d(s, {
392
392
  modelValue: l.value.label,
393
- "onUpdate:modelValue": t[1] || (t[1] = (M) => l.value.label = M),
393
+ "onUpdate:modelValue": t[1] || (t[1] = (R) => l.value.label = R),
394
394
  label: a(r)("report.section.dimension.label")
395
395
  }, null, 8, ["modelValue", "label"]),
396
- (((L = w.value) == null ? void 0 : L.dimensionOptions) || []).length > 0 ? (y(), k(Y, {
396
+ (((L = x.value) == null ? void 0 : L.dimensionOptions) || []).length > 0 ? (F(), C(G, {
397
397
  key: 0,
398
398
  modelValue: l.value.option,
399
- "onUpdate:modelValue": t[2] || (t[2] = (M) => l.value.option = M),
400
- items: ((ee = w.value) == null ? void 0 : ee.dimensionOptions.map((M) => ({
401
- label: a(Q)(a(r), a(e), M, "field"),
402
- value: M
399
+ "onUpdate:modelValue": t[2] || (t[2] = (R) => l.value.option = R),
400
+ items: ((ee = x.value) == null ? void 0 : ee.dimensionOptions.map((R) => ({
401
+ label: a(Q)(a(r), a(e), R, "field"),
402
+ value: R
403
403
  }))) ?? []
404
- }, null, 8, ["modelValue", "items"])) : x("", !0),
405
- (oe = w.value) != null && oe.isNumericType ? (y(), k(O, {
404
+ }, null, 8, ["modelValue", "items"])) : k("", !0),
405
+ (oe = x.value) != null && oe.isNumericType ? (F(), C($, {
406
406
  key: 1,
407
407
  label: a(r)("report.common.decimal"),
408
- "model-value": ((W = l.value) == null ? void 0 : W.decimal) ?? 2,
409
- "onUpdate:modelValue": t[3] || (t[3] = (M) => {
410
- F(M);
408
+ "model-value": ((J = l.value) == null ? void 0 : J.decimal) ?? 2,
409
+ "onUpdate:modelValue": t[3] || (t[3] = (R) => {
410
+ g(R);
411
411
  })
412
- }, null, 8, ["label", "model-value"])) : x("", !0),
413
- (j = w.value) != null && j.isNumericType ? (y(), k(Y, {
412
+ }, null, 8, ["label", "model-value"])) : k("", !0),
413
+ (j = x.value) != null && j.isNumericType ? (F(), C(G, {
414
414
  key: 2,
415
415
  modelValue: l.value.timeFormatter,
416
- "onUpdate:modelValue": t[4] || (t[4] = (M) => l.value.timeFormatter = M),
416
+ "onUpdate:modelValue": t[4] || (t[4] = (R) => l.value.timeFormatter = R),
417
417
  placeholder: a(r)("report.section.dimension.timeFormatter"),
418
418
  label: a(r)("report.section.dimension.timeFormatter"),
419
- items: w.value.timeFormatters.map((M) => ({ label: M, value: M }))
420
- }, null, 8, ["modelValue", "placeholder", "label", "items"])) : x("", !0),
421
- N.value ? (y(), k(P, {
419
+ items: x.value.timeFormatters.map((R) => ({ label: R, value: R }))
420
+ }, null, 8, ["modelValue", "placeholder", "label", "items"])) : k("", !0),
421
+ U.value ? (F(), C(O, {
422
422
  key: 3,
423
423
  "model-value": l.value.fillGap ?? !1,
424
424
  label: a(r)("report.section.dimension.fillGap"),
425
425
  value: "",
426
426
  placeholder: "Fill gap",
427
- "onUpdate:modelValue": t[5] || (t[5] = (M) => {
428
- l.value && (l.value.fillGap = M);
427
+ "onUpdate:modelValue": t[5] || (t[5] = (R) => {
428
+ l.value && (l.value.fillGap = R);
429
429
  })
430
- }, null, 8, ["model-value", "label"])) : x("", !0),
431
- ((Te = w.value) == null ? void 0 : Te.type) === a(ie).Timestamp ? (y(), k(P, {
430
+ }, null, 8, ["model-value", "label"])) : k("", !0),
431
+ ((Te = x.value) == null ? void 0 : Te.type) === a(se).Timestamp ? (F(), C(O, {
432
432
  key: 4,
433
433
  "model-value": l.value.dateComparison ?? !1,
434
434
  label: a(r)("report.section.dimension.dateComparison"),
435
435
  value: "",
436
- "onUpdate:modelValue": t[6] || (t[6] = (M) => {
437
- l.value && (l.value.dateComparison = M);
436
+ "onUpdate:modelValue": t[6] || (t[6] = (R) => {
437
+ l.value && (l.value.dateComparison = R);
438
438
  })
439
- }, null, 8, ["model-value", "label"])) : x("", !0),
440
- d(P, {
439
+ }, null, 8, ["model-value", "label"])) : k("", !0),
440
+ d(O, {
441
441
  modelValue: l.value.hide,
442
- "onUpdate:modelValue": t[7] || (t[7] = (M) => l.value.hide = M),
442
+ "onUpdate:modelValue": t[7] || (t[7] = (R) => l.value.hide = R),
443
443
  label: a(r)("report.section.dimension.hide"),
444
444
  value: ""
445
445
  }, null, 8, ["modelValue", "label"]),
446
- c.hasRowColumn ? (y(), k(P, {
446
+ c.hasRowColumn ? (F(), C(O, {
447
447
  key: 5,
448
448
  modelValue: l.value.moveToColumn,
449
- "onUpdate:modelValue": t[8] || (t[8] = (M) => l.value.moveToColumn = M),
449
+ "onUpdate:modelValue": t[8] || (t[8] = (R) => l.value.moveToColumn = R),
450
450
  label: a(r)("report.section.dimension.moveToColumn"),
451
451
  value: ""
452
- }, null, 8, ["modelValue", "label"])) : x("", !0),
453
- d(P, {
452
+ }, null, 8, ["modelValue", "label"])) : k("", !0),
453
+ d(O, {
454
454
  modelValue: v.value,
455
- "onUpdate:modelValue": t[9] || (t[9] = (M) => v.value = M),
455
+ "onUpdate:modelValue": t[9] || (t[9] = (R) => v.value = R),
456
456
  label: a(r)("report.section.dimension.advance"),
457
457
  value: !0
458
458
  }, null, 8, ["modelValue", "label"]),
459
- v.value ? (y(), k(J, {
459
+ v.value ? (F(), C(P, {
460
460
  key: 6,
461
461
  modelValue: l.value.dataFormula,
462
- "onUpdate:modelValue": t[10] || (t[10] = (M) => l.value.dataFormula = M),
462
+ "onUpdate:modelValue": t[10] || (t[10] = (R) => l.value.dataFormula = R),
463
463
  placeholder: a(r)("report.section.dimension.dataFormula")
464
- }, null, 8, ["modelValue", "placeholder"])) : x("", !0),
465
- v.value ? (y(), k(J, {
464
+ }, null, 8, ["modelValue", "placeholder"])) : k("", !0),
465
+ v.value ? (F(), C(P, {
466
466
  key: 7,
467
467
  modelValue: l.value.displayFormula,
468
- "onUpdate:modelValue": t[11] || (t[11] = (M) => l.value.displayFormula = M),
468
+ "onUpdate:modelValue": t[11] || (t[11] = (R) => l.value.displayFormula = R),
469
469
  placeholder: a(r)("report.section.dimension.displayFormula")
470
- }, null, 8, ["modelValue", "placeholder"])) : x("", !0)
471
- ], 64)) : x("", !0)
470
+ }, null, 8, ["modelValue", "placeholder"])) : k("", !0)
471
+ ], 64)) : k("", !0)
472
472
  ];
473
473
  }),
474
474
  _: 1
@@ -476,11 +476,11 @@ const _e = [
476
476
  ]),
477
477
  _: 1
478
478
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
479
- C("div", null, [
480
- C("p", nl, I(u.value), 1),
481
- C("p", ul, I(a(r)("report.section.dimension.description")), 1)
479
+ _("div", null, [
480
+ _("p", nl, I(i.value), 1),
481
+ _("p", ul, I(a(r)("report.section.dimension.description")), 1)
482
482
  ]),
483
- d(G, null, {
483
+ d(X, null, {
484
484
  default: S(() => [
485
485
  d(a(be), {
486
486
  list: p.value,
@@ -490,17 +490,17 @@ const _e = [
490
490
  item: S(({ element: L, index: ee }) => [
491
491
  d(K, {
492
492
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
493
- onClick: te((oe) => f(g.value[ee]), ["stop"])
493
+ onClick: te((oe) => f(y.value[ee]), ["stop"])
494
494
  }, {
495
495
  default: S(() => [
496
- d(A, { name: "drag_handle" }),
497
- C("p", il, I(a(Q)(a(r), a(e), L.label, "other")), 1),
498
- t[14] || (t[14] = C("div", { class: "grow" }, null, -1)),
499
- d(z, {
496
+ d(q, { name: "drag_handle" }),
497
+ _("p", il, I(a(Q)(a(r), a(e), L.label, "other")), 1),
498
+ t[14] || (t[14] = _("div", { class: "grow" }, null, -1)),
499
+ d(Y, {
500
500
  icon: "close",
501
501
  size: "md",
502
502
  variant: "tertiary",
503
- onClick: te((oe) => U(ee), ["stop"])
503
+ onClick: te((oe) => w(ee), ["stop"])
504
504
  }, null, 8, ["onClick"])
505
505
  ]),
506
506
  _: 2
@@ -511,18 +511,18 @@ const _e = [
511
511
  ]),
512
512
  _: 1
513
513
  }),
514
- d(_, {
514
+ d(T, {
515
515
  class: "text-fm-color-typo-tertiary",
516
516
  onClick: t[13] || (t[13] = () => {
517
517
  f();
518
518
  })
519
519
  }, {
520
520
  default: S(() => [
521
- se(I(a(r)("report.section.dimension.add")), 1)
521
+ re(I(a(r)("report.section.dimension.add")), 1)
522
522
  ]),
523
523
  _: 1
524
524
  })
525
- ])) : x("", !0);
525
+ ])) : k("", !0);
526
526
  };
527
527
  }
528
528
  }), Ve = {
@@ -530,11 +530,11 @@ const _e = [
530
530
  };
531
531
  function sl(m, r, e) {
532
532
  switch (m) {
533
- case D.BarChart:
534
- case D.StackBarChart:
535
- case D.LineChart:
536
- case D.StackLineChart:
537
- case D.Circular:
533
+ case M.BarChart:
534
+ case M.StackBarChart:
535
+ case M.LineChart:
536
+ case M.StackLineChart:
537
+ case M.Circular:
538
538
  return r.length > 1;
539
539
  default:
540
540
  return e;
@@ -557,11 +557,11 @@ function rl(m) {
557
557
  m.widget.config.isDrillable
558
558
  ),
559
559
  joinDatasources: (p = m.widget.config.joinDatasources) == null ? void 0 : p.map((c) => {
560
- const { rowIds: i, columnIds: g } = we(c);
560
+ const { rowIds: n, columnIds: y } = we(c);
561
561
  return {
562
562
  ...c,
563
- rowIds: i,
564
- columnIds: g
563
+ rowIds: n,
564
+ columnIds: y
565
565
  };
566
566
  })
567
567
  }
@@ -569,21 +569,21 @@ function rl(m) {
569
569
  };
570
570
  }
571
571
  function we(m) {
572
- const r = m.dimensions.filter((g) => g.hide !== !0 && !g.moveToColumn).map((g) => fe(g)), e = m.dimensions.filter((g) => g.hide !== !0 && g.moveToColumn == !0).map((g) => fe(g)), p = m.metrics.length > 0;
573
- p && m.metrics.find((g) => g.moveToRow == !0) ? r.push(Ve.value) : p && e.push(Ve.value);
574
- const c = [], i = [];
575
- for (const g of r)
576
- c.push(g);
577
- for (const g of e)
578
- i.push(g);
572
+ const r = m.dimensions.filter((y) => y.hide !== !0 && !y.moveToColumn).map((y) => fe(y)), e = m.dimensions.filter((y) => y.hide !== !0 && y.moveToColumn == !0).map((y) => fe(y)), p = m.metrics.length > 0;
573
+ p && m.metrics.find((y) => y.moveToRow == !0) ? r.push(Ve.value) : p && e.push(Ve.value);
574
+ const c = [], n = [];
575
+ for (const y of r)
576
+ c.push(y);
577
+ for (const y of e)
578
+ n.push(y);
579
579
  return {
580
580
  rowIds: c,
581
- columnIds: i
581
+ columnIds: n
582
582
  };
583
583
  }
584
- const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body-lg-600" }, cl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, pl = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, vl = /* @__PURE__ */ q({
584
+ const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body-lg-600" }, cl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, pl = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, vl = /* @__PURE__ */ E({
585
585
  __name: "MetricSection",
586
- props: /* @__PURE__ */ X({
586
+ props: /* @__PURE__ */ W({
587
587
  options: {
588
588
  type: Array,
589
589
  default: () => []
@@ -609,50 +609,50 @@ const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body
609
609
  modelValue: { required: !1, default: [] },
610
610
  modelModifiers: {}
611
611
  }),
612
- emits: /* @__PURE__ */ X(["config"], ["update:modelValue"]),
612
+ emits: /* @__PURE__ */ W(["config"], ["update:modelValue"]),
613
613
  setup(m, { emit: r }) {
614
- const { t: e, te: p } = Z(), c = le(m, "modelValue"), i = m;
615
- T(() => !!i.max && c.value.length === i.max);
616
- const g = E(!1), b = T(
614
+ const { t: e, te: p } = Z(), c = le(m, "modelValue"), n = m;
615
+ N(() => !!n.max && c.value.length === n.max);
616
+ const y = A(!1), b = N(
617
617
  () => c.value.map((t, s) => ({
618
618
  index: s,
619
619
  labels: [t.label || t.name],
620
620
  value: t
621
621
  }))
622
- ), f = E(c.value.length > 0 ? 0 : void 0);
622
+ ), f = A(c.value.length > 0 ? 0 : void 0);
623
623
  function l(t) {
624
- var s, O, P;
625
- g.value = !0, v.value = t != null && t.value ? JSON.parse(
624
+ var s, $, O;
625
+ y.value = !0, v.value = t != null && t.value ? JSON.parse(
626
626
  JSON.stringify({
627
627
  ...t.value,
628
628
  label: Q(e, p, t.value.label, "other")
629
629
  })
630
- ) : void 0, f.value = t == null ? void 0 : t.index, w.value = !!((s = v.value) != null && s.dataFormula || (O = v.value) != null && O.displayFormula), ((P = i.config.rowIds) == null ? void 0 : P.findIndex((J) => J === Ve.value)) !== -1 && v.value && (v.value.moveToRow = !0);
630
+ ) : void 0, f.value = t == null ? void 0 : t.index, x.value = !!((s = v.value) != null && s.dataFormula || ($ = v.value) != null && $.displayFormula), ((O = n.config.rowIds) == null ? void 0 : O.findIndex((P) => P === Ve.value)) !== -1 && v.value && (v.value.moveToRow = !0);
631
631
  }
632
- const v = E(void 0), w = E(!1), N = T(
633
- () => i.options.find(
632
+ const v = A(void 0), x = A(!1), U = N(
633
+ () => n.options.find(
634
634
  (t) => {
635
- var s, O;
636
- return t.schemaName === ((s = v.value) == null ? void 0 : s.schemaName) && t.name === ((O = v.value) == null ? void 0 : O.name);
635
+ var s, $;
636
+ return t.schemaName === ((s = v.value) == null ? void 0 : s.schemaName) && t.name === (($ = v.value) == null ? void 0 : $.name);
637
637
  }
638
638
  ) ?? {}
639
639
  );
640
640
  function V(t, s) {
641
- var O;
642
- return (t == null ? void 0 : t.isNumericType) || ((O = t == null ? void 0 : t.isNumericAggregations) == null ? void 0 : O.includes(s || ""));
641
+ var $;
642
+ return (t == null ? void 0 : t.isNumericType) || (($ = t == null ? void 0 : t.isNumericAggregations) == null ? void 0 : $.includes(s || ""));
643
643
  }
644
- const B = T(
644
+ const B = N(
645
645
  () => {
646
646
  var t;
647
- return V(N.value, (t = v.value) == null ? void 0 : t.aggregation);
647
+ return V(U.value, (t = v.value) == null ? void 0 : t.aggregation);
648
648
  }
649
649
  );
650
- ce(B, (t) => {
650
+ ue(B, (t) => {
651
651
  v.value && (t ? v.value.decimal = typeof v.value.decimal != "number" ? 2 : v.value.decimal : v.value.decimal = void 0);
652
652
  });
653
- function U(t) {
654
- var s, O;
655
- (t.schemaName !== ((s = v.value) == null ? void 0 : s.schemaName) || t.name !== ((O = v.value) == null ? void 0 : O.name)) && (v.value = {
653
+ function w(t) {
654
+ var s, $;
655
+ (t.schemaName !== ((s = v.value) == null ? void 0 : s.schemaName) || t.name !== (($ = v.value) == null ? void 0 : $.name)) && (v.value = {
656
656
  schemaName: t.schemaName,
657
657
  name: t.name,
658
658
  aggregation: t.aggregations[0],
@@ -660,112 +660,112 @@ const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body
660
660
  decimal: V(t, t.aggregations[0]) ? 2 : void 0,
661
661
  moveToRow: !1,
662
662
  hide: !1
663
- }, w.value = !1);
663
+ }, x.value = !1);
664
664
  }
665
- function F() {
665
+ function g() {
666
666
  const t = [...b.value.map((s) => s.value)];
667
- v.value && (f.value !== void 0 ? t[f.value] = v.value : t.push(v.value)), c.value = t, g.value = !1;
667
+ v.value && (f.value !== void 0 ? t[f.value] = v.value : t.push(v.value)), c.value = t, y.value = !1;
668
668
  }
669
669
  function o(t) {
670
- const s = [...b.value.map((O) => O.value)];
670
+ const s = [...b.value.map(($) => $.value)];
671
671
  s.splice(t, 1), c.value = s;
672
672
  }
673
- const u = T(
674
- () => i.options.map((t) => ({
673
+ const i = N(
674
+ () => n.options.map((t) => ({
675
675
  label: t.labels.join(" "),
676
676
  value: t
677
677
  }))
678
- ), n = T(
679
- () => i.label ? i.label : e(`report.section.metric.${i.label}`)
678
+ ), u = N(
679
+ () => n.label ? n.label : e(`report.section.metric.${n.label}`)
680
680
  );
681
681
  return (t, s) => {
682
- const O = h("FmTextField"), P = h("FmStepperField"), J = h("FmCheckbox"), R = h("FmTextarea"), A = h("FmForm"), z = h("FmIcon"), K = h("FmButton"), G = h("FmListItem"), _ = h("FmList"), L = h("FmField");
683
- return y(), $("div", ml, [
684
- d(re, {
685
- modelValue: g.value,
686
- "onUpdate:modelValue": s[10] || (s[10] = (ee) => g.value = ee),
687
- title: n.value,
688
- onConfirm: F
682
+ const $ = h("FmTextField"), O = h("FmStepperField"), P = h("FmCheckbox"), z = h("FmTextarea"), q = h("FmForm"), Y = h("FmIcon"), K = h("FmButton"), X = h("FmListItem"), T = h("FmList"), L = h("FmField");
683
+ return F(), D("div", ml, [
684
+ d(me, {
685
+ modelValue: y.value,
686
+ "onUpdate:modelValue": s[10] || (s[10] = (ee) => y.value = ee),
687
+ title: u.value,
688
+ onConfirm: g
689
689
  }, {
690
690
  content: S(() => [
691
- d(A, {
691
+ d(q, {
692
692
  ref: "form",
693
693
  class: "flex flex-col gap-2 w-[490px]"
694
694
  }, {
695
695
  default: S(() => {
696
- var ee, oe, W;
696
+ var ee, oe, J;
697
697
  return [
698
- d(Y, {
699
- "model-value": N.value,
700
- items: u.value,
701
- placeholder: n.value,
702
- label: n.value,
703
- "onUpdate:modelValue": s[0] || (s[0] = (j) => U(j))
698
+ d(G, {
699
+ "model-value": U.value,
700
+ items: i.value,
701
+ placeholder: u.value,
702
+ label: u.value,
703
+ "onUpdate:modelValue": s[0] || (s[0] = (j) => w(j))
704
704
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
705
- v.value ? (y(), $(H, { key: 0 }, [
706
- d(O, {
705
+ v.value ? (F(), D(H, { key: 0 }, [
706
+ d($, {
707
707
  modelValue: v.value.label,
708
708
  "onUpdate:modelValue": s[1] || (s[1] = (j) => v.value.label = j),
709
709
  label: a(e)("report.section.metric.label")
710
710
  }, null, 8, ["modelValue", "label"]),
711
- (((ee = N.value) == null ? void 0 : ee.aggregations) || []).length > 0 ? (y(), k(Y, {
711
+ (((ee = U.value) == null ? void 0 : ee.aggregations) || []).length > 0 ? (F(), C(G, {
712
712
  key: 0,
713
713
  modelValue: v.value.aggregation,
714
714
  "onUpdate:modelValue": s[2] || (s[2] = (j) => v.value.aggregation = j),
715
715
  label: a(e)("report.section.metric.aggregation"),
716
- items: ((oe = N.value) == null ? void 0 : oe.aggregations.map((j) => ({
716
+ items: ((oe = U.value) == null ? void 0 : oe.aggregations.map((j) => ({
717
717
  label: a(Q)(a(e), a(p), j, "field"),
718
718
  value: j
719
719
  }))) ?? []
720
- }, null, 8, ["modelValue", "label", "items"])) : x("", !0),
721
- B.value ? (y(), k(P, {
720
+ }, null, 8, ["modelValue", "label", "items"])) : k("", !0),
721
+ B.value ? (F(), C(O, {
722
722
  key: 1,
723
723
  label: a(e)("report.common.decimal"),
724
- "model-value": ((W = v.value) == null ? void 0 : W.decimal) ?? 2,
724
+ "model-value": ((J = v.value) == null ? void 0 : J.decimal) ?? 2,
725
725
  "onUpdate:modelValue": s[3] || (s[3] = (j) => {
726
726
  v.value && (v.value.decimal = j);
727
727
  })
728
- }, null, 8, ["label", "model-value"])) : x("", !0),
729
- B.value ? (y(), k(Y, {
728
+ }, null, 8, ["label", "model-value"])) : k("", !0),
729
+ B.value ? (F(), C(G, {
730
730
  key: 2,
731
731
  modelValue: v.value.timeFormatter,
732
732
  "onUpdate:modelValue": s[4] || (s[4] = (j) => v.value.timeFormatter = j),
733
733
  placeholder: a(e)("report.section.metric.timeFormatter"),
734
734
  label: a(e)("report.section.metric.timeFormatter"),
735
- items: N.value.timeFormatters.map((j) => ({ label: j, value: j }))
736
- }, null, 8, ["modelValue", "placeholder", "label", "items"])) : x("", !0),
737
- d(J, {
735
+ items: U.value.timeFormatters.map((j) => ({ label: j, value: j }))
736
+ }, null, 8, ["modelValue", "placeholder", "label", "items"])) : k("", !0),
737
+ d(P, {
738
738
  modelValue: v.value.hide,
739
739
  "onUpdate:modelValue": s[5] || (s[5] = (j) => v.value.hide = j),
740
740
  label: a(e)("report.section.metric.hide"),
741
741
  value: ""
742
742
  }, null, 8, ["modelValue", "label"]),
743
- i.hasRowColumn ? (y(), k(J, {
743
+ n.hasRowColumn ? (F(), C(P, {
744
744
  key: 3,
745
745
  modelValue: v.value.moveToRow,
746
746
  "onUpdate:modelValue": s[6] || (s[6] = (j) => v.value.moveToRow = j),
747
747
  label: a(e)("report.section.metric.moveToRow"),
748
748
  value: ""
749
- }, null, 8, ["modelValue", "label"])) : x("", !0),
750
- d(J, {
751
- modelValue: w.value,
752
- "onUpdate:modelValue": s[7] || (s[7] = (j) => w.value = j),
749
+ }, null, 8, ["modelValue", "label"])) : k("", !0),
750
+ d(P, {
751
+ modelValue: x.value,
752
+ "onUpdate:modelValue": s[7] || (s[7] = (j) => x.value = j),
753
753
  label: a(e)("report.section.metric.advance"),
754
754
  value: !0
755
755
  }, null, 8, ["modelValue", "label"]),
756
- w.value ? (y(), k(R, {
756
+ x.value ? (F(), C(z, {
757
757
  key: 4,
758
758
  modelValue: v.value.dataFormula,
759
759
  "onUpdate:modelValue": s[8] || (s[8] = (j) => v.value.dataFormula = j),
760
760
  placeholder: a(e)("report.section.metric.dataFormula")
761
- }, null, 8, ["modelValue", "placeholder"])) : x("", !0),
762
- w.value ? (y(), k(R, {
761
+ }, null, 8, ["modelValue", "placeholder"])) : k("", !0),
762
+ x.value ? (F(), C(z, {
763
763
  key: 5,
764
764
  modelValue: v.value.displayFormula,
765
765
  "onUpdate:modelValue": s[9] || (s[9] = (j) => v.value.displayFormula = j),
766
766
  placeholder: a(e)("report.section.metric.displayFormula")
767
- }, null, 8, ["modelValue", "placeholder"])) : x("", !0)
768
- ], 64)) : x("", !0)
767
+ }, null, 8, ["modelValue", "placeholder"])) : k("", !0)
768
+ ], 64)) : k("", !0)
769
769
  ];
770
770
  }),
771
771
  _: 1
@@ -773,11 +773,11 @@ const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body
773
773
  ]),
774
774
  _: 1
775
775
  }, 8, ["modelValue", "title"]),
776
- C("div", null, [
777
- C("p", dl, I(n.value), 1),
778
- C("p", cl, I(a(e)("report.section.metric.description")), 1)
776
+ _("div", null, [
777
+ _("p", dl, I(u.value), 1),
778
+ _("p", cl, I(a(e)("report.section.metric.description")), 1)
779
779
  ]),
780
- d(_, null, {
780
+ d(T, null, {
781
781
  default: S(() => [
782
782
  d(a(be), {
783
783
  list: c.value,
@@ -785,19 +785,19 @@ const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body
785
785
  class: "flex flex-col gap-2 w-full"
786
786
  }, {
787
787
  item: S(({ element: ee, index: oe }) => [
788
- d(G, {
788
+ d(X, {
789
789
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
790
- onClick: te((W) => l(b.value[oe]), ["stop"])
790
+ onClick: te((J) => l(b.value[oe]), ["stop"])
791
791
  }, {
792
792
  default: S(() => [
793
- d(z, { name: "drag_handle" }),
794
- C("p", pl, I(a(Q)(a(e), a(p), ee.label, "other")), 1),
795
- s[12] || (s[12] = C("div", { class: "grow" }, null, -1)),
793
+ d(Y, { name: "drag_handle" }),
794
+ _("p", pl, I(a(Q)(a(e), a(p), ee.label, "other")), 1),
795
+ s[12] || (s[12] = _("div", { class: "grow" }, null, -1)),
796
796
  d(K, {
797
797
  icon: "close",
798
798
  size: "md",
799
799
  variant: "tertiary",
800
- onClick: te((W) => o(oe), ["stop"])
800
+ onClick: te((J) => o(oe), ["stop"])
801
801
  }, null, 8, ["onClick"])
802
802
  ]),
803
803
  _: 2
@@ -815,7 +815,7 @@ const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body
815
815
  })
816
816
  }, {
817
817
  default: S(() => [
818
- se(I(a(e)("report.section.metric.add")), 1)
818
+ re(I(a(e)("report.section.metric.add")), 1)
819
819
  ]),
820
820
  _: 1
821
821
  })
@@ -823,7 +823,7 @@ const ml = { class: "flex flex-col my-2 gap-8" }, dl = { class: "fm-typo-en-body
823
823
  };
824
824
  }
825
825
  });
826
- var me = /* @__PURE__ */ ((m) => (m.Select = "Select", m.TextField = "TextField", m.Timestamp = "Timestamp", m))(me || {});
826
+ var de = /* @__PURE__ */ ((m) => (m.Select = "Select", m.TextField = "TextField", m.Timestamp = "Timestamp", m))(de || {});
827
827
  function fl(m) {
828
828
  let r = !1, e = 1;
829
829
  switch (m) {
@@ -855,7 +855,7 @@ function bl({
855
855
  }) {
856
856
  const { fixed: p, count: c } = fl(m);
857
857
  switch (e) {
858
- case ie.String:
858
+ case se.String:
859
859
  return {
860
860
  type: "TextField",
861
861
  fixed: p,
@@ -863,7 +863,7 @@ function bl({
863
863
  dataType: void 0,
864
864
  default: ""
865
865
  };
866
- case ie.Numeric:
866
+ case se.Numeric:
867
867
  return {
868
868
  type: "TextField",
869
869
  fixed: p,
@@ -871,7 +871,7 @@ function bl({
871
871
  dataType: "number",
872
872
  default: 0
873
873
  };
874
- case ie.Bool:
874
+ case se.Bool:
875
875
  return {
876
876
  type: "Select",
877
877
  fixed: p,
@@ -882,12 +882,12 @@ function bl({
882
882
  ],
883
883
  default: !0
884
884
  };
885
- case ie.Timestamp:
885
+ case se.Timestamp:
886
886
  switch (r) {
887
- case ue.HourOfDay:
888
- case ue.DayOfWeek:
889
- case ue.DayOfMonth:
890
- case ue.MonthOfYear:
887
+ case ie.HourOfDay:
888
+ case ie.DayOfWeek:
889
+ case ie.DayOfMonth:
890
+ case ie.MonthOfYear:
891
891
  return {
892
892
  type: "TextField",
893
893
  fixed: p,
@@ -895,7 +895,7 @@ function bl({
895
895
  dataType: "number",
896
896
  default: "0"
897
897
  };
898
- case ue.TimeOfDay:
898
+ case ie.TimeOfDay:
899
899
  return {
900
900
  type: "Timestamp",
901
901
  fixed: p,
@@ -915,9 +915,9 @@ function bl({
915
915
  const gl = { class: "grow" }, yl = {
916
916
  key: 2,
917
917
  class: "w-full"
918
- }, Fl = { key: 0 }, hl = /* @__PURE__ */ q({
918
+ }, Fl = { key: 0 }, hl = /* @__PURE__ */ E({
919
919
  __name: "FilterValueInput",
920
- props: /* @__PURE__ */ X({
920
+ props: /* @__PURE__ */ W({
921
921
  config: {
922
922
  type: Object,
923
923
  default: () => {
@@ -936,15 +936,15 @@ const gl = { class: "grow" }, yl = {
936
936
  function c({ hour: b, minute: f }) {
937
937
  return ge().set("hour", b).set("minute", f).toISOString();
938
938
  }
939
- function i(b, f) {
939
+ function n(b, f) {
940
940
  var v;
941
941
  const l = [...r.value];
942
- ((v = e.config) == null ? void 0 : v.type) === me.Timestamp ? l[b] = c({
942
+ ((v = e.config) == null ? void 0 : v.type) === de.Timestamp ? l[b] = c({
943
943
  hour: Number(f.split(":")[0]),
944
944
  minute: Number(f.split(":")[1])
945
945
  }) : l[b] = f, r.value = l;
946
946
  }
947
- function g(b) {
947
+ function y(b) {
948
948
  if (b === 0)
949
949
  r.value = [void 0, ...r.value];
950
950
  else {
@@ -953,43 +953,43 @@ const gl = { class: "grow" }, yl = {
953
953
  }
954
954
  }
955
955
  return (b, f) => {
956
- const l = h("FmSelect"), v = h("FmTextField"), w = h("FmTimePicker"), N = h("FmButton");
957
- return y(!0), $(H, null, de(new Array(r.value.length !== 0 ? r.value.length : 1), (V, B) => {
958
- var U, F, o, u;
959
- return y(), $("div", {
956
+ const l = h("FmSelect"), v = h("FmTextField"), x = h("FmTimePicker"), U = h("FmButton");
957
+ return F(!0), D(H, null, ce(new Array(r.value.length !== 0 ? r.value.length : 1), (V, B) => {
958
+ var w, g, o, i;
959
+ return F(), D("div", {
960
960
  key: B,
961
961
  class: "flex flex-row align-center gap-2 w-full"
962
962
  }, [
963
- C("div", gl, [
964
- ((U = e.config) == null ? void 0 : U.type) === a(me).Select ? (y(), k(l, {
963
+ _("div", gl, [
964
+ ((w = e.config) == null ? void 0 : w.type) === a(de).Select ? (F(), C(l, {
965
965
  key: 0,
966
966
  "model-value": r.value[B],
967
967
  items: e.config.options,
968
- "onUpdate:modelValue": (n) => i(B, n)
969
- }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((F = e.config) == null ? void 0 : F.type) === a(me).TextField ? (y(), k(v, {
968
+ "onUpdate:modelValue": (u) => n(B, u)
969
+ }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((g = e.config) == null ? void 0 : g.type) === a(de).TextField ? (F(), C(v, {
970
970
  key: 1,
971
971
  "model-value": r.value[B],
972
- "onUpdate:modelValue": (n) => i(B, n)
973
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : ((o = e.config) == null ? void 0 : o.type) === a(me).Timestamp ? (y(), $("div", yl, [
974
- d(w, {
972
+ "onUpdate:modelValue": (u) => n(B, u)
973
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : ((o = e.config) == null ? void 0 : o.type) === a(de).Timestamp ? (F(), D("div", yl, [
974
+ d(x, {
975
975
  "model-value": p(r.value[B]),
976
- "onUpdate:modelValue": (n) => i(B, n)
976
+ "onUpdate:modelValue": (u) => n(B, u)
977
977
  }, null, 8, ["model-value", "onUpdate:modelValue"])
978
- ])) : x("", !0)
978
+ ])) : k("", !0)
979
979
  ]),
980
- ((u = e.config) == null ? void 0 : u.fixed) === !1 ? (y(), $("div", Fl, [
981
- d(N, {
980
+ ((i = e.config) == null ? void 0 : i.fixed) === !1 ? (F(), D("div", Fl, [
981
+ d(U, {
982
982
  icon: B === 0 ? "add" : "remove",
983
- onClick: (n) => g(B)
983
+ onClick: (u) => y(B)
984
984
  }, null, 8, ["icon", "onClick"])
985
- ])) : x("", !0)
985
+ ])) : k("", !0)
986
986
  ]);
987
987
  }), 128);
988
988
  };
989
989
  }
990
- }), Vl = { class: "flex flex-col my-2 gap-8" }, wl = { class: "fm-typo-en-body-lg-600" }, xl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, kl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Cl = /* @__PURE__ */ q({
990
+ }), Vl = { class: "flex flex-col my-2 gap-8" }, wl = { class: "fm-typo-en-body-lg-600" }, xl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, kl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Cl = /* @__PURE__ */ E({
991
991
  __name: "FilterSection",
992
- props: /* @__PURE__ */ X({
992
+ props: /* @__PURE__ */ W({
993
993
  options: {
994
994
  type: Array,
995
995
  default: () => []
@@ -1004,38 +1004,38 @@ const gl = { class: "grow" }, yl = {
1004
1004
  }),
1005
1005
  emits: ["update:modelValue"],
1006
1006
  setup(m) {
1007
- const { t: r } = Z(), e = le(m, "modelValue"), p = m, c = T(() => r(`report.section.filter.${p.label}`)), i = E(!1), g = T(
1008
- () => e.value.map((u, n) => {
1007
+ const { t: r } = Z(), e = le(m, "modelValue"), p = m, c = N(() => r(`report.section.filter.${p.label}`)), n = A(!1), y = N(
1008
+ () => e.value.map((i, u) => {
1009
1009
  const t = p.options.find(
1010
- (s) => s.schemaName === u.schemaName && s.name === u.name
1010
+ (s) => s.schemaName === i.schemaName && s.name === i.name
1011
1011
  );
1012
1012
  return {
1013
- index: n,
1014
- labels: (t == null ? void 0 : t.labels) || [u.schemaName, u.name],
1015
- value: u
1013
+ index: u,
1014
+ labels: (t == null ? void 0 : t.labels) || [i.schemaName, i.name],
1015
+ value: i
1016
1016
  };
1017
1017
  })
1018
- ), b = E(e.value.length > 0 ? 0 : void 0);
1019
- function f(u) {
1020
- var n;
1021
- i.value = !0, l.value = u != null && u.value ? JSON.parse(JSON.stringify(u.value)) : void 0, b.value = u == null ? void 0 : u.index, v.value = !!((n = l.value) != null && n.dataFormula), V();
1018
+ ), b = A(e.value.length > 0 ? 0 : void 0);
1019
+ function f(i) {
1020
+ var u;
1021
+ n.value = !0, l.value = i != null && i.value ? JSON.parse(JSON.stringify(i.value)) : void 0, b.value = i == null ? void 0 : i.index, v.value = !!((u = l.value) != null && u.dataFormula), V();
1022
1022
  }
1023
- const l = E(void 0), v = E(!1), w = E(void 0), N = T(
1023
+ const l = A(void 0), v = A(!1), x = A(void 0), U = N(
1024
1024
  () => p.options.find(
1025
- (u) => {
1026
- var n, t;
1027
- return u.schemaName === ((n = l.value) == null ? void 0 : n.schemaName) && u.name === ((t = l.value) == null ? void 0 : t.name);
1025
+ (i) => {
1026
+ var u, t;
1027
+ return i.schemaName === ((u = l.value) == null ? void 0 : u.schemaName) && i.name === ((t = l.value) == null ? void 0 : t.name);
1028
1028
  }
1029
1029
  ) ?? {}
1030
1030
  );
1031
- ce(
1031
+ ue(
1032
1032
  () => {
1033
- var u;
1034
- return (u = l.value) == null ? void 0 : u.option;
1033
+ var i;
1034
+ return (i = l.value) == null ? void 0 : i.option;
1035
1035
  },
1036
- (u, n) => {
1037
- if (n !== void 0 && u !== n && l.value) {
1038
- if (V(), !w.value)
1036
+ (i, u) => {
1037
+ if (u !== void 0 && i !== u && l.value) {
1038
+ if (V(), !x.value)
1039
1039
  return;
1040
1040
  l.value = {
1041
1041
  ...l.value,
@@ -1043,30 +1043,30 @@ const gl = { class: "grow" }, yl = {
1043
1043
  // only overwrite the value when it empty
1044
1044
  l.value.values.map((t) => {
1045
1045
  var s;
1046
- return t === null ? (s = w.value) == null ? void 0 : s.default : t;
1046
+ return t === null ? (s = x.value) == null ? void 0 : s.default : t;
1047
1047
  })
1048
1048
  )
1049
1049
  };
1050
1050
  }
1051
1051
  }
1052
- ), ce(
1052
+ ), ue(
1053
1053
  () => {
1054
- var u;
1055
- return (u = l.value) == null ? void 0 : u.operator;
1054
+ var i;
1055
+ return (i = l.value) == null ? void 0 : i.operator;
1056
1056
  },
1057
- (u, n) => {
1058
- if (u !== n && N.value && l.value) {
1059
- if (V(), !w.value)
1057
+ (i, u) => {
1058
+ if (i !== u && U.value && l.value) {
1059
+ if (V(), !x.value)
1060
1060
  return;
1061
- const t = l.value.values.length - w.value.count;
1062
- t > 0 && w.value.fixed ? l.value = {
1061
+ const t = l.value.values.length - x.value.count;
1062
+ t > 0 && x.value.fixed ? l.value = {
1063
1063
  ...l.value,
1064
- values: l.value.values.slice(0, w.value.count)
1064
+ values: l.value.values.slice(0, x.value.count)
1065
1065
  } : t < 0 && (l.value = {
1066
1066
  ...l.value,
1067
1067
  values: [
1068
1068
  ...l.value.values,
1069
- ...Array(Math.abs(t)).fill(w.value.default)
1069
+ ...Array(Math.abs(t)).fill(x.value.default)
1070
1070
  ]
1071
1071
  });
1072
1072
  }
@@ -1076,96 +1076,96 @@ const gl = { class: "grow" }, yl = {
1076
1076
  }
1077
1077
  );
1078
1078
  function V() {
1079
- N.value && l.value && (w.value = bl({
1079
+ U.value && l.value && (x.value = bl({
1080
1080
  operator: l.value.operator,
1081
- dataType: N.value.type,
1081
+ dataType: U.value.type,
1082
1082
  dimensionOption: l.value.option
1083
1083
  }));
1084
1084
  }
1085
- function B(u) {
1086
- var n, t, s;
1087
- (u.schemaName !== ((n = l.value) == null ? void 0 : n.schemaName) || u.name !== ((t = l.value) == null ? void 0 : t.name)) && (l.value = {
1088
- schemaName: u.schemaName,
1089
- name: u.name,
1090
- operator: u.filterOperators[0],
1091
- option: u.filterDimensionOptions[0],
1085
+ function B(i) {
1086
+ var u, t, s;
1087
+ (i.schemaName !== ((u = l.value) == null ? void 0 : u.schemaName) || i.name !== ((t = l.value) == null ? void 0 : t.name)) && (l.value = {
1088
+ schemaName: i.schemaName,
1089
+ name: i.name,
1090
+ operator: i.filterOperators[0],
1091
+ option: i.filterDimensionOptions[0],
1092
1092
  values: []
1093
- }, V(), l.value.values = [(s = w.value) == null ? void 0 : s.default]);
1093
+ }, V(), l.value.values = [(s = x.value) == null ? void 0 : s.default]);
1094
1094
  }
1095
- function U() {
1096
- const u = [...g.value.map((n) => n.value)];
1095
+ function w() {
1096
+ const i = [...y.value.map((u) => u.value)];
1097
1097
  l.value && (l.value.values = l.value.values.filter(
1098
- (n) => n !== "" && n !== null
1099
- ), b.value !== void 0 ? u[Number(b.value)] = l.value : u.push(l.value), e.value = u), i.value = !1;
1098
+ (u) => u !== "" && u !== null
1099
+ ), b.value !== void 0 ? i[Number(b.value)] = l.value : i.push(l.value), e.value = i), n.value = !1;
1100
1100
  }
1101
- function F(u) {
1102
- const n = [...g.value.map((t) => t.value)];
1103
- n.splice(u, 1), e.value = n, i.value = !1;
1101
+ function g(i) {
1102
+ const u = [...y.value.map((t) => t.value)];
1103
+ u.splice(i, 1), e.value = u, n.value = !1;
1104
1104
  }
1105
- const o = T(
1106
- () => p.options.map((u) => ({
1107
- label: u.labels.join(" "),
1108
- value: u
1105
+ const o = N(
1106
+ () => p.options.map((i) => ({
1107
+ label: i.labels.join(" "),
1108
+ value: i
1109
1109
  }))
1110
1110
  );
1111
- return (u, n) => {
1112
- const t = h("FmCheckbox"), s = h("FmTextarea"), O = h("FmTextField"), P = h("FmForm"), J = h("FmIcon"), R = h("FmButton"), A = h("FmListItem"), z = h("FmList"), K = h("FmField");
1113
- return y(), $("div", Vl, [
1114
- d(re, {
1115
- modelValue: i.value,
1116
- "onUpdate:modelValue": n[6] || (n[6] = (G) => i.value = G),
1111
+ return (i, u) => {
1112
+ const t = h("FmCheckbox"), s = h("FmTextarea"), $ = h("FmTextField"), O = h("FmForm"), P = h("FmIcon"), z = h("FmButton"), q = h("FmListItem"), Y = h("FmList"), K = h("FmField");
1113
+ return F(), D("div", Vl, [
1114
+ d(me, {
1115
+ modelValue: n.value,
1116
+ "onUpdate:modelValue": u[6] || (u[6] = (X) => n.value = X),
1117
1117
  title: c.value,
1118
1118
  "primary-button-label": a(r)("report.common.confirm"),
1119
1119
  "secondary-button-label": a(r)("report.common.cancel"),
1120
- onConfirm: U
1120
+ onConfirm: w
1121
1121
  }, {
1122
1122
  content: S(() => [
1123
- d(P, {
1123
+ d(O, {
1124
1124
  ref: "form",
1125
1125
  class: "flex flex-col gap-2 w-[490px]"
1126
1126
  }, {
1127
1127
  default: S(() => {
1128
- var G, _;
1128
+ var X, T;
1129
1129
  return [
1130
- d(Y, {
1131
- "model-value": N.value,
1130
+ d(G, {
1131
+ "model-value": U.value,
1132
1132
  items: o.value,
1133
1133
  placeholder: c.value,
1134
1134
  label: c.value,
1135
- "onUpdate:modelValue": n[0] || (n[0] = (L) => B(L))
1135
+ "onUpdate:modelValue": u[0] || (u[0] = (L) => B(L))
1136
1136
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
1137
- l.value ? (y(), $(H, { key: 0 }, [
1137
+ l.value ? (F(), D(H, { key: 0 }, [
1138
1138
  d(t, {
1139
1139
  modelValue: v.value,
1140
- "onUpdate:modelValue": n[1] || (n[1] = (L) => v.value = L),
1140
+ "onUpdate:modelValue": u[1] || (u[1] = (L) => v.value = L),
1141
1141
  label: a(r)("report.section.filter.advance"),
1142
1142
  value: !0
1143
1143
  }, null, 8, ["modelValue", "label"]),
1144
- v.value ? (y(), k(s, {
1144
+ v.value ? (F(), C(s, {
1145
1145
  key: 0,
1146
1146
  modelValue: l.value.dataFormula,
1147
- "onUpdate:modelValue": n[2] || (n[2] = (L) => l.value.dataFormula = L),
1147
+ "onUpdate:modelValue": u[2] || (u[2] = (L) => l.value.dataFormula = L),
1148
1148
  placeholder: a(r)("report.section.filter.dataFormula")
1149
- }, null, 8, ["modelValue", "placeholder"])) : x("", !0),
1150
- d(O, {
1149
+ }, null, 8, ["modelValue", "placeholder"])) : k("", !0),
1150
+ d($, {
1151
1151
  modelValue: l.value.option,
1152
- "onUpdate:modelValue": n[3] || (n[3] = (L) => l.value.option = L),
1152
+ "onUpdate:modelValue": u[3] || (u[3] = (L) => l.value.option = L),
1153
1153
  placeholder: a(r)("report.section.filter.timeFormatter"),
1154
1154
  label: a(r)("report.section.filter.timeFormatter")
1155
1155
  }, null, 8, ["modelValue", "placeholder", "label"]),
1156
- (((G = N.value) == null ? void 0 : G.filterOperators) || []).length > 0 ? (y(), k(Y, {
1156
+ (((X = U.value) == null ? void 0 : X.filterOperators) || []).length > 0 ? (F(), C(G, {
1157
1157
  key: 1,
1158
1158
  modelValue: l.value.operator,
1159
- "onUpdate:modelValue": n[4] || (n[4] = (L) => l.value.operator = L),
1160
- items: ((_ = N.value) == null ? void 0 : _.filterOperators.map((L) => ({ label: L, value: L }))) ?? []
1161
- }, null, 8, ["modelValue", "items"])) : x("", !0),
1162
- w.value ? (y(), k(hl, {
1159
+ "onUpdate:modelValue": u[4] || (u[4] = (L) => l.value.operator = L),
1160
+ items: ((T = U.value) == null ? void 0 : T.filterOperators.map((L) => ({ label: L, value: L }))) ?? []
1161
+ }, null, 8, ["modelValue", "items"])) : k("", !0),
1162
+ x.value ? (F(), C(hl, {
1163
1163
  key: 2,
1164
1164
  modelValue: l.value.values,
1165
- "onUpdate:modelValue": n[5] || (n[5] = (L) => l.value.values = L),
1166
- config: w.value
1167
- }, null, 8, ["modelValue", "config"])) : x("", !0)
1168
- ], 64)) : x("", !0)
1165
+ "onUpdate:modelValue": u[5] || (u[5] = (L) => l.value.values = L),
1166
+ config: x.value
1167
+ }, null, 8, ["modelValue", "config"])) : k("", !0)
1168
+ ], 64)) : k("", !0)
1169
1169
  ];
1170
1170
  }),
1171
1171
  _: 1
@@ -1173,31 +1173,31 @@ const gl = { class: "grow" }, yl = {
1173
1173
  ]),
1174
1174
  _: 1
1175
1175
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
1176
- C("div", null, [
1177
- C("p", wl, I(c.value), 1),
1178
- C("p", xl, I(a(r)("report.section.filter.description")), 1)
1176
+ _("div", null, [
1177
+ _("p", wl, I(c.value), 1),
1178
+ _("p", xl, I(a(r)("report.section.filter.description")), 1)
1179
1179
  ]),
1180
- d(z, null, {
1180
+ d(Y, null, {
1181
1181
  default: S(() => [
1182
1182
  d(a(be), {
1183
1183
  list: e.value,
1184
1184
  "item-key": "id",
1185
1185
  class: "flex flex-col gap-2 w-full"
1186
1186
  }, {
1187
- item: S(({ element: G, index: _ }) => [
1188
- d(A, {
1187
+ item: S(({ element: X, index: T }) => [
1188
+ d(q, {
1189
1189
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1190
- onClick: te((L) => f(g.value[_]), ["stop"])
1190
+ onClick: te((L) => f(y.value[T]), ["stop"])
1191
1191
  }, {
1192
1192
  default: S(() => [
1193
- d(J, { name: "drag_handle" }),
1194
- C("p", kl, I(a(Ce)(G.name)), 1),
1195
- n[8] || (n[8] = C("div", { class: "grow" }, null, -1)),
1196
- d(R, {
1193
+ d(P, { name: "drag_handle" }),
1194
+ _("p", kl, I(a(Ce)(X.name)), 1),
1195
+ u[8] || (u[8] = _("div", { class: "grow" }, null, -1)),
1196
+ d(z, {
1197
1197
  icon: "close",
1198
1198
  size: "md",
1199
1199
  variant: "tertiary",
1200
- onClick: te((L) => F(_), ["stop"])
1200
+ onClick: te((L) => g(T), ["stop"])
1201
1201
  }, null, 8, ["onClick"])
1202
1202
  ]),
1203
1203
  _: 2
@@ -1210,21 +1210,21 @@ const gl = { class: "grow" }, yl = {
1210
1210
  }),
1211
1211
  d(K, {
1212
1212
  class: "text-fm-color-typo-tertiary",
1213
- onClick: n[7] || (n[7] = () => {
1213
+ onClick: u[7] || (u[7] = () => {
1214
1214
  f();
1215
1215
  })
1216
1216
  }, {
1217
1217
  default: S(() => [
1218
- se(I(a(r)("report.section.filter.add")), 1)
1218
+ re(I(a(r)("report.section.filter.add")), 1)
1219
1219
  ]),
1220
1220
  _: 1
1221
1221
  })
1222
1222
  ]);
1223
1223
  };
1224
1224
  }
1225
- }), _l = { class: "flex flex-col my-2 gap-8" }, Tl = { class: "fm-typo-en-body-lg-600" }, Sl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ul = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Nl = /* @__PURE__ */ q({
1225
+ }), _l = { class: "flex flex-col my-2 gap-8" }, Tl = { class: "fm-typo-en-body-lg-600" }, Sl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ul = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Nl = /* @__PURE__ */ E({
1226
1226
  __name: "SortSection",
1227
- props: /* @__PURE__ */ X({
1227
+ props: /* @__PURE__ */ W({
1228
1228
  options: {
1229
1229
  type: Array,
1230
1230
  default: () => []
@@ -1239,38 +1239,38 @@ const gl = { class: "grow" }, yl = {
1239
1239
  }),
1240
1240
  emits: ["update:modelValue"],
1241
1241
  setup(m) {
1242
- const { t: r } = Z(), e = le(m, "modelValue"), p = m, c = T(
1242
+ const { t: r } = Z(), e = le(m, "modelValue"), p = m, c = N(
1243
1243
  () => p.label ? p.label : r(`report.section.sort.${p.label}`)
1244
- ), i = E(!1), g = T(
1245
- () => e.value.map((F, o) => {
1246
- const u = p.options.find(
1247
- (n) => n.schemaName === F.schemaName && n.name === F.name
1244
+ ), n = A(!1), y = N(
1245
+ () => e.value.map((g, o) => {
1246
+ const i = p.options.find(
1247
+ (u) => u.schemaName === g.schemaName && u.name === g.name
1248
1248
  );
1249
1249
  return {
1250
1250
  index: o,
1251
- labels: (u == null ? void 0 : u.labels) || [F.schemaName, F.name],
1252
- value: F
1251
+ labels: (i == null ? void 0 : i.labels) || [g.schemaName, g.name],
1252
+ value: g
1253
1253
  };
1254
1254
  })
1255
- ), b = E(e.value.length > 0 ? 0 : void 0);
1256
- function f(F) {
1255
+ ), b = A(e.value.length > 0 ? 0 : void 0);
1256
+ function f(g) {
1257
1257
  var o;
1258
- i.value = !0, l.value = F != null && F.value ? JSON.parse(JSON.stringify(F.value)) : void 0, b.value = F == null ? void 0 : F.index, v.value = !!((o = l.value) != null && o.dataFormula);
1258
+ n.value = !0, l.value = g != null && g.value ? JSON.parse(JSON.stringify(g.value)) : void 0, b.value = g == null ? void 0 : g.index, v.value = !!((o = l.value) != null && o.dataFormula);
1259
1259
  }
1260
- const l = E(void 0), v = E(!1), w = T(
1260
+ const l = A(void 0), v = A(!1), x = N(
1261
1261
  () => p.options.find(
1262
- (F) => {
1263
- var o, u;
1264
- return F.schemaName === ((o = l.value) == null ? void 0 : o.schemaName) && F.name === ((u = l.value) == null ? void 0 : u.name);
1262
+ (g) => {
1263
+ var o, i;
1264
+ return g.schemaName === ((o = l.value) == null ? void 0 : o.schemaName) && g.name === ((i = l.value) == null ? void 0 : i.name);
1265
1265
  }
1266
1266
  ) ?? {}
1267
1267
  );
1268
- function N(F) {
1269
- var o, u;
1270
- (F.schemaName !== ((o = l.value) == null ? void 0 : o.schemaName) || F.name !== ((u = l.value) == null ? void 0 : u.name)) && (l.value = {
1271
- schemaName: F.schemaName,
1272
- name: F.name,
1273
- dimensionOption: F.dimensionOptions[0],
1268
+ function U(g) {
1269
+ var o, i;
1270
+ (g.schemaName !== ((o = l.value) == null ? void 0 : o.schemaName) || g.name !== ((i = l.value) == null ? void 0 : i.name)) && (l.value = {
1271
+ schemaName: g.schemaName,
1272
+ name: g.name,
1273
+ dimensionOption: g.dimensionOptions[0],
1274
1274
  aggregation: null,
1275
1275
  type: he.Asc
1276
1276
  });
@@ -1280,25 +1280,25 @@ const gl = { class: "grow" }, yl = {
1280
1280
  console.log("new sort is undefined");
1281
1281
  return;
1282
1282
  }
1283
- const F = [...g.value.map((o) => o.value)];
1284
- b.value !== void 0 ? F[b.value] = l.value : F.push(l.value), e.value = F, i.value = !1;
1283
+ const g = [...y.value.map((o) => o.value)];
1284
+ b.value !== void 0 ? g[b.value] = l.value : g.push(l.value), e.value = g, n.value = !1;
1285
1285
  }
1286
- function B(F) {
1287
- const o = [...g.value.map((u) => u.value)];
1288
- o.splice(F, 1), e.value = o, i.value = !1;
1286
+ function B(g) {
1287
+ const o = [...y.value.map((i) => i.value)];
1288
+ o.splice(g, 1), e.value = o, n.value = !1;
1289
1289
  }
1290
- const U = T(
1291
- () => p.options.map((F) => ({
1292
- label: F.labels.join(" "),
1293
- value: F
1290
+ const w = N(
1291
+ () => p.options.map((g) => ({
1292
+ label: g.labels.join(" "),
1293
+ value: g
1294
1294
  }))
1295
1295
  );
1296
- return (F, o) => {
1297
- const u = h("FmCheckbox"), n = h("FmTextarea"), t = h("FmForm"), s = h("FmIcon"), O = h("FmButton"), P = h("FmListItem"), J = h("FmList"), R = h("FmField");
1298
- return y(), $("div", _l, [
1299
- d(re, {
1300
- modelValue: i.value,
1301
- "onUpdate:modelValue": o[6] || (o[6] = (A) => i.value = A),
1296
+ return (g, o) => {
1297
+ const i = h("FmCheckbox"), u = h("FmTextarea"), t = h("FmForm"), s = h("FmIcon"), $ = h("FmButton"), O = h("FmListItem"), P = h("FmList"), z = h("FmField");
1298
+ return F(), D("div", _l, [
1299
+ d(me, {
1300
+ modelValue: n.value,
1301
+ "onUpdate:modelValue": o[6] || (o[6] = (q) => n.value = q),
1302
1302
  title: c.value,
1303
1303
  onConfirm: V
1304
1304
  }, {
@@ -1308,52 +1308,52 @@ const gl = { class: "grow" }, yl = {
1308
1308
  class: "flex flex-col gap-2 w-[490px]"
1309
1309
  }, {
1310
1310
  default: S(() => {
1311
- var A, z, K, G;
1311
+ var q, Y, K, X;
1312
1312
  return [
1313
- d(Y, {
1314
- "model-value": w.value,
1315
- items: U.value,
1313
+ d(G, {
1314
+ "model-value": x.value,
1315
+ items: w.value,
1316
1316
  placeholder: c.value,
1317
1317
  label: c.value,
1318
- "onUpdate:modelValue": o[0] || (o[0] = (_) => N(_))
1318
+ "onUpdate:modelValue": o[0] || (o[0] = (T) => U(T))
1319
1319
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
1320
- l.value ? (y(), $(H, { key: 0 }, [
1321
- (((A = w.value) == null ? void 0 : A.dimensionOptions) || []).length > 0 ? (y(), k(Y, {
1320
+ l.value ? (F(), D(H, { key: 0 }, [
1321
+ (((q = x.value) == null ? void 0 : q.dimensionOptions) || []).length > 0 ? (F(), C(G, {
1322
1322
  key: 0,
1323
1323
  modelValue: l.value.dimensionOption,
1324
- "onUpdate:modelValue": o[1] || (o[1] = (_) => l.value.dimensionOption = _),
1325
- items: ((z = w.value) == null ? void 0 : z.dimensionOptions.map((_) => ({ label: _, value: _ }))) ?? [],
1324
+ "onUpdate:modelValue": o[1] || (o[1] = (T) => l.value.dimensionOption = T),
1325
+ items: ((Y = x.value) == null ? void 0 : Y.dimensionOptions.map((T) => ({ label: T, value: T }))) ?? [],
1326
1326
  placeholder: a(r)("report.section.sort.format"),
1327
1327
  label: a(r)("report.section.sort.format")
1328
- }, null, 8, ["modelValue", "items", "placeholder", "label"])) : x("", !0),
1329
- (((K = w.value) == null ? void 0 : K.aggregations) || []).length > 0 ? (y(), k(Y, {
1328
+ }, null, 8, ["modelValue", "items", "placeholder", "label"])) : k("", !0),
1329
+ (((K = x.value) == null ? void 0 : K.aggregations) || []).length > 0 ? (F(), C(G, {
1330
1330
  key: 1,
1331
1331
  modelValue: l.value.aggregation,
1332
- "onUpdate:modelValue": o[2] || (o[2] = (_) => l.value.aggregation = _),
1333
- items: ((G = w.value) == null ? void 0 : G.aggregations.map((_) => ({ label: _, value: _ }))) ?? [],
1332
+ "onUpdate:modelValue": o[2] || (o[2] = (T) => l.value.aggregation = T),
1333
+ items: ((X = x.value) == null ? void 0 : X.aggregations.map((T) => ({ label: T, value: T }))) ?? [],
1334
1334
  label: a(r)("report.section.sort.aggregation"),
1335
1335
  placeholder: a(r)("report.section.sort.aggregation")
1336
- }, null, 8, ["modelValue", "items", "label", "placeholder"])) : x("", !0),
1337
- d(Y, {
1336
+ }, null, 8, ["modelValue", "items", "label", "placeholder"])) : k("", !0),
1337
+ d(G, {
1338
1338
  modelValue: l.value.type,
1339
- "onUpdate:modelValue": o[3] || (o[3] = (_) => l.value.type = _),
1340
- items: Object.values(a(he)).map((_) => ({ label: _, value: _ })),
1339
+ "onUpdate:modelValue": o[3] || (o[3] = (T) => l.value.type = T),
1340
+ items: Object.values(a(he)).map((T) => ({ label: T, value: T })),
1341
1341
  placeholder: a(r)("report.section.sort.order"),
1342
1342
  label: a(r)("report.section.sort.order")
1343
1343
  }, null, 8, ["modelValue", "items", "placeholder", "label"]),
1344
- d(u, {
1344
+ d(i, {
1345
1345
  modelValue: v.value,
1346
- "onUpdate:modelValue": o[4] || (o[4] = (_) => v.value = _),
1346
+ "onUpdate:modelValue": o[4] || (o[4] = (T) => v.value = T),
1347
1347
  label: a(r)("report.section.sort.advance"),
1348
1348
  value: !0
1349
1349
  }, null, 8, ["modelValue", "label"]),
1350
- v.value ? (y(), k(n, {
1350
+ v.value ? (F(), C(u, {
1351
1351
  key: 2,
1352
1352
  modelValue: l.value.dataFormula,
1353
- "onUpdate:modelValue": o[5] || (o[5] = (_) => l.value.dataFormula = _),
1353
+ "onUpdate:modelValue": o[5] || (o[5] = (T) => l.value.dataFormula = T),
1354
1354
  placeholder: a(r)("report.section.sort.dataFormula")
1355
- }, null, 8, ["modelValue", "placeholder"])) : x("", !0)
1356
- ], 64)) : x("", !0)
1355
+ }, null, 8, ["modelValue", "placeholder"])) : k("", !0)
1356
+ ], 64)) : k("", !0)
1357
1357
  ];
1358
1358
  }),
1359
1359
  _: 1
@@ -1361,31 +1361,31 @@ const gl = { class: "grow" }, yl = {
1361
1361
  ]),
1362
1362
  _: 1
1363
1363
  }, 8, ["modelValue", "title"]),
1364
- C("div", null, [
1365
- C("p", Tl, I(c.value), 1),
1366
- C("p", Sl, I(a(r)("report.section.sort.description")), 1)
1364
+ _("div", null, [
1365
+ _("p", Tl, I(c.value), 1),
1366
+ _("p", Sl, I(a(r)("report.section.sort.description")), 1)
1367
1367
  ]),
1368
- d(J, null, {
1368
+ d(P, null, {
1369
1369
  default: S(() => [
1370
1370
  d(a(be), {
1371
1371
  list: e.value,
1372
1372
  "item-key": "id",
1373
1373
  class: "flex flex-col gap-2 w-full"
1374
1374
  }, {
1375
- item: S(({ element: A, index: z }) => [
1376
- d(P, {
1375
+ item: S(({ element: q, index: Y }) => [
1376
+ d(O, {
1377
1377
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1378
- onClick: te((K) => f(g.value[z]), ["stop"])
1378
+ onClick: te((K) => f(y.value[Y]), ["stop"])
1379
1379
  }, {
1380
1380
  default: S(() => [
1381
1381
  d(s, { name: "drag_handle" }),
1382
- C("p", Ul, I(a(Ce)(A.name)), 1),
1383
- o[8] || (o[8] = C("div", { class: "grow" }, null, -1)),
1384
- d(O, {
1382
+ _("p", Ul, I(a(Ce)(q.name)), 1),
1383
+ o[8] || (o[8] = _("div", { class: "grow" }, null, -1)),
1384
+ d($, {
1385
1385
  icon: "close",
1386
1386
  size: "md",
1387
1387
  variant: "tertiary",
1388
- onClick: te((K) => B(z), ["stop"])
1388
+ onClick: te((K) => B(Y), ["stop"])
1389
1389
  }, null, 8, ["onClick"])
1390
1390
  ]),
1391
1391
  _: 2
@@ -1396,21 +1396,21 @@ const gl = { class: "grow" }, yl = {
1396
1396
  ]),
1397
1397
  _: 1
1398
1398
  }),
1399
- d(R, {
1399
+ d(z, {
1400
1400
  class: "text-fm-color-typo-tertiary",
1401
1401
  onClick: o[7] || (o[7] = () => {
1402
1402
  f();
1403
1403
  })
1404
1404
  }, {
1405
1405
  default: S(() => [
1406
- se(I(a(r)("report.section.sort.add")), 1)
1406
+ re(I(a(r)("report.section.sort.add")), 1)
1407
1407
  ]),
1408
1408
  _: 1
1409
1409
  })
1410
1410
  ]);
1411
1411
  };
1412
1412
  }
1413
- }), Dl = { class: "fm-typo-en-body-lg-600" }, $l = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ol = /* @__PURE__ */ q({
1413
+ }), Dl = { class: "fm-typo-en-body-lg-600" }, $l = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ol = /* @__PURE__ */ E({
1414
1414
  __name: "LimitSection",
1415
1415
  props: {
1416
1416
  modelValue: { required: !0, default: null },
@@ -1421,25 +1421,25 @@ const gl = { class: "grow" }, yl = {
1421
1421
  const { t: r } = Z(), e = le(m, "modelValue"), p = Oe((c) => {
1422
1422
  c !== "" ? e.value = c : e.value = null;
1423
1423
  }, 1e3);
1424
- return (c, i) => {
1425
- const g = h("FmTextField");
1426
- return y(), $(H, null, [
1427
- C("div", null, [
1428
- C("p", Dl, I(a(r)("report.section.limit.title")), 1),
1429
- C("p", $l, I(a(r)("report.section.limit.description")), 1)
1424
+ return (c, n) => {
1425
+ const y = h("FmTextField");
1426
+ return F(), D(H, null, [
1427
+ _("div", null, [
1428
+ _("p", Dl, I(a(r)("report.section.limit.title")), 1),
1429
+ _("p", $l, I(a(r)("report.section.limit.description")), 1)
1430
1430
  ]),
1431
- d(g, {
1431
+ d(y, {
1432
1432
  "model-value": e.value,
1433
1433
  inputmode: "numeric",
1434
1434
  placeholder: a(r)("report.section.limit.placeholder"),
1435
- "onUpdate:modelValue": i[0] || (i[0] = (b) => a(p)(b))
1435
+ "onUpdate:modelValue": n[0] || (n[0] = (b) => a(p)(b))
1436
1436
  }, null, 8, ["model-value", "placeholder"])
1437
1437
  ], 64);
1438
1438
  };
1439
1439
  }
1440
- }), Ll = { class: "flex flex-col my-2 gap-8" }, Il = { class: "fm-typo-en-body-lg-600" }, Bl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Rl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Ml = /* @__PURE__ */ q({
1440
+ }), Ll = { class: "flex flex-col my-2 gap-8" }, Il = { class: "fm-typo-en-body-lg-600" }, Bl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Rl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Ml = /* @__PURE__ */ E({
1441
1441
  __name: "ConditionSection",
1442
- props: /* @__PURE__ */ X({
1442
+ props: /* @__PURE__ */ W({
1443
1443
  joinFieldOptions: {
1444
1444
  type: Array,
1445
1445
  default: () => []
@@ -1454,45 +1454,45 @@ const gl = { class: "grow" }, yl = {
1454
1454
  }),
1455
1455
  emits: ["update:modelValue"],
1456
1456
  setup(m) {
1457
- const { t: r } = Z(), e = le(m, "modelValue"), p = m, c = E(!1), i = T(
1458
- () => e.value.map((o, u) => {
1459
- var n, t;
1457
+ const { t: r } = Z(), e = le(m, "modelValue"), p = m, c = A(!1), n = N(
1458
+ () => e.value.map((o, i) => {
1459
+ var u, t;
1460
1460
  return {
1461
- index: u,
1462
- labels: [(n = o.joinDimension) == null ? void 0 : n.schemaName, (t = o.joinDimension) == null ? void 0 : t.name],
1461
+ index: i,
1462
+ labels: [(u = o.joinDimension) == null ? void 0 : u.schemaName, (t = o.joinDimension) == null ? void 0 : t.name],
1463
1463
  value: o
1464
1464
  };
1465
1465
  })
1466
- ), g = E(e.value.length > 0 ? 0 : void 0);
1466
+ ), y = A(e.value.length > 0 ? 0 : void 0);
1467
1467
  function b(o) {
1468
- o ? (f.value = o != null && o.value ? JSON.parse(JSON.stringify(o.value)) : void 0, g.value = o == null ? void 0 : o.index) : (f.value = {
1468
+ o ? (f.value = o != null && o.value ? JSON.parse(JSON.stringify(o.value)) : void 0, y.value = o == null ? void 0 : o.index) : (f.value = {
1469
1469
  joinDimension: null,
1470
1470
  operator: "",
1471
1471
  mainDimensions: []
1472
- }, g.value = void 0), c.value = !0;
1472
+ }, y.value = void 0), c.value = !0;
1473
1473
  }
1474
- const f = E(void 0), l = T(
1474
+ const f = A(void 0), l = N(
1475
1475
  () => p.joinFieldOptions.find(
1476
1476
  (o) => {
1477
- var u, n;
1478
- return o.schemaName === ((n = (u = f.value) == null ? void 0 : u.joinDimension) == null ? void 0 : n.schemaName) && o.name === f.value.joinDimension.name;
1477
+ var i, u;
1478
+ return o.schemaName === ((u = (i = f.value) == null ? void 0 : i.joinDimension) == null ? void 0 : u.schemaName) && o.name === f.value.joinDimension.name;
1479
1479
  }
1480
1480
  ) ?? {}
1481
- ), v = T(
1481
+ ), v = N(
1482
1482
  () => {
1483
1483
  var o;
1484
1484
  return (((o = f.value) == null ? void 0 : o.mainDimensions) || []).map(
1485
- (u) => p.mainFieldOptions.find(
1486
- (n) => n.schemaName === (u == null ? void 0 : u.schemaName) && n.name === u.name
1485
+ (i) => p.mainFieldOptions.find(
1486
+ (u) => u.schemaName === (i == null ? void 0 : i.schemaName) && u.name === i.name
1487
1487
  ) ?? {}
1488
1488
  );
1489
1489
  }
1490
- ), w = T(
1490
+ ), x = N(
1491
1491
  () => p.joinFieldOptions.map((o) => ({ label: o.labels.join(" "), value: o }))
1492
1492
  );
1493
- function N(o) {
1494
- var u, n, t, s;
1495
- f.value && (f.value && o.schemaName !== ((n = (u = f.value) == null ? void 0 : u.joinDimension) == null ? void 0 : n.schemaName) || o.name !== ((s = (t = f.value) == null ? void 0 : t.joinDimension) == null ? void 0 : s.name)) && (f.value = {
1493
+ function U(o) {
1494
+ var i, u, t, s;
1495
+ f.value && (f.value && o.schemaName !== ((u = (i = f.value) == null ? void 0 : i.joinDimension) == null ? void 0 : u.schemaName) || o.name !== ((s = (t = f.value) == null ? void 0 : t.joinDimension) == null ? void 0 : s.name)) && (f.value = {
1496
1496
  ...f.value,
1497
1497
  joinDimension: {
1498
1498
  schemaName: o.schemaName,
@@ -1503,11 +1503,11 @@ const gl = { class: "grow" }, yl = {
1503
1503
  }
1504
1504
  }, o.joinConditionOperators.includes(f.value.operator) || B(o.joinConditionOperators[0]));
1505
1505
  }
1506
- function V(o, u) {
1507
- var n, t, s, O;
1508
- if (f.value && u >= 0 && (f.value && o.schemaName !== ((t = (n = f.value) == null ? void 0 : n.mainDimensions[u]) == null ? void 0 : t.schemaName) || o.name !== ((O = (s = f.value) == null ? void 0 : s.mainDimensions[u]) == null ? void 0 : O.name))) {
1509
- const P = [...f.value.mainDimensions];
1510
- P[u] = {
1506
+ function V(o, i) {
1507
+ var u, t, s, $;
1508
+ if (f.value && i >= 0 && (f.value && o.schemaName !== ((t = (u = f.value) == null ? void 0 : u.mainDimensions[i]) == null ? void 0 : t.schemaName) || o.name !== (($ = (s = f.value) == null ? void 0 : s.mainDimensions[i]) == null ? void 0 : $.name))) {
1509
+ const O = [...f.value.mainDimensions];
1510
+ O[i] = {
1511
1511
  schemaName: o.schemaName,
1512
1512
  name: o.name,
1513
1513
  option: o.dimensionOptions[0],
@@ -1515,7 +1515,7 @@ const gl = { class: "grow" }, yl = {
1515
1515
  hide: !0
1516
1516
  }, f.value = {
1517
1517
  ...f.value,
1518
- mainDimensions: P
1518
+ mainDimensions: O
1519
1519
  };
1520
1520
  }
1521
1521
  }
@@ -1538,24 +1538,24 @@ const gl = { class: "grow" }, yl = {
1538
1538
  break;
1539
1539
  }
1540
1540
  }
1541
- function U() {
1542
- const o = [...i.value.map((u) => u.value)];
1541
+ function w() {
1542
+ const o = [...n.value.map((i) => i.value)];
1543
1543
  f.value && (f.value.mainDimensions = f.value.mainDimensions.filter(
1544
- (u) => u !== "" && u != null
1545
- ), g.value !== void 0 ? o[g.value] = f.value : o.push(f.value)), e.value = o, c.value = !1;
1544
+ (i) => i !== "" && i != null
1545
+ ), y.value !== void 0 ? o[y.value] = f.value : o.push(f.value)), e.value = o, c.value = !1;
1546
1546
  }
1547
- function F(o) {
1548
- const u = [...i.value.map((n) => n.value)];
1549
- u.splice(o, 1), e.value = u;
1547
+ function g(o) {
1548
+ const i = [...n.value.map((u) => u.value)];
1549
+ i.splice(o, 1), e.value = i;
1550
1550
  }
1551
- return (o, u) => {
1552
- const n = h("FmMenuDivider"), t = h("FmForm"), s = h("FmButton"), O = h("FmListItem"), P = h("FmList"), J = h("FmField");
1553
- return y(), $("div", Ll, [
1554
- d(re, {
1551
+ return (o, i) => {
1552
+ const u = h("FmMenuDivider"), t = h("FmForm"), s = h("FmButton"), $ = h("FmListItem"), O = h("FmList"), P = h("FmField");
1553
+ return F(), D("div", Ll, [
1554
+ d(me, {
1555
1555
  modelValue: c.value,
1556
- "onUpdate:modelValue": u[2] || (u[2] = (R) => c.value = R),
1556
+ "onUpdate:modelValue": i[2] || (i[2] = (z) => c.value = z),
1557
1557
  title: a(r)("report.section.condition.condition"),
1558
- onConfirm: U
1558
+ onConfirm: w
1559
1559
  }, {
1560
1560
  content: S(() => [
1561
1561
  d(t, {
@@ -1563,61 +1563,61 @@ const gl = { class: "grow" }, yl = {
1563
1563
  class: "flex flex-col gap-2 w-[490px]"
1564
1564
  }, {
1565
1565
  default: S(() => {
1566
- var R, A, z, K, G;
1566
+ var z, q, Y, K, X;
1567
1567
  return [
1568
- d(Y, {
1568
+ d(G, {
1569
1569
  label: a(r)("report.section.condition.joinDatasource"),
1570
1570
  "model-value": l.value,
1571
- items: w.value,
1571
+ items: x.value,
1572
1572
  placeholder: a(r)("report.section.condition.joinDimension"),
1573
- "onUpdate:modelValue": u[0] || (u[0] = (_) => N(_))
1573
+ "onUpdate:modelValue": i[0] || (i[0] = (T) => U(T))
1574
1574
  }, null, 8, ["label", "model-value", "items", "placeholder"]),
1575
- d(n),
1576
- (R = f.value) != null && R.joinDimension && (((A = l.value) == null ? void 0 : A.dimensionOptions) || []).length > 0 ? (y(), k(Y, {
1575
+ d(u),
1576
+ (z = f.value) != null && z.joinDimension && (((q = l.value) == null ? void 0 : q.dimensionOptions) || []).length > 0 ? (F(), C(G, {
1577
1577
  key: 0,
1578
1578
  modelValue: f.value.joinDimension.option,
1579
- "onUpdate:modelValue": u[1] || (u[1] = (_) => f.value.joinDimension.option = _),
1579
+ "onUpdate:modelValue": i[1] || (i[1] = (T) => f.value.joinDimension.option = T),
1580
1580
  label: a(r)("report.section.condition.format"),
1581
- items: ((z = l.value) == null ? void 0 : z.dimensionOptions.map((_) => ({
1582
- label: _,
1583
- value: _
1581
+ items: ((Y = l.value) == null ? void 0 : Y.dimensionOptions.map((T) => ({
1582
+ label: T,
1583
+ value: T
1584
1584
  }))) ?? []
1585
- }, null, 8, ["modelValue", "label", "items"])) : x("", !0),
1586
- f.value && (((K = l.value) == null ? void 0 : K.joinConditionOperators) || []).length > 0 ? (y(), k(Y, {
1585
+ }, null, 8, ["modelValue", "label", "items"])) : k("", !0),
1586
+ f.value && (((K = l.value) == null ? void 0 : K.joinConditionOperators) || []).length > 0 ? (F(), C(G, {
1587
1587
  key: 1,
1588
1588
  "model-value": f.value.operator,
1589
1589
  label: a(r)("report.section.condition.operator"),
1590
- items: l.value.joinConditionOperators.map((_) => ({
1591
- label: _,
1592
- value: _
1590
+ items: l.value.joinConditionOperators.map((T) => ({
1591
+ label: T,
1592
+ value: T
1593
1593
  })) ?? [],
1594
1594
  "onUpdate:modelValue": B
1595
- }, null, 8, ["model-value", "label", "items"])) : x("", !0),
1596
- (y(!0), $(H, null, de(((G = f.value) == null ? void 0 : G.mainDimensions) || [], (_, L) => {
1595
+ }, null, 8, ["model-value", "label", "items"])) : k("", !0),
1596
+ (F(!0), D(H, null, ce(((X = f.value) == null ? void 0 : X.mainDimensions) || [], (T, L) => {
1597
1597
  var ee, oe;
1598
- return y(), $("div", {
1598
+ return F(), D("div", {
1599
1599
  key: L,
1600
1600
  class: "flex flex-col gap-2"
1601
1601
  }, [
1602
- d(Y, {
1602
+ d(G, {
1603
1603
  "model-value": v.value[L],
1604
1604
  label: a(r)("report.section.condition.mainDatasource", { index: L + 1 }),
1605
- items: p.mainFieldOptions.map((W) => ({
1606
- label: W.labels.join(" "),
1607
- value: W
1605
+ items: p.mainFieldOptions.map((J) => ({
1606
+ label: J.labels.join(" "),
1607
+ value: J
1608
1608
  })),
1609
- "onUpdate:modelValue": (W) => V(W, L)
1609
+ "onUpdate:modelValue": (J) => V(J, L)
1610
1610
  }, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
1611
- _ && (((ee = v.value[L]) == null ? void 0 : ee.dimensionOptions) || []).length > 0 && _ ? (y(), k(Y, {
1611
+ T && (((ee = v.value[L]) == null ? void 0 : ee.dimensionOptions) || []).length > 0 && T ? (F(), C(G, {
1612
1612
  key: 0,
1613
- modelValue: _.option,
1614
- "onUpdate:modelValue": (W) => _.option = W,
1615
- items: (oe = v.value[L]) == null ? void 0 : oe.dimensionOptions.map((W) => ({
1616
- label: W,
1617
- value: W
1613
+ modelValue: T.option,
1614
+ "onUpdate:modelValue": (J) => T.option = J,
1615
+ items: (oe = v.value[L]) == null ? void 0 : oe.dimensionOptions.map((J) => ({
1616
+ label: J,
1617
+ value: J
1618
1618
  }))
1619
- }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : x("", !0),
1620
- d(n)
1619
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : k("", !0),
1620
+ d(u)
1621
1621
  ]);
1622
1622
  }), 128))
1623
1623
  ];
@@ -1627,27 +1627,27 @@ const gl = { class: "grow" }, yl = {
1627
1627
  ]),
1628
1628
  _: 1
1629
1629
  }, 8, ["modelValue", "title"]),
1630
- C("div", null, [
1631
- C("p", Il, I(a(r)("report.section.condition.condition")), 1),
1632
- C("p", Bl, I(a(r)("report.section.condition.description")), 1)
1630
+ _("div", null, [
1631
+ _("p", Il, I(a(r)("report.section.condition.condition")), 1),
1632
+ _("p", Bl, I(a(r)("report.section.condition.description")), 1)
1633
1633
  ]),
1634
- d(P, { class: "flex flex-col gap-2" }, {
1634
+ d(O, { class: "flex flex-col gap-2" }, {
1635
1635
  default: S(() => [
1636
- (y(!0), $(H, null, de(e.value, (R, A) => (y(), k(O, {
1637
- key: A,
1636
+ (F(!0), D(H, null, ce(e.value, (z, q) => (F(), C($, {
1637
+ key: q,
1638
1638
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1639
- onClick: (z) => b(i.value[A])
1639
+ onClick: (Y) => b(n.value[q])
1640
1640
  }, {
1641
1641
  default: S(() => {
1642
- var z, K;
1642
+ var Y, K;
1643
1643
  return [
1644
- C("p", Rl, I(a(Je)(((z = R.joinDimension) == null ? void 0 : z.schemaName) ?? "")) + " " + I((K = R.joinDimension) == null ? void 0 : K.label), 1),
1645
- u[4] || (u[4] = C("div", { class: "grow" }, null, -1)),
1644
+ _("p", Rl, I(a(We)(((Y = z.joinDimension) == null ? void 0 : Y.schemaName) ?? "")) + " " + I((K = z.joinDimension) == null ? void 0 : K.label), 1),
1645
+ i[4] || (i[4] = _("div", { class: "grow" }, null, -1)),
1646
1646
  d(s, {
1647
1647
  icon: "close",
1648
1648
  size: "md",
1649
1649
  variant: "tertiary",
1650
- onClick: te((G) => F(A), ["stop"])
1650
+ onClick: te((X) => g(q), ["stop"])
1651
1651
  }, null, 8, ["onClick"])
1652
1652
  ];
1653
1653
  }),
@@ -1656,81 +1656,81 @@ const gl = { class: "grow" }, yl = {
1656
1656
  ]),
1657
1657
  _: 1
1658
1658
  }),
1659
- d(J, {
1659
+ d(P, {
1660
1660
  class: "text-fm-color-typo-tertiary cursor-pointer",
1661
- onClick: u[3] || (u[3] = (R) => b())
1661
+ onClick: i[3] || (i[3] = (z) => b())
1662
1662
  }, {
1663
1663
  default: S(() => [
1664
- se(I(a(r)("report.section.condition.add")), 1)
1664
+ re(I(a(r)("report.section.condition.add")), 1)
1665
1665
  ]),
1666
1666
  _: 1
1667
1667
  })
1668
1668
  ]);
1669
1669
  };
1670
1670
  }
1671
- }), jl = { class: "legend-section space-y-2" }, Al = { class: "title-style-section space-y-2" }, El = /* @__PURE__ */ q({
1671
+ }), jl = { class: "legend-section space-y-2" }, Al = { class: "title-style-section space-y-2" }, El = /* @__PURE__ */ E({
1672
1672
  __name: "TitleSection",
1673
1673
  props: {
1674
1674
  model: {}
1675
1675
  },
1676
1676
  emits: ["update:model"],
1677
1677
  setup(m, { emit: r }) {
1678
- const e = m, p = r, { t: c } = Z(), i = T({
1678
+ const e = m, p = r, { t: c } = Z(), n = N({
1679
1679
  get: () => e.model,
1680
- set: (g) => p("update:model", g)
1680
+ set: (y) => p("update:model", y)
1681
1681
  });
1682
- return (g, b) => {
1682
+ return (y, b) => {
1683
1683
  const f = h("FmSwitch"), l = h("FmTextField");
1684
- return y(), $("div", jl, [
1685
- C("div", Al, [
1684
+ return F(), D("div", jl, [
1685
+ _("div", Al, [
1686
1686
  d(f, {
1687
1687
  label: a(c)("report.section.datasource.title.showTitle"),
1688
1688
  type: "number",
1689
- "model-value": i.value.showTitle ?? !0,
1690
- "onUpdate:modelValue": b[0] || (b[0] = (v) => i.value.showTitle = v)
1689
+ "model-value": n.value.showTitle ?? !0,
1690
+ "onUpdate:modelValue": b[0] || (b[0] = (v) => n.value.showTitle = v)
1691
1691
  }, null, 8, ["label", "model-value"]),
1692
1692
  d(l, {
1693
1693
  label: a(c)("report.section.datasource.fontSize"),
1694
1694
  type: "number",
1695
- "model-value": i.value.titleFontSize ?? 14,
1695
+ "model-value": n.value.titleFontSize ?? 14,
1696
1696
  "onUpdate:modelValue": b[1] || (b[1] = (v) => {
1697
- const w = Math.min(Number(v), 24);
1698
- i.value = { ...i.value, titleFontSize: w };
1697
+ const x = Math.min(Number(v), 24);
1698
+ n.value = { ...n.value, titleFontSize: x };
1699
1699
  })
1700
1700
  }, null, 8, ["label", "model-value"]),
1701
1701
  d(f, {
1702
1702
  label: a(c)("report.section.datasource.title.bold"),
1703
1703
  "label-placement": "right",
1704
- "model-value": i.value.titleBold ?? !1,
1705
- "onUpdate:modelValue": b[2] || (b[2] = (v) => i.value.titleBold = v)
1704
+ "model-value": n.value.titleBold ?? !1,
1705
+ "onUpdate:modelValue": b[2] || (b[2] = (v) => n.value.titleBold = v)
1706
1706
  }, null, 8, ["label", "model-value"]),
1707
1707
  d(f, {
1708
1708
  label: a(c)("report.section.datasource.title.italic"),
1709
1709
  "label-placement": "right",
1710
- "model-value": i.value.titleItalic ?? !1,
1711
- "onUpdate:modelValue": b[3] || (b[3] = (v) => i.value.titleItalic = v)
1710
+ "model-value": n.value.titleItalic ?? !1,
1711
+ "onUpdate:modelValue": b[3] || (b[3] = (v) => n.value.titleItalic = v)
1712
1712
  }, null, 8, ["label", "model-value"]),
1713
1713
  d(f, {
1714
1714
  label: a(c)("report.section.datasource.title.underline"),
1715
1715
  "label-placement": "right",
1716
- "model-value": i.value.titleUnderline ?? !1,
1717
- "onUpdate:modelValue": b[4] || (b[4] = (v) => i.value.titleUnderline = v)
1716
+ "model-value": n.value.titleUnderline ?? !1,
1717
+ "onUpdate:modelValue": b[4] || (b[4] = (v) => n.value.titleUnderline = v)
1718
1718
  }, null, 8, ["label", "model-value"])
1719
1719
  ])
1720
1720
  ]);
1721
1721
  };
1722
1722
  }
1723
- }), Pl = /* @__PURE__ */ q({
1723
+ }), Pl = /* @__PURE__ */ E({
1724
1724
  __name: "LabelSection",
1725
1725
  props: {
1726
1726
  model: {}
1727
1727
  },
1728
1728
  emits: ["update:model"],
1729
1729
  setup(m, { emit: r }) {
1730
- const e = m, p = r, { t: c } = Z(), i = T({
1730
+ const e = m, p = r, { t: c } = Z(), n = N({
1731
1731
  get: () => e.model,
1732
1732
  set: (f) => p("update:model", f)
1733
- }), g = [
1733
+ }), y = [
1734
1734
  { label: c("report.section.datasource.position.left"), value: ne.left },
1735
1735
  { label: c("report.section.datasource.position.center"), value: ne.center },
1736
1736
  { label: c("report.section.datasource.position.right"), value: ne.right },
@@ -1744,73 +1744,73 @@ const gl = { class: "grow" }, yl = {
1744
1744
  { label: c("report.section.datasource.position.end"), value: pe.end }
1745
1745
  ];
1746
1746
  return (f, l) => {
1747
- const v = h("FmSwitch"), w = h("FmSelect"), N = h("FmTextField");
1748
- return y(), $(H, null, [
1747
+ const v = h("FmSwitch"), x = h("FmSelect"), U = h("FmTextField");
1748
+ return F(), D(H, null, [
1749
1749
  d(v, {
1750
1750
  label: a(c)("report.section.datasource.label.showLabel"),
1751
1751
  "label-placement": "right",
1752
- "model-value": i.value.showLabel ?? !1,
1753
- "onUpdate:modelValue": l[0] || (l[0] = (V) => i.value.showLabel = V)
1752
+ "model-value": n.value.showLabel ?? !1,
1753
+ "onUpdate:modelValue": l[0] || (l[0] = (V) => n.value.showLabel = V)
1754
1754
  }, null, 8, ["label", "model-value"]),
1755
- i.value.showLabel ? (y(), $(H, { key: 0 }, [
1756
- d(w, {
1755
+ n.value.showLabel ? (F(), D(H, { key: 0 }, [
1756
+ d(x, {
1757
1757
  label: a(c)("report.section.datasource.alignment.align"),
1758
- items: g,
1759
- "model-value": i.value.labelAlign ?? a(ne).center,
1758
+ items: y,
1759
+ "model-value": n.value.labelAlign ?? a(ne).center,
1760
1760
  "onUpdate:modelValue": l[1] || (l[1] = (V) => {
1761
- i.value = { ...i.value, labelAlign: V };
1761
+ n.value = { ...n.value, labelAlign: V };
1762
1762
  })
1763
1763
  }, null, 8, ["label", "model-value"]),
1764
- d(w, {
1764
+ d(x, {
1765
1765
  label: a(c)("report.section.datasource.alignment.anchor"),
1766
1766
  items: b,
1767
- "model-value": i.value.labelAnchor ?? a(pe).center,
1767
+ "model-value": n.value.labelAnchor ?? a(pe).center,
1768
1768
  "onUpdate:modelValue": l[2] || (l[2] = (V) => {
1769
- i.value = { ...i.value, labelAnchor: V };
1769
+ n.value = { ...n.value, labelAnchor: V };
1770
1770
  })
1771
1771
  }, null, 8, ["label", "model-value"]),
1772
- d(N, {
1772
+ d(U, {
1773
1773
  label: a(c)("report.section.datasource.alignment.rotation"),
1774
1774
  type: "number",
1775
1775
  min: -180,
1776
1776
  max: 180,
1777
1777
  step: 1,
1778
- "model-value": i.value.labelRotation ?? 0,
1778
+ "model-value": n.value.labelRotation ?? 0,
1779
1779
  "onUpdate:modelValue": l[3] || (l[3] = (V) => {
1780
- i.value = { ...i.value, labelRotation: Number(V) };
1780
+ n.value = { ...n.value, labelRotation: Number(V) };
1781
1781
  })
1782
1782
  }, null, 8, ["label", "model-value"]),
1783
- d(N, {
1783
+ d(U, {
1784
1784
  label: a(c)("report.section.datasource.alignment.offset"),
1785
1785
  type: "number",
1786
- "model-value": i.value.labelOffset ?? 0,
1786
+ "model-value": n.value.labelOffset ?? 0,
1787
1787
  "onUpdate:modelValue": l[4] || (l[4] = (V) => {
1788
- i.value = { ...i.value, labelOffset: Number(V) };
1788
+ n.value = { ...n.value, labelOffset: Number(V) };
1789
1789
  })
1790
1790
  }, null, 8, ["label", "model-value"]),
1791
- d(N, {
1791
+ d(U, {
1792
1792
  label: a(c)("report.section.datasource.fontSize"),
1793
1793
  type: "number",
1794
- "model-value": i.value.labelFontSize ?? 12,
1794
+ "model-value": n.value.labelFontSize ?? 12,
1795
1795
  "onUpdate:modelValue": l[5] || (l[5] = (V) => {
1796
- i.value = { ...i.value, labelFontSize: Number(V) };
1796
+ n.value = { ...n.value, labelFontSize: Number(V) };
1797
1797
  })
1798
1798
  }, null, 8, ["label", "model-value"])
1799
- ], 64)) : x("", !0)
1799
+ ], 64)) : k("", !0)
1800
1800
  ], 64);
1801
1801
  };
1802
1802
  }
1803
- }), zl = /* @__PURE__ */ q({
1803
+ }), zl = /* @__PURE__ */ E({
1804
1804
  __name: "XySection",
1805
1805
  props: {
1806
1806
  model: {}
1807
1807
  },
1808
1808
  emits: ["update:model"],
1809
1809
  setup(m, { emit: r }) {
1810
- const e = m, p = r, { t: c } = Z(), i = T({
1810
+ const e = m, p = r, { t: c } = Z(), n = N({
1811
1811
  get: () => e.model,
1812
1812
  set: (f) => p("update:model", f)
1813
- }), g = [
1813
+ }), y = [
1814
1814
  { label: c("report.section.datasource.position.top"), value: "top" },
1815
1815
  { label: c("report.section.datasource.position.bottom"), value: "bottom" }
1816
1816
  ], b = [
@@ -1818,82 +1818,82 @@ const gl = { class: "grow" }, yl = {
1818
1818
  { label: c("report.section.datasource.position.right"), value: "right" }
1819
1819
  ];
1820
1820
  return (f, l) => {
1821
- const v = h("FmSwitch"), w = h("FmSelect"), N = h("FmTextField");
1822
- return y(), $(H, null, [
1821
+ const v = h("FmSwitch"), x = h("FmSelect"), U = h("FmTextField");
1822
+ return F(), D(H, null, [
1823
1823
  d(v, {
1824
1824
  label: a(c)("report.section.datasource.axis.showX"),
1825
1825
  "label-placement": "right",
1826
- "model-value": i.value.showX ?? !0,
1827
- "onUpdate:modelValue": l[0] || (l[0] = (V) => i.value.showX = V)
1826
+ "model-value": n.value.showX ?? !0,
1827
+ "onUpdate:modelValue": l[0] || (l[0] = (V) => n.value.showX = V)
1828
1828
  }, null, 8, ["label", "model-value"]),
1829
- i.value.showX ?? !0 ? (y(), $(H, { key: 0 }, [
1830
- d(w, {
1829
+ n.value.showX ?? !0 ? (F(), D(H, { key: 0 }, [
1830
+ d(x, {
1831
1831
  label: a(c)("report.section.datasource.position.showPosition"),
1832
- items: g,
1833
- "model-value": i.value.xPosition ?? "bottom",
1834
- "onUpdate:modelValue": l[1] || (l[1] = (V) => i.value.xPosition = V)
1832
+ items: y,
1833
+ "model-value": n.value.xPosition ?? "bottom",
1834
+ "onUpdate:modelValue": l[1] || (l[1] = (V) => n.value.xPosition = V)
1835
1835
  }, null, 8, ["label", "model-value"]),
1836
1836
  d(v, {
1837
1837
  label: a(c)("report.section.datasource.axis.showGrid"),
1838
1838
  "label-placement": "right",
1839
- "model-value": i.value.showXGrid ?? !1,
1840
- "onUpdate:modelValue": l[2] || (l[2] = (V) => i.value.showXGrid = V)
1839
+ "model-value": n.value.showXGrid ?? !1,
1840
+ "onUpdate:modelValue": l[2] || (l[2] = (V) => n.value.showXGrid = V)
1841
1841
  }, null, 8, ["label", "model-value"]),
1842
1842
  d(v, {
1843
1843
  label: a(c)("report.section.datasource.axis.showTick"),
1844
1844
  "label-placement": "right",
1845
- "model-value": i.value.showXTick ?? !0,
1846
- "onUpdate:modelValue": l[3] || (l[3] = (V) => i.value.showXTick = V)
1845
+ "model-value": n.value.showXTick ?? !0,
1846
+ "onUpdate:modelValue": l[3] || (l[3] = (V) => n.value.showXTick = V)
1847
1847
  }, null, 8, ["label", "model-value"]),
1848
- i.value.showXTick ?? !0 ? (y(), k(N, {
1848
+ n.value.showXTick ?? !0 ? (F(), C(U, {
1849
1849
  key: 0,
1850
1850
  label: a(c)("report.section.datasource.fontSize"),
1851
1851
  type: "number",
1852
- "model-value": i.value.xTickFontSize ?? 12,
1852
+ "model-value": n.value.xTickFontSize ?? 12,
1853
1853
  "onUpdate:modelValue": l[4] || (l[4] = (V) => {
1854
- i.value = { ...i.value, xTickFontSize: Number(V) };
1854
+ n.value = { ...n.value, xTickFontSize: Number(V) };
1855
1855
  })
1856
- }, null, 8, ["label", "model-value"])) : x("", !0)
1857
- ], 64)) : x("", !0),
1856
+ }, null, 8, ["label", "model-value"])) : k("", !0)
1857
+ ], 64)) : k("", !0),
1858
1858
  d(v, {
1859
1859
  label: a(c)("report.section.datasource.axis.showY"),
1860
1860
  "label-placement": "right",
1861
- "model-value": i.value.showY ?? !0,
1862
- "onUpdate:modelValue": l[5] || (l[5] = (V) => i.value.showY = V)
1861
+ "model-value": n.value.showY ?? !0,
1862
+ "onUpdate:modelValue": l[5] || (l[5] = (V) => n.value.showY = V)
1863
1863
  }, null, 8, ["label", "model-value"]),
1864
- i.value.showY ?? !0 ? (y(), $(H, { key: 1 }, [
1865
- d(w, {
1864
+ n.value.showY ?? !0 ? (F(), D(H, { key: 1 }, [
1865
+ d(x, {
1866
1866
  label: a(c)("report.section.datasource.position.showPosition"),
1867
1867
  items: b,
1868
- "model-value": i.value.yPosition ?? "left",
1869
- "onUpdate:modelValue": l[6] || (l[6] = (V) => i.value.yPosition = V)
1868
+ "model-value": n.value.yPosition ?? "left",
1869
+ "onUpdate:modelValue": l[6] || (l[6] = (V) => n.value.yPosition = V)
1870
1870
  }, null, 8, ["label", "model-value"]),
1871
1871
  d(v, {
1872
1872
  label: a(c)("report.section.datasource.axis.showGrid"),
1873
1873
  "label-placement": "right",
1874
- "model-value": i.value.showYGrid ?? !1,
1875
- "onUpdate:modelValue": l[7] || (l[7] = (V) => i.value.showYGrid = V)
1874
+ "model-value": n.value.showYGrid ?? !1,
1875
+ "onUpdate:modelValue": l[7] || (l[7] = (V) => n.value.showYGrid = V)
1876
1876
  }, null, 8, ["label", "model-value"]),
1877
1877
  d(v, {
1878
1878
  label: a(c)("report.section.datasource.axis.showTick"),
1879
1879
  "label-placement": "right",
1880
- "model-value": i.value.showYTick ?? !0,
1881
- "onUpdate:modelValue": l[8] || (l[8] = (V) => i.value.showYTick = V)
1880
+ "model-value": n.value.showYTick ?? !0,
1881
+ "onUpdate:modelValue": l[8] || (l[8] = (V) => n.value.showYTick = V)
1882
1882
  }, null, 8, ["label", "model-value"]),
1883
- i.value.showYTick ?? !0 ? (y(), k(N, {
1883
+ n.value.showYTick ?? !0 ? (F(), C(U, {
1884
1884
  key: 0,
1885
1885
  label: a(c)("report.section.datasource.fontSize"),
1886
1886
  type: "number",
1887
- "model-value": i.value.yTickFontSize ?? 12,
1887
+ "model-value": n.value.yTickFontSize ?? 12,
1888
1888
  "onUpdate:modelValue": l[9] || (l[9] = (V) => {
1889
- i.value = { ...i.value, yTickFontSize: Number(V) };
1889
+ n.value = { ...n.value, yTickFontSize: Number(V) };
1890
1890
  })
1891
- }, null, 8, ["label", "model-value"])) : x("", !0)
1892
- ], 64)) : x("", !0)
1891
+ }, null, 8, ["label", "model-value"])) : k("", !0)
1892
+ ], 64)) : k("", !0)
1893
1893
  ], 64);
1894
1894
  };
1895
1895
  }
1896
- }), ql = { class: "legend-section space-y-2" }, Hl = /* @__PURE__ */ q({
1896
+ }), ql = { class: "legend-section space-y-2" }, Hl = /* @__PURE__ */ E({
1897
1897
  __name: "LegendSection",
1898
1898
  props: {
1899
1899
  model: {},
@@ -1901,65 +1901,65 @@ const gl = { class: "grow" }, yl = {
1901
1901
  },
1902
1902
  emits: ["update:model"],
1903
1903
  setup(m, { emit: r }) {
1904
- const e = m, p = r, { t: c } = Z(), i = T({
1904
+ const e = m, p = r, { t: c } = Z(), n = N({
1905
1905
  get: () => e.model,
1906
1906
  set: (f) => p("update:model", f)
1907
- }), g = [
1907
+ }), y = [
1908
1908
  { label: c("report.section.datasource.position.top"), value: "top" },
1909
1909
  { label: c("report.section.datasource.position.bottom"), value: "bottom" },
1910
1910
  { label: c("report.section.datasource.position.left"), value: "left" },
1911
1911
  { label: c("report.section.datasource.position.right"), value: "right" }
1912
- ], b = T({
1913
- get: () => i.value.showLegend !== void 0 ? i.value.showLegend : e.isCircularWidget === !0,
1912
+ ], b = N({
1913
+ get: () => n.value.showLegend !== void 0 ? n.value.showLegend : e.isCircularWidget === !0,
1914
1914
  set: (f) => {
1915
- i.value.showLegend = f;
1915
+ n.value.showLegend = f;
1916
1916
  }
1917
1917
  });
1918
1918
  return (f, l) => {
1919
- const v = h("FmSwitch"), w = h("FmSelect");
1920
- return y(), $("div", ql, [
1919
+ const v = h("FmSwitch"), x = h("FmSelect");
1920
+ return F(), D("div", ql, [
1921
1921
  d(v, {
1922
1922
  label: a(c)("report.section.datasource.legend.showLegend"),
1923
1923
  "label-placement": "right",
1924
1924
  "model-value": b.value ?? !1,
1925
- "onUpdate:modelValue": l[0] || (l[0] = (N) => b.value = N)
1925
+ "onUpdate:modelValue": l[0] || (l[0] = (U) => b.value = U)
1926
1926
  }, null, 8, ["label", "model-value"]),
1927
- b.value ? (y(), $(H, { key: 0 }, [
1928
- d(w, {
1927
+ b.value ? (F(), D(H, { key: 0 }, [
1928
+ d(x, {
1929
1929
  label: a(c)("report.section.datasource.position.showPosition"),
1930
- items: g,
1931
- "model-value": i.value.legendPosition ?? "top",
1932
- "onUpdate:modelValue": l[1] || (l[1] = (N) => i.value.legendPosition = N)
1930
+ items: y,
1931
+ "model-value": n.value.legendPosition ?? "top",
1932
+ "onUpdate:modelValue": l[1] || (l[1] = (U) => n.value.legendPosition = U)
1933
1933
  }, null, 8, ["label", "model-value"]),
1934
1934
  d(v, {
1935
1935
  label: a(c)("report.section.datasource.legend.usePointStyle"),
1936
1936
  "label-placement": "right",
1937
- "model-value": i.value.usePointStyle ?? !0,
1938
- "onUpdate:modelValue": l[2] || (l[2] = (N) => i.value.usePointStyle = N)
1937
+ "model-value": n.value.usePointStyle ?? !0,
1938
+ "onUpdate:modelValue": l[2] || (l[2] = (U) => n.value.usePointStyle = U)
1939
1939
  }, null, 8, ["label", "model-value"])
1940
- ], 64)) : x("", !0)
1940
+ ], 64)) : k("", !0)
1941
1941
  ]);
1942
1942
  };
1943
1943
  }
1944
- }), Yl = { class: "chart-size-section space-y-2" }, Gl = /* @__PURE__ */ q({
1944
+ }), Yl = { class: "chart-size-section space-y-2" }, Gl = /* @__PURE__ */ E({
1945
1945
  __name: "ChartSizeSection",
1946
1946
  props: {
1947
1947
  model: {}
1948
1948
  },
1949
1949
  emits: ["update:model"],
1950
1950
  setup(m, { emit: r }) {
1951
- const e = m, p = r, { t: c } = Z(), i = T({
1951
+ const e = m, p = r, { t: c } = Z(), n = N({
1952
1952
  get: () => e.model,
1953
- set: (g) => p("update:model", g)
1953
+ set: (y) => p("update:model", y)
1954
1954
  });
1955
- return (g, b) => {
1955
+ return (y, b) => {
1956
1956
  const f = h("FmTextField");
1957
- return y(), $("div", Yl, [
1957
+ return F(), D("div", Yl, [
1958
1958
  d(f, {
1959
1959
  type: "number",
1960
1960
  label: a(c)("report.section.datasource.chartHeight"),
1961
- "model-value": i.value.chartHeight,
1962
- "onUpdate:modelValue": b[0] || (b[0] = (l) => i.value.chartHeight = l === "" ? void 0 : Number(l)),
1961
+ "model-value": n.value.chartHeight,
1962
+ "onUpdate:modelValue": b[0] || (b[0] = (l) => n.value.chartHeight = l === "" ? void 0 : Number(l)),
1963
1963
  suffix: "px",
1964
1964
  min: "0",
1965
1965
  placeholder: "Auto"
@@ -1967,8 +1967,8 @@ const gl = { class: "grow" }, yl = {
1967
1967
  d(f, {
1968
1968
  type: "number",
1969
1969
  label: a(c)("report.section.datasource.chartWidth"),
1970
- "model-value": i.value.chartWidth,
1971
- "onUpdate:modelValue": b[1] || (b[1] = (l) => i.value.chartWidth = l === "" ? void 0 : Number(l)),
1970
+ "model-value": n.value.chartWidth,
1971
+ "onUpdate:modelValue": b[1] || (b[1] = (l) => n.value.chartWidth = l === "" ? void 0 : Number(l)),
1972
1972
  suffix: "px",
1973
1973
  min: "0",
1974
1974
  placeholder: "Auto"
@@ -1976,9 +1976,9 @@ const gl = { class: "grow" }, yl = {
1976
1976
  ]);
1977
1977
  };
1978
1978
  }
1979
- }), Se = /* @__PURE__ */ q({
1979
+ }), Se = /* @__PURE__ */ E({
1980
1980
  __name: "Datasource",
1981
- props: /* @__PURE__ */ X({
1981
+ props: /* @__PURE__ */ W({
1982
1982
  label: {
1983
1983
  type: String,
1984
1984
  default: "Label"
@@ -2005,37 +2005,37 @@ const gl = { class: "grow" }, yl = {
2005
2005
  modelValue: { required: !0 },
2006
2006
  modelModifiers: {}
2007
2007
  }),
2008
- emits: /* @__PURE__ */ X(["click-close"], ["update:modelValue"]),
2008
+ emits: /* @__PURE__ */ W(["click-close"], ["update:modelValue"]),
2009
2009
  setup(m, { emit: r }) {
2010
2010
  const e = le(m, "modelValue");
2011
- ce(
2011
+ ue(
2012
2012
  [() => e.value.dimensions, () => e.value.metrics],
2013
2013
  () => {
2014
- const { rowIds: F, columnIds: o } = we(e.value);
2015
- e.value.rowIds = F, e.value.columnIds = o;
2014
+ const { rowIds: g, columnIds: o } = we(e.value);
2015
+ e.value.rowIds = g, e.value.columnIds = o;
2016
2016
  },
2017
2017
  { deep: !0 }
2018
2018
  );
2019
- const p = m, c = r, { schemas: i } = ke(Ie()), { t: g, te: b } = Z(), f = T(() => !p.mainDatasourceConfig), l = T(
2020
- () => [D.BarChart, D.LineChart, D.Scorecard].includes(p.config.type)
2021
- ), v = T(() => {
2022
- const F = [...e.value.dimensions].filter((o) => !o.hide);
2023
- return F.sort(
2024
- (o, u) => (e.value.rowIds || []).indexOf(fe(o)) - (e.value.rowIds || []).indexOf(fe(u))
2025
- ), F;
2026
- }), w = T(() => p.config.type === D.Scorecard), N = T(
2019
+ const p = m, c = r, { schemas: n } = ke(Ie()), { t: y, te: b } = Z(), f = N(() => !p.mainDatasourceConfig), l = N(
2020
+ () => [M.BarChart, M.LineChart, M.Scorecard].includes(p.config.type)
2021
+ ), v = N(() => {
2022
+ const g = [...e.value.dimensions].filter((o) => !o.hide);
2023
+ return g.sort(
2024
+ (o, i) => (e.value.rowIds || []).indexOf(fe(o)) - (e.value.rowIds || []).indexOf(fe(i))
2025
+ ), g;
2026
+ }), x = N(() => p.config.type === M.Scorecard), U = N(
2027
2027
  () => {
2028
- var F;
2029
- return (((F = p.mainDatasourceConfig) == null ? void 0 : F.schemaNames) || []).reduce(
2030
- (o, u) => {
2031
- const n = i.value.find((t) => t.name === u);
2032
- return n && (o = [
2028
+ var g;
2029
+ return (((g = p.mainDatasourceConfig) == null ? void 0 : g.schemaNames) || []).reduce(
2030
+ (o, i) => {
2031
+ const u = n.value.find((t) => t.name === i);
2032
+ return u && (o = [
2033
2033
  ...o,
2034
- ...n.fields.map((t) => ({
2034
+ ...u.fields.map((t) => ({
2035
2035
  ...t,
2036
2036
  labels: [
2037
- Q(g, b, n.label, "schema"),
2038
- Q(g, b, t.label || t.name, "other")
2037
+ Q(y, b, u.label, "schema"),
2038
+ Q(y, b, t.label || t.name, "other")
2039
2039
  ]
2040
2040
  }))
2041
2041
  ]), o;
@@ -2043,47 +2043,47 @@ const gl = { class: "grow" }, yl = {
2043
2043
  []
2044
2044
  );
2045
2045
  }
2046
- ), V = T(
2047
- () => e.value.schemaNames.reduce((F, o) => {
2048
- const u = i.value.find((n) => n.name === o);
2049
- return u && (F = [
2050
- ...F,
2051
- ...u.fields.map((n) => ({
2052
- ...n,
2046
+ ), V = N(
2047
+ () => e.value.schemaNames.reduce((g, o) => {
2048
+ const i = n.value.find((u) => u.name === o);
2049
+ return i && (g = [
2050
+ ...g,
2051
+ ...i.fields.map((u) => ({
2052
+ ...u,
2053
2053
  labels: [
2054
- Q(g, b, u.label, "schema"),
2055
- Q(g, b, n.label || n.name, "other")
2054
+ Q(y, b, i.label, "schema"),
2055
+ Q(y, b, u.label || u.name, "other")
2056
2056
  ]
2057
2057
  }))
2058
- ]), F;
2058
+ ]), g;
2059
2059
  }, [])
2060
- ), B = T(() => [
2061
- { label: g("report.section.datasource.none"), value: null },
2062
- { label: g("report.section.datasource.grandTotal"), value: 0 },
2063
- ...[...v.value].slice(0, v.value.length - 1).map((F, o) => ({
2064
- label: Q(g, b, F.label, "other"),
2060
+ ), B = N(() => [
2061
+ { label: y("report.section.datasource.none"), value: null },
2062
+ { label: y("report.section.datasource.grandTotal"), value: 0 },
2063
+ ...[...v.value].slice(0, v.value.length - 1).map((g, o) => ({
2064
+ label: Q(y, b, g.label, "other"),
2065
2065
  value: o + 1
2066
2066
  }))
2067
- ]), U = T(() => p.config.type === D.Circular);
2068
- return (F, o) => {
2069
- const u = h("FmButton"), n = h("FmSwitch"), t = h("FmSelect");
2070
- return y(), k(Fe, null, {
2067
+ ]), w = N(() => p.config.type === M.Circular);
2068
+ return (g, o) => {
2069
+ const i = h("FmButton"), u = h("FmSwitch"), t = h("FmSelect");
2070
+ return F(), C(Fe, null, {
2071
2071
  header: S(() => [
2072
- C("p", null, I(p.label), 1),
2073
- o[22] || (o[22] = C("div", { class: "grow" }, null, -1)),
2074
- p.closeable ? (y(), k(u, {
2072
+ _("p", null, I(p.label), 1),
2073
+ o[22] || (o[22] = _("div", { class: "grow" }, null, -1)),
2074
+ p.closeable ? (F(), C(i, {
2075
2075
  key: 0,
2076
2076
  icon: "close",
2077
2077
  variant: "tertiary",
2078
2078
  size: "md",
2079
2079
  onClick: o[0] || (o[0] = te((s) => c("click-close"), ["stop"]))
2080
- })) : x("", !0)
2080
+ })) : k("", !0)
2081
2081
  ]),
2082
2082
  content: S(() => [
2083
2083
  d(al, {
2084
2084
  modelValue: e.value,
2085
2085
  "onUpdate:modelValue": o[1] || (o[1] = (s) => e.value = s),
2086
- label: a(g)("report.section.schema.title")
2086
+ label: a(y)("report.section.schema.title")
2087
2087
  }, null, 8, ["modelValue", "label"]),
2088
2088
  d(ye, {
2089
2089
  modelValue: e.value.dimensions,
@@ -2096,98 +2096,98 @@ const gl = { class: "grow" }, yl = {
2096
2096
  e.value = s;
2097
2097
  })
2098
2098
  }, null, 8, ["modelValue", "options", "config", "max"]),
2099
- d(n, {
2099
+ d(u, {
2100
2100
  "label-placement": "right",
2101
- label: a(g)("report.section.datasource.comparable"),
2101
+ label: a(y)("report.section.datasource.comparable"),
2102
2102
  "model-value": e.value.isComparable ?? !1,
2103
2103
  "onUpdate:modelValue": o[4] || (o[4] = (s) => {
2104
2104
  e.value.isComparable = s;
2105
2105
  })
2106
2106
  }, null, 8, ["label", "model-value"]),
2107
- l.value ? (y(), k(n, {
2107
+ l.value ? (F(), C(u, {
2108
2108
  key: 0,
2109
2109
  "label-placement": "right",
2110
- label: a(g)("report.section.datasource.cumulative"),
2110
+ label: a(y)("report.section.datasource.cumulative"),
2111
2111
  "model-value": e.value.isCumulative ?? !1,
2112
2112
  "onUpdate:modelValue": o[5] || (o[5] = (s) => {
2113
2113
  e.value.isCumulative = s;
2114
2114
  })
2115
- }, null, 8, ["label", "model-value"])) : x("", !0),
2116
- p.config.isDrillConfigurable && f.value ? (y(), k(n, {
2115
+ }, null, 8, ["label", "model-value"])) : k("", !0),
2116
+ p.config.isDrillConfigurable && f.value ? (F(), C(u, {
2117
2117
  key: 1,
2118
- label: a(g)("report.section.datasource.drill"),
2118
+ label: a(y)("report.section.datasource.drill"),
2119
2119
  "label-placement": "right",
2120
2120
  "model-value": e.value.isDrillable ?? !1,
2121
2121
  "onUpdate:modelValue": o[6] || (o[6] = (s) => {
2122
2122
  e.value.isDrillable = s;
2123
2123
  })
2124
- }, null, 8, ["label", "model-value"])) : x("", !0),
2125
- p.config.canRollup && f.value ? (y(), k(t, {
2124
+ }, null, 8, ["label", "model-value"])) : k("", !0),
2125
+ p.config.canRollup && f.value ? (F(), C(t, {
2126
2126
  key: 2,
2127
2127
  modelValue: e.value.rollup,
2128
2128
  "onUpdate:modelValue": o[7] || (o[7] = (s) => e.value.rollup = s),
2129
- label: a(g)("report.section.datasource.subTotal"),
2129
+ label: a(y)("report.section.datasource.subTotal"),
2130
2130
  items: B.value
2131
- }, null, 8, ["modelValue", "label", "items"])) : x("", !0),
2132
- p.config.canTranspose && f.value ? (y(), k(n, {
2131
+ }, null, 8, ["modelValue", "label", "items"])) : k("", !0),
2132
+ p.config.canTranspose && f.value ? (F(), C(u, {
2133
2133
  key: 3,
2134
2134
  modelValue: e.value.isTransposed,
2135
2135
  "onUpdate:modelValue": o[8] || (o[8] = (s) => e.value.isTransposed = s),
2136
- label: a(g)("report.section.datasource.transpose"),
2136
+ label: a(y)("report.section.datasource.transpose"),
2137
2137
  "label-placement": "right"
2138
- }, null, 8, ["modelValue", "label"])) : x("", !0),
2138
+ }, null, 8, ["modelValue", "label"])) : k("", !0),
2139
2139
  d(El, {
2140
2140
  model: e.value,
2141
2141
  "onUpdate:model": o[9] || (o[9] = (s) => e.value = s)
2142
2142
  }, null, 8, ["model"]),
2143
- p.config.hasChart ? (y(), k(Gl, {
2143
+ p.config.hasChart ? (F(), C(Gl, {
2144
2144
  key: 4,
2145
2145
  model: e.value,
2146
2146
  "onUpdate:model": o[10] || (o[10] = (s) => e.value = s)
2147
- }, null, 8, ["model"])) : x("", !0),
2148
- p.config.hasLabel ? (y(), k(Pl, {
2147
+ }, null, 8, ["model"])) : k("", !0),
2148
+ p.config.hasLabel ? (F(), C(Pl, {
2149
2149
  key: 5,
2150
2150
  model: e.value,
2151
2151
  "onUpdate:model": o[11] || (o[11] = (s) => e.value = s)
2152
- }, null, 8, ["model"])) : x("", !0),
2153
- p.config.hasLegend ? (y(), k(Hl, {
2152
+ }, null, 8, ["model"])) : k("", !0),
2153
+ p.config.hasLegend ? (F(), C(Hl, {
2154
2154
  key: 6,
2155
2155
  model: e.value,
2156
- "is-circular-widget": U.value,
2156
+ "is-circular-widget": w.value,
2157
2157
  "onUpdate:model": o[12] || (o[12] = (s) => e.value = s)
2158
- }, null, 8, ["model", "is-circular-widget"])) : x("", !0),
2159
- p.config.hasXy ? (y(), k(zl, {
2158
+ }, null, 8, ["model", "is-circular-widget"])) : k("", !0),
2159
+ p.config.hasXy ? (F(), C(zl, {
2160
2160
  key: 7,
2161
2161
  model: e.value,
2162
2162
  "onUpdate:model": o[13] || (o[13] = (s) => e.value = s)
2163
- }, null, 8, ["model"])) : x("", !0),
2164
- p.config.hasBreakdownDimension ? (y(), k(ye, {
2163
+ }, null, 8, ["model"])) : k("", !0),
2164
+ p.config.hasBreakdownDimension ? (F(), C(ye, {
2165
2165
  key: 8,
2166
2166
  "model-value": e.value.breakdownDimension ? [e.value.breakdownDimension] : [],
2167
- label: a(g)("report.section.dimension.breakdownDimension"),
2167
+ label: a(y)("report.section.dimension.breakdownDimension"),
2168
2168
  max: 1,
2169
2169
  options: V.value,
2170
2170
  "onUpdate:modelValue": o[14] || (o[14] = (s) => {
2171
2171
  e.value.breakdownDimension = s[0];
2172
2172
  })
2173
- }, null, 8, ["model-value", "label", "options"])) : x("", !0),
2174
- w.value ? (y(), k(ye, {
2173
+ }, null, 8, ["model-value", "label", "options"])) : k("", !0),
2174
+ x.value ? (F(), C(ye, {
2175
2175
  key: 9,
2176
2176
  "model-value": e.value.sparklineDimension ? [e.value.sparklineDimension] : [],
2177
- label: a(g)("report.section.dimension.sparklineDimension"),
2177
+ label: a(y)("report.section.dimension.sparklineDimension"),
2178
2178
  max: 1,
2179
2179
  options: V.value,
2180
2180
  "onUpdate:modelValue": o[15] || (o[15] = (s) => {
2181
2181
  e.value.sparklineDimension = s[0];
2182
2182
  })
2183
- }, null, 8, ["model-value", "label", "options"])) : x("", !0),
2183
+ }, null, 8, ["model-value", "label", "options"])) : k("", !0),
2184
2184
  d(vl, {
2185
2185
  modelValue: e.value.metrics,
2186
2186
  "onUpdate:modelValue": o[16] || (o[16] = (s) => e.value.metrics = s),
2187
2187
  options: V.value,
2188
2188
  max: p.config.maxMetric,
2189
2189
  config: e.value,
2190
- "has-row-column": p.config.type === a(D).Table,
2190
+ "has-row-column": p.config.type === a(M).Table,
2191
2191
  onConfig: o[17] || (o[17] = (s) => {
2192
2192
  e.value = s;
2193
2193
  })
@@ -2206,21 +2206,21 @@ const gl = { class: "grow" }, yl = {
2206
2206
  modelValue: e.value.limit,
2207
2207
  "onUpdate:modelValue": o[20] || (o[20] = (s) => e.value.limit = s)
2208
2208
  }, null, 8, ["modelValue"]),
2209
- e.value.conditions ? (y(), k(Ml, {
2209
+ e.value.conditions ? (F(), C(Ml, {
2210
2210
  key: 10,
2211
2211
  modelValue: e.value.conditions,
2212
2212
  "onUpdate:modelValue": o[21] || (o[21] = (s) => e.value.conditions = s),
2213
2213
  "join-field-options": V.value,
2214
- "main-field-options": N.value
2215
- }, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : x("", !0)
2214
+ "main-field-options": U.value
2215
+ }, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : k("", !0)
2216
2216
  ]),
2217
2217
  _: 1
2218
2218
  });
2219
2219
  };
2220
2220
  }
2221
- }), Wl = { class: "fm-typo-en-title-sm-600" }, xe = /* @__PURE__ */ q({
2221
+ }), Xl = { class: "fm-typo-en-title-sm-600" }, xe = /* @__PURE__ */ E({
2222
2222
  __name: "TileEditorTabHeader",
2223
- props: /* @__PURE__ */ X({
2223
+ props: /* @__PURE__ */ W({
2224
2224
  icon: {
2225
2225
  type: String,
2226
2226
  required: !0
@@ -2232,21 +2232,21 @@ const gl = { class: "grow" }, yl = {
2232
2232
  emits: ["update:modelValue"],
2233
2233
  setup(m) {
2234
2234
  const { t: r } = Z(), e = le(m, "modelValue"), p = m;
2235
- return (c, i) => {
2236
- const g = h("FmIcon");
2237
- return y(), $("div", {
2235
+ return (c, n) => {
2236
+ const y = h("FmIcon");
2237
+ return F(), D("div", {
2238
2238
  class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
2239
- onClick: i[0] || (i[0] = (b) => e.value = !e.value)
2239
+ onClick: n[0] || (n[0] = (b) => e.value = !e.value)
2240
2240
  }, [
2241
- C("p", Wl, I(a(r)("report.tile.setting")), 1),
2242
- i[1] || (i[1] = C("div", { class: "grow" }, null, -1)),
2243
- d(g, {
2241
+ _("p", Xl, I(a(r)("report.tile.setting")), 1),
2242
+ n[1] || (n[1] = _("div", { class: "grow" }, null, -1)),
2243
+ d(y, {
2244
2244
  name: p.icon
2245
2245
  }, null, 8, ["name"])
2246
2246
  ]);
2247
2247
  };
2248
2248
  }
2249
- }), Xl = /* @__PURE__ */ q({
2249
+ }), Jl = /* @__PURE__ */ E({
2250
2250
  __name: "TileEditorTabDesktop",
2251
2251
  props: {
2252
2252
  modelValue: { required: !0, default: !1 },
@@ -2255,7 +2255,7 @@ const gl = { class: "grow" }, yl = {
2255
2255
  emits: ["update:modelValue"],
2256
2256
  setup(m) {
2257
2257
  const r = le(m, "modelValue");
2258
- return (e, p) => (y(), $(H, null, [
2258
+ return (e, p) => (F(), D(H, null, [
2259
2259
  d(xe, {
2260
2260
  modelValue: r.value,
2261
2261
  "onUpdate:modelValue": p[0] || (p[0] = (c) => r.value = c),
@@ -2264,7 +2264,7 @@ const gl = { class: "grow" }, yl = {
2264
2264
  Ue(e.$slots, "default")
2265
2265
  ], 64));
2266
2266
  }
2267
- }), Jl = { class: "fixed bottom-0 w-full" }, Kl = /* @__PURE__ */ q({
2267
+ }), Wl = { class: "fixed bottom-0 w-full" }, Kl = /* @__PURE__ */ E({
2268
2268
  __name: "TileEditorTabMobile",
2269
2269
  props: {
2270
2270
  modelValue: { required: !0, default: !1 },
@@ -2275,33 +2275,33 @@ const gl = { class: "grow" }, yl = {
2275
2275
  const r = le(m, "modelValue");
2276
2276
  return (e, p) => {
2277
2277
  const c = h("FmTopSheet");
2278
- return y(), $("div", Jl, [
2278
+ return F(), D("div", Wl, [
2279
2279
  d(xe, {
2280
2280
  modelValue: r.value,
2281
- "onUpdate:modelValue": p[0] || (p[0] = (i) => r.value = i),
2281
+ "onUpdate:modelValue": p[0] || (p[0] = (n) => r.value = n),
2282
2282
  icon: "keyboard_double_arrow_up"
2283
2283
  }, null, 8, ["modelValue"]),
2284
2284
  d(c, {
2285
2285
  modelValue: r.value,
2286
- "onUpdate:modelValue": p[2] || (p[2] = (i) => r.value = i),
2286
+ "onUpdate:modelValue": p[2] || (p[2] = (n) => r.value = n),
2287
2287
  "fullscreen-size": "sm"
2288
2288
  }, {
2289
2289
  default: S(() => [
2290
2290
  d(xe, {
2291
2291
  modelValue: r.value,
2292
- "onUpdate:modelValue": p[1] || (p[1] = (i) => r.value = i),
2292
+ "onUpdate:modelValue": p[1] || (p[1] = (n) => r.value = n),
2293
2293
  icon: "keyboard_double_arrow_down"
2294
2294
  }, null, 8, ["modelValue"]),
2295
- r.value ? Ue(e.$slots, "default", { key: 0 }) : x("", !0)
2295
+ r.value ? Ue(e.$slots, "default", { key: 0 }) : k("", !0)
2296
2296
  ]),
2297
2297
  _: 3
2298
2298
  }, 8, ["modelValue"])
2299
2299
  ]);
2300
2300
  };
2301
2301
  }
2302
- }), Ql = { class: "h-[40x]" }, Me = /* @__PURE__ */ q({
2302
+ }), Ql = { class: "h-[40x]" }, Me = /* @__PURE__ */ E({
2303
2303
  __name: "TileEditorTab",
2304
- props: /* @__PURE__ */ X({
2304
+ props: /* @__PURE__ */ W({
2305
2305
  hideConfiguration: {
2306
2306
  type: Boolean,
2307
2307
  default: !1
@@ -2312,113 +2312,97 @@ const gl = { class: "grow" }, yl = {
2312
2312
  },
2313
2313
  modelModifiers: {}
2314
2314
  }),
2315
- emits: /* @__PURE__ */ X(["hideConfiguration"], ["update:modelValue"]),
2315
+ emits: /* @__PURE__ */ W(["hideConfiguration"], ["update:modelValue"]),
2316
2316
  setup(m, { emit: r }) {
2317
- const e = le(m, "modelValue"), { breakpoints: p } = Le(), c = m, { promptMessage: i } = $e(), g = r, { t: b } = Z();
2318
- function f(o) {
2319
- e.value = rl(o);
2317
+ const e = le(m, "modelValue"), { breakpoints: p } = Le(), c = m, { promptMessage: n } = $e(), y = r, { t: b } = Z();
2318
+ function f(w) {
2319
+ e.value = rl(w);
2320
2320
  }
2321
2321
  function l() {
2322
- const o = [...e.value.widget.config.joinDatasources || []];
2323
- o.push({ ...Ye(e.value.widget.type), conditions: [] }), f({
2322
+ const w = [...e.value.widget.config.joinDatasources || []];
2323
+ w.push({ ...Ye(e.value.widget.type), conditions: [] }), f({
2324
2324
  ...e.value,
2325
2325
  widget: {
2326
2326
  ...e.value.widget,
2327
2327
  config: {
2328
2328
  ...e.value.widget.config,
2329
- joinDatasources: o
2329
+ joinDatasources: w
2330
2330
  }
2331
2331
  }
2332
2332
  });
2333
2333
  }
2334
- async function v(o) {
2335
- if (!await i({
2334
+ async function v(w) {
2335
+ if (!await n({
2336
2336
  title: b("report.tile.datasource.remove"),
2337
- message: b("report.tile.datasource.confirmRemove", { index: o + 1 })
2337
+ message: b("report.tile.datasource.confirmRemove", { index: w + 1 })
2338
2338
  })) return;
2339
- const n = [...e.value.widget.config.joinDatasources || []];
2340
- n.splice(o, 1), f({
2339
+ const o = [...e.value.widget.config.joinDatasources || []];
2340
+ o.splice(w, 1), f({
2341
2341
  ...e.value,
2342
2342
  widget: {
2343
2343
  ...e.value.widget,
2344
2344
  config: {
2345
2345
  ...e.value.widget.config,
2346
- joinDatasources: n
2346
+ joinDatasources: o
2347
2347
  }
2348
2348
  }
2349
2349
  });
2350
2350
  }
2351
- const w = (o, u) => {
2352
- let n = 1, t = 1;
2353
- switch (o) {
2354
- case D.Scorecard:
2355
- n = 1, t = 2;
2351
+ const x = (w, g) => {
2352
+ let o = 1, i = 1;
2353
+ switch (w) {
2354
+ case M.Scorecard:
2355
+ o = 1, i = 2;
2356
2356
  break;
2357
- case D.BarChart:
2358
- case D.StackBarChart:
2359
- case D.LineChart:
2360
- case D.StackLineChart:
2361
- n = 4, t = 6;
2357
+ case M.BarChart:
2358
+ case M.StackBarChart:
2359
+ case M.LineChart:
2360
+ case M.StackLineChart:
2361
+ o = 4, i = 6;
2362
2362
  break;
2363
- case D.Table:
2364
- n = 4, t = 12;
2363
+ case M.Table:
2364
+ o = 4, i = 12;
2365
2365
  break;
2366
- case D.Circular:
2367
- n = 4, t = 4;
2366
+ case M.Circular:
2367
+ o = 4, i = 4;
2368
2368
  break;
2369
- case D.Spacer:
2370
- n = 0, t = 12;
2369
+ case M.Spacer:
2370
+ o = 0, i = 12;
2371
2371
  break;
2372
2372
  }
2373
2373
  return {
2374
2374
  size: {
2375
- height: n,
2376
- width: t
2375
+ height: o,
2376
+ width: i
2377
2377
  },
2378
2378
  widget: {
2379
- ...u.widget,
2380
- type: o
2379
+ ...g.widget,
2380
+ type: w
2381
2381
  }
2382
2382
  };
2383
- }, N = T(
2384
- () => _e.find((o) => o.type === e.value.widget.type)
2385
- ), V = T(() => e.value.widget.config.joinDatasources), B = T(() => {
2386
- switch (e.value.widget.type) {
2387
- case D.Table:
2388
- case D.BarChart:
2389
- case D.LineChart:
2390
- case D.StackBarChart:
2391
- case D.StackLineChart:
2392
- case D.Circular:
2393
- return 4;
2394
- case D.Scorecard:
2395
- return 2;
2396
- default:
2397
- return 1;
2383
+ }, U = N(
2384
+ () => _e.find((w) => w.type === e.value.widget.type)
2385
+ ), V = N(() => e.value.widget.config.joinDatasources), B = Oe((w) => {
2386
+ e.value.widget.title = w;
2387
+ }, 500);
2388
+ return ue(
2389
+ () => e.value.size.height,
2390
+ (w) => {
2391
+ w < 1 && (e.value.size.height = 1), w > 12 && (e.value.size.height = 12);
2398
2392
  }
2399
- }), U = T(() => {
2400
- switch (e.value.widget.type) {
2401
- case D.Table:
2402
- case D.BarChart:
2403
- case D.LineChart:
2404
- case D.StackBarChart:
2405
- case D.StackLineChart:
2406
- case D.Circular:
2407
- return 4;
2408
- default:
2409
- return 1;
2393
+ ), ue(
2394
+ () => e.value.size.width,
2395
+ (w) => {
2396
+ w < 1 && (e.value.size.width = 1), w > 12 && (e.value.size.width = 12);
2410
2397
  }
2411
- }), F = Oe((o) => {
2412
- e.value.widget.title = o;
2413
- }, 500);
2414
- return (o, u) => {
2415
- const n = h("FmCircularProgress"), t = h("FmTextField"), s = h("FmTextarea"), O = h("FmStepperField"), P = h("FmButton"), J = h("FmForm");
2416
- return y(), k(Ne(a(p).lg || a(p).md ? Xl : Kl), {
2398
+ ), (w, g) => {
2399
+ const o = h("FmCircularProgress"), i = h("FmTextField"), u = h("FmTextarea"), t = h("FmStepperField"), s = h("FmButton"), $ = h("FmForm");
2400
+ return F(), C(Ne(a(p).lg || a(p).md ? Jl : Kl), {
2417
2401
  "model-value": c.hideConfiguration,
2418
- "onUpdate:modelValue": u[6] || (u[6] = (R) => g("hideConfiguration", R))
2402
+ "onUpdate:modelValue": g[6] || (g[6] = (O) => y("hideConfiguration", O))
2419
2403
  }, {
2420
2404
  default: S(() => [
2421
- e.value ? (y(), k(J, {
2405
+ e.value ? (F(), C($, {
2422
2406
  key: 1,
2423
2407
  ref: "form",
2424
2408
  class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
@@ -2426,50 +2410,50 @@ const gl = { class: "grow" }, yl = {
2426
2410
  default: S(() => [
2427
2411
  d(Fe, null, {
2428
2412
  header: S(() => [
2429
- C("p", null, I(a(b)("report.tile.widget.details")), 1),
2430
- u[7] || (u[7] = C("div", { class: "grow" }, null, -1))
2413
+ _("p", null, I(a(b)("report.tile.widget.details")), 1),
2414
+ g[7] || (g[7] = _("div", { class: "grow" }, null, -1))
2431
2415
  ]),
2432
2416
  content: S(() => [
2433
- d(t, {
2417
+ d(i, {
2434
2418
  "model-value": e.value.widget.title,
2435
2419
  label: a(b)("report.tile.widget.title"),
2436
2420
  placeholder: a(b)("report.tile.widget.titlePlaceholder"),
2437
- "onUpdate:modelValue": a(F)
2421
+ "onUpdate:modelValue": a(B)
2438
2422
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2439
- d(s, {
2423
+ d(u, {
2440
2424
  modelValue: e.value.widget.description,
2441
- "onUpdate:modelValue": u[0] || (u[0] = (R) => e.value.widget.description = R),
2425
+ "onUpdate:modelValue": g[0] || (g[0] = (O) => e.value.widget.description = O),
2442
2426
  disabled: e.value.widget.title === "",
2443
2427
  label: a(b)("report.tile.widget.description"),
2444
2428
  placeholder: a(b)("report.tile.widget.descriptionPlaceholder"),
2445
2429
  "helper-text": a(b)("report.tile.widget.descriptionHelper")
2446
2430
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "helper-text"]),
2447
- C("div", {
2431
+ _("div", {
2448
2432
  class: De(["flex flex-row", `${a(p).sm || a(p).xs ? "gap-16" : "gap-2"}`])
2449
2433
  }, [
2450
- d(O, {
2434
+ d(t, {
2451
2435
  modelValue: e.value.size.width,
2452
- "onUpdate:modelValue": u[1] || (u[1] = (R) => e.value.size.width = R),
2436
+ "onUpdate:modelValue": g[1] || (g[1] = (O) => e.value.size.width = O),
2453
2437
  label: a(b)("report.tile.widget.width"),
2454
- min: B.value,
2438
+ min: 1,
2455
2439
  max: 12
2456
- }, null, 8, ["modelValue", "label", "min"]),
2457
- d(O, {
2440
+ }, null, 8, ["modelValue", "label"]),
2441
+ d(t, {
2458
2442
  modelValue: e.value.size.height,
2459
- "onUpdate:modelValue": u[2] || (u[2] = (R) => e.value.size.height = R),
2443
+ "onUpdate:modelValue": g[2] || (g[2] = (O) => e.value.size.height = O),
2460
2444
  label: a(b)("report.tile.widget.height"),
2461
- min: U.value,
2445
+ min: 1,
2462
2446
  max: 12,
2463
- disabled: e.value.widget.type === a(D).Scorecard
2464
- }, null, 8, ["modelValue", "label", "min", "disabled"])
2447
+ disabled: e.value.widget.type === a(M).Scorecard
2448
+ }, null, 8, ["modelValue", "label", "disabled"])
2465
2449
  ], 2)
2466
2450
  ]),
2467
2451
  _: 1
2468
2452
  }),
2469
2453
  d(Fe, null, {
2470
2454
  header: S(() => [
2471
- C("p", null, I(a(b)("report.tile.widget.type")), 1),
2472
- u[8] || (u[8] = C("div", { class: "grow" }, null, -1))
2455
+ _("p", null, I(a(b)("report.tile.widget.type")), 1),
2456
+ g[8] || (g[8] = _("div", { class: "grow" }, null, -1))
2473
2457
  ]),
2474
2458
  content: S(() => [
2475
2459
  d(He, {
@@ -2477,31 +2461,31 @@ const gl = { class: "grow" }, yl = {
2477
2461
  "model-value": e.value.widget.type,
2478
2462
  class: "grid grid-cols-1 gap-2",
2479
2463
  "child-class": "flex flex-row p-[8px] gap-2",
2480
- "exclude-widge-type": [a(D).Spacer],
2481
- "onUpdate:modelValue": u[3] || (u[3] = (R) => e.value = w(R, e.value))
2464
+ "exclude-widge-type": [a(M).Spacer],
2465
+ "onUpdate:modelValue": g[3] || (g[3] = (O) => e.value = x(O, e.value))
2482
2466
  }, null, 8, ["model-value", "exclude-widge-type"])
2483
2467
  ]),
2484
2468
  _: 1
2485
2469
  }),
2486
2470
  d(Se, {
2487
2471
  modelValue: e.value.widget.config,
2488
- "onUpdate:modelValue": u[4] || (u[4] = (R) => e.value.widget.config = R),
2472
+ "onUpdate:modelValue": g[4] || (g[4] = (O) => e.value.widget.config = O),
2489
2473
  label: a(b)("report.tile.datasource.main"),
2490
- config: N.value
2474
+ config: U.value
2491
2475
  }, null, 8, ["modelValue", "label", "config"]),
2492
- V.value ? (y(!0), $(H, { key: 0 }, de(V.value, (R, A) => (y(), $("div", { key: A }, [
2476
+ V.value ? (F(!0), D(H, { key: 0 }, ce(V.value, (O, P) => (F(), D("div", { key: P }, [
2493
2477
  d(Se, {
2494
- modelValue: V.value[A],
2495
- "onUpdate:modelValue": (z) => V.value[A] = z,
2496
- label: a(b)("report.tile.datasource.join", { index: A + 1 }),
2497
- config: N.value,
2478
+ modelValue: V.value[P],
2479
+ "onUpdate:modelValue": (z) => V.value[P] = z,
2480
+ label: a(b)("report.tile.datasource.join", { index: P + 1 }),
2481
+ config: U.value,
2498
2482
  "main-datasource-config": e.value.widget.config,
2499
2483
  closeable: !0,
2500
- onClickClose: (z) => v(A)
2484
+ onClickClose: (z) => v(P)
2501
2485
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
2502
- ]))), 128)) : x("", !0),
2503
- C("div", Ql, [
2504
- d(P, {
2486
+ ]))), 128)) : k("", !0),
2487
+ _("div", Ql, [
2488
+ d(s, {
2505
2489
  label: a(b)("report.tile.datasource.joinButton"),
2506
2490
  variant: "secondary",
2507
2491
  icon: "add",
@@ -2509,12 +2493,12 @@ const gl = { class: "grow" }, yl = {
2509
2493
  "border-color": a(ve).ColorPrimary,
2510
2494
  "text-color": a(ve).ColorPrimary,
2511
2495
  class: "w-full",
2512
- onClick: u[5] || (u[5] = (R) => l())
2496
+ onClick: g[5] || (g[5] = (O) => l())
2513
2497
  }, null, 8, ["label", "border-color", "text-color"])
2514
2498
  ])
2515
2499
  ]),
2516
2500
  _: 1
2517
- }, 512)) : (y(), k(n, { key: 0 }))
2501
+ }, 512)) : (F(), C(o, { key: 0 }))
2518
2502
  ]),
2519
2503
  _: 1
2520
2504
  }, 8, ["model-value"]);
@@ -2523,9 +2507,9 @@ const gl = { class: "grow" }, yl = {
2523
2507
  }), Zl = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[400px]" }, eo = { class: "flex bg-fm-color-neutral-white w-[88px]" }, lo = { class: "w-full overflow-y-auto" }, oo = {
2524
2508
  class: "grid grid-cols-12 w-full p-24",
2525
2509
  style: { backgroundColor: "#F6F8FC" }
2526
- }, ao = /* @__PURE__ */ q({
2510
+ }, ao = /* @__PURE__ */ E({
2527
2511
  __name: "TileEditorDesktop",
2528
- props: /* @__PURE__ */ X({
2512
+ props: /* @__PURE__ */ W({
2529
2513
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
2530
2514
  index: { type: Number, required: !0, default: 0 }
2531
2515
  }, {
@@ -2534,36 +2518,36 @@ const gl = { class: "grow" }, yl = {
2534
2518
  },
2535
2519
  modelModifiers: {}
2536
2520
  }),
2537
- emits: /* @__PURE__ */ X(["hideConfiguration"], ["update:modelValue"]),
2521
+ emits: /* @__PURE__ */ W(["hideConfiguration"], ["update:modelValue"]),
2538
2522
  setup(m, { emit: r }) {
2539
- const e = le(m, "modelValue"), p = m, c = T(
2540
- () => _e.find((g) => {
2523
+ const e = le(m, "modelValue"), p = m, c = N(
2524
+ () => _e.find((y) => {
2541
2525
  var b;
2542
- return g.type === ((b = e.value) == null ? void 0 : b.widget.type);
2526
+ return y.type === ((b = e.value) == null ? void 0 : b.widget.type);
2543
2527
  })
2544
- ), i = r;
2545
- return (g, b) => {
2528
+ ), n = r;
2529
+ return (y, b) => {
2546
2530
  const f = h("FmCircularProgress"), l = h("FmButton");
2547
- return y(), $("div", null, [
2548
- e.value ? (y(), $(H, { key: 1 }, [
2531
+ return F(), D("div", null, [
2532
+ e.value ? (F(), D(H, { key: 1 }, [
2549
2533
  d(Ge, {
2550
2534
  "model-value": !m.hideConfiguration
2551
2535
  }, {
2552
2536
  right: S(() => [
2553
- C("div", Zl, [
2537
+ _("div", Zl, [
2554
2538
  d(Me, {
2555
2539
  modelValue: e.value,
2556
2540
  "onUpdate:modelValue": b[0] || (b[0] = (v) => e.value = v),
2557
2541
  config: c.value,
2558
2542
  "hide-configuration": m.hideConfiguration,
2559
2543
  onHideConfiguration: b[1] || (b[1] = (v) => {
2560
- i("hideConfiguration", v);
2544
+ n("hideConfiguration", v);
2561
2545
  })
2562
2546
  }, null, 8, ["modelValue", "config", "hide-configuration"])
2563
2547
  ])
2564
2548
  ]),
2565
2549
  left: S(() => [
2566
- C("div", eo, [
2550
+ _("div", eo, [
2567
2551
  d(l, {
2568
2552
  variant: "secondary",
2569
2553
  icon: "keyboard_double_arrow_right",
@@ -2571,32 +2555,32 @@ const gl = { class: "grow" }, yl = {
2571
2555
  "text-color": a(ve).ColorPrimary,
2572
2556
  class: "m-24 my-16",
2573
2557
  size: "md",
2574
- onClick: b[2] || (b[2] = (v) => i("hideConfiguration", !p.hideConfiguration))
2558
+ onClick: b[2] || (b[2] = (v) => n("hideConfiguration", !p.hideConfiguration))
2575
2559
  }, null, 8, ["border-color", "text-color"])
2576
2560
  ])
2577
2561
  ]),
2578
2562
  _: 1
2579
2563
  }, 8, ["model-value"]),
2580
- C("div", lo, [
2581
- C("div", oo, [
2582
- e.value ? (y(), k(Be, {
2564
+ _("div", lo, [
2565
+ _("div", oo, [
2566
+ e.value ? (F(), C(Be, {
2583
2567
  key: 0,
2584
2568
  "model-value": e.value,
2585
2569
  index: p.index,
2586
2570
  "hide-export": !0
2587
- }, null, 8, ["model-value", "index"])) : (y(), k(Re, { key: 1 }))
2571
+ }, null, 8, ["model-value", "index"])) : (F(), C(Re, { key: 1 }))
2588
2572
  ])
2589
2573
  ])
2590
- ], 64)) : (y(), k(f, { key: 0 }))
2574
+ ], 64)) : (F(), C(f, { key: 0 }))
2591
2575
  ]);
2592
2576
  };
2593
2577
  }
2594
2578
  }), to = {
2595
2579
  key: 0,
2596
2580
  class: "flex w-full justify-center items-center"
2597
- }, no = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, uo = /* @__PURE__ */ q({
2581
+ }, no = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, uo = /* @__PURE__ */ E({
2598
2582
  __name: "TileEditorMobile",
2599
- props: /* @__PURE__ */ X({
2583
+ props: /* @__PURE__ */ W({
2600
2584
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
2601
2585
  index: { type: Number, required: !0, default: 0 }
2602
2586
  }, {
@@ -2605,25 +2589,25 @@ const gl = { class: "grow" }, yl = {
2605
2589
  },
2606
2590
  modelModifiers: {}
2607
2591
  }),
2608
- emits: /* @__PURE__ */ X(["hideConfiguration"], ["update:modelValue"]),
2592
+ emits: /* @__PURE__ */ W(["hideConfiguration"], ["update:modelValue"]),
2609
2593
  setup(m, { emit: r }) {
2610
- const e = le(m, "modelValue"), p = m, c = T(
2611
- () => _e.find((g) => {
2594
+ const e = le(m, "modelValue"), p = m, c = N(
2595
+ () => _e.find((y) => {
2612
2596
  var b;
2613
- return g.type === ((b = e.value) == null ? void 0 : b.widget.type);
2597
+ return y.type === ((b = e.value) == null ? void 0 : b.widget.type);
2614
2598
  })
2615
- ), i = r;
2616
- return (g, b) => {
2599
+ ), n = r;
2600
+ return (y, b) => {
2617
2601
  const f = h("FmCircularProgress");
2618
- return y(), $("div", null, [
2619
- e.value ? (y(), $(H, { key: 1 }, [
2620
- C("div", no, [
2621
- e.value ? (y(), k(Be, {
2602
+ return F(), D("div", null, [
2603
+ e.value ? (F(), D(H, { key: 1 }, [
2604
+ _("div", no, [
2605
+ e.value ? (F(), C(Be, {
2622
2606
  key: 0,
2623
2607
  "model-value": e.value,
2624
2608
  index: p.index,
2625
2609
  "hide-export": !0
2626
- }, null, 8, ["model-value", "index"])) : (y(), k(Re, { key: 1 }))
2610
+ }, null, 8, ["model-value", "index"])) : (F(), C(Re, { key: 1 }))
2627
2611
  ]),
2628
2612
  d(Me, {
2629
2613
  modelValue: e.value,
@@ -2631,10 +2615,10 @@ const gl = { class: "grow" }, yl = {
2631
2615
  config: c.value,
2632
2616
  "hide-configuration": m.hideConfiguration,
2633
2617
  onHideConfiguration: b[1] || (b[1] = (l) => {
2634
- i("hideConfiguration", l);
2618
+ n("hideConfiguration", l);
2635
2619
  })
2636
2620
  }, null, 8, ["modelValue", "config", "hide-configuration"])
2637
- ], 64)) : (y(), $("div", to, [
2621
+ ], 64)) : (F(), D("div", to, [
2638
2622
  d(f)
2639
2623
  ]))
2640
2624
  ]);
@@ -2643,59 +2627,59 @@ const gl = { class: "grow" }, yl = {
2643
2627
  }), io = {
2644
2628
  key: 0,
2645
2629
  class: "fm-typo-en-title-md-600"
2646
- }, ko = /* @__PURE__ */ q({
2630
+ }, ko = /* @__PURE__ */ E({
2647
2631
  __name: "TileEditor",
2648
2632
  setup(m) {
2649
- const r = Pe(), e = ze(), p = Xe(), { currentSelectWidgetType: c, editingReport: i, editingTile: g, editingIndex: b } = ke(p), { breakpoints: f } = Le(), { promptMessage: l } = $e(), { t: v } = Z(), w = E(!1);
2650
- async function N() {
2651
- var U;
2652
- if (!i.value) return;
2633
+ const r = Pe(), e = ze(), p = Je(), { currentSelectWidgetType: c, editingReport: n, editingTile: y, editingIndex: b } = ke(p), { breakpoints: f } = Le(), { promptMessage: l } = $e(), { t: v } = Z(), x = A(!1);
2634
+ async function U() {
2635
+ var w;
2636
+ if (!n.value) return;
2653
2637
  await l({
2654
2638
  title: v("report.tile.save.title"),
2655
- message: v("report.tile.save.confirm", { title: (U = g.value) == null ? void 0 : U.widget.title })
2656
- }) && (g.value && (i.value.tiles[b.value] = g.value), c.value = void 0, e.back());
2639
+ message: v("report.tile.save.confirm", { title: (w = y.value) == null ? void 0 : w.widget.title })
2640
+ }) && (y.value && (n.value.tiles[b.value] = y.value), c.value = void 0, e.back());
2657
2641
  }
2658
2642
  async function V() {
2659
- var U;
2660
- if (!i.value) return;
2643
+ var w;
2644
+ if (!n.value) return;
2661
2645
  await l({
2662
2646
  title: v("report.tile.cancel.title"),
2663
- message: v("report.tile.cancel.confirm", { title: (U = g.value) == null ? void 0 : U.widget.title })
2647
+ message: v("report.tile.cancel.confirm", { title: (w = y.value) == null ? void 0 : w.widget.title })
2664
2648
  }) && (c.value = void 0, e.back());
2665
2649
  }
2666
2650
  return je(() => {
2667
- i.value || e.push({ name: "reports" });
2668
- }), (B, U) => {
2669
- const F = h("FmPageHead");
2670
- return y(), k(We, null, {
2651
+ n.value || e.push({ name: "reports" });
2652
+ }), (B, w) => {
2653
+ const g = h("FmPageHead");
2654
+ return F(), C(Xe, null, {
2671
2655
  default: S(() => [
2672
- d(F, {
2656
+ d(g, {
2673
2657
  actions: [
2674
2658
  { label: "Cancel", value: "cancel", isPrimary: !1 },
2675
2659
  { label: "Save", value: "save", isPrimary: !0 }
2676
2660
  ],
2677
- "onClick:action": U[0] || (U[0] = (o) => {
2678
- o === "cancel" && V(), o === "save" && N();
2661
+ "onClick:action": w[0] || (w[0] = (o) => {
2662
+ o === "cancel" && V(), o === "save" && U();
2679
2663
  })
2680
2664
  }, {
2681
2665
  title: S(() => {
2682
2666
  var o;
2683
2667
  return [
2684
- a(f).lg || a(f).md ? (y(), $("p", io, I(a(Ce)(((o = a(g)) == null ? void 0 : o.widget.type) ?? "New report")), 1)) : x("", !0)
2668
+ a(f).lg || a(f).md ? (F(), D("p", io, I(a(Ce)(((o = a(y)) == null ? void 0 : o.widget.type) ?? "New report")), 1)) : k("", !0)
2685
2669
  ];
2686
2670
  }),
2687
2671
  _: 1
2688
2672
  }),
2689
- a(g) ? (y(), k(Ne(a(f).lg || a(f).md ? ao : uo), {
2673
+ a(y) ? (F(), C(Ne(a(f).lg || a(f).md ? ao : uo), {
2690
2674
  key: 0,
2691
- modelValue: a(g),
2692
- "onUpdate:modelValue": U[1] || (U[1] = (o) => Ee(g) ? g.value = o : null),
2675
+ modelValue: a(y),
2676
+ "onUpdate:modelValue": w[1] || (w[1] = (o) => Ee(y) ? y.value = o : null),
2693
2677
  class: De(`${a(f).lg || a(f).md ? "flex" : ""} w-full`),
2694
2678
  style: Ae({ height: `calc( 100% - ${a(f).lg || a(f).md ? 72 : 64}px)` }),
2695
- "hide-configuration": w.value,
2679
+ "hide-configuration": x.value,
2696
2680
  index: Number(a(r).params.tileIndex),
2697
- onHideConfiguration: U[2] || (U[2] = (o) => w.value = o)
2698
- }, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : x("", !0)
2681
+ onHideConfiguration: w[2] || (w[2] = (o) => x.value = o)
2682
+ }, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : k("", !0)
2699
2683
  ]),
2700
2684
  _: 1
2701
2685
  });