@feedmepos/mf-report 5.22.10 → 5.22.11-beta.1

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.
Files changed (26) hide show
  1. package/dist/App-DwszB1yo.js +268 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-5_-2t_C6.js → BaseDialog.vue_vue_type_script_setup_true_lang-Cw77LHc6.js} +3 -3
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C8r-uiGo.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BapDZHRO.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-C1p1ivTM.js → Default.vue_vue_type_script_setup_true_lang-CR-Zn72P.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BEc-zVFt.js → FilterSelector.vue_vue_type_script_setup_true_lang-CrzihJ7e.js} +6 -6
  6. package/dist/{InsightView-nHNpcMG5.js → InsightView-FVM1yDMh.js} +6 -6
  7. package/dist/{Integration-Bp69QKo2.js → Integration-IUH9tGrL.js} +4 -4
  8. package/dist/{Integrations-CCmc1w4g.js → Integrations-gverEsUp.js} +4 -4
  9. package/dist/{Layout-BgHGGQqs.js → Layout-DWZ1cxqj.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Dw8rFazr.js → MenuTab.vue_vue_type_script_setup_true_lang-BQKiuAtq.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Vbz3Y3D7.js → NavigationTab.vue_vue_type_script_setup_true_lang-BD0BTGku.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-B_9FoeId.js → NoData.vue_vue_type_script_setup_true_lang-Ciqchgbw.js} +1 -1
  13. package/dist/{OverviewView-CFOB8P_I.js → OverviewView-B3w-odBw.js} +5 -5
  14. package/dist/{Report-DXNktP_o.js → Report-BAWsxKPB.js} +4 -4
  15. package/dist/{ReportEditor-Dmn-ARx9.js → ReportEditor-CCdiBAn2.js} +6 -6
  16. package/dist/{ReportView-Dj_kaBwu.js → ReportView-ei7oFBvF.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DCnW5kSR.js → SelectComponent.vue_vue_type_script_setup_true_lang-Csm4PBo9.js} +1 -1
  18. package/dist/{Setting-Bq_Y_njK.js → Setting-DLe9ak6Q.js} +5 -5
  19. package/dist/{TileEditor-ChUIEs1W.js → TileEditor-DcbVI1f1.js} +8 -8
  20. package/dist/{TransitionFade-DgPPOAKT.js → TransitionFade-B-OZb7Tt.js} +6 -6
  21. package/dist/{app-yofEsI_0.js → app-CtzSiHDU.js} +11 -11
  22. package/dist/app.js +1 -1
  23. package/dist/{useRestaurantPermission-R6V-93ZN.js → useRestaurantPermission-Eu6RZQff.js} +2 -2
  24. package/dist/{vue-i18n-Bv_lm6ws.js → vue-i18n-C2J89jPf.js} +2 -2
  25. package/package.json +1 -1
  26. package/dist/App-BZyVuyG5.js +0 -264
