@feedmepos/mf-report 5.26.8 → 5.26.9-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 (25) hide show
  1. package/dist/{App-Dg74dv5U.js → App-2imBCc8X.js} +60 -60
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CEnpOT77.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DhzZHUpu.js → Default.vue_vue_type_script_setup_true_lang-xRS8_Nwb.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-xsdQqZN1.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DIE2Eyz9.js} +4 -4
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZTdHQMm.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DlybBn8y.js} +12 -13
  6. package/dist/{InsightView-BAMhWM_4.js → InsightView-CjaQXZXp.js} +4 -4
  7. package/dist/{Integration-3sVH-WLo.js → Integration-Du-__C_B.js} +3 -3
  8. package/dist/{Integrations-aVgsVBin.js → Integrations-B6jASXUO.js} +2 -2
  9. package/dist/{Layout-CemoVm35.js → Layout-CW8Xrt6V.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DaWStDdA.js → MenuTab.vue_vue_type_script_setup_true_lang-B032pdut.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CF-kBFSL.js → NavigationTab.vue_vue_type_script_setup_true_lang-BvdePNQp.js} +3 -3
  12. package/dist/{OverviewView-CGQE4oye.js → OverviewView-BHszQru-.js} +4 -4
  13. package/dist/{Report-Q_iSKToz.js → Report-D6pQnI3-.js} +3 -3
  14. package/dist/{ReportEditor-B7Tsgrmi.js → ReportEditor-DMXrJ24g.js} +5 -5
  15. package/dist/{ReportView-DemPHOct.js → ReportView-DmewwUiY.js} +6 -6
  16. package/dist/{Setting-DKF6gaAG.js → Setting-DBYFY3X3.js} +3 -3
  17. package/dist/{Template-CtJVcYGk.js → Template-DyHgyygv.js} +3 -3
  18. package/dist/{TileEditor-DWsLtN_V.js → TileEditor-BNe7oCVJ.js} +5 -5
  19. package/dist/{TransitionFade-CO1Jm8hG.js → TransitionFade-BTq7o6pS.js} +7 -7
  20. package/dist/{app-C5FTlUBn.js → app-B1i_5VL2.js} +13 -13
  21. package/dist/app.js +1 -1
  22. package/dist/assets/{formatChartData.worker-BwOf9WPp.js → formatChartData.worker-S0YDdTap.js} +3 -4
  23. package/dist/assets/{processTableData.worker-BlwP8Wjn.js → processTableData.worker-dYjjzVAS.js} +3 -4
  24. package/dist/{useRestaurantPermission-BrUkp18y.js → useRestaurantPermission-FOzU5amd.js} +1 -1
  25. package/package.json +1 -1
@@ -1,41 +1,41 @@
1
- import { defineComponent as ue, resolveComponent as H, createBlock as le, openBlock as C, unref as l, isRef as ke, withCtx as P, createElementVNode as ne, createVNode as X, toDisplayString as ae, createTextVNode as Te, onMounted as de, watch as E, ref as Q, computed as oe, onBeforeMount as Fe, onBeforeUnmount as Ne, createElementBlock as G, Fragment as $e } from "vue";
2
- import { detectLocale as U, useCoreStore as K } from "@feedmepos/mf-common";
3
- import { d as u, u as qe, a as re, b as Be, c as se, e as xe, f as Je, s as Qe, t as W } from "./app-C5FTlUBn.js";
1
+ import { defineComponent as ue, resolveComponent as H, createBlock as de, openBlock as E, unref as d, isRef as ke, withCtx as W, createElementVNode as ne, createVNode as X, toDisplayString as ae, createTextVNode as Te, onMounted as le, watch as C, ref as Q, computed as oe, onBeforeMount as Ne, onBeforeUnmount as qe, createElementBlock as K, Fragment as Fe } from "vue";
2
+ import { detectLocale as U, useCoreStore as P } from "@feedmepos/mf-common";
3
+ import { d as u, u as $e, a as re, b as Be, c as se, e as xe, f as Je, s as Qe, t as G } from "./app-B1i_5VL2.js";
4
4
  import { storeToRefs as k } from "pinia";
5
5
  import { u as Ue, a as ze } from "./vue-i18n-DVWuTfed.js";
6
- import { u as je, a as Ve } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZTdHQMm.js";
7
- import { u as Pe, _ as Ge } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CF-kBFSL.js";
6
+ import { u as je, a as Ve } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DlybBn8y.js";
7
+ import { u as We, _ as Ke } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BvdePNQp.js";
8
8
  import { u as ie } from "./message-dialog-UoMWOnil.js";
