@feedmepos/mf-report 5.33.3 → 5.34.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/{App-BgRqim5d.js → App-DyrakazI.js} +114 -113
  2. package/dist/{DateRangeSelect-XyU5XG5c.js → DateRangeSelect-D5SGi6ca.js} +67 -67
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CC7fE3F8.js → Default.vue_vue_type_script_setup_true_lang-DsTRZa_6.js} +3 -3
  4. package/dist/DigestListView-BnkDRa7x.js +876 -0
  5. package/dist/{DigestReaderView-DSNoAESE.js → DigestReaderView-ByISB4qT.js} +63 -63
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CsDiXGUk.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BKNNtuyG.js} +733 -733
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-D7Rsh-uY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DHrnVaog.js} +526 -526
  8. package/dist/{InsightView-CF8mQJha.js → InsightView-CUBTqwTI.js} +88 -88
  9. package/dist/{Integration-QMdYwTwW.js → Integration-WDbqUebw.js} +30 -30
  10. package/dist/{Integrations-Dbx1ScOv.js → Integrations-C5_nERZt.js} +10 -10
  11. package/dist/{Layout-CgiplBHM.js → Layout-BqzoK8Mg.js} +3 -3
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-zW8JA7j3.js → LocationSelect.vue_vue_type_script_setup_true_lang-kvdk_gEw.js} +306 -306
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B0q9V1x8.js → MenuTab.vue_vue_type_script_setup_true_lang-B8uHS4bV.js} +6 -6
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BVWZ8vTw.js → NavigationTab.vue_vue_type_script_setup_true_lang-CpexikuB.js} +12784 -11760
  15. package/dist/{OverviewView-BbZ8WkLb.js → OverviewView-mOEI9DAV.js} +7 -7
  16. package/dist/{Report-BYi0pPZs.js → Report-DmbTzjbj.js} +12 -12
  17. package/dist/{ReportCanvasView-CfFtVomc.js → ReportCanvasView-BqZ38Tsk.js} +426 -426
  18. package/dist/{ReportEditor-BLEkGUVR.js → ReportEditor-8oAVfFdY.js} +32 -32
  19. package/dist/{ReportView-TG78Krm2.js → ReportView-B6nE3qwV.js} +13 -13
  20. package/dist/{ReportViewRoute-BUADf4Cr.js → ReportViewRoute-DqXbM93B.js} +5 -5
  21. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
  22. package/dist/{Setting-Curkhv9_.js → Setting-C01x-O-V.js} +6 -6
  23. package/dist/{Template-BN_ds698.js → Template-VyBWHUXE.js} +80 -80
  24. package/dist/{TileEditor-Cfb0uXGr.js → TileEditor-DICyBR1o.js} +1566 -1566
  25. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-1FKwWbpC.js → TilePageStack.vue_vue_type_script_setup_true_lang-Dyaao76o.js} +82 -82
  26. package/dist/{TransitionFade-D0_ZoB-O.js → TransitionFade-kXCDPEMQ.js} +170 -170
  27. package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
  28. package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
  29. package/dist/{app-LKjvcmXa.js → app-BQDKX7NB.js} +5688 -13890
  30. package/dist/app.js +1 -1
  31. package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
  32. package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
  33. package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
  34. package/dist/currency-8SmajsvB.js +12 -0
  35. package/dist/index-BQ8NJuCA.js +24722 -0
  36. package/dist/{report-Ci2ElGpp.js → report-CcXsPATD.js} +23 -23
  37. package/dist/style.css +1 -1
  38. package/dist/{useDigestFont-BxXC7U3d.js → useDigestFont-CjZZOIRM.js} +80 -80
  39. package/dist/{useReportCanvasPanel-BjmRiMSh.js → useReportCanvasPanel-dWlB_xvo.js} +975 -976
  40. package/dist/{useRestaurantPermission-DX52YBfA.js → useRestaurantPermission-D3G7ET0Z.js} +2 -2
  41. package/package.json +11 -11
  42. package/dist/DigestListView-Bqp4LA1w.js +0 -876
  43. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
  44. package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
  45. package/dist/currency-DFN_8rRJ.js +0 -12
  46. package/dist/index-xdTpLFHc.js +0 -25511
