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

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 (27) hide show
  1. package/dist/{App-C9kh7XpH.js → App-DykmYyu7.js} +40 -40
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-D2TXDVOj.js → BaseDialog.vue_vue_type_script_setup_true_lang-CzdqdH4Q.js} +211 -211
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BDoATidT.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-D8Or-oVC.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-DaFJdoxZ.js → Default.vue_vue_type_script_setup_true_lang-CtQ1zwaR.js} +2 -2
  5. package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-Cq0wolEE.js +2903 -0
  6. package/dist/{InsightView-CHEu_CmU.js → InsightView-IH9nmJ8R.js} +6 -6
  7. package/dist/{Integration-CItYjFoB.js → Integration-DAscHEkh.js} +3 -3
  8. package/dist/{Integrations-DWOffOH4.js → Integrations-D6XFos9X.js} +3 -3
  9. package/dist/{Layout-Drs6o0OE.js → Layout-Bc1FmJXu.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DzdABO5_.js → MenuTab.vue_vue_type_script_setup_true_lang-CZIacrkt.js} +14 -13
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B_zSOuPn.js → NavigationTab.vue_vue_type_script_setup_true_lang-NipBn7yH.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-DsTTYbp7.js → NoData.vue_vue_type_script_setup_true_lang-g-9SED3o.js} +1 -1
  13. package/dist/{OverviewView-udMSAr7r.js → OverviewView-BASgwfqk.js} +5 -5
  14. package/dist/{Report-rzRD5nzK.js → Report-B0_CUvYo.js} +4 -4
  15. package/dist/{ReportEditor-DrMgC1kv.js → ReportEditor-DgVj55Yv.js} +6 -6
  16. package/dist/{ReportView-DtW4rlAN.js → ReportView-DYL7cyXp.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ba6ktsWW.js → SelectComponent.vue_vue_type_script_setup_true_lang-C8IbvVSY.js} +1 -1
  18. package/dist/{Setting-pG9DDDNn.js → Setting-BY0XUIMk.js} +5 -5
  19. package/dist/{TileEditor-Wh2R1JXv.js → TileEditor-BYO4u87o.js} +951 -897
  20. package/dist/{TransitionFade-DheKsv9w.js → TransitionFade-CTI3okbU.js} +6 -6
  21. package/dist/{app-CXFVEo4M.js → app-Yx_HCvnc.js} +19 -15
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-DHyKAOan.js → formatChartData.worker-Bf22-3_a.js} +16 -16
  24. package/dist/assets/{processTableData.worker-BAeQAKT3.js → processTableData.worker-GbyPQNAF.js} +21 -21
  25. package/dist/{vue-i18n-BW9ipscO.js → vue-i18n-B3i4Y3fR.js} +2 -2
  26. package/package.json +2 -2
  27. package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-C5kp_IC_.js +0 -2624
