@feedmepos/mf-report 5.22.11-beta.2 → 5.22.12

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 (25) hide show
  1. package/dist/{App-B57Zz_fI.js → App-DDzVhXL7.js} +74 -83
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DoRiNQsD.js → BaseDialog.vue_vue_type_script_setup_true_lang-BZlvMBPW.js} +3 -3
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-COZ1Jnbw.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-DSCAEz_l.js → Default.vue_vue_type_script_setup_true_lang-BuFLfame.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-Cx6jgLLi.js → FilterSelector.vue_vue_type_script_setup_true_lang-BoX6fRDT.js} +6 -6
  6. package/dist/{InsightView-DVvufXmL.js → InsightView-DBmUbSlP.js} +6 -6
  7. package/dist/{Integration-C1M7geAu.js → Integration-BDC13WLh.js} +4 -4
  8. package/dist/{Integrations-gPgirmi-.js → Integrations-C6gWnyhy.js} +4 -4
  9. package/dist/{Layout-t7HiNFQ0.js → Layout-DbHEONpc.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-PlvRWxiz.js → MenuTab.vue_vue_type_script_setup_true_lang-G9CiV2LK.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B5cUE-1C.js → NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js} +1956 -1942
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-R0iFXhXD.js → NoData.vue_vue_type_script_setup_true_lang-CdGpZdFx.js} +1 -1
  13. package/dist/{OverviewView-cE_AlKAA.js → OverviewView-B0dWJYNP.js} +5 -5
  14. package/dist/{Report-CRxN2Iyk.js → Report-QeJVzX13.js} +4 -4
  15. package/dist/{ReportEditor-DMkD-O-h.js → ReportEditor-LupGO1_l.js} +6 -6
  16. package/dist/{ReportView-DK5Pd0YM.js → ReportView-BMgXES5v.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DgKoHGir.js → SelectComponent.vue_vue_type_script_setup_true_lang-DMMP43KF.js} +1 -1
  18. package/dist/{Setting-BlS-V2H2.js → Setting-Dv-Eo5IX.js} +5 -5
  19. package/dist/{TileEditor-CKGeIeu9.js → TileEditor-ZqOV5_Le.js} +8 -8
  20. package/dist/{TransitionFade-Ccx8oC2g.js → TransitionFade-CsoI1XtQ.js} +6 -6
  21. package/dist/{app-CjSjvpYe.js → app-Du0ALyx7.js} +60 -52
  22. package/dist/app.js +1 -1
  23. package/dist/{useRestaurantPermission-C2PyITSJ.js → useRestaurantPermission-8zTUt56b.js} +2 -2
  24. package/dist/{vue-i18n-CQDOAEO7.js → vue-i18n-kHBFKu4C.js} +2 -2
  25. package/package.json +1 -1
@@ -1,38 +1,38 @@
1
- import { defineComponent as se, resolveComponent as j, createBlock as ie, openBlock as R, unref as c, isRef as Oe, withCtx as U, createElementVNode as M, createVNode as V, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as N, computed as te, onBeforeMount as Ee, onBeforeUnmount as Ce, createElementBlock as Q, Fragment as ke } from "vue";
1
+ import { defineComponent as se, resolveComponent as Q, createBlock as ie, openBlock as R, unref as c, isRef as be, withCtx as U, createElementVNode as M, createVNode as V, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as N, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as j, Fragment as ke } from "vue";
2
2
  import { detectLocale as T, useCoreStore as z } from "@feedmepos/mf-common";
3
- import { u as Ae, a as Ne, b as ne, c as Te, d as Fe, e as $e, f as xe, s as Be } from "./vue-i18n-CQDOAEO7.js";
4
- import { storeToRefs as b } from "pinia";
5
- import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DoRiNQsD.js";
6
- import { u as Qe, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B5cUE-1C.js";
3
+ import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, f as $e, s as xe } from "./vue-i18n-kHBFKu4C.js";
4
+ import { storeToRefs as L } from "pinia";
5
+ import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BZlvMBPW.js";
6
+ import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js";
7
7
  import { u as oe } from "./message-dialog-UoMWOnil.js";
