@feedmepos/mf-report 5.27.19 → 5.27.20
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-D1vxCQ69.js +336 -0
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DU00gMtu.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-ChiMxo1Z.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DqZav9EE.js → Default.vue_vue_type_script_setup_true_lang-BIBiqSLt.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D5-p6Dte.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CYihN5ce.js} +3 -3
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BZlXHYzg.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CUJknFHx.js} +2 -2
- package/dist/{InsightView-ctgBO3zj.js → InsightView-DbylU4WH.js} +4 -4
- package/dist/{Integration-Dixvhrgn.js → Integration-lfOdI2Gs.js} +3 -3
- package/dist/{Integrations-CwJKOpsF.js → Integrations-CXuBKT97.js} +2 -2
- package/dist/{Layout-CKWucJsN.js → Layout-xoM6JjfX.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D8zSinU4.js → MenuTab.vue_vue_type_script_setup_true_lang-aBY9-usd.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Bwrmuhdd.js → NavigationTab.vue_vue_type_script_setup_true_lang-4l8GwTMp.js} +3 -3
- package/dist/{OverviewView-TQdYqfHB.js → OverviewView-BArjwBDv.js} +4 -4
- package/dist/{Report-DjxWgvmf.js → Report-DU8Vl03T.js} +3 -3
- package/dist/{ReportEditor-5S-tSoVR.js → ReportEditor-ChkYUJF2.js} +6 -6
- package/dist/{ReportView-CvcsnWrI.js → ReportView-DdXPWiJG.js} +6 -6
- package/dist/{Setting-B_lmRkVq.js → Setting-CGZ6DnBQ.js} +3 -3
- package/dist/{Template-CWsLoonj.js → Template-21itc4_N.js} +3 -3
- package/dist/{TileEditor-BQ20Db33.js → TileEditor-Bn_A92xu.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-1ueSfiGk.js → TileGrid.vue_vue_type_script_setup_true_lang-4xkOzV81.js} +1 -1
- package/dist/{TransitionFade-0frvJ_jm.js → TransitionFade-CtubiHqB.js} +4 -4
- package/dist/{app-BHYwfe1u.js → app-BNdmTV7c.js} +1708 -1689
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-C3af6MeH.js → useRestaurantPermission-D0QLWz5I.js} +1 -1
- package/package.json +1 -1
- package/dist/App-EYxAVNPq.js +0 -321
|
@@ -0,0 +1,336 @@
|
|
|
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";
|
|
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, t as X } from "./app-BNdmTV7c.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-CUJknFHx.js";
|
|
7
|
+
import { u as Ye, _ as Ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-4l8GwTMp.js";
|
|
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({
|
|
11
|
+
__name: "Dialog",
|
|
12
|
+
setup(z) {
|
|
13
|
+
const { t: c } = We(), g = ue(), { isOpened: y, message: R, title: L } = T(ue());
|
|
14
|
+
return (E, _) => {
|
|
15
|
+
const B = Y("FmButton"), P = Y("FmDialog");
|
|
16
|
+
return k(), pe(P, {
|
|
17
|
+
modelValue: u(y),
|
|
18
|
+
"onUpdate:modelValue": _[0] || (_[0] = (G) => Ne(y) ? y.value = G : null),
|
|
19
|
+
overlay: "",
|
|
20
|
+
"close-button": !1,
|
|
21
|
+
"z-index": 3e3
|
|
22
|
+
}, {
|
|
23
|
+
"dialog-header": W(() => [
|
|
24
|
+
$e(se(u(L)), 1)
|
|
25
|
+
]),
|
|
26
|
+
default: W(() => [
|
|
27
|
+
oe("p", tt, se(u(R)), 1)
|
|
28
|
+
]),
|
|
29
|
+
"dialog-footer": W(() => [
|
|
30
|
+
_[1] || (_[1] = oe("div", { class: "grow" }, null, -1)),
|
|
31
|
+
Z(B, {
|
|
32
|
+
label: u(c)("report.common.cancel"),
|
|
33
|
+
variant: "tertiary",
|
|
34
|
+
onClick: u(g).dismiss
|
|
35
|
+
}, null, 8, ["label", "onClick"]),
|
|
36
|
+
Z(B, {
|
|
37
|
+
label: u(c)("report.common.confirm"),
|
|
38
|
+
onClick: u(g).confirm
|
|
39
|
+
}, null, 8, ["label", "onClick"])
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["modelValue"]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}), le = U(j());
|
|
46
|
+
function rt() {
|
|
47
|
+
const z = (c) => {
|
|
48
|
+
switch (le.value = c, c) {
|
|
49
|
+
case "zh-CN":
|
|
50
|
+
O.locale("zh-cn");
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
O.locale("en");
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return fe(() => {
|
|
58
|
+
z(j());
|
|
59
|
+
}), q(() => j(), z, { deep: !0, immediate: !0 }), {
|
|
60
|
+
currentLocale: le
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
O.locale(j() === "zh-CN" ? "zh-cn" : "en");
|
|
64
|
+
const at = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
|
|
65
|
+
__name: "App",
|
|
66
|
+
setup(z) {
|
|
67
|
+
const { businessId: c, token: g, country: y } = T(Ue()), { sessionUser: R, currentBusiness: L, currentCountry: E, registerSidebarComponent: _ } = V(), {
|
|
68
|
+
getRestaurantAndWarehouse: B,
|
|
69
|
+
getBusinessSetting: P,
|
|
70
|
+
beginBusinessLoad: G,
|
|
71
|
+
completeBusinessLoad: ge,
|
|
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],
|
|
76
|
+
() => {
|
|
77
|
+
var e, r;
|
|
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 ?? "");
|
|
80
|
+
},
|
|
81
|
+
{ immediate: !0 }
|
|
82
|
+
);
|
|
83
|
+
function te(t) {
|
|
84
|
+
if (typeof t.data == "string")
|
|
85
|
+
try {
|
|
86
|
+
const e = JSON.parse(t.data);
|
|
87
|
+
(e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (g.value = e.token);
|
|
88
|
+
} catch (e) {
|
|
89
|
+
console.error(e);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function ne(t) {
|
|
93
|
+
if (typeof t.data == "string")
|
|
94
|
+
try {
|
|
95
|
+
const e = JSON.parse(t.data);
|
|
96
|
+
(e == null ? void 0 : e.v5) === !0 ? v.value = K.value : (e == null ? void 0 : e.v3) === !0 && (v.value = "v3");
|
|
97
|
+
} catch (e) {
|
|
98
|
+
console.error(e);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
q(v, () => {
|
|
102
|
+
["v3", "v4"].includes(v.value) ? V().hideSidebarToggle(!0) : V().hideSidebarToggle(!1);
|
|
103
|
+
}), xe(() => {
|
|
104
|
+
_(Ze);
|
|
105
|
+
}), fe(() => {
|
|
106
|
+
console.log("5.27.20", !0), window.addEventListener("message", te), window.addEventListener("message", ne);
|
|
107
|
+
}), Je(() => {
|
|
108
|
+
window.removeEventListener("message", te), window.removeEventListener("message", ne), b.$dispose(), M.$dispose();
|
|
109
|
+
});
|
|
110
|
+
function qe(t) {
|
|
111
|
+
try {
|
|
112
|
+
return decodeURIComponent(t);
|
|
113
|
+
} catch {
|
|
114
|
+
return t;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function J(t) {
|
|
118
|
+
if (typeof t != "string" || t.length === 0) return;
|
|
119
|
+
const e = t.includes("%") ? [t, qe(t)] : [t];
|
|
120
|
+
for (const r of e)
|
|
121
|
+
try {
|
|
122
|
+
const a = JSON.parse(r);
|
|
123
|
+
if (typeof a == "string")
|
|
124
|
+
try {
|
|
125
|
+
return JSON.parse(a);
|
|
126
|
+
} catch {
|
|
127
|
+
return a;
|
|
128
|
+
}
|
|
129
|
+
return a;
|
|
130
|
+
} catch {
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function re(t) {
|
|
134
|
+
if (!t || typeof t != "object") return !1;
|
|
135
|
+
const e = t;
|
|
136
|
+
return typeof e.hour == "number" && typeof e.minute == "number";
|
|
137
|
+
}
|
|
138
|
+
function l(t, e, r) {
|
|
139
|
+
if (typeof t != "string" || t.length === 0) return;
|
|
140
|
+
const a = t.includes("T") ? O(t).tz(r) : O.tz(t, r);
|
|
141
|
+
return (e === "start" ? a.startOf("day") : a.endOf("day")).utc().toISOString();
|
|
142
|
+
}
|
|
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;
|
|
145
|
+
let f = [];
|
|
146
|
+
if (Q)
|
|
147
|
+
f = o.selectedLocationIds ?? [];
|
|
148
|
+
else {
|
|
149
|
+
const s = J(e.locationIds);
|
|
150
|
+
f = Array.isArray(s) ? s : [];
|
|
151
|
+
}
|
|
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) {
|
|
154
|
+
const s = o.dateRange;
|
|
155
|
+
(s.startDate !== a || s.endDate !== d) && o.setDateRange({ startDate: a, endDate: d });
|
|
156
|
+
}
|
|
157
|
+
if (i || S) {
|
|
158
|
+
const s = o.timeRange;
|
|
159
|
+
(s.start !== A || s.end !== C) && o.setTimeRange({ start: A, end: C });
|
|
160
|
+
}
|
|
161
|
+
if (m || p) {
|
|
162
|
+
const s = o.compareDateRange;
|
|
163
|
+
(s.startDate !== m || s.endDate !== p) && o.setCompareDateRange({
|
|
164
|
+
startDate: m,
|
|
165
|
+
endDate: p
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
if (!Q) {
|
|
169
|
+
const s = o.selectedLocationIds;
|
|
170
|
+
s.length === f.length && s.every((Be, Fe) => Be === f[Fe]) || o.setSelectedLocationIds(f);
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
// TODO: this returned value can used for getBusinessSetting
|
|
174
|
+
reportId: I,
|
|
175
|
+
startDate: e.startDate,
|
|
176
|
+
endDate: e.endDate,
|
|
177
|
+
timeStart: e.timeStart,
|
|
178
|
+
timeEnd: e.timeEnd,
|
|
179
|
+
compareStartDate: e.compareStartDate,
|
|
180
|
+
compareEndDate: e.compareEndDate,
|
|
181
|
+
locationIds: typeof e.locationIds == "string" ? e.locationIds : void 0,
|
|
182
|
+
isAllLocation: e.isAllLocation
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
return q(
|
|
186
|
+
() => c.value,
|
|
187
|
+
async (t, e) => {
|
|
188
|
+
if (t !== "") {
|
|
189
|
+
$.value = !1, G(t);
|
|
190
|
+
const r = "mf-report-prev-business-id", a = (() => {
|
|
191
|
+
try {
|
|
192
|
+
return sessionStorage.getItem(r);
|
|
193
|
+
} catch {
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
})(), d = !!a && a !== t;
|
|
197
|
+
let i = { ...n.query }, S = !1;
|
|
198
|
+
if (!x.value || e !== void 0 || d) {
|
|
199
|
+
ye(), o.setSelectedLocationIds([]);
|
|
200
|
+
const {
|
|
201
|
+
locationIds: D,
|
|
202
|
+
startDate: h,
|
|
203
|
+
endDate: A,
|
|
204
|
+
timeStart: C,
|
|
205
|
+
timeEnd: m,
|
|
206
|
+
compareStartDate: p,
|
|
207
|
+
compareEndDate: Q,
|
|
208
|
+
...f
|
|
209
|
+
} = n.query;
|
|
210
|
+
i = {
|
|
211
|
+
...f,
|
|
212
|
+
isAllLocation: "true"
|
|
213
|
+
}, S = !0, await F.replace({
|
|
214
|
+
name: n.name,
|
|
215
|
+
params: n.params,
|
|
216
|
+
query: i
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
N.value !== void 0 && (N.value = !0), await he(async () => {
|
|
220
|
+
await Ae({
|
|
221
|
+
apiKey: "6GhcttsJ9Rj9cTevcdrpin",
|
|
222
|
+
url: "https://flag.feedme.farm/api/v1/",
|
|
223
|
+
enableAnalytics: !1,
|
|
224
|
+
cacheFlags: !1
|
|
225
|
+
});
|
|
226
|
+
const D = await Re();
|
|
227
|
+
K.value = D.version, v.value = K.value, await Se(), n.name === "template" && !w.canAccessTemplate() && await F.replace({
|
|
228
|
+
name: "reports",
|
|
229
|
+
query: n.query
|
|
230
|
+
});
|
|
231
|
+
const h = w.canAccess(
|
|
232
|
+
X.report_accessOverview
|
|
233
|
+
), A = w.canAccess(
|
|
234
|
+
X.report_accessSetting
|
|
235
|
+
), C = w.canAccess(
|
|
236
|
+
X.report_accessIntegration
|
|
237
|
+
), m = [
|
|
238
|
+
be(),
|
|
239
|
+
we(),
|
|
240
|
+
Ie(),
|
|
241
|
+
B(
|
|
242
|
+
(() => {
|
|
243
|
+
const p = J(i.locationIds);
|
|
244
|
+
return Array.isArray(p) ? p : void 0;
|
|
245
|
+
})()
|
|
246
|
+
)
|
|
247
|
+
];
|
|
248
|
+
if (h && m.push(_e()), C && m.push(De()), await Promise.all(m), A && await P(), Te(i), S) {
|
|
249
|
+
const {
|
|
250
|
+
locationIds: p,
|
|
251
|
+
startDate: Q,
|
|
252
|
+
endDate: f,
|
|
253
|
+
timeStart: I,
|
|
254
|
+
timeEnd: Oe,
|
|
255
|
+
compareStartDate: s,
|
|
256
|
+
compareEndDate: ze,
|
|
257
|
+
...ae
|
|
258
|
+
} = n.query;
|
|
259
|
+
(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 F.replace({
|
|
260
|
+
name: n.name,
|
|
261
|
+
params: n.params,
|
|
262
|
+
query: {
|
|
263
|
+
...ae,
|
|
264
|
+
isAllLocation: "true"
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
ge(t);
|
|
269
|
+
try {
|
|
270
|
+
sessionStorage.setItem(r, t);
|
|
271
|
+
} catch {
|
|
272
|
+
}
|
|
273
|
+
}), $.value = !0, x.value && (x.value = !1);
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
immediate: !0
|
|
278
|
+
}
|
|
279
|
+
), q(
|
|
280
|
+
() => ($.value, {
|
|
281
|
+
reportId: Le.value,
|
|
282
|
+
selectedLocationIds: o.selectedLocationIds,
|
|
283
|
+
dateRange: o.dateRange,
|
|
284
|
+
timeRange: o.timeRange,
|
|
285
|
+
compareDateRange: o.compareDateRange,
|
|
286
|
+
timezone: o.timezone
|
|
287
|
+
}),
|
|
288
|
+
(t) => {
|
|
289
|
+
if (!$.value || !t.reportId || x.value) return;
|
|
290
|
+
if (N.value) {
|
|
291
|
+
N.value = !1;
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const e = t.selectedLocationIds, r = t.dateRange, a = t.timeRange, d = t.compareDateRange, i = {
|
|
295
|
+
...n.query,
|
|
296
|
+
reportId: t.reportId,
|
|
297
|
+
startDate: l(r.startDate, "start", t.timezone),
|
|
298
|
+
endDate: l(r.endDate, "end", t.timezone),
|
|
299
|
+
compareStartDate: l(
|
|
300
|
+
d.startDate,
|
|
301
|
+
"start",
|
|
302
|
+
t.timezone
|
|
303
|
+
),
|
|
304
|
+
compareEndDate: l(d.endDate, "end", t.timezone),
|
|
305
|
+
timeStart: a.start ? JSON.stringify(a.start) : void 0,
|
|
306
|
+
timeEnd: a.end ? JSON.stringify(a.end) : void 0
|
|
307
|
+
}, S = e.length === o.locations.length;
|
|
308
|
+
i.isAllLocation = String(S), S ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
|
|
309
|
+
const D = JSON.stringify(n.query), h = JSON.stringify(i);
|
|
310
|
+
D !== h && F.replace({
|
|
311
|
+
name: n.name,
|
|
312
|
+
params: n.params,
|
|
313
|
+
query: i
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
{ deep: !0 }
|
|
317
|
+
), rt(), (t, e) => {
|
|
318
|
+
const r = Y("router-view");
|
|
319
|
+
return k(), H(Qe, null, [
|
|
320
|
+
Z(nt),
|
|
321
|
+
u(v) === "v3" ? (k(), H("iframe", {
|
|
322
|
+
key: 0,
|
|
323
|
+
class: "bg-white h-full w-full",
|
|
324
|
+
src: Ce.value
|
|
325
|
+
}, null, 8, at)) : u(v) === "v4" ? (k(), H("iframe", {
|
|
326
|
+
key: 1,
|
|
327
|
+
class: "bg-white h-full w-full",
|
|
328
|
+
src: ke.value
|
|
329
|
+
}, null, 8, ot)) : (k(), pe(r, { key: 2 }))
|
|
330
|
+
], 64);
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
export {
|
|
335
|
+
gt as default
|
|
336
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, resolveComponent as x, createBlock as v, openBlock as h, normalizeClass as q, withCtx as E, createCommentVNode as R, createElementVNode as M, toDisplayString as G, renderSlot as H, mergeModels as I, useModel as P, ref as L, watch as F, computed as K, createElementBlock as J, unref as p, createVNode as A } from "vue";
|
|
2
|
-
import { d as f, a as Q, C as w, U as Z } from "./app-
|
|
2
|
+
import { d as f, a as Q, C as w, U as Z } from "./app-BNdmTV7c.js";
|
|
3
3
|
import { detectLocale as k } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as ee } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
5
5
|
import { storeToRefs as ae } 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-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-4l8GwTMp.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as g, defineComponent as Ae, ref as I, watch as we, onMounted as Nt, onBeforeUnmount as uo, resolveComponent as ce, createBlock as de, openBlock as K, Transition as Eo, withCtx as _e, createElementBlock as le, createCommentVNode as he, createElementVNode as q, unref as i, normalizeStyle as Pe, withModifiers as en, toDisplayString as Te, createVNode as fe, Fragment as Fe, renderList as ct, normalizeClass as Se, nextTick as co, mergeModels as He, useModel as We, renderSlot as et, h as jt, createSlots as Go, resolveDynamicComponent as fo, toRaw as qo, markRaw as jo, createTextVNode as Jo, onUnmounted as mo, withDirectives as Zo, vShow as Qo } from "vue";
|
|
2
|
-
import { W as X, w as ea, S as Pt, x as Mt, y as ta, z as pn, A as po, j as na, B as oa, E as aa, F as ra, R as yt, G as la } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { i as tn, a as an, u as ho } from "./app-
|
|
4
|
-
import { d as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as X, w as ea, S as Pt, x as Mt, y as ta, z as pn, A as po, j as na, B as oa, E as aa, F as ra, R as yt, G as la } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CUJknFHx.js";
|
|
3
|
+
import { i as tn, a as an, u as ho } from "./app-BNdmTV7c.js";
|
|
4
|
+
import { d as yn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-ChiMxo1Z.js";
|
|
5
5
|
import { storeToRefs as At } from "pinia";
|
|
6
6
|
import { detectLocale as In } from "@feedmepos/mf-common";
|
|
7
7
|
import { C as bn } from "./chart-DDDh8zNk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as R0, computed as b1, watch as V1, defineComponent as Ht, mergeModels as rt, useModel as Et, resolveComponent as a1, createElementBlock as g1, openBlock as r1, createVNode as U0, withCtx as _1, createElementVNode as K0, createCommentVNode as Rt, Fragment as _e, renderList as Ct, createBlock as v1, createTextVNode as nt, withDirectives as da, toDisplayString as h1, unref as E0, vShow as za, renderSlot as Hr, normalizeStyle as Oa, normalizeClass as gr, withModifiers as $t } from "vue";
|
|
2
|
-
import { c as hr, h as Xr, f as kr, _ as Aa, i as Da } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { o as fa, j as $a, u as G0, F as Q0, r as e1, p as ya, a as le, b as ma, m as qa, g as ga, d as B0, c as Fe, h as Xt } from "./app-
|
|
2
|
+
import { c as hr, h as Xr, f as kr, _ as Aa, i as Da } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-ChiMxo1Z.js";
|
|
3
|
+
import { o as fa, j as $a, u as G0, F as Q0, r as e1, p as ya, a as le, b as ma, m as qa, g as ga, d as B0, c as Fe, h as Xt } from "./app-BNdmTV7c.js";
|
|
4
4
|
import { storeToRefs as C0, defineStore as Be } from "pinia";
|
|
5
5
|
import { useSnackbar as Ur } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as Yr } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as B, defineComponent as S, watch as T, computed as _, onMounted as le, createElementBlock as d, openBlock as a, createElementVNode as o, renderSlot as H, toDisplayString as w, resolveDirective as X, createCommentVNode as A, Fragment as z, renderList as P, createBlock as V, withDirectives as M, resolveDynamicComponent as N, unref as m, withCtx as I, createVNode as y, normalizeClass as L, resolveComponent as R, useModel as oe, createTextVNode as ae, isRef as j, nextTick as se } from "vue";
|
|
2
|
-
import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { c as Y, _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { d as W, u as G, F as O, q as J, a as re } from "./app-
|
|
2
|
+
import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-BIBiqSLt.js";
|
|
3
|
+
import { c as Y, _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-ChiMxo1Z.js";
|
|
4
|
+
import { d as W, u as G, F as O, q as J, a as re } from "./app-BNdmTV7c.js";
|
|
5
5
|
import { storeToRefs as K } from "pinia";
|
|
6
6
|
import { C as Q, r as de } from "./chart-DDDh8zNk.js";
|
|
7
7
|
import { components as E, useSnackbar as ce } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as ee } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
9
9
|
import { _ as ue } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
10
|
-
import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-4l8GwTMp.js";
|
|
11
11
|
import { useCoreStore as ge } from "@feedmepos/mf-common";
|
|
12
12
|
function pe({ start: e, end: t }) {
|
|
13
13
|
return `${W(t).format("DD MMM")}, ${W(t).format("YYYY")}`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as se, mergeModels as fe, useModel as re, computed as G, resolveComponent as F, createElementBlock as j, openBlock as w, createElementVNode as t, createCommentVNode as q, normalizeClass as Je, Fragment as Ie, renderList as We, createBlock as Q, normalizeStyle as Ze, createVNode as l, withCtx as ke, renderSlot as pt, toDisplayString as S, unref as s, h as C, createTextVNode as mt, ref as Z, onUnmounted as Pe, watch as Ae, isRef as Me, resolveDynamicComponent as Re, mergeProps as tt, withKeys as rt, withModifiers as ut, nextTick as ct, onMounted as nt } from "vue";
|
|
2
2
|
import { useRouter as Ce, useRoute as ft } from "vue-router";
|
|
3
|
-
import { A as he, y as et, d as Ve, z as gt, e as Ke, a as Se, B as me, E as vt, l as yt, v as ne, x as je, G as Le, H as Te, J as Oe, K as ot, L as xt, M as bt, N as wt, O as at, b as st, P as ht, Q as _t, m as Ct, I as Ne, R as kt, S as St, T as $t } from "./app-
|
|
3
|
+
import { A as he, y as et, d as Ve, z as gt, e as Ke, a as Se, B as me, E as vt, l as yt, v as ne, x as je, G as Le, H as Te, J as Oe, K as ot, L as xt, M as bt, N as wt, O as at, b as st, P as ht, Q as _t, m as Ct, I as Ne, R as kt, S as St, T as $t } from "./app-BNdmTV7c.js";
|
|
4
4
|
import { u as de, a as Ee, _ as Dt } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
5
5
|
import { u as Be } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { useSnackbar as $e } from "@feedmepos/ui-library";
|
|
7
|
-
import { s as it, _ as Ye } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as Ue, h as _e } from "./useRestaurantPermission-
|
|
7
|
+
import { s as it, _ as Ye } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-ChiMxo1Z.js";
|
|
8
|
+
import { u as Ue, h as _e } from "./useRestaurantPermission-D0QLWz5I.js";
|
|
9
9
|
import { storeToRefs as qe } from "pinia";
|
|
10
10
|
const At = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Vt = { class: "w-[100%] overflow-hidden" }, Ft = { class: "inline-flex max-w-full items-center gap-2 align-top" }, It = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Kt = {
|
|
11
11
|
key: 0,
|