@feedmepos/mf-report 5.32.3-beta.0 → 5.32.3
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-BNQfnOS8.js → App-Ct4zKRmu.js} +81 -81
- package/dist/{DateRangeSelect-BS73I-EY.js → DateRangeSelect-6ojNsYQf.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D0mOTzcw.js → Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js} +1 -1
- package/dist/{DigestListView-C8FI4P9l.js → DigestListView-Rv4nvsme.js} +3 -3
- package/dist/{DigestReaderView-uYimDn1a.js → DigestReaderView-Cy5rWEDn.js} +4 -4
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-g0wq9TN7.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CrRev99v.js} +6 -6
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C6Kk1Oc6.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CaFtkGgu.js} +4 -4
- package/dist/{InsightView-CYY3JR4R.js → InsightView-SOS32a9h.js} +5 -5
- package/dist/{Integration-CV75SnmP.js → Integration-CWo6GL7F.js} +3 -3
- package/dist/{Integrations-CtE730pa.js → Integrations-T1M6Fbke.js} +2 -2
- package/dist/{Layout-DjQ9AR4L.js → Layout-CNhJDEmI.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CLZJZtaS.js → LocationSelect.vue_vue_type_script_setup_true_lang-DgFWhBfv.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BkCwTEZ8.js → MenuTab.vue_vue_type_script_setup_true_lang-BltVG4Ta.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BnbjdkWg.js → NavigationTab.vue_vue_type_script_setup_true_lang-B70bamMw.js} +5 -5
- package/dist/{OverviewView-DrLXEnyQ.js → OverviewView-DM_qaGcz.js} +5 -5
- package/dist/{Report-BFeedwld.js → Report-BpCqn_xs.js} +3 -3
- package/dist/{ReportCanvasView-uSPSmxoS.js → ReportCanvasView-0680UK2i.js} +5 -5
- package/dist/{ReportEditor-DdmeWp-N.js → ReportEditor-9gIhhaWp.js} +7 -7
- package/dist/{ReportView-DP-3aapL.js → ReportView-B1a3q6Ea.js} +6 -6
- package/dist/{ReportViewRoute-Djtc4rpu.js → ReportViewRoute-DW-K8Abr.js} +2 -2
- package/dist/{Setting-Co0Fv5PF.js → Setting-BikzZySl.js} +3 -3
- package/dist/{Template-Dmfdlx_-.js → Template-DKUNK3A7.js} +3 -3
- package/dist/{TileEditor-lbcwAmG7.js → TileEditor-B21SIE0n.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Bewf5Mwf.js → TilePageStack.vue_vue_type_script_setup_true_lang-BH2WdtF-.js} +2 -2
- package/dist/{TransitionFade-BvzD7CKL.js → TransitionFade-DNtxHJq8.js} +5 -5
- package/dist/{app-Bvy-gTq7.js → app-DSxKqUxD.js} +16 -16
- package/dist/app.js +1 -1
- package/dist/{currency-CAUD27u3.js → currency-BJiFhFc7.js} +1 -1
- package/dist/{index-D9j1ly8Z.js → index-BdZ-RSDt.js} +1 -1
- package/dist/{report-B4jAut5H.js → report-DcuMyUEc.js} +1 -1
- package/dist/{useDigestFont-6hcS7_aG.js → useDigestFont-DYDD96g_.js} +1 -1
- package/dist/{useReportCanvasPanel-C2iiBQZf.js → useReportCanvasPanel-6D4KNid_.js} +3 -3
- package/dist/{useRestaurantPermission-D6WmoPR2.js → useRestaurantPermission-5C-J7LtV.js} +1 -1
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as me, resolveComponent as
|
|
2
|
-
import { detectLocale as U, useCoreStore as
|
|
3
|
-
import { d as
|
|
1
|
+
import { defineComponent as me, resolveComponent as Z, createBlock as pe, openBlock as A, unref as d, isRef as $e, withCtx as H, createElementVNode as re, createVNode as V, toDisplayString as ae, createTextVNode as xe, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as Je, onBeforeUnmount as Qe, createElementBlock as K, Fragment as Ue } from "vue";
|
|
2
|
+
import { detectLocale as U, useCoreStore as W } from "@feedmepos/mf-common";
|
|
3
|
+
import { d as X, u as je, a as ie, b as Pe, c as ce, e as Ge, f as He, g as Ke, h as ue, t as We, z as Ze, i as Ve } from "./app-DSxKqUxD.js";
|
|
4
4
|
import { storeToRefs as k } from "pinia";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as Ye, a as Me } from "./report-
|
|
7
|
-
import { u as et, _ as tt } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Xe } from "./global-loader-BuxFfehu.js";
|
|
6
|
+
import { u as Ye, a as Me } from "./report-DcuMyUEc.js";
|
|
7
|
+
import { u as et, _ as tt } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B70bamMw.js";
|
|
8
8
|
import { u as de } from "./message-dialog-UoMWOnil.js";
|
|
9
9
|
import { u as nt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
|
-
import { useRoute as ot, useRouter as
|
|
11
|
-
const
|
|
10
|
+
import { useRoute as ot, useRouter as rt } from "vue-router";
|
|
11
|
+
const at = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, st = /* @__PURE__ */ me({
|
|
12
12
|
__name: "Dialog",
|
|
13
13
|
setup(q) {
|
|
14
|
-
const { t: c } = nt(), g = de(), { isOpened: y, message:
|
|
14
|
+
const { t: c } = nt(), g = de(), { isOpened: y, message: L, title: E } = k(de());
|
|
15
15
|
return (T, _) => {
|
|
16
|
-
const z =
|
|
16
|
+
const z = Z("FmButton"), j = Z("FmDialog");
|
|
17
17
|
return A(), pe(j, {
|
|
18
18
|
modelValue: d(y),
|
|
19
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
19
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => $e(y) ? y.value = P : null),
|
|
20
20
|
overlay: "",
|
|
21
21
|
"close-button": !1,
|
|
22
22
|
"z-index": 3e3
|
|
23
23
|
}, {
|
|
24
|
-
"dialog-header":
|
|
25
|
-
xe(
|
|
24
|
+
"dialog-header": H(() => [
|
|
25
|
+
xe(ae(d(E)), 1)
|
|
26
26
|
]),
|
|
27
|
-
default:
|
|
28
|
-
|
|
27
|
+
default: H(() => [
|
|
28
|
+
re("p", at, ae(d(L)), 1)
|
|
29
29
|
]),
|
|
30
|
-
"dialog-footer":
|
|
31
|
-
_[1] || (_[1] =
|
|
32
|
-
|
|
30
|
+
"dialog-footer": H(() => [
|
|
31
|
+
_[1] || (_[1] = re("div", { class: "grow" }, null, -1)),
|
|
32
|
+
V(z, {
|
|
33
33
|
label: d(c)("report.common.cancel"),
|
|
34
34
|
variant: "tertiary",
|
|
35
35
|
onClick: d(g).dismiss
|
|
36
36
|
}, null, 8, ["label", "onClick"]),
|
|
37
|
-
|
|
37
|
+
V(z, {
|
|
38
38
|
label: d(c)("report.common.confirm"),
|
|
39
39
|
onClick: d(g).confirm
|
|
40
40
|
}, null, 8, ["label", "onClick"])
|
|
@@ -48,10 +48,10 @@ function it() {
|
|
|
48
48
|
const q = (c) => {
|
|
49
49
|
switch (le.value = c, c) {
|
|
50
50
|
case "zh-CN":
|
|
51
|
-
|
|
51
|
+
X.locale("zh-cn");
|
|
52
52
|
break;
|
|
53
53
|
default:
|
|
54
|
-
|
|
54
|
+
X.locale("en");
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -61,23 +61,23 @@ function it() {
|
|
|
61
61
|
currentLocale: le
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
X.locale(U() === "zh-CN" ? "zh-cn" : "en");
|
|
65
65
|
const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
66
66
|
__name: "App",
|
|
67
67
|
setup(q) {
|
|
68
|
-
const { businessId: c, token: g, country: y } = k(je()), { sessionUser:
|
|
68
|
+
const { businessId: c, token: g, country: y } = k(je()), { sessionUser: L, currentBusiness: E, currentCountry: T, registerSidebarComponent: _ } = W(), {
|
|
69
69
|
getRestaurantAndWarehouse: z,
|
|
70
70
|
getBusinessSetting: j,
|
|
71
|
-
beginBusinessLoad:
|
|
71
|
+
beginBusinessLoad: P,
|
|
72
72
|
completeBusinessLoad: ge,
|
|
73
73
|
resetTimezoneContext: ye
|
|
74
|
-
} = ie(), ve =
|
|
74
|
+
} = ie(), ve = Pe(), { getFeatureFlags: Se } = ve, { version: v } = k(ce()), { getSettings: De } = Ge(), { loadHasDigest: he } = He(), { promptLoader: Ie } = Xe(), n = ot(), B = rt(), b = Ye(), Y = et(), a = ie(), F = ce(), { suppressReportRouteSync: N } = k(F), { getReports: _e, getOverviewReport: Re, getReportConfig: Le, currentReportId: M } = b, { currentReportId: Ee, reports: be } = k(b), { getSchema: we } = Me(), { fetchSchedules: Ae } = Y, { init: Ce } = Ke(), G = Q("v5"), O = Q(!1), $ = Q(!0), ke = se(() => `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`), qe = se(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${y.value}&token=${g.value}&reportV3Button=true`);
|
|
75
75
|
C(
|
|
76
|
-
[() =>
|
|
76
|
+
[() => E.value, () => L.value, () => T.value],
|
|
77
77
|
() => {
|
|
78
78
|
var e, o;
|
|
79
|
-
const t = ((e =
|
|
80
|
-
|
|
79
|
+
const t = ((e = E.value) == null ? void 0 : e.id) ?? "";
|
|
80
|
+
E.value && L.value && T.value && (c.value !== t && (c.value = t), g.value = ((o = L.value) == null ? void 0 : o.token) ?? "", y.value = T.value ?? "");
|
|
81
81
|
},
|
|
82
82
|
{ immediate: !0 }
|
|
83
83
|
);
|
|
@@ -94,17 +94,17 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
94
94
|
if (typeof t.data == "string")
|
|
95
95
|
try {
|
|
96
96
|
const e = JSON.parse(t.data);
|
|
97
|
-
(e == null ? void 0 : e.v5) === !0 ? v.value =
|
|
97
|
+
(e == null ? void 0 : e.v5) === !0 ? v.value = G.value : (e == null ? void 0 : e.v3) === !0 && (v.value = "v3");
|
|
98
98
|
} catch (e) {
|
|
99
99
|
console.error(e);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
C(v, () => {
|
|
103
|
-
["v3", "v4"].includes(v.value) ?
|
|
103
|
+
["v3", "v4"].includes(v.value) ? W().hideSidebarToggle(!0) : W().hideSidebarToggle(!1);
|
|
104
104
|
}), Je(() => {
|
|
105
105
|
_(tt);
|
|
106
106
|
}), fe(() => {
|
|
107
|
-
console.log("5.32.3
|
|
107
|
+
console.log("5.32.3", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
|
|
108
108
|
}), Qe(() => {
|
|
109
109
|
window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Y.$dispose();
|
|
110
110
|
});
|
|
@@ -120,14 +120,14 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
120
120
|
const e = t.includes("%") ? [t, Te(t)] : [t];
|
|
121
121
|
for (const o of e)
|
|
122
122
|
try {
|
|
123
|
-
const
|
|
124
|
-
if (typeof
|
|
123
|
+
const r = JSON.parse(o);
|
|
124
|
+
if (typeof r == "string")
|
|
125
125
|
try {
|
|
126
|
-
return JSON.parse(
|
|
126
|
+
return JSON.parse(r);
|
|
127
127
|
} catch {
|
|
128
|
-
return
|
|
128
|
+
return r;
|
|
129
129
|
}
|
|
130
|
-
return
|
|
130
|
+
return r;
|
|
131
131
|
} catch {
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -138,37 +138,37 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
138
138
|
}
|
|
139
139
|
function l(t, e, o) {
|
|
140
140
|
if (typeof t != "string" || t.length === 0) return;
|
|
141
|
-
const
|
|
142
|
-
return e === "start" ?
|
|
141
|
+
const r = We(t, o);
|
|
142
|
+
return e === "start" ? Ze(r, o) : Ve(r, o);
|
|
143
143
|
}
|
|
144
144
|
function ze(t = n.query) {
|
|
145
|
-
const e = t, o =
|
|
145
|
+
const e = t, o = a.timezone, r = l(e.startDate, "start", o), m = l(e.endDate, "end", o), i = typeof e.timeStart == "string", S = typeof e.timeEnd == "string", D = x(e.timeStart), h = x(e.timeEnd), w = ne(D) ? D : null, p = ne(h) ? h : null, R = l(e.compareStartDate, "start", o), u = l(e.compareEndDate, "end", o), J = e.isAllLocation === "true" || e.isAllLocation === void 0;
|
|
146
146
|
let f = [];
|
|
147
147
|
if (J)
|
|
148
|
-
f =
|
|
148
|
+
f = a.selectedLocationIds ?? [];
|
|
149
149
|
else {
|
|
150
150
|
const s = x(e.locationIds);
|
|
151
151
|
f = Array.isArray(s) ? s : [];
|
|
152
152
|
}
|
|
153
153
|
let I = e.reportId || M;
|
|
154
|
-
if (be.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I),
|
|
155
|
-
const s =
|
|
156
|
-
(s.startDate !==
|
|
154
|
+
if (be.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), r || m) {
|
|
155
|
+
const s = a.dateRange;
|
|
156
|
+
(s.startDate !== r || s.endDate !== m) && a.setDateRange({ startDate: r, endDate: m });
|
|
157
157
|
}
|
|
158
158
|
if (i || S) {
|
|
159
|
-
const s =
|
|
160
|
-
(s.start !== w || s.end !== p) &&
|
|
159
|
+
const s = a.timeRange;
|
|
160
|
+
(s.start !== w || s.end !== p) && a.setTimeRange({ start: w, end: p });
|
|
161
161
|
}
|
|
162
162
|
if (R || u) {
|
|
163
|
-
const s =
|
|
164
|
-
(s.startDate !== R || s.endDate !== u) &&
|
|
163
|
+
const s = a.compareDateRange;
|
|
164
|
+
(s.startDate !== R || s.endDate !== u) && a.setCompareDateRange({
|
|
165
165
|
startDate: R,
|
|
166
166
|
endDate: u
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
if (!J) {
|
|
170
|
-
const s =
|
|
171
|
-
s.length === f.length && s.every((
|
|
170
|
+
const s = a.selectedLocationIds;
|
|
171
|
+
s.length === f.length && s.every((Ne, Oe) => Ne === f[Oe]) || a.setSelectedLocationIds(f);
|
|
172
172
|
}
|
|
173
173
|
return {
|
|
174
174
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -187,17 +187,17 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
187
187
|
() => c.value,
|
|
188
188
|
async (t, e) => {
|
|
189
189
|
if (t !== "") {
|
|
190
|
-
O.value = !1,
|
|
191
|
-
const o = "mf-report-prev-business-id",
|
|
190
|
+
O.value = !1, P(t);
|
|
191
|
+
const o = "mf-report-prev-business-id", r = (() => {
|
|
192
192
|
try {
|
|
193
193
|
return sessionStorage.getItem(o);
|
|
194
194
|
} catch {
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
197
|
-
})(), m = !!
|
|
197
|
+
})(), m = !!r && r !== t;
|
|
198
198
|
let i = { ...n.query }, S = !1;
|
|
199
199
|
if (!$.value || e !== void 0 || m) {
|
|
200
|
-
ye(),
|
|
200
|
+
ye(), a.setSelectedLocationIds([]);
|
|
201
201
|
const {
|
|
202
202
|
locationIds: D,
|
|
203
203
|
startDate: h,
|
|
@@ -211,27 +211,27 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
211
211
|
i = {
|
|
212
212
|
...f,
|
|
213
213
|
isAllLocation: "true"
|
|
214
|
-
}, S = !0, await
|
|
214
|
+
}, S = !0, await B.replace({
|
|
215
215
|
name: n.name,
|
|
216
216
|
params: n.params,
|
|
217
217
|
query: i
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
N.value !== void 0 && (N.value = !0), await Ie(async () => {
|
|
221
221
|
await Ce({
|
|
222
|
-
apiKey: "
|
|
222
|
+
apiKey: "6GhcttsJ9Rj9cTevcdrpin",
|
|
223
223
|
url: "https://flag.feedme.farm/api/v1/",
|
|
224
224
|
enableAnalytics: !1,
|
|
225
225
|
cacheFlags: !1
|
|
226
226
|
});
|
|
227
|
-
const D = await
|
|
228
|
-
|
|
227
|
+
const D = await Le();
|
|
228
|
+
G.value = D.version, v.value = G.value, await Se(), n.name === "template" && !F.canAccessTemplate() && await B.replace({
|
|
229
229
|
name: "reports",
|
|
230
230
|
query: n.query
|
|
231
231
|
});
|
|
232
|
-
const h =
|
|
232
|
+
const h = F.canAccess(
|
|
233
233
|
ue.report_accessOverview
|
|
234
|
-
), w =
|
|
234
|
+
), w = F.canAccess(
|
|
235
235
|
ue.report_accessIntegration
|
|
236
236
|
), p = [
|
|
237
237
|
we(),
|
|
@@ -254,12 +254,12 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
254
254
|
startDate: J,
|
|
255
255
|
endDate: f,
|
|
256
256
|
timeStart: I,
|
|
257
|
-
timeEnd:
|
|
257
|
+
timeEnd: Be,
|
|
258
258
|
compareStartDate: s,
|
|
259
|
-
compareEndDate:
|
|
259
|
+
compareEndDate: Fe,
|
|
260
260
|
...oe
|
|
261
261
|
} = n.query;
|
|
262
|
-
(n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await
|
|
262
|
+
(n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await B.replace({
|
|
263
263
|
name: n.name,
|
|
264
264
|
params: n.params,
|
|
265
265
|
query: {
|
|
@@ -281,20 +281,20 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
281
281
|
}
|
|
282
282
|
), C(
|
|
283
283
|
() => (O.value, {
|
|
284
|
-
reportId:
|
|
285
|
-
selectedLocationIds:
|
|
286
|
-
dateRange:
|
|
287
|
-
timeRange:
|
|
288
|
-
compareDateRange:
|
|
289
|
-
timezone:
|
|
284
|
+
reportId: Ee.value,
|
|
285
|
+
selectedLocationIds: a.selectedLocationIds,
|
|
286
|
+
dateRange: a.dateRange,
|
|
287
|
+
timeRange: a.timeRange,
|
|
288
|
+
compareDateRange: a.compareDateRange,
|
|
289
|
+
timezone: a.timezone
|
|
290
290
|
}),
|
|
291
291
|
(t) => {
|
|
292
292
|
if (!O.value || !t.reportId || $.value) return;
|
|
293
|
-
if (
|
|
294
|
-
|
|
293
|
+
if (N.value) {
|
|
294
|
+
N.value = !1;
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
297
|
-
const e = t.selectedLocationIds, o = t.dateRange,
|
|
297
|
+
const e = t.selectedLocationIds, o = t.dateRange, r = t.timeRange, m = t.compareDateRange, i = {
|
|
298
298
|
...n.query,
|
|
299
299
|
reportId: t.reportId,
|
|
300
300
|
startDate: l(o.startDate, "start", t.timezone),
|
|
@@ -305,12 +305,12 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
305
305
|
t.timezone
|
|
306
306
|
),
|
|
307
307
|
compareEndDate: l(m.endDate, "end", t.timezone),
|
|
308
|
-
timeStart:
|
|
309
|
-
timeEnd:
|
|
310
|
-
}, S = e.length ===
|
|
308
|
+
timeStart: r.start ? JSON.stringify(r.start) : void 0,
|
|
309
|
+
timeEnd: r.end ? JSON.stringify(r.end) : void 0
|
|
310
|
+
}, S = e.length === a.locations.length;
|
|
311
311
|
i.isAllLocation = String(S), S ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
|
|
312
312
|
const D = JSON.stringify(n.query), h = JSON.stringify(i);
|
|
313
|
-
D !== h &&
|
|
313
|
+
D !== h && B.replace({
|
|
314
314
|
name: n.name,
|
|
315
315
|
params: n.params,
|
|
316
316
|
query: i
|
|
@@ -318,14 +318,14 @@ const ct = ["src"], ut = ["src"], ht = /* @__PURE__ */ me({
|
|
|
318
318
|
},
|
|
319
319
|
{ deep: !0 }
|
|
320
320
|
), it(), (t, e) => {
|
|
321
|
-
const o =
|
|
322
|
-
return A(),
|
|
323
|
-
|
|
324
|
-
d(v) === "v3" ? (A(),
|
|
321
|
+
const o = Z("router-view");
|
|
322
|
+
return A(), K(Ue, null, [
|
|
323
|
+
V(st),
|
|
324
|
+
d(v) === "v3" ? (A(), K("iframe", {
|
|
325
325
|
key: 0,
|
|
326
326
|
class: "bg-white h-full w-full",
|
|
327
327
|
src: ke.value
|
|
328
|
-
}, null, 8, ct)) : d(v) === "v4" ? (A(),
|
|
328
|
+
}, null, 8, ct)) : d(v) === "v4" ? (A(), K("iframe", {
|
|
329
329
|
key: 1,
|
|
330
330
|
class: "bg-white h-full w-full",
|
|
331
331
|
src: qe.value
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ne, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as fe, withCtx as U, createCommentVNode as F, createElementVNode as I, toDisplayString as De, renderSlot as ye, mergeModels as K, useModel as L, ref as P, computed as z, watch as M, nextTick as Z, onMounted as pe, onBeforeUnmount as ve, createElementBlock as ge, unref as $, createVNode as J } from "vue";
|
|
2
|
-
import { d as i, a as he, i as Q, z as X, C as E, p as Ce, t as be } from "./app-
|
|
2
|
+
import { d as i, a as he, i as Q, z as X, C as E, p as Ce, t as be } from "./app-DSxKqUxD.js";
|
|
3
3
|
import { detectLocale as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as Re, _ as Me } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
5
5
|
import { storeToRefs as Ye } from "pinia";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, 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-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B70bamMw.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 } from "./global-loader-BuxFfehu.js";
|
|
@@ -2,13 +2,13 @@ import { defineComponent as $t, ref as z, watch as Ft, onBeforeUnmount as Jt, co
|
|
|
2
2
|
import { storeToRefs as oe } from "pinia";
|
|
3
3
|
import { useI18n as St } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as Yt } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as re } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as re } from "./Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js";
|
|
6
6
|
import { _ as jt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
7
7
|
import { useRoute as le } from "vue-router";
|
|
8
|
-
import { c as ie, d as Kt, u as ce, a as ue, n as de, _ as he, D as pe } from "./useDigestFont-
|
|
8
|
+
import { c as ie, d as Kt, u as ce, a as ue, n as de, _ as he, D as pe } from "./useDigestFont-DYDD96g_.js";
|
|
9
9
|
import { l as fe } from "./report-canvas-libs-CNx4fuqd.js";
|
|
10
10
|
import { _ as bt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
11
|
-
import { j as me, f as ge, A as ve, k as Ct, r as ye, l as Me } from "./app-
|
|
11
|
+
import { j as me, f as ge, A as ve, k as Ct, r as ye, l as Me } from "./app-DSxKqUxD.js";
|
|
12
12
|
const W = () => ({ rects: [], circles: [], paths: [] }), Q = (a) => a.x1 - a.x0, tt = (a) => a.y1 - a.y0, S = (a) => a.toFixed(1), xt = [0.14, 0.32, 0.54, 0.78, 1], _t = (a) => xt[Math.min(xt.length - 1, Math.floor(Math.max(0, Math.min(1, a)) * xt.length))];
|
|
13
13
|
function Zt(a) {
|
|
14
14
|
const t = Math.min(0, ...a), n = Math.max(0, ...a);
|
|
@@ -2,11 +2,11 @@ import { defineComponent as _e, ref as v, watch as W, onMounted as be, nextTick
|
|
|
2
2
|
import { useRoute as mt, useRouter as ft } from "vue-router";
|
|
3
3
|
import { useI18n as xe } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as vt } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js";
|
|
6
6
|
import { _ as ke } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
7
|
-
import { u as ht, a as kt, R as wt, b as yt, c as _t, d as bt, e as xt } from "./useReportCanvasPanel-
|
|
8
|
-
import { b as Ct, d as St, a as Vt, _ as Rt, D as Pt } from "./useDigestFont-
|
|
9
|
-
import { f as Tt, m as Et, n as It, A as we } from "./app-
|
|
7
|
+
import { u as ht, a as kt, R as wt, b as yt, c as _t, d as bt, e as xt } from "./useReportCanvasPanel-6D4KNid_.js";
|
|
8
|
+
import { b as Ct, d as St, a as Vt, _ as Rt, D as Pt } from "./useDigestFont-DYDD96g_.js";
|
|
9
|
+
import { f as Tt, m as Et, n as It, A as we } from "./app-DSxKqUxD.js";
|
|
10
10
|
import { _ as At } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
11
11
|
const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "title"], Bt = {
|
|
12
12
|
key: 0,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as Gt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as j, Transition as Ya, withCtx as Re, createElementBlock as pe, createCommentVNode as we, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, normalizeClass as Fe, nextTick as jo, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as Go, markRaw as So, toRaw as Ea, createTextVNode as ja, onUnmounted as Yn, provide as Ga, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
|
|
2
|
-
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as Ln, ae as xn, a as _n, af as or } from "./app-
|
|
4
|
-
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-
|
|
5
|
-
import { c as Dn, w as Et } from "./currency-
|
|
6
|
-
import { d as Xn } from "./DateRangeSelect-
|
|
2
|
+
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CaFtkGgu.js";
|
|
3
|
+
import { u as Ln, ae as xn, a as _n, af as or } from "./app-DSxKqUxD.js";
|
|
4
|
+
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-DcuMyUEc.js";
|
|
5
|
+
import { c as Dn, w as Et } from "./currency-BJiFhFc7.js";
|
|
6
|
+
import { d as Xn } from "./DateRangeSelect-6ojNsYQf.js";
|
|
7
7
|
import { storeToRefs as At } from "pinia";
|
|
8
8
|
import { detectLocale as oo } from "@feedmepos/mf-common";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-BdZ-RSDt.js";
|
|
10
10
|
import { C as En, t as ir } from "./chart-BywXiz4O.js";
|
|
11
11
|
import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as ve, computed as ge, defineComponent as yt, mergeModels as lt, useModel as ft, watch as Ie, resolveComponent as ee, createElementBlock as fe, openBlock as J, createVNode as P, withCtx as ue, createElementVNode as Q, createCommentVNode as bt, Fragment as Le, renderList as ht, createBlock as we, unref as D, createTextVNode as nt, withDirectives as xl, toDisplayString as he, vShow as Al, renderSlot as qt, normalizeStyle as Gl, normalizeClass as Et, withModifiers as dt } from "vue";
|
|
2
|
-
import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-
|
|
3
|
-
import { e as gt } from "./index-
|
|
4
|
-
import { d as E, u as ke, c as je, a as Me, F as Oe, ag as St, v as Ae, h as Ml, j as Pl, z as Bl, i as zl, t as Lt } from "./app-
|
|
5
|
-
import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Pt, A as Ul, S as Bt } from "./report-
|
|
2
|
+
import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-6ojNsYQf.js";
|
|
3
|
+
import { e as gt } from "./index-BdZ-RSDt.js";
|
|
4
|
+
import { d as E, u as ke, c as je, a as Me, F as Oe, ag as St, v as Ae, h as Ml, j as Pl, z as Bl, i as zl, t as Lt } from "./app-DSxKqUxD.js";
|
|
5
|
+
import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Pt, A as Ul, S as Bt } from "./report-DcuMyUEc.js";
|
|
6
6
|
import { defineStore as Ft, storeToRefs as re } from "pinia";
|
|
7
7
|
import { detectLocale as xe } from "@feedmepos/mf-common";
|
|
8
8
|
import { u as Jt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, createElementBlock as r, openBlock as o, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, createCommentVNode as D, Fragment as z, renderList as N, createBlock as R, withDirectives as T, resolveDynamicComponent as U, unref as m, withCtx as B, createVNode as p, normalizeClass as W, resolveComponent as M, useModel as ce, createTextVNode as ue, isRef as j, nextTick as fe } from "vue";
|
|
2
|
-
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { D as ge } from "./DateRangeSelect-
|
|
4
|
-
import { d as E, u as Q, F as ee, q as te, a as pe, j as ve, h as H, o as he, p as ye, s as we } from "./app-
|
|
2
|
+
import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-DinIx-4F.js";
|
|
3
|
+
import { D as ge } from "./DateRangeSelect-6ojNsYQf.js";
|
|
4
|
+
import { d as E, u as Q, F as ee, q as te, a as pe, j as ve, h as H, o as he, p as ye, s as we } from "./app-DSxKqUxD.js";
|
|
5
5
|
import { storeToRefs as ae } from "pinia";
|
|
6
6
|
import { C as le, r as xe } from "./chart-BywXiz4O.js";
|
|
7
7
|
import { components as Y, useSnackbar as be } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as se } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
9
|
import { c as X } from "./index-CtZE4sab.js";
|
|
10
10
|
import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
11
|
-
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-DgFWhBfv.js";
|
|
12
12
|
import { useCoreStore as _e } from "@feedmepos/mf-common";
|
|
13
|
-
import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B70bamMw.js";
|
|
14
14
|
function Ae({ start: e, end: t }) {
|
|
15
15
|
return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
|
|
16
16
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ve, mergeModels as ke, useModel as be, computed as X, resolveComponent as T, createElementBlock as R, openBlock as x, createElementVNode as t, createCommentVNode as q, normalizeClass as Ye, Fragment as $e, renderList as qe, createBlock as ae, normalizeStyle as st, createVNode as l, withCtx as Ce, renderSlot as It, toDisplayString as C, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as He, resolveDynamicComponent as Ge, mergeProps as dt, onMounted as ct, withKeys as nt, withModifiers as mt, nextTick as kt } from "vue";
|
|
2
2
|
import { useRouter as Ie, useRoute as Tt } from "vue-router";
|
|
3
|
-
import { J as Se, K as it, d as Fe, L as Nt, e as Ee, a as Te, M as _e, N as Vt, O as Ft, E as ce, H as Je, P as Qe, Q as ze, R as Ze, S as pt, T as Kt, U as Mt, V as Ut, W as Rt, X as Pt, Y as ut, b as ft, Z as Ot, _ as Lt, B as jt, I as Be, $ as Et, a0 as Bt, a1 as Yt } from "./app-
|
|
3
|
+
import { J as Se, K as it, d as Fe, L as Nt, e as Ee, a as Te, M as _e, N as Vt, O as Ft, E as ce, H as Je, P as Qe, Q as ze, R as Ze, S as pt, T as Kt, U as Mt, V as Ut, W as Rt, X as Pt, Y as ut, b as ft, Z as Ot, _ as Lt, B as jt, I as Be, $ as Et, a0 as Bt, a1 as Yt } from "./app-DSxKqUxD.js";
|
|
4
4
|
import { u as et } from "./global-loader-BuxFfehu.js";
|
|
5
5
|
import { u as tt } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { useSnackbar as Ne } from "@feedmepos/ui-library";
|
|
7
7
|
import { s as St } from "./index-CtZE4sab.js";
|
|
8
8
|
import { u as we, _ as qt } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
|
-
import { u as We, h as Ae } from "./useRestaurantPermission-
|
|
9
|
+
import { u as We, h as Ae } from "./useRestaurantPermission-5C-J7LtV.js";
|
|
10
10
|
import { storeToRefs as ot } from "pinia";
|
|
11
|
-
import { D as at } from "./DateRangeSelect-
|
|
11
|
+
import { D as at } from "./DateRangeSelect-6ojNsYQf.js";
|
|
12
12
|
const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Ht = { class: "w-[100%] overflow-hidden" }, Gt = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Qt = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Wt = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "w-[24px] flex items-center"
|