@@ -1,16 +1,16 @@
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-CC7fE3F8.js";
3
- import { D as ge } from "./DateRangeSelect-XyU5XG5c.js";
4
- import { d as E, u as Q, F as ee, q as te, a as pe, j as ve, h as H, p as he, s as ye, v as we } from "./app-LKjvcmXa.js";
1
+ import { ref as I, defineComponent as S, watch as P, computed as $, onMounted as de, openBlock as o, createElementBlock as i, createElementVNode as s, renderSlot as J, toDisplayString as C, resolveDirective as K, Fragment as z, renderList as N, createBlock as R, resolveDynamicComponent as U, unref as m, withCtx as B, withDirectives as T, createVNode as p, createCommentVNode as D, 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-DsTRZa_6.js";
3
+ import { D as ge } from "./DateRangeSelect-D5SGi6ca.js";
4
+ import { d as E, u as Q, F as ee, q as te, a as pe, j as ve, h as H, p as he, s as ye, v as xe } from "./app-BQDKX7NB.js";
5
5
  import { storeToRefs as ae } from "pinia";
6
- import { C as le, r as xe } from "./chart-BywXiz4O.js";
6
+ import { C as le, r as we } from "./chart-DU0N9V2o.js";
7
7
  import { components as Y, useSnackbar as be } from "@feedmepos/ui-library";
8
- import { u as se } from "./_plugin-vue_export-helper-C6QDExPN.js";
8
+ import { u as se } from "./_plugin-vue_export-helper-Bx7s49ra.js";
9
9
  import { c as X } from "./index-CtZE4sab.js";
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-zW8JA7j3.js";
10
+ import { _ as Ce } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
11
+ import { _ as ke } from "./LocationSelect.vue_vue_type_script_setup_true_lang-kvdk_gEw.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-BVWZ8vTw.js";
13
+ import { G as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CpexikuB.js";
14
14
  function Ae({ start: e, end: t }) {
15
15
  return `${E(t).format("DD MMM")}, ${E(t).format("YYYY")}`;
16
16
  }
@@ -38,7 +38,7 @@ const De = async (e) => {
38
38
  };
39
39
  return te.fetch(a);
40
40
  };
41
- le.register(...xe);
41
+ le.register(...we);
42
42
  const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "flex flex-col gap-8" }, Be = { class: "fm-color-typo-primary fm-typo-en-body-lg-400" }, Ve = { class: "fm-color-typo-secondary fm-typo-en-body-md-400" }, Se = { class: "grow" }, Pe = /* @__PURE__ */ S({
43
43
  __name: "LineChart",
44
44
  props: {
@@ -65,28 +65,28 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
65
65
  () => t.legend
66
66
  ],
67
67
  () => {
68
- l && l.config.options && (l.destroy(), d());
68
+ l && l.config.options && (l.destroy(), r());
69
69
  }
70
70
  );
71
- const n = $(() => t.transpose ? "y" : "x"), w = $(() => ({
71
+ const n = $(() => t.transpose ? "y" : "x"), x = $(() => ({
72
72
  labels: t.xAxis.categories,
73
- datasets: t.datasets.map((i) => ({
74
- ...i,
75
- borderDash: i.dash ? [5, 5] : void 0,
76
- tension: i.tension || 0.1
73
+ datasets: t.datasets.map((d) => ({
74
+ ...d,
75
+ borderDash: d.dash ? [5, 5] : void 0,
76
+ tension: d.tension || 0.1
77
77
  }))
78
78
  }));
79
79
  P(
80
- w,
80
+ x,
81
81
  () => {
82
- l && (l.data = w.value, l.update());
82
+ l && (l.data = x.value, l.update());
83
83
  },
84
84
  { deep: !0 }
85
85
  );
86
- function d() {
86
+ function r() {
87
87
  a.value && (l = new le(a.value, {
88
88
  type: "line",
89
- data: w.value,
89
+ data: x.value,
90
90
  options: {
91
91
  plugins: {
92
92
  legend: t.legend || {
@@ -137,12 +137,12 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
137
137
  }));
138
138
  }
139
139
  return de(() => {
140
- d();
141
- }), (i, k) => (o(), r("div", Re, [
140
+ r();
141
+ }), (d, k) => (o(), i("div", Re, [
142
142
  s("div", Ie, [
143
- J(i.$slots, "title"),
144
- s("div", Be, C(i.name), 1),
145
- s("div", Ve, C(i.paragraph), 1)
143
+ J(d.$slots, "title"),
144
+ s("div", Be, C(e.name), 1),
145
+ s("div", Ve, C(e.paragraph), 1)
146
146
  ]),
147
147
  s("div", Se, [
148
148
  s("canvas", {
@@ -166,7 +166,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
166
166
  },
167
167
  setup(e) {
168
168
  const t = e, a = $(() => `${t.size}px`);
169
- return (l, n) => (o(), r("svg", {
169
+ return (l, n) => (o(), i("svg", {
170
170
  width: a.value,
171
171
  height: a.value,
172
172
  viewBox: "0 0 24 24",
@@ -217,44 +217,44 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
217
217
  },
218
218
  setup(e) {
219
219
  const t = I(0), a = I(), l = e;
220
- function n(d) {
221
- var i;
220
+ function n(r) {
221
+ var d;
222
222
  if (a.value) {
223
- const k = (((i = a.value) == null ? void 0 : i.scrollWidth) ?? 1) / l.items.length;
224
- a.value.scrollLeft = k * d;
223
+ const k = (((d = a.value) == null ? void 0 : d.scrollWidth) ?? 1) / l.items.length;
224
+ a.value.scrollLeft = k * r;
225
225
  }
226
- t.value = d;
226
+ t.value = r;
227
227
  }
228
228
  P(
229
229
  () => a.value,
230
230
  () => {
231
- var d;
231
+ var r;
232
232
  if (a.value) {
233
- const i = ((((d = a.value) == null ? void 0 : d.scrollWidth) ?? 1) - 400) / l.items.length;
233
+ const d = ((((r = a.value) == null ? void 0 : r.scrollWidth) ?? 1) - 400) / l.items.length;
234
234
  a.value.addEventListener("scroll", () => {
235
235
  var g;
236
- const k = Math.floor((((g = a.value) == null ? void 0 : g.scrollLeft) ?? 1) / i);
236
+ const k = Math.floor((((g = a.value) == null ? void 0 : g.scrollLeft) ?? 1) / d);
237
237
  t.value = k;
238
238
  });
239
239
  }
240
240
  }
241
241
  );
242
- const { FmTooltip: w } = Y;
243
- return (d, i) => {
242
+ const { FmTooltip: x } = Y;
243
+ return (r, d) => {
244
244
  const k = K("wave");
245
- return o(), r("div", ze, [
245
+ return o(), i("div", ze, [
246
246
  s("p", Ne, C(l.title), 1),
247
247
  s("div", {
248
248
  ref_key: "scroll",
249
249
  ref: a,
250
250
  class: "flex gap-8 overflow-x-scroll snap-x snap-mandatory w-full scrollbar-hide"
251
251
  }, [
252
- (o(!0), r(z, null, N(l.items, (g, c) => (o(), r("div", {
252
+ (o(!0), i(z, null, N(l.items, (g, c) => (o(), i("div", {
253
253
  key: `reason_${c}`,
254
254
  class: "min-w-[368px] border rounded-lg p-16 snap-always snap-center flex gap-8 flex-col"
255
255
  }, [
256
256
  s("div", Ee, [
257
- (o(), R(U(g.defination ? m(w) : "div"), {
257
+ (o(), R(U(g.defination ? m(x) : "div"), {
258
258
  content: g.defination,
259
259
  "z-index": 100
260
260
  }, {
@@ -263,8 +263,8 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
263
263
  ]),
264
264
  _: 2
265
265
  }, 1032, ["content"])),
266
- i[0] || (i[0] = s("div", { class: "grow" }, null, -1)),
267
- g.header === "Introduce Kid-Friendly Menu Items" ? T((o(), r("button", Ye, [
266
+ d[0] || (d[0] = s("div", { class: "grow" }, null, -1)),
267
+ g.header === "Introduce Kid-Friendly Menu Items" ? T((o(), i("button", Ye, [
268
268
  p(oe, { size: 22 })
269
269
  ])), [
270
270
  [k, !0]
@@ -272,12 +272,12 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
272
272
  ]),
273
273
  s("p", Ze, C(g.subLabel), 1)
274
274
  ]))), 128)),
275
- l.items.length === 0 ? (o(), r("div", qe, [
275
+ l.items.length === 0 ? (o(), i("div", qe, [
276
276
  s("p", null, "No " + C(l.title.toLowerCase()) + " at the moment", 1)
277
277
  ])) : D("", !0)
278
278
  ], 512),
279
- e.items.length > 1 ? (o(), r("div", He, [
280
- (o(!0), r(z, null, N(e.items, (g, c) => (o(), r("span", {
279
+ e.items.length > 1 ? (o(), i("div", He, [
280
+ (o(!0), i(z, null, N(e.items, (g, c) => (o(), i("span", {
281
281
  key: `carousel_${c}`,
282
282
  class: W([
283
283
  "w-[11px] h-[11px] rounded-lg cursor-pointer",
@@ -316,17 +316,17 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
316
316
  emits: ["click-feedback"],
317
317
  setup(e, { emit: t }) {
318
318
  const { t: a } = se(), l = $(() => e.widget.data.isAnomaly > 0 ? "bg-fm-color-system-success-100 text-fm-color-typo-success" : e.widget.data.isAnomaly < 0 ? "bg-fm-color-system-error-100 text-fm-color-typo-error" : ""), n = t;
319
- function w(u) {
319
+ function x(u) {
320
320
  u === e.widget.feedback.reaction ? n("click-feedback", null) : n("click-feedback", u);
321
321
  }
322
- const d = $(() => {
322
+ const r = $(() => {
323
323
  const u = "rgb(66, 133, 244)";
324
324
  let f = u;
325
325
  return e.widget.data.isAnomaly > 0 ? f = "#1F7735" : e.widget.data.isAnomaly < 0 && (f = "#99231D"), [
326
326
  {
327
327
  label: "Anomaly",
328
328
  data: e.widget.data.actualValues.map(
329
- (h, x) => x >= e.widget.data.actualValues.length - 2 ? h : null
329
+ (h, w) => w >= e.widget.data.actualValues.length - 2 ? h : null
330
330
  ),
331
331
  fill: !1,
332
332
  borderColor: f,
@@ -340,7 +340,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
340
340
  {
341
341
  label: "Actual",
342
342
  data: e.widget.data.actualValues.map(
343
- (h, x) => x !== e.widget.data.actualValues.length - 1 ? h : null
343
+ (h, w) => w !== e.widget.data.actualValues.length - 1 ? h : null
344
344
  ),
345
345
  fill: !1,
346
346
  borderColor: u,
@@ -369,7 +369,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
369
369
  borderColor: "white"
370
370
  }
371
371
  ];
372
- }), i = $(
372
+ }), d = $(
373
373
  () => e.widget.data.labels.map((u) => {
374
374
  const f = E(u), A = [f.format("DD MMM")], h = f.format("d");
375
375
  return (h === "6" || h === "0") && A.push(f.format("ddd")), A;
@@ -387,16 +387,16 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
387
387
  );
388
388
  }
389
389
  }
390
- }, g = $(() => ({ categories: i.value }));
390
+ }, g = $(() => ({ categories: d.value }));
391
391
  $(() => X(e.widget.category));
392
392
  const c = $(() => "The total money earned from all customer purchases, including sales, service charges, rounding, and delivery fees, minus any discounts. Revenue = gross sales - discounts + SST + service charge + rounding + delivery fee"), { FmTooltip: _ } = Y;
393
393
  return (u, f) => {
394
394
  var L, V;
395
- const A = M("FmChip"), h = M("FmIcon"), x = K("wave");
396
- return o(), r("div", {
395
+ const A = M("FmChip"), h = M("FmIcon"), w = K("wave");
396
+ return o(), i("div", {
397
397
  class: W(["flex flex-col gap-40 overflow-y-scroll relative scrollbar-hide", e.detail ? "max-w-[515px]" : "max-w-[368px]"])
398
398
  }, [
399
- T((o(), r("div", {
399
+ T((o(), i("div", {
400
400
  variant: "outlined",
401
401
  class: W(["flex flex-col p-16 gap-16 relative border rounded-lg", e.detail ? "" : "cursor-pointer"])
402
402
  }, [
@@ -431,19 +431,19 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
431
431
  s("div", at, C(m(Ae)(e.widget.dateRange)), 1)
432
432
  ])
433
433
  ]),
434
- e.detail ? (o(), r("div", lt, [
434
+ e.detail ? (o(), i("div", lt, [
435
435
  p(Pe, {
436
- datasets: d.value,
436
+ datasets: r.value,
437
437
  "x-axis": g.value,
438
438
  legend: k,
439
439
  "maintain-aspect-ratio": !1
440
440
  }, null, 8, ["datasets", "x-axis"])
441
441
  ])) : D("", !0),
442
- e.detail ? (o(), r("div", st, C(e.widget.description), 1)) : D("", !0)
442
+ e.detail ? (o(), i("div", st, C(e.widget.description), 1)) : D("", !0)
443
443
  ], 2)), [
444
- [x, !e.detail]
444
+ [w, !e.detail]
445
445
  ]),
446
- e.detail && e.widget.data.isAnomaly < 0 ? (o(), r("div", ot, [
446
+ e.detail && e.widget.data.isAnomaly < 0 ? (o(), i("div", ot, [
447
447
  p(G, {
448
448
  title: m(a)("report.view.insight.reason"),
449
449
  items: (L = e.widget.data.recommendations) == null ? void 0 : L.map((b) => ({
@@ -461,7 +461,7 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
461
461
  }))
462
462
  }, null, 8, ["title", "items"])
463
463
  ])) : D("", !0),
464
- e.detail ? (o(), r("div", nt, [
464
+ e.detail ? (o(), i("div", nt, [
465
465
  s("div", it, C(m(a)("report.view.insight.feedback.question")), 1),
466
466
  s("div", rt, [
467
467
  T(p(h, {
@@ -469,18 +469,18 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
469
469
  name: "thumb_up",
470
470
  size: "md",
471
471
  outline: e.widget.feedback.reaction !== !0,
472
- onClick: f[0] || (f[0] = () => w(!0))
472
+ onClick: f[0] || (f[0] = () => x(!0))
473
473
  }, null, 8, ["outline"]), [
474
- [x, !0]
474
+ [w, !0]
475
475
  ]),
476
476
  T(p(h, {
477
477
  class: "cursor-pointer p-4 icon-btn",
478
478
  name: "thumb_down",
479
479
  size: "md",
480
480
  outline: e.widget.feedback.reaction !== !1,
481
- onClick: f[1] || (f[1] = () => w(!1))
481
+ onClick: f[1] || (f[1] = () => x(!1))
482
482
  }, null, 8, ["outline"]), [
483
- [x, !0]
483
+ [w, !0]
484
484
  ])
485
485
  ])
486
486
  ])) : D("", !0)
@@ -497,24 +497,24 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
497
497
  setup(e) {
498
498
  const t = ce(e, "modelValue"), { FmSideSheet: a } = Y;
499
499
  return (l, n) => {
500
- const w = M("FmButton");
500
+ const x = M("FmButton");
501
501
  return o(), R(U(m(a)), {
502
502
  modelValue: t.value,
503
- "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d),
503
+ "onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r),
504
504
  "fullscreen-size": "sm",
505
505
  "dismiss-away": !0,
506
506
  "max-width": 512
507
507
  }, {
508
- "side-sheet-header": B(() => n[2] || (n[2] = [
509
- ue("Insight")
510
- ])),
508
+ "side-sheet-header": B(() => [...n[2] || (n[2] = [
509
+ ue("Insight", -1)
510
+ ])]),
511
511
  "top-sheet-header": B(() => [
512
512
  s("div", dt, [
513
513
  n[3] || (n[3] = s("p", null, "Insight", -1)),
514
- p(w, {
514
+ p(x, {
515
515
  icon: "close",
516
516
  variant: "tertiary",
517
- onClick: n[0] || (n[0] = (d) => t.value = !1)
517
+ onClick: n[0] || (n[0] = (r) => t.value = !1)
518
518
  })
519
519
  ])
520
520
  ]),
@@ -540,22 +540,22 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
540
540
  const { t } = se(), a = _e(), {
541
541
  dateRange: l,
542
542
  compareDateRange: n,
543
- locations: w,
544
- selectedLocationIds: d,
545
- selectedRestaurantIds: i,
543
+ locations: x,
544
+ selectedLocationIds: r,
545
+ selectedRestaurantIds: d,
546
546
  business: k,
547
547
  timezone: g
548
- } = ae(pe()), c = I([]), _ = I(null), u = I(!1), f = be(), { canReadPageDateRange: A, getPageAccessWindow: h } = ve(), x = $(
548
+ } = ae(pe()), c = I([]), _ = I(null), u = I(!1), f = be(), { canReadPageDateRange: A, getPageAccessWindow: h } = ve(), w = $(
549
549
  () => h(H.report_accessInsight, g.value)
550
550
  ), L = $(
551
- () => he(ye(), x.value)
551
+ () => he(ye(), w.value)
552
552
  );
553
553
  P(
554
- [x, l, g],
554
+ [w, l, g],
555
555
  () => {
556
- const y = we(
556
+ const y = xe(
557
557
  l.value,
558
- x.value,
558
+ w.value,
559
559
  g.value
560
560
  );
561
561
  y && (y.startDate !== l.value.startDate || y.endDate !== l.value.endDate) && (l.value = y);
@@ -570,14 +570,14 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
570
570
  );
571
571
  async function V() {
572
572
  try {
573
- u.value = !0, i.value.length === 0 ? c.value = [] : A(
573
+ u.value = !0, d.value.length === 0 ? c.value = [] : A(
574
574
  H.report_accessInsight,
575
575
  l.value,
576
576
  g.value
577
577
  ) ? c.value = await De({
578
578
  start: l.value.startDate,
579
579
  end: l.value.endDate,
580
- restaurantIds: i.value
580
+ restaurantIds: d.value
581
581
  }) : c.value = [];
582
582
  } catch (y) {
583
583
  f.open({ message: y, type: "error" }), c.value = [];
@@ -632,12 +632,12 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
632
632
  s("div", ft, [
633
633
  s("div", mt, [
634
634
  p(ke, {
635
- modelValue: m(d),
635
+ modelValue: m(r),
636
636
  "onUpdate:modelValue": [
637
- v[0] || (v[0] = (F) => j(d) ? d.value = F : null),
637
+ v[0] || (v[0] = (F) => j(r) ? r.value = F : null),
638
638
  V
639
639
  ],
640
- options: m(w)
640
+ options: m(x)
641
641
  }, null, 8, ["modelValue", "options"]),
642
642
  p(ge, {
643
643
  "date-range": m(l),
@@ -648,16 +648,16 @@ const Re = { class: "flex flex-col h-full overflow-hidden" }, Ie = { class: "fle
648
648
  "compare-date-range": m(n),
649
649
  "onUpdate:compareDateRange": v[2] || (v[2] = (F) => j(n) ? n.value = F : null),
650
650
  "date-predefined-ranges": L.value,
651
- "min-date": (Z = x.value) == null ? void 0 : Z.minDate,
651
+ "min-date": (Z = w.value) == null ? void 0 : Z.minDate,
652
652
  compare: !1
653
653
  }, null, 8, ["date-range", "compare-date-range", "date-predefined-ranges", "min-date"])
654
654
  ])
655
655
  ]),
656
- u.value ? (o(), r("div", gt, [
656
+ u.value ? (o(), i("div", gt, [
657
657
  p(re, { size: "xl" })
658
- ])) : (o(), r("div", pt, [
659
- c.value.length > 0 ? (o(), r("div", vt, [
660
- (o(!0), r(z, null, N(c.value, (F, q) => (o(), R(O, {
658
+ ])) : (o(), i("div", pt, [
659
+ c.value.length > 0 ? (o(), i("div", vt, [
660
+ (o(!0), i(z, null, N(c.value, (F, q) => (o(), R(O, {
661
661
  key: q,
662
662
  widget: F,
663
663
  onClick: () => b(q)
@@ -1,14 +1,14 @@
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 He, resolveDynamicComponent as Ge, mergeProps as dt, onMounted as ct, withKeys as nt, withModifiers as mt, nextTick as kt } from "vue";
1
+ import { defineComponent as ve, useModel as be, computed as X, resolveComponent as T, openBlock as x, createElementBlock as R, createElementVNode as t, normalizeClass as Ye, Fragment as $e, renderList as qe, normalizeStyle as st, createVNode as l, createBlock as ae, withCtx as Ce, toDisplayString as C, renderSlot as It, createCommentVNode as q, mergeModels as ke, unref as n, h, createTextVNode as $t, ref as se, onUnmounted as Xe, watch as De, isRef as He, 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 { K as Se, L as it, d as Fe, M as Nt, e as Ee, a as Te, N as _e, O as Vt, P as Ft, G as ce, J as Je, Q as Qe, R as ze, S as Ze, T as pt, U as Kt, V as Mt, W as Ut, X as Rt, Y as Pt, Z as ut, b as ft, _ as Ot, $ as Lt, E as jt, I as Be, a0 as Et, a1 as Bt, a2 as Yt } from "./app-LKjvcmXa.js";
3
+ import { K as Se, L as it, d as Fe, M as Nt, e as Ee, a as Te, N as _e, O as Vt, P as Ft, G as ce, J as Je, Q as Qe, R as ze, S as Ze, T as pt, U as Kt, V as Mt, W as Ut, X as Rt, Y as Pt, Z as ut, b as ft, _ as Ot, $ as Lt, E as jt, I as Be, a0 as Et, a1 as Bt, a2 as Yt } from "./app-BQDKX7NB.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
- import { u as we, _ as qt } from "./_plugin-vue_export-helper-C6QDExPN.js";
9
- import { u as We, h as Ae } from "./useRestaurantPermission-DX52YBfA.js";
8
+ import { u as we, _ as qt } from "./_plugin-vue_export-helper-Bx7s49ra.js";
9
+ import { u as We, h as Ae } from "./useRestaurantPermission-D3G7ET0Z.js";
10
10
  import { storeToRefs as ot } from "pinia";
11
- import { D as at } from "./DateRangeSelect-XyU5XG5c.js";
11
+ import { D as at } from "./DateRangeSelect-D5SGi6ca.js";
12
12
  const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Ht = { 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"
@@ -396,9 +396,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
396
396
  l(u, {
397
397
  content: p.lastUploadDate ? n(o)("report.integration.startSyncDateLocked") : n(o)("report.integration.startSyncDateHint")
398
398
  }, {
399
- default: Ce(() => s[10] || (s[10] = [
399
+ default: Ce(() => [...s[10] || (s[10] = [
400
400
  t("span", { class: "cursor-pointer text-fm-color-typo-secondary select-none" }, "ⓘ", -1)
401
- ])),
401
+ ])]),
402
402
  _: 1
403
403
  }, 8, ["content"])
404
404
  ]),
@@ -772,7 +772,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
772
772
  $t(C(S), 1)
773
773
  ], 64)) : q("", !0)
774
774
  ], 4))), 128)),
775
- N.removable ? (x(), R("div", Lo)) : q("", !0)
775
+ m.removable ? (x(), R("div", Lo)) : q("", !0)
776
776
  ], 2),
777
777
  !e.fieldsOptions || !Object.values(e.fieldsOptions).some((S) => S.dropdownOptions) ? (x(), ae(ie, {
778
778
  key: `item-${f}`,
@@ -1613,9 +1613,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1613
1613
  style: { paddingLeft: "0px", paddingRight: "0px" },
1614
1614
  "onClick:back": d[0] || (d[0] = (w) => n(S).push({ name: "integrations" }))
1615
1615
  }, {
1616
- description: Ce(() => d[3] || (d[3] = [
1616
+ description: Ce(() => [...d[3] || (d[3] = [
1617
1617
  t("div", null, null, -1)
1618
- ])),
1618
+ ])]),
1619
1619
  _: 1
1620
1620
  }, 8, ["title"]),
1621
1621
  l(s, {
@@ -2115,7 +2115,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2115
2115
  "onUpdate:modelValue": D[12] || (D[12] = (W) => o.value.platform = W),
2116
2116
  label: "upload",
2117
2117
  "last-upload-date": (le = o.value.platform) == null ? void 0 : le.lastUploadDate,
2118
- "error-logs": k.errorLogs,
2118
+ "error-logs": m.errorLogs,
2119
2119
  "integration-id": o.value._id
2120
2120
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
2121
2121
  l(ne, { style: { margin: 0 } }),
@@ -2549,9 +2549,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2549
2549
  style: { paddingLeft: "0px", paddingRight: "0px" },
2550
2550
  "onClick:back": V[0] || (V[0] = (d) => n(f).push({ name: "integrations" }))
2551
2551
  }, {
2552
- description: Ce(() => V[3] || (V[3] = [
2552
+ description: Ce(() => [...V[3] || (V[3] = [
2553
2553
  t("div", null, null, -1)
2554
- ])),
2554
+ ])]),
2555
2555
  _: 1
2556
2556
  }, 8, ["title"]),
2557
2557
  l(K, {
@@ -2989,7 +2989,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2989
2989
  "onUpdate:modelValue": _[10] || (_[10] = (ee) => e.value.platform = ee),
2990
2990
  label: n(o)("report.input.email"),
2991
2991
  "last-upload-date": (Pe = e.value.platform) == null ? void 0 : Pe.lastUploadDate,
2992
- "error-logs": U.errorLogs,
2992
+ "error-logs": m.errorLogs,
2993
2993
  "integration-id": e.value._id,
2994
2994
  "is-auto-email-mode": !0
2995
2995
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
@@ -3827,9 +3827,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3827
3827
  style: { paddingLeft: "0px", paddingRight: "0px" },
3828
3828
  "onClick:back": f[0] || (f[0] = ($) => n(N).push({ name: "integrations" }))
3829
3829
  }, {
3830
- description: Ce(() => f[3] || (f[3] = [
3830
+ description: Ce(() => [...f[3] || (f[3] = [
3831
3831
  t("div", null, null, -1)
3832
- ])),
3832
+ ])]),
3833
3833
  _: 1
3834
3834
  }, 8, ["title"]),
3835
3835
  l(A, {
@@ -4182,7 +4182,7 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4182
4182
  "onUpdate:modelValue": a[13] || (a[13] = (I) => e.value.platform = I),
4183
4183
  label: "email",
4184
4184
  "last-upload-date": (k = e.value.platform) == null ? void 0 : k.lastUploadDate,
4185
- "error-logs": i.errorLogs,
4185
+ "error-logs": m.errorLogs,
4186
4186
  "integration-id": e.value._id,
4187
4187
  "is-auto-email-mode": !0
4188
4188
  }, null, 8, ["modelValue", "last-upload-date", "error-logs", "integration-id"]),
@@ -4716,9 +4716,9 @@ const zt = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
4716
4716
  style: { paddingLeft: "0px", paddingRight: "0px" },
4717
4717
  "onClick:back": f[0] || (f[0] = ($) => n(N).push({ name: "integrations" }))
4718
4718
  }, {
4719
- description: Ce(() => f[3] || (f[3] = [
4719
+ description: Ce(() => [...f[3] || (f[3] = [
4720
4720
  t("div", null, null, -1)
4721
- ])),
4721
+ ])]),
4722
4722
  _: 1
4723
4723
  }, 8, ["title"]),
4724
4724
  l(A, {
@@ -5651,9 +5651,9 @@ const di = [
5651
5651
  style: { paddingLeft: "0px", paddingRight: "0px" },
5652
5652
  "onClick:back": v[0] || (v[0] = (a) => n(N).push({ name: "integrations" }))
5653
5653
  }, {
5654
- description: Ce(() => v[3] || (v[3] = [
5654
+ description: Ce(() => [...v[3] || (v[3] = [
5655
5655
  t("div", null, null, -1)
5656
- ])),
5656
+ ])]),
5657
5657
  _: 1
5658
5658
  }, 8, ["title"]),
5659
5659
  l(r, {
@@ -5820,7 +5820,7 @@ const di = [
5820
5820
  "onUpdate:modelValue": r[2] || (r[2] = (pe) => e.value.platform = pe),
5821
5821
  label: n(o)("report.input.email"),
5822
5822
  "last-upload-date": (z = e.value.platform) == null ? void 0 : z.lastUploadDate,
5823
- "error-logs": d.errorLogs,
5823
+ "error-logs": m.errorLogs,
5824
5824
  "integration-id": e.value._id,
5825
5825
  "is-auto-email-mode": !0
5826
5826
  }, null, 8, ["modelValue", "label", "last-upload-date", "error-logs", "integration-id"]),
@@ -5988,9 +5988,9 @@ const di = [
5988
5988
  style: { paddingLeft: "0px", paddingRight: "0px" },
5989
5989
  "onClick:back": f[0] || (f[0] = ($) => n(N).push({ name: "integrations" }))
5990
5990
  }, {
5991
- description: Ce(() => f[3] || (f[3] = [
5991
+ description: Ce(() => [...f[3] || (f[3] = [
5992
5992
  t("div", null, null, -1)
5993
- ])),
5993
+ ])]),
5994
5994
  _: 1
5995
5995
  }, 8, ["title"]),
5996
5996
  l(A, {
@@ -7364,9 +7364,9 @@ const vp = [
7364
7364
  style: { paddingLeft: "0px", paddingRight: "0px" },
7365
7365
  "onClick:back": c[0] || (c[0] = (i) => n(N).push({ name: "integrations" }))
7366
7366
  }, {
7367
- description: Ce(() => c[3] || (c[3] = [
7367
+ description: Ce(() => [...c[3] || (c[3] = [
7368
7368
  t("div", null, null, -1)
7369
- ])),
7369
+ ])]),
7370
7370
  _: 1
7371
7371
  }, 8, ["title"]),
7372
7372
  l(d, {
@@ -8213,9 +8213,9 @@ const vp = [
8213
8213
  style: { paddingLeft: "0px", paddingRight: "0px" },
8214
8214
  "onClick:back": M[0] || (M[0] = (V) => n(F).push({ name: "integrations" }))
8215
8215
  }, {
8216
- description: Ce(() => M[3] || (M[3] = [
8216
+ description: Ce(() => [...M[3] || (M[3] = [
8217
8217
  t("div", null, null, -1)
8218
- ])),
8218
+ ])]),
8219
8219
  _: 1
8220
8220
  }, 8, ["title"]),
8221
8221
  l(S, {
@@ -8723,9 +8723,9 @@ const vp = [
8723
8723
  style: { paddingLeft: "0px", paddingRight: "0px" },
8724
8724
  "onClick:back": f[0] || (f[0] = (c) => n(N).push({ name: "integrations" }))
8725
8725
  }, {
8726
- description: Ce(() => f[3] || (f[3] = [
8726
+ description: Ce(() => [...f[3] || (f[3] = [
8727
8727
  t("div", null, null, -1)
8728
- ])),
8728
+ ])]),
8729
8729
  _: 1
8730
8730
  }, 8, ["title"]),
8731
8731
  l(A, {