@@ -1,38 +1,38 @@
1
- import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as Oe, withCtx as z, createElementVNode as M, createVNode as W, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as A, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as Q, Fragment as ke } from "vue";
2
- import { detectLocale as N, useCoreStore as j } 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-BW9ipscO.js";
1
+ import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as be, withCtx as j, createElementVNode as M, createVNode as P, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as A, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as z, Fragment as ke } from "vue";
2
+ import { detectLocale as N, useCoreStore as Q } 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-B3i4Y3fR.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-D2TXDVOj.js";
6
- import { u as ze, _ as Qe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B_zSOuPn.js";
5
+ import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CzdqdH4Q.js";
6
+ import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-NipBn7yH.js";
7
7
  import { u as ae } from "./message-dialog-UoMWOnil.js";
8
- import { d as u } from "./app-CXFVEo4M.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-Yx_HCvnc.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(), l = ae(), { isOpened: d, message: S, title: D } = L(ae());
14
14
  return (m, g) => {
15
- const b = V("FmButton"), T = V("FmDialog");
15
+ const O = V("FmButton"), T = V("FmDialog");
16
16
  return R(), ie(T, {
17
17
  modelValue: c(d),
18
- "onUpdate:modelValue": g[0] || (g[0] = (B) => Oe(d) ? d.value = B : null),
18
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => be(d) ? d.value = B : null),
19
19
  overlay: "",
20
20
  "close-button": !1
21
21
  }, {
22
- "dialog-header": z(() => [
22
+ "dialog-header": j(() => [
23
23
  we(ee(c(D)), 1)
24
24
  ]),
25
- default: z(() => [
26
- M("p", We, ee(c(S)), 1)
25
+ default: j(() => [
26
+ M("p", Pe, ee(c(S)), 1)
27
27
  ]),
28
- "dialog-footer": z(() => [
28
+ "dialog-footer": j(() => [
29
29
  g[1] || (g[1] = M("div", { class: "grow" }, null, -1)),
30
- W(b, {
30
+ P(O, {
31
31
  label: c(i)("report.common.cancel"),
32
32
  variant: "tertiary",
33
33
  onClick: c(l).dismiss
34
34
  }, null, 8, ["label", "onClick"]),
35
- W(b, {
35
+ P(O, {
36
36
  label: c(i)("report.common.confirm"),
37
37
  onClick: c(l).confirm
38
38
  }, null, 8, ["label", "onClick"])
@@ -42,7 +42,7 @@ const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe
42
42
  };
43
43
  }
44
44
  }), oe = A(N());
45
- function Ge() {
45
+ function We() {
46
46
  const _ = (i) => {
47
47
  switch (oe.value = i, i) {
48
48
  case "zh-CN":
@@ -60,10 +60,10 @@ function Ge() {
60
60
  };
61
61
  }
62
62
  u.locale(N() === "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
65
  setup(_) {
66
- const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: m, registerSidebarComponent: g } = j(), { getRestaurantAndWarehouse: b, getBusinessSetting: T, beginBusinessLoad: B, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: me } = Fe(), n = je(), F = Ve(), h = Je(), P = ze(), r = ne(), fe = re(), { suppressReportRouteSync: O } = L(fe), { getReports: pe, getOverviewReport: ge, getReportConfig: G, currentReportId: K } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = P, { init: he } = $e(), $ = A("v5"), w = A(!1), x = A(!0), Ie = te(() => `https://portal-v1.feedmedev.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${d.value.toUpperCase()}&menuOption=business-report&token=${l.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedmedev.cc?businessId=${i.value}&country=${d.value}&token=${l.value}&reportV3Button=true`);
66
+ const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: m, registerSidebarComponent: g } = Q(), { getRestaurantAndWarehouse: O, getBusinessSetting: T, beginBusinessLoad: B, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: me } = Fe(), n = Qe(), F = Ve(), h = Je(), G = je(), r = ne(), fe = re(), { suppressReportRouteSync: b } = L(fe), { getReports: pe, getOverviewReport: ge, getReportConfig: W, currentReportId: H } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = G, { init: he } = $e(), $ = A("v5"), w = A(!1), x = A(!0), Ie = te(() => `https://portal-v1.feedme.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${d.value.toUpperCase()}&menuOption=business-report&token=${l.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedme.cc?businessId=${i.value}&country=${d.value}&token=${l.value}&reportV3Button=true`);
67
67
  q(
68
68
  [() => D.value, () => S.value, () => m.value],
69
69
  () => {
@@ -85,7 +85,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
85
85
  },
86
86
  { immediate: !0 }
87
87
  );
88
- function H(e) {
88
+ function K(e) {
89
89
  if (typeof e.data == "string")
90
90
  try {
91
91
  const t = JSON.parse(e.data);
@@ -104,13 +104,13 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
104
104
  }
105
105
  }
106
106
  q(f, () => {
107
- ["v3", "v4"].includes(f.value) ? j().hideSidebarToggle(!0) : j().hideSidebarToggle(!1);
107
+ ["v3", "v4"].includes(f.value) ? Q().hideSidebarToggle(!0) : Q().hideSidebarToggle(!1);
108
108
  }), Ce(() => {
109
- g(Qe);
109
+ g(ze);
110
110
  }), ue(() => {
111
- console.log("5.21.39-beta.0", !0), window.addEventListener("message", H), window.addEventListener("message", X);
111
+ console.log("5.21.39", !0), window.addEventListener("message", K), window.addEventListener("message", X);
112
112
  }), Ee(() => {
113
- window.removeEventListener("message", H), window.removeEventListener("message", X), h.$dispose(), P.$dispose();
113
+ window.removeEventListener("message", K), window.removeEventListener("message", X), h.$dispose(), G.$dispose();
114
114
  });
115
115
  function qe(e) {
116
116
  try {
@@ -149,8 +149,8 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
149
149
  const o = C(n.query.locationIds);
150
150
  y = Array.isArray(o) ? o : [];
151
151
  }
152
- let v = n.query.reportId || K;
153
- if (ve.value.find((o) => o.id === v) || (v = K), v && v !== h.currentReportId && h.updateCurrentReportId(v), e || t) {
152
+ let v = n.query.reportId || H;
153
+ if (ve.value.find((o) => o.id === v) || (v = H), v && v !== h.currentReportId && h.updateCurrentReportId(v), e || t) {
154
154
  const o = r.dateRange;
155
155
  (o.startDate !== e || o.endDate !== t) && r.setDateRange({ startDate: e, endDate: t });
156
156
  }
@@ -167,7 +167,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
167
167
  }
168
168
  if (!Z && Array.isArray(y)) {
169
169
  const o = r.selectedLocationIds;
170
- o.length === y.length && o.every((_e, be) => _e === y[be]) || r.setSelectedLocationIds(y);
170
+ o.length === y.length && o.every((_e, Oe) => _e === y[Oe]) || r.setSelectedLocationIds(y);
171
171
  }
172
172
  return {
173
173
  // TODO: this returned value can used for getBusinessSetting
@@ -193,22 +193,22 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
193
193
  locationIds: void 0,
194
194
  isAllLocation: "true"
195
195
  }
196
- })), O.value !== void 0 && (O.value = !0), await me(async () => {
196
+ })), b.value !== void 0 && (b.value = !0), await me(async () => {
197
197
  await he({
198
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
198
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
199
199
  url: "https://flag.feedme.farm/api/v1/",
200
200
  enableAnalytics: !1,
201
201
  cacheFlags: !1
202
202
  });
203
- const t = await G();
203
+ const t = await W();
204
204
  $.value = t.version, f.value = $.value, await Promise.all([
205
205
  de(),
206
- G(),
206
+ W(),
207
207
  ge(),
208
208
  pe(),
209
209
  Se(),
210
210
  De(),
211
- b(
211
+ O(
212
212
  (() => {
213
213
  const a = C(n.query.locationIds);
214
214
  return Array.isArray(a) ? a : void 0;
@@ -231,8 +231,8 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
231
231
  }),
232
232
  (e) => {
233
233
  if (!w.value || !e.reportId) return;
234
- if (O.value) {
235
- O.value = !1;
234
+ if (b.value) {
235
+ b.value = !1;
236
236
  return;
237
237
  }
238
238
  const t = e.selectedLocationIds, a = e.dateRange, s = e.timeRange, p = e.compareDateRange, I = {
@@ -254,19 +254,19 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
254
254
  });
255
255
  },
256
256
  { deep: !0 }
257
- ), Ge(), (e, t) => {
257
+ ), We(), (e, t) => {
258
258
  const a = V("router-view");
259
- return R(), Q(ke, null, [
260
- W(Pe),
261
- c(f) === "v3" ? (R(), Q("iframe", {
259
+ return R(), z(ke, null, [
260
+ P(Ge),
261
+ c(f) === "v3" ? (R(), z("iframe", {
262
262
  key: 0,
263
263
  class: "bg-white h-full w-full",
264
264
  src: Ie.value
265
- }, null, 8, Ke)) : c(f) === "v4" ? (R(), Q("iframe", {
265
+ }, null, 8, He)) : c(f) === "v4" ? (R(), z("iframe", {
266
266
  key: 1,
267
267
  class: "bg-white h-full w-full",
268
268
  src: Re.value
269
- }, null, 8, He)) : (R(), ie(a, { key: 2 }))
269
+ }, null, 8, Ke)) : (R(), ie(a, { key: 2 }))
270
270
  ], 64);
271
271
  };
272
272
  }