@feedmepos/mf-report 5.27.39 → 5.27.40

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-S90BTDsA.js → App-gwDfjs0u.js} +51 -51
  2. package/dist/{DateRangeSelect-D8yWjVRH.js → DateRangeSelect-UoFskU18.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js → Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-aP-DhJoD.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js} +1383 -1377
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js} +2 -2
  6. package/dist/{InsightView-9dc7VxLd.js → InsightView-BOM8sS76.js} +4 -4
  7. package/dist/{Integration-DgT3WP7T.js → Integration-Balw3Mat.js} +3 -3
  8. package/dist/{Integrations-DTjuN8ir.js → Integrations-mur9Phe_.js} +2 -2
  9. package/dist/{Layout-BhTbEl_I.js → Layout-ChpQW6k2.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B3NaH_DG.js → MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js → NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js} +1248 -1252
  12. package/dist/{OverviewView-CLUe1Opn.js → OverviewView-Cf3MrDd_.js} +4 -4
  13. package/dist/{Report-BtKLh93q.js → Report-D0ybaqZN.js} +3 -3
  14. package/dist/{ReportEditor-BSoWyCZA.js → ReportEditor-BAOUNxIf.js} +6 -6
  15. package/dist/{ReportView-DMah7z_A.js → ReportView-BaHqhBsX.js} +6 -6
  16. package/dist/Setting-IDAzH_zb.js +366 -0
  17. package/dist/{Template-CoM9-uOV.js → Template-C1Ei0GcR.js} +3 -3
  18. package/dist/{TileEditor-DDtA5B1e.js → TileEditor-D5lXwoDY.js} +5 -5
  19. package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js → TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js} +2 -2
  20. package/dist/{TransitionFade-cviixQkL.js → TransitionFade-CtE41B0o.js} +4 -4
  21. package/dist/{app-CuP9NY1I.js → app-FVupSSYM.js} +1610 -1538
  22. package/dist/app.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useRestaurantPermission-i9i6cu96.js → useRestaurantPermission-DivfYXir.js} +1 -1
  25. package/package.json +2 -2
  26. package/dist/Setting-DbZY2zk5.js +0 -327
@@ -1,19 +1,19 @@
1
- import { defineComponent as me, resolveComponent as Y, createBlock as pe, openBlock as k, unref as u, isRef as Ne, withCtx as W, createElementVNode as oe, createVNode as Z, toDisplayString as se, createTextVNode as $e, onMounted as fe, watch as q, ref as U, computed as ie, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as H, Fragment as Qe } from "vue";
1
+ import { defineComponent as me, resolveComponent as Y, createBlock as pe, openBlock as C, unref as u, isRef as Ne, withCtx as W, createElementVNode as oe, createVNode as Z, toDisplayString as se, createTextVNode as $e, onMounted as fe, watch as k, ref as U, computed as ie, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as H, Fragment as Qe } from "vue";
2
2
  import { detectLocale as j, useCoreStore as V } from "@feedmepos/mf-common";
