@feedmepos/mf-report 5.31.2-beta.0 → 5.31.3-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 (38) hide show
  1. package/dist/{App-BS7p-1_C.js → App-j08Hk0tX.js} +4 -4
  2. package/dist/{DateRangeSelect-CU1zLhsi.js → DateRangeSelect-AJd7gYva.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BbIP6Sxr.js → Default.vue_vue_type_script_setup_true_lang-CIVlgjSX.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CzSVopxn.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BKHx9p3R.js} +7 -7
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-V9SzUzmd.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-qQi-7kuX.js} +63 -63
  6. package/dist/{InsightView-BY5Sgoxt.js → InsightView-noFPHcRY.js} +5 -5
  7. package/dist/{Integration-YOGVHjkr.js → Integration-UwZP3vYt.js} +3 -3
  8. package/dist/{Integrations-DLn3wHzm.js → Integrations-BMhJuw20.js} +2 -2
  9. package/dist/{Layout-B8HhRlSf.js → Layout-CofH0rzo.js} +1 -1
  10. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-C2yXmZru.js → LocationSelect.vue_vue_type_script_setup_true_lang-BsdJx7gt.js} +2 -2
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CZFM47wC.js → MenuTab.vue_vue_type_script_setup_true_lang-BMJHW2E2.js} +5 -5
  12. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BriXZRy-.js → NavigationTab.vue_vue_type_script_setup_true_lang-b6hgoVnw.js} +5 -5
  13. package/dist/{OverviewView-B4auEUPK.js → OverviewView-V-KcUYld.js} +5 -5
  14. package/dist/{Report-dar8N8tM.js → Report-Cxfxa7EK.js} +3 -3
  15. package/dist/{ReportCanvasView-J-TOAEDk.js → ReportCanvasView-DDNkVmlA.js} +435 -347
  16. package/dist/{ReportEditor-GUrAEUjy.js → ReportEditor-syPuiUDA.js} +7 -7
  17. package/dist/{ReportView-ok4zqyiS.js → ReportView-Dqc89voW.js} +6 -6
  18. package/dist/{ReportViewRoute-BcYLz9D0.js → ReportViewRoute-BE4Olg2t.js} +2 -2
  19. package/dist/{Setting-CW-iwHV7.js → Setting-CSZG2_pc.js} +3 -3
  20. package/dist/{Template-CYnlmr86.js → Template-DE8y5xA7.js} +3 -3
  21. package/dist/{TileEditor-btcTn9w6.js → TileEditor-DCLCIQqG.js} +6 -6
  22. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Be_qbuOb.js → TilePageStack.vue_vue_type_script_setup_true_lang-BKM30woJ.js} +2 -2
  23. package/dist/{TransitionFade-B3zeQDvF.js → TransitionFade-DSKakW7L.js} +5 -5
  24. package/dist/{app-Bw-zsS2R.js → app-BxEbZEnS.js} +76 -12
  25. package/dist/app.js +1 -1
  26. package/dist/assets/formatChartData.worker-R9EGYsk6.js +544 -0
  27. package/dist/assets/processTableData.worker-CxpDa0tB.js +544 -0
  28. package/dist/{currency-DmsNWBQ3.js → currency-lmnrd1Gz.js} +1 -1
  29. package/dist/{index-B5Reb-CL.js → index-Co3j0l3d.js} +2906 -2802
  30. package/dist/{report-CblaE0LI.js → report-Dsp2krIZ.js} +1 -1
  31. package/dist/report-canvas-libs/chartjs-chart-geo-4.js +2 -0
  32. package/dist/report-canvas-libs/chartjs-chart-sankey-0.js +7 -0
  33. package/dist/report-canvas-libs/components-1.js +1293 -50
  34. package/dist/report-canvas-libs/geo-outlines-1.js +5 -0
  35. package/dist/{useRestaurantPermission-BZR1kItv.js → useRestaurantPermission-D8xwhBHn.js} +1 -1
  36. package/package.json +3 -1
  37. package/dist/assets/formatChartData.worker-UoGYoYc3.js +0 -495
  38. package/dist/assets/processTableData.worker-DxE4bjxG.js +0 -495
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as me, resolveComponent as X, createBlock as pe, openBlock as A, unref as u, isRef as Oe, withCtx as P, createElementVNode as re, createVNode as Z, toDisplayString as ae, createTextVNode as $e, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as G, Fragment as Qe } from "vue";
2
2
  import { detectLocale as U, useCoreStore as H } from "@feedmepos/mf-common";
