@feedmepos/mf-report 5.27.31 → 5.27.32

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 (29) hide show
  1. package/dist/{App-BAY5zxSa.js → App-D48mbPTK.js} +4 -4
  2. package/dist/DateRangeSelect-Klc28Awr.js +517 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-D3zGuz3X.js → Default.vue_vue_type_script_setup_true_lang-CbFm5_my.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D-5nz30f.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CbZDFekU.js} +4 -4
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js} +2931 -2846
  6. package/dist/{InsightView-Cf7JTtmP.js → InsightView-BGXvaD9D.js} +4 -4
  7. package/dist/{Integration-CmKHGXVP.js → Integration-CapTLXBo.js} +3 -3
  8. package/dist/{Integrations-Dp0WZL90.js → Integrations-mMK6rC3-.js} +2 -2
  9. package/dist/{Layout-D9-FsiHd.js → Layout-DfkFa1ZK.js} +1 -1
  10. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-BBb4188M.js +155 -0
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BsWMB078.js → NavigationTab.vue_vue_type_script_setup_true_lang-B5ed1phL.js} +3 -3
  12. package/dist/{OverviewView-B3c6PdFi.js → OverviewView-CCMxBAp9.js} +4 -4
  13. package/dist/{Report-DRiwSdrZ.js → Report-DYg7ooQL.js} +19 -19
  14. package/dist/{ReportEditor-8rQXKLq4.js → ReportEditor-fZjUiUwp.js} +6 -6
  15. package/dist/{ReportView-DC-FonPI.js → ReportView-DtueZsuk.js} +18 -18
  16. package/dist/{Setting-BIkL4RGA.js → Setting-C_iWaReS.js} +3 -3
  17. package/dist/{Template-DQ7AQxaZ.js → Template-DkTMSwZ6.js} +3 -3
  18. package/dist/{TileEditor-Th8qpMkS.js → TileEditor-B6_CEr66.js} +6 -6
  19. package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-CIvXqWuw.js → TileGrid.vue_vue_type_script_setup_true_lang-ZUB0b8ue.js} +1 -1
  20. package/dist/{TransitionFade-U2R9SkgT.js → TransitionFade-C8sTXOWd.js} +4 -4
  21. package/dist/{app-BqleBdzW.js → app-_5FkIgk_.js} +6322 -3209
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-DmiQseZ0.js → formatChartData.worker-GhwszhPe.js} +12 -12
  24. package/dist/assets/{processTableData.worker-CKjQzarL.js → processTableData.worker-C4hgpe0l.js} +12 -12
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-BMCHIgCn.js → useRestaurantPermission-B4_666Wu.js} +1 -1
  27. package/package.json +5 -3
  28. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-X6REOqng.js +0 -391
  29. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-CQ4ax1Wf.js +0 -130
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
2
- import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-D3zGuz3X.js";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-CbFm5_my.js";
3
3
  const f = /* @__PURE__ */ o({
4
4
  __name: "Layout",
5
5
  setup(m) {
@@ -0,0 +1,155 @@
1
+ import { defineComponent as $, computed as R, watch as B, createElementBlock as k, openBlock as d, createElementVNode as C, createVNode as p, unref as t, isRef as g, withCtx as y, useModel as E, resolveComponent as x, normalizeClass as I, createBlock as w, createCommentVNode as M, Fragment as L, renderList as O, toDisplayString as j } from "vue";
2
+ import { a as q, h as G, i as H, j as J, k as S } from "./app-_5FkIgk_.js";
3
+ import { storeToRefs as F } from "pinia";
4
+ import { a as K } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B5ed1phL.js";
5
+ import { D as Q } from "./DateRangeSelect-Klc28Awr.js";
6
+ import { u as X, b as Y, _ as Z, c as h } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
7
+ import { useRoute as ee } from "vue-router";
8
+ import { useBreakpoints as te } from "@feedmepos/ui-library";
9
+ const ae = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, oe = { class: "flex flex-col gap-2 py-2" }, ne = /* @__PURE__ */ $({
10
+ __name: "Filter",
11
+ setup(V) {
12
+ const {
13
+ locations: _,
14
+ selectedLocationIds: s,
15
+ dateRange: n,
16
+ compareDateRange: o,
17
+ timeRange: c,
18
+ defaultDateSetting: f,
19
+ selectTimeDefault: v,
20
+ timezone: i
21
+ } = F(q()), m = ee(), b = R(() => m.name === "overview"), A = X(), { currentReport: U, overviewReport: W } = F(A), { globalFilters: P } = F(Y()), { getReportAccessWindow: z } = G(), u = R(() => b.value ? W.value : U.value), D = R(() => u.value ? z(u.value, i.value) : null), N = R(
22
+ () => H(J(), D.value)
23
+ );
24
+ return B(
25
+ () => {
26
+ var a, e;
27
+ return {
28
+ reportId: (a = u.value) == null ? void 0 : a.id,
29
+ filters: (e = u.value) == null ? void 0 : e.globalFilters
30
+ };
31
+ },
32
+ ({ filters: a }) => {
33
+ P.value = (a ?? []).map((e) => ({
34
+ ...e,
35
+ values: Array.isArray(e.values) ? [...e.values] : []
36
+ }));
37
+ },
38
+ { deep: !0, immediate: !0 }
39
+ ), B(
40
+ [() => {
41
+ var a;
42
+ return (a = u.value) == null ? void 0 : a.id;
43
+ }, D, n, o, i],
44
+ () => {
45
+ const a = D.value;
46
+ if (!a) return;
47
+ const e = S(
48
+ n.value,
49
+ a,
50
+ i.value
51
+ );
52
+ e && (e.startDate !== n.value.startDate || e.endDate !== n.value.endDate) && (n.value = e);
53
+ const l = S(
54
+ o.value,
55
+ a,
56
+ i.value
57
+ );
58
+ l && (l.startDate !== o.value.startDate || l.endDate !== o.value.endDate) && (o.value = l);
59
+ },
60
+ { immediate: !0 }
61
+ ), (a, e) => (d(), k("div", ae, [
62
+ C("div", oe, [
63
+ p(K, {
64
+ modelValue: t(s),
65
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => g(s) ? s.value = l : null),
66
+ options: t(_)
67
+ }, {
68
+ default: y(() => {
69
+ var l, T;
70
+ return [
71
+ p(Q, {
72
+ "date-range": t(n),
73
+ "onUpdate:dateRange": e[0] || (e[0] = (r) => g(n) ? n.value = r : null),
74
+ "compare-date-range": t(o),
75
+ "onUpdate:compareDateRange": e[1] || (e[1] = (r) => g(o) ? o.value = r : null),
76
+ "compare-type": t(f).defaultCompareType,
77
+ "onUpdate:compareType": e[2] || (e[2] = (r) => t(f).defaultCompareType = r),
78
+ "date-predefined-ranges": N.value,
79
+ "min-date": (l = D.value) == null ? void 0 : l.minDate,
80
+ compare: ""
81
+ }, null, 8, ["date-range", "compare-date-range", "compare-type", "date-predefined-ranges", "min-date"]),
82
+ p(Z, {
83
+ "time-range": t(c),
84
+ "onUpdate:timeRange": e[3] || (e[3] = (r) => g(c) ? c.value = r : null),
85
+ "select-time-default": t(v),
86
+ "onUpdate:selectTimeDefault": e[4] || (e[4] = (r) => g(v) ? v.value = r : null),
87
+ "default-date-range": t(f).timeOptions
88
+ }, null, 8, ["time-range", "select-time-default", "default-date-range"]),
89
+ p(h, {
90
+ "global-filter-id": (T = u.value) == null ? void 0 : T.id,
91
+ report: u.value
92
+ }, null, 8, ["global-filter-id", "report"])
93
+ ];
94
+ }),
95
+ _: 1
96
+ }, 8, ["modelValue", "options"])
97
+ ])
98
+ ]));
99
+ }
100
+ }), le = { class: "fm-typo-en-body-md-400" }, fe = /* @__PURE__ */ $({
101
+ __name: "MenuTab",
102
+ props: {
103
+ modelValue: { required: !1, default: [] },
104
+ modelModifiers: {}
105
+ },
106
+ emits: ["update:modelValue"],
107
+ setup(V) {
108
+ const _ = E(V, "modelValue"), { breakpoints: s } = te();
109
+ return (n, o) => {
110
+ const c = x("FmButton"), f = x("FmIcon"), v = x("FmMenuItem"), i = x("FmMenu");
111
+ return d(), k("div", {
112
+ "data-menu-tab": "true",
113
+ class: I(["flex items-start pb-2 px-24", `${t(s).lg || t(s).md ? "px-24" : "pl-3"}`])
114
+ }, [
115
+ p(ne),
116
+ o[0] || (o[0] = C("div", { class: "flex grow" }, null, -1)),
117
+ _.value.length > 0 ? (d(), w(i, {
118
+ key: 0,
119
+ trigger: "click",
120
+ placement: "left",
121
+ shift: !0,
122
+ class: I(t(s).sm || t(s).xs ? "pr-3" : "")
123
+ }, {
124
+ "menu-button": y(() => [
125
+ p(c, {
126
+ "append-icon": "more_vert",
127
+ variant: "tertiary",
128
+ size: "md",
129
+ class: "w-[36px] bg-none"
130
+ })
131
+ ]),
132
+ default: y(() => [
133
+ (d(!0), k(L, null, O(_.value, (m, b) => (d(), w(v, {
134
+ key: `button-${b}`,
135
+ onClick: m.onClick
136
+ }, {
137
+ label: y(() => [
138
+ m.prependIcon ?? !1 ? (d(), w(f, {
139
+ key: 0,
140
+ name: m.icon
141
+ }, null, 8, ["name"])) : M("", !0),
142
+ C("p", le, j(m.label), 1)
143
+ ]),
144
+ _: 2
145
+ }, 1032, ["onClick"]))), 128))
146
+ ]),
147
+ _: 1
148
+ }, 8, ["class"])) : M("", !0)
149
+ ], 2);
150
+ };
151
+ }
152
+ });
153
+ export {
154
+ fe as _
155
+ };
@@ -4,12 +4,12 @@ var Dl = (e, r, t) => I5(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { defineComponent as tr, computed as Ge, useModel as Sn, ref as Fe, watch as Nr, resolveComponent as ge, createBlock as Ke, unref as V, openBlock as ae, withCtx as Ue, createElementVNode as K, createVNode as _, toDisplayString as Ne, withDirectives as Ii, createElementBlock as Pe, Fragment as gt, renderList as Xt, vShow as Qs, createTextVNode as _r, mergeModels as fi, createCommentVNode as at, normalizeClass as ci, onMounted as o0, withKeys as zh, withModifiers as ii, isRef as wa, vModelText as Xh, normalizeStyle as ac, renderSlot as Hh, mergeProps as F5, nextTick as V5, resolveDynamicComponent as Hu, createSlots as L5 } from "vue";
5
5
  import { useRouter as qh, useRoute as Wh } from "vue-router";
6
6
  import { storeToRefs as Lr, defineStore as f0 } from "pinia";
7
- import { u as gs, K as kd, L as N5, z as ai, R as Wa, G as Ks, N as Gl, _ as c0, q as M5, x as R5, b as B5, O as z5, c as jh, A as X5, T as H5, U as wn, V as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
7
+ import { u as gs, K as kd, L as N5, z as ai, R as Wa, G as Ks, N as Gl, _ as c0, q as M5, x as R5, b as B5, O as z5, c as jh, A as X5, T as H5, U as wn, V as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
8
8
  import { useBreakpoints as ko, components as Fi, useSnackbar as Xi, useDialog as W5, useDialogChild as j5, FmButtonVariant as xd } from "@feedmepos/ui-library";
9
9
  import { u as ha, _ as Uh } from "./_plugin-vue_export-helper-onplcgja.js";
10
10
  import { a as Td } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
11
- import { C as hr, g as U5, b as ti, e as Zh, f as Z5, _ as Yh, p as Y5 } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-X6REOqng.js";
12
- import { u as Za, F as Ya, h as fl, a as Hi, d as Ot, q as xo, j as Gh, k as G5, l as Q5, e as K5, m as Il, r as Qh, c as J5, n as _5 } from "./app-BqleBdzW.js";
11
+ import { C as hr, g as U5, b as ti, e as Zh, _ as Z5, D as Yh, p as Y5 } from "./DateRangeSelect-Klc28Awr.js";
12
+ import { u as Za, F as Ya, m as fl, a as Hi, d as Ot, q as xo, n as Gh, o as G5, p as Q5, e as K5, t as Il, r as Qh, c as J5, v as _5 } from "./app-_5FkIgk_.js";
13
13
  import { detectLocale as $5, useCoreStore as e8 } from "@feedmepos/mf-common";
14
14
  const t8 = { class: "flex flex-col" }, r8 = { class: "fm-typo-en-title-sm-600" }, a8 = { class: "grow" }, n8 = { class: "flex flex-col gap-8" }, i8 = { class: "flex flex-col w-full" }, s8 = { class: "flex flex-col gap-5 p-6" }, l8 = { class: "flex" }, Cd = {
15
15
  // sales: [
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, computed as l, resolveComponent as y, createBlock as p, openBlock as s, withCtx as k, createVNode as i, createElementVNode as c, unref as e, normalizeStyle as b, normalizeClass as d, createElementBlock as h } from "vue";
2
- import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-CIvXqWuw.js";
3
- import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
4
- import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-D3zGuz3X.js";
2
+ import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-ZUB0b8ue.js";
3
+ import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
4
+ import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-CbFm5_my.js";
5
5
  import { storeToRefs as z } from "pinia";
6
6
  import { _ as P } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
7
7
  import { useBreakpoints as R } from "@feedmepos/ui-library";
8
- import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-CQ4ax1Wf.js";
8
+ import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-BBb4188M.js";
9
9
  import { useI18n as V } from "@feedmepos/mf-common";
10
10
  import { r as D } from "./i18n-CI_sQ5d_.js";
11
11
  const E = { class: "sticky top-0 z-10 bg-white" }, M = /* @__PURE__ */ w({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as S, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as k, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Le, toDisplayString as J, createTextVNode as Pe, vShow as Q } from "vue";
2
2
  import { storeToRefs as de } from "pinia";
3
- import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
4
- import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-D3zGuz3X.js";
3
+ import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
4
+ import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-CbFm5_my.js";
5
5
  import { u as Ae } from "./message-dialog-UoMWOnil.js";
6
6
  import { a as Je } from "./_plugin-vue_export-helper-onplcgja.js";
7
7
  import { useSnackbar as ze, useBreakpoints as Be, components as Te, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
8
8
  import { _ as Ee } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
9
- import { c as Ke, a as fe, g as Me } from "./app-BqleBdzW.js";
9
+ import { c as Ke, a as fe, h as Me } from "./app-_5FkIgk_.js";
10
10
  import { useRouter as Ye, useRoute as qe, onBeforeRouteLeave as je } from "vue-router";
11
11
  import { useI18n as Ge } from "@feedmepos/mf-common";
12
12
  import { r as W } from "./i18n-CI_sQ5d_.js";
@@ -22,12 +22,12 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
22
22
  scrollPositionY: ee,
23
23
  customReportQuota: I,
24
24
  canCreateCustomReport: te
25
- } = de(d), { promptMessage: oe } = Ae(), { promptLoader: T } = Je(), i = ze(), { breakpoints: u } = Be(), { canRead: ae, canUpdate: re, canDuplicate: be, canDelete: ne, canCreateReport: we } = Me(), C = j();
25
+ } = de(d), { promptMessage: oe } = Ae(), { promptLoader: T } = Je(), i = ze(), { breakpoints: u } = Be(), { canRead: ae, canUpdate: re, canDuplicate: be, canDelete: ne, canCreateReport: we } = Me(), h = j();
26
26
  je(() => {
27
- C.value && (ee.value = C.value.$el.children[0].scrollTop);
28
- }), pe(C, () => {
29
- C.value && setTimeout(() => {
30
- C.value.$el.children[0].scrollTop = ee.value;
27
+ h.value && (ee.value = h.value.$el.children[0].scrollTop);
28
+ }), pe(h, () => {
29
+ h.value && setTimeout(() => {
30
+ h.value.$el.children[0].scrollTop = ee.value;
31
31
  }, 200);
32
32
  });
33
33
  const U = b(() => D.value && f.value ? f.value.filter((o) => {
@@ -43,7 +43,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
43
43
  );
44
44
  const se = b(() => U.value.length > 0 ? f.value.filter(
45
45
  (o) => U.value.findIndex((t) => t.id === o.id) === -1
46
- ) : f.value), { FmButton: Ce, FmMenu: E, FmMenuItem: h, FmIcon: K, FmChip: M } = Te, le = b(() => [
46
+ ) : f.value), { FmButton: he, FmMenu: E, FmMenuItem: C, FmIcon: K, FmChip: M } = Te, le = b(() => [
47
47
  { value: void 0, label: "All" },
48
48
  ...$.value.map((o) => ({
49
49
  value: o.id,
@@ -78,7 +78,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
78
78
  canRead: ae(t)
79
79
  };
80
80
  })
81
- ].filter((t) => F.value.value && t.categoryId !== F.value.value ? !1 : `${(t == null ? void 0 : t.name) || ""}${(t == null ? void 0 : t.description) || ""}`.toLowerCase().indexOf(Y.value.toLowerCase()) !== -1)), he = b(
81
+ ].filter((t) => F.value.value && t.categoryId !== F.value.value ? !1 : `${(t == null ? void 0 : t.name) || ""}${(t == null ? void 0 : t.description) || ""}`.toLowerCase().indexOf(Y.value.toLowerCase()) !== -1)), Ce = b(
82
82
  () => R.value.map((o) => `${o.name}${o.category}`).toString()
83
83
  ), Re = b(() => [
84
84
  {
@@ -207,7 +207,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
207
207
  {
208
208
  default: () => n.map(
209
209
  (s) => p(
210
- h,
210
+ C,
211
211
  {
212
212
  onClick: s.disabled ? {} : s.onClick,
213
213
  label: s.label,
@@ -220,7 +220,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
220
220
  )
221
221
  ),
222
222
  "menu-button": () => p(
223
- Ce,
223
+ he,
224
224
  {
225
225
  variant: "tertiary",
226
226
  size: "md",
@@ -374,7 +374,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
374
374
  })
375
375
  ]),
376
376
  default: m(() => [
377
- (A(!0), Fe(Oe, null, Le(le.value, (n, g) => (A(), G(e(h), {
377
+ (A(!0), Fe(Oe, null, Le(le.value, (n, g) => (A(), G(e(C), {
378
378
  key: g,
379
379
  label: e(a)(`report.category.${n.label}`),
380
380
  onClick: () => xe(n)
@@ -399,9 +399,9 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
399
399
  _: 1
400
400
  }, 8, ["class"]),
401
401
  H((A(), G(V, {
402
- key: he.value,
402
+ key: Ce.value,
403
403
  ref_key: "table",
404
- ref: C,
404
+ ref: h,
405
405
  class: k([e(u).sm || e(u).xs ? "px-0" : "px-24", "report-table"]),
406
406
  style: { height: "calc(100% - 40px)" },
407
407
  "column-defs": Re.value,
@@ -492,7 +492,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
492
492
  default: m(() => {
493
493
  var g;
494
494
  return [
495
- c(e(h), {
495
+ c(e(C), {
496
496
  label: n.pin ? "Unpin" : "Pin",
497
497
  onClick: () => {
498
498
  const s = e(f).find(
@@ -501,7 +501,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
501
501
  s && me(s);
502
502
  }
503
503
  }, null, 8, ["label", "onClick"]),
504
- c(e(h), {
504
+ c(e(C), {
505
505
  label: e(a)("report.common.duplicate"),
506
506
  onClick: () => {
507
507
  const s = e(f).find(
@@ -510,7 +510,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
510
510
  s && ue(s);
511
511
  }
512
512
  }, null, 8, ["label", "onClick"]),
513
- c(e(h), {
513
+ c(e(C), {
514
514
  label: e(a)(
515
515
  n.reportId === ((g = e(B)) == null ? void 0 : g.id) ? "report.common.unsetAsOverview" : "report.common.setAsOverview"
516
516
  ),
@@ -521,7 +521,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
521
521
  s && ie(s);
522
522
  }
523
523
  }, null, 8, ["label", "onClick"]),
524
- H(c(e(h), {
524
+ H(c(e(C), {
525
525
  label: e(a)("report.common.delete"),
526
526
  class: "text-fm-color-typo-error",
527
527
  onClick: () => {
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as xe, mergeModels as Se, useModel as De, ref as z, computed as f, resolveComponent as F, createBlock as S, openBlock as d, withCtx as _, createElementVNode as h, createVNode as i, unref as o, normalizeClass as Ue, createTextVNode as ze, toDisplayString as E, createElementBlock as R, Fragment as Fe, renderSlot as ct, createCommentVNode as U, watch as be, renderList as Be, onMounted as pt, onUnmounted as Vt, resolveDynamicComponent as Tt, isRef as vt, normalizeStyle as et } from "vue";
2
- import { W as $t, g as St, _ as Dt, a as Ot, e as Ie, d as ft, b as gt, S as Ae, T as Nt, c as It } from "./TransitionFade-U2R9SkgT.js";
3
- import { C as Te, D as oe, d as Re, g as Rt, u as lt, M as bt, r as Mt, e as rt, n as Bt, f as Ut, h as qt, i as Et, j as Pt, a as zt, b as it, k as Qe, m as Lt, Q as We, o as Gt, l as At, c as st, p as Wt } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
2
+ import { W as $t, g as St, _ as Dt, a as Ot, e as Ie, d as ft, b as gt, S as Ae, T as Nt, c as It } from "./TransitionFade-C8sTXOWd.js";
3
+ import { C as Te, D as oe, d as Re, g as Rt, u as lt, M as bt, r as Mt, e as rt, n as Bt, f as Ut, h as qt, i as Et, j as Pt, a as zt, b as it, k as Qe, m as Lt, Q as We, o as Gt, l as At, c as st, p as Wt } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
4
4
  import { storeToRefs as Me } from "pinia";
5
5
  import { useRouter as ot, useRoute as at } from "vue-router";
6
6
  import { useBreakpoints as He, useSnackbar as yt, FmButtonColorThemeVariant as $e } from "@feedmepos/ui-library";
7
7
  import { u as nt } from "./message-dialog-UoMWOnil.js";
8
8
  import { u as qe, a as Ht } from "./_plugin-vue_export-helper-onplcgja.js";
9
9
  import { r as Le } from "./i18n-CI_sQ5d_.js";
10
- import { _ as Ye } from "./TileGrid.vue_vue_type_script_setup_true_lang-CIvXqWuw.js";
10
+ import { _ as Ye } from "./TileGrid.vue_vue_type_script_setup_true_lang-ZUB0b8ue.js";
11
11
  import { a as Xe, _ as Ze } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
12
- import { i as jt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D-5nz30f.js";
12
+ import { i as jt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CbZDFekU.js";
13
13
  import { useCoreStore as Jt } from "@feedmepos/mf-common";
14
- import { u as Kt, a as Qt } from "./app-BqleBdzW.js";
15
- import { d as Yt } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-X6REOqng.js";
14
+ import { u as Kt, a as Qt } from "./app-_5FkIgk_.js";
15
+ import { d as Yt } from "./DateRangeSelect-Klc28Awr.js";
16
16
  const Xt = /* @__PURE__ */ xe({
17
17
  __name: "WidgetDialog",
18
18
  props: /* @__PURE__ */ Se({
@@ -1,21 +1,21 @@
1
- import { defineComponent as te, ref as ae, computed as p, watch as re, resolveComponent as J, createBlock as N, openBlock as S, withCtx as x, createVNode as f, createElementVNode as C, unref as l, toDisplayString as se, normalizeStyle as le, normalizeClass as B, createElementBlock as ne } from "vue";
2
- import { _ as ie } from "./MenuTab.vue_vue_type_script_setup_true_lang-CQ4ax1Wf.js";
3
- import { _ as ce } from "./TileGrid.vue_vue_type_script_setup_true_lang-CIvXqWuw.js";
4
- import { u as pe, l as ue, s as me } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
1
+ import { defineComponent as te, ref as ae, computed as p, watch as re, resolveComponent as J, createBlock as N, openBlock as S, withCtx as h, createVNode as f, createElementVNode as x, unref as l, toDisplayString as se, normalizeStyle as le, normalizeClass as B, createElementBlock as ne } from "vue";
2
+ import { _ as ie } from "./MenuTab.vue_vue_type_script_setup_true_lang-BBb4188M.js";
3
+ import { _ as ce } from "./TileGrid.vue_vue_type_script_setup_true_lang-ZUB0b8ue.js";
4
+ import { u as pe, l as ue, s as me } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
5
5
  import { useRouter as de, useRoute as ve } from "vue-router";
6
- import { _ as fe } from "./Default.vue_vue_type_script_setup_true_lang-D3zGuz3X.js";
6
+ import { _ as fe } from "./Default.vue_vue_type_script_setup_true_lang-CbFm5_my.js";
7
7
  import { storeToRefs as y } from "pinia";
8
- import { b as ye, c as ge, u as be, g as _e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BsWMB078.js";
8
+ import { b as ye, c as ge, u as be, g as _e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B5ed1phL.js";
9
9
  import { _ as we } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
10
- import { useSnackbar as Se, useBreakpoints as xe } from "@feedmepos/ui-library";
11
- import { u as Ce, a as he, _ as ke } from "./_plugin-vue_export-helper-onplcgja.js";
10
+ import { useSnackbar as Se, useBreakpoints as he } from "@feedmepos/ui-library";
11
+ import { u as xe, a as Ce, _ as ke } from "./_plugin-vue_export-helper-onplcgja.js";
12
12
  import { u as Te } from "./message-dialog-UoMWOnil.js";
13
- import { e as Re, g as Pe } from "./app-BqleBdzW.js";
13
+ import { e as Re, h as Pe } from "./app-_5FkIgk_.js";
14
14
  import { r as De } from "./i18n-CI_sQ5d_.js";
15
15
  const Ie = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Oe = { class: "sticky top-0 z-10 bg-white" }, $e = /* @__PURE__ */ te({
16
16
  __name: "ReportView",
17
17
  setup(Ae) {
18
- const { t: e, te: q } = Ce(), g = de(), d = ve(), s = Se(), { promptMessage: h } = Te(), u = pe(), k = ye(), { promptLoader: v } = he(), { breakpoints: i } = xe(), { isOpenAccountingDialog: j } = y(ge()), { isOpenScheduleDialog: T } = y(be()), { disabled: R } = y(Re()), P = ae(null), D = p(
18
+ const { t: e, te: q } = xe(), g = de(), d = ve(), s = Se(), { promptMessage: C } = Te(), u = pe(), k = ye(), { promptLoader: v } = Ce(), { breakpoints: i } = he(), { isOpenAccountingDialog: j } = y(ge()), { isOpenScheduleDialog: T } = y(be()), { disabled: R } = y(Re()), P = ae(null), D = p(
19
19
  () => {
20
20
  var a;
21
21
  return ((a = P.value) == null ? void 0 : a.reportId) === c.value;
@@ -130,7 +130,7 @@ const Ie = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-h
130
130
  s.open({ message: "No Widget", type: "error" });
131
131
  return;
132
132
  }
133
- if (await h({
133
+ if (await C({
134
134
  title: `${e("report.messages.duplicateReport")}`,
135
135
  message: e("report.messages.confirmAction", {
136
136
  action: e("report.common.duplicate"),
@@ -166,7 +166,7 @@ const Ie = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-h
166
166
  s.open({ message: "No Widget", type: "error" });
167
167
  return;
168
168
  }
169
- if (await h({
169
+ if (await C({
170
170
  title: `${e("report.common.copyToTemplate")}`,
171
171
  message: e("report.messages.confirmAction", {
172
172
  action: e("report.common.copyToTemplate"),
@@ -251,7 +251,7 @@ const Ie = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-h
251
251
  return (a, t) => {
252
252
  const r = J("FmTooltip"), m = J("FmPageHead");
253
253
  return S(), N(fe, null, {
254
- default: x(() => {
254
+ default: h(() => {
255
255
  var E;
256
256
  return [
257
257
  f(m, {
@@ -264,26 +264,26 @@ const Ie = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-h
264
264
  n === "show_in_pos" && Z(), n === "duplicate" && K(), n === "download" && (z.value = !0), n === "email" && (L.value = !0), n === "edit" && Q(), n === "schedule_email" && (T.value = !0), n === "content_copy" && X(), n === "copy_to_template" && $(), n === "export" && A(), n === "report_jobs" && O();
265
265
  })
266
266
  }, {
267
- title: x(() => [
267
+ title: h(() => [
268
268
  f(r, {
269
269
  content: w.value,
270
270
  placement: "bottom",
271
271
  "z-index": 2e3,
272
272
  class: "flex min-w-0 max-w-full justify-start"
273
273
  }, {
274
- default: x(() => [
275
- C("p", Ie, se(w.value), 1)
274
+ default: h(() => [
275
+ x("p", Ie, se(w.value), 1)
276
276
  ]),
277
277
  _: 1
278
278
  }, 8, ["content"])
279
279
  ]),
280
280
  _: 1
281
281
  }, 8, ["title", "actions"]),
282
- C("div", {
282
+ x("div", {
283
283
  class: B(`flex flex-col overflow-y-auto ${l(i).xs || l(i).sm ? "pb-20" : ""}`),
284
284
  style: le({ height: `calc(100% - ${l(i).lg || l(i).md ? 72 : 64}px)` })
285
285
  }, [
286
- C("div", Oe, [
286
+ x("div", Oe, [
287
287
  f(ie, {
288
288
  "model-value": l(i).lg || l(i).md ? G.value : []
289
289
  }, null, 8, ["model-value"])
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, ref as H, useModel as M, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as A, renderList as G, createTextVNode as ie, withDirectives as K, vShow as Q, watch as me, normalizeStyle as ue } from "vue";
2
- import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-D3zGuz3X.js";
3
- import { d as L, C as q, D as pe, a as ce } from "./app-BqleBdzW.js";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-CbFm5_my.js";
3
+ import { d as L, C as q, D as pe, a as ce } from "./app-_5FkIgk_.js";
4
4
  import { components as z, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as I } from "@feedmepos/ui-library";
5
- import { H as N, J as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
5
+ import { H as N, J as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
6
6
  import { u as ve } from "./message-dialog-UoMWOnil.js";
7
7
  import { u as U } from "./_plugin-vue_export-helper-onplcgja.js";
8
8
  import { detectLocale as F } from "@feedmepos/mf-common";
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as re, computed as p, resolveComponent as g, createElementBlock as H, openBlock as _, renderSlot as Te, createVNode as n, withCtx as s, createCommentVNode as ne, createElementVNode as m, toDisplayString as y, ref as b, h as v, onMounted as Ce, createBlock as z, unref as l, normalizeStyle as ke, normalizeClass as T, withDirectives as te, Fragment as Fe, renderList as Le, withModifiers as oe, vShow as le } from "vue";
2
2
  import { a as Ve } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
3
3
  import { u as se, a as $e } from "./_plugin-vue_export-helper-onplcgja.js";
4
- import { _ as Se } from "./Default.vue_vue_type_script_setup_true_lang-D3zGuz3X.js";
4
+ import { _ as Se } from "./Default.vue_vue_type_script_setup_true_lang-CbFm5_my.js";
5
5
  import { u as Re } from "./message-dialog-UoMWOnil.js";
6
- import { u as Pe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
6
+ import { u as Pe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
7
7
  import { r as ae } from "./i18n-CI_sQ5d_.js";
8
8
  import { useBreakpoints as ze, useSnackbar as De, components as Ie, FmButtonColorThemeVariant as Ne } from "@feedmepos/ui-library";
9
9
  import { useRouter as Oe, useRoute as Be } from "vue-router";
10
10
  import { storeToRefs as Ee } from "pinia";
11
- import { g as Ke } from "./app-BqleBdzW.js";
11
+ import { h as Ke } from "./app-_5FkIgk_.js";
12
12
  const Me = { class: "flex flex-col h-full" }, Ue = ["src"], je = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ae = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, He = /* @__PURE__ */ re({
13
13
  __name: "NoTemplate",
14
14
  props: {
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as de, mergeModels as ve, useModel as ge, computed as F, ref as le, resolveComponent as L, createElementBlock as E, openBlock as f, createVNode as c, createElementVNode as h, unref as l, withCtx as K, toDisplayString as G, Fragment as ue, renderList as Se, withModifiers as we, createTextVNode as Ie, watch as Ce, createCommentVNode as I, createBlock as R, renderSlot as wl, onBeforeUnmount as il, resolveDynamicComponent as Cl, normalizeClass as Fe, withDirectives as ke, vShow as $e, onMounted as xl, withKeys as cl, vModelText as zl, normalizeStyle as ol, isRef as Il } from "vue";
2
2
  import { useRoute as Pl, useRouter as El } from "vue-router";
3
- import { u as sl, f as rl, h as ze, F as je, d as Ke, S as al, a as Wl, W as Xl, T as Hl, c as ql, b as pl } from "./TransitionFade-U2R9SkgT.js";
4
- import { W as q, a as kl, q as Pe, D as Gl, S as vl, C as Yl, u as Fl, P as fl, b as Jl, c as Kl, i as Ql } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
3
+ import { u as sl, f as rl, h as ze, F as je, d as Ke, S as al, a as Wl, W as Xl, T as Hl, c as ql, b as pl } from "./TransitionFade-C8sTXOWd.js";
4
+ import { W as q, a as kl, q as Pe, D as Gl, S as vl, C as Yl, u as Fl, P as fl, b as Jl, c as Kl, i as Ql } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
5
5
  import { storeToRefs as Ne } from "pinia";
6
6
  import { u as Vl } from "./message-dialog-UoMWOnil.js";
7
7
  import { useSnackbar as Zl, useBreakpoints as Sl, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
8
- import { h as et, g as Ve, R as gl, d as lt, L as Ae, e as el, S as ne, f as fe, j as ll, k as yl, _ as _l } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D-5nz30f.js";
8
+ import { h as et, g as Ve, R as gl, d as lt, L as Ae, e as el, S as ne, f as fe, j as ll, k as yl, _ as _l } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CbZDFekU.js";
9
9
  import { a as be, _ as Tl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
10
10
  import { u as pe, _ as $l } from "./_plugin-vue_export-helper-onplcgja.js";
11
11
  import { r as re } from "./i18n-CI_sQ5d_.js";
12
- import { a as Oe, d as qe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-X6REOqng.js";
13
- import { a as tt, d as He } from "./app-BqleBdzW.js";
12
+ import { a as Oe, d as qe } from "./DateRangeSelect-Klc28Awr.js";
13
+ import { a as tt, d as He } from "./app-_5FkIgk_.js";
14
14
  const Qe = [
15
15
  {
16
16
  type: q.Circular,
@@ -483,7 +483,7 @@ const Qe = [
483
483
  B(ae);
484
484
  })
485
485
  }, null, 8, ["label", "model-value"])) : I("", !0),
486
- (Ee = y.value) != null && Ee.isNumericType ? (f(), R(be, {
486
+ (((Ee = y.value) == null ? void 0 : Ee.formatters) || []).length > 0 ? (f(), R(be, {
487
487
  key: 2,
488
488
  modelValue: i.value.formatter,
489
489
  "onUpdate:modelValue": b[4] || (b[4] = (ae) => i.value.formatter = ae),
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, reactive as E, resolveComponent as b, createElementBlock as a, openBlock as s, Fragment as h, renderList as I, createBlock as g, createCommentVNode as W, normalizeStyle as F, normalizeClass as f, withCtx as V, createVNode as c, createElementVNode as z, withDirectives as H, vShow as K } from "vue";
2
- import { _ as D, c as P, a as j, b as q, t as A } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D-5nz30f.js";
2
+ import { _ as D, c as P, a as j, b as q, t as A } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CbZDFekU.js";
3
3
  import { useBreakpoints as J } from "@feedmepos/ui-library";
4
4
  const O = { class: "flex-1 min-h-0 overflow-y-auto" }, Q = {
5
5
  key: 0,
@@ -3,13 +3,13 @@ import { u as Lt, a as fo, _ as an } from "./_plugin-vue_export-helper-onplcgja.
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 { W as xe, Q as ho, I as rt, t as On, v as Sn, d as Ge, g as go, q as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG4YsJj7.js";
7
- import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-X6REOqng.js";
8
- import { u as yo, F as Eo, r as _o, d as Ut } from "./app-BqleBdzW.js";
6
+ import { W as xe, Q as ho, I as rt, t as On, v as Sn, d as Ge, g as go, q as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-xArc-Jv2.js";
7
+ import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect-Klc28Awr.js";
8
+ import { u as yo, F as Eo, r as _o, d as Ut } from "./app-_5FkIgk_.js";
9
9
  import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
10
10
  import { r as fn } from "./i18n-CI_sQ5d_.js";
11
11
  import { useSnackbar as To } from "@feedmepos/ui-library";
12
- import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D-5nz30f.js";
12
+ import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CbZDFekU.js";
13
13
  const wo = {
14
14
  key: 0,
15
15
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"