@feedmepos/mf-report 5.33.3-beta.0 → 5.34.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/{App-GzjtZ_d7.js → App-DyrakazI.js} +98 -97
  2. package/dist/{DateRangeSelect-CfV_WX9B.js → DateRangeSelect-D5SGi6ca.js} +67 -67
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-Y9S0SZ7o.js → Default.vue_vue_type_script_setup_true_lang-DsTRZa_6.js} +3 -3
  4. package/dist/DigestListView-BnkDRa7x.js +876 -0
  5. package/dist/{DigestReaderView-C1aKtovl.js → DigestReaderView-ByISB4qT.js} +63 -63
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CH2pf4XK.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BKNNtuyG.js} +733 -733
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DJ-LIqFg.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DHrnVaog.js} +526 -526
  8. package/dist/{InsightView-O5pzXY-g.js → InsightView-CUBTqwTI.js} +88 -88
  9. package/dist/{Integration-DHtuuAEx.js → Integration-WDbqUebw.js} +30 -30
  10. package/dist/{Integrations-xK1WbyH5.js → Integrations-C5_nERZt.js} +10 -10
  11. package/dist/{Layout-QoN7zexW.js → Layout-BqzoK8Mg.js} +3 -3
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DEeDj0JI.js → LocationSelect.vue_vue_type_script_setup_true_lang-kvdk_gEw.js} +306 -306
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-tmHI7t6B.js → MenuTab.vue_vue_type_script_setup_true_lang-B8uHS4bV.js} +6 -6
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DNrIAtGk.js → NavigationTab.vue_vue_type_script_setup_true_lang-CpexikuB.js} +12784 -11760
  15. package/dist/{OverviewView-CcqkLuon.js → OverviewView-mOEI9DAV.js} +7 -7
  16. package/dist/{Report-CcGTeCCn.js → Report-DmbTzjbj.js} +12 -12
  17. package/dist/{ReportCanvasView-C7CJq01e.js → ReportCanvasView-BqZ38Tsk.js} +426 -426
  18. package/dist/{ReportEditor-Vu592FeV.js → ReportEditor-8oAVfFdY.js} +32 -32
  19. package/dist/{ReportView-D-J7pmp5.js → ReportView-B6nE3qwV.js} +13 -13
  20. package/dist/{ReportViewRoute-TSaFpVVj.js → ReportViewRoute-DqXbM93B.js} +5 -5
  21. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
  22. package/dist/{Setting-tUrQLnqy.js → Setting-C01x-O-V.js} +6 -6
  23. package/dist/{Template-DRdVU80G.js → Template-VyBWHUXE.js} +80 -80
  24. package/dist/{TileEditor-CIR7d_cP.js → TileEditor-DICyBR1o.js} +1566 -1566
  25. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BtHZMHPR.js → TilePageStack.vue_vue_type_script_setup_true_lang-Dyaao76o.js} +82 -82
  26. package/dist/{TransitionFade-7EvXhuHo.js → TransitionFade-kXCDPEMQ.js} +170 -170
  27. package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
  28. package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
  29. package/dist/{app-1dD87x1L.js → app-BQDKX7NB.js} +5688 -13890
  30. package/dist/app.js +1 -1
  31. package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
  32. package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
  33. package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
  34. package/dist/currency-8SmajsvB.js +12 -0
  35. package/dist/index-BQ8NJuCA.js +24722 -0
  36. package/dist/{report-B547gOvv.js → report-CcXsPATD.js} +23 -23
  37. package/dist/style.css +1 -1
  38. package/dist/{useDigestFont-CVDCu0Is.js → useDigestFont-CjZZOIRM.js} +80 -80
  39. package/dist/{useReportCanvasPanel-DLt-AkFQ.js → useReportCanvasPanel-dWlB_xvo.js} +975 -976
  40. package/dist/{useRestaurantPermission-BtRjWi-p.js → useRestaurantPermission-D3G7ET0Z.js} +2 -2
  41. package/package.json +11 -11
  42. package/dist/DigestListView-DJQikkEC.js +0 -876
  43. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
  44. package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
  45. package/dist/currency-BXCfWg4A.js +0 -12
  46. package/dist/index-B_yQyaGT.js +0 -25511
@@ -1,18 +1,18 @@
1
- import { defineComponent as We, onBeforeMount as ro, onBeforeUnmount as io, resolveComponent as z, createElementBlock as k, openBlock as D, normalizeStyle as Qt, unref as P, renderSlot as pt, createVNode as G, createElementVNode as A, toDisplayString as K, TransitionGroup as ao, nextTick as rn, h as cn, mergeModels as kt, useModel as tt, computed as S, Fragment as Ne, renderList as It, createBlock as be, normalizeClass as Ot, withCtx as ce, Transition as Zt, createCommentVNode as U, ref as q, withDirectives as lo, withKeys as so, withModifiers as St, vModelText as uo, watch as je, createTextVNode as co } from "vue";
1
+ import { defineComponent as We, onBeforeMount as ro, onBeforeUnmount as io, resolveComponent as z, openBlock as D, createElementBlock as k, normalizeStyle as Qt, unref as P, createVNode as G, createElementVNode as A, toDisplayString as K, renderSlot as pt, TransitionGroup as ao, nextTick as rn, h as cn, useModel as tt, computed as S, Fragment as Ne, renderList as It, createBlock as be, normalizeClass as Ot, withCtx as ce, mergeModels as kt, Transition as Zt, createCommentVNode as U, ref as q, withDirectives as lo, withKeys as so, withModifiers as St, vModelText as uo, watch as je, createTextVNode as co } from "vue";
2
2
  import { u as fo } from "./global-loader-BuxFfehu.js";
3
3
  import { useCoreStore as po } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as In } from "pinia";
5
5
  import { useRoute as mo } from "vue-router";
6
- import { u as Lt, _ as an } from "./_plugin-vue_export-helper-C6QDExPN.js";
7
- import { W as xe, Q as ho, b as Ge } from "./report-B547gOvv.js";
6
+ import { u as Lt, _ as an } from "./_plugin-vue_export-helper-Bx7s49ra.js";
7
+ import { W as xe, Q as ho, b as Ge } from "./report-CcXsPATD.js";
8
8
  import { p as go, a as On } from "./index-CtZE4sab.js";
9
- import { d as Sn } from "./DateRangeSelect-CfV_WX9B.js";
10
- import { u as vo, F as bo, w as yo, d as Ut } from "./app-1dD87x1L.js";
11
- import { I as rt, b as Cn, c as Rn, g as Eo, a as _o } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DJ-LIqFg.js";
12
- import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
9
+ import { d as Sn } from "./DateRangeSelect-D5SGi6ca.js";
10
+ import { u as vo, F as bo, w as yo, d as Ut } from "./app-BQDKX7NB.js";
11
+ import { I as rt, b as Cn, c as Rn, g as Eo, a as _o } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DHrnVaog.js";
12
+ import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
13
13
  import { r as fn } from "./i18n-DbyciK4x.js";
14
14
  import { useSnackbar as To } from "@feedmepos/ui-library";
15
- import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CH2pf4XK.js";
15
+ import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BKNNtuyG.js";
16
16
  const wo = {
17
17
  key: 0,
18
18
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
@@ -35,7 +35,7 @@ const wo = {
35
35
  P(o) ? (D(), k("div", wo, [
36
36
  G(l, { size: "xl" }),
37
37
  A("span", xo, K(P(e)("report.common.isLoading")), 1)
38
- ])) : pt(i.$slots, "default", { key: 1 })
38
+ ])) : pt(i.$slots, "default", {}, void 0, void 0, 1)
39
39
  ], 4);
