@feedmepos/mf-report 5.28.0-beta.0 → 5.28.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 (30) hide show
  1. package/dist/{App-D_Cnt2_w.js → App-BDhSFQX_.js} +37 -37
  2. package/dist/{DateRangeSelect-B6QocR7V.js → DateRangeSelect-CRsKMi0U.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CjkYcdoD.js → Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DYxl_gjE.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js} +5 -5
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-5p7KJx1m.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js} +5 -5
  6. package/dist/{InsightView-oBqB-x6Y.js → InsightView-lnOobZAr.js} +5 -5
  7. package/dist/{Integration-D83_ENwH.js → Integration-D5ssimUg.js} +3 -3
  8. package/dist/{Integrations-Dd-jSloN.js → Integrations-CaqGvkzI.js} +2 -2
  9. package/dist/{Layout-PVmjJ6ga.js → Layout-DS0XCT_E.js} +1 -1
  10. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-PQKRv81p.js → LocationSelect.vue_vue_type_script_setup_true_lang-DC9QYJk-.js} +2 -2
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Cnwj0lIB.js → MenuTab.vue_vue_type_script_setup_true_lang-nOukNXp3.js} +5 -5
  12. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B2IXNXS_.js → NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.js} +5 -5
  13. package/dist/{OverviewView-CAL_PAkw.js → OverviewView-BkIozvMs.js} +4 -4
  14. package/dist/{Report-C4tRHS9j.js → Report-HiSGRNhn.js} +3 -3
  15. package/dist/{ReportCanvasView-BB90EGgP.js → ReportCanvasView-ILVhB1KL.js} +3 -3
  16. package/dist/{ReportEditor-BHlH0__b.js → ReportEditor-B4tyVB8s.js} +7 -7
  17. package/dist/{ReportView-C37-Wgwc.js → ReportView-CIQQHvWT.js} +6 -6
  18. package/dist/{ReportViewRoute-C1haW0-x.js → ReportViewRoute-B3KwVB0v.js} +2 -2
  19. package/dist/{Setting-c66iFXKP.js → Setting-CvToMUKq.js} +3 -3
  20. package/dist/{Template-B05_6Klr.js → Template-BBQEaHrM.js} +3 -3
  21. package/dist/{TileEditor-C-HBoB-E.js → TileEditor-Cqy98LmJ.js} +6 -6
  22. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-DWdOrA-P.js → TilePageStack.vue_vue_type_script_setup_true_lang-CzggUdfI.js} +2 -2
  23. package/dist/{TransitionFade-oszzTdeW.js → TransitionFade-D-8BYs6T.js} +5 -5
  24. package/dist/{app-CSF-ZDAa.js → app-Bjt_JuJi.js} +13 -13
  25. package/dist/app.js +1 -1
  26. package/dist/assets/{formatChartData.worker-epD1fsTW.js → formatChartData.worker-BeBGCyYW.js} +1 -1
  27. package/dist/assets/{processTableData.worker-BJZ_Z45H.js → processTableData.worker-frTYV0ok.js} +39 -39
  28. package/dist/{report-BKfrG5Ry.js → report-DjGDWvm3.js} +1 -1
  29. package/dist/{useRestaurantPermission-BgWDPmEl.js → useRestaurantPermission-Dkbh_cv8.js} +1 -1
  30. package/package.json +1 -1
@@ -1,33 +1,33 @@
1
- import { defineComponent as me, resolveComponent as V, createBlock as pe, openBlock as A, unref as u, isRef as Be, withCtx as G, createElementVNode as oe, createVNode as Y, toDisplayString as ae, createTextVNode as Fe, onMounted as fe, watch as C, ref as U, computed as se, onBeforeMount as $e, onBeforeUnmount as xe, createElementBlock as H, Fragment as Je } from "vue";
2
- import { detectLocale as j, useCoreStore as X } from "@feedmepos/mf-common";
3
- import { d as q, u as Qe, a as ie, b as Ue, c as ce, e as je, f as We, g as de } from "./app-CSF-ZDAa.js";
1
+ import { defineComponent as me, resolveComponent as X, createBlock as pe, openBlock as A, unref as u, isRef as Fe, withCtx as W, createElementVNode as oe, createVNode as Y, toDisplayString as ae, createTextVNode as Ne, onMounted as fe, watch as C, ref as U, computed as se, onBeforeMount as $e, onBeforeUnmount as xe, createElementBlock as H, Fragment as Je } from "vue";
2
+ import { detectLocale as j, useCoreStore as V } from "@feedmepos/mf-common";
3
+ import { d as q, u as Qe, a as ie, b as Ue, c as ce, e as je, f as Pe, g as de } from "./app-Bjt_JuJi.js";
4
4
  import { storeToRefs as k } from "pinia";
