@feedmepos/mf-report 5.22.1 → 5.22.2

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