@feedmepos/mf-report 5.22.1-remy-beta.2 → 5.22.1-remy.1

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-iSIj8_lS.js → App-cuHcpcZw.js} +26 -26
  2. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js +19983 -0
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CPniBJgZ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js} +36 -37
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Blc6DBml.js → Default.vue_vue_type_script_setup_true_lang-BhMWXLug.js} +11 -12
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CHTMrqtt.js → FilterSelector.vue_vue_type_script_setup_true_lang-fzO5gzwh.js} +235 -236
  6. package/dist/{InsightView-Ckkwb92m.js → InsightView-DJJJmFkl.js} +16 -17
  7. package/dist/{Integration-BoYn0XvH.js → Integration-D93eQCHy.js} +4 -5
  8. package/dist/{Integrations-D6Qz0hqf.js → Integrations-jn20KmcD.js} +27 -28
  9. package/dist/{Layout-DIs6pMOT.js → Layout-B1jaac85.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Brwm-7zb.js → MenuTab.vue_vue_type_script_setup_true_lang-BrCMbeEl.js} +9 -9
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DZIauCN0.js → NavigationTab.vue_vue_type_script_setup_true_lang-BZVeEoDt.js} +97 -98
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CW6oZEnc.js → NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js} +1 -1
  13. package/dist/{OverviewView-Bx_6RMle.js → OverviewView-Cuzw4aLB.js} +16 -16
  14. package/dist/{Report-E8GN07k7.js → Report-P_a1NjPi.js} +9 -8
  15. package/dist/{ReportEditor-bz8aajNj.js → ReportEditor-CkNtAVi9.js} +8 -9
  16. package/dist/{ReportView-BEWiRAvV.js → ReportView-BiF6T_r0.js} +12 -12
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js → SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js} +1 -1
  18. package/dist/{Setting-B6nnaJaX.js → Setting-DLnskPxP.js} +6 -7
  19. package/dist/{TileEditor-DncjwvcR.js → TileEditor-LFwn_4CK.js} +17 -18
  20. package/dist/{TransitionFade-Bold22aO.js → TransitionFade-12ARL50A.js} +21 -22
  21. package/dist/app.js +5184 -6
  22. package/dist/vue-i18n-BQN8HgvD.js +6457 -0
  23. package/package.json +1 -1
  24. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-Bnu9l9U0.js +0 -315
  25. package/dist/app-CDw9UOqm.js +0 -28808
  26. package/dist/vue-i18n-CQAzKJVO.js +0 -2711
@@ -1,15 +1,15 @@
1
- import { defineComponent as ee, resolveComponent as U, createBlock as te, openBlock as h, unref as u, isRef as Ie, withCtx as J, createElementVNode as K, createVNode as z, toDisplayString as P, createTextVNode as he, onMounted as ae, watch as R, ref as E, computed as H, onBeforeMount as Re, onBeforeUnmount as qe, createElementBlock as A, Fragment as Oe } from "vue";
2
- import { detectLocale as k, useCoreStore as T } from "@feedmepos/mf-common";
3
- import { d as i, u as Le, a as X, b as _e, c as Y, e as we, f as be, s as Ce, g as Ee, h as ke, i as Ne } from "./app-CDw9UOqm.js";
1
+ import { defineComponent as ee, resolveComponent as U, createBlock as te, openBlock as h, unref as u, isRef as Ie, withCtx as J, createElementVNode as W, createVNode as z, toDisplayString as H, createTextVNode as he, onMounted as ae, watch as R, ref as k, computed as K, onBeforeMount as Re, onBeforeUnmount as qe, createElementBlock as A, Fragment as Oe } from "vue";
2
+ import { detectLocale as E, useCoreStore as T } from "@feedmepos/mf-common";
3
+ import { u as Le, d as i, a as _e, b as X, c as we, e as be, f as Ce, s as ke, g as Ee } from "./vue-i18n-BQN8HgvD.js";
4
4
  import { storeToRefs as q } from "pinia";
