@feedmepos/mf-report 5.26.9 → 5.27.0-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 (27) hide show
  1. package/dist/{App-B9jsVITx.js → App-7sxIC6-C.js} +60 -60
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D_dvvhqx.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CP6RAaXe.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BO7p8Mq_.js → Default.vue_vue_type_script_setup_true_lang-e3pzzQh_.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CYk44w69.js → DynamicWidget.vue_vue_type_script_setup_true_lang-HQ4x1yGJ.js} +1663 -1642
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DXusNtLu.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BQ196li6.js} +1448 -1359
  6. package/dist/{InsightView-DHWIOLCi.js → InsightView-CBP_EW0d.js} +4 -4
  7. package/dist/{Integration-K4zEQ9xo.js → Integration-CBCo0EOJ.js} +3 -3
  8. package/dist/{Integrations-KyNsy5yd.js → Integrations-DkQWZeZP.js} +2 -2
  9. package/dist/{Layout-BGGSx2Bv.js → Layout-D3zJH3z1.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-gFC74Kpl.js → MenuTab.vue_vue_type_script_setup_true_lang-2wArlO_a.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DGY2NPZT.js → NavigationTab.vue_vue_type_script_setup_true_lang-CL_DD9sP.js} +3 -3
  12. package/dist/OverviewView-CCJqYug0.js +62 -0
  13. package/dist/{Report-B2ypN6sG.js → Report-B4OdCQza.js} +3 -3
  14. package/dist/ReportEditor-C-zJNu8G.js +1812 -0
  15. package/dist/{ReportView-X8UyQe1R.js → ReportView-CxhzRur5.js} +93 -93
  16. package/dist/{Setting-BIYwCHo7.js → Setting-BaLkNfN8.js} +6 -6
  17. package/dist/{Template-B7ywcdv7.js → Template-wkBEZ12T.js} +3 -3
  18. package/dist/{TileEditor-D0mCJNfG.js → TileEditor-BUTsC_ct.js} +1620 -1600
  19. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-BOkxFIAd.js +143 -0
  20. package/dist/{TransitionFade-BGQPx3Xb.js → TransitionFade-C7Czon0d.js} +164 -162
  21. package/dist/{app-T2BFgO-M.js → app-C3U4kkgS.js} +81 -25
  22. package/dist/app.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useRestaurantPermission-DV8KEXT1.js → useRestaurantPermission-CDfKw3iJ.js} +1 -1
  25. package/package.json +1 -1
  26. package/dist/OverviewView-pLaPV8q1.js +0 -62
  27. package/dist/ReportEditor-BSIMLrn7.js +0 -1594
@@ -1,13 +1,13 @@
1
- import { defineComponent as Xe, onBeforeMount as no, onBeforeUnmount as oo, resolveComponent as j, createElementBlock as k, openBlock as D, normalizeStyle as Zt, unref as V, renderSlot as ht, createVNode as G, createElementVNode as A, toDisplayString as Q, TransitionGroup as ro, nextTick as an, h as dn, mergeModels as Mt, useModel as ot, computed as R, Fragment as Ae, renderList as Ct, createBlock as _e, normalizeClass as St, withCtx as pe, Transition as Jt, createCommentVNode as U, ref as oe, withDirectives as ao, withKeys as io, withModifiers as Rt, vModelText as lo, watch as qe, createTextVNode as so } from "vue";
2
- import { u as Pt, a as uo } from "./vue-i18n-DVWuTfed.js";
1
+ import { defineComponent as Xe, onBeforeMount as no, onBeforeUnmount as oo, resolveComponent as j, createElementBlock as k, openBlock as D, normalizeStyle as Zt, unref as V, renderSlot as ht, createVNode as G, createElementVNode as A, toDisplayString as Q, TransitionGroup as ro, nextTick as an, h as dn, mergeModels as Pt, useModel as ot, computed as R, Fragment as Ae, renderList as Ct, createBlock as _e, normalizeClass as St, withCtx as pe, Transition as Jt, createCommentVNode as U, ref as Z, withDirectives as ao, withKeys as io, withModifiers as Rt, vModelText as lo, watch as qe, createTextVNode as so } from "vue";
2
+ import { u as Mt, a as uo } from "./vue-i18n-DVWuTfed.js";
3
3
  import { useCoreStore as co } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as In } from "pinia";
5
5
  import { useRoute as fo } from "vue-router";
