@feedmepos/mf-report 5.19.21-beta.0 → 5.19.21-beta.1

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