5
- import { _ as Be, u as Fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DZIauCN0.js";
5
+ import { u as Y, a as Ne, b as Be } from "./BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js";
6
+ import { _ as Fe, u as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BZVeEoDt.js";
6
7
  import { u as Z } from "./message-dialog-UoMWOnil.js";
7
- import { u as $e } from "./vue-i18n-CQAzKJVO.js";
8
8
  import { useRoute as xe, useRouter as Je } from "vue-router";
9
9
  const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te = /* @__PURE__ */ ee({
10
10
  __name: "Dialog",
11
11
  setup(O) {
12
- const { t: r } = $e(), f = Z(), { isOpened: l, message: S, title: D } = q(Z());
12
+ const { t: r } = Le(), f = Z(), { isOpened: l, message: S, title: D } = q(Z());
13
13
  return (L, g) => {
14
14
  const _ = U("FmButton"), N = U("FmDialog");
15
15
  return h(), te(N, {
@@ -19,13 +19,13 @@ const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te
19
19
  "close-button": !1
20
20
  }, {
21
21
  "dialog-header": J(() => [
22
- he(P(u(D)), 1)
22
+ he(H(u(D)), 1)
23
23
  ]),
24
24
  default: J(() => [
25
- K("p", Ae, P(u(S)), 1)
25
+ W("p", Ae, H(u(S)), 1)
26
26
  ]),
27
27
  "dialog-footer": J(() => [
28
- g[1] || (g[1] = K("div", { class: "grow" }, null, -1)),
28
+ g[1] || (g[1] = W("div", { class: "grow" }, null, -1)),
29
29
  z(_, {
30
30
  label: u(r)("report.common.cancel"),
31
31
  variant: "tertiary",
@@ -40,7 +40,7 @@ const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te
40
40
  }, 8, ["modelValue"]);
41
41
  };
42
42
  }
43
- }), M = E(k());
43
+ }), M = k(E());
44
44
  function Ue() {
45
45
  const O = (r) => {
46
46
  switch (M.value = r, r) {
@@ -53,22 +53,22 @@ function Ue() {
53
53
  }
54
54
  };
55
55
  return ae(() => {
56
- O(k());
57
- }), R(() => k(), O, { deep: !0, immediate: !0 }), {
56
+ O(E());
57
+ }), R(() => E(), O, { deep: !0, immediate: !0 }), {
58
58
  currentLocale: M
59
59
  };
60
60
  }
61
- i.locale(k() === "zh-CN" ? "zh-cn" : "en");
61
+ i.locale(E() === "zh-CN" ? "zh-cn" : "en");
62
62
  const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
63
63
  __name: "App",
64
64
  setup(O) {
65
- const { businessId: r, token: f, country: l } = q(Le()), { sessionUser: S, currentBusiness: D, currentCountry: L, registerSidebarComponent: g } = T(), { getRestaurantAndWarehouse: _, getBusinessSetting: N, beginBusinessLoad: B, completeBusinessLoad: ne } = X(), { getFeatureFlags: re } = _e(), { version: p } = q(Y()), { getSettings: oe } = we(), { promptLoader: se } = be(), e = xe(), F = Je(), ie = Y(), { suppressReportRouteSync: w } = q(ie), ue = H(() => `https://portal-v1.feedmedev.cc/b/${r.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), le = H(() => `https://report-v4.feedmedev.cc?businessId=${r.value}&country=${l.value}&token=${f.value}&reportV3Button=true`);
65
+ const { businessId: r, token: f, country: l } = q(_e()), { sessionUser: S, currentBusiness: D, currentCountry: L, registerSidebarComponent: g } = T(), { getRestaurantAndWarehouse: _, getBusinessSetting: N, beginBusinessLoad: B, completeBusinessLoad: ne } = X(), { getFeatureFlags: re } = we(), { version: p } = q(Y()), { getSettings: oe } = be(), { promptLoader: se } = Ce(), e = xe(), F = Je(), ie = Y(), { suppressReportRouteSync: w } = q(ie), ue = K(() => `https://portal-v1.feedme.cc/b/${r.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), le = K(() => `https://report-v4.feedme.cc?businessId=${r.value}&country=${l.value}&token=${f.value}&reportV3Button=true`);
66
66
  R(
67
67
  [() => D.value, () => S.value, () => L.value],
68
68
  () => {
69
69
  var t, o;
70
70
  const a = ((t = D.value) == null ? void 0 : t.id) ?? "";
71
- D.value && S.value && L.value && (Ce(l.value), r.value !== a && (r.value = a), f.value = ((o = S.value) == null ? void 0 : o.token) ?? "", l.value = L.value ?? "", e.query.businessId !== r.value && F.replace({
71
+ D.value && S.value && L.value && (ke(l.value), r.value !== a && (r.value = a), f.value = ((o = S.value) == null ? void 0 : o.token) ?? "", l.value = L.value ?? "", e.query.businessId !== r.value && F.replace({
72
72
  name: e.name,
73
73
  params: e.params,
74
74
  query: { ...e.query, businessId: r.value }
@@ -85,7 +85,7 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
85
85
  console.error(t);
86
86
  }
87
87
  }
88
- function V(a) {
88
+ function j(a) {
89
89
  if (typeof a.data == "string")
90
90
  try {
91
91
  const t = JSON.parse(a.data);
@@ -97,21 +97,21 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
97
97
  R(p, () => {
98
98
  ["v3", "v4"].includes(p.value) ? T().hideSidebarToggle(!0) : T().hideSidebarToggle(!1);
99
99
  }), Re(() => {
100
- g(Be);
100
+ g(Fe);
101
101
  }), ae(() => {
102
- console.log("5.22.1-remy-beta.2", !0), window.addEventListener("message", Q), window.addEventListener("message", V);
102
+ console.log("5.22.1-remy.1", !0), window.addEventListener("message", Q), window.addEventListener("message", j);
103
103
  });
104
- const I = Ee(), W = Fe(), n = X();
104
+ const I = Ne(), V = $e(), n = X();
105
105
  qe(() => {
106
- window.removeEventListener("message", Q), window.removeEventListener("message", V), I.$dispose(), W.$dispose();
106
+ window.removeEventListener("message", Q), window.removeEventListener("message", j), I.$dispose(), V.$dispose();
107
107
  });
108
- const { getReports: ce, getOverviewReport: de, getReportConfig: j, currentReportId: G } = I, { currentReportId: me, reports: fe } = q(I), { getSchema: pe } = ke(), { fetchSchedules: ge } = W, { init: ve } = Ne(), $ = E("v5"), b = E(!1), x = E(!0);
108
+ const { getReports: ce, getOverviewReport: de, getReportConfig: G, currentReportId: P } = I, { currentReportId: me, reports: fe } = q(I), { getSchema: pe } = Be(), { fetchSchedules: ge } = V, { init: ve } = Ee(), $ = k("v5"), b = k(!1), x = k(!0);
109
109
  function ye() {
110
110
  const a = e.query.startDate ? i(e.query.startDate).startOf("day").toISOString() : void 0, t = e.query.endDate ? i(e.query.endDate).endOf("day").toISOString() : void 0, o = e.query.timeStart ? JSON.parse(e.query.timeStart) : void 0, c = e.query.timeEnd ? JSON.parse(e.query.timeEnd) : void 0, d = e.query.compareStartDate ? i(e.query.compareStartDate).startOf("day").toISOString() : void 0, v = e.query.compareEndDate ? i(e.query.compareEndDate).endOf("day").toISOString() : void 0, C = e.query.isAllLocation === "true";
111
111
  let m = [];
112
112
  C ? m = n.selectedLocationIds : m = e.query.locationIds ? JSON.parse(e.query.locationIds) : void 0;
113
- let y = e.query.reportId || G;
114
- if (fe.value.find((s) => s.id === y) || (y = G), y && y !== I.currentReportId && I.updateCurrentReportId(y), a || t) {
113
+ let y = e.query.reportId || P;
114
+ if (fe.value.find((s) => s.id === y) || (y = P), y && y !== I.currentReportId && I.updateCurrentReportId(y), a || t) {
115
115
  const s = n.dateRange;
116
116
  (s.startDate !== a || s.endDate !== t) && n.setDateRange({ startDate: a, endDate: t });
117
117
  }
@@ -156,15 +156,15 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
156
156
  }
157
157
  })), w.value !== void 0 && (w.value = !0), await se(async () => {
158
158
  await ve({
159
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
159
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
160
160
  url: "https://flag.feedme.farm/api/v1/",
161
161
  enableAnalytics: !1,
162
162
  cacheFlags: !1
163
163
  });
164
- const t = await j();
164
+ const t = await G();
165
165
  $.value = t.version, p.value = $.value, await Promise.all([
166
166
  re(),
167
- j(),
167
+ G(),
168
168
  de(),
169
169
  ce(),
170
170
  pe(),