@feedmepos/mf-report 5.18.2-beta.6 → 5.18.2-beta.7

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CbS3wT-Z.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOYdr23L.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
5
  import { u as q, f as w } from "./vue-i18n-Cjs2Btd-.js";
@@ -1,5 +1,5 @@
1
1
  import { computed as y, defineComponent as ee, mergeModels as me, useModel as te, ref as h, onMounted as ke, nextTick as X, watch as J, resolveComponent as V, createElementBlock as N, openBlock as W, Fragment as oe, renderSlot as pe, createVNode as B, normalizeStyle as ne, unref as l, createElementVNode as P, toDisplayString as Le, withCtx as q, createBlock as U, createCommentVNode as he, normalizeClass as Pe, h as bt, renderList as kt, createTextVNode as Qt, onUnmounted as ea, resolveDynamicComponent as ta, withDirectives as aa, vShow as la } from "vue";
2
- import { W as F, d as Ee, v as $e, e as Ye, f as _t, q as oa, R as xe, g as na } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
2
+ import { W as F, d as Ee, v as $e, e as Ye, f as _t, q as oa, R as xe, g as na } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
3
3
  import { u as Me, b as at, a as lt } from "./vue-i18n-Cjs2Btd-.js";
4
4
  import { a as wt } from "./helper-DDO1q72b.js";
5
5
  import { storeToRefs as ze, defineStore as sa } from "pinia";
@@ -2,13 +2,13 @@ var Zo = Object.defineProperty;
2
2
  var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
5
- import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-az465cWp.js";
5
+ import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-B8mqpG-f.js";
6
6
  import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DJIV8Ogq.js";
7
7
  import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-Cjs2Btd-.js";
8
8
  import { storeToRefs as Jn } from "pinia";
9
9
  import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
10
10
  import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
11
- import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CbS3wT-Z.js";
11
+ import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOYdr23L.js";
12
12
  import { useCoreStore as ha } from "@feedmepos/mf-common";
