@feedmepos/mf-report 5.32.0-beta.0 → 5.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{App-o4z-EAO1.js → App-DmCGLjX7.js} +90 -90
  2. package/dist/{DateRangeSelect-DO3T_rQs.js → DateRangeSelect-ByNkTDjz.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CW_VllVL.js → Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js} +1 -1
  4. package/dist/{DigestListView-DG-vojKl.js → DigestListView-De9tIPMS.js} +3 -3
  5. package/dist/{DigestReaderView-bRfEYtZA.js → DigestReaderView-DO_nmqE8.js} +4 -4
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Bfmd5eMI.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BCrF_c93.js} +6 -6
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vy0FZKv0.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqSpNI7C.js} +4 -4
  8. package/dist/{InsightView-sLKiFc_-.js → InsightView-C-CwTtk_.js} +5 -5
  9. package/dist/{Integration-CZn5gvF8.js → Integration-BRNvT1Bi.js} +3 -3
  10. package/dist/{Integrations-I0rHAfPo.js → Integrations-apd0BYi4.js} +2 -2
  11. package/dist/{Layout-DPEfiH3f.js → Layout-CAcG75jm.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DFQ943gj.js → LocationSelect.vue_vue_type_script_setup_true_lang-D77iP1So.js} +2 -2
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BjJcvN_z.js → MenuTab.vue_vue_type_script_setup_true_lang-0FI-8jfq.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-zUF-G98m.js → NavigationTab.vue_vue_type_script_setup_true_lang-caeBZJMd.js} +5 -5
  15. package/dist/{OverviewView-CJS82eII.js → OverviewView-DT4wH9BY.js} +5 -5
  16. package/dist/{Report-DDYgnr3v.js → Report-DC5SaVnn.js} +3 -3
  17. package/dist/{ReportCanvasView-m_qW7QgV.js → ReportCanvasView-DKSSW9vS.js} +5 -5
  18. package/dist/{ReportEditor-CrMd2q2a.js → ReportEditor-pv17FE6d.js} +7 -7
  19. package/dist/{ReportView-CKLzDw5j.js → ReportView-hu8o7gHa.js} +6 -6
  20. package/dist/{ReportViewRoute-BrLi7iXr.js → ReportViewRoute-Dv72tGDa.js} +2 -2
  21. package/dist/{Setting-BUmSYXCO.js → Setting-B98DTITn.js} +3 -3
  22. package/dist/{Template-CljYVpCi.js → Template-CaVg_yFH.js} +3 -3
  23. package/dist/{TileEditor-3fV8xOVc.js → TileEditor-HXcsJvnS.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Biwl30EU.js → TilePageStack.vue_vue_type_script_setup_true_lang-B9kTXx-f.js} +2 -2
  25. package/dist/{TransitionFade-BUSdiKFH.js → TransitionFade-CIv_c2SU.js} +5 -5
  26. package/dist/{app-BXVd3ce-.js → app-DvNjldW6.js} +16 -16
  27. package/dist/app.js +1 -1
  28. package/dist/{currency-C6h0cwip.js → currency-DkfeAufo.js} +1 -1
  29. package/dist/{index-BoeJLw2U.js → index-BfS1DQsO.js} +1 -1
  30. package/dist/{report-DG-20Pq8.js → report-BYoPJJLO.js} +1 -1
  31. package/dist/{useDigestFont-Gf1l5qYq.js → useDigestFont-qj5lGRy-.js} +1 -1
  32. package/dist/{useReportCanvasPanel-CquUHqIK.js → useReportCanvasPanel-BJTLOzd9.js} +3 -3
  33. package/dist/{useRestaurantPermission-BNu9cN13.js → useRestaurantPermission-Cy0Wr066.js} +1 -1
  34. package/package.json +1 -1
@@ -1,40 +1,40 @@
1
- import { defineComponent as me, resolveComponent as X, createBlock as pe, openBlock as A, unref as d, isRef as xe, withCtx as K, createElementVNode as ae, createVNode as Z, toDisplayString as re, createTextVNode as Je, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as Qe, onBeforeUnmount as Ue, createElementBlock as G, Fragment as je } from "vue";
2
- import { detectLocale as U, useCoreStore as H } from "@feedmepos/mf-common";
3
- import { d as V, u as Pe, a as ie, b as We, c as ce, e as Ke, f as Ge, g as He, h as Xe, i as ue, t as Ze, z as Ve, j as Ye } from "./app-BXVd3ce-.js";
1
+ import { defineComponent as me, resolveComponent as Z, createBlock as pe, openBlock as A, unref as d, isRef as xe, withCtx as H, createElementVNode as re, createVNode as V, toDisplayString as ae, createTextVNode as Je, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as Qe, onBeforeUnmount as Ue, createElementBlock as K, Fragment as je } from "vue";
2
+ import { detectLocale as U, useCoreStore as W } from "@feedmepos/mf-common";
3
+ import { d as X, u as Pe, a as ie, b as Ge, c as ce, e as He, f as Ke, g as We, h as Ze, i as ue, t as Ve, z as Xe, j as Ye } from "./app-DvNjldW6.js";
4
4
  import { storeToRefs as k } from "pinia";
