@feedmepos/mf-report 5.9.3-beta.0 → 5.10.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/dist/{App-BRF4io7t.js → App-DovsQcJE.js} +3 -3
  2. package/dist/{Default.vue_vue_type_script_setup_true_lang-DZq49D3u.js → Default.vue_vue_type_script_setup_true_lang-Caht2WAi.js} +1 -1
  3. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DEkXmB2J.js +1482 -0
  4. package/dist/{InsightView-WJFDyq6J.js → InsightView-C25N5KB0.js} +2 -2
  5. package/dist/{Layout-CqWSAiF3.js → Layout-DTG44ar-.js} +1 -1
  6. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-fOM1sYRD.js → MenuTab.vue_vue_type_script_setup_true_lang-DYTJAjt5.js} +2 -2
  7. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Zso-ZcOq.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bfbg4FSN.js} +1 -1
  8. package/dist/{OverviewView-CiMfInUt.js → OverviewView-CB7ZICC-.js} +4 -4
  9. package/dist/{Report-BF0_jOYc.js → Report-9_PTplZ5.js} +2 -2
  10. package/dist/{ReportEditor-BH4AV5b0.js → ReportEditor-xfdm7GQz.js} +375 -371
  11. package/dist/{ReportView-BCQI4awq.js → ReportView-CIadPLZc.js} +5 -5
  12. package/dist/{Setting-BXHR_k_n.js → Setting-qZD-DpyA.js} +2 -2
  13. package/dist/{TileEditor-Btav-eWH.js → TileEditor-DWL8wv4e.js} +1070 -1048
  14. package/dist/{TransitionFade-DNs7JUcf.js → TransitionFade-CjoVItWI.js} +2 -2
  15. package/dist/app.js +21 -13
  16. package/dist/assets/formatChartData.worker-Bp7azaza.js +4 -0
  17. package/dist/v4-DBw0cp99.js +10815 -0
  18. package/package.json +1 -1
  19. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DpmOkz-L.js +0 -1447
  20. package/dist/v4-CAyILVZZ.js +0 -18676
@@ -1,15 +1,15 @@
1
- import { defineComponent as P, mergeModels as H, useModel as ee, computed as _, ref as M, resolveComponent as F, createElementBlock as O, openBlock as y, createVNode as m, createElementVNode as k, unref as t, withCtx as D, toDisplayString as B, Fragment as Q, renderList as de, withModifiers as te, createTextVNode as ce, watch as ne, createCommentVNode as U, createBlock as T, onMounted as Ie, onUnmounted as Xe, renderSlot as Be, onBeforeUnmount as Ye, resolveDynamicComponent as Le, normalizeClass as je, withDirectives as ie, vShow as se, normalizeStyle as Ee, isRef as He } from "vue";
2
- import { useRoute as We, useRouter as Je } from "vue-router";
3
- import { h as Ge, d as we, S as _e, W as Ke, a as Qe, T as Ze, _ as el } from "./TransitionFade-DNs7JUcf.js";
4
- import { W as j, b as Re, D as fe, c as ve, C as ae, S as $e, a as ll } from "./v4-CAyILVZZ.js";
1
+ import { defineComponent as P, mergeModels as Y, useModel as ee, computed as _, ref as z, resolveComponent as w, createElementBlock as O, openBlock as y, createVNode as m, createElementVNode as k, unref as t, withCtx as $, toDisplayString as B, Fragment as Q, renderList as de, withModifiers as te, createTextVNode as ce, watch as ne, createCommentVNode as U, createBlock as S, onMounted as Ie, onUnmounted as Xe, renderSlot as Be, onBeforeUnmount as He, resolveDynamicComponent as Le, normalizeClass as je, withDirectives as ie, vShow as se, normalizeStyle as We, isRef as Ye } from "vue";
2
+ import { useRoute as Ee, useRouter as Je } from "vue-router";
3
+ import { h as Ge, d as we, S as _e, W as Ke, a as Qe, T as Ze, _ as el } from "./TransitionFade-CjoVItWI.js";
4
+ import { W as j, b as Me, D as fe, c as ve, C as ae, S as $e, a as ll } from "./v4-DBw0cp99.js";
5
5
  import { storeToRefs as me } from "pinia";