40
40
  };
41
41
  }
@@ -211,8 +211,8 @@ function ee(t, e, n, o, r) {
211
211
  }
212
212
  while (r = r.parentNode);
213
213
  if (o && t !== window) {
214
- var b = Je(r || t), y = b && b.a, g = b && b.d;
215
- b && (a /= g, l /= y, c /= y, f /= g, s = a + f, u = l + c);
214
+ var b = Je(r || t), y = b && b.a, h = b && b.d;
215
+ b && (a /= h, l /= y, c /= y, f /= h, s = a + f, u = l + c);
216
216
  }
217
217
  return {
218
218
  top: a,
@@ -358,8 +358,8 @@ function ko() {
358
358
  }
359
359
  var i = !1, a = 0;
360
360
  t.forEach(function(l) {
361
- var s = 0, u = l.target, f = u.fromRect, c = ee(u), E = u.prevFromRect, b = u.prevToRect, y = l.rect, g = Je(u, !0);
362
- g && (c.top -= g.f, c.left -= g.e), u.toRect = c, u.thisAnimationDuration && $t(E, c) && !$t(f, c) && // Make sure animatingRect is on line between toRect & fromRect
361
+ var s = 0, u = l.target, f = u.fromRect, c = ee(u), E = u.prevFromRect, b = u.prevToRect, y = l.rect, h = Je(u, !0);
362
+ h && (c.top -= h.f, c.left -= h.e), u.toRect = c, u.thisAnimationDuration && $t(E, c) && !$t(f, c) && // Make sure animatingRect is on line between toRect & fromRect
363
363
  (y.top - c.top) / (y.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = Mo(y, E, b, r.options)), $t(c, f) || (u.prevFromRect = f, u.prevToRect = c, s || (s = r.options.animation), r.animate(u, y, c, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
364
364
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
365
365
  }, s), u.thisAnimationDuration = s);
@@ -439,15 +439,15 @@ var Ke = [], Bt = {
439
439
  function Po(t) {
440
440
  var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, f = t.oldDraggableIndex, c = t.newDraggableIndex, E = t.originalEvent, b = t.putSortable, y = t.extraEventProperties;
441
441
  if (e = e || n && n[ge], !!e) {
442
- var g, L = e.options, H = "on" + o.charAt(0).toUpperCase() + o.substr(1);
443
- window.CustomEvent && !Le && !mt ? g = new CustomEvent(o, {
442
+ var h, L = e.options, H = "on" + o.charAt(0).toUpperCase() + o.substr(1);
443
+ window.CustomEvent && !Le && !mt ? h = new CustomEvent(o, {
444
444
  bubbles: !0,
445
445
  cancelable: !0
446
- }) : (g = document.createEvent("Event"), g.initEvent(o, !0, !0)), g.to = a || n, g.from = l || n, g.item = r || n, g.clone = i, g.oldIndex = s, g.newIndex = u, g.oldDraggableIndex = f, g.newDraggableIndex = c, g.originalEvent = E, g.pullMode = b ? b.lastPutMode : void 0;
446
+ }) : (h = document.createEvent("Event"), h.initEvent(o, !0, !0)), h.to = a || n, h.from = l || n, h.item = r || n, h.clone = i, h.oldIndex = s, h.newIndex = u, h.oldDraggableIndex = f, h.newDraggableIndex = c, h.originalEvent = E, h.pullMode = b ? b.lastPutMode : void 0;
447
447
  var N = Oe(Oe({}, y), ht.getEventProperties(o, e));
448
448
  for (var $ in N)
449
- g[$] = N[$];
450
- n && n.dispatchEvent(g), L[H] && L[H].call(e, g);
449
+ h[$] = N[$];
450
+ n && n.dispatchEvent(h), L[H] && L[H].call(e, h);
451
451
  }
452
452
  }
453
453
  var Vo = ["evt"], ue = function(e, n) {
@@ -498,14 +498,14 @@ function le(t) {
498
498
  newDraggableIndex: Ue
499
499
  }, t));
500
500
  }
501
- var m, W, w, V, ze, Tt, Y, $e, Ze, he, ct, Ue, vt, ie, Qe = !1, Rt = !1, Ft = [], He, we, Wt, Yt, bn, yn, it, qe, dt, ft = !1, bt = !1, wt, ae, Ht = [], Jt = !1, Nt = [], Mt = typeof document < "u", yt = Fn, En = mt || Le ? "cssFloat" : "float", Uo = Mt && !Co && !Fn && "draggable" in document.createElement("div"), Pn = function() {
501
+ var m, W, w, V, ze, Tt, Y, $e, Ze, he, ct, Ue, vt, ie, Qe = !1, Rt = !1, Ft = [], He, we, Wt, Yt, bn, yn, it, qe, dt, ft = !1, bt = !1, wt, ae, Ht = [], Jt = !1, Nt = [], Mt = typeof document < "u", yt = Fn, En = mt || Le ? "cssFloat" : "float", Uo = Mt && !Co && !Fn && "draggable" in document.createElement("div"), Pn = (function() {
502
502
  if (Mt) {
503
503
  if (Le)
504
504
  return !1;
505
505
  var t = document.createElement("x");
506
506
  return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
507
507
  }
508
- }(), Vn = function(e, n) {
508
+ })(), Vn = function(e, n) {
509
509
  var o = _(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = et(e, 0, n), a = et(e, 1, n), l = i && _(i), s = a && _(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + ee(i).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + ee(a).width;
510
510
  if (o.display === "flex")
511
511
  return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
@@ -817,7 +817,7 @@ T.prototype = /** @lends Sortable.prototype */
817
817
  },
818
818
  // Returns true - if no further action is needed (either inserted or another condition)
819
819
  _onDragOver: function(e) {
820
- var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = T.active, f = vt === s, c = l.sort, E = ie || u, b, y = this, g = !1;
820
+ var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = T.active, f = vt === s, c = l.sort, E = ie || u, b, y = this, h = !1;
821
821
  if (Jt) return;
822
822
  function L(I, te) {
823
823
  ue(I, y, Oe({
@@ -845,7 +845,7 @@ T.prototype = /** @lends Sortable.prototype */
845
845
  insertion: I
846
846
  }), I && (f ? u._hideClone() : u._showClone(y), y !== E && (me(m, ie ? ie.options.ghostClass : u.options.ghostClass, !1), me(m, l.ghostClass, !0)), ie !== y && y !== T.active ? ie = y : y === T.active && ie && (ie = null), E === y && (y._ignoreWhileAnimating = o), y.animateAll(function() {
847
847
  L("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
848
- }), y !== E && (E.animateAll(), E._ignoreWhileAnimating = null)), (o === m && !m.animated || o === n && !o.animated) && (qe = null), !l.dragoverBubble && !e.rootEl && o !== document && (m.parentNode[ge]._isOutsideThisEl(e.target), !I && Xe(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
848
+ }), y !== E && (E.animateAll(), E._ignoreWhileAnimating = null)), (o === m && !m.animated || o === n && !o.animated) && (qe = null), !l.dragoverBubble && !e.rootEl && o !== document && (m.parentNode[ge]._isOutsideThisEl(e.target), !I && Xe(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), h = !0;
849
849
  }
850
850
  function $() {
851
851
  he = ve(m), Ue = ve(m, l.draggable), le({
@@ -857,11 +857,11 @@ T.prototype = /** @lends Sortable.prototype */
857
857
  originalEvent: e
858
858
  });
859
859
  }
860
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = De(o, l.draggable, n, !0), L("dragOver"), T.eventCanceled) return g;
860
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = De(o, l.draggable, n, !0), L("dragOver"), T.eventCanceled) return h;
861
861
  if (m.contains(e.target) || o.animated && o.animatingX && o.animatingY || y._ignoreWhileAnimating === o)
862
862
  return N(!1);
863
863
  if (Rt = !1, u && !l.disabled && (f ? c || (a = W !== V) : ie === this || (this.lastPutMode = vt.checkPull(this, u, m, e)) && s.checkPut(this, u, m, e))) {
864
- if (b = this._getDirection(e, o) === "vertical", r = ee(m), L("dragOverValid"), T.eventCanceled) return g;
864
+ if (b = this._getDirection(e, o) === "vertical", r = ee(m), L("dragOverValid"), T.eventCanceled) return h;
865
865
  if (a)
866
866
  return W = V, H(), this._hideClone(), L("revert"), T.eventCanceled || (ze ? V.insertBefore(m, ze) : V.appendChild(m)), N(!0);
867
867
  var B = ln(n, l.draggable);
@@ -892,9 +892,9 @@ T.prototype = /** @lends Sortable.prototype */
892
892
  qe = o, dt = X;
893
893
  var Re = o.nextElementSibling, d = !1;
894
894
  d = X === 1;
895
- var v = Et(V, n, m, r, o, i, e, d);
896
- if (v !== !1)
897
- return (v === 1 || v === -1) && (d = v === 1), Jt = !0, setTimeout(Ho, 30), H(), d && !Re ? n.appendChild(m) : o.parentNode.insertBefore(m, d ? Re : o), fe && Ln(fe, 0, Ce - fe.scrollTop), W = m.parentNode, de !== void 0 && !bt && (wt = Math.abs(de - ee(o)[ye])), $(), N(!0);
895
+ var g = Et(V, n, m, r, o, i, e, d);
896
+ if (g !== !1)
897
+ return (g === 1 || g === -1) && (d = g === 1), Jt = !0, setTimeout(Ho, 30), H(), d && !Re ? n.appendChild(m) : o.parentNode.insertBefore(m, d ? Re : o), fe && Ln(fe, 0, Ce - fe.scrollTop), W = m.parentNode, de !== void 0 && !bt && (wt = Math.abs(de - ee(o)[ye])), $(), N(!0);
898
898
  }
899
899
  if (n.contains(m))
900
900
  return N(!1);
@@ -1224,9 +1224,9 @@ var jt = kn(function(t, e, n, o) {
1224
1224
  tn !== n && (tn = n, Dt(), at = e.scroll, f = e.scrollFn, at === !0 && (at = Be(n, !0)));
1225
1225
  var c = 0, E = at;
1226
1226
  do {
1227
- var b = E, y = ee(b), g = y.top, L = y.bottom, H = y.left, N = y.right, $ = y.width, B = y.height, M = void 0, X = void 0, de = b.scrollWidth, Se = b.scrollHeight, oe = _(b), ye = b.scrollLeft, fe = b.scrollTop;
1227
+ var b = E, y = ee(b), h = y.top, L = y.bottom, H = y.left, N = y.right, $ = y.width, B = y.height, M = void 0, X = void 0, de = b.scrollWidth, Se = b.scrollHeight, oe = _(b), ye = b.scrollLeft, fe = b.scrollTop;
1228
1228
  b === s ? (M = $ < de && (oe.overflowX === "auto" || oe.overflowX === "scroll" || oe.overflowX === "visible"), X = B < Se && (oe.overflowY === "auto" || oe.overflowY === "scroll" || oe.overflowY === "visible")) : (M = $ < de && (oe.overflowX === "auto" || oe.overflowX === "scroll"), X = B < Se && (oe.overflowY === "auto" || oe.overflowY === "scroll"));
1229
- var Ce = M && (Math.abs(N - r) <= a && ye + $ < de) - (Math.abs(H - r) <= a && !!ye), Q = X && (Math.abs(L - i) <= a && fe + B < Se) - (Math.abs(g - i) <= a && !!fe);
1229
+ var Ce = M && (Math.abs(N - r) <= a && ye + $ < de) - (Math.abs(H - r) <= a && !!ye), Q = X && (Math.abs(L - i) <= a && fe + B < Se) - (Math.abs(h - i) <= a && !!fe);
1230
1230
  if (!j[c])
1231
1231
  for (var Ee = 0; Ee <= c; Ee++)
1232
1232
  j[Ee] || (j[Ee] = {});
@@ -1924,8 +1924,8 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
1924
1924
  }),
1925
1925
  emits: ["update:modelValue"],
1926
1926
  setup(t) {
1927
- function e(h) {
1928
- switch (h) {
1927
+ function e(v) {
1928
+ switch (v) {
1929
1929
  case "FUNCTION":
1930
1930
  return r("report.formulaInput.badge.function");
1931
1931
  case "FIELD":
@@ -1934,8 +1934,8 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
1934
1934
  return r("report.formulaInput.badge.keyword");
1935
1935
  }
1936
1936
  }
1937
- function n(h) {
1938
- switch (h) {
1937
+ function n(v) {
1938
+ switch (v) {
1939
1939
  case "FIELD":
1940
1940
  return "bg-fm-color-primary text-fm-color-typo-white";
1941
1941
  case "FUNCTION":
@@ -1945,17 +1945,17 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
1945
1945
  }
1946
1946
  }
1947
1947
  const o = tt(t, "modelValue"), { t: r } = Lt();
1948
- function i(h) {
1949
- const O = [h.toLowerCase(), e(h).toLowerCase()];
1950
- return h === "KEYWORD" && O.push("expr", "expression"), O;
1948
+ function i(v) {
1949
+ const O = [v.toLowerCase(), e(v).toLowerCase()];
1950
+ return v === "KEYWORD" && O.push("expr", "expression"), O;
1951
1951
  }
1952
- function a(h, O) {
1953
- return h ? i(O).some((x) => x.includes(h)) : !1;
1952
+ function a(v, O) {
1953
+ return v ? i(O).some((x) => x.includes(v)) : !1;
1954
1954
  }
1955
- function l(h, O, x) {
1956
- return h ? a(h, O) || x.some((F) => F == null ? void 0 : F.toLowerCase().includes(h)) : !0;
1955
+ function l(v, O, x) {
1956
+ return v ? a(v, O) || x.some((F) => F == null ? void 0 : F.toLowerCase().includes(v)) : !0;
1957
1957
  }
1958
- const s = t, u = q(null), f = q(null), c = q(!1), E = q({ top: 0, left: 0 }), b = q(0), y = q(!1), g = q(null), L = S(() => s.formulaField), H = S(() => [
1958
+ const s = t, u = q(null), f = q(null), c = q(!1), E = q({ top: 0, left: 0 }), b = q(0), y = q(!1), h = q(null), L = S(() => s.formulaField), H = S(() => [
1959
1959
  {
1960
1960
  value: "AVG",
1961
1961
  description: r("report.formulaInput.functionDescription.avg"),
@@ -2345,7 +2345,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2345
2345
  ...s.functionList || []
2346
2346
  ]), M = S(
2347
2347
  () => B.value.filter(
2348
- (h) => !h.allowedFields || h.allowedFields.length === 0 || h.allowedFields.includes(L.value)
2348
+ (v) => !v.allowedFields || v.allowedFields.length === 0 || v.allowedFields.includes(L.value)
2349
2349
  )
2350
2350
  ), X = /* @__PURE__ */ new Set([
2351
2351
  "LOWER",
@@ -2354,32 +2354,32 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2354
2354
  "DATE_TRUNC",
2355
2355
  "EXTRACT",
2356
2356
  "TO_TIMESTAMP"
2357
- ]), de = S(() => v.value ? X.has(v.value.value.toUpperCase()) : !1), Se = S(() => {
2358
- const h = o.value || "";
2359
- return Math.max(h.split(`
2357
+ ]), de = S(() => g.value ? X.has(g.value.value.toUpperCase()) : !1), Se = S(() => {
2358
+ const v = o.value || "";
2359
+ return Math.max(v.split(`
2360
2360
  `).length, 1);
2361
- }), oe = S(() => Array.from({ length: Se.value }, (h, O) => O + 1));
2362
- function ye(h, O) {
2361
+ }), oe = S(() => Array.from({ length: Se.value }, (v, O) => O + 1));
2362
+ function ye(v, O) {
2363
2363
  let x = O;
2364
- for (; x > 0 && /\w/.test(h[x - 1]); ) x--;
2364
+ for (; x > 0 && /\w/.test(v[x - 1]); ) x--;
2365
2365
  let F = O;
2366
- for (; F < h.length && /\w/.test(h[F]); ) F++;
2366
+ for (; F < v.length && /\w/.test(v[F]); ) F++;
2367
2367
  return { start: x, end: F };
2368
2368
  }
2369
2369
  const fe = S(() => {
2370
- const h = o.value || "", O = b.value;
2371
- if (!h) return "";
2372
- const { start: x, end: F } = ye(h, O);
2373
- return h.substring(x, F);
2370
+ const v = o.value || "", O = b.value;
2371
+ if (!v) return "";
2372
+ const { start: x, end: F } = ye(v, O);
2373
+ return v.substring(x, F);
2374
2374
  }), Ce = S(() => fe.value.trim().length > 0);
2375
2375
  S(
2376
2376
  () => Ce.value || Q.value.insideParens
2377
2377
  );
2378
2378
  const Q = S(() => {
2379
2379
  var re;
2380
- const h = o.value || "", O = b.value, x = h.substring(0, O), F = [];
2380
+ const v = o.value || "", O = b.value, x = v.substring(0, O), F = [];
2381
2381
  for (let p = 0; p < x.length; p++)
2382
- h[p] === "(" ? F.push(p) : h[p] === ")" && F.pop();
2382
+ v[p] === "(" ? F.push(p) : v[p] === ")" && F.pop();
2383
2383
  const se = F.length > 0 ? F[F.length - 1] : -1;
2384
2384
  if (se !== -1) {
2385
2385
  const p = x.substring(se + 1), Te = x.substring(0, se).trimEnd(), Pe = Te.match(/(\w+)$/), Ve = Pe ? Pe[1].toUpperCase() : "", ot = Te.match(/(\w+)\([^()]*\)\s+OVER$/i), Vt = Ve === "OVER" ? ((re = ot == null ? void 0 : ot[1]) == null ? void 0 : re.toUpperCase()) || "OVER" : Ve;
@@ -2438,13 +2438,13 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2438
2438
  aliases: ["::json"]
2439
2439
  }
2440
2440
  ]), Re = S(() => {
2441
- const h = o.value || "", O = b.value, { start: x } = ye(h, O), F = h.substring(0, x);
2441
+ const v = o.value || "", O = b.value, { start: x } = ye(v, O), F = v.substring(0, x);
2442
2442
  return /::\s*$/.test(F);
2443
2443
  }), d = S(() => {
2444
- const h = fe.value.toLowerCase(), O = de.value;
2444
+ const v = fe.value.toLowerCase(), O = de.value;
2445
2445
  if (Re.value)
2446
2446
  return Ee.value.filter(
2447
- (p) => l(h, "KEYWORD", [
2447
+ (p) => l(v, "KEYWORD", [
2448
2448
  p.label,
2449
2449
  p.value,
2450
2450
  ...p.aliases || []
@@ -2458,7 +2458,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2458
2458
  cursorOffset: p.cursorOffset
2459
2459
  }));
2460
2460
  const x = s.fieldDataList.filter(
2461
- (p) => l(h, "FIELD", [
2461
+ (p) => l(v, "FIELD", [
2462
2462
  p.label,
2463
2463
  p.value,
2464
2464
  p.badge,
@@ -2471,7 +2471,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2471
2471
  badge: p.badge,
2472
2472
  meta: p.meta
2473
2473
  })), F = O ? [] : M.value.filter(
2474
- (p) => l(h, "FUNCTION", [
2474
+ (p) => l(v, "FUNCTION", [
2475
2475
  p.value,
2476
2476
  ...p.aliases || []
2477
2477
  ])
@@ -2483,7 +2483,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2483
2483
  insertText: p.insertText,
2484
2484
  cursorOffset: p.cursorOffset
2485
2485
  })), se = O ? [] : $.value.filter(
2486
- (p) => l(h, "KEYWORD", [
2486
+ (p) => l(v, "KEYWORD", [
2487
2487
  p.label,
2488
2488
  p.value,
2489
2489
  ...p.aliases || []
@@ -2496,32 +2496,32 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2496
2496
  insertText: p.insertText,
2497
2497
  cursorOffset: p.cursorOffset
2498
2498
  })), re = Q.value.insideParens && Q.value.functionName === "OVER" ? N.value.filter(
2499
- (p) => l(h, "KEYWORD", [p.label])
2499
+ (p) => l(v, "KEYWORD", [p.label])
2500
2500
  ).map((p) => ({
2501
2501
  ...p,
2502
2502
  type: "KEYWORD"
2503
2503
  /* Keyword */
2504
2504
  })) : [];
2505
2505
  return [...F, ...se, ...re, ...x];
2506
- }), v = S(() => {
2506
+ }), g = S(() => {
2507
2507
  if (!Q.value.insideParens) return null;
2508
- const h = Q.value.guideFunctionName;
2509
- return h && M.value.find((O) => O.value.toUpperCase() === h) || null;
2510
- }), I = S(() => v.value ? "FUNCTION" : void 0), te = S(
2511
- () => d.value.find((h) => h.value === g.value)
2508
+ const v = Q.value.guideFunctionName;
2509
+ return v && M.value.find((O) => O.value.toUpperCase() === v) || null;
2510
+ }), I = S(() => g.value ? "FUNCTION" : void 0), te = S(
2511
+ () => d.value.find((v) => v.value === h.value)
2512
2512
  ), ne = S(() => c.value && d.value.length > 0), pe = S(
2513
- () => c.value && Q.value.insideParens && !Q.value.hasText && v.value !== null
2513
+ () => c.value && Q.value.insideParens && !Q.value.hasText && g.value !== null
2514
2514
  ), Ye = S(
2515
2515
  () => c.value && (pe.value || ne.value)
2516
2516
  );
2517
- function Me(h) {
2518
- const O = h.getBoundingClientRect(), x = window.getComputedStyle(h), F = parseFloat(x.lineHeight) || 24, se = h.value.substring(0, h.selectionStart), re = document.createElement("div");
2517
+ function Me(v) {
2518
+ const O = v.getBoundingClientRect(), x = window.getComputedStyle(v), F = parseFloat(x.lineHeight) || 24, se = v.value.substring(0, v.selectionStart), re = document.createElement("div");
2519
2519
  re.style.cssText = `
2520
2520
  position: fixed;
2521
2521
  top: ${O.top}px;
2522
2522
  left: ${O.left}px;
2523
- width: ${h.clientWidth}px;
2524
- height: ${h.clientHeight}px;
2523
+ width: ${v.clientWidth}px;
2524
+ height: ${v.clientHeight}px;
2525
2525
  padding: ${x.padding};
2526
2526
  border: ${x.border};
2527
2527
  box-sizing: ${x.boxSizing};
@@ -2545,7 +2545,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2545
2545
  pointer-events: none;
2546
2546
  `, re.textContent = se;
2547
2547
  const p = document.createElement("span");
2548
- p.textContent = "​", re.appendChild(p), document.body.appendChild(re), re.scrollTop = h.scrollTop, re.scrollLeft = h.scrollLeft;
2548
+ p.textContent = "​", re.appendChild(p), document.body.appendChild(re), re.scrollTop = v.scrollTop, re.scrollLeft = v.scrollLeft;
2549
2549
  const Te = p.getBoundingClientRect();
2550
2550
  document.body.removeChild(re);
2551
2551
  const Pe = 8, Ve = 12, ot = 320, Vt = 360, eo = Te.top + F + Pe, to = Te.left + Pe, no = window.innerHeight - Vt - Ve, oo = window.innerWidth - ot - Ve;
@@ -2565,17 +2565,17 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2565
2565
  function _e() {
2566
2566
  u.value && (b.value = u.value.selectionStart, E.value = Me(u.value));
2567
2567
  }
2568
- function Fe(h) {
2569
- const O = h.type === "FIELD" ? h.value : h.insertText || (h.type === "FUNCTION" ? `${h.value}()` : h.value), x = o.value || "", F = b.value, { start: se, end: re } = ye(x, F);
2568
+ function Fe(v) {
2569
+ const O = v.type === "FIELD" ? v.value : v.insertText || (v.type === "FUNCTION" ? `${v.value}()` : v.value), x = o.value || "", F = b.value, { start: se, end: re } = ye(x, F);
2570
2570
  o.value = x.substring(0, se) + O + x.substring(re), rn(() => {
2571
2571
  var Te, Pe;
2572
2572
  (Te = u.value) == null || Te.focus();
2573
- const p = h.type === "FUNCTION" || h.type === "KEYWORD" ? se + (h.cursorOffset ?? h.value.length + 1) : se + O.length;
2573
+ const p = v.type === "FUNCTION" || v.type === "KEYWORD" ? se + (v.cursorOffset ?? v.value.length + 1) : se + O.length;
2574
2574
  (Pe = u.value) == null || Pe.setSelectionRange(p, p), c.value = !0, _e();
2575
2575
  });
2576
2576
  }
2577
- function Z(h) {
2578
- g.value = h;
2577
+ function Z(v) {
2578
+ h.value = v;
2579
2579
  }
2580
2580
  function Zn() {
2581
2581
  !ne.value || !te.value || Fe(te.value);
@@ -2583,7 +2583,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2583
2583
  function Jn() {
2584
2584
  u.value && f.value && (f.value.scrollTop = u.value.scrollTop);
2585
2585
  }
2586
- return (h, O) => {
2586
+ return (v, O) => {
2587
2587
  var re;
2588
2588
  const x = z("FmCircularProgress"), F = z("FmChip"), se = z("FmMenuDivider");
2589
2589
  return D(), k("div", xr, [
@@ -2606,7 +2606,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2606
2606
  ref_key: "textareaRef",
2607
2607
  ref: u,
2608
2608
  "onUpdate:modelValue": O[0] || (O[0] = (p) => o.value = p),
2609
- placeholder: h.placeholder,
2609
+ placeholder: t.placeholder,
2610
2610
  class: "fm-typo-en-body-lg-400 px-3 py-1 w-full resize-none h-full min-h-0 border-0 flex-1 leading-normal focus:outline-none fm-color-typo-primary",
2611
2611
  onFocus: nt,
2612
2612
  onBlur: Pt,
@@ -2620,12 +2620,12 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2620
2620
  ])
2621
2621
  ], 4),
2622
2622
  A("div", Ir, [
2623
- h.isValidating ? (D(), be(x, {
2623
+ t.isValidating ? (D(), be(x, {
2624
2624
  key: 0,
2625
2625
  size: "md"
2626
2626
  })) : U("", !0),
2627
- !h.isValidating && h.validationResult && !h.validationResult.valid ? (D(), k("p", Or, K((re = h.validationResult.error) == null ? void 0 : re.message), 1)) : U("", !0),
2628
- !h.isValidating && h.validationResult && h.validationResult.valid ? (D(), k("p", Sr, K(h.validFormulaLabel), 1)) : U("", !0)
2627
+ !t.isValidating && t.validationResult && !t.validationResult.valid ? (D(), k("p", Or, K((re = t.validationResult.error) == null ? void 0 : re.message), 1)) : U("", !0),
2628
+ !t.isValidating && t.validationResult && t.validationResult.valid ? (D(), k("p", Sr, K(t.validFormulaLabel), 1)) : U("", !0)
2629
2629
  ]),
2630
2630
  Ye.value ? (D(), k("div", {
2631
2631
  key: 0,
@@ -2637,7 +2637,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2637
2637
  }, [
2638
2638
  pe.value ? (D(), k("div", Cr, [
2639
2639
  A("div", Rr, [
2640
- A("p", Fr, K(v.value.value) + "() ", 1),
2640
+ A("p", Fr, K(g.value.value) + "() ", 1),
2641
2641
  I.value ? (D(), be(F, {
2642
2642
  key: 0,
2643
2643
  compact: !0,
@@ -2649,13 +2649,13 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2649
2649
  _: 1
2650
2650
  }, 8, ["class"])) : U("", !0)
2651
2651
  ]),
2652
- A("p", Ar, K(v.value.description), 1),
2653
- v.value.example ? (D(), k(Ne, { key: 0 }, [
2652
+ A("p", Ar, K(g.value.description), 1),
2653
+ g.value.example ? (D(), k(Ne, { key: 0 }, [
2654
2654
  A("p", kr, K(P(r)("report.formulaInput.section.example")), 1),
2655
- A("p", Lr, K(v.value.example), 1),
2656
- v.value.exampleResult ? (D(), k(Ne, { key: 0 }, [
2655
+ A("p", Lr, K(g.value.example), 1),
2656
+ g.value.exampleResult ? (D(), k(Ne, { key: 0 }, [
2657
2657
  A("p", Mr, K(P(r)("report.formulaInput.section.result")), 1),
2658
- A("p", Pr, K(v.value.exampleResult), 1)
2658
+ A("p", Pr, K(g.value.exampleResult), 1)
2659
2659
  ], 64)) : U("", !0)
2660
2660
  ], 64)) : U("", !0)
2661
2661
  ])) : U("", !0),
@@ -2665,7 +2665,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2665
2665
  key: p.value,
2666
2666
  class: Ot([
2667
2667
  "flex items-start gap-2 px-3 py-1 cursor-pointer transition-colors fm-typo-en-body-lg-400",
2668
- g.value === p.value ? "bg-fm-color-primary-50 ring-1 ring-inset ring-fm-color-primary/20" : "hover:bg-fm-color-primary-50"
2668
+ h.value === p.value ? "bg-fm-color-primary-50 ring-1 ring-inset ring-fm-color-primary/20" : "hover:bg-fm-color-primary-50"
2669
2669
  ]),
2670
2670
  onMousedown: St((Te) => Fe(p), ["prevent"]),
2671
2671
  onMouseenter: (Te) => Z(p.value),
@@ -2690,9 +2690,9 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2690
2690
  compact: !0,
2691
2691
  class: "shrink-0 bg-fm-color-system-info-100 text-fm-color-typo-info"
2692
2692
  }, {
2693
- default: ce(() => O[2] || (O[2] = [
2693
+ default: ce(() => [...O[2] || (O[2] = [
2694
2694
  A("p", { class: "fm-typo-en-body-sm-400" }, "FUNCTION", -1)
2695
- ])),
2695
+ ])]),
2696
2696
  _: 1
2697
2697
  })) : U("", !0),
2698
2698
  p.type === "KEYWORD" ? (D(), be(F, {
@@ -2700,9 +2700,9 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2700
2700
  compact: !0,
2701
2701
  class: "shrink-0 text-fm-color-typo-secondary"
2702
2702
  }, {
2703
- default: ce(() => O[3] || (O[3] = [
2703
+ default: ce(() => [...O[3] || (O[3] = [
2704
2704
  A("p", { class: "fm-typo-en-body-sm-400" }, "EXPR", -1)
2705
- ])),
2705
+ ])]),
2706
2706
  _: 1
2707
2707
  })) : U("", !0)
2708
2708
  ]),
@@ -2731,28 +2731,28 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2731
2731
  function jr(t) {
2732
2732
  const { getDataFormula: e, getDisplayFormula: n, getIsAdvance: o } = t, r = t.getAllowedFields || (() => []), i = t.getDatasource || (() => ho.Postgres), a = t.immediate ?? !1, l = q(), s = q(), u = q(!1), f = q(!1);
2733
2733
  function c() {
2734
- return r().map((g) => `${g.fieldId}:${g.type}`).sort().join("|");
2734
+ return r().map((h) => `${h.fieldId}:${h.type}`).sort().join("|");
2735
2735
  }
2736
- function E(g) {
2736
+ function E(h) {
2737
2737
  let L = 0;
2738
2738
  const H = Sn(
2739
2739
  async (M, X) => {
2740
2740
  if (!(!o() || X !== L)) {
2741
2741
  if (!M) {
2742
- g.setValidation(void 0);
2742
+ h.setValidation(void 0);
2743
2743
  return;
2744
2744
  }
2745
2745
  try {
2746
2746
  const de = await zr(M, i(), r());
2747
2747
  if (!o() || X !== L)
2748
2748
  return;
2749
- g.setValidation(de);
2749
+ h.setValidation(de);
2750
2750
  } catch {
2751
2751
  if (!o() || X !== L)
2752
2752
  return;
2753
- g.setValidation(void 0);
2753
+ h.setValidation(void 0);
2754
2754
  } finally {
2755
- X === L && g.setIsValidating(!1);
2755
+ X === L && h.setIsValidating(!1);
2756
2756
  }
2757
2757
  }
2758
2758
  },
@@ -2762,20 +2762,20 @@ function jr(t) {
2762
2762
  L += 1;
2763
2763
  const X = L;
2764
2764
  if (!o()) {
2765
- H.cancel(), g.setIsValidating(!1), g.setValidation(void 0);
2765
+ H.cancel(), h.setIsValidating(!1), h.setValidation(void 0);
2766
2766
  return;
2767
2767
  }
2768
2768
  if (!M) {
2769
- H.cancel(), g.setValidation(void 0), g.setIsValidating(!1);
2769
+ H.cancel(), h.setValidation(void 0), h.setIsValidating(!1);
2770
2770
  return;
2771
2771
  }
2772
- g.setIsValidating(!0), H(M, X);
2772
+ h.setIsValidating(!0), H(M, X);
2773
2773
  }
2774
2774
  function $() {
2775
- L += 1, H.cancel(), g.setValidation(void 0), g.setIsValidating(!1);
2775
+ L += 1, H.cancel(), h.setValidation(void 0), h.setIsValidating(!1);
2776
2776
  }
2777
2777
  function B() {
2778
- N(g.getFormula());
2778
+ N(h.getFormula());
2779
2779
  }
2780
2780
  return {
2781
2781
  trigger: N,
@@ -2785,37 +2785,37 @@ function jr(t) {
2785
2785
  }
2786
2786
  const b = E({
2787
2787
  getFormula: e,
2788
- setValidation: (g) => {
2789
- l.value = g;
2788
+ setValidation: (h) => {
2789
+ l.value = h;
2790
2790
  },
2791
- setIsValidating: (g) => {
2792
- u.value = g;
2791
+ setIsValidating: (h) => {
2792
+ u.value = h;
2793
2793
  }
2794
2794
  }), y = E({
2795
2795
  getFormula: n,
2796
- setValidation: (g) => {
2797
- s.value = g;
2796
+ setValidation: (h) => {
2797
+ s.value = h;
2798
2798
  },
2799
- setIsValidating: (g) => {
2800
- f.value = g;
2799
+ setIsValidating: (h) => {
2800
+ f.value = h;
2801
2801
  }
2802
2802
  });
2803
2803
  return je(
2804
2804
  () => e(),
2805
- (g) => {
2806
- b.trigger(g);
2805
+ (h) => {
2806
+ b.trigger(h);
2807
2807
  },
2808
2808
  { immediate: a }
2809
2809
  ), je(
2810
2810
  () => n(),
2811
- (g) => {
2812
- y.trigger(g);
2811
+ (h) => {
2812
+ y.trigger(h);
2813
2813
  },
2814
2814
  { immediate: a }
2815
2815
  ), je(
2816
2816
  () => o(),
2817
- (g) => {
2818
- g ? (b.revalidate(), y.revalidate()) : (b.clearAndCancel(), y.clearAndCancel());
2817
+ (h) => {
2818
+ h ? (b.revalidate(), y.revalidate()) : (b.clearAndCancel(), y.clearAndCancel());
2819
2819
  },
2820
2820
  { immediate: a }
2821
2821
  ), je(
@@ -2880,36 +2880,36 @@ const Kr = { class: "grow" }, qr = {
2880
2880
  }
2881
2881
  return (s, u) => {
2882
2882
  const f = z("FmSelect"), c = z("FmTextField"), E = z("FmTimePicker"), b = z("FmButton");
2883
- return D(!0), k(Ne, null, It(new Array(e.value.length !== 0 ? e.value.length : 1), (y, g) => {
2883
+ return D(!0), k(Ne, null, It(new Array(e.value.length !== 0 ? e.value.length : 1), (y, h) => {
2884
2884
  var L, H, N, $, B;
2885
2885
  return D(), k("div", {
2886
- key: g,
2886
+ key: h,
2887
2887
  class: "flex flex-row align-center gap-2 w-full"
2888
2888
  }, [
2889
2889
  A("div", Kr, [
2890
2890
  ((L = n.config) == null ? void 0 : L.type) === P(rt).Select ? (D(), be(f, {
2891
2891
  key: 0,
2892
- "model-value": e.value[g],
2892
+ "model-value": e.value[h],
2893
2893
  items: n.config.options,
2894
- "onUpdate:modelValue": (M) => a(g, M)
2894
+ "onUpdate:modelValue": (M) => a(h, M)
2895
2895
  }, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : ((H = n.config) == null ? void 0 : H.type) === P(rt).TextField ? (D(), be(c, {
2896
2896
  key: 1,
2897
- "model-value": e.value[g],
2897
+ "model-value": e.value[h],
2898
2898
  type: ((N = n.config) == null ? void 0 : N.dataType) === "number" ? "number" : "text",
2899
- "helper-text": o.value[g] || void 0,
2899
+ "helper-text": o.value[h] || void 0,
2900
2900
  "helper-state": "error",
2901
- "onUpdate:modelValue": (M) => a(g, M)
2901
+ "onUpdate:modelValue": (M) => a(h, M)
2902
2902
  }, null, 8, ["model-value", "type", "helper-text", "onUpdate:modelValue"])) : (($ = n.config) == null ? void 0 : $.type) === P(rt).Timestamp ? (D(), k("div", qr, [
2903
2903
  G(E, {
2904
- "model-value": r(e.value[g]),
2905
- "onUpdate:modelValue": (M) => a(g, M)
2904
+ "model-value": r(e.value[h]),
2905
+ "onUpdate:modelValue": (M) => a(h, M)
2906
2906
  }, null, 8, ["model-value", "onUpdate:modelValue"])
2907
2907
  ])) : U("", !0)
2908
2908
  ]),
2909
2909
  ((B = n.config) == null ? void 0 : B.fixed) === !1 ? (D(), k("div", Qr, [
2910
2910
  G(b, {
2911
- icon: g === 0 ? "add" : "remove",
2912
- onClick: (M) => l(g)
2911
+ icon: h === 0 ? "add" : "remove",
2912
+ onClick: (M) => l(h)
2913
2913
  }, null, 8, ["icon", "onClick"])
2914
2914
  ])) : U("", !0)
2915
2915
  ]);
@@ -3009,37 +3009,37 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3009
3009
  emits: ["update:modelValue"],
3010
3010
  setup(t) {
3011
3011
  const { t: e, te: n } = Lt(), o = tt(t, "modelValue"), r = t, i = S(() => e(`report.section.filter.${r.label}`)), a = q(!1), l = To(), s = S(
3012
- () => o.value.map((d, v) => {
3012
+ () => o.value.map((d, g) => {
3013
3013
  const I = r.options.find(
3014
3014
  (ne) => ne.schemaName === d.schemaName && ne.name === d.name
3015
3015
  ), te = (I == null ? void 0 : I.labels) || [d.schemaName, d.name];
3016
3016
  return {
3017
- index: v,
3017
+ index: g,
3018
3018
  label: te.map((ne) => fn(e, n, ne, "other")).join(" "),
3019
3019
  value: d
3020
3020
  };
3021
3021
  })
3022
3022
  ), u = q(o.value.length > 0 ? 0 : void 0);
3023
3023
  function f(d) {
3024
- var v;
3025
- a.value = !0, g.value = [], c.value = d != null && d.value ? JSON.parse(JSON.stringify(d.value)) : void 0, u.value = d == null ? void 0 : d.index, E.value = !!((v = c.value) != null && v.dataFormula), B();
3024
+ var g;
3025
+ a.value = !0, h.value = [], c.value = d != null && d.value ? JSON.parse(JSON.stringify(d.value)) : void 0, u.value = d == null ? void 0 : d.index, E.value = !!((g = c.value) != null && g.dataFormula), B();
3026
3026
  }
3027
3027
  const c = q(void 0), E = q(!1), b = q(void 0), y = S(
3028
3028
  () => r.options.find(
3029
3029
  (d) => {
3030
- var v, I;
3031
- return d.schemaName === ((v = c.value) == null ? void 0 : v.schemaName) && d.name === ((I = c.value) == null ? void 0 : I.name);
3030
+ var g, I;
3031
+ return d.schemaName === ((g = c.value) == null ? void 0 : g.schemaName) && d.name === ((I = c.value) == null ? void 0 : I.name);
3032
3032
  }
3033
3033
  ) ?? {}
3034
- ), g = q([]);
3034
+ ), h = q([]);
3035
3035
  function L(d) {
3036
- var v;
3037
- return (v = g.value.find((I) => I.option === d)) == null ? void 0 : v.value;
3036
+ var g;
3037
+ return (g = h.value.find((I) => I.option === d)) == null ? void 0 : g.value;
3038
3038
  }
3039
3039
  const H = Sn(
3040
- (d, v) => {
3041
- const I = g.value.find((te) => te.option === d);
3042
- I ? I.value = v : g.value.push({ option: d, value: v });
3040
+ (d, g) => {
3041
+ const I = h.value.find((te) => te.option === d);
3042
+ I ? I.value = g : h.value.push({ option: d, value: g });
3043
3043
  },
3044
3044
  300
3045
3045
  );
@@ -3051,8 +3051,8 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3051
3051
  var d;
3052
3052
  return (d = c.value) == null ? void 0 : d.values;
3053
3053
  }],
3054
- ([d, v]) => {
3055
- d !== void 0 && Array.isArray(v) && H(d, v);
3054
+ ([d, g]) => {
3055
+ d !== void 0 && Array.isArray(g) && H(d, g);
3056
3056
  },
3057
3057
  { deep: !0 }
3058
3058
  ), je(
@@ -3060,16 +3060,16 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3060
3060
  var d;
3061
3061
  return (d = c.value) == null ? void 0 : d.option;
3062
3062
  },
3063
- (d, v) => {
3064
- v !== void 0 && d !== v && c.value && (B(), N(d), $());
3063
+ (d, g) => {
3064
+ g !== void 0 && d !== g && c.value && (B(), N(d), $());
3065
3065
  }
3066
3066
  ), je(
3067
3067
  () => {
3068
3068
  var d;
3069
3069
  return (d = c.value) == null ? void 0 : d.operator;
3070
3070
  },
3071
- (d, v) => {
3072
- d !== v && y.value && c.value && (B(), N(c.value.option), $());
3071
+ (d, g) => {
3072
+ d !== g && y.value && c.value && (B(), N(c.value.option), $());
3073
3073
  },
3074
3074
  {
3075
3075
  deep: !0
@@ -3078,10 +3078,10 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3078
3078
  function N(d) {
3079
3079
  var pe;
3080
3080
  if (!c.value || !b.value) return;
3081
- const v = u.value !== void 0 && o.value[u.value] && Array.isArray(o.value[u.value].values) ? [...o.value[u.value].values] : [], I = L(d);
3081
+ const g = u.value !== void 0 && o.value[u.value] && Array.isArray(o.value[u.value].values) ? [...o.value[u.value].values] : [], I = L(d);
3082
3082
  let te;
3083
3083
  const ne = u.value !== void 0 ? (pe = o.value[u.value]) == null ? void 0 : pe.option : void 0;
3084
- Array.isArray(I) ? te = I : v.length > 0 && d === ne ? te = v : te = [b.value.default], c.value = {
3084
+ Array.isArray(I) ? te = I : g.length > 0 && d === ne ? te = g : te = [b.value.default], c.value = {
3085
3085
  ...c.value,
3086
3086
  values: te
3087
3087
  };
@@ -3106,8 +3106,8 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3106
3106
  }));
3107
3107
  }
3108
3108
  function M(d) {
3109
- var v, I;
3110
- (d.schemaName !== ((v = c.value) == null ? void 0 : v.schemaName) || d.name !== ((I = c.value) == null ? void 0 : I.name)) && (c.value = {
3109
+ var g, I;
3110
+ (d.schemaName !== ((g = c.value) == null ? void 0 : g.schemaName) || d.name !== ((I = c.value) == null ? void 0 : I.name)) && (c.value = {
3111
3111
  schemaName: d.schemaName,
3112
3112
  name: d.name,
3113
3113
  operator: d.filterOperators[0],
@@ -3116,11 +3116,11 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3116
3116
  }, B(), N(c.value.option), $());
3117
3117
  }
3118
3118
  function X() {
3119
- var v, I, te;
3119
+ var g, I, te;
3120
3120
  const d = [...s.value.map((ne) => ne.value)];
3121
3121
  if (c.value) {
3122
3122
  E.value || (c.value.dataFormula = void 0);
3123
- const ne = Cn((v = c.value) == null ? void 0 : v.option), pe = Rn((I = c.value) == null ? void 0 : I.option), Ye = (te = c.value.values) == null ? void 0 : te.map(
3123
+ const ne = Cn((g = c.value) == null ? void 0 : g.option), pe = Rn((I = c.value) == null ? void 0 : I.option), Ye = (te = c.value.values) == null ? void 0 : te.map(
3124
3124
  (Me, nt) => typeof Me == "number" && !Re(Me, ne, pe) ? nt : null
3125
3125
  ).filter((Me) => Me !== null);
3126
3126
  if (!c.value.values || Ye.length > 0) {
@@ -3132,8 +3132,8 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3132
3132
  a.value = !1;
3133
3133
  }
3134
3134
  function de(d) {
3135
- const v = [...s.value.map((I) => I.value)];
3136
- v.splice(d, 1), o.value = v, a.value = !1;
3135
+ const g = [...s.value.map((I) => I.value)];
3136
+ g.splice(d, 1), o.value = g, a.value = !1;
3137
3137
  }
3138
3138
  const Se = S(
3139
3139
  () => r.options.map((d) => ({
@@ -3162,15 +3162,15 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3162
3162
  getIsAdvance: () => E.value,
3163
3163
  getAllowedFields: () => fe.value
3164
3164
  }), Ee = S(() => ei(e));
3165
- function Re(d, v, I) {
3166
- return !(v !== void 0 && d < v || I !== void 0 && d > I);
3165
+ function Re(d, g, I) {
3166
+ return !(g !== void 0 && d < g || I !== void 0 && d > I);
3167
3167
  }
3168
- return (d, v) => {
3168
+ return (d, g) => {
3169
3169
  const I = z("FmCheckbox"), te = z("FmSelect"), ne = z("FmForm"), pe = z("FmIcon"), Ye = z("FmButton"), Me = z("FmListItem"), nt = z("FmList"), Pt = z("FmField");
3170
3170
  return D(), k("div", ni, [
3171
3171
  G(_o, {
3172
3172
  modelValue: a.value,
3173
- "onUpdate:modelValue": v[6] || (v[6] = (_e) => a.value = _e),
3173
+ "onUpdate:modelValue": g[6] || (g[6] = (_e) => a.value = _e),
3174
3174
  title: i.value,
3175
3175
  "primary-button-label": P(e)("report.common.confirm"),
3176
3176
  "secondary-button-label": P(e)("report.common.cancel"),
@@ -3189,19 +3189,19 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3189
3189
  items: Se.value,
3190
3190
  placeholder: i.value,
3191
3191
  label: i.value,
3192
- "onUpdate:modelValue": v[0] || (v[0] = (Z) => M(Z))
3192
+ "onUpdate:modelValue": g[0] || (g[0] = (Z) => M(Z))
3193
3193
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
3194
3194
  c.value ? (D(), k(Ne, { key: 0 }, [
3195
3195
  G(I, {
3196
3196
  modelValue: E.value,
3197
- "onUpdate:modelValue": v[1] || (v[1] = (Z) => E.value = Z),
3197
+ "onUpdate:modelValue": g[1] || (g[1] = (Z) => E.value = Z),
3198
3198
  label: P(e)("report.section.filter.advance"),
3199
3199
  value: !0
3200
3200
  }, null, 8, ["modelValue", "label"]),
3201
3201
  E.value ? (D(), be(Gr, {
3202
3202
  key: 0,
3203
3203
  modelValue: c.value.dataFormula,
3204
- "onUpdate:modelValue": v[2] || (v[2] = (Z) => c.value.dataFormula = Z),
3204
+ "onUpdate:modelValue": g[2] || (g[2] = (Z) => c.value.dataFormula = Z),
3205
3205
  placeholder: P(e)("report.section.filter.dataFormula"),
3206
3206
  "field-data-list": P(ye),
3207
3207
  "formula-field": y.value.type === "NUMERIC" ? P(J).Metric : P(J).Dimension,
@@ -3211,7 +3211,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3211
3211
  }, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : U("", !0),
3212
3212
  G(te, {
3213
3213
  modelValue: c.value.option,
3214
- "onUpdate:modelValue": v[3] || (v[3] = (Z) => c.value.option = Z),
3214
+ "onUpdate:modelValue": g[3] || (g[3] = (Z) => c.value.option = Z),
3215
3215
  items: Ee.value,
3216
3216
  placeholder: P(e)("report.section.filter.timeFormatter"),
3217
3217
  label: P(e)("report.section.filter.timeFormatter")
@@ -3219,7 +3219,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3219
3219
  (((_e = y.value) == null ? void 0 : _e.filterOperators) || []).length > 0 ? (D(), be(dn, {
3220
3220
  key: 1,
3221
3221
  modelValue: c.value.operator,
3222
- "onUpdate:modelValue": v[4] || (v[4] = (Z) => c.value.operator = Z),
3222
+ "onUpdate:modelValue": g[4] || (g[4] = (Z) => c.value.operator = Z),
3223
3223
  items: (((Fe = y.value) == null ? void 0 : Fe.filterOperators) ?? []).map((Z) => ({
3224
3224
  label: P(e)("report.section.comparisonOperator." + Z),
3225
3225
  value: Z
@@ -3228,7 +3228,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3228
3228
  b.value ? (D(), be(Zr, {
3229
3229
  key: c.value.option ?? "",
3230
3230
  modelValue: c.value.values,
3231
- "onUpdate:modelValue": v[5] || (v[5] = (Z) => c.value.values = Z),
3231
+ "onUpdate:modelValue": g[5] || (g[5] = (Z) => c.value.values = Z),
3232
3232
  config: b.value,
3233
3233
  option: c.value.option
3234
3234
  }, null, 8, ["modelValue", "config", "option"])) : U("", !0)
@@ -3259,7 +3259,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3259
3259
  default: ce(() => [
3260
3260
  G(pe, { name: "drag_handle" }),
3261
3261
  A("p", ii, K(s.value[Fe].label), 1),
3262
- v[8] || (v[8] = A("div", { class: "grow" }, null, -1)),
3262
+ g[8] || (g[8] = A("div", { class: "grow" }, null, -1)),
3263
3263
  G(Ye, {
3264
3264
  icon: "close",
3265
3265
  size: "md",
@@ -3277,7 +3277,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3277
3277
  }),
3278
3278
  G(Pt, {
3279
3279
  class: "text-fm-color-typo-tertiary",
3280
- onClick: v[7] || (v[7] = () => {
3280
+ onClick: g[7] || (g[7] = () => {
3281
3281
  f();
3282
3282
  })
3283
3283
  }, {
@@ -3301,13 +3301,13 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3301
3301
  return (n, o) => (D(), k(Ne, null, [
3302
3302
  G(Zt, { name: "slide-fade-right" }, {
3303
3303
  default: ce(() => [
3304
- e.value ? pt(n.$slots, "right", { key: 0 }, void 0, !0) : U("", !0)
3304
+ e.value ? pt(n.$slots, "right", {}, void 0, !0, 0) : U("", !0)
3305
3305
  ]),
3306
3306
  _: 3
3307
3307
  }),
3308
3308
  G(Zt, { name: "slide-fade-left" }, {
3309
3309
  default: ce(() => [
3310
- e.value ? U("", !0) : pt(n.$slots, "left", { key: 0 }, void 0, !0)
3310
+ e.value ? U("", !0) : pt(n.$slots, "left", {}, void 0, !0, 0)
3311
3311
  ]),
3312
3312
  _: 3
3313
3313
  })