@feedmepos/mf-report 5.26.7 → 5.26.8

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 (23) hide show
  1. package/dist/{App-C94O_vo_.js → App-Dg74dv5U.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Dn157Zx3.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js} +86 -87
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-nt4P42ea.js → Default.vue_vue_type_script_setup_true_lang-DhzZHUpu.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-AQDQW9GO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-xsdQqZN1.js} +517 -519
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C426Aob-.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZTdHQMm.js} +2 -2
  6. package/dist/{InsightView-Basufi0o.js → InsightView-BAMhWM_4.js} +4 -4
  7. package/dist/{Integration-B920vZDz.js → Integration-3sVH-WLo.js} +3 -3
  8. package/dist/{Integrations-_VxUzyV_.js → Integrations-aVgsVBin.js} +2 -2
  9. package/dist/{Layout-C3EdQj0a.js → Layout-CemoVm35.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-cx9Ls4VN.js → MenuTab.vue_vue_type_script_setup_true_lang-DaWStDdA.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BZdj0yom.js → NavigationTab.vue_vue_type_script_setup_true_lang-CF-kBFSL.js} +3 -3
  12. package/dist/{OverviewView-5SW5eV5d.js → OverviewView-CGQE4oye.js} +4 -4
  13. package/dist/{Report-D7QE2m9x.js → Report-Q_iSKToz.js} +3 -3
  14. package/dist/{ReportEditor-CRGL55-B.js → ReportEditor-B7Tsgrmi.js} +5 -5
  15. package/dist/{ReportView-DPTA33K1.js → ReportView-DemPHOct.js} +6 -6
  16. package/dist/{Setting-Dc9348RB.js → Setting-DKF6gaAG.js} +3 -3
  17. package/dist/{Template-DaeFfFJD.js → Template-CtJVcYGk.js} +3 -3
  18. package/dist/{TileEditor-C4157Jus.js → TileEditor-DWsLtN_V.js} +778 -783
  19. package/dist/{TransitionFade-B0iVN3no.js → TransitionFade-CO1Jm8hG.js} +4 -4
  20. package/dist/{app-CtnYfBf0.js → app-C5FTlUBn.js} +12 -12
  21. package/dist/app.js +1 -1
  22. package/dist/{useRestaurantPermission-dtgeWEXZ.js → useRestaurantPermission-BrUkp18y.js} +1 -1
  23. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { defineComponent as ue, mergeModels as ve, useModel as ye, computed as k, ref as le, resolveComponent as M, createElementBlock as X, openBlock as g, createVNode as m, createElementVNode as h, unref as l, withCtx as Q, toDisplayString as J, Fragment as de, renderList as _e, withModifiers as Ce, createTextVNode as ze, watch as Ve, createCommentVNode as E, createBlock as R, renderSlot as bl, onBeforeUnmount as nl, resolveDynamicComponent as hl, normalizeClass as $e, withDirectives as ke, vShow as Te, onMounted as wl, withKeys as dl, vModelText as Il, normalizeStyle as tl, isRef as zl } from "vue";
1
+ import { defineComponent as ue, mergeModels as ve, useModel as ye, computed as k, ref as le, resolveComponent as M, createElementBlock as X, openBlock as f, createVNode as m, createElementVNode as h, unref as l, withCtx as Q, toDisplayString as J, Fragment as de, renderList as _e, withModifiers as we, createTextVNode as Ie, watch as Ve, createCommentVNode as E, createBlock as R, renderSlot as bl, onBeforeUnmount as nl, resolveDynamicComponent as hl, normalizeClass as $e, withDirectives as ke, vShow as Te, onMounted as Cl, withKeys as dl, vModelText as zl, normalizeStyle as tl, isRef as Il } from "vue";
2
2
  import { useRoute as Rl, useRouter as Pl } from "vue-router";
3
- import { h as El, u as il, c as Ie, F as Oe, d as Je, S as ol, a as Wl, W as Xl, e as ql, T as Hl, b as Gl } from "./TransitionFade-B0iVN3no.js";
4
- import { W as Y, a as Cl, f as Re, D as Yl, S as ml, C as Jl, u as xl, P as cl, d as Kl, b as Ql } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C426Aob-.js";
5
- import { storeToRefs as je } from "pinia";
3
+ import { h as El, u as il, c as ze, F as je, d as Je, S as ol, a as Wl, W as Xl, e as ql, T as Hl, b as Gl } from "./TransitionFade-CO1Jm8hG.js";
4
+ import { W as Y, a as wl, f as Re, D as Yl, S as ml, C as Jl, u as xl, P as cl, d as Kl, b as Ql } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZTdHQMm.js";
5
+ import { storeToRefs as Oe } from "pinia";
6
6
  import { u as Fl } from "./message-dialog-UoMWOnil.js";
7
7
  import { useSnackbar as Zl, useBreakpoints as Vl, FmButtonColorThemeVariant as Me } from "@feedmepos/ui-library";
8
8
  import { a as be, b as kl, _ as _l } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
9
9
  import { u as ge } from "./vue-i18n-DVWuTfed.js";
10
10
  import { r as re } from "./i18n-CI_sQ5d_.js";