9
- import { useRoute as Ke, useRouter as We } from "vue-router";
9
+ import { useRoute as Pe, useRouter as Ge } from "vue-router";
10
10
  const He = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Xe = /* @__PURE__ */ ue({
11
11
  __name: "Dialog",
12
12
  setup(T) {
13
13
  const { t: c } = Ue(), p = ie(), { isOpened: g, message: _, title: L } = k(ie());
14
14
  return (O, I) => {
15
- const F = H("FmButton"), z = H("FmDialog");
16
- return C(), le(z, {
17
- modelValue: l(g),
15
+ const N = H("FmButton"), z = H("FmDialog");
16
+ return E(), de(z, {
17
+ modelValue: d(g),
18
18
  "onUpdate:modelValue": I[0] || (I[0] = (j) => ke(g) ? g.value = j : null),
19
19
  overlay: "",
20
20
  "close-button": !1,
21
21
  "z-index": 3e3
22
22
  }, {
23
- "dialog-header": P(() => [
24
- Te(ae(l(L)), 1)
23
+ "dialog-header": W(() => [
24
+ Te(ae(d(L)), 1)
25
25
  ]),
26
- default: P(() => [
27
- ne("p", He, ae(l(_)), 1)
26
+ default: W(() => [
27
+ ne("p", He, ae(d(_)), 1)
28
28
  ]),
29
- "dialog-footer": P(() => [
29
+ "dialog-footer": W(() => [
30
30
  I[1] || (I[1] = ne("div", { class: "grow" }, null, -1)),
31
- X(F, {
32
- label: l(c)("report.common.cancel"),
31
+ X(N, {
32
+ label: d(c)("report.common.cancel"),
33
33
  variant: "tertiary",
34
- onClick: l(p).dismiss
34
+ onClick: d(p).dismiss
35
35
  }, null, 8, ["label", "onClick"]),
36
- X(F, {
37
- label: l(c)("report.common.confirm"),
38
- onClick: l(p).confirm
36
+ X(N, {
37
+ label: d(c)("report.common.confirm"),
38
+ onClick: d(p).confirm
39
39
  }, null, 8, ["label", "onClick"])
40
40
  ]),
41
41
  _: 1
@@ -54,9 +54,9 @@ function Ye() {
54
54
  break;
55
55
  }
56
56
  };
57
- return de(() => {
57
+ return le(() => {
58
58
  T(U());
59
- }), E(() => U(), T, { deep: !0, immediate: !0 }), {
59
+ }), C(() => U(), T, { deep: !0, immediate: !0 }), {
60
60
  currentLocale: ce
61
61
  };
62
62
  }
@@ -64,8 +64,8 @@ u.locale(U() === "zh-CN" ? "zh-cn" : "en");
64
64
  const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
65
65
  __name: "App",
66
66
  setup(T) {
67
- const { businessId: c, token: p, country: g } = k(qe()), { sessionUser: _, currentBusiness: L, currentCountry: O, registerSidebarComponent: I } = K(), { getRestaurantAndWarehouse: F, getBusinessSetting: z, beginBusinessLoad: j, completeBusinessLoad: fe } = re(), me = Be(), { getFeatureFlags: pe } = me, { version: v } = k(se()), { getSettings: ge } = xe(), { promptLoader: ve } = ze(), a = Ke(), N = We(), w = je(), Y = Pe(), s = re(), b = se(), { suppressReportRouteSync: $ } = k(b), { getReports: ye, getOverviewReport: Se, getReportConfig: De, currentReportId: Z } = w, { currentReportId: Ie, reports: he } = k(w), { getSchema: Re } = Ve(), { fetchSchedules: _e } = Y, { init: Le } = Je(), V = Q("v5"), q = Q(!1), B = Q(!0), Oe = oe(() => `https://portal-v1.feedme.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${p.value}&v2=true&reportV5Button=true`), we = oe(() => `https://report-v4.feedme.cc?businessId=${c.value}&country=${g.value}&token=${p.value}&reportV3Button=true`);
68
- E(
67
+ const { businessId: c, token: p, country: g } = k($e()), { sessionUser: _, currentBusiness: L, currentCountry: O, registerSidebarComponent: I } = P(), { getRestaurantAndWarehouse: N, getBusinessSetting: z, beginBusinessLoad: j, completeBusinessLoad: fe } = re(), me = Be(), { getFeatureFlags: pe } = me, { version: v } = k(se()), { getSettings: ge } = xe(), { promptLoader: ve } = ze(), a = Pe(), q = Ge(), w = je(), Y = We(), s = re(), b = se(), { suppressReportRouteSync: F } = k(b), { getReports: ye, getOverviewReport: Se, getReportConfig: De, currentReportId: Z } = w, { currentReportId: Ie, reports: he } = k(w), { getSchema: Re } = Ve(), { fetchSchedules: _e } = Y, { init: Le } = Je(), V = Q("v5"), $ = Q(!1), B = Q(!0), Oe = oe(() => `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`), we = oe(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${g.value}&token=${p.value}&reportV3Button=true`);
68
+ C(
69
69
  [() => L.value, () => _.value, () => O.value],
70
70
  () => {
71
71
  var e, n;
@@ -92,13 +92,13 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
92
92
  console.error(e);
93
93
  }
94
94
  }
95
- E(v, () => {
96
- ["v3", "v4"].includes(v.value) ? K().hideSidebarToggle(!0) : K().hideSidebarToggle(!1);
97
- }), Fe(() => {
98
- I(Ge);
99
- }), de(() => {
100
- console.log("5.26.8", !0), window.addEventListener("message", M), window.addEventListener("message", ee);
95
+ C(v, () => {
96
+ ["v3", "v4"].includes(v.value) ? P().hideSidebarToggle(!0) : P().hideSidebarToggle(!1);
101
97
  }), Ne(() => {
98
+ I(Ke);
99
+ }), le(() => {
100
+ console.log("5.26.9-beta.0", !0), window.addEventListener("message", M), window.addEventListener("message", ee);
101
+ }), qe(() => {
102
102
  window.removeEventListener("message", M), window.removeEventListener("message", ee), w.$dispose(), Y.$dispose();
103
103
  });
104
104
  function be(t) {
@@ -130,7 +130,7 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
130
130
  return typeof e.hour == "number" && typeof e.minute == "number";
131
131
  }
132
132
  function Ae(t = a.query) {
133
- 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, d = typeof e.timeStart == "string", i = typeof e.timeEnd == "string", f = x(e.timeStart), y = x(e.timeEnd), m = te(f) ? f : null, J = te(y) ? y : null, A = 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
+ 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 = x(e.timeStart), y = x(e.timeEnd), m = te(f) ? f : null, J = te(y) ? y : null, A = 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;
134
134
  let D = [];
135
135
  if (h)
136
136
  D = s.selectedLocationIds ?? [];
@@ -143,7 +143,7 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
143
143
  const r = s.dateRange;
144
144
  (r.startDate !== n || r.endDate !== o) && s.setDateRange({ startDate: n, endDate: o });
145
145
  }
146
- if (d || i) {
146
+ if (l || i) {
147
147
  const r = s.timeRange;
148
148
  (r.start !== m || r.end !== J) && s.setTimeRange({ start: m, end: J });
149
149
  }
@@ -156,7 +156,7 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
156
156
  }
157
157
  if (!h) {
158
158
  const r = s.selectedLocationIds;
159
- r.length === D.length && r.every((Ce, Ee) => Ce === D[Ee]) || s.setSelectedLocationIds(D);
159
+ r.length === D.length && r.every((Ee, Ce) => Ee === D[Ce]) || s.setSelectedLocationIds(D);
160
160
  }
161
161
  return {
162
162
  // TODO: this returned value can used for getBusinessSetting
@@ -171,54 +171,54 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
171
171
  isAllLocation: e.isAllLocation
172
172
  };
173
173
  }
174
- return E(
174
+ return C(
175
175
  () => c.value,
176
176
  async (t, e) => {
177
177
  if (t !== "") {
178
- q.value = !1, j(t);
178
+ $.value = !1, j(t);
179
179
  const n = "mf-report-prev-business-id", o = (() => {
180
180
  try {
181
181
  return sessionStorage.getItem(n);
182
182
  } catch {
183
183
  return null;
184
184
  }
185
- })(), d = !!o && o !== t;
185
+ })(), l = !!o && o !== t;
186
186
  let i = { ...a.query }, f = !1;
187
- if (!B.value || e !== void 0 || d) {
187
+ if (!B.value || e !== void 0 || l) {
188
188
  s.setSelectedLocationIds([]);
189
189
  const { locationIds: y, ...m } = a.query;
190
190
  i = {
191
191
  ...m,
192
192
  isAllLocation: "true"
193
- }, f = !0, await N.replace({
193
+ }, f = !0, await q.replace({
194
194
  name: a.name,
195
195
  params: a.params,
196
196
  query: i
197
197
  });
198
198
  }
199
- $.value !== void 0 && ($.value = !0), await ve(async () => {
199
+ F.value !== void 0 && (F.value = !0), await ve(async () => {
200
200
  await Le({
201
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
201
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
202
202
  url: "https://flag.feedme.farm/api/v1/",
203
203
  enableAnalytics: !1,
204
204
  cacheFlags: !1
205
205
  });
206
206
  const y = await De();
207
- V.value = y.version, v.value = V.value, await pe(), a.name === "template" && !b.canAccessTemplate() && await N.replace({
207
+ V.value = y.version, v.value = V.value, await pe(), a.name === "template" && !b.canAccessTemplate() && await q.replace({
208
208
  name: "reports",
209
209
  query: a.query
210
210
  });
211
211
  const m = b.canAccess(
212
- W.report_accessOverview
212
+ G.report_accessOverview
213
213
  ), J = b.canAccess(
214
- W.report_accessSetting
214
+ G.report_accessSetting
215
215
  ), A = b.canAccess(
216
- W.report_accessIntegration
216
+ G.report_accessIntegration
217
217
  ), S = [
218
218
  Re(),
219
219
  _e(),
220
220
  ye(),
221
- F(
221
+ N(
222
222
  (() => {
223
223
  const h = x(i.locationIds);
224
224
  return Array.isArray(h) ? h : void 0;
@@ -227,7 +227,7 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
227
227
  ];
228
228
  if (m && S.push(Se()), A && S.push(ge()), await Promise.all(S), J && await z(), Ae(i), f) {
229
229
  const { locationIds: h, ...D } = a.query;
230
- (a.query.locationIds !== void 0 || a.query.isAllLocation !== "true") && await N.replace({
230
+ (a.query.locationIds !== void 0 || a.query.isAllLocation !== "true") && await q.replace({
231
231
  name: a.name,
232
232
  params: a.params,
233
233
  query: {
@@ -241,14 +241,14 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
241
241
  sessionStorage.setItem(n, t);
242
242
  } catch {
243
243
  }
244
- }), q.value = !0, B.value && (B.value = !1);
244
+ }), $.value = !0, B.value && (B.value = !1);
245
245
  }
246
246
  },
247
247
  {
248
248
  immediate: !0
249
249
  }
250
- ), E(
251
- () => (q.value, {
250
+ ), C(
251
+ () => ($.value, {
252
252
  reportId: Ie.value,
253
253
  selectedLocationIds: s.selectedLocationIds,
254
254
  dateRange: s.dateRange,
@@ -256,24 +256,24 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
256
256
  compareDateRange: s.compareDateRange
257
257
  }),
258
258
  (t) => {
259
- if (!q.value || !t.reportId || B.value) return;
260
- if ($.value) {
261
- $.value = !1;
259
+ if (!$.value || !t.reportId || B.value) return;
260
+ if (F.value) {
261
+ F.value = !1;
262
262
  return;
263
263
  }
264
- const e = t.selectedLocationIds, n = t.dateRange, o = t.timeRange, d = t.compareDateRange, i = {
264
+ const e = t.selectedLocationIds, n = t.dateRange, o = t.timeRange, l = t.compareDateRange, i = {
265
265
  ...a.query,
266
266
  reportId: t.reportId,
267
267
  startDate: n.startDate ? u(n.startDate).startOf("day").toISOString() : void 0,
268
268
  endDate: n.endDate ? u(n.endDate).endOf("day").toISOString() : void 0,
269
- compareStartDate: d.startDate ? u(d.startDate).startOf("day").toISOString() : void 0,
270
- compareEndDate: d.endDate ? u(d.endDate).endOf("day").toISOString() : void 0,
269
+ compareStartDate: l.startDate ? u(l.startDate).startOf("day").toISOString() : void 0,
270
+ compareEndDate: l.endDate ? u(l.endDate).endOf("day").toISOString() : void 0,
271
271
  timeStart: o.start ? JSON.stringify(o.start) : void 0,
272
272
  timeEnd: o.end ? JSON.stringify(o.end) : void 0
273
273
  }, f = e.length === s.locations.length;
274
274
  i.isAllLocation = String(f), f ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
275
275
  const y = JSON.stringify(a.query), m = JSON.stringify(i);
276
- y !== m && N.replace({
276
+ y !== m && q.replace({
277
277
  name: a.name,
278
278
  params: a.params,
279
279
  query: i
@@ -282,17 +282,17 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
282
282
  { deep: !0 }
283
283
  ), Ye(), (t, e) => {
284
284
  const n = H("router-view");
285
- return C(), G($e, null, [
285
+ return E(), K(Fe, null, [
286
286
  X(Xe),
287
- l(v) === "v3" ? (C(), G("iframe", {
287
+ d(v) === "v3" ? (E(), K("iframe", {
288
288
  key: 0,
289
289
  class: "bg-white h-full w-full",
290
290
  src: Oe.value
291
- }, null, 8, Ze)) : l(v) === "v4" ? (C(), G("iframe", {
291
+ }, null, 8, Ze)) : d(v) === "v4" ? (E(), K("iframe", {
292
292
  key: 1,
293
293
  class: "bg-white h-full w-full",
294
294
  src: we.value
295
- }, null, 8, Me)) : (C(), le(n, { key: 2 }))
295
+ }, null, 8, Me)) : (E(), de(n, { key: 2 }))
296
296
  ], 64);
297
297
  };
298
298
  }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as O, resolveComponent as C, createBlock as h, openBlock as D, normalizeClass as B, withCtx as I, createCommentVNode as x, createElementVNode as w, toDisplayString as W, renderSlot as X, mergeModels as M, useModel as E, ref as P, watch as $, createElementBlock as q, unref as y, createVNode as A } from "vue";
2
- import { d as u, a as G, U as H, C as K } from "./app-C5FTlUBn.js";
2
+ import { d as u, a as G, U as H, C as K } from "./app-B1i_5VL2.js";
3
3
  import { detectLocale as L } from "@feedmepos/mf-common";
4
4
  import { u as J } from "./vue-i18n-DVWuTfed.js";
5
5
  import { storeToRefs as Q } 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-CF-kBFSL.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BvdePNQp.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";
@@ -1,7 +1,7 @@
1
1
  import { computed as b, defineComponent as Me, ref as L, watch as Se, onMounted as Vt, onBeforeUnmount as to, resolveComponent as ie, createBlock as de, openBlock as Y, Transition as Vo, withCtx as xe, createElementBlock as re, createCommentVNode as me, createElementVNode as j, unref as s, normalizeStyle as Pe, withModifiers as Zt, toDisplayString as Te, createVNode as se, Fragment as Re, renderList as Ft, normalizeClass as we, nextTick as No, mergeModels as ze, useModel as He, renderSlot as Qe, h as qt, createSlots as $o, resolveDynamicComponent as no, toRaw as zo, markRaw as Ho, createTextVNode as Wo, onUnmounted as oo, withDirectives as Oo, vShow as Uo } from "vue";
2
- import { W as ee, j as Ko, S as It, v as Bt, k as Xo, l as dn, m as ao, d as Yo, q as Eo, R as ht, n as qo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZTdHQMm.js";
3
- import { i as Qt, a as nn, u as ro } from "./app-C5FTlUBn.js";
4
- import { d as pn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js";
2
+ import { W as ee, j as Ko, S as It, v as Bt, k as Xo, l as dn, m as ao, d as Yo, q as Eo, R as ht, n as qo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DlybBn8y.js";
3
+ import { i as Qt, a as nn, u as ro } from "./app-B1i_5VL2.js";
4
+ import { d as pn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CEnpOT77.js";
5
5
  import { storeToRefs as At } from "pinia";
6
6
  import { detectLocale as lo } from "@feedmepos/mf-common";
7
7
  import { C as gn } from "./chart-DDDh8zNk.js";
@@ -2963,7 +2963,7 @@ function Ur(e, t) {
2963
2963
  const n = ie("FmMenuDivider");
2964
2964
  return Y(), de(n);
2965
2965
  }
2966
- const Kr = /* @__PURE__ */ so(Or, [["render", Ur]]), Xr = "/assets/processTableData.worker-BlwP8Wjn.js", Yr = { class: "my-4" }, Er = {
2966
+ const Kr = /* @__PURE__ */ so(Or, [["render", Ur]]), Xr = "/assets/processTableData.worker-dYjjzVAS.js", Yr = { class: "my-4" }, Er = {
2967
2967
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
2968
2968
  style: { backgroundColor: "#f9f9f9" }
2969
2969
  }, qr = { class: "font-bold" }, Gr = { class: "text-fm-color-neutral-gray-300" }, jr = /* @__PURE__ */ Me({
@@ -1,6 +1,6 @@
1
1
  import { ref as R0, computed as z1, watch as x1, defineComponent as _t, mergeModels as Ee, useModel as rt, resolveComponent as V0, createElementBlock as l1, openBlock as Q0, createVNode as x0, withCtx as n1, createElementVNode as H0, createCommentVNode as qe, Fragment as Y1, renderList as nt, createBlock as y1, createTextVNode as Re, withDirectives as bn, toDisplayString as p1, unref as W0, vShow as _n, renderSlot as nr, normalizeStyle as dn, normalizeClass as wt, withModifiers as Ye } from "vue";
2
- import { c as Pt, h as ar, f as or, _ as zn, i as On } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js";
3
- import { o as An, j as Dn, u as P0, F as J0, r as U0, p as fn, a as J1, b as $n, m as yn, g as mn, d as w0, c as Me, h as dt } from "./app-C5FTlUBn.js";
2
+ import { c as Pt, h as ar, f as or, _ as zn, i as On } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CEnpOT77.js";
3
+ import { o as An, j as Dn, u as P0, F as J0, r as U0, p as fn, a as J1, b as $n, m as yn, g as mn, d as w0, c as Me, h as dt } from "./app-B1i_5VL2.js";
4
4
  import { storeToRefs as g0, defineStore as Be } from "pinia";
5
5
  import { useSnackbar as ir } from "@feedmepos/ui-library";
6
6
  import { u as sr } from "./vue-i18n-DVWuTfed.js";
@@ -4236,8 +4236,7 @@ select
4236
4236
  },
4237
4237
  getClearTableSql(r) {
4238
4238
  var e = p.C_JsonCodec.decode$2$reviver(D.JSON.stringify(r), null), n = i.getInterceptor$asx(e), a = t._getQueryEngine(n.$index(e, "bigQuery"));
4239
- return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(a.context.connection), "DELETE FROM " + n.get$fullMaterializedTableName() + ` where true;
4240
- `;
4239
+ return n = t.Schema_fromJson(n.$index(e, "request").$index(0, "schema")), n.setConnection$1(a.context.connection), "DELETE FROM `" + n.get$fullMaterializedTableName() + "` where true;\n";
4241
4240
  },
4242
4241
  getMergeSql(r) {
4243
4242
  var e, n, a, o, s, u = p.C_JsonCodec.decode$2$reviver(D.JSON.stringify(r), null), l = i.getInterceptor$asx(u), M = t._getQueryEngine(l.$index(u, "bigQuery"));
@@ -11217,7 +11216,7 @@ WHERE (
11217
11216
  end
11218
11217
  )
11219
11218
  )
11220
- `, new t.menuV3GroupSchema_closure(), p.List_empty, l, 3600, !0, !0, !1, !1, !1, new t.menuV3GroupSchema_closure0(), "Menu Group", "menu_groups", "menu_group", p.SCHEMA_NAME_53, a, "couchdb_m_menu_v3", !1, o, s);
11219
+ `, new t.menuV3GroupSchema_closure(), p.List_empty, l, 900, !1, !0, !1, !1, !1, new t.menuV3GroupSchema_closure0(), "Menu Group", "menu_groups", "menu_group", p.SCHEMA_NAME_53, a, "couchdb_m_menu_v3", !1, o, s);
11221
11220
  }), e(S, "menuV3ItemSchema", "$get$menuV3ItemSchema", () => {
11222
11221
  var a = null, o = t.Source_Source$couchdb("products", "mMenuV3"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a), u = O.JSArray_String, l = t._setArrayType([t.Index$(t._setArrayType(["id"], u), a, a, a), t.Index$(t._setArrayType(["doc_id"], u), a, a, a), t.Index$(t._setArrayType(["restaurant_id"], u), a, a, a), t.Index$(t._setArrayType(["published_at"], u), a, a, a)], O.JSArray_Index);
11223
11222
  return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], u), `SELECT *
@@ -11234,25 +11233,25 @@ WHERE (
11234
11233
  end
11235
11234
  )
11236
11235
  )
11237
- `, new t.menuV3ItemSchema_closure(), p.List_empty, l, 3600, !0, !0, !1, !1, !1, new t.menuV3ItemSchema_closure0(), "Menu Product", "menu_items", "menu_item", p.SCHEMA_NAME_57, a, "couchdb_m_menu_v3", !1, o, s);
11236
+ `, new t.menuV3ItemSchema_closure(), p.List_empty, l, 900, !1, !0, !1, !1, !1, new t.menuV3ItemSchema_closure0(), "Menu Product", "menu_items", "menu_item", p.SCHEMA_NAME_57, a, "couchdb_m_menu_v3", !1, o, s);
11238
11237
  }), e(S, "menuV3SkuSchema", "$get$menuV3SkuSchema", () => {
11239
11238
  var a = null, o = t.Source_Source$couchdb("skus", "mMenuV3"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], O.JSArray_Permission), a), u = O.JSArray_String, l = t._setArrayType([t.Index$(t._setArrayType(["id"], u), a, a, a), t.Index$(t._setArrayType(["doc_id"], u), a, a, a), t.Index$(t._setArrayType(["restaurant_id"], u), a, a, a), t.Index$(t._setArrayType(["location_id"], u), a, a, a)], O.JSArray_Index);
11240
- return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], u), a, new t.menuV3SkuSchema_closure(), p.List_empty, l, 3600, !0, !0, !1, !1, !1, new t.menuV3SkuSchema_closure0(), "Menu SKU", "menu_skus", "menu_sku", p.SCHEMA_NAME_55, a, "couchdb_m_menu_v3", !1, o, s);
11239
+ return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], u), a, new t.menuV3SkuSchema_closure(), p.List_empty, l, 900, !1, !0, !1, !1, !1, new t.menuV3SkuSchema_closure0(), "Menu SKU", "menu_skus", "menu_sku", p.SCHEMA_NAME_55, a, "couchdb_m_menu_v3", !1, o, s);
11241
11240
  }), e(S, "menuV4CatalogItemSchema", "$get$menuV4CatalogItemSchema", () => {
11242
11241
  var a = null, o = t.Source_Source$couchdb("items", "catalog"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$restaurant("warehouseId")], O.JSArray_Permission), a), u = O.JSArray_String, l = t._setArrayType([t.Index$(t._setArrayType(["id"], u), a, a, a), t.Index$(t._setArrayType(["doc_id"], u), a, a, a), t.Index$(t._setArrayType(["published_at"], u), a, a, a), t.Index$(t._setArrayType(["location_id"], u), a, a, a), t.Index$(t._setArrayType(["restaurant_id"], u), a, a, a)], O.JSArray_Index);
11243
- return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], u), a, new t.menuV4CatalogItemSchema_closure(), p.List_empty, l, 900, !0, !0, !1, !0, !0, new t.menuV4CatalogItemSchema_closure0(), "Menu Catalog Product", "menu_catalog_items", "menu_catalog_item", p.SCHEMA_NAME_59, a, "couchdb_catalog", !1, o, s);
11242
+ return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], u), a, new t.menuV4CatalogItemSchema_closure(), p.List_empty, l, 120, !0, !0, !1, !0, !0, new t.menuV4CatalogItemSchema_closure0(), "Menu Catalog Product", "menu_catalog_items", "menu_catalog_item", p.SCHEMA_NAME_59, a, "couchdb_catalog", !1, o, s);
11244
11243
  }), e(S, "menuV4GroupSchema", "$get$menuV4GroupSchema", () => {
11245
11244
  var a = null, o = t.Source_Source$couchdb("addonGroups", "mMenuV4"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a), u = O.JSArray_String, l = t._setArrayType(["restaurantId"], u);
11246
- return t.Schema_Schema$build("menu", t._setArrayType(["category", "menu group", "food category"], u), 2, l, a, new t.menuV4GroupSchema_closure(), p.List_empty, a, 3600, !0, !0, !1, !1, !0, new t.menuV4GroupSchema_closure0(), "Menu Group", "menu_groups", "menu_group", p.SCHEMA_NAME_54, a, "couchdb_m_menu_v4", !1, o, s);
11245
+ return t.Schema_Schema$build("menu", t._setArrayType(["category", "menu group", "food category"], u), 2, l, a, new t.menuV4GroupSchema_closure(), p.List_empty, a, 120, !0, !0, !1, !1, !0, new t.menuV4GroupSchema_closure0(), "Menu Group", "menu_groups", "menu_group", p.SCHEMA_NAME_54, a, "couchdb_m_menu_v4", !1, o, s);
11247
11246
  }), e(S, "menuV4ItemSchema", "$get$menuV4ItemSchema", () => {
11248
11247
  var a = null, o = t.Source_Source$couchdb("items", "mMenuV4"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a), u = O.JSArray_String, l = t._setArrayType(["restaurantId"], u);
11249
- return t.Schema_Schema$build("menu", t._setArrayType(["menu item", "product", "dish", "food item", "menu"], u), 2, l, a, new t.menuV4ItemSchema_closure(), p.List_empty, a, 900, !0, !0, !1, !1, !0, new t.menuV4ItemSchema_closure0(), "Menu Product", "menu_items", "menu_item", p.SCHEMA_NAME_58, a, "couchdb_m_menu_v4", !1, o, s);
11248
+ return t.Schema_Schema$build("menu", t._setArrayType(["menu item", "product", "dish", "food item", "menu"], u), 2, l, a, new t.menuV4ItemSchema_closure(), p.List_empty, a, 120, !0, !0, !1, !1, !0, new t.menuV4ItemSchema_closure0(), "Menu Product", "menu_items", "menu_item", p.SCHEMA_NAME_58, a, "couchdb_m_menu_v4", !1, o, s);
11250
11249
  }), e(S, "menuV4ItemInventoryBindingSchema", "$get$menuV4ItemInventoryBindingSchema", () => {
11251
11250
  var a = null, o = t.Source_Source$couchdb("itemInventoryBindings", "mMenuV4"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], O.JSArray_Permission), a), u = O.JSArray_String, l = t._setArrayType([t.Index$(t._setArrayType(["id"], u), a, a, a), t.Index$(t._setArrayType(["doc_id"], u), a, a, a), t.Index$(t._setArrayType(["published_at"], u), a, a, a), t.Index$(t._setArrayType(["location_id"], u), a, a, a), t.Index$(t._setArrayType(["product_id"], u), a, a, a), t.Index$(t._setArrayType(["inventory_id"], u), a, a, a)], O.JSArray_Index);