@@ -0,0 +1,268 @@
1
+ import { defineComponent as ce, resolveComponent as j, createBlock as de, openBlock as I, unref as u, isRef as Ce, withCtx as U, createElementVNode as te, createVNode as V, toDisplayString as ne, createTextVNode as ke, onMounted as ue, watch as R, ref as A, computed as oe, onBeforeMount as Ne, onBeforeUnmount as Te, createElementBlock as Q, Fragment as Ae } from "vue";
2
+ import { detectLocale as B, useCoreStore as z } from "@feedmepos/mf-common";
3
+ import { u as Be, a as Fe, b as ae, c as $e, d as xe, e as Je, f as qe, s as Ue } from "./vue-i18n-C2J89jPf.js";
4
+ import { storeToRefs as L } from "pinia";
5
+ import { u as re, a as Qe, b as ze } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Cw77LHc6.js";
6
+ import { u as je, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BD0BTGku.js";
7
+ import { u as se } from "./message-dialog-UoMWOnil.js";
8
+ import { d as i } from "./app-CtzSiHDU.js";
9
+ import { useRoute as We, useRouter as Pe } from "vue-router";
10
+ const Ge = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ke = /* @__PURE__ */ ce({
11
+ __name: "Dialog",
12
+ setup(_) {
13
+ const { t: s } = Be(), l = se(), { isOpened: f, message: v, title: S } = L(se());
14
+ return (y, p) => {
15
+ const O = j("FmButton"), F = j("FmDialog");
16
+ return I(), de(F, {
17
+ modelValue: u(f),
18
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => Ce(f) ? f.value = $ : null),
19
+ overlay: "",
20
+ "close-button": !1
21
+ }, {
22
+ "dialog-header": U(() => [
23
+ ke(ne(u(S)), 1)
24
+ ]),
25
+ default: U(() => [
26
+ te("p", Ge, ne(u(v)), 1)
27
+ ]),
28
+ "dialog-footer": U(() => [
29
+ p[1] || (p[1] = te("div", { class: "grow" }, null, -1)),
30
+ V(O, {
31
+ label: u(s)("report.common.cancel"),
32
+ variant: "tertiary",
33
+ onClick: u(l).dismiss
34
+ }, null, 8, ["label", "onClick"]),
35
+ V(O, {
36
+ label: u(s)("report.common.confirm"),
37
+ onClick: u(l).confirm
38
+ }, null, 8, ["label", "onClick"])
39
+ ]),
40
+ _: 1
41
+ }, 8, ["modelValue"]);
42
+ };
43
+ }
44
+ }), ie = A(B());
45
+ function He() {
46
+ const _ = (s) => {
47
+ switch (ie.value = s, s) {
48
+ case "zh-CN":
49
+ i.locale("zh-cn");
50
+ break;
51
+ default:
52
+ i.locale("en");
53
+ break;
54
+ }
55
+ };
56
+ return ue(() => {
57
+ _(B());
58
+ }), R(() => B(), _, { deep: !0, immediate: !0 }), {
59
+ currentLocale: ie
60
+ };
61
+ }
62
+ i.locale(B() === "zh-CN" ? "zh-cn" : "en");
63
+ const Xe = ["src"], Ye = ["src"], ut = /* @__PURE__ */ ce({
64
+ __name: "App",
65
+ setup(_) {
66
+ const { businessId: s, token: l, country: f } = L(Fe()), { sessionUser: v, currentBusiness: S, currentCountry: y, registerSidebarComponent: p } = z(), { getRestaurantAndWarehouse: O, getBusinessSetting: F, beginBusinessLoad: $, completeBusinessLoad: le } = ae(), { getFeatureFlags: fe } = $e(), { version: m } = L(re()), { getSettings: me } = xe(), { promptLoader: pe } = Je(), c = We(), W = Pe(), D = Qe(), P = je(), o = ae(), ge = re(), { suppressReportRouteSync: b } = L(ge), { getReports: ve, getOverviewReport: Se, getReportConfig: G, currentReportId: K } = D, { currentReportId: ye, reports: De } = L(D), { getSchema: he } = ze(), { fetchSchedules: Ie } = P, { init: Re } = qe(), x = A("v5"), w = A(!1), E = A(!0), Le = oe(() => `https://portal-v1.feedmedev.cc/b/${s.value}/report/CLOSE_UP?showHeader=false&country=${f.value.toUpperCase()}&menuOption=business-report&token=${l.value}&v2=true&reportV5Button=true`), _e = oe(() => `https://report-v4.feedmedev.cc?businessId=${s.value}&country=${f.value}&token=${l.value}&reportV3Button=true`);
67
+ R(
68
+ [() => S.value, () => v.value, () => y.value],
69
+ () => {
70
+ var e, n;
71
+ const t = ((e = S.value) == null ? void 0 : e.id) ?? "";
72
+ S.value && v.value && y.value && (Ue(y.value), s.value !== t && (s.value = t), l.value = ((n = v.value) == null ? void 0 : n.token) ?? "", f.value = y.value ?? "");
73
+ },
74
+ { immediate: !0 }
75
+ );
76
+ function H(t) {
77
+ if (typeof t.data == "string")
78
+ try {
79
+ const e = JSON.parse(t.data);
80
+ (e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (l.value = e.token);
81
+ } catch (e) {
82
+ console.error(e);
83
+ }
84
+ }
85
+ function X(t) {
86
+ if (typeof t.data == "string")
87
+ try {
88
+ const e = JSON.parse(t.data);
89
+ (e == null ? void 0 : e.v5) === !0 ? m.value = x.value : (e == null ? void 0 : e.v3) === !0 && (m.value = "v3");
90
+ } catch (e) {
91
+ console.error(e);
92
+ }
93
+ }
94
+ R(m, () => {
95
+ ["v3", "v4"].includes(m.value) ? z().hideSidebarToggle(!0) : z().hideSidebarToggle(!1);
96
+ }), Ne(() => {
97
+ p(Ve);
98
+ }), ue(() => {
99
+ console.log("5.22.11-beta.1", !0), window.addEventListener("message", H), window.addEventListener("message", X);
100
+ }), Te(() => {
101
+ window.removeEventListener("message", H), window.removeEventListener("message", X), D.$dispose(), P.$dispose();
102
+ });
103
+ function Oe(t) {
104
+ try {
105
+ return decodeURIComponent(t);
106
+ } catch {
107
+ return t;
108
+ }
109
+ }
110
+ function C(t) {
111
+ if (typeof t != "string" || t.length === 0) return;
112
+ const e = t.includes("%") ? [t, Oe(t)] : [t];
113
+ for (const n of e)
114
+ try {
115
+ const r = JSON.parse(n);
116
+ if (typeof r == "string")
117
+ try {
118
+ return JSON.parse(r);
119
+ } catch {
120
+ return r;
121
+ }
122
+ return r;
123
+ } catch {
124
+ }
125
+ }
126
+ function Y(t) {
127
+ if (!t || typeof t != "object") return !1;
128
+ const e = t;
129
+ return typeof e.hour == "number" && typeof e.minute == "number";
130
+ }
131
+ function be(t = c.query) {
132
+ const e = t, n = e.startDate ? i(e.startDate).startOf("day").toISOString() : void 0, r = e.endDate ? i(e.endDate).endOf("day").toISOString() : void 0, d = typeof e.timeStart == "string", k = typeof e.timeEnd == "string", N = C(e.timeStart), T = C(e.timeEnd), Z = Y(N) ? N : null, M = Y(T) ? T : null, J = e.compareStartDate ? i(e.compareStartDate).startOf("day").toISOString() : void 0, q = e.compareEndDate ? i(e.compareEndDate).endOf("day").toISOString() : void 0, ee = e.isAllLocation === "true" || e.isAllLocation === void 0;
133
+ let h = [];
134
+ if (ee)
135
+ h = o.selectedLocationIds ?? [];
136
+ else {
137
+ const a = C(e.locationIds);
138
+ h = Array.isArray(a) ? a : [];
139
+ }
140
+ let g = e.reportId || K;
141
+ if (De.value.find((a) => a.id === g) || (g = K), g && g !== D.currentReportId && D.updateCurrentReportId(g), n || r) {
142
+ const a = o.dateRange;
143
+ (a.startDate !== n || a.endDate !== r) && o.setDateRange({ startDate: n, endDate: r });
144
+ }
145
+ if (d || k) {
146
+ const a = o.timeRange;
147
+ (a.start !== Z || a.end !== M) && o.setTimeRange({ start: Z, end: M });
148
+ }
149
+ if (J || q) {
150
+ const a = o.compareDateRange;
151
+ (a.startDate !== J || a.endDate !== q) && o.setCompareDateRange({
152
+ startDate: J,
153
+ endDate: q
154
+ });
155
+ }
156
+ if (!ee) {
157
+ const a = o.selectedLocationIds;
158
+ a.length === h.length && a.every((we, Ee) => we === h[Ee]) || o.setSelectedLocationIds(h);
159
+ }
160
+ return {
161
+ // TODO: this returned value can used for getBusinessSetting
162
+ reportId: g,
163
+ startDate: e.startDate,
164
+ endDate: e.endDate,
165
+ timeStart: e.timeStart,
166
+ timeEnd: e.timeEnd,
167
+ compareStartDate: e.compareStartDate,
168
+ compareEndDate: e.compareEndDate,
169
+ locationIds: typeof e.locationIds == "string" ? e.locationIds : void 0,
170
+ isAllLocation: e.isAllLocation
171
+ };
172
+ }
173
+ return R(
174
+ () => s.value,
175
+ async (t, e) => {
176
+ if (t !== "") {
177
+ w.value = !1, $(t);
178
+ let n = { ...c.query };
179
+ (!E.value || e !== void 0) && (o.setSelectedLocationIds([]), n = {
180
+ ...c.query,
181
+ locationIds: void 0,
182
+ isAllLocation: "true"
183
+ }, await W.replace({
184
+ name: c.name,
185
+ params: c.params,
186
+ query: n
187
+ })), b.value !== void 0 && (b.value = !0), await pe(async () => {
188
+ await Re({
189
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
190
+ url: "https://flag.feedme.farm/api/v1/",
191
+ enableAnalytics: !1,
192
+ cacheFlags: !1
193
+ });
194
+ const r = await G();
195
+ x.value = r.version, m.value = x.value, await Promise.all([
196
+ fe(),
197
+ G(),
198
+ Se(),
199
+ ve(),
200
+ he(),
201
+ Ie(),
202
+ O(
203
+ (() => {
204
+ const d = C(n.locationIds);
205
+ return Array.isArray(d) ? d : void 0;
206
+ })()
207
+ ),
208
+ me()
209
+ ]), await F(), be(n), le(t);
210
+ }), w.value = !0, E.value && (E.value = !1);
211
+ }
212
+ },
213
+ {
214
+ immediate: !0
215
+ }
216
+ ), R(
217
+ () => (w.value, {
218
+ reportId: ye.value,
219
+ selectedLocationIds: o.selectedLocationIds,
220
+ dateRange: o.dateRange,
221
+ timeRange: o.timeRange,
222
+ compareDateRange: o.compareDateRange
223
+ }),
224
+ (t) => {
225
+ if (!w.value || !t.reportId || E.value) return;
226
+ if (b.value) {
227
+ b.value = !1;
228
+ return;
229
+ }
230
+ const e = t.selectedLocationIds, n = t.dateRange, r = t.timeRange, d = t.compareDateRange, k = {
231
+ ...c.query,
232
+ reportId: t.reportId,
233
+ startDate: n.startDate ? i(n.startDate).startOf("day").toISOString() : void 0,
234
+ endDate: n.endDate ? i(n.endDate).endOf("day").toISOString() : void 0,
235
+ compareStartDate: d.startDate ? i(d.startDate).startOf("day").toISOString() : void 0,
236
+ compareEndDate: d.endDate ? i(d.endDate).endOf("day").toISOString() : void 0,
237
+ timeStart: r.start ? JSON.stringify(r.start) : void 0,
238
+ timeEnd: r.end ? JSON.stringify(r.end) : void 0,
239
+ locationIds: e.length === o.locations.length ? void 0 : e.length > 0 ? JSON.stringify(e) : void 0,
240
+ isAllLocation: String(e.length === o.locations.length)
241
+ }, N = JSON.stringify(c.query), T = JSON.stringify(k);
242
+ N !== T && W.replace({
243
+ name: c.name,
244
+ params: c.params,
245
+ query: k
246
+ });
247
+ },
248
+ { deep: !0 }
249
+ ), He(), (t, e) => {
250
+ const n = j("router-view");
251
+ return I(), Q(Ae, null, [
252
+ V(Ke),
253
+ u(m) === "v3" ? (I(), Q("iframe", {
254
+ key: 0,
255
+ class: "bg-white h-full w-full",
256
+ src: Le.value
257
+ }, null, 8, Xe)) : u(m) === "v4" ? (I(), Q("iframe", {
258
+ key: 1,
259
+ class: "bg-white h-full w-full",
260
+ src: _e.value
261
+ }, null, 8, Ye)) : (I(), de(n, { key: 2 }))
262
+ ], 64);
263
+ };
264
+ }
265
+ });
266
+ export {
267
+ ut as default
268
+ };
@@ -1,11 +1,11 @@
1
- import { a as E0, F as m0, l as S0, b as X0, c as Ce, k as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-Bv_lm6ws.js";
1
+ import { a as E0, F as m0, l as S0, b as X0, c as Ce, k as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-C2J89jPf.js";
2
2
  import { storeToRefs as c0, defineStore as k0 } from "pinia";
3
3
  import { ref as s0, computed as B0, watch as V0, h as Me, defineComponent as De, mergeModels as Q0, useModel as W0, resolveComponent as O0, createElementBlock as Y0, openBlock as N0, createVNode as C0, withCtx as P0, createElementVNode as L0, createCommentVNode as Re, Fragment as ne, renderList as xe, createBlock as de, createTextVNode as ce, withDirectives as Le, toDisplayString as v0, unref as h0, vShow as Oe, renderSlot as we } from "vue";
4
4
  import { useSnackbar as fe, components as ve } from "@feedmepos/ui-library";
5
- import { d as b0 } from "./app-yofEsI_0.js";
5
+ import { d as b0 } from "./app-CtzSiHDU.js";
6
6
  import { useRouter as Be } from "vue-router";
7
7
  import { detectLocale as J0 } from "@feedmepos/mf-common";
8
- import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C8r-uiGo.js";
8
+ import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BapDZHRO.js";
9
9
  function pe(T) {
10
10
  throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
11
11
  }
@@ -1,6 +1,6 @@
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 O, createElementBlock as U, unref as f, createVNode as x } from "vue";
2
- import { u as W, b as q, O as G, C as H } from "./vue-i18n-Bv_lm6ws.js";
3
- import { d as r } from "./app-yofEsI_0.js";
2
+ import { u as W, b as q, O as G, C as H } from "./vue-i18n-C2J89jPf.js";
3
+ import { d as r } from "./app-CtzSiHDU.js";
4
4
  import { detectLocale as E } from "@feedmepos/mf-common";
5
5
  import { storeToRefs as K } from "pinia";
6
6
  var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {}), L = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(L || {});
@@ -1,8 +1,8 @@
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-Vbz3Y3D7.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BD0BTGku.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, e as w } from "./vue-i18n-Bv_lm6ws.js";
5
+ import { u as q, e as w } from "./vue-i18n-C2J89jPf.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,
@@ -1,15 +1,15 @@
1
1
  import { computed as m, defineComponent as je, ref as T, onMounted as nt, onBeforeUnmount as sa, resolveComponent as ve, createBlock as Ce, openBlock as G, Transition as Ha, withCtx as Pe, createElementBlock as ge, createCommentVNode as Te, createElementVNode as Q, unref as r, normalizeStyle as Ue, withModifiers as xt, toDisplayString as He, createVNode as ce, Fragment as Ke, renderList as wt, normalizeClass as ze, watch as Ve, nextTick as Ye, mergeModels as ct, useModel as at, renderSlot as dt, h as tn, toRaw as Wa, markRaw as Ea, createTextVNode as gn, onUnmounted as ia, resolveDynamicComponent as Oa, withDirectives as Ua, vShow as Ka } from "vue";
