@feedmepos/mf-report 5.21.63 → 5.21.64

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 (26) hide show
  1. package/dist/{App-CH9htNyn.js → App-C6sf6uV0.js} +38 -38
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DyxMsDYp.js → BaseDialog.vue_vue_type_script_setup_true_lang-DY2vUkqB.js} +424 -405
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-P5rHRVpM.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-C2Dk82K3.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Cj85Y2IE.js → Default.vue_vue_type_script_setup_true_lang-CJ8nFclo.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CapLHbgW.js → FilterSelector.vue_vue_type_script_setup_true_lang-w-vl_4ms.js} +114 -114
  6. package/dist/{InsightView-D16U7M3m.js → InsightView-B65bwZAR.js} +6 -6
  7. package/dist/{Integration-Ctx6mFS5.js → Integration-yvflqE-n.js} +3 -3
  8. package/dist/{Integrations-DQlct97a.js → Integrations-CNGGkegt.js} +3 -3
  9. package/dist/{Layout-BhiRVE2A.js → Layout-BqIWtei_.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B8RWrMRK.js → MenuTab.vue_vue_type_script_setup_true_lang-DUecY9qF.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-rUSP50SN.js → NavigationTab.vue_vue_type_script_setup_true_lang-BmiP0-Ph.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-BwXvyQJf.js → NoData.vue_vue_type_script_setup_true_lang-D6GhiIHR.js} +1 -1
  13. package/dist/{OverviewView-CrZBnrPN.js → OverviewView-CgkjAGsb.js} +5 -5
  14. package/dist/{Report-DWNrjsmJ.js → Report-sRGQ-Eer.js} +4 -4
  15. package/dist/{ReportEditor-BYsGBhJQ.js → ReportEditor-CDwMgWD4.js} +6 -6
  16. package/dist/{ReportView-Bj9F25Mc.js → ReportView-DwZd6_JS.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-iuy0xu_t.js → SelectComponent.vue_vue_type_script_setup_true_lang-B39tWbTt.js} +1 -1
  18. package/dist/{Setting-5cmn32fD.js → Setting-zZKlc_1D.js} +5 -5
  19. package/dist/{TileEditor-O7hZ1GiL.js → TileEditor-Dp0Cs7PI.js} +8 -8
  20. package/dist/{TransitionFade-DRg-pt4H.js → TransitionFade-Bhwb0VIE.js} +6 -6
  21. package/dist/{app-BRem7WAs.js → app-DVv1khH3.js} +11 -11
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-LJEQRxzw.js → formatChartData.worker-DrtZuT9M.js} +11 -11
  24. package/dist/assets/{processTableData.worker-CzGuZYT-.js → processTableData.worker--vDjMZK0.js} +11 -11
  25. package/dist/{vue-i18n-BPvXbxK_.js → vue-i18n-BSlBDEnq.js} +1 -1
  26. package/package.json +1 -1
@@ -1,40 +1,40 @@
1
- import { defineComponent as se, resolveComponent as Q, createBlock as ie, openBlock as R, unref as u, isRef as be, withCtx as U, createElementVNode as M, createVNode as P, toDisplayString as ee, createTextVNode as we, onMounted as ce, watch as q, ref as N, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as j, 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 Be, e as Fe, f as $e, s as xe } from "./vue-i18n-BPvXbxK_.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-BSlBDEnq.js";
4
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-DyxMsDYp.js";
6
- import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-rUSP50SN.js";
5
+ import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DY2vUkqB.js";
6
+ import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BmiP0-Ph.js";
7
7
  import { u as oe } from "./message-dialog-UoMWOnil.js";