5
5
  import { u as Me } from "./global-loader-BuxFfehu.js";
6
- import { u as et, a as tt } from "./report-DG-20Pq8.js";
7
- import { u as nt, _ as ot } from "./NavigationTab.vue_vue_type_script_setup_true_lang-zUF-G98m.js";
6
+ import { u as et, a as tt } from "./report-BYoPJJLO.js";
7
+ import { u as nt, _ as ot } from "./NavigationTab.vue_vue_type_script_setup_true_lang-caeBZJMd.js";
8
8
  import { u as de } from "./message-dialog-UoMWOnil.js";
9
- import { u as at } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
- import { useRoute as rt, useRouter as st } from "vue-router";
9
+ import { u as rt } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
+ import { useRoute as at, useRouter as st } from "vue-router";
11
11
  const it = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ct = /* @__PURE__ */ me({
12
12
  __name: "Dialog",
13
13
  setup(q) {
14
- const { t: c } = at(), g = de(), { isOpened: y, message: E, title: L } = k(de());
15
- return (T, _) => {
16
- const z = X("FmButton"), j = X("FmDialog");
14
+ const { t: c } = rt(), g = de(), { isOpened: y, message: L, title: E } = k(de());
15
+ return (T, R) => {
16
+ const z = Z("FmButton"), j = Z("FmDialog");
17
17
  return A(), pe(j, {
18
18
  modelValue: d(y),
19
- "onUpdate:modelValue": _[0] || (_[0] = (P) => xe(y) ? y.value = P : null),
19
+ "onUpdate:modelValue": R[0] || (R[0] = (P) => xe(y) ? y.value = P : null),
20
20
  overlay: "",
21
21
  "close-button": !1,
22
22
  "z-index": 3e3
23
23
  }, {
24
- "dialog-header": K(() => [
25
- Je(re(d(L)), 1)
24
+ "dialog-header": H(() => [
25
+ Je(ae(d(E)), 1)
26
26
  ]),
27
- default: K(() => [
28
- ae("p", it, re(d(E)), 1)
27
+ default: H(() => [
28
+ re("p", it, ae(d(L)), 1)
29
29
  ]),
30
- "dialog-footer": K(() => [
31
- _[1] || (_[1] = ae("div", { class: "grow" }, null, -1)),
32
- Z(z, {
30
+ "dialog-footer": H(() => [
31
+ R[1] || (R[1] = re("div", { class: "grow" }, null, -1)),
32
+ V(z, {
33
33
  label: d(c)("report.common.cancel"),
34
34
  variant: "tertiary",
35
35
  onClick: d(g).dismiss
36
36
  }, null, 8, ["label", "onClick"]),
37
- Z(z, {
37
+ V(z, {
38
38
  label: d(c)("report.common.confirm"),
39
39
  onClick: d(g).confirm
40
40
  }, null, 8, ["label", "onClick"])
@@ -48,10 +48,10 @@ function ut() {
48
48
  const q = (c) => {
49
49
  switch (le.value = c, c) {
50
50
  case "zh-CN":
51
- V.locale("zh-cn");
51
+ X.locale("zh-cn");
52
52
  break;
53
53
  default:
54
- V.locale("en");
54
+ X.locale("en");
55
55
  break;
56
56
  }
57
57
  };
@@ -61,23 +61,23 @@ function ut() {
61
61
  currentLocale: le
62
62
  };
63
63
  }
64
- V.locale(U() === "zh-CN" ? "zh-cn" : "en");
65
- const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
64
+ X.locale(U() === "zh-CN" ? "zh-cn" : "en");
65
+ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
66
66
  __name: "App",
67
67
  setup(q) {
68
- const { businessId: c, token: g, country: y } = k(Pe()), { sessionUser: E, currentBusiness: L, currentCountry: T, registerSidebarComponent: _ } = H(), {
68
+ const { businessId: c, token: g, country: y } = k(Pe()), { sessionUser: L, currentBusiness: E, currentCountry: T, registerSidebarComponent: R } = W(), {
69
69
  getRestaurantAndWarehouse: z,
70
70
  getBusinessSetting: j,
71
71
  beginBusinessLoad: P,
72
72
  completeBusinessLoad: ge,
73
73
  resetTimezoneContext: ye
74
- } = ie(), ve = We(), { getFeatureFlags: Se } = ve, { version: v } = k(ce()), { getSettings: De } = Ke(), { loadHasDigest: he } = Ge(), { isAdmin: Ie } = He(), { promptLoader: _e } = Me(), n = rt(), N = st(), b = et(), Y = nt(), r = ie(), B = ce(), { suppressReportRouteSync: F } = k(B), { getReports: Re, getOverviewReport: Ee, getReportConfig: Le, currentReportId: M } = b, { currentReportId: be, reports: we } = k(b), { getSchema: Ae } = tt(), { fetchSchedules: Ce } = Y, { init: ke } = Xe(), W = Q("v5"), O = Q(!1), $ = Q(!0), qe = se(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${y.value.toUpperCase()}&menuOption=business-report&token=${g.value}&v2=true&reportV5Button=true`), Te = se(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
74
+ } = ie(), ve = Ge(), { getFeatureFlags: Se } = ve, { version: v } = k(ce()), { getSettings: De } = He(), { loadHasDigest: he } = Ke(), { isAdmin: Ie } = We(), { promptLoader: Re } = Me(), n = at(), B = st(), b = et(), Y = nt(), a = ie(), F = ce(), { suppressReportRouteSync: N } = k(F), { getReports: _e, getOverviewReport: Le, getReportConfig: Ee, currentReportId: M } = b, { currentReportId: be, reports: we } = k(b), { getSchema: Ae } = tt(), { fetchSchedules: Ce } = Y, { init: ke } = Ze(), G = Q("v5"), O = Q(!1), $ = Q(!0), qe = se(() => `https://portal-v1.feedme.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${y.value.toUpperCase()}&menuOption=business-report&token=${g.value}&v2=true&reportV5Button=true`), Te = se(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
75
75
  C(
76
- [() => L.value, () => E.value, () => T.value],
76
+ [() => E.value, () => L.value, () => T.value],
77
77
  () => {
78
78
  var e, o;
79
- const t = ((e = L.value) == null ? void 0 : e.id) ?? "";
80
- L.value && E.value && T.value && (c.value !== t && (c.value = t), g.value = ((o = E.value) == null ? void 0 : o.token) ?? "", y.value = T.value ?? "");
79
+ const t = ((e = E.value) == null ? void 0 : e.id) ?? "";
80
+ E.value && L.value && T.value && (c.value !== t && (c.value = t), g.value = ((o = L.value) == null ? void 0 : o.token) ?? "", y.value = T.value ?? "");
81
81
  },
82
82
  { immediate: !0 }
83
83
  );
@@ -94,17 +94,17 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
94
94
  if (typeof t.data == "string")
95
95
  try {
96
96
  const e = JSON.parse(t.data);
97
- (e == null ? void 0 : e.v5) === !0 ? v.value = W.value : (e == null ? void 0 : e.v3) === !0 && (v.value = "v3");
97
+ (e == null ? void 0 : e.v5) === !0 ? v.value = G.value : (e == null ? void 0 : e.v3) === !0 && (v.value = "v3");
98
98
  } catch (e) {
99
99
  console.error(e);
100
100
  }
101
101
  }
102
102
  C(v, () => {
103
- ["v3", "v4"].includes(v.value) ? H().hideSidebarToggle(!0) : H().hideSidebarToggle(!1);
103
+ ["v3", "v4"].includes(v.value) ? W().hideSidebarToggle(!0) : W().hideSidebarToggle(!1);
104
104
  }), Qe(() => {
105
- _(ot);
105
+ R(ot);
106
106
  }), fe(() => {
107
- console.log("5.32.0-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
107
+ console.log("5.32.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
108
108
  }), Ue(() => {
109
109
  window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Y.$dispose();
110
110
  });
@@ -120,14 +120,14 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
120
120
  const e = t.includes("%") ? [t, ze(t)] : [t];
121
121
  for (const o of e)
122
122
  try {
123
- const a = JSON.parse(o);
124
- if (typeof a == "string")
123
+ const r = JSON.parse(o);
124
+ if (typeof r == "string")
125
125
  try {
126
- return JSON.parse(a);
126
+ return JSON.parse(r);
127
127
  } catch {
128
- return a;
128
+ return r;
129
129
  }
130
- return a;
130
+ return r;
131
131
  } catch {
132
132
  }
133
133
  }
@@ -138,37 +138,37 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
138
138
  }
139
139
  function l(t, e, o) {
140
140
  if (typeof t != "string" || t.length === 0) return;
141
- const a = Ze(t, o);
142
- return e === "start" ? Ve(a, o) : Ye(a, o);
141
+ const r = Ve(t, o);
142
+ return e === "start" ? Xe(r, o) : Ye(r, o);
143
143
  }
144
- function Ne(t = n.query) {
145
- const e = t, o = r.timezone, a = l(e.startDate, "start", o), m = l(e.endDate, "end", o), i = typeof e.timeStart == "string", S = typeof e.timeEnd == "string", D = x(e.timeStart), h = x(e.timeEnd), w = ne(D) ? D : null, p = ne(h) ? h : null, R = l(e.compareStartDate, "start", o), u = l(e.compareEndDate, "end", o), J = e.isAllLocation === "true" || e.isAllLocation === void 0;
144
+ function Be(t = n.query) {
145
+ const e = t, o = a.timezone, r = l(e.startDate, "start", o), m = l(e.endDate, "end", o), i = typeof e.timeStart == "string", S = typeof e.timeEnd == "string", D = x(e.timeStart), h = x(e.timeEnd), w = ne(D) ? D : null, p = ne(h) ? h : null, _ = l(e.compareStartDate, "start", o), u = l(e.compareEndDate, "end", o), J = e.isAllLocation === "true" || e.isAllLocation === void 0;
146
146
  let f = [];
147
147
  if (J)
148
- f = r.selectedLocationIds ?? [];
148
+ f = a.selectedLocationIds ?? [];
149
149
  else {
150
150
  const s = x(e.locationIds);
151
151
  f = Array.isArray(s) ? s : [];
152
152
  }
153
153
  let I = e.reportId || M;
154
- if (we.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), a || m) {
155
- const s = r.dateRange;
156
- (s.startDate !== a || s.endDate !== m) && r.setDateRange({ startDate: a, endDate: m });
154
+ if (we.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), r || m) {
155
+ const s = a.dateRange;
156
+ (s.startDate !== r || s.endDate !== m) && a.setDateRange({ startDate: r, endDate: m });
157
157
  }
158
158
  if (i || S) {
159
- const s = r.timeRange;
160
- (s.start !== w || s.end !== p) && r.setTimeRange({ start: w, end: p });
159
+ const s = a.timeRange;
160
+ (s.start !== w || s.end !== p) && a.setTimeRange({ start: w, end: p });
161
161
  }
162
- if (R || u) {
163
- const s = r.compareDateRange;
164
- (s.startDate !== R || s.endDate !== u) && r.setCompareDateRange({
165
- startDate: R,
162
+ if (_ || u) {
163
+ const s = a.compareDateRange;
164
+ (s.startDate !== _ || s.endDate !== u) && a.setCompareDateRange({
165
+ startDate: _,
166
166
  endDate: u
167
167
  });
168
168
  }
169
169
  if (!J) {
170
- const s = r.selectedLocationIds;
171
- s.length === f.length && s.every((Oe, $e) => Oe === f[$e]) || r.setSelectedLocationIds(f);
170
+ const s = a.selectedLocationIds;
171
+ s.length === f.length && s.every((Oe, $e) => Oe === f[$e]) || a.setSelectedLocationIds(f);
172
172
  }
173
173
  return {
174
174
  // TODO: this returned value can used for getBusinessSetting
@@ -188,22 +188,22 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
188
188
  async (t, e) => {
189
189
  if (t !== "") {
190
190
  O.value = !1, P(t);
191
- const o = "mf-report-prev-business-id", a = (() => {
191
+ const o = "mf-report-prev-business-id", r = (() => {
192
192
  try {
193
193
  return sessionStorage.getItem(o);
194
194
  } catch {
195
195
  return null;
196
196
  }
197
- })(), m = !!a && a !== t;
197
+ })(), m = !!r && r !== t;
198
198
  let i = { ...n.query }, S = !1;
199
199
  if (!$.value || e !== void 0 || m) {
200
- ye(), r.setSelectedLocationIds([]);
200
+ ye(), a.setSelectedLocationIds([]);
201
201
  const {
202
202
  locationIds: D,
203
203
  startDate: h,
204
204
  endDate: w,
205
205
  timeStart: p,
206
- timeEnd: R,
206
+ timeEnd: _,
207
207
  compareStartDate: u,
208
208
  compareEndDate: J,
209
209
  ...f
@@ -211,32 +211,32 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
211
211
  i = {
212
212
  ...f,
213
213
  isAllLocation: "true"
214
- }, S = !0, await N.replace({
214
+ }, S = !0, await B.replace({
215
215
  name: n.name,
216
216
  params: n.params,
217
217
  query: i
218
218
  });
219
219
  }
220
- F.value !== void 0 && (F.value = !0), await _e(async () => {
220
+ N.value !== void 0 && (N.value = !0), await Re(async () => {
221
221
  await ke({
222
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
222
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
223
223
  url: "https://flag.feedme.farm/api/v1/",
224
224
  enableAnalytics: !1,
225
225
  cacheFlags: !1
226
226
  });
227
- const D = await Le();
228
- W.value = D.version, v.value = W.value, await Se(), n.name === "template" && !B.canAccessTemplate() && await N.replace({
227
+ const D = await Ee();
228
+ G.value = D.version, v.value = G.value, await Se(), n.name === "template" && !F.canAccessTemplate() && await B.replace({
229
229
  name: "reports",
230
230
  query: n.query
231
231
  });
232
- const h = B.canAccess(
232
+ const h = F.canAccess(
233
233
  ue.report_accessOverview
234
- ), w = B.canAccess(
234
+ ), w = F.canAccess(
235
235
  ue.report_accessIntegration
236
236
  ), p = [
237
237
  Ae(),
238
238
  Ce(),
239
- Re(),
239
+ _e(),
240
240
  z(
241
241
  (() => {
242
242
  const u = x(i.locationIds);
@@ -244,22 +244,22 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
244
244
  })()
245
245
  )
246
246
  ];
247
- h && p.push(Ee()), w && p.push(De()), Ie.value && p.push(he());
248
- const R = await Promise.allSettled(p);
249
- for (const u of R)
247
+ h && p.push(Le()), w && p.push(De()), Ie.value && p.push(he());
248
+ const _ = await Promise.allSettled(p);
249
+ for (const u of _)
250
250
  u.status === "rejected" && console.log(u.reason);
251
- if (await j(), Ne(i), S) {
251
+ if (await j(), Be(i), S) {
252
252
  const {
253
253
  locationIds: u,
254
254
  startDate: J,
255
255
  endDate: f,
256
256
  timeStart: I,
257
- timeEnd: Be,
257
+ timeEnd: Fe,
258
258
  compareStartDate: s,
259
- compareEndDate: Fe,
259
+ compareEndDate: Ne,
260
260
  ...oe
261
261
  } = n.query;
262
- (n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await N.replace({
262
+ (n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await B.replace({
263
263
  name: n.name,
264
264
  params: n.params,
265
265
  query: {
@@ -282,19 +282,19 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
282
282
  ), C(
283
283
  () => (O.value, {
284
284
  reportId: be.value,
285
- selectedLocationIds: r.selectedLocationIds,
286
- dateRange: r.dateRange,
287
- timeRange: r.timeRange,
288
- compareDateRange: r.compareDateRange,
289
- timezone: r.timezone
285
+ selectedLocationIds: a.selectedLocationIds,
286
+ dateRange: a.dateRange,
287
+ timeRange: a.timeRange,
288
+ compareDateRange: a.compareDateRange,
289
+ timezone: a.timezone
290
290
  }),
291
291
  (t) => {
292
292
  if (!O.value || !t.reportId || $.value) return;
293
- if (F.value) {
294
- F.value = !1;
293
+ if (N.value) {
294
+ N.value = !1;
295
295
  return;
296
296
  }
297
- const e = t.selectedLocationIds, o = t.dateRange, a = t.timeRange, m = t.compareDateRange, i = {
297
+ const e = t.selectedLocationIds, o = t.dateRange, r = t.timeRange, m = t.compareDateRange, i = {
298
298
  ...n.query,
299
299
  reportId: t.reportId,
300
300
  startDate: l(o.startDate, "start", t.timezone),
@@ -305,12 +305,12 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
305
305
  t.timezone
306
306
  ),
307
307
  compareEndDate: l(m.endDate, "end", t.timezone),
308
- timeStart: a.start ? JSON.stringify(a.start) : void 0,
309
- timeEnd: a.end ? JSON.stringify(a.end) : void 0
310
- }, S = e.length === r.locations.length;
308
+ timeStart: r.start ? JSON.stringify(r.start) : void 0,
309
+ timeEnd: r.end ? JSON.stringify(r.end) : void 0
310
+ }, S = e.length === a.locations.length;
311
311
  i.isAllLocation = String(S), S ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
312
312
  const D = JSON.stringify(n.query), h = JSON.stringify(i);
313
- D !== h && N.replace({
313
+ D !== h && B.replace({
314
314
  name: n.name,
315
315
  params: n.params,
316
316
  query: i
@@ -318,14 +318,14 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
318
318
  },
319
319
  { deep: !0 }
320
320
  ), ut(), (t, e) => {
321
- const o = X("router-view");
322
- return A(), G(je, null, [
323
- Z(ct),
324
- d(v) === "v3" ? (A(), G("iframe", {
321
+ const o = Z("router-view");
322
+ return A(), K(je, null, [
323
+ V(ct),
324
+ d(v) === "v3" ? (A(), K("iframe", {
325
325
  key: 0,
326
326
  class: "bg-white h-full w-full",
327
327
  src: qe.value
328
- }, null, 8, dt)) : d(v) === "v4" ? (A(), G("iframe", {
328
+ }, null, 8, dt)) : d(v) === "v4" ? (A(), K("iframe", {
329
329
  key: 1,
330
330
  class: "bg-white h-full w-full",
331
331
  src: Te.value
@@ -335,5 +335,5 @@ const dt = ["src"], lt = ["src"], _t = /* @__PURE__ */ me({
335
335
  }
336
336
  });
337
337
  export {
338
- _t as default
338
+ Rt as default
339
339
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ne, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as fe, withCtx as U, createCommentVNode as F, createElementVNode as I, toDisplayString as De, renderSlot as ye, mergeModels as K, useModel as L, ref as P, computed as z, watch as M, nextTick as Z, onMounted as pe, onBeforeUnmount as ve, createElementBlock as ge, unref as $, createVNode as J } from "vue";
2
- import { d as i, a as he, j as Q, z as X, C as E, p as Ce, t as be } from "./app-BXVd3ce-.js";
2
+ import { d as i, a as he, j as Q, z as X, C as E, p as Ce, t as be } from "./app-DvNjldW6.js";
3
3
  import { detectLocale as _ } from "@feedmepos/mf-common";
4
4
  import { u as Re, _ as Me } from "./_plugin-vue_export-helper-C6QDExPN.js";
5
5
  import { storeToRefs as Ye } from "pinia";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, 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-zUF-G98m.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-caeBZJMd.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 } from "./global-loader-BuxFfehu.js";
@@ -2,12 +2,12 @@ import { defineComponent as ve, ref as C, watch as Le, onBeforeUnmount as Ce, co
2
2
  import { storeToRefs as Ie } from "pinia";
3
3
  import { useI18n as fe } from "@feedmepos/mf-common";
4
4
  import { useBreakpoints as Se } from "@feedmepos/ui-library";
5
- import { _ as Oe } from "./Default.vue_vue_type_script_setup_true_lang-CW_VllVL.js";
5
+ import { _ as Oe } from "./Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js";
6
6
  import { _ as we } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
7
7
  import { useRoute as Ne } from "vue-router";
8
- import { c as Pe, d as Be, u as Ae, a as He, n as Xe, _ as ze, D as Ye } from "./useDigestFont-Gf1l5qYq.js";
8
+ import { c as Pe, d as Be, u as Ae, a as He, n as Xe, _ as ze, D as Ye } from "./useDigestFont-qj5lGRy-.js";
9
9
  import { _ as ge } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
- import { g as Ue, f as We, A as Ze, k as be, r as Ge, l as Ke } from "./app-BXVd3ce-.js";
10
+ import { g as Ue, f as We, A as Ze, k as be, r as Ge, l as Ke } from "./app-DvNjldW6.js";
11
11
  const Je = { class: "flex items-center justify-between gap-8" }, Qe = { class: "digest-kind" }, et = ["viewBox", "height", "aria-label"], tt = ["x2", "y1", "y2"], st = ["d"], at = ["d"], ot = ["d"], nt = ["x", "y", "width", "height"], rt = ["x", "y"], lt = ["x", "y", "width", "height"], it = ["x1", "x2", "y1", "y2"], ut = ["cx", "cy"], dt = ["x", "y", "text-anchor"], ct = ["x"], ht = ["x", "y"], vt = {
12
12
  key: 1,
13
13
  class: "flex items-start gap-8",
@@ -2,11 +2,11 @@ import { defineComponent as be, ref as h, watch as W, onMounted as _e, nextTick
2
2
  import { useRoute as mt, useRouter as ft } from "vue-router";
3
3
  import { useI18n as xe } from "@feedmepos/mf-common";
4
4
  import { useBreakpoints as vt } from "@feedmepos/ui-library";
5
- import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-CW_VllVL.js";
5
+ import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js";
6
6
  import { _ as ke } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
7
- import { u as ht, a as kt, R as wt, b as yt, c as bt, d as _t, e as xt } from "./useReportCanvasPanel-CquUHqIK.js";
8
- import { b as St, d as Ct, a as Vt, _ as Rt, D as Tt } from "./useDigestFont-Gf1l5qYq.js";
9
- import { f as Et, m as It, n as At, A as we } from "./app-BXVd3ce-.js";
7
+ import { u as ht, a as kt, R as wt, b as yt, c as bt, d as _t, e as xt } from "./useReportCanvasPanel-BJTLOzd9.js";
8
+ import { b as St, d as Ct, a as Vt, _ as Rt, D as Tt } from "./useDigestFont-qj5lGRy-.js";
9
+ import { f as Et, m as It, n as At, A as we } from "./app-DvNjldW6.js";
10
10
  import { _ as Mt } from "./_plugin-vue_export-helper-C6QDExPN.js";
11
11
  const Pt = ["srcdoc", "title"], Bt = /* @__PURE__ */ be({
12
12
  __name: "DigestCanvasFrame",
@@ -1,12 +1,12 @@
1
1
  import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as jt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as G, Transition as Ya, withCtx as Re, createElementBlock as pe, createCommentVNode as we, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, normalizeClass as Fe, nextTick as Go, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as jo, markRaw as So, toRaw as Ea, createTextVNode as Ga, onUnmounted as Yn, provide as ja, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
2
- import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vy0FZKv0.js";
3
- import { u as Ln, ae as xn, a as _n, af as or } from "./app-BXVd3ce-.js";
4
- import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-DG-20Pq8.js";
5
- import { c as Dn, w as Et } from "./currency-C6h0cwip.js";
6
- import { d as Xn } from "./DateRangeSelect-DO3T_rQs.js";
2
+ import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqSpNI7C.js";
3
+ import { u as Ln, ae as xn, a as _n, af as or } from "./app-DvNjldW6.js";
4
+ import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-BYoPJJLO.js";
5
+ import { c as Dn, w as Et } from "./currency-DkfeAufo.js";
6
+ import { d as Xn } from "./DateRangeSelect-ByNkTDjz.js";
7
7
  import { storeToRefs as At } from "pinia";
8
8
  import { detectLocale as oo } from "@feedmepos/mf-common";
9
- import "./index-BoeJLw2U.js";
9
+ import "./index-BfS1DQsO.js";
10
10
  import { C as En, t as ir } from "./chart-BywXiz4O.js";
11
11
  import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
12
12
  import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
@@ -1,8 +1,8 @@
1
1
  import { ref as ve, computed as ge, defineComponent as yt, mergeModels as lt, useModel as ft, watch as Ie, resolveComponent as ee, createElementBlock as fe, openBlock as J, createVNode as P, withCtx as ue, createElementVNode as Q, createCommentVNode as bt, Fragment as Le, renderList as ht, createBlock as we, unref as D, createTextVNode as nt, withDirectives as xl, toDisplayString as he, vShow as Al, renderSlot as qt, normalizeStyle as Gl, normalizeClass as Et, withModifiers as dt } from "vue";
2
- import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-DO3T_rQs.js";
3
- import { e as gt } from "./index-BoeJLw2U.js";
4
- import { d as E, u as ke, c as je, a as Me, F as Oe, ag as St, v as Ae, i as Ml, g as Pl, z as Bl, j as zl, t as Lt } from "./app-BXVd3ce-.js";
5
- import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Pt, A as Ul, S as Bt } from "./report-DG-20Pq8.js";
2
+ import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-ByNkTDjz.js";
3
+ import { e as gt } from "./index-BfS1DQsO.js";
4
+ import { d as E, u as ke, c as je, a as Me, F as Oe, ag as St, v as Ae, i as Ml, g as Pl, z as Bl, j as zl, t as Lt } from "./app-DvNjldW6.js";
5
+ import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Pt, A as Ul, S as Bt } from "./report-BYoPJJLO.js";
6
6
  import { defineStore as Ft, storeToRefs as re } from "pinia";
7
7
  import { detectLocale as xe } from "@feedmepos/mf-common";
8
8
  import { u as Jt } from "./_plugin-vue_export-helper-C6QDExPN.js";
@@ -1,16 +1,16 @@
1
1
  import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, createElementBlock as r, openBlock as o, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, createCommentVNode as D, Fragment as j, renderList as N, createBlock as R, withDirectives as T, resolveDynamicComponent as U, unref as m, withCtx as B, createVNode as p, normalizeClass as W, resolveComponent as M, useModel as ce, createTextVNode as ue, isRef as z, nextTick as fe } from "vue";
2
- import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-CW_VllVL.js";
3
- import { D as ge } from "./DateRangeSelect-DO3T_rQs.js";
4
- import { d as E, u as Q, F as ee, q as te, a as pe, g as ve, i as H, o as he, p as ye, s as we } from "./app-BXVd3ce-.js";
2
+ import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js";
3
+ import { D as ge } from "./DateRangeSelect-ByNkTDjz.js";
4
+ import { d as E, u as Q, F as ee, q as te, a as pe, g as ve, i as H, o as he, p as ye, s as we } from "./app-DvNjldW6.js";
5
5
  import { storeToRefs as ae } from "pinia";
6
6
  import { C as le, r as xe } from "./chart-BywXiz4O.js";
7
7
  import { components as Y, useSnackbar as be } from "@feedmepos/ui-library";
8
8
  import { u as se } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
9
  import { c as X } from "./index-CtZE4sab.js";
10
10
  import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
11
- import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-DFQ943gj.js";
11
+ import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-D77iP1So.js";
12
12
  import { useCoreStore as _e } from "@feedmepos/mf-common";
13
- import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-zUF-G98m.js";
13
+ import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-caeBZJMd.js";
14
14
  function Ae({ start: e, end: t }) {
15
15
  return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
16
16
  }
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as ve, mergeModels as ke, useModel as be, computed as X, resolveComponent as T, createElementBlock as R, openBlock as x, createElementVNode as t, createCommentVNode as q, normalizeClass as Ye, Fragment as $e, renderList as qe, createBlock as ae, normalizeStyle as st, createVNode as l, withCtx as Ce, renderSlot as It, toDisplayString as C, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as ze, resolveDynamicComponent as Ge, mergeProps as dt, onMounted as ct, withKeys as nt, withModifiers as mt, nextTick as kt } from "vue";
2
2
  import { useRouter as Ie, useRoute as Tt } from "vue-router";
3
- import { J as Se, K as it, d as Fe, L as Nt, e as Ee, a as Te, M as _e, N as Vt, O as Ft, E as ce, H as Je, P as Qe, Q as He, R as Ze, S as pt, T as Kt, U as Mt, V as Ut, W as Rt, X as Pt, Y as ut, b as ft, Z as Ot, _ as Lt, B as jt, I as Be, $ as Et, a0 as Bt, a1 as Yt } from "./app-BXVd3ce-.js";
3
+ import { J as Se, K as it, d as Fe, L as Nt, e as Ee, a as Te, M as _e, N as Vt, O as Ft, E as ce, H as Je, P as Qe, Q as He, R as Ze, S as pt, T as Kt, U as Mt, V as Ut, W as Rt, X as Pt, Y as ut, b as ft, Z as Ot, _ as Lt, B as jt, I as Be, $ as Et, a0 as Bt, a1 as Yt } from "./app-DvNjldW6.js";
4
4
  import { u as et } from "./global-loader-BuxFfehu.js";
5
5
  import { u as tt } from "./message-dialog-UoMWOnil.js";
6
6
  import { useSnackbar as Ne } from "@feedmepos/ui-library";
7
7
  import { s as St } from "./index-CtZE4sab.js";
8
8
  import { u as we, _ as qt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
- import { u as We, h as Ae } from "./useRestaurantPermission-BNu9cN13.js";
9
+ import { u as We, h as Ae } from "./useRestaurantPermission-Cy0Wr066.js";
10
10
  import { storeToRefs as ot } from "pinia";
11
- import { D as at } from "./DateRangeSelect-DO3T_rQs.js";
11
+ import { D as at } from "./DateRangeSelect-ByNkTDjz.js";
12
12
  const Ht = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, zt = { class: "w-[100%] overflow-hidden" }, Gt = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Qt = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Wt = {
13
13
  key: 0,
14
14
  class: "w-[24px] flex items-center"