13
13
  function da({ start: i, end: t }) {
14
14
  return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
@@ -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-az465cWp.js";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-B8mqpG-f.js";
3
3
  const f = /* @__PURE__ */ o({
4
4
  __name: "Layout",
5
5
  setup(m) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as R, computed as j, ref as oe, watch as q, resolveComponent as b, createElementBlock as f, openBlock as u, renderSlot as re, Fragment as D, renderList as U, createBlock as g, unref as r, withCtx as C, createElementVNode as L, createCommentVNode as N, createVNode as p, isRef as S, useModel as ue, normalizeClass as z, toDisplayString as ie } from "vue";
2
2
  import { u as me, b as H, d as E, i as de } from "./vue-i18n-Cjs2Btd-.js";
3
3
  import { storeToRefs as T } from "pinia";
4
- import { a as pe, d as ce } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CbS3wT-Z.js";
4
+ import { a as pe, d as ce } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOYdr23L.js";
5
5
  import { _ as J, a as fe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DJIV8Ogq.js";
6
- import { a as ve, b as be, D as w, q as _e, W as Y, S as ye } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
6
+ import { a as ve, b as be, D as w, q as _e, W as Y, S as ye } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
7
7
  import { _ as he } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
8
8
  import { d as ge } from "./helper-DDO1q72b.js";
9
9
  import { detectLocale as Fe } from "@feedmepos/mf-common";
@@ -4,7 +4,7 @@ var As = (e, r, t) => M9(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { defineComponent as Wt, computed as vt, useModel as Fa, ref as Oe, watch as Hr, resolveComponent as Ae, createBlock as Ge, unref as z, openBlock as ae, withCtx as Be, createElementVNode as J, createVNode as Q, toDisplayString as je, withDirectives as bn, createElementBlock as Se, Fragment as dt, renderList as Ot, vShow as d0, createTextVNode as Ir, mergeModels as kn, createCommentVNode as ft, normalizeClass as Un, onMounted as su, withKeys as jh, withModifiers as R0, isRef as Xn, vModelText as Uh, normalizeStyle as Yh, renderSlot as Zh, mergeProps as R9, nextTick as X9, resolveDynamicComponent as kd, createSlots as z9 } from "vue";
5
5
  import { useRouter as Gh, useRoute as Qh } from "vue-router";
6
6
  import { storeToRefs as dr, defineStore as lu } from "pinia";
7
- import { a as qi, h as Td, i as H9, R as nn, g as ou, e as ko, j as fu, _ as q9, v as W9, f as j9, r as U9, k as xn, s as Y9, u as Z9 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
7
+ import { a as qi, h as Td, i as H9, R as nn, g as ou, e as ko, j as fu, _ as q9, v as W9, f as j9, r as U9, k as xn, s as Y9, u as Z9 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
8
8
  import { useBreakpoints as nl, components as h0, useSnackbar as $0, useDialog as G9, useDialogChild as Q9, FmButtonVariant as Ed } from "@feedmepos/ui-library";
9
9
  import { u as Sa, j as cu, k as il, a as Oa, F as Za, r as sl, d as _e, l as ei, t as K9, b as w0, m as J9, q as ll, n as _9, o as $9, e as e6, v as ps, w as Kh, x as t6, p as r6 } from "./vue-i18n-Cjs2Btd-.js";
10
10
  import { _ as Fd, a as a6 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CoMcbMHU.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as g, computed as w, resolveComponent as k, createBlock as a, openBlock as t, withCtx as $, createVNode as d, createElementVNode as y, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as h, renderList as B } from "vue";
2
- import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js";
3
- import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-az465cWp.js";
4
- import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
2
+ import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D1AmPGmI.js";
3
+ import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-B8mqpG-f.js";
4
+ import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
5
5
  import { storeToRefs as R } from "pinia";
6
6
  import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
7
7
  import { useBreakpoints as V } from "@feedmepos/ui-library";
8
- import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-mevBIWGb.js";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-103BmSWV.js";
9
9
  import { useI18n as D } from "@feedmepos/mf-common";
10
10
  const G = /* @__PURE__ */ g({
11
11
  __name: "OverviewView",
@@ -1,27 +1,27 @@
1
- import { defineComponent as ye, ref as B, watch as oe, computed as C, h as g, withModifiers as be, resolveComponent as _, createBlock as E, openBlock as O, withCtx as i, createVNode as n, createElementVNode as y, unref as e, normalizeStyle as he, normalizeClass as S, withDirectives as M, createElementBlock as xe, Fragment as Ce, renderList as _e, toDisplayString as V, createTextVNode as Se, vShow as q } from "vue";
1
+ import { defineComponent as be, ref as B, watch as oe, computed as C, h as v, withModifiers as he, resolveComponent as S, createBlock as E, openBlock as O, withCtx as i, createVNode as l, createElementVNode as y, unref as e, normalizeStyle as xe, normalizeClass as _, withDirectives as M, createElementBlock as Ce, Fragment as Se, renderList as _e, toDisplayString as V, createTextVNode as ke, vShow as q } from "vue";
2
2
  import { storeToRefs as ae } from "pinia";
3
- import { a as ke } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
4
- import { _ as Ie } from "./Default.vue_vue_type_script_setup_true_lang-az465cWp.js";
5
- import { u as we } from "./message-dialog-UoMWOnil.js";
6
- import { b as re, f as $e } from "./vue-i18n-Cjs2Btd-.js";
7
- import { useSnackbar as Re, useBreakpoints as De, components as Fe, FmButtonColorThemeVariant as Le } from "@feedmepos/ui-library";
8
- import { _ as Ne } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
9
- import { useRouter as Oe, useRoute as Ve, onBeforeRouteLeave as ze } from "vue-router";
10
- import { useI18n as Je } from "@feedmepos/mf-common";
11
- import { r as le } from "./i18n-Cif1I9J2.js";
12
- const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = { class: "w-[343px]" }, Te = { class: "fm-typo-en-body-md-600" }, Ze = /* @__PURE__ */ ye({
3
+ import { a as Ie, u as we } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
4
+ import { _ as $e } from "./Default.vue_vue_type_script_setup_true_lang-B8mqpG-f.js";
5
+ import { u as Re } from "./message-dialog-UoMWOnil.js";
6
+ import { b as re, f as De } from "./vue-i18n-Cjs2Btd-.js";
7
+ import { useSnackbar as Fe, useBreakpoints as Le, components as Ne, FmButtonColorThemeVariant as Oe } from "@feedmepos/ui-library";
8
+ import { _ as Ve } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
9
+ import { useRouter as ze, useRoute as Je, onBeforeRouteLeave as Pe } from "vue-router";
10
+ import { useI18n as Ae } from "@feedmepos/mf-common";
11
+ import { r as ne } from "./i18n-Cif1I9J2.js";
12
+ const Te = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = { class: "w-[343px]" }, Ee = { class: "fm-typo-en-body-md-600" }, et = /* @__PURE__ */ be({
13
13
  __name: "Report",
14
- setup(Be) {
15
- const { t: a, te: K } = Je(), U = Oe(), j = Ve(), p = ke(), { business: ne } = ae(re()), {
14
+ setup(Me) {
15
+ const { t: a, te: K } = Ae(), U = ze(), j = Je(), p = Ie(), le = we(), { business: se } = ae(re()), {
16
16
  reports: d,
17
17
  categories: $,
18
18
  pinReport: R,
19
- isOpenAddReportDialog: se,
19
+ isOpenAddReportDialog: ce,
20
20
  scrollPositionY: Y,
21
21
  customReportQuota: G,
22
- canCreateCustomReport: ce
23
- } = ae(p), { promptMessage: H } = we(), { promptLoader: Q } = $e(), v = Re(), { breakpoints: s } = De(), b = B();
24
- ze(() => {
22
+ canCreateCustomReport: ie
23
+ } = ae(p), { promptMessage: H } = Re(), { promptLoader: Q } = De(), g = Fe(), { breakpoints: s } = Le(), b = B();
24
+ Pe(() => {
25
25
  b.value && (Y.value = b.value.$el.children[0].scrollTop);
26
26
  }), oe(b, () => {
27
27
  b.value && setTimeout(() => {
@@ -33,7 +33,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
33
33
  return (o = R.value) == null ? void 0 : o.includes(t.id);
34
34
  }) : []);
35
35
  oe(
36
- [() => ne.value],
36
+ [() => se.value],
37
37
  () => {
38
38
  p.refreshPinReport();
39
39
  },
@@ -41,7 +41,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
41
41
  );
42
42
  const W = C(() => z.value.length > 0 ? d.value.filter(
43
43
  (t) => z.value.findIndex((o) => o.id === t.id) === -1
44
- ) : d.value), { FmButton: ie, FmMenu: J, FmMenuItem: k, FmIcon: P, FmChip: A } = Fe, X = C(() => [
44
+ ) : d.value), { FmButton: ue, FmMenu: J, FmMenuItem: k, FmIcon: P, FmChip: A } = Ne, X = C(() => [
45
45
  { value: void 0, label: "All" },
46
46
  ...$.value.map((t) => ({
47
47
  value: t.id,
@@ -51,7 +51,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
51
51
  ...z.value.map((o) => {
52
52
  const r = $.value.find((c) => c.id === o.category);
53
53
  return {
54
- name: le(a, K, o.name, "other"),
54
+ name: ne(a, K, o.name, "other"),
55
55
  categoryId: (r == null ? void 0 : r.id) ?? "",
56
56
  category: r != null && r.name ? a(`report.category.${r.name}`) : a("report.common.uncategorized"),
57
57
  reportId: o.id,
@@ -62,7 +62,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
62
62
  ...W.value.map((o) => {
63
63
  const r = $.value.find((c) => c.id === o.category);
64
64
  return {
65
- name: le(a, K, o.name, "other"),
65
+ name: ne(a, K, o.name, "other"),
66
66
  categoryId: (r == null ? void 0 : r.id) ?? "",
67
67
  category: r != null && r.name ? a(`report.category.${r.name}`) : a("report.common.uncategorized"),
68
68
  reportId: o.id,
@@ -72,7 +72,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
72
72
  }).filter((o) => h.value.value && o.categoryId !== h.value.value ? !1 : o.name.toLowerCase().indexOf(D.value.toLowerCase()) !== -1)
73
73
  ]), me = C(
74
74
  () => x.value.map((t) => `${t.name}${t.category}`).toString()
75
- ), ue = [
75
+ ), pe = [
76
76
  {
77
77
  accessorKey: "name",
78
78
  header: a("report.common.name"),
@@ -86,7 +86,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
86
86
  meta: {
87
87
  width: "200px"
88
88
  },
89
- cell: (t) => g(
89
+ cell: (t) => v(
90
90
  A,
91
91
  {
92
92
  class: `${t.getValue() !== a("report.common.uncategorized") ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"} fm-typo-en-body-sm-600`,
@@ -103,7 +103,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
103
103
  width: "100px"
104
104
  },
105
105
  cell: (t) => {
106
- const o = t.row.original, r = o.reportId, c = d.value.find((m) => m.id === r), T = [
106
+ const o = t.row.original, r = o.reportId, c = d.value.find((u) => u.id === r), T = [
107
107
  {
108
108
  label: a("report.common.duplicate"),
109
109
  onClick: () => {
@@ -121,24 +121,24 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
121
121
  disabled: !o.editable
122
122
  }
123
123
  ];
124
- return g(
124
+ return v(
125
125
  "div",
126
126
  {
127
127
  class: `flex ${s.value.lg || s.value.md ? "justify-end" : ""} items-center`
128
128
  },
129
129
  {
130
130
  default: () => [
131
- g(
131
+ v(
132
132
  "button",
133
133
  {
134
- onClick: be(() => {
134
+ onClick: he(() => {
135
135
  c && te(c);
136
136
  }, ["stop"]),
137
137
  class: `text-fm-color-neutral-gray-400 ${o.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
138
138
  },
139
139
  {
140
140
  default: () => [
141
- g(
141
+ v(
142
142
  P,
143
143
  {
144
144
  name: "keep",
@@ -151,31 +151,31 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
151
151
  ]
152
152
  }
153
153
  ),
154
- g(
154
+ v(
155
155
  J,
156
156
  { stopClickPropagation: !0, shift: !0 },
157
157
  {
158
158
  default: () => T.map(
159
- (m) => g(
159
+ (u) => v(
160
160
  k,
161
161
  {
162
- onClick: m.disabled ? {} : m.onClick,
163
- label: m.label,
164
- class: m.disabled ? "text-fm-color-typo-disabled" : m.variant === "destructive" ? "text-fm-color-typo-error" : "",
165
- disabled: m.disabled
162
+ onClick: u.disabled ? {} : u.onClick,
163
+ label: u.label,
164
+ class: u.disabled ? "text-fm-color-typo-disabled" : u.variant === "destructive" ? "text-fm-color-typo-error" : "",
165
+ disabled: u.disabled
166
166
  },
167
167
  {
168
- label: () => g("p", m.label)
168
+ label: () => v("p", u.label)
169
169
  }
170
170
  )
171
171
  ),
172
- "menu-button": () => g(
173
- ie,
172
+ "menu-button": () => v(
173
+ ue,
174
174
  {
175
175
  variant: "tertiary",
176
176
  size: "md",
177
177
  icon: "more_vert",
178
- iconColor: Le.NeutralGray400
178
+ iconColor: Oe.NeutralGray400
179
179
  },
180
180
  {}
181
181
  )
@@ -198,12 +198,12 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
198
198
  const r = JSON.parse(JSON.stringify(t));
199
199
  r.editable = !0, r.id = "", r.name = `${r.name} ${a("report.common.duplicate")}`, Q(async () => {
200
200
  try {
201
- await p.createOrUpdateReport(r), v.open({
201
+ await p.createOrUpdateReport(r), g.open({
202
202
  message: `${a("report.messages.duplicateSuccess", { name: r.name })}`,
203
203
  type: "success"
204
204
  });
205
205
  } catch (c) {
206
- v.open({ message: JSON.stringify(c), type: "error" });
206
+ g.open({ message: JSON.stringify(c), type: "error" });
207
207
  }
208
208
  });
209
209
  }
@@ -214,44 +214,44 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
214
214
  message: a("report.messages.confirmDelete", { name: t.name })
215
215
  }) && Q(async () => {
216
216
  try {
217
- await p.removeReport(t), v.open({
217
+ await p.removeReport(t), g.open({
218
218
  message: a("report.messages.deleteSuccess", { name: t.name }),
219
219
  type: "success"
220
220
  });
221
221
  } catch (r) {
222
- v.open({ message: JSON.stringify(r), type: "error" });
222
+ g.open({ message: JSON.stringify(r), type: "error" });
223
223
  }
224
224
  });
225
225
  }
226
- function pe() {
227
- if (ce.value)
228
- se.value = !0;
226
+ function de() {
227
+ if (ie.value)
228
+ ce.value = !0;
229
229
  else {
230
230
  let t = `Your current plan only support up to ${G.value} custom reports.`;
231
- G.value === 0 && (t = "Your current plan does not support custom report."), v.open({
231
+ G.value === 0 && (t = "Your current plan does not support custom report."), g.open({
232
232
  message: t,
233
233
  type: "error"
234
234
  });
235
235
  }
236
236
  }
237
237
  function te(t) {
238
- R.value && R.value.includes(t.id) ? (v.open({
238
+ R.value && R.value.includes(t.id) ? (g.open({
239
239
  message: `${a("report.common.unpin")} ${t.name} ${a("report.common.successful")}`,
240
240
  type: "success"
241
- }), p.clearPinReport(t.id)) : (v.open({
241
+ }), p.clearPinReport(t.id)) : (g.open({
242
242
  message: `${a("report.common.pin")} ${t.name} ${a("report.common.successful")}`,
243
243
  type: "success"
244
244
  }), p.cachePinReport(t));
245
245
  }
246
- function de(t) {
246
+ function fe(t) {
247
247
  h.value = t;
248
248
  }
249
- const { selectedLocationIds: I, dateRange: F, compareDateRange: L, timeRange: f, globalFilters: Ee, locations: fe } = re(), N = C(() => I.length === fe.length);
249
+ const { selectedLocationIds: I, dateRange: F, compareDateRange: L, timeRange: f, locations: ve } = re(), N = C(() => I.length === ve.length);
250
250
  return (t, o) => {
251
- const r = _("FmPageHead"), c = _("FmSearch"), T = _("FmForm"), m = _("FmListItem"), ge = _("FmList"), ve = _("FmTable");
252
- return O(), E(Ie, null, {
251
+ const r = S("FmPageHead"), c = S("FmSearch"), T = S("FmForm"), u = S("FmListItem"), ge = S("FmList"), ye = S("FmTable");
252
+ return O(), E($e, null, {
253
253
  default: i(() => [
254
- n(r, {
254
+ l(r, {
255
255
  title: e(a)("report.common.report", 1),
256
256
  class: "h-[68px]",
257
257
  actions: [
@@ -262,68 +262,68 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
262
262
  prependIcon: "add"
263
263
  }
264
264
  ],
265
- "onClick:action": o[0] || (o[0] = (l) => pe())
265
+ "onClick:action": o[0] || (o[0] = (n) => de())
266
266
  }, null, 8, ["title", "actions"]),
267
267
  y("div", {
268
- class: S(`overflow-y-hidden flex flex-col gap-8 ${e(s).sm || e(s).xs ? "mb-20" : ""}`),
269
- style: he({ height: `calc(100% - ${e(s).lg || e(s).md ? 72 : 64}px)` })
268
+ class: _(`overflow-y-hidden flex flex-col gap-8 ${e(s).sm || e(s).xs ? "mb-20" : ""}`),
269
+ style: xe({ height: `calc(100% - ${e(s).lg || e(s).md ? 72 : 64}px)` })
270
270
  }, [
271
- n(T, {
272
- class: S(`flex items-center gap-2 ${e(s).sm || e(s).xs ? "px-3" : "px-24"}`)
271
+ l(T, {
272
+ class: _(`flex items-center gap-2 ${e(s).sm || e(s).xs ? "px-3" : "px-24"}`)
273
273
  }, {
274
274
  default: i(() => [
275
- n(e(J), null, {
275
+ l(e(J), null, {
276
276
  "menu-button": i(() => [
277
- n(e(A), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
277
+ l(e(A), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
278
278
  default: i(() => [
279
279
  y("p", null, V(e(a)(`report.category.${h.value.label}`)), 1),
280
- n(e(P), { name: "expand_more" })
280
+ l(e(P), { name: "expand_more" })
281
281
  ]),
282
282
  _: 1
283
283
  })
284
284
  ]),
285
285
  default: i(() => [
286
- (O(!0), xe(Ce, null, _e(X.value, (l, u) => (O(), E(e(k), {
287
- key: u,
288
- label: e(a)(`report.category.${l.label}`),
289
- onClick: () => de(l)
286
+ (O(!0), Ce(Se, null, _e(X.value, (n, m) => (O(), E(e(k), {
287
+ key: m,
288
+ label: e(a)(`report.category.${n.label}`),
289
+ onClick: () => fe(n)
290
290
  }, null, 8, ["label", "onClick"]))), 128))
291
291
  ]),
292
292
  _: 1
293
293
  }),
294
294
  y("div", {
295
- class: S(`flex ${e(s).sm || e(s).xs ? "justify-center items-center" : ""}`)
295
+ class: _(`flex ${e(s).sm || e(s).xs ? "justify-center items-center" : ""}`)
296
296
  }, [
297
- y("p", Pe, V(e(a)("report.common.results", { count: x.value.length })), 1)
297
+ y("p", Te, V(e(a)("report.common.results", { count: x.value.length })), 1)
298
298
  ], 2),
299
299
  o[3] || (o[3] = y("div", { class: "grow" }, null, -1)),
300
- y("div", Ae, [
301
- n(c, {
300
+ y("div", Be, [
301
+ l(c, {
302
302
  modelValue: D.value,
303
- "onUpdate:modelValue": o[1] || (o[1] = (l) => D.value = l),
304
- class: S(`${e(s).lg || e(s).md ? "grow" : ""}`)
303
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => D.value = n),
304
+ class: _(`${e(s).lg || e(s).md ? "grow" : ""}`)
305
305
  }, null, 8, ["modelValue", "class"])
306
306
  ])
307
307
  ]),
308
308
  _: 1
309
309
  }, 8, ["class"]),
310
- M((O(), E(ve, {
310
+ M((O(), E(ye, {
311
311
  key: me.value,
312
312
  ref_key: "table",
313
313
  ref: b,
314
- class: S([e(s).sm || e(s).xs ? "px-0" : "px-24", "report-table"]),
314
+ class: _([e(s).sm || e(s).xs ? "px-0" : "px-24", "report-table"]),
315
315
  style: { height: "calc(100% - 40px)" },
316
- "column-defs": ue,
316
+ "column-defs": pe,
317
317
  "row-data": x.value,
318
318
  "page-size": x.value.length,
319
319
  "hide-footer": !0,
320
320
  "row-class-name": "row",
321
- onRowClick: o[2] || (o[2] = (l) => {
322
- e(p).updateCurrentReportId(l.original.reportId), e(U).push({
321
+ onRowClick: o[2] || (o[2] = (n) => {
322
+ e(le).suppressReportRouteSync = !0, e(p).updateCurrentReportId(n.original.reportId), e(U).push({
323
323
  name: "reportView",
324
324
  query: {
325
325
  ...e(j).query,
326
- reportId: l.original.reportId,
326
+ reportId: n.original.reportId,
327
327
  startDate: e(F).startDate,
328
328
  endDate: e(F).endDate,
329
329
  compareStartDate: e(L).startDate,
@@ -336,14 +336,14 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
336
336
  });
337
337
  })
338
338
  }, {
339
- "list-row": i(({ original: l }) => [
340
- n(ge, {
339
+ "list-row": i(({ original: n }) => [
340
+ l(ge, {
341
341
  onClick: () => {
342
- l.reportId && (e(p).updateCurrentReportId(l.reportId), e(U).push({
342
+ n.reportId && (e(p).updateCurrentReportId(n.reportId), e(U).push({
343
343
  name: "reportView",
344
344
  query: {
345
345
  ...e(j).query,
346
- reportId: l.reportId,
346
+ reportId: n.reportId,
347
347
  startDate: e(F).startDate,
348
348
  endDate: e(F).endDate,
349
349
  compareStartDate: e(L).startDate,
@@ -357,68 +357,68 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
357
357
  }
358
358
  }, {
359
359
  default: i(() => [
360
- n(m, {
360
+ l(u, {
361
361
  tag: "label",
362
- label: l.name,
362
+ label: n.name,
363
363
  clickable: ""
364
364
  }, {
365
365
  append: i(() => [
366
- n(e(A), {
367
- class: S(
368
- l.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
366
+ l(e(A), {
367
+ class: _(
368
+ n.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
369
369
  ),
370
370
  compact: !0
371
371
  }, {
372
372
  default: i(() => [
373
- y("p", Te, V(l.category), 1)
373
+ y("p", Ee, V(n.category), 1)
374
374
  ]),
375
375
  _: 2
376
376
  }, 1032, ["class"]),
377
- n(e(J), {
377
+ l(e(J), {
378
378
  placement: "left",
379
379
  "stop-click-propagation": !0
380
380
  }, {
381
381
  "menu-button": i(() => [
382
- n(e(P), {
382
+ l(e(P), {
383
383
  name: "more_vert",
384
384
  class: "btn-color"
385
385
  })
386
386
  ]),
387
387
  default: i(() => [
388
- n(e(k), {
389
- label: l.pin ? "Unpin" : "Pin",
388
+ l(e(k), {
389
+ label: n.pin ? "Unpin" : "Pin",
390
390
  onClick: () => {
391
- const u = e(d).find(
392
- (w) => w.id === l.reportId
391
+ const m = e(d).find(
392
+ (w) => w.id === n.reportId
393
393
  );
394
- u && te(u);
394
+ m && te(m);
395
395
  }
396
396
  }, null, 8, ["label", "onClick"]),
397
- n(e(k), {
397
+ l(e(k), {
398
398
  label: e(a)("report.common.duplicate"),
399
399
  onClick: () => {
400
- const u = e(d).find(
401
- (w) => w.id === l.reportId
400
+ const m = e(d).find(
401
+ (w) => w.id === n.reportId
402
402
  );
403
- u && Z(u);
403
+ m && Z(m);
404
404
  }
405
405
  }, null, 8, ["label", "onClick"]),
406
- M(n(e(k), {
406
+ M(l(e(k), {
407
407
  label: e(a)("report.common.delete"),
408
408
  class: "text-fm-color-typo-error",
409
409
  onClick: () => {
410
- const u = e(d).find(
411
- (w) => w.id === l.reportId
410
+ const m = e(d).find(
411
+ (w) => w.id === n.reportId
412
412
  );
413
- u && ee(u);
413
+ m && ee(m);
414
414
  }
415
415
  }, {
416
416
  label: i(() => [
417
- Se(V(e(a)("report.common.delete")), 1)
417
+ ke(V(e(a)("report.common.delete")), 1)
418
418
  ]),
419
419
  _: 2
420
420
  }, 1032, ["label", "onClick"]), [
421
- [q, l.editable]
421
+ [q, n.editable]
422
422
  ])
423
423
  ]),
424
424
  _: 2
@@ -434,7 +434,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
434
434
  }, 8, ["class", "row-data", "page-size"])), [
435
435
  [q, x.value.length > 0]
436
436
  ]),
437
- M(n(Ne, null, null, 512), [
437
+ M(l(Ve, null, null, 512), [
438
438
  [q, x.value.length === 0]
439
439
  ])
440
440
  ], 6)
@@ -445,5 +445,5 @@ const Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae
445
445
  }
446
446
  });
447
447
  export {
448
- Ze as default
448
+ et as default
449
449
  };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as G, mergeModels as L, useModel as j, ref as q, computed as U, resolveComponent as f, createBlock as $, openBlock as i, withCtx as s, createElementVNode as w, createVNode as t, unref as l, normalizeClass as oe, createTextVNode as ce, toDisplayString as P, createElementBlock as S, Fragment as J, renderSlot as Ce, createCommentVNode as Q, watch as pe, renderList as X, resolveDynamicComponent as Ue, isRef as ke, normalizeStyle as ve, onMounted as Be } from "vue";
2
- import { W as De, _ as We, i as Ie, S as ye, d as _e, T as Re, a as qe } from "./TransitionFade-K0ZfP5kz.js";
3
- import { c as Pe, D as le, C as we, a as Ve, b as Ee, v as te } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
2
+ import { W as De, _ as We, i as Ie, S as ye, d as _e, T as Re, a as qe } from "./TransitionFade--t2l2y8W.js";
3
+ import { c as Pe, D as le, C as we, a as Ve, b as Ee, v as te } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
4
4
  import { storeToRefs as fe } from "pinia";
5
5
  import { useRouter as Se, useRoute as $e } from "vue-router";
6
6
  import { useBreakpoints as ie, useSnackbar as Oe, FmButtonColorThemeVariant as Z } from "@feedmepos/ui-library";
7
7
  import { u as Te } from "./message-dialog-UoMWOnil.js";
8
8
  import { u as ae, i as ue, f as ze } from "./vue-i18n-Cjs2Btd-.js";
9
- import { _ as de } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js";
9
+ import { _ as de } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D1AmPGmI.js";
10
10
  import { _ as me } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
11
11
  import { r as re } from "./i18n-Cif1I9J2.js";
12
12
  import { _ as Fe } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CoMcbMHU.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as z, computed as v, resolveComponent as H, createBlock as g, openBlock as u, withCtx as M, createVNode as h, createElementVNode as R, unref as o, normalizeStyle as Y, normalizeClass as D, createElementBlock as $, Fragment as G, renderList as Q } from "vue";
2
- import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-mevBIWGb.js";
3
- import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js";
2
+ import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-103BmSWV.js";
3
+ import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D1AmPGmI.js";
4
4
  import { useRouter as K, useRoute as X } from "vue-router";
5
- import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-az465cWp.js";
6
- import { a as ee } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
5
+ import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-B8mqpG-f.js";
6
+ import { a as ee } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
7
7
  import { storeToRefs as p } from "pinia";
8
- import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CbS3wT-Z.js";
8
+ import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOYdr23L.js";
9
9
  import { _ as ae } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
10
10
  import { useSnackbar as le, useBreakpoints as ne } from "@feedmepos/ui-library";
11
11
  import { u as ie, f as se, e as ue } from "./vue-i18n-Cjs2Btd-.js";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, ref as H, useModel as J, 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 K, renderList as Q, withDirectives as M, createTextVNode as ie, vShow as j, watch as me, normalizeStyle as ue } from "vue";
2
- import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-az465cWp.js";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-B8mqpG-f.js";
3
3
  import { u as U, d as z, C as I, D as pe, b as ce } from "./vue-i18n-Cjs2Btd-.js";
4
4
  import { components as A, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
5
- import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CbS3wT-Z.js";
5
+ import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BOYdr23L.js";
6
6
  import { u as ve } from "./message-dialog-UoMWOnil.js";
7
7
  import { detectLocale as F } from "@feedmepos/mf-common";
8
8
  import { _ as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CoMcbMHU.js";
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as M, mergeModels as J, useModel as ee, computed as _, ref as A, resolveComponent as F, createElementBlock as I, openBlock as h, createVNode as m, createElementVNode as w, unref as l, withCtx as N, toDisplayString as L, Fragment as Z, renderList as ue, withModifiers as te, createTextVNode as re, watch as se, createCommentVNode as U, createBlock as T, onMounted as Ce, onUnmounted as Pe, renderSlot as $e, onBeforeUnmount as Ae, resolveDynamicComponent as Ne, normalizeClass as Oe, withDirectives as ae, vShow as ne, normalizeStyle as Xe, isRef as We } from "vue";
2
2
  import { useRoute as qe, useRouter as He } from "vue-router";
3
- import { h as Ye, d as ke, S as Fe, _ as Ee, W as Je, b as Ge, T as Ke, a as Qe } from "./TransitionFade-K0ZfP5kz.js";
4
- import { W as B, b as Be, _ as me, D as Ze, S as Se, C as el, P as Te, a as ll } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DLAmjLpT.js";
3
+ import { h as Ye, d as ke, S as Fe, _ as Ee, W as Je, b as Ge, T as Ke, a as Qe } from "./TransitionFade--t2l2y8W.js";
4
+ import { W as B, b as Be, _ as me, D as Ze, S as Se, C as el, P as Te, a as ll } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CosfLSAK.js";
5
5
  import { storeToRefs as de } from "pinia";
6
6
  import { u as Ie } from "./message-dialog-UoMWOnil.js";
7
7
  import { u as H, h as Le, p as ol, b as tl, d as pe } from "./vue-i18n-Cjs2Btd-.js";
8
8
  import { useSnackbar as al, useBreakpoints as je, FmButtonColorThemeVariant as ce } from "@feedmepos/ui-library";
9
9
  import { _ as K } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CoMcbMHU.js";
10
10
  import { r as Q } from "./i18n-Cif1I9J2.js";
11
- import { g as ve, u as fe, L as ie, a as he, _ as Re } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Cg9Q0Alk.js";
11
+ import { g as ve, u as fe, L as ie, a as he, _ as Re } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-D1AmPGmI.js";
12
12
  import { a as ge } from "./helper-DDO1q72b.js";
13
13
  import { _ as Me } from "./NoData.vue_vue_type_script_setup_true_lang-JK38qSlL.js";
14
14
  const ye = [