8
- import { d as u } from "./app-CjSjvpYe.js";
9
- import { useRoute as je, useRouter as Ve } from "vue-router";
10
- const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe = /* @__PURE__ */ se({
8
+ import { d as u } from "./app-Du0ALyx7.js";
9
+ import { useRoute as Qe, useRouter as Ve } from "vue-router";
10
+ const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge = /* @__PURE__ */ se({
11
11
  __name: "Dialog",
12
- setup(L) {
13
- const { t: i } = Ae(), d = oe(), { isOpened: l, message: S, title: D } = b(oe());
14
- return (h, p) => {
15
- const _ = j("FmButton"), F = j("FmDialog");
16
- return R(), ie(F, {
12
+ setup(_) {
13
+ const { t: i } = Ae(), d = oe(), { isOpened: l, message: v, title: S } = L(oe());
14
+ return (D, p) => {
15
+ const O = Q("FmButton"), B = Q("FmDialog");
16
+ return R(), ie(B, {
17
17
  modelValue: c(l),
18
- "onUpdate:modelValue": p[0] || (p[0] = ($) => Oe(l) ? l.value = $ : null),
18
+ "onUpdate:modelValue": p[0] || (p[0] = (F) => be(l) ? l.value = F : null),
19
19
  overlay: "",
20
20
  "close-button": !1
21
21
  }, {
22
22
  "dialog-header": U(() => [
23
- we(ee(c(D)), 1)
23
+ we(ee(c(S)), 1)
24
24
  ]),
25
25
  default: U(() => [
26
- M("p", We, ee(c(S)), 1)
26
+ M("p", Pe, ee(c(v)), 1)
27
27
  ]),
28
28
  "dialog-footer": U(() => [
29
29
  p[1] || (p[1] = M("div", { class: "grow" }, null, -1)),
30
- V(_, {
30
+ V(O, {
31
31
  label: c(i)("report.common.cancel"),
32
32
  variant: "tertiary",
33
33
  onClick: c(d).dismiss
34
34
  }, null, 8, ["label", "onClick"]),
35
- V(_, {
35
+ V(O, {
36
36
  label: c(i)("report.common.confirm"),
37
37
  onClick: c(d).confirm
38
38
  }, null, 8, ["label", "onClick"])
@@ -42,8 +42,8 @@ const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe
42
42
  };
43
43
  }
44
44
  }), ae = N(T());
45
- function Ge() {
46
- const L = (i) => {
45
+ function We() {
46
+ const _ = (i) => {
47
47
  switch (ae.value = i, i) {
48
48
  case "zh-CN":
49
49
  u.locale("zh-cn");
@@ -54,26 +54,26 @@ function Ge() {
54
54
  }
55
55
  };
56
56
  return ue(() => {
57
- L(T());
58
- }), q(() => T(), L, { deep: !0, immediate: !0 }), {
57
+ _(T());
58
+ }), q(() => T(), _, { deep: !0, immediate: !0 }), {
59
59
  currentLocale: ae
60
60
  };
61
61
  }
62
62
  u.locale(T() === "zh-CN" ? "zh-cn" : "en");
63
- const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
63
+ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
64
64
  __name: "App",
65
- setup(L) {
66
- const { businessId: i, token: d, country: l } = b(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: h, registerSidebarComponent: p } = z(), { getRestaurantAndWarehouse: _, getBusinessSetting: F, beginBusinessLoad: $, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = b(re()), { getSettings: le } = Fe(), { promptLoader: fe } = $e(), n = je(), W = Ve(), I = Je(), P = Qe(), r = ne(), me = re(), { suppressReportRouteSync: O } = b(me), { getReports: pe, getOverviewReport: ge, getReportConfig: G, currentReportId: K } = I, { currentReportId: ye, reports: ve } = b(I), { getSchema: Se } = Ue(), { fetchSchedules: De } = P, { init: he } = xe(), x = N("v5"), w = N(!1), E = N(!0), Ie = te(() => `https://portal-v1.feedmedev.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${d.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedmedev.cc?businessId=${i.value}&country=${l.value}&token=${d.value}&reportV3Button=true`);
65
+ setup(_) {
66
+ const { businessId: i, token: d, country: l } = L(Ne()), { sessionUser: v, currentBusiness: S, currentCountry: D, registerSidebarComponent: p } = z(), { getRestaurantAndWarehouse: O, getBusinessSetting: B, beginBusinessLoad: F, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = Qe(), P = Ve(), h = Je(), G = je(), r = ne(), me = re(), { suppressReportRouteSync: b } = L(me), { getReports: pe, getOverviewReport: ge, getReportConfig: W, currentReportId: H } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = G, { init: he } = $e(), $ = N("v5"), w = N(!1), C = N(!0), Ie = te(() => `https://portal-v1.feedme.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${d.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedme.cc?businessId=${i.value}&country=${l.value}&token=${d.value}&reportV3Button=true`);
67
67
  q(
68
- [() => D.value, () => S.value, () => h.value],
68
+ [() => S.value, () => v.value, () => D.value],
69
69
  () => {
70
70
  var t, a;
71
- const e = ((t = D.value) == null ? void 0 : t.id) ?? "";
72
- D.value && S.value && h.value && (Be(h.value), i.value !== e && (i.value = e), d.value = ((a = S.value) == null ? void 0 : a.token) ?? "", l.value = h.value ?? "");
71
+ const e = ((t = S.value) == null ? void 0 : t.id) ?? "";
72
+ S.value && v.value && D.value && (xe(D.value), i.value !== e && (i.value = e), d.value = ((a = v.value) == null ? void 0 : a.token) ?? "", l.value = D.value ?? "");
73
73
  },
74
74
  { immediate: !0 }
75
75
  );
76
- function H(e) {
76
+ function K(e) {
77
77
  if (typeof e.data == "string")
78
78
  try {
79
79
  const t = JSON.parse(e.data);
@@ -86,19 +86,19 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
86
86
  if (typeof e.data == "string")
87
87
  try {
88
88
  const t = JSON.parse(e.data);
89
- (t == null ? void 0 : t.v5) === !0 ? f.value = x.value : (t == null ? void 0 : t.v3) === !0 && (f.value = "v3");
89
+ (t == null ? void 0 : t.v5) === !0 ? f.value = $.value : (t == null ? void 0 : t.v3) === !0 && (f.value = "v3");
90
90
  } catch (t) {
91
91
  console.error(t);
92
92
  }
93
93
  }
94
94
  q(f, () => {
95
95
  ["v3", "v4"].includes(f.value) ? z().hideSidebarToggle(!0) : z().hideSidebarToggle(!1);
96
- }), Ee(() => {
96
+ }), Ce(() => {
97
97
  p(ze);
98
98
  }), ue(() => {
99
- console.log("5.22.11-beta.2", !0), window.addEventListener("message", H), window.addEventListener("message", X);
100
- }), Ce(() => {
101
- window.removeEventListener("message", H), window.removeEventListener("message", X), I.$dispose(), P.$dispose();
99
+ console.log("5.22.12", !0), window.addEventListener("message", K), window.addEventListener("message", X);
100
+ }), Ee(() => {
101
+ window.removeEventListener("message", K), window.removeEventListener("message", X), h.$dispose(), G.$dispose();
102
102
  });
103
103
  function qe(e) {
104
104
  try {
@@ -107,7 +107,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
107
107
  return e;
108
108
  }
109
109
  }
110
- function C(e) {
110
+ function E(e) {
111
111
  if (typeof e != "string" || e.length === 0) return;
112
112
  const t = e.includes("%") ? [e, qe(e)] : [e];
113
113
  for (const a of t)
@@ -128,17 +128,17 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
128
128
  const t = e;
129
129
  return typeof t.hour == "number" && typeof t.minute == "number";
130
130
  }
131
- function be() {
132
- const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", m = C(n.query.timeStart), g = C(n.query.timeEnd), k = Y(m) ? m : null, A = Y(g) ? g : null, B = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, J = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
133
- let y = [];
131
+ function Le() {
132
+ const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", m = E(n.query.timeStart), I = E(n.query.timeEnd), k = Y(m) ? m : null, A = Y(I) ? I : null, x = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, J = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
133
+ let g = [];
134
134
  if (Z)
135
- y = r.selectedLocationIds;
135
+ g = r.selectedLocationIds;
136
136
  else {
137
- const o = C(n.query.locationIds);
138
- y = Array.isArray(o) ? o : [];
137
+ const o = E(n.query.locationIds);
138
+ g = Array.isArray(o) ? o : [];
139
139
  }
140
- let v = n.query.reportId || K;
141
- if (ve.value.find((o) => o.id === v) || (v = K), v && v !== I.currentReportId && I.updateCurrentReportId(v), e || t) {
140
+ let y = n.query.reportId || H;
141
+ if (ve.value.find((o) => o.id === y) || (y = H), y && y !== h.currentReportId && h.updateCurrentReportId(y), e || t) {
142
142
  const o = r.dateRange;
143
143
  (o.startDate !== e || o.endDate !== t) && r.setDateRange({ startDate: e, endDate: t });
144
144
  }
@@ -146,20 +146,20 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
146
146
  const o = r.timeRange;
147
147
  (o.start !== k || o.end !== A) && r.setTimeRange({ start: k, end: A });
148
148
  }
149
- if (B || J) {
149
+ if (x || J) {
150
150
  const o = r.compareDateRange;
151
- (o.startDate !== B || o.endDate !== J) && r.setCompareDateRange({
152
- startDate: B,
151
+ (o.startDate !== x || o.endDate !== J) && r.setCompareDateRange({
152
+ startDate: x,
153
153
  endDate: J
154
154
  });
155
155
  }
156
- if (!Z && Array.isArray(y)) {
156
+ if (!Z && Array.isArray(g)) {
157
157
  const o = r.selectedLocationIds;
158
- o.length === y.length && o.every((Le, _e) => Le === y[_e]) || r.setSelectedLocationIds(y);
158
+ o.length === g.length && o.every((_e, Oe) => _e === g[Oe]) || r.setSelectedLocationIds(g);
159
159
  }
160
160
  return {
161
161
  // TODO: this returned value can used for getBusinessSetting
162
- reportId: v,
162
+ reportId: y,
163
163
  startDate: n.query.startDate,
164
164
  endDate: n.query.endDate,
165
165
  timeStart: n.query.timeStart,
@@ -173,10 +173,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
173
173
  return q(
174
174
  () => i.value,
175
175
  async (e, t) => {
176
- e !== "" && (console.log("[business watch]", {
177
- newBusinessId: e,
178
- oldBusinessId: t
179
- }), w.value = !1, $(e), (!E.value || t !== void 0) && (console.log("[business watch]", "is not initial and old is not undefined. reseting locations"), r.setSelectedLocationIds([]), W.replace({
176
+ e !== "" && (w.value = !1, F(e), (!C.value || t !== void 0) && (r.setSelectedLocationIds([]), P.replace({
180
177
  name: n.name,
181
178
  params: n.params,
182
179
  query: {
@@ -184,30 +181,30 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
184
181
  locationIds: void 0,
185
182
  isAllLocation: "true"
186
183
  }
187
- }), console.log("[business watch] done reset both store and route")), O.value !== void 0 && (O.value = !0), await fe(async () => {
184
+ })), b.value !== void 0 && (b.value = !0), await fe(async () => {
188
185
  await he({
189
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
186
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
190
187
  url: "https://flag.feedme.farm/api/v1/",
191
188
  enableAnalytics: !1,
192
189
  cacheFlags: !1
193
190
  });
194
- const a = await G();
195
- x.value = a.version, f.value = x.value, await Promise.all([
191
+ const a = await W();
192
+ $.value = a.version, f.value = $.value, await Promise.all([
196
193
  de(),
197
- G(),
194
+ W(),
198
195
  ge(),
199
196
  pe(),
200
197
  Se(),
201
198
  De(),
202
- _(
199
+ O(
203
200
  (() => {
204
- const s = C(n.query.locationIds);
201
+ const s = E(n.query.locationIds);
205
202
  return Array.isArray(s) ? s : void 0;
206
203
  })()
207
204
  ),
208
205
  le()
209
- ]), await F(), be(), ce(e);
210
- }), w.value = !0, E.value && (E.value = !1));
206
+ ]), await B(), Le(), ce(e);
207
+ }), w.value = !0, C.value && (C.value = !1));
211
208
  },
212
209
  {
213
210
  immediate: !0
@@ -221,12 +218,12 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
221
218
  compareDateRange: r.compareDateRange
222
219
  }),
223
220
  (e) => {
224
- if (!w.value || !e.reportId || E.value) return;
225
- if (O.value) {
226
- O.value = !1;
221
+ if (!w.value || !e.reportId || C.value) return;
222
+ if (b.value) {
223
+ b.value = !1;
227
224
  return;
228
225
  }
229
- const t = e.selectedLocationIds, a = e.dateRange, s = e.timeRange, m = e.compareDateRange, g = {
226
+ const t = e.selectedLocationIds, a = e.dateRange, s = e.timeRange, m = e.compareDateRange, I = {
230
227
  ...n.query,
231
228
  reportId: e.reportId,
232
229
  startDate: a.startDate ? u(a.startDate).startOf("day").toISOString() : void 0,
@@ -237,33 +234,27 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
237
234
  timeEnd: s.end ? JSON.stringify(s.end) : void 0,
238
235
  locationIds: t.length === r.locations.length ? void 0 : t.length > 0 ? JSON.stringify(t) : void 0,
239
236
  isAllLocation: String(t.length === r.locations.length)
240
- }, k = JSON.stringify(n.query), A = JSON.stringify(g);
241
- k !== A && (console.log(
242
- "[loaded] route query is different, replacing route",
243
- {
244
- currentQuery: n.query,
245
- newQuery: g
246
- }
247
- ), W.replace({
237
+ }, k = JSON.stringify(n.query), A = JSON.stringify(I);
238
+ k !== A && P.replace({
248
239
  name: n.name,
249
240
  params: n.params,
250
- query: g
251
- }));
241
+ query: I
242
+ });
252
243
  },
253
244
  { deep: !0 }
254
- ), Ge(), (e, t) => {
255
- const a = j("router-view");
256
- return R(), Q(ke, null, [
257
- V(Pe),
258
- c(f) === "v3" ? (R(), Q("iframe", {
245
+ ), We(), (e, t) => {
246
+ const a = Q("router-view");
247
+ return R(), j(ke, null, [
248
+ V(Ge),
249
+ c(f) === "v3" ? (R(), j("iframe", {
259
250
  key: 0,
260
251
  class: "bg-white h-full w-full",
261
252
  src: Ie.value
262
- }, null, 8, Ke)) : c(f) === "v4" ? (R(), Q("iframe", {
253
+ }, null, 8, He)) : c(f) === "v4" ? (R(), j("iframe", {
263
254
  key: 1,
264
255
  class: "bg-white h-full w-full",
265
256
  src: Re.value
266
- }, null, 8, He)) : (R(), ie(a, { key: 2 }))
257
+ }, null, 8, Ke)) : (R(), ie(a, { key: 2 }))
267
258
  ], 64);
268
259
  };
269
260
  }
@@ -1,11 +1,11 @@
1
- import { a as E0, F as m0, l as S0, b as X0, c as Ce, k as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-CQDOAEO7.js";
1
+ import { a as E0, F as m0, l as S0, b as X0, c as Ce, k as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-kHBFKu4C.js";
2
2
  import { storeToRefs as c0, defineStore as k0 } from "pinia";
3
3
  import { ref as s0, computed as B0, watch as V0, h as Me, defineComponent as De, mergeModels as Q0, useModel as W0, resolveComponent as O0, createElementBlock as Y0, openBlock as N0, createVNode as C0, withCtx as P0, createElementVNode as L0, createCommentVNode as Re, Fragment as ne, renderList as xe, createBlock as de, createTextVNode as ce, withDirectives as Le, toDisplayString as v0, unref as h0, vShow as Oe, renderSlot as we } from "vue";
4
4
  import { useSnackbar as fe, components as ve } from "@feedmepos/ui-library";
5
- import { d as b0 } from "./app-CjSjvpYe.js";
5
+ import { d as b0 } from "./app-Du0ALyx7.js";
6
6
  import { useRouter as Be } from "vue-router";
7
7
  import { detectLocale as J0 } from "@feedmepos/mf-common";
8
- import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COZ1Jnbw.js";
8
+ import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
9
9
  function pe(T) {
10
10
  throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
11
11
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as A, resolveComponent as S, createBlock as p, openBlock as y, withCtx as T, createCommentVNode as R, createElementVNode as M, toDisplayString as j, renderSlot as B, mergeModels as k, useModel as b, ref as C, watch as O, createElementBlock as U, unref as f, createVNode as x } from "vue";
2
- import { u as W, b as q, O as G, C as H } from "./vue-i18n-CQDOAEO7.js";
3
- import { d as r } from "./app-CjSjvpYe.js";
2
+ import { u as W, b as q, O as G, C as H } from "./vue-i18n-kHBFKu4C.js";
3
+ import { d as r } from "./app-Du0ALyx7.js";
4
4
  import { detectLocale as E } from "@feedmepos/mf-common";
5
5
  import { storeToRefs as K } from "pinia";
6
6
  var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {}), L = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(L || {});
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, 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-B5cUE-1C.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, e as w } from "./vue-i18n-CQDOAEO7.js";
5
+ import { u as q, e as w } from "./vue-i18n-kHBFKu4C.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,
@@ -1,15 +1,15 @@
1
1
  import { computed as m, defineComponent as je, ref as T, onMounted as nt, onBeforeUnmount as sa, resolveComponent as ve, createBlock as Ce, openBlock as G, Transition as Ha, withCtx as Pe, createElementBlock as ge, createCommentVNode as Te, createElementVNode as Q, unref as r, normalizeStyle as Ue, withModifiers as xt, toDisplayString as He, createVNode as ce, Fragment as Ke, renderList as wt, normalizeClass as ze, watch as Ve, nextTick as Ye, mergeModels as ct, useModel as at, renderSlot as dt, h as tn, toRaw as Wa, markRaw as Ea, createTextVNode as gn, onUnmounted as ia, resolveDynamicComponent as Oa, withDirectives as Ua, vShow as Ka } from "vue";
2
- import { W as le, e as Pt, f as Ya, S as yt, v as Ot, g as qa, h as mn, i as ua, q as ca, R as Lt, j as Xa, D as it, c as Oe, C as tt, a as Ga, b as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DoRiNQsD.js";
3
- import { u as pt, b as Ut, a as Mn, h as Za } from "./vue-i18n-CQDOAEO7.js";
4
- import { d as yn, _ as Qa, a as eo, b as to, c as no } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COZ1Jnbw.js";
2
+ import { W as le, e as Pt, f as Ya, S as yt, v as Ot, g as qa, h as mn, i as ua, q as ca, R as Lt, j as Xa, D as it, c as Oe, C as tt, a as Ga, b as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BZlvMBPW.js";
3
+ import { u as pt, b as Ut, a as Mn, h as Za } from "./vue-i18n-kHBFKu4C.js";
4
+ import { d as yn, _ as Qa, a as eo, b as to, c as no } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
5
5
  import { storeToRefs as ut, defineStore as da } from "pinia";
6
6
  import { C as bn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as ao } from "@feedmepos/mf-common";
8
8
  import { useBreakpoints as Fn, useSnackbar as Bn, components as oo } from "@feedmepos/ui-library";
9
- import { t as lo, z as ro, a as so, e as io, d as Dt } from "./app-CjSjvpYe.js";
10
- import { _ as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DgKoHGir.js";
9
+ import { t as lo, z as ro, a as so, e as io, d as Dt } from "./app-Du0ALyx7.js";
10
+ import { _ as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DMMP43KF.js";
11
11
  import { r as bt } from "./i18n-CI_sQ5d_.js";
12
- import { _ as Cn } from "./NoData.vue_vue_type_script_setup_true_lang-R0iFXhXD.js";
12
+ import { _ as Cn } from "./NoData.vue_vue_type_script_setup_true_lang-CdGpZdFx.js";
13
13
  var xn = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(xn || {}), gt = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(gt || {}), wn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(wn || {}), Sn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Sn || {}), kn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(kn || {}), _n = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(_n || {}), Tn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Tn || {}), Re = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Re || {});
14
14
  le.Circular, le.Table, le.BarChart, le.LineChart, le.StackBarChart, le.ClusteredStackBarChart, le.StackLineChart, le.Scorecard, le.Spacer;
15
15
  const uo = [
@@ -1,13 +1,13 @@
1
1
  import { ref as B, defineComponent as S, watch as T, computed as _, onMounted as le, createElementBlock as d, openBlock as o, createElementVNode as a, renderSlot as H, toDisplayString as w, resolveDirective as X, createCommentVNode as A, Fragment as z, renderList as P, createBlock as V, withDirectives as M, resolveDynamicComponent as N, unref as m, withCtx as I, createVNode as h, normalizeClass as L, resolveComponent as R, useModel as ae, createTextVNode as oe, isRef as j, nextTick as se } from "vue";
2
- import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-DSCAEz_l.js";
3
- import { _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COZ1Jnbw.js";
4
- import { a as G, q as O, F as J, u as K, g as Y, b as re } from "./vue-i18n-CQDOAEO7.js";
2
+ import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-BuFLfame.js";
3
+ import { _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
4
+ import { a as G, q as O, F as J, u as K, g as Y, b as re } from "./vue-i18n-kHBFKu4C.js";
5
5
  import { storeToRefs as Q } from "pinia";
6
- import { d as W } from "./app-CjSjvpYe.js";
6
+ import { d as W } from "./app-Du0ALyx7.js";
7
7
  import { C as ee, r as de } from "./chart-DDDh8zNk.js";
8
8
  import { components as E, useSnackbar as ce } from "@feedmepos/ui-library";
9
- import { _ as ue } from "./NoData.vue_vue_type_script_setup_true_lang-R0iFXhXD.js";
10
- import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B5cUE-1C.js";
9
+ import { _ as ue } from "./NoData.vue_vue_type_script_setup_true_lang-CdGpZdFx.js";
10
+ import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js";
11
11
  import { useCoreStore as ge } from "@feedmepos/mf-common";
12
12
  function pe({ start: e, end: t }) {
13
13
  return `${W(t).format("DD MMM")}, ${W(t).format("YYYY")}`;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as Z, mergeModels as Ae, useModel as te, computed as q, resolveComponent as D, createElementBlock as M, openBlock as w, createElementVNode as t, createCommentVNode as B, normalizeClass as Ge, Fragment as Ve, createBlock as E, withCtx as he, toDisplayString as A, renderList as Pe, createVNode as l, unref as u, h as S, normalizeStyle as st, createTextVNode as rt, ref as G, onUnmounted as Le, watch as De, isRef as Re, resolveDynamicComponent as Ue, mergeProps as Xe, onMounted as et } from "vue";
2
2
  import { useRouter as _e, useRoute as it } from "vue-router";
3
- import { u as oe, I as Se, o as dt, t as mt, d as Ie, e as je, b as Ce, A as be, v as pt, j as ut, n as Oe, w as Ee, x as Te, y as Be, z as We, B as ct, E as ft, G as gt, H as Je, c as lt, J as vt, K as yt, L as xt, M as bt, N as wt } from "./vue-i18n-CQDOAEO7.js";
3
+ import { u as oe, I as Se, o as dt, t as mt, d as Ie, e as je, b as Ce, A as be, v as pt, j as ut, n as Oe, w as Ee, x as Te, y as Be, z as We, B as ct, E as ft, G as gt, H as Je, c as lt, J as vt, K as yt, L as xt, M as bt, N as wt } from "./vue-i18n-kHBFKu4C.js";
4
4
  import { u as Ye } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as ke } from "@feedmepos/ui-library";
6
- import { d as Fe } from "./app-CjSjvpYe.js";
7
- import { u as Ne, h as we, e as W } from "./useRestaurantPermission-C2PyITSJ.js";
6
+ import { d as Fe } from "./app-Du0ALyx7.js";
7
+ import { u as Ne, h as we, e as W } from "./useRestaurantPermission-8zTUt56b.js";
8
8
  import { storeToRefs as qe } from "pinia";
9
- import { _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COZ1Jnbw.js";
9
+ import { _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
10
10
  const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, ht = { class: "w-[100%]" }, Ct = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, kt = { class: "w-[100%] flex flex-row gap-[4px]" }, $t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, St = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, At = {
11
11
  key: 0,
12
12
  class: "w-[24px] flex items-center"