6
- import { u as ze } from "./message-dialog-UoMWOnil.js";
7
- import { u as W, d as re, i as Ue, p as ol, b as tl } from "./vue-i18n-CbAseuRE.js";
8
- import { useSnackbar as al, useBreakpoints as Me, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
6
+ import { u as Re } from "./message-dialog-UoMWOnil.js";
7
+ import { u as E, d as re, i as Ue, p as ol, b as tl } from "./vue-i18n-CbAseuRE.js";
8
+ import { useSnackbar as al, useBreakpoints as ze, FmButtonColorThemeVariant as be } from "@feedmepos/ui-library";
9
9
  import { _ as pe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js";
10
10
  import { _ as K } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Dq9vY9mj.js";
11
11
  import { r as le } from "./i18n-Cif1I9J2.js";
12
- import { g as ye, u as he, L as ue, a as ke, _ as Pe } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DpmOkz-L.js";
12
+ import { g as ye, u as he, L as ue, a as ke, _ as Pe } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DEkXmB2J.js";
13
13
  import { a as Ve } from "./helper-CPPrXQSs.js";
14
14
  import { _ as Ae } from "./NoData.vue_vue_type_script_setup_true_lang-DGTWa4E5.js";
15
15
  const xe = [
@@ -143,7 +143,7 @@ const xe = [
143
143
  }
144
144
  ], nl = { class: "flex flex-col my-2 gap-8" }, il = { class: "fm-typo-en-body-lg-600" }, sl = { class: "text-sm text-fm-color-neutral-gray-400" }, ul = ["onClick"], rl = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, dl = /* @__PURE__ */ P({
145
145
  __name: "SchemaSection",
146
- props: /* @__PURE__ */ H({
146
+ props: /* @__PURE__ */ Y({
147
147
  options: {
148
148
  type: Array,
149
149
  default: () => []
@@ -157,59 +157,59 @@ const xe = [
157
157
  modelModifiers: {}
158
158
  }),
159
159
  emits: ["update:modelValue"],
160
- setup(V) {
161
- const { t: s, te: a } = W(), r = ee(V, "modelValue"), n = V, { schemas: f } = me(Re()), v = _(
162
- () => f.value.map((w) => ({
163
- label: w.label,
164
- value: w.name,
165
- raw: w
160
+ setup(F) {
161
+ const { t: r, te: a } = E(), u = ee(F, "modelValue"), n = F, { schemas: f } = me(Me()), v = _(
162
+ () => f.value.map((V) => ({
163
+ label: V.label,
164
+ value: V.name,
165
+ raw: V
166
166
  }))
167
167
  ), x = _(() => {
168
- if (r.value.schemaNames.length === 0 || p.value === 0)
169
- return v.value.filter((w) => !w.raw.isJoinOnly);
168
+ if (u.value.schemaNames.length === 0 || s.value === 0)
169
+ return v.value.filter((V) => !V.raw.isJoinOnly);
170
170
  {
171
- const w = r.value.schemaNames[0], h = f.value.find((o) => o.name === w), u = ((h == null ? void 0 : h.joins) || []).map((o) => o);
172
- return v.value.filter((o) => u.includes(o.raw.name));
171
+ const V = u.value.schemaNames[0], h = f.value.find((l) => l.name === V), d = ((h == null ? void 0 : h.joins) || []).map((l) => l);
172
+ return v.value.filter((l) => d.includes(l.raw.name));
173
173
  }
174
- }), d = M(!1), l = M(""), p = M(), b = al();
175
- function S(w) {
174
+ }), p = z(!1), o = z(""), s = z(), g = al();
175
+ function T(V) {
176
176
  var h;
177
177
  return le(
178
- s,
178
+ r,
179
179
  a,
180
- (h = f.value.find((u) => u.name === w)) == null ? void 0 : h.label,
180
+ (h = f.value.find((d) => d.name === V)) == null ? void 0 : h.label,
181
181
  "schema"
182
182
  );
183
183
  }
184
- function $(w) {
185
- p.value = w, d.value = !0, w !== void 0 ? l.value = r.value.schemaNames[w] : l.value = "";
184
+ function D(V) {
185
+ s.value = V, p.value = !0, V !== void 0 ? o.value = u.value.schemaNames[V] : o.value = "";
186
186
  }
187
187
  function N() {
188
- l.value !== "" ? (p.value !== void 0 ? r.value.schemaNames[p.value] = l.value : r.value.schemaNames.push(l.value), d.value = !1) : b.open({ message: s("report.section.schema.nothingSelected"), type: "error" });
188
+ o.value !== "" ? (s.value !== void 0 ? u.value.schemaNames[s.value] = o.value : u.value.schemaNames.push(o.value), p.value = !1) : g.open({ message: r("report.section.schema.nothingSelected"), type: "error" });
189
189
  }
190
- return (w, h) => {
191
- const u = F("FmForm"), o = F("FmIcon"), i = F("FmField");
190
+ return (V, h) => {
191
+ const d = w("FmForm"), l = w("FmIcon"), i = w("FmField");
192
192
  return y(), O("div", nl, [
193
193
  m(pe, {
194
- modelValue: d.value,
195
- "onUpdate:modelValue": h[1] || (h[1] = (e) => d.value = e),
194
+ modelValue: p.value,
195
+ "onUpdate:modelValue": h[1] || (h[1] = (e) => p.value = e),
196
196
  title: n.label,
197
- "primary-button-label": t(s)("report.common.confirm"),
198
- "secondary-button-label": t(s)("report.common.cancel"),
197
+ "primary-button-label": t(r)("report.common.confirm"),
198
+ "secondary-button-label": t(r)("report.common.cancel"),
199
199
  onConfirm: N
200
200
  }, {
201
- content: D(() => [
202
- m(u, { ref: "form" }, {
203
- default: D(() => [
201
+ content: $(() => [
202
+ m(d, { ref: "form" }, {
203
+ default: $(() => [
204
204
  m(K, {
205
- modelValue: l.value,
206
- "onUpdate:modelValue": h[0] || (h[0] = (e) => l.value = e),
207
- label: t(s)("report.section.schema.title"),
208
- items: p.value === 0 ? v.value.map((e) => ({
209
- label: t(le)(t(s), t(a), e.label, "schema"),
205
+ modelValue: o.value,
206
+ "onUpdate:modelValue": h[0] || (h[0] = (e) => o.value = e),
207
+ label: t(r)("report.section.schema.title"),
208
+ items: s.value === 0 ? v.value.map((e) => ({
209
+ label: t(le)(t(r), t(a), e.label, "schema"),
210
210
  value: e.value
211
211
  })) : x.value.map((e) => ({
212
- label: t(le)(t(s), t(a), e.label, "schema"),
212
+ label: t(le)(t(r), t(a), e.label, "schema"),
213
213
  value: e.value
214
214
  }))
215
215
  }, null, 8, ["modelValue", "label", "items"])
@@ -220,24 +220,24 @@ const xe = [
220
220
  _: 1
221
221
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
222
222
  k("div", null, [
223
- k("p", il, B(t(s)("report.section.schema.title")), 1),
224
- k("p", sl, B(t(s)("report.section.schema.description")), 1)
223
+ k("p", il, B(t(r)("report.section.schema.title")), 1),
224
+ k("p", sl, B(t(r)("report.section.schema.description")), 1)
225
225
  ]),
226
- (y(!0), O(Q, null, de(r.value.schemaNames, (e, c) => (y(), O("div", {
226
+ (y(!0), O(Q, null, de(u.value.schemaNames, (e, c) => (y(), O("div", {
227
227
  key: c,
228
228
  class: "flex flex-col gap-2 w-full"
229
229
  }, [
230
230
  k("div", {
231
231
  class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
232
- onClick: (g) => $(c)
232
+ onClick: (b) => D(c)
233
233
  }, [
234
- k("p", rl, B(S(e)), 1),
234
+ k("p", rl, B(T(e)), 1),
235
235
  h[3] || (h[3] = k("div", { class: "grow" }, null, -1)),
236
- m(o, {
236
+ m(l, {
237
237
  name: "close",
238
238
  onClick: te(
239
239
  () => {
240
- r.value.schemaNames = t(Ge)(r.value.schemaNames, c);
240
+ u.value.schemaNames = t(Ge)(u.value.schemaNames, c);
241
241
  },
242
242
  ["stop"]
243
243
  )
@@ -247,11 +247,11 @@ const xe = [
247
247
  m(i, {
248
248
  class: "text-fm-color-typo-tertiary",
249
249
  onClick: h[2] || (h[2] = () => {
250
- $();
250
+ D();
251
251
  })
252
252
  }, {
253
- default: D(() => [
254
- ce(B(t(s)("report.section.schema.add")), 1)
253
+ default: $(() => [
254
+ ce(B(t(r)("report.section.schema.add")), 1)
255
255
  ]),
256
256
  _: 1
257
257
  })
@@ -263,7 +263,7 @@ const xe = [
263
263
  class: "flex flex-col my-2 gap-8"
264
264
  }, cl = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, pl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, vl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Ce = /* @__PURE__ */ P({
265
265
  __name: "DimensionSection",
266
- props: /* @__PURE__ */ H({
266
+ props: /* @__PURE__ */ Y({
267
267
  options: {
268
268
  type: Array,
269
269
  default: () => []
@@ -293,186 +293,186 @@ const xe = [
293
293
  modelModifiers: {}
294
294
  }),
295
295
  emits: ["update:modelValue"],
296
- setup(V) {
297
- const { t: s, te: a } = W(), r = ee(V, "modelValue"), n = V, f = M(!1), v = _(
298
- () => r.value.map((i, e) => ({
296
+ setup(F) {
297
+ const { t: r, te: a } = E(), u = ee(F, "modelValue"), n = F, f = z(!1), v = _(
298
+ () => u.value.map((i, e) => ({
299
299
  index: e,
300
300
  labels: [i.label || i.name],
301
301
  value: i
302
302
  }))
303
- ), x = M(r.value.length > 0 ? 0 : void 0);
304
- function d(i) {
305
- var e, c, g;
306
- f.value = !0, l.value = i != null && i.value ? JSON.parse(
303
+ ), x = z(u.value.length > 0 ? 0 : void 0);
304
+ function p(i) {
305
+ var e, c, b;
306
+ f.value = !0, o.value = i != null && i.value ? JSON.parse(
307
307
  JSON.stringify({
308
308
  ...i.value,
309
- label: le(s, a, (e = i.value) == null ? void 0 : e.label, "other")
309
+ label: le(r, a, (e = i.value) == null ? void 0 : e.label, "other")
310
310
  })
311
- ) : void 0, x.value = i == null ? void 0 : i.index, p.value = !!((c = l.value) != null && c.dataFormula || (g = l.value) != null && g.displayFormula);
311
+ ) : void 0, x.value = i == null ? void 0 : i.index, s.value = !!((c = o.value) != null && c.dataFormula || (b = o.value) != null && b.displayFormula);
312
312
  }
313
- const l = M(void 0), p = M(!1), b = _(
313
+ const o = z(void 0), s = z(!1), g = _(
314
314
  () => n.options.find(
315
315
  (i) => {
316
316
  var e, c;
317
- return i.schemaName === ((e = l.value) == null ? void 0 : e.schemaName) && i.name === ((c = l.value) == null ? void 0 : c.name);
317
+ return i.schemaName === ((e = o.value) == null ? void 0 : e.schemaName) && i.name === ((c = o.value) == null ? void 0 : c.name);
318
318
  }
319
319
  ) ?? {}
320
320
  );
321
321
  ne(
322
322
  () => {
323
323
  var i;
324
- return (i = l.value) == null ? void 0 : i.option;
324
+ return (i = o.value) == null ? void 0 : i.option;
325
325
  },
326
326
  () => {
327
- !S.value && l.value && (l.value.fillGap = !1);
327
+ !T.value && o.value && (o.value.fillGap = !1);
328
328
  }
329
329
  );
330
- const S = _(
330
+ const T = _(
331
331
  () => {
332
332
  var i, e, c;
333
- return (c = (i = b.value) == null ? void 0 : i.fillGapDimensionOptions) == null ? void 0 : c.includes(((e = l.value) == null ? void 0 : e.option) || "");
333
+ return (c = (i = g.value) == null ? void 0 : i.fillGapDimensionOptions) == null ? void 0 : c.includes(((e = o.value) == null ? void 0 : e.option) || "");
334
334
  }
335
335
  );
336
- function $(i) {
336
+ function D(i) {
337
337
  var e, c;
338
- (i.schemaName !== ((e = l.value) == null ? void 0 : e.schemaName) || i.name !== ((c = l.value) == null ? void 0 : c.name)) && (l.value = {
338
+ (i.schemaName !== ((e = o.value) == null ? void 0 : e.schemaName) || i.name !== ((c = o.value) == null ? void 0 : c.name)) && (o.value = {
339
339
  schemaName: i.schemaName,
340
340
  name: i.name,
341
341
  option: i.dimensionOptions[0],
342
- label: le(s, a, i.label, "other"),
342
+ label: le(r, a, i.label, "other"),
343
343
  decimal: i.isNumericType ? 2 : void 0,
344
344
  hide: !1
345
- }, p.value = !1);
345
+ }, s.value = !1);
346
346
  }
347
347
  function N() {
348
- if (!l.value) {
348
+ if (!o.value) {
349
349
  console.error("new field is undefined");
350
350
  return;
351
351
  }
352
352
  const i = [...v.value.map((e) => e.value)];
353
- x.value !== void 0 ? i[x.value] = l.value : i.push(l.value), r.value = i, f.value = !1;
353
+ x.value !== void 0 ? i[x.value] = o.value : i.push(o.value), u.value = i, f.value = !1;
354
354
  }
355
- function w(i) {
356
- const c = [...v.value.map((g) => g.value)].filter((g, L) => L !== i);
357
- r.value = c;
355
+ function V(i) {
356
+ const c = [...v.value.map((b) => b.value)].filter((b, L) => L !== i);
357
+ u.value = c;
358
358
  }
359
359
  function h(i) {
360
- l.value && (l.value.decimal = Number(i));
360
+ o.value && (o.value.decimal = Number(i));
361
361
  }
362
- const u = _(
362
+ const d = _(
363
363
  () => n.options.map((i) => ({
364
364
  label: i.labels.join(" "),
365
365
  value: i
366
366
  }))
367
- ), o = _(
368
- () => n.label ? n.label : s(`report.section.dimension.${n.label}`)
367
+ ), l = _(
368
+ () => n.label ? n.label : r(`report.section.dimension.${n.label}`)
369
369
  );
370
370
  return (i, e) => {
371
- const c = F("FmTextField"), g = F("FmStepperField"), L = F("FmCheckbox"), A = F("FmTextarea"), Y = F("FmForm"), q = F("FmIcon"), X = F("FmButton"), J = F("FmListItem"), E = F("FmList"), C = F("FmField");
372
- return V.max !== 0 ? (y(), O("div", ml, [
371
+ const c = w("FmTextField"), b = w("FmStepperField"), L = w("FmCheckbox"), A = w("FmTextarea"), H = w("FmForm"), q = w("FmIcon"), X = w("FmButton"), J = w("FmListItem"), W = w("FmList"), C = w("FmField");
372
+ return F.max !== 0 ? (y(), O("div", ml, [
373
373
  m(pe, {
374
374
  modelValue: f.value,
375
375
  "onUpdate:modelValue": e[12] || (e[12] = (I) => f.value = I),
376
- title: o.value,
377
- "primary-button-label": t(s)("report.common.confirm"),
378
- "secondary-button-label": t(s)("report.common.cancel"),
376
+ title: l.value,
377
+ "primary-button-label": t(r)("report.common.confirm"),
378
+ "secondary-button-label": t(r)("report.common.cancel"),
379
379
  onConfirm: N
380
380
  }, {
381
- content: D(() => [
382
- m(Y, {
381
+ content: $(() => [
382
+ m(H, {
383
383
  ref: "form",
384
384
  class: "flex flex-col gap-2 w-[490px]"
385
385
  }, {
386
- default: D(() => {
387
- var I, G, oe, Z, z, De;
386
+ default: $(() => {
387
+ var I, G, oe, Z, R, De;
388
388
  return [
389
389
  m(K, {
390
- "model-value": b.value,
391
- items: u.value,
392
- placeholder: o.value,
393
- label: o.value,
394
- "onUpdate:modelValue": e[0] || (e[0] = (R) => $(R))
390
+ "model-value": g.value,
391
+ items: d.value,
392
+ placeholder: l.value,
393
+ label: l.value,
394
+ "onUpdate:modelValue": e[0] || (e[0] = (M) => D(M))
395
395
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
396
- l.value ? (y(), O(Q, { key: 0 }, [
396
+ o.value ? (y(), O(Q, { key: 0 }, [
397
397
  m(c, {
398
- modelValue: l.value.label,
399
- "onUpdate:modelValue": e[1] || (e[1] = (R) => l.value.label = R),
400
- label: t(s)("report.section.dimension.label")
398
+ modelValue: o.value.label,
399
+ "onUpdate:modelValue": e[1] || (e[1] = (M) => o.value.label = M),
400
+ label: t(r)("report.section.dimension.label")
401
401
  }, null, 8, ["modelValue", "label"]),
402
- (((I = b.value) == null ? void 0 : I.dimensionOptions) || []).length > 0 ? (y(), T(K, {
402
+ (((I = g.value) == null ? void 0 : I.dimensionOptions) || []).length > 0 ? (y(), S(K, {
403
403
  key: 0,
404
- modelValue: l.value.option,
405
- "onUpdate:modelValue": e[2] || (e[2] = (R) => l.value.option = R),
406
- items: ((G = b.value) == null ? void 0 : G.dimensionOptions.map((R) => ({
407
- label: t(le)(t(s), t(a), R, "field"),
408
- value: R
404
+ modelValue: o.value.option,
405
+ "onUpdate:modelValue": e[2] || (e[2] = (M) => o.value.option = M),
406
+ items: ((G = g.value) == null ? void 0 : G.dimensionOptions.map((M) => ({
407
+ label: t(le)(t(r), t(a), M, "field"),
408
+ value: M
409
409
  }))) ?? []
410
410
  }, null, 8, ["modelValue", "items"])) : U("", !0),
411
- (oe = b.value) != null && oe.isNumericType ? (y(), T(g, {
411
+ (oe = g.value) != null && oe.isNumericType ? (y(), S(b, {
412
412
  key: 1,
413
- label: t(s)("report.common.decimal"),
414
- "model-value": ((Z = l.value) == null ? void 0 : Z.decimal) ?? 2,
415
- "onUpdate:modelValue": e[3] || (e[3] = (R) => {
416
- h(R);
413
+ label: t(r)("report.common.decimal"),
414
+ "model-value": ((Z = o.value) == null ? void 0 : Z.decimal) ?? 2,
415
+ "onUpdate:modelValue": e[3] || (e[3] = (M) => {
416
+ h(M);
417
417
  })
418
418
  }, null, 8, ["label", "model-value"])) : U("", !0),
419
- (z = b.value) != null && z.isNumericType ? (y(), T(K, {
419
+ (R = g.value) != null && R.isNumericType ? (y(), S(K, {
420
420
  key: 2,
421
- modelValue: l.value.timeFormatter,
422
- "onUpdate:modelValue": e[4] || (e[4] = (R) => l.value.timeFormatter = R),
423
- placeholder: t(s)("report.section.dimension.timeFormatter"),
424
- label: t(s)("report.section.dimension.timeFormatter"),
425
- items: b.value.timeFormatters.map((R) => ({ label: R, value: R }))
421
+ modelValue: o.value.timeFormatter,
422
+ "onUpdate:modelValue": e[4] || (e[4] = (M) => o.value.timeFormatter = M),
423
+ placeholder: t(r)("report.section.dimension.timeFormatter"),
424
+ label: t(r)("report.section.dimension.timeFormatter"),
425
+ items: g.value.timeFormatters.map((M) => ({ label: M, value: M }))
426
426
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : U("", !0),
427
- S.value ? (y(), T(L, {
427
+ T.value ? (y(), S(L, {
428
428
  key: 3,
429
- "model-value": l.value.fillGap ?? !1,
430
- label: t(s)("report.section.dimension.fillGap"),
429
+ "model-value": o.value.fillGap ?? !1,
430
+ label: t(r)("report.section.dimension.fillGap"),
431
431
  value: "",
432
432
  placeholder: "Fill gap",
433
- "onUpdate:modelValue": e[5] || (e[5] = (R) => {
434
- l.value && (l.value.fillGap = R);
433
+ "onUpdate:modelValue": e[5] || (e[5] = (M) => {
434
+ o.value && (o.value.fillGap = M);
435
435
  })
436
436
  }, null, 8, ["model-value", "label"])) : U("", !0),
437
- ((De = b.value) == null ? void 0 : De.type) === t(fe).Timestamp ? (y(), T(L, {
437
+ ((De = g.value) == null ? void 0 : De.type) === t(fe).Timestamp ? (y(), S(L, {
438
438
  key: 4,
439
- "model-value": l.value.dateComparison ?? !1,
440
- label: t(s)("report.section.dimension.dateComparison"),
439
+ "model-value": o.value.dateComparison ?? !1,
440
+ label: t(r)("report.section.dimension.dateComparison"),
441
441
  value: "",
442
- "onUpdate:modelValue": e[6] || (e[6] = (R) => {
443
- l.value && (l.value.dateComparison = R);
442
+ "onUpdate:modelValue": e[6] || (e[6] = (M) => {
443
+ o.value && (o.value.dateComparison = M);
444
444
  })
445
445
  }, null, 8, ["model-value", "label"])) : U("", !0),
446
446
  m(L, {
447
- modelValue: l.value.hide,
448
- "onUpdate:modelValue": e[7] || (e[7] = (R) => l.value.hide = R),
449
- label: t(s)("report.section.dimension.hide"),
447
+ modelValue: o.value.hide,
448
+ "onUpdate:modelValue": e[7] || (e[7] = (M) => o.value.hide = M),
449
+ label: t(r)("report.section.dimension.hide"),
450
450
  value: ""
451
451
  }, null, 8, ["modelValue", "label"]),
452
- n.hasRowColumn ? (y(), T(L, {
452
+ n.hasRowColumn ? (y(), S(L, {
453
453
  key: 5,
454
- modelValue: l.value.moveToColumn,
455
- "onUpdate:modelValue": e[8] || (e[8] = (R) => l.value.moveToColumn = R),
456
- label: t(s)("report.section.dimension.moveToColumn"),
454
+ modelValue: o.value.moveToColumn,
455
+ "onUpdate:modelValue": e[8] || (e[8] = (M) => o.value.moveToColumn = M),
456
+ label: t(r)("report.section.dimension.moveToColumn"),
457
457
  value: ""
458
458
  }, null, 8, ["modelValue", "label"])) : U("", !0),
459
459
  m(L, {
460
- modelValue: p.value,
461
- "onUpdate:modelValue": e[9] || (e[9] = (R) => p.value = R),
462
- label: t(s)("report.section.dimension.advance"),
460
+ modelValue: s.value,
461
+ "onUpdate:modelValue": e[9] || (e[9] = (M) => s.value = M),
462
+ label: t(r)("report.section.dimension.advance"),
463
463
  value: !0
464
464
  }, null, 8, ["modelValue", "label"]),
465
- p.value ? (y(), T(A, {
465
+ s.value ? (y(), S(A, {
466
466
  key: 6,
467
- modelValue: l.value.dataFormula,
468
- "onUpdate:modelValue": e[10] || (e[10] = (R) => l.value.dataFormula = R),
469
- placeholder: t(s)("report.section.dimension.dataFormula")
467
+ modelValue: o.value.dataFormula,
468
+ "onUpdate:modelValue": e[10] || (e[10] = (M) => o.value.dataFormula = M),
469
+ placeholder: t(r)("report.section.dimension.dataFormula")
470
470
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0),
471
- p.value ? (y(), T(A, {
471
+ s.value ? (y(), S(A, {
472
472
  key: 7,
473
- modelValue: l.value.displayFormula,
474
- "onUpdate:modelValue": e[11] || (e[11] = (R) => l.value.displayFormula = R),
475
- placeholder: t(s)("report.section.dimension.displayFormula")
473
+ modelValue: o.value.displayFormula,
474
+ "onUpdate:modelValue": e[11] || (e[11] = (M) => o.value.displayFormula = M),
475
+ placeholder: t(r)("report.section.dimension.displayFormula")
476
476
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0)
477
477
  ], 64)) : U("", !0)
478
478
  ];
@@ -483,30 +483,30 @@ const xe = [
483
483
  _: 1
484
484
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
485
485
  k("div", null, [
486
- k("p", cl, B(o.value), 1),
487
- k("p", pl, B(t(s)("report.section.dimension.description")), 1)
486
+ k("p", cl, B(l.value), 1),
487
+ k("p", pl, B(t(r)("report.section.dimension.description")), 1)
488
488
  ]),
489
- m(E, null, {
490
- default: D(() => [
489
+ m(W, null, {
490
+ default: $(() => [
491
491
  m(t(we), {
492
- list: r.value,
492
+ list: u.value,
493
493
  "item-key": "id",
494
494
  class: "flex flex-col gap-2"
495
495
  }, {
496
- item: D(({ element: I, index: G }) => [
496
+ item: $(({ element: I, index: G }) => [
497
497
  m(J, {
498
498
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
499
- onClick: te((oe) => d(v.value[G]), ["stop"])
499
+ onClick: te((oe) => p(v.value[G]), ["stop"])
500
500
  }, {
501
- default: D(() => [
501
+ default: $(() => [
502
502
  m(q, { name: "drag_handle" }),
503
- k("p", vl, B(t(le)(t(s), t(a), I.label, "other")), 1),
503
+ k("p", vl, B(t(le)(t(r), t(a), I.label, "other")), 1),
504
504
  e[14] || (e[14] = k("div", { class: "grow" }, null, -1)),
505
505
  m(X, {
506
506
  icon: "close",
507
507
  size: "md",
508
508
  variant: "tertiary",
509
- onClick: te((oe) => w(G), ["stop"])
509
+ onClick: te((oe) => V(G), ["stop"])
510
510
  }, null, 8, ["onClick"])
511
511
  ]),
512
512
  _: 2
@@ -520,11 +520,11 @@ const xe = [
520
520
  m(C, {
521
521
  class: "text-fm-color-typo-tertiary",
522
522
  onClick: e[13] || (e[13] = () => {
523
- d();
523
+ p();
524
524
  })
525
525
  }, {
526
- default: D(() => [
527
- ce(B(t(s)("report.section.dimension.add")), 1)
526
+ default: $(() => [
527
+ ce(B(t(r)("report.section.dimension.add")), 1)
528
528
  ]),
529
529
  _: 1
530
530
  })
@@ -534,35 +534,35 @@ const xe = [
534
534
  }), Se = {
535
535
  value: "_metric_name"
536
536
  };
537
- function fl(V, s, a) {
538
- switch (V) {
537
+ function fl(F, r, a) {
538
+ switch (F) {
539
539
  case j.BarChart:
540
540
  case j.StackBarChart:
541
541
  case j.LineChart:
542
542
  case j.StackLineChart:
543
543
  case j.Circular:
544
- return s.length > 1;
544
+ return r.length > 1;
545
545
  default:
546
546
  return a;
547
547
  }
548
548
  }
549
- function gl(V) {
550
- var r;
551
- const { rowIds: s, columnIds: a } = Fe(V.widget.config);
549
+ function gl(F) {
550
+ var u;
551
+ const { rowIds: r, columnIds: a } = Fe(F.widget.config);
552
552
  return {
553
- ...V,
553
+ ...F,
554
554
  widget: {
555
- ...V.widget,
555
+ ...F.widget,
556
556
  config: {
557
- ...V.widget.config,
558
- rowIds: s,
557
+ ...F.widget.config,
558
+ rowIds: r,
559
559
  columnIds: a,
560
560
  isDrillable: fl(
561
- V.widget.type,
562
- V.widget.config.dimensions,
563
- V.widget.config.isDrillable
561
+ F.widget.type,
562
+ F.widget.config.dimensions,
563
+ F.widget.config.isDrillable
564
564
  ),
565
- joinDatasources: (r = V.widget.config.joinDatasources) == null ? void 0 : r.map((n) => {
565
+ joinDatasources: (u = F.widget.config.joinDatasources) == null ? void 0 : u.map((n) => {
566
566
  const { rowIds: f, columnIds: v } = Fe(n);
567
567
  return {
568
568
  ...n,
@@ -574,11 +574,11 @@ function gl(V) {
574
574
  }
575
575
  };
576
576
  }
577
- function Fe(V) {
578
- const s = V.dimensions.filter((v) => v.hide !== !0 && !v.moveToColumn).map((v) => ye(v)), a = V.dimensions.filter((v) => v.hide !== !0 && v.moveToColumn == !0).map((v) => ye(v)), r = V.metrics.length > 0;
579
- r && V.metrics.find((v) => v.moveToRow == !0) ? s.push(Se.value) : r && a.push(Se.value);
577
+ function Fe(F) {
578
+ const r = F.dimensions.filter((v) => v.hide !== !0 && !v.moveToColumn).map((v) => ye(v)), a = F.dimensions.filter((v) => v.hide !== !0 && v.moveToColumn == !0).map((v) => ye(v)), u = F.metrics.length > 0;
579
+ u && F.metrics.find((v) => v.moveToRow == !0) ? r.push(Se.value) : u && a.push(Se.value);
580
580
  const n = [], f = [];
581
- for (const v of s)
581
+ for (const v of r)
582
582
  n.push(v);
583
583
  for (const v of a)
584
584
  f.push(v);
@@ -589,7 +589,7 @@ function Fe(V) {
589
589
  }
590
590
  const bl = { class: "flex flex-col my-2 gap-8" }, yl = { class: "fm-typo-en-body-lg-600" }, hl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Vl = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, Fl = /* @__PURE__ */ P({
591
591
  __name: "MetricSection",
592
- props: /* @__PURE__ */ H({
592
+ props: /* @__PURE__ */ Y({
593
593
  options: {
594
594
  type: Array,
595
595
  default: () => []
@@ -615,68 +615,68 @@ const bl = { class: "flex flex-col my-2 gap-8" }, yl = { class: "fm-typo-en-body
615
615
  modelValue: { required: !1, default: [] },
616
616
  modelModifiers: {}
617
617
  }),
618
- emits: /* @__PURE__ */ H(["config"], ["update:modelValue"]),
619
- setup(V, { emit: s }) {
620
- const { t: a, te: r } = W(), n = ee(V, "modelValue"), f = V;
618
+ emits: /* @__PURE__ */ Y(["config"], ["update:modelValue"]),
619
+ setup(F, { emit: r }) {
620
+ const { t: a, te: u } = E(), n = ee(F, "modelValue"), f = F;
621
621
  _(() => !!f.max && n.value.length === f.max);
622
- const v = M(!1), x = _(
622
+ const v = z(!1), x = _(
623
623
  () => n.value.map((e, c) => ({
624
624
  index: c,
625
625
  labels: [e.label || e.name],
626
626
  value: e
627
627
  }))
628
- ), d = M(n.value.length > 0 ? 0 : void 0);
629
- function l(e) {
630
- var c, g, L;
631
- v.value = !0, p.value = e != null && e.value ? JSON.parse(
628
+ ), p = z(n.value.length > 0 ? 0 : void 0);
629
+ function o(e) {
630
+ var c, b, L;
631
+ v.value = !0, s.value = e != null && e.value ? JSON.parse(
632
632
  JSON.stringify({
633
633
  ...e.value,
634
- label: le(a, r, e.value.label, "other")
634
+ label: le(a, u, e.value.label, "other")
635
635
  })
636
- ) : void 0, d.value = e == null ? void 0 : e.index, b.value = !!((c = p.value) != null && c.dataFormula || (g = p.value) != null && g.displayFormula), ((L = f.config.rowIds) == null ? void 0 : L.findIndex((A) => A === Se.value)) !== -1 && p.value && (p.value.moveToRow = !0);
636
+ ) : void 0, p.value = e == null ? void 0 : e.index, g.value = !!((c = s.value) != null && c.dataFormula || (b = s.value) != null && b.displayFormula), ((L = f.config.rowIds) == null ? void 0 : L.findIndex((A) => A === Se.value)) !== -1 && s.value && (s.value.moveToRow = !0);
637
637
  }
638
- const p = M(void 0), b = M(!1), S = _(
638
+ const s = z(void 0), g = z(!1), T = _(
639
639
  () => f.options.find(
640
640
  (e) => {
641
- var c, g;
642
- return e.schemaName === ((c = p.value) == null ? void 0 : c.schemaName) && e.name === ((g = p.value) == null ? void 0 : g.name);
641
+ var c, b;
642
+ return e.schemaName === ((c = s.value) == null ? void 0 : c.schemaName) && e.name === ((b = s.value) == null ? void 0 : b.name);
643
643
  }
644
644
  ) ?? {}
645
645
  );
646
- function $(e, c) {
647
- var g;
648
- return (e == null ? void 0 : e.isNumericType) || ((g = e == null ? void 0 : e.isNumericAggregations) == null ? void 0 : g.includes(c || ""));
646
+ function D(e, c) {
647
+ var b;
648
+ return (e == null ? void 0 : e.isNumericType) || ((b = e == null ? void 0 : e.isNumericAggregations) == null ? void 0 : b.includes(c || ""));
649
649
  }
650
650
  const N = _(
651
651
  () => {
652
652
  var e;
653
- return $(S.value, (e = p.value) == null ? void 0 : e.aggregation);
653
+ return D(T.value, (e = s.value) == null ? void 0 : e.aggregation);
654
654
  }
655
655
  );
656
656
  ne(N, (e) => {
657
- p.value && (e ? p.value.decimal = typeof p.value.decimal != "number" ? 2 : p.value.decimal : p.value.decimal = void 0);
657
+ s.value && (e ? s.value.decimal = typeof s.value.decimal != "number" ? 2 : s.value.decimal : s.value.decimal = void 0);
658
658
  });
659
- function w(e) {
660
- var c, g;
661
- (e.schemaName !== ((c = p.value) == null ? void 0 : c.schemaName) || e.name !== ((g = p.value) == null ? void 0 : g.name)) && (p.value = {
659
+ function V(e) {
660
+ var c, b;
661
+ (e.schemaName !== ((c = s.value) == null ? void 0 : c.schemaName) || e.name !== ((b = s.value) == null ? void 0 : b.name)) && (s.value = {
662
662
  schemaName: e.schemaName,
663
663
  name: e.name,
664
664
  aggregation: e.aggregations[0],
665
- label: le(a, r, e.label, "other"),
666
- decimal: $(e, e.aggregations[0]) ? 2 : void 0,
665
+ label: le(a, u, e.label, "other"),
666
+ decimal: D(e, e.aggregations[0]) ? 2 : void 0,
667
667
  moveToRow: !1,
668
668
  hide: !1
669
- }, b.value = !1);
669
+ }, g.value = !1);
670
670
  }
671
671
  function h() {
672
672
  const e = [...x.value.map((c) => c.value)];
673
- p.value && (d.value !== void 0 ? e[d.value] = p.value : e.push(p.value)), n.value = e, v.value = !1;
673
+ s.value && (p.value !== void 0 ? e[p.value] = s.value : e.push(s.value)), n.value = e, v.value = !1;
674
674
  }
675
- function u(e) {
676
- const c = [...x.value.map((g) => g.value)];
675
+ function d(e) {
676
+ const c = [...x.value.map((b) => b.value)];
677
677
  c.splice(e, 1), n.value = c;
678
678
  }
679
- const o = _(
679
+ const l = _(
680
680
  () => f.options.map((e) => ({
681
681
  label: e.labels.join(" "),
682
682
  value: e
@@ -685,7 +685,7 @@ const bl = { class: "flex flex-col my-2 gap-8" }, yl = { class: "fm-typo-en-body
685
685
  () => f.label ? f.label : a(`report.section.metric.${f.label}`)
686
686
  );
687
687
  return (e, c) => {
688
- const g = F("FmTextField"), L = F("FmStepperField"), A = F("FmCheckbox"), Y = F("FmTextarea"), q = F("FmForm"), X = F("FmIcon"), J = F("FmButton"), E = F("FmListItem"), C = F("FmList"), I = F("FmField");
688
+ const b = w("FmTextField"), L = w("FmStepperField"), A = w("FmCheckbox"), H = w("FmTextarea"), q = w("FmForm"), X = w("FmIcon"), J = w("FmButton"), W = w("FmListItem"), C = w("FmList"), I = w("FmField");
689
689
  return y(), O("div", bl, [
690
690
  m(pe, {
691
691
  modelValue: v.value,
@@ -693,82 +693,82 @@ const bl = { class: "flex flex-col my-2 gap-8" }, yl = { class: "fm-typo-en-body
693
693
  title: i.value,
694
694
  onConfirm: h
695
695
  }, {
696
- content: D(() => [
696
+ content: $(() => [
697
697
  m(q, {
698
698
  ref: "form",
699
699
  class: "flex flex-col gap-2 w-[490px]"
700
700
  }, {
701
- default: D(() => {
701
+ default: $(() => {
702
702
  var G, oe, Z;
703
703
  return [
704
704
  m(K, {
705
- "model-value": S.value,
706
- items: o.value,
705
+ "model-value": T.value,
706
+ items: l.value,
707
707
  placeholder: i.value,
708
708
  label: i.value,
709
- "onUpdate:modelValue": c[0] || (c[0] = (z) => w(z))
709
+ "onUpdate:modelValue": c[0] || (c[0] = (R) => V(R))
710
710
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
711
- p.value ? (y(), O(Q, { key: 0 }, [
712
- m(g, {
713
- modelValue: p.value.label,
714
- "onUpdate:modelValue": c[1] || (c[1] = (z) => p.value.label = z),
711
+ s.value ? (y(), O(Q, { key: 0 }, [
712
+ m(b, {
713
+ modelValue: s.value.label,
714
+ "onUpdate:modelValue": c[1] || (c[1] = (R) => s.value.label = R),
715
715
  label: t(a)("report.section.metric.label")
716
716
  }, null, 8, ["modelValue", "label"]),
717
- (((G = S.value) == null ? void 0 : G.aggregations) || []).length > 0 ? (y(), T(K, {
717
+ (((G = T.value) == null ? void 0 : G.aggregations) || []).length > 0 ? (y(), S(K, {
718
718
  key: 0,
719
- modelValue: p.value.aggregation,
720
- "onUpdate:modelValue": c[2] || (c[2] = (z) => p.value.aggregation = z),
719
+ modelValue: s.value.aggregation,
720
+ "onUpdate:modelValue": c[2] || (c[2] = (R) => s.value.aggregation = R),
721
721
  label: t(a)("report.section.metric.aggregation"),
722
- items: ((oe = S.value) == null ? void 0 : oe.aggregations.map((z) => ({
723
- label: t(le)(t(a), t(r), z, "field"),
724
- value: z
722
+ items: ((oe = T.value) == null ? void 0 : oe.aggregations.map((R) => ({
723
+ label: t(le)(t(a), t(u), R, "field"),
724
+ value: R
725
725
  }))) ?? []
726
726
  }, null, 8, ["modelValue", "label", "items"])) : U("", !0),
727
- N.value ? (y(), T(L, {
727
+ N.value ? (y(), S(L, {
728
728
  key: 1,
729
729
  label: t(a)("report.common.decimal"),
730
- "model-value": ((Z = p.value) == null ? void 0 : Z.decimal) ?? 2,
731
- "onUpdate:modelValue": c[3] || (c[3] = (z) => {
732
- p.value && (p.value.decimal = z);
730
+ "model-value": ((Z = s.value) == null ? void 0 : Z.decimal) ?? 2,
731
+ "onUpdate:modelValue": c[3] || (c[3] = (R) => {
732
+ s.value && (s.value.decimal = R);
733
733
  })
734
734
  }, null, 8, ["label", "model-value"])) : U("", !0),
735
- N.value ? (y(), T(K, {
735
+ N.value ? (y(), S(K, {
736
736
  key: 2,
737
- modelValue: p.value.timeFormatter,
738
- "onUpdate:modelValue": c[4] || (c[4] = (z) => p.value.timeFormatter = z),
737
+ modelValue: s.value.timeFormatter,
738
+ "onUpdate:modelValue": c[4] || (c[4] = (R) => s.value.timeFormatter = R),
739
739
  placeholder: t(a)("report.section.metric.timeFormatter"),
740
740
  label: t(a)("report.section.metric.timeFormatter"),
741
- items: S.value.timeFormatters.map((z) => ({ label: z, value: z }))
741
+ items: T.value.timeFormatters.map((R) => ({ label: R, value: R }))
742
742
  }, null, 8, ["modelValue", "placeholder", "label", "items"])) : U("", !0),
743
743
  m(A, {
744
- modelValue: p.value.hide,
745
- "onUpdate:modelValue": c[5] || (c[5] = (z) => p.value.hide = z),
744
+ modelValue: s.value.hide,
745
+ "onUpdate:modelValue": c[5] || (c[5] = (R) => s.value.hide = R),
746
746
  label: t(a)("report.section.metric.hide"),
747
747
  value: ""
748
748
  }, null, 8, ["modelValue", "label"]),
749
- f.hasRowColumn ? (y(), T(A, {
749
+ f.hasRowColumn ? (y(), S(A, {
750
750
  key: 3,
751
- modelValue: p.value.moveToRow,
752
- "onUpdate:modelValue": c[6] || (c[6] = (z) => p.value.moveToRow = z),
751
+ modelValue: s.value.moveToRow,
752
+ "onUpdate:modelValue": c[6] || (c[6] = (R) => s.value.moveToRow = R),
753
753
  label: t(a)("report.section.metric.moveToRow"),
754
754
  value: ""
755
755
  }, null, 8, ["modelValue", "label"])) : U("", !0),
756
756
  m(A, {
757
- modelValue: b.value,
758
- "onUpdate:modelValue": c[7] || (c[7] = (z) => b.value = z),
757
+ modelValue: g.value,
758
+ "onUpdate:modelValue": c[7] || (c[7] = (R) => g.value = R),
759
759
  label: t(a)("report.section.metric.advance"),
760
760
  value: !0
761
761
  }, null, 8, ["modelValue", "label"]),
762
- b.value ? (y(), T(Y, {
762
+ g.value ? (y(), S(H, {
763
763
  key: 4,
764
- modelValue: p.value.dataFormula,
765
- "onUpdate:modelValue": c[8] || (c[8] = (z) => p.value.dataFormula = z),
764
+ modelValue: s.value.dataFormula,
765
+ "onUpdate:modelValue": c[8] || (c[8] = (R) => s.value.dataFormula = R),
766
766
  placeholder: t(a)("report.section.metric.dataFormula")
767
767
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0),
768
- b.value ? (y(), T(Y, {
768
+ g.value ? (y(), S(H, {
769
769
  key: 5,
770
- modelValue: p.value.displayFormula,
771
- "onUpdate:modelValue": c[9] || (c[9] = (z) => p.value.displayFormula = z),
770
+ modelValue: s.value.displayFormula,
771
+ "onUpdate:modelValue": c[9] || (c[9] = (R) => s.value.displayFormula = R),
772
772
  placeholder: t(a)("report.section.metric.displayFormula")
773
773
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0)
774
774
  ], 64)) : U("", !0)
@@ -784,26 +784,26 @@ const bl = { class: "flex flex-col my-2 gap-8" }, yl = { class: "fm-typo-en-body
784
784
  k("p", hl, B(t(a)("report.section.metric.description")), 1)
785
785
  ]),
786
786
  m(C, null, {
787
- default: D(() => [
787
+ default: $(() => [
788
788
  m(t(we), {
789
789
  list: n.value,
790
790
  "item-key": "id",
791
791
  class: "flex flex-col gap-2 w-full"
792
792
  }, {
793
- item: D(({ element: G, index: oe }) => [
794
- m(E, {
793
+ item: $(({ element: G, index: oe }) => [
794
+ m(W, {
795
795
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
796
- onClick: te((Z) => l(x.value[oe]), ["stop"])
796
+ onClick: te((Z) => o(x.value[oe]), ["stop"])
797
797
  }, {
798
- default: D(() => [
798
+ default: $(() => [
799
799
  m(X, { name: "drag_handle" }),
800
- k("p", Vl, B(t(le)(t(a), t(r), G.label, "other")), 1),
800
+ k("p", Vl, B(t(le)(t(a), t(u), G.label, "other")), 1),
801
801
  c[12] || (c[12] = k("div", { class: "grow" }, null, -1)),
802
802
  m(J, {
803
803
  icon: "close",
804
804
  size: "md",
805
805
  variant: "tertiary",
806
- onClick: te((Z) => u(oe), ["stop"])
806
+ onClick: te((Z) => d(oe), ["stop"])
807
807
  }, null, 8, ["onClick"])
808
808
  ]),
809
809
  _: 2
@@ -817,10 +817,10 @@ const bl = { class: "flex flex-col my-2 gap-8" }, yl = { class: "fm-typo-en-body
817
817
  m(I, {
818
818
  class: "text-fm-color-typo-tertiary",
819
819
  onClick: c[11] || (c[11] = () => {
820
- l();
820
+ o();
821
821
  })
822
822
  }, {
823
- default: D(() => [
823
+ default: $(() => [
824
824
  ce(B(t(a)("report.section.metric.add")), 1)
825
825
  ]),
826
826
  _: 1
@@ -829,42 +829,42 @@ const bl = { class: "flex flex-col my-2 gap-8" }, yl = { class: "fm-typo-en-body
829
829
  };
830
830
  }
831
831
  });
832
- var ge = /* @__PURE__ */ ((V) => (V.Select = "Select", V.TextField = "TextField", V.Timestamp = "Timestamp", V))(ge || {});
833
- function wl(V) {
834
- let s = !1, a = 1;
835
- switch (V) {
832
+ var ge = /* @__PURE__ */ ((F) => (F.Select = "Select", F.TextField = "TextField", F.Timestamp = "Timestamp", F))(ge || {});
833
+ function wl(F) {
834
+ let r = !1, a = 1;
835
+ switch (F) {
836
836
  case ae.Equal:
837
837
  case ae.NotEqual:
838
838
  case ae.Like:
839
839
  case ae.NotLike:
840
- s = !1, a = 1;
840
+ r = !1, a = 1;
841
841
  break;
842
842
  case ae.GreaterThan:
843
843
  case ae.GreaterThanOrEqual:
844
844
  case ae.LessThan:
845
845
  case ae.LessThanOrEqual:
846
- s = !0, a = 1;
846
+ r = !0, a = 1;
847
847
  break;
848
848
  case ae.Between:
849
- s = !0, a = 2;
849
+ r = !0, a = 2;
850
850
  break;
851
851
  }
852
852
  return {
853
- fixed: s,
853
+ fixed: r,
854
854
  count: a
855
855
  };
856
856
  }
857
857
  function xl({
858
- operator: V,
859
- dimensionOption: s,
858
+ operator: F,
859
+ dimensionOption: r,
860
860
  dataType: a
861
861
  }) {
862
- const { fixed: r, count: n } = wl(V);
862
+ const { fixed: u, count: n } = wl(F);
863
863
  switch (a) {
864
864
  case fe.String:
865
865
  return {
866
866
  type: "TextField",
867
- fixed: r,
867
+ fixed: u,
868
868
  count: n,
869
869
  dataType: void 0,
870
870
  default: ""
@@ -872,7 +872,7 @@ function xl({
872
872
  case fe.Numeric:
873
873
  return {
874
874
  type: "TextField",
875
- fixed: r,
875
+ fixed: u,
876
876
  count: n,
877
877
  dataType: "number",
878
878
  default: 0
@@ -880,7 +880,7 @@ function xl({
880
880
  case fe.Bool:
881
881
  return {
882
882
  type: "Select",
883
- fixed: r,
883
+ fixed: u,
884
884
  count: n,
885
885
  options: [
886
886
  { label: "Yes", value: !0 },
@@ -889,14 +889,14 @@ function xl({
889
889
  default: !0
890
890
  };
891
891
  case fe.Timestamp:
892
- switch (s) {
892
+ switch (r) {
893
893
  case ve.HourOfDay:
894
894
  case ve.DayOfWeek:
895
895
  case ve.DayOfMonth:
896
896
  case ve.MonthOfYear:
897
897
  return {
898
898
  type: "TextField",
899
- fixed: r,
899
+ fixed: u,
900
900
  count: n,
901
901
  dataType: "number",
902
902
  default: "0"
@@ -904,7 +904,7 @@ function xl({
904
904
  case ve.TimeOfDay:
905
905
  return {
906
906
  type: "Timestamp",
907
- fixed: r,
907
+ fixed: u,
908
908
  count: n,
909
909
  default: (/* @__PURE__ */ new Date()).toISOString()
910
910
  };
@@ -912,7 +912,7 @@ function xl({
912
912
  }
913
913
  return {
914
914
  type: "TextField",
915
- fixed: r,
915
+ fixed: u,
916
916
  count: n,
917
917
  dataType: void 0,
918
918
  default: ""
@@ -923,7 +923,7 @@ const kl = { class: "grow" }, Cl = {
923
923
  class: "w-full"
924
924
  }, _l = { key: 0 }, Sl = /* @__PURE__ */ P({
925
925
  __name: "FilterValueInput",
926
- props: /* @__PURE__ */ H({
926
+ props: /* @__PURE__ */ Y({
927
927
  config: {
928
928
  type: Object,
929
929
  default: () => {
@@ -934,57 +934,57 @@ const kl = { class: "grow" }, Cl = {
934
934
  modelModifiers: {}
935
935
  }),
936
936
  emits: ["update:modelValue"],
937
- setup(V) {
938
- const s = ee(V, "modelValue"), a = V;
939
- function r(x) {
937
+ setup(F) {
938
+ const r = ee(F, "modelValue"), a = F;
939
+ function u(x) {
940
940
  return (x ? re(x) : re()).format("HH:mm");
941
941
  }
942
- function n({ hour: x, minute: d }) {
943
- return re().set("hour", x).set("minute", d).toISOString();
942
+ function n({ hour: x, minute: p }) {
943
+ return re().set("hour", x).set("minute", p).toISOString();
944
944
  }
945
- function f(x, d) {
946
- var p;
947
- const l = [...s.value];
948
- ((p = a.config) == null ? void 0 : p.type) === ge.Timestamp ? l[x] = n({
949
- hour: Number(d.split(":")[0]),
950
- minute: Number(d.split(":")[1])
951
- }) : l[x] = d, s.value = l;
945
+ function f(x, p) {
946
+ var s;
947
+ const o = [...r.value];
948
+ ((s = a.config) == null ? void 0 : s.type) === ge.Timestamp ? o[x] = n({
949
+ hour: Number(p.split(":")[0]),
950
+ minute: Number(p.split(":")[1])
951
+ }) : o[x] = p, r.value = o;
952
952
  }
953
953
  function v(x) {
954
954
  if (x === 0)
955
- s.value = [void 0, ...s.value];
955
+ r.value = [void 0, ...r.value];
956
956
  else {
957
- const d = [...s.value];
958
- d.splice(x, 1), s.value = d;
957
+ const p = [...r.value];
958
+ p.splice(x, 1), r.value = p;
959
959
  }
960
960
  }
961
- return (x, d) => {
962
- const l = F("FmSelect"), p = F("FmTextField"), b = F("FmTimePicker"), S = F("FmButton");
963
- return y(!0), O(Q, null, de(new Array(s.value.length !== 0 ? s.value.length : 1), ($, N) => {
964
- var w, h, u, o;
961
+ return (x, p) => {
962
+ const o = w("FmSelect"), s = w("FmTextField"), g = w("FmTimePicker"), T = w("FmButton");
963
+ return y(!0), O(Q, null, de(new Array(r.value.length !== 0 ? r.value.length : 1), (D, N) => {
964
+ var V, h, d, l;
965
965
  return y(), O("div", {
966
966
  key: N,
967
967
  class: "flex flex-row align-center gap-2 w-full"
968
968
  }, [
969
969
  k("div", kl, [
970
- ((w = a.config) == null ? void 0 : w.type) === t(ge).Select ? (y(), T(l, {
970
+ ((V = a.config) == null ? void 0 : V.type) === t(ge).Select ? (y(), S(o, {
971
971
  key: 0,
972
- "model-value": s.value[N],
972
+ "model-value": r.value[N],
973
973
  items: a.config.options,
974
974
  "onUpdate:modelValue": (i) => f(N, i)
975
- }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((h = a.config) == null ? void 0 : h.type) === t(ge).TextField ? (y(), T(p, {
975
+ }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((h = a.config) == null ? void 0 : h.type) === t(ge).TextField ? (y(), S(s, {
976
976
  key: 1,
977
- "model-value": s.value[N],
977
+ "model-value": r.value[N],
978
978
  "onUpdate:modelValue": (i) => f(N, i)
979
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : ((u = a.config) == null ? void 0 : u.type) === t(ge).Timestamp ? (y(), O("div", Cl, [
980
- m(b, {
981
- "model-value": r(s.value[N]),
979
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : ((d = a.config) == null ? void 0 : d.type) === t(ge).Timestamp ? (y(), O("div", Cl, [
980
+ m(g, {
981
+ "model-value": u(r.value[N]),
982
982
  "onUpdate:modelValue": (i) => f(N, i)
983
983
  }, null, 8, ["model-value", "onUpdate:modelValue"])
984
984
  ])) : U("", !0)
985
985
  ]),
986
- ((o = a.config) == null ? void 0 : o.fixed) === !1 ? (y(), O("div", _l, [
987
- m(S, {
986
+ ((l = a.config) == null ? void 0 : l.fixed) === !1 ? (y(), O("div", _l, [
987
+ m(T, {
988
988
  icon: N === 0 ? "add" : "remove",
989
989
  onClick: (i) => v(N)
990
990
  }, null, 8, ["icon", "onClick"])
@@ -995,7 +995,7 @@ const kl = { class: "grow" }, Cl = {
995
995
  }
996
996
  }), Tl = { class: "flex flex-col my-2 gap-8" }, Ul = { class: "fm-typo-en-body-lg-600" }, Dl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, $l = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Nl = /* @__PURE__ */ P({
997
997
  __name: "FilterSection",
998
- props: /* @__PURE__ */ H({
998
+ props: /* @__PURE__ */ Y({
999
999
  options: {
1000
1000
  type: Array,
1001
1001
  default: () => []
@@ -1009,47 +1009,47 @@ const kl = { class: "grow" }, Cl = {
1009
1009
  modelModifiers: {}
1010
1010
  }),
1011
1011
  emits: ["update:modelValue"],
1012
- setup(V) {
1013
- const { t: s } = W(), a = ee(V, "modelValue"), r = V, n = _(() => s(`report.section.filter.${r.label}`)), f = M(!1), v = _(
1014
- () => a.value.map((o, i) => {
1015
- const e = r.options.find(
1016
- (c) => c.schemaName === o.schemaName && c.name === o.name
1012
+ setup(F) {
1013
+ const { t: r } = E(), a = ee(F, "modelValue"), u = F, n = _(() => r(`report.section.filter.${u.label}`)), f = z(!1), v = _(
1014
+ () => a.value.map((l, i) => {
1015
+ const e = u.options.find(
1016
+ (c) => c.schemaName === l.schemaName && c.name === l.name
1017
1017
  );
1018
1018
  return {
1019
1019
  index: i,
1020
- labels: (e == null ? void 0 : e.labels) || [o.schemaName, o.name],
1021
- value: o
1020
+ labels: (e == null ? void 0 : e.labels) || [l.schemaName, l.name],
1021
+ value: l
1022
1022
  };
1023
1023
  })
1024
- ), x = M(a.value.length > 0 ? 0 : void 0);
1025
- function d(o) {
1024
+ ), x = z(a.value.length > 0 ? 0 : void 0);
1025
+ function p(l) {
1026
1026
  var i;
1027
- f.value = !0, l.value = o != null && o.value ? JSON.parse(JSON.stringify(o.value)) : void 0, x.value = o == null ? void 0 : o.index, p.value = !!((i = l.value) != null && i.dataFormula), $();
1027
+ f.value = !0, o.value = l != null && l.value ? JSON.parse(JSON.stringify(l.value)) : void 0, x.value = l == null ? void 0 : l.index, s.value = !!((i = o.value) != null && i.dataFormula), D();
1028
1028
  }
1029
- const l = M(void 0), p = M(!1), b = M(void 0), S = _(
1030
- () => r.options.find(
1031
- (o) => {
1029
+ const o = z(void 0), s = z(!1), g = z(void 0), T = _(
1030
+ () => u.options.find(
1031
+ (l) => {
1032
1032
  var i, e;
1033
- return o.schemaName === ((i = l.value) == null ? void 0 : i.schemaName) && o.name === ((e = l.value) == null ? void 0 : e.name);
1033
+ return l.schemaName === ((i = o.value) == null ? void 0 : i.schemaName) && l.name === ((e = o.value) == null ? void 0 : e.name);
1034
1034
  }
1035
1035
  ) ?? {}
1036
1036
  );
1037
1037
  ne(
1038
1038
  () => {
1039
- var o;
1040
- return (o = l.value) == null ? void 0 : o.option;
1039
+ var l;
1040
+ return (l = o.value) == null ? void 0 : l.option;
1041
1041
  },
1042
- (o, i) => {
1043
- if (i !== void 0 && o !== i && l.value) {
1044
- if ($(), !b.value)
1042
+ (l, i) => {
1043
+ if (i !== void 0 && l !== i && o.value) {
1044
+ if (D(), !g.value)
1045
1045
  return;
1046
- l.value = {
1047
- ...l.value,
1046
+ o.value = {
1047
+ ...o.value,
1048
1048
  values: (
1049
1049
  // only overwrite the value when it empty
1050
- l.value.values.map((e) => {
1050
+ o.value.values.map((e) => {
1051
1051
  var c;
1052
- return e === null ? (c = b.value) == null ? void 0 : c.default : e;
1052
+ return e === null ? (c = g.value) == null ? void 0 : c.default : e;
1053
1053
  })
1054
1054
  )
1055
1055
  };
@@ -1057,22 +1057,22 @@ const kl = { class: "grow" }, Cl = {
1057
1057
  }
1058
1058
  ), ne(
1059
1059
  () => {
1060
- var o;
1061
- return (o = l.value) == null ? void 0 : o.operator;
1060
+ var l;
1061
+ return (l = o.value) == null ? void 0 : l.operator;
1062
1062
  },
1063
- (o, i) => {
1064
- if (o !== i && S.value && l.value) {
1065
- if ($(), !b.value)
1063
+ (l, i) => {
1064
+ if (l !== i && T.value && o.value) {
1065
+ if (D(), !g.value)
1066
1066
  return;
1067
- const e = l.value.values.length - b.value.count;
1068
- e > 0 && b.value.fixed ? l.value = {
1069
- ...l.value,
1070
- values: l.value.values.slice(0, b.value.count)
1071
- } : e < 0 && (l.value = {
1072
- ...l.value,
1067
+ const e = o.value.values.length - g.value.count;
1068
+ e > 0 && g.value.fixed ? o.value = {
1069
+ ...o.value,
1070
+ values: o.value.values.slice(0, g.value.count)
1071
+ } : e < 0 && (o.value = {
1072
+ ...o.value,
1073
1073
  values: [
1074
- ...l.value.values,
1075
- ...Array(Math.abs(e)).fill(b.value.default)
1074
+ ...o.value.values,
1075
+ ...Array(Math.abs(e)).fill(g.value.default)
1076
1076
  ]
1077
1077
  });
1078
1078
  }
@@ -1081,95 +1081,95 @@ const kl = { class: "grow" }, Cl = {
1081
1081
  deep: !0
1082
1082
  }
1083
1083
  );
1084
- function $() {
1085
- S.value && l.value && (b.value = xl({
1086
- operator: l.value.operator,
1087
- dataType: S.value.type,
1088
- dimensionOption: l.value.option
1084
+ function D() {
1085
+ T.value && o.value && (g.value = xl({
1086
+ operator: o.value.operator,
1087
+ dataType: T.value.type,
1088
+ dimensionOption: o.value.option
1089
1089
  }));
1090
1090
  }
1091
- function N(o) {
1091
+ function N(l) {
1092
1092
  var i, e, c;
1093
- (o.schemaName !== ((i = l.value) == null ? void 0 : i.schemaName) || o.name !== ((e = l.value) == null ? void 0 : e.name)) && (l.value = {
1094
- schemaName: o.schemaName,
1095
- name: o.name,
1096
- operator: o.filterOperators[0],
1097
- option: o.filterDimensionOptions[0],
1093
+ (l.schemaName !== ((i = o.value) == null ? void 0 : i.schemaName) || l.name !== ((e = o.value) == null ? void 0 : e.name)) && (o.value = {
1094
+ schemaName: l.schemaName,
1095
+ name: l.name,
1096
+ operator: l.filterOperators[0],
1097
+ option: l.filterDimensionOptions[0],
1098
1098
  values: []
1099
- }, $(), l.value.values = [(c = b.value) == null ? void 0 : c.default]);
1099
+ }, D(), o.value.values = [(c = g.value) == null ? void 0 : c.default]);
1100
1100
  }
1101
- function w() {
1102
- const o = [...v.value.map((i) => i.value)];
1103
- l.value && (l.value.values = l.value.values.filter(
1101
+ function V() {
1102
+ const l = [...v.value.map((i) => i.value)];
1103
+ o.value && (o.value.values = o.value.values.filter(
1104
1104
  (i) => i !== "" && i !== null
1105
- ), x.value !== void 0 ? o[Number(x.value)] = l.value : o.push(l.value), a.value = o), f.value = !1;
1105
+ ), x.value !== void 0 ? l[Number(x.value)] = o.value : l.push(o.value), a.value = l), f.value = !1;
1106
1106
  }
1107
- function h(o) {
1107
+ function h(l) {
1108
1108
  const i = [...v.value.map((e) => e.value)];
1109
- i.splice(o, 1), a.value = i, f.value = !1;
1109
+ i.splice(l, 1), a.value = i, f.value = !1;
1110
1110
  }
1111
- const u = _(
1112
- () => r.options.map((o) => ({
1113
- label: o.labels.join(" "),
1114
- value: o
1111
+ const d = _(
1112
+ () => u.options.map((l) => ({
1113
+ label: l.labels.join(" "),
1114
+ value: l
1115
1115
  }))
1116
1116
  );
1117
- return (o, i) => {
1118
- const e = F("FmCheckbox"), c = F("FmTextarea"), g = F("FmTextField"), L = F("FmForm"), A = F("FmIcon"), Y = F("FmButton"), q = F("FmListItem"), X = F("FmList"), J = F("FmField");
1117
+ return (l, i) => {
1118
+ const e = w("FmCheckbox"), c = w("FmTextarea"), b = w("FmTextField"), L = w("FmForm"), A = w("FmIcon"), H = w("FmButton"), q = w("FmListItem"), X = w("FmList"), J = w("FmField");
1119
1119
  return y(), O("div", Tl, [
1120
1120
  m(pe, {
1121
1121
  modelValue: f.value,
1122
- "onUpdate:modelValue": i[6] || (i[6] = (E) => f.value = E),
1122
+ "onUpdate:modelValue": i[6] || (i[6] = (W) => f.value = W),
1123
1123
  title: n.value,
1124
- "primary-button-label": t(s)("report.common.confirm"),
1125
- "secondary-button-label": t(s)("report.common.cancel"),
1126
- onConfirm: w
1124
+ "primary-button-label": t(r)("report.common.confirm"),
1125
+ "secondary-button-label": t(r)("report.common.cancel"),
1126
+ onConfirm: V
1127
1127
  }, {
1128
- content: D(() => [
1128
+ content: $(() => [
1129
1129
  m(L, {
1130
1130
  ref: "form",
1131
1131
  class: "flex flex-col gap-2 w-[490px]"
1132
1132
  }, {
1133
- default: D(() => {
1134
- var E, C;
1133
+ default: $(() => {
1134
+ var W, C;
1135
1135
  return [
1136
1136
  m(K, {
1137
- "model-value": S.value,
1138
- items: u.value,
1137
+ "model-value": T.value,
1138
+ items: d.value,
1139
1139
  placeholder: n.value,
1140
1140
  label: n.value,
1141
1141
  "onUpdate:modelValue": i[0] || (i[0] = (I) => N(I))
1142
1142
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
1143
- l.value ? (y(), O(Q, { key: 0 }, [
1143
+ o.value ? (y(), O(Q, { key: 0 }, [
1144
1144
  m(e, {
1145
- modelValue: p.value,
1146
- "onUpdate:modelValue": i[1] || (i[1] = (I) => p.value = I),
1147
- label: t(s)("report.section.filter.advance"),
1145
+ modelValue: s.value,
1146
+ "onUpdate:modelValue": i[1] || (i[1] = (I) => s.value = I),
1147
+ label: t(r)("report.section.filter.advance"),
1148
1148
  value: !0
1149
1149
  }, null, 8, ["modelValue", "label"]),
1150
- p.value ? (y(), T(c, {
1150
+ s.value ? (y(), S(c, {
1151
1151
  key: 0,
1152
- modelValue: l.value.dataFormula,
1153
- "onUpdate:modelValue": i[2] || (i[2] = (I) => l.value.dataFormula = I),
1154
- placeholder: t(s)("report.section.filter.dataFormula")
1152
+ modelValue: o.value.dataFormula,
1153
+ "onUpdate:modelValue": i[2] || (i[2] = (I) => o.value.dataFormula = I),
1154
+ placeholder: t(r)("report.section.filter.dataFormula")
1155
1155
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0),
1156
- m(g, {
1157
- modelValue: l.value.option,
1158
- "onUpdate:modelValue": i[3] || (i[3] = (I) => l.value.option = I),
1159
- placeholder: t(s)("report.section.filter.timeFormatter"),
1160
- label: t(s)("report.section.filter.timeFormatter")
1156
+ m(b, {
1157
+ modelValue: o.value.option,
1158
+ "onUpdate:modelValue": i[3] || (i[3] = (I) => o.value.option = I),
1159
+ placeholder: t(r)("report.section.filter.timeFormatter"),
1160
+ label: t(r)("report.section.filter.timeFormatter")
1161
1161
  }, null, 8, ["modelValue", "placeholder", "label"]),
1162
- (((E = S.value) == null ? void 0 : E.filterOperators) || []).length > 0 ? (y(), T(K, {
1162
+ (((W = T.value) == null ? void 0 : W.filterOperators) || []).length > 0 ? (y(), S(K, {
1163
1163
  key: 1,
1164
- modelValue: l.value.operator,
1165
- "onUpdate:modelValue": i[4] || (i[4] = (I) => l.value.operator = I),
1166
- items: ((C = S.value) == null ? void 0 : C.filterOperators.map((I) => ({ label: I, value: I }))) ?? []
1164
+ modelValue: o.value.operator,
1165
+ "onUpdate:modelValue": i[4] || (i[4] = (I) => o.value.operator = I),
1166
+ items: ((C = T.value) == null ? void 0 : C.filterOperators.map((I) => ({ label: I, value: I }))) ?? []
1167
1167
  }, null, 8, ["modelValue", "items"])) : U("", !0),
1168
- b.value ? (y(), T(Sl, {
1168
+ g.value ? (y(), S(Sl, {
1169
1169
  key: 2,
1170
- modelValue: l.value.values,
1171
- "onUpdate:modelValue": i[5] || (i[5] = (I) => l.value.values = I),
1172
- config: b.value
1170
+ modelValue: o.value.values,
1171
+ "onUpdate:modelValue": i[5] || (i[5] = (I) => o.value.values = I),
1172
+ config: g.value
1173
1173
  }, null, 8, ["modelValue", "config"])) : U("", !0)
1174
1174
  ], 64)) : U("", !0)
1175
1175
  ];
@@ -1181,25 +1181,25 @@ const kl = { class: "grow" }, Cl = {
1181
1181
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
1182
1182
  k("div", null, [
1183
1183
  k("p", Ul, B(n.value), 1),
1184
- k("p", Dl, B(t(s)("report.section.filter.description")), 1)
1184
+ k("p", Dl, B(t(r)("report.section.filter.description")), 1)
1185
1185
  ]),
1186
1186
  m(X, null, {
1187
- default: D(() => [
1187
+ default: $(() => [
1188
1188
  m(t(we), {
1189
1189
  list: a.value,
1190
1190
  "item-key": "id",
1191
1191
  class: "flex flex-col gap-2 w-full"
1192
1192
  }, {
1193
- item: D(({ element: E, index: C }) => [
1193
+ item: $(({ element: W, index: C }) => [
1194
1194
  m(q, {
1195
1195
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1196
- onClick: te((I) => d(v.value[C]), ["stop"])
1196
+ onClick: te((I) => p(v.value[C]), ["stop"])
1197
1197
  }, {
1198
- default: D(() => [
1198
+ default: $(() => [
1199
1199
  m(A, { name: "drag_handle" }),
1200
- k("p", $l, B(t(Ue)(E.name)), 1),
1200
+ k("p", $l, B(t(Ue)(W.name)), 1),
1201
1201
  i[8] || (i[8] = k("div", { class: "grow" }, null, -1)),
1202
- m(Y, {
1202
+ m(H, {
1203
1203
  icon: "close",
1204
1204
  size: "md",
1205
1205
  variant: "tertiary",
@@ -1217,11 +1217,11 @@ const kl = { class: "grow" }, Cl = {
1217
1217
  m(J, {
1218
1218
  class: "text-fm-color-typo-tertiary",
1219
1219
  onClick: i[7] || (i[7] = () => {
1220
- d();
1220
+ p();
1221
1221
  })
1222
1222
  }, {
1223
- default: D(() => [
1224
- ce(B(t(s)("report.section.filter.add")), 1)
1223
+ default: $(() => [
1224
+ ce(B(t(r)("report.section.filter.add")), 1)
1225
1225
  ]),
1226
1226
  _: 1
1227
1227
  })
@@ -1230,7 +1230,7 @@ const kl = { class: "grow" }, Cl = {
1230
1230
  }
1231
1231
  }), Ol = { class: "flex flex-col my-2 gap-8" }, Il = { class: "fm-typo-en-body-lg-600" }, Bl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ll = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, jl = /* @__PURE__ */ P({
1232
1232
  __name: "SortSection",
1233
- props: /* @__PURE__ */ H({
1233
+ props: /* @__PURE__ */ Y({
1234
1234
  options: {
1235
1235
  type: Array,
1236
1236
  default: () => []
@@ -1244,36 +1244,36 @@ const kl = { class: "grow" }, Cl = {
1244
1244
  modelModifiers: {}
1245
1245
  }),
1246
1246
  emits: ["update:modelValue"],
1247
- setup(V) {
1248
- const { t: s } = W(), a = ee(V, "modelValue"), r = V, n = _(
1249
- () => r.label ? r.label : s(`report.section.sort.${r.label}`)
1250
- ), f = M(!1), v = _(
1251
- () => a.value.map((h, u) => {
1252
- const o = r.options.find(
1247
+ setup(F) {
1248
+ const { t: r } = E(), a = ee(F, "modelValue"), u = F, n = _(
1249
+ () => u.label ? u.label : r(`report.section.sort.${u.label}`)
1250
+ ), f = z(!1), v = _(
1251
+ () => a.value.map((h, d) => {
1252
+ const l = u.options.find(
1253
1253
  (i) => i.schemaName === h.schemaName && i.name === h.name
1254
1254
  );
1255
1255
  return {
1256
- index: u,
1257
- labels: (o == null ? void 0 : o.labels) || [h.schemaName, h.name],
1256
+ index: d,
1257
+ labels: (l == null ? void 0 : l.labels) || [h.schemaName, h.name],
1258
1258
  value: h
1259
1259
  };
1260
1260
  })
1261
- ), x = M(a.value.length > 0 ? 0 : void 0);
1262
- function d(h) {
1263
- var u;
1264
- f.value = !0, l.value = h != null && h.value ? JSON.parse(JSON.stringify(h.value)) : void 0, x.value = h == null ? void 0 : h.index, p.value = !!((u = l.value) != null && u.dataFormula);
1261
+ ), x = z(a.value.length > 0 ? 0 : void 0);
1262
+ function p(h) {
1263
+ var d;
1264
+ f.value = !0, o.value = h != null && h.value ? JSON.parse(JSON.stringify(h.value)) : void 0, x.value = h == null ? void 0 : h.index, s.value = !!((d = o.value) != null && d.dataFormula);
1265
1265
  }
1266
- const l = M(void 0), p = M(!1), b = _(
1267
- () => r.options.find(
1266
+ const o = z(void 0), s = z(!1), g = _(
1267
+ () => u.options.find(
1268
1268
  (h) => {
1269
- var u, o;
1270
- return h.schemaName === ((u = l.value) == null ? void 0 : u.schemaName) && h.name === ((o = l.value) == null ? void 0 : o.name);
1269
+ var d, l;
1270
+ return h.schemaName === ((d = o.value) == null ? void 0 : d.schemaName) && h.name === ((l = o.value) == null ? void 0 : l.name);
1271
1271
  }
1272
1272
  ) ?? {}
1273
1273
  );
1274
- function S(h) {
1275
- var u, o;
1276
- (h.schemaName !== ((u = l.value) == null ? void 0 : u.schemaName) || h.name !== ((o = l.value) == null ? void 0 : o.name)) && (l.value = {
1274
+ function T(h) {
1275
+ var d, l;
1276
+ (h.schemaName !== ((d = o.value) == null ? void 0 : d.schemaName) || h.name !== ((l = o.value) == null ? void 0 : l.name)) && (o.value = {
1277
1277
  schemaName: h.schemaName,
1278
1278
  name: h.name,
1279
1279
  dimensionOption: h.dimensionOptions[0],
@@ -1281,83 +1281,83 @@ const kl = { class: "grow" }, Cl = {
1281
1281
  type: $e.Asc
1282
1282
  });
1283
1283
  }
1284
- function $() {
1285
- if (!l.value) {
1284
+ function D() {
1285
+ if (!o.value) {
1286
1286
  console.log("new sort is undefined");
1287
1287
  return;
1288
1288
  }
1289
- const h = [...v.value.map((u) => u.value)];
1290
- x.value !== void 0 ? h[x.value] = l.value : h.push(l.value), a.value = h, f.value = !1;
1289
+ const h = [...v.value.map((d) => d.value)];
1290
+ x.value !== void 0 ? h[x.value] = o.value : h.push(o.value), a.value = h, f.value = !1;
1291
1291
  }
1292
1292
  function N(h) {
1293
- const u = [...v.value.map((o) => o.value)];
1294
- u.splice(h, 1), a.value = u, f.value = !1;
1293
+ const d = [...v.value.map((l) => l.value)];
1294
+ d.splice(h, 1), a.value = d, f.value = !1;
1295
1295
  }
1296
- const w = _(
1297
- () => r.options.map((h) => ({
1296
+ const V = _(
1297
+ () => u.options.map((h) => ({
1298
1298
  label: h.labels.join(" "),
1299
1299
  value: h
1300
1300
  }))
1301
1301
  );
1302
- return (h, u) => {
1303
- const o = F("FmCheckbox"), i = F("FmTextarea"), e = F("FmForm"), c = F("FmIcon"), g = F("FmButton"), L = F("FmListItem"), A = F("FmList"), Y = F("FmField");
1302
+ return (h, d) => {
1303
+ const l = w("FmCheckbox"), i = w("FmTextarea"), e = w("FmForm"), c = w("FmIcon"), b = w("FmButton"), L = w("FmListItem"), A = w("FmList"), H = w("FmField");
1304
1304
  return y(), O("div", Ol, [
1305
1305
  m(pe, {
1306
1306
  modelValue: f.value,
1307
- "onUpdate:modelValue": u[6] || (u[6] = (q) => f.value = q),
1307
+ "onUpdate:modelValue": d[6] || (d[6] = (q) => f.value = q),
1308
1308
  title: n.value,
1309
- onConfirm: $
1309
+ onConfirm: D
1310
1310
  }, {
1311
- content: D(() => [
1311
+ content: $(() => [
1312
1312
  m(e, {
1313
1313
  ref: "form",
1314
1314
  class: "flex flex-col gap-2 w-[490px]"
1315
1315
  }, {
1316
- default: D(() => {
1317
- var q, X, J, E;
1316
+ default: $(() => {
1317
+ var q, X, J, W;
1318
1318
  return [
1319
1319
  m(K, {
1320
- "model-value": b.value,
1321
- items: w.value,
1320
+ "model-value": g.value,
1321
+ items: V.value,
1322
1322
  placeholder: n.value,
1323
1323
  label: n.value,
1324
- "onUpdate:modelValue": u[0] || (u[0] = (C) => S(C))
1324
+ "onUpdate:modelValue": d[0] || (d[0] = (C) => T(C))
1325
1325
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
1326
- l.value ? (y(), O(Q, { key: 0 }, [
1327
- (((q = b.value) == null ? void 0 : q.dimensionOptions) || []).length > 0 ? (y(), T(K, {
1326
+ o.value ? (y(), O(Q, { key: 0 }, [
1327
+ (((q = g.value) == null ? void 0 : q.dimensionOptions) || []).length > 0 ? (y(), S(K, {
1328
1328
  key: 0,
1329
- modelValue: l.value.dimensionOption,
1330
- "onUpdate:modelValue": u[1] || (u[1] = (C) => l.value.dimensionOption = C),
1331
- items: ((X = b.value) == null ? void 0 : X.dimensionOptions.map((C) => ({ label: C, value: C }))) ?? [],
1332
- placeholder: t(s)("report.section.sort.format"),
1333
- label: t(s)("report.section.sort.format")
1329
+ modelValue: o.value.dimensionOption,
1330
+ "onUpdate:modelValue": d[1] || (d[1] = (C) => o.value.dimensionOption = C),
1331
+ items: ((X = g.value) == null ? void 0 : X.dimensionOptions.map((C) => ({ label: C, value: C }))) ?? [],
1332
+ placeholder: t(r)("report.section.sort.format"),
1333
+ label: t(r)("report.section.sort.format")
1334
1334
  }, null, 8, ["modelValue", "items", "placeholder", "label"])) : U("", !0),
1335
- (((J = b.value) == null ? void 0 : J.aggregations) || []).length > 0 ? (y(), T(K, {
1335
+ (((J = g.value) == null ? void 0 : J.aggregations) || []).length > 0 ? (y(), S(K, {
1336
1336
  key: 1,
1337
- modelValue: l.value.aggregation,
1338
- "onUpdate:modelValue": u[2] || (u[2] = (C) => l.value.aggregation = C),
1339
- items: ((E = b.value) == null ? void 0 : E.aggregations.map((C) => ({ label: C, value: C }))) ?? [],
1340
- label: t(s)("report.section.sort.aggregation"),
1341
- placeholder: t(s)("report.section.sort.aggregation")
1337
+ modelValue: o.value.aggregation,
1338
+ "onUpdate:modelValue": d[2] || (d[2] = (C) => o.value.aggregation = C),
1339
+ items: ((W = g.value) == null ? void 0 : W.aggregations.map((C) => ({ label: C, value: C }))) ?? [],
1340
+ label: t(r)("report.section.sort.aggregation"),
1341
+ placeholder: t(r)("report.section.sort.aggregation")
1342
1342
  }, null, 8, ["modelValue", "items", "label", "placeholder"])) : U("", !0),
1343
1343
  m(K, {
1344
- modelValue: l.value.type,
1345
- "onUpdate:modelValue": u[3] || (u[3] = (C) => l.value.type = C),
1344
+ modelValue: o.value.type,
1345
+ "onUpdate:modelValue": d[3] || (d[3] = (C) => o.value.type = C),
1346
1346
  items: Object.values(t($e)).map((C) => ({ label: C, value: C })),
1347
- placeholder: t(s)("report.section.sort.order"),
1348
- label: t(s)("report.section.sort.order")
1347
+ placeholder: t(r)("report.section.sort.order"),
1348
+ label: t(r)("report.section.sort.order")
1349
1349
  }, null, 8, ["modelValue", "items", "placeholder", "label"]),
1350
- m(o, {
1351
- modelValue: p.value,
1352
- "onUpdate:modelValue": u[4] || (u[4] = (C) => p.value = C),
1353
- label: t(s)("report.section.sort.advance"),
1350
+ m(l, {
1351
+ modelValue: s.value,
1352
+ "onUpdate:modelValue": d[4] || (d[4] = (C) => s.value = C),
1353
+ label: t(r)("report.section.sort.advance"),
1354
1354
  value: !0
1355
1355
  }, null, 8, ["modelValue", "label"]),
1356
- p.value ? (y(), T(i, {
1356
+ s.value ? (y(), S(i, {
1357
1357
  key: 2,
1358
- modelValue: l.value.dataFormula,
1359
- "onUpdate:modelValue": u[5] || (u[5] = (C) => l.value.dataFormula = C),
1360
- placeholder: t(s)("report.section.sort.dataFormula")
1358
+ modelValue: o.value.dataFormula,
1359
+ "onUpdate:modelValue": d[5] || (d[5] = (C) => o.value.dataFormula = C),
1360
+ placeholder: t(r)("report.section.sort.dataFormula")
1361
1361
  }, null, 8, ["modelValue", "placeholder"])) : U("", !0)
1362
1362
  ], 64)) : U("", !0)
1363
1363
  ];
@@ -1369,25 +1369,25 @@ const kl = { class: "grow" }, Cl = {
1369
1369
  }, 8, ["modelValue", "title"]),
1370
1370
  k("div", null, [
1371
1371
  k("p", Il, B(n.value), 1),
1372
- k("p", Bl, B(t(s)("report.section.sort.description")), 1)
1372
+ k("p", Bl, B(t(r)("report.section.sort.description")), 1)
1373
1373
  ]),
1374
1374
  m(A, null, {
1375
- default: D(() => [
1375
+ default: $(() => [
1376
1376
  m(t(we), {
1377
1377
  list: a.value,
1378
1378
  "item-key": "id",
1379
1379
  class: "flex flex-col gap-2 w-full"
1380
1380
  }, {
1381
- item: D(({ element: q, index: X }) => [
1381
+ item: $(({ element: q, index: X }) => [
1382
1382
  m(L, {
1383
1383
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1384
- onClick: te((J) => d(v.value[X]), ["stop"])
1384
+ onClick: te((J) => p(v.value[X]), ["stop"])
1385
1385
  }, {
1386
- default: D(() => [
1386
+ default: $(() => [
1387
1387
  m(c, { name: "drag_handle" }),
1388
1388
  k("p", Ll, B(t(Ue)(q.name)), 1),
1389
- u[8] || (u[8] = k("div", { class: "grow" }, null, -1)),
1390
- m(g, {
1389
+ d[8] || (d[8] = k("div", { class: "grow" }, null, -1)),
1390
+ m(b, {
1391
1391
  icon: "close",
1392
1392
  size: "md",
1393
1393
  variant: "tertiary",
@@ -1402,50 +1402,50 @@ const kl = { class: "grow" }, Cl = {
1402
1402
  ]),
1403
1403
  _: 1
1404
1404
  }),
1405
- m(Y, {
1405
+ m(H, {
1406
1406
  class: "text-fm-color-typo-tertiary",
1407
- onClick: u[7] || (u[7] = () => {
1408
- d();
1407
+ onClick: d[7] || (d[7] = () => {
1408
+ p();
1409
1409
  })
1410
1410
  }, {
1411
- default: D(() => [
1412
- ce(B(t(s)("report.section.sort.add")), 1)
1411
+ default: $(() => [
1412
+ ce(B(t(r)("report.section.sort.add")), 1)
1413
1413
  ]),
1414
1414
  _: 1
1415
1415
  })
1416
1416
  ]);
1417
1417
  };
1418
1418
  }
1419
- }), Rl = { class: "fm-typo-en-body-lg-600" }, zl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Ml = /* @__PURE__ */ P({
1419
+ }), Ml = { class: "fm-typo-en-body-lg-600" }, Rl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, zl = /* @__PURE__ */ P({
1420
1420
  __name: "LimitSection",
1421
1421
  props: {
1422
1422
  modelValue: { required: !0, default: null },
1423
1423
  modelModifiers: {}
1424
1424
  },
1425
1425
  emits: ["update:modelValue"],
1426
- setup(V) {
1427
- const { t: s } = W(), a = ee(V, "modelValue"), r = Ve((n) => {
1426
+ setup(F) {
1427
+ const { t: r } = E(), a = ee(F, "modelValue"), u = Ve((n) => {
1428
1428
  n !== "" ? a.value = n : a.value = null;
1429
1429
  }, 1e3);
1430
1430
  return (n, f) => {
1431
- const v = F("FmTextField");
1431
+ const v = w("FmTextField");
1432
1432
  return y(), O(Q, null, [
1433
1433
  k("div", null, [
1434
- k("p", Rl, B(t(s)("report.section.limit.title")), 1),
1435
- k("p", zl, B(t(s)("report.section.limit.description")), 1)
1434
+ k("p", Ml, B(t(r)("report.section.limit.title")), 1),
1435
+ k("p", Rl, B(t(r)("report.section.limit.description")), 1)
1436
1436
  ]),
1437
1437
  m(v, {
1438
1438
  "model-value": a.value,
1439
1439
  inputmode: "numeric",
1440
- placeholder: t(s)("report.section.limit.placeholder"),
1441
- "onUpdate:modelValue": f[0] || (f[0] = (x) => t(r)(x))
1440
+ placeholder: t(r)("report.section.limit.placeholder"),
1441
+ "onUpdate:modelValue": f[0] || (f[0] = (x) => t(u)(x))
1442
1442
  }, null, 8, ["model-value", "placeholder"])
1443
1443
  ], 64);
1444
1444
  };
1445
1445
  }
1446
- }), Pl = { class: "flex flex-col my-2 gap-8" }, Al = { class: "fm-typo-en-body-lg-600" }, ql = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Xl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Yl = /* @__PURE__ */ P({
1446
+ }), Pl = { class: "flex flex-col my-2 gap-8" }, Al = { class: "fm-typo-en-body-lg-600" }, ql = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Xl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Hl = /* @__PURE__ */ P({
1447
1447
  __name: "ConditionSection",
1448
- props: /* @__PURE__ */ H({
1448
+ props: /* @__PURE__ */ Y({
1449
1449
  joinFieldOptions: {
1450
1450
  type: Array,
1451
1451
  default: () => []
@@ -1459,166 +1459,166 @@ const kl = { class: "grow" }, Cl = {
1459
1459
  modelModifiers: {}
1460
1460
  }),
1461
1461
  emits: ["update:modelValue"],
1462
- setup(V) {
1463
- const { t: s } = W(), a = ee(V, "modelValue"), r = V, n = M(!1), f = _(
1464
- () => a.value.map((u, o) => {
1462
+ setup(F) {
1463
+ const { t: r } = E(), a = ee(F, "modelValue"), u = F, n = z(!1), f = _(
1464
+ () => a.value.map((d, l) => {
1465
1465
  var i, e;
1466
1466
  return {
1467
- index: o,
1468
- labels: [(i = u.joinDimension) == null ? void 0 : i.schemaName, (e = u.joinDimension) == null ? void 0 : e.name],
1469
- value: u
1467
+ index: l,
1468
+ labels: [(i = d.joinDimension) == null ? void 0 : i.schemaName, (e = d.joinDimension) == null ? void 0 : e.name],
1469
+ value: d
1470
1470
  };
1471
1471
  })
1472
- ), v = M(a.value.length > 0 ? 0 : void 0);
1473
- function x(u) {
1474
- u ? (d.value = u != null && u.value ? JSON.parse(JSON.stringify(u.value)) : void 0, v.value = u == null ? void 0 : u.index) : (d.value = {
1472
+ ), v = z(a.value.length > 0 ? 0 : void 0);
1473
+ function x(d) {
1474
+ d ? (p.value = d != null && d.value ? JSON.parse(JSON.stringify(d.value)) : void 0, v.value = d == null ? void 0 : d.index) : (p.value = {
1475
1475
  joinDimension: null,
1476
1476
  operator: "",
1477
1477
  mainDimensions: []
1478
1478
  }, v.value = void 0), n.value = !0;
1479
1479
  }
1480
- const d = M(void 0), l = _(
1481
- () => r.joinFieldOptions.find(
1482
- (u) => {
1483
- var o, i;
1484
- return u.schemaName === ((i = (o = d.value) == null ? void 0 : o.joinDimension) == null ? void 0 : i.schemaName) && u.name === d.value.joinDimension.name;
1480
+ const p = z(void 0), o = _(
1481
+ () => u.joinFieldOptions.find(
1482
+ (d) => {
1483
+ var l, i;
1484
+ return d.schemaName === ((i = (l = p.value) == null ? void 0 : l.joinDimension) == null ? void 0 : i.schemaName) && d.name === p.value.joinDimension.name;
1485
1485
  }
1486
1486
  ) ?? {}
1487
- ), p = _(
1487
+ ), s = _(
1488
1488
  () => {
1489
- var u;
1490
- return (((u = d.value) == null ? void 0 : u.mainDimensions) || []).map(
1491
- (o) => r.mainFieldOptions.find(
1492
- (i) => i.schemaName === (o == null ? void 0 : o.schemaName) && i.name === o.name
1489
+ var d;
1490
+ return (((d = p.value) == null ? void 0 : d.mainDimensions) || []).map(
1491
+ (l) => u.mainFieldOptions.find(
1492
+ (i) => i.schemaName === (l == null ? void 0 : l.schemaName) && i.name === l.name
1493
1493
  ) ?? {}
1494
1494
  );
1495
1495
  }
1496
- ), b = _(
1497
- () => r.joinFieldOptions.map((u) => ({ label: u.labels.join(" "), value: u }))
1496
+ ), g = _(
1497
+ () => u.joinFieldOptions.map((d) => ({ label: d.labels.join(" "), value: d }))
1498
1498
  );
1499
- function S(u) {
1500
- var o, i, e, c;
1501
- d.value && (d.value && u.schemaName !== ((i = (o = d.value) == null ? void 0 : o.joinDimension) == null ? void 0 : i.schemaName) || u.name !== ((c = (e = d.value) == null ? void 0 : e.joinDimension) == null ? void 0 : c.name)) && (d.value = {
1502
- ...d.value,
1499
+ function T(d) {
1500
+ var l, i, e, c;
1501
+ p.value && (p.value && d.schemaName !== ((i = (l = p.value) == null ? void 0 : l.joinDimension) == null ? void 0 : i.schemaName) || d.name !== ((c = (e = p.value) == null ? void 0 : e.joinDimension) == null ? void 0 : c.name)) && (p.value = {
1502
+ ...p.value,
1503
1503
  joinDimension: {
1504
- schemaName: u.schemaName,
1505
- name: u.name,
1506
- option: u.dimensionOptions[0],
1507
- label: u.label,
1504
+ schemaName: d.schemaName,
1505
+ name: d.name,
1506
+ option: d.dimensionOptions[0],
1507
+ label: d.label,
1508
1508
  hide: !0
1509
1509
  }
1510
- }, u.joinConditionOperators.includes(d.value.operator) || N(u.joinConditionOperators[0]));
1510
+ }, d.joinConditionOperators.includes(p.value.operator) || N(d.joinConditionOperators[0]));
1511
1511
  }
1512
- function $(u, o) {
1513
- var i, e, c, g;
1514
- if (d.value && o >= 0 && (d.value && u.schemaName !== ((e = (i = d.value) == null ? void 0 : i.mainDimensions[o]) == null ? void 0 : e.schemaName) || u.name !== ((g = (c = d.value) == null ? void 0 : c.mainDimensions[o]) == null ? void 0 : g.name))) {
1515
- const L = [...d.value.mainDimensions];
1516
- L[o] = {
1517
- schemaName: u.schemaName,
1518
- name: u.name,
1519
- option: u.dimensionOptions[0],
1520
- label: u.label,
1512
+ function D(d, l) {
1513
+ var i, e, c, b;
1514
+ if (p.value && l >= 0 && (p.value && d.schemaName !== ((e = (i = p.value) == null ? void 0 : i.mainDimensions[l]) == null ? void 0 : e.schemaName) || d.name !== ((b = (c = p.value) == null ? void 0 : c.mainDimensions[l]) == null ? void 0 : b.name))) {
1515
+ const L = [...p.value.mainDimensions];
1516
+ L[l] = {
1517
+ schemaName: d.schemaName,
1518
+ name: d.name,
1519
+ option: d.dimensionOptions[0],
1520
+ label: d.label,
1521
1521
  hide: !0
1522
- }, d.value = {
1523
- ...d.value,
1522
+ }, p.value = {
1523
+ ...p.value,
1524
1524
  mainDimensions: L
1525
1525
  };
1526
1526
  }
1527
1527
  }
1528
- function N(u) {
1529
- if (d.value)
1530
- switch (u) {
1528
+ function N(d) {
1529
+ if (p.value)
1530
+ switch (d) {
1531
1531
  case ae.Between:
1532
- d.value = {
1533
- ...d.value,
1534
- operator: u,
1532
+ p.value = {
1533
+ ...p.value,
1534
+ operator: d,
1535
1535
  mainDimensions: [null, null]
1536
1536
  };
1537
1537
  break;
1538
1538
  default:
1539
- d.value = {
1540
- ...d.value,
1541
- operator: u,
1539
+ p.value = {
1540
+ ...p.value,
1541
+ operator: d,
1542
1542
  mainDimensions: [null]
1543
1543
  };
1544
1544
  break;
1545
1545
  }
1546
1546
  }
1547
- function w() {
1548
- const u = [...f.value.map((o) => o.value)];
1549
- d.value && (d.value.mainDimensions = d.value.mainDimensions.filter(
1550
- (o) => o !== "" && o != null
1551
- ), v.value !== void 0 ? u[v.value] = d.value : u.push(d.value)), a.value = u, n.value = !1;
1547
+ function V() {
1548
+ const d = [...f.value.map((l) => l.value)];
1549
+ p.value && (p.value.mainDimensions = p.value.mainDimensions.filter(
1550
+ (l) => l !== "" && l != null
1551
+ ), v.value !== void 0 ? d[v.value] = p.value : d.push(p.value)), a.value = d, n.value = !1;
1552
1552
  }
1553
- function h(u) {
1554
- const o = [...f.value.map((i) => i.value)];
1555
- o.splice(u, 1), a.value = o;
1553
+ function h(d) {
1554
+ const l = [...f.value.map((i) => i.value)];
1555
+ l.splice(d, 1), a.value = l;
1556
1556
  }
1557
- return (u, o) => {
1558
- const i = F("FmMenuDivider"), e = F("FmForm"), c = F("FmButton"), g = F("FmListItem"), L = F("FmList"), A = F("FmField");
1557
+ return (d, l) => {
1558
+ const i = w("FmMenuDivider"), e = w("FmForm"), c = w("FmButton"), b = w("FmListItem"), L = w("FmList"), A = w("FmField");
1559
1559
  return y(), O("div", Pl, [
1560
1560
  m(pe, {
1561
1561
  modelValue: n.value,
1562
- "onUpdate:modelValue": o[2] || (o[2] = (Y) => n.value = Y),
1563
- title: t(s)("report.section.condition.condition"),
1564
- onConfirm: w
1562
+ "onUpdate:modelValue": l[2] || (l[2] = (H) => n.value = H),
1563
+ title: t(r)("report.section.condition.condition"),
1564
+ onConfirm: V
1565
1565
  }, {
1566
- content: D(() => [
1566
+ content: $(() => [
1567
1567
  m(e, {
1568
1568
  ref: "form",
1569
1569
  class: "flex flex-col gap-2 w-[490px]"
1570
1570
  }, {
1571
- default: D(() => {
1572
- var Y, q, X, J, E;
1571
+ default: $(() => {
1572
+ var H, q, X, J, W;
1573
1573
  return [
1574
1574
  m(K, {
1575
- label: t(s)("report.section.condition.joinDatasource"),
1576
- "model-value": l.value,
1577
- items: b.value,
1578
- placeholder: t(s)("report.section.condition.joinDimension"),
1579
- "onUpdate:modelValue": o[0] || (o[0] = (C) => S(C))
1575
+ label: t(r)("report.section.condition.joinDatasource"),
1576
+ "model-value": o.value,
1577
+ items: g.value,
1578
+ placeholder: t(r)("report.section.condition.joinDimension"),
1579
+ "onUpdate:modelValue": l[0] || (l[0] = (C) => T(C))
1580
1580
  }, null, 8, ["label", "model-value", "items", "placeholder"]),
1581
1581
  m(i),
1582
- (Y = d.value) != null && Y.joinDimension && (((q = l.value) == null ? void 0 : q.dimensionOptions) || []).length > 0 ? (y(), T(K, {
1582
+ (H = p.value) != null && H.joinDimension && (((q = o.value) == null ? void 0 : q.dimensionOptions) || []).length > 0 ? (y(), S(K, {
1583
1583
  key: 0,
1584
- modelValue: d.value.joinDimension.option,
1585
- "onUpdate:modelValue": o[1] || (o[1] = (C) => d.value.joinDimension.option = C),
1586
- label: t(s)("report.section.condition.format"),
1587
- items: ((X = l.value) == null ? void 0 : X.dimensionOptions.map((C) => ({
1584
+ modelValue: p.value.joinDimension.option,
1585
+ "onUpdate:modelValue": l[1] || (l[1] = (C) => p.value.joinDimension.option = C),
1586
+ label: t(r)("report.section.condition.format"),
1587
+ items: ((X = o.value) == null ? void 0 : X.dimensionOptions.map((C) => ({
1588
1588
  label: C,
1589
1589
  value: C
1590
1590
  }))) ?? []
1591
1591
  }, null, 8, ["modelValue", "label", "items"])) : U("", !0),
1592
- d.value && (((J = l.value) == null ? void 0 : J.joinConditionOperators) || []).length > 0 ? (y(), T(K, {
1592
+ p.value && (((J = o.value) == null ? void 0 : J.joinConditionOperators) || []).length > 0 ? (y(), S(K, {
1593
1593
  key: 1,
1594
- "model-value": d.value.operator,
1595
- label: t(s)("report.section.condition.operator"),
1596
- items: l.value.joinConditionOperators.map((C) => ({
1594
+ "model-value": p.value.operator,
1595
+ label: t(r)("report.section.condition.operator"),
1596
+ items: o.value.joinConditionOperators.map((C) => ({
1597
1597
  label: C,
1598
1598
  value: C
1599
1599
  })) ?? [],
1600
1600
  "onUpdate:modelValue": N
1601
1601
  }, null, 8, ["model-value", "label", "items"])) : U("", !0),
1602
- (y(!0), O(Q, null, de(((E = d.value) == null ? void 0 : E.mainDimensions) || [], (C, I) => {
1602
+ (y(!0), O(Q, null, de(((W = p.value) == null ? void 0 : W.mainDimensions) || [], (C, I) => {
1603
1603
  var G, oe;
1604
1604
  return y(), O("div", {
1605
1605
  key: I,
1606
1606
  class: "flex flex-col gap-2"
1607
1607
  }, [
1608
1608
  m(K, {
1609
- "model-value": p.value[I],
1610
- label: t(s)("report.section.condition.mainDatasource", { index: I + 1 }),
1611
- items: r.mainFieldOptions.map((Z) => ({
1609
+ "model-value": s.value[I],
1610
+ label: t(r)("report.section.condition.mainDatasource", { index: I + 1 }),
1611
+ items: u.mainFieldOptions.map((Z) => ({
1612
1612
  label: Z.labels.join(" "),
1613
1613
  value: Z
1614
1614
  })),
1615
- "onUpdate:modelValue": (Z) => $(Z, I)
1615
+ "onUpdate:modelValue": (Z) => D(Z, I)
1616
1616
  }, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
1617
- C && (((G = p.value[I]) == null ? void 0 : G.dimensionOptions) || []).length > 0 && C ? (y(), T(K, {
1617
+ C && (((G = s.value[I]) == null ? void 0 : G.dimensionOptions) || []).length > 0 && C ? (y(), S(K, {
1618
1618
  key: 0,
1619
1619
  modelValue: C.option,
1620
1620
  "onUpdate:modelValue": (Z) => C.option = Z,
1621
- items: (oe = p.value[I]) == null ? void 0 : oe.dimensionOptions.map((Z) => ({
1621
+ items: (oe = s.value[I]) == null ? void 0 : oe.dimensionOptions.map((Z) => ({
1622
1622
  label: Z,
1623
1623
  value: Z
1624
1624
  }))
@@ -1634,26 +1634,26 @@ const kl = { class: "grow" }, Cl = {
1634
1634
  _: 1
1635
1635
  }, 8, ["modelValue", "title"]),
1636
1636
  k("div", null, [
1637
- k("p", Al, B(t(s)("report.section.condition.condition")), 1),
1638
- k("p", ql, B(t(s)("report.section.condition.description")), 1)
1637
+ k("p", Al, B(t(r)("report.section.condition.condition")), 1),
1638
+ k("p", ql, B(t(r)("report.section.condition.description")), 1)
1639
1639
  ]),
1640
1640
  m(L, { class: "flex flex-col gap-2" }, {
1641
- default: D(() => [
1642
- (y(!0), O(Q, null, de(a.value, (Y, q) => (y(), T(g, {
1641
+ default: $(() => [
1642
+ (y(!0), O(Q, null, de(a.value, (H, q) => (y(), S(b, {
1643
1643
  key: q,
1644
1644
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
1645
1645
  onClick: (X) => x(f.value[q])
1646
1646
  }, {
1647
- default: D(() => {
1647
+ default: $(() => {
1648
1648
  var X, J;
1649
1649
  return [
1650
- k("p", Xl, B(t(ol)(((X = Y.joinDimension) == null ? void 0 : X.schemaName) ?? "")) + " " + B((J = Y.joinDimension) == null ? void 0 : J.label), 1),
1651
- o[4] || (o[4] = k("div", { class: "grow" }, null, -1)),
1650
+ k("p", Xl, B(t(ol)(((X = H.joinDimension) == null ? void 0 : X.schemaName) ?? "")) + " " + B((J = H.joinDimension) == null ? void 0 : J.label), 1),
1651
+ l[4] || (l[4] = k("div", { class: "grow" }, null, -1)),
1652
1652
  m(c, {
1653
1653
  icon: "close",
1654
1654
  size: "md",
1655
1655
  variant: "tertiary",
1656
- onClick: te((E) => h(q), ["stop"])
1656
+ onClick: te((W) => h(q), ["stop"])
1657
1657
  }, null, 8, ["onClick"])
1658
1658
  ];
1659
1659
  }),
@@ -1664,43 +1664,43 @@ const kl = { class: "grow" }, Cl = {
1664
1664
  }),
1665
1665
  m(A, {
1666
1666
  class: "text-fm-color-typo-tertiary cursor-pointer",
1667
- onClick: o[3] || (o[3] = (Y) => x())
1667
+ onClick: l[3] || (l[3] = (H) => x())
1668
1668
  }, {
1669
- default: D(() => [
1670
- ce(B(t(s)("report.section.condition.add")), 1)
1669
+ default: $(() => [
1670
+ ce(B(t(r)("report.section.condition.add")), 1)
1671
1671
  ]),
1672
1672
  _: 1
1673
1673
  })
1674
1674
  ]);
1675
1675
  };
1676
1676
  }
1677
- }), El = /* @__PURE__ */ P({
1677
+ }), Wl = /* @__PURE__ */ P({
1678
1678
  __name: "TableResizeSection",
1679
1679
  props: {
1680
1680
  model: {}
1681
1681
  },
1682
- setup(V) {
1683
- const { t: s, te: a } = W(), r = V, { isEditing: n, colWidths: f, rowHeight: v } = me(he()), { enableCellResizing: x, cancelResizingChanges: d } = he();
1682
+ setup(F) {
1683
+ const { t: r, te: a } = E(), u = F, { isEditing: n, colWidths: f, rowHeight: v } = me(he()), { enableCellResizing: x, cancelResizingChanges: p } = he();
1684
1684
  return Ie(() => {
1685
- r.model.rowHeight !== void 0 && (v.value = r.model.rowHeight), r.model.colWidths && (f.value = [...r.model.colWidths]);
1686
- }), (l, p) => {
1687
- const b = F("FmButton");
1685
+ u.model.rowHeight !== void 0 && (v.value = u.model.rowHeight), u.model.colWidths && (f.value = [...u.model.colWidths]);
1686
+ }), (o, s) => {
1687
+ const g = w("FmButton");
1688
1688
  return y(), O(Q, null, [
1689
- m(b, {
1690
- label: t(s)("report.section.datasource.resizeTable"),
1689
+ m(g, {
1690
+ label: t(r)("report.section.datasource.resizeTable"),
1691
1691
  onClick: t(x)
1692
1692
  }, null, 8, ["label", "onClick"]),
1693
- t(n) ? (y(), T(b, {
1693
+ t(n) ? (y(), S(g, {
1694
1694
  key: 0,
1695
- label: t(s)("report.common.cancel"),
1696
- onClick: t(d)
1695
+ label: t(r)("report.common.cancel"),
1696
+ onClick: t(p)
1697
1697
  }, null, 8, ["label", "onClick"])) : U("", !0)
1698
1698
  ], 64);
1699
1699
  };
1700
1700
  }
1701
1701
  }), Ne = /* @__PURE__ */ P({
1702
1702
  __name: "Datasource",
1703
- props: /* @__PURE__ */ H({
1703
+ props: /* @__PURE__ */ Y({
1704
1704
  label: {
1705
1705
  type: String,
1706
1706
  default: "Label"
@@ -1727,196 +1727,196 @@ const kl = { class: "grow" }, Cl = {
1727
1727
  modelValue: { required: !0 },
1728
1728
  modelModifiers: {}
1729
1729
  }),
1730
- emits: /* @__PURE__ */ H(["click-close"], ["update:modelValue"]),
1731
- setup(V, { emit: s }) {
1732
- const { disableEditMode: a, resetStore: r } = he(), n = ee(V, "modelValue");
1730
+ emits: /* @__PURE__ */ Y(["click-close"], ["update:modelValue"]),
1731
+ setup(F, { emit: r }) {
1732
+ const { disableEditMode: a, resetStore: u } = he(), n = ee(F, "modelValue");
1733
1733
  ne(
1734
1734
  [() => n.value.dimensions, () => n.value.metrics],
1735
1735
  () => {
1736
- const { rowIds: u, columnIds: o } = Fe(n.value);
1737
- n.value.rowIds = u, n.value.columnIds = o;
1736
+ const { rowIds: d, columnIds: l } = Fe(n.value);
1737
+ n.value.rowIds = d, n.value.columnIds = l;
1738
1738
  },
1739
1739
  { deep: !0 }
1740
1740
  );
1741
- const f = V, v = s, { schemas: x } = me(Re());
1741
+ const f = F, v = r, { schemas: x } = me(Me());
1742
1742
  Xe(() => {
1743
- a(), r();
1743
+ a(), u();
1744
1744
  });
1745
- const { t: d, te: l } = W(), p = _(() => !f.mainDatasourceConfig), b = _(
1745
+ const { t: p, te: o } = E(), s = _(() => !f.mainDatasourceConfig), g = _(
1746
1746
  () => [j.BarChart, j.LineChart, j.Scorecard].includes(f.config.type)
1747
- ), S = _(() => {
1748
- const u = [...n.value.dimensions].filter((o) => !o.hide);
1749
- return u.sort(
1750
- (o, i) => (n.value.rowIds || []).indexOf(ye(o)) - (n.value.rowIds || []).indexOf(ye(i))
1751
- ), u;
1752
- }), $ = _(() => f.config.type === j.Scorecard), N = _(
1747
+ ), T = _(() => {
1748
+ const d = [...n.value.dimensions].filter((l) => !l.hide);
1749
+ return d.sort(
1750
+ (l, i) => (n.value.rowIds || []).indexOf(ye(l)) - (n.value.rowIds || []).indexOf(ye(i))
1751
+ ), d;
1752
+ }), D = _(() => f.config.type === j.Scorecard), N = _(
1753
1753
  () => {
1754
- var u;
1755
- return (((u = f.mainDatasourceConfig) == null ? void 0 : u.schemaNames) || []).reduce(
1756
- (o, i) => {
1754
+ var d;
1755
+ return (((d = f.mainDatasourceConfig) == null ? void 0 : d.schemaNames) || []).reduce(
1756
+ (l, i) => {
1757
1757
  const e = x.value.find((c) => c.name === i);
1758
- return e && (o = [
1759
- ...o,
1758
+ return e && (l = [
1759
+ ...l,
1760
1760
  ...e.fields.map((c) => ({
1761
1761
  ...c,
1762
1762
  labels: [
1763
- le(d, l, e.label, "schema"),
1764
- le(d, l, c.label || c.name, "other")
1763
+ le(p, o, e.label, "schema"),
1764
+ le(p, o, c.label || c.name, "other")
1765
1765
  ]
1766
1766
  }))
1767
- ]), o;
1767
+ ]), l;
1768
1768
  },
1769
1769
  []
1770
1770
  );
1771
1771
  }
1772
- ), w = _(
1773
- () => n.value.schemaNames.reduce((u, o) => {
1774
- const i = x.value.find((e) => e.name === o);
1775
- return i && (u = [
1776
- ...u,
1772
+ ), V = _(
1773
+ () => n.value.schemaNames.reduce((d, l) => {
1774
+ const i = x.value.find((e) => e.name === l);
1775
+ return i && (d = [
1776
+ ...d,
1777
1777
  ...i.fields.map((e) => ({
1778
1778
  ...e,
1779
1779
  labels: [
1780
- le(d, l, i.label, "schema"),
1781
- le(d, l, e.label || e.name, "other")
1780
+ le(p, o, i.label, "schema"),
1781
+ le(p, o, e.label || e.name, "other")
1782
1782
  ]
1783
1783
  }))
1784
- ]), u;
1784
+ ]), d;
1785
1785
  }, [])
1786
1786
  ), h = _(() => [
1787
- { label: d("report.section.datasource.none"), value: null },
1788
- { label: d("report.section.datasource.grandTotal"), value: 0 },
1789
- ...[...S.value].slice(0, S.value.length - 1).map((u, o) => ({
1790
- label: le(d, l, u.label, "other"),
1791
- value: o + 1
1787
+ { label: p("report.section.datasource.none"), value: null },
1788
+ { label: p("report.section.datasource.grandTotal"), value: 0 },
1789
+ ...[...T.value].slice(0, T.value.length - 1).map((d, l) => ({
1790
+ label: le(p, o, d.label, "other"),
1791
+ value: l + 1
1792
1792
  }))
1793
1793
  ]);
1794
- return (u, o) => {
1795
- const i = F("FmButton"), e = F("FmSwitch"), c = F("FmSelect");
1796
- return y(), T(_e, null, {
1797
- header: D(() => [
1794
+ return (d, l) => {
1795
+ const i = w("FmButton"), e = w("FmSwitch"), c = w("FmSelect");
1796
+ return y(), S(_e, null, {
1797
+ header: $(() => [
1798
1798
  k("p", null, B(f.label), 1),
1799
- o[18] || (o[18] = k("div", { class: "grow" }, null, -1)),
1800
- f.closeable ? (y(), T(i, {
1799
+ l[18] || (l[18] = k("div", { class: "grow" }, null, -1)),
1800
+ f.closeable ? (y(), S(i, {
1801
1801
  key: 0,
1802
1802
  icon: "close",
1803
1803
  variant: "tertiary",
1804
1804
  size: "md",
1805
- onClick: o[0] || (o[0] = te((g) => v("click-close"), ["stop"]))
1805
+ onClick: l[0] || (l[0] = te((b) => v("click-close"), ["stop"]))
1806
1806
  })) : U("", !0)
1807
1807
  ]),
1808
- content: D(() => [
1808
+ content: $(() => [
1809
1809
  m(dl, {
1810
1810
  modelValue: n.value,
1811
- "onUpdate:modelValue": o[1] || (o[1] = (g) => n.value = g),
1812
- label: t(d)("report.section.schema.title")
1811
+ "onUpdate:modelValue": l[1] || (l[1] = (b) => n.value = b),
1812
+ label: t(p)("report.section.schema.title")
1813
1813
  }, null, 8, ["modelValue", "label"]),
1814
1814
  m(Ce, {
1815
1815
  modelValue: n.value.dimensions,
1816
- "onUpdate:modelValue": o[2] || (o[2] = (g) => n.value.dimensions = g),
1817
- options: w.value,
1816
+ "onUpdate:modelValue": l[2] || (l[2] = (b) => n.value.dimensions = b),
1817
+ options: V.value,
1818
1818
  config: n.value,
1819
1819
  max: f.config.maxDimension,
1820
1820
  "has-row-column": !0,
1821
- onConfig: o[3] || (o[3] = (g) => {
1822
- n.value = g;
1821
+ onConfig: l[3] || (l[3] = (b) => {
1822
+ n.value = b;
1823
1823
  })
1824
1824
  }, null, 8, ["modelValue", "options", "config", "max"]),
1825
1825
  m(e, {
1826
1826
  "label-placement": "right",
1827
- label: t(d)("report.section.datasource.comparable"),
1827
+ label: t(p)("report.section.datasource.comparable"),
1828
1828
  "model-value": n.value.isComparable ?? !1,
1829
- "onUpdate:modelValue": o[4] || (o[4] = (g) => {
1830
- n.value.isComparable = g;
1829
+ "onUpdate:modelValue": l[4] || (l[4] = (b) => {
1830
+ n.value.isComparable = b;
1831
1831
  })
1832
1832
  }, null, 8, ["label", "model-value"]),
1833
- b.value ? (y(), T(e, {
1833
+ g.value ? (y(), S(e, {
1834
1834
  key: 0,
1835
1835
  "label-placement": "right",
1836
- label: t(d)("report.section.datasource.cumulative"),
1836
+ label: t(p)("report.section.datasource.cumulative"),
1837
1837
  "model-value": n.value.isCumulative ?? !1,
1838
- "onUpdate:modelValue": o[5] || (o[5] = (g) => {
1839
- n.value.isCumulative = g;
1838
+ "onUpdate:modelValue": l[5] || (l[5] = (b) => {
1839
+ n.value.isCumulative = b;
1840
1840
  })
1841
1841
  }, null, 8, ["label", "model-value"])) : U("", !0),
1842
- f.config.isDrillConfigurable && p.value ? (y(), T(e, {
1842
+ f.config.isDrillConfigurable && s.value ? (y(), S(e, {
1843
1843
  key: 1,
1844
- label: t(d)("report.section.datasource.drill"),
1844
+ label: t(p)("report.section.datasource.drill"),
1845
1845
  "label-placement": "right",
1846
1846
  "model-value": n.value.isDrillable ?? !1,
1847
- "onUpdate:modelValue": o[6] || (o[6] = (g) => {
1848
- n.value.isDrillable = g;
1847
+ "onUpdate:modelValue": l[6] || (l[6] = (b) => {
1848
+ n.value.isDrillable = b;
1849
1849
  })
1850
1850
  }, null, 8, ["label", "model-value"])) : U("", !0),
1851
- f.config.canRollup && p.value ? (y(), T(c, {
1851
+ f.config.canRollup && s.value ? (y(), S(c, {
1852
1852
  key: 2,
1853
1853
  modelValue: n.value.rollup,
1854
- "onUpdate:modelValue": o[7] || (o[7] = (g) => n.value.rollup = g),
1855
- label: t(d)("report.section.datasource.subTotal"),
1854
+ "onUpdate:modelValue": l[7] || (l[7] = (b) => n.value.rollup = b),
1855
+ label: t(p)("report.section.datasource.subTotal"),
1856
1856
  items: h.value
1857
1857
  }, null, 8, ["modelValue", "label", "items"])) : U("", !0),
1858
- f.config.canTranspose && p.value ? (y(), T(e, {
1858
+ f.config.canTranspose && s.value ? (y(), S(e, {
1859
1859
  key: 3,
1860
1860
  modelValue: n.value.isTransposed,
1861
- "onUpdate:modelValue": o[8] || (o[8] = (g) => n.value.isTransposed = g),
1862
- label: t(d)("report.section.datasource.transpose"),
1861
+ "onUpdate:modelValue": l[8] || (l[8] = (b) => n.value.isTransposed = b),
1862
+ label: t(p)("report.section.datasource.transpose"),
1863
1863
  "label-placement": "right"
1864
1864
  }, null, 8, ["modelValue", "label"])) : U("", !0),
1865
- f.config.hasTable ? (y(), T(El, {
1865
+ f.config.hasTable ? (y(), S(Wl, {
1866
1866
  key: 4,
1867
1867
  model: n.value,
1868
- "onUpdate:model": o[9] || (o[9] = (g) => n.value = g)
1868
+ "onUpdate:model": l[9] || (l[9] = (b) => n.value = b)
1869
1869
  }, null, 8, ["model"])) : U("", !0),
1870
- f.config.hasBreakdownDimension ? (y(), T(Ce, {
1870
+ f.config.hasBreakdownDimension ? (y(), S(Ce, {
1871
1871
  key: 5,
1872
1872
  "model-value": n.value.breakdownDimension ? [n.value.breakdownDimension] : [],
1873
- label: t(d)("report.section.dimension.breakdownDimension"),
1873
+ label: t(p)("report.section.dimension.breakdownDimension"),
1874
1874
  max: 1,
1875
- options: w.value,
1876
- "onUpdate:modelValue": o[10] || (o[10] = (g) => {
1877
- n.value.breakdownDimension = g[0];
1875
+ options: V.value,
1876
+ "onUpdate:modelValue": l[10] || (l[10] = (b) => {
1877
+ n.value.breakdownDimension = b[0];
1878
1878
  })
1879
1879
  }, null, 8, ["model-value", "label", "options"])) : U("", !0),
1880
- $.value ? (y(), T(Ce, {
1880
+ D.value ? (y(), S(Ce, {
1881
1881
  key: 6,
1882
1882
  "model-value": n.value.sparklineDimension ? [n.value.sparklineDimension] : [],
1883
- label: t(d)("report.section.dimension.sparklineDimension"),
1883
+ label: t(p)("report.section.dimension.sparklineDimension"),
1884
1884
  max: 1,
1885
- options: w.value,
1886
- "onUpdate:modelValue": o[11] || (o[11] = (g) => {
1887
- n.value.sparklineDimension = g[0];
1885
+ options: V.value,
1886
+ "onUpdate:modelValue": l[11] || (l[11] = (b) => {
1887
+ n.value.sparklineDimension = b[0];
1888
1888
  })
1889
1889
  }, null, 8, ["model-value", "label", "options"])) : U("", !0),
1890
1890
  m(Fl, {
1891
1891
  modelValue: n.value.metrics,
1892
- "onUpdate:modelValue": o[12] || (o[12] = (g) => n.value.metrics = g),
1893
- options: w.value,
1892
+ "onUpdate:modelValue": l[12] || (l[12] = (b) => n.value.metrics = b),
1893
+ options: V.value,
1894
1894
  max: f.config.maxMetric,
1895
1895
  config: n.value,
1896
1896
  "has-row-column": f.config.type === t(j).Table,
1897
- onConfig: o[13] || (o[13] = (g) => {
1898
- n.value = g;
1897
+ onConfig: l[13] || (l[13] = (b) => {
1898
+ n.value = b;
1899
1899
  })
1900
1900
  }, null, 8, ["modelValue", "options", "max", "config", "has-row-column"]),
1901
1901
  m(Nl, {
1902
1902
  modelValue: n.value.filters,
1903
- "onUpdate:modelValue": o[14] || (o[14] = (g) => n.value.filters = g),
1904
- options: w.value
1903
+ "onUpdate:modelValue": l[14] || (l[14] = (b) => n.value.filters = b),
1904
+ options: V.value
1905
1905
  }, null, 8, ["modelValue", "options"]),
1906
1906
  m(jl, {
1907
1907
  modelValue: n.value.sorts,
1908
- "onUpdate:modelValue": o[15] || (o[15] = (g) => n.value.sorts = g),
1909
- options: w.value
1908
+ "onUpdate:modelValue": l[15] || (l[15] = (b) => n.value.sorts = b),
1909
+ options: V.value
1910
1910
  }, null, 8, ["modelValue", "options"]),
1911
- m(Ml, {
1911
+ m(zl, {
1912
1912
  modelValue: n.value.limit,
1913
- "onUpdate:modelValue": o[16] || (o[16] = (g) => n.value.limit = g)
1913
+ "onUpdate:modelValue": l[16] || (l[16] = (b) => n.value.limit = b)
1914
1914
  }, null, 8, ["modelValue"]),
1915
- n.value.conditions ? (y(), T(Yl, {
1915
+ n.value.conditions ? (y(), S(Hl, {
1916
1916
  key: 7,
1917
1917
  modelValue: n.value.conditions,
1918
- "onUpdate:modelValue": o[17] || (o[17] = (g) => n.value.conditions = g),
1919
- "join-field-options": w.value,
1918
+ "onUpdate:modelValue": l[17] || (l[17] = (b) => n.value.conditions = b),
1919
+ "join-field-options": V.value,
1920
1920
  "main-field-options": N.value
1921
1921
  }, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : U("", !0)
1922
1922
  ]),
@@ -1924,9 +1924,9 @@ const kl = { class: "grow" }, Cl = {
1924
1924
  });
1925
1925
  };
1926
1926
  }
1927
- }), Hl = { class: "fm-typo-en-title-sm-600" }, Te = /* @__PURE__ */ P({
1927
+ }), Yl = { class: "fm-typo-en-title-sm-600" }, Te = /* @__PURE__ */ P({
1928
1928
  __name: "TileEditorTabHeader",
1929
- props: /* @__PURE__ */ H({
1929
+ props: /* @__PURE__ */ Y({
1930
1930
  icon: {
1931
1931
  type: String,
1932
1932
  required: !0
@@ -1936,35 +1936,35 @@ const kl = { class: "grow" }, Cl = {
1936
1936
  modelModifiers: {}
1937
1937
  }),
1938
1938
  emits: ["update:modelValue"],
1939
- setup(V) {
1940
- const { t: s } = W(), a = ee(V, "modelValue"), r = V;
1939
+ setup(F) {
1940
+ const { t: r } = E(), a = ee(F, "modelValue"), u = F;
1941
1941
  return (n, f) => {
1942
- const v = F("FmIcon");
1942
+ const v = w("FmIcon");
1943
1943
  return y(), O("div", {
1944
1944
  class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
1945
1945
  onClick: f[0] || (f[0] = (x) => a.value = !a.value)
1946
1946
  }, [
1947
- k("p", Hl, B(t(s)("report.tile.setting")), 1),
1947
+ k("p", Yl, B(t(r)("report.tile.setting")), 1),
1948
1948
  f[1] || (f[1] = k("div", { class: "grow" }, null, -1)),
1949
1949
  m(v, {
1950
- name: r.icon
1950
+ name: u.icon
1951
1951
  }, null, 8, ["name"])
1952
1952
  ]);
1953
1953
  };
1954
1954
  }
1955
- }), Wl = /* @__PURE__ */ P({
1955
+ }), El = /* @__PURE__ */ P({
1956
1956
  __name: "TileEditorTabDesktop",
1957
1957
  props: {
1958
1958
  modelValue: { required: !0, default: !1 },
1959
1959
  modelModifiers: {}
1960
1960
  },
1961
1961
  emits: ["update:modelValue"],
1962
- setup(V) {
1963
- const s = ee(V, "modelValue");
1964
- return (a, r) => (y(), O(Q, null, [
1962
+ setup(F) {
1963
+ const r = ee(F, "modelValue");
1964
+ return (a, u) => (y(), O(Q, null, [
1965
1965
  m(Te, {
1966
- modelValue: s.value,
1967
- "onUpdate:modelValue": r[0] || (r[0] = (n) => s.value = n),
1966
+ modelValue: r.value,
1967
+ "onUpdate:modelValue": u[0] || (u[0] = (n) => r.value = n),
1968
1968
  icon: "keyboard_double_arrow_left"
1969
1969
  }, null, 8, ["modelValue"]),
1970
1970
  Be(a.$slots, "default")
@@ -1977,28 +1977,28 @@ const kl = { class: "grow" }, Cl = {
1977
1977
  modelModifiers: {}
1978
1978
  },
1979
1979
  emits: ["update:modelValue"],
1980
- setup(V) {
1981
- const s = ee(V, "modelValue");
1982
- return (a, r) => {
1983
- const n = F("FmTopSheet");
1980
+ setup(F) {
1981
+ const r = ee(F, "modelValue");
1982
+ return (a, u) => {
1983
+ const n = w("FmTopSheet");
1984
1984
  return y(), O("div", Jl, [
1985
1985
  m(Te, {
1986
- modelValue: s.value,
1987
- "onUpdate:modelValue": r[0] || (r[0] = (f) => s.value = f),
1986
+ modelValue: r.value,
1987
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => r.value = f),
1988
1988
  icon: "keyboard_double_arrow_up"
1989
1989
  }, null, 8, ["modelValue"]),
1990
1990
  m(n, {
1991
- modelValue: s.value,
1992
- "onUpdate:modelValue": r[2] || (r[2] = (f) => s.value = f),
1991
+ modelValue: r.value,
1992
+ "onUpdate:modelValue": u[2] || (u[2] = (f) => r.value = f),
1993
1993
  "fullscreen-size": "sm"
1994
1994
  }, {
1995
- default: D(() => [
1995
+ default: $(() => [
1996
1996
  m(Te, {
1997
- modelValue: s.value,
1998
- "onUpdate:modelValue": r[1] || (r[1] = (f) => s.value = f),
1997
+ modelValue: r.value,
1998
+ "onUpdate:modelValue": u[1] || (u[1] = (f) => r.value = f),
1999
1999
  icon: "keyboard_double_arrow_down"
2000
2000
  }, null, 8, ["modelValue"]),
2001
- s.value ? Be(a.$slots, "default", { key: 0 }) : U("", !0)
2001
+ r.value ? Be(a.$slots, "default", { key: 0 }) : U("", !0)
2002
2002
  ]),
2003
2003
  _: 3
2004
2004
  }, 8, ["modelValue"])
@@ -2011,65 +2011,65 @@ const kl = { class: "grow" }, Cl = {
2011
2011
  model: {}
2012
2012
  },
2013
2013
  emits: ["update:model"],
2014
- setup(V, { emit: s }) {
2015
- const a = V, r = s, { t: n } = W(), f = _({
2014
+ setup(F, { emit: r }) {
2015
+ const a = F, u = r, { t: n } = E(), f = _({
2016
2016
  get: () => a.model.showTitle ?? !1,
2017
- set: (p) => r("update:model", { ...a.model, showTitle: p })
2017
+ set: (s) => u("update:model", { ...a.model, showTitle: s })
2018
2018
  }), v = _({
2019
2019
  get: () => a.model.titleFontSize ?? 14,
2020
- set: (p) => r("update:model", { ...a.model, titleFontSize: Math.min(Number(p), 24) })
2020
+ set: (s) => u("update:model", { ...a.model, titleFontSize: Math.min(Number(s), 24) })
2021
2021
  }), x = _({
2022
2022
  get: () => a.model.titleBold ?? !1,
2023
- set: (p) => r("update:model", { ...a.model, titleBold: p })
2024
- }), d = _({
2023
+ set: (s) => u("update:model", { ...a.model, titleBold: s })
2024
+ }), p = _({
2025
2025
  get: () => a.model.titleItalic ?? !1,
2026
- set: (p) => r("update:model", { ...a.model, titleItalic: p })
2027
- }), l = _({
2026
+ set: (s) => u("update:model", { ...a.model, titleItalic: s })
2027
+ }), o = _({
2028
2028
  get: () => a.model.titleUnderline ?? !1,
2029
- set: (p) => r("update:model", { ...a.model, titleUnderline: p })
2029
+ set: (s) => u("update:model", { ...a.model, titleUnderline: s })
2030
2030
  });
2031
- return (p, b) => {
2032
- const S = F("FmStepperField"), $ = F("FmButton"), N = F("FmSwitch");
2031
+ return (s, g) => {
2032
+ const T = w("FmStepperField"), D = w("FmButton"), N = w("FmSwitch");
2033
2033
  return y(), O(Q, null, [
2034
2034
  k("div", null, [
2035
2035
  k("div", Kl, [
2036
2036
  k("div", Ql, [
2037
2037
  k("p", Zl, B(t(n)("report.section.datasource.title.titleFontSize")), 1),
2038
- m(S, {
2038
+ m(T, {
2039
2039
  modelValue: v.value,
2040
- "onUpdate:modelValue": b[0] || (b[0] = (w) => v.value = w),
2040
+ "onUpdate:modelValue": g[0] || (g[0] = (V) => v.value = V),
2041
2041
  max: 24,
2042
2042
  min: 1,
2043
2043
  type: "number"
2044
2044
  }, null, 8, ["modelValue"])
2045
2045
  ]),
2046
2046
  k("div", eo, [
2047
- b[5] || (b[5] = k("p", { class: "fm-typo-en-body-lg-600" }, "Text style and format", -1)),
2047
+ g[5] || (g[5] = k("p", { class: "fm-typo-en-body-lg-600" }, "Text style and format", -1)),
2048
2048
  k("div", lo, [
2049
- m($, {
2049
+ m(D, {
2050
2050
  "append-icon": "format_bold",
2051
- "model-value": p.model.titleBold ?? !1,
2051
+ "model-value": s.model.titleBold ?? !1,
2052
2052
  variant: "tertiary",
2053
- "icon-color": p.model.titleBold ? "neutral-gray-400" : "neutral-gray-300",
2054
- "bg-color": p.model.titleBold ? "neutral-gray-100" : "neutral-white",
2053
+ "icon-color": s.model.titleBold ? "neutral-gray-400" : "neutral-gray-300",
2054
+ "bg-color": s.model.titleBold ? "neutral-gray-100" : "neutral-white",
2055
2055
  class: "rounded-sm",
2056
- onClick: b[1] || (b[1] = (w) => x.value = !x.value)
2056
+ onClick: g[1] || (g[1] = (V) => x.value = !x.value)
2057
2057
  }, null, 8, ["model-value", "icon-color", "bg-color"]),
2058
- m($, {
2058
+ m(D, {
2059
2059
  "append-icon": "format_italic",
2060
- "model-value": p.model.titleItalic ?? !1,
2061
- "icon-color": p.model.titleItalic ? "neutral-gray-400" : "neutral-gray-300",
2062
- "bg-color": p.model.titleItalic ? "neutral-gray-100" : "neutral-white",
2060
+ "model-value": s.model.titleItalic ?? !1,
2061
+ "icon-color": s.model.titleItalic ? "neutral-gray-400" : "neutral-gray-300",
2062
+ "bg-color": s.model.titleItalic ? "neutral-gray-100" : "neutral-white",
2063
2063
  class: "rounded-sm",
2064
- onClick: b[2] || (b[2] = (w) => d.value = !d.value)
2064
+ onClick: g[2] || (g[2] = (V) => p.value = !p.value)
2065
2065
  }, null, 8, ["model-value", "icon-color", "bg-color"]),
2066
- m($, {
2066
+ m(D, {
2067
2067
  "append-icon": "format_underlined",
2068
- "model-value": p.model.titleUnderline ?? !1,
2069
- "icon-color": p.model.titleUnderline ? "neutral-gray-400" : "neutral-gray-300",
2070
- "bg-color": p.model.titleUnderline ? "neutral-gray-100" : "neutral-white",
2068
+ "model-value": s.model.titleUnderline ?? !1,
2069
+ "icon-color": s.model.titleUnderline ? "neutral-gray-400" : "neutral-gray-300",
2070
+ "bg-color": s.model.titleUnderline ? "neutral-gray-100" : "neutral-white",
2071
2071
  class: "rounded-sm",
2072
- onClick: b[3] || (b[3] = (w) => l.value = !l.value)
2072
+ onClick: g[3] || (g[3] = (V) => o.value = !o.value)
2073
2073
  }, null, 8, ["model-value", "icon-color", "bg-color"])
2074
2074
  ])
2075
2075
  ])
@@ -2077,7 +2077,7 @@ const kl = { class: "grow" }, Cl = {
2077
2077
  ]),
2078
2078
  m(N, {
2079
2079
  modelValue: f.value,
2080
- "onUpdate:modelValue": b[4] || (b[4] = (w) => f.value = w),
2080
+ "onUpdate:modelValue": g[4] || (g[4] = (V) => f.value = V),
2081
2081
  label: t(n)("report.section.datasource.title.hideTitle"),
2082
2082
  "label-placement": "right"
2083
2083
  }, null, 8, ["modelValue", "label"])
@@ -2086,7 +2086,7 @@ const kl = { class: "grow" }, Cl = {
2086
2086
  }
2087
2087
  }), to = { class: "flex gap-16 justify-center items-center" }, ao = { class: "fm-typo-en-title-sm-600" }, no = { class: "fm-typo-en-body-lg-600" }, io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, so = { class: "h-[40x]" }, Oe = "YYYY-MM-DD", qe = /* @__PURE__ */ P({
2088
2088
  __name: "TileEditorTab",
2089
- props: /* @__PURE__ */ H({
2089
+ props: /* @__PURE__ */ Y({
2090
2090
  hideConfiguration: {
2091
2091
  type: Boolean,
2092
2092
  default: !1
@@ -2097,35 +2097,35 @@ const kl = { class: "grow" }, Cl = {
2097
2097
  },
2098
2098
  modelModifiers: {}
2099
2099
  }),
2100
- emits: /* @__PURE__ */ H(["hideConfiguration"], ["update:modelValue"]),
2101
- setup(V, { emit: s }) {
2100
+ emits: /* @__PURE__ */ Y(["hideConfiguration"], ["update:modelValue"]),
2101
+ setup(F, { emit: r }) {
2102
2102
  var i, e;
2103
- const a = tl(), { dateRange: r } = me(a), n = {
2104
- startDate: r.value.startDate,
2105
- endDate: r.value.endDate
2106
- }, f = M({
2107
- startDate: (i = re(r.value.startDate)) == null ? void 0 : i.local().format(Oe),
2108
- endDate: (e = re(r.value.endDate)) == null ? void 0 : e.local().format(Oe)
2103
+ const a = tl(), { dateRange: u } = me(a), n = {
2104
+ startDate: u.value.startDate,
2105
+ endDate: u.value.endDate
2106
+ }, f = z({
2107
+ startDate: (i = re(u.value.startDate)) == null ? void 0 : i.local().format(Oe),
2108
+ endDate: (e = re(u.value.endDate)) == null ? void 0 : e.local().format(Oe)
2109
2109
  });
2110
2110
  ne(
2111
2111
  f,
2112
- ({ startDate: c, endDate: g }) => {
2113
- r.value = {
2112
+ ({ startDate: c, endDate: b }) => {
2113
+ u.value = {
2114
2114
  startDate: re(c).toISOString(),
2115
- endDate: re(g).toISOString()
2115
+ endDate: re(b).toISOString()
2116
2116
  };
2117
2117
  },
2118
2118
  { deep: !0, immediate: !0 }
2119
- ), Ye(() => {
2120
- r.value = { ...n };
2119
+ ), He(() => {
2120
+ u.value = { ...n };
2121
2121
  });
2122
- const v = ee(V, "modelValue"), { breakpoints: x } = Me(), d = V, { promptMessage: l } = ze(), p = s, { t: b } = W();
2123
- function S(c) {
2122
+ const v = ee(F, "modelValue"), { breakpoints: x } = ze(), p = F, { promptMessage: o } = Re(), s = r, { t: g } = E();
2123
+ function T(c) {
2124
2124
  v.value = gl(c);
2125
2125
  }
2126
- function $() {
2126
+ function D() {
2127
2127
  const c = [...v.value.widget.config.joinDatasources || []];
2128
- c.push({ ...Qe(v.value.widget.type), conditions: [] }), S({
2128
+ c.push({ ...Qe(v.value.widget.type), conditions: [] }), T({
2129
2129
  ...v.value,
2130
2130
  widget: {
2131
2131
  ...v.value.widget,
@@ -2137,12 +2137,12 @@ const kl = { class: "grow" }, Cl = {
2137
2137
  });
2138
2138
  }
2139
2139
  async function N(c) {
2140
- if (!await l({
2141
- title: b("report.tile.datasource.remove"),
2142
- message: b("report.tile.datasource.confirmRemove", { index: c + 1 })
2140
+ if (!await o({
2141
+ title: g("report.tile.datasource.remove"),
2142
+ message: g("report.tile.datasource.confirmRemove", { index: c + 1 })
2143
2143
  })) return;
2144
2144
  const L = [...v.value.widget.config.joinDatasources || []];
2145
- L.splice(c, 1), S({
2145
+ L.splice(c, 1), T({
2146
2146
  ...v.value,
2147
2147
  widget: {
2148
2148
  ...v.value.widget,
@@ -2153,7 +2153,7 @@ const kl = { class: "grow" }, Cl = {
2153
2153
  }
2154
2154
  });
2155
2155
  }
2156
- const w = (c, g) => {
2156
+ const V = (c, b) => {
2157
2157
  let L = 1, A = 1;
2158
2158
  switch (c) {
2159
2159
  case j.Scorecard:
@@ -2181,13 +2181,13 @@ const kl = { class: "grow" }, Cl = {
2181
2181
  width: A
2182
2182
  },
2183
2183
  widget: {
2184
- ...g.widget,
2184
+ ...b.widget,
2185
2185
  type: c
2186
2186
  }
2187
2187
  };
2188
2188
  }, h = _(
2189
2189
  () => xe.find((c) => c.type === v.value.widget.type)
2190
- ), u = _(() => v.value.widget.config.joinDatasources), o = Ve((c) => {
2190
+ ), d = _(() => v.value.widget.config.joinDatasources), l = Ve((c) => {
2191
2191
  v.value.widget.title = c;
2192
2192
  }, 500);
2193
2193
  return ne(
@@ -2200,68 +2200,68 @@ const kl = { class: "grow" }, Cl = {
2200
2200
  (c) => {
2201
2201
  c < 1 && (v.value.size.width = 1), c > 12 && (v.value.size.width = 12);
2202
2202
  }
2203
- ), (c, g) => {
2204
- const L = F("FmCircularProgress"), A = F("FmSimpleDateRangePicker"), Y = F("FmTextField"), q = F("FmTextarea"), X = F("FmStepperField"), J = F("FmButton"), E = F("FmForm");
2205
- return y(), T(Le(t(x).lg || t(x).md ? Wl : Gl), {
2206
- "model-value": d.hideConfiguration,
2207
- "onUpdate:modelValue": g[8] || (g[8] = (C) => p("hideConfiguration", C))
2203
+ ), (c, b) => {
2204
+ const L = w("FmCircularProgress"), A = w("FmSimpleDateRangePicker"), H = w("FmTextField"), q = w("FmTextarea"), X = w("FmStepperField"), J = w("FmButton"), W = w("FmForm");
2205
+ return y(), S(Le(t(x).lg || t(x).md ? El : Gl), {
2206
+ "model-value": p.hideConfiguration,
2207
+ "onUpdate:modelValue": b[8] || (b[8] = (C) => s("hideConfiguration", C))
2208
2208
  }, {
2209
- default: D(() => [
2210
- v.value ? (y(), T(E, {
2209
+ default: $(() => [
2210
+ v.value ? (y(), S(W, {
2211
2211
  key: 1,
2212
2212
  ref: "form",
2213
2213
  class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
2214
2214
  }, {
2215
- default: D(() => [
2215
+ default: $(() => [
2216
2216
  k("div", to, [
2217
2217
  m(A, {
2218
2218
  modelValue: f.value,
2219
- "onUpdate:modelValue": g[0] || (g[0] = (C) => f.value = C)
2219
+ "onUpdate:modelValue": b[0] || (b[0] = (C) => f.value = C)
2220
2220
  }, null, 8, ["modelValue"])
2221
2221
  ]),
2222
2222
  m(_e, null, {
2223
- header: D(() => [
2224
- k("p", ao, B(t(b)("report.tile.widget.details")), 1),
2225
- g[9] || (g[9] = k("div", { class: "grow" }, null, -1))
2223
+ header: $(() => [
2224
+ k("p", ao, B(t(g)("report.tile.widget.details")), 1),
2225
+ b[9] || (b[9] = k("div", { class: "grow" }, null, -1))
2226
2226
  ]),
2227
- content: D(() => [
2228
- m(Y, {
2227
+ content: $(() => [
2228
+ m(H, {
2229
2229
  "model-value": v.value.widget.title,
2230
- label: t(b)("report.tile.widget.title"),
2231
- placeholder: t(b)("report.tile.widget.titlePlaceholder"),
2232
- "onUpdate:modelValue": t(o)
2230
+ label: t(g)("report.tile.widget.title"),
2231
+ placeholder: t(g)("report.tile.widget.titlePlaceholder"),
2232
+ "onUpdate:modelValue": t(l)
2233
2233
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2234
2234
  m(q, {
2235
2235
  modelValue: v.value.widget.description,
2236
- "onUpdate:modelValue": g[1] || (g[1] = (C) => v.value.widget.description = C),
2236
+ "onUpdate:modelValue": b[1] || (b[1] = (C) => v.value.widget.description = C),
2237
2237
  disabled: v.value.widget.title === "",
2238
- placeholder: t(b)("report.tile.widget.descriptionPlaceholder"),
2239
- "helper-text": t(b)("report.tile.widget.descriptionHelper")
2238
+ placeholder: t(g)("report.tile.widget.descriptionPlaceholder"),
2239
+ "helper-text": t(g)("report.tile.widget.descriptionHelper")
2240
2240
  }, {
2241
- label: D(() => [
2242
- k("p", no, B(t(b)("report.tile.widget.widgetDescription")), 1),
2243
- k("p", io, " (" + B(t(b)("report.tile.widget.optional")) + ") ", 1)
2241
+ label: $(() => [
2242
+ k("p", no, B(t(g)("report.tile.widget.widgetDescription")), 1),
2243
+ k("p", io, " (" + B(t(g)("report.tile.widget.optional")) + ") ", 1)
2244
2244
  ]),
2245
2245
  _: 1
2246
2246
  }, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
2247
2247
  m(oo, {
2248
2248
  model: v.value.widget.config,
2249
- "onUpdate:model": g[2] || (g[2] = (C) => v.value.widget.config = C)
2249
+ "onUpdate:model": b[2] || (b[2] = (C) => v.value.widget.config = C)
2250
2250
  }, null, 8, ["model"]),
2251
2251
  k("div", {
2252
2252
  class: je(["flex flex-row", `${t(x).sm || t(x).xs ? "gap-16" : "gap-2"}`])
2253
2253
  }, [
2254
2254
  m(X, {
2255
2255
  modelValue: v.value.size.width,
2256
- "onUpdate:modelValue": g[3] || (g[3] = (C) => v.value.size.width = C),
2257
- label: t(b)("report.tile.widget.width"),
2256
+ "onUpdate:modelValue": b[3] || (b[3] = (C) => v.value.size.width = C),
2257
+ label: t(g)("report.tile.widget.width"),
2258
2258
  min: 1,
2259
2259
  max: 12
2260
2260
  }, null, 8, ["modelValue", "label"]),
2261
2261
  m(X, {
2262
2262
  modelValue: v.value.size.height,
2263
- "onUpdate:modelValue": g[4] || (g[4] = (C) => v.value.size.height = C),
2264
- label: t(b)("report.tile.widget.height"),
2263
+ "onUpdate:modelValue": b[4] || (b[4] = (C) => v.value.size.height = C),
2264
+ label: t(g)("report.tile.widget.height"),
2265
2265
  min: 1,
2266
2266
  max: 12,
2267
2267
  disabled: v.value.widget.type === t(j).Scorecard
@@ -2271,33 +2271,33 @@ const kl = { class: "grow" }, Cl = {
2271
2271
  _: 1
2272
2272
  }),
2273
2273
  m(_e, null, {
2274
- header: D(() => [
2275
- k("p", null, B(t(b)("report.tile.widget.type")), 1),
2276
- g[10] || (g[10] = k("div", { class: "grow" }, null, -1))
2274
+ header: $(() => [
2275
+ k("p", null, B(t(g)("report.tile.widget.type")), 1),
2276
+ b[10] || (b[10] = k("div", { class: "grow" }, null, -1))
2277
2277
  ]),
2278
- content: D(() => [
2278
+ content: $(() => [
2279
2279
  m(Ke, {
2280
2280
  "is-list": !0,
2281
2281
  "model-value": v.value.widget.type,
2282
2282
  class: "grid grid-cols-1 gap-2",
2283
2283
  "child-class": "flex flex-row p-[8px] gap-2",
2284
2284
  "exclude-widge-type": [t(j).Spacer],
2285
- "onUpdate:modelValue": g[5] || (g[5] = (C) => v.value = w(C, v.value))
2285
+ "onUpdate:modelValue": b[5] || (b[5] = (C) => v.value = V(C, v.value))
2286
2286
  }, null, 8, ["model-value", "exclude-widge-type"])
2287
2287
  ]),
2288
2288
  _: 1
2289
2289
  }),
2290
2290
  m(Ne, {
2291
2291
  modelValue: v.value.widget.config,
2292
- "onUpdate:modelValue": g[6] || (g[6] = (C) => v.value.widget.config = C),
2293
- label: t(b)("report.tile.datasource.main"),
2292
+ "onUpdate:modelValue": b[6] || (b[6] = (C) => v.value.widget.config = C),
2293
+ label: t(g)("report.tile.datasource.main"),
2294
2294
  config: h.value
2295
2295
  }, null, 8, ["modelValue", "label", "config"]),
2296
- u.value ? (y(!0), O(Q, { key: 0 }, de(u.value, (C, I) => (y(), O("div", { key: I }, [
2296
+ d.value ? (y(!0), O(Q, { key: 0 }, de(d.value, (C, I) => (y(), O("div", { key: I }, [
2297
2297
  m(Ne, {
2298
- modelValue: u.value[I],
2299
- "onUpdate:modelValue": (G) => u.value[I] = G,
2300
- label: t(b)("report.tile.datasource.join", { index: I + 1 }),
2298
+ modelValue: d.value[I],
2299
+ "onUpdate:modelValue": (G) => d.value[I] = G,
2300
+ label: t(g)("report.tile.datasource.join", { index: I + 1 }),
2301
2301
  config: h.value,
2302
2302
  "main-datasource-config": v.value.widget.config,
2303
2303
  closeable: !0,
@@ -2306,19 +2306,19 @@ const kl = { class: "grow" }, Cl = {
2306
2306
  ]))), 128)) : U("", !0),
2307
2307
  k("div", so, [
2308
2308
  m(J, {
2309
- label: t(b)("report.tile.datasource.joinButton"),
2309
+ label: t(g)("report.tile.datasource.joinButton"),
2310
2310
  variant: "secondary",
2311
2311
  icon: "add",
2312
2312
  "icon-position": "prepend",
2313
2313
  "border-color": t(be).ColorPrimary,
2314
2314
  "text-color": t(be).ColorPrimary,
2315
2315
  class: "w-full",
2316
- onClick: g[7] || (g[7] = (C) => $())
2316
+ onClick: b[7] || (b[7] = (C) => D())
2317
2317
  }, null, 8, ["label", "border-color", "text-color"])
2318
2318
  ])
2319
2319
  ]),
2320
2320
  _: 1
2321
- }, 512)) : (y(), T(L, { key: 0 }))
2321
+ }, 512)) : (y(), S(L, { key: 0 }))
2322
2322
  ]),
2323
2323
  _: 1
2324
2324
  }, 8, ["model-value"]);
@@ -2330,32 +2330,32 @@ const kl = { class: "grow" }, Cl = {
2330
2330
  model: {}
2331
2331
  },
2332
2332
  emits: ["update:model"],
2333
- setup(V, { emit: s }) {
2334
- const a = V, r = s, { t: n } = W(), f = _({
2333
+ setup(F, { emit: r }) {
2334
+ const a = F, u = r, { t: n } = E(), f = _({
2335
2335
  get: () => a.model.showLabel ?? !1,
2336
- set: ($) => {
2337
- r("update:model", { ...a.model, showLabel: $ });
2336
+ set: (D) => {
2337
+ u("update:model", { ...a.model, showLabel: D });
2338
2338
  }
2339
2339
  }), v = _({
2340
2340
  get: () => a.model.labelRotation ?? 0,
2341
- set: ($) => r("update:model", { ...a.model, labelRotation: $ })
2341
+ set: (D) => u("update:model", { ...a.model, labelRotation: D })
2342
2342
  }), x = _({
2343
2343
  get: () => a.model.labelOffset ?? 0,
2344
- set: ($) => r("update:model", { ...a.model, labelOffset: $ })
2345
- }), d = _({
2344
+ set: (D) => u("update:model", { ...a.model, labelOffset: D })
2345
+ }), p = _({
2346
2346
  get: () => a.model.labelFontSize ?? 12,
2347
- set: ($) => r("update:model", { ...a.model, labelFontSize: $ })
2348
- }), l = ($) => {
2349
- r("update:model", {
2347
+ set: (D) => u("update:model", { ...a.model, labelFontSize: D })
2348
+ }), o = (D) => {
2349
+ u("update:model", {
2350
2350
  ...a.model,
2351
- labelAlign: a.model.labelAlign === $ ? void 0 : $
2351
+ labelAlign: a.model.labelAlign === D ? void 0 : D
2352
2352
  });
2353
- }, p = ($) => {
2354
- r("update:model", {
2353
+ }, s = (D) => {
2354
+ u("update:model", {
2355
2355
  ...a.model,
2356
- labelAnchor: a.model.labelAnchor === $ ? void 0 : $
2356
+ labelAnchor: a.model.labelAnchor === D ? void 0 : D
2357
2357
  });
2358
- }, b = [
2358
+ }, g = [
2359
2359
  { icon: "align_horizontal_left", value: ue.left, tooltip: "alignLeft" },
2360
2360
  { icon: "align_justify_center", value: ue.center, tooltip: "alignCenter" },
2361
2361
  { icon: "align_horizontal_right", value: ue.right, tooltip: "alignRight" },
@@ -2363,15 +2363,15 @@ const kl = { class: "grow" }, Cl = {
2363
2363
  { icon: "align_justify_flex_end", value: ue.end, tooltip: "alignEnd" },
2364
2364
  { icon: "align_flex_start", value: ue.top, tooltip: "alignTop" },
2365
2365
  { icon: "align_flex_end", value: ue.bottom, tooltip: "alignBottom" }
2366
- ], S = [
2366
+ ], T = [
2367
2367
  { icon: "format_align_left", value: ke.start, tooltip: "anchorStart" },
2368
2368
  { icon: "format_align_center", value: ke.center, tooltip: "anchorCenter" },
2369
2369
  { icon: "format_align_right", value: ke.end, tooltip: "anchorEnd" }
2370
2370
  ];
2371
- return ($, N) => {
2372
- const w = F("FmCheckbox"), h = F("FmButton"), u = F("FmTooltip"), o = F("FmTextField"), i = F("FmStepperField");
2371
+ return (D, N) => {
2372
+ const V = w("FmCheckbox"), h = w("FmButton"), d = w("FmTooltip"), l = w("FmTextField"), i = w("FmStepperField");
2373
2373
  return y(), O("div", uo, [
2374
- m(w, {
2374
+ m(V, {
2375
2375
  modelValue: f.value,
2376
2376
  "onUpdate:modelValue": N[0] || (N[0] = (e) => f.value = e),
2377
2377
  value: !1,
@@ -2382,21 +2382,21 @@ const kl = { class: "grow" }, Cl = {
2382
2382
  ie(k("div", ro, [
2383
2383
  k("p", mo, B(t(n)("report.section.datasource.alignment.textAlignment")), 1),
2384
2384
  k("div", co, [
2385
- (y(), O(Q, null, de(b, ({ icon: e, value: c, tooltip: g }) => m(u, {
2385
+ (y(), O(Q, null, de(g, ({ icon: e, value: c, tooltip: b }) => m(d, {
2386
2386
  key: c,
2387
2387
  variant: "plain",
2388
2388
  placement: "top",
2389
- content: t(n)(`report.section.datasource.alignment.alignOptions.${g}`),
2389
+ content: t(n)(`report.section.datasource.alignment.alignOptions.${b}`),
2390
2390
  "z-index": 50
2391
2391
  }, {
2392
- default: D(() => [
2392
+ default: $(() => [
2393
2393
  m(h, {
2394
2394
  "append-icon": e,
2395
2395
  variant: "tertiary",
2396
- "icon-color": $.model.labelAlign === c ? "neutral-gray-400" : "neutral-gray-300",
2397
- "bg-color": $.model.labelAlign === c ? "neutral-gray-100" : "neutral-white",
2396
+ "icon-color": D.model.labelAlign === c ? "neutral-gray-400" : "neutral-gray-300",
2397
+ "bg-color": D.model.labelAlign === c ? "neutral-gray-100" : "neutral-white",
2398
2398
  class: "rounded-sm",
2399
- onClick: (L) => l(c)
2399
+ onClick: (L) => o(c)
2400
2400
  }, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
2401
2401
  ]),
2402
2402
  _: 2
@@ -2404,27 +2404,27 @@ const kl = { class: "grow" }, Cl = {
2404
2404
  ]),
2405
2405
  k("p", po, B(t(n)("report.section.datasource.alignment.anchor")), 1),
2406
2406
  k("div", vo, [
2407
- (y(), O(Q, null, de(S, ({ icon: e, value: c, tooltip: g }) => m(u, {
2407
+ (y(), O(Q, null, de(T, ({ icon: e, value: c, tooltip: b }) => m(d, {
2408
2408
  key: c,
2409
2409
  variant: "plain",
2410
2410
  placement: "top",
2411
- content: t(n)(`report.section.datasource.alignment.anchorOptions.${g}`),
2411
+ content: t(n)(`report.section.datasource.alignment.anchorOptions.${b}`),
2412
2412
  "z-index": 50
2413
2413
  }, {
2414
- default: D(() => [
2414
+ default: $(() => [
2415
2415
  m(h, {
2416
2416
  "append-icon": e,
2417
2417
  variant: "tertiary",
2418
- "icon-color": $.model.labelAnchor === c ? "neutral-gray-400" : "neutral-gray-300",
2419
- "bg-color": $.model.labelAnchor === c ? "neutral-gray-100" : "neutral-white",
2418
+ "icon-color": D.model.labelAnchor === c ? "neutral-gray-400" : "neutral-gray-300",
2419
+ "bg-color": D.model.labelAnchor === c ? "neutral-gray-100" : "neutral-white",
2420
2420
  class: "rounded-sm",
2421
- onClick: (L) => p(c)
2421
+ onClick: (L) => s(c)
2422
2422
  }, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
2423
2423
  ]),
2424
2424
  _: 2
2425
2425
  }, 1032, ["content"])), 64))
2426
2426
  ]),
2427
- m(o, {
2427
+ m(l, {
2428
2428
  modelValue: v.value,
2429
2429
  "onUpdate:modelValue": N[1] || (N[1] = (e) => v.value = e),
2430
2430
  label: t(n)("report.section.datasource.alignment.rotation"),
@@ -2433,15 +2433,15 @@ const kl = { class: "grow" }, Cl = {
2433
2433
  max: 180,
2434
2434
  step: 1
2435
2435
  }, null, 8, ["modelValue", "label"]),
2436
- m(o, {
2436
+ m(l, {
2437
2437
  modelValue: x.value,
2438
2438
  "onUpdate:modelValue": N[2] || (N[2] = (e) => x.value = e),
2439
2439
  label: t(n)("report.section.datasource.alignment.offset"),
2440
2440
  type: "number"
2441
2441
  }, null, 8, ["modelValue", "label"]),
2442
2442
  m(i, {
2443
- modelValue: d.value,
2444
- "onUpdate:modelValue": N[3] || (N[3] = (e) => d.value = e),
2443
+ modelValue: p.value,
2444
+ "onUpdate:modelValue": N[3] || (N[3] = (e) => p.value = e),
2445
2445
  label: t(n)("report.section.datasource.fontSize"),
2446
2446
  type: "number",
2447
2447
  min: 1
@@ -2458,56 +2458,56 @@ const kl = { class: "grow" }, Cl = {
2458
2458
  model: {}
2459
2459
  },
2460
2460
  emits: ["update:model"],
2461
- setup(V, { emit: s }) {
2462
- const a = V, r = s, { t: n } = W(), f = _({
2461
+ setup(F, { emit: r }) {
2462
+ const a = F, u = r, { t: n } = E(), f = _({
2463
2463
  get: () => a.model.showX ?? !0,
2464
- set: (w) => {
2465
- r("update:model", { ...a.model, showX: w });
2464
+ set: (V) => {
2465
+ u("update:model", { ...a.model, showX: V });
2466
2466
  }
2467
2467
  }), v = _({
2468
2468
  get: () => a.model.showXGrid ?? !1,
2469
- set: (w) => {
2470
- r("update:model", { ...a.model, showXGrid: w });
2469
+ set: (V) => {
2470
+ u("update:model", { ...a.model, showXGrid: V });
2471
2471
  }
2472
2472
  }), x = _({
2473
2473
  get: () => a.model.showXTick ?? !0,
2474
- set: (w) => {
2475
- r("update:model", { ...a.model, showXTick: w });
2474
+ set: (V) => {
2475
+ u("update:model", { ...a.model, showXTick: V });
2476
2476
  }
2477
- }), d = _({
2477
+ }), p = _({
2478
2478
  get: () => a.model.showY ?? !0,
2479
- set: (w) => {
2480
- r("update:model", { ...a.model, showY: w });
2479
+ set: (V) => {
2480
+ u("update:model", { ...a.model, showY: V });
2481
2481
  }
2482
- }), l = _({
2482
+ }), o = _({
2483
2483
  get: () => a.model.showYGrid ?? !0,
2484
- set: (w) => {
2485
- r("update:model", { ...a.model, showYGrid: w });
2484
+ set: (V) => {
2485
+ u("update:model", { ...a.model, showYGrid: V });
2486
2486
  }
2487
- }), p = _({
2487
+ }), s = _({
2488
2488
  get: () => a.model.showYTick ?? !0,
2489
- set: (w) => {
2490
- r("update:model", { ...a.model, showYTick: w });
2489
+ set: (V) => {
2490
+ u("update:model", { ...a.model, showYTick: V });
2491
2491
  }
2492
- }), b = _({
2492
+ }), g = _({
2493
2493
  get: () => a.model.showXTitle ?? !1,
2494
- set: (w) => {
2495
- r("update:model", { ...a.model, showXTitle: w });
2494
+ set: (V) => {
2495
+ u("update:model", { ...a.model, showXTitle: V });
2496
2496
  }
2497
- }), S = _({
2497
+ }), T = _({
2498
2498
  get: () => a.model.showYTitle ?? !1,
2499
- set: (w) => {
2500
- r("update:model", { ...a.model, showYTitle: w });
2499
+ set: (V) => {
2500
+ u("update:model", { ...a.model, showYTitle: V });
2501
2501
  }
2502
- }), $ = Ve((w) => {
2503
- r("update:model", { ...a.model, xTitle: w });
2504
- }, 500), N = Ve((w) => {
2505
- r("update:model", { ...a.model, yTitle: w });
2502
+ }), D = Ve((V) => {
2503
+ u("update:model", { ...a.model, xTitle: V });
2504
+ }, 500), N = Ve((V) => {
2505
+ u("update:model", { ...a.model, yTitle: V });
2506
2506
  }, 500);
2507
- return (w, h) => {
2508
- const u = F("FmCheckbox"), o = F("FmStepperField"), i = F("FmTextField");
2507
+ return (V, h) => {
2508
+ const d = w("FmCheckbox"), l = w("FmStepperField"), i = w("FmTextField");
2509
2509
  return y(), O("div", go, [
2510
- m(u, {
2510
+ m(d, {
2511
2511
  modelValue: f.value,
2512
2512
  "onUpdate:modelValue": h[0] || (h[0] = (e) => f.value = e),
2513
2513
  label: t(n)("report.section.datasource.axis.showX"),
@@ -2515,14 +2515,14 @@ const kl = { class: "grow" }, Cl = {
2515
2515
  value: !0
2516
2516
  }, null, 8, ["modelValue", "label"]),
2517
2517
  ie(k("div", bo, [
2518
- m(u, {
2518
+ m(d, {
2519
2519
  modelValue: v.value,
2520
2520
  "onUpdate:modelValue": h[1] || (h[1] = (e) => v.value = e),
2521
2521
  label: t(n)("report.section.datasource.axis.showGrid"),
2522
2522
  "label-placement": "right",
2523
2523
  value: !1
2524
2524
  }, null, 8, ["modelValue", "label"]),
2525
- m(u, {
2525
+ m(d, {
2526
2526
  modelValue: x.value,
2527
2527
  "onUpdate:modelValue": h[2] || (h[2] = (e) => x.value = e),
2528
2528
  label: t(n)("report.section.datasource.axis.showTick"),
@@ -2530,110 +2530,110 @@ const kl = { class: "grow" }, Cl = {
2530
2530
  value: !0
2531
2531
  }, null, 8, ["modelValue", "label"]),
2532
2532
  ie(k("div", yo, [
2533
- m(o, {
2533
+ m(l, {
2534
2534
  label: t(n)("report.section.datasource.fontSize"),
2535
2535
  type: "number",
2536
- "model-value": w.model.xTickFontSize ?? 12,
2536
+ "model-value": V.model.xTickFontSize ?? 12,
2537
2537
  min: 1,
2538
2538
  "onUpdate:modelValue": h[3] || (h[3] = (e) => {
2539
- r("update:model", { ...w.model, xTickFontSize: Number(e) });
2539
+ u("update:model", { ...V.model, xTickFontSize: Number(e) });
2540
2540
  })
2541
2541
  }, null, 8, ["label", "model-value"])
2542
2542
  ], 512), [
2543
- [se, w.model.showXTick ?? !0]
2543
+ [se, V.model.showXTick ?? !0]
2544
2544
  ]),
2545
- m(u, {
2546
- modelValue: b.value,
2547
- "onUpdate:modelValue": h[4] || (h[4] = (e) => b.value = e),
2545
+ m(d, {
2546
+ modelValue: g.value,
2547
+ "onUpdate:modelValue": h[4] || (h[4] = (e) => g.value = e),
2548
2548
  label: t(n)("report.section.datasource.axis.showTitle"),
2549
2549
  "label-placement": "right",
2550
2550
  value: !0
2551
2551
  }, null, 8, ["modelValue", "label"]),
2552
2552
  ie(k("div", ho, [
2553
2553
  m(i, {
2554
- "model-value": w.model.xTitle,
2554
+ "model-value": V.model.xTitle,
2555
2555
  label: t(n)("report.common.title"),
2556
2556
  placeholder: t(n)("report.tile.widget.titlePlaceholder"),
2557
- "onUpdate:modelValue": t($)
2557
+ "onUpdate:modelValue": t(D)
2558
2558
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2559
- m(o, {
2559
+ m(l, {
2560
2560
  label: t(n)("report.section.datasource.fontSize"),
2561
2561
  type: "number",
2562
- "model-value": w.model.xTitleFontSize ?? 12,
2562
+ "model-value": V.model.xTitleFontSize ?? 12,
2563
2563
  min: 1,
2564
2564
  "onUpdate:modelValue": h[5] || (h[5] = (e) => {
2565
- r("update:model", { ...w.model, xTitleFontSize: Number(e) });
2565
+ u("update:model", { ...V.model, xTitleFontSize: Number(e) });
2566
2566
  })
2567
2567
  }, null, 8, ["label", "model-value"])
2568
2568
  ], 512), [
2569
- [se, b.value]
2569
+ [se, g.value]
2570
2570
  ])
2571
2571
  ], 512), [
2572
- [se, w.model.showX ?? !0]
2572
+ [se, V.model.showX ?? !0]
2573
2573
  ]),
2574
- m(u, {
2575
- modelValue: d.value,
2576
- "onUpdate:modelValue": h[6] || (h[6] = (e) => d.value = e),
2574
+ m(d, {
2575
+ modelValue: p.value,
2576
+ "onUpdate:modelValue": h[6] || (h[6] = (e) => p.value = e),
2577
2577
  label: t(n)("report.section.datasource.axis.showY"),
2578
2578
  "label-placement": "right",
2579
2579
  value: !0
2580
2580
  }, null, 8, ["modelValue", "label"]),
2581
2581
  ie(k("div", Vo, [
2582
- m(u, {
2583
- modelValue: l.value,
2584
- "onUpdate:modelValue": h[7] || (h[7] = (e) => l.value = e),
2582
+ m(d, {
2583
+ modelValue: o.value,
2584
+ "onUpdate:modelValue": h[7] || (h[7] = (e) => o.value = e),
2585
2585
  label: t(n)("report.section.datasource.axis.showGrid"),
2586
2586
  "label-placement": "right",
2587
2587
  value: !1
2588
2588
  }, null, 8, ["modelValue", "label"]),
2589
- m(u, {
2590
- modelValue: p.value,
2591
- "onUpdate:modelValue": h[8] || (h[8] = (e) => p.value = e),
2589
+ m(d, {
2590
+ modelValue: s.value,
2591
+ "onUpdate:modelValue": h[8] || (h[8] = (e) => s.value = e),
2592
2592
  label: t(n)("report.section.datasource.axis.showTick"),
2593
2593
  "label-placement": "right",
2594
2594
  value: !0
2595
2595
  }, null, 8, ["modelValue", "label"]),
2596
2596
  ie(k("div", Fo, [
2597
- m(o, {
2597
+ m(l, {
2598
2598
  label: t(n)("report.section.datasource.fontSize"),
2599
2599
  type: "number",
2600
- "model-value": w.model.yTickFontSize ?? 12,
2600
+ "model-value": V.model.yTickFontSize ?? 12,
2601
2601
  min: 1,
2602
2602
  "onUpdate:modelValue": h[9] || (h[9] = (e) => {
2603
- r("update:model", { ...w.model, yTickFontSize: Number(e) });
2603
+ u("update:model", { ...V.model, yTickFontSize: Number(e) });
2604
2604
  })
2605
2605
  }, null, 8, ["label", "model-value"])
2606
2606
  ], 512), [
2607
- [se, w.model.showYTick ?? !0]
2607
+ [se, V.model.showYTick ?? !0]
2608
2608
  ]),
2609
- m(u, {
2610
- modelValue: S.value,
2611
- "onUpdate:modelValue": h[10] || (h[10] = (e) => S.value = e),
2609
+ m(d, {
2610
+ modelValue: T.value,
2611
+ "onUpdate:modelValue": h[10] || (h[10] = (e) => T.value = e),
2612
2612
  label: t(n)("report.section.datasource.axis.showTitle"),
2613
2613
  "label-placement": "right",
2614
2614
  value: !0
2615
2615
  }, null, 8, ["modelValue", "label"]),
2616
2616
  ie(k("div", wo, [
2617
2617
  m(i, {
2618
- "model-value": w.model.yTitle,
2618
+ "model-value": V.model.yTitle,
2619
2619
  label: t(n)("report.common.title"),
2620
2620
  placeholder: t(n)("report.tile.widget.titlePlaceholder"),
2621
2621
  "onUpdate:modelValue": t(N)
2622
2622
  }, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
2623
- m(o, {
2623
+ m(l, {
2624
2624
  label: t(n)("report.section.datasource.fontSize"),
2625
2625
  type: "number",
2626
- "model-value": w.model.yTitleFontSize ?? 12,
2626
+ "model-value": V.model.yTitleFontSize ?? 12,
2627
2627
  min: 1,
2628
2628
  "onUpdate:modelValue": h[11] || (h[11] = (e) => {
2629
- r("update:model", { ...w.model, yTitleFontSize: Number(e) });
2629
+ u("update:model", { ...V.model, yTitleFontSize: Number(e) });
2630
2630
  })
2631
2631
  }, null, 8, ["label", "model-value"])
2632
2632
  ], 512), [
2633
- [se, S.value]
2633
+ [se, T.value]
2634
2634
  ])
2635
2635
  ], 512), [
2636
- [se, w.model.showY ?? !0]
2636
+ [se, V.model.showY ?? !0]
2637
2637
  ])
2638
2638
  ]);
2639
2639
  };
@@ -2645,46 +2645,68 @@ const kl = { class: "grow" }, Cl = {
2645
2645
  isCircularWidget: { type: Boolean }
2646
2646
  },
2647
2647
  emits: ["update:model"],
2648
- setup(V, { emit: s }) {
2649
- const a = V, r = s, { t: n } = W(), f = [
2648
+ setup(F, { emit: r }) {
2649
+ const a = F, u = r, { t: n } = E(), f = [
2650
2650
  { label: n("report.section.datasource.position.top"), value: "top" },
2651
2651
  { label: n("report.section.datasource.position.bottom"), value: "bottom" },
2652
2652
  { label: n("report.section.datasource.position.left"), value: "left" },
2653
2653
  { label: n("report.section.datasource.position.right"), value: "right" }
2654
2654
  ], v = _({
2655
2655
  get: () => a.model.showLegend !== void 0 ? a.model.showLegend : a.isCircularWidget === !0,
2656
- set: (d) => {
2657
- r("update:model", { ...a.model, showLegend: d });
2656
+ set: (s) => {
2657
+ u("update:model", { ...a.model, showLegend: s });
2658
2658
  }
2659
2659
  }), x = _({
2660
2660
  get: () => a.model.usePointStyle ?? !0,
2661
- set: (d) => {
2662
- r("update:model", { ...a.model, usePointStyle: d });
2661
+ set: (s) => {
2662
+ u("update:model", { ...a.model, usePointStyle: s });
2663
+ }
2664
+ }), p = _({
2665
+ get: () => a.model.legendMaxHeight ?? 54,
2666
+ set: (s) => {
2667
+ u("update:model", { ...a.model, legendMaxHeight: s });
2668
+ }
2669
+ }), o = _({
2670
+ get: () => a.model.legendMaxWidth ?? 54,
2671
+ set: (s) => {
2672
+ u("update:model", { ...a.model, legendMaxWidth: s });
2663
2673
  }
2664
2674
  });
2665
- return (d, l) => {
2666
- const p = F("FmCheckbox"), b = F("FmSelect");
2675
+ return (s, g) => {
2676
+ const T = w("FmCheckbox"), D = w("FmSelect"), N = w("FmStepperField");
2667
2677
  return y(), O("div", ko, [
2668
- m(p, {
2678
+ m(T, {
2669
2679
  modelValue: v.value,
2670
- "onUpdate:modelValue": l[0] || (l[0] = (S) => v.value = S),
2680
+ "onUpdate:modelValue": g[0] || (g[0] = (V) => v.value = V),
2671
2681
  class: "fm-typo-en-body-lg-400",
2672
2682
  value: !1,
2673
2683
  label: t(n)("report.section.datasource.legend.showLegend")
2674
2684
  }, null, 8, ["modelValue", "label"]),
2675
2685
  ie(k("div", Co, [
2676
- m(b, {
2686
+ m(D, {
2677
2687
  label: t(n)("report.section.datasource.position.showPosition"),
2678
2688
  items: f,
2679
- "model-value": d.model.legendPosition ?? "top",
2680
- "onUpdate:modelValue": l[1] || (l[1] = (S) => r("update:model", { ...d.model, legendPosition: S }))
2689
+ "model-value": s.model.legendPosition ?? "top",
2690
+ "onUpdate:modelValue": g[1] || (g[1] = (V) => u("update:model", { ...s.model, legendPosition: V }))
2681
2691
  }, null, 8, ["label", "model-value"]),
2682
- m(p, {
2692
+ m(T, {
2683
2693
  modelValue: x.value,
2684
- "onUpdate:modelValue": l[2] || (l[2] = (S) => x.value = S),
2694
+ "onUpdate:modelValue": g[2] || (g[2] = (V) => x.value = V),
2685
2695
  label: t(n)("report.section.datasource.legend.usePointStyle"),
2686
2696
  value: !1
2687
- }, null, 8, ["modelValue", "label"])
2697
+ }, null, 8, ["modelValue", "label"]),
2698
+ s.model.legendPosition === "top" || s.model.legendPosition === "bottom" || !s.model.legendPosition ? (y(), S(N, {
2699
+ key: 0,
2700
+ label: t(n)("report.section.datasource.legend.maxHeight"),
2701
+ "model-value": p.value,
2702
+ "onUpdate:modelValue": g[3] || (g[3] = (V) => u("update:model", { ...s.model, legendMaxHeight: V }))
2703
+ }, null, 8, ["label", "model-value"])) : U("", !0),
2704
+ s.model.legendPosition === "left" || s.model.legendPosition === "right" ? (y(), S(N, {
2705
+ key: 1,
2706
+ label: t(n)("report.section.datasource.legend.maxWidth"),
2707
+ "model-value": o.value,
2708
+ "onUpdate:modelValue": g[4] || (g[4] = (V) => u("update:model", { ...s.model, legendMaxWidth: V }))
2709
+ }, null, 8, ["label", "model-value"])) : U("", !0)
2688
2710
  ], 512), [
2689
2711
  [se, v.value]
2690
2712
  ])
@@ -2697,33 +2719,33 @@ const kl = { class: "grow" }, Cl = {
2697
2719
  model: {}
2698
2720
  },
2699
2721
  emits: ["update:model"],
2700
- setup(V, { emit: s }) {
2701
- const a = V, r = s, { t: n } = W(), f = _({
2722
+ setup(F, { emit: r }) {
2723
+ const a = F, u = r, { t: n } = E(), f = _({
2702
2724
  get: () => a.model.chartHeight ?? null,
2703
2725
  set: (x) => {
2704
- r("update:model", { ...a.model, chartHeight: x ?? void 0 });
2726
+ u("update:model", { ...a.model, chartHeight: x ?? void 0 });
2705
2727
  }
2706
2728
  }), v = _({
2707
2729
  get: () => a.model.chartWidth ?? null,
2708
2730
  set: (x) => {
2709
- r("update:model", { ...a.model, chartWidth: x ?? void 0 });
2731
+ u("update:model", { ...a.model, chartWidth: x ?? void 0 });
2710
2732
  }
2711
2733
  });
2712
- return (x, d) => {
2713
- const l = F("FmStepperField");
2734
+ return (x, p) => {
2735
+ const o = w("FmStepperField");
2714
2736
  return y(), O("div", So, [
2715
- m(l, {
2737
+ m(o, {
2716
2738
  modelValue: f.value,
2717
- "onUpdate:modelValue": d[0] || (d[0] = (p) => f.value = p),
2739
+ "onUpdate:modelValue": p[0] || (p[0] = (s) => f.value = s),
2718
2740
  type: "number",
2719
2741
  label: t(n)("report.section.datasource.chartHeight"),
2720
2742
  suffix: "px",
2721
2743
  min: 1,
2722
2744
  placeholder: "Auto"
2723
2745
  }, null, 8, ["modelValue", "label"]),
2724
- m(l, {
2746
+ m(o, {
2725
2747
  modelValue: v.value,
2726
- "onUpdate:modelValue": d[1] || (d[1] = (p) => v.value = p),
2748
+ "onUpdate:modelValue": p[1] || (p[1] = (s) => v.value = s),
2727
2749
  type: "number",
2728
2750
  label: t(n)("report.section.datasource.chartWidth"),
2729
2751
  suffix: "px",
@@ -2735,7 +2757,7 @@ const kl = { class: "grow" }, Cl = {
2735
2757
  }
2736
2758
  }), Uo = { class: "flex flex-col gap-16" }, Do = { class: "flex flex-col gap-8" }, $o = { class: "flex flex-col gap-8" }, No = /* @__PURE__ */ P({
2737
2759
  __name: "StyleDatasource",
2738
- props: /* @__PURE__ */ H({
2760
+ props: /* @__PURE__ */ Y({
2739
2761
  label: {
2740
2762
  type: String,
2741
2763
  default: "Label"
@@ -2762,53 +2784,53 @@ const kl = { class: "grow" }, Cl = {
2762
2784
  modelValue: { required: !0 },
2763
2785
  modelModifiers: {}
2764
2786
  }),
2765
- emits: /* @__PURE__ */ H(["click-close"], ["update:modelValue"]),
2766
- setup(V, { emit: s }) {
2767
- const a = ee(V, "modelValue");
2787
+ emits: /* @__PURE__ */ Y(["click-close"], ["update:modelValue"]),
2788
+ setup(F, { emit: r }) {
2789
+ const a = ee(F, "modelValue");
2768
2790
  ne(
2769
2791
  [() => a.value.dimensions, () => a.value.metrics],
2770
2792
  () => {
2771
- const { rowIds: d, columnIds: l } = Fe(a.value);
2772
- a.value.rowIds = d, a.value.columnIds = l;
2793
+ const { rowIds: p, columnIds: o } = Fe(a.value);
2794
+ a.value.rowIds = p, a.value.columnIds = o;
2773
2795
  },
2774
2796
  { deep: !0 }
2775
2797
  );
2776
- const r = V, n = s, { t: f, te: v } = W(), x = _(() => r.config.type === j.Circular);
2777
- return (d, l) => {
2778
- const p = F("FmButton");
2798
+ const u = F, n = r, { t: f, te: v } = E(), x = _(() => u.config.type === j.Circular);
2799
+ return (p, o) => {
2800
+ const s = w("FmButton");
2779
2801
  return y(), O(Q, null, [
2780
- l[6] || (l[6] = k("div", { class: "grow" }, null, -1)),
2781
- r.closeable ? (y(), T(p, {
2802
+ o[6] || (o[6] = k("div", { class: "grow" }, null, -1)),
2803
+ u.closeable ? (y(), S(s, {
2782
2804
  key: 0,
2783
2805
  icon: "close",
2784
2806
  variant: "tertiary",
2785
2807
  size: "md",
2786
- onClick: l[0] || (l[0] = te((b) => n("click-close"), ["stop"]))
2808
+ onClick: o[0] || (o[0] = te((g) => n("click-close"), ["stop"]))
2787
2809
  })) : U("", !0),
2788
2810
  k("div", Uo, [
2789
- r.config.hasChart ? (y(), T(To, {
2811
+ u.config.hasChart ? (y(), S(To, {
2790
2812
  key: 0,
2791
2813
  model: a.value,
2792
- "onUpdate:model": l[1] || (l[1] = (b) => a.value = b)
2814
+ "onUpdate:model": o[1] || (o[1] = (g) => a.value = g)
2793
2815
  }, null, 8, ["model"])) : U("", !0),
2794
2816
  k("div", Do, [
2795
- l[5] || (l[5] = k("p", { class: "fm-typo-en-body-lg-600" }, "Configuration", -1)),
2817
+ o[5] || (o[5] = k("p", { class: "fm-typo-en-body-lg-600" }, "Configuration", -1)),
2796
2818
  k("div", $o, [
2797
- r.config.hasLabel ? (y(), T(fo, {
2819
+ u.config.hasLabel ? (y(), S(fo, {
2798
2820
  key: 0,
2799
2821
  model: a.value,
2800
- "onUpdate:model": l[2] || (l[2] = (b) => a.value = b)
2822
+ "onUpdate:model": o[2] || (o[2] = (g) => a.value = g)
2801
2823
  }, null, 8, ["model"])) : U("", !0),
2802
- r.config.hasLegend ? (y(), T(_o, {
2824
+ u.config.hasLegend ? (y(), S(_o, {
2803
2825
  key: 1,
2804
2826
  model: a.value,
2805
2827
  "is-circular-widget": x.value,
2806
- "onUpdate:model": l[3] || (l[3] = (b) => a.value = b)
2828
+ "onUpdate:model": o[3] || (o[3] = (g) => a.value = g)
2807
2829
  }, null, 8, ["model", "is-circular-widget"])) : U("", !0),
2808
- r.config.hasXy ? (y(), T(xo, {
2830
+ u.config.hasXy ? (y(), S(xo, {
2809
2831
  key: 2,
2810
2832
  model: a.value,
2811
- "onUpdate:model": l[4] || (l[4] = (b) => a.value = b)
2833
+ "onUpdate:model": o[4] || (o[4] = (g) => a.value = g)
2812
2834
  }, null, 8, ["model"])) : U("", !0)
2813
2835
  ])
2814
2836
  ])
@@ -2825,22 +2847,22 @@ const kl = { class: "grow" }, Cl = {
2825
2847
  modelModifiers: {}
2826
2848
  },
2827
2849
  emits: ["update:modelValue"],
2828
- setup(V) {
2829
- const { t: s } = W(), a = ee(V, "modelValue"), r = _(
2850
+ setup(F) {
2851
+ const { t: r } = E(), a = ee(F, "modelValue"), u = _(
2830
2852
  () => xe.find((f) => f.type === a.value.widget.type)
2831
- ), n = M(!1);
2853
+ ), n = z(!1);
2832
2854
  return (f, v) => {
2833
- const x = F("FmCircularProgress"), d = F("FmButton"), l = F("FmSideSheet");
2834
- return y(), T(l, {
2855
+ const x = w("FmCircularProgress"), p = w("FmButton"), o = w("FmSideSheet");
2856
+ return y(), S(o, {
2835
2857
  modelValue: n.value,
2836
- "onUpdate:modelValue": v[2] || (v[2] = (p) => n.value = p),
2858
+ "onUpdate:modelValue": v[2] || (v[2] = (s) => n.value = s),
2837
2859
  "close-button": !1,
2838
2860
  "no-overlay": "",
2839
2861
  "dismiss-away": !0
2840
2862
  }, {
2841
- "side-sheet-button": D(() => [
2863
+ "side-sheet-button": $(() => [
2842
2864
  k("div", Oo, [
2843
- m(d, {
2865
+ m(p, {
2844
2866
  label: "Style setting",
2845
2867
  icon: "edit",
2846
2868
  variant: "secondary",
@@ -2848,35 +2870,35 @@ const kl = { class: "grow" }, Cl = {
2848
2870
  })
2849
2871
  ])
2850
2872
  ]),
2851
- "side-sheet-header": D(() => [
2873
+ "side-sheet-header": $(() => [
2852
2874
  k("div", Io, [
2853
- m(d, {
2875
+ m(p, {
2854
2876
  "prepend-icon": "arrow_back",
2855
2877
  variant: "tertiary",
2856
2878
  class: "fm-icon--rounded fm-icon--md text-fm-color-black",
2857
- onClick: v[0] || (v[0] = (p) => n.value = !1)
2879
+ onClick: v[0] || (v[0] = (s) => n.value = !1)
2858
2880
  }),
2859
2881
  v[3] || (v[3] = k("p", { class: "fm-typo-en-title-sm-600" }, "Report style settings", -1))
2860
2882
  ])
2861
2883
  ]),
2862
- default: D(() => [
2863
- a.value ? U("", !0) : (y(), T(x, { key: 0 })),
2884
+ default: $(() => [
2885
+ a.value ? U("", !0) : (y(), S(x, { key: 0 })),
2864
2886
  m(No, {
2865
2887
  modelValue: a.value.widget.config,
2866
- "onUpdate:modelValue": v[1] || (v[1] = (p) => a.value.widget.config = p),
2867
- config: r.value
2888
+ "onUpdate:modelValue": v[1] || (v[1] = (s) => a.value.widget.config = s),
2889
+ config: u.value
2868
2890
  }, null, 8, ["modelValue", "config"])
2869
2891
  ]),
2870
2892
  _: 1
2871
2893
  }, 8, ["modelValue"]);
2872
2894
  };
2873
2895
  }
2874
- }), Lo = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, jo = { class: "flex bg-fm-color-neutral-white w-[88px]" }, Ro = { class: "w-full overflow-y-auto" }, zo = {
2896
+ }), Lo = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, jo = { class: "flex bg-fm-color-neutral-white w-[88px]" }, Mo = { class: "w-full overflow-y-auto" }, Ro = {
2875
2897
  class: "grid grid-cols-12 w-full p-24",
2876
2898
  style: { backgroundColor: "#F6F8FC" }
2877
- }, Mo = /* @__PURE__ */ P({
2899
+ }, zo = /* @__PURE__ */ P({
2878
2900
  __name: "TileEditorDesktop",
2879
- props: /* @__PURE__ */ H({
2901
+ props: /* @__PURE__ */ Y({
2880
2902
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
2881
2903
  index: { type: Number, required: !0, default: 0 }
2882
2904
  }, {
@@ -2885,75 +2907,75 @@ const kl = { class: "grow" }, Cl = {
2885
2907
  },
2886
2908
  modelModifiers: {}
2887
2909
  }),
2888
- emits: /* @__PURE__ */ H(["hideConfiguration"], ["update:modelValue"]),
2889
- setup(V, { emit: s }) {
2890
- const a = ee(V, "modelValue"), r = V, n = _(
2891
- () => xe.find((d) => {
2892
- var l;
2893
- return d.type === ((l = a.value) == null ? void 0 : l.widget.type);
2910
+ emits: /* @__PURE__ */ Y(["hideConfiguration"], ["update:modelValue"]),
2911
+ setup(F, { emit: r }) {
2912
+ const a = ee(F, "modelValue"), u = F, n = _(
2913
+ () => xe.find((p) => {
2914
+ var o;
2915
+ return p.type === ((o = a.value) == null ? void 0 : o.widget.type);
2894
2916
  })
2895
- ), f = s, v = [
2917
+ ), f = r, v = [
2896
2918
  j.BarChart,
2897
2919
  j.StackBarChart,
2898
2920
  j.LineChart,
2899
2921
  j.StackLineChart,
2900
2922
  j.Circular
2901
2923
  ], x = _(() => v.includes(a.value.widget.type));
2902
- return (d, l) => {
2903
- const p = F("FmCircularProgress"), b = F("FmButton");
2924
+ return (p, o) => {
2925
+ const s = w("FmCircularProgress"), g = w("FmButton");
2904
2926
  return y(), O("div", null, [
2905
2927
  a.value ? (y(), O(Q, { key: 1 }, [
2906
2928
  m(Ze, {
2907
- "model-value": !V.hideConfiguration
2929
+ "model-value": !F.hideConfiguration
2908
2930
  }, {
2909
- right: D(() => [
2931
+ right: $(() => [
2910
2932
  k("div", Lo, [
2911
2933
  m(qe, {
2912
2934
  modelValue: a.value,
2913
- "onUpdate:modelValue": l[0] || (l[0] = (S) => a.value = S),
2935
+ "onUpdate:modelValue": o[0] || (o[0] = (T) => a.value = T),
2914
2936
  config: n.value,
2915
- "hide-configuration": V.hideConfiguration,
2916
- onHideConfiguration: l[1] || (l[1] = (S) => {
2917
- f("hideConfiguration", S);
2937
+ "hide-configuration": F.hideConfiguration,
2938
+ onHideConfiguration: o[1] || (o[1] = (T) => {
2939
+ f("hideConfiguration", T);
2918
2940
  })
2919
2941
  }, null, 8, ["modelValue", "config", "hide-configuration"])
2920
2942
  ])
2921
2943
  ]),
2922
- left: D(() => [
2944
+ left: $(() => [
2923
2945
  k("div", jo, [
2924
- m(b, {
2946
+ m(g, {
2925
2947
  variant: "secondary",
2926
2948
  icon: "keyboard_double_arrow_right",
2927
2949
  "border-color": t(be).ColorPrimary,
2928
2950
  "text-color": t(be).ColorPrimary,
2929
2951
  class: "m-24 my-16",
2930
2952
  size: "md",
2931
- onClick: l[2] || (l[2] = (S) => f("hideConfiguration", !r.hideConfiguration))
2953
+ onClick: o[2] || (o[2] = (T) => f("hideConfiguration", !u.hideConfiguration))
2932
2954
  }, null, 8, ["border-color", "text-color"])
2933
2955
  ])
2934
2956
  ]),
2935
2957
  _: 1
2936
2958
  }, 8, ["model-value"]),
2937
- k("div", Ro, [
2938
- k("div", zo, [
2939
- a.value ? (y(), T(Pe, {
2959
+ k("div", Mo, [
2960
+ k("div", Ro, [
2961
+ a.value ? (y(), S(Pe, {
2940
2962
  key: 0,
2941
2963
  "model-value": a.value,
2942
- index: r.index,
2964
+ index: u.index,
2943
2965
  "hide-export": !0
2944
- }, null, 8, ["model-value", "index"])) : (y(), T(Ae, { key: 1 }))
2966
+ }, null, 8, ["model-value", "index"])) : (y(), S(Ae, { key: 1 }))
2945
2967
  ])
2946
2968
  ]),
2947
- x.value ? (y(), T(Bo, {
2969
+ x.value ? (y(), S(Bo, {
2948
2970
  key: 0,
2949
2971
  modelValue: a.value,
2950
- "onUpdate:modelValue": l[3] || (l[3] = (S) => a.value = S),
2951
- "hide-configuration": V.hideConfiguration,
2952
- onHideConfiguration: l[4] || (l[4] = (S) => {
2953
- f("hideConfiguration", S);
2972
+ "onUpdate:modelValue": o[3] || (o[3] = (T) => a.value = T),
2973
+ "hide-configuration": F.hideConfiguration,
2974
+ onHideConfiguration: o[4] || (o[4] = (T) => {
2975
+ f("hideConfiguration", T);
2954
2976
  })
2955
2977
  }, null, 8, ["modelValue", "hide-configuration"])) : U("", !0)
2956
- ], 64)) : (y(), T(p, { key: 0 }))
2978
+ ], 64)) : (y(), S(s, { key: 0 }))
2957
2979
  ]);
2958
2980
  };
2959
2981
  }
@@ -2962,7 +2984,7 @@ const kl = { class: "grow" }, Cl = {
2962
2984
  class: "flex w-full justify-center items-center"
2963
2985
  }, Ao = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, qo = /* @__PURE__ */ P({
2964
2986
  __name: "TileEditorMobile",
2965
- props: /* @__PURE__ */ H({
2987
+ props: /* @__PURE__ */ Y({
2966
2988
  hideConfiguration: { type: Boolean, required: !0, default: !1 },
2967
2989
  index: { type: Number, required: !0, default: 0 }
2968
2990
  }, {
@@ -2971,37 +2993,37 @@ const kl = { class: "grow" }, Cl = {
2971
2993
  },
2972
2994
  modelModifiers: {}
2973
2995
  }),
2974
- emits: /* @__PURE__ */ H(["hideConfiguration"], ["update:modelValue"]),
2975
- setup(V, { emit: s }) {
2976
- const a = ee(V, "modelValue"), r = V, n = _(
2996
+ emits: /* @__PURE__ */ Y(["hideConfiguration"], ["update:modelValue"]),
2997
+ setup(F, { emit: r }) {
2998
+ const a = ee(F, "modelValue"), u = F, n = _(
2977
2999
  () => xe.find((v) => {
2978
3000
  var x;
2979
3001
  return v.type === ((x = a.value) == null ? void 0 : x.widget.type);
2980
3002
  })
2981
- ), f = s;
3003
+ ), f = r;
2982
3004
  return (v, x) => {
2983
- const d = F("FmCircularProgress");
3005
+ const p = w("FmCircularProgress");
2984
3006
  return y(), O("div", null, [
2985
3007
  a.value ? (y(), O(Q, { key: 1 }, [
2986
3008
  k("div", Ao, [
2987
- a.value ? (y(), T(Pe, {
3009
+ a.value ? (y(), S(Pe, {
2988
3010
  key: 0,
2989
3011
  "model-value": a.value,
2990
- index: r.index,
3012
+ index: u.index,
2991
3013
  "hide-export": !0
2992
- }, null, 8, ["model-value", "index"])) : (y(), T(Ae, { key: 1 }))
3014
+ }, null, 8, ["model-value", "index"])) : (y(), S(Ae, { key: 1 }))
2993
3015
  ]),
2994
3016
  m(qe, {
2995
3017
  modelValue: a.value,
2996
- "onUpdate:modelValue": x[0] || (x[0] = (l) => a.value = l),
3018
+ "onUpdate:modelValue": x[0] || (x[0] = (o) => a.value = o),
2997
3019
  config: n.value,
2998
- "hide-configuration": V.hideConfiguration,
2999
- onHideConfiguration: x[1] || (x[1] = (l) => {
3000
- f("hideConfiguration", l);
3020
+ "hide-configuration": F.hideConfiguration,
3021
+ onHideConfiguration: x[1] || (x[1] = (o) => {
3022
+ f("hideConfiguration", o);
3001
3023
  })
3002
3024
  }, null, 8, ["modelValue", "config", "hide-configuration"])
3003
3025
  ], 64)) : (y(), O("div", Po, [
3004
- m(d)
3026
+ m(p)
3005
3027
  ]))
3006
3028
  ]);
3007
3029
  };
@@ -3011,63 +3033,63 @@ const kl = { class: "grow" }, Cl = {
3011
3033
  class: "fm-typo-en-title-md-600"
3012
3034
  }, nt = /* @__PURE__ */ P({
3013
3035
  __name: "TileEditor",
3014
- setup(V) {
3015
- const { rowHeight: s, colWidths: a } = me(he()), r = We(), n = Je(), f = ll(), { currentSelectWidgetType: v, editingReport: x, editingTile: d, editingTileIndex: l } = me(f), { breakpoints: p } = Me(), { promptMessage: b } = ze(), { t: S } = W(), $ = M(!1);
3036
+ setup(F) {
3037
+ const { rowHeight: r, colWidths: a } = me(he()), u = Ee(), n = Je(), f = ll(), { currentSelectWidgetType: v, editingReport: x, editingTile: p, editingTileIndex: o } = me(f), { breakpoints: s } = ze(), { promptMessage: g } = Re(), { t: T } = E(), D = z(!1);
3016
3038
  function N() {
3017
- v.value = void 0, d.value = void 0, l.value = -1, n.back();
3039
+ v.value = void 0, p.value = void 0, o.value = -1, n.back();
3018
3040
  }
3019
- async function w() {
3020
- var o;
3041
+ async function V() {
3042
+ var l;
3021
3043
  if (!x.value) return;
3022
- await b({
3023
- title: S("report.tile.save.title"),
3024
- message: S("report.tile.save.confirm", { title: (o = d.value) == null ? void 0 : o.widget.title })
3025
- }) && d.value && (d.value.widget.config = {
3026
- ...d.value.widget.config,
3027
- rowHeight: s.value,
3044
+ await g({
3045
+ title: T("report.tile.save.title"),
3046
+ message: T("report.tile.save.confirm", { title: (l = p.value) == null ? void 0 : l.widget.title })
3047
+ }) && p.value && (p.value.widget.config = {
3048
+ ...p.value.widget.config,
3049
+ rowHeight: r.value,
3028
3050
  colWidths: [...a.value]
3029
- }, l.value === -1 ? x.value.tiles.push(d.value) : x.value.tiles[l.value] = d.value, N());
3051
+ }, o.value === -1 ? x.value.tiles.push(p.value) : x.value.tiles[o.value] = p.value, N());
3030
3052
  }
3031
3053
  async function h() {
3032
- var o;
3054
+ var l;
3033
3055
  if (!x.value) return;
3034
- await b({
3035
- title: S("report.tile.cancel.title"),
3036
- message: S("report.tile.cancel.confirm", { title: (o = d.value) == null ? void 0 : o.widget.title })
3056
+ await g({
3057
+ title: T("report.tile.cancel.title"),
3058
+ message: T("report.tile.cancel.confirm", { title: (l = p.value) == null ? void 0 : l.widget.title })
3037
3059
  }) && N();
3038
3060
  }
3039
3061
  return Ie(() => {
3040
3062
  x.value || n.push({ name: "reports" });
3041
- }), (u, o) => {
3042
- const i = F("FmPageHead");
3043
- return y(), T(el, null, {
3044
- default: D(() => [
3063
+ }), (d, l) => {
3064
+ const i = w("FmPageHead");
3065
+ return y(), S(el, null, {
3066
+ default: $(() => [
3045
3067
  m(i, {
3046
3068
  actions: [
3047
3069
  { label: "Cancel", value: "cancel", isPrimary: !1 },
3048
3070
  { label: "Save", value: "save", isPrimary: !0 }
3049
3071
  ],
3050
- "onClick:action": o[0] || (o[0] = (e) => {
3051
- e === "cancel" && h(), e === "save" && w();
3072
+ "onClick:action": l[0] || (l[0] = (e) => {
3073
+ e === "cancel" && h(), e === "save" && V();
3052
3074
  })
3053
3075
  }, {
3054
- title: D(() => {
3076
+ title: $(() => {
3055
3077
  var e;
3056
3078
  return [
3057
- t(p).lg || t(p).md ? (y(), O("p", Xo, B(t(Ue)(((e = t(d)) == null ? void 0 : e.widget.type) ?? "New report")), 1)) : U("", !0)
3079
+ t(s).lg || t(s).md ? (y(), O("p", Xo, B(t(Ue)(((e = t(p)) == null ? void 0 : e.widget.type) ?? "New report")), 1)) : U("", !0)
3058
3080
  ];
3059
3081
  }),
3060
3082
  _: 1
3061
3083
  }),
3062
- t(d) ? (y(), T(Le(t(p).lg || t(p).md ? Mo : qo), {
3084
+ t(p) ? (y(), S(Le(t(s).lg || t(s).md ? zo : qo), {
3063
3085
  key: 0,
3064
- modelValue: t(d),
3065
- "onUpdate:modelValue": o[1] || (o[1] = (e) => He(d) ? d.value = e : null),
3066
- class: je(`${t(p).lg || t(p).md ? "flex" : ""} w-full`),
3067
- style: Ee({ height: `calc( 100% - ${t(p).lg || t(p).md ? 72 : 64}px)` }),
3068
- "hide-configuration": $.value,
3069
- index: Number(t(r).params.tileIndex),
3070
- onHideConfiguration: o[2] || (o[2] = (e) => $.value = e)
3086
+ modelValue: t(p),
3087
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => Ye(p) ? p.value = e : null),
3088
+ class: je(`${t(s).lg || t(s).md ? "flex" : ""} w-full`),
3089
+ style: We({ height: `calc( 100% - ${t(s).lg || t(s).md ? 72 : 64}px)` }),
3090
+ "hide-configuration": D.value,
3091
+ index: Number(t(u).params.tileIndex),
3092
+ onHideConfiguration: l[2] || (l[2] = (e) => D.value = e)
3071
3093
  }, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : U("", !0)
3072
3094
  ]),
3073
3095
  _: 1