11
- import { g as we, R as pl, L as Be, a as Ze, S as ie, d as fe, b as el, c as vl, _ as Sl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-AQDQW9GO.js";
12
- import { a as Ne, d as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Dn157Zx3.js";
13
- import { a as et, d as qe } from "./app-CtnYfBf0.js";
11
+ import { g as Ce, R as pl, L as Be, a as Ze, S as ie, d as fe, b as el, c as vl, _ as Sl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-xsdQqZN1.js";
12
+ import { a as Ne, d as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js";
13
+ import { a as et, d as qe } from "./app-C5FTlUBn.js";
14
14
  const Ke = [
15
15
  {
16
16
  type: Y.Circular,
@@ -182,7 +182,7 @@ const Ke = [
182
182
  }),
183
183
  emits: ["update:modelValue"],
184
184
  setup(B) {
185
- const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, { schemas: U } = je(Cl()), w = k(
185
+ const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, { schemas: U } = Oe(wl()), C = k(
186
186
  () => U.value.map((n) => ({
187
187
  label: n.label,
188
188
  value: n.name,
@@ -190,10 +190,10 @@ const Ke = [
190
190
  }))
191
191
  ), c = k(() => {
192
192
  if (t.value.schemaNames.length === 0 || o.value === 0)
193
- return w.value.filter((n) => !n.raw.isJoinOnly);
193
+ return C.value.filter((n) => !n.raw.isJoinOnly);
194
194
  {
195
- const n = t.value.schemaNames[0], v = U.value.find((P) => P.name === n), I = ((v == null ? void 0 : v.joins) || []).map((P) => P);
196
- return w.value.filter((P) => I.includes(P.raw.name));
195
+ const n = t.value.schemaNames[0], v = U.value.find((P) => P.name === n), z = ((v == null ? void 0 : v.joins) || []).map((P) => P);
196
+ return C.value.filter((P) => z.includes(P.raw.name));
197
197
  }
198
198
  }), T = le(!1), L = le(""), o = le(), r = Zl();
199
199
  function i(n) {
@@ -201,7 +201,7 @@ const Ke = [
201
201
  return re(
202
202
  p,
203
203
  e,
204
- (v = U.value.find((I) => I.name === n)) == null ? void 0 : v.label,
204
+ (v = U.value.find((z) => z.name === n)) == null ? void 0 : v.label,
205
205
  "schema"
206
206
  );
207
207
  }
@@ -212,8 +212,8 @@ const Ke = [
212
212
  L.value !== "" ? (o.value !== void 0 ? t.value.schemaNames[o.value] = L.value : t.value.schemaNames.push(L.value), T.value = !1) : r.open({ message: p("report.section.schema.nothingSelected"), type: "error" });
213
213
  }
214
214
  return (n, v) => {
215
- const I = M("FmForm"), P = M("FmIcon"), b = M("FmField");
216
- return g(), X("div", lt, [
215
+ const z = M("FmForm"), P = M("FmIcon"), y = M("FmField");
216
+ return f(), X("div", lt, [
217
217
  m(Re, {
218
218
  modelValue: T.value,
219
219
  "onUpdate:modelValue": v[1] || (v[1] = (s) => T.value = s),
@@ -223,13 +223,13 @@ const Ke = [
223
223
  onConfirm: A
224
224
  }, {
225
225
  content: Q(() => [
226
- m(I, { ref: "form" }, {
226
+ m(z, { ref: "form" }, {
227
227
  default: Q(() => [
228
228
  m(be, {
229
229
  modelValue: L.value,
230
230
  "onUpdate:modelValue": v[0] || (v[0] = (s) => L.value = s),
231
231
  label: l(p)("report.section.schema.title"),
232
- items: o.value === 0 ? w.value.map((s) => ({
232
+ items: o.value === 0 ? C.value.map((s) => ({
233
233
  label: l(re)(l(p), l(e), s.label, "schema"),
234
234
  value: s.value
235
235
  })) : c.value.map((s) => ({
@@ -247,35 +247,35 @@ const Ke = [
247
247
  h("p", tt, J(l(p)("report.section.schema.title")), 1),
248
248
  h("p", ot, J(l(p)("report.section.schema.description")), 1)
249
249
  ]),
250
- (g(!0), X(de, null, _e(t.value.schemaNames, (s, j) => (g(), X("div", {
251
- key: j,
250
+ (f(!0), X(de, null, _e(t.value.schemaNames, (s, O) => (f(), X("div", {
251
+ key: O,
252
252
  class: "flex flex-col gap-2 w-full"
253
253
  }, [
254
254
  h("div", {
255
255
  class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
256
- onClick: (N) => x(j)
256
+ onClick: (N) => x(O)
257
257
  }, [
258
258
  h("p", nt, J(i(s)), 1),
259
259
  v[3] || (v[3] = h("div", { class: "grow" }, null, -1)),
260
260
  m(P, {
261
261
  name: "close",
262
- onClick: Ce(
262
+ onClick: we(
263
263
  () => {
264
- t.value.schemaNames = l(El)(t.value.schemaNames, j);
264
+ t.value.schemaNames = l(El)(t.value.schemaNames, O);
265
265
  },
266
266
  ["stop"]
267
267
  )
268
268
  }, null, 8, ["onClick"])
269
269
  ], 8, at)
270
270
  ]))), 128)),
271
- m(b, {
271
+ m(y, {
272
272
  class: "text-fm-color-typo-tertiary",
273
273
  onClick: v[2] || (v[2] = () => {
274
274
  x();
275
275
  })
276
276
  }, {
277
277
  default: Q(() => [
278
- ze(J(l(p)("report.section.schema.add")), 1)
278
+ Ie(J(l(p)("report.section.schema.add")), 1)
279
279
  ]),
280
280
  _: 1
281
281
  })
@@ -295,25 +295,25 @@ function Tl({
295
295
  const a = k(() => {
296
296
  const c = /* @__PURE__ */ new Map();
297
297
  for (const T of p.value)
298
- c.set(we(T), T);
298
+ c.set(Ce(T), T);
299
299
  for (const T of e.value)
300
- c.set(we(T), T);
300
+ c.set(Ce(T), T);
301
301
  return Array.from(c.values());
302
302
  }), U = k(
303
303
  () => a.value.map((c) => ({
304
304
  label: t(c),
305
- value: we(c),
305
+ value: Ce(c),
306
306
  badge: fl(c) ? "Metric" : "Dimension",
307
307
  meta: fl(c) ? c.aggregation : void 0
308
308
  }))
309
- ), w = k(
309
+ ), C = k(
310
310
  () => a.value.map((c) => {
311
311
  var L;
312
312
  const T = (L = B.value.find(
313
313
  (o) => o.schemaName === c.schemaName && o.name === c.name
314
314
  )) == null ? void 0 : L.type;
315
315
  return T ? {
316
- fieldId: we(c),
316
+ fieldId: Ce(c),
317
317
  type: T
318
318
  } : void 0;
319
319
  }).filter((c) => !!c)
@@ -321,7 +321,7 @@ function Tl({
321
321
  return {
322
322
  formulaSuggestionFields: a,
323
323
  formulaFieldDataList: U,
324
- allowedFormulaFields: w
324
+ allowedFormulaFields: C
325
325
  };
326
326
  }
327
327
  const st = {
@@ -360,7 +360,7 @@ const st = {
360
360
  }),
361
361
  emits: ["update:modelValue"],
362
362
  setup(B) {
363
- const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.dimension.${a.label}`)), w = le(!1), c = k(
363
+ const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.dimension.${a.label}`)), C = le(!1), c = k(
364
364
  () => t.value.map((u, $) => ({
365
365
  index: $,
366
366
  labels: [u.label || u.name],
@@ -368,20 +368,20 @@ const st = {
368
368
  }))
369
369
  ), T = le(t.value.length > 0 ? 0 : void 0);
370
370
  function L(u) {
371
- var $, z, ae, se;
372
- w.value = !0, o.value = u != null && u.value ? JSON.parse(
371
+ var $, I, ae, se;
372
+ C.value = !0, o.value = u != null && u.value ? JSON.parse(
373
373
  JSON.stringify({
374
374
  ...u.value,
375
375
  label: re(p, e, ($ = u.value) == null ? void 0 : $.label, "other"),
376
- moveToColumn: (((z = a.config) == null ? void 0 : z.columnIds) || []).includes(we(u.value))
376
+ moveToColumn: (((I = a.config) == null ? void 0 : I.columnIds) || []).includes(Ce(u.value))
377
377
  })
378
378
  ) : void 0, T.value = u == null ? void 0 : u.index, r.value = !!((ae = o.value) != null && ae.dataFormula || (se = o.value) != null && se.displayFormula), o.value && o.value.formatter === void 0 && u != null && u.value.timeFormatter && o.value.formatter === void 0 && (o.value.formatter = u == null ? void 0 : u.value.timeFormatter, o.value.timeFormatter = void 0);
379
379
  }
380
380
  const o = le(void 0), r = le(!1), i = k(
381
381
  () => a.options.find(
382
382
  (u) => {
383
- var $, z;
384
- return u.schemaName === (($ = o.value) == null ? void 0 : $.schemaName) && u.name === ((z = o.value) == null ? void 0 : z.name);
383
+ var $, I;
384
+ return u.schemaName === (($ = o.value) == null ? void 0 : $.schemaName) && u.name === ((I = o.value) == null ? void 0 : I.name);
385
385
  }
386
386
  ) ?? {}
387
387
  );
@@ -396,13 +396,13 @@ const st = {
396
396
  );
397
397
  const x = k(
398
398
  () => {
399
- var u, $, z;
400
- return (z = (u = i.value) == null ? void 0 : u.fillGapDimensionOptions) == null ? void 0 : z.includes((($ = o.value) == null ? void 0 : $.option) || "");
399
+ var u, $, I;
400
+ return (I = (u = i.value) == null ? void 0 : u.fillGapDimensionOptions) == null ? void 0 : I.includes((($ = o.value) == null ? void 0 : $.option) || "");
401
401
  }
402
402
  );
403
403
  function A(u) {
404
- var $, z;
405
- (u.schemaName !== (($ = o.value) == null ? void 0 : $.schemaName) || u.name !== ((z = o.value) == null ? void 0 : z.name)) && (o.value = {
404
+ var $, I;
405
+ (u.schemaName !== (($ = o.value) == null ? void 0 : $.schemaName) || u.name !== ((I = o.value) == null ? void 0 : I.name)) && (o.value = {
406
406
  schemaName: u.schemaName,
407
407
  name: u.name,
408
408
  option: u.dimensionOptions[0],
@@ -417,27 +417,27 @@ const st = {
417
417
  return;
418
418
  }
419
419
  const u = [...c.value.map(($) => $.value)];
420
- r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), T.value !== void 0 ? u[T.value] = o.value : u.push(o.value), t.value = u, w.value = !1;
420
+ r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), T.value !== void 0 ? u[T.value] = o.value : u.push(o.value), t.value = u, C.value = !1;
421
421
  }
422
422
  function v(u) {
423
- const z = [...c.value.map((ae) => ae.value)].filter((ae, se) => se !== u);
424
- t.value = z;
423
+ const I = [...c.value.map((ae) => ae.value)].filter((ae, se) => se !== u);
424
+ t.value = I;
425
425
  }
426
- function I(u) {
426
+ function z(u) {
427
427
  o.value && (o.value.decimal = Number(u));
428
428
  }
429
429
  function P(u) {
430
430
  const $ = `report.section.filter.${Ne(u)}`;
431
431
  return e($) ? p($) : re(p, e, u, "field");
432
432
  }
433
- function b(u) {
433
+ function y(u) {
434
434
  const $ = `report.section.metric.formatterType.${u}`;
435
435
  return e($) ? p($) : u;
436
436
  }
437
437
  function s(u) {
438
438
  return Array.isArray(u) ? u.length > 0 : u;
439
439
  }
440
- const j = k(
440
+ const O = k(
441
441
  () => a.options.map((u) => ({
442
442
  label: u.labels.join(" "),
443
443
  value: u
@@ -446,24 +446,24 @@ const st = {
446
446
  function N(u) {
447
447
  return [u.schemaName, u.name, re(p, e, u.label, "other")].join(" ");
448
448
  }
449
- function f(u) {
449
+ function b(u) {
450
450
  return [u.schemaName, u.name, u.option, u.label || ""].join("__");
451
451
  }
452
- const F = k(() => {
453
- var z;
454
- const u = /* @__PURE__ */ new Map(), $ = o.value ? f(o.value) : "";
455
- for (const ae of ((z = a.config) == null ? void 0 : z.dimensions) ?? [])
456
- $ && f(ae) === $ || u.set(we(ae), ae);
457
- return o.value && u.set(we(o.value), o.value), Array.from(u.values());
452
+ const V = k(() => {
453
+ var I;
454
+ const u = /* @__PURE__ */ new Map(), $ = o.value ? b(o.value) : "";
455
+ for (const ae of ((I = a.config) == null ? void 0 : I.dimensions) ?? [])
456
+ $ && b(ae) === $ || u.set(Ce(ae), ae);
457
+ return o.value && u.set(Ce(o.value), o.value), Array.from(u.values());
458
458
  }), { formulaFieldDataList: d, allowedFormulaFields: _ } = Tl({
459
459
  options: k(() => a.options),
460
- primaryFields: F,
460
+ primaryFields: V,
461
461
  secondaryFields: k(() => {
462
462
  var u;
463
463
  return ((u = a.config) == null ? void 0 : u.metrics) ?? [];
464
464
  }),
465
465
  getLabel: N
466
- }), { dataValidation: K, displayValidation: O, isDataValidating: y, isDisplayValidating: V } = il({
466
+ }), { dataValidation: K, displayValidation: j, isDataValidating: g, isDisplayValidating: F } = il({
467
467
  getDataFormula: () => {
468
468
  var u;
469
469
  return (u = o.value) == null ? void 0 : u.dataFormula;
@@ -476,11 +476,11 @@ const st = {
476
476
  getAllowedFields: () => _.value
477
477
  });
478
478
  return (u, $) => {
479
- const z = M("FmTextField"), ae = M("FmStepperField"), se = M("FmCheckbox"), ce = M("FmForm"), pe = M("FmIcon"), De = M("FmButton"), oe = M("FmListItem"), xe = M("FmList"), Se = M("FmField");
480
- return B.max !== 0 ? (g(), X("div", st, [
479
+ const I = M("FmTextField"), ae = M("FmStepperField"), se = M("FmCheckbox"), ce = M("FmForm"), pe = M("FmIcon"), De = M("FmButton"), oe = M("FmListItem"), xe = M("FmList"), Se = M("FmField");
480
+ return B.max !== 0 ? (f(), X("div", st, [
481
481
  m(Re, {
482
- modelValue: w.value,
483
- "onUpdate:modelValue": $[12] || ($[12] = (he) => w.value = he),
482
+ modelValue: C.value,
483
+ "onUpdate:modelValue": $[12] || ($[12] = (he) => C.value = he),
484
484
  title: U.value,
485
485
  "primary-button-label": l(p)("report.common.confirm"),
486
486
  "secondary-button-label": l(p)("report.common.cancel"),
@@ -496,18 +496,18 @@ const st = {
496
496
  return [
497
497
  m(be, {
498
498
  "model-value": i.value,
499
- items: j.value,
499
+ items: O.value,
500
500
  placeholder: U.value,
501
501
  label: U.value,
502
502
  "onUpdate:modelValue": $[0] || ($[0] = (ne) => A(ne))
503
503
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
504
- o.value ? (g(), X(de, { key: 0 }, [
505
- m(z, {
504
+ o.value ? (f(), X(de, { key: 0 }, [
505
+ m(I, {
506
506
  modelValue: o.value.label,
507
507
  "onUpdate:modelValue": $[1] || ($[1] = (ne) => o.value.label = ne),
508
508
  label: l(p)("report.section.dimension.label")
509
509
  }, null, 8, ["modelValue", "label"]),
510
- (((he = i.value) == null ? void 0 : he.dimensionOptions) || []).length > 0 ? (g(), R(be, {
510
+ (((he = i.value) == null ? void 0 : he.dimensionOptions) || []).length > 0 ? (f(), R(be, {
511
511
  key: 0,
512
512
  modelValue: o.value.option,
513
513
  "onUpdate:modelValue": $[2] || ($[2] = (ne) => o.value.option = ne),
@@ -516,15 +516,15 @@ const st = {
516
516
  value: ne
517
517
  }))) ?? []
518
518
  }, null, 8, ["modelValue", "items"])) : E("", !0),
519
- (ee = i.value) != null && ee.isNumericType ? (g(), R(ae, {
519
+ (ee = i.value) != null && ee.isNumericType ? (f(), R(ae, {
520
520
  key: 1,
521
521
  label: l(p)("report.common.decimal"),
522
522
  "model-value": ((Pe = o.value) == null ? void 0 : Pe.decimal) ?? 2,
523
523
  "onUpdate:modelValue": $[3] || ($[3] = (ne) => {
524
- I(ne);
524
+ z(ne);
525
525
  })
526
526
  }, null, 8, ["label", "model-value"])) : E("", !0),
527
- (Ee = i.value) != null && Ee.isNumericType ? (g(), R(be, {
527
+ (Ee = i.value) != null && Ee.isNumericType ? (f(), R(be, {
528
528
  key: 2,
529
529
  modelValue: o.value.formatter,
530
530
  "onUpdate:modelValue": $[4] || ($[4] = (ne) => o.value.formatter = ne),
@@ -533,12 +533,12 @@ const st = {
533
533
  items: [
534
534
  { label: l(p)("report.section.metric.formatterType.NONE"), value: null },
535
535
  ...(((We = i.value) == null ? void 0 : We.formatters) || []).map((ne) => ({
536
- label: b(ne),
536
+ label: y(ne),
537
537
  value: ne
538
538
  }))
539
539
  ]
540
540
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : E("", !0),
541
- x.value ? (g(), R(se, {
541
+ x.value ? (f(), R(se, {
542
542
  key: 3,
543
543
  "model-value": o.value.fillGap ?? !1,
544
544
  label: l(p)("report.section.dimension.fillGap"),
@@ -548,7 +548,7 @@ const st = {
548
548
  o.value && (o.value.fillGap = s(ne));
549
549
  })
550
550
  }, null, 8, ["model-value", "label"])) : E("", !0),
551
- ((Xe = i.value) == null ? void 0 : Xe.type) === l(Yl).Timestamp ? (g(), R(se, {
551
+ ((Xe = i.value) == null ? void 0 : Xe.type) === l(Yl).Timestamp ? (f(), R(se, {
552
552
  key: 4,
553
553
  "model-value": o.value.dateComparison ?? !1,
554
554
  label: l(p)("report.section.dimension.dateComparison"),
@@ -563,7 +563,7 @@ const st = {
563
563
  label: l(p)("report.section.dimension.hide"),
564
564
  value: ""
565
565
  }, null, 8, ["modelValue", "label"]),
566
- a.hasRowColumn ? (g(), R(se, {
566
+ a.hasRowColumn ? (f(), R(se, {
567
567
  key: 5,
568
568
  "model-value": o.value.moveToColumn ?? !1,
569
569
  label: l(p)("report.section.dimension.moveToColumn"),
@@ -578,26 +578,26 @@ const st = {
578
578
  label: l(p)("report.section.dimension.advance"),
579
579
  value: !0
580
580
  }, null, 8, ["modelValue", "label"]),
581
- r.value ? (g(), R(Ie, {
581
+ r.value ? (f(), R(ze, {
582
582
  key: 6,
583
583
  modelValue: o.value.dataFormula,
584
584
  "onUpdate:modelValue": $[10] || ($[10] = (ne) => o.value.dataFormula = ne),
585
585
  placeholder: l(p)("report.section.dimension.dataFormula"),
586
586
  "field-data-list": l(d),
587
- "formula-field": l(Oe).Dimension,
587
+ "formula-field": l(je).Dimension,
588
588
  "validation-result": l(K),
589
- "is-validating": l(y),
589
+ "is-validating": l(g),
590
590
  "valid-formula-label": l(p)("report.common.validFormula")
591
591
  }, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0),
592
- r.value ? (g(), R(Ie, {
592
+ r.value ? (f(), R(ze, {
593
593
  key: 7,
594
594
  modelValue: o.value.displayFormula,
595
595
  "onUpdate:modelValue": $[11] || ($[11] = (ne) => o.value.displayFormula = ne),
596
596
  placeholder: l(p)("report.section.dimension.displayFormula"),
597
597
  "field-data-list": l(d),
598
- "formula-field": l(Oe).Dimension,
599
- "validation-result": l(O),
600
- "is-validating": l(V),
598
+ "formula-field": l(je).Dimension,
599
+ "validation-result": l(j),
600
+ "is-validating": l(F),
601
601
  "valid-formula-label": l(p)("report.common.validFormula")
602
602
  }, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0)
603
603
  ], 64)) : E("", !0)
@@ -616,13 +616,13 @@ const st = {
616
616
  default: Q(() => [
617
617
  m(l(Je), {
618
618
  list: t.value,
619
- "item-key": (he) => l(we)(he),
619
+ "item-key": (he) => l(Ce)(he),
620
620
  class: "flex flex-col gap-2"
621
621
  }, {
622
622
  item: Q(({ element: he, index: Fe }) => [
623
623
  m(oe, {
624
624
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
625
- onClick: Ce((ee) => L(c.value[Fe]), ["stop"])
625
+ onClick: we((ee) => L(c.value[Fe]), ["stop"])
626
626
  }, {
627
627
  default: Q(() => [
628
628
  m(pe, { name: "drag_handle" }),
@@ -632,7 +632,7 @@ const st = {
632
632
  icon: "close",
633
633
  size: "md",
634
634
  variant: "tertiary",
635
- onClick: Ce((ee) => v(Fe), ["stop"])
635
+ onClick: we((ee) => v(Fe), ["stop"])
636
636
  }, null, 8, ["onClick"])
637
637
  ]),
638
638
  _: 2
@@ -650,7 +650,7 @@ const st = {
650
650
  })
651
651
  }, {
652
652
  default: Q(() => [
653
- ze(J(l(p)("report.section.dimension.add")), 1)
653
+ Ie(J(l(p)("report.section.dimension.add")), 1)
654
654
  ]),
655
655
  _: 1
656
656
  })
@@ -690,11 +690,11 @@ function ct(B) {
690
690
  B.widget.config.isDrillable
691
691
  ),
692
692
  joinDatasources: (t = B.widget.config.joinDatasources) == null ? void 0 : t.map((a) => {
693
- const { rowIds: U, columnIds: w } = Ge(a);
693
+ const { rowIds: U, columnIds: C } = Ge(a);
694
694
  return {
695
695
  ...a,
696
696
  rowIds: U,
697
- columnIds: w
697
+ columnIds: C
698
698
  };
699
699
  })
700
700
  }
@@ -702,13 +702,13 @@ function ct(B) {
702
702
  };
703
703
  }
704
704
  function Ge(B) {
705
- const p = B.dimensions.filter((w) => w.hide !== !0 && !w.moveToColumn).map((w) => we(w)), e = B.dimensions.filter((w) => w.hide !== !0 && w.moveToColumn == !0).map((w) => we(w)), t = B.metrics.length > 0;
706
- t && B.metrics.find((w) => w.moveToRow == !0) ? p.push(al.value) : t && e.push(al.value);
705
+ const p = B.dimensions.filter((C) => C.hide !== !0 && !C.moveToColumn).map((C) => Ce(C)), e = B.dimensions.filter((C) => C.hide !== !0 && C.moveToColumn == !0).map((C) => Ce(C)), t = B.metrics.length > 0;
706
+ t && B.metrics.find((C) => C.moveToRow == !0) ? p.push(al.value) : t && e.push(al.value);
707
707
  const a = [], U = [];
708
- for (const w of p)
709
- a.push(w);
710
- for (const w of e)
711
- U.push(w);
708
+ for (const C of p)
709
+ a.push(C);
710
+ for (const C of e)
711
+ U.push(C);
712
712
  return {
713
713
  rowIds: a,
714
714
  columnIds: U
@@ -750,110 +750,110 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
750
750
  setup(B, { emit: p }) {
751
751
  const { t: e, te: t } = ge(), a = ye(B, "modelValue"), U = B;
752
752
  k(() => !!U.max && a.value.length === U.max);
753
- const w = k(() => e(`report.section.metric.${U.label}`)), c = le(!1), T = k(
754
- () => a.value.map((y, V) => ({
755
- index: V,
756
- labels: [y.label || y.name],
757
- value: y
753
+ const C = k(() => e(`report.section.metric.${U.label}`)), c = le(!1), T = k(
754
+ () => a.value.map((g, F) => ({
755
+ index: F,
756
+ labels: [g.label || g.name],
757
+ value: g
758
758
  }))
759
759
  ), L = le(a.value.length > 0 ? 0 : void 0);
760
- function o(y) {
761
- var V, u, $;
762
- c.value = !0, r.value = y != null && y.value ? JSON.parse(
760
+ function o(g) {
761
+ var F, u, $;
762
+ c.value = !0, r.value = g != null && g.value ? JSON.parse(
763
763
  JSON.stringify({
764
- ...y.value,
765
- label: re(e, t, y.value.label, "other")
764
+ ...g.value,
765
+ label: re(e, t, g.value.label, "other")
766
766
  })
767
- ) : void 0, L.value = y == null ? void 0 : y.index, i.value = !!((V = r.value) != null && V.dataFormula || (u = r.value) != null && u.displayFormula), r.value && r.value.formatter === void 0 && y != null && y.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = y == null ? void 0 : y.value.timeFormatter, r.value.timeFormatter = void 0), (($ = U.config.rowIds) == null ? void 0 : $.findIndex((z) => z === al.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!U.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
767
+ ) : void 0, L.value = g == null ? void 0 : g.index, i.value = !!((F = r.value) != null && F.dataFormula || (u = r.value) != null && u.displayFormula), r.value && r.value.formatter === void 0 && g != null && g.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = g == null ? void 0 : g.value.timeFormatter, r.value.timeFormatter = void 0), (($ = U.config.rowIds) == null ? void 0 : $.findIndex((I) => I === al.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!U.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
768
768
  }
769
769
  const r = le(void 0), i = le(!1), x = k(
770
770
  () => U.options.find(
771
- (y) => {
772
- var V, u;
773
- return y.schemaName === ((V = r.value) == null ? void 0 : V.schemaName) && y.name === ((u = r.value) == null ? void 0 : u.name);
771
+ (g) => {
772
+ var F, u;
773
+ return g.schemaName === ((F = r.value) == null ? void 0 : F.schemaName) && g.name === ((u = r.value) == null ? void 0 : u.name);
774
774
  }
775
775
  ) ?? {}
776
776
  );
777
- function A(y, V) {
777
+ function A(g, F) {
778
778
  var u;
779
- return (y == null ? void 0 : y.isNumericType) || ((u = y == null ? void 0 : y.isNumericAggregations) == null ? void 0 : u.includes(V || ""));
779
+ return (g == null ? void 0 : g.isNumericType) || ((u = g == null ? void 0 : g.isNumericAggregations) == null ? void 0 : u.includes(F || ""));
780
780
  }
781
781
  const n = k(
782
782
  () => {
783
- var y;
784
- return A(x.value, (y = r.value) == null ? void 0 : y.aggregation);
783
+ var g;
784
+ return A(x.value, (g = r.value) == null ? void 0 : g.aggregation);
785
785
  }
786
786
  );
787
- Ve(n, (y) => {
788
- r.value && (y ? r.value.decimal = typeof r.value.decimal != "number" ? 2 : r.value.decimal : r.value.decimal = void 0);
787
+ Ve(n, (g) => {
788
+ r.value && (g ? r.value.decimal = typeof r.value.decimal != "number" ? 2 : r.value.decimal : r.value.decimal = void 0);
789
789
  });
790
- function v(y) {
791
- var V, u;
792
- (y.schemaName !== ((V = r.value) == null ? void 0 : V.schemaName) || y.name !== ((u = r.value) == null ? void 0 : u.name)) && (r.value = {
793
- schemaName: y.schemaName,
794
- name: y.name,
795
- aggregation: y.aggregations[0],
796
- label: re(e, t, y.label, "other"),
790
+ function v(g) {
791
+ var F, u;
792
+ (g.schemaName !== ((F = r.value) == null ? void 0 : F.schemaName) || g.name !== ((u = r.value) == null ? void 0 : u.name)) && (r.value = {
793
+ schemaName: g.schemaName,
794
+ name: g.name,
795
+ aggregation: g.aggregations[0],
796
+ label: re(e, t, g.label, "other"),
797
797
  nullable: !1,
798
- decimal: A(y, y.aggregations[0]) ? 2 : void 0,
798
+ decimal: A(g, g.aggregations[0]) ? 2 : void 0,
799
799
  moveToRow: !1,
800
800
  hide: !1
801
801
  }, i.value = !1);
802
802
  }
803
- function I() {
804
- const y = [...T.value.map((V) => V.value)];
805
- r.value && (i.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), U.hasXy || (r.value.nullable = !1), L.value !== void 0 ? y[L.value] = r.value : y.push(r.value)), a.value = y, c.value = !1;
803
+ function z() {
804
+ const g = [...T.value.map((F) => F.value)];
805
+ r.value && (i.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), U.hasXy || (r.value.nullable = !1), L.value !== void 0 ? g[L.value] = r.value : g.push(r.value)), a.value = g, c.value = !1;
806
806
  }
807
- function P(y) {
808
- const V = [...T.value.map((u) => u.value)];
809
- V.splice(y, 1), a.value = V;
807
+ function P(g) {
808
+ const F = [...T.value.map((u) => u.value)];
809
+ F.splice(g, 1), a.value = F;
810
810
  }
811
- const b = k(
812
- () => U.options.map((y) => ({
813
- label: y.labels.join(" "),
814
- value: y
811
+ const y = k(
812
+ () => U.options.map((g) => ({
813
+ label: g.labels.join(" "),
814
+ value: g
815
815
  }))
816
816
  );
817
- function s(y) {
818
- return [y.schemaName, y.name, re(e, t, y.label, "other")].join(" ");
817
+ function s(g) {
818
+ return [g.schemaName, g.name, re(e, t, g.label, "other")].join(" ");
819
819
  }
820
- function j(y) {
821
- return [y.schemaName, y.name, y.aggregation, y.label || ""].join("__");
820
+ function O(g) {
821
+ return [g.schemaName, g.name, g.aggregation, g.label || ""].join("__");
822
822
  }
823
823
  const N = k(() => {
824
824
  var u;
825
- const y = /* @__PURE__ */ new Map(), V = r.value ? j(r.value) : "";
825
+ const g = /* @__PURE__ */ new Map(), F = r.value ? O(r.value) : "";
826
826
  for (const $ of ((u = U.config) == null ? void 0 : u.metrics) ?? [])
827
- V && j($) === V || y.set(we($), $);
828
- return r.value && y.set(we(r.value), r.value), Array.from(y.values());
829
- }), { formulaFieldDataList: f, allowedFormulaFields: F } = Tl({
827
+ F && O($) === F || g.set(Ce($), $);
828
+ return r.value && g.set(Ce(r.value), r.value), Array.from(g.values());
829
+ }), { formulaFieldDataList: b, allowedFormulaFields: V } = Tl({
830
830
  options: k(() => U.options),
831
831
  primaryFields: k(() => {
832
- var y;
833
- return ((y = U.config) == null ? void 0 : y.dimensions) ?? [];
832
+ var g;
833
+ return ((g = U.config) == null ? void 0 : g.dimensions) ?? [];
834
834
  }),
835
835
  secondaryFields: N,
836
836
  getLabel: s
837
- }), { dataValidation: d, displayValidation: _, isDataValidating: K, isDisplayValidating: O } = il({
837
+ }), { dataValidation: d, displayValidation: _, isDataValidating: K, isDisplayValidating: j } = il({
838
838
  getDataFormula: () => {
839
- var y;
840
- return (y = r.value) == null ? void 0 : y.dataFormula;
839
+ var g;
840
+ return (g = r.value) == null ? void 0 : g.dataFormula;
841
841
  },
842
842
  getDisplayFormula: () => {
843
- var y;
844
- return (y = r.value) == null ? void 0 : y.displayFormula;
843
+ var g;
844
+ return (g = r.value) == null ? void 0 : g.displayFormula;
845
845
  },
846
846
  getIsAdvance: () => i.value,
847
- getAllowedFields: () => F.value
847
+ getAllowedFields: () => V.value
848
848
  });
849
- return (y, V) => {
850
- const u = M("FmTextField"), $ = M("FmStepperField"), z = M("FmCheckbox"), ae = M("FmForm"), se = M("FmIcon"), ce = M("FmButton"), pe = M("FmListItem"), De = M("FmList"), oe = M("FmField");
851
- return g(), X("div", pt, [
849
+ return (g, F) => {
850
+ const u = M("FmTextField"), $ = M("FmStepperField"), I = M("FmCheckbox"), ae = M("FmForm"), se = M("FmIcon"), ce = M("FmButton"), pe = M("FmListItem"), De = M("FmList"), oe = M("FmField");
851
+ return f(), X("div", pt, [
852
852
  m(Re, {
853
853
  modelValue: c.value,
854
- "onUpdate:modelValue": V[11] || (V[11] = (xe) => c.value = xe),
855
- title: w.value,
856
- onConfirm: I
854
+ "onUpdate:modelValue": F[11] || (F[11] = (xe) => c.value = xe),
855
+ title: C.value,
856
+ onConfirm: z
857
857
  }, {
858
858
  content: Q(() => [
859
859
  m(ae, {
@@ -865,39 +865,39 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
865
865
  return [
866
866
  m(be, {
867
867
  "model-value": x.value,
868
- items: b.value,
869
- placeholder: w.value,
870
- label: w.value,
871
- "onUpdate:modelValue": V[0] || (V[0] = (ee) => v(ee))
868
+ items: y.value,
869
+ placeholder: C.value,
870
+ label: C.value,
871
+ "onUpdate:modelValue": F[0] || (F[0] = (ee) => v(ee))
872
872
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
873
- r.value ? (g(), X(de, { key: 0 }, [
873
+ r.value ? (f(), X(de, { key: 0 }, [
874
874
  m(u, {
875
875
  modelValue: r.value.label,
876
- "onUpdate:modelValue": V[1] || (V[1] = (ee) => r.value.label = ee),
876
+ "onUpdate:modelValue": F[1] || (F[1] = (ee) => r.value.label = ee),
877
877
  label: l(e)("report.section.metric.label")
878
878
  }, null, 8, ["modelValue", "label"]),
879
- (((xe = x.value) == null ? void 0 : xe.aggregations) || []).length > 0 ? (g(), R(be, {
879
+ (((xe = x.value) == null ? void 0 : xe.aggregations) || []).length > 0 ? (f(), R(be, {
880
880
  key: 0,
881
881
  modelValue: r.value.aggregation,
882
- "onUpdate:modelValue": V[2] || (V[2] = (ee) => r.value.aggregation = ee),
882
+ "onUpdate:modelValue": F[2] || (F[2] = (ee) => r.value.aggregation = ee),
883
883
  label: l(e)("report.section.metric.aggregation"),
884
884
  items: ((Se = x.value) == null ? void 0 : Se.aggregations.map((ee) => ({
885
885
  label: l(t)(`report.section.metric.aggregationType.${ee}`) ? l(e)(`report.section.metric.aggregationType.${ee}`) : l(re)(l(e), l(t), ee, "field"),
886
886
  value: ee
887
887
  }))) ?? []
888
888
  }, null, 8, ["modelValue", "label", "items"])) : E("", !0),
889
- n.value ? (g(), R($, {
889
+ n.value ? (f(), R($, {
890
890
  key: 1,
891
891
  label: l(e)("report.common.decimal"),
892
892
  "model-value": ((he = r.value) == null ? void 0 : he.decimal) ?? 2,
893
- "onUpdate:modelValue": V[3] || (V[3] = (ee) => {
893
+ "onUpdate:modelValue": F[3] || (F[3] = (ee) => {
894
894
  r.value && (r.value.decimal = ee);
895
895
  })
896
896
  }, null, 8, ["label", "model-value"])) : E("", !0),
897
- n.value ? (g(), R(be, {
897
+ n.value ? (f(), R(be, {
898
898
  key: 2,
899
899
  modelValue: r.value.formatter,
900
- "onUpdate:modelValue": V[4] || (V[4] = (ee) => r.value.formatter = ee),
900
+ "onUpdate:modelValue": F[4] || (F[4] = (ee) => r.value.formatter = ee),
901
901
  placeholder: l(e)("report.section.metric.formatter"),
902
902
  label: l(e)("report.section.metric.formatter"),
903
903
  items: [
@@ -908,56 +908,56 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
908
908
  }))
909
909
  ]
910
910
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : E("", !0),
911
- m(z, {
911
+ m(I, {
912
912
  modelValue: r.value.hide,
913
- "onUpdate:modelValue": V[5] || (V[5] = (ee) => r.value.hide = ee),
913
+ "onUpdate:modelValue": F[5] || (F[5] = (ee) => r.value.hide = ee),
914
914
  label: l(e)("report.section.metric.hide"),
915
915
  value: ""
916
916
  }, null, 8, ["modelValue", "label"]),
917
- U.hasXy ? (g(), R(z, {
917
+ U.hasXy ? (f(), R(I, {
918
918
  key: 3,
919
919
  "model-value": r.value.nullable ?? !1,
920
920
  label: l(e)("report.section.metric.nullable"),
921
921
  value: !0,
922
- "onUpdate:modelValue": V[6] || (V[6] = (ee) => {
922
+ "onUpdate:modelValue": F[6] || (F[6] = (ee) => {
923
923
  r.value && (r.value.nullable = ee);
924
924
  })
925
925
  }, null, 8, ["model-value", "label"])) : E("", !0),
926
- U.hasRowColumn ? (g(), R(z, {
926
+ U.hasRowColumn ? (f(), R(I, {
927
927
  key: 4,
928
928
  "model-value": r.value.moveToRow ?? !1,
929
929
  label: l(e)("report.section.metric.moveToRow"),
930
930
  value: "",
931
- "onUpdate:modelValue": V[7] || (V[7] = (ee) => {
931
+ "onUpdate:modelValue": F[7] || (F[7] = (ee) => {
932
932
  r.value && (r.value.moveToRow = Array.isArray(ee) ? ee.length > 0 : ee);
933
933
  })
934
934
  }, null, 8, ["model-value", "label"])) : E("", !0),
935
- m(z, {
935
+ m(I, {
936
936
  modelValue: i.value,
937
- "onUpdate:modelValue": V[8] || (V[8] = (ee) => i.value = ee),
937
+ "onUpdate:modelValue": F[8] || (F[8] = (ee) => i.value = ee),
938
938
  label: l(e)("report.section.metric.advance"),
939
939
  value: !0
940
940
  }, null, 8, ["modelValue", "label"]),
941
- i.value ? (g(), R(Ie, {
941
+ i.value ? (f(), R(ze, {
942
942
  key: 5,
943
943
  modelValue: r.value.dataFormula,
944
- "onUpdate:modelValue": V[9] || (V[9] = (ee) => r.value.dataFormula = ee),
944
+ "onUpdate:modelValue": F[9] || (F[9] = (ee) => r.value.dataFormula = ee),
945
945
  placeholder: l(e)("report.section.metric.dataFormula"),
946
- "field-data-list": l(f),
947
- "formula-field": l(Oe).Metric,
946
+ "field-data-list": l(b),
947
+ "formula-field": l(je).Metric,
948
948
  "validation-result": l(d),
949
949
  "is-validating": l(K),
950
950
  "valid-formula-label": l(e)("report.common.validFormula")
951
951
  }, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0),
952
- i.value ? (g(), R(Ie, {
952
+ i.value ? (f(), R(ze, {
953
953
  key: 6,
954
954
  modelValue: r.value.displayFormula,
955
- "onUpdate:modelValue": V[10] || (V[10] = (ee) => r.value.displayFormula = ee),
955
+ "onUpdate:modelValue": F[10] || (F[10] = (ee) => r.value.displayFormula = ee),
956
956
  placeholder: l(e)("report.section.metric.displayFormula"),
957
- "field-data-list": l(f),
958
- "formula-field": l(Oe).Metric,
957
+ "field-data-list": l(b),
958
+ "formula-field": l(je).Metric,
959
959
  "validation-result": l(_),
960
- "is-validating": l(O),
960
+ "is-validating": l(j),
961
961
  "valid-formula-label": l(e)("report.common.validFormula")
962
962
  }, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0)
963
963
  ], 64)) : E("", !0)
@@ -969,7 +969,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
969
969
  _: 1
970
970
  }, 8, ["modelValue", "title"]),
971
971
  h("div", null, [
972
- h("p", vt, J(w.value), 1),
972
+ h("p", vt, J(C.value), 1),
973
973
  h("p", ft, J(l(e)("report.section.metric.description")), 1)
974
974
  ]),
975
975
  m(De, null, {
@@ -982,17 +982,17 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
982
982
  item: Q(({ element: xe, index: Se }) => [
983
983
  m(pe, {
984
984
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
985
- onClick: Ce((he) => o(T.value[Se]), ["stop"])
985
+ onClick: we((he) => o(T.value[Se]), ["stop"])
986
986
  }, {
987
987
  default: Q(() => [
988
988
  m(se, { name: "drag_handle" }),
989
989
  h("p", gt, J(l(re)(l(e), l(t), xe.label, "other")), 1),
990
- V[13] || (V[13] = h("div", { class: "grow" }, null, -1)),
990
+ F[13] || (F[13] = h("div", { class: "grow" }, null, -1)),
991
991
  m(ce, {
992
992
  icon: "close",
993
993
  size: "md",
994
994
  variant: "tertiary",
995
- onClick: Ce((he) => P(Se), ["stop"])
995
+ onClick: we((he) => P(Se), ["stop"])
996
996
  }, null, 8, ["onClick"])
997
997
  ]),
998
998
  _: 2
@@ -1005,19 +1005,19 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1005
1005
  }),
1006
1006
  m(oe, {
1007
1007
  class: "text-fm-color-typo-tertiary",
1008
- onClick: V[12] || (V[12] = () => {
1008
+ onClick: F[12] || (F[12] = () => {
1009
1009
  o();
1010
1010
  })
1011
1011
  }, {
1012
1012
  default: Q(() => [
1013
- ze(J(l(e)("report.section.metric.add")), 1)
1013
+ Ie(J(l(e)("report.section.metric.add")), 1)
1014
1014
  ]),
1015
1015
  _: 1
1016
1016
  })
1017
1017
  ]);
1018
1018
  };
1019
1019
  }
1020
- }), bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body-lg-600" }, wt = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ct = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, xt = /* @__PURE__ */ ue({
1020
+ }), bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body-lg-600" }, Ct = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, wt = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, xt = /* @__PURE__ */ ue({
1021
1021
  __name: "SortSection",
1022
1022
  props: /* @__PURE__ */ ve({
1023
1023
  options: {
@@ -1034,21 +1034,21 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1034
1034
  }),
1035
1035
  emits: ["update:modelValue"],
1036
1036
  setup(B) {
1037
- const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.sort.${a.label}`)), w = le(!1), c = k(
1037
+ const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.sort.${a.label}`)), C = le(!1), c = k(
1038
1038
  () => t.value.map((d, _) => {
1039
1039
  const K = a.options.find(
1040
- (y) => y.schemaName === d.schemaName && y.name === d.name
1041
- ), O = (K == null ? void 0 : K.labels) || [d.schemaName, d.name];
1040
+ (g) => g.schemaName === d.schemaName && g.name === d.name
1041
+ ), j = (K == null ? void 0 : K.labels) || [d.schemaName, d.name];
1042
1042
  return {
1043
1043
  index: _,
1044
- label: O.map((y) => re(p, e, y, "other")).join(" "),
1044
+ label: j.map((g) => re(p, e, g, "other")).join(" "),
1045
1045
  value: d
1046
1046
  };
1047
1047
  })
1048
1048
  ), T = le(t.value.length > 0 ? 0 : void 0);
1049
1049
  function L(d) {
1050
1050
  var _;
1051
- w.value = !0, o.value = d != null && d.value ? JSON.parse(JSON.stringify(d.value)) : void 0, T.value = d == null ? void 0 : d.index, r.value = !!((_ = o.value) != null && _.dataFormula);
1051
+ C.value = !0, o.value = d != null && d.value ? JSON.parse(JSON.stringify(d.value)) : void 0, T.value = d == null ? void 0 : d.index, r.value = !!((_ = o.value) != null && _.dataFormula);
1052
1052
  }
1053
1053
  const o = le(void 0), r = le(!1), i = k(
1054
1054
  () => a.options.find(
@@ -1074,17 +1074,17 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1074
1074
  return;
1075
1075
  }
1076
1076
  const d = [...c.value.map((_) => _.value)];
1077
- r.value || (o.value.dataFormula = void 0), T.value !== void 0 ? d[T.value] = o.value : d.push(o.value), t.value = d, w.value = !1;
1077
+ r.value || (o.value.dataFormula = void 0), T.value !== void 0 ? d[T.value] = o.value : d.push(o.value), t.value = d, C.value = !1;
1078
1078
  }
1079
1079
  function n(d) {
1080
1080
  const _ = [...c.value.map((K) => K.value)];
1081
- _.splice(d, 1), t.value = _, w.value = !1;
1081
+ _.splice(d, 1), t.value = _, C.value = !1;
1082
1082
  }
1083
1083
  function v(d) {
1084
1084
  const _ = `report.section.filter.${Ne(d)}`;
1085
1085
  return e(_) ? p(_) : re(p, e, d, "field");
1086
1086
  }
1087
- const I = k(
1087
+ const z = k(
1088
1088
  () => a.options.map((d) => ({
1089
1089
  label: d.labels.join(" "),
1090
1090
  value: d
@@ -1093,7 +1093,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1093
1093
  function P(d) {
1094
1094
  return `${d.schemaName}_${d.name}`.toLowerCase();
1095
1095
  }
1096
- function b(d) {
1096
+ function y(d) {
1097
1097
  return [d.schemaName, d.name, re(p, e, d.label, "other")].join(" ");
1098
1098
  }
1099
1099
  const s = k(
@@ -1101,12 +1101,12 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1101
1101
  var d;
1102
1102
  return !o.value || !((d = i.value) != null && d.name) ? [] : [
1103
1103
  {
1104
- label: `@self (${b(i.value)})`,
1104
+ label: `@self (${y(i.value)})`,
1105
1105
  value: "@self"
1106
1106
  }
1107
1107
  ];
1108
1108
  }
1109
- ), j = k(
1109
+ ), O = k(
1110
1110
  () => {
1111
1111
  var d, _;
1112
1112
  return !((d = i.value) != null && d.name) || !((_ = i.value) != null && _.type) ? [] : [
@@ -1122,7 +1122,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1122
1122
  const _ = (K = i.value) != null && K.name ? P(i.value) : void 0;
1123
1123
  return _ ? d == null ? void 0 : d.replace(/@self/g, _) : d;
1124
1124
  }
1125
- const { dataValidation: f, isDataValidating: F } = il({
1125
+ const { dataValidation: b, isDataValidating: V } = il({
1126
1126
  getDataFormula: () => {
1127
1127
  var d;
1128
1128
  return N((d = o.value) == null ? void 0 : d.dataFormula);
@@ -1130,19 +1130,19 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1130
1130
  getDisplayFormula: () => {
1131
1131
  },
1132
1132
  getIsAdvance: () => r.value,
1133
- getAllowedFields: () => j.value
1133
+ getAllowedFields: () => O.value
1134
1134
  });
1135
1135
  return (d, _) => {
1136
- const K = M("FmCheckbox"), O = M("FmForm"), y = M("FmIcon"), V = M("FmButton"), u = M("FmListItem"), $ = M("FmList"), z = M("FmField");
1137
- return g(), X("div", bt, [
1136
+ const K = M("FmCheckbox"), j = M("FmForm"), g = M("FmIcon"), F = M("FmButton"), u = M("FmListItem"), $ = M("FmList"), I = M("FmField");
1137
+ return f(), X("div", bt, [
1138
1138
  m(Re, {
1139
- modelValue: w.value,
1140
- "onUpdate:modelValue": _[6] || (_[6] = (ae) => w.value = ae),
1139
+ modelValue: C.value,
1140
+ "onUpdate:modelValue": _[6] || (_[6] = (ae) => C.value = ae),
1141
1141
  title: U.value,
1142
1142
  onConfirm: A
1143
1143
  }, {
1144
1144
  content: Q(() => [
1145
- m(O, {
1145
+ m(j, {
1146
1146
  ref: "form",
1147
1147
  class: "flex flex-col gap-2 w-[490px]"
1148
1148
  }, {
@@ -1151,13 +1151,13 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1151
1151
  return [
1152
1152
  m(be, {
1153
1153
  "model-value": i.value,
1154
- items: I.value,
1154
+ items: z.value,
1155
1155
  placeholder: U.value,
1156
1156
  label: U.value,
1157
1157
  "onUpdate:modelValue": _[0] || (_[0] = (oe) => x(oe))
1158
1158
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
1159
- o.value ? (g(), X(de, { key: 0 }, [
1160
- (((ae = i.value) == null ? void 0 : ae.dimensionOptions) || []).length > 0 ? (g(), R(be, {
1159
+ o.value ? (f(), X(de, { key: 0 }, [
1160
+ (((ae = i.value) == null ? void 0 : ae.dimensionOptions) || []).length > 0 ? (f(), R(be, {
1161
1161
  key: 0,
1162
1162
  modelValue: o.value.dimensionOption,
1163
1163
  "onUpdate:modelValue": _[1] || (_[1] = (oe) => o.value.dimensionOption = oe),
@@ -1168,7 +1168,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1168
1168
  placeholder: l(p)("report.section.sort.format"),
1169
1169
  label: l(p)("report.section.sort.format")
1170
1170
  }, null, 8, ["modelValue", "items", "placeholder", "label"])) : E("", !0),
1171
- (((ce = i.value) == null ? void 0 : ce.aggregations) || []).length > 0 ? (g(), R(be, {
1171
+ (((ce = i.value) == null ? void 0 : ce.aggregations) || []).length > 0 ? (f(), R(be, {
1172
1172
  key: 1,
1173
1173
  modelValue: o.value.aggregation,
1174
1174
  "onUpdate:modelValue": _[2] || (_[2] = (oe) => o.value.aggregation = oe),
@@ -1195,15 +1195,15 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1195
1195
  label: l(p)("report.section.sort.advance"),
1196
1196
  value: !0
1197
1197
  }, null, 8, ["modelValue", "label"]),
1198
- r.value ? (g(), R(Ie, {
1198
+ r.value ? (f(), R(ze, {
1199
1199
  key: 2,
1200
1200
  modelValue: o.value.dataFormula,
1201
1201
  "onUpdate:modelValue": _[5] || (_[5] = (oe) => o.value.dataFormula = oe),
1202
1202
  placeholder: l(p)("report.section.sort.dataFormula"),
1203
1203
  "field-data-list": s.value,
1204
- "formula-field": ((De = i.value) == null ? void 0 : De.type) === "NUMERIC" ? l(Oe).Metric : l(Oe).Dimension,
1205
- "validation-result": l(f),
1206
- "is-validating": l(F),
1204
+ "formula-field": ((De = i.value) == null ? void 0 : De.type) === "NUMERIC" ? l(je).Metric : l(je).Dimension,
1205
+ "validation-result": l(b),
1206
+ "is-validating": l(V),
1207
1207
  "valid-formula-label": l(p)("report.common.validFormula")
1208
1208
  }, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0)
1209
1209
  ], 64)) : E("", !0)
@@ -1216,7 +1216,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1216
1216
  }, 8, ["modelValue", "title"]),
1217
1217
  h("div", null, [
1218
1218
  h("p", ht, J(U.value), 1),
1219
- h("p", wt, J(l(p)("report.section.sort.description")), 1)
1219
+ h("p", Ct, J(l(p)("report.section.sort.description")), 1)
1220
1220
  ]),
1221
1221
  m($, null, {
1222
1222
  default: Q(() => [
@@ -1228,17 +1228,17 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1228
1228
  item: Q(({ element: ae, index: se }) => [
1229
1229
  m(u, {
1230
1230
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1231
- onClick: Ce((ce) => L(c.value[se]), ["stop"])
1231
+ onClick: we((ce) => L(c.value[se]), ["stop"])
1232
1232
  }, {
1233
1233
  default: Q(() => [
1234
- m(y, { name: "drag_handle" }),
1235
- h("p", Ct, J(c.value[se].label), 1),
1234
+ m(g, { name: "drag_handle" }),
1235
+ h("p", wt, J(c.value[se].label), 1),
1236
1236
  _[8] || (_[8] = h("div", { class: "grow" }, null, -1)),
1237
- m(V, {
1237
+ m(F, {
1238
1238
  icon: "close",
1239
1239
  size: "md",
1240
1240
  variant: "tertiary",
1241
- onClick: Ce((ce) => n(se), ["stop"])
1241
+ onClick: we((ce) => n(se), ["stop"])
1242
1242
  }, null, 8, ["onClick"])
1243
1243
  ]),
1244
1244
  _: 2
@@ -1249,14 +1249,14 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1249
1249
  ]),
1250
1250
  _: 1
1251
1251
  }),
1252
- m(z, {
1252
+ m(I, {
1253
1253
  class: "text-fm-color-typo-tertiary",
1254
1254
  onClick: _[7] || (_[7] = () => {
1255
1255
  L();
1256
1256
  })
1257
1257
  }, {
1258
1258
  default: Q(() => [
1259
- ze(J(l(p)("report.section.sort.add")), 1)
1259
+ Ie(J(l(p)("report.section.sort.add")), 1)
1260
1260
  ]),
1261
1261
  _: 1
1262
1262
  })
@@ -1275,13 +1275,13 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1275
1275
  a !== "" ? e.value = a : e.value = null;
1276
1276
  }, 1e3);
1277
1277
  return (a, U) => {
1278
- const w = M("FmTextField");
1279
- return g(), X(de, null, [
1278
+ const C = M("FmTextField");
1279
+ return f(), X(de, null, [
1280
1280
  h("div", null, [
1281
1281
  h("p", Ft, J(l(p)("report.section.limit.title")), 1),
1282
1282
  h("p", Vt, J(l(p)("report.section.limit.description")), 1)
1283
1283
  ]),
1284
- m(w, {
1284
+ m(C, {
1285
1285
  "model-value": e.value,
1286
1286
  inputmode: "numeric",
1287
1287
  placeholder: l(p)("report.section.limit.placeholder"),
@@ -1311,73 +1311,73 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1311
1311
  }),
1312
1312
  emits: ["update:modelValue"],
1313
1313
  setup(B) {
1314
- const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.condition.${a.label}`)), w = le(!1), c = k(
1315
- () => t.value.map((b, s) => {
1316
- var f, F;
1317
- const j = a.joinFieldOptions.find(
1314
+ const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.condition.${a.label}`)), C = le(!1), c = k(
1315
+ () => t.value.map((y, s) => {
1316
+ var b, V;
1317
+ const O = a.joinFieldOptions.find(
1318
1318
  (d) => {
1319
1319
  var _, K;
1320
- return d.schemaName === ((_ = b.joinDimension) == null ? void 0 : _.schemaName) && d.name === ((K = b.joinDimension) == null ? void 0 : K.name);
1320
+ return d.schemaName === ((_ = y.joinDimension) == null ? void 0 : _.schemaName) && d.name === ((K = y.joinDimension) == null ? void 0 : K.name);
1321
1321
  }
1322
- ), N = (j == null ? void 0 : j.labels) || [
1323
- (f = b.joinDimension) == null ? void 0 : f.schemaName,
1324
- (F = b.joinDimension) == null ? void 0 : F.name
1322
+ ), N = (O == null ? void 0 : O.labels) || [
1323
+ (b = y.joinDimension) == null ? void 0 : b.schemaName,
1324
+ (V = y.joinDimension) == null ? void 0 : V.name
1325
1325
  ];
1326
1326
  return {
1327
1327
  index: s,
1328
1328
  label: N.map((d) => re(p, e, d, "other")).join(" "),
1329
- value: b
1329
+ value: y
1330
1330
  };
1331
1331
  })
1332
1332
  ), T = le(t.value.length > 0 ? 0 : void 0);
1333
- function L(b) {
1334
- b ? (o.value = b != null && b.value ? JSON.parse(JSON.stringify(b.value)) : void 0, T.value = b == null ? void 0 : b.index) : (o.value = {
1333
+ function L(y) {
1334
+ y ? (o.value = y != null && y.value ? JSON.parse(JSON.stringify(y.value)) : void 0, T.value = y == null ? void 0 : y.index) : (o.value = {
1335
1335
  joinDimension: null,
1336
1336
  operator: "",
1337
1337
  mainDimensions: []
1338
- }, T.value = void 0), w.value = !0;
1338
+ }, T.value = void 0), C.value = !0;
1339
1339
  }
1340
1340
  const o = le(void 0), r = k(
1341
1341
  () => a.joinFieldOptions.find(
1342
- (b) => {
1343
- var s, j;
1344
- return b.schemaName === ((j = (s = o.value) == null ? void 0 : s.joinDimension) == null ? void 0 : j.schemaName) && b.name === o.value.joinDimension.name;
1342
+ (y) => {
1343
+ var s, O;
1344
+ return y.schemaName === ((O = (s = o.value) == null ? void 0 : s.joinDimension) == null ? void 0 : O.schemaName) && y.name === o.value.joinDimension.name;
1345
1345
  }
1346
1346
  ) ?? {}
1347
1347
  ), i = k(
1348
1348
  () => {
1349
- var b;
1350
- return (((b = o.value) == null ? void 0 : b.mainDimensions) || []).map(
1349
+ var y;
1350
+ return (((y = o.value) == null ? void 0 : y.mainDimensions) || []).map(
1351
1351
  (s) => a.mainFieldOptions.find(
1352
- (j) => j.schemaName === (s == null ? void 0 : s.schemaName) && j.name === s.name
1352
+ (O) => O.schemaName === (s == null ? void 0 : s.schemaName) && O.name === s.name
1353
1353
  ) ?? {}
1354
1354
  );
1355
1355
  }
1356
1356
  ), x = k(
1357
- () => a.joinFieldOptions.map((b) => ({ label: b.labels.join(" "), value: b }))
1357
+ () => a.joinFieldOptions.map((y) => ({ label: y.labels.join(" "), value: y }))
1358
1358
  );
1359
- function A(b) {
1360
- var s, j, N, f;
1361
- o.value && (o.value && b.schemaName !== ((j = (s = o.value) == null ? void 0 : s.joinDimension) == null ? void 0 : j.schemaName) || b.name !== ((f = (N = o.value) == null ? void 0 : N.joinDimension) == null ? void 0 : f.name)) && (o.value = {
1359
+ function A(y) {
1360
+ var s, O, N, b;
1361
+ o.value && (o.value && y.schemaName !== ((O = (s = o.value) == null ? void 0 : s.joinDimension) == null ? void 0 : O.schemaName) || y.name !== ((b = (N = o.value) == null ? void 0 : N.joinDimension) == null ? void 0 : b.name)) && (o.value = {
1362
1362
  ...o.value,
1363
1363
  joinDimension: {
1364
- schemaName: b.schemaName,
1365
- name: b.name,
1366
- option: b.dimensionOptions[0],
1367
- label: `_${b.label}`,
1364
+ schemaName: y.schemaName,
1365
+ name: y.name,
1366
+ option: y.dimensionOptions[0],
1367
+ label: `_${y.label}`,
1368
1368
  hide: !0
1369
1369
  }
1370
- }, b.joinConditionOperators.includes(o.value.operator) || v(b.joinConditionOperators[0]));
1370
+ }, y.joinConditionOperators.includes(o.value.operator) || v(y.joinConditionOperators[0]));
1371
1371
  }
1372
- function n(b, s) {
1373
- var j, N, f, F;
1374
- if (o.value && s >= 0 && (o.value && b.schemaName !== ((N = (j = o.value) == null ? void 0 : j.mainDimensions[s]) == null ? void 0 : N.schemaName) || b.name !== ((F = (f = o.value) == null ? void 0 : f.mainDimensions[s]) == null ? void 0 : F.name))) {
1372
+ function n(y, s) {
1373
+ var O, N, b, V;
1374
+ if (o.value && s >= 0 && (o.value && y.schemaName !== ((N = (O = o.value) == null ? void 0 : O.mainDimensions[s]) == null ? void 0 : N.schemaName) || y.name !== ((V = (b = o.value) == null ? void 0 : b.mainDimensions[s]) == null ? void 0 : V.name))) {
1375
1375
  const d = [...o.value.mainDimensions];
1376
1376
  d[s] = {
1377
- schemaName: b.schemaName,
1378
- name: b.name,
1379
- option: b.dimensionOptions[0],
1380
- label: b.label,
1377
+ schemaName: y.schemaName,
1378
+ name: y.name,
1379
+ option: y.dimensionOptions[0],
1380
+ label: y.label,
1381
1381
  hide: !0
1382
1382
  }, o.value = {
1383
1383
  ...o.value,
@@ -1385,43 +1385,43 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1385
1385
  };
1386
1386
  }
1387
1387
  }
1388
- function v(b) {
1388
+ function v(y) {
1389
1389
  if (o.value)
1390
- switch (b) {
1390
+ switch (y) {
1391
1391
  case Jl.Between:
1392
1392
  o.value = {
1393
1393
  ...o.value,
1394
- operator: b,
1394
+ operator: y,
1395
1395
  mainDimensions: [null, null]
1396
1396
  };
1397
1397
  break;
1398
1398
  default:
1399
1399
  o.value = {
1400
1400
  ...o.value,
1401
- operator: b,
1401
+ operator: y,
1402
1402
  mainDimensions: [null]
1403
1403
  };
1404
1404
  break;
1405
1405
  }
1406
1406
  }
1407
- function I() {
1408
- const b = [...c.value.map((s) => s.value)];
1407
+ function z() {
1408
+ const y = [...c.value.map((s) => s.value)];
1409
1409
  o.value && (o.value.mainDimensions = o.value.mainDimensions.filter(
1410
1410
  (s) => s !== "" && s != null
1411
- ), T.value !== void 0 ? b[T.value] = o.value : b.push(o.value)), t.value = b, w.value = !1;
1411
+ ), T.value !== void 0 ? y[T.value] = o.value : y.push(o.value)), t.value = y, C.value = !1;
1412
1412
  }
1413
- function P(b) {
1414
- const s = [...c.value.map((j) => j.value)];
1415
- s.splice(b, 1), t.value = s;
1413
+ function P(y) {
1414
+ const s = [...c.value.map((O) => O.value)];
1415
+ s.splice(y, 1), t.value = s;
1416
1416
  }
1417
- return (b, s) => {
1418
- const j = M("FmMenuDivider"), N = M("FmForm"), f = M("FmIcon"), F = M("FmButton"), d = M("FmListItem"), _ = M("FmList"), K = M("FmField");
1419
- return g(), X("div", _t, [
1417
+ return (y, s) => {
1418
+ const O = M("FmMenuDivider"), N = M("FmForm"), b = M("FmIcon"), V = M("FmButton"), d = M("FmListItem"), _ = M("FmList"), K = M("FmField");
1419
+ return f(), X("div", _t, [
1420
1420
  m(Re, {
1421
- modelValue: w.value,
1422
- "onUpdate:modelValue": s[2] || (s[2] = (O) => w.value = O),
1421
+ modelValue: C.value,
1422
+ "onUpdate:modelValue": s[2] || (s[2] = (j) => C.value = j),
1423
1423
  title: U.value,
1424
- onConfirm: I
1424
+ onConfirm: z
1425
1425
  }, {
1426
1426
  content: Q(() => [
1427
1427
  m(N, {
@@ -1429,39 +1429,39 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1429
1429
  class: "flex flex-col gap-2 w-[490px]"
1430
1430
  }, {
1431
1431
  default: Q(() => {
1432
- var O, y, V, u, $;
1432
+ var j, g, F, u, $;
1433
1433
  return [
1434
1434
  m(be, {
1435
1435
  label: l(p)("report.section.condition.joinDatasource"),
1436
1436
  "model-value": r.value,
1437
1437
  items: x.value,
1438
1438
  placeholder: l(p)("report.section.condition.joinDimension"),
1439
- "onUpdate:modelValue": s[0] || (s[0] = (z) => A(z))
1439
+ "onUpdate:modelValue": s[0] || (s[0] = (I) => A(I))
1440
1440
  }, null, 8, ["label", "model-value", "items", "placeholder"]),
1441
- m(j),
1442
- (O = o.value) != null && O.joinDimension && (((y = r.value) == null ? void 0 : y.dimensionOptions) || []).length > 0 ? (g(), R(be, {
1441
+ m(O),
1442
+ (j = o.value) != null && j.joinDimension && (((g = r.value) == null ? void 0 : g.dimensionOptions) || []).length > 0 ? (f(), R(be, {
1443
1443
  key: 0,
1444
1444
  modelValue: o.value.joinDimension.option,
1445
- "onUpdate:modelValue": s[1] || (s[1] = (z) => o.value.joinDimension.option = z),
1445
+ "onUpdate:modelValue": s[1] || (s[1] = (I) => o.value.joinDimension.option = I),
1446
1446
  label: l(p)("report.section.condition.format"),
1447
- items: ((V = r.value) == null ? void 0 : V.dimensionOptions.map((z) => ({
1448
- label: l(e)(`report.section.filter.${l(Ne)(z)}`) ? l(p)(`report.section.filter.${l(Ne)(z)}`) : z,
1449
- value: z
1447
+ items: ((F = r.value) == null ? void 0 : F.dimensionOptions.map((I) => ({
1448
+ label: l(e)(`report.section.filter.${l(Ne)(I)}`) ? l(p)(`report.section.filter.${l(Ne)(I)}`) : I,
1449
+ value: I
1450
1450
  }))) ?? []
1451
1451
  }, null, 8, ["modelValue", "label", "items"])) : E("", !0),
1452
- o.value && (((u = r.value) == null ? void 0 : u.joinConditionOperators) || []).length > 0 ? (g(), R(be, {
1452
+ o.value && (((u = r.value) == null ? void 0 : u.joinConditionOperators) || []).length > 0 ? (f(), R(be, {
1453
1453
  key: 1,
1454
1454
  "model-value": o.value.operator,
1455
1455
  label: l(p)("report.section.condition.operator"),
1456
- items: r.value.joinConditionOperators.map((z) => ({
1457
- label: l(p)("report.section.comparisonOperator." + z),
1458
- value: z
1456
+ items: r.value.joinConditionOperators.map((I) => ({
1457
+ label: l(p)("report.section.comparisonOperator." + I),
1458
+ value: I
1459
1459
  })) ?? [],
1460
1460
  "onUpdate:modelValue": v
1461
1461
  }, null, 8, ["model-value", "label", "items"])) : E("", !0),
1462
- (g(!0), X(de, null, _e((($ = o.value) == null ? void 0 : $.mainDimensions) || [], (z, ae) => {
1462
+ (f(!0), X(de, null, _e((($ = o.value) == null ? void 0 : $.mainDimensions) || [], (I, ae) => {
1463
1463
  var se, ce;
1464
- return g(), X("div", {
1464
+ return f(), X("div", {
1465
1465
  key: ae,
1466
1466
  class: "flex flex-col gap-2"
1467
1467
  }, [
@@ -1474,16 +1474,16 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1474
1474
  })),
1475
1475
  "onUpdate:modelValue": (pe) => n(pe, ae)
1476
1476
  }, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
1477
- z && (((se = i.value[ae]) == null ? void 0 : se.dimensionOptions) || []).length > 0 && z ? (g(), R(be, {
1477
+ I && (((se = i.value[ae]) == null ? void 0 : se.dimensionOptions) || []).length > 0 && I ? (f(), R(be, {
1478
1478
  key: 0,
1479
- modelValue: z.option,
1480
- "onUpdate:modelValue": (pe) => z.option = pe,
1479
+ modelValue: I.option,
1480
+ "onUpdate:modelValue": (pe) => I.option = pe,
1481
1481
  items: (ce = i.value[ae]) == null ? void 0 : ce.dimensionOptions.map((pe) => ({
1482
1482
  label: l(e)(`report.section.filter.${l(Ne)(pe)}`) ? l(p)(`report.section.filter.${l(Ne)(pe)}`) : pe,
1483
1483
  value: pe
1484
1484
  }))
1485
1485
  }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : E("", !0),
1486
- m(j)
1486
+ m(O)
1487
1487
  ]);
1488
1488
  }), 128))
1489
1489
  ];
@@ -1501,29 +1501,29 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1501
1501
  default: Q(() => [
1502
1502
  m(l(Je), {
1503
1503
  list: t.value,
1504
- "item-key": (O) => {
1505
- var y, V;
1506
- return `${(y = O.joinDimension) == null ? void 0 : y.schemaName}:${(V = O.joinDimension) == null ? void 0 : V.name}`;
1504
+ "item-key": (j) => {
1505
+ var g, F;
1506
+ return `${(g = j.joinDimension) == null ? void 0 : g.schemaName}:${(F = j.joinDimension) == null ? void 0 : F.name}`;
1507
1507
  },
1508
1508
  class: "flex flex-col gap-2 w-full"
1509
1509
  }, {
1510
1510
  item: Q(({
1511
- element: O,
1512
- index: y
1511
+ element: j,
1512
+ index: g
1513
1513
  }) => [
1514
1514
  m(d, {
1515
1515
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1516
- onClick: Ce((V) => L(c.value[y]), ["stop"])
1516
+ onClick: we((F) => L(c.value[g]), ["stop"])
1517
1517
  }, {
1518
1518
  default: Q(() => [
1519
- m(f, { name: "drag_handle" }),
1520
- h("p", $t, J(c.value[y].label), 1),
1519
+ m(b, { name: "drag_handle" }),
1520
+ h("p", $t, J(c.value[g].label), 1),
1521
1521
  s[4] || (s[4] = h("div", { class: "grow" }, null, -1)),
1522
- m(F, {
1522
+ m(V, {
1523
1523
  icon: "close",
1524
1524
  size: "md",
1525
1525
  variant: "tertiary",
1526
- onClick: Ce((V) => P(y), ["stop"])
1526
+ onClick: we((F) => P(g), ["stop"])
1527
1527
  }, null, 8, ["onClick"])
1528
1528
  ]),
1529
1529
  _: 2
@@ -1536,10 +1536,10 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1536
1536
  }),
1537
1537
  m(K, {
1538
1538
  class: "text-fm-color-typo-tertiary cursor-pointer",
1539
- onClick: s[3] || (s[3] = (O) => L())
1539
+ onClick: s[3] || (s[3] = (j) => L())
1540
1540
  }, {
1541
1541
  default: Q(() => [
1542
- ze(J(l(p)("report.section.condition.add")), 1)
1542
+ Ie(J(l(p)("report.section.condition.add")), 1)
1543
1543
  ]),
1544
1544
  _: 1
1545
1545
  })
@@ -1581,29 +1581,24 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1581
1581
  Ve(
1582
1582
  [() => e.value.dimensions, () => e.value.metrics],
1583
1583
  () => {
1584
- const { rowIds: N, columnIds: f } = Ge(e.value);
1585
- e.value.rowIds = N, e.value.columnIds = f;
1584
+ const { rowIds: N, columnIds: b } = Ge(e.value);
1585
+ e.value.rowIds = N, e.value.columnIds = b;
1586
1586
  },
1587
1587
  { deep: !0 }
1588
1588
  );
1589
- const t = B, a = p, { schemas: U } = je(Cl()), { editingReport: w } = je(xl()), c = k(() => {
1589
+ const t = B, a = p, { schemas: U } = Oe(wl()), { editingReport: C } = Oe(xl()), c = k(() => {
1590
1590
  var N;
1591
- return ((N = w.value) == null ? void 0 : N.queryVersion) === "v2";
1591
+ return ((N = C.value) == null ? void 0 : N.queryVersion) === "v2";
1592
1592
  }), { t: T, te: L, locale: o } = ge(), r = k(() => !t.mainDatasourceConfig), i = k(
1593
1593
  () => [Y.BarChart, Y.LineChart, Y.Scorecard].includes(t.config.type)
1594
- ), x = k(() => {
1595
- const N = [...e.value.dimensions].filter((f) => !f.hide);
1596
- return N.sort(
1597
- (f, F) => (e.value.rowIds || []).indexOf(we(f)) - (e.value.rowIds || []).indexOf(we(F))
1598
- ), N;
1599
- }), A = k(() => t.config.type === Y.Scorecard), n = k(
1594
+ ), x = k(() => [...e.value.dimensions].filter((N) => !N.hide)), A = k(() => t.config.type === Y.Scorecard), n = k(
1600
1595
  () => {
1601
1596
  var N;
1602
1597
  return (((N = t.mainDatasourceConfig) == null ? void 0 : N.schemaNames) || []).reduce(
1603
- (f, F) => {
1604
- const d = U.value.find((_) => _.name === F);
1605
- return d && (f = [
1606
- ...f,
1598
+ (b, V) => {
1599
+ const d = U.value.find((_) => _.name === V);
1600
+ return d && (b = [
1601
+ ...b,
1607
1602
  ...d.fields.map((_) => ({
1608
1603
  ..._,
1609
1604
  labels: [
@@ -1611,31 +1606,31 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1611
1606
  re(T, L, _.label || _.name, "other")
1612
1607
  ]
1613
1608
  }))
1614
- ]), f;
1609
+ ]), b;
1615
1610
  },
1616
1611
  []
1617
1612
  );
1618
1613
  }
1619
1614
  ), v = k(
1620
- () => e.value.schemaNames.reduce((N, f) => {
1621
- const F = U.value.find((d) => d.name === f);
1622
- return F && (N = [
1615
+ () => e.value.schemaNames.reduce((N, b) => {
1616
+ const V = U.value.find((d) => d.name === b);
1617
+ return V && (N = [
1623
1618
  ...N,
1624
- ...F.fields.map((d) => ({
1619
+ ...V.fields.map((d) => ({
1625
1620
  ...d,
1626
1621
  labels: [
1627
- re(T, L, F.label, "schema"),
1622
+ re(T, L, V.label, "schema"),
1628
1623
  re(T, L, d.label || d.name, "other")
1629
1624
  ]
1630
1625
  }))
1631
1626
  ]), N;
1632
1627
  }, [])
1633
- ), I = k(() => [
1628
+ ), z = k(() => [
1634
1629
  { label: T("report.section.datasource.none"), value: null },
1635
1630
  { label: T("report.section.datasource.grandTotal"), value: 0 },
1636
- ...[...x.value].slice(0, x.value.length - 1).map((N, f) => ({
1631
+ ...[...x.value].slice(0, x.value.length - 1).map((N, b) => ({
1637
1632
  label: re(T, L, N.label, "other"),
1638
- value: f + 1
1633
+ value: b + 1
1639
1634
  }))
1640
1635
  ]), P = k(() => [
1641
1636
  {
@@ -1646,8 +1641,8 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1646
1641
  label: T("report.section.datasource.position.bottom"),
1647
1642
  value: pl.bottom
1648
1643
  }
1649
- ]), b = k(
1650
- () => `rollup-${o.value}-${x.value.map((N) => we(N)).join("|")}`
1644
+ ]), y = k(
1645
+ () => `rollup-${o.value}-${x.value.map((N) => Ce(N)).join("|")}`
1651
1646
  ), s = k(() => [
1652
1647
  {
1653
1648
  label: T("report.section.datasource.none"),
@@ -1657,168 +1652,168 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1657
1652
  label: L(`report.section.datasource.periodType.${N}`) ? T(`report.section.datasource.periodType.${N}`) : N,
1658
1653
  value: cl[N]
1659
1654
  }))
1660
- ]), j = k(() => [
1655
+ ]), O = k(() => [
1661
1656
  { label: T("report.section.datasource.joinType.left"), value: "LEFT" },
1662
1657
  { label: T("report.section.datasource.joinType.fullOuter"), value: "FULL_OUTER" }
1663
1658
  ]);
1664
- return (N, f) => {
1665
- const F = M("FmButton"), d = M("FmSwitch"), _ = M("FmSelect"), K = M("FmTextField");
1666
- return g(), R(ol, null, {
1659
+ return (N, b) => {
1660
+ const V = M("FmButton"), d = M("FmSwitch"), _ = M("FmSelect"), K = M("FmTextField");
1661
+ return f(), R(ol, null, {
1667
1662
  header: Q(() => [
1668
1663
  h("p", null, J(t.label), 1),
1669
- f[22] || (f[22] = h("div", { class: "grow" }, null, -1)),
1670
- t.closeable ? (g(), R(F, {
1664
+ b[22] || (b[22] = h("div", { class: "grow" }, null, -1)),
1665
+ t.closeable ? (f(), R(V, {
1671
1666
  key: 0,
1672
1667
  icon: "close",
1673
1668
  variant: "tertiary",
1674
1669
  size: "md",
1675
- onClick: f[0] || (f[0] = Ce((O) => a("click-close"), ["stop"]))
1670
+ onClick: b[0] || (b[0] = we((j) => a("click-close"), ["stop"]))
1676
1671
  })) : E("", !0)
1677
1672
  ]),
1678
1673
  content: Q(() => [
1679
1674
  m(it, {
1680
1675
  modelValue: e.value,
1681
- "onUpdate:modelValue": f[1] || (f[1] = (O) => e.value = O),
1676
+ "onUpdate:modelValue": b[1] || (b[1] = (j) => e.value = j),
1682
1677
  label: l(T)("report.section.schema.title")
1683
1678
  }, null, 8, ["modelValue", "label"]),
1684
1679
  m(ll, {
1685
1680
  modelValue: e.value.dimensions,
1686
- "onUpdate:modelValue": f[2] || (f[2] = (O) => e.value.dimensions = O),
1681
+ "onUpdate:modelValue": b[2] || (b[2] = (j) => e.value.dimensions = j),
1687
1682
  options: v.value,
1688
1683
  config: e.value,
1689
1684
  max: t.config.maxDimension,
1690
1685
  "has-row-column": !0,
1691
- onConfig: f[3] || (f[3] = (O) => {
1692
- e.value = O;
1686
+ onConfig: b[3] || (b[3] = (j) => {
1687
+ e.value = j;
1693
1688
  })
1694
1689
  }, null, 8, ["modelValue", "options", "config", "max"]),
1695
1690
  m(d, {
1696
1691
  "label-placement": "right",
1697
1692
  label: l(T)("report.section.datasource.comparable"),
1698
1693
  "model-value": e.value.isComparable ?? !1,
1699
- "onUpdate:modelValue": f[4] || (f[4] = (O) => {
1700
- e.value.isComparable = O;
1694
+ "onUpdate:modelValue": b[4] || (b[4] = (j) => {
1695
+ e.value.isComparable = j;
1701
1696
  })
1702
1697
  }, null, 8, ["label", "model-value"]),
1703
- i.value ? (g(), R(d, {
1698
+ i.value ? (f(), R(d, {
1704
1699
  key: 0,
1705
1700
  "label-placement": "right",
1706
1701
  label: l(T)("report.section.datasource.cumulative"),
1707
1702
  "model-value": e.value.isCumulative ?? !1,
1708
- "onUpdate:modelValue": f[5] || (f[5] = (O) => {
1709
- e.value.isCumulative = O;
1703
+ "onUpdate:modelValue": b[5] || (b[5] = (j) => {
1704
+ e.value.isCumulative = j;
1710
1705
  })
1711
1706
  }, null, 8, ["label", "model-value"])) : E("", !0),
1712
- t.config.isDrillConfigurable && r.value ? (g(), R(d, {
1707
+ t.config.isDrillConfigurable && r.value ? (f(), R(d, {
1713
1708
  key: 1,
1714
1709
  label: l(T)("report.section.datasource.drill"),
1715
1710
  "label-placement": "right",
1716
1711
  "model-value": e.value.isDrillable ?? !1,
1717
- "onUpdate:modelValue": f[6] || (f[6] = (O) => {
1718
- e.value.isDrillable = O;
1712
+ "onUpdate:modelValue": b[6] || (b[6] = (j) => {
1713
+ e.value.isDrillable = j;
1719
1714
  })
1720
1715
  }, null, 8, ["label", "model-value"])) : E("", !0),
1721
- r.value ? (g(), R(d, {
1716
+ r.value ? (f(), R(d, {
1722
1717
  key: 2,
1723
1718
  modelValue: e.value.isBlend,
1724
- "onUpdate:modelValue": f[7] || (f[7] = (O) => e.value.isBlend = O),
1719
+ "onUpdate:modelValue": b[7] || (b[7] = (j) => e.value.isBlend = j),
1725
1720
  label: l(T)("report.section.datasource.blend"),
1726
1721
  "label-placement": "right"
1727
1722
  }, null, 8, ["modelValue", "label"])) : E("", !0),
1728
- t.config.canRollup && r.value ? (g(), R(_, {
1729
- key: b.value,
1723
+ t.config.canRollup && r.value ? (f(), R(_, {
1724
+ key: y.value,
1730
1725
  modelValue: e.value.rollup,
1731
- "onUpdate:modelValue": f[8] || (f[8] = (O) => e.value.rollup = O),
1726
+ "onUpdate:modelValue": b[8] || (b[8] = (j) => e.value.rollup = j),
1732
1727
  label: l(T)("report.section.datasource.subTotal"),
1733
- items: I.value
1728
+ items: z.value
1734
1729
  }, null, 8, ["modelValue", "label", "items"])) : E("", !0),
1735
- t.config.showRollupPosition && r.value ? (g(), R(_, {
1730
+ t.config.showRollupPosition && r.value ? (f(), R(_, {
1736
1731
  key: `rollup-position-${l(o)}`,
1737
1732
  modelValue: e.value.rollupPosition,
1738
- "onUpdate:modelValue": f[9] || (f[9] = (O) => e.value.rollupPosition = O),
1733
+ "onUpdate:modelValue": b[9] || (b[9] = (j) => e.value.rollupPosition = j),
1739
1734
  label: l(T)("report.section.datasource.position.showPosition"),
1740
1735
  items: P.value
1741
1736
  }, null, 8, ["modelValue", "label", "items"])) : E("", !0),
1742
- t.config.type === l(Y).Table && r.value ? (g(), R(K, {
1737
+ t.config.type === l(Y).Table && r.value ? (f(), R(K, {
1743
1738
  key: 5,
1744
1739
  modelValue: e.value.grandTotalLabel,
1745
- "onUpdate:modelValue": f[10] || (f[10] = (O) => e.value.grandTotalLabel = O),
1740
+ "onUpdate:modelValue": b[10] || (b[10] = (j) => e.value.grandTotalLabel = j),
1746
1741
  label: l(T)("report.section.datasource.grandTotalLabel"),
1747
1742
  placeholder: l(T)("report.section.datasource.grandTotal")
1748
1743
  }, null, 8, ["modelValue", "label", "placeholder"])) : E("", !0),
1749
- r.value ? E("", !0) : (g(), R(_, {
1744
+ r.value ? E("", !0) : (f(), R(_, {
1750
1745
  key: `periodType-${l(o)}`,
1751
1746
  modelValue: e.value.periodType,
1752
- "onUpdate:modelValue": f[11] || (f[11] = (O) => e.value.periodType = O),
1747
+ "onUpdate:modelValue": b[11] || (b[11] = (j) => e.value.periodType = j),
1753
1748
  label: l(T)("report.section.datasource.periodType.label"),
1754
1749
  items: s.value
1755
1750
  }, null, 8, ["modelValue", "label", "items"])),
1756
- t.config.canTranspose && r.value ? (g(), R(d, {
1751
+ t.config.canTranspose && r.value ? (f(), R(d, {
1757
1752
  key: 7,
1758
1753
  modelValue: e.value.isTransposed,
1759
- "onUpdate:modelValue": f[12] || (f[12] = (O) => e.value.isTransposed = O),
1754
+ "onUpdate:modelValue": b[12] || (b[12] = (j) => e.value.isTransposed = j),
1760
1755
  label: l(T)("report.section.datasource.transpose"),
1761
1756
  "label-placement": "right"
1762
1757
  }, null, 8, ["modelValue", "label"])) : E("", !0),
1763
- t.config.hasBreakdownDimension ? (g(), R(ll, {
1758
+ t.config.hasBreakdownDimension ? (f(), R(ll, {
1764
1759
  key: 8,
1765
1760
  "model-value": e.value.breakdownDimension ? [e.value.breakdownDimension] : [],
1766
1761
  label: "breakdownDimension",
1767
1762
  max: 1,
1768
1763
  options: v.value,
1769
- "onUpdate:modelValue": f[13] || (f[13] = (O) => {
1770
- e.value.breakdownDimension = O[0];
1764
+ "onUpdate:modelValue": b[13] || (b[13] = (j) => {
1765
+ e.value.breakdownDimension = j[0];
1771
1766
  })
1772
1767
  }, null, 8, ["model-value", "options"])) : E("", !0),
1773
- A.value ? (g(), R(ll, {
1768
+ A.value ? (f(), R(ll, {
1774
1769
  key: 9,
1775
1770
  "model-value": e.value.sparklineDimension ? [e.value.sparklineDimension] : [],
1776
1771
  label: "sparklineDimension",
1777
1772
  max: 1,
1778
1773
  options: v.value,
1779
- "onUpdate:modelValue": f[14] || (f[14] = (O) => {
1780
- e.value.sparklineDimension = O[0];
1774
+ "onUpdate:modelValue": b[14] || (b[14] = (j) => {
1775
+ e.value.sparklineDimension = j[0];
1781
1776
  })
1782
1777
  }, null, 8, ["model-value", "options"])) : E("", !0),
1783
1778
  m(yt, {
1784
1779
  modelValue: e.value.metrics,
1785
- "onUpdate:modelValue": f[15] || (f[15] = (O) => e.value.metrics = O),
1780
+ "onUpdate:modelValue": b[15] || (b[15] = (j) => e.value.metrics = j),
1786
1781
  options: v.value,
1787
1782
  max: t.config.maxMetric,
1788
1783
  config: e.value,
1789
1784
  "has-row-column": t.config.type === l(Y).Table,
1790
1785
  "has-xy": t.config.hasXy,
1791
- onConfig: f[16] || (f[16] = (O) => {
1792
- e.value = O;
1786
+ onConfig: b[16] || (b[16] = (j) => {
1787
+ e.value = j;
1793
1788
  })
1794
1789
  }, null, 8, ["modelValue", "options", "max", "config", "has-row-column", "has-xy"]),
1795
1790
  m(Wl, {
1796
1791
  modelValue: e.value.filters,
1797
- "onUpdate:modelValue": f[17] || (f[17] = (O) => e.value.filters = O),
1792
+ "onUpdate:modelValue": b[17] || (b[17] = (j) => e.value.filters = j),
1798
1793
  options: v.value
1799
1794
  }, null, 8, ["modelValue", "options"]),
1800
1795
  m(xt, {
1801
1796
  modelValue: e.value.sorts,
1802
- "onUpdate:modelValue": f[18] || (f[18] = (O) => e.value.sorts = O),
1797
+ "onUpdate:modelValue": b[18] || (b[18] = (j) => e.value.sorts = j),
1803
1798
  options: v.value
1804
1799
  }, null, 8, ["modelValue", "options"]),
1805
1800
  m(kt, {
1806
1801
  modelValue: e.value.limit,
1807
- "onUpdate:modelValue": f[19] || (f[19] = (O) => e.value.limit = O)
1802
+ "onUpdate:modelValue": b[19] || (b[19] = (j) => e.value.limit = j)
1808
1803
  }, null, 8, ["modelValue"]),
1809
- e.value.conditions && c.value ? (g(), R(_, {
1804
+ e.value.conditions && c.value ? (f(), R(_, {
1810
1805
  key: 10,
1811
1806
  "model-value": e.value.joinType ?? "LEFT",
1812
1807
  label: l(T)("report.section.datasource.joinType.label"),
1813
- items: j.value,
1814
- "onUpdate:modelValue": f[20] || (f[20] = (O) => {
1815
- e.value.joinType = O;
1808
+ items: O.value,
1809
+ "onUpdate:modelValue": b[20] || (b[20] = (j) => {
1810
+ e.value.joinType = j;
1816
1811
  })
1817
1812
  }, null, 8, ["model-value", "label", "items"])) : E("", !0),
1818
- e.value.conditions ? (g(), R(Dt, {
1813
+ e.value.conditions ? (f(), R(Dt, {
1819
1814
  key: 11,
1820
1815
  modelValue: e.value.conditions,
1821
- "onUpdate:modelValue": f[21] || (f[21] = (O) => e.value.conditions = O),
1816
+ "onUpdate:modelValue": b[21] || (b[21] = (j) => e.value.conditions = j),
1822
1817
  "join-field-options": v.value,
1823
1818
  "main-field-options": n.value
1824
1819
  }, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : E("", !0)
@@ -1845,14 +1840,14 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1845
1840
  emits: ["update:modelValue"],
1846
1841
  setup(B) {
1847
1842
  const { t: p } = ge(), e = ye(B, "modelValue"), t = B, a = k(() => t.title || p("report.tile.setting"));
1848
- return (U, w) => {
1843
+ return (U, C) => {
1849
1844
  const c = M("FmIcon");
1850
- return g(), X("div", {
1845
+ return f(), X("div", {
1851
1846
  class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
1852
- onClick: w[0] || (w[0] = (T) => e.value = !e.value)
1847
+ onClick: C[0] || (C[0] = (T) => e.value = !e.value)
1853
1848
  }, [
1854
1849
  h("p", Ut, J(a.value), 1),
1855
- w[1] || (w[1] = h("div", { class: "grow" }, null, -1)),
1850
+ C[1] || (C[1] = h("div", { class: "grow" }, null, -1)),
1856
1851
  m(c, {
1857
1852
  name: t.icon
1858
1853
  }, null, 8, ["name"])
@@ -1868,7 +1863,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1868
1863
  emits: ["update:modelValue"],
1869
1864
  setup(B) {
1870
1865
  const p = ye(B, "modelValue");
1871
- return (e, t) => (g(), X(de, null, [
1866
+ return (e, t) => (f(), X(de, null, [
1872
1867
  m(Ye, {
1873
1868
  modelValue: p.value,
1874
1869
  "onUpdate:modelValue": t[0] || (t[0] = (a) => p.value = a),
@@ -1888,7 +1883,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
1888
1883
  const p = ye(B, "modelValue");
1889
1884
  return (e, t) => {
1890
1885
  const a = M("FmTopSheet");
1891
- return g(), X("div", Lt, [
1886
+ return f(), X("div", Lt, [
1892
1887
  m(Ye, {
1893
1888
  modelValue: p.value,
1894
1889
  "onUpdate:modelValue": t[0] || (t[0] = (U) => p.value = U),
@@ -1930,7 +1925,7 @@ function $l(B, p = 600) {
1930
1925
  resetStyleEditing: a
1931
1926
  };
1932
1927
  }
1933
- const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-600" }, Ot = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, jt = { class: "flex gap-16" }, It = { class: "flex flex-col gap-8 max-w-[120px]" }, zt = { class: "fm-typo-en-body-lg-600" }, Rt = { class: "flex flex-col gap-16" }, Pt = { class: "fm-typo-en-body-lg-600" }, Et = { class: "flex flex-row gap-8" }, Wt = /* @__PURE__ */ ue({
1928
+ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-600" }, jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Ot = { class: "flex gap-16" }, zt = { class: "flex flex-col gap-8 max-w-[120px]" }, It = { class: "fm-typo-en-body-lg-600" }, Rt = { class: "flex flex-col gap-16" }, Pt = { class: "fm-typo-en-body-lg-600" }, Et = { class: "flex flex-row gap-8" }, Wt = /* @__PURE__ */ ue({
1934
1929
  __name: "TitleSection",
1935
1930
  props: /* @__PURE__ */ ve({
1936
1931
  title: {},
@@ -1942,7 +1937,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
1942
1937
  }),
1943
1938
  emits: /* @__PURE__ */ ve(["update:model", "update:title", "update:description"], ["update:isEditingStyle"]),
1944
1939
  setup(B, { emit: p }) {
1945
- const e = ye(B, "isEditingStyle"), { markStyleEditing: t } = $l(e), a = B, U = p, { t: w } = ge(), c = He((n) => {
1940
+ const e = ye(B, "isEditingStyle"), { markStyleEditing: t } = $l(e), a = B, U = p, { t: C } = ge(), c = He((n) => {
1946
1941
  U("update:title", n);
1947
1942
  }, 500), T = k({
1948
1943
  get: () => a.title ?? "",
@@ -1981,32 +1976,32 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
1981
1976
  }
1982
1977
  });
1983
1978
  return (n, v) => {
1984
- const I = M("FmTextField"), P = M("FmTextarea"), b = M("FmStepperField"), s = M("FmButton"), j = M("FmSwitch");
1985
- return g(), X(de, null, [
1979
+ const z = M("FmTextField"), P = M("FmTextarea"), y = M("FmStepperField"), s = M("FmButton"), O = M("FmSwitch");
1980
+ return f(), X(de, null, [
1986
1981
  h("div", Mt, [
1987
- m(I, {
1982
+ m(z, {
1988
1983
  modelValue: T.value,
1989
1984
  "onUpdate:modelValue": v[0] || (v[0] = (N) => T.value = N),
1990
- label: l(w)("report.tile.widget.title"),
1991
- placeholder: l(w)("report.tile.widget.titlePlaceholder")
1985
+ label: l(C)("report.tile.widget.title"),
1986
+ placeholder: l(C)("report.tile.widget.titlePlaceholder")
1992
1987
  }, null, 8, ["modelValue", "label", "placeholder"]),
1993
1988
  m(P, {
1994
1989
  modelValue: L.value,
1995
1990
  "onUpdate:modelValue": v[1] || (v[1] = (N) => L.value = N),
1996
1991
  disabled: T.value === "",
1997
- placeholder: l(w)("report.tile.widget.descriptionPlaceholder"),
1998
- "helper-text": l(w)("report.tile.widget.descriptionHelper")
1992
+ placeholder: l(C)("report.tile.widget.descriptionPlaceholder"),
1993
+ "helper-text": l(C)("report.tile.widget.descriptionHelper")
1999
1994
  }, {
2000
1995
  label: Q(() => [
2001
- h("p", Nt, J(l(w)("report.tile.widget.widgetDescription")), 1),
2002
- h("p", Ot, " (" + J(l(w)("report.tile.widget.optional")) + ") ", 1)
1996
+ h("p", Nt, J(l(C)("report.tile.widget.widgetDescription")), 1),
1997
+ h("p", jt, " (" + J(l(C)("report.tile.widget.optional")) + ") ", 1)
2003
1998
  ]),
2004
1999
  _: 1
2005
2000
  }, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
2006
- h("div", jt, [
2007
- h("div", It, [
2008
- h("p", zt, J(l(w)("report.section.datasource.title.titleFontSize")), 1),
2009
- m(b, {
2001
+ h("div", Ot, [
2002
+ h("div", zt, [
2003
+ h("p", It, J(l(C)("report.section.datasource.title.titleFontSize")), 1),
2004
+ m(y, {
2010
2005
  modelValue: r.value,
2011
2006
  "onUpdate:modelValue": v[2] || (v[2] = (N) => r.value = N),
2012
2007
  max: 24,
@@ -2015,7 +2010,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2015
2010
  }, null, 8, ["modelValue"])
2016
2011
  ]),
2017
2012
  h("div", Rt, [
2018
- h("p", Pt, J(l(w)("report.section.datasource.title.textStyleFormat")), 1),
2013
+ h("p", Pt, J(l(C)("report.section.datasource.title.textStyleFormat")), 1),
2019
2014
  h("div", Et, [
2020
2015
  m(s, {
2021
2016
  "append-icon": "format_bold",
@@ -2046,10 +2041,10 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2046
2041
  ])
2047
2042
  ])
2048
2043
  ]),
2049
- m(j, {
2044
+ m(O, {
2050
2045
  modelValue: o.value,
2051
2046
  "onUpdate:modelValue": v[6] || (v[6] = (N) => o.value = N),
2052
- label: l(w)("report.section.datasource.title.showTitle"),
2047
+ label: l(C)("report.section.datasource.title.showTitle"),
2053
2048
  "label-placement": "right"
2054
2049
  }, null, 8, ["modelValue", "label"])
2055
2050
  ], 64);
@@ -2072,52 +2067,52 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2072
2067
  }),
2073
2068
  emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue", "update:isEditingStyle"]),
2074
2069
  setup(B, { emit: p }) {
2075
- var j, N;
2076
- const e = et(), { dateRange: t, timezone: a } = je(e), U = {
2070
+ var O, N;
2071
+ const e = et(), { dateRange: t, timezone: a } = Oe(e), U = {
2077
2072
  startDate: t.value.startDate,
2078
2073
  endDate: t.value.endDate
2079
- }, w = le({
2080
- startDate: (j = qe(t.value.startDate)) == null ? void 0 : j.tz(a.value).format(yl),
2074
+ }, C = le({
2075
+ startDate: (O = qe(t.value.startDate)) == null ? void 0 : O.tz(a.value).format(yl),
2081
2076
  endDate: (N = qe(t.value.endDate)) == null ? void 0 : N.tz(a.value).format(yl)
2082
2077
  });
2083
2078
  Ve(
2084
- w,
2079
+ C,
2085
2080
  () => {
2086
- w.value.endDate || (w.value.endDate = w.value.startDate);
2087
- const f = {
2088
- startDate: qe.tz(w.value.startDate, a.value).startOf("day").utc().toISOString(),
2089
- endDate: qe.tz(w.value.endDate, a.value).endOf("day").utc().toISOString()
2081
+ C.value.endDate || (C.value.endDate = C.value.startDate);
2082
+ const b = {
2083
+ startDate: qe.tz(C.value.startDate, a.value).startOf("day").utc().toISOString(),
2084
+ endDate: qe.tz(C.value.endDate, a.value).endOf("day").utc().toISOString()
2090
2085
  };
2091
- t.value = f;
2086
+ t.value = b;
2092
2087
  },
2093
2088
  { deep: !0 }
2094
2089
  ), nl(() => {
2095
2090
  t.value = { ...U };
2096
2091
  });
2097
2092
  const c = ye(B, "modelValue"), T = ye(B, "isEditingStyle"), { breakpoints: L } = Vl(), o = B, { promptMessage: r } = Fl(), i = p, { t: x, locale: A } = ge();
2098
- function n(f) {
2099
- c.value = ct(f);
2093
+ function n(b) {
2094
+ c.value = ct(b);
2100
2095
  }
2101
2096
  function v() {
2102
- const f = [...c.value.widget.config.joinDatasources || []];
2103
- f.push({ ...ql(c.value.widget.type), conditions: [] }), n({
2097
+ const b = [...c.value.widget.config.joinDatasources || []];
2098
+ b.push({ ...ql(c.value.widget.type), conditions: [] }), n({
2104
2099
  ...c.value,
2105
2100
  widget: {
2106
2101
  ...c.value.widget,
2107
2102
  config: {
2108
2103
  ...c.value.widget.config,
2109
- joinDatasources: f
2104
+ joinDatasources: b
2110
2105
  }
2111
2106
  }
2112
2107
  });
2113
2108
  }
2114
- async function I(f) {
2109
+ async function z(b) {
2115
2110
  if (!await r({
2116
2111
  title: x("report.tile.datasource.remove"),
2117
- message: x("report.tile.datasource.confirmRemove", { index: f + 1 })
2112
+ message: x("report.tile.datasource.confirmRemove", { index: b + 1 })
2118
2113
  })) return;
2119
2114
  const d = [...c.value.widget.config.joinDatasources || []];
2120
- d.splice(f, 1), n({
2115
+ d.splice(b, 1), n({
2121
2116
  ...c.value,
2122
2117
  widget: {
2123
2118
  ...c.value.widget,
@@ -2128,9 +2123,9 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2128
2123
  }
2129
2124
  });
2130
2125
  }
2131
- const P = (f, F) => {
2126
+ const P = (b, V) => {
2132
2127
  let d = 1, _ = 1;
2133
- switch (f) {
2128
+ switch (b) {
2134
2129
  case Y.Scorecard:
2135
2130
  d = 1, _ = 2;
2136
2131
  break;
@@ -2152,53 +2147,53 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2152
2147
  break;
2153
2148
  }
2154
2149
  return {
2155
- id: F.id,
2150
+ id: V.id,
2156
2151
  size: {
2157
2152
  height: d,
2158
2153
  width: _
2159
2154
  },
2160
2155
  widget: {
2161
- ...F.widget,
2162
- type: f
2156
+ ...V.widget,
2157
+ type: b
2163
2158
  }
2164
2159
  };
2165
- }, b = k(
2166
- () => Ke.find((f) => f.type === c.value.widget.type)
2160
+ }, y = k(
2161
+ () => Ke.find((b) => b.type === c.value.widget.type)
2167
2162
  ), s = k(() => c.value.widget.config.joinDatasources);
2168
2163
  return Ve(
2169
2164
  () => c.value.size.height,
2170
- (f) => {
2171
- f < 1 && (c.value.size.height = 1), f > 12 && (c.value.size.height = 12);
2165
+ (b) => {
2166
+ b < 1 && (c.value.size.height = 1), b > 12 && (c.value.size.height = 12);
2172
2167
  }
2173
2168
  ), Ve(
2174
2169
  () => c.value.size.width,
2175
- (f) => {
2176
- f < 1 && (c.value.size.width = 1), f > 12 && (c.value.size.width = 12);
2170
+ (b) => {
2171
+ b < 1 && (c.value.size.width = 1), b > 12 && (c.value.size.width = 12);
2177
2172
  }
2178
- ), (f, F) => {
2179
- const d = M("FmCircularProgress"), _ = M("FmSimpleDateRangePicker"), K = M("FmStepperField"), O = M("FmButton"), y = M("FmForm");
2180
- return g(), R(hl(l(L).lg || l(L).md ? Bt : At), {
2173
+ ), (b, V) => {
2174
+ const d = M("FmCircularProgress"), _ = M("FmSimpleDateRangePicker"), K = M("FmStepperField"), j = M("FmButton"), g = M("FmForm");
2175
+ return f(), R(hl(l(L).lg || l(L).md ? Bt : At), {
2181
2176
  "model-value": o.hideConfiguration,
2182
- "onUpdate:modelValue": F[10] || (F[10] = (V) => i("hideConfiguration", V))
2177
+ "onUpdate:modelValue": V[10] || (V[10] = (F) => i("hideConfiguration", F))
2183
2178
  }, {
2184
2179
  default: Q(() => [
2185
- c.value ? (g(), R(y, {
2180
+ c.value ? (f(), R(g, {
2186
2181
  key: 1,
2187
2182
  ref: "form",
2188
2183
  class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
2189
2184
  }, {
2190
2185
  default: Q(() => [
2191
2186
  h("div", Xt, [
2192
- (g(), R(_, {
2187
+ (f(), R(_, {
2193
2188
  key: `date-picker-${l(A)}`,
2194
- modelValue: w.value,
2195
- "onUpdate:modelValue": F[0] || (F[0] = (V) => w.value = V)
2189
+ modelValue: C.value,
2190
+ "onUpdate:modelValue": V[0] || (V[0] = (F) => C.value = F)
2196
2191
  }, null, 8, ["modelValue"]))
2197
2192
  ]),
2198
2193
  m(ol, null, {
2199
2194
  header: Q(() => [
2200
2195
  h("p", qt, J(l(x)("report.tile.widget.details")), 1),
2201
- F[11] || (F[11] = h("div", { class: "grow" }, null, -1))
2196
+ V[11] || (V[11] = h("div", { class: "grow" }, null, -1))
2202
2197
  ]),
2203
2198
  content: Q(() => [
2204
2199
  m(Wt, {
@@ -2206,24 +2201,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2206
2201
  description: c.value.widget.description,
2207
2202
  model: c.value.widget.config,
2208
2203
  "is-editing-style": T.value,
2209
- "onUpdate:isEditingStyle": F[1] || (F[1] = (V) => T.value = V),
2210
- "onUpdate:title": F[2] || (F[2] = (V) => c.value.widget.title = V),
2211
- "onUpdate:description": F[3] || (F[3] = (V) => c.value.widget.description = V),
2212
- "onUpdate:model": F[4] || (F[4] = (V) => c.value.widget.config = V)
2204
+ "onUpdate:isEditingStyle": V[1] || (V[1] = (F) => T.value = F),
2205
+ "onUpdate:title": V[2] || (V[2] = (F) => c.value.widget.title = F),
2206
+ "onUpdate:description": V[3] || (V[3] = (F) => c.value.widget.description = F),
2207
+ "onUpdate:model": V[4] || (V[4] = (F) => c.value.widget.config = F)
2213
2208
  }, null, 8, ["title", "description", "model", "is-editing-style"]),
2214
2209
  h("div", {
2215
2210
  class: $e(["flex flex-row", `${l(L).sm || l(L).xs ? "gap-16" : "gap-2"}`])
2216
2211
  }, [
2217
2212
  m(K, {
2218
2213
  modelValue: c.value.size.width,
2219
- "onUpdate:modelValue": F[5] || (F[5] = (V) => c.value.size.width = V),
2214
+ "onUpdate:modelValue": V[5] || (V[5] = (F) => c.value.size.width = F),
2220
2215
  label: l(x)("report.tile.widget.width"),
2221
2216
  min: 1,
2222
2217
  max: 12
2223
2218
  }, null, 8, ["modelValue", "label"]),
2224
2219
  m(K, {
2225
2220
  modelValue: c.value.size.height,
2226
- "onUpdate:modelValue": F[6] || (F[6] = (V) => c.value.size.height = V),
2221
+ "onUpdate:modelValue": V[6] || (V[6] = (F) => c.value.size.height = F),
2227
2222
  label: l(x)("report.tile.widget.height"),
2228
2223
  min: 1,
2229
2224
  max: 12,
@@ -2236,7 +2231,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2236
2231
  m(ol, null, {
2237
2232
  header: Q(() => [
2238
2233
  h("p", null, J(l(x)("report.tile.widget.type")), 1),
2239
- F[12] || (F[12] = h("div", { class: "grow" }, null, -1))
2234
+ V[12] || (V[12] = h("div", { class: "grow" }, null, -1))
2240
2235
  ]),
2241
2236
  content: Q(() => [
2242
2237
  m(Xl, {
@@ -2245,30 +2240,30 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2245
2240
  class: "grid grid-cols-1 gap-2",
2246
2241
  "child-class": "flex flex-row p-[8px] gap-2",
2247
2242
  "exclude-widge-type": [l(Y).Spacer],
2248
- "onUpdate:modelValue": F[7] || (F[7] = (V) => c.value = P(V, c.value))
2243
+ "onUpdate:modelValue": V[7] || (V[7] = (F) => c.value = P(F, c.value))
2249
2244
  }, null, 8, ["model-value", "exclude-widge-type"])
2250
2245
  ]),
2251
2246
  _: 1
2252
2247
  }),
2253
2248
  m(gl, {
2254
2249
  modelValue: c.value.widget.config,
2255
- "onUpdate:modelValue": F[8] || (F[8] = (V) => c.value.widget.config = V),
2250
+ "onUpdate:modelValue": V[8] || (V[8] = (F) => c.value.widget.config = F),
2256
2251
  label: l(x)("report.tile.datasource.main"),
2257
- config: b.value
2252
+ config: y.value
2258
2253
  }, null, 8, ["modelValue", "label", "config"]),
2259
- s.value ? (g(!0), X(de, { key: 0 }, _e(s.value, (V, u) => (g(), X("div", { key: u }, [
2254
+ s.value ? (f(!0), X(de, { key: 0 }, _e(s.value, (F, u) => (f(), X("div", { key: u }, [
2260
2255
  m(gl, {
2261
2256
  modelValue: s.value[u],
2262
2257
  "onUpdate:modelValue": ($) => s.value[u] = $,
2263
2258
  label: l(x)("report.tile.datasource.join", { index: u + 1 }),
2264
- config: b.value,
2259
+ config: y.value,
2265
2260
  "main-datasource-config": c.value.widget.config,
2266
2261
  closeable: !0,
2267
- onClickClose: ($) => I(u)
2262
+ onClickClose: ($) => z(u)
2268
2263
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
2269
2264
  ]))), 128)) : E("", !0),
2270
2265
  h("div", Ht, [
2271
- m(O, {
2266
+ m(j, {
2272
2267
  label: l(x)("report.tile.datasource.joinButton"),
2273
2268
  variant: "secondary",
2274
2269
  icon: "add",
@@ -2276,12 +2271,12 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2276
2271
  "border-color": "primary",
2277
2272
  "text-color": "primary",
2278
2273
  class: "w-full",
2279
- onClick: F[9] || (F[9] = (V) => v())
2274
+ onClick: V[9] || (V[9] = (F) => v())
2280
2275
  }, null, 8, ["label"])
2281
2276
  ])
2282
2277
  ]),
2283
2278
  _: 1
2284
- }, 512)) : (g(), R(d, { key: 0 }))
2279
+ }, 512)) : (f(), R(d, { key: 0 }))
2285
2280
  ]),
2286
2281
  _: 1
2287
2282
  }, 8, ["model-value"]);
@@ -2299,7 +2294,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2299
2294
  set: (x) => {
2300
2295
  t("update:model", { ...e.model, showLabel: x });
2301
2296
  }
2302
- }), w = k({
2297
+ }), C = k({
2303
2298
  get: () => e.model.labelRotation ?? 0,
2304
2299
  set: (x) => t("update:model", { ...e.model, labelRotation: x })
2305
2300
  }), c = k({
@@ -2332,8 +2327,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2332
2327
  { icon: "format_align_right", value: Ze.end, tooltip: "anchorEnd" }
2333
2328
  ];
2334
2329
  return (x, A) => {
2335
- const n = M("FmCheckbox"), v = M("FmButton"), I = M("FmTooltip"), P = M("FmTextField"), b = M("FmStepperField");
2336
- return g(), X("div", Gt, [
2330
+ const n = M("FmCheckbox"), v = M("FmButton"), z = M("FmTooltip"), P = M("FmTextField"), y = M("FmStepperField");
2331
+ return f(), X("div", Gt, [
2337
2332
  m(n, {
2338
2333
  modelValue: U.value,
2339
2334
  "onUpdate:modelValue": A[0] || (A[0] = (s) => U.value = s),
@@ -2345,8 +2340,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2345
2340
  ke(h("div", Yt, [
2346
2341
  h("p", Jt, J(l(a)("report.section.datasource.alignment.textAlignment")), 1),
2347
2342
  h("div", Kt, [
2348
- (g(), X(de, null, _e(r, ({ icon: s, value: j, tooltip: N }) => m(I, {
2349
- key: j,
2343
+ (f(), X(de, null, _e(r, ({ icon: s, value: O, tooltip: N }) => m(z, {
2344
+ key: O,
2350
2345
  variant: "plain",
2351
2346
  placement: "top",
2352
2347
  content: l(a)(`report.section.datasource.alignment.alignOptions.${N}`),
@@ -2356,10 +2351,10 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2356
2351
  m(v, {
2357
2352
  "append-icon": s,
2358
2353
  variant: "tertiary",
2359
- "icon-color": x.model.labelAlign === j ? "neutral-gray-400" : "neutral-gray-300",
2360
- "bg-color": x.model.labelAlign === j ? "neutral-gray-100" : "neutral-white",
2354
+ "icon-color": x.model.labelAlign === O ? "neutral-gray-400" : "neutral-gray-300",
2355
+ "bg-color": x.model.labelAlign === O ? "neutral-gray-100" : "neutral-white",
2361
2356
  class: "rounded-sm",
2362
- onClick: (f) => L(j)
2357
+ onClick: (b) => L(O)
2363
2358
  }, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
2364
2359
  ]),
2365
2360
  _: 2
@@ -2367,8 +2362,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2367
2362
  ]),
2368
2363
  h("p", Qt, J(l(a)("report.section.datasource.alignment.anchor")), 1),
2369
2364
  h("div", Zt, [
2370
- (g(), X(de, null, _e(i, ({ icon: s, value: j, tooltip: N }) => m(I, {
2371
- key: j,
2365
+ (f(), X(de, null, _e(i, ({ icon: s, value: O, tooltip: N }) => m(z, {
2366
+ key: O,
2372
2367
  variant: "plain",
2373
2368
  placement: "top",
2374
2369
  content: l(a)(`report.section.datasource.alignment.anchorOptions.${N}`),
@@ -2378,18 +2373,18 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2378
2373
  m(v, {
2379
2374
  "append-icon": s,
2380
2375
  variant: "tertiary",
2381
- "icon-color": x.model.labelAnchor === j ? "neutral-gray-400" : "neutral-gray-300",
2382
- "bg-color": x.model.labelAnchor === j ? "neutral-gray-100" : "neutral-white",
2376
+ "icon-color": x.model.labelAnchor === O ? "neutral-gray-400" : "neutral-gray-300",
2377
+ "bg-color": x.model.labelAnchor === O ? "neutral-gray-100" : "neutral-white",
2383
2378
  class: "rounded-sm",
2384
- onClick: (f) => o(j)
2379
+ onClick: (b) => o(O)
2385
2380
  }, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
2386
2381
  ]),
2387
2382
  _: 2
2388
2383
  }, 1032, ["content"])), 64))
2389
2384
  ]),
2390
2385
  m(P, {
2391
- modelValue: w.value,
2392
- "onUpdate:modelValue": A[1] || (A[1] = (s) => w.value = s),
2386
+ modelValue: C.value,
2387
+ "onUpdate:modelValue": A[1] || (A[1] = (s) => C.value = s),
2393
2388
  label: l(a)("report.section.datasource.alignment.rotation"),
2394
2389
  type: "number",
2395
2390
  min: -180,
@@ -2402,7 +2397,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2402
2397
  label: l(a)("report.section.datasource.alignment.offset"),
2403
2398
  type: "number"
2404
2399
  }, null, 8, ["modelValue", "label"]),
2405
- m(b, {
2400
+ m(y, {
2406
2401
  modelValue: T.value,
2407
2402
  "onUpdate:modelValue": A[3] || (A[3] = (s) => T.value = s),
2408
2403
  label: l(a)("report.section.datasource.fontSize"),
@@ -2427,7 +2422,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2427
2422
  set: (n) => {
2428
2423
  t("update:model", { ...e.model, showX: n });
2429
2424
  }
2430
- }), w = k({
2425
+ }), C = k({
2431
2426
  get: () => e.model.showXGrid ?? !1,
2432
2427
  set: (n) => {
2433
2428
  t("update:model", { ...e.model, showXGrid: n });
@@ -2467,13 +2462,13 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2467
2462
  }, 500), A = He((n) => {
2468
2463
  t("update:model", { ...e.model, yTitle: n });
2469
2464
  }, 500);
2470
- return wl(() => {
2471
- var n, v, I, P;
2472
- !e.model.xTitle && ((v = (n = e.model.metrics) == null ? void 0 : n[0]) != null && v.label) && x(e.model.metrics[0].label), !e.model.yTitle && ((P = (I = e.model.dimensions) == null ? void 0 : I[0]) != null && P.label) && A(e.model.dimensions[0].label);
2465
+ return Cl(() => {
2466
+ var n, v, z, P;
2467
+ !e.model.xTitle && ((v = (n = e.model.metrics) == null ? void 0 : n[0]) != null && v.label) && x(e.model.metrics[0].label), !e.model.yTitle && ((P = (z = e.model.dimensions) == null ? void 0 : z[0]) != null && P.label) && A(e.model.dimensions[0].label);
2473
2468
  }), (n, v) => {
2474
- const I = M("FmCheckbox"), P = M("FmStepperField"), b = M("FmTextField");
2475
- return g(), X("div", lo, [
2476
- m(I, {
2469
+ const z = M("FmCheckbox"), P = M("FmStepperField"), y = M("FmTextField");
2470
+ return f(), X("div", lo, [
2471
+ m(z, {
2477
2472
  modelValue: U.value,
2478
2473
  "onUpdate:modelValue": v[0] || (v[0] = (s) => U.value = s),
2479
2474
  label: l(a)("report.section.datasource.axis.showX"),
@@ -2481,14 +2476,14 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2481
2476
  value: !0
2482
2477
  }, null, 8, ["modelValue", "label"]),
2483
2478
  ke(h("div", to, [
2484
- m(I, {
2485
- modelValue: w.value,
2486
- "onUpdate:modelValue": v[1] || (v[1] = (s) => w.value = s),
2479
+ m(z, {
2480
+ modelValue: C.value,
2481
+ "onUpdate:modelValue": v[1] || (v[1] = (s) => C.value = s),
2487
2482
  label: l(a)("report.section.datasource.axis.showGrid"),
2488
2483
  "label-placement": "right",
2489
2484
  value: !1
2490
2485
  }, null, 8, ["modelValue", "label"]),
2491
- m(I, {
2486
+ m(z, {
2492
2487
  modelValue: c.value,
2493
2488
  "onUpdate:modelValue": v[2] || (v[2] = (s) => c.value = s),
2494
2489
  label: l(a)("report.section.datasource.axis.showTick"),
@@ -2508,7 +2503,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2508
2503
  ], 512), [
2509
2504
  [Te, n.model.showXTick ?? !0]
2510
2505
  ]),
2511
- m(I, {
2506
+ m(z, {
2512
2507
  modelValue: r.value,
2513
2508
  "onUpdate:modelValue": v[4] || (v[4] = (s) => r.value = s),
2514
2509
  label: l(a)("report.section.datasource.axis.showTitle"),
@@ -2516,7 +2511,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2516
2511
  value: !0
2517
2512
  }, null, 8, ["modelValue", "label"]),
2518
2513
  ke(h("div", ao, [
2519
- m(b, {
2514
+ m(y, {
2520
2515
  "model-value": n.model.xTitle,
2521
2516
  label: l(a)("report.common.title"),
2522
2517
  placeholder: l(a)("report.tile.widget.titlePlaceholder"),
@@ -2537,7 +2532,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2537
2532
  ], 512), [
2538
2533
  [Te, n.model.showX ?? !0]
2539
2534
  ]),
2540
- m(I, {
2535
+ m(z, {
2541
2536
  modelValue: T.value,
2542
2537
  "onUpdate:modelValue": v[6] || (v[6] = (s) => T.value = s),
2543
2538
  label: l(a)("report.section.datasource.axis.showY"),
@@ -2545,14 +2540,14 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2545
2540
  value: !0
2546
2541
  }, null, 8, ["modelValue", "label"]),
2547
2542
  ke(h("div", no, [
2548
- m(I, {
2543
+ m(z, {
2549
2544
  modelValue: L.value,
2550
2545
  "onUpdate:modelValue": v[7] || (v[7] = (s) => L.value = s),
2551
2546
  label: l(a)("report.section.datasource.axis.showGrid"),
2552
2547
  "label-placement": "right",
2553
2548
  value: !1
2554
2549
  }, null, 8, ["modelValue", "label"]),
2555
- m(I, {
2550
+ m(z, {
2556
2551
  modelValue: o.value,
2557
2552
  "onUpdate:modelValue": v[8] || (v[8] = (s) => o.value = s),
2558
2553
  label: l(a)("report.section.datasource.axis.showTick"),
@@ -2572,7 +2567,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2572
2567
  ], 512), [
2573
2568
  [Te, n.model.showYTick ?? !0]
2574
2569
  ]),
2575
- m(I, {
2570
+ m(z, {
2576
2571
  modelValue: i.value,
2577
2572
  "onUpdate:modelValue": v[10] || (v[10] = (s) => i.value = s),
2578
2573
  label: l(a)("report.section.datasource.axis.showTitle"),
@@ -2580,7 +2575,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2580
2575
  value: !0
2581
2576
  }, null, 8, ["modelValue", "label"]),
2582
2577
  ke(h("div", so, [
2583
- m(b, {
2578
+ m(y, {
2584
2579
  "model-value": n.model.yTitle,
2585
2580
  label: l(a)("report.common.title"),
2586
2581
  placeholder: l(a)("report.tile.widget.titlePlaceholder"),
@@ -2617,7 +2612,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2617
2612
  { label: a("report.section.datasource.position.bottom"), value: "bottom" },
2618
2613
  { label: a("report.section.datasource.position.left"), value: "left" },
2619
2614
  { label: a("report.section.datasource.position.right"), value: "right" }
2620
- ], w = k({
2615
+ ], C = k({
2621
2616
  get: () => e.model.showLegend !== void 0 ? e.model.showLegend : e.isCircularWidget === !0,
2622
2617
  set: (A) => {
2623
2618
  t("update:model", { ...e.model, showLegend: A });
@@ -2651,11 +2646,11 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2651
2646
  (A = r.value) == null || A.click();
2652
2647
  }
2653
2648
  return (A, n) => {
2654
- const v = M("FmCheckbox"), I = M("FmSelect"), P = M("FmStepperField"), b = M("FmButton");
2655
- return g(), X("div", uo, [
2649
+ const v = M("FmCheckbox"), z = M("FmSelect"), P = M("FmStepperField"), y = M("FmButton");
2650
+ return f(), X("div", uo, [
2656
2651
  m(v, {
2657
- modelValue: w.value,
2658
- "onUpdate:modelValue": n[0] || (n[0] = (s) => w.value = s),
2652
+ modelValue: C.value,
2653
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => C.value = s),
2659
2654
  class: "fm-typo-en-body-lg-400",
2660
2655
  value: !1,
2661
2656
  label: l(a)("report.section.datasource.legend.showLegend")
@@ -2667,7 +2662,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2667
2662
  label: l(a)("report.section.datasource.legend.usePointStyle"),
2668
2663
  value: !1
2669
2664
  }, null, 8, ["modelValue", "label"]),
2670
- m(I, {
2665
+ m(z, {
2671
2666
  label: l(a)("report.section.datasource.position.showPosition"),
2672
2667
  items: U,
2673
2668
  "model-value": A.model.legendPosition ?? "top",
@@ -2689,8 +2684,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2689
2684
  tabindex: "0",
2690
2685
  onClick: x,
2691
2686
  onKeydown: [
2692
- dl(Ce(x, ["prevent"]), ["enter"]),
2693
- dl(Ce(x, ["prevent"]), ["space"])
2687
+ dl(we(x, ["prevent"]), ["enter"]),
2688
+ dl(we(x, ["prevent"]), ["space"])
2694
2689
  ]
2695
2690
  }, [
2696
2691
  ke(h("input", {
@@ -2700,25 +2695,25 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2700
2695
  type: "color",
2701
2696
  class: "legend-color-input cursor-pointer"
2702
2697
  }, null, 512), [
2703
- [Il, o.value]
2698
+ [zl, o.value]
2704
2699
  ])
2705
2700
  ], 40, po),
2706
- m(b, {
2701
+ m(y, {
2707
2702
  size: "md",
2708
2703
  label: l(a)("report.common.apply"),
2709
2704
  disabled: o.value === L.value,
2710
2705
  onClick: i
2711
2706
  }, null, 8, ["label", "disabled"])
2712
2707
  ], 512), [
2713
- [Te, w.value]
2708
+ [Te, C.value]
2714
2709
  ])
2715
2710
  ]);
2716
2711
  };
2717
2712
  }
2718
- }), fo = /* @__PURE__ */ kl(vo, [["__scopeId", "data-v-0e072961"]]), go = { class: "flex flex-col gap-8" }, yo = { class: "flex flex-col sm:flex-row items-center" }, bo = { class: "flex flex-col gap-8" }, ho = { class: "flex w-full gap-8 text-fm-color-system-info-300" }, wo = {
2713
+ }), fo = /* @__PURE__ */ kl(vo, [["__scopeId", "data-v-0e072961"]]), go = { class: "flex flex-col gap-8" }, yo = { class: "flex flex-col sm:flex-row items-center" }, bo = { class: "flex flex-col gap-8" }, ho = { class: "flex w-full gap-8 text-fm-color-system-info-300" }, Co = {
2719
2714
  key: 1,
2720
2715
  class: "grid grid-cols-1 gap-8 sm:grid-cols-2"
2721
- }, Co = ["title"], xo = ["aria-label"], Fo = { class: "min-w-0 truncate text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, Vo = ["value", "onInput", "onChange"], ko = {
2716
+ }, wo = ["title"], xo = ["aria-label"], Fo = { class: "min-w-0 truncate text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, Vo = ["value", "onInput", "onChange"], ko = {
2722
2717
  key: 0,
2723
2718
  class: "flex items-center gap-8"
2724
2719
  }, _o = {
@@ -2755,26 +2750,26 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2755
2750
  value: ie.breakdown
2756
2751
  }
2757
2752
  ]);
2758
- function w(C) {
2759
- return e.limitToSeriesMode ? ie.series : C === ie.breakdown ? ie.breakdown : C === ie.metric ? ie.metric : ie.series;
2753
+ function C(w) {
2754
+ return e.limitToSeriesMode ? ie.series : w === ie.breakdown ? ie.breakdown : w === ie.metric ? ie.metric : ie.series;
2760
2755
  }
2761
2756
  function c() {
2762
- const C = Array.isArray(e.model.metrics) ? e.model.metrics : [];
2757
+ const w = Array.isArray(e.model.metrics) ? e.model.metrics : [];
2763
2758
  if (!e.model.isBlend)
2764
- return C;
2759
+ return w;
2765
2760
  const S = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
2766
2761
  (D) => Array.isArray(D == null ? void 0 : D.metrics) ? D.metrics : []
2767
2762
  ) : [];
2768
- return [...C, ...S];
2763
+ return [...w, ...S];
2769
2764
  }
2770
- function T(C, S) {
2765
+ function T(w, S) {
2771
2766
  var W, G;
2772
- return C ? ((W = C.label) == null ? void 0 : W.trim()) || ((G = C.name) == null ? void 0 : G.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${S + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${S + 1}`;
2767
+ return w ? ((W = w.label) == null ? void 0 : W.trim()) || ((G = w.name) == null ? void 0 : G.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${S + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${S + 1}`;
2773
2768
  }
2774
- function L(C) {
2775
- if (C === ie.breakdown)
2769
+ function L(w) {
2770
+ if (w === ie.breakdown)
2776
2771
  return [];
2777
- if (C === ie.metric) {
2772
+ if (w === ie.metric) {
2778
2773
  const S = c();
2779
2774
  if (S.length > 0)
2780
2775
  return S.map((D, W) => T(D, W));
@@ -2783,61 +2778,61 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2783
2778
  (S, D) => `${a("report.section.datasource.chartColor.series")} ${D + 1}`
2784
2779
  );
2785
2780
  }
2786
- function o(C) {
2787
- return Array.from({ length: Math.max(1, C) }).map(
2781
+ function o(w) {
2782
+ return Array.from({ length: Math.max(1, w) }).map(
2788
2783
  (S, D) => `${a("report.section.datasource.chartColor.series")} ${D + 1}`
2789
2784
  );
2790
2785
  }
2791
- function r(C, S) {
2792
- const D = Array.isArray(C) ? C.length : 0, W = Array.isArray(S) ? S.length : 0;
2786
+ function r(w, S) {
2787
+ const D = Array.isArray(w) ? w.length : 0, W = Array.isArray(S) ? S.length : 0;
2793
2788
  return Math.max(fe.length, D, W, 1);
2794
2789
  }
2795
2790
  const i = k(() => {
2796
- const C = c();
2797
- return C.length === 0 ? [a("report.section.datasource.styleTarget.metric")] : C.map((S, D) => T(S, D));
2791
+ const w = c();
2792
+ return w.length === 0 ? [a("report.section.datasource.styleTarget.metric")] : w.map((S, D) => T(S, D));
2798
2793
  }), x = le(fe.length), A = le(fe.length);
2799
- function n(C, S) {
2800
- const D = Math.max(1, S), W = Array.isArray(C) ? C.length : 0, G = W > 0 ? Math.ceil(W / D) : 0;
2794
+ function n(w, S) {
2795
+ const D = Math.max(1, S), W = Array.isArray(w) ? w.length : 0, G = W > 0 ? Math.ceil(W / D) : 0;
2801
2796
  return Math.max(fe.length, G, 1);
2802
2797
  }
2803
2798
  const v = k(() => {
2804
- const C = Math.max(1, A.value);
2805
- return Array.from({ length: C }).map(
2799
+ const w = Math.max(1, A.value);
2800
+ return Array.from({ length: w }).map(
2806
2801
  (S, D) => `${a("report.section.datasource.styleTarget.breakdown")} ${D + 1}`
2807
2802
  );
2808
2803
  });
2809
- function I(C, S) {
2810
- const D = N(C) ?? "#000000", W = (G) => {
2804
+ function z(w, S) {
2805
+ const D = N(w) ?? "#000000", W = (G) => {
2811
2806
  const q = Number.parseInt(D.slice(G, G + 2), 16);
2812
2807
  return Math.round(q + (255 - q) * S).toString(16).padStart(2, "0").toUpperCase();
2813
2808
  };
2814
2809
  return `#${W(1)}${W(3)}${W(5)}`;
2815
2810
  }
2816
- function P(C) {
2817
- return Math.min(0.55 + (C - 1) * 0.18, 0.95);
2811
+ function P(w) {
2812
+ return Math.min(0.55 + (w - 1) * 0.18, 0.95);
2818
2813
  }
2819
- function b(C, S, D) {
2820
- return C * D + S;
2814
+ function y(w, S, D) {
2815
+ return w * D + S;
2821
2816
  }
2822
- function s(C, S, D, W) {
2817
+ function s(w, S, D, W) {
2823
2818
  const G = S.length;
2824
- if (C.length === 0 || G <= 0)
2819
+ if (w.length === 0 || G <= 0)
2825
2820
  return [];
2826
- const q = el(C.length);
2827
- return C.flatMap((H, te) => {
2828
- const Z = q[te], me = D == null ? void 0 : D[b(te, 0, G)], Le = N(me) ?? Z;
2821
+ const q = el(w.length);
2822
+ return w.flatMap((H, te) => {
2823
+ const Z = q[te], me = D == null ? void 0 : D[y(te, 0, G)], Le = N(me) ?? Z;
2829
2824
  return S.map((Qe, Ae) => {
2830
- const jl = b(te, Ae, G), ul = Ae === 0 ? Le : I(Le, P(Ae));
2831
- return W && Ae > 0 ? ul : N(D == null ? void 0 : D[jl]) ?? ul;
2825
+ const Ol = y(te, Ae, G), ul = Ae === 0 ? Le : z(Le, P(Ae));
2826
+ return W && Ae > 0 ? ul : N(D == null ? void 0 : D[Ol]) ?? ul;
2832
2827
  });
2833
2828
  });
2834
2829
  }
2835
- const j = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
2836
- function N(C) {
2837
- if (!C)
2830
+ const O = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
2831
+ function N(w) {
2832
+ if (!w)
2838
2833
  return null;
2839
- const S = C.trim();
2840
- if (!j.test(S))
2834
+ const S = w.trim();
2835
+ if (!O.test(S))
2841
2836
  return null;
2842
2837
  if (S.length === 4) {
2843
2838
  const D = S.charAt(1), W = S.charAt(2), G = S.charAt(3);
@@ -2845,23 +2840,23 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2845
2840
  }
2846
2841
  return S.toUpperCase();
2847
2842
  }
2848
- function f() {
2849
- const C = () => Math.floor(Math.random() * 256).toString(16).padStart(2, "0").toUpperCase();
2850
- return `#${C()}${C()}${C()}`;
2843
+ function b() {
2844
+ const w = () => Math.floor(Math.random() * 256).toString(16).padStart(2, "0").toUpperCase();
2845
+ return `#${w()}${w()}${w()}`;
2851
2846
  }
2852
- function F(C, S) {
2847
+ function V(w, S) {
2853
2848
  const D = el(S);
2854
- return !Array.isArray(C) || C.length === 0 ? D : Array.from({ length: S }).map((W, G) => {
2849
+ return !Array.isArray(w) || w.length === 0 ? D : Array.from({ length: S }).map((W, G) => {
2855
2850
  const q = D[G];
2856
- return N(C[G]) ?? q;
2851
+ return N(w[G]) ?? q;
2857
2852
  });
2858
2853
  }
2859
- function d(C, S) {
2854
+ function d(w, S) {
2860
2855
  if (S <= 0)
2861
2856
  return [];
2862
2857
  const D = Array.from({ length: S }, () => 0), W = /* @__PURE__ */ new Set();
2863
2858
  for (let q = 0; q < S; q++) {
2864
- const H = Number(C == null ? void 0 : C[q]);
2859
+ const H = Number(w == null ? void 0 : w[q]);
2865
2860
  Number.isInteger(H) && H >= 1 && H <= S && !W.has(H) && (D[q] = H, W.add(H));
2866
2861
  }
2867
2862
  let G = 1;
@@ -2873,12 +2868,12 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2873
2868
  }
2874
2869
  return D;
2875
2870
  }
2876
- const _ = k(() => z.value === ie.series ? o(x.value) : L(z.value)), K = k(
2877
- () => Array.from({ length: _.value.length }).map((C, S) => ({
2871
+ const _ = k(() => I.value === ie.series ? o(x.value) : L(I.value)), K = k(
2872
+ () => Array.from({ length: _.value.length }).map((w, S) => ({
2878
2873
  label: `L${S + 1}`,
2879
2874
  value: S + 1
2880
2875
  }))
2881
- ), O = k(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap), y = le([]), V = le([]), u = le([]), $ = le(!0), z = le(ie.series), ae = le(!0), se = le(!1), ce = le(!1);
2876
+ ), j = k(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap), g = le([]), F = le([]), u = le([]), $ = le(!0), I = le(ie.series), ae = le(!0), se = le(!1), ce = le(!1);
2882
2877
  Ve(
2883
2878
  [
2884
2879
  () => e.model.chartColors,
@@ -2889,16 +2884,16 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2889
2884
  () => e.model.isBlend,
2890
2885
  () => e.model.joinDatasources
2891
2886
  ],
2892
- ([C, S]) => {
2893
- se.value = !0, z.value = w(S), x.value = r(
2894
- C,
2887
+ ([w, S]) => {
2888
+ se.value = !0, I.value = C(S), x.value = r(
2889
+ w,
2895
2890
  e.model.chartColorLayers
2896
2891
  ), A.value = n(
2897
2892
  e.model.chartBreakdownColors,
2898
2893
  Math.max(1, i.value.length)
2899
2894
  );
2900
- const D = z.value === ie.series ? x.value : L(z.value).length;
2901
- y.value = F(C, D), V.value = d(e.model.chartColorLayers, D), $.value = e.model.chartUseSecondaryMetricShades !== !1, u.value = s(
2895
+ const D = I.value === ie.series ? x.value : L(I.value).length;
2896
+ g.value = V(w, D), F.value = d(e.model.chartColorLayers, D), $.value = e.model.chartUseSecondaryMetricShades !== !1, u.value = s(
2902
2897
  v.value,
2903
2898
  i.value,
2904
2899
  e.model.chartBreakdownColors,
@@ -2908,7 +2903,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2908
2903
  { immediate: !0, deep: !0 }
2909
2904
  );
2910
2905
  function pe() {
2911
- const C = z.value === ie.series, S = z.value === ie.series ? fe.length : L(z.value).length, D = F(void 0, S), W = d(void 0, S), G = y.value.length === D.length && y.value.every((Z, me) => Z === D[me]), q = V.value.length === W.length && V.value.every((Z, me) => Z === W[me]), H = s(
2906
+ const w = I.value === ie.series, S = I.value === ie.series ? fe.length : L(I.value).length, D = V(void 0, S), W = d(void 0, S), G = g.value.length === D.length && g.value.every((Z, me) => Z === D[me]), q = F.value.length === W.length && F.value.every((Z, me) => Z === W[me]), H = s(
2912
2907
  Array.from({ length: fe.length }, (Z, me) => `breakdown-${me + 1}`),
2913
2908
  i.value,
2914
2909
  void 0,
@@ -2916,27 +2911,27 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2916
2911
  ), te = u.value.length === H.length && u.value.every((Z, me) => Z === H[me]);
2917
2912
  return {
2918
2913
  ...e.model,
2919
- chartColorBinding: C ? void 0 : z.value,
2920
- chartColors: G ? void 0 : [...y.value],
2921
- chartColorLayers: q ? void 0 : [...V.value],
2914
+ chartColorBinding: w ? void 0 : I.value,
2915
+ chartColors: G ? void 0 : [...g.value],
2916
+ chartColorLayers: q ? void 0 : [...F.value],
2922
2917
  chartBreakdownColors: te ? void 0 : [...u.value],
2923
2918
  chartUseSecondaryMetricShades: $.value
2924
2919
  };
2925
2920
  }
2926
2921
  function De() {
2927
- const C = pe();
2928
- Al(C) || t("update:model", C);
2922
+ const w = pe();
2923
+ Al(w) || t("update:model", w);
2929
2924
  }
2930
2925
  function oe() {
2931
2926
  se.value || ce.value || De();
2932
2927
  }
2933
2928
  Ve(
2934
2929
  [
2935
- y,
2936
- V,
2930
+ g,
2931
+ F,
2937
2932
  u,
2938
2933
  $,
2939
- z,
2934
+ I,
2940
2935
  x,
2941
2936
  A
2942
2937
  ],
@@ -2945,44 +2940,44 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
2945
2940
  },
2946
2941
  { deep: !0 }
2947
2942
  );
2948
- function xe(C, S) {
2949
- const D = [...y.value], W = el(Math.max(D.length, C + 1))[C];
2950
- D[C] = N(S) ?? W, y.value = D;
2943
+ function xe(w, S) {
2944
+ const D = [...g.value], W = el(Math.max(D.length, w + 1))[w];
2945
+ D[w] = N(S) ?? W, g.value = D;
2951
2946
  }
2952
- function Se(C) {
2953
- xe(C, f());
2947
+ function Se(w) {
2948
+ xe(w, b());
2954
2949
  }
2955
- function he(C) {
2950
+ function he(w) {
2956
2951
  if (e.limitToSeriesMode)
2957
2952
  return;
2958
- const S = w(C);
2959
- if (S === z.value)
2953
+ const S = C(w);
2954
+ if (S === I.value)
2960
2955
  return;
2961
2956
  const D = S === ie.series ? x.value : L(S).length;
2962
- z.value = S, y.value = F(y.value, D), V.value = d(V.value, D), S === ie.breakdown && (u.value = s(
2957
+ I.value = S, g.value = V(g.value, D), F.value = d(F.value, D), S === ie.breakdown && (u.value = s(
2963
2958
  v.value,
2964
2959
  i.value,
2965
2960
  u.value,
2966
2961
  $.value
2967
2962
  ));
2968
2963
  }
2969
- function Fe(C, S) {
2970
- return C + 1 === S ? "add" : "remove";
2964
+ function Fe(w, S) {
2965
+ return w + 1 === S ? "add" : "remove";
2971
2966
  }
2972
- function ee(C) {
2973
- const S = Math.max(fe.length, x.value), D = C + 1;
2967
+ function ee(w) {
2968
+ const S = Math.max(fe.length, x.value), D = w + 1;
2974
2969
  if (D === S) {
2975
2970
  const Z = S + Ue;
2976
- x.value = Z, y.value = F(y.value, Z), V.value = d(V.value, Z);
2971
+ x.value = Z, g.value = V(g.value, Z), F.value = d(F.value, Z);
2977
2972
  return;
2978
2973
  }
2979
2974
  if (S <= fe.length)
2980
2975
  return;
2981
- const G = D, q = Math.max(fe.length, S - Ue), H = [...y.value], te = [...V.value];
2982
- H.splice(G, Ue), te.splice(G, Ue), x.value = q, y.value = F(H, q), V.value = d(te, q);
2976
+ const G = D, q = Math.max(fe.length, S - Ue), H = [...g.value], te = [...F.value];
2977
+ H.splice(G, Ue), te.splice(G, Ue), x.value = q, g.value = V(H, q), F.value = d(te, q);
2983
2978
  }
2984
- function Pe(C) {
2985
- const S = Math.max(fe.length, A.value), D = C + 1;
2979
+ function Pe(w) {
2980
+ const S = Math.max(fe.length, A.value), D = w + 1;
2986
2981
  if (D === S) {
2987
2982
  const Le = S + Ue;
2988
2983
  A.value = Le, u.value = s(
@@ -3003,30 +2998,30 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3003
2998
  $.value
3004
2999
  );
3005
3000
  }
3006
- function Ee(C, S) {
3007
- const D = V.value.length;
3001
+ function Ee(w, S) {
3002
+ const D = F.value.length;
3008
3003
  if (D <= 0)
3009
3004
  return;
3010
3005
  const W = Number(S);
3011
3006
  if (!Number.isInteger(W) || W < 1 || W > D)
3012
3007
  return;
3013
- const G = [...V.value], q = G[C];
3008
+ const G = [...F.value], q = G[w];
3014
3009
  if (q === W)
3015
3010
  return;
3016
3011
  const H = G.findIndex(
3017
- (te, Z) => Z !== C && te === W
3012
+ (te, Z) => Z !== w && te === W
3018
3013
  );
3019
- H >= 0 && (G[H] = q), G[C] = W, V.value = G;
3014
+ H >= 0 && (G[H] = q), G[w] = W, F.value = G;
3020
3015
  }
3021
- function We(C, S) {
3016
+ function We(w, S) {
3022
3017
  const D = S.target;
3023
- D && (ce.value = !0, xe(C, D.value));
3018
+ D && (ce.value = !0, xe(w, D.value));
3024
3019
  }
3025
- function Xe(C, S) {
3020
+ function Xe(w, S) {
3026
3021
  const D = S.target;
3027
- D && (xe(C, D.value), ce.value = !1, oe());
3022
+ D && (xe(w, D.value), ce.value = !1, oe());
3028
3023
  }
3029
- function ne(C, S, D) {
3024
+ function ne(w, S, D) {
3030
3025
  const W = D.target;
3031
3026
  if (!W)
3032
3027
  return;
@@ -3037,15 +3032,15 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3037
3032
  const q = i.value.length;
3038
3033
  if (q <= 0)
3039
3034
  return;
3040
- const H = b(C, S, q), te = [...u.value];
3035
+ const H = y(w, S, q), te = [...u.value];
3041
3036
  if (te[H] = G, $.value && S === 0)
3042
3037
  for (let Z = 1; Z < q; Z++) {
3043
- const me = b(C, Z, q);
3044
- te[me] = I(G, P(Z));
3038
+ const me = y(w, Z, q);
3039
+ te[me] = z(G, P(Z));
3045
3040
  }
3046
3041
  u.value = te;
3047
3042
  }
3048
- function Ul(C, S, D) {
3043
+ function Ul(w, S, D) {
3049
3044
  const W = D.target;
3050
3045
  if (!W)
3051
3046
  return;
@@ -3059,39 +3054,39 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3059
3054
  ce.value = !1, oe();
3060
3055
  return;
3061
3056
  }
3062
- const H = b(C, S, q), te = [...u.value];
3057
+ const H = y(w, S, q), te = [...u.value];
3063
3058
  if (te[H] = G, $.value && S === 0)
3064
3059
  for (let Z = 1; Z < q; Z++) {
3065
- const me = b(C, Z, q);
3066
- te[me] = I(G, P(Z));
3060
+ const me = y(w, Z, q);
3061
+ te[me] = z(G, P(Z));
3067
3062
  }
3068
3063
  u.value = te, ce.value = !1, oe();
3069
3064
  }
3070
- function Bl(C, S) {
3071
- const D = f(), W = i.value.length;
3065
+ function Bl(w, S) {
3066
+ const D = b(), W = i.value.length;
3072
3067
  if (W <= 0)
3073
3068
  return;
3074
- const G = b(C, S, W), q = [...u.value];
3069
+ const G = y(w, S, W), q = [...u.value];
3075
3070
  if (q[G] = D, $.value && S === 0)
3076
3071
  for (let H = 1; H < W; H++) {
3077
- const te = b(C, H, W);
3078
- q[te] = I(D, P(H));
3072
+ const te = y(w, H, W);
3073
+ q[te] = z(D, P(H));
3079
3074
  }
3080
3075
  u.value = q;
3081
3076
  }
3082
- function sl(C, S) {
3083
- const D = Array.isArray(C) ? C : [], W = Array.isArray(S) ? S : [];
3077
+ function sl(w, S) {
3078
+ const D = Array.isArray(w) ? w : [], W = Array.isArray(S) ? S : [];
3084
3079
  return D.length !== W.length ? !1 : D.every((G, q) => G === W[q]);
3085
3080
  }
3086
- function Ll(C, S) {
3087
- const D = Array.isArray(C) ? C : [], W = Array.isArray(S) ? S : [];
3081
+ function Ll(w, S) {
3082
+ const D = Array.isArray(w) ? w : [], W = Array.isArray(S) ? S : [];
3088
3083
  return D.length !== W.length ? !1 : D.every((G, q) => Number(G) === Number(W[q]));
3089
3084
  }
3090
- function Al(C) {
3091
- return C.chartColorBinding === e.model.chartColorBinding && C.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && sl(C.chartColors, e.model.chartColors) && Ll(C.chartColorLayers, e.model.chartColorLayers) && sl(C.chartBreakdownColors, e.model.chartBreakdownColors);
3085
+ function Al(w) {
3086
+ return w.chartColorBinding === e.model.chartColorBinding && w.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && sl(w.chartColors, e.model.chartColors) && Ll(w.chartColorLayers, e.model.chartColorLayers) && sl(w.chartBreakdownColors, e.model.chartBreakdownColors);
3092
3087
  }
3093
- function Ml(C) {
3094
- $.value = C, u.value = s(
3088
+ function Ml(w) {
3089
+ $.value = w, u.value = s(
3095
3090
  Array.from({ length: A.value }, (S, D) => `breakdown-${D + 1}`),
3096
3091
  i.value,
3097
3092
  u.value,
@@ -3099,24 +3094,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3099
3094
  );
3100
3095
  }
3101
3096
  function Nl() {
3102
- z.value = ie.series, x.value = fe.length, A.value = fe.length, y.value = F(void 0, fe.length), V.value = d(void 0, fe.length), $.value = !0, u.value = s(
3103
- Array.from({ length: fe.length }, (C, S) => `breakdown-${S + 1}`),
3097
+ I.value = ie.series, x.value = fe.length, A.value = fe.length, g.value = V(void 0, fe.length), F.value = d(void 0, fe.length), $.value = !0, u.value = s(
3098
+ Array.from({ length: fe.length }, (w, S) => `breakdown-${S + 1}`),
3104
3099
  i.value,
3105
3100
  void 0,
3106
3101
  !0
3107
3102
  );
3108
3103
  }
3109
- function Ol() {
3104
+ function jl() {
3110
3105
  ae.value = !ae.value;
3111
3106
  }
3112
- function rl(C) {
3113
- return (C + 1) % Ue === 0;
3107
+ function rl(w) {
3108
+ return (w + 1) % Ue === 0;
3114
3109
  }
3115
3110
  return nl(() => {
3116
3111
  ce.value = !1;
3117
- }), (C, S) => {
3112
+ }), (w, S) => {
3118
3113
  const D = M("FmButton"), W = M("FmSelect"), G = M("FmCheckbox");
3119
- return g(), X("div", go, [
3114
+ return f(), X("div", go, [
3120
3115
  h("div", yo, [
3121
3116
  m(D, {
3122
3117
  variant: "tertiary",
@@ -3125,12 +3120,12 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3125
3120
  label: l(a)("report.section.datasource.chartColor.title"),
3126
3121
  "prepend-icon": ae.value ? "expand_less" : "expand_more",
3127
3122
  "aria-expanded": ae.value ? "true" : "false",
3128
- onClick: Ol
3123
+ onClick: jl
3129
3124
  }, null, 8, ["label", "prepend-icon", "aria-expanded"])
3130
3125
  ]),
3131
3126
  ke(h("div", bo, [
3132
3127
  m(W, {
3133
- "model-value": z.value,
3128
+ "model-value": I.value,
3134
3129
  items: U.value,
3135
3130
  "onUpdate:modelValue": he
3136
3131
  }, null, 8, ["model-value", "items"]),
@@ -3144,7 +3139,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3144
3139
  onClick: Nl
3145
3140
  }, null, 8, ["label"])
3146
3141
  ]),
3147
- z.value === l(ie).breakdown ? (g(), R(G, {
3142
+ I.value === l(ie).breakdown ? (f(), R(G, {
3148
3143
  key: 0,
3149
3144
  "model-value": $.value,
3150
3145
  value: !1,
@@ -3152,33 +3147,33 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3152
3147
  "onUpdate:modelValue": S[0] || (S[0] = (q) => Ml(!!q)),
3153
3148
  class: "p-4"
3154
3149
  }, null, 8, ["model-value", "label"])) : E("", !0),
3155
- z.value !== l(ie).breakdown ? (g(), X("div", wo, [
3156
- (g(!0), X(de, null, _e(y.value, (q, H) => (g(), X(de, {
3150
+ I.value !== l(ie).breakdown ? (f(), X("div", Co, [
3151
+ (f(!0), X(de, null, _e(g.value, (q, H) => (f(), X(de, {
3157
3152
  key: `series-color-${H}`
3158
3153
  }, [
3159
3154
  h("div", {
3160
3155
  class: $e([
3161
3156
  "fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 p-10",
3162
- O.value ? "flex flex-col gap-8" : "flex flex-col gap-8 sm:flex-row sm:items-center sm:justify-between sm:gap-12"
3157
+ j.value ? "flex flex-col gap-8" : "flex flex-col gap-8 sm:flex-row sm:items-center sm:justify-between sm:gap-12"
3163
3158
  ])
3164
3159
  }, [
3165
3160
  h("span", {
3166
3161
  class: $e([
3167
3162
  "fm-typo-en-body-lg-600 min-w-0",
3168
- O.value ? "line-clamp-2 break-words" : "whitespace-normal break-words sm:flex-1"
3163
+ j.value ? "line-clamp-2 break-words" : "whitespace-normal break-words sm:flex-1"
3169
3164
  ]),
3170
3165
  title: _.value[H] || `${l(a)("report.section.datasource.chartColor.color")} ${H + 1}`
3171
- }, J(_.value[H] || `${l(a)("report.section.datasource.chartColor.color")} ${H + 1}`), 11, Co),
3166
+ }, J(_.value[H] || `${l(a)("report.section.datasource.chartColor.color")} ${H + 1}`), 11, wo),
3172
3167
  h("div", {
3173
3168
  class: $e([
3174
3169
  "flex items-center gap-8",
3175
- O.value ? "justify-between" : "w-full flex-wrap items-center justify-between sm:w-auto sm:flex-nowrap sm:shrink-0"
3170
+ j.value ? "justify-between" : "w-full flex-wrap items-center justify-between sm:w-auto sm:flex-nowrap sm:shrink-0"
3176
3171
  ])
3177
3172
  }, [
3178
- O.value ? (g(), R(W, {
3173
+ j.value ? (f(), R(W, {
3179
3174
  key: 0,
3180
3175
  class: "min-w-[92px]",
3181
- "model-value": V.value[H],
3176
+ "model-value": F.value[H],
3182
3177
  items: K.value,
3183
3178
  "onUpdate:modelValue": (te) => Ee(H, te)
3184
3179
  }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : E("", !0),
@@ -3207,7 +3202,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3207
3202
  }, null, 8, ["onClick"])
3208
3203
  ], 2)
3209
3204
  ], 2),
3210
- rl(H) ? (g(), X("div", ko, [
3205
+ rl(H) ? (f(), X("div", ko, [
3211
3206
  m(D, {
3212
3207
  class: "w-full",
3213
3208
  size: "md",
@@ -3216,8 +3211,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3216
3211
  }, null, 8, ["icon", "onClick"])
3217
3212
  ])) : E("", !0)
3218
3213
  ], 64))), 128))
3219
- ])) : (g(), X("div", _o, [
3220
- (g(!0), X(de, null, _e(v.value, (q, H) => (g(), X(de, {
3214
+ ])) : (f(), X("div", _o, [
3215
+ (f(!0), X(de, null, _e(v.value, (q, H) => (f(), X(de, {
3221
3216
  key: `breakdown-group-${H}`
3222
3217
  }, [
3223
3218
  h("div", So, [
@@ -3227,7 +3222,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3227
3222
  title: q
3228
3223
  }, J(q), 9, $o)
3229
3224
  ]),
3230
- (g(!0), X(de, null, _e(i.value, (te, Z) => (g(), X("div", {
3225
+ (f(!0), X(de, null, _e(i.value, (te, Z) => (f(), X("div", {
3231
3226
  key: `${q}-${te}-${Z}`,
3232
3227
  class: "flex flex-col items-stretch gap-8 py-4 sm:flex-row sm:items-center sm:justify-between"
3233
3228
  }, [
@@ -3246,13 +3241,13 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3246
3241
  h("span", {
3247
3242
  class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
3248
3243
  style: tl({
3249
- backgroundColor: u.value[b(H, Z, i.value.length)]
3244
+ backgroundColor: u.value[y(H, Z, i.value.length)]
3250
3245
  })
3251
3246
  }, null, 4),
3252
- h("span", Lo, J(u.value[b(H, Z, i.value.length)]), 1),
3247
+ h("span", Lo, J(u.value[y(H, Z, i.value.length)]), 1),
3253
3248
  h("input", {
3254
3249
  type: "color",
3255
- value: u.value[b(H, Z, i.value.length)],
3250
+ value: u.value[y(H, Z, i.value.length)],
3256
3251
  class: $e(["absolute inset-0 opacity-0", {
3257
3252
  "cursor-not-allowed": $.value && Z > 0,
3258
3253
  "cursor-pointer": !($.value && Z > 0)
@@ -3273,7 +3268,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3273
3268
  ])
3274
3269
  ]))), 128))
3275
3270
  ]),
3276
- rl(H) ? (g(), X("div", Mo, [
3271
+ rl(H) ? (f(), X("div", Mo, [
3277
3272
  m(D, {
3278
3273
  class: "w-full",
3279
3274
  size: "md",
@@ -3289,7 +3284,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3289
3284
  ]);
3290
3285
  };
3291
3286
  }
3292
- }), Oo = { class: "flex flex-col gap-8" }, jo = { class: "flex items-center justify-between" }, Io = { class: "fm-typo-en-body-lg-600" }, zo = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Ro = { class: "grid grid-cols-2 gap-8" }, Po = { class: "flex items-center gap-8" }, Eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wo = /* @__PURE__ */ ue({
3287
+ }), jo = { class: "flex flex-col gap-8" }, Oo = { class: "flex items-center justify-between" }, zo = { class: "fm-typo-en-body-lg-600" }, Io = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Ro = { class: "grid grid-cols-2 gap-8" }, Po = { class: "flex items-center gap-8" }, Eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wo = /* @__PURE__ */ ue({
3293
3288
  __name: "ChartLineStyleSection",
3294
3289
  props: {
3295
3290
  model: {}
@@ -3306,24 +3301,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3306
3301
  value: ie.metric
3307
3302
  }
3308
3303
  ]);
3309
- function w(F) {
3310
- return F && typeof F == "object" && "value" in F ? w(F.value) : F === ie.metric ? ie.metric : ie.series;
3304
+ function C(V) {
3305
+ return V && typeof V == "object" && "value" in V ? C(V.value) : V === ie.metric ? ie.metric : ie.series;
3311
3306
  }
3312
- function c(F, d) {
3313
- var K, O;
3314
- return F ? ((K = F.label) == null ? void 0 : K.trim()) || ((O = F.name) == null ? void 0 : O.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${d + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${d + 1}`;
3307
+ function c(V, d) {
3308
+ var K, j;
3309
+ return V ? ((K = V.label) == null ? void 0 : K.trim()) || ((j = V.name) == null ? void 0 : j.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${d + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${d + 1}`;
3315
3310
  }
3316
3311
  function T() {
3317
- const F = Array.isArray(e.model.metrics) ? e.model.metrics : [];
3312
+ const V = Array.isArray(e.model.metrics) ? e.model.metrics : [];
3318
3313
  if (!e.model.isBlend)
3319
- return F;
3314
+ return V;
3320
3315
  const d = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
3321
3316
  (_) => Array.isArray(_ == null ? void 0 : _.metrics) ? _.metrics : []
3322
3317
  ) : [];
3323
- return [...F, ...d];
3318
+ return [...V, ...d];
3324
3319
  }
3325
- function L(F) {
3326
- if (F === ie.metric) {
3320
+ function L(V) {
3321
+ if (V === ie.metric) {
3327
3322
  const d = T();
3328
3323
  if (d.length > 0)
3329
3324
  return d.map((_, K) => c(_, K));
@@ -3346,24 +3341,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3346
3341
  value: "dotted"
3347
3342
  }
3348
3343
  ]);
3349
- function r(F) {
3350
- return F && typeof F == "object" && "value" in F ? r(F.value) : F === "dashed" || F === "DASHED" ? "dashed" : F === "dotted" || F === "DOTTED" ? "dotted" : "solid";
3344
+ function r(V) {
3345
+ return V && typeof V == "object" && "value" in V ? r(V.value) : V === "dashed" || V === "DASHED" ? "dashed" : V === "dotted" || V === "DOTTED" ? "dotted" : "solid";
3351
3346
  }
3352
- function i(F) {
3353
- return F === "dashed" ? "line-style-icon--dashed" : F === "dotted" ? "line-style-icon--dotted" : "line-style-icon--solid";
3347
+ function i(V) {
3348
+ return V === "dashed" ? "line-style-icon--dashed" : V === "dotted" ? "line-style-icon--dotted" : "line-style-icon--solid";
3354
3349
  }
3355
- function x(F, d) {
3356
- return !Array.isArray(F) || F.length === 0 ? Array.from({ length: d }).map(
3350
+ function x(V, d) {
3351
+ return !Array.isArray(V) || V.length === 0 ? Array.from({ length: d }).map(
3357
3352
  (_, K) => vl[K] ?? "solid"
3358
3353
  ) : Array.from({ length: d }).map(
3359
- (_, K) => r(F[K])
3354
+ (_, K) => r(V[K])
3360
3355
  );
3361
3356
  }
3362
3357
  const A = k(
3363
- () => w(e.model.lineStyleBinding)
3358
+ () => C(e.model.lineStyleBinding)
3364
3359
  ), n = k(() => L(P.value)), v = k(
3365
3360
  () => x(e.model.lineStyles, L(A.value).length)
3366
- ), I = le([]), P = le(ie.series);
3361
+ ), z = le([]), P = le(ie.series);
3367
3362
  Ve(
3368
3363
  [
3369
3364
  () => e.model.lineStyles,
@@ -3372,43 +3367,43 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3372
3367
  () => e.model.isBlend,
3373
3368
  () => e.model.joinDatasources
3374
3369
  ],
3375
- ([F, d]) => {
3376
- P.value = w(d), I.value = x(
3377
- F,
3370
+ ([V, d]) => {
3371
+ P.value = C(d), z.value = x(
3372
+ V,
3378
3373
  L(P.value).length
3379
3374
  );
3380
3375
  },
3381
3376
  { immediate: !0, deep: !0 }
3382
3377
  );
3383
- const b = k(() => P.value !== A.value || I.value.length !== v.value.length ? !0 : I.value.some((F, d) => F !== v.value[d]));
3384
- function s(F, d) {
3385
- const _ = [...I.value];
3386
- _[F] = r(d), I.value = _;
3378
+ const y = k(() => P.value !== A.value || z.value.length !== v.value.length ? !0 : z.value.some((V, d) => V !== v.value[d]));
3379
+ function s(V, d) {
3380
+ const _ = [...z.value];
3381
+ _[V] = r(d), z.value = _;
3387
3382
  }
3388
- function j(F) {
3389
- const d = w(F);
3383
+ function O(V) {
3384
+ const d = C(V);
3390
3385
  if (d === P.value)
3391
3386
  return;
3392
3387
  const _ = L(d).length;
3393
- P.value = d, I.value = x(I.value, _);
3388
+ P.value = d, z.value = x(z.value, _);
3394
3389
  }
3395
3390
  function N() {
3396
- P.value = ie.series, I.value = [...vl];
3391
+ P.value = ie.series, z.value = [...vl];
3397
3392
  }
3398
- function f() {
3399
- const F = P.value === ie.series, d = I.value.every((_) => _ === "solid");
3393
+ function b() {
3394
+ const V = P.value === ie.series, d = z.value.every((_) => _ === "solid");
3400
3395
  t("update:model", {
3401
3396
  ...e.model,
3402
- lineStyleBinding: F ? void 0 : P.value,
3403
- lineStyles: d ? void 0 : [...I.value]
3397
+ lineStyleBinding: V ? void 0 : P.value,
3398
+ lineStyles: d ? void 0 : [...z.value]
3404
3399
  });
3405
3400
  }
3406
- return (F, d) => {
3401
+ return (V, d) => {
3407
3402
  const _ = M("FmButton"), K = M("FmSelect");
3408
- return g(), X("div", Oo, [
3409
- h("div", jo, [
3410
- h("p", Io, J(l(a)("report.section.datasource.lineStyle.title")), 1),
3411
- h("div", zo, [
3403
+ return f(), X("div", jo, [
3404
+ h("div", Oo, [
3405
+ h("p", zo, J(l(a)("report.section.datasource.lineStyle.title")), 1),
3406
+ h("div", Io, [
3412
3407
  m(_, {
3413
3408
  variant: "tertiary",
3414
3409
  "text-color": "text-fm-color-system-info-300",
@@ -3422,33 +3417,33 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3422
3417
  "model-value": P.value,
3423
3418
  items: U.value,
3424
3419
  label: l(a)("report.section.datasource.styleTarget.title"),
3425
- "onUpdate:modelValue": j
3420
+ "onUpdate:modelValue": O
3426
3421
  }, null, 8, ["model-value", "items", "label"]),
3427
3422
  h("div", Ro, [
3428
- (g(!0), X(de, null, _e(I.value, (O, y) => (g(), X("div", {
3429
- key: y,
3423
+ (f(!0), X(de, null, _e(z.value, (j, g) => (f(), X("div", {
3424
+ key: g,
3430
3425
  class: "flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
3431
3426
  }, [
3432
3427
  h("div", Po, [
3433
3428
  h("span", {
3434
- class: $e(["line-style-icon", i(O)]),
3429
+ class: $e(["line-style-icon", i(j)]),
3435
3430
  "aria-hidden": "true"
3436
3431
  }, null, 2),
3437
- h("span", Eo, J(n.value[y] || `${l(a)("report.section.datasource.lineStyle.line")} ${y + 1}`), 1)
3432
+ h("span", Eo, J(n.value[g] || `${l(a)("report.section.datasource.lineStyle.line")} ${g + 1}`), 1)
3438
3433
  ]),
3439
3434
  m(K, {
3440
- "model-value": O,
3435
+ "model-value": j,
3441
3436
  items: o.value,
3442
3437
  class: "w-[130px]",
3443
- "onUpdate:modelValue": (V) => s(y, V)
3438
+ "onUpdate:modelValue": (F) => s(g, F)
3444
3439
  }, null, 8, ["model-value", "items", "onUpdate:modelValue"])
3445
3440
  ]))), 128))
3446
3441
  ]),
3447
3442
  m(_, {
3448
3443
  size: "md",
3449
3444
  label: l(a)("report.common.apply"),
3450
- disabled: !b.value,
3451
- onClick: f
3445
+ disabled: !y.value,
3446
+ onClick: b
3452
3447
  }, null, 8, ["label", "disabled"])
3453
3448
  ]);
3454
3449
  };
@@ -3496,7 +3491,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3496
3491
  },
3497
3492
  { deep: !0 }
3498
3493
  );
3499
- const t = B, a = p, { t: U } = ge(), w = k(() => t.config.type === Y.Circular), c = k(
3494
+ const t = B, a = p, { t: U } = ge(), C = k(() => t.config.type === Y.Circular), c = k(
3500
3495
  () => t.config.type === Y.StackBarChart || t.config.type === Y.ClusteredStackBarChart
3501
3496
  ), T = k(
3502
3497
  () => t.config.type === Y.LineChart || t.config.type === Y.StackLineChart
@@ -3519,25 +3514,25 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3519
3514
  });
3520
3515
  return (r, i) => {
3521
3516
  const x = M("FmButton"), A = M("FmCheckbox"), n = M("FmStepperField");
3522
- return g(), X(de, null, [
3517
+ return f(), X(de, null, [
3523
3518
  i[9] || (i[9] = h("div", { class: "grow" }, null, -1)),
3524
- t.closeable ? (g(), R(x, {
3519
+ t.closeable ? (f(), R(x, {
3525
3520
  key: 0,
3526
3521
  icon: "close",
3527
3522
  variant: "tertiary",
3528
3523
  size: "md",
3529
- onClick: i[0] || (i[0] = Ce((v) => a("click-close"), ["stop"]))
3524
+ onClick: i[0] || (i[0] = we((v) => a("click-close"), ["stop"]))
3530
3525
  })) : E("", !0),
3531
3526
  h("div", qo, [
3532
- t.config.hasChart ? (g(), R(No, {
3527
+ t.config.hasChart ? (f(), R(No, {
3533
3528
  key: 0,
3534
3529
  model: e.value,
3535
3530
  "show-layer-control": c.value && o.value,
3536
- "limit-to-series-mode": w.value,
3531
+ "limit-to-series-mode": C.value,
3537
3532
  "onUpdate:model": i[1] || (i[1] = (v) => e.value = v)
3538
3533
  }, null, 8, ["model", "show-layer-control", "limit-to-series-mode"])) : E("", !0),
3539
- t.config.hasChart && T.value ? (g(), X("div", Ho)) : E("", !0),
3540
- t.config.hasChart && T.value ? (g(), R(Xo, {
3534
+ t.config.hasChart && T.value ? (f(), X("div", Ho)) : E("", !0),
3535
+ t.config.hasChart && T.value ? (f(), R(Xo, {
3541
3536
  key: 2,
3542
3537
  model: e.value,
3543
3538
  "onUpdate:model": i[2] || (i[2] = (v) => e.value = v)
@@ -3546,30 +3541,30 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3546
3541
  h("div", Go, [
3547
3542
  h("p", Yo, J(l(U)("report.section.style.configuration")), 1),
3548
3543
  h("div", Jo, [
3549
- c.value ? (g(), R(A, {
3544
+ c.value ? (f(), R(A, {
3550
3545
  key: 0,
3551
3546
  modelValue: o.value,
3552
3547
  "onUpdate:modelValue": i[3] || (i[3] = (v) => o.value = v),
3553
3548
  class: "fm-typo-en-body-lg-400",
3554
3549
  label: l(U)("report.section.datasource.stackBar.overlapBars")
3555
3550
  }, null, 8, ["modelValue", "label"])) : E("", !0),
3556
- t.config.hasLabel ? (g(), R(eo, {
3551
+ t.config.hasLabel ? (f(), R(eo, {
3557
3552
  key: 1,
3558
3553
  model: e.value,
3559
3554
  "onUpdate:model": i[4] || (i[4] = (v) => e.value = v)
3560
3555
  }, null, 8, ["model"])) : E("", !0),
3561
- t.config.hasLegend ? (g(), R(fo, {
3556
+ t.config.hasLegend ? (f(), R(fo, {
3562
3557
  key: 2,
3563
3558
  model: e.value,
3564
- "is-circular-widget": w.value,
3559
+ "is-circular-widget": C.value,
3565
3560
  "onUpdate:model": i[5] || (i[5] = (v) => e.value = v)
3566
3561
  }, null, 8, ["model", "is-circular-widget"])) : E("", !0),
3567
- t.config.hasXy ? (g(), R(ro, {
3562
+ t.config.hasXy ? (f(), R(ro, {
3568
3563
  key: 3,
3569
3564
  model: e.value,
3570
3565
  "onUpdate:model": i[6] || (i[6] = (v) => e.value = v)
3571
3566
  }, null, 8, ["model"])) : E("", !0),
3572
- t.config.hasXy ? (g(), R(n, {
3567
+ t.config.hasXy ? (f(), R(n, {
3573
3568
  key: 4,
3574
3569
  modelValue: L.value,
3575
3570
  "onUpdate:modelValue": i[7] || (i[7] = (v) => L.value = v),
@@ -3612,7 +3607,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3612
3607
  colWidths: c((x = t.layout) == null ? void 0 : x.colWidths)
3613
3608
  });
3614
3609
  }
3615
- }), w = k(() => {
3610
+ }), C = k(() => {
3616
3611
  var i;
3617
3612
  return ((i = t.columns) == null ? void 0 : i.length) ?? 0;
3618
3613
  });
@@ -3620,8 +3615,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3620
3615
  if (!i) return null;
3621
3616
  const x = Object.entries(i).reduce(
3622
3617
  (A, n) => {
3623
- const [v, I] = n;
3624
- return I && I >= 40 ? A[v] = I : A[v] = null, A;
3618
+ const [v, z] = n;
3619
+ return z && z >= 40 ? A[v] = z : A[v] = null, A;
3625
3620
  },
3626
3621
  {}
3627
3622
  );
@@ -3650,7 +3645,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3650
3645
  }
3651
3646
  return (i, x) => {
3652
3647
  const A = M("FmStepperField");
3653
- return g(), X("div", Qo, [
3648
+ return f(), X("div", Qo, [
3654
3649
  h("div", Zo, [
3655
3650
  h("div", ea, [
3656
3651
  h("p", la, J(l(e)("report.section.datasource.rowHeight")), 1)
@@ -3671,9 +3666,9 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3671
3666
  h("div", na, [
3672
3667
  h("p", ia, J(l(e)("report.section.datasource.columnWidth")), 1)
3673
3668
  ]),
3674
- w.value > 0 ? (g(), X("div", sa, [
3669
+ C.value > 0 ? (f(), X("div", sa, [
3675
3670
  h("p", ra, J(l(e)("report.section.datasource.columnWidthHelper")), 1),
3676
- (g(!0), X(de, null, _e(w.value, (n) => (g(), R(A, {
3671
+ (f(!0), X(de, null, _e(C.value, (n) => (f(), R(A, {
3677
3672
  key: r(n - 1),
3678
3673
  type: "number",
3679
3674
  "model-value": o(n - 1),
@@ -3683,7 +3678,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3683
3678
  placeholder: l(e)("report.common.auto"),
3684
3679
  "onUpdate:modelValue": (v) => L(n - 1, Number(v) || null)
3685
3680
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]))), 128))
3686
- ])) : (g(), X("p", ua, J(l(e)("report.section.datasource.columnWidthUnavailable")), 1))
3681
+ ])) : (f(), X("p", ua, J(l(e)("report.section.datasource.columnWidthUnavailable")), 1))
3687
3682
  ])
3688
3683
  ]);
3689
3684
  };
@@ -3709,8 +3704,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3709
3704
  emits: ["update:modelValue", "update:isEditingStyle"],
3710
3705
  setup(B) {
3711
3706
  const { t: p, locale: e } = ge(), t = ye(B, "modelValue"), a = k(
3712
- () => Ke.find((b) => b.type === t.value.widget.type)
3713
- ), U = ye(B, "isEditingStyle"), w = le(!1), { markStyleEditing: c, resetStyleEditing: T } = $l(U), L = B, o = [
3707
+ () => Ke.find((y) => y.type === t.value.widget.type)
3708
+ ), U = ye(B, "isEditingStyle"), C = le(!1), { markStyleEditing: c, resetStyleEditing: T } = $l(U), L = B, o = [
3714
3709
  Y.BarChart,
3715
3710
  Y.StackBarChart,
3716
3711
  Y.ClusteredStackBarChart,
@@ -3722,62 +3717,62 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3722
3717
  rowHeight: t.value.widget.config.rowHeight,
3723
3718
  colWidths: t.value.widget.config.colWidths
3724
3719
  }),
3725
- set: (b) => {
3726
- c(), t.value.widget.config.rowHeight = b.rowHeight, t.value.widget.config.colWidths = b.colWidths;
3720
+ set: (y) => {
3721
+ c(), t.value.widget.config.rowHeight = y.rowHeight, t.value.widget.config.colWidths = y.colWidths;
3727
3722
  }
3728
3723
  }), n = k({
3729
3724
  get: () => t.value.widget.config,
3730
- set: (b) => {
3731
- c(), t.value.widget.config = b;
3725
+ set: (y) => {
3726
+ c(), t.value.widget.config = y;
3732
3727
  }
3733
3728
  }), v = k(() => {
3734
- var b, s;
3735
- return i.value ? ((s = (b = L.tableResponse) == null ? void 0 : b.columns) == null ? void 0 : s.map((j) => ({
3736
- key: j.key,
3737
- label: j.label
3729
+ var y, s;
3730
+ return i.value ? ((s = (y = L.tableResponse) == null ? void 0 : y.columns) == null ? void 0 : s.map((O) => ({
3731
+ key: O.key,
3732
+ label: O.label
3738
3733
  }))) ?? [] : [];
3739
3734
  });
3740
- function I() {
3741
- w.value = !0;
3735
+ function z() {
3736
+ C.value = !0;
3742
3737
  }
3743
3738
  function P() {
3744
- w.value = !1, T();
3739
+ C.value = !1, T();
3745
3740
  }
3746
- return (b, s) => {
3747
- const j = M("FmCircularProgress"), N = M("FmButton");
3748
- return w.value ? (g(), X("div", ma, [
3741
+ return (y, s) => {
3742
+ const O = M("FmCircularProgress"), N = M("FmButton");
3743
+ return C.value ? (f(), X("div", ma, [
3749
3744
  m(Ye, {
3750
- "model-value": w.value,
3745
+ "model-value": C.value,
3751
3746
  icon: "keyboard_double_arrow_right",
3752
3747
  title: l(p)("report.section.style.title"),
3753
- "onUpdate:modelValue": s[0] || (s[0] = (f) => f ? I() : P())
3748
+ "onUpdate:modelValue": s[0] || (s[0] = (b) => b ? z() : P())
3754
3749
  }, null, 8, ["model-value", "title"]),
3755
- t.value ? (g(), X("div", ca, [
3756
- r.value ? (g(), R(Ko, {
3750
+ t.value ? (f(), X("div", ca, [
3751
+ r.value ? (f(), R(Ko, {
3757
3752
  key: 0,
3758
3753
  modelValue: n.value,
3759
- "onUpdate:modelValue": s[1] || (s[1] = (f) => n.value = f),
3754
+ "onUpdate:modelValue": s[1] || (s[1] = (b) => n.value = b),
3760
3755
  config: a.value
3761
3756
  }, null, 8, ["modelValue", "config"])) : E("", !0),
3762
- i.value ? (g(), R(da, {
3757
+ i.value ? (f(), R(da, {
3763
3758
  key: 1,
3764
3759
  layout: A.value,
3765
- "onUpdate:layout": s[2] || (s[2] = (f) => A.value = f),
3760
+ "onUpdate:layout": s[2] || (s[2] = (b) => A.value = b),
3766
3761
  columns: v.value
3767
3762
  }, null, 8, ["layout", "columns"])) : E("", !0)
3768
- ])) : (g(), R(j, { key: 0 }))
3769
- ])) : (g(), X("div", {
3763
+ ])) : (f(), R(O, { key: 0 }))
3764
+ ])) : (f(), X("div", {
3770
3765
  key: 1,
3771
3766
  class: $e([
3772
3767
  "bg-fm-color-neutral-white pt-16",
3773
3768
  x.value ? "flex h-full w-[156px] flex-col items-center justify-start gap-12 px-12" : "flex h-full w-[88px] flex-col items-center justify-start gap-16"
3774
3769
  ])
3775
3770
  }, [
3776
- x.value ? (g(), X("button", {
3771
+ x.value ? (f(), X("button", {
3777
3772
  key: 0,
3778
3773
  class: "flex flex-col items-center gap-16 fm-typo-en-title-sm-600 text-fm-color-typo-primary",
3779
3774
  type: "button",
3780
- onClick: I
3775
+ onClick: z
3781
3776
  }, [
3782
3777
  m(N, {
3783
3778
  variant: "secondary",
@@ -3787,19 +3782,19 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3787
3782
  size: "md"
3788
3783
  }, null, 8, ["border-color", "text-color"]),
3789
3784
  h("span", pa, J(l(p)("report.section.style.title")), 1)
3790
- ])) : (g(), X(de, { key: 1 }, [
3785
+ ])) : (f(), X(de, { key: 1 }, [
3791
3786
  m(N, {
3792
3787
  variant: "secondary",
3793
3788
  icon: "keyboard_double_arrow_left",
3794
3789
  "border-color": l(Me).ColorPrimary,
3795
3790
  "text-color": l(Me).ColorPrimary,
3796
3791
  size: "md",
3797
- onClick: I
3792
+ onClick: z
3798
3793
  }, null, 8, ["border-color", "text-color"]),
3799
3794
  h("button", {
3800
3795
  class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary [text-orientation:mixed] [writing-mode:vertical-rl]",
3801
3796
  type: "button",
3802
- onClick: I
3797
+ onClick: z
3803
3798
  }, J(l(p)("report.section.style.title")), 1)
3804
3799
  ], 64))
3805
3800
  ], 2));
@@ -3836,8 +3831,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3836
3831
  ], Y.Table], T = k(() => c.includes(e.value.widget.type)), L = le(!1), o = le(null);
3837
3832
  return (r, i) => {
3838
3833
  const x = M("FmCircularProgress"), A = M("FmButton");
3839
- return g(), X("div", null, [
3840
- e.value ? (g(), X(de, { key: 1 }, [
3834
+ return f(), X("div", null, [
3835
+ e.value ? (f(), X(de, { key: 1 }, [
3841
3836
  m(Hl, {
3842
3837
  "model-value": !B.hideConfiguration
3843
3838
  }, {
@@ -3873,17 +3868,17 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3873
3868
  }, 8, ["model-value"]),
3874
3869
  h("div", ya, [
3875
3870
  h("div", ba, [
3876
- e.value ? (g(), R(Sl, {
3871
+ e.value ? (f(), R(Sl, {
3877
3872
  key: 0,
3878
3873
  "model-value": e.value,
3879
3874
  index: t.index,
3880
3875
  "hide-export": !0,
3881
3876
  "is-editing-style": L.value,
3882
3877
  "onUpdate:tableResponse": i[4] || (i[4] = (n) => o.value = n)
3883
- }, null, 8, ["model-value", "index", "is-editing-style"])) : (g(), R(_l, { key: 1 }))
3878
+ }, null, 8, ["model-value", "index", "is-editing-style"])) : (f(), R(_l, { key: 1 }))
3884
3879
  ])
3885
3880
  ]),
3886
- T.value ? (g(), R(va, {
3881
+ T.value ? (f(), R(va, {
3887
3882
  key: 0,
3888
3883
  modelValue: e.value,
3889
3884
  "onUpdate:modelValue": i[5] || (i[5] = (n) => e.value = n),
@@ -3891,14 +3886,14 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3891
3886
  "onUpdate:isEditingStyle": i[6] || (i[6] = (n) => L.value = n),
3892
3887
  "table-response": o.value
3893
3888
  }, null, 8, ["modelValue", "is-editing-style", "table-response"])) : E("", !0)
3894
- ], 64)) : (g(), R(x, { key: 0 }))
3889
+ ], 64)) : (f(), R(x, { key: 0 }))
3895
3890
  ]);
3896
3891
  };
3897
3892
  }
3898
- }), wa = {
3893
+ }), Ca = {
3899
3894
  key: 0,
3900
3895
  class: "flex w-full justify-center items-center"
3901
- }, Ca = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, xa = /* @__PURE__ */ ue({
3896
+ }, wa = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, xa = /* @__PURE__ */ ue({
3902
3897
  __name: "TileEditorMobile",
3903
3898
  props: /* @__PURE__ */ ve({
3904
3899
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
@@ -3912,22 +3907,22 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3912
3907
  emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
3913
3908
  setup(B, { emit: p }) {
3914
3909
  const e = ye(B, "modelValue"), t = B, a = k(
3915
- () => Ke.find((w) => {
3910
+ () => Ke.find((C) => {
3916
3911
  var c;
3917
- return w.type === ((c = e.value) == null ? void 0 : c.widget.type);
3912
+ return C.type === ((c = e.value) == null ? void 0 : c.widget.type);
3918
3913
  })
3919
3914
  ), U = p;
3920
- return (w, c) => {
3915
+ return (C, c) => {
3921
3916
  const T = M("FmCircularProgress");
3922
- return g(), X("div", null, [
3923
- e.value ? (g(), X(de, { key: 1 }, [
3924
- h("div", Ca, [
3925
- e.value ? (g(), R(Sl, {
3917
+ return f(), X("div", null, [
3918
+ e.value ? (f(), X(de, { key: 1 }, [
3919
+ h("div", wa, [
3920
+ e.value ? (f(), R(Sl, {
3926
3921
  key: 0,
3927
3922
  "model-value": e.value,
3928
3923
  index: t.index,
3929
3924
  "hide-export": !0
3930
- }, null, 8, ["model-value", "index"])) : (g(), R(_l, { key: 1 }))
3925
+ }, null, 8, ["model-value", "index"])) : (f(), R(_l, { key: 1 }))
3931
3926
  ]),
3932
3927
  m(Dl, {
3933
3928
  modelValue: e.value,
@@ -3938,7 +3933,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3938
3933
  U("hideConfiguration", L);
3939
3934
  })
3940
3935
  }, null, 8, ["modelValue", "config", "hide-configuration"])
3941
- ], 64)) : (g(), X("div", wa, [
3936
+ ], 64)) : (f(), X("div", Ca, [
3942
3937
  m(T)
3943
3938
  ]))
3944
3939
  ]);
@@ -3950,71 +3945,71 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
3950
3945
  }, Va = {
3951
3946
  key: 0,
3952
3947
  class: "flex items-start justify-start px-24 py-12 flex-wrap w-full"
3953
- }, ja = /* @__PURE__ */ ue({
3948
+ }, Oa = /* @__PURE__ */ ue({
3954
3949
  __name: "TileEditor",
3955
3950
  setup(B) {
3956
- const p = Rl(), e = Pl(), t = xl(), { globalFilters: a } = je(Kl()), { currentSelectWidgetType: U, editingReport: w, editingTile: c, editingTileIndex: T } = je(t), { breakpoints: L } = Vl(), { promptMessage: o } = Fl(), { t: r, te: i } = ge(), x = k(() => {
3951
+ const p = Rl(), e = Pl(), t = xl(), { globalFilters: a } = Oe(Kl()), { currentSelectWidgetType: U, editingReport: C, editingTile: c, editingTileIndex: T } = Oe(t), { breakpoints: L } = Vl(), { promptMessage: o } = Fl(), { t: r, te: i } = ge(), x = k(() => {
3957
3952
  var s;
3958
3953
  const P = (s = c.value) == null ? void 0 : s.widget.type;
3959
3954
  if (!P)
3960
3955
  return r("report.editor.newReport");
3961
- const b = `report.widget.types.${P.toLowerCase()}`;
3962
- return i(b) ? r(b) : P;
3956
+ const y = `report.widget.types.${P.toLowerCase()}`;
3957
+ return i(y) ? r(y) : P;
3963
3958
  }), A = le(!1);
3964
3959
  function n() {
3965
3960
  U.value = void 0, c.value = void 0, T.value = -1, e.back();
3966
3961
  }
3967
3962
  async function v() {
3968
- var b;
3969
- if (!w.value) return;
3963
+ var y;
3964
+ if (!C.value) return;
3970
3965
  await o({
3971
3966
  title: r("report.tile.save.title"),
3972
- message: r("report.tile.save.confirm", { title: (b = c.value) == null ? void 0 : b.widget.title })
3973
- }) && c.value && (T.value === -1 ? w.value.tiles.push(c.value) : w.value.tiles[T.value] = c.value, n());
3967
+ message: r("report.tile.save.confirm", { title: (y = c.value) == null ? void 0 : y.widget.title })
3968
+ }) && c.value && (T.value === -1 ? C.value.tiles.push(c.value) : C.value.tiles[T.value] = c.value, n());
3974
3969
  }
3975
- async function I() {
3976
- var b;
3977
- if (!w.value) return;
3970
+ async function z() {
3971
+ var y;
3972
+ if (!C.value) return;
3978
3973
  await o({
3979
3974
  title: r("report.tile.cancel.title"),
3980
- message: r("report.tile.cancel.confirm", { title: (b = c.value) == null ? void 0 : b.widget.title })
3975
+ message: r("report.tile.cancel.confirm", { title: (y = c.value) == null ? void 0 : y.widget.title })
3981
3976
  }) && n();
3982
3977
  }
3983
- return wl(() => {
3984
- w.value || e.push({ name: "reports" });
3985
- }), (P, b) => {
3978
+ return Cl(() => {
3979
+ C.value || e.push({ name: "reports" });
3980
+ }), (P, y) => {
3986
3981
  const s = M("FmPageHead");
3987
- return g(), R(Gl, null, {
3982
+ return f(), R(Gl, null, {
3988
3983
  default: Q(() => [
3989
3984
  m(s, {
3990
3985
  actions: [
3991
3986
  { label: l(r)("report.common.cancel"), value: "cancel", isPrimary: !1 },
3992
3987
  { label: l(r)("report.common.save"), value: "save", isPrimary: !0 }
3993
3988
  ],
3994
- "onClick:action": b[0] || (b[0] = (j) => {
3995
- j === "cancel" && I(), j === "save" && v();
3989
+ "onClick:action": y[0] || (y[0] = (O) => {
3990
+ O === "cancel" && z(), O === "save" && v();
3996
3991
  })
3997
3992
  }, {
3998
3993
  title: Q(() => [
3999
- l(L).lg || l(L).md ? (g(), X("p", Fa, J(x.value), 1)) : E("", !0)
3994
+ l(L).lg || l(L).md ? (f(), X("p", Fa, J(x.value), 1)) : E("", !0)
4000
3995
  ]),
4001
3996
  _: 1
4002
3997
  }, 8, ["actions"]),
4003
- l(c) && (l(a) || []).some((j) => {
4004
- const N = j.tileIds, f = l(c) && l(c).id;
4005
- return Array.isArray(N) && typeof f == "string" && N.includes(f);
4006
- }) ? (g(), X("div", Va, [
3998
+ l(c) && (l(a) || []).some((O) => {
3999
+ const N = O.tileIds, b = l(c) && l(c).id;
4000
+ return Array.isArray(N) && typeof b == "string" && N.includes(b);
4001
+ }) ? (f(), X("div", Va, [
4007
4002
  m(Ql)
4008
4003
  ])) : E("", !0),
4009
- l(c) ? (g(), R(hl(l(L).lg || l(L).md ? ha : xa), {
4004
+ l(c) ? (f(), R(hl(l(L).lg || l(L).md ? ha : xa), {
4010
4005
  key: 1,
4011
4006
  modelValue: l(c),
4012
- "onUpdate:modelValue": b[1] || (b[1] = (j) => zl(c) ? c.value = j : null),
4007
+ "onUpdate:modelValue": y[1] || (y[1] = (O) => Il(c) ? c.value = O : null),
4013
4008
  class: $e(`${l(L).lg || l(L).md ? "flex" : ""} w-full`),
4014
4009
  style: tl({ height: `calc( 100% - ${l(L).lg || l(L).md ? 72 : 64}px)` }),
4015
4010
  "hide-configuration": A.value,
4016
4011
  index: Number(l(p).params.tileIndex),
4017
- onHideConfiguration: b[2] || (b[2] = (j) => A.value = j)
4012
+ onHideConfiguration: y[2] || (y[2] = (O) => A.value = O)
4018
4013
  }, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : E("", !0)
4019
4014
  ]),
4020
4015
  _: 1
@@ -4023,5 +4018,5 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
4023
4018
  }
4024
4019
  });
4025
4020
  export {
4026
- ja as default
4021
+ Oa as default
4027
4022
  };