11252
- return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], u), a, new t.menuV4ItemInventoryBindingSchema_closure(), p.List_empty, l, 3600, !0, !0, !1, !1, !0, new t.menuV4ItemInventoryBindingSchema_closure0(), "Menu Inventory Binding", "menu_item_inventory_bindings", "menu_item_inventory_binding", p.SCHEMA_NAME_71, a, "couchdb_m_menu_v4", !1, o, s);
11251
+ return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], u), a, new t.menuV4ItemInventoryBindingSchema_closure(), p.List_empty, l, 120, !0, !0, !1, !1, !0, new t.menuV4ItemInventoryBindingSchema_closure0(), "Menu Inventory Binding", "menu_item_inventory_bindings", "menu_item_inventory_binding", p.SCHEMA_NAME_71, a, "couchdb_m_menu_v4", !1, o, s);
11253
11252
  }), e(S, "menuV4SkuSchema", "$get$menuV4SkuSchema", () => {
11254
11253
  var a = null, o = t.Source_Source$couchdb("skus", "mMenuV4"), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a);
11255
- return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], O.JSArray_String), a, new t.menuV4SkuSchema_closure(), p.List_empty, a, 3600, !0, !0, !1, !1, !0, new t.menuV4SkuSchema_closure0(), "Menu SKU", "menu_skus", "menu_sku", p.SCHEMA_NAME_56, a, "couchdb_m_menu_v4", !1, o, s);
11254
+ return t.Schema_Schema$build(a, p.List_empty0, 3, t._setArrayType(["restaurantId"], O.JSArray_String), a, new t.menuV4SkuSchema_closure(), p.List_empty, a, 120, !0, !0, !1, !1, !0, new t.menuV4SkuSchema_closure0(), "Menu SKU", "menu_skus", "menu_sku", p.SCHEMA_NAME_56, a, "couchdb_m_menu_v4", !1, o, s);
11256
11255
  }), e(S, "parentFlattenItemSchema", "$get$parentFlattenItemSchema", () => {
11257
11256
  var a = "createdAt", o = null, s = t.Source_Source$couchdb("", ""), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a);
11258
11257
  return t.Schema_Schema$build(o, p.List_empty0, 3, t._setArrayType(["restaurantId"], O.JSArray_String), o, new t.parentFlattenItemSchema_closure(), p.List_empty, o, o, !0, !1, !1, !0, !1, new t.parentFlattenItemSchema_closure0(), "Parent Product", "flatten_items", "flatten_item", p.SCHEMA_NAME_6, a, "", !0, s, u);
@@ -24877,7 +24876,7 @@ const Ru = "mf-reportreport-store", ne = Be(Ru, () => {
24877
24876
  };
24878
24877
  });
