@feedmepos/mf-report 5.21.33-beta.2 → 5.21.33
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.
- package/dist/{App-CTyvwXtl.js → App-Dy85cL9t.js} +40 -40
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-Btely_wI.js → BaseDialog.vue_vue_type_script_setup_true_lang-CpiSpGtJ.js} +125 -126
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BNWuNb9K.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CLr895jL.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-4SLazb8N.js → Default.vue_vue_type_script_setup_true_lang-CALqGAwG.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CgxYZrjw.js → FilterSelector.vue_vue_type_script_setup_true_lang-DWITQoXu.js} +74 -74
- package/dist/{InsightView-C2bKy19H.js → InsightView-CrsIoNjf.js} +6 -6
- package/dist/{Integration-DLCZaTMZ.js → Integration-DSWRZZs9.js} +3 -3
- package/dist/{Integrations-D7Qvnm78.js → Integrations-CrAZ-StZ.js} +3 -3
- package/dist/{Layout-vFMGoyBB.js → Layout-D3u3q0at.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DQpysAxz.js → MenuTab.vue_vue_type_script_setup_true_lang-D_81xxoF.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DIgxp2Q2.js → NavigationTab.vue_vue_type_script_setup_true_lang-C_bs7trG.js} +8330 -8490
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-ClTU_4Ln.js → NoData.vue_vue_type_script_setup_true_lang-DmjSZOlP.js} +1 -1
- package/dist/{OverviewView-CT4hfZyt.js → OverviewView-CJJZOUTb.js} +5 -5
- package/dist/{Report-BuTQaruU.js → Report-KJY98Ld3.js} +4 -4
- package/dist/{ReportEditor-BAAH4kAg.js → ReportEditor-o4Iilw7q.js} +6 -6
- package/dist/{ReportView-DGREDAsw.js → ReportView-DT8xhH1o.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-C4Ha7qXn.js → SelectComponent.vue_vue_type_script_setup_true_lang-BmfnFW3_.js} +1 -1
- package/dist/{Setting-BoI1BbYT.js → Setting-Dny1KPw0.js} +5 -5
- package/dist/{TileEditor-ewv2bdQg.js → TileEditor-BdgEyRIL.js} +8 -8
- package/dist/{TransitionFade-CI0UTMeH.js → TransitionFade-CZ3T_jYY.js} +6 -6
- package/dist/{app-D0RqblLh.js → app-BE7R7eaa.js} +547 -375
- package/dist/app.js +1 -1
- package/dist/{vue-i18n-EzUoP-WP.js → vue-i18n-CKLm0GXG.js} +643 -660
- package/package.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as
|
|
2
|
-
import { detectLocale as N, useCoreStore as
|
|
3
|
-
import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, s as $e, f as xe } from "./vue-i18n-
|
|
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, s as $e, f as xe } from "./vue-i18n-CKLm0GXG.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-
|
|
6
|
-
import { u as
|
|
5
|
+
import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CpiSpGtJ.js";
|
|
6
|
+
import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-C_bs7trG.js";
|
|
7
7
|
import { u as ae } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { d as u } from "./app-
|
|
9
|
-
import { useRoute as
|
|
10
|
-
const
|
|
8
|
+
import { d as u } from "./app-BE7R7eaa.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 (f, g) => {
|
|
15
|
-
const
|
|
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) =>
|
|
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":
|
|
22
|
+
"dialog-header": j(() => [
|
|
23
23
|
we(ee(c(D)), 1)
|
|
24
24
|
]),
|
|
25
|
-
default:
|
|
26
|
-
M("p",
|
|
25
|
+
default: j(() => [
|
|
26
|
+
M("p", Pe, ee(c(S)), 1)
|
|
27
27
|
]),
|
|
28
|
-
"dialog-footer":
|
|
28
|
+
"dialog-footer": j(() => [
|
|
29
29
|
g[1] || (g[1] = M("div", { class: "grow" }, null, -1)),
|
|
30
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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: f, registerSidebarComponent: g } =
|
|
66
|
+
const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: f, registerSidebarComponent: g } = Q(), { getRestaurantAndWarehouse: O, getBusinessSetting: T, beginBusinessLoad: B, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: m } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = Qe(), F = Ve(), h = Je(), G = je(), r = ne(), me = re(), { suppressReportRouteSync: b } = L(me), pe = 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`), ge = 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, () => f.value],
|
|
69
69
|
() => {
|
|
@@ -87,7 +87,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
87
87
|
},
|
|
88
88
|
{ immediate: !0 }
|
|
89
89
|
);
|
|
90
|
-
function
|
|
90
|
+
function W(e) {
|
|
91
91
|
if (typeof e.data == "string")
|
|
92
92
|
try {
|
|
93
93
|
const t = JSON.parse(e.data);
|
|
@@ -96,7 +96,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
96
96
|
console.error(t);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function H(e) {
|
|
100
100
|
if (typeof e.data == "string")
|
|
101
101
|
try {
|
|
102
102
|
const t = JSON.parse(e.data);
|
|
@@ -106,15 +106,15 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
q(m, () => {
|
|
109
|
-
["v3", "v4"].includes(m.value) ?
|
|
109
|
+
["v3", "v4"].includes(m.value) ? Q().hideSidebarToggle(!0) : Q().hideSidebarToggle(!1);
|
|
110
110
|
}), Ce(() => {
|
|
111
|
-
g(
|
|
111
|
+
g(ze);
|
|
112
112
|
}), ue(() => {
|
|
113
|
-
console.log("5.21.33
|
|
113
|
+
console.log("5.21.33", !0), window.addEventListener("message", W), window.addEventListener("message", H);
|
|
114
114
|
}), Ee(() => {
|
|
115
|
-
window.removeEventListener("message",
|
|
115
|
+
window.removeEventListener("message", W), window.removeEventListener("message", H), h.$dispose(), G.$dispose();
|
|
116
116
|
});
|
|
117
|
-
const { getReports: ye, getOverviewReport: ve, getReportConfig:
|
|
117
|
+
const { getReports: ye, getOverviewReport: ve, getReportConfig: K, currentReportId: X } = h, { currentReportId: Se, reports: De } = L(h), { getSchema: he } = Ue(), { fetchSchedules: Ie } = G, { init: Re } = xe(), $ = A("v5"), w = A(!1), x = A(!0);
|
|
118
118
|
function qe(e) {
|
|
119
119
|
try {
|
|
120
120
|
return decodeURIComponent(e);
|
|
@@ -170,7 +170,7 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
170
170
|
}
|
|
171
171
|
if (!Z && Array.isArray(y)) {
|
|
172
172
|
const o = r.selectedLocationIds;
|
|
173
|
-
o.length === y.length && o.every((_e,
|
|
173
|
+
o.length === y.length && o.every((_e, Oe) => _e === y[Oe]) || r.setSelectedLocationIds(y);
|
|
174
174
|
}
|
|
175
175
|
return {
|
|
176
176
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -196,22 +196,22 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
196
196
|
locationIds: void 0,
|
|
197
197
|
isAllLocation: "true"
|
|
198
198
|
}
|
|
199
|
-
})),
|
|
199
|
+
})), b.value !== void 0 && (b.value = !0), await fe(async () => {
|
|
200
200
|
await Re({
|
|
201
|
-
apiKey: "
|
|
201
|
+
apiKey: "6GhcttsJ9Rj9cTevcdrpin",
|
|
202
202
|
url: "https://flag.feedme.farm/api/v1/",
|
|
203
203
|
enableAnalytics: !1,
|
|
204
204
|
cacheFlags: !1
|
|
205
205
|
});
|
|
206
|
-
const t = await
|
|
206
|
+
const t = await K();
|
|
207
207
|
$.value = t.version, m.value = $.value, await Promise.all([
|
|
208
208
|
de(),
|
|
209
|
-
|
|
209
|
+
K(),
|
|
210
210
|
ve(),
|
|
211
211
|
ye(),
|
|
212
212
|
he(),
|
|
213
213
|
Ie(),
|
|
214
|
-
|
|
214
|
+
O(
|
|
215
215
|
(() => {
|
|
216
216
|
const a = C(n.query.locationIds);
|
|
217
217
|
return Array.isArray(a) ? a : void 0;
|
|
@@ -234,8 +234,8 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
234
234
|
}),
|
|
235
235
|
(e) => {
|
|
236
236
|
if (!w.value || !e.reportId) return;
|
|
237
|
-
if (
|
|
238
|
-
|
|
237
|
+
if (b.value) {
|
|
238
|
+
b.value = !1;
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
241
|
const t = e.selectedLocationIds, a = e.dateRange, s = e.timeRange, p = e.compareDateRange, I = {
|
|
@@ -257,19 +257,19 @@ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
|
|
|
257
257
|
});
|
|
258
258
|
},
|
|
259
259
|
{ deep: !0 }
|
|
260
|
-
),
|
|
260
|
+
), We(), (e, t) => {
|
|
261
261
|
const a = V("router-view");
|
|
262
|
-
return R(),
|
|
263
|
-
|
|
264
|
-
c(m) === "v3" ? (R(),
|
|
262
|
+
return R(), z(ke, null, [
|
|
263
|
+
P(Ge),
|
|
264
|
+
c(m) === "v3" ? (R(), z("iframe", {
|
|
265
265
|
key: 0,
|
|
266
266
|
class: "bg-white h-full w-full",
|
|
267
267
|
src: pe.value
|
|
268
|
-
}, null, 8,
|
|
268
|
+
}, null, 8, He)) : c(m) === "v4" ? (R(), z("iframe", {
|
|
269
269
|
key: 1,
|
|
270
270
|
class: "bg-white h-full w-full",
|
|
271
271
|
src: ge.value
|
|
272
|
-
}, null, 8,
|
|
272
|
+
}, null, 8, Ke)) : (R(), ie(a, { key: 2 }))
|
|
273
273
|
], 64);
|
|
274
274
|
};
|
|
275
275
|
}
|