5
- import { u as Ke } from "./global-loader-BuxFfehu.js";
6
- import { u as Pe, a as Ge } from "./report-BKfrG5Ry.js";
7
- import { u as He, _ as Xe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B2IXNXS_.js";
5
+ import { u as Ge } from "./global-loader-BuxFfehu.js";
6
+ import { u as Ke, a as We } from "./report-DjGDWvm3.js";
7
+ import { u as He, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.js";
8
8
  import { u as ue } from "./message-dialog-UoMWOnil.js";
9
- import { u as Ve } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
+ import { u as Xe } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
10
  import { useRoute as Ye, useRouter as Ze } from "vue-router";
11
11
  const Me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, et = /* @__PURE__ */ me({
12
12
  __name: "Dialog",
13
13
  setup(T) {
14
- const { t: c } = Ve(), f = ue(), { isOpened: g, message: R, title: L } = k(ue());
14
+ const { t: c } = Xe(), f = ue(), { isOpened: g, message: R, title: L } = k(ue());
15
15
  return (O, _) => {
16
- const z = V("FmButton"), W = V("FmDialog");
17
- return A(), pe(W, {
16
+ const z = X("FmButton"), P = X("FmDialog");
17
+ return A(), pe(P, {
18
18
  modelValue: u(g),
19
- "onUpdate:modelValue": _[0] || (_[0] = (K) => Be(g) ? g.value = K : null),
19
+ "onUpdate:modelValue": _[0] || (_[0] = (G) => Fe(g) ? g.value = G : null),
20
20
  overlay: "",
21
21
  "close-button": !1,
22
22
  "z-index": 3e3
23
23
  }, {
24
- "dialog-header": G(() => [
25
- Fe(ae(u(L)), 1)
24
+ "dialog-header": W(() => [
25
+ Ne(ae(u(L)), 1)
26
26
  ]),
27
- default: G(() => [
27
+ default: W(() => [
28
28
  oe("p", Me, ae(u(R)), 1)
29
29
  ]),
30
- "dialog-footer": G(() => [
30
+ "dialog-footer": W(() => [
31
31
  _[1] || (_[1] = oe("div", { class: "grow" }, null, -1)),
32
32
  Y(z, {
33
33
  label: u(c)("report.common.cancel"),
@@ -65,13 +65,13 @@ q.locale(j() === "zh-CN" ? "zh-cn" : "en");
65
65
  const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
66
66
  __name: "App",
67
67
  setup(T) {
68
- const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } = X(), {
68
+ const { businessId: c, token: f, country: g } = k(Qe()), { sessionUser: R, currentBusiness: L, currentCountry: O, registerSidebarComponent: _ } = V(), {
69
69
  getRestaurantAndWarehouse: z,
70
- getBusinessSetting: W,
71
- beginBusinessLoad: K,
70
+ getBusinessSetting: P,
71
+ beginBusinessLoad: G,
72
72
  completeBusinessLoad: ge,
73
73
  resetTimezoneContext: ye
74
- } = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } = Ke(), n = Ye(), N = Ze(), E = Pe(), Z = He(), a = ie(), B = ce(), { suppressReportRouteSync: F } = k(B), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = E, { currentReportId: Le, reports: Ee } = k(E), { getSchema: be } = Ge(), { fetchSchedules: we } = Z, { init: Ae } = We(), P = U("v5"), $ = U(!1), x = U(!0), Ce = se(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), ke = se(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${g.value}&token=${f.value}&reportV3Button=true`);
74
+ } = ie(), ve = Ue(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = je(), { promptLoader: he } = Ge(), n = Ye(), B = Ze(), E = Ke(), Z = He(), a = ie(), F = ce(), { suppressReportRouteSync: N } = k(F), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = E, { currentReportId: Le, reports: Ee } = k(E), { getSchema: be } = We(), { fetchSchedules: we } = Z, { init: Ae } = Pe(), K = U("v5"), $ = U(!1), x = U(!0), Ce = se(() => `https://portal-v1.feedme.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), ke = se(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${g.value}&token=${f.value}&reportV3Button=true`);
75
75
  C(
76
76
  [() => L.value, () => R.value, () => O.value],
77
77
  () => {
@@ -94,17 +94,17 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
94
94
  if (typeof t.data == "string")
95
95
  try {
96
96
  const e = JSON.parse(t.data);
97
- (e == null ? void 0 : e.v5) === !0 ? y.value = P.value : (e == null ? void 0 : e.v3) === !0 && (y.value = "v3");
97
+ (e == null ? void 0 : e.v5) === !0 ? y.value = K.value : (e == null ? void 0 : e.v3) === !0 && (y.value = "v3");
98
98
  } catch (e) {
99
99
  console.error(e);
100
100
  }
101
101
  }
102
102
  C(y, () => {
103
- ["v3", "v4"].includes(y.value) ? X().hideSidebarToggle(!0) : X().hideSidebarToggle(!1);
103
+ ["v3", "v4"].includes(y.value) ? V().hideSidebarToggle(!0) : V().hideSidebarToggle(!1);
104
104
  }), $e(() => {
105
- _(Xe);
105
+ _(Ve);
106
106
  }), fe(() => {
107
- console.log("5.28.0-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
107
+ console.log("5.28.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
108
108
  }), xe(() => {
109
109
  window.removeEventListener("message", ee), window.removeEventListener("message", te), E.$dispose(), Z.$dispose();
110
110
  });
@@ -168,7 +168,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
168
168
  }
169
169
  if (!Q) {
170
170
  const s = a.selectedLocationIds;
171
- s.length === p.length && s.every((ze, Ne) => ze === p[Ne]) || a.setSelectedLocationIds(p);
171
+ s.length === p.length && s.every((ze, Be) => ze === p[Be]) || a.setSelectedLocationIds(p);
172
172
  }
173
173
  return {
174
174
  // TODO: this returned value can used for getBusinessSetting
@@ -187,7 +187,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
187
187
  () => c.value,
188
188
  async (t, e) => {
189
189
  if (t !== "") {
190
- $.value = !1, K(t);
190
+ $.value = !1, G(t);
191
191
  const r = "mf-report-prev-business-id", o = (() => {
192
192
  try {
193
193
  return sessionStorage.getItem(r);
@@ -211,27 +211,27 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
211
211
  i = {
212
212
  ...p,
213
213
  isAllLocation: "true"
214
- }, v = !0, await N.replace({
214
+ }, v = !0, await B.replace({
215
215
  name: n.name,
216
216
  params: n.params,
217
217
  query: i
218
218
  });
219
219
  }
220
- F.value !== void 0 && (F.value = !0), await he(async () => {
220
+ N.value !== void 0 && (N.value = !0), await he(async () => {
221
221
  await Ae({
222
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
222
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
223
223
  url: "https://flag.feedme.farm/api/v1/",
224
224
  enableAnalytics: !1,
225
225
  cacheFlags: !1
226
226
  });
227
227
  const S = await Re();
228
- P.value = S.version, y.value = P.value, await Se(), n.name === "template" && !B.canAccessTemplate() && await N.replace({
228
+ K.value = S.version, y.value = K.value, await Se(), n.name === "template" && !F.canAccessTemplate() && await B.replace({
229
229
  name: "reports",
230
230
  query: n.query
231
231
  });
232
- const D = B.canAccess(
232
+ const D = F.canAccess(
233
233
  de.report_accessOverview
234
- ), b = B.canAccess(
234
+ ), b = F.canAccess(
235
235
  de.report_accessIntegration
236
236
  ), h = [
237
237
  be(),
@@ -244,7 +244,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
244
244
  })()
245
245
  )
246
246
  ];
247
- if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await W(), Te(i), v) {
247
+ if (D && h.push(_e()), b && h.push(De()), await Promise.all(h), await P(), Te(i), v) {
248
248
  const {
249
249
  locationIds: m,
250
250
  startDate: w,
@@ -255,7 +255,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
255
255
  compareEndDate: s,
256
256
  ...re
257
257
  } = n.query;
258
- (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 N.replace({
258
+ (n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await B.replace({
259
259
  name: n.name,
260
260
  params: n.params,
261
261
  query: {
@@ -286,8 +286,8 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
286
286
  }),
287
287
  (t) => {
288
288
  if (!$.value || !t.reportId || x.value) return;
289
- if (F.value) {
290
- F.value = !1;
289
+ if (N.value) {
290
+ N.value = !1;
291
291
  return;
292
292
  }
293
293
  const e = t.selectedLocationIds, r = t.dateRange, o = t.timeRange, d = t.compareDateRange, i = {
@@ -306,7 +306,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
306
306
  }, v = e.length === a.locations.length;
307
307
  i.isAllLocation = String(v), v ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
308
308
  const S = JSON.stringify(n.query), D = JSON.stringify(i);
309
- S !== D && N.replace({
309
+ S !== D && B.replace({
310
310
  name: n.name,
311
311
  params: n.params,
312
312
  query: i
@@ -314,7 +314,7 @@ const nt = ["src"], rt = ["src"], gt = /* @__PURE__ */ me({
314
314
  },
315
315
  { deep: !0 }
316
316
  ), tt(), (t, e) => {
317
- const r = V("router-view");
317
+ const r = X("router-view");
318
318
  return A(), H(Je, null, [
319
319
  Y(et),
320
320
  u(y) === "v3" ? (A(), H("iframe", {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as te, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as ce, withCtx as U, createCommentVNode as E, createElementVNode as I, toDisplayString as me, renderSlot as fe, mergeModels as K, useModel as z, ref as O, computed as L, watch as M, nextTick as J, onMounted as De, onBeforeUnmount as ye, createElementBlock as pe, unref as Y, createVNode as Q } from "vue";
2
- import { d as u, a as ge, C as P, j as ve } from "./app-CSF-ZDAa.js";
2
+ import { d as u, a as ge, C as P, j as ve } from "./app-Bjt_JuJi.js";
3
3
  import { detectLocale as X } from "@feedmepos/mf-common";
4
4
  import { u as he, _ as Ce } from "./_plugin-vue_export-helper-C6QDExPN.js";
5
5
  import { storeToRefs as be } 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-B2IXNXS_.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.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";
@@ -1,8 +1,8 @@
1
1
  import { computed as c, defineComponent as $e, ref as S, watch as De, onMounted as Et, onBeforeUnmount as Oo, resolveComponent as ye, createBlock as ve, openBlock as Y, Transition as za, withCtx as Ae, createElementBlock as pe, createCommentVNode as Ce, createElementVNode as Q, unref as l, normalizeStyle as Fe, withModifiers as bn, toDisplayString as Pe, createVNode as be, Fragment as Ke, renderList as _t, normalizeClass as Re, nextTick as Uo, mergeModels as tt, useModel as nt, renderSlot as ft, h as mn, createSlots as Ha, resolveDynamicComponent as Ko, markRaw as bo, toRaw as Wa, createTextVNode as Oa, onUnmounted as Yo, provide as Ua, inject as Ka, withDirectives as Ya, vShow as Xa } from "vue";
2
- import { u as Ea, h as ja, i as Xo, j as Ga, q as Co } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-5p7KJx1m.js";
3
- import { V as Cn, a as wn, u as Eo, W as qa } from "./app-CSF-ZDAa.js";
4
- import { W as Z, S as qe, v as Ut, F as Wt, c as pn, w as Vn, d as Ja, o as Za, x as Qa, E as Mt, y as er } from "./report-BKfrG5Ry.js";
5
- import { d as On } from "./DateRangeSelect-B6QocR7V.js";
2
+ import { u as Ea, h as ja, i as Xo, j as Ga, q as Co } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js";
3
+ import { V as Cn, a as wn, u as Eo, W as qa } from "./app-Bjt_JuJi.js";
4
+ import { W as Z, S as qe, v as Ut, F as Wt, c as pn, w as Vn, d as Ja, o as Za, x as Qa, E as Mt, y as er } from "./report-DjGDWvm3.js";
5
+ import { d as On } from "./DateRangeSelect-CRsKMi0U.js";
6
6
  import { storeToRefs as Yt } from "pinia";
7
7
  import { detectLocale as Qn } from "@feedmepos/mf-common";
8
8
  import { C as Un } from "./chart-DDDh8zNk.js";
@@ -3212,7 +3212,7 @@ function rs(e, t) {
3212
3212
  const n = ye("FmMenuDivider");
3213
3213
  return Y(), ve(n);
3214
3214
  }
3215
- const ls = /* @__PURE__ */ jo(as, [["render", rs]]), ss = "/assets/processTableData.worker-BJZ_Z45H.js", is = { class: "flex h-full flex-col" }, us = { class: "my-4 shrink-0" }, cs = {
3215
+ const ls = /* @__PURE__ */ jo(as, [["render", rs]]), ss = "/assets/processTableData.worker-frTYV0ok.js", is = { class: "flex h-full flex-col" }, us = { class: "my-4 shrink-0" }, cs = {
3216
3216
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
3217
3217
  style: { backgroundColor: "#f9f9f9" }
3218
3218
  }, ds = { class: "font-bold" }, fs = { class: "text-fm-color-neutral-gray-300" }, ms = /* @__PURE__ */ $e({
@@ -1,7 +1,7 @@
1
1
  import { ref as h1, computed as g1, defineComponent as wt, mergeModels as et, useModel as St, watch as Z1, resolveComponent as e1, createElementBlock as O1, openBlock as j0, createVNode as J0, withCtx as l1, createElementVNode as Y0, createCommentVNode as Et, Fragment as pe, renderList as Tt, createBlock as F1, unref as g0, createTextVNode as tt, withDirectives as la, toDisplayString as f1, vShow as pa, renderSlot as vr, normalizeStyle as ca, normalizeClass as Dr, withModifiers as ft } from "vue";
2
- import { c as Pr, _ as Jr, D as Ma, e as ba } from "./DateRangeSelect-B6QocR7V.js";
3
- import { $ as _a, Y as da, d as F0, u as G1, c as Fe, a as de, F as V1, X as vt, r as ne, g as za, h as Aa } from "./app-CSF-ZDAa.js";
4
- import { b as H0, C as k0, Q as Ve, u as ze, o as oe, p as Te, D as D1, a as Oa, x as fr, W as yr, A as Da, S as $r } from "./report-BKfrG5Ry.js";
2
+ import { c as Pr, _ as Jr, D as Ma, e as ba } from "./DateRangeSelect-CRsKMi0U.js";
3
+ import { $ as _a, Y as da, d as F0, u as G1, c as Fe, a as de, F as V1, X as vt, r as ne, g as za, h as Aa } from "./app-Bjt_JuJi.js";
4
+ import { b as H0, C as k0, Q as Ve, u as ze, o as oe, p as Te, D as D1, a as Oa, x as fr, W as yr, A as Da, S as $r } from "./report-DjGDWvm3.js";
5
5
  import { defineStore as Hr, storeToRefs as o1 } from "pinia";
6
6
  import { detectLocale as te } from "@feedmepos/mf-common";
7
7
  import { u as Xr } from "./_plugin-vue_export-helper-C6QDExPN.js";
@@ -9808,7 +9808,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9808
9808
  }, t.recordSchema_closure.prototype = {
9809
9809
  call$1(r) {
9810
9810
  var e = null, n = "openedAt", a = "closedAt", o = "openAmount";
9811
- 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$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, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Counter ID", "counterId", "counter.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Counter", "counterName", "counter.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "openById", "openedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Open user", "openByName", "openedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "closedById", "closedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Close user", "closedByName", "closedBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Open time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Close time", a, a, e, r), t.Field_Field$numeric("Cash float amount when counter session was opened", e, !1, !1, "Open amount", o, o, e, r), t.Field_Field$numeric("Expected closing cash balance for the counter session", e, !1, !1, "Close amount", "amount", "amount", e, r), t.Field_Field$numeric(e, e, !1, !1, "Cash sale", "cashSale", e, "(select sum(payments.total) from payments where payments.restaurant_id=@restaurant_id and payments.payment_created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=payments.counter_id and payments.name='CASH' and payments.total>=0)", r), t.Field_Field$numeric(e, e, !1, !1, "Cash refund", "cashRefund", e, "(select sum(payments.total) from payments where payments.restaurant_id=@restaurant_id and payments.payment_created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=payments.counter_id and payments.name='CASH' and payments.total<0)", r), t.Field_Field$numeric(e, e, !1, !1, "Member store cash sale", "memberStoreCashSale", e, "(select sum(member_store_purchase_payments.total) from member_store_purchase_payments where member_store_purchase_payments.restaurant_id=@restaurant_id and member_store_purchase_payments.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=member_store_purchase_payments.counter_id and member_store_purchase_payments.name='CASH' and member_store_purchase_payments.is_refund is not true)", r), t.Field_Field$numeric(e, e, !1, !1, "Member store cash refund", "memberStoreCashRefund", e, "(select sum(member_store_purchase_payments.total) from member_store_purchase_payments where member_store_purchase_payments.restaurant_id=@restaurant_id and member_store_purchase_payments.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=member_store_purchase_payments.counter_id and member_store_purchase_payments.name='CASH' and member_store_purchase_payments.is_refund is true)", r), t.Field_Field$numeric(e, e, !1, !1, "Cash in", "cashIn", e, "(select sum(drawers.amount) from drawers where drawers.restaurant_id=@restaurant_id and drawers.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=drawers.counter_id and drawers.amount>=0)", r), t.Field_Field$numeric(e, e, !1, !1, "Cash out", "cashOut", e, "(select sum(drawers.amount) from drawers where drawers.restaurant_id=@restaurant_id and drawers.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=drawers.counter_id and drawers.amount<0)", r)], z.JSArray_Field);
9811
+ 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$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, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Counter ID", "counterId", "counter.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Counter", "counterName", "counter.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "openById", "openedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Open user", "openByName", "openedBy.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "closedById", "closedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Close user", "closedByName", "closedBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Open time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Close time", a, a, e, r), t.Field_Field$numeric("Cash float amount when counter session was opened", e, !1, !1, "Open amount", o, o, e, r), t.Field_Field$numeric("Cash counted in the drawer at close and keyed in by the user", e, !1, !1, "Close amount", "amount", "amount", e, r), t.Field_Field$numeric(e, e, !1, !1, "Cash sale", "cashSale", e, "(select sum(payments.total) from payments where payments.restaurant_id=@restaurant_id and payments.payment_created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=payments.counter_id and payments.name='CASH' and payments.total>=0)", r), t.Field_Field$numeric(e, e, !1, !1, "Cash refund", "cashRefund", e, "(select sum(payments.total) from payments where payments.restaurant_id=@restaurant_id and payments.payment_created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=payments.counter_id and payments.name='CASH' and payments.total<0)", r), t.Field_Field$numeric(e, e, !1, !1, "Member store cash sale", "memberStoreCashSale", e, "(select sum(member_store_purchase_payments.total) from member_store_purchase_payments where member_store_purchase_payments.restaurant_id=@restaurant_id and member_store_purchase_payments.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=member_store_purchase_payments.counter_id and member_store_purchase_payments.name='CASH' and member_store_purchase_payments.is_refund is not true)", r), t.Field_Field$numeric(e, e, !1, !1, "Member store cash refund", "memberStoreCashRefund", e, "(select sum(member_store_purchase_payments.total) from member_store_purchase_payments where member_store_purchase_payments.restaurant_id=@restaurant_id and member_store_purchase_payments.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=member_store_purchase_payments.counter_id and member_store_purchase_payments.name='CASH' and member_store_purchase_payments.is_refund is true)", r), t.Field_Field$numeric(e, e, !1, !1, "Cash in", "cashIn", e, "(select sum(drawers.amount) from drawers where drawers.restaurant_id=@restaurant_id and drawers.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=drawers.counter_id and drawers.amount>=0)", r), t.Field_Field$numeric(e, e, !1, !1, "Cash out", "cashOut", e, "(select sum(drawers.amount) from drawers where drawers.restaurant_id=@restaurant_id and drawers.created_at between @opened_at and COALESCE(@closed_at, CURRENT_TIMESTAMP) and @counter_id=drawers.counter_id and drawers.amount<0)", r)], z.JSArray_Field);
9812
9812
  },
9813
9813
  $signature: 0
9814
9814
  }, t.recordSchema_closure0.prototype = {
@@ -25124,7 +25124,7 @@ var lr = {
25124
25124
  ...sl,
25125
25125
  ...pl
25126
25126
  }, Xn = /* @__PURE__ */ ((M) => (M.generating = "GENERATING", M.completed = "COMPLETED", M.failed = "FAILED", M.canceled = "CANCELLED", M))(Xn || {});
25127
- const cl = "/assets/formatChartData.worker-epD1fsTW.js", gt = /* @__PURE__ */ new Map();
25127
+ const cl = "/assets/formatChartData.worker-BeBGCyYW.js", gt = /* @__PURE__ */ new Map();
25128
25128
  function Br(M) {
25129
25129
  return new Worker(M, { type: "module" });
25130
25130
  }
@@ -1,16 +1,16 @@
1
1
  import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, createElementBlock as r, openBlock as o, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, createCommentVNode as D, Fragment as z, renderList as N, createBlock as R, withDirectives as T, resolveDynamicComponent as U, unref as m, withCtx as B, createVNode as p, normalizeClass as W, resolveComponent as M, useModel as ce, createTextVNode as ue, isRef as j, nextTick as fe } from "vue";
2
- import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-CjkYcdoD.js";
3
- import { D as ge } from "./DateRangeSelect-B6QocR7V.js";
4
- import { d as E, u as Q, F as ee, q as te, a as pe, h as ve, g as H, i as he, j as ye, k as we } from "./app-CSF-ZDAa.js";
2
+ import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js";
3
+ import { D as ge } from "./DateRangeSelect-CRsKMi0U.js";
4
+ import { d as E, u as Q, F as ee, q as te, a as pe, h as ve, g as H, i as he, j as ye, k as we } from "./app-Bjt_JuJi.js";
5
5
  import { storeToRefs as ae } from "pinia";
6
6
  import { C as le, r as xe } from "./chart-DDDh8zNk.js";
7
7
  import { components as Y, useSnackbar as be } from "@feedmepos/ui-library";
8
8
  import { u as se } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
9
  import { c as X } from "./index-CtZE4sab.js";
10
10
  import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
11
- import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-PQKRv81p.js";
11
+ import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-DC9QYJk-.js";
12
12
  import { useCoreStore as _e } from "@feedmepos/mf-common";
13
- import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B2IXNXS_.js";
13
+ import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.js";
14
14
  function Ae({ start: e, end: t }) {
15
15
  return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
16
16
  }
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as ce, mergeModels as we, useModel as fe, computed as W, resolveComponent as I, createElementBlock as R, openBlock as w, createElementVNode as t, createCommentVNode as z, normalizeClass as et, Fragment as $e, renderList as ze, createBlock as ee, normalizeStyle as at, createVNode as l, withCtx as Ce, renderSlot as Vt, toDisplayString as S, unref as n, h as b, createTextVNode as $t, ref as ae, onUnmounted as He, watch as _e, isRef as Ee, resolveDynamicComponent as Be, mergeProps as st, withKeys as ot, withModifiers as dt, nextTick as kt, onMounted as pt } from "vue";
2
2
  import { useRouter as Se, useRoute as It } from "vue-router";
3
- import { A as he, v as nt, d as Ne, w as Tt, e as Le, a as De, x as be, y as Nt, z as Kt, o as pe, t as Ge, B as Ye, E as Oe, G as Qe, H as rt, J as Ft, K as Mt, L as Ut, M as Rt, N as it, b as ut, O as Pt, P as Lt, n as jt, I as je, Q as Ot, R as Et, S as Bt } from "./app-CSF-ZDAa.js";
3
+ import { A as he, v as nt, d as Ne, w as Tt, e as Le, a as De, x as be, y as Nt, z as Kt, o as pe, t as Ge, B as Ye, E as Oe, G as Qe, H as rt, J as Ft, K as Mt, L as Ut, M as Rt, N as it, b as ut, O as Pt, P as Lt, n as jt, I as je, Q as Ot, R as Et, S as Bt } from "./app-Bjt_JuJi.js";
4
4
  import { u as We } from "./global-loader-BuxFfehu.js";
5
5
  import { u as Xe } from "./message-dialog-UoMWOnil.js";
6
6
  import { useSnackbar as Ae } from "@feedmepos/ui-library";
7
7
  import { s as St } from "./index-CtZE4sab.js";
8
8
  import { u as ve, _ as Yt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
- import { u as qe, h as ke } from "./useRestaurantPermission-BgWDPmEl.js";
9
+ import { u as qe, h as ke } from "./useRestaurantPermission-Dkbh_cv8.js";
10
10
  import { storeToRefs as Je } from "pinia";
11
- import { D as Ze } from "./DateRangeSelect-B6QocR7V.js";
11
+ import { D as Ze } from "./DateRangeSelect-CRsKMi0U.js";
12
12
  const qt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, zt = { class: "w-[100%] overflow-hidden" }, Ht = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Gt = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Qt = {
13
13
  key: 0,
14
14
  class: "w-[24px] flex items-center"