8
- import { d as c } from "./app-BRem7WAs.js";
9
- import { useRoute as Qe, useRouter as Pe } from "vue-router";
10
- const Ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge = /* @__PURE__ */ se({
8
+ import { d as u } from "./app-DVv1khH3.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
12
  setup(_) {
13
13
  const { t: i } = Ae(), d = oe(), { isOpened: l, message: v, title: S } = L(oe());
14
14
  return (D, p) => {
15
15
  const O = Q("FmButton"), B = Q("FmDialog");
16
16
  return R(), ie(B, {
17
- modelValue: u(l),
17
+ modelValue: c(l),
18
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(u(S)), 1)
23
+ we(ee(c(S)), 1)
24
24
  ]),
25
25
  default: U(() => [
26
- M("p", Ve, ee(u(v)), 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
- P(O, {
31
- label: u(i)("report.common.cancel"),
30
+ V(O, {
31
+ label: c(i)("report.common.cancel"),
32
32
  variant: "tertiary",
33
- onClick: u(d).dismiss
33
+ onClick: c(d).dismiss
34
34
  }, null, 8, ["label", "onClick"]),
35
- P(O, {
36
- label: u(i)("report.common.confirm"),
37
- onClick: u(d).confirm
35
+ V(O, {
36
+ label: c(i)("report.common.confirm"),
37
+ onClick: c(d).confirm
38
38
  }, null, 8, ["label", "onClick"])
39
39
  ]),
40
40
  _: 1
@@ -46,24 +46,24 @@ function We() {
46
46
  const _ = (i) => {
47
47
  switch (ae.value = i, i) {
48
48
  case "zh-CN":
49
- c.locale("zh-cn");
49
+ u.locale("zh-cn");
50
50
  break;
51
51
  default:
52
- c.locale("en");
52
+ u.locale("en");
53
53
  break;
54
54
  }
55
55
  };
56
- return ce(() => {
56
+ return ue(() => {
57
57
  _(T());
58
58
  }), q(() => T(), _, { deep: !0, immediate: !0 }), {
59
59
  currentLocale: ae
60
60
  };
61
61
  }
62
- c.locale(T() === "zh-CN" ? "zh-cn" : "en");
63
- const He = ["src"], Ke = ["src"], ct = /* @__PURE__ */ se({
62
+ u.locale(T() === "zh-CN" ? "zh-cn" : "en");
63
+ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
64
64
  __name: "App",
65
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: ue } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = Qe(), V = Pe(), 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`);
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
68
  [() => S.value, () => v.value, () => D.value],
69
69
  () => {
@@ -95,8 +95,8 @@ const He = ["src"], Ke = ["src"], ct = /* @__PURE__ */ se({
95
95
  ["v3", "v4"].includes(f.value) ? z().hideSidebarToggle(!0) : z().hideSidebarToggle(!1);
96
96
  }), Ce(() => {
97
97
  p(ze);
98
- }), ce(() => {
99
- console.log("5.21.63", !0), window.addEventListener("message", K), window.addEventListener("message", X);
98
+ }), ue(() => {
99
+ console.log("5.21.64", !0), window.addEventListener("message", K), window.addEventListener("message", X);
100
100
  }), Ee(() => {
101
101
  window.removeEventListener("message", K), window.removeEventListener("message", X), h.$dispose(), G.$dispose();
102
102
  });
@@ -129,7 +129,7 @@ const He = ["src"], Ke = ["src"], ct = /* @__PURE__ */ se({
129
129
  return typeof t.hour == "number" && typeof t.minute == "number";
130
130
  }
131
131
  function Le() {
132
- const e = n.query.startDate ? c(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? c(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 ? c(n.query.compareStartDate).startOf("day").toISOString() : void 0, J = n.query.compareEndDate ? c(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
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
133
  let g = [];
134
134
  if (Z)
135
135
  g = r.selectedLocationIds;
@@ -173,7 +173,7 @@ const He = ["src"], Ke = ["src"], ct = /* @__PURE__ */ se({
173
173
  return q(
174
174
  () => i.value,
175
175
  async (e, t) => {
176
- e !== "" && (w.value = !1, F(e), (!C.value || t !== void 0) && (r.setSelectedLocationIds([]), V.replace({
176
+ e !== "" && (w.value = !1, F(e), (!C.value || t !== void 0) && (r.setSelectedLocationIds([]), P.replace({
177
177
  name: n.name,
178
178
  params: n.params,
179
179
  query: {
@@ -203,7 +203,7 @@ const He = ["src"], Ke = ["src"], ct = /* @__PURE__ */ se({
203
203
  })()
204
204
  ),
205
205
  le()
206
- ]), await B(), Le(), ue(e);
206
+ ]), await B(), Le(), ce(e);
207
207
  }), w.value = !0, C.value && (C.value = !1));
208
208
  },
209
209
  {
@@ -219,38 +219,38 @@ const He = ["src"], Ke = ["src"], ct = /* @__PURE__ */ se({
219
219
  }),
220
220
  (e) => {
221
221
  if (!w.value || !e.reportId || C.value) return;
222
- if (console.log("isLoaded is true, not initial business. Route sync with report filter changes", e), b.value) {
222
+ if (b.value) {
223
223
  b.value = !1;
224
224
  return;
225
225
  }
226
226
  const t = e.selectedLocationIds, a = e.dateRange, s = e.timeRange, m = e.compareDateRange, I = {
227
227
  ...n.query,
228
228
  reportId: e.reportId,
229
- startDate: a.startDate ? c(a.startDate).startOf("day").toISOString() : void 0,
230
- endDate: a.endDate ? c(a.endDate).endOf("day").toISOString() : void 0,
231
- compareStartDate: m.startDate ? c(m.startDate).startOf("day").toISOString() : void 0,
232
- compareEndDate: m.endDate ? c(m.endDate).endOf("day").toISOString() : void 0,
229
+ startDate: a.startDate ? u(a.startDate).startOf("day").toISOString() : void 0,
230
+ endDate: a.endDate ? u(a.endDate).endOf("day").toISOString() : void 0,
231
+ compareStartDate: m.startDate ? u(m.startDate).startOf("day").toISOString() : void 0,
232
+ compareEndDate: m.endDate ? u(m.endDate).endOf("day").toISOString() : void 0,
233
233
  timeStart: s.start ? JSON.stringify(s.start) : void 0,
234
234
  timeEnd: s.end ? JSON.stringify(s.end) : void 0,
235
235
  locationIds: t.length === r.locations.length ? void 0 : t.length > 0 ? JSON.stringify(t) : void 0,
236
236
  isAllLocation: String(t.length === r.locations.length)
237
237
  }, k = JSON.stringify(n.query), A = JSON.stringify(I);
238
- console.log("comparing query string"), k !== A && (console.log("replacing router again.."), V.replace({
238
+ k !== A && P.replace({
239
239
  name: n.name,
240
240
  params: n.params,
241
241
  query: I
242
- }));
242
+ });
243
243
  },
244
244
  { deep: !0 }
245
245
  ), We(), (e, t) => {
246
246
  const a = Q("router-view");
247
247
  return R(), j(ke, null, [
248
- P(Ge),
249
- u(f) === "v3" ? (R(), j("iframe", {
248
+ V(Ge),
249
+ c(f) === "v3" ? (R(), j("iframe", {
250
250
  key: 0,
251
251
  class: "bg-white h-full w-full",
252
252
  src: Ie.value
253
- }, null, 8, He)) : u(f) === "v4" ? (R(), j("iframe", {
253
+ }, null, 8, He)) : c(f) === "v4" ? (R(), j("iframe", {
254
254
  key: 1,
255
255
  class: "bg-white h-full w-full",
256
256
  src: Re.value
@@ -260,5 +260,5 @@ const He = ["src"], Ke = ["src"], ct = /* @__PURE__ */ se({
260
260
  }
261
261
  });
262
262
  export {
263
- ct as default
263
+ ut as default
264
264
  };