@feedmepos/mf-report 5.23.7 → 5.23.8-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-eW2l-D58.js → App-Blp7iZTh.js} +61 -61
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CPMY8qj4.js → BaseDialog.vue_vue_type_script_setup_true_lang-Cfwj1rcj.js} +10 -9
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Diqt6pvV.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DczxgxKP.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BWMejZ7t.js → Default.vue_vue_type_script_setup_true_lang-pulH3QTS.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BYWJYpAp.js → FilterSelector.vue_vue_type_script_setup_true_lang-ZxvjCKIH.js} +424 -424
- package/dist/{InsightView-kwJwZl4J.js → InsightView-DB-95oTS.js} +4 -4
- package/dist/{Integration-2NnNc_MA.js → Integration-bvoaSvky.js} +3 -3
- package/dist/{Integrations-C6xUhLQL.js → Integrations-DbkFDc4x.js} +2 -2
- package/dist/{Layout-ae88KZpv.js → Layout-CAB6c4iP.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-ai9OY8Vj.js → MenuTab.vue_vue_type_script_setup_true_lang-BLiBtPV_.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-gWfADjSK.js → NavigationTab.vue_vue_type_script_setup_true_lang-D4Z4I2ME.js} +3 -3
- package/dist/{OverviewView-hgK91xHF.js → OverviewView-DgmOWTMa.js} +4 -4
- package/dist/{Report-CpeMTB-E.js → Report-lvzCvoub.js} +3 -3
- package/dist/{ReportEditor-3tgswFAH.js → ReportEditor-DBxoT69p.js} +4 -4
- package/dist/{ReportView-pKn2c_58.js → ReportView-aIc3h00s.js} +6 -6
- package/dist/{Setting-D_5PQPvW.js → Setting-C0QpxvMi.js} +3 -3
- package/dist/{TileEditor-P65O3INC.js → TileEditor-hPCZjKiC.js} +5 -5
- package/dist/{TransitionFade-58AVTmRy.js → TransitionFade-DWbddsES.js} +4 -4
- package/dist/{app-7utdodcM.js → app-BzpOue2V.js} +12 -12
- package/dist/app.js +1 -1
- package/dist/assets/{processTableData.worker-S2PCd2dS.js → formatChartData.worker-BDvFT0pw.js} +4 -4
- package/dist/assets/{formatChartData.worker-DP26JAuy.js → processTableData.worker-CORwAutg.js} +4 -4
- package/dist/{useRestaurantPermission-C6nkA6ru.js → useRestaurantPermission-DXhg26Nr.js} +1 -1
- package/package.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as ue, resolveComponent as H, createBlock as de, openBlock as A, unref as d, isRef as
|
|
2
|
-
import { detectLocale as Q, useCoreStore as
|
|
3
|
-
import { d as u, u as Be, a as
|
|
4
|
-
import { storeToRefs as
|
|
1
|
+
import { defineComponent as ue, resolveComponent as H, createBlock as de, openBlock as A, unref as d, isRef as Ce, withCtx as W, createElementVNode as ne, createVNode as X, toDisplayString as oe, createTextVNode as ke, onMounted as le, watch as E, ref as J, computed as ae, onBeforeMount as Ne, onBeforeUnmount as Te, createElementBlock as K, Fragment as $e } from "vue";
|
|
2
|
+
import { detectLocale as Q, useCoreStore as P } from "@feedmepos/mf-common";
|
|
3
|
+
import { d as u, u as Be, a as re, b as Fe, c as se, e as qe, f as xe, s as Je, t as G } from "./app-BzpOue2V.js";
|
|
4
|
+
import { storeToRefs as C } from "pinia";
|
|
5
5
|
import { u as Qe, a as Ue } from "./vue-i18n-DVWuTfed.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as Ve, _ as
|
|
6
|
+
import { u as ze, a as je } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Cfwj1rcj.js";
|
|
7
|
+
import { u as Ve, _ as We } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D4Z4I2ME.js";
|
|
8
8
|
import { u as ie } from "./message-dialog-UoMWOnil.js";
|
|
9
|
-
import { useRoute as
|
|
10
|
-
const
|
|
9
|
+
import { useRoute as Ke, useRouter as Pe } from "vue-router";
|
|
10
|
+
const Ge = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, He = /* @__PURE__ */ ue({
|
|
11
11
|
__name: "Dialog",
|
|
12
12
|
setup(k) {
|
|
13
|
-
const { t: c } = Qe(), p = ie(), { isOpened: g, message: _, title: L } =
|
|
13
|
+
const { t: c } = Qe(), p = ie(), { isOpened: g, message: _, title: L } = C(ie());
|
|
14
14
|
return (O, I) => {
|
|
15
|
-
const
|
|
15
|
+
const N = H("FmButton"), U = H("FmDialog");
|
|
16
16
|
return A(), de(U, {
|
|
17
17
|
modelValue: d(g),
|
|
18
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
18
|
+
"onUpdate:modelValue": I[0] || (I[0] = (z) => Ce(g) ? g.value = z : null),
|
|
19
19
|
overlay: "",
|
|
20
20
|
"close-button": !1
|
|
21
21
|
}, {
|
|
22
|
-
"dialog-header":
|
|
22
|
+
"dialog-header": W(() => [
|
|
23
23
|
ke(oe(d(L)), 1)
|
|
24
24
|
]),
|
|
25
|
-
default:
|
|
26
|
-
ne("p",
|
|
25
|
+
default: W(() => [
|
|
26
|
+
ne("p", Ge, oe(d(_)), 1)
|
|
27
27
|
]),
|
|
28
|
-
"dialog-footer":
|
|
28
|
+
"dialog-footer": W(() => [
|
|
29
29
|
I[1] || (I[1] = ne("div", { class: "grow" }, null, -1)),
|
|
30
|
-
X(
|
|
30
|
+
X(N, {
|
|
31
31
|
label: d(c)("report.common.cancel"),
|
|
32
32
|
variant: "tertiary",
|
|
33
33
|
onClick: d(p).dismiss
|
|
34
34
|
}, null, 8, ["label", "onClick"]),
|
|
35
|
-
X(
|
|
35
|
+
X(N, {
|
|
36
36
|
label: d(c)("report.common.confirm"),
|
|
37
37
|
onClick: d(p).confirm
|
|
38
38
|
}, null, 8, ["label", "onClick"])
|
|
@@ -55,7 +55,7 @@ function Xe() {
|
|
|
55
55
|
};
|
|
56
56
|
return le(() => {
|
|
57
57
|
k(Q());
|
|
58
|
-
}),
|
|
58
|
+
}), E(() => Q(), k, { deep: !0, immediate: !0 }), {
|
|
59
59
|
currentLocale: ce
|
|
60
60
|
};
|
|
61
61
|
}
|
|
@@ -63,8 +63,8 @@ u.locale(Q() === "zh-CN" ? "zh-cn" : "en");
|
|
|
63
63
|
const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
64
64
|
__name: "App",
|
|
65
65
|
setup(k) {
|
|
66
|
-
const { businessId: c, token: p, country: g } =
|
|
67
|
-
|
|
66
|
+
const { businessId: c, token: p, country: g } = C(Be()), { sessionUser: _, currentBusiness: L, currentCountry: O, registerSidebarComponent: I } = P(), { getRestaurantAndWarehouse: N, getBusinessSetting: U, beginBusinessLoad: z, completeBusinessLoad: fe } = re(), { getFeatureFlags: me } = Fe(), { version: v } = C(se()), { getSettings: pe } = qe(), { promptLoader: ge } = Ue(), s = Ke(), j = Pe(), w = ze(), Y = Ve(), r = re(), T = se(), { suppressReportRouteSync: $ } = C(T), { getReports: ve, getOverviewReport: ye, getReportConfig: Se, currentReportId: Z } = w, { currentReportId: De, reports: Ie } = C(w), { getSchema: he } = je(), { fetchSchedules: Re } = Y, { init: _e } = xe(), V = J("v5"), B = J(!1), F = J(!0), Le = ae(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${p.value}&v2=true&reportV5Button=true`), Oe = ae(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${g.value}&token=${p.value}&reportV3Button=true`);
|
|
67
|
+
E(
|
|
68
68
|
[() => L.value, () => _.value, () => O.value],
|
|
69
69
|
() => {
|
|
70
70
|
var e, n;
|
|
@@ -91,13 +91,13 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
91
91
|
console.error(e);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
["v3", "v4"].includes(v.value) ?
|
|
96
|
-
}), Te(() => {
|
|
97
|
-
I(Pe);
|
|
98
|
-
}), le(() => {
|
|
99
|
-
console.log("5.23.7", !0), window.addEventListener("message", M), window.addEventListener("message", ee);
|
|
94
|
+
E(v, () => {
|
|
95
|
+
["v3", "v4"].includes(v.value) ? P().hideSidebarToggle(!0) : P().hideSidebarToggle(!1);
|
|
100
96
|
}), Ne(() => {
|
|
97
|
+
I(We);
|
|
98
|
+
}), le(() => {
|
|
99
|
+
console.log("5.23.8-beta.0", !0), window.addEventListener("message", M), window.addEventListener("message", ee);
|
|
100
|
+
}), Te(() => {
|
|
101
101
|
window.removeEventListener("message", M), window.removeEventListener("message", ee), w.$dispose(), Y.$dispose();
|
|
102
102
|
});
|
|
103
103
|
function we(t) {
|
|
@@ -132,30 +132,30 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
132
132
|
const e = t, n = e.startDate ? u(e.startDate).startOf("day").toISOString() : void 0, o = e.endDate ? u(e.endDate).endOf("day").toISOString() : void 0, l = typeof e.timeStart == "string", i = typeof e.timeEnd == "string", f = q(e.timeStart), y = q(e.timeEnd), m = te(f) ? f : null, x = te(y) ? y : null, b = e.compareStartDate ? u(e.compareStartDate).startOf("day").toISOString() : void 0, S = e.compareEndDate ? u(e.compareEndDate).endOf("day").toISOString() : void 0, h = e.isAllLocation === "true" || e.isAllLocation === void 0;
|
|
133
133
|
let D = [];
|
|
134
134
|
if (h)
|
|
135
|
-
D =
|
|
135
|
+
D = r.selectedLocationIds ?? [];
|
|
136
136
|
else {
|
|
137
|
-
const
|
|
138
|
-
D = Array.isArray(
|
|
137
|
+
const a = q(e.locationIds);
|
|
138
|
+
D = Array.isArray(a) ? a : [];
|
|
139
139
|
}
|
|
140
140
|
let R = e.reportId || Z;
|
|
141
|
-
if (Ie.value.find((
|
|
142
|
-
const
|
|
143
|
-
(
|
|
141
|
+
if (Ie.value.find((a) => a.id === R) || (R = Z), R && R !== w.currentReportId && w.updateCurrentReportId(R), n || o) {
|
|
142
|
+
const a = r.dateRange;
|
|
143
|
+
(a.startDate !== n || a.endDate !== o) && r.setDateRange({ startDate: n, endDate: o });
|
|
144
144
|
}
|
|
145
145
|
if (l || i) {
|
|
146
|
-
const
|
|
147
|
-
(
|
|
146
|
+
const a = r.timeRange;
|
|
147
|
+
(a.start !== m || a.end !== x) && r.setTimeRange({ start: m, end: x });
|
|
148
148
|
}
|
|
149
149
|
if (b || S) {
|
|
150
|
-
const
|
|
151
|
-
(
|
|
150
|
+
const a = r.compareDateRange;
|
|
151
|
+
(a.startDate !== b || a.endDate !== S) && r.setCompareDateRange({
|
|
152
152
|
startDate: b,
|
|
153
153
|
endDate: S
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
if (!h) {
|
|
157
|
-
const
|
|
158
|
-
|
|
157
|
+
const a = r.selectedLocationIds;
|
|
158
|
+
a.length === D.length && a.every((Ae, Ee) => Ae === D[Ee]) || r.setSelectedLocationIds(D);
|
|
159
159
|
}
|
|
160
160
|
return {
|
|
161
161
|
// TODO: this returned value can used for getBusinessSetting
|
|
@@ -170,11 +170,11 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
170
170
|
isAllLocation: e.isAllLocation
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
return
|
|
173
|
+
return E(
|
|
174
174
|
() => c.value,
|
|
175
175
|
async (t, e) => {
|
|
176
176
|
if (t !== "") {
|
|
177
|
-
B.value = !1,
|
|
177
|
+
B.value = !1, z(t);
|
|
178
178
|
const n = "mf-report-prev-business-id", o = (() => {
|
|
179
179
|
try {
|
|
180
180
|
return sessionStorage.getItem(n);
|
|
@@ -184,12 +184,12 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
184
184
|
})(), l = !!o && o !== t;
|
|
185
185
|
let i = { ...s.query }, f = !1;
|
|
186
186
|
if (!F.value || e !== void 0 || l) {
|
|
187
|
-
|
|
187
|
+
r.setSelectedLocationIds([]);
|
|
188
188
|
const { locationIds: y, ...m } = s.query;
|
|
189
189
|
i = {
|
|
190
190
|
...m,
|
|
191
191
|
isAllLocation: "true"
|
|
192
|
-
}, f = !0, await
|
|
192
|
+
}, f = !0, await j.replace({
|
|
193
193
|
name: s.name,
|
|
194
194
|
params: s.params,
|
|
195
195
|
query: i
|
|
@@ -197,24 +197,24 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
197
197
|
}
|
|
198
198
|
$.value !== void 0 && ($.value = !0), await ge(async () => {
|
|
199
199
|
await _e({
|
|
200
|
-
apiKey: "
|
|
200
|
+
apiKey: "MaGoXrEWuEJNpWgKTqseee",
|
|
201
201
|
url: "https://flag.feedme.farm/api/v1/",
|
|
202
202
|
enableAnalytics: !1,
|
|
203
203
|
cacheFlags: !1
|
|
204
204
|
});
|
|
205
205
|
const y = await Se();
|
|
206
206
|
V.value = y.version, v.value = V.value, await me();
|
|
207
|
-
const m =
|
|
208
|
-
|
|
209
|
-
), x =
|
|
210
|
-
|
|
211
|
-
), b =
|
|
212
|
-
|
|
207
|
+
const m = T.canAccess(
|
|
208
|
+
G.report_accessOverview
|
|
209
|
+
), x = T.canAccess(
|
|
210
|
+
G.report_accessSetting
|
|
211
|
+
), b = T.canAccess(
|
|
212
|
+
G.report_accessIntegration
|
|
213
213
|
), S = [
|
|
214
214
|
he(),
|
|
215
215
|
Re(),
|
|
216
216
|
ve(),
|
|
217
|
-
|
|
217
|
+
N(
|
|
218
218
|
(() => {
|
|
219
219
|
const h = q(i.locationIds);
|
|
220
220
|
return Array.isArray(h) ? h : void 0;
|
|
@@ -223,7 +223,7 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
223
223
|
];
|
|
224
224
|
if (m && S.push(ye()), b && S.push(pe()), await Promise.all(S), x && await U(), be(i), f) {
|
|
225
225
|
const { locationIds: h, ...D } = s.query;
|
|
226
|
-
(s.query.locationIds !== void 0 || s.query.isAllLocation !== "true") && await
|
|
226
|
+
(s.query.locationIds !== void 0 || s.query.isAllLocation !== "true") && await j.replace({
|
|
227
227
|
name: s.name,
|
|
228
228
|
params: s.params,
|
|
229
229
|
query: {
|
|
@@ -243,13 +243,13 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
243
243
|
{
|
|
244
244
|
immediate: !0
|
|
245
245
|
}
|
|
246
|
-
),
|
|
246
|
+
), E(
|
|
247
247
|
() => (B.value, {
|
|
248
248
|
reportId: De.value,
|
|
249
|
-
selectedLocationIds:
|
|
250
|
-
dateRange:
|
|
251
|
-
timeRange:
|
|
252
|
-
compareDateRange:
|
|
249
|
+
selectedLocationIds: r.selectedLocationIds,
|
|
250
|
+
dateRange: r.dateRange,
|
|
251
|
+
timeRange: r.timeRange,
|
|
252
|
+
compareDateRange: r.compareDateRange
|
|
253
253
|
}),
|
|
254
254
|
(t) => {
|
|
255
255
|
if (!B.value || !t.reportId || F.value) return;
|
|
@@ -266,10 +266,10 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
266
266
|
compareEndDate: l.endDate ? u(l.endDate).endOf("day").toISOString() : void 0,
|
|
267
267
|
timeStart: o.start ? JSON.stringify(o.start) : void 0,
|
|
268
268
|
timeEnd: o.end ? JSON.stringify(o.end) : void 0
|
|
269
|
-
}, f = e.length ===
|
|
269
|
+
}, f = e.length === r.locations.length;
|
|
270
270
|
i.isAllLocation = String(f), f ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
|
|
271
271
|
const y = JSON.stringify(s.query), m = JSON.stringify(i);
|
|
272
|
-
y !== m &&
|
|
272
|
+
y !== m && j.replace({
|
|
273
273
|
name: s.name,
|
|
274
274
|
params: s.params,
|
|
275
275
|
query: i
|
|
@@ -278,13 +278,13 @@ const Ye = ["src"], Ze = ["src"], lt = /* @__PURE__ */ ue({
|
|
|
278
278
|
{ deep: !0 }
|
|
279
279
|
), Xe(), (t, e) => {
|
|
280
280
|
const n = H("router-view");
|
|
281
|
-
return A(),
|
|
281
|
+
return A(), K($e, null, [
|
|
282
282
|
X(He),
|
|
283
|
-
d(v) === "v3" ? (A(),
|
|
283
|
+
d(v) === "v3" ? (A(), K("iframe", {
|
|
284
284
|
key: 0,
|
|
285
285
|
class: "bg-white h-full w-full",
|
|
286
286
|
src: Le.value
|
|
287
|
-
}, null, 8, Ye)) : d(v) === "v4" ? (A(),
|
|
287
|
+
}, null, 8, Ye)) : d(v) === "v4" ? (A(), K("iframe", {
|
|
288
288
|
key: 1,
|
|
289
289
|
class: "bg-white h-full w-full",
|
|
290
290
|
src: Oe.value
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as kr, n as Ur, u as C0, F as W0, x as I0, B as Qr, a as ee, b as Yr, w as Gr, g as Vr, d as v0, c as Bt, r as Ve } from "./app-
|
|
1
|
+
import { A as kr, n as Ur, u as C0, F as W0, x as I0, B as Qr, a as ee, b as Yr, w as Gr, g as Vr, d as v0, c as Bt, r as Ve } from "./app-BzpOue2V.js";
|
|
2
2
|
import { storeToRefs as T0, defineStore as $e } from "pinia";
|
|
3
3
|
import { ref as h0, computed as L1, watch as je, defineComponent as Nt, mergeModels as de, useModel as Je, resolveComponent as p1, createElementBlock as Fe, openBlock as Q1, createVNode as X0, withCtx as h1, createElementVNode as o1, createCommentVNode as jr, Fragment as qt, renderList as Kr, createBlock as xt, createTextVNode as wt, withDirectives as Zr, toDisplayString as g1, unref as x0, vShow as en, renderSlot as tn } from "vue";
|
|
4
4
|
import { useSnackbar as vt } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as rn } from "./vue-i18n-DVWuTfed.js";
|
|
6
6
|
import { useCoreStore as nn, detectLocale as S1 } from "@feedmepos/mf-common";
|
|
7
|
-
import { c as on, a as an } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { c as on, a as an } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DczxgxKP.js";
|
|
8
8
|
function Pt(M) {
|
|
9
9
|
throw new Error('Could not dynamically require "' + M + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
10
10
|
}
|
|
@@ -9246,8 +9246,8 @@ Arguments: [` + c + "]";
|
|
|
9246
9246
|
$signature: 1
|
|
9247
9247
|
}, t.kitchenStationSchema_closure.prototype = {
|
|
9248
9248
|
call$1(r) {
|
|
9249
|
-
var e = null, n = "completedAt", o = "productId";
|
|
9250
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !0, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", "itemId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Start time", "startedAt", "startAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Finish time", "finishedAt", "finishAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, "Complete time", n, n, e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@finishedAt, CURRENT_TIMESTAMP), @startedAt, SECOND),0)", !1, !1, "Seconds", "seconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@finished_at, CURRENT_TIMESTAMP),@started_at)),0)", r), t.Field_Field$string(e, e, !1, !1, !1, "Name", "name", "name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", o, o, e, r)], O.JSArray_Field);
|
|
9249
|
+
var e = null, n = "completedAt", o = "productId", a = "sequence";
|
|
9250
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !0, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", "itemId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Start time", "startedAt", "startAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Finish time", "finishedAt", "finishAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, "Complete time", n, n, e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@finishedAt, CURRENT_TIMESTAMP), @startedAt, SECOND),0)", !1, !1, "Seconds", "seconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@finished_at, CURRENT_TIMESTAMP),@started_at)),0)", r), t.Field_Field$string(e, e, !1, !1, !1, "Name", "name", "name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", o, o, e, r), t.Field_Field$numeric(e, e, !1, !1, "Sequence", a, a, e, r)], O.JSArray_Field);
|
|
9251
9251
|
},
|
|
9252
9252
|
$signature: 0
|
|
9253
9253
|
}, t.kitchenStationSchema_closure0.prototype = {
|
|
@@ -9475,12 +9475,13 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
|
|
|
9475
9475
|
}, t.posOverrideItemLogSchema_closure.prototype = {
|
|
9476
9476
|
call$1(r) {
|
|
9477
9477
|
var e = null;
|
|
9478
|
-
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Subject", "subject", "subject", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$string(e, e, !
|
|
9478
|
+
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Subject", "subject", "subject", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Type", "type", "type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item ID", "itemId", "ref.itemId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Item", "itemName", "ref.itemName", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "groupId", "ref.groupId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Group", "groupName", "ref.groupName", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Internal Name (Before)", "fromInternalName", "name2.from", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Internal Name (After)", "toInternalName", "name2.to", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Order From (Before)", "fromOrderFrom", "orderFrom.from", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Order From (After)", "toOrderFrom", "orderFrom.to", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility (Before)", "fromAppVisiblity", "visibility.from.app.visible", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility Reason (Before)", "fromAppVisibilityReason", "visibility.from.app.reason", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility (After)", "toAppVisiblity", "visibility.to.app.visible", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Visibility Reason (After)", "toAppVisibilityReason", "visibility.to.app.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "changedById", "changeBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Changed By", "changedByName", "changeBy.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Counter ID", "counterId", "metadata.counterId", e, r), t.Field_Field$numeric("Seconds until the next change for the same item in the same restaurant, ordered by time. Null if there is no subsequent change.", e, !1, !1, "State Duration (s)", "stateDurationSeconds", e, "EXTRACT(EPOCH FROM (LEAD(@created_at) OVER (PARTITION BY @restaurant_id, @item_id ORDER BY @created_at) - @created_at))", r), t.Field_Field$string(e, e, !1, !1, !1, "Reason", "reason", "reason", e, r)], O.JSArray_Field);
|
|
9479
9479
|
},
|
|
9480
9480
|
$signature: 0
|
|
9481
9481
|
}, t.posOverrideItemLogSchema_closure0.prototype = {
|
|
9482
9482
|
call$1(r) {
|
|
9483
|
-
|
|
9483
|
+
var e = null, n = O.JSArray_String, o = O.JSArray_JoinCondition;
|
|
9484
|
+
return t._setArrayType([new t.Join(p.SCHEMA_NAME_57, t._setArrayType([new t.JoinCondition("id", t._setArrayType(["itemId"], n), p.COMPARISON_OPERATOR_0, e), new t.JoinCondition("restaurantId", t._setArrayType(["restaurantId"], n), p.COMPARISON_OPERATOR_0, e)], o), !0, r, e), new t.Join(p.SCHEMA_NAME_14, t._setArrayType([new t.JoinCondition("id", t._setArrayType(["restaurantId"], n), p.COMPARISON_OPERATOR_0, e)], o), !1, r, e)], O.JSArray_Join);
|
|
9484
9485
|
},
|
|
9485
9486
|
$signature: 1
|
|
9486
9487
|
}, t.purchaseOrderSchema_closure.prototype = {
|
|
@@ -14337,7 +14338,7 @@ var sn = un, Ht = {};
|
|
|
14337
14338
|
a = o, u = !1, s = !1;
|
|
14338
14339
|
break;
|
|
14339
14340
|
case A.FORMATTER_TYPE_6:
|
|
14340
|
-
a = o
|
|
14341
|
+
a = o, u = !1, s = !0;
|
|
14341
14342
|
break;
|
|
14342
14343
|
default:
|
|
14343
14344
|
a = 0, u = !0, s = !1;
|
|
@@ -24166,7 +24167,7 @@ function xu(M) {
|
|
|
24166
24167
|
};
|
|
24167
24168
|
case "COMPACT_HOUR_MINUTE":
|
|
24168
24169
|
return {
|
|
24169
|
-
inputUnit: "
|
|
24170
|
+
inputUnit: "SECOND",
|
|
24170
24171
|
outputStyle: "compact",
|
|
24171
24172
|
parts: ["HOUR", "MINUTE"]
|
|
24172
24173
|
};
|
|
@@ -24558,7 +24559,7 @@ const ps = "mf-reportreport-store", Le = $e(ps, () => {
|
|
|
24558
24559
|
};
|
|
24559
24560
|
});
|
|
24560
24561
|
var xr = /* @__PURE__ */ ((M) => (M.generating = "GENERATING", M.completed = "COMPLETED", M.failed = "FAILED", M.canceled = "CANCELLED", M))(xr || {});
|
|
24561
|
-
const Ms = "/assets/formatChartData.worker-
|
|
24562
|
+
const Ms = "/assets/formatChartData.worker-BDvFT0pw.js", Pe = /* @__PURE__ */ new Map();
|
|
24562
24563
|
function Wt(M) {
|
|
24563
24564
|
return new Worker(M, { type: "module" });
|
|
24564
24565
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as A, resolveComponent as S, createBlock as p, openBlock as y, withCtx as T, createCommentVNode as R, createElementVNode as M, toDisplayString as j, renderSlot as B, mergeModels as k, useModel as b, ref as C, watch as x, createElementBlock as U, unref as f, createVNode as O } from "vue";
|
|
2
|
-
import { d as r, a as W, a0 as q, C as G } from "./app-
|
|
2
|
+
import { d as r, a as W, a0 as q, C as G } from "./app-BzpOue2V.js";
|
|
3
3
|
import { detectLocale as E } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as H } from "./vue-i18n-DVWuTfed.js";
|
|
5
5
|
import { storeToRefs as K } 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-D4Z4I2ME.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 "./vue-i18n-DVWuTfed.js";
|