@feedmepos/mf-report 5.31.3 → 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 (39) hide show
  1. package/dist/{App-CAzuIycx.js → App-DmCGLjX7.js} +99 -99
  2. package/dist/{DateRangeSelect-kBTiWzl8.js → DateRangeSelect-ByNkTDjz.js} +18 -18
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-QJJFd-aD.js → Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js} +1 -1
  4. package/dist/DigestListView-De9tIPMS.js +637 -0
  5. package/dist/DigestReaderView-DO_nmqE8.js +507 -0
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-dhMaJAWF.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BCrF_c93.js} +173 -173
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Odt_cfjt.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqSpNI7C.js} +154 -154
  8. package/dist/{InsightView-CoyqETUU.js → InsightView-C-CwTtk_.js} +16 -16
  9. package/dist/{Integration-nK20FSKv.js → Integration-BRNvT1Bi.js} +3 -3
  10. package/dist/{Integrations-B2zhjy-7.js → Integrations-apd0BYi4.js} +2 -2
  11. package/dist/{Layout-Dl7UP2Mh.js → Layout-CAcG75jm.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DroCP4X4.js → LocationSelect.vue_vue_type_script_setup_true_lang-D77iP1So.js} +2 -2
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Es9KEHbl.js → MenuTab.vue_vue_type_script_setup_true_lang-0FI-8jfq.js} +9 -9
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BohRRfew.js → NavigationTab.vue_vue_type_script_setup_true_lang-caeBZJMd.js} +6 -6
  15. package/dist/{OverviewView-_5c2H2MT.js → OverviewView-DT4wH9BY.js} +5 -5
  16. package/dist/{Report-2w23PAp1.js → Report-DC5SaVnn.js} +30 -30
  17. package/dist/ReportCanvasView-DKSSW9vS.js +966 -0
  18. package/dist/{ReportEditor-Bd6WesQn.js → ReportEditor-pv17FE6d.js} +7 -7
  19. package/dist/{ReportView-DlYt2nTi.js → ReportView-hu8o7gHa.js} +6 -6
  20. package/dist/{ReportViewRoute-37OLAHAq.js → ReportViewRoute-Dv72tGDa.js} +2 -2
  21. package/dist/{Setting-PmW3vgf2.js → Setting-B98DTITn.js} +3 -3
  22. package/dist/{Template-DkTDUZL3.js → Template-CaVg_yFH.js} +18 -18
  23. package/dist/{TileEditor-B_X1Z1IF.js → TileEditor-HXcsJvnS.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Dj9ImYdH.js → TilePageStack.vue_vue_type_script_setup_true_lang-B9kTXx-f.js} +2 -2
  25. package/dist/{TransitionFade-k7vzRKon.js → TransitionFade-CIv_c2SU.js} +5 -5
  26. package/dist/{app-DOyssexi.js → app-DvNjldW6.js} +3354 -2967
  27. package/dist/app.js +4 -4
  28. package/dist/assets/{formatChartData.worker-R9EGYsk6.js → formatChartData.worker-BprlZnJs.js} +80 -58
  29. package/dist/assets/{processTableData.worker-CxpDa0tB.js → processTableData.worker-D5GSFMnH.js} +83 -61
  30. package/dist/{currency-Dzf-h7uE.js → currency-DkfeAufo.js} +1 -1
  31. package/dist/{index-uhMfapU4.js → index-BfS1DQsO.js} +1279 -1244
  32. package/dist/{report-D1hOlAxl.js → report-BYoPJJLO.js} +18 -18
  33. package/dist/report-canvas-libs/components-1.js +1126 -71
  34. package/dist/report-canvas-libs/geo-outlines-1.js +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/useDigestFont-qj5lGRy-.js +205 -0
  37. package/dist/{ReportCanvasView-C0WPmew5.js → useReportCanvasPanel-BJTLOzd9.js} +2933 -3477
  38. package/dist/{useRestaurantPermission-DdscVgP6.js → useRestaurantPermission-Cy0Wr066.js} +1 -1
  39. package/package.json +1 -1