2
- import { W as le, e as Pt, f as Ya, S as yt, v as Ot, g as qa, h as mn, i as ua, q as ca, R as Lt, j as Xa, D as it, c as Oe, C as tt, a as Ga, b as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-5_-2t_C6.js";
3
- import { u as pt, b as Ut, a as Mn, h as Za } from "./vue-i18n-Bv_lm6ws.js";
4
- import { d as yn, _ as Qa, a as eo, b as to, c as no } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C8r-uiGo.js";
2
+ import { W as le, e as Pt, f as Ya, S as yt, v as Ot, g as qa, h as mn, i as ua, q as ca, R as Lt, j as Xa, D as it, c as Oe, C as tt, a as Ga, b as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Cw77LHc6.js";
3
+ import { u as pt, b as Ut, a as Mn, h as Za } from "./vue-i18n-C2J89jPf.js";
4
+ import { d as yn, _ as Qa, a as eo, b as to, c as no } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BapDZHRO.js";
5
5
  import { storeToRefs as ut, defineStore as da } from "pinia";
6
6
  import { C as bn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as ao } from "@feedmepos/mf-common";
8
8
  import { useBreakpoints as Fn, useSnackbar as Bn, components as oo } from "@feedmepos/ui-library";
9
- import { t as lo, z as ro, a as so, e as io, d as Dt } from "./app-yofEsI_0.js";
10
- import { _ as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DCnW5kSR.js";
9
+ import { t as lo, z as ro, a as so, e as io, d as Dt } from "./app-CtzSiHDU.js";
10
+ import { _ as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Csm4PBo9.js";
11
11
  import { r as bt } from "./i18n-CI_sQ5d_.js";
12
- import { _ as Cn } from "./NoData.vue_vue_type_script_setup_true_lang-B_9FoeId.js";
12
+ import { _ as Cn } from "./NoData.vue_vue_type_script_setup_true_lang-Ciqchgbw.js";
13
13
  var xn = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(xn || {}), gt = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(gt || {}), wn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(wn || {}), Sn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Sn || {}), kn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(kn || {}), _n = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(_n || {}), Tn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Tn || {}), Re = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Re || {});
14
14
  le.Circular, le.Table, le.BarChart, le.LineChart, le.StackBarChart, le.ClusteredStackBarChart, le.StackLineChart, le.Scorecard, le.Spacer;
15
15
  const uo = [
@@ -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 o, createElementVNode as a, 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 h, normalizeClass as L, resolveComponent as R, useModel as ae, createTextVNode as oe, isRef as j, nextTick as se } from "vue";
2
- import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-C1p1ivTM.js";
3
- import { _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C8r-uiGo.js";
4
- import { a as G, q as O, F as J, u as K, g as Y, b as re } from "./vue-i18n-Bv_lm6ws.js";
2
+ import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-CR-Zn72P.js";
3
+ import { _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BapDZHRO.js";
4
+ import { a as G, q as O, F as J, u as K, g as Y, b as re } from "./vue-i18n-C2J89jPf.js";
5
5
  import { storeToRefs as Q } from "pinia";
6
- import { d as W } from "./app-yofEsI_0.js";
6
+ import { d as W } from "./app-CtzSiHDU.js";
7
7
  import { C as ee, r as de } from "./chart-DDDh8zNk.js";
8
8
  import { components as E, useSnackbar as ce } from "@feedmepos/ui-library";
9
- import { _ as ue } from "./NoData.vue_vue_type_script_setup_true_lang-B_9FoeId.js";
10
- import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Vbz3Y3D7.js";
9
+ import { _ as ue } from "./NoData.vue_vue_type_script_setup_true_lang-Ciqchgbw.js";
10
+ import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BD0BTGku.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,12 +1,12 @@
1
1
  import { defineComponent as Z, mergeModels as Ae, useModel as te, computed as q, resolveComponent as D, createElementBlock as M, openBlock as w, createElementVNode as t, createCommentVNode as B, normalizeClass as Ge, Fragment as Ve, createBlock as E, withCtx as he, toDisplayString as A, renderList as Pe, createVNode as l, unref as u, h as S, normalizeStyle as st, createTextVNode as rt, ref as G, onUnmounted as Le, watch as De, isRef as Re, resolveDynamicComponent as Ue, mergeProps as Xe, onMounted as et } from "vue";
2
2
  import { useRouter as _e, useRoute as it } from "vue-router";
3
- import { u as oe, I as Se, o as dt, t as mt, d as Ie, e as je, b as Ce, A as be, v as pt, j as ut, n as Oe, w as Ee, x as Te, y as Be, z as We, B as ct, E as ft, G as gt, H as Je, c as lt, J as vt, K as yt, L as xt, M as bt, N as wt } from "./vue-i18n-Bv_lm6ws.js";
3
+ import { u as oe, I as Se, o as dt, t as mt, d as Ie, e as je, b as Ce, A as be, v as pt, j as ut, n as Oe, w as Ee, x as Te, y as Be, z as We, B as ct, E as ft, G as gt, H as Je, c as lt, J as vt, K as yt, L as xt, M as bt, N as wt } from "./vue-i18n-C2J89jPf.js";
4
4
  import { u as Ye } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as ke } from "@feedmepos/ui-library";
6
- import { d as Fe } from "./app-yofEsI_0.js";
7
- import { u as Ne, h as we, e as W } from "./useRestaurantPermission-R6V-93ZN.js";
6
+ import { d as Fe } from "./app-CtzSiHDU.js";
7
+ import { u as Ne, h as we, e as W } from "./useRestaurantPermission-Eu6RZQff.js";
8
8
  import { storeToRefs as qe } from "pinia";
9
- import { _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C8r-uiGo.js";
9
+ import { _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BapDZHRO.js";
10
10
  const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, ht = { class: "w-[100%]" }, Ct = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, kt = { class: "w-[100%] flex flex-row gap-[4px]" }, $t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, St = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, At = {
11
11
  key: 0,
12
12
  class: "w-[24px] flex items-center"