@feedmepos/mf-report 5.4.31 → 5.4.32-beta.0
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-BEYrnl4C.js → App-DVsWRfsp.js} +16 -16
- package/dist/app.js +4 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as O, resolveComponent as C, createBlock as T, openBlock as m, unref as r, isRef as Y, withCtx as w, createElementVNode as N, createVNode as $, toDisplayString as q, createTextVNode as Z, onMounted as j, watch as p, ref as z, computed as I, onBeforeMount as M, onBeforeUnmount as ee, createElementBlock as
|
|
2
|
-
import { detectLocale as g, useCoreStore as
|
|
3
|
-
import { u as oe, d as F, a as re, b as ne, c as
|
|
1
|
+
import { defineComponent as O, resolveComponent as C, createBlock as T, openBlock as m, unref as r, isRef as Y, withCtx as w, createElementVNode as N, createVNode as $, toDisplayString as q, createTextVNode as Z, onMounted as j, watch as p, ref as z, computed as I, onBeforeMount as M, onBeforeUnmount as ee, createElementBlock as b, Fragment as te } from "vue";
|
|
2
|
+
import { detectLocale as g, useCoreStore as k } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as oe, d as F, a as re, b as ne, c as ae, e as se, f as le, g as ue } from "./global-loader-D9UMph7l.js";
|
|
4
4
|
import { storeToRefs as B } from "pinia";
|
|
5
5
|
import { u as ie, a as ce } from "./v4-D67i4aLh.js";
|
|
6
6
|
import { u as me } from "./report-schema-BEEUlheS.js";
|
|
@@ -10,12 +10,12 @@ import { useRoute as fe } from "vue-router";
|
|
|
10
10
|
const pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, ge = /* @__PURE__ */ O({
|
|
11
11
|
__name: "Dialog",
|
|
12
12
|
setup(d) {
|
|
13
|
-
const { t } = oe(), n = U(), { isOpened:
|
|
13
|
+
const { t } = oe(), n = U(), { isOpened: a, message: i, title: c } = B(U());
|
|
14
14
|
return (h, u) => {
|
|
15
15
|
const v = C("FmButton"), y = C("FmDialog");
|
|
16
16
|
return m(), T(y, {
|
|
17
|
-
modelValue: r(
|
|
18
|
-
"onUpdate:modelValue": u[0] || (u[0] = (_) => Y(
|
|
17
|
+
modelValue: r(a),
|
|
18
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => Y(a) ? a.value = _ : null),
|
|
19
19
|
overlay: "",
|
|
20
20
|
"close-button": !1
|
|
21
21
|
}, {
|
|
@@ -63,13 +63,13 @@ F.locale(g() === "zh-CN" ? "zh-cn" : "en");
|
|
|
63
63
|
const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
64
64
|
__name: "App",
|
|
65
65
|
setup(d) {
|
|
66
|
-
const { businessId: t, token: n, country:
|
|
66
|
+
const { businessId: t, token: n, country: a } = B(re()), { sessionUser: i, currentBusiness: c, currentCountry: h, registerSidebarComponent: u } = k(), { getRestaurantAndWarehouse: v, getBusinessSetting: y } = ne(), { getFeatureFlags: _ } = ae(), { version: s } = B(ie()), { getSettings: A } = se(), l = fe(), { promptLoader: J } = le(), G = I(() => `https://portal-v1.feedme.cc/b/${t.value}/report/CLOSE_UP?showHeader=false&country=${a.value.toUpperCase()}&menuOption=business-report&token=${n.value}&v2=true&reportV5Button=true`), P = I(() => `https://report-v4.feedme.cc?businessId=${t.value}&country=${a.value}&token=${n.value}&reportV3Button=true`);
|
|
67
67
|
p(
|
|
68
68
|
// if route query pass in the detail we switch accordingly
|
|
69
69
|
[() => l.query, () => c.value, () => i.value],
|
|
70
70
|
() => {
|
|
71
71
|
var o, e, f;
|
|
72
|
-
l.query.token && l.query.businessId && l.query.country ? (t.value = l.query.businessId, n.value = l.query.token,
|
|
72
|
+
l.query.token && l.query.businessId && l.query.country ? (t.value = l.query.businessId, n.value = l.query.token, a.value = l.query.country) : ((o = c.value) != null && o.id && (t.value = c.value.id), (e = i.value) != null && e.token && (n.value = (f = i.value) == null ? void 0 : f.token), h.value && (a.value = h.value));
|
|
73
73
|
},
|
|
74
74
|
{ immediate: !0 }
|
|
75
75
|
);
|
|
@@ -86,17 +86,17 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
|
86
86
|
if (typeof o.data == "string")
|
|
87
87
|
try {
|
|
88
88
|
const e = JSON.parse(o.data);
|
|
89
|
-
(e == null ? void 0 : e.v5) === !0 ?
|
|
89
|
+
(e == null ? void 0 : e.v5) === !0 ? s.value = S.value : (e == null ? void 0 : e.v3) === !0 && (s.value = "v3");
|
|
90
90
|
} catch (e) {
|
|
91
91
|
console.error(e);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
p(
|
|
95
|
-
["v3", "v4"].includes(
|
|
94
|
+
p(s, () => {
|
|
95
|
+
["v3", "v4"].includes(s.value) ? k().hideSidebarToggle(!0) : k().hideSidebarToggle(!1);
|
|
96
96
|
}), M(() => {
|
|
97
97
|
u(de);
|
|
98
98
|
}), j(() => {
|
|
99
|
-
console.log("5.4.
|
|
99
|
+
console.log("5.4.32-beta.0", !0), window.addEventListener("message", R), window.addEventListener("message", L);
|
|
100
100
|
});
|
|
101
101
|
const V = ce(), D = ve();
|
|
102
102
|
ee(() => {
|
|
@@ -114,7 +114,7 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
|
114
114
|
cacheFlags: !1
|
|
115
115
|
});
|
|
116
116
|
const o = await E();
|
|
117
|
-
S.value = o.version,
|
|
117
|
+
S.value = o.version, s.value = S.value, await Promise.all([
|
|
118
118
|
_(),
|
|
119
119
|
E(),
|
|
120
120
|
K(),
|
|
@@ -132,13 +132,13 @@ const ye = ["src"], _e = ["src"], Le = /* @__PURE__ */ O({
|
|
|
132
132
|
}
|
|
133
133
|
), he(), (o, e) => {
|
|
134
134
|
const f = C("router-view");
|
|
135
|
-
return m(),
|
|
135
|
+
return m(), b(te, null, [
|
|
136
136
|
$(ge),
|
|
137
|
-
r(
|
|
137
|
+
r(s) === "v3" ? (m(), b("iframe", {
|
|
138
138
|
key: 0,
|
|
139
139
|
class: "bg-white h-full w-full",
|
|
140
140
|
src: G.value
|
|
141
|
-
}, null, 8, ye)) : r(
|
|
141
|
+
}, null, 8, ye)) : r(s) === "v4" ? (m(), b("iframe", {
|
|
142
142
|
key: 1,
|
|
143
143
|
class: "bg-white h-full w-full",
|
|
144
144
|
src: P.value
|
package/dist/app.js
CHANGED
|
@@ -276,6 +276,7 @@ const r = {
|
|
|
276
276
|
general: "General"
|
|
277
277
|
},
|
|
278
278
|
sql: {
|
|
279
|
+
refreshTooltip: "Repopulate the fields based on the dates selected in Preview.",
|
|
279
280
|
general: "General"
|
|
280
281
|
}
|
|
281
282
|
},
|
|
@@ -731,6 +732,7 @@ const r = {
|
|
|
731
732
|
general: "一般"
|
|
732
733
|
},
|
|
733
734
|
sql: {
|
|
735
|
+
refreshTooltip: "根据预览中选择的日期重新填充字段。",
|
|
734
736
|
general: "一般"
|
|
735
737
|
}
|
|
736
738
|
},
|
|
@@ -1183,6 +1185,7 @@ const r = {
|
|
|
1183
1185
|
general: "ทั่วไป"
|
|
1184
1186
|
},
|
|
1185
1187
|
sql: {
|
|
1188
|
+
refreshTooltip: "เติมข้อมูลใหม่จากวันที่ที่เลือกในดูตัวอย่าง",
|
|
1186
1189
|
general: "ทั่วไป"
|
|
1187
1190
|
}
|
|
1188
1191
|
},
|
|
@@ -1432,7 +1435,7 @@ const p = {
|
|
|
1432
1435
|
"en-US": a,
|
|
1433
1436
|
"zh-CN": i,
|
|
1434
1437
|
"th-TH": c
|
|
1435
|
-
}, u = e(() => import("./App-
|
|
1438
|
+
}, u = e(() => import("./App-DVsWRfsp.js"));
|
|
1436
1439
|
export {
|
|
1437
1440
|
u as FmApp,
|
|
1438
1441
|
p as i18nMessages,
|