@feedmepos/mf-report 5.32.3-beta.0 → 5.33.0-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.
Files changed (40) hide show
  1. package/dist/App-ZE1kA1jU.js +358 -0
  2. package/dist/{DateRangeSelect-BS73I-EY.js → DateRangeSelect-B10B3ZaN.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-D0mOTzcw.js → Default.vue_vue_type_script_setup_true_lang-dtu8Gum_.js} +1 -1
  4. package/dist/{DigestListView-C8FI4P9l.js → DigestListView-CqyxDNR_.js} +3 -3
  5. package/dist/{DigestReaderView-uYimDn1a.js → DigestReaderView-ILhtZ6ke.js} +4 -4
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-g0wq9TN7.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Dk6NA-nL.js} +7 -7
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C6Kk1Oc6.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Do8UrF5k.js} +753 -753
  8. package/dist/{InsightView-CYY3JR4R.js → InsightView-cZx4gAxG.js} +5 -5
  9. package/dist/{Integration-CV75SnmP.js → Integration-CgEy3mhX.js} +3 -3
  10. package/dist/{Integrations-CtE730pa.js → Integrations-BTy2r5Au.js} +2 -2
  11. package/dist/{Layout-DjQ9AR4L.js → Layout-B3MnHb6_.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CLZJZtaS.js → LocationSelect.vue_vue_type_script_setup_true_lang-DqPi50ty.js} +1752 -1743
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BkCwTEZ8.js → MenuTab.vue_vue_type_script_setup_true_lang-DGMEWWMl.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BnbjdkWg.js → NavigationTab.vue_vue_type_script_setup_true_lang-CS-gvEAf.js} +3187 -3187
  15. package/dist/{OverviewView-DrLXEnyQ.js → OverviewView-CnsSS3dA.js} +5 -5
  16. package/dist/Report-aCXfcgbD.js +722 -0
  17. package/dist/{ReportCanvasView-uSPSmxoS.js → ReportCanvasView-DJiD7cHf.js} +5 -5
  18. package/dist/{ReportEditor-DdmeWp-N.js → ReportEditor-D6VOw4xg.js} +7 -7
  19. package/dist/{ReportView-DP-3aapL.js → ReportView-DHxQQHdv.js} +64 -62
  20. package/dist/{ReportViewRoute-Djtc4rpu.js → ReportViewRoute-R7QAQx-y.js} +2 -2
  21. package/dist/{Setting-Co0Fv5PF.js → Setting-C3q0gsVs.js} +3 -3
  22. package/dist/Template-DulgV4HH.js +557 -0
  23. package/dist/{TileEditor-lbcwAmG7.js → TileEditor-B04Vkqd4.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Bewf5Mwf.js → TilePageStack.vue_vue_type_script_setup_true_lang-Cn6yji3z.js} +2 -2
  25. package/dist/{TransitionFade-BvzD7CKL.js → TransitionFade-B0IFIQeH.js} +6 -6
  26. package/dist/{app-Bvy-gTq7.js → app-60Wbr-Yr.js} +2516 -2448
  27. package/dist/app.js +2 -2
  28. package/dist/assets/{formatChartData.worker-McooHFG-.js → formatChartData.worker-o6kHvamD.js} +4 -4
  29. package/dist/assets/{processTableData.worker-B6m0dNAb.js → processTableData.worker-B7UZDrcg.js} +4 -4
  30. package/dist/{currency-CAUD27u3.js → currency-JlsW9tkr.js} +1 -1
  31. package/dist/{index-D9j1ly8Z.js → index-BcttP7wp.js} +15 -15
  32. package/dist/{report-B4jAut5H.js → report-CN9S4Zga.js} +132 -132
  33. package/dist/style.css +1 -1
  34. package/dist/{useDigestFont-6hcS7_aG.js → useDigestFont-CyF_Sl2L.js} +1 -1
  35. package/dist/{useReportCanvasPanel-C2iiBQZf.js → useReportCanvasPanel-DHUVpFYD.js} +3 -3
  36. package/dist/{useRestaurantPermission-D6WmoPR2.js → useRestaurantPermission-BjxYCII1.js} +1 -1
  37. package/package.json +2 -2
  38. package/dist/App-BNQfnOS8.js +0 -339
  39. package/dist/Report-BFeedwld.js +0 -712
  40. package/dist/Template-Dmfdlx_-.js +0 -522