24879
24878
  var sn = /* @__PURE__ */ ((c) => (c.generating = "GENERATING", c.completed = "COMPLETED", c.failed = "FAILED", c.canceled = "CANCELLED", c))(sn || {});
24880
- const Cu = "/assets/formatChartData.worker-BwOf9WPp.js", et = /* @__PURE__ */ new Map();
24879
+ const Cu = "/assets/formatChartData.worker-S0YDdTap.js", et = /* @__PURE__ */ new Map();
24881
24880
  function Zt(c) {
24882
24881
  return new Worker(c, { type: "module" });
24883
24882
  }
@@ -1,13 +1,13 @@
1
1
  import { ref as B, defineComponent as S, watch as T, computed as _, onMounted as le, createElementBlock as d, openBlock as a, createElementVNode as o, renderSlot as H, toDisplayString as w, resolveDirective as X, createCommentVNode as A, Fragment as z, renderList as P, createBlock as V, withDirectives as M, resolveDynamicComponent as N, unref as m, withCtx as I, createVNode as y, normalizeClass as L, resolveComponent as R, useModel as oe, createTextVNode as ae, isRef as j, nextTick as se } from "vue";
2
- import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-DhzZHUpu.js";
3
- import { c as Y, _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js";
4
- import { d as W, u as G, F as O, q as J, a as re } from "./app-C5FTlUBn.js";
2
+ import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-xRS8_Nwb.js";
3
+ import { c as Y, _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CEnpOT77.js";
4
+ import { d as W, u as G, F as O, q as J, a as re } from "./app-B1i_5VL2.js";
5
5
  import { storeToRefs as K } from "pinia";
6
6
  import { C as Q, r as de } from "./chart-DDDh8zNk.js";
7
7
  import { components as E, useSnackbar as ce } from "@feedmepos/ui-library";
8
8
  import { u as ee } from "./vue-i18n-DVWuTfed.js";
9
9
  import { _ as ue } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
10
- import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CF-kBFSL.js";
10
+ import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BvdePNQp.js";
11
11
  import { useCoreStore as ge } from "@feedmepos/mf-common";
12
12
  function pe({ start: e, end: t }) {
13
13
  return `${W(t).format("DD MMM")}, ${W(t).format("YYYY")}`;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as le, mergeModels as ce, useModel as ne, computed as q, resolveComponent as V, createElementBlock as N, openBlock as b, createElementVNode as t, createCommentVNode as j, normalizeClass as Ge, Fragment as Fe, createBlock as O, withCtx as _e, toDisplayString as k, renderList as Le, createVNode as l, unref as i, h as A, normalizeStyle as it, createTextVNode as dt, ref as X, onUnmounted as je, watch as Ke, isRef as Re, resolveDynamicComponent as Ne, mergeProps as et, onMounted as lt } from "vue";
2
2
  import { useRouter as ke, useRoute as mt } from "vue-router";
3
- import { A as he, y as Ze, d as Ve, z as ut, e as Me, a as $e, B as re, E as pt, l as ct, v as ee, x as Ee, G as Oe, H as Ue, J as Be, K as tt, L as ft, M as gt, N as vt, O as ot, b as nt, P as yt, Q as xt, m as bt, I as Te, R as wt, S as ht, T as _t } from "./app-C5FTlUBn.js";
3
+ import { A as he, y as Ze, d as Ve, z as ut, e as Me, a as $e, B as re, E as pt, l as ct, v as ee, x as Ee, G as Oe, H as Ue, J as Be, K as tt, L as ft, M as gt, N as vt, O as ot, b as nt, P as yt, Q as xt, m as bt, I as Te, R as wt, S as ht, T as _t } from "./app-B1i_5VL2.js";
4
4
  import { u as se, a as Ye } from "./vue-i18n-DVWuTfed.js";
5
5
  import { u as qe } from "./message-dialog-UoMWOnil.js";
6
6
  import { useSnackbar as Se } from "@feedmepos/ui-library";
7
- import { s as st, _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cj_oTgfO.js";
8
- import { u as Pe, h as Ce } from "./useRestaurantPermission-BrUkp18y.js";
7
+ import { s as st, _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CEnpOT77.js";
8
+ import { u as Pe, h as Ce } from "./useRestaurantPermission-FOzU5amd.js";
9
9
  import { storeToRefs as He } from "pinia";
10
10
  const Ct = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, kt = { class: "w-[100%]" }, $t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, St = { class: "w-[100%] flex flex-row gap-[4px]" }, At = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, Dt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, Vt = {
11
11
  key: 0,