@feedmepos/mf-report 5.25.3 → 5.25.4

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 (24) hide show
  1. package/dist/{App-CnFZJmzp.js → App-zRHXHcPT.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-RUTqJF5H.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CcMbnaoi.js → Default.vue_vue_type_script_setup_true_lang-By3S17dA.js} +1 -1
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js +4939 -0
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BY_KN_C1.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js} +2 -2
  6. package/dist/{InsightView-DKrfAidQ.js → InsightView-BBhWazOR.js} +4 -4
  7. package/dist/{Integration-BNW5e7Qk.js → Integration-DwrH45Cv.js} +254 -254
  8. package/dist/{Integrations-DItxcgrC.js → Integrations-B2oXCMtI.js} +2 -2
  9. package/dist/{Layout-GLIcaoCe.js → Layout-8K-hl0GX.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-pOrfpYWl.js → MenuTab.vue_vue_type_script_setup_true_lang-Bk13wM8J.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CBAiRY5H.js → NavigationTab.vue_vue_type_script_setup_true_lang-DJQmFNyV.js} +6 -6
  12. package/dist/{OverviewView-V-17Kj3C.js → OverviewView-VK-QiYBv.js} +4 -4
  13. package/dist/{Report-Cawu6GrR.js → Report-DjEakQjd.js} +3 -3
  14. package/dist/{ReportEditor-ChZgxHxU.js → ReportEditor-DkDpoEA1.js} +3 -3
  15. package/dist/{ReportView-Dfb_owW8.js → ReportView-D7pPDt9i.js} +6 -6
  16. package/dist/{Setting-bPYUv_iE.js → Setting-Cj8FNkcg.js} +3 -3
  17. package/dist/{TileEditor-CZ_n5OKa.js → TileEditor-DiIeHLZ2.js} +1351 -1317
  18. package/dist/{TransitionFade-DCyLVIwo.js → TransitionFade-D3p2nUld.js} +4 -4
  19. package/dist/{app-AKUT_6m_.js → app-t7VSpu_w.js} +102 -54
  20. package/dist/app.js +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useRestaurantPermission-251v8GZD.js → useRestaurantPermission-ClMBdaFt.js} +1 -1
  23. package/package.json +1 -1
  24. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-COXEyuoF.js +0 -4689
@@ -1,19 +1,19 @@
1
- import { defineComponent as re, mergeModels as ve, useModel as ge, computed as _, ref as oe, resolveComponent as $, createElementBlock as E, openBlock as v, createVNode as u, createElementVNode as h, unref as l, withCtx as G, toDisplayString as K, Fragment as de, renderList as xe, withModifiers as ye, createTextVNode as Ue, watch as he, createCommentVNode as O, createBlock as j, onUnmounted as Bl, renderSlot as rl, onMounted as Ye, onBeforeUnmount as ul, resolveDynamicComponent as dl, normalizeClass as ke, withDirectives as we, vShow as Ce, withKeys as el, vModelText as Ll, normalizeStyle as Xe, isRef as Al } from "vue";
2
- import { useRoute as Ml, useRouter as Nl } from "vue-router";
3
- import { h as Ol, d as Re, S as We, a as jl, W as zl, c as Rl, T as Il, b as Pl } from "./TransitionFade-DCyLVIwo.js";
4
- import { W as J, a as ml, e as De, D as El, S as ll, C as Xl, u as cl, P as ol, d as Wl, b as ql } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BY_KN_C1.js";
1
+ import { defineComponent as ie, mergeModels as pe, useModel as fe, computed as T, ref as oe, resolveComponent as $, createElementBlock as H, openBlock as f, createVNode as u, createElementVNode as C, unref as l, withCtx as G, toDisplayString as Q, Fragment as ue, renderList as xe, withModifiers as ye, createTextVNode as Le, watch as he, createCommentVNode as O, createBlock as N, onUnmounted as Nl, renderSlot as dl, onMounted as Ke, onBeforeUnmount as ml, resolveDynamicComponent as cl, normalizeClass as ke, withDirectives as Ce, vShow as we, withKeys as ol, vModelText as jl, normalizeStyle as He, isRef as zl } from "vue";
2
+ import { useRoute as Rl, useRouter as Il } from "vue-router";
3
+ import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-D3p2nUld.js";
4
+ import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
5
5
  import { storeToRefs as Se } from "pinia";