@@ -1,42 +1,42 @@
1
- import { defineComponent as me, resolveComponent as Z, createBlock as pe, openBlock as A, unref as u, isRef as Oe, withCtx as K, createElementVNode as re, createVNode as V, toDisplayString as ae, createTextVNode as $e, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as W, Fragment as Qe } from "vue";
2
- import { detectLocale as U, useCoreStore as H } from "@feedmepos/mf-common";
3
- import { d as X, u as Ue, a as ie, b as je, c as ce, e as Pe, f as Ge, g as de, t as Ke, z as We, h as He } from "./app-DOyssexi.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
- import { u as Ze } from "./global-loader-BuxFfehu.js";
6
- import { u as Ve, a as Xe } from "./report-D1hOlAxl.js";
7
- import { u as Ye, _ as Me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BohRRfew.js";
8
- import { u as ue } from "./message-dialog-UoMWOnil.js";
9
- import { u as et } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
- import { useRoute as tt, useRouter as nt } from "vue-router";
11
- const ot = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, rt = /* @__PURE__ */ me({
5
+ import { u as Me } from "./global-loader-BuxFfehu.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
+ import { u as de } from "./message-dialog-UoMWOnil.js";
9
+ import { u as rt } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
+ import { useRoute as at, useRouter as st } from "vue-router";
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 } = et(), f = ue(), { isOpened: g, message: L, title: E } = k(ue());
15
- return (T, _) => {
14
+ const { t: c } = rt(), g = de(), { isOpened: y, message: L, title: E } = k(de());
15
+ return (T, R) => {
16
16
  const z = Z("FmButton"), j = Z("FmDialog");
17
17
  return A(), pe(j, {
18
- modelValue: u(g),
19
- "onUpdate:modelValue": _[0] || (_[0] = (P) => Oe(g) ? g.value = P : null),
18
+ modelValue: d(y),
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
- $e(ae(u(E)), 1)
24
+ "dialog-header": H(() => [
25
+ Je(ae(d(E)), 1)
26
26
  ]),
27
- default: K(() => [
28
- re("p", ot, ae(u(L)), 1)
27
+ default: H(() => [
28
+ re("p", it, ae(d(L)), 1)
29
29
  ]),
30
- "dialog-footer": K(() => [
31
- _[1] || (_[1] = re("div", { class: "grow" }, null, -1)),
30
+ "dialog-footer": H(() => [
31
+ R[1] || (R[1] = re("div", { class: "grow" }, null, -1)),
32
32
  V(z, {
33
- label: u(c)("report.common.cancel"),
33
+ label: d(c)("report.common.cancel"),
34
34
  variant: "tertiary",
35
- onClick: u(f).dismiss
35
+ onClick: d(g).dismiss
36
36
  }, null, 8, ["label", "onClick"]),
37
37
  V(z, {
38
- label: u(c)("report.common.confirm"),
39
- onClick: u(f).confirm
38
+ label: d(c)("report.common.confirm"),
39
+ onClick: d(g).confirm
40
40
  }, null, 8, ["label", "onClick"])
41
41
  ]),
42
42
  _: 1
@@ -44,7 +44,7 @@ const ot = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, rt
44
44
  };
45
45
  }
46
46
  }), le = Q(U());
47
- function at() {
47
+ function ut() {
48
48
  const q = (c) => {
49
49
  switch (le.value = c, c) {
50
50
  case "zh-CN":
@@ -62,22 +62,22 @@ function at() {
62
62
  };
63
63
  }
64
64
  X.locale(U() === "zh-CN" ? "zh-cn" : "en");
65
- const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
65
+ const dt = ["src"], lt = ["src"], Rt = /* @__PURE__ */ me({
66
66
  __name: "App",
67
67
  setup(q) {
68
- const { businessId: c, token: f, country: g } = k(Ue()), { sessionUser: L, currentBusiness: E, 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 = je(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = Pe(), { promptLoader: he } = Ze(), n = tt(), B = nt(), b = Ve(), Y = Ye(), a = ie(), F = ce(), { suppressReportRouteSync: N } = k(F), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = b, { currentReportId: Le, reports: Ee } = k(b), { getSchema: be } = Xe(), { fetchSchedules: we } = Y, { init: Ae } = Ge(), G = Q("v5"), O = Q(!1), $ = Q(!0), Ce = se(() => `https://portal-v1.feedme.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), ke = se(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${g.value}&token=${f.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
76
  [() => E.value, () => L.value, () => T.value],
77
77
  () => {
78
78
  var e, o;
79
79
  const t = ((e = E.value) == null ? void 0 : e.id) ?? "";
80
- E.value && L.value && T.value && (c.value !== t && (c.value = t), f.value = ((o = L.value) == null ? void 0 : o.token) ?? "", g.value = T.value ?? "");
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
  );
@@ -85,7 +85,7 @@ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
85
85
  if (typeof t.data == "string")
86
86
  try {
87
87
  const e = JSON.parse(t.data);
88
- (e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (f.value = e.token);
88
+ (e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (g.value = e.token);
89
89
  } catch (e) {
90
90
  console.error(e);
91
91
  }
@@ -94,21 +94,21 @@ const st = ["src"], it = ["src"], St = /* @__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 ? y.value = G.value : (e == null ? void 0 : e.v3) === !0 && (y.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
- C(y, () => {
103
- ["v3", "v4"].includes(y.value) ? H().hideSidebarToggle(!0) : H().hideSidebarToggle(!1);
104
- }), xe(() => {
105
- _(Me);
102
+ C(v, () => {
103
+ ["v3", "v4"].includes(v.value) ? W().hideSidebarToggle(!0) : W().hideSidebarToggle(!1);
104
+ }), Qe(() => {
105
+ R(ot);
106
106
  }), fe(() => {
107
- console.log("5.31.3", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
108
- }), Je(() => {
107
+ console.log("5.32.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
108
+ }), Ue(() => {
109
109
  window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Y.$dispose();
110
110
  });
111
- function qe(t) {
111
+ function ze(t) {
112
112
  try {
113
113
  return decodeURIComponent(t);
114
114
  } catch {
@@ -117,7 +117,7 @@ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
117
117
  }
118
118
  function x(t) {
119
119
  if (typeof t != "string" || t.length === 0) return;
120
- const e = t.includes("%") ? [t, qe(t)] : [t];
120
+ const e = t.includes("%") ? [t, ze(t)] : [t];
121
121
  for (const o of e)
122
122
  try {
123
123
  const r = JSON.parse(o);
@@ -138,37 +138,37 @@ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
138
138
  }
139
139
  function l(t, e, o) {
140
140
  if (typeof t != "string" || t.length === 0) return;
141
- const r = Ke(t, o);
142
- return e === "start" ? We(r, o) : He(r, o);
141
+ const r = Ve(t, o);
142
+ return e === "start" ? Xe(r, o) : Ye(r, o);
143
143
  }
144
- function Te(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", v = typeof e.timeEnd == "string", S = x(e.timeStart), D = x(e.timeEnd), w = ne(S) ? S : null, h = ne(D) ? D : null, R = l(e.compareStartDate, "start", o), d = l(e.compareEndDate, "end", o), J = e.isAllLocation === "true" || e.isAllLocation === void 0;
146
- let p = [];
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
+ let f = [];
147
147
  if (J)
148
- p = a.selectedLocationIds ?? [];
148
+ f = a.selectedLocationIds ?? [];
149
149
  else {
150
150
  const s = x(e.locationIds);
151
- p = Array.isArray(s) ? s : [];
151
+ f = Array.isArray(s) ? s : [];
152
152
  }
153
153
  let I = e.reportId || M;
154
- if (Ee.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), r || m) {
154
+ if (we.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), r || m) {
155
155
  const s = a.dateRange;
156
156
  (s.startDate !== r || s.endDate !== m) && a.setDateRange({ startDate: r, endDate: m });
157
157
  }
158
- if (i || v) {
158
+ if (i || S) {
159
159
  const s = a.timeRange;
160
- (s.start !== w || s.end !== h) && a.setTimeRange({ start: w, end: h });
160
+ (s.start !== w || s.end !== p) && a.setTimeRange({ start: w, end: p });
161
161
  }
162
- if (R || d) {
162
+ if (_ || u) {
163
163
  const s = a.compareDateRange;
164
- (s.startDate !== R || s.endDate !== d) && a.setCompareDateRange({
165
- startDate: R,
166
- endDate: d
164
+ (s.startDate !== _ || s.endDate !== u) && a.setCompareDateRange({
165
+ startDate: _,
166
+ endDate: u
167
167
  });
168
168
  }
169
169
  if (!J) {
170
170
  const s = a.selectedLocationIds;
171
- s.length === p.length && s.every((Fe, Ne) => Fe === p[Ne]) || a.setSelectedLocationIds(p);
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
@@ -195,68 +195,68 @@ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
195
195
  return null;
196
196
  }
197
197
  })(), m = !!r && r !== t;
198
- let i = { ...n.query }, v = !1;
198
+ let i = { ...n.query }, S = !1;
199
199
  if (!$.value || e !== void 0 || m) {
200
200
  ye(), a.setSelectedLocationIds([]);
201
201
  const {
202
- locationIds: S,
203
- startDate: D,
202
+ locationIds: D,
203
+ startDate: h,
204
204
  endDate: w,
205
- timeStart: h,
206
- timeEnd: R,
207
- compareStartDate: d,
205
+ timeStart: p,
206
+ timeEnd: _,
207
+ compareStartDate: u,
208
208
  compareEndDate: J,
209
- ...p
209
+ ...f
210
210
  } = n.query;
211
211
  i = {
212
- ...p,
212
+ ...f,
213
213
  isAllLocation: "true"
214
- }, v = !0, await B.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
- N.value !== void 0 && (N.value = !0), await he(async () => {
221
- await Ae({
220
+ N.value !== void 0 && (N.value = !0), await Re(async () => {
221
+ await ke({
222
222
  apiKey: "6GhcttsJ9Rj9cTevcdrpin",
223
223
  url: "https://flag.feedme.farm/api/v1/",
224
224
  enableAnalytics: !1,
225
225
  cacheFlags: !1
226
226
  });
227
- const S = await Re();
228
- G.value = S.version, y.value = G.value, await Se(), n.name === "template" && !F.canAccessTemplate() && await B.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 D = F.canAccess(
233
- de.report_accessOverview
232
+ const h = F.canAccess(
233
+ ue.report_accessOverview
234
234
  ), w = F.canAccess(
235
- de.report_accessIntegration
236
- ), h = [
237
- be(),
238
- we(),
239
- Ie(),
235
+ ue.report_accessIntegration
236
+ ), p = [
237
+ Ae(),
238
+ Ce(),
239
+ _e(),
240
240
  z(
241
241
  (() => {
242
- const d = x(i.locationIds);
243
- return Array.isArray(d) ? d : void 0;
242
+ const u = x(i.locationIds);
243
+ return Array.isArray(u) ? u : void 0;
244
244
  })()
245
245
  )
246
246
  ];
247
- D && h.push(_e()), w && h.push(De());
248
- const R = await Promise.allSettled(h);
249
- for (const d of R)
250
- d.status === "rejected" && console.log(d.reason);
251
- if (await j(), Te(i), v) {
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
+ u.status === "rejected" && console.log(u.reason);
251
+ if (await j(), Be(i), S) {
252
252
  const {
253
- locationIds: d,
253
+ locationIds: u,
254
254
  startDate: J,
255
- endDate: p,
255
+ endDate: f,
256
256
  timeStart: I,
257
- timeEnd: ze,
257
+ timeEnd: Fe,
258
258
  compareStartDate: s,
259
- compareEndDate: Be,
259
+ compareEndDate: Ne,
260
260
  ...oe
261
261
  } = n.query;
262
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({
@@ -281,7 +281,7 @@ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
281
281
  }
282
282
  ), C(
283
283
  () => (O.value, {
284
- reportId: Le.value,
284
+ reportId: be.value,
285
285
  selectedLocationIds: a.selectedLocationIds,
286
286
  dateRange: a.dateRange,
287
287
  timeRange: a.timeRange,
@@ -307,33 +307,33 @@ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
307
307
  compareEndDate: l(m.endDate, "end", t.timezone),
308
308
  timeStart: r.start ? JSON.stringify(r.start) : void 0,
309
309
  timeEnd: r.end ? JSON.stringify(r.end) : void 0
310
- }, v = e.length === a.locations.length;
311
- i.isAllLocation = String(v), v ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
312
- const S = JSON.stringify(n.query), D = JSON.stringify(i);
313
- S !== D && B.replace({
310
+ }, S = e.length === a.locations.length;
311
+ i.isAllLocation = String(S), S ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
312
+ const D = JSON.stringify(n.query), h = JSON.stringify(i);
313
+ D !== h && B.replace({
314
314
  name: n.name,
315
315
  params: n.params,
316
316
  query: i
317
317
  });
318
318
  },
319
319
  { deep: !0 }
320
- ), at(), (t, e) => {
320
+ ), ut(), (t, e) => {
321
321
  const o = Z("router-view");
322
- return A(), W(Qe, null, [
323
- V(rt),
324
- u(y) === "v3" ? (A(), W("iframe", {
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
- src: Ce.value
328
- }, null, 8, st)) : u(y) === "v4" ? (A(), W("iframe", {
327
+ src: qe.value
328
+ }, null, 8, dt)) : d(v) === "v4" ? (A(), K("iframe", {
329
329
  key: 1,
330
330
  class: "bg-white h-full w-full",
331
- src: ke.value
332
- }, null, 8, it)) : (A(), pe(o, { key: 2 }))
331
+ src: Te.value
332
+ }, null, 8, lt)) : (A(), pe(o, { key: 2 }))
333
333
  ], 64);
334
334
  };
335
335
  }
336
336
  });
337
337
  export {
338
- St 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, h as Q, z as X, C as E, k as Ce, t as be } from "./app-DOyssexi.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";
@@ -88,7 +88,7 @@ function Ve(e = {
88
88
  const d = i().set("hour", l.hour).set("minute", l.minute).locale(D), h = i().set("hour", f.hour).set("minute", f.minute).locale(D);
89
89
  return `${d.format(n)}-${h.format(n)}`;
90
90
  }
91
- const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, we = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, xe = { class: "whitespace-nowrap flex-none" }, te = /* @__PURE__ */ ne({
91
+ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, xe = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, ke = { class: "whitespace-nowrap flex-none" }, te = /* @__PURE__ */ ne({
92
92
  __name: "FilterChip",
93
93
  props: {
94
94
  label: {
@@ -131,8 +131,8 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
131
131
  outline: "",
132
132
  class: "flex-none"
133
133
  }, null, 8, ["name"])) : F("", !0),
134
- I("div", ke, [
135
- I("span", we, De(n.label), 1),
134
+ I("div", we, [
135
+ I("span", xe, De(n.label), 1),
136
136
  e.rightIcon ? (C(), b(D, {
137
137
  key: 0,
138
138
  name: e.rightIcon,
@@ -140,7 +140,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
140
140
  outline: "",
141
141
  class: "flex-none"
142
142
  }, null, 8, ["name"])) : F("", !0),
143
- I("span", xe, [
143
+ I("span", ke, [
144
144
  ye(l.$slots, "default")
145
145
  ]),
146
146
  n.loading ? (C(), b(d, {
@@ -217,7 +217,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
217
217
  }
218
218
  const h = n, r = L(e, "compareType"), y = L(e, "dateRange"), s = L(e, "compareDateRange"), { timezone: p } = Ye(he());
219
219
  let m = null, T = 0, R = null;
220
- const k = /* @__PURE__ */ new Set(), N = P(!1), B = P(!1), w = z(
220
+ const w = /* @__PURE__ */ new Set(), N = P(!1), B = P(!1), x = z(
221
221
  () => N.value || B.value
222
222
  ), V = z(
223
223
  () => e.minDate ? l("report.messages.noPermissionDateAccess", { date: e.minDate }) : ""
@@ -242,17 +242,17 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
242
242
  });
243
243
  }
244
244
  function q(t = [document]) {
245
- !e.minDate || !w.value || (t.forEach((a) => k.add(a)), R === null && (R = window.requestAnimationFrame(() => {
245
+ !e.minDate || !x.value || (t.forEach((a) => w.add(a)), R === null && (R = window.requestAnimationFrame(() => {
246
246
  R = null;
247
- const a = Array.from(k);
248
- k.clear(), a.length || a.push(document), a.forEach((u) => le(u));
247
+ const a = Array.from(w);
248
+ w.clear(), a.length || a.push(document), a.forEach((u) => le(u));
249
249
  })));
250
250
  }
251
251
  function W() {
252
- m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null), k.clear();
252
+ m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null), w.clear();
253
253
  }
254
254
  function se() {
255
- m || !e.minDate || !w.value || (m = new MutationObserver((t) => {
255
+ m || !e.minDate || !x.value || (m = new MutationObserver((t) => {
256
256
  const a = /* @__PURE__ */ new Set();
257
257
  t.forEach((u) => {
258
258
  a.add(u.target), u.addedNodes.forEach((o) => {
@@ -262,7 +262,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
262
262
  }), m.observe(document.body, { childList: !0, subtree: !0 }));
263
263
  }
264
264
  function O() {
265
- if (!e.minDate || !w.value) {
265
+ if (!e.minDate || !x.value) {
266
266
  W();
267
267
  return;
268
268
  }
@@ -276,7 +276,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
276
276
  let o = H(t.startDate, u), g = H(t.endDate, u);
277
277
  return o && g && i(o, Y).isAfter(i(g, Y), "day") && (o = e.minDate ?? g, g = o), { startDate: o, endDate: g };
278
278
  }
279
- function x(t, a) {
279
+ function k(t, a) {
280
280
  return t.startDate === a.startDate && t.endDate === a.endDate;
281
281
  }
282
282
  const c = P({
@@ -290,7 +290,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
290
290
  [() => c.value],
291
291
  () => {
292
292
  const t = G(c.value);
293
- if (!x(t, c.value)) {
293
+ if (!k(t, c.value)) {
294
294
  c.value = t;
295
295
  return;
296
296
  }
@@ -306,7 +306,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
306
306
  const t = G(v.value, {
307
307
  notify: r.value === E.CUSTOM
308
308
  });
309
- if (!x(t, v.value)) {
309
+ if (!k(t, v.value)) {
310
310
  v.value = t;
311
311
  return;
312
312
  }
@@ -332,7 +332,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
332
332
  startDate: d(y.value.startDate),
333
333
  endDate: d(y.value.endDate)
334
334
  };
335
- x(t, c.value) || (c.value = t);
335
+ k(t, c.value) || (c.value = t);
336
336
  },
337
337
  { deep: !0 }
338
338
  ), M(
@@ -342,7 +342,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
342
342
  startDate: d(s.value.startDate),
343
343
  endDate: d(s.value.endDate)
344
344
  };
345
- x(t, v.value) || (v.value = t);
345
+ k(t, v.value) || (v.value = t);
346
346
  },
347
347
  { deep: !0 }
348
348
  ), M(
@@ -351,7 +351,7 @@ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
351
351
  await Z(), O();
352
352
  }
353
353
  ), M(
354
- () => w.value,
354
+ () => x.value,
355
355
  async () => {
356
356
  await Z(), O();
357
357
  }
@@ -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-BohRRfew.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";