3
- import { d as V, u as Ue, a as ie, b as je, c as ce, e as We, f as Ke, g as de, t as Pe, z as Ge, h as He } from "./app-Bw-zsS2R.js";
3
+ import { d as V, u as Ue, a as ie, b as je, c as ce, e as We, f as Ke, g as de, t as Pe, z as Ge, h as He } from "./app-BxEbZEnS.js";
4
4
  import { storeToRefs as k } from "pinia";
5
5
  import { u as Xe } from "./global-loader-BuxFfehu.js";
6
- import { u as Ze, a as Ve } from "./report-CblaE0LI.js";
7
- import { u as Ye, _ as Me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BriXZRy-.js";
6
+ import { u as Ze, a as Ve } from "./report-Dsp2krIZ.js";
7
+ import { u as Ye, _ as Me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-b6hgoVnw.js";
8
8
  import { u as ue } from "./message-dialog-UoMWOnil.js";
9
9
  import { u as et } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
10
  import { useRoute as tt, useRouter as nt } from "vue-router";
@@ -104,7 +104,7 @@ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
104
104
  }), xe(() => {
105
105
  _(Me);
106
106
  }), fe(() => {
107
- console.log("5.31.2-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
107
+ console.log("5.31.3-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
108
108
  }), Je(() => {
109
109
  window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Y.$dispose();
110
110
  });
@@ -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, h as Q, z as X, C as E, k as Ce, t as be } from "./app-Bw-zsS2R.js";
2
+ import { d as i, a as he, h as Q, z as X, C as E, k as Ce, t as be } from "./app-BxEbZEnS.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-BriXZRy-.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-b6hgoVnw.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,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-V9SzUzmd.js";
3
- import { u as Ln, a3 as xn, a as _n, a4 as or } from "./app-Bw-zsS2R.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-CblaE0LI.js";
5
- import { c as Dn, w as Et } from "./currency-DmsNWBQ3.js";
6
- import { d as Xn } from "./DateRangeSelect-CU1zLhsi.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-qQi-7kuX.js";
3
+ import { u as Ln, a3 as xn, a as _n, a4 as or } from "./app-BxEbZEnS.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-Dsp2krIZ.js";
5
+ import { c as Dn, w as Et } from "./currency-lmnrd1Gz.js";
6
+ import { d as Xn } from "./DateRangeSelect-AJd7gYva.js";
7
7
  import { storeToRefs as At } from "pinia";
8
8
  import { detectLocale as oo } from "@feedmepos/mf-common";
9
- import "./index-B5Reb-CL.js";
9
+ import "./index-Co3j0l3d.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-DxE4bjxG.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-CxpDa0tB.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({
@@ -1,14 +1,14 @@
1
1
  import { ref as ve, computed as Se, defineComponent as yt, mergeModels as lt, useModel as ft, watch as Ie, resolveComponent as ee, createElementBlock as fe, openBlock as J, createVNode as P, withCtx as ue, createElementVNode as Q, createCommentVNode as bt, Fragment as Le, renderList as ht, createBlock as we, unref as D, createTextVNode as nt, withDirectives as xl, toDisplayString as he, vShow as Al, renderSlot as jt, normalizeStyle as Gl, normalizeClass as Et, withModifiers as dt } from "vue";
2
- import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-CU1zLhsi.js";
3
- import { e as St } from "./index-B5Reb-CL.js";
4
- import { d as E, u as ke, c as qe, a as Me, F as Oe, a5 as gt, r as Ae, g as Ml, i as Pl, z as Bl, h as zl, t as Lt } from "./app-Bw-zsS2R.js";
5
- import { b as B, C as U, Q as tt, u as Pe, o as Ge, p as We, D as be, a as Ul, x as Mt, W as Pt, A as Wl, S as Bt } from "./report-CblaE0LI.js";
2
+ import { c as Qt, _ as Kt, D as El, e as Ll } from "./DateRangeSelect-AJd7gYva.js";
3
+ import { e as St } from "./index-Co3j0l3d.js";
4
+ import { d as E, u as ke, c as qe, a as Me, F as Oe, a5 as gt, r as Ae, g as Ml, i as Pl, z as Bl, h as zl, t as Lt } from "./app-BxEbZEnS.js";
5
+ import { b as B, C as W, Q as tt, u as Pe, o as Ge, p as Ue, D as be, a as Wl, x as Mt, W as Pt, A as Ul, S as Bt } from "./report-Dsp2krIZ.js";
6
6
  import { defineStore as Ft, storeToRefs as re } from "pinia";
7
7
  import { detectLocale as xe } from "@feedmepos/mf-common";
8
8
  import { u as Jt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
9
  import { _ as ql } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
10
10
  var Yt = /* @__PURE__ */ ((l) => (l.generating = "GENERATING", l.completed = "COMPLETED", l.failed = "FAILED", l.canceled = "CANCELLED", l))(Yt || {});
11
- const jl = "/assets/formatChartData.worker-UoGYoYc3.js", mt = /* @__PURE__ */ new Map();
11
+ const jl = "/assets/formatChartData.worker-R9EGYsk6.js", mt = /* @__PURE__ */ new Map();
12
12
  function zt(l) {
13
13
  return new Worker(l, { type: "module" });
14
14
  }
@@ -58,7 +58,7 @@ const Jl = "mf-reportreport-sort-store", Ht = Ft(Jl, () => {
58
58
  }
59
59
  return { tileSearch: l, setTileSearch: n, getTileSearch: s };
60
60
  }), Zt = "__EMPTY__";
61
- function Ue(l = []) {
61
+ function We(l = []) {
62
62
  return Array.from(new Set(l));
63
63
  }
64
64
  function Zl(l) {
@@ -83,7 +83,7 @@ function en(l, n) {
83
83
  name: l.name,
84
84
  operator: n.operator,
85
85
  option: l.option ?? null,
86
- values: Ue(n.values),
86
+ values: We(n.values),
87
87
  dataFormula: l.dataFormula,
88
88
  isGlobalFilter: !0
89
89
  };
@@ -93,7 +93,7 @@ function tn(l, n) {
93
93
  return s.length !== 2 ? null : {
94
94
  schemaName: l.schemaName,
95
95
  name: l.name,
96
- operator: U.Between,
96
+ operator: W.Between,
97
97
  option: l.option ?? B.TimeOfDay,
98
98
  values: s,
99
99
  dataFormula: l.dataFormula,
@@ -115,7 +115,7 @@ function ln(l) {
115
115
  {
116
116
  schemaName: l.schemaName,
117
117
  name: l.name,
118
- operator: U.Equal,
118
+ operator: W.Equal,
119
119
  option: l.option ?? null,
120
120
  values: i,
121
121
  dataFormula: l.dataFormula,
@@ -148,7 +148,7 @@ function ln(l) {
148
148
  {
149
149
  schemaName: l.schemaName,
150
150
  name: l.name,
151
- operator: U.Equal,
151
+ operator: W.Equal,
152
152
  option: l.option ?? null,
153
153
  values: s,
154
154
  dataFormula: l.dataFormula,
@@ -156,7 +156,7 @@ function ln(l) {
156
156
  }
157
157
  ];
158
158
  }
159
- function Ut({
159
+ function Wt({
160
160
  originalFilters: l,
161
161
  globalFilters: n,
162
162
  schemaNames: s
@@ -190,25 +190,25 @@ function Ut({
190
190
  return i(I, O) == null ? null : [I, O];
191
191
  }
192
192
  function x(u, m) {
193
- const h = Ue(u.values), N = Ue(m.values);
193
+ const h = We(u.values), N = We(m.values);
194
194
  switch (m.operator) {
195
- case U.Equal: {
195
+ case W.Equal: {
196
196
  const I = new Set(N), O = h.filter((L) => I.has(L));
197
197
  return O.length ? O : v(u);
198
198
  }
199
- case U.NotEqual:
200
- case U.NotLike:
201
- return Ue([
199
+ case W.NotEqual:
200
+ case W.NotLike:
201
+ return We([
202
202
  ...h,
203
203
  ...N
204
204
  ]);
205
- case U.GreaterThan:
206
- case U.GreaterThanOrEqual:
205
+ case W.GreaterThan:
206
+ case W.GreaterThanOrEqual:
207
207
  return w(h, N);
208
- case U.LessThan:
209
- case U.LessThanOrEqual:
208
+ case W.LessThan:
209
+ case W.LessThanOrEqual:
210
210
  return k(h, N);
211
- case U.Between:
211
+ case W.Between:
212
212
  return te(h, N);
213
213
  default:
214
214
  return null;
@@ -219,9 +219,9 @@ function Ut({
219
219
  return;
220
220
  const m = {
221
221
  ...u,
222
- values: Ue(u.values)
222
+ values: We(u.values)
223
223
  };
224
- if (m.option === B.TimeOfDay && m.operator === U.Between) {
224
+ if (m.option === B.TimeOfDay && m.operator === W.Between) {
225
225
  d.push(m);
226
226
  return;
227
227
  }
@@ -249,7 +249,7 @@ function je(l, n, s) {
249
249
  ...r,
250
250
  config: {
251
251
  ...r.config,
252
- filters: Ut({
252
+ filters: Wt({
253
253
  originalFilters: r.config.filters ?? [],
254
254
  globalFilters: d ?? [],
255
255
  schemaNames: r.config.schemaNames
@@ -258,7 +258,7 @@ function je(l, n, s) {
258
258
  var v;
259
259
  return {
260
260
  ...f,
261
- filters: Ut({
261
+ filters: Wt({
262
262
  originalFilters: f.filters ?? [],
263
263
  globalFilters: d ?? [],
264
264
  schemaNames: (v = r.config.joinDatasources) == null ? void 0 : v[g].schemaNames
@@ -365,7 +365,7 @@ const sn = async ({
365
365
  selectedWarehouseIds: I,
366
366
  selectedLocationIds: O,
367
367
  dateRange: L,
368
- compareDateRange: W,
368
+ compareDateRange: U,
369
369
  timeRange: q,
370
370
  timezone: le,
371
371
  restaurants: X,
@@ -378,7 +378,7 @@ const sn = async ({
378
378
  report: m,
379
379
  pageSubject: h,
380
380
  dateRange: _,
381
- compareDateRange: W,
381
+ compareDateRange: U,
382
382
  timezone: le
383
383
  }))
384
384
  return null;
@@ -391,7 +391,7 @@ const sn = async ({
391
391
  ...i ? { search: i } : {},
392
392
  widget: z,
393
393
  dateRange: [_.startDate, _.endDate],
394
- compareDateRange: W.startDate && W.endDate ? [W.startDate, W.endDate] : void 0,
394
+ compareDateRange: U.startDate && U.endDate ? [U.startDate, U.endDate] : void 0,
395
395
  timeRange: [
396
396
  E().tz(le).hour(Number((me = K.start) == null ? void 0 : me.hour)).minute(Number((ge = K.start) == null ? void 0 : ge.minute)).toISOString(),
397
397
  E().tz(le).hour(Number((ye = K.end) == null ? void 0 : ye.hour)).minute(Number((ce = K.end) == null ? void 0 : ce.minute)).endOf("minutes").toISOString()
@@ -412,7 +412,7 @@ const sn = async ({
412
412
  retry: 2
413
413
  };
414
414
  return await el([() => Ae.fetch(R)], 2e3);
415
- }, Wn = async ({
415
+ }, Un = async ({
416
416
  widget: l,
417
417
  signal: n,
418
418
  tileId: s,
@@ -438,7 +438,7 @@ const sn = async ({
438
438
  timezone: N
439
439
  }))
440
440
  return { totalBytesProcessed: 0 };
441
- const W = x.map((Y) => Y.id), q = S.map((Y) => Y.id), le = je(l, I, s ?? ""), X = {
441
+ const U = x.map((Y) => Y.id), q = S.map((Y) => Y.id), le = je(l, I, s ?? ""), X = {
442
442
  fetchType: Oe.Post,
443
443
  url: `/${p.value}/v2/query/dry-run`,
444
444
  data: {
@@ -450,7 +450,7 @@ const sn = async ({
450
450
  E().tz(N).hour(Number((_ = h.end) == null ? void 0 : _.hour)).minute(Number((K = h.end) == null ? void 0 : K.minute)).endOf("minutes").toISOString()
451
451
  ],
452
452
  businessIds: p.value ? [p.value] : [],
453
- restaurantIds: W,
453
+ restaurantIds: U,
454
454
  warehouseIds: q,
455
455
  timezone: N,
456
456
  skipStringSpaceGrouping: !1,
@@ -500,7 +500,7 @@ const sn = async ({
500
500
  selectedRestaurantIds: I,
501
501
  selectedWarehouseIds: O,
502
502
  selectedLocationIds: L,
503
- dateRange: W,
503
+ dateRange: U,
504
504
  compareDateRange: q,
505
505
  timeRange: le,
506
506
  timezone: X,
@@ -509,7 +509,7 @@ const sn = async ({
509
509
  } = Me(), { globalFilters: _ } = Ge();
510
510
  if (L.length === 0)
511
511
  return null;
512
- const K = p ?? W, Y = d ?? le, H = f ?? _;
512
+ const K = p ?? U, Y = d ?? le, H = f ?? _;
513
513
  if (!Qe({
514
514
  report: h,
515
515
  pageSubject: N,
@@ -566,11 +566,11 @@ const sn = async ({
566
566
  globalFilters: g
567
567
  }) => {
568
568
  const { businessId: v } = re(ke()), i = Me(), { compareDateRange: w } = re(i), { restaurants: k, warehouses: te, timezone: x } = i, { globalFilters: S } = Ge(), { currentReport: u, overviewReport: m } = Pe(), { selectedNavigationTab: h } = qe(), { getTileSorts: N } = Ht(), { getTileSearch: I } = Hl();
569
- let O = u == null ? void 0 : u.id, L = We(u == null ? void 0 : u.tiles);
570
- h === "overview" && m && (O = m == null ? void 0 : m.id, L = We(m == null ? void 0 : m.tiles));
571
- const W = h === "overview" && m ? m : u, q = Ke(h);
569
+ let O = u == null ? void 0 : u.id, L = Ue(u == null ? void 0 : u.tiles);
570
+ h === "overview" && m && (O = m == null ? void 0 : m.id, L = Ue(m == null ? void 0 : m.tiles));
571
+ const U = h === "overview" && m ? m : u, q = Ke(h);
572
572
  if (!Qe({
573
- report: W,
573
+ report: U,
574
574
  pageSubject: q,
575
575
  dateRange: f,
576
576
  compareDateRange: w.value,
@@ -638,8 +638,8 @@ const sn = async ({
638
638
  console.error("No email addresses provided.");
639
639
  return;
640
640
  }
641
- let O = (w == null ? void 0 : w.id) || "", L = (w == null ? void 0 : w.name) || "", W = We(w == null ? void 0 : w.tiles);
642
- te === "overview" && k && (O = k == null ? void 0 : k.id, L = k.name, W = We(k == null ? void 0 : k.tiles));
641
+ let O = (w == null ? void 0 : w.id) || "", L = (w == null ? void 0 : w.name) || "", U = Ue(w == null ? void 0 : w.tiles);
642
+ te === "overview" && k && (O = k == null ? void 0 : k.id, L = k.name, U = Ue(k == null ? void 0 : k.tiles));
643
643
  const q = te === "overview" && k ? k : w, le = Ke(te);
644
644
  if (!Qe({
645
645
  report: q,
@@ -649,7 +649,7 @@ const sn = async ({
649
649
  timezone: h
650
650
  }))
651
651
  return;
652
- const X = v ?? N, ne = W.map((_) => je(_.widget, X, _.id)), C = {
652
+ const X = v ?? N, ne = U.map((_) => je(_.widget, X, _.id)), C = {
653
653
  businessId: i.value,
654
654
  status: Yt.generating,
655
655
  dateRange: {
@@ -750,7 +750,7 @@ const sn = async ({
750
750
  getWidgetResult: f,
751
751
  clearAllWidgetResults: g
752
752
  };
753
- }), Wt = (l, n = "en") => E().set("hour", l.hour).set("minute", l.minute).locale(n).format("h:mm A"), cn = (l, n) => {
753
+ }), Ut = (l, n = "en") => E().set("hour", l.hour).set("minute", l.minute).locale(n).format("h:mm A"), cn = (l, n) => {
754
754
  const s = E().set("hour", l.hour).set("minute", l.minute);
755
755
  return E().set("hour", n.hour).set("minute", n.minute) < s ? "+1" : "";
756
756
  };
@@ -840,9 +840,9 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
840
840
  locale: r.value
841
841
  }));
842
842
  return (S, u) => {
843
- const m = ee("FmChip"), h = ee("FmRadio"), N = ee("FmMenuDivider"), I = ee("FmRadioGroup"), O = ee("FmTimeInput"), L = ee("FmButton"), W = ee("FmPopover");
843
+ const m = ee("FmChip"), h = ee("FmRadio"), N = ee("FmMenuDivider"), I = ee("FmRadioGroup"), O = ee("FmTimeInput"), L = ee("FmButton"), U = ee("FmPopover");
844
844
  return J(), fe("div", null, [
845
- P(W, {
845
+ P(U, {
846
846
  "show-popover": k.value,
847
847
  placement: "bottom",
848
848
  onPopoverChanged: u[6] || (u[6] = (q) => k.value = q)
@@ -881,7 +881,7 @@ const dn = { class: "px-24 py-16 rounded-lg shadow-light-300" }, mn = { class: "
881
881
  [Al, C.isDefault]
882
882
  ])
883
883
  ]),
884
- Q("p", pn, he(D(Wt)(C.startTime, D(xe)())) + " - " + he(D(Wt)(C.endTime, D(xe)())) + " " + he(D(cn)(C.startTime, C.endTime)), 1)
884
+ Q("p", pn, he(D(Ut)(C.startTime, D(xe)())) + " - " + he(D(Ut)(C.endTime, D(xe)())) + " " + he(D(cn)(C.startTime, C.endTime)), 1)
885
885
  ]),
886
886
  _: 2
887
887
  }, 1032, ["value", "label", "onClick"]))), 128)),
@@ -1003,19 +1003,19 @@ var $e = /* @__PURE__ */ ((l) => (l.Select = "Select", l.TextField = "TextField"
1003
1003
  function gn(l) {
1004
1004
  let n = !1, s = 1;
1005
1005
  switch (l) {
1006
- case U.Equal:
1007
- case U.NotEqual:
1008
- case U.Like:
1009
- case U.NotLike:
1006
+ case W.Equal:
1007
+ case W.NotEqual:
1008
+ case W.Like:
1009
+ case W.NotLike:
1010
1010
  n = !1, s = 1;
1011
1011
  break;
1012
- case U.GreaterThan:
1013
- case U.GreaterThanOrEqual:
1014
- case U.LessThan:
1015
- case U.LessThanOrEqual:
1012
+ case W.GreaterThan:
1013
+ case W.GreaterThanOrEqual:
1014
+ case W.LessThan:
1015
+ case W.LessThanOrEqual:
1016
1016
  n = !0, s = 1;
1017
1017
  break;
1018
- case U.Between:
1018
+ case W.Between:
1019
1019
  n = !0, s = 2;
1020
1020
  break;
1021
1021
  }
@@ -1198,7 +1198,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1198
1198
  },
1199
1199
  setup(l) {
1200
1200
  const n = l, { t: s, locale: r } = Jt(), { currentReport: d, editingTile: p } = re(Pe());
1201
- let { timeRange: f, dateRange: g, selectedLocationIds: v, timezone: i } = re(Me()), { globalFilters: w } = re(Ge()), { schemas: k } = re(Ul()), {
1201
+ let { timeRange: f, dateRange: g, selectedLocationIds: v, timezone: i } = re(Me()), { globalFilters: w } = re(Ge()), { schemas: k } = re(Wl()), {
1202
1202
  showMore: te,
1203
1203
  getGlobalFilter: x,
1204
1204
  setGlobalFilter: S,
@@ -1209,7 +1209,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1209
1209
  incrementAppliedTilesFiltersVersion: I
1210
1210
  } = Ge();
1211
1211
  const O = Se(() => s("report.input.empty")), L = ["NULL", "", " "];
1212
- let W;
1212
+ let U;
1213
1213
  const q = un(), { getWidgetResult: le } = q, { widgetResults: X, isAllWidgetResultLoaded: ne } = re(q), C = ve(!1), _ = ve(!1), K = ve(""), Y = ve({}), H = Se(() => {
1214
1214
  var e;
1215
1215
  return n.globalFilterId ?? ((e = d.value) == null ? void 0 : e.id) ?? "";
@@ -1547,7 +1547,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1547
1547
  var A, M;
1548
1548
  if (!ae.value && !p.value) return [];
1549
1549
  if (!((A = e.tileIds) != null && A.length)) return [];
1550
- const t = p.value ? [p.value] : We((M = ae.value) == null ? void 0 : M.tiles), { name: o = "", schemaName: a = "" } = e, b = t.filter(($) => {
1550
+ const t = p.value ? [p.value] : Ue((M = ae.value) == null ? void 0 : M.tiles), { name: o = "", schemaName: a = "" } = e, b = t.filter(($) => {
1551
1551
  var de, F;
1552
1552
  const G = (de = $ == null ? void 0 : $.widget) == null ? void 0 : de.config;
1553
1553
  if (!G || (F = e.tileIds) != null && F.length && !e.tileIds.includes($.id)) return !1;
@@ -1562,7 +1562,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1562
1562
  const T = ($, G) => {
1563
1563
  const c = /* @__PURE__ */ new Map(), j = (V) => {
1564
1564
  const de = `${V.schemaName}:${V.name}:${V.operator}:${V.option ?? ""}:${V.dataFormula ?? ""}`, F = c.get(de);
1565
- F ? [U.Like, U.NotLike].includes(V.operator) ? F.values = Array.from(/* @__PURE__ */ new Set([...F.values ?? [], ...V.values ?? []])) : c.set(de, { ...V }) : c.set(de, { ...V });
1565
+ F ? [W.Like, W.NotLike].includes(V.operator) ? F.values = Array.from(/* @__PURE__ */ new Set([...F.values ?? [], ...V.values ?? []])) : c.set(de, { ...V }) : c.set(de, { ...V });
1566
1566
  };
1567
1567
  return $.forEach(j), G.forEach(j), Array.from(c.values());
1568
1568
  }, y = ($) => {
@@ -1769,7 +1769,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1769
1769
  }
1770
1770
  const y = Array.from(new Set(T)), A = Te(e), M = e.keepSelection ? Array.from(/* @__PURE__ */ new Set([...y, ...A])) : y, $ = new Set(T), G = new Set(y);
1771
1771
  e.options = rt(
1772
- Wl(M, {
1772
+ Ul(M, {
1773
1773
  unknownLabel: O.value,
1774
1774
  getAvailable: (c) => e.keepSelection ? $.has(c) : G.has(c)
1775
1775
  })
@@ -1801,9 +1801,9 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1801
1801
  }
1802
1802
  async function Xe() {
1803
1803
  if (!H.value || !z.value.length) return;
1804
- W && W.abort();
1804
+ U && U.abort();
1805
1805
  const e = new AbortController();
1806
- W = e, C.value = !0, n.isDialogGlobalFilter && (_.value = !0);
1806
+ U = e, C.value = !0, n.isDialogGlobalFilter && (_.value = !0);
1807
1807
  try {
1808
1808
  await Promise.all(
1809
1809
  z.value.map(
@@ -1811,7 +1811,7 @@ const Fn = { class: "flex flex-row flex-wrap gap-2" }, wn = { class: "inline-fle
1811
1811
  )
1812
1812
  );
1813
1813
  } finally {
1814
- W === e && (C.value = !1), n.isDialogGlobalFilter && W === e && (_.value = !1);
1814
+ U === e && (C.value = !1), n.isDialogGlobalFilter && U === e && (_.value = !1);
1815
1815
  }
1816
1816
  }
1817
1817
  function $t(e, t) {
@@ -2123,7 +2123,7 @@ export {
2123
2123
  Yn as a,
2124
2124
  Zn as b,
2125
2125
  Xn as c,
2126
- Wn as d,
2126
+ Un as d,
2127
2127
  qt as e,
2128
2128
  Sn as f,
2129
2129
  Hn as g,
@@ -2137,6 +2137,6 @@ export {
2137
2137
  rn as q,
2138
2138
  Qn as r,
2139
2139
  cn as s,
2140
- Wt as t,
2140
+ Ut as t,
2141
2141
  Ht as u
2142
2142
  };
@@ -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-BbIP6Sxr.js";
3
- import { D as ge } from "./DateRangeSelect-CU1zLhsi.js";
4
- import { d as E, u as Q, F as ee, q as te, a as pe, i as ve, g as H, j as he, k as ye, l as we } from "./app-Bw-zsS2R.js";
2
+ import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-CIVlgjSX.js";
3
+ import { D as ge } from "./DateRangeSelect-AJd7gYva.js";
4
+ import { d as E, u as Q, F as ee, q as te, a as pe, i as ve, g as H, j as he, k as ye, l as we } from "./app-BxEbZEnS.js";
5
5
  import { storeToRefs as ae } from "pinia";
6
6
  import { C as le, r as xe } from "./chart-BywXiz4O.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-C2yXmZru.js";
11
+ import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-BsdJx7gt.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-BriXZRy-.js";
13
+ import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-b6hgoVnw.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 ve, mergeModels as ke, useModel as be, computed as X, resolveComponent as T, createElementBlock as R, openBlock as x, createElementVNode as t, createCommentVNode as q, normalizeClass as Ye, Fragment as $e, renderList as qe, createBlock as ae, normalizeStyle as st, createVNode as l, withCtx as Ce, renderSlot as It, toDisplayString as C, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as ze, resolveDynamicComponent as Ge, mergeProps as dt, onMounted as ct, withKeys as nt, withModifiers as mt, nextTick as kt } from "vue";
2
2
  import { useRouter as Ie, useRoute as Tt } from "vue-router";
3
- import { A as Se, x as it, d as Fe, y as Nt, e as Ee, a as Te, B as _e, E as Vt, G as Ft, s as ce, w as Je, H as Qe, J as He, K as Ze, L as pt, M as Kt, N as Mt, O as Ut, P as Rt, Q as Pt, R as ut, b as ft, S as Ot, T as Lt, o as jt, I as Be, U as Et, V as Bt, W as Yt } from "./app-Bw-zsS2R.js";
3
+ import { A as Se, x as it, d as Fe, y as Nt, e as Ee, a as Te, B as _e, E as Vt, G as Ft, s as ce, w as Je, H as Qe, J as He, K as Ze, L as pt, M as Kt, N as Mt, O as Ut, P as Rt, Q as Pt, R as ut, b as ft, S as Ot, T as Lt, o as jt, I as Be, U as Et, V as Bt, W as Yt } from "./app-BxEbZEnS.js";
4
4
  import { u as et } from "./global-loader-BuxFfehu.js";
5
5
  import { u as tt } from "./message-dialog-UoMWOnil.js";
6
6
  import { useSnackbar as Ne } from "@feedmepos/ui-library";
7
7
  import { s as St } from "./index-CtZE4sab.js";
8
8
  import { u as we, _ as qt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
- import { u as We, h as Ae } from "./useRestaurantPermission-BZR1kItv.js";
9
+ import { u as We, h as Ae } from "./useRestaurantPermission-D8xwhBHn.js";
10
10
  import { storeToRefs as ot } from "pinia";
11
- import { D as at } from "./DateRangeSelect-CU1zLhsi.js";
11
+ import { D as at } from "./DateRangeSelect-AJd7gYva.js";
12
12
  const Ht = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, zt = { class: "w-[100%] overflow-hidden" }, Gt = { class: "inline-flex max-w-full items-center gap-2 align-top" }, Qt = { class: "text-nowrap min-w-0 overflow-hidden text-ellipsis font-semibold" }, Wt = {
13
13
  key: 0,
14
14
  class: "w-[24px] flex items-center"