@@ -0,0 +1,358 @@
1
+ import { defineComponent as pe, resolveComponent as Z, createBlock as fe, openBlock as C, unref as l, isRef as Ke, withCtx as P, createElementVNode as re, createVNode as V, toDisplayString as se, createTextVNode as We, onMounted as ge, watch as z, ref as j, computed as ie, onBeforeMount as Pe, onBeforeUnmount as Ge, createElementBlock as G, Fragment as He } from "vue";
2
+ import { detectLocale as K, useCoreStore as H } from "@feedmepos/mf-common";
3
+ import { d as Y, u as Xe, a as ce, b as Ze, c as ue, e as Ve, f as Ye, g as Me, r as X, h as de, t as et, z as tt, i as nt } from "./app-60Wbr-Yr.js";
4
+ import { storeToRefs as N } from "pinia";
5
+ import { u as at } from "./global-loader-BuxFfehu.js";
6
+ import { u as ot, a as rt } from "./report-CN9S4Zga.js";
7
+ import { u as st, _ as it } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CS-gvEAf.js";
8
+ import { u as le } from "./message-dialog-UoMWOnil.js";
9
+ import { u as ct } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
+ import { useRoute as ut, useRouter as dt } from "vue-router";
11
+ const lt = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, mt = /* @__PURE__ */ pe({
12
+ __name: "Dialog",
13
+ setup(O) {
14
+ const { t: d } = ct(), b = le(), { isOpened: R, message: E, title: w } = N(le());
15
+ return (T, m) => {
16
+ const u = Z("FmButton"), p = Z("FmDialog");
17
+ return C(), fe(p, {
18
+ modelValue: l(R),
19
+ "onUpdate:modelValue": m[0] || (m[0] = (A) => Ke(R) ? R.value = A : null),
20
+ overlay: "",
21
+ "close-button": !1,
22
+ "z-index": 3e3
23
+ }, {
24
+ "dialog-header": P(() => [
25
+ We(se(l(w)), 1)
26
+ ]),
27
+ default: P(() => [
28
+ re("p", lt, se(l(E)), 1)
29
+ ]),
30
+ "dialog-footer": P(() => [
31
+ m[1] || (m[1] = re("div", { class: "grow" }, null, -1)),
32
+ V(u, {
33
+ label: l(d)("report.common.cancel"),
34
+ variant: "tertiary",
35
+ onClick: l(b).dismiss
36
+ }, null, 8, ["label", "onClick"]),
37
+ V(u, {
38
+ label: l(d)("report.common.confirm"),
39
+ onClick: l(b).confirm
40
+ }, null, 8, ["label", "onClick"])
41
+ ]),
42
+ _: 1
43
+ }, 8, ["modelValue"]);
44
+ };
45
+ }
46
+ }), me = j(K());
47
+ function pt() {
48
+ const O = (d) => {
49
+ switch (me.value = d, d) {
50
+ case "zh-CN":
51
+ Y.locale("zh-cn");
52
+ break;
53
+ default:
54
+ Y.locale("en");
55
+ break;
56
+ }
57
+ };
58
+ return ge(() => {
59
+ O(K());
60
+ }), z(() => K(), O, { deep: !0, immediate: !0 }), {
61
+ currentLocale: me
62
+ };
63
+ }
64
+ Y.locale(K() === "zh-CN" ? "zh-cn" : "en");
65
+ const ft = ["src"], gt = ["src"], bt = /* @__PURE__ */ pe({
66
+ __name: "App",
67
+ setup(O) {
68
+ const { scope: d, businessId: b, isFoodCourt: R, token: E, country: w } = N(Xe()), {
69
+ sessionUser: T,
70
+ currentBusiness: m,
71
+ currentFoodCourt: u,
72
+ currentContextType: p,
73
+ currentCountry: A,
74
+ registerSidebarComponent: ve
75
+ } = H(), {
76
+ getRestaurantAndWarehouse: ye,
77
+ getBusinessSetting: Se,
78
+ beginBusinessLoad: De,
79
+ completeBusinessLoad: he,
80
+ resetTimezoneContext: Ie
81
+ } = ce(), _e = Ze(), { getFeatureFlags: Re } = _e, { version: S } = N(ue()), { getSettings: Ee } = Ve(), { loadHasDigest: Le } = Ye(), { promptLoader: be } = at(), n = ut(), $ = dt(), k = ot(), M = st(), r = ce(), B = ue(), { suppressReportRouteSync: F } = N(B), { getReports: we, getOverviewReport: Ae, getReportConfig: ke, currentReportId: ee } = k, { currentReportId: qe, reports: Ce } = N(k), { getSchema: ze } = rt(), { fetchSchedules: Ne } = M, { init: Oe } = Me(), W = j("v5"), x = j(!1), J = j(!0), Te = ie(() => `https://portal-v1.feedmedev.cc/b/${b.value}/report/CLOSE_UP?showHeader=false&country=${w.value.toUpperCase()}&menuOption=business-report&token=${E.value}&v2=true&reportV5Button=true`), $e = ie(() => `https://report-v4.feedmedev.cc?businessId=${b.value}&country=${w.value}&token=${E.value}&reportV3Button=true`);
82
+ function Be() {
83
+ var t, e;
84
+ return (p == null ? void 0 : p.value) === "foodCourt" ? (t = u == null ? void 0 : u.value) != null && t._id ? { type: "foodCourt", id: u.value._id } : null : (e = m.value) != null && e.id ? { type: "business", id: m.value.id } : null;
85
+ }
86
+ z(
87
+ [
88
+ () => p == null ? void 0 : p.value,
89
+ () => m.value,
90
+ () => u == null ? void 0 : u.value,
91
+ () => T.value,
92
+ () => A.value
93
+ ],
94
+ () => {
95
+ var e;
96
+ const t = Be();
97
+ t && T.value && A.value && (X(d.value) !== X(t) && (d.value = t), E.value = ((e = T.value) == null ? void 0 : e.token) ?? "", w.value = A.value ?? "");
98
+ },
99
+ { immediate: !0 }
100
+ );
101
+ function te(t) {
102
+ if (typeof t.data == "string")
103
+ try {
104
+ const e = JSON.parse(t.data);
105
+ (e == null ? void 0 : e.token) !== "" && (e == null ? void 0 : e.token) !== void 0 && (E.value = e.token);
106
+ } catch (e) {
107
+ console.error(e);
108
+ }
109
+ }
110
+ function ne(t) {
111
+ if (typeof t.data == "string")
112
+ try {
113
+ const e = JSON.parse(t.data);
114
+ (e == null ? void 0 : e.v5) === !0 ? S.value = W.value : (e == null ? void 0 : e.v3) === !0 && (S.value = "v3");
115
+ } catch (e) {
116
+ console.error(e);
117
+ }
118
+ }
119
+ z(S, () => {
120
+ ["v3", "v4"].includes(S.value) ? H().hideSidebarToggle(!0) : H().hideSidebarToggle(!1);
121
+ }), Pe(() => {
122
+ ve(it);
123
+ }), ge(() => {
124
+ console.log("5.33.0-beta.0", !0), window.addEventListener("message", te), window.addEventListener("message", ne);
125
+ }), Ge(() => {
126
+ window.removeEventListener("message", te), window.removeEventListener("message", ne), k.$dispose(), M.$dispose();
127
+ });
128
+ function Fe(t) {
129
+ try {
130
+ return decodeURIComponent(t);
131
+ } catch {
132
+ return t;
133
+ }
134
+ }
135
+ function Q(t) {
136
+ if (typeof t != "string" || t.length === 0) return;
137
+ const e = t.includes("%") ? [t, Fe(t)] : [t];
138
+ for (const o of e)
139
+ try {
140
+ const a = JSON.parse(o);
141
+ if (typeof a == "string")
142
+ try {
143
+ return JSON.parse(a);
144
+ } catch {
145
+ return a;
146
+ }
147
+ return a;
148
+ } catch {
149
+ }
150
+ }
151
+ function ae(t) {
152
+ if (!t || typeof t != "object") return !1;
153
+ const e = t;
154
+ return typeof e.hour == "number" && typeof e.minute == "number";
155
+ }
156
+ function f(t, e, o) {
157
+ if (typeof t != "string" || t.length === 0) return;
158
+ const a = et(t, o);
159
+ return e === "start" ? tt(a, o) : nt(a, o);
160
+ }
161
+ function xe(t = n.query) {
162
+ const e = t, o = r.timezone, a = f(e.startDate, "start", o), g = f(e.endDate, "end", o), i = typeof e.timeStart == "string", D = typeof e.timeEnd == "string", h = Q(e.timeStart), I = Q(e.timeEnd), q = ae(h) ? h : null, v = ae(I) ? I : null, L = f(e.compareStartDate, "start", o), c = f(e.compareEndDate, "end", o), U = e.isAllLocation === "true" || e.isAllLocation === void 0;
163
+ let y = [];
164
+ if (U)
165
+ y = r.selectedLocationIds ?? [];
166
+ else {
167
+ const s = Q(e.locationIds);
168
+ y = Array.isArray(s) ? s : [];
169
+ }
170
+ let _ = e.reportId || ee;
171
+ if (Ce.value.find((s) => s.id === _) || (_ = ee), _ && _ !== k.currentReportId && k.updateCurrentReportId(_), a || g) {
172
+ const s = r.dateRange;
173
+ (s.startDate !== a || s.endDate !== g) && r.setDateRange({ startDate: a, endDate: g });
174
+ }
175
+ if (i || D) {
176
+ const s = r.timeRange;
177
+ (s.start !== q || s.end !== v) && r.setTimeRange({ start: q, end: v });
178
+ }
179
+ if (L || c) {
180
+ const s = r.compareDateRange;
181
+ (s.startDate !== L || s.endDate !== c) && r.setCompareDateRange({
182
+ startDate: L,
183
+ endDate: c
184
+ });
185
+ }
186
+ if (!U) {
187
+ const s = r.selectedLocationIds;
188
+ s.length === y.length && s.every((Ue, je) => Ue === y[je]) || r.setSelectedLocationIds(y);
189
+ }
190
+ return {
191
+ // TODO: this returned value can used for getBusinessSetting
192
+ reportId: _,
193
+ startDate: e.startDate,
194
+ endDate: e.endDate,
195
+ timeStart: e.timeStart,
196
+ timeEnd: e.timeEnd,
197
+ compareStartDate: e.compareStartDate,
198
+ compareEndDate: e.compareEndDate,
199
+ locationIds: typeof e.locationIds == "string" ? e.locationIds : void 0,
200
+ isAllLocation: e.isAllLocation
201
+ };
202
+ }
203
+ return z(
204
+ () => X(d.value),
205
+ async (t, e) => {
206
+ if (t !== "") {
207
+ x.value = !1, De(t);
208
+ const o = "mf-report-prev-business-id", a = (() => {
209
+ try {
210
+ return sessionStorage.getItem(o);
211
+ } catch {
212
+ return null;
213
+ }
214
+ })(), g = !!a && a !== t;
215
+ let i = { ...n.query }, D = !1;
216
+ if (!J.value || e !== void 0 || g) {
217
+ Ie(), r.setSelectedLocationIds([]);
218
+ const {
219
+ locationIds: h,
220
+ startDate: I,
221
+ endDate: q,
222
+ timeStart: v,
223
+ timeEnd: L,
224
+ compareStartDate: c,
225
+ compareEndDate: U,
226
+ ...y
227
+ } = n.query;
228
+ i = {
229
+ ...y,
230
+ isAllLocation: "true"
231
+ }, D = !0, await $.replace({
232
+ name: n.name,
233
+ params: n.params,
234
+ query: i
235
+ });
236
+ }
237
+ F.value !== void 0 && (F.value = !0), await be(async () => {
238
+ await Oe({
239
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
240
+ url: "https://flag.feedme.farm/api/v1/",
241
+ enableAnalytics: !1,
242
+ cacheFlags: !1
243
+ });
244
+ const h = await ke();
245
+ W.value = h.version, S.value = W.value, await Re(), n.name === "template" && !B.canAccessTemplate() && await $.replace({
246
+ name: "reports",
247
+ query: n.query
248
+ });
249
+ const I = B.canAccess(
250
+ de.report_accessOverview
251
+ ), q = B.canAccess(
252
+ de.report_accessIntegration
253
+ ), v = [
254
+ ze(),
255
+ Ne(),
256
+ we(),
257
+ ye(
258
+ (() => {
259
+ const c = Q(i.locationIds);
260
+ return Array.isArray(c) ? c : void 0;
261
+ })()
262
+ )
263
+ ];
264
+ I && v.push(Ae()), q && !R.value && v.push(Ee()), R.value || v.push(Le());
265
+ const L = await Promise.allSettled(v);
266
+ for (const c of L)
267
+ c.status === "rejected" && console.log(c.reason);
268
+ if (await Se(), xe(i), D) {
269
+ const {
270
+ locationIds: c,
271
+ startDate: U,
272
+ endDate: y,
273
+ timeStart: _,
274
+ timeEnd: Je,
275
+ compareStartDate: s,
276
+ compareEndDate: Qe,
277
+ ...oe
278
+ } = n.query;
279
+ (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 $.replace({
280
+ name: n.name,
281
+ params: n.params,
282
+ query: {
283
+ ...oe,
284
+ isAllLocation: "true"
285
+ }
286
+ });
287
+ }
288
+ he(t);
289
+ try {
290
+ sessionStorage.setItem(o, t);
291
+ } catch {
292
+ }
293
+ }), x.value = !0, J.value && (J.value = !1);
294
+ }
295
+ },
296
+ {
297
+ immediate: !0
298
+ }
299
+ ), z(
300
+ () => (x.value, {
301
+ reportId: qe.value,
302
+ selectedLocationIds: r.selectedLocationIds,
303
+ dateRange: r.dateRange,
304
+ timeRange: r.timeRange,
305
+ compareDateRange: r.compareDateRange,
306
+ timezone: r.timezone
307
+ }),
308
+ (t) => {
309
+ if (!x.value || !t.reportId || J.value) return;
310
+ if (F.value) {
311
+ F.value = !1;
312
+ return;
313
+ }
314
+ const e = t.selectedLocationIds, o = t.dateRange, a = t.timeRange, g = t.compareDateRange, i = {
315
+ ...n.query,
316
+ reportId: t.reportId,
317
+ startDate: f(o.startDate, "start", t.timezone),
318
+ endDate: f(o.endDate, "end", t.timezone),
319
+ compareStartDate: f(
320
+ g.startDate,
321
+ "start",
322
+ t.timezone
323
+ ),
324
+ compareEndDate: f(g.endDate, "end", t.timezone),
325
+ timeStart: a.start ? JSON.stringify(a.start) : void 0,
326
+ timeEnd: a.end ? JSON.stringify(a.end) : void 0
327
+ }, D = e.length === r.locations.length;
328
+ i.isAllLocation = String(D), D ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
329
+ const h = JSON.stringify(n.query), I = JSON.stringify(i);
330
+ h !== I && $.replace({
331
+ name: n.name,
332
+ params: n.params,
333
+ query: i
334
+ });
335
+ },
336
+ { deep: !0 }
337
+ ), pt(), (t, e) => {
338
+ const o = Z("router-view");
339
+ return C(), G(He, null, [
340
+ V(mt),
341
+ l(S) === "v3" ? (C(), G("iframe", {
342
+ key: 0,
343
+ title: "Report v3",
344
+ class: "bg-white h-full w-full",
345
+ src: Te.value
346
+ }, null, 8, ft)) : l(S) === "v4" ? (C(), G("iframe", {
347
+ key: 1,
348
+ title: "Report v4",
349
+ class: "bg-white h-full w-full",
350
+ src: $e.value
351
+ }, null, 8, gt)) : (C(), fe(o, { key: 2 }))
352
+ ], 64);
353
+ };
354
+ }
355
+ });
356
+ export {
357
+ bt as default
358
+ };
@@ -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-Bvy-gTq7.js";
2
+ import { d as i, a as he, i as Q, z as X, C as E, s as Ce, t as be } from "./app-60Wbr-Yr.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-BnbjdkWg.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CS-gvEAf.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-D0mOTzcw.js";
5
+ import { _ as re } from "./Default.vue_vue_type_script_setup_true_lang-dtu8Gum_.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-6hcS7_aG.js";
8
+ import { c as ie, d as Kt, u as ce, a as ue, n as de, _ as he, D as pe } from "./useDigestFont-CyF_Sl2L.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-Bvy-gTq7.js";
11
+ import { j as me, f as ge, A as ve, k as Ct, l as ye, m as Me } from "./app-60Wbr-Yr.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-D0mOTzcw.js";
5
+ import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-dtu8Gum_.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-C2iiBQZf.js";
8
- import { b as Ct, d as St, a as Vt, _ as Rt, D as Pt } from "./useDigestFont-6hcS7_aG.js";
9
- import { f as Tt, m as Et, n as It, A as we } from "./app-Bvy-gTq7.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-DHUVpFYD.js";
8
+ import { b as Ct, d as St, a as Vt, _ as Rt, D as Pt } from "./useDigestFont-CyF_Sl2L.js";
9
+ import { f as Tt, n as Et, o as It, A as we } from "./app-60Wbr-Yr.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-C6Kk1Oc6.js";
3
- import { u as Ln, ae as xn, a as _n, af as or } from "./app-Bvy-gTq7.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-B4jAut5H.js";
5
- import { c as Dn, w as Et } from "./currency-CAUD27u3.js";
6
- import { d as Xn } from "./DateRangeSelect-BS73I-EY.js";
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-Do8UrF5k.js";
3
+ import { u as Ln, af as xn, a as _n, ag as or } from "./app-60Wbr-Yr.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-CN9S4Zga.js";
5
+ import { c as Dn, w as Et } from "./currency-JlsW9tkr.js";
6
+ import { d as Xn } from "./DateRangeSelect-B10B3ZaN.js";
7
7
  import { storeToRefs as At } from "pinia";
8
8
  import { detectLocale as oo } from "@feedmepos/mf-common";
9
- import "./index-D9j1ly8Z.js";
9
+ import "./index-BcttP7wp.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";
@@ -3227,7 +3227,7 @@ function fs(e, t) {
3227
3227
  const n = be("FmMenuDivider");
3228
3228
  return j(), ye(n);
3229
3229
  }
3230
- const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-B6m0dNAb.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
3230
+ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-B7UZDrcg.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
3231
3231
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
3232
3232
  style: { backgroundColor: "#f9f9f9" }
3233
3233
  }, ys = { class: "font-bold" }, bs = { class: "text-fm-color-neutral-gray-300" }, Cs = /* @__PURE__ */ ze({