3
- import { d as O, u as Ue, a as ce, b as je, c as de, e as Pe, f as Ge, s as Ke, g as X } from "./app-CuP9NY1I.js";
4
- import { storeToRefs as T } from "pinia";
5
- import { u as We, a as He } from "./_plugin-vue_export-helper-onplcgja.js";
6
- import { u as Ve, a as Xe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
7
- import { u as Ye, _ as Ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js";
3
+ import { d as T, u as Ue, a as ce, b as je, c as de, e as Pe, f as Ge, g as X } from "./app-FVupSSYM.js";
4
+ import { storeToRefs as q } from "pinia";
5
+ import { u as Ke, a as We } from "./_plugin-vue_export-helper-onplcgja.js";
6
+ import { u as He, a as Ve } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
7
+ import { u as Xe, _ as Ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js";
8
8
  import { u as ue } from "./message-dialog-UoMWOnil.js";
9
- import { useRoute as Me, useRouter as et } from "vue-router";
10
- const tt = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, nt = /* @__PURE__ */ me({
9
+ import { useRoute as Ze, useRouter as Me } from "vue-router";
10
+ const et = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, tt = /* @__PURE__ */ me({
11
11
  __name: "Dialog",
12
- setup(z) {
13
- const { t: c } = We(), g = ue(), { isOpened: y, message: R, title: L } = T(ue());
14
- return (E, _) => {
12
+ setup(O) {
13
+ const { t: c } = Ke(), g = ue(), { isOpened: y, message: R, title: L } = q(ue());
14
+ return (z, _) => {
15
15
  const B = Y("FmButton"), P = Y("FmDialog");
16
- return k(), pe(P, {
16
+ return C(), pe(P, {
17
17
  modelValue: u(y),
18
18
  "onUpdate:modelValue": _[0] || (_[0] = (G) => Ne(y) ? y.value = G : null),
19
19
  overlay: "",
@@ -24,7 +24,7 @@ const tt = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, nt
24
24
  $e(se(u(L)), 1)
25
25
  ]),
26
26
  default: W(() => [
27
- oe("p", tt, se(u(R)), 1)
27
+ oe("p", et, se(u(R)), 1)
28
28
  ]),
29
29
  "dialog-footer": W(() => [
30
30
  _[1] || (_[1] = oe("div", { class: "grow" }, null, -1)),
@@ -43,40 +43,40 @@ const tt = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, nt
43
43
  };
44
44
  }
45
45
  }), le = U(j());
46
- function rt() {
47
- const z = (c) => {
46
+ function nt() {
47
+ const O = (c) => {
48
48
  switch (le.value = c, c) {
49
49
  case "zh-CN":
50
- O.locale("zh-cn");
50
+ T.locale("zh-cn");
51
51
  break;
52
52
  default:
53
- O.locale("en");
53
+ T.locale("en");
54
54
  break;
55
55
  }
56
56
  };
57
57
  return fe(() => {
58
- z(j());
59
- }), q(() => j(), z, { deep: !0, immediate: !0 }), {
58
+ O(j());
59
+ }), k(() => j(), O, { deep: !0, immediate: !0 }), {
60
60
  currentLocale: le
61
61
  };
62
62
  }
63
- O.locale(j() === "zh-CN" ? "zh-cn" : "en");
64
- const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
63
+ T.locale(j() === "zh-CN" ? "zh-cn" : "en");
64
+ const rt = ["src"], at = ["src"], ft = /* @__PURE__ */ me({
65
65
  __name: "App",
66
- setup(z) {
67
- const { businessId: c, token: g, country: y } = T(Ue()), { sessionUser: R, currentBusiness: L, currentCountry: E, registerSidebarComponent: _ } = V(), {
66
+ setup(O) {
67
+ const { businessId: c, token: g, country: y } = q(Ue()), { sessionUser: R, currentBusiness: L, currentCountry: z, registerSidebarComponent: _ } = V(), {
68
68
  getRestaurantAndWarehouse: B,
69
69
  getBusinessSetting: P,
70
70
  beginBusinessLoad: G,
71
71
  completeBusinessLoad: ge,
72
72
  resetTimezoneContext: ye
73
- } = ce(), ve = je(), { getFeatureFlags: Se } = ve, { version: v } = T(de()), { getSettings: De } = Pe(), { promptLoader: he } = He(), n = Me(), F = et(), b = Ve(), M = Ye(), o = ce(), w = de(), { suppressReportRouteSync: N } = T(w), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: ee } = b, { currentReportId: Le, reports: Ee } = T(b), { getSchema: be } = Xe(), { fetchSchedules: we } = M, { init: Ae } = Ge(), K = U("v5"), $ = U(!1), x = U(!0), Ce = ie(() => `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`), ke = ie(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
74
- q(
75
- [() => L.value, () => R.value, () => E.value],
73
+ } = ce(), ve = je(), { getFeatureFlags: Se } = ve, { version: v } = q(de()), { getSettings: De } = Pe(), { promptLoader: he } = We(), n = Ze(), F = Me(), E = He(), M = Xe(), o = ce(), b = de(), { suppressReportRouteSync: N } = q(b), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: ee } = E, { currentReportId: Le, reports: Ee } = q(E), { getSchema: be } = Ve(), { fetchSchedules: we } = M, { init: Ae } = Ge(), K = U("v5"), $ = U(!1), x = U(!0), Ce = ie(() => `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`), ke = ie(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
74
+ k(
75
+ [() => L.value, () => R.value, () => z.value],
76
76
  () => {
77
77
  var e, r;
78
78
  const t = ((e = L.value) == null ? void 0 : e.id) ?? "";
79
- L.value && R.value && E.value && (Ke(E.value), c.value !== t && (c.value = t), g.value = ((r = R.value) == null ? void 0 : r.token) ?? "", y.value = E.value ?? "");
79
+ L.value && R.value && z.value && (c.value !== t && (c.value = t), g.value = ((r = R.value) == null ? void 0 : r.token) ?? "", y.value = z.value ?? "");
80
80
  },
81
81
  { immediate: !0 }
82
82
  );
@@ -98,14 +98,14 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
98
98
  console.error(e);
99
99
  }
100
100
  }
101
- q(v, () => {
101
+ k(v, () => {
102
102
  ["v3", "v4"].includes(v.value) ? V().hideSidebarToggle(!0) : V().hideSidebarToggle(!1);
103
103
  }), xe(() => {
104
- _(Ze);
104
+ _(Ye);
105
105
  }), fe(() => {
106
- console.log("5.27.39", !0), window.addEventListener("message", te), window.addEventListener("message", ne);
106
+ console.log("5.27.40", !0), window.addEventListener("message", te), window.addEventListener("message", ne);
107
107
  }), Je(() => {
108
- window.removeEventListener("message", te), window.removeEventListener("message", ne), b.$dispose(), M.$dispose();
108
+ window.removeEventListener("message", te), window.removeEventListener("message", ne), E.$dispose(), M.$dispose();
109
109
  });
110
110
  function qe(t) {
111
111
  try {
@@ -137,11 +137,11 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
137
137
  }
138
138
  function l(t, e, r) {
139
139
  if (typeof t != "string" || t.length === 0) return;
140
- const a = t.includes("T") ? O(t).tz(r) : O.tz(t, r);
140
+ const a = t.includes("T") ? T(t).tz(r) : T.tz(t, r);
141
141
  return (e === "start" ? a.startOf("day") : a.endOf("day")).utc().toISOString();
142
142
  }
143
143
  function Te(t = n.query) {
144
- const e = t, r = o.timezone, a = l(e.startDate, "start", r), d = l(e.endDate, "end", r), i = typeof e.timeStart == "string", S = typeof e.timeEnd == "string", D = J(e.timeStart), h = J(e.timeEnd), A = re(D) ? D : null, C = re(h) ? h : null, m = l(e.compareStartDate, "start", r), p = l(e.compareEndDate, "end", r), Q = e.isAllLocation === "true" || e.isAllLocation === void 0;
144
+ const e = t, r = o.timezone, a = l(e.startDate, "start", r), d = l(e.endDate, "end", r), i = typeof e.timeStart == "string", S = typeof e.timeEnd == "string", D = J(e.timeStart), h = J(e.timeEnd), w = re(D) ? D : null, A = re(h) ? h : null, m = l(e.compareStartDate, "start", r), p = l(e.compareEndDate, "end", r), Q = e.isAllLocation === "true" || e.isAllLocation === void 0;
145
145
  let f = [];
146
146
  if (Q)
147
147
  f = o.selectedLocationIds ?? [];
@@ -150,13 +150,13 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
150
150
  f = Array.isArray(s) ? s : [];
151
151
  }
152
152
  let I = e.reportId || ee;
153
- if (Ee.value.find((s) => s.id === I) || (I = ee), I && I !== b.currentReportId && b.updateCurrentReportId(I), a || d) {
153
+ if (Ee.value.find((s) => s.id === I) || (I = ee), I && I !== E.currentReportId && E.updateCurrentReportId(I), a || d) {
154
154
  const s = o.dateRange;
155
155
  (s.startDate !== a || s.endDate !== d) && o.setDateRange({ startDate: a, endDate: d });
156
156
  }
157
157
  if (i || S) {
158
158
  const s = o.timeRange;
159
- (s.start !== A || s.end !== C) && o.setTimeRange({ start: A, end: C });
159
+ (s.start !== w || s.end !== A) && o.setTimeRange({ start: w, end: A });
160
160
  }
161
161
  if (m || p) {
162
162
  const s = o.compareDateRange;
@@ -182,7 +182,7 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
182
182
  isAllLocation: e.isAllLocation
183
183
  };
184
184
  }
185
- return q(
185
+ return k(
186
186
  () => c.value,
187
187
  async (t, e) => {
188
188
  if (t !== "") {
@@ -200,8 +200,8 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
200
200
  const {
201
201
  locationIds: D,
202
202
  startDate: h,
203
- endDate: A,
204
- timeStart: C,
203
+ endDate: w,
204
+ timeStart: A,
205
205
  timeEnd: m,
206
206
  compareStartDate: p,
207
207
  compareEndDate: Q,
@@ -224,15 +224,15 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
224
224
  cacheFlags: !1
225
225
  });
226
226
  const D = await Re();
227
- K.value = D.version, v.value = K.value, await Se(), n.name === "template" && !w.canAccessTemplate() && await F.replace({
227
+ K.value = D.version, v.value = K.value, await Se(), n.name === "template" && !b.canAccessTemplate() && await F.replace({
228
228
  name: "reports",
229
229
  query: n.query
230
230
  });
231
- const h = w.canAccess(
231
+ const h = b.canAccess(
232
232
  X.report_accessOverview
233
- ), A = w.canAccess(
233
+ ), w = b.canAccess(
234
234
  X.report_accessSetting
235
- ), C = w.canAccess(
235
+ ), A = b.canAccess(
236
236
  X.report_accessIntegration
237
237
  ), m = [
238
238
  be(),
@@ -245,7 +245,7 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
245
245
  })()
246
246
  )
247
247
  ];
248
- if (h && m.push(_e()), C && m.push(De()), await Promise.all(m), A && await P(), Te(i), S) {
248
+ if (h && m.push(_e()), A && m.push(De()), await Promise.all(m), w && await P(), Te(i), S) {
249
249
  const {
250
250
  locationIds: p,
251
251
  startDate: Q,
@@ -276,7 +276,7 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
276
276
  {
277
277
  immediate: !0
278
278
  }
279
- ), q(
279
+ ), k(
280
280
  () => ($.value, {
281
281
  reportId: Le.value,
282
282
  selectedLocationIds: o.selectedLocationIds,
@@ -314,23 +314,23 @@ const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
314
314
  });
315
315
  },
316
316
  { deep: !0 }
317
- ), rt(), (t, e) => {
317
+ ), nt(), (t, e) => {
318
318
  const r = Y("router-view");
319
- return k(), H(Qe, null, [
320
- Z(nt),
321
- u(v) === "v3" ? (k(), H("iframe", {
319
+ return C(), H(Qe, null, [
320
+ Z(tt),
321
+ u(v) === "v3" ? (C(), H("iframe", {
322
322
  key: 0,
323
323
  class: "bg-white h-full w-full",
324
324
  src: Ce.value
325
- }, null, 8, at)) : u(v) === "v4" ? (k(), H("iframe", {
325
+ }, null, 8, rt)) : u(v) === "v4" ? (C(), H("iframe", {
326
326
  key: 1,
327
327
  class: "bg-white h-full w-full",
328
328
  src: ke.value
329
- }, null, 8, ot)) : (k(), pe(r, { key: 2 }))
329
+ }, null, 8, at)) : (C(), pe(r, { key: 2 }))
330
330
  ], 64);
331
331
  };
332
332
  }
333
333
  });
334
334
  export {
335
- gt as default
335
+ ft as default
336
336
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as se, resolveComponent as Y, createBlock as R, openBlock as p, normalizeClass as Ce, withCtx as V, createCommentVNode as F, createElementVNode as N, toDisplayString as pe, renderSlot as Re, mergeModels as Q, useModel as j, ref as A, computed as B, watch as x, nextTick as Z, onMounted as Se, onBeforeUnmount as xe, createElementBlock as be, unref as P, createVNode as ee } from "vue";
2
- import { d as m, a as Pe, C as $, j as Ee } from "./app-CuP9NY1I.js";
2
+ import { d as m, a as Pe, C as $, j as Ee } from "./app-FVupSSYM.js";
3
3
  import { detectLocale as te } from "@feedmepos/mf-common";
4
4
  import { u as Te, _ as we } from "./_plugin-vue_export-helper-onplcgja.js";
5
5
  import { storeToRefs as Me } from "pinia";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as s, 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-Cg-74bAB.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.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, a as w } from "./_plugin-vue_export-helper-onplcgja.js";