6
- import { W as z, Q as po, I as it, h as On, i as Cn, c as je, g as mo, f as ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DXusNtLu.js";
7
- import { p as go, d as Sn, a as Rn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_dvvhqx.js";
6
+ import { W as z, Q as po, I as it, t as On, v as Cn, c as je, g as mo, q as ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BQ196li6.js";
7
+ import { p as go, d as Sn, a as Rn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CP6RAaXe.js";
8
8
  import { b as ln, a as fn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
9
- import { R as vo } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CYk44w69.js";
10
- import { u as bo, F as yo, r as Eo, d as $t } from "./app-T2BFgO-M.js";
9
+ import { R as vo } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-HQ4x1yGJ.js";
10
+ import { u as bo, F as yo, r as Eo, d as $t } from "./app-C3U4kkgS.js";
11
11
  import { r as pn } from "./i18n-CI_sQ5d_.js";
12
12
  import { useSnackbar as _o } from "@feedmepos/ui-library";
13
13
  const To = {
@@ -16,7 +16,7 @@ const To = {
16
16
  }, wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ba = /* @__PURE__ */ Xe({
17
17
  __name: "FullScreen",
18
18
  setup(t) {
19
- const { t: e } = Pt(), n = fo(), { isLoading: o } = In(uo()), r = co();
19
+ const { t: e } = Mt(), n = fo(), { isLoading: o } = In(uo()), r = co();
20
20
  return no(() => {
21
21
  r.hideSidebarToggle(!0);
22
22
  }), oo(() => {
@@ -112,15 +112,15 @@ function ke(t) {
112
112
  if (typeof window < "u" && window.navigator)
113
113
  return !!/* @__PURE__ */ navigator.userAgent.match(t);
114
114
  }
115
- var Me = ke(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), gt = ke(/Edge/i), hn = ke(/firefox/i), ct = ke(/safari/i) && !ke(/chrome/i) && !ke(/android/i), Fn = ke(/iP(ad|od|hone)/i), Co = ke(/chrome/i) && ke(/android/i), Nn = {
115
+ var Pe = ke(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), gt = ke(/Edge/i), hn = ke(/firefox/i), ct = ke(/safari/i) && !ke(/chrome/i) && !ke(/android/i), Fn = ke(/iP(ad|od|hone)/i), Co = ke(/chrome/i) && ke(/android/i), Nn = {
116
116
  capture: !1,
117
117
  passive: !1
118
118
  };
119
119
  function S(t, e, n) {
120
- t.addEventListener(e, n, !Me && Nn);
120
+ t.addEventListener(e, n, !Pe && Nn);
121
121
  }
122
122
  function C(t, e, n) {
123
- t.removeEventListener(e, n, !Me && Nn);
123
+ t.removeEventListener(e, n, !Pe && Nn);
124
124
  }
125
125
  function Ft(t, e) {
126
126
  if (e) {
@@ -196,10 +196,10 @@ function Oe() {
196
196
  var t = document.scrollingElement;
197
197
  return t || document.documentElement;
198
198
  }
199
- function ee(t, e, n, o, r) {
199
+ function te(t, e, n, o, r) {
200
200
  if (!(!t.getBoundingClientRect && t !== window)) {
201
201
  var a, i, c, u, s, f, l;
202
- if (t !== window && t.parentNode && t !== Oe() ? (a = t.getBoundingClientRect(), i = a.top, c = a.left, u = a.bottom, s = a.right, f = a.height, l = a.width) : (i = 0, c = 0, u = window.innerHeight, s = window.innerWidth, f = window.innerHeight, l = window.innerWidth), (e || n) && t !== window && (r = r || t.parentNode, !Me))
202
+ if (t !== window && t.parentNode && t !== Oe() ? (a = t.getBoundingClientRect(), i = a.top, c = a.left, u = a.bottom, s = a.right, f = a.height, l = a.width) : (i = 0, c = 0, u = window.innerHeight, s = window.innerWidth, f = window.innerHeight, l = window.innerWidth), (e || n) && t !== window && (r = r || t.parentNode, !Pe))
203
203
  do
204
204
  if (r && r.getBoundingClientRect && (_(r, "transform") !== "none" || n && _(r, "position") !== "static")) {
205
205
  var E = r.getBoundingClientRect();
@@ -222,8 +222,8 @@ function ee(t, e, n, o, r) {
222
222
  }
223
223
  }
224
224
  function vn(t, e, n) {
225
- for (var o = He(t, !0), r = ee(t)[e]; o; ) {
226
- var a = ee(o)[n], i = void 0;
225
+ for (var o = He(t, !0), r = te(t)[e]; o; ) {
226
+ var a = te(o)[n], i = void 0;
227
227
  if (i = r >= a, !i) return o;
228
228
  if (o === Oe()) break;
229
229
  o = He(o, !1);
@@ -312,7 +312,7 @@ function No() {
312
312
  function Ln(t, e, n) {
313
313
  t.scrollLeft += e, t.scrollTop += n;
314
314
  }
315
- function Mn(t) {
315
+ function Pn(t) {
316
316
  var e = window.Polymer, n = window.jQuery || window.Zepto;
317
317
  return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
318
318
  }
@@ -327,7 +327,7 @@ function Ao() {
327
327
  if (!(_(r, "display") === "none" || r === T.ghost)) {
328
328
  t.push({
329
329
  target: r,
330
- rect: ee(r)
330
+ rect: te(r)
331
331
  });
332
332
  var a = Ce({}, t[t.length - 1].rect);
333
333
  if (r.thisAnimationDuration) {
@@ -355,7 +355,7 @@ function Ao() {
355
355
  }
356
356
  var a = !1, i = 0;
357
357
  t.forEach(function(c) {
358
- var u = 0, s = c.target, f = s.fromRect, l = ee(s), E = s.prevFromRect, y = s.prevToRect, b = c.rect, g = tt(s, !0);
358
+ var u = 0, s = c.target, f = s.fromRect, l = te(s), E = s.prevFromRect, y = s.prevToRect, b = c.rect, g = tt(s, !0);
359
359
  g && (l.top -= g.f, l.left -= g.e), s.toRect = l, s.thisAnimationDuration && Bt(E, l) && !Bt(f, l) && // Make sure animatingRect is on line between toRect & fromRect
360
360
  (b.top - l.top) / (b.left - l.left) === (f.top - l.top) / (f.left - l.left) && (u = Lo(b, E, y, r.options)), Bt(l, f) || (s.prevFromRect = f, s.prevToRect = l, u || (u = r.options.animation), r.animate(s, b, l, u)), u && (a = !0, i = Math.max(i, u), clearTimeout(s.animationResetTimer), s.animationResetTimer = setTimeout(function() {
361
361
  s.animationTime = 0, s.prevFromRect = null, s.fromRect = null, s.prevToRect = null, s.thisAnimationDuration = null;
@@ -433,11 +433,11 @@ var Qe = [], Wt = {
433
433
  }), r;
434
434
  }
435
435
  };
436
- function Mo(t) {
436
+ function Po(t) {
437
437
  var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, a = t.cloneEl, i = t.toEl, c = t.fromEl, u = t.oldIndex, s = t.newIndex, f = t.oldDraggableIndex, l = t.newDraggableIndex, E = t.originalEvent, y = t.putSortable, b = t.extraEventProperties;
438
438
  if (e = e || n && n[ye], !!e) {
439
439
  var g, L = e.options, H = "on" + o.charAt(0).toUpperCase() + o.substr(1);
440
- window.CustomEvent && !Me && !gt ? g = new CustomEvent(o, {
440
+ window.CustomEvent && !Pe && !gt ? g = new CustomEvent(o, {
441
441
  bubbles: !0,
442
442
  cancelable: !0
443
443
  }) : (g = document.createEvent("Event"), g.initEvent(o, !0, !0)), g.to = i || n, g.from = c || n, g.item = r || n, g.clone = a, g.oldIndex = u, g.newIndex = s, g.oldDraggableIndex = f, g.newDraggableIndex = l, g.originalEvent = E, g.pullMode = y ? y.lastPutMode : void 0;
@@ -447,13 +447,13 @@ function Mo(t) {
447
447
  n && n.dispatchEvent(g), L[H] && L[H].call(e, g);
448
448
  }
449
449
  }
450
- var Po = ["evt"], fe = function(e, n) {
451
- var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, a = Io(o, Po);
450
+ var Mo = ["evt"], fe = function(e, n) {
451
+ var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, a = Io(o, Mo);
452
452
  vt.pluginEvent.bind(T)(e, n, Ce({
453
453
  dragEl: m,
454
454
  parentEl: W,
455
455
  ghostEl: w,
456
- rootEl: P,
456
+ rootEl: M,
457
457
  nextEl: Ke,
458
458
  lastDownEl: xt,
459
459
  cloneEl: Y,
@@ -484,26 +484,26 @@ var Po = ["evt"], fe = function(e, n) {
484
484
  }, a));
485
485
  };
486
486
  function ue(t) {
487
- Mo(Ce({
487
+ Po(Ce({
488
488
  putSortable: ie,
489
489
  cloneEl: Y,
490
490
  targetEl: m,
491
- rootEl: P,
491
+ rootEl: M,
492
492
  oldIndex: et,
493
493
  oldDraggableIndex: ft,
494
494
  newIndex: be,
495
495
  newDraggableIndex: We
496
496
  }, t));
497
497
  }
498
- var m, W, w, P, Ke, xt, Y, Ye, et, be, ft, We, yt, ie, Je = !1, Nt = !1, At = [], Ge, De, Yt, Ht, yn, En, lt, Ze, pt, mt = !1, Et = !1, Dt, se, Xt = [], en = !1, kt = [], Vt = typeof document < "u", _t = Fn, _n = gt || Me ? "cssFloat" : "float", Vo = Vt && !Co && !Fn && "draggable" in document.createElement("div"), Pn = function() {
498
+ var m, W, w, M, Ke, xt, Y, Ye, et, be, ft, We, yt, ie, Je = !1, Nt = !1, At = [], Ge, De, Yt, Ht, yn, En, lt, Ze, pt, mt = !1, Et = !1, Dt, se, Xt = [], en = !1, kt = [], Vt = typeof document < "u", _t = Fn, _n = gt || Pe ? "cssFloat" : "float", Vo = Vt && !Co && !Fn && "draggable" in document.createElement("div"), Mn = function() {
499
499
  if (Vt) {
500
- if (Me)
500
+ if (Pe)
501
501
  return !1;
502
502
  var t = document.createElement("x");
503
503
  return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
504
504
  }
505
505
  }(), Vn = function(e, n) {
506
- var o = _(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), a = nt(e, 0, n), i = nt(e, 1, n), c = a && _(a), u = i && _(i), s = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + ee(a).width, f = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + ee(i).width;
506
+ var o = _(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), a = nt(e, 0, n), i = nt(e, 1, n), c = a && _(a), u = i && _(i), s = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + te(a).width, f = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + te(i).width;
507
507
  if (o.display === "flex")
508
508
  return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
509
509
  if (o.display === "grid")
@@ -521,7 +521,7 @@ var m, W, w, P, Ke, xt, Y, Ye, et, be, ft, We, yt, ie, Je = !1, Nt = !1, At = []
521
521
  return At.some(function(r) {
522
522
  var a = r[ye].options.emptyInsertThreshold;
523
523
  if (!(!a || sn(r))) {
524
- var i = ee(r), c = e >= i.left - a && e <= i.right + a, u = n >= i.top - a && n <= i.bottom + a;
524
+ var i = te(r), c = e >= i.left - a && e <= i.right + a, u = n >= i.top - a && n <= i.bottom + a;
525
525
  if (c && u)
526
526
  return o = r;
527
527
  }
@@ -547,9 +547,9 @@ var m, W, w, P, Ke, xt, Y, Ye, et, be, ft, We, yt, ie, Je = !1, Nt = !1, At = []
547
547
  name: r
548
548
  }), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, e.group = o;
549
549
  }, $n = function() {
550
- !Pn && w && _(w, "display", "none");
550
+ !Mn && w && _(w, "display", "none");
551
551
  }, Bn = function() {
552
- !Pn && w && _(w, "display", "");
552
+ !Mn && w && _(w, "display", "");
553
553
  };
554
554
  Vt && document.addEventListener("click", function(t) {
555
555
  if (Nt)
@@ -676,8 +676,8 @@ T.prototype = /** @lends Sortable.prototype */
676
676
  _prepareDragStart: function(e, n, o) {
677
677
  var r = this, a = r.el, i = r.options, c = a.ownerDocument, u;
678
678
  if (o && !m && o.parentNode === a) {
679
- var s = ee(o);
680
- if (P = a, m = o, W = m.parentNode, Ke = m.nextSibling, xt = o, yt = i.group, T.dragged = m, Ge = {
679
+ var s = te(o);
680
+ if (M = a, m = o, W = m.parentNode, Ke = m.nextSibling, xt = o, yt = i.group, T.dragged = m, Ge = {
681
681
  target: m,
682
682
  clientX: (n || e).clientX,
683
683
  clientY: (n || e).clientY
@@ -697,7 +697,7 @@ T.prototype = /** @lends Sortable.prototype */
697
697
  An(m, f.trim(), Gt);
698
698
  }), S(c, "dragover", ze), S(c, "mousemove", ze), S(c, "touchmove", ze), S(c, "mouseup", r._onDrop), S(c, "touchend", r._onDrop), S(c, "touchcancel", r._onDrop), hn && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), fe("delayStart", this, {
699
699
  evt: e
700
- }), i.delay && (!i.delayOnTouchOnly || n) && (!this.nativeDraggable || !(gt || Me))) {
700
+ }), i.delay && (!i.delayOnTouchOnly || n) && (!this.nativeDraggable || !(gt || Pe))) {
701
701
  if (T.eventCanceled) {
702
702
  this._onDrop();
703
703
  return;
@@ -719,7 +719,7 @@ T.prototype = /** @lends Sortable.prototype */
719
719
  C(e, "mouseup", this._disableDelayedDrag), C(e, "touchend", this._disableDelayedDrag), C(e, "touchcancel", this._disableDelayedDrag), C(e, "mousemove", this._delayedDragTouchMoveHandler), C(e, "touchmove", this._delayedDragTouchMoveHandler), C(e, "pointermove", this._delayedDragTouchMoveHandler);
720
720
  },
721
721
  _triggerDragStart: function(e, n) {
722
- n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? S(document, "pointermove", this._onTouchMove) : n ? S(document, "touchmove", this._onTouchMove) : S(document, "mousemove", this._onTouchMove) : (S(m, "dragend", this), S(P, "dragstart", this._onDragStart));
722
+ n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? S(document, "pointermove", this._onTouchMove) : n ? S(document, "touchmove", this._onTouchMove) : S(document, "mousemove", this._onTouchMove) : (S(m, "dragend", this), S(M, "dragstart", this._onDragStart));
723
723
  try {
724
724
  document.selection ? It(function() {
725
725
  document.selection.empty();
@@ -728,7 +728,7 @@ T.prototype = /** @lends Sortable.prototype */
728
728
  }
729
729
  },
730
730
  _dragStarted: function(e, n) {
731
- if (Je = !1, P && m) {
731
+ if (Je = !1, M && m) {
732
732
  fe("dragStarted", this, {
733
733
  evt: n
734
734
  }), this.nativeDraggable && S(document, "dragover", Bo);
@@ -788,7 +788,7 @@ T.prototype = /** @lends Sortable.prototype */
788
788
  },
789
789
  _appendGhost: function() {
790
790
  if (!w) {
791
- var e = this.options.fallbackOnBody ? document.body : P, n = ee(m, !0, _t, !0, e), o = this.options;
791
+ var e = this.options.fallbackOnBody ? document.body : M, n = te(m, !0, _t, !0, e), o = this.options;
792
792
  if (_t) {
793
793
  for (se = e; _(se, "position") === "static" && _(se, "transform") === "none" && se !== document; )
794
794
  se = se.parentNode;
@@ -805,8 +805,8 @@ T.prototype = /** @lends Sortable.prototype */
805
805
  this._onDrop();
806
806
  return;
807
807
  }
808
- fe("setupClone", this), T.eventCanceled || (Y = Mn(m), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), ve(Y, this.options.chosenClass, !1), T.clone = Y), o.cloneId = It(function() {
809
- fe("clone", o), !T.eventCanceled && (o.options.removeCloneOnHide || P.insertBefore(Y, m), o._hideClone(), ue({
808
+ fe("setupClone", this), T.eventCanceled || (Y = Pn(m), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), ve(Y, this.options.chosenClass, !1), T.clone = Y), o.cloneId = It(function() {
809
+ fe("clone", o), !T.eventCanceled && (o.options.removeCloneOnHide || M.insertBefore(Y, m), o._hideClone(), ue({
810
810
  sortable: o,
811
811
  name: "clone"
812
812
  }));
@@ -829,7 +829,7 @@ T.prototype = /** @lends Sortable.prototype */
829
829
  target: o,
830
830
  completed: N,
831
831
  onMove: function(K, le) {
832
- return Tt(P, n, m, r, K, ee(K), e, le);
832
+ return Tt(M, n, m, r, K, te(K), e, le);
833
833
  },
834
834
  changed: $
835
835
  }, v));
@@ -857,41 +857,41 @@ T.prototype = /** @lends Sortable.prototype */
857
857
  if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = Ie(o, c.draggable, n, !0), L("dragOver"), T.eventCanceled) return g;
858
858
  if (m.contains(e.target) || o.animated && o.animatingX && o.animatingY || b._ignoreWhileAnimating === o)
859
859
  return N(!1);
860
- if (Nt = !1, s && !c.disabled && (f ? l || (i = W !== P) : ie === this || (this.lastPutMode = yt.checkPull(this, s, m, e)) && u.checkPut(this, s, m, e))) {
861
- if (y = this._getDirection(e, o) === "vertical", r = ee(m), L("dragOverValid"), T.eventCanceled) return g;
860
+ if (Nt = !1, s && !c.disabled && (f ? l || (i = W !== M) : ie === this || (this.lastPutMode = yt.checkPull(this, s, m, e)) && u.checkPut(this, s, m, e))) {
861
+ if (y = this._getDirection(e, o) === "vertical", r = te(m), L("dragOverValid"), T.eventCanceled) return g;
862
862
  if (i)
863
- return W = P, H(), this._hideClone(), L("revert"), T.eventCanceled || (Ke ? P.insertBefore(m, Ke) : P.appendChild(m)), N(!0);
863
+ return W = M, H(), this._hideClone(), L("revert"), T.eventCanceled || (Ke ? M.insertBefore(m, Ke) : M.appendChild(m)), N(!0);
864
864
  var B = sn(n, c.draggable);
865
865
  if (!B || Xo(e, y, this) && !B.animated) {
866
866
  if (B === m)
867
867
  return N(!1);
868
- if (B && n === e.target && (o = B), o && (a = ee(o)), Tt(P, n, m, r, o, a, e, !!o) !== !1)
868
+ if (B && n === e.target && (o = B), o && (a = te(o)), Tt(M, n, m, r, o, a, e, !!o) !== !1)
869
869
  return H(), n.appendChild(m), W = n, $(), N(!0);
870
870
  } else if (B && Ho(e, y, this)) {
871
- var M = nt(n, 0, c, !0);
872
- if (M === m)
871
+ var P = nt(n, 0, c, !0);
872
+ if (P === m)
873
873
  return N(!1);
874
- if (o = M, a = ee(o), Tt(P, n, m, r, o, a, e, !1) !== !1)
875
- return H(), n.insertBefore(m, M), W = n, $(), N(!0);
874
+ if (o = P, a = te(o), Tt(M, n, m, r, o, a, e, !1) !== !1)
875
+ return H(), n.insertBefore(m, P), W = n, $(), N(!0);
876
876
  } else if (o.parentNode === n) {
877
- a = ee(o);
878
- var X = 0, me, Se = m.parentNode !== n, te = !Uo(m.animated && m.toRect || r, o.animated && o.toRect || a, y), Te = y ? "top" : "left", he = vn(o, "top", "top") || vn(m, "top", "top"), Re = he ? he.scrollTop : void 0;
879
- Ze !== o && (me = a[Te], mt = !1, Et = !te && c.invertSwap || Se), X = Go(e, o, a, y, te ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, Et, Ze === o);
880
- var Z;
877
+ a = te(o);
878
+ var X = 0, me, Se = m.parentNode !== n, ne = !Uo(m.animated && m.toRect || r, o.animated && o.toRect || a, y), Te = y ? "top" : "left", he = vn(o, "top", "top") || vn(m, "top", "top"), Re = he ? he.scrollTop : void 0;
879
+ Ze !== o && (me = a[Te], mt = !1, Et = !ne && c.invertSwap || Se), X = Go(e, o, a, y, ne ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, Et, Ze === o);
880
+ var J;
881
881
  if (X !== 0) {
882
882
  var we = Ee(m);
883
883
  do
884
- we -= X, Z = W.children[we];
885
- while (Z && (_(Z, "display") === "none" || Z === w));
884
+ we -= X, J = W.children[we];
885
+ while (J && (_(J, "display") === "none" || J === w));
886
886
  }
887
- if (X === 0 || Z === o)
887
+ if (X === 0 || J === o)
888
888
  return N(!1);
889
889
  Ze = o, pt = X;
890
890
  var Fe = o.nextElementSibling, ce = !1;
891
891
  ce = X === 1;
892
- var re = Tt(P, n, m, r, o, a, e, ce);
892
+ var re = Tt(M, n, m, r, o, a, e, ce);
893
893
  if (re !== !1)
894
- return (re === 1 || re === -1) && (ce = re === 1), en = !0, setTimeout(Yo, 30), H(), ce && !Fe ? n.appendChild(m) : o.parentNode.insertBefore(m, ce ? Fe : o), he && Ln(he, 0, Re - he.scrollTop), W = m.parentNode, me !== void 0 && !Et && (Dt = Math.abs(me - ee(o)[Te])), $(), N(!0);
894
+ return (re === 1 || re === -1) && (ce = re === 1), en = !0, setTimeout(Yo, 30), H(), ce && !Fe ? n.appendChild(m) : o.parentNode.insertBefore(m, ce ? Fe : o), he && Ln(he, 0, Re - he.scrollTop), W = m.parentNode, me !== void 0 && !Et && (Dt = Math.abs(me - te(o)[Te])), $(), N(!0);
895
895
  }
896
896
  if (n.contains(m))
897
897
  return N(!1);
@@ -914,18 +914,18 @@ T.prototype = /** @lends Sortable.prototype */
914
914
  this._nulling();
915
915
  return;
916
916
  }
917
- Je = !1, Et = !1, mt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), tn(this.cloneId), tn(this._dragStartId), this.nativeDraggable && (C(document, "drop", this), C(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ct && _(document.body, "user-select", ""), _(m, "transform", ""), e && (lt && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (P === W || ie && ie.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), m && (this.nativeDraggable && C(m, "dragend", this), Gt(m), m.style["will-change"] = "", lt && !Je && ve(m, ie ? ie.options.ghostClass : this.options.ghostClass, !1), ve(m, this.options.chosenClass, !1), ue({
917
+ Je = !1, Et = !1, mt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), tn(this.cloneId), tn(this._dragStartId), this.nativeDraggable && (C(document, "drop", this), C(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ct && _(document.body, "user-select", ""), _(m, "transform", ""), e && (lt && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (M === W || ie && ie.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), m && (this.nativeDraggable && C(m, "dragend", this), Gt(m), m.style["will-change"] = "", lt && !Je && ve(m, ie ? ie.options.ghostClass : this.options.ghostClass, !1), ve(m, this.options.chosenClass, !1), ue({
918
918
  sortable: this,
919
919
  name: "unchoose",
920
920
  toEl: W,
921
921
  newIndex: null,
922
922
  newDraggableIndex: null,
923
923
  originalEvent: e
924
- }), P !== W ? (be >= 0 && (ue({
924
+ }), M !== W ? (be >= 0 && (ue({
925
925
  rootEl: W,
926
926
  name: "add",
927
927
  toEl: W,
928
- fromEl: P,
928
+ fromEl: M,
929
929
  originalEvent: e
930
930
  }), ue({
931
931
  sortable: this,
@@ -936,7 +936,7 @@ T.prototype = /** @lends Sortable.prototype */
936
936
  rootEl: W,
937
937
  name: "sort",
938
938
  toEl: W,
939
- fromEl: P,
939
+ fromEl: M,
940
940
  originalEvent: e
941
941
  }), ue({
942
942
  sortable: this,
@@ -961,7 +961,7 @@ T.prototype = /** @lends Sortable.prototype */
961
961
  }), this.save()))), this._nulling();
962
962
  },
963
963
  _nulling: function() {
964
- fe("nulling", this), P = m = W = w = Ke = Y = xt = Ye = Ge = De = lt = be = We = et = ft = Ze = pt = ie = yt = T.dragged = T.ghost = T.clone = T.active = null, kt.forEach(function(e) {
964
+ fe("nulling", this), M = m = W = w = Ke = Y = xt = Ye = Ge = De = lt = be = We = et = ft = Ze = pt = ie = yt = T.dragged = T.ghost = T.clone = T.active = null, kt.forEach(function(e) {
965
965
  e.checked = !0;
966
966
  }), kt.length = Yt = Ht = 0;
967
967
  },
@@ -1054,7 +1054,7 @@ T.prototype = /** @lends Sortable.prototype */
1054
1054
  }
1055
1055
  if (Ye) {
1056
1056
  if (fe("showClone", this), T.eventCanceled) return;
1057
- m.parentNode == P && !this.options.group.revertClone ? P.insertBefore(Y, m) : Ke ? P.insertBefore(Y, Ke) : P.appendChild(Y), this.options.group.revertClone && this.animate(m, Y), _(Y, "display", ""), Ye = !1;
1057
+ m.parentNode == M && !this.options.group.revertClone ? M.insertBefore(Y, m) : Ke ? M.insertBefore(Y, Ke) : M.appendChild(Y), this.options.group.revertClone && this.animate(m, Y), _(Y, "display", ""), Ye = !1;
1058
1058
  }
1059
1059
  }
1060
1060
  };
@@ -1063,10 +1063,10 @@ function Wo(t) {
1063
1063
  }
1064
1064
  function Tt(t, e, n, o, r, a, i, c) {
1065
1065
  var u, s = t[ye], f = s.options.onMove, l;
1066
- return window.CustomEvent && !Me && !gt ? u = new CustomEvent("move", {
1066
+ return window.CustomEvent && !Pe && !gt ? u = new CustomEvent("move", {
1067
1067
  bubbles: !0,
1068
1068
  cancelable: !0
1069
- }) : (u = document.createEvent("Event"), u.initEvent("move", !0, !0)), u.to = e, u.from = t, u.dragged = n, u.draggedRect = o, u.related = r || e, u.relatedRect = a || ee(e), u.willInsertAfter = c, u.originalEvent = i, t.dispatchEvent(u), f && (l = f.call(s, u, i)), l;
1069
+ }) : (u = document.createEvent("Event"), u.initEvent("move", !0, !0)), u.to = e, u.from = t, u.dragged = n, u.draggedRect = o, u.related = r || e, u.relatedRect = a || te(e), u.willInsertAfter = c, u.originalEvent = i, t.dispatchEvent(u), f && (l = f.call(s, u, i)), l;
1070
1070
  }
1071
1071
  function Gt(t) {
1072
1072
  t.draggable = !1;
@@ -1075,11 +1075,11 @@ function Yo() {
1075
1075
  en = !1;
1076
1076
  }
1077
1077
  function Ho(t, e, n) {
1078
- var o = ee(nt(n.el, 0, n.options, !0)), r = 10;
1078
+ var o = te(nt(n.el, 0, n.options, !0)), r = 10;
1079
1079
  return e ? t.clientX < o.left - r || t.clientY < o.top && t.clientX < o.right : t.clientY < o.top - r || t.clientY < o.bottom && t.clientX < o.left;
1080
1080
  }
1081
1081
  function Xo(t, e, n) {
1082
- var o = ee(sn(n.el, n.options.draggable)), r = 10;
1082
+ var o = te(sn(n.el, n.options.draggable)), r = 10;
1083
1083
  return e ? t.clientX > o.right + r || t.clientX <= o.right && t.clientY > o.bottom && t.clientX >= o.left : t.clientX > o.right && t.clientY > o.top || t.clientX <= o.right && t.clientY > o.bottom + r;
1084
1084
  }
1085
1085
  function Go(t, e, n, o, r, a, i, c) {
@@ -1131,7 +1131,7 @@ T.utils = {
1131
1131
  throttle: kn,
1132
1132
  closest: Ie,
1133
1133
  toggleClass: ve,
1134
- clone: Mn,
1134
+ clone: Pn,
1135
1135
  index: Ee,
1136
1136
  nextTick: It,
1137
1137
  cancelNextTick: tn,
@@ -1187,7 +1187,7 @@ function qo() {
1187
1187
  },
1188
1188
  _handleAutoScroll: function(n, o) {
1189
1189
  var r = this, a = (n.touches ? n.touches[0] : n).clientX, i = (n.touches ? n.touches[0] : n).clientY, c = document.elementFromPoint(a, i);
1190
- if (Lt = n, o || this.options.forceAutoScrollFallback || gt || Me || ct) {
1190
+ if (Lt = n, o || this.options.forceAutoScrollFallback || gt || Pe || ct) {
1191
1191
  Kt(n, this.options, c, o);
1192
1192
  var u = He(c, !0);
1193
1193
  on && (!ut || a !== zt || i !== jt) && (ut && Tn(), ut = setInterval(function() {
@@ -1221,13 +1221,13 @@ var Kt = kn(function(t, e, n, o) {
1221
1221
  nn !== n && (nn = n, Ot(), st = e.scroll, f = e.scrollFn, st === !0 && (st = He(n, !0)));
1222
1222
  var l = 0, E = st;
1223
1223
  do {
1224
- var y = E, b = ee(y), g = b.top, L = b.bottom, H = b.left, N = b.right, $ = b.width, B = b.height, M = void 0, X = void 0, me = y.scrollWidth, Se = y.scrollHeight, te = _(y), Te = y.scrollLeft, he = y.scrollTop;
1225
- y === u ? (M = $ < me && (te.overflowX === "auto" || te.overflowX === "scroll" || te.overflowX === "visible"), X = B < Se && (te.overflowY === "auto" || te.overflowY === "scroll" || te.overflowY === "visible")) : (M = $ < me && (te.overflowX === "auto" || te.overflowX === "scroll"), X = B < Se && (te.overflowY === "auto" || te.overflowY === "scroll"));
1226
- var Re = M && (Math.abs(N - r) <= i && Te + $ < me) - (Math.abs(H - r) <= i && !!Te), Z = X && (Math.abs(L - a) <= i && he + B < Se) - (Math.abs(g - a) <= i && !!he);
1224
+ var y = E, b = te(y), g = b.top, L = b.bottom, H = b.left, N = b.right, $ = b.width, B = b.height, P = void 0, X = void 0, me = y.scrollWidth, Se = y.scrollHeight, ne = _(y), Te = y.scrollLeft, he = y.scrollTop;
1225
+ y === u ? (P = $ < me && (ne.overflowX === "auto" || ne.overflowX === "scroll" || ne.overflowX === "visible"), X = B < Se && (ne.overflowY === "auto" || ne.overflowY === "scroll" || ne.overflowY === "visible")) : (P = $ < me && (ne.overflowX === "auto" || ne.overflowX === "scroll"), X = B < Se && (ne.overflowY === "auto" || ne.overflowY === "scroll"));
1226
+ var Re = P && (Math.abs(N - r) <= i && Te + $ < me) - (Math.abs(H - r) <= i && !!Te), J = X && (Math.abs(L - a) <= i && he + B < Se) - (Math.abs(g - a) <= i && !!he);
1227
1227
  if (!q[l])
1228
1228
  for (var we = 0; we <= l; we++)
1229
1229
  q[we] || (q[we] = {});
1230
- (q[l].vx != Re || q[l].vy != Z || q[l].el !== y) && (q[l].el = y, q[l].vx = Re, q[l].vy = Z, clearInterval(q[l].pid), (Re != 0 || Z != 0) && (s = !0, q[l].pid = setInterval((function() {
1230
+ (q[l].vx != Re || q[l].vy != J || q[l].el !== y) && (q[l].el = y, q[l].vx = Re, q[l].vy = J, clearInterval(q[l].pid), (Re != 0 || J != 0) && (s = !0, q[l].pid = setInterval((function() {
1231
1231
  o && this.layer === 0 && T.active._onTouchMove(Lt);
1232
1232
  var Fe = q[this.layer].vy ? q[this.layer].vy * c : 0, ce = q[this.layer].vx ? q[this.layer].vx * c : 0;
1233
1233
  typeof f == "function" && f.call(T.dragged.parentNode[ye], ce, Fe, t, Lt, q[this.layer].el) !== "continue" || Ln(q[this.layer].el, ce, Fe);
@@ -1798,7 +1798,7 @@ const gr = {
1798
1798
  };
1799
1799
  }), Er = /* @__PURE__ */ Xe({
1800
1800
  __name: "WidgetTypeList",
1801
- props: /* @__PURE__ */ Mt({
1801
+ props: /* @__PURE__ */ Pt({
1802
1802
  childClass: {
1803
1803
  type: String,
1804
1804
  default: ""
@@ -1820,7 +1820,7 @@ const gr = {
1820
1820
  }),
1821
1821
  emits: ["update:modelValue"],
1822
1822
  setup(t) {
1823
- const { t: e } = Pt(), n = ot(t, "modelValue"), o = t, r = R(
1823
+ const { t: e } = Mt(), n = ot(t, "modelValue"), o = t, r = R(
1824
1824
  () => yr.map((a) => ({
1825
1825
  ...a,
1826
1826
  label: e(`report.widget.types.${a.value.toLowerCase()}`)
@@ -1958,7 +1958,7 @@ const Tr = {
1958
1958
  };
1959
1959
  }
1960
1960
  }), Ta = /* @__PURE__ */ ln(wr, [["__scopeId", "data-v-fa67a3a4"]]);
1961
- var J = /* @__PURE__ */ ((t) => (t.Dimension = "DIMENSION", t.Metric = "METRIC", t))(J || {});
1961
+ var ee = /* @__PURE__ */ ((t) => (t.Dimension = "DIMENSION", t.Metric = "METRIC", t))(ee || {});
1962
1962
  const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { class: "flex items-center gap-1 px-3 py-1" }, Or = {
1963
1963
  key: 1,
1964
1964
  class: "fm-typo-en-body-sm-400 text-fm-color-system-error-300"
@@ -1968,7 +1968,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
1968
1968
  }, Sr = {
1969
1969
  key: 0,
1970
1970
  class: "m-2 mb-0 rounded-lg border border-neutral-200 bg-neutral-50 px-4 py-3"
1971
- }, Rr = { class: "flex items-center gap-2" }, Fr = { class: "fm-typo-en-title-md-400 text-fm-color-typo-primary" }, Nr = { class: "fm-typo-en-body-sm-400" }, Ar = { class: "mt-3 border-l-2 border-fm-color-system-info-100 pl-3 fm-typo-en-body-md-400 text-fm-color-typo-primary leading-relaxed" }, kr = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400 mt-3 uppercase tracking-wide" }, Lr = { class: "mt-1 rounded-md bg-fm-color-neutral-white px-3 py-2 fm-typo-en-body-md-400 text-fm-color-typo-primary leading-relaxed break-words" }, Mr = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400 mt-3 uppercase tracking-wide" }, Pr = { class: "mt-1 rounded-md bg-fm-color-neutral-white px-3 py-2 fm-typo-en-body-md-400 text-fm-color-typo-primary leading-relaxed break-words" }, Vr = { key: 2 }, Ur = ["onMousedown", "onMouseenter"], $r = { class: "min-w-0 flex-1" }, Br = { class: "flex items-start gap-2 min-w-0" }, Wr = { class: "min-w-0 overflow-hidden text-ellipsis line-clamp-3 fm-typo-en-body-md-400" }, Yr = {
1971
+ }, Rr = { class: "flex items-center gap-2" }, Fr = { class: "fm-typo-en-title-md-400 text-fm-color-typo-primary" }, Nr = { class: "fm-typo-en-body-sm-400" }, Ar = { class: "mt-3 border-l-2 border-fm-color-system-info-100 pl-3 fm-typo-en-body-md-400 text-fm-color-typo-primary leading-relaxed" }, kr = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400 mt-3 uppercase tracking-wide" }, Lr = { class: "mt-1 rounded-md bg-fm-color-neutral-white px-3 py-2 fm-typo-en-body-md-400 text-fm-color-typo-primary leading-relaxed break-words" }, Pr = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400 mt-3 uppercase tracking-wide" }, Mr = { class: "mt-1 rounded-md bg-fm-color-neutral-white px-3 py-2 fm-typo-en-body-md-400 text-fm-color-typo-primary leading-relaxed break-words" }, Vr = { key: 2 }, Ur = ["onMousedown", "onMouseenter"], $r = { class: "min-w-0 flex-1" }, Br = { class: "flex items-start gap-2 min-w-0" }, Wr = { class: "min-w-0 overflow-hidden text-ellipsis line-clamp-3 fm-typo-en-body-md-400" }, Yr = {
1972
1972
  key: 0,
1973
1973
  class: "shrink-0 fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400"
1974
1974
  }, Hr = { class: "fm-typo-en-body-sm-400" }, Xr = {
@@ -1976,7 +1976,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
1976
1976
  class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-300 leading-relaxed whitespace-normal"
1977
1977
  }, Gr = /* @__PURE__ */ Xe({
1978
1978
  __name: "FormulaInput",
1979
- props: /* @__PURE__ */ Mt({
1979
+ props: /* @__PURE__ */ Pt({
1980
1980
  placeholder: {},
1981
1981
  fieldDataList: {},
1982
1982
  functionList: {},
@@ -2010,7 +2010,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2010
2010
  return "text-fm-color-typo-secondary";
2011
2011
  }
2012
2012
  }
2013
- const o = ot(t, "modelValue"), { t: r } = Pt();
2013
+ const o = ot(t, "modelValue"), { t: r } = Mt();
2014
2014
  function a(h) {
2015
2015
  const I = [h.toLowerCase(), e(h).toLowerCase()];
2016
2016
  return h === "KEYWORD" && I.push("expr", "expression"), I;
@@ -2021,7 +2021,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2021
2021
  function c(h, I, x) {
2022
2022
  return h ? i(h, I) || x.some((F) => F == null ? void 0 : F.toLowerCase().includes(h)) : !0;
2023
2023
  }
2024
- const u = t, s = oe(null), f = oe(null), l = oe(!1), E = oe({ top: 0, left: 0 }), y = oe(0), b = oe(!1), g = oe(null), L = R(() => u.formulaField), H = R(() => [
2024
+ const u = t, s = Z(null), f = Z(null), l = Z(!1), E = Z({ top: 0, left: 0 }), y = Z(0), b = Z(!1), g = Z(null), L = R(() => u.formulaField), H = R(() => [
2025
2025
  {
2026
2026
  value: "AVG",
2027
2027
  description: r("report.formulaInput.functionDescription.avg"),
@@ -2029,7 +2029,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2029
2029
  exampleResult: r("report.formulaInput.functionResult.avg"),
2030
2030
  insertText: "AVG()",
2031
2031
  cursorOffset: 4,
2032
- allowedFields: [J.Metric]
2032
+ allowedFields: [ee.Metric]
2033
2033
  },
2034
2034
  {
2035
2035
  value: "SUM",
@@ -2038,7 +2038,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2038
2038
  exampleResult: r("report.formulaInput.functionResult.sum"),
2039
2039
  insertText: "SUM()",
2040
2040
  cursorOffset: 4,
2041
- allowedFields: [J.Metric]
2041
+ allowedFields: [ee.Metric]
2042
2042
  },
2043
2043
  {
2044
2044
  value: "COUNT",
@@ -2087,7 +2087,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2087
2087
  exampleResult: r("report.formulaInput.functionResult.replace"),
2088
2088
  insertText: "REPLACE()",
2089
2089
  cursorOffset: 8,
2090
- allowedFields: [J.Dimension]
2090
+ allowedFields: [ee.Dimension]
2091
2091
  },
2092
2092
  {
2093
2093
  value: "RIGHT",
@@ -2096,7 +2096,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2096
2096
  exampleResult: r("report.formulaInput.functionResult.right"),
2097
2097
  insertText: "RIGHT()",
2098
2098
  cursorOffset: 6,
2099
- allowedFields: [J.Dimension]
2099
+ allowedFields: [ee.Dimension]
2100
2100
  },
2101
2101
  {
2102
2102
  value: "SUBSTR",
@@ -2105,7 +2105,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2105
2105
  exampleResult: r("report.formulaInput.functionResult.substr"),
2106
2106
  insertText: "SUBSTR()",
2107
2107
  cursorOffset: 7,
2108
- allowedFields: [J.Dimension]
2108
+ allowedFields: [ee.Dimension]
2109
2109
  },
2110
2110
  {
2111
2111
  value: "REGEXP_MATCH",
@@ -2114,7 +2114,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2114
2114
  exampleResult: r("report.formulaInput.functionResult.regexpMatch"),
2115
2115
  insertText: "REGEXP_MATCH()",
2116
2116
  cursorOffset: 13,
2117
- allowedFields: [J.Dimension]
2117
+ allowedFields: [ee.Dimension]
2118
2118
  },
2119
2119
  {
2120
2120
  value: "REGEXP_REPLACE",
@@ -2123,7 +2123,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2123
2123
  exampleResult: r("report.formulaInput.functionResult.regexpReplace"),
2124
2124
  insertText: "REGEXP_REPLACE()",
2125
2125
  cursorOffset: 15,
2126
- allowedFields: [J.Dimension]
2126
+ allowedFields: [ee.Dimension]
2127
2127
  },
2128
2128
  {
2129
2129
  value: "TRIM",
@@ -2132,7 +2132,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2132
2132
  exampleResult: r("report.formulaInput.functionResult.trim"),
2133
2133
  insertText: "TRIM()",
2134
2134
  cursorOffset: 5,
2135
- allowedFields: [J.Dimension]
2135
+ allowedFields: [ee.Dimension]
2136
2136
  },
2137
2137
  {
2138
2138
  value: "COALESCE",
@@ -2157,7 +2157,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2157
2157
  exampleResult: r("report.formulaInput.functionResult.concat"),
2158
2158
  insertText: "CONCAT()",
2159
2159
  cursorOffset: 7,
2160
- allowedFields: [J.Dimension]
2160
+ allowedFields: [ee.Dimension]
2161
2161
  },
2162
2162
  {
2163
2163
  value: "DATE_TRUNC",
@@ -2166,7 +2166,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2166
2166
  exampleResult: r("report.formulaInput.functionResult.dateTrunc"),
2167
2167
  insertText: "DATE_TRUNC()",
2168
2168
  cursorOffset: 11,
2169
- allowedFields: [J.Dimension]
2169
+ allowedFields: [ee.Dimension]
2170
2170
  },
2171
2171
  {
2172
2172
  value: "TO_CHAR",
@@ -2175,7 +2175,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2175
2175
  exampleResult: r("report.formulaInput.functionResult.toChar"),
2176
2176
  insertText: "TO_CHAR()",
2177
2177
  cursorOffset: 8,
2178
- allowedFields: [J.Dimension]
2178
+ allowedFields: [ee.Dimension]
2179
2179
  },
2180
2180
  {
2181
2181
  value: "TO_TIMESTAMP",
@@ -2192,7 +2192,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2192
2192
  exampleResult: r("report.formulaInput.functionResult.lower"),
2193
2193
  insertText: "LOWER()",
2194
2194
  cursorOffset: 6,
2195
- allowedFields: [J.Dimension]
2195
+ allowedFields: [ee.Dimension]
2196
2196
  },
2197
2197
  {
2198
2198
  value: "UPPER",
@@ -2201,7 +2201,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2201
2201
  exampleResult: r("report.formulaInput.functionResult.upper"),
2202
2202
  insertText: "UPPER()",
2203
2203
  cursorOffset: 6,
2204
- allowedFields: [J.Dimension]
2204
+ allowedFields: [ee.Dimension]
2205
2205
  },
2206
2206
  {
2207
2207
  value: "EXTRACT",
@@ -2210,7 +2210,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2210
2210
  exampleResult: r("report.formulaInput.functionResult.extract"),
2211
2211
  insertText: "EXTRACT()",
2212
2212
  cursorOffset: 8,
2213
- allowedFields: [J.Dimension]
2213
+ allowedFields: [ee.Dimension]
2214
2214
  },
2215
2215
  {
2216
2216
  value: "FIRST_VALUE",
@@ -2219,7 +2219,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2219
2219
  exampleResult: r("report.formulaInput.functionResult.firstValue"),
2220
2220
  insertText: "FIRST_VALUE() OVER ()",
2221
2221
  cursorOffset: 12,
2222
- allowedFields: [J.Metric]
2222
+ allowedFields: [ee.Metric]
2223
2223
  },
2224
2224
  {
2225
2225
  value: "LAST_VALUE",
@@ -2228,7 +2228,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2228
2228
  exampleResult: r("report.formulaInput.functionResult.lastValue"),
2229
2229
  insertText: "LAST_VALUE() OVER ()",
2230
2230
  cursorOffset: 11,
2231
- allowedFields: [J.Metric]
2231
+ allowedFields: [ee.Metric]
2232
2232
  }
2233
2233
  ]), N = R(
2234
2234
  () => [
@@ -2401,7 +2401,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2401
2401
  ]), B = R(() => [
2402
2402
  ...H.value,
2403
2403
  ...u.functionList || []
2404
- ]), M = R(
2404
+ ]), P = R(
2405
2405
  () => B.value.filter(
2406
2406
  (h) => !h.allowedFields || h.allowedFields.length === 0 || h.allowedFields.includes(L.value)
2407
2407
  )
@@ -2416,7 +2416,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2416
2416
  const h = o.value || "";
2417
2417
  return Math.max(h.split(`
2418
2418
  `).length, 1);
2419
- }), te = R(() => Array.from({ length: Se.value }, (h, I) => I + 1));
2419
+ }), ne = R(() => Array.from({ length: Se.value }, (h, I) => I + 1));
2420
2420
  function Te(h, I) {
2421
2421
  let x = I;
2422
2422
  for (; x > 0 && /\w/.test(h[x - 1]); ) x--;
@@ -2431,9 +2431,9 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2431
2431
  return h.substring(x, F);
2432
2432
  }), Re = R(() => he.value.trim().length > 0);
2433
2433
  R(
2434
- () => Re.value || Z.value.insideParens
2434
+ () => Re.value || J.value.insideParens
2435
2435
  );
2436
- const Z = R(() => {
2436
+ const J = R(() => {
2437
2437
  var ae;
2438
2438
  const h = o.value || "", I = y.value, x = h.substring(0, I), F = [];
2439
2439
  for (let p = 0; p < x.length; p++)
@@ -2528,7 +2528,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2528
2528
  type: "FIELD",
2529
2529
  badge: p.badge,
2530
2530
  meta: p.meta
2531
- })), F = I ? [] : M.value.filter(
2531
+ })), F = I ? [] : P.value.filter(
2532
2532
  (p) => c(h, "FUNCTION", [
2533
2533
  p.value,
2534
2534
  ...p.aliases || []
@@ -2553,7 +2553,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2553
2553
  description: p.description,
2554
2554
  insertText: p.insertText,
2555
2555
  cursorOffset: p.cursorOffset
2556
- })), ae = Z.value.insideParens && Z.value.functionName === "OVER" ? N.value.filter(
2556
+ })), ae = J.value.insideParens && J.value.functionName === "OVER" ? N.value.filter(
2557
2557
  (p) => c(h, "KEYWORD", [p.label])
2558
2558
  ).map((p) => ({
2559
2559
  ...p,
@@ -2562,17 +2562,17 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2562
2562
  })) : [];
2563
2563
  return [...F, ...de, ...ae, ...x];
2564
2564
  }), re = R(() => {
2565
- if (!Z.value.insideParens) return null;
2566
- const h = Z.value.guideFunctionName;
2567
- return h && M.value.find((I) => I.value.toUpperCase() === h) || null;
2565
+ if (!J.value.insideParens) return null;
2566
+ const h = J.value.guideFunctionName;
2567
+ return h && P.value.find((I) => I.value.toUpperCase() === h) || null;
2568
2568
  }), d = R(() => re.value ? "FUNCTION" : void 0), v = R(
2569
2569
  () => ce.value.find((h) => h.value === g.value)
2570
2570
  ), O = R(() => l.value && ce.value.length > 0), K = R(
2571
- () => l.value && Z.value.insideParens && !Z.value.hasText && re.value !== null
2571
+ () => l.value && J.value.insideParens && !J.value.hasText && re.value !== null
2572
2572
  ), le = R(
2573
2573
  () => l.value && (K.value || O.value)
2574
2574
  );
2575
- function Pe(h) {
2575
+ function Me(h) {
2576
2576
  const I = h.getBoundingClientRect(), x = window.getComputedStyle(h), F = parseFloat(x.lineHeight) || 24, de = h.value.substring(0, h.selectionStart), ae = document.createElement("div");
2577
2577
  ae.style.cssText = `
2578
2578
  position: fixed;
@@ -2621,7 +2621,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2621
2621
  }, 150);
2622
2622
  }
2623
2623
  function Ne() {
2624
- s.value && (y.value = s.value.selectionStart, E.value = Pe(s.value));
2624
+ s.value && (y.value = s.value.selectionStart, E.value = Me(s.value));
2625
2625
  }
2626
2626
  function bt(h) {
2627
2627
  const I = h.type === "FIELD" ? h.value : h.insertText || (h.type === "FUNCTION" ? `${h.value}()` : h.value), x = o.value || "", F = y.value, { start: de, end: ae } = Te(x, F);
@@ -2638,7 +2638,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2638
2638
  function Ue() {
2639
2639
  !O.value || !v.value || bt(v.value);
2640
2640
  }
2641
- function ne() {
2641
+ function oe() {
2642
2642
  s.value && f.value && (f.value.scrollTop = s.value.scrollTop);
2643
2643
  }
2644
2644
  return (h, I) => {
@@ -2646,7 +2646,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2646
2646
  const x = j("FmCircularProgress"), F = j("FmChip"), de = j("FmMenuDivider");
2647
2647
  return D(), k("div", xr, [
2648
2648
  A("div", {
2649
- class: "flex h-[120px] rounded-md overflow-hidden items-stretch",
2649
+ class: "flex h-[200px] rounded-md overflow-hidden items-stretch",
2650
2650
  style: Zt({
2651
2651
  outline: "none",
2652
2652
  border: b.value ? "2px solid var(--fm-color-primary)" : "1px solid rgb(212 212 216)",
@@ -2658,7 +2658,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2658
2658
  ref: f,
2659
2659
  class: "h-full shrink-0 overflow-hidden select-none text-right min-w-[32px] px-2 py-1 text-fm-color-neutral-gray-300 fm-typo-en-body-lg-400 border-r leading-normal"
2660
2660
  }, [
2661
- (D(!0), k(Ae, null, Ct(te.value, (p) => (D(), k("div", { key: p }, Q(p), 1))), 128))
2661
+ (D(!0), k(Ae, null, Ct(ne.value, (p) => (D(), k("div", { key: p }, Q(p), 1))), 128))
2662
2662
  ], 512),
2663
2663
  ao(A("textarea", {
2664
2664
  ref_key: "textareaRef",
@@ -2672,7 +2672,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2672
2672
  onClick: Ne,
2673
2673
  onKeyup: Ne,
2674
2674
  onKeydown: io(Rt(Ue, ["prevent"]), ["tab"]),
2675
- onScroll: ne
2675
+ onScroll: oe
2676
2676
  }, null, 40, Dr), [
2677
2677
  [lo, o.value]
2678
2678
  ])
@@ -2712,8 +2712,8 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2712
2712
  A("p", kr, Q(V(r)("report.formulaInput.section.example")), 1),
2713
2713
  A("p", Lr, Q(re.value.example), 1),
2714
2714
  re.value.exampleResult ? (D(), k(Ae, { key: 0 }, [
2715
- A("p", Mr, Q(V(r)("report.formulaInput.section.result")), 1),
2716
- A("p", Pr, Q(re.value.exampleResult), 1)
2715
+ A("p", Pr, Q(V(r)("report.formulaInput.section.result")), 1),
2716
+ A("p", Mr, Q(re.value.exampleResult), 1)
2717
2717
  ], 64)) : U("", !0)
2718
2718
  ], 64)) : U("", !0)
2719
2719
  ])) : U("", !0),
@@ -2787,21 +2787,21 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2787
2787
  return Eo.fetch(r);
2788
2788
  };
2789
2789
  function jr(t) {
2790
- const { getDataFormula: e, getDisplayFormula: n, getIsAdvance: o } = t, r = t.getAllowedFields || (() => []), a = t.getDatasource || (() => po.Postgres), i = t.immediate ?? !1, c = oe(), u = oe(), s = oe(!1), f = oe(!1);
2790
+ const { getDataFormula: e, getDisplayFormula: n, getIsAdvance: o } = t, r = t.getAllowedFields || (() => []), a = t.getDatasource || (() => po.Postgres), i = t.immediate ?? !1, c = Z(), u = Z(), s = Z(!1), f = Z(!1);
2791
2791
  function l() {
2792
2792
  return r().map((g) => `${g.fieldId}:${g.type}`).sort().join("|");
2793
2793
  }
2794
2794
  function E(g) {
2795
2795
  let L = 0;
2796
2796
  const H = Sn(
2797
- async (M, X) => {
2797
+ async (P, X) => {
2798
2798
  if (!(!o() || X !== L)) {
2799
- if (!M) {
2799
+ if (!P) {
2800
2800
  g.setValidation(void 0);
2801
2801
  return;
2802
2802
  }
2803
2803
  try {
2804
- const me = await zr(M, a(), r());
2804
+ const me = await zr(P, a(), r());
2805
2805
  if (!o() || X !== L)
2806
2806
  return;
2807
2807
  g.setValidation(me);
@@ -2816,18 +2816,18 @@ function jr(t) {
2816
2816
  },
2817
2817
  2500
2818
2818
  );
2819
- function N(M) {
2819
+ function N(P) {
2820
2820
  L += 1;
2821
2821
  const X = L;
2822
2822
  if (!o()) {
2823
2823
  H.cancel(), g.setIsValidating(!1), g.setValidation(void 0);
2824
2824
  return;
2825
2825
  }
2826
- if (!M) {
2826
+ if (!P) {
2827
2827
  H.cancel(), g.setValidation(void 0), g.setIsValidating(!1);
2828
2828
  return;
2829
2829
  }
2830
- g.setIsValidating(!0), H(M, X);
2830
+ g.setIsValidating(!0), H(P, X);
2831
2831
  }
2832
2832
  function $() {
2833
2833
  L += 1, H.cancel(), g.setValidation(void 0), g.setIsValidating(!1);
@@ -2893,7 +2893,7 @@ const Kr = { class: "grow" }, qr = {
2893
2893
  class: "w-full"
2894
2894
  }, Qr = { key: 0 }, Zr = /* @__PURE__ */ Xe({
2895
2895
  __name: "FilterValueInput",
2896
- props: /* @__PURE__ */ Mt({
2896
+ props: /* @__PURE__ */ Pt({
2897
2897
  config: {
2898
2898
  type: Object,
2899
2899
  default: () => {
@@ -2910,7 +2910,7 @@ const Kr = { class: "grow" }, qr = {
2910
2910
  }),
2911
2911
  emits: ["update:modelValue"],
2912
2912
  setup(t) {
2913
- const e = ot(t, "modelValue"), n = t, o = oe([]);
2913
+ const e = ot(t, "modelValue"), n = t, o = Z([]);
2914
2914
  function r(u) {
2915
2915
  return (u ? $t(u) : $t()).format("HH:mm");
2916
2916
  }
@@ -2949,25 +2949,25 @@ const Kr = { class: "grow" }, qr = {
2949
2949
  key: 0,
2950
2950
  "model-value": e.value[g],
2951
2951
  items: n.config.options,
2952
- "onUpdate:modelValue": (M) => i(g, M)
2952
+ "onUpdate:modelValue": (P) => i(g, P)
2953
2953
  }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((H = n.config) == null ? void 0 : H.type) === V(it).TextField ? (D(), _e(l, {
2954
2954
  key: 1,
2955
2955
  "model-value": e.value[g],
2956
2956
  type: ((N = n.config) == null ? void 0 : N.dataType) === "number" ? "number" : "text",
2957
2957
  "helper-text": o.value[g] || void 0,
2958
2958
  "helper-state": "error",
2959
- "onUpdate:modelValue": (M) => i(g, M)
2959
+ "onUpdate:modelValue": (P) => i(g, P)
2960
2960
  }, null, 8, ["model-value", "type", "helper-text", "onUpdate:modelValue"])) : (($ = n.config) == null ? void 0 : $.type) === V(it).Timestamp ? (D(), k("div", qr, [
2961
2961
  G(E, {
2962
2962
  "model-value": r(e.value[g]),
2963
- "onUpdate:modelValue": (M) => i(g, M)
2963
+ "onUpdate:modelValue": (P) => i(g, P)
2964
2964
  }, null, 8, ["model-value", "onUpdate:modelValue"])
2965
2965
  ])) : U("", !0)
2966
2966
  ]),
2967
2967
  ((B = n.config) == null ? void 0 : B.fixed) === !1 ? (D(), k("div", Qr, [
2968
2968
  G(y, {
2969
2969
  icon: g === 0 ? "add" : "remove",
2970
- onClick: (M) => c(g)
2970
+ onClick: (P) => c(g)
2971
2971
  }, null, 8, ["icon", "onClick"])
2972
2972
  ])) : U("", !0)
2973
2973
  ]);
@@ -2998,7 +2998,7 @@ function ea(t) {
2998
2998
  }
2999
2999
  const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body-lg-600" }, oa = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, ra = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, xa = /* @__PURE__ */ Xe({
3000
3000
  __name: "FilterSection",
3001
- props: /* @__PURE__ */ Mt({
3001
+ props: /* @__PURE__ */ Pt({
3002
3002
  options: {
3003
3003
  type: Array,
3004
3004
  default: () => []
@@ -3013,7 +3013,7 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3013
3013
  }),
3014
3014
  emits: ["update:modelValue"],
3015
3015
  setup(t) {
3016
- const { t: e, te: n } = Pt(), o = ot(t, "modelValue"), r = t, a = R(() => e(`report.section.filter.${r.label}`)), i = oe(!1), c = _o(), u = R(
3016
+ const { t: e, te: n } = Mt(), o = ot(t, "modelValue"), r = t, a = R(() => e(`report.section.filter.${r.label}`)), i = Z(!1), c = _o(), u = R(
3017
3017
  () => o.value.map((d, v) => {
3018
3018
  const O = r.options.find(
3019
3019
  (le) => le.schemaName === d.schemaName && le.name === d.name
@@ -3024,19 +3024,19 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3024
3024
  value: d
3025
3025
  };
3026
3026
  })
3027
- ), s = oe(o.value.length > 0 ? 0 : void 0);
3027
+ ), s = Z(o.value.length > 0 ? 0 : void 0);
3028
3028
  function f(d) {
3029
3029
  var v;
3030
3030
  i.value = !0, g.value = [], l.value = d != null && d.value ? JSON.parse(JSON.stringify(d.value)) : void 0, s.value = d == null ? void 0 : d.index, E.value = !!((v = l.value) != null && v.dataFormula), B();
3031
3031
  }
3032
- const l = oe(void 0), E = oe(!1), y = oe(void 0), b = R(
3032
+ const l = Z(void 0), E = Z(!1), y = Z(void 0), b = R(
3033
3033
  () => r.options.find(
3034
3034
  (d) => {
3035
3035
  var v, O;
3036
3036
  return d.schemaName === ((v = l.value) == null ? void 0 : v.schemaName) && d.name === ((O = l.value) == null ? void 0 : O.name);
3037
3037
  }
3038
3038
  ) ?? {}
3039
- ), g = oe([]);
3039
+ ), g = Z([]);
3040
3040
  function L(d) {
3041
3041
  var v;
3042
3042
  return (v = g.value.find((O) => O.option === d)) == null ? void 0 : v.value;
@@ -3081,11 +3081,11 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3081
3081
  }
3082
3082
  );
3083
3083
  function N(d) {
3084
- var Pe;
3084
+ var Me;
3085
3085
  if (!l.value || !y.value) return;
3086
3086
  const v = s.value !== void 0 && o.value[s.value] && Array.isArray(o.value[s.value].values) ? [...o.value[s.value].values] : [], O = L(d);
3087
3087
  let K;
3088
- const le = s.value !== void 0 ? (Pe = o.value[s.value]) == null ? void 0 : Pe.option : void 0;
3088
+ const le = s.value !== void 0 ? (Me = o.value[s.value]) == null ? void 0 : Me.option : void 0;
3089
3089
  Array.isArray(O) ? K = O : v.length > 0 && d === le ? K = v : K = [y.value.default], l.value = {
3090
3090
  ...l.value,
3091
3091
  values: K
@@ -3110,7 +3110,7 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3110
3110
  t: e
3111
3111
  }));
3112
3112
  }
3113
- function M(d) {
3113
+ function P(d) {
3114
3114
  var v, O;
3115
3115
  (d.schemaName !== ((v = l.value) == null ? void 0 : v.schemaName) || d.name !== ((O = l.value) == null ? void 0 : O.name)) && (l.value = {
3116
3116
  schemaName: d.schemaName,
@@ -3125,8 +3125,8 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3125
3125
  const d = [...u.value.map((le) => le.value)];
3126
3126
  if (l.value) {
3127
3127
  E.value || (l.value.dataFormula = void 0);
3128
- const le = On((v = l.value) == null ? void 0 : v.option), Pe = Cn((O = l.value) == null ? void 0 : O.option), rt = (K = l.value.values) == null ? void 0 : K.map(
3129
- (ge, Ne) => ge == null || ge === "" || !re(ge, le, Pe) ? Ne : null
3128
+ const le = On((v = l.value) == null ? void 0 : v.option), Me = Cn((O = l.value) == null ? void 0 : O.option), rt = (K = l.value.values) == null ? void 0 : K.map(
3129
+ (ge, Ne) => ge == null || ge === "" || !re(ge, le, Me) ? Ne : null
3130
3130
  ).filter((ge) => ge !== null);
3131
3131
  if (!l.value.values || rt.length > 0) {
3132
3132
  c.open({ message: "One or more values are invalid", type: "error" });
@@ -3148,7 +3148,7 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3148
3148
  value: d
3149
3149
  }))
3150
3150
  );
3151
- function te(d) {
3151
+ function ne(d) {
3152
3152
  return `${d.schemaName}_${d.name}`.toLowerCase();
3153
3153
  }
3154
3154
  function Te(d) {
@@ -3169,21 +3169,21 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3169
3169
  var d, v;
3170
3170
  return !((d = b.value) != null && d.name) || !((v = b.value) != null && v.type) ? [] : [
3171
3171
  {
3172
- fieldId: te(b.value),
3172
+ fieldId: ne(b.value),
3173
3173
  type: b.value.type
3174
3174
  }
3175
3175
  ];
3176
3176
  }
3177
3177
  );
3178
- function Z(d) {
3178
+ function J(d) {
3179
3179
  var O;
3180
- const v = (O = b.value) != null && O.name ? te(b.value) : void 0;
3180
+ const v = (O = b.value) != null && O.name ? ne(b.value) : void 0;
3181
3181
  return v ? d == null ? void 0 : d.replace(/@self/g, v) : d;
3182
3182
  }
3183
3183
  const { dataValidation: we, isDataValidating: Fe } = jr({
3184
3184
  getDataFormula: () => {
3185
3185
  var d;
3186
- return Z((d = l.value) == null ? void 0 : d.dataFormula);
3186
+ return J((d = l.value) == null ? void 0 : d.dataFormula);
3187
3187
  },
3188
3188
  getDisplayFormula: () => {
3189
3189
  },
@@ -3194,7 +3194,7 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3194
3194
  return !(v !== void 0 && d < v || O !== void 0 && d > O);
3195
3195
  }
3196
3196
  return (d, v) => {
3197
- const O = j("FmCheckbox"), K = j("FmSelect"), le = j("FmForm"), Pe = j("FmIcon"), rt = j("FmButton"), ge = j("FmListItem"), Ne = j("FmList"), bt = j("FmField");
3197
+ const O = j("FmCheckbox"), K = j("FmSelect"), le = j("FmForm"), Me = j("FmIcon"), rt = j("FmButton"), ge = j("FmListItem"), Ne = j("FmList"), bt = j("FmField");
3198
3198
  return D(), k("div", ta, [
3199
3199
  G(ho, {
3200
3200
  modelValue: i.value,
@@ -3217,29 +3217,29 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3217
3217
  items: Se.value,
3218
3218
  placeholder: a.value,
3219
3219
  label: a.value,
3220
- "onUpdate:modelValue": v[0] || (v[0] = (ne) => M(ne))
3220
+ "onUpdate:modelValue": v[0] || (v[0] = (oe) => P(oe))
3221
3221
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
3222
3222
  l.value ? (D(), k(Ae, { key: 0 }, [
3223
3223
  G(O, {
3224
3224
  modelValue: E.value,
3225
- "onUpdate:modelValue": v[1] || (v[1] = (ne) => E.value = ne),
3225
+ "onUpdate:modelValue": v[1] || (v[1] = (oe) => E.value = oe),
3226
3226
  label: V(e)("report.section.filter.advance"),
3227
3227
  value: !0
3228
3228
  }, null, 8, ["modelValue", "label"]),
3229
3229
  E.value ? (D(), _e(Gr, {
3230
3230
  key: 0,
3231
3231
  modelValue: l.value.dataFormula,
3232
- "onUpdate:modelValue": v[2] || (v[2] = (ne) => l.value.dataFormula = ne),
3232
+ "onUpdate:modelValue": v[2] || (v[2] = (oe) => l.value.dataFormula = oe),
3233
3233
  placeholder: V(e)("report.section.filter.dataFormula"),
3234
3234
  "field-data-list": he.value,
3235
- "formula-field": b.value.type === "NUMERIC" ? V(J).Metric : V(J).Dimension,
3235
+ "formula-field": b.value.type === "NUMERIC" ? V(ee).Metric : V(ee).Dimension,
3236
3236
  "validation-result": V(we),
3237
3237
  "is-validating": V(Fe),
3238
3238
  "valid-formula-label": V(e)("report.common.validFormula")
3239
3239
  }, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : U("", !0),
3240
3240
  G(K, {
3241
3241
  modelValue: l.value.option,
3242
- "onUpdate:modelValue": v[3] || (v[3] = (ne) => l.value.option = ne),
3242
+ "onUpdate:modelValue": v[3] || (v[3] = (oe) => l.value.option = oe),
3243
3243
  items: ce.value,
3244
3244
  placeholder: V(e)("report.section.filter.timeFormatter"),
3245
3245
  label: V(e)("report.section.filter.timeFormatter")
@@ -3247,16 +3247,16 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3247
3247
  (((Ve = b.value) == null ? void 0 : Ve.filterOperators) || []).length > 0 ? (D(), _e(fn, {
3248
3248
  key: 1,
3249
3249
  modelValue: l.value.operator,
3250
- "onUpdate:modelValue": v[4] || (v[4] = (ne) => l.value.operator = ne),
3251
- items: (((Ue = b.value) == null ? void 0 : Ue.filterOperators) ?? []).map((ne) => ({
3252
- label: V(e)("report.section.comparisonOperator." + ne),
3253
- value: ne
3250
+ "onUpdate:modelValue": v[4] || (v[4] = (oe) => l.value.operator = oe),
3251
+ items: (((Ue = b.value) == null ? void 0 : Ue.filterOperators) ?? []).map((oe) => ({
3252
+ label: V(e)("report.section.comparisonOperator." + oe),
3253
+ value: oe
3254
3254
  }))
3255
3255
  }, null, 8, ["modelValue", "items"])) : U("", !0),
3256
3256
  y.value ? (D(), _e(Zr, {
3257
3257
  key: l.value.option ?? "",
3258
3258
  modelValue: l.value.values,
3259
- "onUpdate:modelValue": v[5] || (v[5] = (ne) => l.value.values = ne),
3259
+ "onUpdate:modelValue": v[5] || (v[5] = (oe) => l.value.values = oe),
3260
3260
  config: y.value,
3261
3261
  option: l.value.option
3262
3262
  }, null, 8, ["modelValue", "config", "option"])) : U("", !0)
@@ -3282,17 +3282,17 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3282
3282
  item: pe(({ element: Ve, index: Ue }) => [
3283
3283
  G(ge, {
3284
3284
  class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
3285
- onClick: Rt((ne) => f(u.value[Ue]), ["stop"])
3285
+ onClick: Rt((oe) => f(u.value[Ue]), ["stop"])
3286
3286
  }, {
3287
3287
  default: pe(() => [
3288
- G(Pe, { name: "drag_handle" }),
3288
+ G(Me, { name: "drag_handle" }),
3289
3289
  A("p", ra, Q(u.value[Ue].label), 1),
3290
3290
  v[8] || (v[8] = A("div", { class: "grow" }, null, -1)),
3291
3291
  G(rt, {
3292
3292
  icon: "close",
3293
3293
  size: "md",
3294
3294
  variant: "tertiary",
3295
- onClick: Rt((ne) => me(Ue), ["stop"])
3295
+ onClick: Rt((oe) => me(Ue), ["stop"])
3296
3296
  }, null, 8, ["onClick"])
3297
3297
  ]),
3298
3298
  _: 2
@@ -3317,7 +3317,7 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3317
3317
  ]);
3318
3318
  };
3319
3319
  }
3320
- }), aa = /* @__PURE__ */ Xe({
3320
+ }), Da = Z(null), Ia = Z([]), aa = /* @__PURE__ */ Xe({
3321
3321
  __name: "TransitionFade",
3322
3322
  props: {
3323
3323
  modelValue: { type: Boolean, required: !0, default: !0 },
@@ -3341,20 +3341,22 @@ const ta = { class: "flex flex-col my-2 gap-8" }, na = { class: "fm-typo-en-body
3341
3341
  })
3342
3342
  ], 64));
3343
3343
  }
3344
- }), Da = /* @__PURE__ */ ln(aa, [["__scopeId", "data-v-a98ca9bc"]]);
3344
+ }), Oa = /* @__PURE__ */ ln(aa, [["__scopeId", "data-v-a98ca9bc"]]);
3345
3345
  export {
3346
- J as F,
3346
+ ee as F,
3347
3347
  Ta as S,
3348
- Da as T,
3348
+ Oa as T,
3349
3349
  ya as W,
3350
3350
  Zr as _,
3351
3351
  xa as a,
3352
- ba as b,
3353
- Gr as c,
3352
+ Da as b,
3353
+ ba as c,
3354
3354
  br as d,
3355
- _r as e,
3355
+ Ia as e,
3356
+ Gr as f,
3356
3357
  wa as g,
3357
3358
  _a as h,
3358
3359
  Ea as i,
3360
+ _r as j,
3359
3361
  jr as u
3360
3362
  };