6
- import { u as pl } from "./message-dialog-UoMWOnil.js";
7
- import { useSnackbar as Hl, useBreakpoints as vl, FmButtonColorThemeVariant as tl } from "@feedmepos/ui-library";
8
- import { b as fe, a as fl, _ as gl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
9
- import { u as ce } from "./vue-i18n-DVWuTfed.js";
10
- import { r as me } from "./i18n-CI_sQ5d_.js";
11
- import { g as Te, u as Oe, R as al, L as Fe, a as Ne, S as te, d as se, b as nl, c as Yl, Y as Gl, X as Jl, _ as yl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-COXEyuoF.js";
12
- import { a as $e, d as je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-RUTqJF5H.js";
13
- import { a as Kl, d as Me } from "./app-AKUT_6m_.js";
14
- const Ie = [
6
+ import { u as fl } from "./message-dialog-UoMWOnil.js";
7
+ import { useSnackbar as Ql, useBreakpoints as gl, FmButtonColorThemeVariant as nl } from "@feedmepos/ui-library";
8
+ import { b as ve, a as yl, _ as bl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
9
+ import { u as me } from "./vue-i18n-DVWuTfed.js";
10
+ import { r as de } from "./i18n-CI_sQ5d_.js";
11
+ import { g as _e, u as je, R as il, L as Fe, a as Ne, S as ae, d as ce, b as We, c as sl, e as Zl, Y as eo, X as lo, _ as hl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js";
12
+ import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js";
13
+ import { a as oo, d as Oe } from "./app-t7VSpu_w.js";
14
+ const Pe = [
15
15
  {
16
- type: J.Circular,
16
+ type: K.Circular,
17
17
  maxDimension: null,
18
18
  maxMetric: 1,
19
19
  hasBreakdownDimension: !1,
@@ -30,7 +30,7 @@ const Ie = [
30
30
  periodType: null
31
31
  },
32
32
  {
33
- type: J.Table,
33
+ type: K.Table,
34
34
  maxDimension: null,
35
35
  maxMetric: null,
36
36
  hasBreakdownDimension: !1,
@@ -47,7 +47,7 @@ const Ie = [
47
47
  periodType: null
48
48
  },
49
49
  {
50
- type: J.BarChart,
50
+ type: K.BarChart,
51
51
  maxDimension: null,
52
52
  maxMetric: 1,
53
53
  hasBreakdownDimension: !0,
@@ -64,7 +64,7 @@ const Ie = [
64
64
  periodType: null
65
65
  },
66
66
  {
67
- type: J.LineChart,
67
+ type: K.LineChart,
68
68
  maxDimension: null,
69
69
  maxMetric: 1,
70
70
  hasBreakdownDimension: !0,
@@ -81,7 +81,7 @@ const Ie = [
81
81
  periodType: null
82
82
  },
83
83
  {
84
- type: J.StackBarChart,
84
+ type: K.StackBarChart,
85
85
  maxDimension: null,
86
86
  maxMetric: 1,
87
87
  hasBreakdownDimension: !0,
@@ -98,7 +98,7 @@ const Ie = [
98
98
  periodType: null
99
99
  },
100
100
  {
101
- type: J.ClusteredStackBarChart,
101
+ type: K.ClusteredStackBarChart,
102
102
  maxDimension: null,
103
103
  maxMetric: 1,
104
104
  hasBreakdownDimension: !0,
@@ -115,7 +115,7 @@ const Ie = [
115
115
  periodType: null
116
116
  },
117
117
  {
118
- type: J.StackLineChart,
118
+ type: K.StackLineChart,
119
119
  maxDimension: null,
120
120
  maxMetric: 1,
121
121
  hasBreakdownDimension: !0,
@@ -132,7 +132,7 @@ const Ie = [
132
132
  periodType: null
133
133
  },
134
134
  {
135
- type: J.Scorecard,
135
+ type: K.Scorecard,
136
136
  maxDimension: null,
137
137
  maxMetric: 1,
138
138
  hasBreakdownDimension: !1,
@@ -149,7 +149,7 @@ const Ie = [
149
149
  periodType: null
150
150
  },
151
151
  {
152
- type: J.Spacer,
152
+ type: K.Spacer,
153
153
  maxDimension: 0,
154
154
  maxMetric: 0,
155
155
  hasBreakdownDimension: !1,
@@ -165,9 +165,9 @@ const Ie = [
165
165
  canSearch: !1,
166
166
  periodType: null
167
167
  }
168
- ], Ql = { class: "flex flex-col my-2 gap-8" }, Zl = { class: "fm-typo-en-body-lg-600" }, eo = { class: "text-sm text-fm-color-neutral-gray-400" }, lo = ["onClick"], oo = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, to = /* @__PURE__ */ re({
168
+ ], to = { class: "flex flex-col my-2 gap-8" }, ao = { class: "fm-typo-en-body-lg-600" }, no = { class: "text-sm text-fm-color-neutral-gray-400" }, io = ["onClick"], so = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, ro = /* @__PURE__ */ ie({
169
169
  __name: "SchemaSection",
170
- props: /* @__PURE__ */ ve({
170
+ props: /* @__PURE__ */ pe({
171
171
  options: {
172
172
  type: Array,
173
173
  default: () => []
@@ -182,41 +182,41 @@ const Ie = [
182
182
  }),
183
183
  emits: ["update:modelValue"],
184
184
  setup(D) {
185
- const { t: m, te: e } = ce(), s = ge(D, "modelValue"), t = D, { schemas: w } = Se(ml()), C = _(
186
- () => w.value.map((b) => ({
187
- label: b.label,
188
- value: b.name,
189
- raw: b
185
+ const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, { schemas: w } = Se(pl()), x = T(
186
+ () => w.value.map((h) => ({
187
+ label: h.label,
188
+ value: h.name,
189
+ raw: h
190
190
  }))
191
- ), p = _(() => {
191
+ ), p = T(() => {
192
192
  if (s.value.schemaNames.length === 0 || o.value === 0)
193
- return C.value.filter((b) => !b.raw.isJoinOnly);
193
+ return x.value.filter((h) => !h.raw.isJoinOnly);
194
194
  {
195
- const b = s.value.schemaNames[0], k = w.value.find((S) => S.name === b), z = ((k == null ? void 0 : k.joins) || []).map((S) => S);
196
- return C.value.filter((S) => z.includes(S.raw.name));
195
+ const h = s.value.schemaNames[0], F = w.value.find((k) => k.name === h), z = ((F == null ? void 0 : F.joins) || []).map((k) => k);
196
+ return x.value.filter((k) => z.includes(k.raw.name));
197
197
  }
198
- }), B = oe(!1), U = oe(""), o = oe(), r = Hl();
199
- function f(b) {
200
- var k;
201
- return me(
198
+ }), B = oe(!1), U = oe(""), o = oe(), r = Ql();
199
+ function v(h) {
200
+ var F;
201
+ return de(
202
202
  m,
203
203
  e,
204
- (k = w.value.find((z) => z.name === b)) == null ? void 0 : k.label,
204
+ (F = w.value.find((z) => z.name === h)) == null ? void 0 : F.label,
205
205
  "schema"
206
206
  );
207
207
  }
208
- function y(b) {
209
- o.value = b, B.value = !0, b !== void 0 ? U.value = s.value.schemaNames[b] : U.value = "";
208
+ function b(h) {
209
+ o.value = h, B.value = !0, h !== void 0 ? U.value = s.value.schemaNames[h] : U.value = "";
210
210
  }
211
211
  function L() {
212
212
  U.value !== "" ? (o.value !== void 0 ? s.value.schemaNames[o.value] = U.value : s.value.schemaNames.push(U.value), B.value = !1) : r.open({ message: m("report.section.schema.nothingSelected"), type: "error" });
213
213
  }
214
- return (b, k) => {
215
- const z = $("FmForm"), S = $("FmIcon"), d = $("FmField");
216
- return v(), E("div", Ql, [
217
- u(De, {
214
+ return (h, F) => {
215
+ const z = $("FmForm"), k = $("FmIcon"), d = $("FmField");
216
+ return f(), H("div", to, [
217
+ u(Ae, {
218
218
  modelValue: B.value,
219
- "onUpdate:modelValue": k[1] || (k[1] = (a) => B.value = a),
219
+ "onUpdate:modelValue": F[1] || (F[1] = (a) => B.value = a),
220
220
  title: t.label,
221
221
  "primary-button-label": l(m)("report.common.confirm"),
222
222
  "secondary-button-label": l(m)("report.common.cancel"),
@@ -225,15 +225,15 @@ const Ie = [
225
225
  content: G(() => [
226
226
  u(z, { ref: "form" }, {
227
227
  default: G(() => [
228
- u(fe, {
228
+ u(ve, {
229
229
  modelValue: U.value,
230
- "onUpdate:modelValue": k[0] || (k[0] = (a) => U.value = a),
230
+ "onUpdate:modelValue": F[0] || (F[0] = (a) => U.value = a),
231
231
  label: l(m)("report.section.schema.title"),
232
- items: o.value === 0 ? C.value.map((a) => ({
233
- label: l(me)(l(m), l(e), a.label, "schema"),
232
+ items: o.value === 0 ? x.value.map((a) => ({
233
+ label: l(de)(l(m), l(e), a.label, "schema"),
234
234
  value: a.value
235
235
  })) : p.value.map((a) => ({
236
- label: l(me)(l(m), l(e), a.label, "schema"),
236
+ label: l(de)(l(m), l(e), a.label, "schema"),
237
237
  value: a.value
238
238
  }))
239
239
  }, null, 8, ["modelValue", "label", "items"])
@@ -243,51 +243,51 @@ const Ie = [
243
243
  ]),
244
244
  _: 1
245
245
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
246
- h("div", null, [
247
- h("p", Zl, K(l(m)("report.section.schema.title")), 1),
248
- h("p", eo, K(l(m)("report.section.schema.description")), 1)
246
+ C("div", null, [
247
+ C("p", ao, Q(l(m)("report.section.schema.title")), 1),
248
+ C("p", no, Q(l(m)("report.section.schema.description")), 1)
249
249
  ]),
250
- (v(!0), E(de, null, xe(s.value.schemaNames, (a, g) => (v(), E("div", {
250
+ (f(!0), H(ue, null, xe(s.value.schemaNames, (a, g) => (f(), H("div", {
251
251
  key: g,
252
252
  class: "flex flex-col gap-2 w-full"
253
253
  }, [
254
- h("div", {
254
+ C("div", {
255
255
  class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
256
- onClick: (c) => y(g)
256
+ onClick: (c) => b(g)
257
257
  }, [
258
- h("p", oo, K(f(a)), 1),
259
- k[3] || (k[3] = h("div", { class: "grow" }, null, -1)),
260
- u(S, {
258
+ C("p", so, Q(v(a)), 1),
259
+ F[3] || (F[3] = C("div", { class: "grow" }, null, -1)),
260
+ u(k, {
261
261
  name: "close",
262
262
  onClick: ye(
263
263
  () => {
264
- s.value.schemaNames = l(Ol)(s.value.schemaNames, g);
264
+ s.value.schemaNames = l(Pl)(s.value.schemaNames, g);
265
265
  },
266
266
  ["stop"]
267
267
  )
268
268
  }, null, 8, ["onClick"])
269
- ], 8, lo)
269
+ ], 8, io)
270
270
  ]))), 128)),
271
271
  u(d, {
272
272
  class: "text-fm-color-typo-tertiary",
273
- onClick: k[2] || (k[2] = () => {
274
- y();
273
+ onClick: F[2] || (F[2] = () => {
274
+ b();
275
275
  })
276
276
  }, {
277
277
  default: G(() => [
278
- Ue(K(l(m)("report.section.schema.add")), 1)
278
+ Le(Q(l(m)("report.section.schema.add")), 1)
279
279
  ]),
280
280
  _: 1
281
281
  })
282
282
  ]);
283
283
  };
284
284
  }
285
- }), ao = {
285
+ }), uo = {
286
286
  key: 0,
287
287
  class: "flex flex-col my-2 gap-8"
288
- }, no = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, io = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, so = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Ee = /* @__PURE__ */ re({
288
+ }, mo = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, co = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, po = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, qe = /* @__PURE__ */ ie({
289
289
  __name: "DimensionSection",
290
- props: /* @__PURE__ */ ve({
290
+ props: /* @__PURE__ */ pe({
291
291
  options: {
292
292
  type: Array,
293
293
  default: () => []
@@ -318,33 +318,33 @@ const Ie = [
318
318
  }),
319
319
  emits: ["update:modelValue"],
320
320
  setup(D) {
321
- const { t: m, te: e } = ce(), s = ge(D, "modelValue"), t = D, w = _(() => m(`report.section.dimension.${t.label}`)), C = oe(!1), p = _(
322
- () => s.value.map((c, x) => ({
323
- index: x,
321
+ const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.dimension.${t.label}`)), x = oe(!1), p = T(
322
+ () => s.value.map((c, S) => ({
323
+ index: S,
324
324
  labels: [c.label || c.name],
325
325
  value: c
326
326
  }))
327
327
  ), B = oe(s.value.length > 0 ? 0 : void 0);
328
328
  function U(c) {
329
- var x, i, n, A;
330
- C.value = !0, o.value = c != null && c.value ? JSON.parse(
329
+ var S, i, n, A;
330
+ x.value = !0, o.value = c != null && c.value ? JSON.parse(
331
331
  JSON.stringify({
332
332
  ...c.value,
333
- label: me(m, e, (x = c.value) == null ? void 0 : x.label, "other"),
334
- moveToColumn: (((i = t.config) == null ? void 0 : i.columnIds) || []).includes(Te(c.value))
333
+ label: de(m, e, (S = c.value) == null ? void 0 : S.label, "other"),
334
+ moveToColumn: (((i = t.config) == null ? void 0 : i.columnIds) || []).includes(_e(c.value))
335
335
  })
336
336
  ) : void 0, B.value = c == null ? void 0 : c.index, r.value = !!((n = o.value) != null && n.dataFormula || (A = o.value) != null && A.displayFormula), o.value && o.value.formatter === void 0 && (t.options.find(
337
- (I) => {
338
- var Q, ee;
339
- return I.schemaName === ((Q = o.value) == null ? void 0 : Q.schemaName) && I.name === ((ee = o.value) == null ? void 0 : ee.name);
337
+ (E) => {
338
+ var J, te;
339
+ return E.schemaName === ((J = o.value) == null ? void 0 : J.schemaName) && E.name === ((te = o.value) == null ? void 0 : te.name);
340
340
  }
341
341
  ), c != null && c.value.timeFormatter && o.value.formatter === void 0 && (o.value.formatter = c == null ? void 0 : c.value.timeFormatter, o.value.timeFormatter = void 0));
342
342
  }
343
- const o = oe(void 0), r = oe(!1), f = _(
343
+ const o = oe(void 0), r = oe(!1), v = T(
344
344
  () => t.options.find(
345
345
  (c) => {
346
- var x, i;
347
- return c.schemaName === ((x = o.value) == null ? void 0 : x.schemaName) && c.name === ((i = o.value) == null ? void 0 : i.name);
346
+ var S, i;
347
+ return c.schemaName === ((S = o.value) == null ? void 0 : S.schemaName) && c.name === ((i = o.value) == null ? void 0 : i.name);
348
348
  }
349
349
  ) ?? {}
350
350
  );
@@ -354,171 +354,171 @@ const Ie = [
354
354
  return (c = o.value) == null ? void 0 : c.option;
355
355
  },
356
356
  () => {
357
- !y.value && o.value && (o.value.fillGap = !1);
357
+ !b.value && o.value && (o.value.fillGap = !1);
358
358
  }
359
359
  );
360
- const y = _(
360
+ const b = T(
361
361
  () => {
362
- var c, x, i;
363
- return (i = (c = f.value) == null ? void 0 : c.fillGapDimensionOptions) == null ? void 0 : i.includes(((x = o.value) == null ? void 0 : x.option) || "");
362
+ var c, S, i;
363
+ return (i = (c = v.value) == null ? void 0 : c.fillGapDimensionOptions) == null ? void 0 : i.includes(((S = o.value) == null ? void 0 : S.option) || "");
364
364
  }
365
365
  );
366
366
  function L(c) {
367
- var x, i;
368
- (c.schemaName !== ((x = o.value) == null ? void 0 : x.schemaName) || c.name !== ((i = o.value) == null ? void 0 : i.name)) && (o.value = {
367
+ var S, i;
368
+ (c.schemaName !== ((S = o.value) == null ? void 0 : S.schemaName) || c.name !== ((i = o.value) == null ? void 0 : i.name)) && (o.value = {
369
369
  schemaName: c.schemaName,
370
370
  name: c.name,
371
371
  option: c.dimensionOptions[0],
372
- label: me(m, e, c.label, "other"),
372
+ label: de(m, e, c.label, "other"),
373
373
  decimal: c.isNumericType ? 2 : void 0,
374
374
  hide: !1
375
375
  }, r.value = !1);
376
376
  }
377
- function b() {
377
+ function h() {
378
378
  if (!o.value) {
379
379
  console.error("new field is undefined");
380
380
  return;
381
381
  }
382
- const c = [...p.value.map((x) => x.value)];
383
- r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), B.value !== void 0 ? c[B.value] = o.value : c.push(o.value), s.value = c, C.value = !1;
382
+ const c = [...p.value.map((S) => S.value)];
383
+ r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), B.value !== void 0 ? c[B.value] = o.value : c.push(o.value), s.value = c, x.value = !1;
384
384
  }
385
- function k(c) {
385
+ function F(c) {
386
386
  const i = [...p.value.map((n) => n.value)].filter((n, A) => A !== c);
387
387
  s.value = i;
388
388
  }
389
389
  function z(c) {
390
390
  o.value && (o.value.decimal = Number(c));
391
391
  }
392
- function S(c) {
393
- const x = `report.section.filter.${$e(c)}`;
394
- return e(x) ? m(x) : me(m, e, c, "field");
392
+ function k(c) {
393
+ const S = `report.section.filter.${De(c)}`;
394
+ return e(S) ? m(S) : de(m, e, c, "field");
395
395
  }
396
396
  function d(c) {
397
- const x = `report.section.metric.formatterType.${c}`;
398
- return e(x) ? m(x) : c;
397
+ const S = `report.section.metric.formatterType.${c}`;
398
+ return e(S) ? m(S) : c;
399
399
  }
400
400
  function a(c) {
401
401
  return Array.isArray(c) ? c.length > 0 : c;
402
402
  }
403
- const g = _(
403
+ const g = T(
404
404
  () => t.options.map((c) => ({
405
405
  label: c.labels.join(" "),
406
406
  value: c
407
407
  }))
408
408
  );
409
- return (c, x) => {
410
- const i = $("FmTextField"), n = $("FmStepperField"), A = $("FmCheckbox"), I = $("FmTextarea"), Q = $("FmForm"), ee = $("FmIcon"), M = $("FmButton"), ie = $("FmListItem"), P = $("FmList"), N = $("FmField");
411
- return D.max !== 0 ? (v(), E("div", ao, [
412
- u(De, {
413
- modelValue: C.value,
414
- "onUpdate:modelValue": x[12] || (x[12] = (H) => C.value = H),
409
+ return (c, S) => {
410
+ const i = $("FmTextField"), n = $("FmStepperField"), A = $("FmCheckbox"), E = $("FmTextarea"), J = $("FmForm"), te = $("FmIcon"), M = $("FmButton"), ge = $("FmListItem"), X = $("FmList"), j = $("FmField");
411
+ return D.max !== 0 ? (f(), H("div", uo, [
412
+ u(Ae, {
413
+ modelValue: x.value,
414
+ "onUpdate:modelValue": S[12] || (S[12] = (Y) => x.value = Y),
415
415
  title: w.value,
416
416
  "primary-button-label": l(m)("report.common.confirm"),
417
417
  "secondary-button-label": l(m)("report.common.cancel"),
418
- onConfirm: b
418
+ onConfirm: h
419
419
  }, {
420
420
  content: G(() => [
421
- u(Q, {
421
+ u(J, {
422
422
  ref: "form",
423
423
  class: "flex flex-col gap-2 w-[490px]"
424
424
  }, {
425
425
  default: G(() => {
426
- var H, ae, Y, pe, be, Be, Le;
426
+ var Y, ee, I, se, Te, be, Me;
427
427
  return [
428
- u(fe, {
429
- "model-value": f.value,
428
+ u(ve, {
429
+ "model-value": v.value,
430
430
  items: g.value,
431
431
  placeholder: w.value,
432
432
  label: w.value,
433
- "onUpdate:modelValue": x[0] || (x[0] = (le) => L(le))
433
+ "onUpdate:modelValue": S[0] || (S[0] = (ne) => L(ne))
434
434
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
435
- o.value ? (v(), E(de, { key: 0 }, [
435
+ o.value ? (f(), H(ue, { key: 0 }, [
436
436
  u(i, {
437
437
  modelValue: o.value.label,
438
- "onUpdate:modelValue": x[1] || (x[1] = (le) => o.value.label = le),
438
+ "onUpdate:modelValue": S[1] || (S[1] = (ne) => o.value.label = ne),
439
439
  label: l(m)("report.section.dimension.label")
440
440
  }, null, 8, ["modelValue", "label"]),
441
- (((H = f.value) == null ? void 0 : H.dimensionOptions) || []).length > 0 ? (v(), j(fe, {
441
+ (((Y = v.value) == null ? void 0 : Y.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
442
442
  key: 0,
443
443
  modelValue: o.value.option,
444
- "onUpdate:modelValue": x[2] || (x[2] = (le) => o.value.option = le),
445
- items: ((ae = f.value) == null ? void 0 : ae.dimensionOptions.map((le) => ({
446
- label: S(le),
447
- value: le
444
+ "onUpdate:modelValue": S[2] || (S[2] = (ne) => o.value.option = ne),
445
+ items: ((ee = v.value) == null ? void 0 : ee.dimensionOptions.map((ne) => ({
446
+ label: k(ne),
447
+ value: ne
448
448
  }))) ?? []
449
449
  }, null, 8, ["modelValue", "items"])) : O("", !0),
450
- (Y = f.value) != null && Y.isNumericType ? (v(), j(n, {
450
+ (I = v.value) != null && I.isNumericType ? (f(), N(n, {
451
451
  key: 1,
452
452
  label: l(m)("report.common.decimal"),
453
- "model-value": ((pe = o.value) == null ? void 0 : pe.decimal) ?? 2,
454
- "onUpdate:modelValue": x[3] || (x[3] = (le) => {
455
- z(le);
453
+ "model-value": ((se = o.value) == null ? void 0 : se.decimal) ?? 2,
454
+ "onUpdate:modelValue": S[3] || (S[3] = (ne) => {
455
+ z(ne);
456
456
  })
457
457
  }, null, 8, ["label", "model-value"])) : O("", !0),
458
- (be = f.value) != null && be.isNumericType ? (v(), j(fe, {
458
+ (Te = v.value) != null && Te.isNumericType ? (f(), N(ve, {
459
459
  key: 2,
460
460
  modelValue: o.value.formatter,
461
- "onUpdate:modelValue": x[4] || (x[4] = (le) => o.value.formatter = le),
461
+ "onUpdate:modelValue": S[4] || (S[4] = (ne) => o.value.formatter = ne),
462
462
  placeholder: l(m)("report.section.dimension.formatter"),
463
463
  label: l(m)("report.section.dimension.formatter"),
464
464
  items: [
465
465
  { label: l(m)("report.section.metric.formatterType.NONE"), value: null },
466
- ...(((Be = f.value) == null ? void 0 : Be.formatters) || []).map((le) => ({
467
- label: d(le),
468
- value: le
466
+ ...(((be = v.value) == null ? void 0 : be.formatters) || []).map((ne) => ({
467
+ label: d(ne),
468
+ value: ne
469
469
  }))
470
470
  ]
471
471
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : O("", !0),
472
- y.value ? (v(), j(A, {
472
+ b.value ? (f(), N(A, {
473
473
  key: 3,
474
474
  "model-value": o.value.fillGap ?? !1,
475
475
  label: l(m)("report.section.dimension.fillGap"),
476
476
  value: "",
477
477
  placeholder: "Fill gap",
478
- "onUpdate:modelValue": x[5] || (x[5] = (le) => {
479
- o.value && (o.value.fillGap = a(le));
478
+ "onUpdate:modelValue": S[5] || (S[5] = (ne) => {
479
+ o.value && (o.value.fillGap = a(ne));
480
480
  })
481
481
  }, null, 8, ["model-value", "label"])) : O("", !0),
482
- ((Le = f.value) == null ? void 0 : Le.type) === l(El).Timestamp ? (v(), j(A, {
482
+ ((Me = v.value) == null ? void 0 : Me.type) === l(Yl).Timestamp ? (f(), N(A, {
483
483
  key: 4,
484
484
  "model-value": o.value.dateComparison ?? !1,
485
485
  label: l(m)("report.section.dimension.dateComparison"),
486
486
  value: "",
487
- "onUpdate:modelValue": x[6] || (x[6] = (le) => {
488
- o.value && (o.value.dateComparison = a(le));
487
+ "onUpdate:modelValue": S[6] || (S[6] = (ne) => {
488
+ o.value && (o.value.dateComparison = a(ne));
489
489
  })
490
490
  }, null, 8, ["model-value", "label"])) : O("", !0),
491
491
  u(A, {
492
492
  modelValue: o.value.hide,
493
- "onUpdate:modelValue": x[7] || (x[7] = (le) => o.value.hide = le),
493
+ "onUpdate:modelValue": S[7] || (S[7] = (ne) => o.value.hide = ne),
494
494
  label: l(m)("report.section.dimension.hide"),
495
495
  value: ""
496
496
  }, null, 8, ["modelValue", "label"]),
497
- t.hasRowColumn ? (v(), j(A, {
497
+ t.hasRowColumn ? (f(), N(A, {
498
498
  key: 5,
499
499
  "model-value": o.value.moveToColumn ?? !1,
500
500
  label: l(m)("report.section.dimension.moveToColumn"),
501
501
  value: "",
502
- "onUpdate:modelValue": x[8] || (x[8] = (le) => {
503
- o.value && (o.value.moveToColumn = a(le));
502
+ "onUpdate:modelValue": S[8] || (S[8] = (ne) => {
503
+ o.value && (o.value.moveToColumn = a(ne));
504
504
  })
505
505
  }, null, 8, ["model-value", "label"])) : O("", !0),
506
506
  u(A, {
507
507
  modelValue: r.value,
508
- "onUpdate:modelValue": x[9] || (x[9] = (le) => r.value = le),
508
+ "onUpdate:modelValue": S[9] || (S[9] = (ne) => r.value = ne),
509
509
  label: l(m)("report.section.dimension.advance"),
510
510
  value: !0
511
511
  }, null, 8, ["modelValue", "label"]),
512
- r.value ? (v(), j(I, {
512
+ r.value ? (f(), N(E, {
513
513
  key: 6,
514
514
  modelValue: o.value.dataFormula,
515
- "onUpdate:modelValue": x[10] || (x[10] = (le) => o.value.dataFormula = le),
515
+ "onUpdate:modelValue": S[10] || (S[10] = (ne) => o.value.dataFormula = ne),
516
516
  placeholder: l(m)("report.section.dimension.dataFormula")
517
517
  }, null, 8, ["modelValue", "placeholder"])) : O("", !0),
518
- r.value ? (v(), j(I, {
518
+ r.value ? (f(), N(E, {
519
519
  key: 7,
520
520
  modelValue: o.value.displayFormula,
521
- "onUpdate:modelValue": x[11] || (x[11] = (le) => o.value.displayFormula = le),
521
+ "onUpdate:modelValue": S[11] || (S[11] = (ne) => o.value.displayFormula = ne),
522
522
  placeholder: l(m)("report.section.dimension.displayFormula")
523
523
  }, null, 8, ["modelValue", "placeholder"])) : O("", !0)
524
524
  ], 64)) : O("", !0)
@@ -529,31 +529,31 @@ const Ie = [
529
529
  ]),
530
530
  _: 1
531
531
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
532
- h("div", null, [
533
- h("p", no, K(w.value), 1),
534
- h("p", io, K(l(m)("report.section.dimension.description")), 1)
532
+ C("div", null, [
533
+ C("p", mo, Q(w.value), 1),
534
+ C("p", co, Q(l(m)("report.section.dimension.description")), 1)
535
535
  ]),
536
- u(P, null, {
536
+ u(X, null, {
537
537
  default: G(() => [
538
- u(l(Re), {
538
+ u(l(Ie), {
539
539
  list: s.value,
540
- "item-key": (H) => l(Te)(H),
540
+ "item-key": (Y) => l(_e)(Y),
541
541
  class: "flex flex-col gap-2"
542
542
  }, {
543
- item: G(({ element: H, index: ae }) => [
544
- u(ie, {
543
+ item: G(({ element: Y, index: ee }) => [
544
+ u(ge, {
545
545
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
546
- onClick: ye((Y) => U(p.value[ae]), ["stop"])
546
+ onClick: ye((I) => U(p.value[ee]), ["stop"])
547
547
  }, {
548
548
  default: G(() => [
549
- u(ee, { name: "drag_handle" }),
550
- h("p", so, K(l(me)(l(m), l(e), H.label, "other")), 1),
551
- x[14] || (x[14] = h("div", { class: "grow" }, null, -1)),
549
+ u(te, { name: "drag_handle" }),
550
+ C("p", po, Q(l(de)(l(m), l(e), Y.label, "other")), 1),
551
+ S[14] || (S[14] = C("div", { class: "grow" }, null, -1)),
552
552
  u(M, {
553
553
  icon: "close",
554
554
  size: "md",
555
555
  variant: "tertiary",
556
- onClick: ye((Y) => k(ae), ["stop"])
556
+ onClick: ye((I) => F(ee), ["stop"])
557
557
  }, null, 8, ["onClick"])
558
558
  ]),
559
559
  _: 2
@@ -564,39 +564,39 @@ const Ie = [
564
564
  ]),
565
565
  _: 1
566
566
  }),
567
- u(N, {
567
+ u(j, {
568
568
  class: "text-fm-color-typo-tertiary",
569
- onClick: x[13] || (x[13] = () => {
569
+ onClick: S[13] || (S[13] = () => {
570
570
  U();
571
571
  })
572
572
  }, {
573
573
  default: G(() => [
574
- Ue(K(l(m)("report.section.dimension.add")), 1)
574
+ Le(Q(l(m)("report.section.dimension.add")), 1)
575
575
  ]),
576
576
  _: 1
577
577
  })
578
578
  ])) : O("", !0);
579
579
  };
580
580
  }
581
- }), qe = {
581
+ }), Ge = {
582
582
  value: "_metric_name"
583
583
  };
584
- function ro(D, m, e) {
584
+ function vo(D, m, e) {
585
585
  switch (D) {
586
- case J.BarChart:
587
- case J.StackBarChart:
588
- case J.ClusteredStackBarChart:
589
- case J.LineChart:
590
- case J.StackLineChart:
591
- case J.Circular:
586
+ case K.BarChart:
587
+ case K.StackBarChart:
588
+ case K.ClusteredStackBarChart:
589
+ case K.LineChart:
590
+ case K.StackLineChart:
591
+ case K.Circular:
592
592
  return m.length > 1;
593
593
  default:
594
594
  return e;
595
595
  }
596
596
  }
597
- function uo(D) {
597
+ function fo(D) {
598
598
  var s;
599
- const { rowIds: m, columnIds: e } = ze(D.widget.config);
599
+ const { rowIds: m, columnIds: e } = Re(D.widget.config);
600
600
  return {
601
601
  ...D,
602
602
  widget: {
@@ -605,39 +605,39 @@ function uo(D) {
605
605
  ...D.widget.config,
606
606
  rowIds: m,
607
607
  columnIds: e,
608
- isDrillable: ro(
608
+ isDrillable: vo(
609
609
  D.widget.type,
610
610
  D.widget.config.dimensions,
611
611
  D.widget.config.isDrillable
612
612
  ),
613
613
  joinDatasources: (s = D.widget.config.joinDatasources) == null ? void 0 : s.map((t) => {
614
- const { rowIds: w, columnIds: C } = ze(t);
614
+ const { rowIds: w, columnIds: x } = Re(t);
615
615
  return {
616
616
  ...t,
617
617
  rowIds: w,
618
- columnIds: C
618
+ columnIds: x
619
619
  };
620
620
  })
621
621
  }
622
622
  }
623
623
  };
624
624
  }
625
- function ze(D) {
626
- const m = D.dimensions.filter((C) => C.hide !== !0 && !C.moveToColumn).map((C) => Te(C)), e = D.dimensions.filter((C) => C.hide !== !0 && C.moveToColumn == !0).map((C) => Te(C)), s = D.metrics.length > 0;
627
- s && D.metrics.find((C) => C.moveToRow == !0) ? m.push(qe.value) : s && e.push(qe.value);
625
+ function Re(D) {
626
+ const m = D.dimensions.filter((x) => x.hide !== !0 && !x.moveToColumn).map((x) => _e(x)), e = D.dimensions.filter((x) => x.hide !== !0 && x.moveToColumn == !0).map((x) => _e(x)), s = D.metrics.length > 0;
627
+ s && D.metrics.find((x) => x.moveToRow == !0) ? m.push(Ge.value) : s && e.push(Ge.value);
628
628
  const t = [], w = [];
629
- for (const C of m)
630
- t.push(C);
631
- for (const C of e)
632
- w.push(C);
629
+ for (const x of m)
630
+ t.push(x);
631
+ for (const x of e)
632
+ w.push(x);
633
633
  return {
634
634
  rowIds: t,
635
635
  columnIds: w
636
636
  };
637
637
  }
638
- const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body-lg-600" }, po = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, vo = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, fo = /* @__PURE__ */ re({
638
+ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body-lg-600" }, bo = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, ho = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, Co = /* @__PURE__ */ ie({
639
639
  __name: "MetricSection",
640
- props: /* @__PURE__ */ ve({
640
+ props: /* @__PURE__ */ pe({
641
641
  options: {
642
642
  type: Array,
643
643
  default: () => []
@@ -667,11 +667,11 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
667
667
  modelValue: { required: !1, default: [] },
668
668
  modelModifiers: {}
669
669
  }),
670
- emits: /* @__PURE__ */ ve(["config"], ["update:modelValue"]),
670
+ emits: /* @__PURE__ */ pe(["config"], ["update:modelValue"]),
671
671
  setup(D, { emit: m }) {
672
- const { t: e, te: s } = ce(), t = ge(D, "modelValue"), w = D;
673
- _(() => !!w.max && t.value.length === w.max);
674
- const C = _(() => e(`report.section.metric.${w.label}`)), p = oe(!1), B = _(
672
+ const { t: e, te: s } = me(), t = fe(D, "modelValue"), w = D;
673
+ T(() => !!w.max && t.value.length === w.max);
674
+ const x = T(() => e(`report.section.metric.${w.label}`)), p = oe(!1), B = T(
675
675
  () => t.value.map((a, g) => ({
676
676
  index: g,
677
677
  labels: [a.label || a.name],
@@ -679,20 +679,20 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
679
679
  }))
680
680
  ), U = oe(t.value.length > 0 ? 0 : void 0);
681
681
  function o(a) {
682
- var g, c, x;
682
+ var g, c, S;
683
683
  p.value = !0, r.value = a != null && a.value ? JSON.parse(
684
684
  JSON.stringify({
685
685
  ...a.value,
686
- label: me(e, s, a.value.label, "other")
686
+ label: de(e, s, a.value.label, "other")
687
687
  })
688
- ) : void 0, U.value = a == null ? void 0 : a.index, f.value = !!((g = r.value) != null && g.dataFormula || (c = r.value) != null && c.displayFormula), r.value && r.value.formatter === void 0 && (w.options.find(
688
+ ) : void 0, U.value = a == null ? void 0 : a.index, v.value = !!((g = r.value) != null && g.dataFormula || (c = r.value) != null && c.displayFormula), r.value && r.value.formatter === void 0 && (w.options.find(
689
689
  (i) => {
690
690
  var n, A;
691
691
  return i.schemaName === ((n = r.value) == null ? void 0 : n.schemaName) && i.name === ((A = r.value) == null ? void 0 : A.name);
692
692
  }
693
- ), a != null && a.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = a == null ? void 0 : a.value.timeFormatter, r.value.timeFormatter = void 0)), ((x = w.config.rowIds) == null ? void 0 : x.findIndex((i) => i === qe.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!w.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
693
+ ), a != null && a.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = a == null ? void 0 : a.value.timeFormatter, r.value.timeFormatter = void 0)), ((S = w.config.rowIds) == null ? void 0 : S.findIndex((i) => i === Ge.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!w.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
694
694
  }
695
- const r = oe(void 0), f = oe(!1), y = _(
695
+ const r = oe(void 0), v = oe(!1), b = T(
696
696
  () => w.options.find(
697
697
  (a) => {
698
698
  var g, c;
@@ -704,49 +704,49 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
704
704
  var c;
705
705
  return (a == null ? void 0 : a.isNumericType) || ((c = a == null ? void 0 : a.isNumericAggregations) == null ? void 0 : c.includes(g || ""));
706
706
  }
707
- const b = _(
707
+ const h = T(
708
708
  () => {
709
709
  var a;
710
- return L(y.value, (a = r.value) == null ? void 0 : a.aggregation);
710
+ return L(b.value, (a = r.value) == null ? void 0 : a.aggregation);
711
711
  }
712
712
  );
713
- he(b, (a) => {
713
+ he(h, (a) => {
714
714
  r.value && (a ? r.value.decimal = typeof r.value.decimal != "number" ? 2 : r.value.decimal : r.value.decimal = void 0);
715
715
  });
716
- function k(a) {
716
+ function F(a) {
717
717
  var g, c;
718
718
  (a.schemaName !== ((g = r.value) == null ? void 0 : g.schemaName) || a.name !== ((c = r.value) == null ? void 0 : c.name)) && (r.value = {
719
719
  schemaName: a.schemaName,
720
720
  name: a.name,
721
721
  aggregation: a.aggregations[0],
722
- label: me(e, s, a.label, "other"),
722
+ label: de(e, s, a.label, "other"),
723
723
  nullable: !1,
724
724
  decimal: L(a, a.aggregations[0]) ? 2 : void 0,
725
725
  moveToRow: !1,
726
726
  hide: !1
727
- }, f.value = !1);
727
+ }, v.value = !1);
728
728
  }
729
729
  function z() {
730
730
  const a = [...B.value.map((g) => g.value)];
731
- r.value && (f.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), w.hasXy || (r.value.nullable = !1), U.value !== void 0 ? a[U.value] = r.value : a.push(r.value)), t.value = a, p.value = !1;
731
+ r.value && (v.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), w.hasXy || (r.value.nullable = !1), U.value !== void 0 ? a[U.value] = r.value : a.push(r.value)), t.value = a, p.value = !1;
732
732
  }
733
- function S(a) {
733
+ function k(a) {
734
734
  const g = [...B.value.map((c) => c.value)];
735
735
  g.splice(a, 1), t.value = g;
736
736
  }
737
- const d = _(
737
+ const d = T(
738
738
  () => w.options.map((a) => ({
739
739
  label: a.labels.join(" "),
740
740
  value: a
741
741
  }))
742
742
  );
743
743
  return (a, g) => {
744
- const c = $("FmTextField"), x = $("FmStepperField"), i = $("FmCheckbox"), n = $("FmTextarea"), A = $("FmForm"), I = $("FmIcon"), Q = $("FmButton"), ee = $("FmListItem"), M = $("FmList"), ie = $("FmField");
745
- return v(), E("div", mo, [
746
- u(De, {
744
+ const c = $("FmTextField"), S = $("FmStepperField"), i = $("FmCheckbox"), n = $("FmTextarea"), A = $("FmForm"), E = $("FmIcon"), J = $("FmButton"), te = $("FmListItem"), M = $("FmList"), ge = $("FmField");
745
+ return f(), H("div", go, [
746
+ u(Ae, {
747
747
  modelValue: p.value,
748
- "onUpdate:modelValue": g[11] || (g[11] = (P) => p.value = P),
749
- title: C.value,
748
+ "onUpdate:modelValue": g[11] || (g[11] = (X) => p.value = X),
749
+ title: x.value,
750
750
  onConfirm: z
751
751
  }, {
752
752
  content: G(() => [
@@ -755,91 +755,91 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
755
755
  class: "flex flex-col gap-2 w-[490px]"
756
756
  }, {
757
757
  default: G(() => {
758
- var P, N, H, ae;
758
+ var X, j, Y, ee;
759
759
  return [
760
- u(fe, {
761
- "model-value": y.value,
760
+ u(ve, {
761
+ "model-value": b.value,
762
762
  items: d.value,
763
- placeholder: C.value,
764
- label: C.value,
765
- "onUpdate:modelValue": g[0] || (g[0] = (Y) => k(Y))
763
+ placeholder: x.value,
764
+ label: x.value,
765
+ "onUpdate:modelValue": g[0] || (g[0] = (I) => F(I))
766
766
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
767
- r.value ? (v(), E(de, { key: 0 }, [
767
+ r.value ? (f(), H(ue, { key: 0 }, [
768
768
  u(c, {
769
769
  modelValue: r.value.label,
770
- "onUpdate:modelValue": g[1] || (g[1] = (Y) => r.value.label = Y),
770
+ "onUpdate:modelValue": g[1] || (g[1] = (I) => r.value.label = I),
771
771
  label: l(e)("report.section.metric.label")
772
772
  }, null, 8, ["modelValue", "label"]),
773
- (((P = y.value) == null ? void 0 : P.aggregations) || []).length > 0 ? (v(), j(fe, {
773
+ (((X = b.value) == null ? void 0 : X.aggregations) || []).length > 0 ? (f(), N(ve, {
774
774
  key: 0,
775
775
  modelValue: r.value.aggregation,
776
- "onUpdate:modelValue": g[2] || (g[2] = (Y) => r.value.aggregation = Y),
776
+ "onUpdate:modelValue": g[2] || (g[2] = (I) => r.value.aggregation = I),
777
777
  label: l(e)("report.section.metric.aggregation"),
778
- items: ((N = y.value) == null ? void 0 : N.aggregations.map((Y) => ({
779
- label: l(s)(`report.section.metric.aggregationType.${Y}`) ? l(e)(`report.section.metric.aggregationType.${Y}`) : l(me)(l(e), l(s), Y, "field"),
780
- value: Y
778
+ items: ((j = b.value) == null ? void 0 : j.aggregations.map((I) => ({
779
+ label: l(s)(`report.section.metric.aggregationType.${I}`) ? l(e)(`report.section.metric.aggregationType.${I}`) : l(de)(l(e), l(s), I, "field"),
780
+ value: I
781
781
  }))) ?? []
782
782
  }, null, 8, ["modelValue", "label", "items"])) : O("", !0),
783
- b.value ? (v(), j(x, {
783
+ h.value ? (f(), N(S, {
784
784
  key: 1,
785
785
  label: l(e)("report.common.decimal"),
786
- "model-value": ((H = r.value) == null ? void 0 : H.decimal) ?? 2,
787
- "onUpdate:modelValue": g[3] || (g[3] = (Y) => {
788
- r.value && (r.value.decimal = Y);
786
+ "model-value": ((Y = r.value) == null ? void 0 : Y.decimal) ?? 2,
787
+ "onUpdate:modelValue": g[3] || (g[3] = (I) => {
788
+ r.value && (r.value.decimal = I);
789
789
  })
790
790
  }, null, 8, ["label", "model-value"])) : O("", !0),
791
- b.value ? (v(), j(fe, {
791
+ h.value ? (f(), N(ve, {
792
792
  key: 2,
793
793
  modelValue: r.value.formatter,
794
- "onUpdate:modelValue": g[4] || (g[4] = (Y) => r.value.formatter = Y),
794
+ "onUpdate:modelValue": g[4] || (g[4] = (I) => r.value.formatter = I),
795
795
  placeholder: l(e)("report.section.metric.formatter"),
796
796
  label: l(e)("report.section.metric.formatter"),
797
797
  items: [
798
798
  { label: l(e)("report.section.metric.formatterType.NONE"), value: null },
799
- ...(((ae = y.value) == null ? void 0 : ae.formatters) || []).map((Y) => ({
800
- label: l(s)(`report.section.metric.formatterType.${Y}`) ? l(e)(`report.section.metric.formatterType.${Y}`) : l(me)(l(e), l(s), Y, "field"),
801
- value: Y
799
+ ...(((ee = b.value) == null ? void 0 : ee.formatters) || []).map((I) => ({
800
+ label: l(s)(`report.section.metric.formatterType.${I}`) ? l(e)(`report.section.metric.formatterType.${I}`) : l(de)(l(e), l(s), I, "field"),
801
+ value: I
802
802
  }))
803
803
  ]
804
804
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : O("", !0),
805
805
  u(i, {
806
806
  modelValue: r.value.hide,
807
- "onUpdate:modelValue": g[5] || (g[5] = (Y) => r.value.hide = Y),
807
+ "onUpdate:modelValue": g[5] || (g[5] = (I) => r.value.hide = I),
808
808
  label: l(e)("report.section.metric.hide"),
809
809
  value: ""
810
810
  }, null, 8, ["modelValue", "label"]),
811
- w.hasXy ? (v(), j(i, {
811
+ w.hasXy ? (f(), N(i, {
812
812
  key: 3,
813
813
  "model-value": r.value.nullable ?? !1,
814
814
  label: l(e)("report.section.metric.nullable"),
815
815
  value: !0,
816
- "onUpdate:modelValue": g[6] || (g[6] = (Y) => {
817
- r.value && (r.value.nullable = Y);
816
+ "onUpdate:modelValue": g[6] || (g[6] = (I) => {
817
+ r.value && (r.value.nullable = I);
818
818
  })
819
819
  }, null, 8, ["model-value", "label"])) : O("", !0),
820
- w.hasRowColumn ? (v(), j(i, {
820
+ w.hasRowColumn ? (f(), N(i, {
821
821
  key: 4,
822
822
  modelValue: r.value.moveToRow,
823
- "onUpdate:modelValue": g[7] || (g[7] = (Y) => r.value.moveToRow = Y),
823
+ "onUpdate:modelValue": g[7] || (g[7] = (I) => r.value.moveToRow = I),
824
824
  label: l(e)("report.section.metric.moveToRow"),
825
825
  value: ""
826
826
  }, null, 8, ["modelValue", "label"])) : O("", !0),
827
827
  u(i, {
828
- modelValue: f.value,
829
- "onUpdate:modelValue": g[8] || (g[8] = (Y) => f.value = Y),
828
+ modelValue: v.value,
829
+ "onUpdate:modelValue": g[8] || (g[8] = (I) => v.value = I),
830
830
  label: l(e)("report.section.metric.advance"),
831
831
  value: !0
832
832
  }, null, 8, ["modelValue", "label"]),
833
- f.value ? (v(), j(n, {
833
+ v.value ? (f(), N(n, {
834
834
  key: 5,
835
835
  modelValue: r.value.dataFormula,
836
- "onUpdate:modelValue": g[9] || (g[9] = (Y) => r.value.dataFormula = Y),
836
+ "onUpdate:modelValue": g[9] || (g[9] = (I) => r.value.dataFormula = I),
837
837
  placeholder: l(e)("report.section.metric.dataFormula")
838
838
  }, null, 8, ["modelValue", "placeholder"])) : O("", !0),
839
- f.value ? (v(), j(n, {
839
+ v.value ? (f(), N(n, {
840
840
  key: 6,
841
841
  modelValue: r.value.displayFormula,
842
- "onUpdate:modelValue": g[10] || (g[10] = (Y) => r.value.displayFormula = Y),
842
+ "onUpdate:modelValue": g[10] || (g[10] = (I) => r.value.displayFormula = I),
843
843
  placeholder: l(e)("report.section.metric.displayFormula")
844
844
  }, null, 8, ["modelValue", "placeholder"])) : O("", !0)
845
845
  ], 64)) : O("", !0)
@@ -850,31 +850,31 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
850
850
  ]),
851
851
  _: 1
852
852
  }, 8, ["modelValue", "title"]),
853
- h("div", null, [
854
- h("p", co, K(C.value), 1),
855
- h("p", po, K(l(e)("report.section.metric.description")), 1)
853
+ C("div", null, [
854
+ C("p", yo, Q(x.value), 1),
855
+ C("p", bo, Q(l(e)("report.section.metric.description")), 1)
856
856
  ]),
857
857
  u(M, null, {
858
858
  default: G(() => [
859
- u(l(Re), {
859
+ u(l(Ie), {
860
860
  list: t.value,
861
861
  "item-key": "id",
862
862
  class: "flex flex-col gap-2 w-full"
863
863
  }, {
864
- item: G(({ element: P, index: N }) => [
865
- u(ee, {
864
+ item: G(({ element: X, index: j }) => [
865
+ u(te, {
866
866
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
867
- onClick: ye((H) => o(B.value[N]), ["stop"])
867
+ onClick: ye((Y) => o(B.value[j]), ["stop"])
868
868
  }, {
869
869
  default: G(() => [
870
- u(I, { name: "drag_handle" }),
871
- h("p", vo, K(l(me)(l(e), l(s), P.label, "other")), 1),
872
- g[13] || (g[13] = h("div", { class: "grow" }, null, -1)),
873
- u(Q, {
870
+ u(E, { name: "drag_handle" }),
871
+ C("p", ho, Q(l(de)(l(e), l(s), X.label, "other")), 1),
872
+ g[13] || (g[13] = C("div", { class: "grow" }, null, -1)),
873
+ u(J, {
874
874
  icon: "close",
875
875
  size: "md",
876
876
  variant: "tertiary",
877
- onClick: ye((H) => S(N), ["stop"])
877
+ onClick: ye((Y) => k(j), ["stop"])
878
878
  }, null, 8, ["onClick"])
879
879
  ]),
880
880
  _: 2
@@ -885,23 +885,23 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
885
885
  ]),
886
886
  _: 1
887
887
  }),
888
- u(ie, {
888
+ u(ge, {
889
889
  class: "text-fm-color-typo-tertiary",
890
890
  onClick: g[12] || (g[12] = () => {
891
891
  o();
892
892
  })
893
893
  }, {
894
894
  default: G(() => [
895
- Ue(K(l(e)("report.section.metric.add")), 1)
895
+ Le(Q(l(e)("report.section.metric.add")), 1)
896
896
  ]),
897
897
  _: 1
898
898
  })
899
899
  ]);
900
900
  };
901
901
  }
902
- }), go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body-lg-600" }, bo = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, ho = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, wo = /* @__PURE__ */ re({
902
+ }), wo = { class: "flex flex-col my-2 gap-8" }, xo = { class: "fm-typo-en-body-lg-600" }, Vo = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Fo = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, ko = /* @__PURE__ */ ie({
903
903
  __name: "SortSection",
904
- props: /* @__PURE__ */ ve({
904
+ props: /* @__PURE__ */ pe({
905
905
  options: {
906
906
  type: Array,
907
907
  default: () => []
@@ -916,38 +916,38 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
916
916
  }),
917
917
  emits: ["update:modelValue"],
918
918
  setup(D) {
919
- const { t: m, te: e } = ce(), s = ge(D, "modelValue"), t = D, w = _(() => m(`report.section.sort.${t.label}`)), C = oe(!1), p = _(
920
- () => s.value.map((S, d) => {
919
+ const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.sort.${t.label}`)), x = oe(!1), p = T(
920
+ () => s.value.map((k, d) => {
921
921
  const a = t.options.find(
922
- (c) => c.schemaName === S.schemaName && c.name === S.name
923
- ), g = (a == null ? void 0 : a.labels) || [S.schemaName, S.name];
922
+ (c) => c.schemaName === k.schemaName && c.name === k.name
923
+ ), g = (a == null ? void 0 : a.labels) || [k.schemaName, k.name];
924
924
  return {
925
925
  index: d,
926
- label: g.map((c) => me(m, e, c, "other")).join(" "),
927
- value: S
926
+ label: g.map((c) => de(m, e, c, "other")).join(" "),
927
+ value: k
928
928
  };
929
929
  })
930
930
  ), B = oe(s.value.length > 0 ? 0 : void 0);
931
- function U(S) {
931
+ function U(k) {
932
932
  var d;
933
- C.value = !0, o.value = S != null && S.value ? JSON.parse(JSON.stringify(S.value)) : void 0, B.value = S == null ? void 0 : S.index, r.value = !!((d = o.value) != null && d.dataFormula);
933
+ x.value = !0, o.value = k != null && k.value ? JSON.parse(JSON.stringify(k.value)) : void 0, B.value = k == null ? void 0 : k.index, r.value = !!((d = o.value) != null && d.dataFormula);
934
934
  }
935
- const o = oe(void 0), r = oe(!1), f = _(
935
+ const o = oe(void 0), r = oe(!1), v = T(
936
936
  () => t.options.find(
937
- (S) => {
937
+ (k) => {
938
938
  var d, a;
939
- return S.schemaName === ((d = o.value) == null ? void 0 : d.schemaName) && S.name === ((a = o.value) == null ? void 0 : a.name);
939
+ return k.schemaName === ((d = o.value) == null ? void 0 : d.schemaName) && k.name === ((a = o.value) == null ? void 0 : a.name);
940
940
  }
941
941
  ) ?? {}
942
942
  );
943
- function y(S) {
943
+ function b(k) {
944
944
  var d, a;
945
- (S.schemaName !== ((d = o.value) == null ? void 0 : d.schemaName) || S.name !== ((a = o.value) == null ? void 0 : a.name)) && (o.value = {
946
- schemaName: S.schemaName,
947
- name: S.name,
948
- dimensionOption: S.dimensionOptions[0],
945
+ (k.schemaName !== ((d = o.value) == null ? void 0 : d.schemaName) || k.name !== ((a = o.value) == null ? void 0 : a.name)) && (o.value = {
946
+ schemaName: k.schemaName,
947
+ name: k.name,
948
+ dimensionOption: k.dimensionOptions[0],
949
949
  aggregation: null,
950
- type: ll.Asc
950
+ type: tl.Asc
951
951
  });
952
952
  }
953
953
  function L() {
@@ -955,29 +955,29 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
955
955
  console.log("new sort is undefined");
956
956
  return;
957
957
  }
958
- const S = [...p.value.map((d) => d.value)];
959
- r.value || (o.value.dataFormula = void 0), B.value !== void 0 ? S[B.value] = o.value : S.push(o.value), s.value = S, C.value = !1;
958
+ const k = [...p.value.map((d) => d.value)];
959
+ r.value || (o.value.dataFormula = void 0), B.value !== void 0 ? k[B.value] = o.value : k.push(o.value), s.value = k, x.value = !1;
960
960
  }
961
- function b(S) {
961
+ function h(k) {
962
962
  const d = [...p.value.map((a) => a.value)];
963
- d.splice(S, 1), s.value = d, C.value = !1;
963
+ d.splice(k, 1), s.value = d, x.value = !1;
964
964
  }
965
- function k(S) {
966
- const d = `report.section.filter.${$e(S)}`;
967
- return e(d) ? m(d) : me(m, e, S, "field");
965
+ function F(k) {
966
+ const d = `report.section.filter.${De(k)}`;
967
+ return e(d) ? m(d) : de(m, e, k, "field");
968
968
  }
969
- const z = _(
970
- () => t.options.map((S) => ({
971
- label: S.labels.join(" "),
972
- value: S
969
+ const z = T(
970
+ () => t.options.map((k) => ({
971
+ label: k.labels.join(" "),
972
+ value: k
973
973
  }))
974
974
  );
975
- return (S, d) => {
976
- const a = $("FmCheckbox"), g = $("FmTextarea"), c = $("FmForm"), x = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), A = $("FmList"), I = $("FmField");
977
- return v(), E("div", go, [
978
- u(De, {
979
- modelValue: C.value,
980
- "onUpdate:modelValue": d[6] || (d[6] = (Q) => C.value = Q),
975
+ return (k, d) => {
976
+ const a = $("FmCheckbox"), g = $("FmTextarea"), c = $("FmForm"), S = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), A = $("FmList"), E = $("FmField");
977
+ return f(), H("div", wo, [
978
+ u(Ae, {
979
+ modelValue: x.value,
980
+ "onUpdate:modelValue": d[6] || (d[6] = (J) => x.value = J),
981
981
  title: w.value,
982
982
  onConfirm: L
983
983
  }, {
@@ -987,58 +987,58 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
987
987
  class: "flex flex-col gap-2 w-[490px]"
988
988
  }, {
989
989
  default: G(() => {
990
- var Q, ee, M, ie;
990
+ var J, te, M, ge;
991
991
  return [
992
- u(fe, {
993
- "model-value": f.value,
992
+ u(ve, {
993
+ "model-value": v.value,
994
994
  items: z.value,
995
995
  placeholder: w.value,
996
996
  label: w.value,
997
- "onUpdate:modelValue": d[0] || (d[0] = (P) => y(P))
997
+ "onUpdate:modelValue": d[0] || (d[0] = (X) => b(X))
998
998
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
999
- o.value ? (v(), E(de, { key: 0 }, [
1000
- (((Q = f.value) == null ? void 0 : Q.dimensionOptions) || []).length > 0 ? (v(), j(fe, {
999
+ o.value ? (f(), H(ue, { key: 0 }, [
1000
+ (((J = v.value) == null ? void 0 : J.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
1001
1001
  key: 0,
1002
1002
  modelValue: o.value.dimensionOption,
1003
- "onUpdate:modelValue": d[1] || (d[1] = (P) => o.value.dimensionOption = P),
1004
- items: ((ee = f.value) == null ? void 0 : ee.dimensionOptions.map((P) => ({
1005
- label: k(P),
1006
- value: P
1003
+ "onUpdate:modelValue": d[1] || (d[1] = (X) => o.value.dimensionOption = X),
1004
+ items: ((te = v.value) == null ? void 0 : te.dimensionOptions.map((X) => ({
1005
+ label: F(X),
1006
+ value: X
1007
1007
  }))) ?? [],
1008
1008
  placeholder: l(m)("report.section.sort.format"),
1009
1009
  label: l(m)("report.section.sort.format")
1010
1010
  }, null, 8, ["modelValue", "items", "placeholder", "label"])) : O("", !0),
1011
- (((M = f.value) == null ? void 0 : M.aggregations) || []).length > 0 ? (v(), j(fe, {
1011
+ (((M = v.value) == null ? void 0 : M.aggregations) || []).length > 0 ? (f(), N(ve, {
1012
1012
  key: 1,
1013
1013
  modelValue: o.value.aggregation,
1014
- "onUpdate:modelValue": d[2] || (d[2] = (P) => o.value.aggregation = P),
1015
- items: ((ie = f.value) == null ? void 0 : ie.aggregations.map((P) => ({
1016
- label: l(e)(`report.section.metric.aggregationType.${P}`) ? l(m)(`report.section.metric.aggregationType.${P}`) : P,
1017
- value: P
1014
+ "onUpdate:modelValue": d[2] || (d[2] = (X) => o.value.aggregation = X),
1015
+ items: ((ge = v.value) == null ? void 0 : ge.aggregations.map((X) => ({
1016
+ label: l(e)(`report.section.metric.aggregationType.${X}`) ? l(m)(`report.section.metric.aggregationType.${X}`) : X,
1017
+ value: X
1018
1018
  }))) ?? [],
1019
1019
  label: l(m)("report.section.sort.aggregation"),
1020
1020
  placeholder: l(m)("report.section.sort.aggregation")
1021
1021
  }, null, 8, ["modelValue", "items", "label", "placeholder"])) : O("", !0),
1022
- u(fe, {
1022
+ u(ve, {
1023
1023
  modelValue: o.value.type,
1024
- "onUpdate:modelValue": d[3] || (d[3] = (P) => o.value.type = P),
1025
- items: Object.values(l(ll)).map((P) => ({
1026
- label: l(e)(`report.section.sort.sortType.${P}`) ? l(m)(`report.section.sort.sortType.${P}`) : P,
1027
- value: P
1024
+ "onUpdate:modelValue": d[3] || (d[3] = (X) => o.value.type = X),
1025
+ items: Object.values(l(tl)).map((X) => ({
1026
+ label: l(e)(`report.section.sort.sortType.${X}`) ? l(m)(`report.section.sort.sortType.${X}`) : X,
1027
+ value: X
1028
1028
  })),
1029
1029
  placeholder: l(m)("report.section.sort.order"),
1030
1030
  label: l(m)("report.section.sort.order")
1031
1031
  }, null, 8, ["modelValue", "items", "placeholder", "label"]),
1032
1032
  u(a, {
1033
1033
  modelValue: r.value,
1034
- "onUpdate:modelValue": d[4] || (d[4] = (P) => r.value = P),
1034
+ "onUpdate:modelValue": d[4] || (d[4] = (X) => r.value = X),
1035
1035
  label: l(m)("report.section.sort.advance"),
1036
1036
  value: !0
1037
1037
  }, null, 8, ["modelValue", "label"]),
1038
- r.value ? (v(), j(g, {
1038
+ r.value ? (f(), N(g, {
1039
1039
  key: 2,
1040
1040
  modelValue: o.value.dataFormula,
1041
- "onUpdate:modelValue": d[5] || (d[5] = (P) => o.value.dataFormula = P),
1041
+ "onUpdate:modelValue": d[5] || (d[5] = (X) => o.value.dataFormula = X),
1042
1042
  placeholder: l(m)("report.section.sort.dataFormula")
1043
1043
  }, null, 8, ["modelValue", "placeholder"])) : O("", !0)
1044
1044
  ], 64)) : O("", !0)
@@ -1049,31 +1049,31 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1049
1049
  ]),
1050
1050
  _: 1
1051
1051
  }, 8, ["modelValue", "title"]),
1052
- h("div", null, [
1053
- h("p", yo, K(w.value), 1),
1054
- h("p", bo, K(l(m)("report.section.sort.description")), 1)
1052
+ C("div", null, [
1053
+ C("p", xo, Q(w.value), 1),
1054
+ C("p", Vo, Q(l(m)("report.section.sort.description")), 1)
1055
1055
  ]),
1056
1056
  u(A, null, {
1057
1057
  default: G(() => [
1058
- u(l(Re), {
1058
+ u(l(Ie), {
1059
1059
  list: s.value,
1060
1060
  "item-key": "id",
1061
1061
  class: "flex flex-col gap-2 w-full"
1062
1062
  }, {
1063
- item: G(({ element: Q, index: ee }) => [
1063
+ item: G(({ element: J, index: te }) => [
1064
1064
  u(n, {
1065
1065
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1066
- onClick: ye((M) => U(p.value[ee]), ["stop"])
1066
+ onClick: ye((M) => U(p.value[te]), ["stop"])
1067
1067
  }, {
1068
1068
  default: G(() => [
1069
- u(x, { name: "drag_handle" }),
1070
- h("p", ho, K(p.value[ee].label), 1),
1071
- d[8] || (d[8] = h("div", { class: "grow" }, null, -1)),
1069
+ u(S, { name: "drag_handle" }),
1070
+ C("p", Fo, Q(p.value[te].label), 1),
1071
+ d[8] || (d[8] = C("div", { class: "grow" }, null, -1)),
1072
1072
  u(i, {
1073
1073
  icon: "close",
1074
1074
  size: "md",
1075
1075
  variant: "tertiary",
1076
- onClick: ye((M) => b(ee), ["stop"])
1076
+ onClick: ye((M) => h(te), ["stop"])
1077
1077
  }, null, 8, ["onClick"])
1078
1078
  ]),
1079
1079
  _: 2
@@ -1084,21 +1084,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1084
1084
  ]),
1085
1085
  _: 1
1086
1086
  }),
1087
- u(I, {
1087
+ u(E, {
1088
1088
  class: "text-fm-color-typo-tertiary",
1089
1089
  onClick: d[7] || (d[7] = () => {
1090
1090
  U();
1091
1091
  })
1092
1092
  }, {
1093
1093
  default: G(() => [
1094
- Ue(K(l(m)("report.section.sort.add")), 1)
1094
+ Le(Q(l(m)("report.section.sort.add")), 1)
1095
1095
  ]),
1096
1096
  _: 1
1097
1097
  })
1098
1098
  ]);
1099
1099
  };
1100
1100
  }
1101
- }), Co = { class: "fm-typo-en-body-lg-600" }, xo = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Vo = /* @__PURE__ */ re({
1101
+ }), So = { class: "fm-typo-en-body-lg-600" }, _o = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, To = /* @__PURE__ */ ie({
1102
1102
  __name: "LimitSection",
1103
1103
  props: {
1104
1104
  modelValue: { required: !0, default: null },
@@ -1106,17 +1106,17 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1106
1106
  },
1107
1107
  emits: ["update:modelValue"],
1108
1108
  setup(D) {
1109
- const { t: m } = ce(), e = ge(D, "modelValue"), s = je((t) => {
1109
+ const { t: m } = me(), e = fe(D, "modelValue"), s = ze((t) => {
1110
1110
  t !== "" ? e.value = t : e.value = null;
1111
1111
  }, 1e3);
1112
1112
  return (t, w) => {
1113
- const C = $("FmTextField");
1114
- return v(), E(de, null, [
1115
- h("div", null, [
1116
- h("p", Co, K(l(m)("report.section.limit.title")), 1),
1117
- h("p", xo, K(l(m)("report.section.limit.description")), 1)
1113
+ const x = $("FmTextField");
1114
+ return f(), H(ue, null, [
1115
+ C("div", null, [
1116
+ C("p", So, Q(l(m)("report.section.limit.title")), 1),
1117
+ C("p", _o, Q(l(m)("report.section.limit.description")), 1)
1118
1118
  ]),
1119
- u(C, {
1119
+ u(x, {
1120
1120
  "model-value": e.value,
1121
1121
  inputmode: "numeric",
1122
1122
  placeholder: l(m)("report.section.limit.placeholder"),
@@ -1125,9 +1125,9 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1125
1125
  ], 64);
1126
1126
  };
1127
1127
  }
1128
- }), Fo = { class: "flex flex-col my-2 gap-8" }, ko = { class: "fm-typo-en-body-lg-600" }, So = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, _o = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, To = /* @__PURE__ */ re({
1128
+ }), $o = { class: "flex flex-col my-2 gap-8" }, Uo = { class: "fm-typo-en-body-lg-600" }, Do = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Bo = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Lo = /* @__PURE__ */ ie({
1129
1129
  __name: "ConditionSection",
1130
- props: /* @__PURE__ */ ve({
1130
+ props: /* @__PURE__ */ pe({
1131
1131
  joinFieldOptions: {
1132
1132
  type: Array,
1133
1133
  default: () => []
@@ -1146,21 +1146,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1146
1146
  }),
1147
1147
  emits: ["update:modelValue"],
1148
1148
  setup(D) {
1149
- const { t: m, te: e } = ce(), s = ge(D, "modelValue"), t = D, w = _(() => m(`report.section.condition.${t.label}`)), C = oe(!1), p = _(
1149
+ const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.condition.${t.label}`)), x = oe(!1), p = T(
1150
1150
  () => s.value.map((d, a) => {
1151
- var x, i;
1151
+ var S, i;
1152
1152
  const g = t.joinFieldOptions.find(
1153
1153
  (n) => {
1154
- var A, I;
1155
- return n.schemaName === ((A = d.joinDimension) == null ? void 0 : A.schemaName) && n.name === ((I = d.joinDimension) == null ? void 0 : I.name);
1154
+ var A, E;
1155
+ return n.schemaName === ((A = d.joinDimension) == null ? void 0 : A.schemaName) && n.name === ((E = d.joinDimension) == null ? void 0 : E.name);
1156
1156
  }
1157
1157
  ), c = (g == null ? void 0 : g.labels) || [
1158
- (x = d.joinDimension) == null ? void 0 : x.schemaName,
1158
+ (S = d.joinDimension) == null ? void 0 : S.schemaName,
1159
1159
  (i = d.joinDimension) == null ? void 0 : i.name
1160
1160
  ];
1161
1161
  return {
1162
1162
  index: a,
1163
- label: c.map((n) => me(m, e, n, "other")).join(" "),
1163
+ label: c.map((n) => de(m, e, n, "other")).join(" "),
1164
1164
  value: d
1165
1165
  };
1166
1166
  })
@@ -1170,16 +1170,16 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1170
1170
  joinDimension: null,
1171
1171
  operator: "",
1172
1172
  mainDimensions: []
1173
- }, B.value = void 0), C.value = !0;
1173
+ }, B.value = void 0), x.value = !0;
1174
1174
  }
1175
- const o = oe(void 0), r = _(
1175
+ const o = oe(void 0), r = T(
1176
1176
  () => t.joinFieldOptions.find(
1177
1177
  (d) => {
1178
1178
  var a, g;
1179
1179
  return d.schemaName === ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) && d.name === o.value.joinDimension.name;
1180
1180
  }
1181
1181
  ) ?? {}
1182
- ), f = _(
1182
+ ), v = T(
1183
1183
  () => {
1184
1184
  var d;
1185
1185
  return (((d = o.value) == null ? void 0 : d.mainDimensions) || []).map(
@@ -1188,12 +1188,12 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1188
1188
  ) ?? {}
1189
1189
  );
1190
1190
  }
1191
- ), y = _(
1191
+ ), b = T(
1192
1192
  () => t.joinFieldOptions.map((d) => ({ label: d.labels.join(" "), value: d }))
1193
1193
  );
1194
1194
  function L(d) {
1195
- var a, g, c, x;
1196
- o.value && (o.value && d.schemaName !== ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) || d.name !== ((x = (c = o.value) == null ? void 0 : c.joinDimension) == null ? void 0 : x.name)) && (o.value = {
1195
+ var a, g, c, S;
1196
+ o.value && (o.value && d.schemaName !== ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) || d.name !== ((S = (c = o.value) == null ? void 0 : c.joinDimension) == null ? void 0 : S.name)) && (o.value = {
1197
1197
  ...o.value,
1198
1198
  joinDimension: {
1199
1199
  schemaName: d.schemaName,
@@ -1202,11 +1202,11 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1202
1202
  label: `_${d.label}`,
1203
1203
  hide: !0
1204
1204
  }
1205
- }, d.joinConditionOperators.includes(o.value.operator) || k(d.joinConditionOperators[0]));
1205
+ }, d.joinConditionOperators.includes(o.value.operator) || F(d.joinConditionOperators[0]));
1206
1206
  }
1207
- function b(d, a) {
1208
- var g, c, x, i;
1209
- if (o.value && a >= 0 && (o.value && d.schemaName !== ((c = (g = o.value) == null ? void 0 : g.mainDimensions[a]) == null ? void 0 : c.schemaName) || d.name !== ((i = (x = o.value) == null ? void 0 : x.mainDimensions[a]) == null ? void 0 : i.name))) {
1207
+ function h(d, a) {
1208
+ var g, c, S, i;
1209
+ if (o.value && a >= 0 && (o.value && d.schemaName !== ((c = (g = o.value) == null ? void 0 : g.mainDimensions[a]) == null ? void 0 : c.schemaName) || d.name !== ((i = (S = o.value) == null ? void 0 : S.mainDimensions[a]) == null ? void 0 : i.name))) {
1210
1210
  const n = [...o.value.mainDimensions];
1211
1211
  n[a] = {
1212
1212
  schemaName: d.schemaName,
@@ -1220,10 +1220,10 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1220
1220
  };
1221
1221
  }
1222
1222
  }
1223
- function k(d) {
1223
+ function F(d) {
1224
1224
  if (o.value)
1225
1225
  switch (d) {
1226
- case Xl.Between:
1226
+ case Gl.Between:
1227
1227
  o.value = {
1228
1228
  ...o.value,
1229
1229
  operator: d,
@@ -1243,18 +1243,18 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1243
1243
  const d = [...p.value.map((a) => a.value)];
1244
1244
  o.value && (o.value.mainDimensions = o.value.mainDimensions.filter(
1245
1245
  (a) => a !== "" && a != null
1246
- ), B.value !== void 0 ? d[B.value] = o.value : d.push(o.value)), s.value = d, C.value = !1;
1246
+ ), B.value !== void 0 ? d[B.value] = o.value : d.push(o.value)), s.value = d, x.value = !1;
1247
1247
  }
1248
- function S(d) {
1248
+ function k(d) {
1249
1249
  const a = [...p.value.map((g) => g.value)];
1250
1250
  a.splice(d, 1), s.value = a;
1251
1251
  }
1252
1252
  return (d, a) => {
1253
- const g = $("FmMenuDivider"), c = $("FmForm"), x = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), A = $("FmList"), I = $("FmField");
1254
- return v(), E("div", Fo, [
1255
- u(De, {
1256
- modelValue: C.value,
1257
- "onUpdate:modelValue": a[2] || (a[2] = (Q) => C.value = Q),
1253
+ const g = $("FmMenuDivider"), c = $("FmForm"), S = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), A = $("FmList"), E = $("FmField");
1254
+ return f(), H("div", $o, [
1255
+ u(Ae, {
1256
+ modelValue: x.value,
1257
+ "onUpdate:modelValue": a[2] || (a[2] = (J) => x.value = J),
1258
1258
  title: w.value,
1259
1259
  onConfirm: z
1260
1260
  }, {
@@ -1264,58 +1264,58 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1264
1264
  class: "flex flex-col gap-2 w-[490px]"
1265
1265
  }, {
1266
1266
  default: G(() => {
1267
- var Q, ee, M, ie, P;
1267
+ var J, te, M, ge, X;
1268
1268
  return [
1269
- u(fe, {
1269
+ u(ve, {
1270
1270
  label: l(m)("report.section.condition.joinDatasource"),
1271
1271
  "model-value": r.value,
1272
- items: y.value,
1272
+ items: b.value,
1273
1273
  placeholder: l(m)("report.section.condition.joinDimension"),
1274
- "onUpdate:modelValue": a[0] || (a[0] = (N) => L(N))
1274
+ "onUpdate:modelValue": a[0] || (a[0] = (j) => L(j))
1275
1275
  }, null, 8, ["label", "model-value", "items", "placeholder"]),
1276
1276
  u(g),
1277
- (Q = o.value) != null && Q.joinDimension && (((ee = r.value) == null ? void 0 : ee.dimensionOptions) || []).length > 0 ? (v(), j(fe, {
1277
+ (J = o.value) != null && J.joinDimension && (((te = r.value) == null ? void 0 : te.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
1278
1278
  key: 0,
1279
1279
  modelValue: o.value.joinDimension.option,
1280
- "onUpdate:modelValue": a[1] || (a[1] = (N) => o.value.joinDimension.option = N),
1280
+ "onUpdate:modelValue": a[1] || (a[1] = (j) => o.value.joinDimension.option = j),
1281
1281
  label: l(m)("report.section.condition.format"),
1282
- items: ((M = r.value) == null ? void 0 : M.dimensionOptions.map((N) => ({
1283
- label: l(e)(`report.section.filter.${l($e)(N)}`) ? l(m)(`report.section.filter.${l($e)(N)}`) : N,
1284
- value: N
1282
+ items: ((M = r.value) == null ? void 0 : M.dimensionOptions.map((j) => ({
1283
+ label: l(e)(`report.section.filter.${l(De)(j)}`) ? l(m)(`report.section.filter.${l(De)(j)}`) : j,
1284
+ value: j
1285
1285
  }))) ?? []
1286
1286
  }, null, 8, ["modelValue", "label", "items"])) : O("", !0),
1287
- o.value && (((ie = r.value) == null ? void 0 : ie.joinConditionOperators) || []).length > 0 ? (v(), j(fe, {
1287
+ o.value && (((ge = r.value) == null ? void 0 : ge.joinConditionOperators) || []).length > 0 ? (f(), N(ve, {
1288
1288
  key: 1,
1289
1289
  "model-value": o.value.operator,
1290
1290
  label: l(m)("report.section.condition.operator"),
1291
- items: r.value.joinConditionOperators.map((N) => ({
1292
- label: l(m)("report.section.comparisonOperator." + N),
1293
- value: N
1291
+ items: r.value.joinConditionOperators.map((j) => ({
1292
+ label: l(m)("report.section.comparisonOperator." + j),
1293
+ value: j
1294
1294
  })) ?? [],
1295
- "onUpdate:modelValue": k
1295
+ "onUpdate:modelValue": F
1296
1296
  }, null, 8, ["model-value", "label", "items"])) : O("", !0),
1297
- (v(!0), E(de, null, xe(((P = o.value) == null ? void 0 : P.mainDimensions) || [], (N, H) => {
1298
- var ae, Y;
1299
- return v(), E("div", {
1300
- key: H,
1297
+ (f(!0), H(ue, null, xe(((X = o.value) == null ? void 0 : X.mainDimensions) || [], (j, Y) => {
1298
+ var ee, I;
1299
+ return f(), H("div", {
1300
+ key: Y,
1301
1301
  class: "flex flex-col gap-2"
1302
1302
  }, [
1303
- u(fe, {
1304
- "model-value": f.value[H],
1305
- label: l(m)("report.section.condition.mainDatasource", { index: H + 1 }),
1306
- items: t.mainFieldOptions.map((pe) => ({
1307
- label: pe.labels.join(" "),
1308
- value: pe
1303
+ u(ve, {
1304
+ "model-value": v.value[Y],
1305
+ label: l(m)("report.section.condition.mainDatasource", { index: Y + 1 }),
1306
+ items: t.mainFieldOptions.map((se) => ({
1307
+ label: se.labels.join(" "),
1308
+ value: se
1309
1309
  })),
1310
- "onUpdate:modelValue": (pe) => b(pe, H)
1310
+ "onUpdate:modelValue": (se) => h(se, Y)
1311
1311
  }, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
1312
- N && (((ae = f.value[H]) == null ? void 0 : ae.dimensionOptions) || []).length > 0 && N ? (v(), j(fe, {
1312
+ j && (((ee = v.value[Y]) == null ? void 0 : ee.dimensionOptions) || []).length > 0 && j ? (f(), N(ve, {
1313
1313
  key: 0,
1314
- modelValue: N.option,
1315
- "onUpdate:modelValue": (pe) => N.option = pe,
1316
- items: (Y = f.value[H]) == null ? void 0 : Y.dimensionOptions.map((pe) => ({
1317
- label: l(e)(`report.section.filter.${l($e)(pe)}`) ? l(m)(`report.section.filter.${l($e)(pe)}`) : pe,
1318
- value: pe
1314
+ modelValue: j.option,
1315
+ "onUpdate:modelValue": (se) => j.option = se,
1316
+ items: (I = v.value[Y]) == null ? void 0 : I.dimensionOptions.map((se) => ({
1317
+ label: l(e)(`report.section.filter.${l(De)(se)}`) ? l(m)(`report.section.filter.${l(De)(se)}`) : se,
1318
+ value: se
1319
1319
  }))
1320
1320
  }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : O("", !0),
1321
1321
  u(g)
@@ -1328,37 +1328,37 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1328
1328
  ]),
1329
1329
  _: 1
1330
1330
  }, 8, ["modelValue", "title"]),
1331
- h("div", null, [
1332
- h("p", ko, K(w.value), 1),
1333
- h("p", So, K(l(m)("report.section.condition.description")), 1)
1331
+ C("div", null, [
1332
+ C("p", Uo, Q(w.value), 1),
1333
+ C("p", Do, Q(l(m)("report.section.condition.description")), 1)
1334
1334
  ]),
1335
1335
  u(A, { class: "flex flex-col gap-2" }, {
1336
1336
  default: G(() => [
1337
- u(l(Re), {
1337
+ u(l(Ie), {
1338
1338
  list: s.value,
1339
- "item-key": (Q) => {
1340
- var ee, M;
1341
- return `${(ee = Q.joinDimension) == null ? void 0 : ee.schemaName}:${(M = Q.joinDimension) == null ? void 0 : M.name}`;
1339
+ "item-key": (J) => {
1340
+ var te, M;
1341
+ return `${(te = J.joinDimension) == null ? void 0 : te.schemaName}:${(M = J.joinDimension) == null ? void 0 : M.name}`;
1342
1342
  },
1343
1343
  class: "flex flex-col gap-2 w-full"
1344
1344
  }, {
1345
1345
  item: G(({
1346
- element: Q,
1347
- index: ee
1346
+ element: J,
1347
+ index: te
1348
1348
  }) => [
1349
1349
  u(n, {
1350
1350
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1351
- onClick: ye((M) => U(p.value[ee]), ["stop"])
1351
+ onClick: ye((M) => U(p.value[te]), ["stop"])
1352
1352
  }, {
1353
1353
  default: G(() => [
1354
- u(x, { name: "drag_handle" }),
1355
- h("p", _o, K(p.value[ee].label), 1),
1356
- a[4] || (a[4] = h("div", { class: "grow" }, null, -1)),
1354
+ u(S, { name: "drag_handle" }),
1355
+ C("p", Bo, Q(p.value[te].label), 1),
1356
+ a[4] || (a[4] = C("div", { class: "grow" }, null, -1)),
1357
1357
  u(i, {
1358
1358
  icon: "close",
1359
1359
  size: "md",
1360
1360
  variant: "tertiary",
1361
- onClick: ye((M) => S(ee), ["stop"])
1361
+ onClick: ye((M) => k(te), ["stop"])
1362
1362
  }, null, 8, ["onClick"])
1363
1363
  ]),
1364
1364
  _: 2
@@ -1369,21 +1369,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1369
1369
  ]),
1370
1370
  _: 1
1371
1371
  }),
1372
- u(I, {
1372
+ u(E, {
1373
1373
  class: "text-fm-color-typo-tertiary cursor-pointer",
1374
- onClick: a[3] || (a[3] = (Q) => U())
1374
+ onClick: a[3] || (a[3] = (J) => U())
1375
1375
  }, {
1376
1376
  default: G(() => [
1377
- Ue(K(l(m)("report.section.condition.add")), 1)
1377
+ Le(Q(l(m)("report.section.condition.add")), 1)
1378
1378
  ]),
1379
1379
  _: 1
1380
1380
  })
1381
1381
  ]);
1382
1382
  };
1383
1383
  }
1384
- }), il = /* @__PURE__ */ re({
1384
+ }), rl = /* @__PURE__ */ ie({
1385
1385
  __name: "Datasource",
1386
- props: /* @__PURE__ */ ve({
1386
+ props: /* @__PURE__ */ pe({
1387
1387
  label: {
1388
1388
  type: String,
1389
1389
  default: "Label"
@@ -1410,44 +1410,44 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1410
1410
  modelValue: { required: !0 },
1411
1411
  modelModifiers: {}
1412
1412
  }),
1413
- emits: /* @__PURE__ */ ve(["click-close"], ["update:modelValue"]),
1413
+ emits: /* @__PURE__ */ pe(["click-close"], ["update:modelValue"]),
1414
1414
  setup(D, { emit: m }) {
1415
- const { disableEditMode: e, resetStore: s } = Oe(), t = ge(D, "modelValue");
1415
+ const { disableEditMode: e, resetStore: s } = je(), t = fe(D, "modelValue");
1416
1416
  he(
1417
1417
  [() => t.value.dimensions, () => t.value.metrics],
1418
1418
  () => {
1419
- const { rowIds: i, columnIds: n } = ze(t.value);
1419
+ const { rowIds: i, columnIds: n } = Re(t.value);
1420
1420
  t.value.rowIds = i, t.value.columnIds = n;
1421
1421
  },
1422
1422
  { deep: !0 }
1423
1423
  );
1424
- const w = D, C = m, { schemas: p } = Se(ml()), { editingReport: B } = Se(cl()), U = _(() => {
1424
+ const w = D, x = m, { schemas: p } = Se(pl()), { editingReport: B } = Se(vl()), U = T(() => {
1425
1425
  var i;
1426
1426
  return ((i = B.value) == null ? void 0 : i.queryVersion) === "v2";
1427
1427
  });
1428
- Bl(() => {
1428
+ Nl(() => {
1429
1429
  e(), s();
1430
1430
  });
1431
- const { t: o, te: r, locale: f } = ce(), y = _(() => !w.mainDatasourceConfig), L = _(
1432
- () => [J.BarChart, J.LineChart, J.Scorecard].includes(w.config.type)
1433
- ), b = _(() => {
1431
+ const { t: o, te: r, locale: v } = me(), b = T(() => !w.mainDatasourceConfig), L = T(
1432
+ () => [K.BarChart, K.LineChart, K.Scorecard].includes(w.config.type)
1433
+ ), h = T(() => {
1434
1434
  const i = [...t.value.dimensions].filter((n) => !n.hide);
1435
1435
  return i.sort(
1436
- (n, A) => (t.value.rowIds || []).indexOf(Te(n)) - (t.value.rowIds || []).indexOf(Te(A))
1436
+ (n, A) => (t.value.rowIds || []).indexOf(_e(n)) - (t.value.rowIds || []).indexOf(_e(A))
1437
1437
  ), i;
1438
- }), k = _(() => w.config.type === J.Scorecard), z = _(
1438
+ }), F = T(() => w.config.type === K.Scorecard), z = T(
1439
1439
  () => {
1440
1440
  var i;
1441
1441
  return (((i = w.mainDatasourceConfig) == null ? void 0 : i.schemaNames) || []).reduce(
1442
1442
  (n, A) => {
1443
- const I = p.value.find((Q) => Q.name === A);
1444
- return I && (n = [
1443
+ const E = p.value.find((J) => J.name === A);
1444
+ return E && (n = [
1445
1445
  ...n,
1446
- ...I.fields.map((Q) => ({
1447
- ...Q,
1446
+ ...E.fields.map((J) => ({
1447
+ ...J,
1448
1448
  labels: [
1449
- me(o, r, I.label, "schema"),
1450
- me(o, r, Q.label || Q.name, "other")
1449
+ de(o, r, E.label, "schema"),
1450
+ de(o, r, J.label || J.name, "other")
1451
1451
  ]
1452
1452
  }))
1453
1453
  ]), n;
@@ -1455,75 +1455,75 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1455
1455
  []
1456
1456
  );
1457
1457
  }
1458
- ), S = _(
1458
+ ), k = T(
1459
1459
  () => t.value.schemaNames.reduce((i, n) => {
1460
- const A = p.value.find((I) => I.name === n);
1460
+ const A = p.value.find((E) => E.name === n);
1461
1461
  return A && (i = [
1462
1462
  ...i,
1463
- ...A.fields.map((I) => ({
1464
- ...I,
1463
+ ...A.fields.map((E) => ({
1464
+ ...E,
1465
1465
  labels: [
1466
- me(o, r, A.label, "schema"),
1467
- me(o, r, I.label || I.name, "other")
1466
+ de(o, r, A.label, "schema"),
1467
+ de(o, r, E.label || E.name, "other")
1468
1468
  ]
1469
1469
  }))
1470
1470
  ]), i;
1471
1471
  }, [])
1472
- ), d = _(() => [
1472
+ ), d = T(() => [
1473
1473
  { label: o("report.section.datasource.none"), value: null },
1474
1474
  { label: o("report.section.datasource.grandTotal"), value: 0 },
1475
- ...[...b.value].slice(0, b.value.length - 1).map((i, n) => ({
1476
- label: me(o, r, i.label, "other"),
1475
+ ...[...h.value].slice(0, h.value.length - 1).map((i, n) => ({
1476
+ label: de(o, r, i.label, "other"),
1477
1477
  value: n + 1
1478
1478
  }))
1479
- ]), a = _(() => [
1479
+ ]), a = T(() => [
1480
1480
  {
1481
1481
  label: o("report.section.datasource.position.top"),
1482
- value: al.top
1482
+ value: il.top
1483
1483
  },
1484
1484
  {
1485
1485
  label: o("report.section.datasource.position.bottom"),
1486
- value: al.bottom
1486
+ value: il.bottom
1487
1487
  }
1488
- ]), g = _(
1489
- () => `rollup-${f.value}-${b.value.map((i) => Te(i)).join("|")}`
1490
- ), c = _(() => [
1488
+ ]), g = T(
1489
+ () => `rollup-${v.value}-${h.value.map((i) => _e(i)).join("|")}`
1490
+ ), c = T(() => [
1491
1491
  {
1492
1492
  label: o("report.section.datasource.none"),
1493
1493
  value: null
1494
1494
  },
1495
- ...Object.keys(ol).map((i) => ({
1495
+ ...Object.keys(al).map((i) => ({
1496
1496
  label: r(`report.section.datasource.periodType.${i}`) ? o(`report.section.datasource.periodType.${i}`) : i,
1497
- value: ol[i]
1497
+ value: al[i]
1498
1498
  }))
1499
- ]), x = _(() => [
1499
+ ]), S = T(() => [
1500
1500
  { label: o("report.section.datasource.joinType.left"), value: "LEFT" },
1501
1501
  { label: o("report.section.datasource.joinType.fullOuter"), value: "FULL_OUTER" }
1502
1502
  ]);
1503
1503
  return (i, n) => {
1504
- const A = $("FmButton"), I = $("FmSwitch"), Q = $("FmSelect"), ee = $("FmTextField");
1505
- return v(), j(We, null, {
1504
+ const A = $("FmButton"), E = $("FmSwitch"), J = $("FmSelect"), te = $("FmTextField");
1505
+ return f(), N(Ye, null, {
1506
1506
  header: G(() => [
1507
- h("p", null, K(w.label), 1),
1508
- n[22] || (n[22] = h("div", { class: "grow" }, null, -1)),
1509
- w.closeable ? (v(), j(A, {
1507
+ C("p", null, Q(w.label), 1),
1508
+ n[22] || (n[22] = C("div", { class: "grow" }, null, -1)),
1509
+ w.closeable ? (f(), N(A, {
1510
1510
  key: 0,
1511
1511
  icon: "close",
1512
1512
  variant: "tertiary",
1513
1513
  size: "md",
1514
- onClick: n[0] || (n[0] = ye((M) => C("click-close"), ["stop"]))
1514
+ onClick: n[0] || (n[0] = ye((M) => x("click-close"), ["stop"]))
1515
1515
  })) : O("", !0)
1516
1516
  ]),
1517
1517
  content: G(() => [
1518
- u(to, {
1518
+ u(ro, {
1519
1519
  modelValue: t.value,
1520
1520
  "onUpdate:modelValue": n[1] || (n[1] = (M) => t.value = M),
1521
1521
  label: l(o)("report.section.schema.title")
1522
1522
  }, null, 8, ["modelValue", "label"]),
1523
- u(Ee, {
1523
+ u(qe, {
1524
1524
  modelValue: t.value.dimensions,
1525
1525
  "onUpdate:modelValue": n[2] || (n[2] = (M) => t.value.dimensions = M),
1526
- options: S.value,
1526
+ options: k.value,
1527
1527
  config: t.value,
1528
1528
  max: w.config.maxDimension,
1529
1529
  "has-row-column": !0,
@@ -1531,7 +1531,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1531
1531
  t.value = M;
1532
1532
  })
1533
1533
  }, null, 8, ["modelValue", "options", "config", "max"]),
1534
- u(I, {
1534
+ u(E, {
1535
1535
  "label-placement": "right",
1536
1536
  label: l(o)("report.section.datasource.comparable"),
1537
1537
  "model-value": t.value.isComparable ?? !1,
@@ -1539,7 +1539,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1539
1539
  t.value.isComparable = M;
1540
1540
  })
1541
1541
  }, null, 8, ["label", "model-value"]),
1542
- L.value ? (v(), j(I, {
1542
+ L.value ? (f(), N(E, {
1543
1543
  key: 0,
1544
1544
  "label-placement": "right",
1545
1545
  label: l(o)("report.section.datasource.cumulative"),
@@ -1548,7 +1548,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1548
1548
  t.value.isCumulative = M;
1549
1549
  })
1550
1550
  }, null, 8, ["label", "model-value"])) : O("", !0),
1551
- w.config.isDrillConfigurable && y.value ? (v(), j(I, {
1551
+ w.config.isDrillConfigurable && b.value ? (f(), N(E, {
1552
1552
  key: 1,
1553
1553
  label: l(o)("report.section.datasource.drill"),
1554
1554
  "label-placement": "right",
@@ -1557,108 +1557,108 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1557
1557
  t.value.isDrillable = M;
1558
1558
  })
1559
1559
  }, null, 8, ["label", "model-value"])) : O("", !0),
1560
- y.value ? (v(), j(I, {
1560
+ b.value ? (f(), N(E, {
1561
1561
  key: 2,
1562
1562
  modelValue: t.value.isBlend,
1563
1563
  "onUpdate:modelValue": n[7] || (n[7] = (M) => t.value.isBlend = M),
1564
1564
  label: l(o)("report.section.datasource.blend"),
1565
1565
  "label-placement": "right"
1566
1566
  }, null, 8, ["modelValue", "label"])) : O("", !0),
1567
- w.config.canRollup && y.value ? (v(), j(Q, {
1567
+ w.config.canRollup && b.value ? (f(), N(J, {
1568
1568
  key: g.value,
1569
1569
  modelValue: t.value.rollup,
1570
1570
  "onUpdate:modelValue": n[8] || (n[8] = (M) => t.value.rollup = M),
1571
1571
  label: l(o)("report.section.datasource.subTotal"),
1572
1572
  items: d.value
1573
1573
  }, null, 8, ["modelValue", "label", "items"])) : O("", !0),
1574
- w.config.showRollupPosition && y.value ? (v(), j(Q, {
1575
- key: `rollup-position-${l(f)}`,
1574
+ w.config.showRollupPosition && b.value ? (f(), N(J, {
1575
+ key: `rollup-position-${l(v)}`,
1576
1576
  modelValue: t.value.rollupPosition,
1577
1577
  "onUpdate:modelValue": n[9] || (n[9] = (M) => t.value.rollupPosition = M),
1578
1578
  label: l(o)("report.section.datasource.position.showPosition"),
1579
1579
  items: a.value
1580
1580
  }, null, 8, ["modelValue", "label", "items"])) : O("", !0),
1581
- w.config.type === l(J).Table && y.value ? (v(), j(ee, {
1581
+ w.config.type === l(K).Table && b.value ? (f(), N(te, {
1582
1582
  key: 5,
1583
1583
  modelValue: t.value.grandTotalLabel,
1584
1584
  "onUpdate:modelValue": n[10] || (n[10] = (M) => t.value.grandTotalLabel = M),
1585
1585
  label: l(o)("report.section.datasource.grandTotalLabel"),
1586
1586
  placeholder: l(o)("report.section.datasource.grandTotal")
1587
1587
  }, null, 8, ["modelValue", "label", "placeholder"])) : O("", !0),
1588
- y.value ? O("", !0) : (v(), j(Q, {
1589
- key: `periodType-${l(f)}`,
1588
+ b.value ? O("", !0) : (f(), N(J, {
1589
+ key: `periodType-${l(v)}`,
1590
1590
  modelValue: t.value.periodType,
1591
1591
  "onUpdate:modelValue": n[11] || (n[11] = (M) => t.value.periodType = M),
1592
1592
  label: l(o)("report.section.datasource.periodType.label"),
1593
1593
  items: c.value
1594
1594
  }, null, 8, ["modelValue", "label", "items"])),
1595
- w.config.canTranspose && y.value ? (v(), j(I, {
1595
+ w.config.canTranspose && b.value ? (f(), N(E, {
1596
1596
  key: 7,
1597
1597
  modelValue: t.value.isTransposed,
1598
1598
  "onUpdate:modelValue": n[12] || (n[12] = (M) => t.value.isTransposed = M),
1599
1599
  label: l(o)("report.section.datasource.transpose"),
1600
1600
  "label-placement": "right"
1601
1601
  }, null, 8, ["modelValue", "label"])) : O("", !0),
1602
- w.config.hasBreakdownDimension ? (v(), j(Ee, {
1602
+ w.config.hasBreakdownDimension ? (f(), N(qe, {
1603
1603
  key: 8,
1604
1604
  "model-value": t.value.breakdownDimension ? [t.value.breakdownDimension] : [],
1605
1605
  label: "breakdownDimension",
1606
1606
  max: 1,
1607
- options: S.value,
1607
+ options: k.value,
1608
1608
  "onUpdate:modelValue": n[13] || (n[13] = (M) => {
1609
1609
  t.value.breakdownDimension = M[0];
1610
1610
  })
1611
1611
  }, null, 8, ["model-value", "options"])) : O("", !0),
1612
- k.value ? (v(), j(Ee, {
1612
+ F.value ? (f(), N(qe, {
1613
1613
  key: 9,
1614
1614
  "model-value": t.value.sparklineDimension ? [t.value.sparklineDimension] : [],
1615
1615
  label: "sparklineDimension",
1616
1616
  max: 1,
1617
- options: S.value,
1617
+ options: k.value,
1618
1618
  "onUpdate:modelValue": n[14] || (n[14] = (M) => {
1619
1619
  t.value.sparklineDimension = M[0];
1620
1620
  })
1621
1621
  }, null, 8, ["model-value", "options"])) : O("", !0),
1622
- u(fo, {
1622
+ u(Co, {
1623
1623
  modelValue: t.value.metrics,
1624
1624
  "onUpdate:modelValue": n[15] || (n[15] = (M) => t.value.metrics = M),
1625
- options: S.value,
1625
+ options: k.value,
1626
1626
  max: w.config.maxMetric,
1627
1627
  config: t.value,
1628
- "has-row-column": w.config.type === l(J).Table,
1628
+ "has-row-column": w.config.type === l(K).Table,
1629
1629
  "has-xy": w.config.hasXy,
1630
1630
  onConfig: n[16] || (n[16] = (M) => {
1631
1631
  t.value = M;
1632
1632
  })
1633
1633
  }, null, 8, ["modelValue", "options", "max", "config", "has-row-column", "has-xy"]),
1634
- u(jl, {
1634
+ u(El, {
1635
1635
  modelValue: t.value.filters,
1636
1636
  "onUpdate:modelValue": n[17] || (n[17] = (M) => t.value.filters = M),
1637
- options: S.value
1637
+ options: k.value
1638
1638
  }, null, 8, ["modelValue", "options"]),
1639
- u(wo, {
1639
+ u(ko, {
1640
1640
  modelValue: t.value.sorts,
1641
1641
  "onUpdate:modelValue": n[18] || (n[18] = (M) => t.value.sorts = M),
1642
- options: S.value
1642
+ options: k.value
1643
1643
  }, null, 8, ["modelValue", "options"]),
1644
- u(Vo, {
1644
+ u(To, {
1645
1645
  modelValue: t.value.limit,
1646
1646
  "onUpdate:modelValue": n[19] || (n[19] = (M) => t.value.limit = M)
1647
1647
  }, null, 8, ["modelValue"]),
1648
- t.value.conditions && U.value ? (v(), j(Q, {
1648
+ t.value.conditions && U.value ? (f(), N(J, {
1649
1649
  key: 10,
1650
1650
  "model-value": t.value.joinType ?? "LEFT",
1651
1651
  label: l(o)("report.section.datasource.joinType.label"),
1652
- items: x.value,
1652
+ items: S.value,
1653
1653
  "onUpdate:modelValue": n[20] || (n[20] = (M) => {
1654
1654
  t.value.joinType = M;
1655
1655
  })
1656
1656
  }, null, 8, ["model-value", "label", "items"])) : O("", !0),
1657
- t.value.conditions ? (v(), j(To, {
1657
+ t.value.conditions ? (f(), N(Lo, {
1658
1658
  key: 11,
1659
1659
  modelValue: t.value.conditions,
1660
1660
  "onUpdate:modelValue": n[21] || (n[21] = (M) => t.value.conditions = M),
1661
- "join-field-options": S.value,
1661
+ "join-field-options": k.value,
1662
1662
  "main-field-options": z.value
1663
1663
  }, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : O("", !0)
1664
1664
  ]),
@@ -1666,9 +1666,9 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1666
1666
  });
1667
1667
  };
1668
1668
  }
1669
- }), $o = { class: "fm-typo-en-title-sm-600" }, He = /* @__PURE__ */ re({
1669
+ }), Ao = { class: "fm-typo-en-title-sm-600" }, Je = /* @__PURE__ */ ie({
1670
1670
  __name: "TileEditorTabHeader",
1671
- props: /* @__PURE__ */ ve({
1671
+ props: /* @__PURE__ */ pe({
1672
1672
  icon: {
1673
1673
  type: String,
1674
1674
  required: !0
@@ -1679,22 +1679,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1679
1679
  }),
1680
1680
  emits: ["update:modelValue"],
1681
1681
  setup(D) {
1682
- const { t: m } = ce(), e = ge(D, "modelValue"), s = D;
1682
+ const { t: m } = me(), e = fe(D, "modelValue"), s = D;
1683
1683
  return (t, w) => {
1684
- const C = $("FmIcon");
1685
- return v(), E("div", {
1684
+ const x = $("FmIcon");
1685
+ return f(), H("div", {
1686
1686
  class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
1687
1687
  onClick: w[0] || (w[0] = (p) => e.value = !e.value)
1688
1688
  }, [
1689
- h("p", $o, K(l(m)("report.tile.setting")), 1),
1690
- w[1] || (w[1] = h("div", { class: "grow" }, null, -1)),
1691
- u(C, {
1689
+ C("p", Ao, Q(l(m)("report.tile.setting")), 1),
1690
+ w[1] || (w[1] = C("div", { class: "grow" }, null, -1)),
1691
+ u(x, {
1692
1692
  name: s.icon
1693
1693
  }, null, 8, ["name"])
1694
1694
  ]);
1695
1695
  };
1696
1696
  }
1697
- }), Uo = /* @__PURE__ */ re({
1697
+ }), Mo = /* @__PURE__ */ ie({
1698
1698
  __name: "TileEditorTabDesktop",
1699
1699
  props: {
1700
1700
  modelValue: { required: !0, default: !1 },
@@ -1702,17 +1702,17 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1702
1702
  },
1703
1703
  emits: ["update:modelValue"],
1704
1704
  setup(D) {
1705
- const m = ge(D, "modelValue");
1706
- return (e, s) => (v(), E(de, null, [
1707
- u(He, {
1705
+ const m = fe(D, "modelValue");
1706
+ return (e, s) => (f(), H(ue, null, [
1707
+ u(Je, {
1708
1708
  modelValue: m.value,
1709
1709
  "onUpdate:modelValue": s[0] || (s[0] = (t) => m.value = t),
1710
1710
  icon: "keyboard_double_arrow_left"
1711
1711
  }, null, 8, ["modelValue"]),
1712
- rl(e.$slots, "default")
1712
+ dl(e.$slots, "default")
1713
1713
  ], 64));
1714
1714
  }
1715
- }), Do = { class: "fixed bottom-0 w-full" }, Bo = /* @__PURE__ */ re({
1715
+ }), Oo = { class: "fixed bottom-0 w-full" }, No = /* @__PURE__ */ ie({
1716
1716
  __name: "TileEditorTabMobile",
1717
1717
  props: {
1718
1718
  modelValue: { required: !0, default: !1 },
@@ -1720,11 +1720,11 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1720
1720
  },
1721
1721
  emits: ["update:modelValue"],
1722
1722
  setup(D) {
1723
- const m = ge(D, "modelValue");
1723
+ const m = fe(D, "modelValue");
1724
1724
  return (e, s) => {
1725
1725
  const t = $("FmTopSheet");
1726
- return v(), E("div", Do, [
1727
- u(He, {
1726
+ return f(), H("div", Oo, [
1727
+ u(Je, {
1728
1728
  modelValue: m.value,
1729
1729
  "onUpdate:modelValue": s[0] || (s[0] = (w) => m.value = w),
1730
1730
  icon: "keyboard_double_arrow_up"
@@ -1735,83 +1735,83 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1735
1735
  "fullscreen-size": "sm"
1736
1736
  }, {
1737
1737
  default: G(() => [
1738
- u(He, {
1738
+ u(Je, {
1739
1739
  modelValue: m.value,
1740
1740
  "onUpdate:modelValue": s[1] || (s[1] = (w) => m.value = w),
1741
1741
  icon: "keyboard_double_arrow_down"
1742
1742
  }, null, 8, ["modelValue"]),
1743
- m.value ? rl(e.$slots, "default", { key: 0 }) : O("", !0)
1743
+ m.value ? dl(e.$slots, "default", { key: 0 }) : O("", !0)
1744
1744
  ]),
1745
1745
  _: 3
1746
1746
  }, 8, ["modelValue"])
1747
1747
  ]);
1748
1748
  };
1749
1749
  }
1750
- }), Lo = { class: "flex gap-16" }, Ao = { class: "flex flex-col gap-8 max-w-[120px]" }, Mo = { class: "fm-typo-en-body-lg-600" }, No = { class: "flex flex-col gap-16" }, Oo = { class: "fm-typo-en-body-lg-600" }, jo = { class: "flex flex-row gap-8" }, zo = /* @__PURE__ */ re({
1750
+ }), jo = { class: "flex gap-16" }, zo = { class: "flex flex-col gap-8 max-w-[120px]" }, Ro = { class: "fm-typo-en-body-lg-600" }, Io = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-body-lg-600" }, Eo = { class: "flex flex-row gap-8" }, Xo = /* @__PURE__ */ ie({
1751
1751
  __name: "TitleSection",
1752
1752
  props: {
1753
1753
  model: {}
1754
1754
  },
1755
1755
  emits: ["update:model"],
1756
1756
  setup(D, { emit: m }) {
1757
- const e = D, s = m, { t } = ce(), w = _({
1757
+ const e = D, s = m, { t } = me(), w = T({
1758
1758
  get: () => e.model.showTitle ?? !1,
1759
1759
  set: (o) => s("update:model", { ...e.model, showTitle: o })
1760
- }), C = _({
1760
+ }), x = T({
1761
1761
  get: () => e.model.titleFontSize ?? 14,
1762
1762
  set: (o) => s("update:model", { ...e.model, titleFontSize: Math.min(Number(o), 24) })
1763
- }), p = _({
1763
+ }), p = T({
1764
1764
  get: () => e.model.titleBold ?? !1,
1765
1765
  set: (o) => s("update:model", { ...e.model, titleBold: o })
1766
- }), B = _({
1766
+ }), B = T({
1767
1767
  get: () => e.model.titleItalic ?? !1,
1768
1768
  set: (o) => s("update:model", { ...e.model, titleItalic: o })
1769
- }), U = _({
1769
+ }), U = T({
1770
1770
  get: () => e.model.titleUnderline ?? !1,
1771
1771
  set: (o) => s("update:model", { ...e.model, titleUnderline: o })
1772
1772
  });
1773
1773
  return (o, r) => {
1774
- const f = $("FmStepperField"), y = $("FmButton"), L = $("FmSwitch");
1775
- return v(), E(de, null, [
1776
- h("div", null, [
1777
- h("div", Lo, [
1778
- h("div", Ao, [
1779
- h("p", Mo, K(l(t)("report.section.datasource.title.titleFontSize")), 1),
1780
- u(f, {
1781
- modelValue: C.value,
1782
- "onUpdate:modelValue": r[0] || (r[0] = (b) => C.value = b),
1774
+ const v = $("FmStepperField"), b = $("FmButton"), L = $("FmSwitch");
1775
+ return f(), H(ue, null, [
1776
+ C("div", null, [
1777
+ C("div", jo, [
1778
+ C("div", zo, [
1779
+ C("p", Ro, Q(l(t)("report.section.datasource.title.titleFontSize")), 1),
1780
+ u(v, {
1781
+ modelValue: x.value,
1782
+ "onUpdate:modelValue": r[0] || (r[0] = (h) => x.value = h),
1783
1783
  max: 24,
1784
1784
  min: 1,
1785
1785
  type: "number"
1786
1786
  }, null, 8, ["modelValue"])
1787
1787
  ]),
1788
- h("div", No, [
1789
- h("p", Oo, K(l(t)("report.section.datasource.title.textStyleFormat")), 1),
1790
- h("div", jo, [
1791
- u(y, {
1788
+ C("div", Io, [
1789
+ C("p", Po, Q(l(t)("report.section.datasource.title.textStyleFormat")), 1),
1790
+ C("div", Eo, [
1791
+ u(b, {
1792
1792
  "append-icon": "format_bold",
1793
1793
  "model-value": o.model.titleBold ?? !1,
1794
1794
  variant: "tertiary",
1795
1795
  "icon-color": o.model.titleBold ? "neutral-gray-400" : "neutral-gray-300",
1796
1796
  "bg-color": o.model.titleBold ? "neutral-gray-100" : "neutral-white",
1797
1797
  class: "rounded-sm",
1798
- onClick: r[1] || (r[1] = (b) => p.value = !p.value)
1798
+ onClick: r[1] || (r[1] = (h) => p.value = !p.value)
1799
1799
  }, null, 8, ["model-value", "icon-color", "bg-color"]),
1800
- u(y, {
1800
+ u(b, {
1801
1801
  "append-icon": "format_italic",
1802
1802
  "model-value": o.model.titleItalic ?? !1,
1803
1803
  "icon-color": o.model.titleItalic ? "neutral-gray-400" : "neutral-gray-300",
1804
1804
  "bg-color": o.model.titleItalic ? "neutral-gray-100" : "neutral-white",
1805
1805
  class: "rounded-sm",
1806
- onClick: r[2] || (r[2] = (b) => B.value = !B.value)
1806
+ onClick: r[2] || (r[2] = (h) => B.value = !B.value)
1807
1807
  }, null, 8, ["model-value", "icon-color", "bg-color"]),
1808
- u(y, {
1808
+ u(b, {
1809
1809
  "append-icon": "format_underlined",
1810
1810
  "model-value": o.model.titleUnderline ?? !1,
1811
1811
  "icon-color": o.model.titleUnderline ? "neutral-gray-400" : "neutral-gray-300",
1812
1812
  "bg-color": o.model.titleUnderline ? "neutral-gray-100" : "neutral-white",
1813
1813
  class: "rounded-sm",
1814
- onClick: r[3] || (r[3] = (b) => U.value = !U.value)
1814
+ onClick: r[3] || (r[3] = (h) => U.value = !U.value)
1815
1815
  }, null, 8, ["model-value", "icon-color", "bg-color"])
1816
1816
  ])
1817
1817
  ])
@@ -1819,58 +1819,58 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1819
1819
  ]),
1820
1820
  u(L, {
1821
1821
  modelValue: w.value,
1822
- "onUpdate:modelValue": r[4] || (r[4] = (b) => w.value = b),
1822
+ "onUpdate:modelValue": r[4] || (r[4] = (h) => w.value = h),
1823
1823
  label: l(t)("report.section.datasource.title.showTitle"),
1824
1824
  "label-placement": "right"
1825
1825
  }, null, 8, ["modelValue", "label"])
1826
1826
  ], 64);
1827
1827
  };
1828
1828
  }
1829
- }), Ro = { class: "flex flex-col gap-8" }, Io = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Po = { class: "flex flex-row gap-2" }, Eo = {
1829
+ }), Wo = { class: "flex flex-col gap-8" }, qo = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Ho = { class: "flex flex-row gap-2" }, Yo = {
1830
1830
  key: 0,
1831
1831
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
1832
- }, Xo = /* @__PURE__ */ re({
1832
+ }, Go = /* @__PURE__ */ ie({
1833
1833
  __name: "TableResizeSection",
1834
1834
  props: {
1835
1835
  layout: {}
1836
1836
  },
1837
1837
  emits: ["update:layout"],
1838
1838
  setup(D, { emit: m }) {
1839
- const { t: e } = ce(), s = D, t = m, { isEditing: w, colWidths: C, rowHeight: p } = Se(Oe()), { enableCellResizing: B, cancelResizingChanges: U, resetStore: o, disableEditMode: r } = Oe();
1840
- _(
1839
+ const { t: e } = me(), s = D, t = m, { isEditing: w, colWidths: x, rowHeight: p } = Se(je()), { enableCellResizing: B, cancelResizingChanges: U, resetStore: o, disableEditMode: r } = je();
1840
+ T(
1841
1841
  () => {
1842
- var y, L, b;
1843
- return (((L = (y = s.layout) == null ? void 0 : y.colWidths) == null ? void 0 : L.length) ?? 0) > 0 || C.value.length > 0 || (((b = s.layout) == null ? void 0 : b.rowHeight) ?? 0) > 0 || p.value > 0;
1842
+ var b, L, h;
1843
+ return (((L = (b = s.layout) == null ? void 0 : b.colWidths) == null ? void 0 : L.length) ?? 0) > 0 || x.value.length > 0 || (((h = s.layout) == null ? void 0 : h.rowHeight) ?? 0) > 0 || p.value > 0;
1844
1844
  }
1845
1845
  );
1846
- function f() {
1846
+ function v() {
1847
1847
  o(), r(), t("update:layout", {
1848
1848
  ...s.layout,
1849
1849
  rowHeight: void 0,
1850
1850
  colWidths: void 0
1851
1851
  });
1852
- const y = document.querySelector("table");
1853
- if (y) {
1854
- y.classList.remove("table-fixed"), y.classList.add("table-auto"), y.style.width = "";
1855
- const L = y.querySelectorAll("th"), b = y.querySelectorAll("td"), k = y.querySelectorAll("tr");
1852
+ const b = document.querySelector("table");
1853
+ if (b) {
1854
+ b.classList.remove("table-fixed"), b.classList.add("table-auto"), b.style.width = "";
1855
+ const L = b.querySelectorAll("th"), h = b.querySelectorAll("td"), F = b.querySelectorAll("tr");
1856
1856
  L.forEach((z) => {
1857
1857
  z.style.width = "";
1858
- }), b.forEach((z) => {
1858
+ }), h.forEach((z) => {
1859
1859
  z.style.width = "";
1860
- }), k.forEach((z) => {
1860
+ }), F.forEach((z) => {
1861
1861
  z.style.height = "";
1862
1862
  });
1863
1863
  }
1864
1864
  }
1865
- return Ye(() => {
1866
- var y, L;
1867
- ((y = s.layout) == null ? void 0 : y.rowHeight) !== void 0 && (p.value = s.layout.rowHeight), (L = s.layout) != null && L.colWidths && (C.value = [...s.layout.colWidths]);
1868
- }), (y, L) => {
1869
- const b = $("FmButton");
1870
- return v(), E("div", Ro, [
1871
- h("p", Io, K(l(e)("report.section.datasource.tableLayout")), 1),
1872
- h("div", Po, [
1873
- l(w) ? O("", !0) : (v(), j(b, {
1865
+ return Ke(() => {
1866
+ var b, L;
1867
+ ((b = s.layout) == null ? void 0 : b.rowHeight) !== void 0 && (p.value = s.layout.rowHeight), (L = s.layout) != null && L.colWidths && (x.value = [...s.layout.colWidths]);
1868
+ }), (b, L) => {
1869
+ const h = $("FmButton");
1870
+ return f(), H("div", Wo, [
1871
+ C("p", qo, Q(l(e)("report.section.datasource.tableLayout")), 1),
1872
+ C("div", Ho, [
1873
+ l(w) ? O("", !0) : (f(), N(h, {
1874
1874
  key: 0,
1875
1875
  label: l(e)("report.section.datasource.resizeTable"),
1876
1876
  variant: "secondary",
@@ -1879,7 +1879,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1879
1879
  class: "[&_.label]:line-clamp-none w-full",
1880
1880
  onClick: l(B)
1881
1881
  }, null, 8, ["label", "onClick"])),
1882
- l(w) ? (v(), j(b, {
1882
+ l(w) ? (f(), N(h, {
1883
1883
  key: 1,
1884
1884
  label: l(e)("report.common.cancel"),
1885
1885
  variant: "primary",
@@ -1888,22 +1888,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1888
1888
  class: "[&_.label]:line-clamp-none w-full",
1889
1889
  onClick: l(U)
1890
1890
  }, null, 8, ["label", "onClick"])) : O("", !0),
1891
- u(b, {
1891
+ u(h, {
1892
1892
  label: l(e)("report.section.datasource.resetSize"),
1893
1893
  variant: "secondary",
1894
1894
  icon: "restore",
1895
1895
  "icon-position": "prepend",
1896
1896
  class: "[&_.label]:line-clamp-none w-full",
1897
- onClick: f
1897
+ onClick: v
1898
1898
  }, null, 8, ["label"])
1899
1899
  ]),
1900
- l(w) ? (v(), E("p", Eo, K(l(e)("report.section.datasource.resizeTableHelper")), 1)) : O("", !0)
1900
+ l(w) ? (f(), H("p", Yo, Q(l(e)("report.section.datasource.resizeTableHelper")), 1)) : O("", !0)
1901
1901
  ]);
1902
1902
  };
1903
1903
  }
1904
- }), Wo = { class: "flex gap-16 justify-center items-center" }, qo = { class: "fm-typo-en-title-sm-600" }, Ho = { class: "fm-typo-en-body-lg-600" }, Yo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Go = { class: "h-[40x]" }, sl = "YYYY-MM-DD", bl = /* @__PURE__ */ re({
1904
+ }), Jo = { class: "flex gap-16 justify-center items-center" }, Ko = { class: "fm-typo-en-title-sm-600" }, Qo = { class: "fm-typo-en-body-lg-600" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, et = { class: "h-[40x]" }, ul = "YYYY-MM-DD", Cl = /* @__PURE__ */ ie({
1905
1905
  __name: "TileEditorTab",
1906
- props: /* @__PURE__ */ ve({
1906
+ props: /* @__PURE__ */ pe({
1907
1907
  hideConfiguration: {
1908
1908
  type: Boolean,
1909
1909
  default: !1
@@ -1914,37 +1914,37 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1914
1914
  },
1915
1915
  modelModifiers: {}
1916
1916
  }),
1917
- emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
1917
+ emits: /* @__PURE__ */ pe(["hideConfiguration"], ["update:modelValue"]),
1918
1918
  setup(D, { emit: m }) {
1919
- var c, x;
1920
- const e = Kl(), { dateRange: s, timezone: t } = Se(e), w = {
1919
+ var c, S;
1920
+ const e = oo(), { dateRange: s, timezone: t } = Se(e), w = {
1921
1921
  startDate: s.value.startDate,
1922
1922
  endDate: s.value.endDate
1923
- }, C = oe({
1924
- startDate: (c = Me(s.value.startDate)) == null ? void 0 : c.tz(t.value).format(sl),
1925
- endDate: (x = Me(s.value.endDate)) == null ? void 0 : x.tz(t.value).format(sl)
1923
+ }, x = oe({
1924
+ startDate: (c = Oe(s.value.startDate)) == null ? void 0 : c.tz(t.value).format(ul),
1925
+ endDate: (S = Oe(s.value.endDate)) == null ? void 0 : S.tz(t.value).format(ul)
1926
1926
  });
1927
1927
  he(
1928
- C,
1928
+ x,
1929
1929
  () => {
1930
- C.value.endDate || (C.value.endDate = C.value.startDate);
1930
+ x.value.endDate || (x.value.endDate = x.value.startDate);
1931
1931
  const i = {
1932
- startDate: Me.tz(C.value.startDate, t.value).startOf("day").utc().toISOString(),
1933
- endDate: Me.tz(C.value.endDate, t.value).endOf("day").utc().toISOString()
1932
+ startDate: Oe.tz(x.value.startDate, t.value).startOf("day").utc().toISOString(),
1933
+ endDate: Oe.tz(x.value.endDate, t.value).endOf("day").utc().toISOString()
1934
1934
  };
1935
1935
  s.value = i;
1936
1936
  },
1937
1937
  { deep: !0 }
1938
- ), ul(() => {
1938
+ ), ml(() => {
1939
1939
  s.value = { ...w };
1940
1940
  });
1941
- const p = ge(D, "modelValue"), { breakpoints: B } = vl(), U = D, { promptMessage: o } = pl(), r = m, { t: f, locale: y } = ce();
1941
+ const p = fe(D, "modelValue"), { breakpoints: B } = gl(), U = D, { promptMessage: o } = fl(), r = m, { t: v, locale: b } = me();
1942
1942
  function L(i) {
1943
- p.value = uo(i);
1943
+ p.value = fo(i);
1944
1944
  }
1945
- function b() {
1945
+ function h() {
1946
1946
  const i = [...p.value.widget.config.joinDatasources || []];
1947
- i.push({ ...Rl(p.value.widget.type), conditions: [] }), L({
1947
+ i.push({ ...Wl(p.value.widget.type), conditions: [] }), L({
1948
1948
  ...p.value,
1949
1949
  widget: {
1950
1950
  ...p.value.widget,
@@ -1955,10 +1955,10 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1955
1955
  }
1956
1956
  });
1957
1957
  }
1958
- async function k(i) {
1958
+ async function F(i) {
1959
1959
  if (!await o({
1960
- title: f("report.tile.datasource.remove"),
1961
- message: f("report.tile.datasource.confirmRemove", { index: i + 1 })
1960
+ title: v("report.tile.datasource.remove"),
1961
+ message: v("report.tile.datasource.confirmRemove", { index: i + 1 })
1962
1962
  })) return;
1963
1963
  const A = [...p.value.widget.config.joinDatasources || []];
1964
1964
  A.splice(i, 1), L({
@@ -1973,44 +1973,44 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
1973
1973
  });
1974
1974
  }
1975
1975
  const z = (i, n) => {
1976
- let A = 1, I = 1;
1976
+ let A = 1, E = 1;
1977
1977
  switch (i) {
1978
- case J.Scorecard:
1979
- A = 1, I = 2;
1978
+ case K.Scorecard:
1979
+ A = 1, E = 2;
1980
1980
  break;
1981
- case J.BarChart:
1982
- case J.StackBarChart:
1983
- case J.ClusteredStackBarChart:
1984
- case J.LineChart:
1985
- case J.StackLineChart:
1986
- A = 4, I = 6;
1981
+ case K.BarChart:
1982
+ case K.StackBarChart:
1983
+ case K.ClusteredStackBarChart:
1984
+ case K.LineChart:
1985
+ case K.StackLineChart:
1986
+ A = 4, E = 6;
1987
1987
  break;
1988
- case J.Table:
1989
- A = 4, I = 12;
1988
+ case K.Table:
1989
+ A = 4, E = 12;
1990
1990
  break;
1991
- case J.Circular:
1992
- A = 4, I = 4;
1991
+ case K.Circular:
1992
+ A = 4, E = 4;
1993
1993
  break;
1994
- case J.Spacer:
1995
- A = 0, I = 12;
1994
+ case K.Spacer:
1995
+ A = 0, E = 12;
1996
1996
  break;
1997
1997
  }
1998
1998
  return {
1999
1999
  id: n.id,
2000
2000
  size: {
2001
2001
  height: A,
2002
- width: I
2002
+ width: E
2003
2003
  },
2004
2004
  widget: {
2005
2005
  ...n.widget,
2006
2006
  type: i
2007
2007
  }
2008
2008
  };
2009
- }, S = _(
2010
- () => Ie.find((i) => i.type === p.value.widget.type)
2011
- ), d = _(() => p.value.widget.config.joinDatasources), a = je((i) => {
2009
+ }, k = T(
2010
+ () => Pe.find((i) => i.type === p.value.widget.type)
2011
+ ), d = T(() => p.value.widget.config.joinDatasources), a = ze((i) => {
2012
2012
  p.value.widget.title = i;
2013
- }, 500), g = _({
2013
+ }, 500), g = T({
2014
2014
  get: () => ({
2015
2015
  rowHeight: p.value.widget.config.rowHeight,
2016
2016
  colWidths: p.value.widget.config.colWidths
@@ -2030,165 +2030,165 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2030
2030
  i < 1 && (p.value.size.width = 1), i > 12 && (p.value.size.width = 12);
2031
2031
  }
2032
2032
  ), (i, n) => {
2033
- const A = $("FmCircularProgress"), I = $("FmSimpleDateRangePicker"), Q = $("FmTextField"), ee = $("FmTextarea"), M = $("FmStepperField"), ie = $("FmButton"), P = $("FmForm");
2034
- return v(), j(dl(l(B).lg || l(B).md ? Uo : Bo), {
2033
+ const A = $("FmCircularProgress"), E = $("FmSimpleDateRangePicker"), J = $("FmTextField"), te = $("FmTextarea"), M = $("FmStepperField"), ge = $("FmButton"), X = $("FmForm");
2034
+ return f(), N(cl(l(B).lg || l(B).md ? Mo : No), {
2035
2035
  "model-value": U.hideConfiguration,
2036
- "onUpdate:modelValue": n[9] || (n[9] = (N) => r("hideConfiguration", N))
2036
+ "onUpdate:modelValue": n[9] || (n[9] = (j) => r("hideConfiguration", j))
2037
2037
  }, {
2038
2038
  default: G(() => [
2039
- p.value ? (v(), j(P, {
2039
+ p.value ? (f(), N(X, {
2040
2040
  key: 1,
2041
2041
  ref: "form",
2042
2042
  class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
2043
2043
  }, {
2044
2044
  default: G(() => [
2045
- h("div", Wo, [
2046
- (v(), j(I, {
2047
- key: `date-picker-${l(y)}`,
2048
- modelValue: C.value,
2049
- "onUpdate:modelValue": n[0] || (n[0] = (N) => C.value = N)
2045
+ C("div", Jo, [
2046
+ (f(), N(E, {
2047
+ key: `date-picker-${l(b)}`,
2048
+ modelValue: x.value,
2049
+ "onUpdate:modelValue": n[0] || (n[0] = (j) => x.value = j)
2050
2050
  }, null, 8, ["modelValue"]))
2051
2051
  ]),
2052
- u(We, null, {
2052
+ u(Ye, null, {
2053
2053
  header: G(() => [
2054
- h("p", qo, K(l(f)("report.tile.widget.details")), 1),
2055
- n[10] || (n[10] = h("div", { class: "grow" }, null, -1))
2054
+ C("p", Ko, Q(l(v)("report.tile.widget.details")), 1),
2055
+ n[10] || (n[10] = C("div", { class: "grow" }, null, -1))
2056
2056
  ]),
2057
2057
  content: G(() => [
2058
- u(Q, {
2058
+ u(J, {
2059
2059
  "model-value": p.value.widget.title,
2060
- label: l(f)("report.tile.widget.title"),
2061
- placeholder: l(f)("report.tile.widget.titlePlaceholder"),
2060
+ label: l(v)("report.tile.widget.title"),
2061
+ placeholder: l(v)("report.tile.widget.titlePlaceholder"),
2062
2062
  "onUpdate:modelValue": l(a)
2063
2063
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2064
- u(ee, {
2064
+ u(te, {
2065
2065
  modelValue: p.value.widget.description,
2066
- "onUpdate:modelValue": n[1] || (n[1] = (N) => p.value.widget.description = N),
2066
+ "onUpdate:modelValue": n[1] || (n[1] = (j) => p.value.widget.description = j),
2067
2067
  disabled: p.value.widget.title === "",
2068
- placeholder: l(f)("report.tile.widget.descriptionPlaceholder"),
2069
- "helper-text": l(f)("report.tile.widget.descriptionHelper")
2068
+ placeholder: l(v)("report.tile.widget.descriptionPlaceholder"),
2069
+ "helper-text": l(v)("report.tile.widget.descriptionHelper")
2070
2070
  }, {
2071
2071
  label: G(() => [
2072
- h("p", Ho, K(l(f)("report.tile.widget.widgetDescription")), 1),
2073
- h("p", Yo, " (" + K(l(f)("report.tile.widget.optional")) + ") ", 1)
2072
+ C("p", Qo, Q(l(v)("report.tile.widget.widgetDescription")), 1),
2073
+ C("p", Zo, " (" + Q(l(v)("report.tile.widget.optional")) + ") ", 1)
2074
2074
  ]),
2075
2075
  _: 1
2076
2076
  }, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
2077
- u(zo, {
2077
+ u(Xo, {
2078
2078
  model: p.value.widget.config,
2079
- "onUpdate:model": n[2] || (n[2] = (N) => p.value.widget.config = N)
2079
+ "onUpdate:model": n[2] || (n[2] = (j) => p.value.widget.config = j)
2080
2080
  }, null, 8, ["model"]),
2081
- h("div", {
2081
+ C("div", {
2082
2082
  class: ke(["flex flex-row", `${l(B).sm || l(B).xs ? "gap-16" : "gap-2"}`])
2083
2083
  }, [
2084
2084
  u(M, {
2085
2085
  modelValue: p.value.size.width,
2086
- "onUpdate:modelValue": n[3] || (n[3] = (N) => p.value.size.width = N),
2087
- label: l(f)("report.tile.widget.width"),
2086
+ "onUpdate:modelValue": n[3] || (n[3] = (j) => p.value.size.width = j),
2087
+ label: l(v)("report.tile.widget.width"),
2088
2088
  min: 1,
2089
2089
  max: 12
2090
2090
  }, null, 8, ["modelValue", "label"]),
2091
2091
  u(M, {
2092
2092
  modelValue: p.value.size.height,
2093
- "onUpdate:modelValue": n[4] || (n[4] = (N) => p.value.size.height = N),
2094
- label: l(f)("report.tile.widget.height"),
2093
+ "onUpdate:modelValue": n[4] || (n[4] = (j) => p.value.size.height = j),
2094
+ label: l(v)("report.tile.widget.height"),
2095
2095
  min: 1,
2096
2096
  max: 12,
2097
- disabled: p.value.widget.type === l(J).Scorecard
2097
+ disabled: p.value.widget.type === l(K).Scorecard
2098
2098
  }, null, 8, ["modelValue", "label", "disabled"])
2099
2099
  ], 2),
2100
- p.value.widget.type === l(J).Table ? (v(), j(Xo, {
2100
+ p.value.widget.type === l(K).Table ? (f(), N(Go, {
2101
2101
  key: 0,
2102
2102
  layout: g.value,
2103
- "onUpdate:layout": n[5] || (n[5] = (N) => g.value = N)
2103
+ "onUpdate:layout": n[5] || (n[5] = (j) => g.value = j)
2104
2104
  }, null, 8, ["layout"])) : O("", !0)
2105
2105
  ]),
2106
2106
  _: 1
2107
2107
  }),
2108
- u(We, null, {
2108
+ u(Ye, null, {
2109
2109
  header: G(() => [
2110
- h("p", null, K(l(f)("report.tile.widget.type")), 1),
2111
- n[11] || (n[11] = h("div", { class: "grow" }, null, -1))
2110
+ C("p", null, Q(l(v)("report.tile.widget.type")), 1),
2111
+ n[11] || (n[11] = C("div", { class: "grow" }, null, -1))
2112
2112
  ]),
2113
2113
  content: G(() => [
2114
- u(zl, {
2114
+ u(Xl, {
2115
2115
  "is-list": !0,
2116
2116
  "model-value": p.value.widget.type,
2117
2117
  class: "grid grid-cols-1 gap-2",
2118
2118
  "child-class": "flex flex-row p-[8px] gap-2",
2119
- "exclude-widge-type": [l(J).Spacer],
2120
- "onUpdate:modelValue": n[6] || (n[6] = (N) => p.value = z(N, p.value))
2119
+ "exclude-widge-type": [l(K).Spacer],
2120
+ "onUpdate:modelValue": n[6] || (n[6] = (j) => p.value = z(j, p.value))
2121
2121
  }, null, 8, ["model-value", "exclude-widge-type"])
2122
2122
  ]),
2123
2123
  _: 1
2124
2124
  }),
2125
- u(il, {
2125
+ u(rl, {
2126
2126
  modelValue: p.value.widget.config,
2127
- "onUpdate:modelValue": n[7] || (n[7] = (N) => p.value.widget.config = N),
2128
- label: l(f)("report.tile.datasource.main"),
2129
- config: S.value
2127
+ "onUpdate:modelValue": n[7] || (n[7] = (j) => p.value.widget.config = j),
2128
+ label: l(v)("report.tile.datasource.main"),
2129
+ config: k.value
2130
2130
  }, null, 8, ["modelValue", "label", "config"]),
2131
- d.value ? (v(!0), E(de, { key: 0 }, xe(d.value, (N, H) => (v(), E("div", { key: H }, [
2132
- u(il, {
2133
- modelValue: d.value[H],
2134
- "onUpdate:modelValue": (ae) => d.value[H] = ae,
2135
- label: l(f)("report.tile.datasource.join", { index: H + 1 }),
2136
- config: S.value,
2131
+ d.value ? (f(!0), H(ue, { key: 0 }, xe(d.value, (j, Y) => (f(), H("div", { key: Y }, [
2132
+ u(rl, {
2133
+ modelValue: d.value[Y],
2134
+ "onUpdate:modelValue": (ee) => d.value[Y] = ee,
2135
+ label: l(v)("report.tile.datasource.join", { index: Y + 1 }),
2136
+ config: k.value,
2137
2137
  "main-datasource-config": p.value.widget.config,
2138
2138
  closeable: !0,
2139
- onClickClose: (ae) => k(H)
2139
+ onClickClose: (ee) => F(Y)
2140
2140
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
2141
2141
  ]))), 128)) : O("", !0),
2142
- h("div", Go, [
2143
- u(ie, {
2144
- label: l(f)("report.tile.datasource.joinButton"),
2142
+ C("div", et, [
2143
+ u(ge, {
2144
+ label: l(v)("report.tile.datasource.joinButton"),
2145
2145
  variant: "secondary",
2146
2146
  icon: "add",
2147
2147
  "icon-position": "prepend",
2148
2148
  "border-color": "primary",
2149
2149
  "text-color": "primary",
2150
2150
  class: "w-full",
2151
- onClick: n[8] || (n[8] = (N) => b())
2151
+ onClick: n[8] || (n[8] = (j) => h())
2152
2152
  }, null, 8, ["label"])
2153
2153
  ])
2154
2154
  ]),
2155
2155
  _: 1
2156
- }, 512)) : (v(), j(A, { key: 0 }))
2156
+ }, 512)) : (f(), N(A, { key: 0 }))
2157
2157
  ]),
2158
2158
  _: 1
2159
2159
  }, 8, ["model-value"]);
2160
2160
  };
2161
2161
  }
2162
- }), Jo = { class: "flex flex-col gap-8" }, Ko = { class: "pl-32 flex flex-col gap-8" }, Qo = { class: "fm-typo-en-body-lg-600" }, Zo = { class: "flex flex-row gap-8" }, et = { class: "fm-typo-en-body-lg-600" }, lt = { class: "flex flex-row gap-8" }, ot = /* @__PURE__ */ re({
2162
+ }), lt = { class: "flex flex-col gap-8" }, ot = { class: "pl-32 flex flex-col gap-8" }, tt = { class: "fm-typo-en-body-lg-600" }, at = { class: "flex flex-row gap-8" }, nt = { class: "fm-typo-en-body-lg-600" }, it = { class: "flex flex-row gap-8" }, st = /* @__PURE__ */ ie({
2163
2163
  __name: "LabelSection",
2164
2164
  props: {
2165
2165
  model: {}
2166
2166
  },
2167
2167
  emits: ["update:model"],
2168
2168
  setup(D, { emit: m }) {
2169
- const e = D, s = m, { t } = ce(), w = _({
2169
+ const e = D, s = m, { t } = me(), w = T({
2170
2170
  get: () => e.model.showLabel ?? !1,
2171
- set: (y) => {
2172
- s("update:model", { ...e.model, showLabel: y });
2171
+ set: (b) => {
2172
+ s("update:model", { ...e.model, showLabel: b });
2173
2173
  }
2174
- }), C = _({
2174
+ }), x = T({
2175
2175
  get: () => e.model.labelRotation ?? 0,
2176
- set: (y) => s("update:model", { ...e.model, labelRotation: y })
2177
- }), p = _({
2176
+ set: (b) => s("update:model", { ...e.model, labelRotation: b })
2177
+ }), p = T({
2178
2178
  get: () => e.model.labelOffset ?? 0,
2179
- set: (y) => s("update:model", { ...e.model, labelOffset: y })
2180
- }), B = _({
2179
+ set: (b) => s("update:model", { ...e.model, labelOffset: b })
2180
+ }), B = T({
2181
2181
  get: () => e.model.labelFontSize ?? 12,
2182
- set: (y) => s("update:model", { ...e.model, labelFontSize: y })
2183
- }), U = (y) => {
2182
+ set: (b) => s("update:model", { ...e.model, labelFontSize: b })
2183
+ }), U = (b) => {
2184
2184
  s("update:model", {
2185
2185
  ...e.model,
2186
- labelAlign: e.model.labelAlign === y ? void 0 : y
2186
+ labelAlign: e.model.labelAlign === b ? void 0 : b
2187
2187
  });
2188
- }, o = (y) => {
2188
+ }, o = (b) => {
2189
2189
  s("update:model", {
2190
2190
  ...e.model,
2191
- labelAnchor: e.model.labelAnchor === y ? void 0 : y
2191
+ labelAnchor: e.model.labelAnchor === b ? void 0 : b
2192
2192
  });
2193
2193
  }, r = [
2194
2194
  { icon: "align_horizontal_left", value: Fe.left, tooltip: "alignLeft" },
@@ -2198,15 +2198,15 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2198
2198
  { icon: "align_justify_flex_end", value: Fe.end, tooltip: "alignEnd" },
2199
2199
  { icon: "align_flex_start", value: Fe.top, tooltip: "alignTop" },
2200
2200
  { icon: "align_flex_end", value: Fe.bottom, tooltip: "alignBottom" }
2201
- ], f = [
2201
+ ], v = [
2202
2202
  { icon: "format_align_left", value: Ne.start, tooltip: "anchorStart" },
2203
2203
  { icon: "format_align_center", value: Ne.center, tooltip: "anchorCenter" },
2204
2204
  { icon: "format_align_right", value: Ne.end, tooltip: "anchorEnd" }
2205
2205
  ];
2206
- return (y, L) => {
2207
- const b = $("FmCheckbox"), k = $("FmButton"), z = $("FmTooltip"), S = $("FmTextField"), d = $("FmStepperField");
2208
- return v(), E("div", Jo, [
2209
- u(b, {
2206
+ return (b, L) => {
2207
+ const h = $("FmCheckbox"), F = $("FmButton"), z = $("FmTooltip"), k = $("FmTextField"), d = $("FmStepperField");
2208
+ return f(), H("div", lt, [
2209
+ u(h, {
2210
2210
  modelValue: w.value,
2211
2211
  "onUpdate:modelValue": L[0] || (L[0] = (a) => w.value = a),
2212
2212
  value: !1,
@@ -2214,10 +2214,10 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2214
2214
  "label-placement": "right",
2215
2215
  class: "fm-typo-en-body-lg-400"
2216
2216
  }, null, 8, ["modelValue", "label"]),
2217
- we(h("div", Ko, [
2218
- h("p", Qo, K(l(t)("report.section.datasource.alignment.textAlignment")), 1),
2219
- h("div", Zo, [
2220
- (v(), E(de, null, xe(r, ({ icon: a, value: g, tooltip: c }) => u(z, {
2217
+ Ce(C("div", ot, [
2218
+ C("p", tt, Q(l(t)("report.section.datasource.alignment.textAlignment")), 1),
2219
+ C("div", at, [
2220
+ (f(), H(ue, null, xe(r, ({ icon: a, value: g, tooltip: c }) => u(z, {
2221
2221
  key: g,
2222
2222
  variant: "plain",
2223
2223
  placement: "top",
@@ -2225,21 +2225,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2225
2225
  "z-index": 50
2226
2226
  }, {
2227
2227
  default: G(() => [
2228
- u(k, {
2228
+ u(F, {
2229
2229
  "append-icon": a,
2230
2230
  variant: "tertiary",
2231
- "icon-color": y.model.labelAlign === g ? "neutral-gray-400" : "neutral-gray-300",
2232
- "bg-color": y.model.labelAlign === g ? "neutral-gray-100" : "neutral-white",
2231
+ "icon-color": b.model.labelAlign === g ? "neutral-gray-400" : "neutral-gray-300",
2232
+ "bg-color": b.model.labelAlign === g ? "neutral-gray-100" : "neutral-white",
2233
2233
  class: "rounded-sm",
2234
- onClick: (x) => U(g)
2234
+ onClick: (S) => U(g)
2235
2235
  }, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
2236
2236
  ]),
2237
2237
  _: 2
2238
2238
  }, 1032, ["content"])), 64))
2239
2239
  ]),
2240
- h("p", et, K(l(t)("report.section.datasource.alignment.anchor")), 1),
2241
- h("div", lt, [
2242
- (v(), E(de, null, xe(f, ({ icon: a, value: g, tooltip: c }) => u(z, {
2240
+ C("p", nt, Q(l(t)("report.section.datasource.alignment.anchor")), 1),
2241
+ C("div", it, [
2242
+ (f(), H(ue, null, xe(v, ({ icon: a, value: g, tooltip: c }) => u(z, {
2243
2243
  key: g,
2244
2244
  variant: "plain",
2245
2245
  placement: "top",
@@ -2247,28 +2247,28 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2247
2247
  "z-index": 50
2248
2248
  }, {
2249
2249
  default: G(() => [
2250
- u(k, {
2250
+ u(F, {
2251
2251
  "append-icon": a,
2252
2252
  variant: "tertiary",
2253
- "icon-color": y.model.labelAnchor === g ? "neutral-gray-400" : "neutral-gray-300",
2254
- "bg-color": y.model.labelAnchor === g ? "neutral-gray-100" : "neutral-white",
2253
+ "icon-color": b.model.labelAnchor === g ? "neutral-gray-400" : "neutral-gray-300",
2254
+ "bg-color": b.model.labelAnchor === g ? "neutral-gray-100" : "neutral-white",
2255
2255
  class: "rounded-sm",
2256
- onClick: (x) => o(g)
2256
+ onClick: (S) => o(g)
2257
2257
  }, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
2258
2258
  ]),
2259
2259
  _: 2
2260
2260
  }, 1032, ["content"])), 64))
2261
2261
  ]),
2262
- u(S, {
2263
- modelValue: C.value,
2264
- "onUpdate:modelValue": L[1] || (L[1] = (a) => C.value = a),
2262
+ u(k, {
2263
+ modelValue: x.value,
2264
+ "onUpdate:modelValue": L[1] || (L[1] = (a) => x.value = a),
2265
2265
  label: l(t)("report.section.datasource.alignment.rotation"),
2266
2266
  type: "number",
2267
2267
  min: -180,
2268
2268
  max: 180,
2269
2269
  step: 1
2270
2270
  }, null, 8, ["modelValue", "label"]),
2271
- u(S, {
2271
+ u(k, {
2272
2272
  modelValue: p.value,
2273
2273
  "onUpdate:modelValue": L[2] || (L[2] = (a) => p.value = a),
2274
2274
  label: l(t)("report.section.datasource.alignment.offset"),
@@ -2282,201 +2282,201 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2282
2282
  min: 1
2283
2283
  }, null, 8, ["modelValue", "label"])
2284
2284
  ], 512), [
2285
- [Ce, w.value]
2285
+ [we, w.value]
2286
2286
  ])
2287
2287
  ]);
2288
2288
  };
2289
2289
  }
2290
- }), tt = { class: "flex flex-col gap-8" }, at = { class: "pl-32 flex flex-col gap-8" }, nt = { class: "pl-32 flex flex-col gap-8" }, it = { class: "pl-32 flex flex-col gap-8" }, st = { class: "pl-32 flex flex-col gap-8" }, rt = { class: "pl-32 flex flex-col gap-8" }, ut = { class: "pl-32 flex flex-col gap-8" }, dt = /* @__PURE__ */ re({
2290
+ }), rt = { class: "flex flex-col gap-8" }, ut = { class: "pl-32 flex flex-col gap-8" }, dt = { class: "pl-32 flex flex-col gap-8" }, mt = { class: "pl-32 flex flex-col gap-8" }, ct = { class: "pl-32 flex flex-col gap-8" }, pt = { class: "pl-32 flex flex-col gap-8" }, vt = { class: "pl-32 flex flex-col gap-8" }, ft = /* @__PURE__ */ ie({
2291
2291
  __name: "XySection",
2292
2292
  props: {
2293
2293
  model: {}
2294
2294
  },
2295
2295
  emits: ["update:model"],
2296
2296
  setup(D, { emit: m }) {
2297
- const e = D, s = m, { t } = ce(), w = _({
2297
+ const e = D, s = m, { t } = me(), w = T({
2298
2298
  get: () => e.model.showX ?? !0,
2299
- set: (b) => {
2300
- s("update:model", { ...e.model, showX: b });
2299
+ set: (h) => {
2300
+ s("update:model", { ...e.model, showX: h });
2301
2301
  }
2302
- }), C = _({
2302
+ }), x = T({
2303
2303
  get: () => e.model.showXGrid ?? !1,
2304
- set: (b) => {
2305
- s("update:model", { ...e.model, showXGrid: b });
2304
+ set: (h) => {
2305
+ s("update:model", { ...e.model, showXGrid: h });
2306
2306
  }
2307
- }), p = _({
2307
+ }), p = T({
2308
2308
  get: () => e.model.showXTick ?? !0,
2309
- set: (b) => {
2310
- s("update:model", { ...e.model, showXTick: b });
2309
+ set: (h) => {
2310
+ s("update:model", { ...e.model, showXTick: h });
2311
2311
  }
2312
- }), B = _({
2312
+ }), B = T({
2313
2313
  get: () => e.model.showY ?? !0,
2314
- set: (b) => {
2315
- s("update:model", { ...e.model, showY: b });
2314
+ set: (h) => {
2315
+ s("update:model", { ...e.model, showY: h });
2316
2316
  }
2317
- }), U = _({
2317
+ }), U = T({
2318
2318
  get: () => e.model.showYGrid ?? !1,
2319
- set: (b) => {
2320
- s("update:model", { ...e.model, showYGrid: b });
2319
+ set: (h) => {
2320
+ s("update:model", { ...e.model, showYGrid: h });
2321
2321
  }
2322
- }), o = _({
2322
+ }), o = T({
2323
2323
  get: () => e.model.showYTick ?? !0,
2324
- set: (b) => {
2325
- s("update:model", { ...e.model, showYTick: b });
2324
+ set: (h) => {
2325
+ s("update:model", { ...e.model, showYTick: h });
2326
2326
  }
2327
- }), r = _({
2327
+ }), r = T({
2328
2328
  get: () => e.model.showXTitle ?? !1,
2329
- set: (b) => {
2330
- s("update:model", { ...e.model, showXTitle: b });
2329
+ set: (h) => {
2330
+ s("update:model", { ...e.model, showXTitle: h });
2331
2331
  }
2332
- }), f = _({
2332
+ }), v = T({
2333
2333
  get: () => e.model.showYTitle ?? !1,
2334
- set: (b) => {
2335
- s("update:model", { ...e.model, showYTitle: b });
2334
+ set: (h) => {
2335
+ s("update:model", { ...e.model, showYTitle: h });
2336
2336
  }
2337
- }), y = je((b) => {
2338
- s("update:model", { ...e.model, xTitle: b });
2339
- }, 500), L = je((b) => {
2340
- s("update:model", { ...e.model, yTitle: b });
2337
+ }), b = ze((h) => {
2338
+ s("update:model", { ...e.model, xTitle: h });
2339
+ }, 500), L = ze((h) => {
2340
+ s("update:model", { ...e.model, yTitle: h });
2341
2341
  }, 500);
2342
- return Ye(() => {
2343
- var b, k, z, S;
2344
- !e.model.xTitle && ((k = (b = e.model.metrics) == null ? void 0 : b[0]) != null && k.label) && y(e.model.metrics[0].label), !e.model.yTitle && ((S = (z = e.model.dimensions) == null ? void 0 : z[0]) != null && S.label) && L(e.model.dimensions[0].label);
2345
- }), (b, k) => {
2346
- const z = $("FmCheckbox"), S = $("FmStepperField"), d = $("FmTextField");
2347
- return v(), E("div", tt, [
2342
+ return Ke(() => {
2343
+ var h, F, z, k;
2344
+ !e.model.xTitle && ((F = (h = e.model.metrics) == null ? void 0 : h[0]) != null && F.label) && b(e.model.metrics[0].label), !e.model.yTitle && ((k = (z = e.model.dimensions) == null ? void 0 : z[0]) != null && k.label) && L(e.model.dimensions[0].label);
2345
+ }), (h, F) => {
2346
+ const z = $("FmCheckbox"), k = $("FmStepperField"), d = $("FmTextField");
2347
+ return f(), H("div", rt, [
2348
2348
  u(z, {
2349
2349
  modelValue: w.value,
2350
- "onUpdate:modelValue": k[0] || (k[0] = (a) => w.value = a),
2350
+ "onUpdate:modelValue": F[0] || (F[0] = (a) => w.value = a),
2351
2351
  label: l(t)("report.section.datasource.axis.showX"),
2352
2352
  "label-placement": "right",
2353
2353
  value: !0
2354
2354
  }, null, 8, ["modelValue", "label"]),
2355
- we(h("div", at, [
2355
+ Ce(C("div", ut, [
2356
2356
  u(z, {
2357
- modelValue: C.value,
2358
- "onUpdate:modelValue": k[1] || (k[1] = (a) => C.value = a),
2357
+ modelValue: x.value,
2358
+ "onUpdate:modelValue": F[1] || (F[1] = (a) => x.value = a),
2359
2359
  label: l(t)("report.section.datasource.axis.showGrid"),
2360
2360
  "label-placement": "right",
2361
2361
  value: !1
2362
2362
  }, null, 8, ["modelValue", "label"]),
2363
2363
  u(z, {
2364
2364
  modelValue: p.value,
2365
- "onUpdate:modelValue": k[2] || (k[2] = (a) => p.value = a),
2365
+ "onUpdate:modelValue": F[2] || (F[2] = (a) => p.value = a),
2366
2366
  label: l(t)("report.section.datasource.axis.showTick"),
2367
2367
  "label-placement": "right",
2368
2368
  value: !0
2369
2369
  }, null, 8, ["modelValue", "label"]),
2370
- we(h("div", nt, [
2371
- u(S, {
2370
+ Ce(C("div", dt, [
2371
+ u(k, {
2372
2372
  label: l(t)("report.section.datasource.fontSize"),
2373
2373
  type: "number",
2374
- "model-value": b.model.xTickFontSize ?? 12,
2374
+ "model-value": h.model.xTickFontSize ?? 12,
2375
2375
  min: 1,
2376
- "onUpdate:modelValue": k[3] || (k[3] = (a) => {
2377
- s("update:model", { ...b.model, xTickFontSize: Number(a) });
2376
+ "onUpdate:modelValue": F[3] || (F[3] = (a) => {
2377
+ s("update:model", { ...h.model, xTickFontSize: Number(a) });
2378
2378
  })
2379
2379
  }, null, 8, ["label", "model-value"])
2380
2380
  ], 512), [
2381
- [Ce, b.model.showXTick ?? !0]
2381
+ [we, h.model.showXTick ?? !0]
2382
2382
  ]),
2383
2383
  u(z, {
2384
2384
  modelValue: r.value,
2385
- "onUpdate:modelValue": k[4] || (k[4] = (a) => r.value = a),
2385
+ "onUpdate:modelValue": F[4] || (F[4] = (a) => r.value = a),
2386
2386
  label: l(t)("report.section.datasource.axis.showTitle"),
2387
2387
  "label-placement": "right",
2388
2388
  value: !0
2389
2389
  }, null, 8, ["modelValue", "label"]),
2390
- we(h("div", it, [
2390
+ Ce(C("div", mt, [
2391
2391
  u(d, {
2392
- "model-value": b.model.xTitle,
2392
+ "model-value": h.model.xTitle,
2393
2393
  label: l(t)("report.common.title"),
2394
2394
  placeholder: l(t)("report.tile.widget.titlePlaceholder"),
2395
- "onUpdate:modelValue": l(y)
2395
+ "onUpdate:modelValue": l(b)
2396
2396
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2397
- u(S, {
2397
+ u(k, {
2398
2398
  label: l(t)("report.section.datasource.fontSize"),
2399
2399
  type: "number",
2400
- "model-value": b.model.xTitleFontSize ?? 12,
2400
+ "model-value": h.model.xTitleFontSize ?? 12,
2401
2401
  min: 1,
2402
- "onUpdate:modelValue": k[5] || (k[5] = (a) => {
2403
- s("update:model", { ...b.model, xTitleFontSize: Number(a) });
2402
+ "onUpdate:modelValue": F[5] || (F[5] = (a) => {
2403
+ s("update:model", { ...h.model, xTitleFontSize: Number(a) });
2404
2404
  })
2405
2405
  }, null, 8, ["label", "model-value"])
2406
2406
  ], 512), [
2407
- [Ce, r.value]
2407
+ [we, r.value]
2408
2408
  ])
2409
2409
  ], 512), [
2410
- [Ce, b.model.showX ?? !0]
2410
+ [we, h.model.showX ?? !0]
2411
2411
  ]),
2412
2412
  u(z, {
2413
2413
  modelValue: B.value,
2414
- "onUpdate:modelValue": k[6] || (k[6] = (a) => B.value = a),
2414
+ "onUpdate:modelValue": F[6] || (F[6] = (a) => B.value = a),
2415
2415
  label: l(t)("report.section.datasource.axis.showY"),
2416
2416
  "label-placement": "right",
2417
2417
  value: !0
2418
2418
  }, null, 8, ["modelValue", "label"]),
2419
- we(h("div", st, [
2419
+ Ce(C("div", ct, [
2420
2420
  u(z, {
2421
2421
  modelValue: U.value,
2422
- "onUpdate:modelValue": k[7] || (k[7] = (a) => U.value = a),
2422
+ "onUpdate:modelValue": F[7] || (F[7] = (a) => U.value = a),
2423
2423
  label: l(t)("report.section.datasource.axis.showGrid"),
2424
2424
  "label-placement": "right",
2425
2425
  value: !1
2426
2426
  }, null, 8, ["modelValue", "label"]),
2427
2427
  u(z, {
2428
2428
  modelValue: o.value,
2429
- "onUpdate:modelValue": k[8] || (k[8] = (a) => o.value = a),
2429
+ "onUpdate:modelValue": F[8] || (F[8] = (a) => o.value = a),
2430
2430
  label: l(t)("report.section.datasource.axis.showTick"),
2431
2431
  "label-placement": "right",
2432
2432
  value: !0
2433
2433
  }, null, 8, ["modelValue", "label"]),
2434
- we(h("div", rt, [
2435
- u(S, {
2434
+ Ce(C("div", pt, [
2435
+ u(k, {
2436
2436
  label: l(t)("report.section.datasource.fontSize"),
2437
2437
  type: "number",
2438
- "model-value": b.model.yTickFontSize ?? 12,
2438
+ "model-value": h.model.yTickFontSize ?? 12,
2439
2439
  min: 1,
2440
- "onUpdate:modelValue": k[9] || (k[9] = (a) => {
2441
- s("update:model", { ...b.model, yTickFontSize: Number(a) });
2440
+ "onUpdate:modelValue": F[9] || (F[9] = (a) => {
2441
+ s("update:model", { ...h.model, yTickFontSize: Number(a) });
2442
2442
  })
2443
2443
  }, null, 8, ["label", "model-value"])
2444
2444
  ], 512), [
2445
- [Ce, b.model.showYTick ?? !0]
2445
+ [we, h.model.showYTick ?? !0]
2446
2446
  ]),
2447
2447
  u(z, {
2448
- modelValue: f.value,
2449
- "onUpdate:modelValue": k[10] || (k[10] = (a) => f.value = a),
2448
+ modelValue: v.value,
2449
+ "onUpdate:modelValue": F[10] || (F[10] = (a) => v.value = a),
2450
2450
  label: l(t)("report.section.datasource.axis.showTitle"),
2451
2451
  "label-placement": "right",
2452
2452
  value: !0
2453
2453
  }, null, 8, ["modelValue", "label"]),
2454
- we(h("div", ut, [
2454
+ Ce(C("div", vt, [
2455
2455
  u(d, {
2456
- "model-value": b.model.yTitle,
2456
+ "model-value": h.model.yTitle,
2457
2457
  label: l(t)("report.common.title"),
2458
2458
  placeholder: l(t)("report.tile.widget.titlePlaceholder"),
2459
2459
  "onUpdate:modelValue": l(L)
2460
2460
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2461
- u(S, {
2461
+ u(k, {
2462
2462
  label: l(t)("report.section.datasource.fontSize"),
2463
2463
  type: "number",
2464
- "model-value": b.model.yTitleFontSize ?? 12,
2464
+ "model-value": h.model.yTitleFontSize ?? 12,
2465
2465
  min: 1,
2466
- "onUpdate:modelValue": k[11] || (k[11] = (a) => {
2467
- s("update:model", { ...b.model, yTitleFontSize: Number(a) });
2466
+ "onUpdate:modelValue": F[11] || (F[11] = (a) => {
2467
+ s("update:model", { ...h.model, yTitleFontSize: Number(a) });
2468
2468
  })
2469
2469
  }, null, 8, ["label", "model-value"])
2470
2470
  ], 512), [
2471
- [Ce, f.value]
2471
+ [we, v.value]
2472
2472
  ])
2473
2473
  ], 512), [
2474
- [Ce, b.model.showY ?? !0]
2474
+ [we, h.model.showY ?? !0]
2475
2475
  ])
2476
2476
  ]);
2477
2477
  };
2478
2478
  }
2479
- }), mt = { class: "flex flex-col gap-8" }, ct = { class: "pl-32 flex flex-col gap-8" }, pt = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, vt = ["onKeydown"], ft = /* @__PURE__ */ re({
2479
+ }), gt = { class: "flex flex-col gap-8" }, yt = { class: "pl-32 flex flex-col gap-8" }, bt = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, ht = ["onKeydown"], Ct = /* @__PURE__ */ ie({
2480
2480
  __name: "LegendSection",
2481
2481
  props: {
2482
2482
  model: {},
@@ -2484,22 +2484,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2484
2484
  },
2485
2485
  emits: ["update:model"],
2486
2486
  setup(D, { emit: m }) {
2487
- const e = D, s = m, { t } = ce(), w = [
2487
+ const e = D, s = m, { t } = me(), w = [
2488
2488
  { label: t("report.section.datasource.position.top"), value: "top" },
2489
2489
  { label: t("report.section.datasource.position.bottom"), value: "bottom" },
2490
2490
  { label: t("report.section.datasource.position.left"), value: "left" },
2491
2491
  { label: t("report.section.datasource.position.right"), value: "right" }
2492
- ], C = _({
2492
+ ], x = T({
2493
2493
  get: () => e.model.showLegend !== void 0 ? e.model.showLegend : e.isCircularWidget === !0,
2494
2494
  set: (L) => {
2495
2495
  s("update:model", { ...e.model, showLegend: L });
2496
2496
  }
2497
- }), p = _({
2497
+ }), p = T({
2498
2498
  get: () => e.model.usePointStyle ?? !0,
2499
2499
  set: (L) => {
2500
2500
  s("update:model", { ...e.model, usePointStyle: L });
2501
2501
  }
2502
- }), B = _({
2502
+ }), B = T({
2503
2503
  get: () => e.model.legendFontSize ?? null,
2504
2504
  set: (L) => {
2505
2505
  if (L == null) {
@@ -2508,34 +2508,34 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2508
2508
  }
2509
2509
  s("update:model", { ...e.model, legendFontSize: Math.min(Number(L), 24) });
2510
2510
  }
2511
- }), U = _(() => e.model.legendColor ?? "#6b6b6b"), o = oe(U.value), r = oe(null);
2511
+ }), U = T(() => e.model.legendColor ?? "#6b6b6b"), o = oe(U.value), r = oe(null);
2512
2512
  he(
2513
2513
  () => e.model.legendColor,
2514
2514
  (L) => {
2515
2515
  o.value = L ?? "#6b6b6b";
2516
2516
  }
2517
2517
  );
2518
- function f() {
2518
+ function v() {
2519
2519
  s("update:model", { ...e.model, legendColor: o.value });
2520
2520
  }
2521
- function y() {
2521
+ function b() {
2522
2522
  var L;
2523
2523
  (L = r.value) == null || L.click();
2524
2524
  }
2525
- return (L, b) => {
2526
- const k = $("FmCheckbox"), z = $("FmSelect"), S = $("FmStepperField"), d = $("FmButton");
2527
- return v(), E("div", mt, [
2528
- u(k, {
2529
- modelValue: C.value,
2530
- "onUpdate:modelValue": b[0] || (b[0] = (a) => C.value = a),
2525
+ return (L, h) => {
2526
+ const F = $("FmCheckbox"), z = $("FmSelect"), k = $("FmStepperField"), d = $("FmButton");
2527
+ return f(), H("div", gt, [
2528
+ u(F, {
2529
+ modelValue: x.value,
2530
+ "onUpdate:modelValue": h[0] || (h[0] = (a) => x.value = a),
2531
2531
  class: "fm-typo-en-body-lg-400",
2532
2532
  value: !1,
2533
2533
  label: l(t)("report.section.datasource.legend.showLegend")
2534
2534
  }, null, 8, ["modelValue", "label"]),
2535
- we(h("div", ct, [
2536
- u(k, {
2535
+ Ce(C("div", yt, [
2536
+ u(F, {
2537
2537
  modelValue: p.value,
2538
- "onUpdate:modelValue": b[1] || (b[1] = (a) => p.value = a),
2538
+ "onUpdate:modelValue": h[1] || (h[1] = (a) => p.value = a),
2539
2539
  label: l(t)("report.section.datasource.legend.usePointStyle"),
2540
2540
  value: !1
2541
2541
  }, null, 8, ["modelValue", "label"]),
@@ -2543,70 +2543,70 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2543
2543
  label: l(t)("report.section.datasource.position.showPosition"),
2544
2544
  items: w,
2545
2545
  "model-value": L.model.legendPosition ?? "top",
2546
- "onUpdate:modelValue": b[2] || (b[2] = (a) => s("update:model", { ...L.model, legendPosition: a }))
2546
+ "onUpdate:modelValue": h[2] || (h[2] = (a) => s("update:model", { ...L.model, legendPosition: a }))
2547
2547
  }, null, 8, ["label", "model-value"]),
2548
- u(S, {
2548
+ u(k, {
2549
2549
  modelValue: B.value,
2550
- "onUpdate:modelValue": b[3] || (b[3] = (a) => B.value = a),
2550
+ "onUpdate:modelValue": h[3] || (h[3] = (a) => B.value = a),
2551
2551
  label: l(t)("report.section.datasource.legend.fontSize"),
2552
2552
  max: 24,
2553
2553
  min: 1,
2554
2554
  type: "number",
2555
2555
  placeholder: "Auto"
2556
2556
  }, null, 8, ["modelValue", "label"]),
2557
- h("p", pt, K(l(t)("report.section.datasource.legend.color")), 1),
2558
- h("div", {
2557
+ C("p", bt, Q(l(t)("report.section.datasource.legend.color")), 1),
2558
+ C("div", {
2559
2559
  class: "fm-field fm-field--sm flex items-center justify-between gap-8 border rounded-md p-2 border-[#c7c7cc] cursor-pointer",
2560
2560
  role: "button",
2561
2561
  tabindex: "0",
2562
- onClick: y,
2562
+ onClick: b,
2563
2563
  onKeydown: [
2564
- el(ye(y, ["prevent"]), ["enter"]),
2565
- el(ye(y, ["prevent"]), ["space"])
2564
+ ol(ye(b, ["prevent"]), ["enter"]),
2565
+ ol(ye(b, ["prevent"]), ["space"])
2566
2566
  ]
2567
2567
  }, [
2568
- we(h("input", {
2568
+ Ce(C("input", {
2569
2569
  ref_key: "colorInputRef",
2570
2570
  ref: r,
2571
- "onUpdate:modelValue": b[4] || (b[4] = (a) => o.value = a),
2571
+ "onUpdate:modelValue": h[4] || (h[4] = (a) => o.value = a),
2572
2572
  type: "color",
2573
2573
  class: "legend-color-input cursor-pointer"
2574
2574
  }, null, 512), [
2575
- [Ll, o.value]
2575
+ [jl, o.value]
2576
2576
  ])
2577
- ], 40, vt),
2577
+ ], 40, ht),
2578
2578
  u(d, {
2579
2579
  size: "md",
2580
2580
  label: l(t)("report.common.apply"),
2581
2581
  disabled: o.value === U.value,
2582
- onClick: f
2582
+ onClick: v
2583
2583
  }, null, 8, ["label", "disabled"]),
2584
- L.model.legendPosition === "left" || L.model.legendPosition === "right" ? (v(), j(S, {
2584
+ L.model.legendPosition === "left" || L.model.legendPosition === "right" ? (f(), N(k, {
2585
2585
  key: 0,
2586
2586
  label: l(t)("report.section.datasource.legend.maxWidth"),
2587
2587
  "model-value": L.model.legendMaxWidth ?? null,
2588
- "onUpdate:modelValue": b[5] || (b[5] = (a) => s("update:model", { ...L.model, legendMaxWidth: a ?? void 0 })),
2588
+ "onUpdate:modelValue": h[5] || (h[5] = (a) => s("update:model", { ...L.model, legendMaxWidth: a ?? void 0 })),
2589
2589
  placeholder: "Auto"
2590
2590
  }, null, 8, ["label", "model-value"])) : O("", !0)
2591
2591
  ], 512), [
2592
- [Ce, C.value]
2592
+ [we, x.value]
2593
2593
  ])
2594
2594
  ]);
2595
2595
  };
2596
2596
  }
2597
- }), gt = /* @__PURE__ */ fl(ft, [["__scopeId", "data-v-0f6af12a"]]), yt = { class: "flex flex-row gap-16" }, bt = /* @__PURE__ */ re({
2597
+ }), wt = /* @__PURE__ */ yl(Ct, [["__scopeId", "data-v-0f6af12a"]]), xt = { class: "flex flex-row gap-16" }, Vt = /* @__PURE__ */ ie({
2598
2598
  __name: "ChartSizeSection",
2599
2599
  props: {
2600
2600
  model: {}
2601
2601
  },
2602
2602
  emits: ["update:model"],
2603
2603
  setup(D, { emit: m }) {
2604
- const e = D, s = m, { t } = ce(), w = _({
2604
+ const e = D, s = m, { t } = me(), w = T({
2605
2605
  get: () => e.model.chartHeight ?? null,
2606
2606
  set: (p) => {
2607
2607
  s("update:model", { ...e.model, chartHeight: p ?? void 0 });
2608
2608
  }
2609
- }), C = _({
2609
+ }), x = T({
2610
2610
  get: () => e.model.chartWidth ?? null,
2611
2611
  set: (p) => {
2612
2612
  s("update:model", { ...e.model, chartWidth: p ?? void 0 });
@@ -2614,7 +2614,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2614
2614
  });
2615
2615
  return (p, B) => {
2616
2616
  const U = $("FmStepperField");
2617
- return v(), E("div", yt, [
2617
+ return f(), H("div", xt, [
2618
2618
  u(U, {
2619
2619
  modelValue: w.value,
2620
2620
  "onUpdate:modelValue": B[0] || (B[0] = (o) => w.value = o),
@@ -2625,8 +2625,8 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2625
2625
  placeholder: "Auto"
2626
2626
  }, null, 8, ["modelValue", "label"]),
2627
2627
  u(U, {
2628
- modelValue: C.value,
2629
- "onUpdate:modelValue": B[1] || (B[1] = (o) => C.value = o),
2628
+ modelValue: x.value,
2629
+ "onUpdate:modelValue": B[1] || (B[1] = (o) => x.value = o),
2630
2630
  type: "number",
2631
2631
  label: l(t)("report.section.datasource.chartWidth"),
2632
2632
  suffix: "px",
@@ -2636,22 +2636,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2636
2636
  ]);
2637
2637
  };
2638
2638
  }
2639
- }), ht = { class: "flex flex-col gap-8" }, wt = { class: "flex gap-8" }, Ct = {
2639
+ }), Ft = { class: "flex flex-col gap-8" }, kt = { class: "flex gap-8" }, St = {
2640
2640
  key: 0,
2641
2641
  class: "flex items-center gap-8 text-fm-color-system-info-300"
2642
- }, xt = { class: "flex flex-col gap-8" }, Vt = {
2642
+ }, _t = { class: "flex flex-col gap-8" }, Tt = {
2643
2643
  key: 1,
2644
2644
  class: "grid grid-cols-1 gap-8 sm:grid-cols-2"
2645
- }, Ft = ["title"], kt = ["aria-label"], St = { class: "text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, _t = ["value", "onInput", "onChange"], Tt = {
2645
+ }, $t = ["title"], Ut = ["aria-label"], Dt = { class: "text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, Bt = ["value", "onInput", "onChange"], Lt = {
2646
2646
  key: 0,
2647
2647
  class: "flex items-center gap-8"
2648
- }, $t = {
2648
+ }, At = {
2649
2649
  key: 2,
2650
2650
  class: "flex flex-col gap-8"
2651
- }, Ut = { class: "fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-10" }, Dt = { class: "mb-8 flex min-w-0 items-center gap-[8px] pb-8" }, Bt = ["title"], Lt = ["title"], At = ["aria-label"], Mt = { class: "text-[12px] uppercase leading-none tracking-[0.02em]" }, Nt = ["value", "disabled", "onInput", "onChange"], Ot = {
2651
+ }, Mt = { class: "fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-10" }, Ot = { class: "mb-8 flex min-w-0 items-center gap-[8px] pb-8" }, Nt = ["title"], jt = ["title"], zt = ["aria-label"], Rt = { class: "text-[12px] uppercase leading-none tracking-[0.02em]" }, It = ["value", "disabled", "onInput", "onChange"], Pt = {
2652
2652
  key: 0,
2653
2653
  class: "flex items-center gap-8"
2654
- }, Ve = 10, jt = /* @__PURE__ */ re({
2654
+ }, Ve = 10, Et = /* @__PURE__ */ ie({
2655
2655
  __name: "ChartColorSection",
2656
2656
  props: {
2657
2657
  model: {},
@@ -2660,170 +2660,176 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2660
2660
  },
2661
2661
  emits: ["update:model"],
2662
2662
  setup(D, { emit: m }) {
2663
- const e = D, s = m, { t } = ce(), w = _(() => e.limitToSeriesMode ? [
2663
+ const e = D, s = m, { t } = me(), w = T(() => e.limitToSeriesMode ? [
2664
2664
  {
2665
2665
  label: t("report.section.datasource.styleTarget.series"),
2666
- value: te.series
2666
+ value: ae.series
2667
2667
  }
2668
2668
  ] : [
2669
2669
  {
2670
2670
  label: t("report.section.datasource.styleTarget.series"),
2671
- value: te.series
2671
+ value: ae.series
2672
2672
  },
2673
2673
  {
2674
2674
  label: t("report.section.datasource.styleTarget.metric"),
2675
- value: te.metric
2675
+ value: ae.metric
2676
2676
  },
2677
2677
  {
2678
2678
  label: t("report.section.datasource.styleTarget.breakdown"),
2679
- value: te.breakdown
2679
+ value: ae.breakdown
2680
2680
  }
2681
2681
  ]);
2682
- function C(V) {
2683
- return e.limitToSeriesMode ? te.series : V === te.breakdown ? te.breakdown : V === te.metric ? te.metric : te.series;
2682
+ function x(y) {
2683
+ return e.limitToSeriesMode ? ae.series : y === ae.breakdown ? ae.breakdown : y === ae.metric ? ae.metric : ae.series;
2684
2684
  }
2685
2685
  function p() {
2686
- const V = Array.isArray(e.model.metrics) ? e.model.metrics : [];
2686
+ const y = Array.isArray(e.model.metrics) ? e.model.metrics : [];
2687
2687
  if (!e.model.isBlend)
2688
- return V;
2689
- const F = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
2690
- (T) => Array.isArray(T == null ? void 0 : T.metrics) ? T.metrics : []
2688
+ return y;
2689
+ const V = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
2690
+ (_) => Array.isArray(_ == null ? void 0 : _.metrics) ? _.metrics : []
2691
2691
  ) : [];
2692
- return [...V, ...F];
2692
+ return [...y, ...V];
2693
2693
  }
2694
- function B(V, F) {
2695
- var R, W;
2696
- return V ? ((R = V.label) == null ? void 0 : R.trim()) || ((W = V.name) == null ? void 0 : W.trim()) || `${t("report.section.datasource.styleTarget.metric")} ${F + 1}` : `${t("report.section.datasource.styleTarget.metric")} ${F + 1}`;
2694
+ function B(y, V) {
2695
+ var R, q;
2696
+ return y ? ((R = y.label) == null ? void 0 : R.trim()) || ((q = y.name) == null ? void 0 : q.trim()) || `${t("report.section.datasource.styleTarget.metric")} ${V + 1}` : `${t("report.section.datasource.styleTarget.metric")} ${V + 1}`;
2697
2697
  }
2698
- function U(V) {
2699
- if (V === te.breakdown)
2698
+ function U(y) {
2699
+ if (y === ae.breakdown)
2700
2700
  return [];
2701
- if (V === te.metric) {
2702
- const F = p();
2703
- if (F.length > 0)
2704
- return F.map((T, R) => B(T, R));
2701
+ if (y === ae.metric) {
2702
+ const V = p();
2703
+ if (V.length > 0)
2704
+ return V.map((_, R) => B(_, R));
2705
2705
  }
2706
- return se.map(
2707
- (F, T) => `${t("report.section.datasource.chartColor.series")} ${T + 1}`
2706
+ return ce.map(
2707
+ (V, _) => `${t("report.section.datasource.chartColor.series")} ${_ + 1}`
2708
2708
  );
2709
2709
  }
2710
- function o(V) {
2711
- return Array.from({ length: Math.max(1, V) }).map(
2712
- (F, T) => `${t("report.section.datasource.chartColor.series")} ${T + 1}`
2710
+ function o(y) {
2711
+ return Array.from({ length: Math.max(1, y) }).map(
2712
+ (V, _) => `${t("report.section.datasource.chartColor.series")} ${_ + 1}`
2713
2713
  );
2714
2714
  }
2715
- function r(V, F) {
2716
- const T = Array.isArray(V) ? V.length : 0, R = Array.isArray(F) ? F.length : 0;
2717
- return Math.max(se.length, T, R, 1);
2718
- }
2719
- const f = _(() => {
2720
- const V = p();
2721
- return V.length === 0 ? [t("report.section.datasource.styleTarget.metric")] : V.map((F, T) => B(F, T));
2722
- }), y = oe(se.length), L = oe(se.length);
2723
- function b(V, F) {
2724
- const T = Math.max(1, F), R = Array.isArray(V) ? V.length : 0, W = R > 0 ? Math.ceil(R / T) : 0;
2725
- return Math.max(se.length, W, 1);
2726
- }
2727
- const k = _(() => {
2728
- const V = Math.max(1, L.value);
2729
- return Array.from({ length: V }).map(
2730
- (F, T) => `${t("report.section.datasource.styleTarget.breakdown")} ${T + 1}`
2715
+ function r(y, V) {
2716
+ const _ = Array.isArray(y) ? y.length : 0, R = Array.isArray(V) ? V.length : 0;
2717
+ return Math.max(ce.length, _, R, 1);
2718
+ }
2719
+ const v = T(() => {
2720
+ const y = p();
2721
+ return y.length === 0 ? [t("report.section.datasource.styleTarget.metric")] : y.map((V, _) => B(V, _));
2722
+ }), b = oe(ce.length), L = oe(ce.length);
2723
+ function h(y, V) {
2724
+ const _ = Math.max(1, V), R = Array.isArray(y) ? y.length : 0, q = R > 0 ? Math.ceil(R / _) : 0;
2725
+ return Math.max(ce.length, q, 1);
2726
+ }
2727
+ const F = T(() => {
2728
+ const y = Math.max(1, L.value);
2729
+ return Array.from({ length: y }).map(
2730
+ (V, _) => `${t("report.section.datasource.styleTarget.breakdown")} ${_ + 1}`
2731
2731
  );
2732
2732
  });
2733
- function z(V, F) {
2734
- const T = c(V) ?? "#000000", R = (W) => {
2735
- const q = Number.parseInt(T.slice(W, W + 2), 16);
2736
- return Math.round(q + (255 - q) * F).toString(16).padStart(2, "0").toUpperCase();
2733
+ function z(y, V) {
2734
+ const _ = c(y) ?? "#000000", R = (q) => {
2735
+ const P = Number.parseInt(_.slice(q, q + 2), 16);
2736
+ return Math.round(P + (255 - P) * V).toString(16).padStart(2, "0").toUpperCase();
2737
2737
  };
2738
2738
  return `#${R(1)}${R(3)}${R(5)}`;
2739
2739
  }
2740
- function S(V) {
2741
- return Math.min(0.55 + (V - 1) * 0.18, 0.95);
2740
+ function k(y) {
2741
+ return Math.min(0.55 + (y - 1) * 0.18, 0.95);
2742
2742
  }
2743
- function d(V, F, T) {
2744
- return V * T + F;
2743
+ function d(y, V, _) {
2744
+ return y * _ + V;
2745
2745
  }
2746
- function a(V, F, T, R) {
2747
- const W = F.length;
2748
- return V.length === 0 || W <= 0 ? [] : V.flatMap((q, X) => {
2749
- const ne = se[X % se.length], Z = T == null ? void 0 : T[d(X, 0, W)], ue = c(Z) ?? ne;
2750
- return F.map((Ae, _e) => {
2751
- const Pe = d(X, _e, W), Ze = _e === 0 ? ue : z(ue, S(_e));
2752
- return R && _e > 0 ? Ze : c(T == null ? void 0 : T[Pe]) ?? Ze;
2746
+ function a(y, V, _, R) {
2747
+ const q = V.length;
2748
+ if (y.length === 0 || q <= 0)
2749
+ return [];
2750
+ const P = We(y.length);
2751
+ return y.flatMap((W, le) => {
2752
+ const Z = P[le], re = _ == null ? void 0 : _[d(le, 0, q)], $e = c(re) ?? Z;
2753
+ return V.map((Xe, Ue) => {
2754
+ const Ol = d(le, Ue, q), ll = Ue === 0 ? $e : z($e, k(Ue));
2755
+ return R && Ue > 0 ? ll : c(_ == null ? void 0 : _[Ol]) ?? ll;
2753
2756
  });
2754
2757
  });
2755
2758
  }
2756
2759
  const g = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
2757
- function c(V) {
2758
- if (!V)
2760
+ function c(y) {
2761
+ if (!y)
2759
2762
  return null;
2760
- const F = V.trim();
2761
- if (!g.test(F))
2763
+ const V = y.trim();
2764
+ if (!g.test(V))
2762
2765
  return null;
2763
- if (F.length === 4) {
2764
- const T = F.charAt(1), R = F.charAt(2), W = F.charAt(3);
2765
- return `#${T}${T}${R}${R}${W}${W}`.toUpperCase();
2766
+ if (V.length === 4) {
2767
+ const _ = V.charAt(1), R = V.charAt(2), q = V.charAt(3);
2768
+ return `#${_}${_}${R}${R}${q}${q}`.toUpperCase();
2766
2769
  }
2767
- return F.toUpperCase();
2768
- }
2769
- function x(V, F) {
2770
- return !Array.isArray(V) || V.length === 0 ? Array.from({ length: F }).map(
2771
- (T, R) => se[R % se.length]
2772
- ) : Array.from({ length: F }).map((T, R) => {
2773
- const W = se[R % se.length];
2774
- return c(V[R]) ?? W;
2770
+ return V.toUpperCase();
2771
+ }
2772
+ function S() {
2773
+ const y = () => Math.floor(Math.random() * 256).toString(16).padStart(2, "0").toUpperCase();
2774
+ return `#${y()}${y()}${y()}`;
2775
+ }
2776
+ function i(y, V) {
2777
+ const _ = We(V);
2778
+ return !Array.isArray(y) || y.length === 0 ? _ : Array.from({ length: V }).map((R, q) => {
2779
+ const P = _[q];
2780
+ return c(y[q]) ?? P;
2775
2781
  });
2776
2782
  }
2777
- function i(V, F) {
2778
- if (F <= 0)
2783
+ function n(y, V) {
2784
+ if (V <= 0)
2779
2785
  return [];
2780
- const T = Array.from({ length: F }, () => 0), R = /* @__PURE__ */ new Set();
2781
- for (let q = 0; q < F; q++) {
2782
- const X = Number(V == null ? void 0 : V[q]);
2783
- Number.isInteger(X) && X >= 1 && X <= F && !R.has(X) && (T[q] = X, R.add(X));
2786
+ const _ = Array.from({ length: V }, () => 0), R = /* @__PURE__ */ new Set();
2787
+ for (let P = 0; P < V; P++) {
2788
+ const W = Number(y == null ? void 0 : y[P]);
2789
+ Number.isInteger(W) && W >= 1 && W <= V && !R.has(W) && (_[P] = W, R.add(W));
2784
2790
  }
2785
- let W = 1;
2786
- for (let q = 0; q < F; q++)
2787
- if (T[q] === 0) {
2788
- for (; R.has(W) && W <= F; )
2789
- W++;
2790
- T[q] = Math.min(W, F), R.add(T[q]);
2791
+ let q = 1;
2792
+ for (let P = 0; P < V; P++)
2793
+ if (_[P] === 0) {
2794
+ for (; R.has(q) && q <= V; )
2795
+ q++;
2796
+ _[P] = Math.min(q, V), R.add(_[P]);
2791
2797
  }
2792
- return T;
2798
+ return _;
2793
2799
  }
2794
- const n = _(
2795
- () => C(e.model.chartColorBinding)
2796
- ), A = _(
2800
+ const A = T(
2801
+ () => x(e.model.chartColorBinding)
2802
+ ), E = T(
2797
2803
  () => r(e.model.chartColors, e.model.chartColorLayers)
2798
- ), I = _(() => ae.value === te.series ? o(y.value) : U(ae.value)), Q = _(
2799
- () => Array.from({ length: I.value.length }).map((V, F) => ({
2800
- label: `L${F + 1}`,
2801
- value: F + 1
2804
+ ), J = T(() => I.value === ae.series ? o(b.value) : U(I.value)), te = T(
2805
+ () => Array.from({ length: J.value.length }).map((y, V) => ({
2806
+ label: `L${V + 1}`,
2807
+ value: V + 1
2802
2808
  }))
2803
- ), ee = _(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap);
2804
- _(
2805
- () => x(
2809
+ ), M = T(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap);
2810
+ T(
2811
+ () => i(
2806
2812
  e.model.chartColors,
2807
- n.value === te.series ? A.value : U(n.value).length
2813
+ A.value === ae.series ? E.value : U(A.value).length
2808
2814
  )
2809
- ), _(
2810
- () => i(
2815
+ ), T(
2816
+ () => n(
2811
2817
  e.model.chartColorLayers,
2812
- n.value === te.series ? A.value : U(n.value).length
2818
+ A.value === ae.series ? E.value : U(A.value).length
2813
2819
  )
2814
2820
  );
2815
- const M = _(
2821
+ const ge = T(
2816
2822
  () => e.model.chartUseSecondaryMetricShades !== !1
2817
2823
  );
2818
- _(
2824
+ T(
2819
2825
  () => a(
2820
- k.value,
2821
- f.value,
2826
+ F.value,
2827
+ v.value,
2822
2828
  e.model.chartBreakdownColors,
2823
- M.value
2829
+ ge.value
2824
2830
  )
2825
2831
  );
2826
- const ie = oe([]), P = oe([]), N = oe([]), H = oe(!0), ae = oe(te.series), Y = oe(!0), pe = oe(!1), be = oe(!1);
2832
+ const X = oe([]), j = oe([]), Y = oe([]), ee = oe(!0), I = oe(ae.series), se = oe(!0), Te = oe(!1), be = oe(!1);
2827
2833
  he(
2828
2834
  [
2829
2835
  () => e.model.chartColors,
@@ -2834,391 +2840,419 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
2834
2840
  () => e.model.isBlend,
2835
2841
  () => e.model.joinDatasources
2836
2842
  ],
2837
- ([V, F]) => {
2838
- pe.value = !0, ae.value = C(F), y.value = r(
2839
- V,
2843
+ ([y, V]) => {
2844
+ Te.value = !0, I.value = x(V), b.value = r(
2845
+ y,
2840
2846
  e.model.chartColorLayers
2841
- ), L.value = b(
2847
+ ), L.value = h(
2842
2848
  e.model.chartBreakdownColors,
2843
- Math.max(1, f.value.length)
2849
+ Math.max(1, v.value.length)
2844
2850
  );
2845
- const T = ae.value === te.series ? y.value : U(ae.value).length;
2846
- ie.value = x(V, T), P.value = i(e.model.chartColorLayers, T), H.value = e.model.chartUseSecondaryMetricShades !== !1, N.value = a(
2847
- k.value,
2848
- f.value,
2851
+ const _ = I.value === ae.series ? b.value : U(I.value).length;
2852
+ X.value = i(y, _), j.value = n(e.model.chartColorLayers, _), ee.value = e.model.chartUseSecondaryMetricShades !== !1, Y.value = a(
2853
+ F.value,
2854
+ v.value,
2849
2855
  e.model.chartBreakdownColors,
2850
- H.value
2851
- ), pe.value = !1;
2856
+ ee.value
2857
+ ), Te.value = !1;
2852
2858
  },
2853
2859
  { immediate: !0, deep: !0 }
2854
2860
  );
2855
- function Be() {
2856
- const V = ae.value === te.series, F = ae.value === te.series ? se.length : U(ae.value).length, T = x(void 0, F), R = i(void 0, F), W = ie.value.length === T.length && ie.value.every((Z, ue) => Z === T[ue]), q = P.value.length === R.length && P.value.every((Z, ue) => Z === R[ue]), X = a(
2857
- Array.from({ length: se.length }, (Z, ue) => `breakdown-${ue + 1}`),
2858
- f.value,
2861
+ function Me() {
2862
+ const y = I.value === ae.series, V = I.value === ae.series ? ce.length : U(I.value).length, _ = i(void 0, V), R = n(void 0, V), q = X.value.length === _.length && X.value.every((Z, re) => Z === _[re]), P = j.value.length === R.length && j.value.every((Z, re) => Z === R[re]), W = a(
2863
+ Array.from({ length: ce.length }, (Z, re) => `breakdown-${re + 1}`),
2864
+ v.value,
2859
2865
  void 0,
2860
- H.value
2861
- ), ne = N.value.length === X.length && N.value.every((Z, ue) => Z === X[ue]);
2866
+ ee.value
2867
+ ), le = Y.value.length === W.length && Y.value.every((Z, re) => Z === W[re]);
2862
2868
  return {
2863
2869
  ...e.model,
2864
- chartColorBinding: V ? void 0 : ae.value,
2865
- chartColors: W ? void 0 : [...ie.value],
2866
- chartColorLayers: q ? void 0 : [...P.value],
2867
- chartBreakdownColors: ne ? void 0 : [...N.value],
2868
- chartUseSecondaryMetricShades: H.value
2870
+ chartColorBinding: y ? void 0 : I.value,
2871
+ chartColors: q ? void 0 : [...X.value],
2872
+ chartColorLayers: P ? void 0 : [...j.value],
2873
+ chartBreakdownColors: le ? void 0 : [...Y.value],
2874
+ chartUseSecondaryMetricShades: ee.value
2869
2875
  };
2870
2876
  }
2871
- function Le() {
2872
- const V = Be();
2873
- Tl(V) || s("update:model", V);
2877
+ function ne() {
2878
+ const y = Me();
2879
+ Bl(y) || s("update:model", y);
2874
2880
  }
2875
- function le() {
2876
- pe.value || be.value || Le();
2881
+ function Be() {
2882
+ Te.value || be.value || ne();
2877
2883
  }
2878
2884
  he(
2879
2885
  [
2880
- ie,
2881
- P,
2882
- N,
2883
- H,
2884
- ae,
2885
- y,
2886
+ X,
2887
+ j,
2888
+ Y,
2889
+ ee,
2890
+ I,
2891
+ b,
2886
2892
  L
2887
2893
  ],
2888
2894
  () => {
2889
- le();
2895
+ Be();
2890
2896
  },
2891
2897
  { deep: !0 }
2892
2898
  );
2893
- function Ge(V, F) {
2894
- const T = [...ie.value], R = se[V % se.length];
2895
- T[V] = c(F) ?? R, ie.value = T;
2899
+ function Ee(y, V) {
2900
+ const _ = [...X.value], R = We(Math.max(_.length, y + 1))[y];
2901
+ _[y] = c(V) ?? R, X.value = _;
2896
2902
  }
2897
- function hl(V) {
2903
+ function wl(y) {
2904
+ Ee(y, S());
2905
+ }
2906
+ function xl(y) {
2898
2907
  if (e.limitToSeriesMode)
2899
2908
  return;
2900
- const F = C(V);
2901
- if (F === ae.value)
2909
+ const V = x(y);
2910
+ if (V === I.value)
2902
2911
  return;
2903
- const T = F === te.series ? y.value : U(F).length;
2904
- ae.value = F, ie.value = x(ie.value, T), P.value = i(P.value, T), F === te.breakdown && (N.value = a(
2905
- k.value,
2906
- f.value,
2907
- N.value,
2908
- H.value
2912
+ const _ = V === ae.series ? b.value : U(V).length;
2913
+ I.value = V, X.value = i(X.value, _), j.value = n(j.value, _), V === ae.breakdown && (Y.value = a(
2914
+ F.value,
2915
+ v.value,
2916
+ Y.value,
2917
+ ee.value
2909
2918
  ));
2910
2919
  }
2911
- function Je(V, F) {
2912
- return V + 1 === F ? "add" : "remove";
2920
+ function Qe(y, V) {
2921
+ return y + 1 === V ? "add" : "remove";
2913
2922
  }
2914
- function wl(V) {
2915
- const F = Math.max(se.length, y.value), T = V + 1;
2916
- if (T === F) {
2917
- const Z = F + Ve;
2918
- y.value = Z, ie.value = x(ie.value, Z), P.value = i(P.value, Z);
2923
+ function Vl(y) {
2924
+ const V = Math.max(ce.length, b.value), _ = y + 1;
2925
+ if (_ === V) {
2926
+ const Z = V + Ve;
2927
+ b.value = Z, X.value = i(X.value, Z), j.value = n(j.value, Z);
2919
2928
  return;
2920
2929
  }
2921
- if (F <= se.length)
2930
+ if (V <= ce.length)
2922
2931
  return;
2923
- const W = T, q = Math.max(se.length, F - Ve), X = [...ie.value], ne = [...P.value];
2924
- X.splice(W, Ve), ne.splice(W, Ve), y.value = q, ie.value = x(X, q), P.value = i(ne, q);
2925
- }
2926
- function Cl(V) {
2927
- const F = Math.max(se.length, L.value), T = V + 1;
2928
- if (T === F) {
2929
- const Ae = F + Ve;
2930
- L.value = Ae, N.value = a(
2931
- Array.from({ length: Ae }, (_e, Pe) => `breakdown-${Pe + 1}`),
2932
- f.value,
2933
- N.value,
2934
- H.value
2932
+ const q = _, P = Math.max(ce.length, V - Ve), W = [...X.value], le = [...j.value];
2933
+ W.splice(q, Ve), le.splice(q, Ve), b.value = P, X.value = i(W, P), j.value = n(le, P);
2934
+ }
2935
+ function Fl(y) {
2936
+ const V = Math.max(ce.length, L.value), _ = y + 1;
2937
+ if (_ === V) {
2938
+ const $e = V + Ve;
2939
+ L.value = $e, Y.value = a(
2940
+ Array.from({ length: $e }, (Xe, Ue) => `breakdown-${Ue + 1}`),
2941
+ v.value,
2942
+ Y.value,
2943
+ ee.value
2935
2944
  );
2936
2945
  return;
2937
2946
  }
2938
- if (F <= se.length)
2947
+ if (V <= ce.length)
2939
2948
  return;
2940
- const W = Math.max(1, f.value.length), X = T * W, ne = Ve * W, Z = Math.max(se.length, F - Ve), ue = [...N.value];
2941
- ue.splice(X, ne), L.value = Z, N.value = a(
2942
- Array.from({ length: Z }, (Ae, _e) => `breakdown-${_e + 1}`),
2943
- f.value,
2944
- ue,
2945
- H.value
2949
+ const q = Math.max(1, v.value.length), W = _ * q, le = Ve * q, Z = Math.max(ce.length, V - Ve), re = [...Y.value];
2950
+ re.splice(W, le), L.value = Z, Y.value = a(
2951
+ Array.from({ length: Z }, ($e, Xe) => `breakdown-${Xe + 1}`),
2952
+ v.value,
2953
+ re,
2954
+ ee.value
2946
2955
  );
2947
2956
  }
2948
- function xl(V, F) {
2949
- const T = P.value.length;
2950
- if (T <= 0)
2957
+ function kl(y, V) {
2958
+ const _ = j.value.length;
2959
+ if (_ <= 0)
2951
2960
  return;
2952
- const R = Number(F);
2953
- if (!Number.isInteger(R) || R < 1 || R > T)
2961
+ const R = Number(V);
2962
+ if (!Number.isInteger(R) || R < 1 || R > _)
2954
2963
  return;
2955
- const W = [...P.value], q = W[V];
2956
- if (q === R)
2964
+ const q = [...j.value], P = q[y];
2965
+ if (P === R)
2957
2966
  return;
2958
- const X = W.findIndex(
2959
- (ne, Z) => Z !== V && ne === R
2967
+ const W = q.findIndex(
2968
+ (le, Z) => Z !== y && le === R
2960
2969
  );
2961
- X >= 0 && (W[X] = q), W[V] = R, P.value = W;
2970
+ W >= 0 && (q[W] = P), q[y] = R, j.value = q;
2962
2971
  }
2963
- function Vl(V, F) {
2964
- const T = F.target;
2965
- T && (be.value = !0, Ge(V, T.value));
2972
+ function Sl(y, V) {
2973
+ const _ = V.target;
2974
+ _ && (be.value = !0, Ee(y, _.value));
2966
2975
  }
2967
- function Fl(V, F) {
2968
- const T = F.target;
2969
- T && (Ge(V, T.value), be.value = !1, le());
2976
+ function _l(y, V) {
2977
+ const _ = V.target;
2978
+ _ && (Ee(y, _.value), be.value = !1, Be());
2970
2979
  }
2971
- function kl(V, F, T) {
2972
- const R = T.target;
2980
+ function Tl(y, V, _) {
2981
+ const R = _.target;
2973
2982
  if (!R)
2974
2983
  return;
2975
2984
  be.value = !0;
2976
- const W = c(R.value);
2977
- if (!W)
2985
+ const q = c(R.value);
2986
+ if (!q)
2978
2987
  return;
2979
- const q = f.value.length;
2980
- if (q <= 0)
2988
+ const P = v.value.length;
2989
+ if (P <= 0)
2981
2990
  return;
2982
- const X = d(V, F, q), ne = [...N.value];
2983
- if (ne[X] = W, H.value && F === 0)
2984
- for (let Z = 1; Z < q; Z++) {
2985
- const ue = d(V, Z, q);
2986
- ne[ue] = z(W, S(Z));
2991
+ const W = d(y, V, P), le = [...Y.value];
2992
+ if (le[W] = q, ee.value && V === 0)
2993
+ for (let Z = 1; Z < P; Z++) {
2994
+ const re = d(y, Z, P);
2995
+ le[re] = z(q, k(Z));
2987
2996
  }
2988
- N.value = ne;
2997
+ Y.value = le;
2989
2998
  }
2990
- function Sl(V, F, T) {
2991
- const R = T.target;
2999
+ function $l(y, V, _) {
3000
+ const R = _.target;
2992
3001
  if (!R)
2993
3002
  return;
2994
- const W = c(R.value);
2995
- if (!W) {
2996
- be.value = !1, le();
3003
+ const q = c(R.value);
3004
+ if (!q) {
3005
+ be.value = !1, Be();
2997
3006
  return;
2998
3007
  }
2999
- const q = f.value.length;
3000
- if (q <= 0) {
3001
- be.value = !1, le();
3008
+ const P = v.value.length;
3009
+ if (P <= 0) {
3010
+ be.value = !1, Be();
3002
3011
  return;
3003
3012
  }
3004
- const X = d(V, F, q), ne = [...N.value];
3005
- if (ne[X] = W, H.value && F === 0)
3006
- for (let Z = 1; Z < q; Z++) {
3007
- const ue = d(V, Z, q);
3008
- ne[ue] = z(W, S(Z));
3013
+ const W = d(y, V, P), le = [...Y.value];
3014
+ if (le[W] = q, ee.value && V === 0)
3015
+ for (let Z = 1; Z < P; Z++) {
3016
+ const re = d(y, Z, P);
3017
+ le[re] = z(q, k(Z));
3018
+ }
3019
+ Y.value = le, be.value = !1, Be();
3020
+ }
3021
+ function Ul(y, V) {
3022
+ const _ = S(), R = v.value.length;
3023
+ if (R <= 0)
3024
+ return;
3025
+ const q = d(y, V, R), P = [...Y.value];
3026
+ if (P[q] = _, ee.value && V === 0)
3027
+ for (let W = 1; W < R; W++) {
3028
+ const le = d(y, W, R);
3029
+ P[le] = z(_, k(W));
3009
3030
  }
3010
- N.value = ne, be.value = !1, le();
3031
+ Y.value = P;
3011
3032
  }
3012
- function Ke(V, F) {
3013
- const T = Array.isArray(V) ? V : [], R = Array.isArray(F) ? F : [];
3014
- return T.length !== R.length ? !1 : T.every((W, q) => W === R[q]);
3033
+ function Ze(y, V) {
3034
+ const _ = Array.isArray(y) ? y : [], R = Array.isArray(V) ? V : [];
3035
+ return _.length !== R.length ? !1 : _.every((q, P) => q === R[P]);
3015
3036
  }
3016
- function _l(V, F) {
3017
- const T = Array.isArray(V) ? V : [], R = Array.isArray(F) ? F : [];
3018
- return T.length !== R.length ? !1 : T.every((W, q) => Number(W) === Number(R[q]));
3037
+ function Dl(y, V) {
3038
+ const _ = Array.isArray(y) ? y : [], R = Array.isArray(V) ? V : [];
3039
+ return _.length !== R.length ? !1 : _.every((q, P) => Number(q) === Number(R[P]));
3019
3040
  }
3020
- function Tl(V) {
3021
- return V.chartColorBinding === e.model.chartColorBinding && V.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && Ke(V.chartColors, e.model.chartColors) && _l(V.chartColorLayers, e.model.chartColorLayers) && Ke(V.chartBreakdownColors, e.model.chartBreakdownColors);
3041
+ function Bl(y) {
3042
+ return y.chartColorBinding === e.model.chartColorBinding && y.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && Ze(y.chartColors, e.model.chartColors) && Dl(y.chartColorLayers, e.model.chartColorLayers) && Ze(y.chartBreakdownColors, e.model.chartBreakdownColors);
3022
3043
  }
3023
- function $l(V) {
3024
- H.value = V, N.value = a(
3025
- Array.from({ length: L.value }, (F, T) => `breakdown-${T + 1}`),
3026
- f.value,
3027
- N.value,
3028
- H.value
3044
+ function Ll(y) {
3045
+ ee.value = y, Y.value = a(
3046
+ Array.from({ length: L.value }, (V, _) => `breakdown-${_ + 1}`),
3047
+ v.value,
3048
+ Y.value,
3049
+ ee.value
3029
3050
  );
3030
3051
  }
3031
- function Ul() {
3032
- ae.value = te.series, y.value = se.length, L.value = se.length, ie.value = x(void 0, se.length), P.value = i(void 0, se.length), H.value = !0, N.value = a(
3033
- Array.from({ length: se.length }, (V, F) => `breakdown-${F + 1}`),
3034
- f.value,
3052
+ function Al() {
3053
+ I.value = ae.series, b.value = ce.length, L.value = ce.length, X.value = i(void 0, ce.length), j.value = n(void 0, ce.length), ee.value = !0, Y.value = a(
3054
+ Array.from({ length: ce.length }, (y, V) => `breakdown-${V + 1}`),
3055
+ v.value,
3035
3056
  void 0,
3036
3057
  !0
3037
3058
  );
3038
3059
  }
3039
- function Dl() {
3040
- Y.value = !Y.value;
3060
+ function Ml() {
3061
+ se.value = !se.value;
3041
3062
  }
3042
- function Qe(V) {
3043
- return (V + 1) % Ve === 0;
3063
+ function el(y) {
3064
+ return (y + 1) % Ve === 0;
3044
3065
  }
3045
- return ul(() => {
3066
+ return ml(() => {
3046
3067
  be.value = !1;
3047
- }), (V, F) => {
3048
- const T = $("FmButton"), R = $("FmSelect"), W = $("FmCheckbox");
3049
- return v(), E("div", ht, [
3050
- h("div", wt, [
3051
- u(T, {
3068
+ }), (y, V) => {
3069
+ const _ = $("FmButton"), R = $("FmSelect"), q = $("FmCheckbox");
3070
+ return f(), H("div", Ft, [
3071
+ C("div", kt, [
3072
+ u(_, {
3052
3073
  variant: "tertiary",
3053
3074
  size: "md",
3054
3075
  class: "min-w-0 flex-1 !justify-start",
3055
3076
  label: l(t)("report.section.datasource.chartColor.title"),
3056
- "prepend-icon": Y.value ? "expand_less" : "expand_more",
3057
- "aria-expanded": Y.value ? "true" : "false",
3058
- onClick: Dl
3077
+ "prepend-icon": se.value ? "expand_less" : "expand_more",
3078
+ "aria-expanded": se.value ? "true" : "false",
3079
+ onClick: Ml
3059
3080
  }, null, 8, ["label", "prepend-icon", "aria-expanded"]),
3060
- Y.value ? (v(), E("div", Ct, [
3061
- u(T, {
3081
+ se.value ? (f(), H("div", St, [
3082
+ u(_, {
3062
3083
  variant: "tertiary",
3063
3084
  "text-color": "text-fm-color-system-info-300",
3064
3085
  size: "md",
3065
3086
  label: l(t)("report.section.datasource.chartColor.reset"),
3066
- onClick: Ul
3087
+ onClick: Al
3067
3088
  }, null, 8, ["label"])
3068
3089
  ])) : O("", !0)
3069
3090
  ]),
3070
- we(h("div", xt, [
3091
+ Ce(C("div", _t, [
3071
3092
  u(R, {
3072
- "model-value": ae.value,
3093
+ "model-value": I.value,
3073
3094
  items: w.value,
3074
- "onUpdate:modelValue": hl
3095
+ "onUpdate:modelValue": xl
3075
3096
  }, null, 8, ["model-value", "items"]),
3076
- ae.value === l(te).breakdown ? (v(), j(W, {
3097
+ I.value === l(ae).breakdown ? (f(), N(q, {
3077
3098
  key: 0,
3078
- "model-value": H.value,
3099
+ "model-value": ee.value,
3079
3100
  value: !1,
3080
3101
  label: l(t)("report.section.datasource.chartColor.secondaryMetricAutoShade"),
3081
- "onUpdate:modelValue": F[0] || (F[0] = (q) => $l(!!q)),
3102
+ "onUpdate:modelValue": V[0] || (V[0] = (P) => Ll(!!P)),
3082
3103
  class: "p-4"
3083
3104
  }, null, 8, ["model-value", "label"])) : O("", !0),
3084
- ae.value !== l(te).breakdown ? (v(), E("div", Vt, [
3085
- (v(!0), E(de, null, xe(ie.value, (q, X) => (v(), E(de, {
3086
- key: `series-color-${X}`
3105
+ I.value !== l(ae).breakdown ? (f(), H("div", Tt, [
3106
+ (f(!0), H(ue, null, xe(X.value, (P, W) => (f(), H(ue, {
3107
+ key: `series-color-${W}`
3087
3108
  }, [
3088
- h("div", {
3109
+ C("div", {
3089
3110
  class: ke([
3090
3111
  "fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 p-10",
3091
- ee.value ? "flex flex-col gap-8" : "flex items-center justify-between gap-12"
3112
+ M.value ? "flex flex-col gap-8" : "flex items-center justify-between gap-12"
3092
3113
  ])
3093
3114
  }, [
3094
- h("span", {
3095
- class: ke(["fm-typo-en-body-lg-600 min-w-0", ee.value ? "line-clamp-2 break-words" : "flex-1"]),
3096
- title: I.value[X] || `${l(t)("report.section.datasource.chartColor.color")} ${X + 1}`
3097
- }, K(I.value[X] || `${l(t)("report.section.datasource.chartColor.color")} ${X + 1}`), 11, Ft),
3098
- h("div", {
3099
- class: ke(["flex items-center gap-8", ee.value ? "justify-between" : "shrink-0"])
3115
+ C("span", {
3116
+ class: ke(["fm-typo-en-body-lg-600 min-w-0", M.value ? "line-clamp-2 break-words" : "flex-1"]),
3117
+ title: J.value[W] || `${l(t)("report.section.datasource.chartColor.color")} ${W + 1}`
3118
+ }, Q(J.value[W] || `${l(t)("report.section.datasource.chartColor.color")} ${W + 1}`), 11, $t),
3119
+ C("div", {
3120
+ class: ke(["flex items-center gap-8", M.value ? "justify-between" : "shrink-0"])
3100
3121
  }, [
3101
- ee.value ? (v(), j(R, {
3122
+ M.value ? (f(), N(R, {
3102
3123
  key: 0,
3103
3124
  class: "min-w-[92px]",
3104
- "model-value": P.value[X],
3105
- items: Q.value,
3106
- "onUpdate:modelValue": (ne) => xl(X, ne)
3125
+ "model-value": j.value[W],
3126
+ items: te.value,
3127
+ "onUpdate:modelValue": (le) => kl(W, le)
3107
3128
  }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : O("", !0),
3108
- h("label", {
3129
+ C("label", {
3109
3130
  class: "relative inline-flex min-h-[34px] cursor-pointer items-center gap-[8px] rounded-[8px] border border-[#d8d8d8] bg-white py-[4px] pl-[4px] pr-[8px]",
3110
- "aria-label": `Color ${X + 1}`
3131
+ "aria-label": `Color ${W + 1}`
3111
3132
  }, [
3112
- h("span", {
3133
+ C("span", {
3113
3134
  class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
3114
- style: Xe({ backgroundColor: q })
3135
+ style: He({ backgroundColor: P })
3115
3136
  }, null, 4),
3116
- h("span", St, K(q), 1),
3117
- h("input", {
3137
+ C("span", Dt, Q(P), 1),
3138
+ C("input", {
3118
3139
  type: "color",
3119
- value: q,
3140
+ value: P,
3120
3141
  class: "absolute inset-0 cursor-pointer opacity-0",
3121
- onInput: (ne) => Vl(X, ne),
3122
- onChange: (ne) => Fl(X, ne)
3123
- }, null, 40, _t)
3124
- ], 8, kt)
3142
+ onInput: (le) => Sl(W, le),
3143
+ onChange: (le) => _l(W, le)
3144
+ }, null, 40, Bt)
3145
+ ], 8, Ut),
3146
+ u(_, {
3147
+ variant: "tertiary",
3148
+ size: "md",
3149
+ icon: "casino",
3150
+ onClick: (le) => wl(W)
3151
+ }, null, 8, ["onClick"])
3125
3152
  ], 2)
3126
3153
  ], 2),
3127
- Qe(X) ? (v(), E("div", Tt, [
3128
- u(T, {
3154
+ el(W) ? (f(), H("div", Lt, [
3155
+ u(_, {
3129
3156
  class: "w-full",
3130
3157
  size: "md",
3131
- icon: Je(X, y.value),
3132
- onClick: (ne) => wl(X)
3158
+ icon: Qe(W, b.value),
3159
+ onClick: (le) => Vl(W)
3133
3160
  }, null, 8, ["icon", "onClick"])
3134
3161
  ])) : O("", !0)
3135
3162
  ], 64))), 128))
3136
- ])) : (v(), E("div", $t, [
3137
- (v(!0), E(de, null, xe(k.value, (q, X) => (v(), E(de, {
3138
- key: `breakdown-group-${X}`
3163
+ ])) : (f(), H("div", At, [
3164
+ (f(!0), H(ue, null, xe(F.value, (P, W) => (f(), H(ue, {
3165
+ key: `breakdown-group-${W}`
3139
3166
  }, [
3140
- h("div", Ut, [
3141
- h("div", Dt, [
3142
- h("span", {
3167
+ C("div", Mt, [
3168
+ C("div", Ot, [
3169
+ C("span", {
3143
3170
  class: "fm-typo-en-body-lg-600 min-w-0 overflow-hidden text-ellipsis whitespace-nowrap",
3144
- title: q
3145
- }, K(q), 9, Bt)
3171
+ title: P
3172
+ }, Q(P), 9, Nt)
3146
3173
  ]),
3147
- (v(!0), E(de, null, xe(f.value, (ne, Z) => (v(), E("div", {
3148
- key: `${q}-${ne}-${Z}`,
3174
+ (f(!0), H(ue, null, xe(v.value, (le, Z) => (f(), H("div", {
3175
+ key: `${P}-${le}-${Z}`,
3149
3176
  class: "flex items-center justify-between gap-8 py-4"
3150
3177
  }, [
3151
- h("span", {
3178
+ C("span", {
3152
3179
  class: "fm-typo-en-body-md-400 min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",
3153
- title: ne
3154
- }, K(ne), 9, Lt),
3155
- h("label", {
3180
+ title: le
3181
+ }, Q(le), 9, jt),
3182
+ C("label", {
3156
3183
  class: ke(["relative inline-flex min-h-[34px] w-full max-w-[126px] items-center gap-[8px] rounded-[8px] border border-[#d8d8d8] bg-white py-[4px] pl-[4px] pr-[8px]", {
3157
- "cursor-not-allowed opacity-[0.55]": H.value && Z > 0,
3158
- "cursor-pointer": !(H.value && Z > 0)
3184
+ "cursor-not-allowed opacity-[0.55]": ee.value && Z > 0,
3185
+ "cursor-pointer": !(ee.value && Z > 0)
3159
3186
  }]),
3160
- "aria-label": `Breakdown color ${X + 1}-${Z + 1}`
3187
+ "aria-label": `Breakdown color ${W + 1}-${Z + 1}`
3161
3188
  }, [
3162
- h("span", {
3189
+ C("span", {
3163
3190
  class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
3164
- style: Xe({
3165
- backgroundColor: N.value[d(X, Z, f.value.length)]
3191
+ style: He({
3192
+ backgroundColor: Y.value[d(W, Z, v.value.length)]
3166
3193
  })
3167
3194
  }, null, 4),
3168
- h("span", Mt, K(N.value[d(X, Z, f.value.length)]), 1),
3169
- h("input", {
3195
+ C("span", Rt, Q(Y.value[d(W, Z, v.value.length)]), 1),
3196
+ C("input", {
3170
3197
  type: "color",
3171
- value: N.value[d(X, Z, f.value.length)],
3198
+ value: Y.value[d(W, Z, v.value.length)],
3172
3199
  class: ke(["absolute inset-0 opacity-0", {
3173
- "cursor-not-allowed": H.value && Z > 0,
3174
- "cursor-pointer": !(H.value && Z > 0)
3200
+ "cursor-not-allowed": ee.value && Z > 0,
3201
+ "cursor-pointer": !(ee.value && Z > 0)
3175
3202
  }]),
3176
- disabled: H.value && Z > 0,
3177
- onInput: (ue) => kl(X, Z, ue),
3178
- onChange: (ue) => Sl(X, Z, ue)
3179
- }, null, 42, Nt)
3180
- ], 10, At)
3203
+ disabled: ee.value && Z > 0,
3204
+ onInput: (re) => Tl(W, Z, re),
3205
+ onChange: (re) => $l(W, Z, re)
3206
+ }, null, 42, It)
3207
+ ], 10, zt),
3208
+ u(_, {
3209
+ variant: "tertiary",
3210
+ size: "md",
3211
+ icon: "casino",
3212
+ disabled: ee.value && Z > 0,
3213
+ onClick: (re) => Ul(W, Z)
3214
+ }, null, 8, ["disabled", "onClick"])
3181
3215
  ]))), 128))
3182
3216
  ]),
3183
- Qe(X) ? (v(), E("div", Ot, [
3184
- u(T, {
3217
+ el(W) ? (f(), H("div", Pt, [
3218
+ u(_, {
3185
3219
  class: "w-full",
3186
3220
  size: "md",
3187
- icon: Je(X, L.value),
3188
- onClick: (ne) => Cl(X)
3221
+ icon: Qe(W, L.value),
3222
+ onClick: (le) => Fl(W)
3189
3223
  }, null, 8, ["icon", "onClick"])
3190
3224
  ])) : O("", !0)
3191
3225
  ], 64))), 128))
3192
3226
  ]))
3193
3227
  ], 512), [
3194
- [Ce, Y.value]
3228
+ [we, se.value]
3195
3229
  ])
3196
3230
  ]);
3197
3231
  };
3198
3232
  }
3199
- }), zt = { class: "flex flex-col gap-8" }, Rt = { class: "flex items-center justify-between" }, It = { class: "fm-typo-en-body-lg-600" }, Pt = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Et = { class: "grid grid-cols-2 gap-8" }, Xt = { class: "flex items-center gap-8" }, Wt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qt = /* @__PURE__ */ re({
3233
+ }), Xt = { class: "flex flex-col gap-8" }, Wt = { class: "flex items-center justify-between" }, qt = { class: "fm-typo-en-body-lg-600" }, Ht = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Yt = { class: "grid grid-cols-2 gap-8" }, Gt = { class: "flex items-center gap-8" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = /* @__PURE__ */ ie({
3200
3234
  __name: "ChartLineStyleSection",
3201
3235
  props: {
3202
3236
  model: {}
3203
3237
  },
3204
3238
  emits: ["update:model"],
3205
3239
  setup(D, { emit: m }) {
3206
- const e = D, s = m, { t } = ce(), w = _(() => [
3240
+ const e = D, s = m, { t } = me(), w = T(() => [
3207
3241
  {
3208
3242
  label: t("report.section.datasource.styleTarget.series"),
3209
- value: te.series
3243
+ value: ae.series
3210
3244
  },
3211
3245
  {
3212
3246
  label: t("report.section.datasource.styleTarget.metric"),
3213
- value: te.metric
3247
+ value: ae.metric
3214
3248
  }
3215
3249
  ]);
3216
- function C(i) {
3217
- return i && typeof i == "object" && "value" in i ? C(i.value) : i === te.metric ? te.metric : te.series;
3250
+ function x(i) {
3251
+ return i && typeof i == "object" && "value" in i ? x(i.value) : i === ae.metric ? ae.metric : ae.series;
3218
3252
  }
3219
3253
  function p(i, n) {
3220
- var I, Q;
3221
- return i ? ((I = i.label) == null ? void 0 : I.trim()) || ((Q = i.name) == null ? void 0 : Q.trim()) || `${t("report.section.datasource.styleTarget.metric")} ${n + 1}` : `${t("report.section.datasource.styleTarget.metric")} ${n + 1}`;
3254
+ var E, J;
3255
+ return i ? ((E = i.label) == null ? void 0 : E.trim()) || ((J = i.name) == null ? void 0 : J.trim()) || `${t("report.section.datasource.styleTarget.metric")} ${n + 1}` : `${t("report.section.datasource.styleTarget.metric")} ${n + 1}`;
3222
3256
  }
3223
3257
  function B() {
3224
3258
  const i = Array.isArray(e.model.metrics) ? e.model.metrics : [];
@@ -3230,16 +3264,16 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3230
3264
  return [...i, ...n];
3231
3265
  }
3232
3266
  function U(i) {
3233
- if (i === te.metric) {
3267
+ if (i === ae.metric) {
3234
3268
  const n = B();
3235
3269
  if (n.length > 0)
3236
- return n.map((A, I) => p(A, I));
3270
+ return n.map((A, E) => p(A, E));
3237
3271
  }
3238
- return se.map(
3272
+ return ce.map(
3239
3273
  (n, A) => `${t("report.section.datasource.lineStyle.series")} ${A + 1}`
3240
3274
  );
3241
3275
  }
3242
- const o = _(() => [
3276
+ const o = T(() => [
3243
3277
  {
3244
3278
  label: t("report.section.datasource.lineStyle.solid"),
3245
3279
  value: "solid"
@@ -3256,21 +3290,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3256
3290
  function r(i) {
3257
3291
  return i && typeof i == "object" && "value" in i ? r(i.value) : i === "dashed" || i === "DASHED" ? "dashed" : i === "dotted" || i === "DOTTED" ? "dotted" : "solid";
3258
3292
  }
3259
- function f(i) {
3293
+ function v(i) {
3260
3294
  return i === "dashed" ? "line-style-icon--dashed" : i === "dotted" ? "line-style-icon--dotted" : "line-style-icon--solid";
3261
3295
  }
3262
- function y(i, n) {
3296
+ function b(i, n) {
3263
3297
  return !Array.isArray(i) || i.length === 0 ? Array.from({ length: n }).map(
3264
- (A, I) => nl[I] ?? "solid"
3298
+ (A, E) => sl[E] ?? "solid"
3265
3299
  ) : Array.from({ length: n }).map(
3266
- (A, I) => r(i[I])
3300
+ (A, E) => r(i[E])
3267
3301
  );
3268
3302
  }
3269
- const L = _(
3270
- () => C(e.model.lineStyleBinding)
3271
- ), b = _(() => U(S.value)), k = _(
3272
- () => y(e.model.lineStyles, U(L.value).length)
3273
- ), z = oe([]), S = oe(te.series);
3303
+ const L = T(
3304
+ () => x(e.model.lineStyleBinding)
3305
+ ), h = T(() => U(k.value)), F = T(
3306
+ () => b(e.model.lineStyles, U(L.value).length)
3307
+ ), z = oe([]), k = oe(ae.series);
3274
3308
  he(
3275
3309
  [
3276
3310
  () => e.model.lineStyles,
@@ -3280,42 +3314,42 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3280
3314
  () => e.model.joinDatasources
3281
3315
  ],
3282
3316
  ([i, n]) => {
3283
- S.value = C(n), z.value = y(
3317
+ k.value = x(n), z.value = b(
3284
3318
  i,
3285
- U(S.value).length
3319
+ U(k.value).length
3286
3320
  );
3287
3321
  },
3288
3322
  { immediate: !0, deep: !0 }
3289
3323
  );
3290
- const d = _(() => S.value !== L.value || z.value.length !== k.value.length ? !0 : z.value.some((i, n) => i !== k.value[n]));
3324
+ const d = T(() => k.value !== L.value || z.value.length !== F.value.length ? !0 : z.value.some((i, n) => i !== F.value[n]));
3291
3325
  function a(i, n) {
3292
3326
  const A = [...z.value];
3293
3327
  A[i] = r(n), z.value = A;
3294
3328
  }
3295
3329
  function g(i) {
3296
- const n = C(i);
3297
- if (n === S.value)
3330
+ const n = x(i);
3331
+ if (n === k.value)
3298
3332
  return;
3299
3333
  const A = U(n).length;
3300
- S.value = n, z.value = y(z.value, A);
3334
+ k.value = n, z.value = b(z.value, A);
3301
3335
  }
3302
3336
  function c() {
3303
- S.value = te.series, z.value = [...nl];
3337
+ k.value = ae.series, z.value = [...sl];
3304
3338
  }
3305
- function x() {
3306
- const i = S.value === te.series, n = z.value.every((A) => A === "solid");
3339
+ function S() {
3340
+ const i = k.value === ae.series, n = z.value.every((A) => A === "solid");
3307
3341
  s("update:model", {
3308
3342
  ...e.model,
3309
- lineStyleBinding: i ? void 0 : S.value,
3343
+ lineStyleBinding: i ? void 0 : k.value,
3310
3344
  lineStyles: n ? void 0 : [...z.value]
3311
3345
  });
3312
3346
  }
3313
3347
  return (i, n) => {
3314
- const A = $("FmButton"), I = $("FmSelect");
3315
- return v(), E("div", zt, [
3316
- h("div", Rt, [
3317
- h("p", It, K(l(t)("report.section.datasource.lineStyle.title")), 1),
3318
- h("div", Pt, [
3348
+ const A = $("FmButton"), E = $("FmSelect");
3349
+ return f(), H("div", Xt, [
3350
+ C("div", Wt, [
3351
+ C("p", qt, Q(l(t)("report.section.datasource.lineStyle.title")), 1),
3352
+ C("div", Ht, [
3319
3353
  u(A, {
3320
3354
  variant: "tertiary",
3321
3355
  "text-color": "text-fm-color-system-info-300",
@@ -3325,29 +3359,29 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3325
3359
  }, null, 8, ["label"])
3326
3360
  ])
3327
3361
  ]),
3328
- u(I, {
3329
- "model-value": S.value,
3362
+ u(E, {
3363
+ "model-value": k.value,
3330
3364
  items: w.value,
3331
3365
  label: l(t)("report.section.datasource.styleTarget.title"),
3332
3366
  "onUpdate:modelValue": g
3333
3367
  }, null, 8, ["model-value", "items", "label"]),
3334
- h("div", Et, [
3335
- (v(!0), E(de, null, xe(z.value, (Q, ee) => (v(), E("div", {
3336
- key: ee,
3368
+ C("div", Yt, [
3369
+ (f(!0), H(ue, null, xe(z.value, (J, te) => (f(), H("div", {
3370
+ key: te,
3337
3371
  class: "flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
3338
3372
  }, [
3339
- h("div", Xt, [
3340
- h("span", {
3341
- class: ke(["line-style-icon", f(Q)]),
3373
+ C("div", Gt, [
3374
+ C("span", {
3375
+ class: ke(["line-style-icon", v(J)]),
3342
3376
  "aria-hidden": "true"
3343
3377
  }, null, 2),
3344
- h("span", Wt, K(b.value[ee] || `${l(t)("report.section.datasource.lineStyle.line")} ${ee + 1}`), 1)
3378
+ C("span", Jt, Q(h.value[te] || `${l(t)("report.section.datasource.lineStyle.line")} ${te + 1}`), 1)
3345
3379
  ]),
3346
- u(I, {
3347
- "model-value": Q,
3380
+ u(E, {
3381
+ "model-value": J,
3348
3382
  items: o.value,
3349
3383
  class: "w-[130px]",
3350
- "onUpdate:modelValue": (M) => a(ee, M)
3384
+ "onUpdate:modelValue": (M) => a(te, M)
3351
3385
  }, null, 8, ["model-value", "items", "onUpdate:modelValue"])
3352
3386
  ]))), 128))
3353
3387
  ]),
@@ -3355,17 +3389,17 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3355
3389
  size: "md",
3356
3390
  label: l(t)("report.common.apply"),
3357
3391
  disabled: !d.value,
3358
- onClick: x
3392
+ onClick: S
3359
3393
  }, null, 8, ["label", "disabled"])
3360
3394
  ]);
3361
3395
  };
3362
3396
  }
3363
- }), Ht = /* @__PURE__ */ fl(qt, [["__scopeId", "data-v-f1c35513"]]), Yt = { class: "flex flex-col gap-16" }, Gt = {
3397
+ }), Qt = /* @__PURE__ */ yl(Kt, [["__scopeId", "data-v-f1c35513"]]), Zt = { class: "flex flex-col gap-16" }, ea = {
3364
3398
  key: 2,
3365
3399
  class: "h-px w-full bg-fm-color-neutral-gray-100"
3366
- }, Jt = { class: "flex flex-col gap-8" }, Kt = { class: "fm-typo-en-body-lg-600" }, Qt = { class: "flex flex-col gap-8" }, Zt = /* @__PURE__ */ re({
3400
+ }, la = { class: "flex flex-col gap-8" }, oa = { class: "fm-typo-en-body-lg-600" }, ta = { class: "flex flex-col gap-8" }, aa = /* @__PURE__ */ ie({
3367
3401
  __name: "StyleDatasource",
3368
- props: /* @__PURE__ */ ve({
3402
+ props: /* @__PURE__ */ pe({
3369
3403
  label: {
3370
3404
  type: String,
3371
3405
  default: "Label"
@@ -3392,20 +3426,20 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3392
3426
  modelValue: { required: !0 },
3393
3427
  modelModifiers: {}
3394
3428
  }),
3395
- emits: /* @__PURE__ */ ve(["click-close"], ["update:modelValue"]),
3429
+ emits: /* @__PURE__ */ pe(["click-close"], ["update:modelValue"]),
3396
3430
  setup(D, { emit: m }) {
3397
- const e = ge(D, "modelValue");
3431
+ const e = fe(D, "modelValue");
3398
3432
  he(
3399
3433
  [() => e.value.dimensions, () => e.value.metrics],
3400
3434
  () => {
3401
- const { rowIds: r, columnIds: f } = ze(e.value);
3402
- e.value.rowIds = r, e.value.columnIds = f;
3435
+ const { rowIds: r, columnIds: v } = Re(e.value);
3436
+ e.value.rowIds = r, e.value.columnIds = v;
3403
3437
  },
3404
3438
  { deep: !0 }
3405
3439
  );
3406
- const s = D, t = m, { t: w } = ce(), C = _(() => s.config.type === J.Circular), p = _(() => s.config.type === J.StackBarChart || s.config.type === J.ClusteredStackBarChart), B = _(
3407
- () => s.config.type === J.LineChart || s.config.type === J.StackLineChart
3408
- ), U = _({
3440
+ const s = D, t = m, { t: w } = me(), x = T(() => s.config.type === K.Circular), p = T(() => s.config.type === K.StackBarChart || s.config.type === K.ClusteredStackBarChart), B = T(
3441
+ () => s.config.type === K.LineChart || s.config.type === K.StackLineChart
3442
+ ), U = T({
3409
3443
  get: () => e.value.maxTooltipItems ?? null,
3410
3444
  set: (r) => {
3411
3445
  e.value = {
@@ -3413,7 +3447,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3413
3447
  maxTooltipItems: r ?? void 0
3414
3448
  };
3415
3449
  }
3416
- }), o = _({
3450
+ }), o = T({
3417
3451
  get: () => e.value.stackBarOverlap ?? !1,
3418
3452
  set: (r) => {
3419
3453
  e.value = {
@@ -3422,67 +3456,67 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3422
3456
  };
3423
3457
  }
3424
3458
  });
3425
- return (r, f) => {
3426
- const y = $("FmButton"), L = $("FmCheckbox"), b = $("FmStepperField");
3427
- return v(), E(de, null, [
3428
- f[10] || (f[10] = h("div", { class: "grow" }, null, -1)),
3429
- s.closeable ? (v(), j(y, {
3459
+ return (r, v) => {
3460
+ const b = $("FmButton"), L = $("FmCheckbox"), h = $("FmStepperField");
3461
+ return f(), H(ue, null, [
3462
+ v[10] || (v[10] = C("div", { class: "grow" }, null, -1)),
3463
+ s.closeable ? (f(), N(b, {
3430
3464
  key: 0,
3431
3465
  icon: "close",
3432
3466
  variant: "tertiary",
3433
3467
  size: "md",
3434
- onClick: f[0] || (f[0] = ye((k) => t("click-close"), ["stop"]))
3468
+ onClick: v[0] || (v[0] = ye((F) => t("click-close"), ["stop"]))
3435
3469
  })) : O("", !0),
3436
- h("div", Yt, [
3437
- s.config.hasChart ? (v(), j(bt, {
3470
+ C("div", Zt, [
3471
+ s.config.hasChart ? (f(), N(Vt, {
3438
3472
  key: 0,
3439
3473
  model: e.value,
3440
- "onUpdate:model": f[1] || (f[1] = (k) => e.value = k)
3474
+ "onUpdate:model": v[1] || (v[1] = (F) => e.value = F)
3441
3475
  }, null, 8, ["model"])) : O("", !0),
3442
- s.config.hasChart ? (v(), j(jt, {
3476
+ s.config.hasChart ? (f(), N(Et, {
3443
3477
  key: 1,
3444
3478
  model: e.value,
3445
3479
  "show-layer-control": p.value && o.value,
3446
- "limit-to-series-mode": C.value,
3447
- "onUpdate:model": f[2] || (f[2] = (k) => e.value = k)
3480
+ "limit-to-series-mode": x.value,
3481
+ "onUpdate:model": v[2] || (v[2] = (F) => e.value = F)
3448
3482
  }, null, 8, ["model", "show-layer-control", "limit-to-series-mode"])) : O("", !0),
3449
- s.config.hasChart && B.value ? (v(), E("div", Gt)) : O("", !0),
3450
- s.config.hasChart && B.value ? (v(), j(Ht, {
3483
+ s.config.hasChart && B.value ? (f(), H("div", ea)) : O("", !0),
3484
+ s.config.hasChart && B.value ? (f(), N(Qt, {
3451
3485
  key: 3,
3452
3486
  model: e.value,
3453
- "onUpdate:model": f[3] || (f[3] = (k) => e.value = k)
3487
+ "onUpdate:model": v[3] || (v[3] = (F) => e.value = F)
3454
3488
  }, null, 8, ["model"])) : O("", !0),
3455
- f[9] || (f[9] = h("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
3456
- h("div", Jt, [
3457
- h("p", Kt, K(l(w)("report.section.style.configuration")), 1),
3458
- h("div", Qt, [
3459
- p.value ? (v(), j(L, {
3489
+ v[9] || (v[9] = C("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
3490
+ C("div", la, [
3491
+ C("p", oa, Q(l(w)("report.section.style.configuration")), 1),
3492
+ C("div", ta, [
3493
+ p.value ? (f(), N(L, {
3460
3494
  key: 0,
3461
3495
  modelValue: o.value,
3462
- "onUpdate:modelValue": f[4] || (f[4] = (k) => o.value = k),
3496
+ "onUpdate:modelValue": v[4] || (v[4] = (F) => o.value = F),
3463
3497
  class: "fm-typo-en-body-lg-400",
3464
3498
  label: l(w)("report.section.datasource.stackBar.overlapBars")
3465
3499
  }, null, 8, ["modelValue", "label"])) : O("", !0),
3466
- s.config.hasLabel ? (v(), j(ot, {
3500
+ s.config.hasLabel ? (f(), N(st, {
3467
3501
  key: 1,
3468
3502
  model: e.value,
3469
- "onUpdate:model": f[5] || (f[5] = (k) => e.value = k)
3503
+ "onUpdate:model": v[5] || (v[5] = (F) => e.value = F)
3470
3504
  }, null, 8, ["model"])) : O("", !0),
3471
- s.config.hasLegend ? (v(), j(gt, {
3505
+ s.config.hasLegend ? (f(), N(wt, {
3472
3506
  key: 2,
3473
3507
  model: e.value,
3474
- "is-circular-widget": C.value,
3475
- "onUpdate:model": f[6] || (f[6] = (k) => e.value = k)
3508
+ "is-circular-widget": x.value,
3509
+ "onUpdate:model": v[6] || (v[6] = (F) => e.value = F)
3476
3510
  }, null, 8, ["model", "is-circular-widget"])) : O("", !0),
3477
- s.config.hasXy ? (v(), j(dt, {
3511
+ s.config.hasXy ? (f(), N(ft, {
3478
3512
  key: 3,
3479
3513
  model: e.value,
3480
- "onUpdate:model": f[7] || (f[7] = (k) => e.value = k)
3514
+ "onUpdate:model": v[7] || (v[7] = (F) => e.value = F)
3481
3515
  }, null, 8, ["model"])) : O("", !0),
3482
- s.config.hasXy ? (v(), j(b, {
3516
+ s.config.hasXy ? (f(), N(h, {
3483
3517
  key: 4,
3484
3518
  modelValue: U.value,
3485
- "onUpdate:modelValue": f[8] || (f[8] = (k) => U.value = k),
3519
+ "onUpdate:modelValue": v[8] || (v[8] = (F) => U.value = F),
3486
3520
  type: "number",
3487
3521
  label: l(w)("report.section.datasource.tooltip.maxTooltipItems"),
3488
3522
  min: 2,
@@ -3495,7 +3529,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3495
3529
  ], 64);
3496
3530
  };
3497
3531
  }
3498
- }), ea = { class: "fixed bottom-6 right-6" }, la = { class: "flex w-full items-center gap-8" }, oa = { class: "fm-typo-en-title-sm-600" }, ta = { class: "ml-auto text-fm-color-system-info-300" }, aa = /* @__PURE__ */ re({
3532
+ }), na = { class: "fixed bottom-6 right-6" }, ia = { class: "flex w-full items-center gap-8" }, sa = { class: "fm-typo-en-title-sm-600" }, ra = { class: "ml-auto text-fm-color-system-info-300" }, ua = /* @__PURE__ */ ie({
3499
3533
  __name: "StyleEditorTab",
3500
3534
  props: {
3501
3535
  modelValue: {
@@ -3507,9 +3541,9 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3507
3541
  },
3508
3542
  emits: ["update:modelValue", "update:isStyleEditing"],
3509
3543
  setup(D) {
3510
- const { t: m } = ce(), e = ge(D, "modelValue"), s = _(
3511
- () => Ie.find((p) => p.type === e.value.widget.type)
3512
- ), t = ge(D, "isStyleEditing"), w = _(() => {
3544
+ const { t: m } = me(), e = fe(D, "modelValue"), s = T(
3545
+ () => Pe.find((p) => p.type === e.value.widget.type)
3546
+ ), t = fe(D, "isStyleEditing"), w = T(() => {
3513
3547
  var p;
3514
3548
  return {
3515
3549
  chartHeight: void 0,
@@ -3528,7 +3562,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3528
3562
  labelOffset: 0,
3529
3563
  labelFontSize: 12,
3530
3564
  showX: !0,
3531
- xPosition: Jl.bottom,
3565
+ xPosition: lo.bottom,
3532
3566
  showXGrid: !1,
3533
3567
  showXTick: !0,
3534
3568
  xTickFontSize: 12,
@@ -3536,15 +3570,15 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3536
3570
  xTitle: "",
3537
3571
  xTitleFontSize: 12,
3538
3572
  showY: !0,
3539
- yPosition: Gl.left,
3573
+ yPosition: eo.left,
3540
3574
  showYGrid: !1,
3541
3575
  showYTick: !0,
3542
3576
  yTickFontSize: 12,
3543
3577
  showYTitle: !1,
3544
3578
  yTitle: "",
3545
3579
  yTitleFontSize: 12,
3546
- showLegend: ((p = s.value) == null ? void 0 : p.type) === J.Circular,
3547
- legendPosition: Yl.top,
3580
+ showLegend: ((p = s.value) == null ? void 0 : p.type) === K.Circular,
3581
+ legendPosition: Zl.top,
3548
3582
  usePointStyle: !0,
3549
3583
  legendFontSize: void 0,
3550
3584
  legendColor: "#6b6b6b",
@@ -3553,7 +3587,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3553
3587
  stackBarOverlap: !1
3554
3588
  };
3555
3589
  });
3556
- function C() {
3590
+ function x() {
3557
3591
  e.value && (e.value.widget.config = {
3558
3592
  ...e.value.widget.config,
3559
3593
  ...w.value
@@ -3561,16 +3595,16 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3561
3595
  }
3562
3596
  return (p, B) => {
3563
3597
  const U = $("FmCircularProgress"), o = $("FmButton"), r = $("FmSideSheet");
3564
- return v(), j(r, {
3598
+ return f(), N(r, {
3565
3599
  modelValue: t.value,
3566
- "onUpdate:modelValue": B[2] || (B[2] = (f) => t.value = f),
3600
+ "onUpdate:modelValue": B[2] || (B[2] = (v) => t.value = v),
3567
3601
  "close-button": !1,
3568
3602
  "no-overlay": "",
3569
3603
  "dismiss-away": !0,
3570
3604
  "max-width": 500
3571
3605
  }, {
3572
3606
  "side-sheet-button": G(() => [
3573
- h("div", ea, [
3607
+ C("div", na, [
3574
3608
  u(o, {
3575
3609
  label: l(m)("report.section.style.button"),
3576
3610
  icon: "edit",
@@ -3580,30 +3614,30 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3580
3614
  ])
3581
3615
  ]),
3582
3616
  "side-sheet-header": G(() => [
3583
- h("div", la, [
3617
+ C("div", ia, [
3584
3618
  u(o, {
3585
3619
  "prepend-icon": "arrow_back",
3586
3620
  variant: "tertiary",
3587
3621
  class: "fm-icon--rounded fm-icon--md text-fm-color-black",
3588
- onClick: B[0] || (B[0] = (f) => t.value = !1)
3622
+ onClick: B[0] || (B[0] = (v) => t.value = !1)
3589
3623
  }),
3590
- h("p", oa, K(l(m)("report.section.style.title")), 1),
3591
- h("div", ta, [
3624
+ C("p", sa, Q(l(m)("report.section.style.title")), 1),
3625
+ C("div", ra, [
3592
3626
  u(o, {
3593
3627
  label: l(m)("report.section.style.reset"),
3594
3628
  variant: "tertiary",
3595
3629
  size: "md",
3596
- onClick: C,
3630
+ onClick: x,
3597
3631
  "text-color": "text-fm-color-system-info-300"
3598
3632
  }, null, 8, ["label"])
3599
3633
  ])
3600
3634
  ])
3601
3635
  ]),
3602
3636
  default: G(() => [
3603
- e.value ? O("", !0) : (v(), j(U, { key: 0 })),
3604
- u(Zt, {
3637
+ e.value ? O("", !0) : (f(), N(U, { key: 0 })),
3638
+ u(aa, {
3605
3639
  modelValue: e.value.widget.config,
3606
- "onUpdate:modelValue": B[1] || (B[1] = (f) => e.value.widget.config = f),
3640
+ "onUpdate:modelValue": B[1] || (B[1] = (v) => e.value.widget.config = v),
3607
3641
  config: s.value
3608
3642
  }, null, 8, ["modelValue", "config"])
3609
3643
  ]),
@@ -3611,12 +3645,12 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3611
3645
  }, 8, ["modelValue"]);
3612
3646
  };
3613
3647
  }
3614
- }), na = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, ia = { class: "flex bg-fm-color-neutral-white w-[88px]" }, sa = { class: "w-full overflow-y-auto" }, ra = {
3648
+ }), da = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, ma = { class: "flex bg-fm-color-neutral-white w-[88px]" }, ca = { class: "w-full overflow-y-auto" }, pa = {
3615
3649
  class: "grid grid-cols-12 w-full p-24",
3616
3650
  style: { backgroundColor: "#F6F8FC" }
3617
- }, ua = /* @__PURE__ */ re({
3651
+ }, va = /* @__PURE__ */ ie({
3618
3652
  __name: "TileEditorDesktop",
3619
- props: /* @__PURE__ */ ve({
3653
+ props: /* @__PURE__ */ pe({
3620
3654
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
3621
3655
  index: { type: Number, required: !0, default: 0 }
3622
3656
  }, {
@@ -3625,88 +3659,88 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3625
3659
  },
3626
3660
  modelModifiers: {}
3627
3661
  }),
3628
- emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
3662
+ emits: /* @__PURE__ */ pe(["hideConfiguration"], ["update:modelValue"]),
3629
3663
  setup(D, { emit: m }) {
3630
- const e = ge(D, "modelValue"), s = D, t = _(
3631
- () => Ie.find((U) => {
3664
+ const e = fe(D, "modelValue"), s = D, t = T(
3665
+ () => Pe.find((U) => {
3632
3666
  var o;
3633
3667
  return U.type === ((o = e.value) == null ? void 0 : o.widget.type);
3634
3668
  })
3635
- ), w = m, C = [
3636
- J.BarChart,
3637
- J.StackBarChart,
3638
- J.ClusteredStackBarChart,
3639
- J.LineChart,
3640
- J.StackLineChart,
3641
- J.Circular
3642
- ], p = _(() => C.includes(e.value.widget.type)), B = oe(!1);
3669
+ ), w = m, x = [
3670
+ K.BarChart,
3671
+ K.StackBarChart,
3672
+ K.ClusteredStackBarChart,
3673
+ K.LineChart,
3674
+ K.StackLineChart,
3675
+ K.Circular
3676
+ ], p = T(() => x.includes(e.value.widget.type)), B = oe(!1);
3643
3677
  return (U, o) => {
3644
- const r = $("FmCircularProgress"), f = $("FmButton");
3645
- return v(), E("div", null, [
3646
- e.value ? (v(), E(de, { key: 1 }, [
3647
- u(Il, {
3678
+ const r = $("FmCircularProgress"), v = $("FmButton");
3679
+ return f(), H("div", null, [
3680
+ e.value ? (f(), H(ue, { key: 1 }, [
3681
+ u(ql, {
3648
3682
  "model-value": !D.hideConfiguration
3649
3683
  }, {
3650
3684
  right: G(() => [
3651
- h("div", na, [
3652
- u(bl, {
3685
+ C("div", da, [
3686
+ u(Cl, {
3653
3687
  modelValue: e.value,
3654
- "onUpdate:modelValue": o[0] || (o[0] = (y) => e.value = y),
3688
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => e.value = b),
3655
3689
  config: t.value,
3656
3690
  "hide-configuration": D.hideConfiguration,
3657
- onHideConfiguration: o[1] || (o[1] = (y) => {
3658
- w("hideConfiguration", y);
3691
+ onHideConfiguration: o[1] || (o[1] = (b) => {
3692
+ w("hideConfiguration", b);
3659
3693
  })
3660
3694
  }, null, 8, ["modelValue", "config", "hide-configuration"])
3661
3695
  ])
3662
3696
  ]),
3663
3697
  left: G(() => [
3664
- h("div", ia, [
3665
- u(f, {
3698
+ C("div", ma, [
3699
+ u(v, {
3666
3700
  variant: "secondary",
3667
3701
  icon: "keyboard_double_arrow_right",
3668
- "border-color": l(tl).ColorPrimary,
3669
- "text-color": l(tl).ColorPrimary,
3702
+ "border-color": l(nl).ColorPrimary,
3703
+ "text-color": l(nl).ColorPrimary,
3670
3704
  class: "m-24 my-16",
3671
3705
  size: "md",
3672
- onClick: o[2] || (o[2] = (y) => w("hideConfiguration", !s.hideConfiguration))
3706
+ onClick: o[2] || (o[2] = (b) => w("hideConfiguration", !s.hideConfiguration))
3673
3707
  }, null, 8, ["border-color", "text-color"])
3674
3708
  ])
3675
3709
  ]),
3676
3710
  _: 1
3677
3711
  }, 8, ["model-value"]),
3678
- h("div", sa, [
3679
- h("div", ra, [
3680
- e.value ? (v(), j(yl, {
3712
+ C("div", ca, [
3713
+ C("div", pa, [
3714
+ e.value ? (f(), N(hl, {
3681
3715
  key: 0,
3682
3716
  "model-value": e.value,
3683
3717
  index: s.index,
3684
3718
  "hide-export": !0,
3685
3719
  "is-style-editing": B.value
3686
- }, null, 8, ["model-value", "index", "is-style-editing"])) : (v(), j(gl, { key: 1 }))
3720
+ }, null, 8, ["model-value", "index", "is-style-editing"])) : (f(), N(bl, { key: 1 }))
3687
3721
  ])
3688
3722
  ]),
3689
- p.value ? (v(), j(aa, {
3723
+ p.value ? (f(), N(ua, {
3690
3724
  key: 0,
3691
3725
  modelValue: e.value,
3692
- "onUpdate:modelValue": o[3] || (o[3] = (y) => e.value = y),
3726
+ "onUpdate:modelValue": o[3] || (o[3] = (b) => e.value = b),
3693
3727
  "is-style-editing": B.value,
3694
- "onUpdate:isStyleEditing": o[4] || (o[4] = (y) => B.value = y),
3728
+ "onUpdate:isStyleEditing": o[4] || (o[4] = (b) => B.value = b),
3695
3729
  "hide-configuration": D.hideConfiguration,
3696
- onHideConfiguration: o[5] || (o[5] = (y) => {
3697
- w("hideConfiguration", y);
3730
+ onHideConfiguration: o[5] || (o[5] = (b) => {
3731
+ w("hideConfiguration", b);
3698
3732
  })
3699
3733
  }, null, 8, ["modelValue", "is-style-editing", "hide-configuration"])) : O("", !0)
3700
- ], 64)) : (v(), j(r, { key: 0 }))
3734
+ ], 64)) : (f(), N(r, { key: 0 }))
3701
3735
  ]);
3702
3736
  };
3703
3737
  }
3704
- }), da = {
3738
+ }), fa = {
3705
3739
  key: 0,
3706
3740
  class: "flex w-full justify-center items-center"
3707
- }, ma = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, ca = /* @__PURE__ */ re({
3741
+ }, ga = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, ya = /* @__PURE__ */ ie({
3708
3742
  __name: "TileEditorMobile",
3709
- props: /* @__PURE__ */ ve({
3743
+ props: /* @__PURE__ */ pe({
3710
3744
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
3711
3745
  index: { type: Number, required: !0, default: 0 }
3712
3746
  }, {
@@ -3715,27 +3749,27 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3715
3749
  },
3716
3750
  modelModifiers: {}
3717
3751
  }),
3718
- emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
3752
+ emits: /* @__PURE__ */ pe(["hideConfiguration"], ["update:modelValue"]),
3719
3753
  setup(D, { emit: m }) {
3720
- const e = ge(D, "modelValue"), s = D, t = _(
3721
- () => Ie.find((C) => {
3754
+ const e = fe(D, "modelValue"), s = D, t = T(
3755
+ () => Pe.find((x) => {
3722
3756
  var p;
3723
- return C.type === ((p = e.value) == null ? void 0 : p.widget.type);
3757
+ return x.type === ((p = e.value) == null ? void 0 : p.widget.type);
3724
3758
  })
3725
3759
  ), w = m;
3726
- return (C, p) => {
3760
+ return (x, p) => {
3727
3761
  const B = $("FmCircularProgress");
3728
- return v(), E("div", null, [
3729
- e.value ? (v(), E(de, { key: 1 }, [
3730
- h("div", ma, [
3731
- e.value ? (v(), j(yl, {
3762
+ return f(), H("div", null, [
3763
+ e.value ? (f(), H(ue, { key: 1 }, [
3764
+ C("div", ga, [
3765
+ e.value ? (f(), N(hl, {
3732
3766
  key: 0,
3733
3767
  "model-value": e.value,
3734
3768
  index: s.index,
3735
3769
  "hide-export": !0
3736
- }, null, 8, ["model-value", "index"])) : (v(), j(gl, { key: 1 }))
3770
+ }, null, 8, ["model-value", "index"])) : (f(), N(bl, { key: 1 }))
3737
3771
  ]),
3738
- u(bl, {
3772
+ u(Cl, {
3739
3773
  modelValue: e.value,
3740
3774
  "onUpdate:modelValue": p[0] || (p[0] = (U) => e.value = U),
3741
3775
  config: t.value,
@@ -3744,38 +3778,38 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3744
3778
  w("hideConfiguration", U);
3745
3779
  })
3746
3780
  }, null, 8, ["modelValue", "config", "hide-configuration"])
3747
- ], 64)) : (v(), E("div", da, [
3781
+ ], 64)) : (f(), H("div", fa, [
3748
3782
  u(B)
3749
3783
  ]))
3750
3784
  ]);
3751
3785
  };
3752
3786
  }
3753
- }), pa = {
3787
+ }), ba = {
3754
3788
  key: 0,
3755
3789
  class: "fm-typo-en-title-md-600"
3756
- }, va = {
3790
+ }, ha = {
3757
3791
  key: 0,
3758
3792
  class: "flex items-start justify-start px-24 py-12 flex-wrap w-full"
3759
- }, Ta = /* @__PURE__ */ re({
3793
+ }, La = /* @__PURE__ */ ie({
3760
3794
  __name: "TileEditor",
3761
3795
  setup(D) {
3762
- const { rowHeight: m, colWidths: e } = Se(Oe()), s = Ml(), t = Nl(), w = cl(), { globalFilters: C } = Se(Wl()), { currentSelectWidgetType: p, editingReport: B, editingTile: U, editingTileIndex: o } = Se(w), { breakpoints: r } = vl(), { promptMessage: f } = pl(), { t: y, te: L } = ce(), b = _(() => {
3796
+ const { rowHeight: m, colWidths: e } = Se(je()), s = Rl(), t = Il(), w = vl(), { globalFilters: x } = Se(Jl()), { currentSelectWidgetType: p, editingReport: B, editingTile: U, editingTileIndex: o } = Se(w), { breakpoints: r } = gl(), { promptMessage: v } = fl(), { t: b, te: L } = me(), h = T(() => {
3763
3797
  var c;
3764
3798
  const a = (c = U.value) == null ? void 0 : c.widget.type;
3765
3799
  if (!a)
3766
- return y("report.editor.newReport");
3800
+ return b("report.editor.newReport");
3767
3801
  const g = `report.widget.types.${a.toLowerCase()}`;
3768
- return L(g) ? y(g) : a;
3769
- }), k = oe(!1);
3802
+ return L(g) ? b(g) : a;
3803
+ }), F = oe(!1);
3770
3804
  function z() {
3771
3805
  p.value = void 0, U.value = void 0, o.value = -1, t.back();
3772
3806
  }
3773
- async function S() {
3807
+ async function k() {
3774
3808
  var g;
3775
3809
  if (!B.value) return;
3776
- await f({
3777
- title: y("report.tile.save.title"),
3778
- message: y("report.tile.save.confirm", { title: (g = U.value) == null ? void 0 : g.widget.title })
3810
+ await v({
3811
+ title: b("report.tile.save.title"),
3812
+ message: b("report.tile.save.confirm", { title: (g = U.value) == null ? void 0 : g.widget.title })
3779
3813
  }) && U.value && (U.value.widget.config = {
3780
3814
  ...U.value.widget.config,
3781
3815
  rowHeight: m.value,
@@ -3785,46 +3819,46 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3785
3819
  async function d() {
3786
3820
  var g;
3787
3821
  if (!B.value) return;
3788
- await f({
3789
- title: y("report.tile.cancel.title"),
3790
- message: y("report.tile.cancel.confirm", { title: (g = U.value) == null ? void 0 : g.widget.title })
3822
+ await v({
3823
+ title: b("report.tile.cancel.title"),
3824
+ message: b("report.tile.cancel.confirm", { title: (g = U.value) == null ? void 0 : g.widget.title })
3791
3825
  }) && z();
3792
3826
  }
3793
- return Ye(() => {
3827
+ return Ke(() => {
3794
3828
  B.value || t.push({ name: "reports" });
3795
3829
  }), (a, g) => {
3796
3830
  const c = $("FmPageHead");
3797
- return v(), j(Pl, null, {
3831
+ return f(), N(Hl, null, {
3798
3832
  default: G(() => [
3799
3833
  u(c, {
3800
3834
  actions: [
3801
- { label: l(y)("report.common.cancel"), value: "cancel", isPrimary: !1 },
3802
- { label: l(y)("report.common.save"), value: "save", isPrimary: !0 }
3835
+ { label: l(b)("report.common.cancel"), value: "cancel", isPrimary: !1 },
3836
+ { label: l(b)("report.common.save"), value: "save", isPrimary: !0 }
3803
3837
  ],
3804
- "onClick:action": g[0] || (g[0] = (x) => {
3805
- x === "cancel" && d(), x === "save" && S();
3838
+ "onClick:action": g[0] || (g[0] = (S) => {
3839
+ S === "cancel" && d(), S === "save" && k();
3806
3840
  })
3807
3841
  }, {
3808
3842
  title: G(() => [
3809
- l(r).lg || l(r).md ? (v(), E("p", pa, K(b.value), 1)) : O("", !0)
3843
+ l(r).lg || l(r).md ? (f(), H("p", ba, Q(h.value), 1)) : O("", !0)
3810
3844
  ]),
3811
3845
  _: 1
3812
3846
  }, 8, ["actions"]),
3813
- l(U) && (l(C) || []).some((x) => {
3814
- const i = x.tileIds, n = l(U) && l(U).id;
3847
+ l(U) && (l(x) || []).some((S) => {
3848
+ const i = S.tileIds, n = l(U) && l(U).id;
3815
3849
  return Array.isArray(i) && typeof n == "string" && i.includes(n);
3816
- }) ? (v(), E("div", va, [
3817
- u(ql)
3850
+ }) ? (f(), H("div", ha, [
3851
+ u(Kl)
3818
3852
  ])) : O("", !0),
3819
- l(U) ? (v(), j(dl(l(r).lg || l(r).md ? ua : ca), {
3853
+ l(U) ? (f(), N(cl(l(r).lg || l(r).md ? va : ya), {
3820
3854
  key: 1,
3821
3855
  modelValue: l(U),
3822
- "onUpdate:modelValue": g[1] || (g[1] = (x) => Al(U) ? U.value = x : null),
3856
+ "onUpdate:modelValue": g[1] || (g[1] = (S) => zl(U) ? U.value = S : null),
3823
3857
  class: ke(`${l(r).lg || l(r).md ? "flex" : ""} w-full`),
3824
- style: Xe({ height: `calc( 100% - ${l(r).lg || l(r).md ? 72 : 64}px)` }),
3825
- "hide-configuration": k.value,
3858
+ style: He({ height: `calc( 100% - ${l(r).lg || l(r).md ? 72 : 64}px)` }),
3859
+ "hide-configuration": F.value,
3826
3860
  index: Number(l(s).params.tileIndex),
3827
- onHideConfiguration: g[2] || (g[2] = (x) => k.value = x)
3861
+ onHideConfiguration: g[2] || (g[2] = (S) => F.value = S)
3828
3862
  }, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : O("", !0)
3829
3863
  ]),
3830
3864
  _: 1
@@ -3833,5 +3867,5 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
3833
3867
  }
3834
3868
  });
3835
3869
  export {
3836
- Ta as default
3870
+ La as default
3837
3871
  };