@feedmepos/mf-report 5.25.9 → 5.25.10-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 (23) hide show
  1. package/dist/{App-BEDp5FPH.js → App-Bro3RMao.js} +60 -60
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-wpRG7ksO.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-C6l5v3-P.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BNxJnBTq.js → Default.vue_vue_type_script_setup_true_lang-BNAU--jE.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Bxf9Sru9.js → DynamicWidget.vue_vue_type_script_setup_true_lang-q7PJWr4o.js} +63 -63
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Duek5QJU.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DvtTKIqO.js} +2 -2
  6. package/dist/{InsightView-CHcdeLid.js → InsightView-oH-FI5Zq.js} +4 -4
  7. package/dist/{Integration-rHuHkORm.js → Integration-WZEyJZMt.js} +3 -3
  8. package/dist/{Integrations-DYPkfsFA.js → Integrations-C0ztTlLw.js} +2 -2
  9. package/dist/{Layout-Yf71Qfg9.js → Layout-T4vSBkSL.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DZ_gdT2-.js → MenuTab.vue_vue_type_script_setup_true_lang-BMOQJ3vg.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CVKucm0j.js → NavigationTab.vue_vue_type_script_setup_true_lang-DgFdlSxe.js} +3 -3
  12. package/dist/{OverviewView-x0JC000h.js → OverviewView-B6zJdiCe.js} +4 -4
  13. package/dist/{Report-CEep7hTh.js → Report-BamNMBp2.js} +3 -3
  14. package/dist/{ReportEditor-B4B4RnPq.js → ReportEditor-CWF3LDNu.js} +3 -3
  15. package/dist/{ReportView-Dpuo9BYg.js → ReportView-CKHaPDpW.js} +6 -6
  16. package/dist/{Setting-CzJvJx1F.js → Setting-DdyC5Te6.js} +3 -3
  17. package/dist/{Template-DHWueTY_.js → Template-FzXEu9KM.js} +3 -3
  18. package/dist/{TileEditor-BXne3vKl.js → TileEditor-Bo8i70Nv.js} +5 -5
  19. package/dist/{TransitionFade-CZDeulTO.js → TransitionFade-jQxqfqOw.js} +4 -4
  20. package/dist/{app-DAYZOyRI.js → app-CK5_L3lg.js} +13 -13
  21. package/dist/app.js +1 -1
  22. package/dist/{useRestaurantPermission-DO63d2eI.js → useRestaurantPermission-Dhf3hr-_.js} +1 -1
  23. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { computed as x, defineComponent as Fe, ref as P, onMounted as dt, onBeforeUnmount as oo, resolveComponent as de, createBlock as me, openBlock as J, Transition as zo, withCtx as ke, createElementBlock as ue, createCommentVNode as ve, createElementVNode as ee, unref as a, normalizeStyle as Te, withModifiers as Zt, toDisplayString as Ie, createVNode as ce, Fragment as ze, renderList as Vt, normalizeClass as Le, watch as De, nextTick as ct, mergeModels as Ue, useModel as We, renderSlot as Qe, h as Gt, createSlots as Ho, resolveDynamicComponent as ao, toRaw as Wo, markRaw as Oo, createTextVNode as Eo, onUnmounted as ro, withDirectives as Uo, vShow as Ko } from "vue";
2
- import { W as ne, i as lo, j as Xo, S as Ft, v as Nt, k as Yo, l as dn, m as so, d as qo, q as Go, R as bt, n as jo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Duek5QJU.js";
3
- import { i as Qt, a as nn, u as io } from "./app-DAYZOyRI.js";
4
- import { d as gn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-wpRG7ksO.js";
2
+ import { W as ne, i as lo, j as Xo, S as Ft, v as Nt, k as Yo, l as dn, m as so, d as qo, q as Go, R as bt, n as jo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DvtTKIqO.js";
3
+ import { i as Qt, a as nn, u as io } from "./app-CK5_L3lg.js";
4
+ import { d as gn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C6l5v3-P.js";
5
5
  import { storeToRefs as wt, defineStore as Jo } from "pinia";
6
6
  import { detectLocale as uo } from "@feedmepos/mf-common";
7
7
  import { C as vn } from "./chart-DDDh8zNk.js";
@@ -123,7 +123,7 @@ function fo(e) {
123
123
  return i === 0 ? r : on(r, Math.min(0.18 * i, 0.72));
124
124
  });
125
125
  }
126
- const Ml = St.map(() => "solid");
126
+ const Dl = St.map(() => "solid");
127
127
  function Ct({
128
128
  datasetIndex: e,
129
129
  label: n
@@ -2491,7 +2491,7 @@ function Kt({ chartRef: e, model: n, baseDatasets: t, tileIndex: o }) {
2491
2491
  datasets: R
2492
2492
  };
2493
2493
  }
2494
- const Br = { class: "widget-content" }, Ar = 2, mn = 1, eo = "rgba(0, 0, 0, 0)", Rr = /* @__PURE__ */ Fe({
2494
+ const Br = { class: "widget-content" }, mn = 1, eo = "rgba(0, 0, 0, 0)", Ar = /* @__PURE__ */ Fe({
2495
2495
  __name: "WidgetBarchart",
2496
2496
  props: /* @__PURE__ */ Ue({
2497
2497
  tileIndex: {}
@@ -2547,7 +2547,7 @@ const Br = { class: "widget-content" }, Ar = 2, mn = 1, eo = "rgba(0, 0, 0, 0)",
2547
2547
  label: b.name,
2548
2548
  data: re,
2549
2549
  dash: !!b.isCompare,
2550
- minBarLength: Ar,
2550
+ minBarLength: void 0,
2551
2551
  barPercentage: d.value ? mn : void 0,
2552
2552
  backgroundColor: Q ? Dt({
2553
2553
  breakdownIndex: oe,
@@ -2687,7 +2687,7 @@ const Br = { class: "widget-content" }, Ar = 2, mn = 1, eo = "rgba(0, 0, 0, 0)",
2687
2687
  ], 64);
2688
2688
  };
2689
2689
  }
2690
- }), Fr = { class: "widget-content" }, $r = /* @__PURE__ */ Fe({
2690
+ }), Rr = { class: "widget-content" }, Fr = /* @__PURE__ */ Fe({
2691
2691
  __name: "WidgetCircular",
2692
2692
  props: /* @__PURE__ */ Ue({
2693
2693
  tileIndex: {}
@@ -2759,7 +2759,7 @@ const Br = { class: "widget-content" }, Ar = 2, mn = 1, eo = "rgba(0, 0, 0, 0)",
2759
2759
  }
2760
2760
  return (u, D) => {
2761
2761
  const R = de("FmPieChart");
2762
- return J(), ue("div", Fr, [
2762
+ return J(), ue("div", Rr, [
2763
2763
  Qe(u.$slots, "menu"),
2764
2764
  ee("div", {
2765
2765
  class: Le(["chart-layout", {
@@ -2832,7 +2832,7 @@ function tn(e) {
2832
2832
  const [o, r] = n.split("."), i = new Intl.NumberFormat("en-US").format(Number(o));
2833
2833
  return r !== void 0 ? `${i}.${r}` : i;
2834
2834
  }
2835
- const Nr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-600" }, zr = { class: "flex gap-2" }, Hr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Wr = { key: 0 }, Or = { key: 1 }, Er = /* @__PURE__ */ Fe({
2835
+ const $r = { class: "flex flex-col gap-1" }, Nr = { class: "fm-typo-en-title-md-600" }, Vr = { class: "flex gap-2" }, zr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Hr = { key: 0 }, Wr = { key: 1 }, Or = /* @__PURE__ */ Fe({
2836
2836
  __name: "WidgetScorecard",
2837
2837
  props: {
2838
2838
  modelValue: { required: !0 },
@@ -2872,10 +2872,10 @@ const Nr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2872
2872
  }))), y = x(() => Lo(!1));
2873
2873
  return (p, k) => {
2874
2874
  const w = de("FmIcon"), $ = de("FmChip"), g = de("FmTooltip"), S = de("FmLineChart");
2875
- return J(), ue("div", Nr, [
2875
+ return J(), ue("div", $r, [
2876
2876
  Qe(p.$slots, "menu"),
2877
- ee("p", Vr, Ie(c.value), 1),
2878
- ee("div", zr, [
2877
+ ee("p", Nr, Ie(c.value), 1),
2878
+ ee("div", Vr, [
2879
2879
  ce(g, {
2880
2880
  disabled: d.value === null,
2881
2881
  placement: "right",
@@ -2885,7 +2885,7 @@ const Nr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2885
2885
  content: ke(() => {
2886
2886
  var B;
2887
2887
  return [
2888
- ee("span", Hr, Ie(`vs. ${(B = a(r).defaultCompareType) == null ? void 0 : B.split("_").join(" ")}`), 1)
2888
+ ee("span", zr, Ie(`vs. ${(B = a(r).defaultCompareType) == null ? void 0 : B.split("_").join(" ")}`), 1)
2889
2889
  ];
2890
2890
  }),
2891
2891
  default: ke(() => [
@@ -2926,7 +2926,7 @@ const Nr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2926
2926
  _: 1
2927
2927
  }, 8, ["disabled"])
2928
2928
  ]),
2929
- F.value ? (J(), ue("div", Wr, [
2929
+ F.value ? (J(), ue("div", Hr, [
2930
2930
  v(F.value.type) === "line" ? (J(), me(S, {
2931
2931
  key: 0,
2932
2932
  class: "sparkline",
@@ -2941,7 +2941,7 @@ const Nr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2941
2941
  tooltip: y.value,
2942
2942
  "maintain-aspect-ratio": !1
2943
2943
  }, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : ve("", !0)
2944
- ])) : (J(), ue("div", Or, k[1] || (k[1] = [
2944
+ ])) : (J(), ue("div", Wr, k[1] || (k[1] = [
2945
2945
  ee("div", { class: "sparkline" }, [
2946
2946
  ee("div", { class: "flex flex-col gap-8" }, [
2947
2947
  ee("div"),
@@ -2953,12 +2953,12 @@ const Nr = { class: "flex flex-col gap-1" }, Vr = { class: "fm-typo-en-title-md-
2953
2953
  ]);
2954
2954
  };
2955
2955
  }
2956
- }), Ur = {};
2957
- function Kr(e, n) {
2956
+ }), Er = {};
2957
+ function Ur(e, n) {
2958
2958
  const t = de("FmMenuDivider");
2959
2959
  return J(), me(t);
2960
2960
  }
2961
- const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimension", to = Jo(Yr, () => {
2961
+ const Kr = /* @__PURE__ */ co(Er, [["render", Ur]]), Xr = "mf-reporttable-dimension", to = Jo(Xr, () => {
2962
2962
  const e = P(0), n = P([]), t = P(!1), o = (g, S) => {
2963
2963
  e.value = g, i(g, S);
2964
2964
  }, r = (g, S, B, I) => {
@@ -3095,10 +3095,10 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3095
3095
  d();
3096
3096
  }
3097
3097
  };
3098
- }), qr = "/assets/processTableData.worker-CQMw9rvu.js", Gr = { class: "my-4" }, jr = {
3098
+ }), Yr = "/assets/processTableData.worker-CQMw9rvu.js", qr = { class: "my-4" }, Gr = {
3099
3099
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
3100
3100
  style: { backgroundColor: "#f9f9f9" }
3101
- }, Jr = { class: "font-bold" }, Zr = { class: "text-fm-color-neutral-gray-300" }, Qr = /* @__PURE__ */ Fe({
3101
+ }, jr = { class: "font-bold" }, Jr = { class: "text-fm-color-neutral-gray-300" }, Zr = /* @__PURE__ */ Fe({
3102
3102
  __name: "WidgetTable",
3103
3103
  props: /* @__PURE__ */ Ue({
3104
3104
  tileIndex: {}
@@ -3196,7 +3196,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3196
3196
  grandTotalPosition: I.value,
3197
3197
  pageSize: f.value
3198
3198
  };
3199
- Yo(qr, N).then((q) => {
3199
+ Yo(Yr, N).then((q) => {
3200
3200
  _ === D && (q != null && q.error ? (c.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(q.error), u.value = []) : u.value = Oo(q.data || []));
3201
3201
  });
3202
3202
  }
@@ -3313,7 +3313,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3313
3313
  ), (_, b) => {
3314
3314
  const E = de("FmTable");
3315
3315
  return J(), ue(ze, null, [
3316
- ee("div", Gr, [
3316
+ ee("div", qr, [
3317
3317
  Qe(_.$slots, "menu")
3318
3318
  ]),
3319
3319
  ce(E, {
@@ -3334,7 +3334,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3334
3334
  fn: ke(() => [
3335
3335
  (J(), me(ao(I.value === a(Je).bottom ? "tfoot" : "tbody"), null, {
3336
3336
  default: ke(() => [
3337
- ee("tr", jr, [
3337
+ ee("tr", Gr, [
3338
3338
  (J(!0), ue(ze, null, Vt(L.value, (N, X) => (J(), ue("td", {
3339
3339
  key: `${a(Nt)()}_${X}`,
3340
3340
  class: "h-[48px] text-fm-color-typo-primary px-16"
@@ -3346,8 +3346,8 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3346
3346
  Y.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
3347
3347
  ])
3348
3348
  }, [
3349
- ee("p", Jr, Ie(N.rowType === "NUMERIC" ? a(tn)(N.main) : N.main), 1),
3350
- ee("p", Zr, Ie(N.comparison ? N.rowType === "NUMERIC" ? `(${a(tn)(N.comparison)})` : `(${N.comparison})` : ""), 1)
3349
+ ee("p", jr, Ie(N.rowType === "NUMERIC" ? a(tn)(N.main) : N.main), 1),
3350
+ ee("p", Jr, Ie(N.comparison ? N.rowType === "NUMERIC" ? `(${a(tn)(N.comparison)})` : `(${N.comparison})` : ""), 1)
3351
3351
  ], 2)
3352
3352
  ]))), 128))
3353
3353
  ])
@@ -3361,7 +3361,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3361
3361
  ], 64);
3362
3362
  };
3363
3363
  }
3364
- }), el = { class: "widget-content" }, tl = 2, nl = /* @__PURE__ */ Fe({
3364
+ }), Qr = { class: "widget-content" }, el = /* @__PURE__ */ Fe({
3365
3365
  __name: "WidgetStackBarChart",
3366
3366
  props: /* @__PURE__ */ Ue({
3367
3367
  tileIndex: {}
@@ -3422,7 +3422,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3422
3422
  label: b.name,
3423
3423
  data: re,
3424
3424
  dash: !!b.isCompare,
3425
- minBarLength: tl,
3425
+ minBarLength: void 0,
3426
3426
  grouped: c.value ? !1 : void 0,
3427
3427
  order: c.value ? Q : void 0,
3428
3428
  backgroundColor: t.value.chartColorBinding === xe.breakdown ? Dt({
@@ -3475,7 +3475,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3475
3475
  var N, X, q, z, Q, oe;
3476
3476
  const E = de("FmBarChart");
3477
3477
  return J(), ue(ze, null, [
3478
- ee("div", el, [
3478
+ ee("div", Qr, [
3479
3479
  Qe(_.$slots, "menu"),
3480
3480
  ee("div", {
3481
3481
  class: Le(["chart-layout", {
@@ -3550,7 +3550,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3550
3550
  ], 64);
3551
3551
  };
3552
3552
  }
3553
- }), ol = { class: "widget-content" }, al = 2, pn = 1, no = "rgba(0, 0, 0, 0)", rl = /* @__PURE__ */ Fe({
3553
+ }), tl = { class: "widget-content" }, pn = 1, no = "rgba(0, 0, 0, 0)", nl = /* @__PURE__ */ Fe({
3554
3554
  __name: "WidgetClusteredStackBarchart",
3555
3555
  props: /* @__PURE__ */ Ue({
3556
3556
  tileIndex: {}
@@ -3666,7 +3666,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3666
3666
  tooltipLabel: `${Ke} - ${Xe}`,
3667
3667
  data: gt,
3668
3668
  dash: !!se.source.isCompare,
3669
- minBarLength: al,
3669
+ minBarLength: void 0,
3670
3670
  barPercentage: v.value ? pn : void 0,
3671
3671
  grouped: !0,
3672
3672
  order: c.value ? nt : void 0,
@@ -3725,7 +3725,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3725
3725
  var re, le, be, se, Ce, we;
3726
3726
  const oe = de("FmBarChart");
3727
3727
  return J(), ue(ze, null, [
3728
- ee("div", ol, [
3728
+ ee("div", tl, [
3729
3729
  Qe(z.$slots, "menu"),
3730
3730
  ee("div", {
3731
3731
  class: Le(["chart-layout", {
@@ -3799,7 +3799,7 @@ const Xr = /* @__PURE__ */ co(Ur, [["render", Kr]]), Yr = "mf-reporttable-dimens
3799
3799
  };
3800
3800
  }
3801
3801
  });
3802
- function ll(e) {
3802
+ function ol(e) {
3803
3803
  const n = Reflect.get(e, "lineStyle"), t = Reflect.get(e, "dash") === !0;
3804
3804
  return na(n, t);
3805
3805
  }
@@ -3810,12 +3810,12 @@ function Po(e = "report-line-style-plugin") {
3810
3810
  var o;
3811
3811
  (((o = n == null ? void 0 : n.data) == null ? void 0 : o.datasets) ?? []).forEach((r) => {
3812
3812
  const i = r;
3813
- Reflect.set(i, "borderDash", ll(i));
3813
+ Reflect.set(i, "borderDash", ol(i));
3814
3814
  });
3815
3815
  }
3816
3816
  };
3817
3817
  }
3818
- const sl = { class: "widget-content" }, il = /* @__PURE__ */ Fe({
3818
+ const al = { class: "widget-content" }, rl = /* @__PURE__ */ Fe({
3819
3819
  __name: "WidgetStackLineChart",
3820
3820
  props: /* @__PURE__ */ Ue({
3821
3821
  tileIndex: {}
@@ -3918,7 +3918,7 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Fe({
3918
3918
  var b, E, N, X, q, z;
3919
3919
  const _ = de("FmLineChart");
3920
3920
  return J(), ue(ze, null, [
3921
- ee("div", sl, [
3921
+ ee("div", al, [
3922
3922
  Qe(Y.$slots, "menu"),
3923
3923
  ee("div", {
3924
3924
  class: Le(["chart-layout", {
@@ -4007,16 +4007,16 @@ const sl = { class: "widget-content" }, il = /* @__PURE__ */ Fe({
4007
4007
  "col-span-11",
4008
4008
  "col-span-12"
4009
4009
  ];
4010
- function ul(e) {
4010
+ function ll(e) {
4011
4011
  return e < 12 ? Lt[e - 1] : Lt[11];
4012
4012
  }
4013
- function cl(e) {
4013
+ function sl(e) {
4014
4014
  return e < 12 ? Lt[Math.min(11, e * 2 - 1)] : Lt[11];
4015
4015
  }
4016
- function dl(e) {
4016
+ function il(e) {
4017
4017
  return e < 12 ? Lt[Math.min(11, e * 3 - 1)] : Lt[11];
4018
4018
  }
4019
- const fl = { class: "widget-content" }, hl = /* @__PURE__ */ Fe({
4019
+ const ul = { class: "widget-content" }, cl = /* @__PURE__ */ Fe({
4020
4020
  __name: "WidgetLinechart",
4021
4021
  props: /* @__PURE__ */ Ue({
4022
4022
  tileIndex: {}
@@ -4121,7 +4121,7 @@ const fl = { class: "widget-content" }, hl = /* @__PURE__ */ Fe({
4121
4121
  var E, N, X, q, z, Q;
4122
4122
  const b = de("FmLineChart");
4123
4123
  return J(), ue(ze, null, [
4124
- ee("div", fl, [
4124
+ ee("div", ul, [
4125
4125
  Qe(H.$slots, "menu"),
4126
4126
  ee("div", {
4127
4127
  class: Le(["chart-layout", {
@@ -4195,7 +4195,7 @@ const fl = { class: "widget-content" }, hl = /* @__PURE__ */ Fe({
4195
4195
  ], 64);
4196
4196
  };
4197
4197
  }
4198
- }), ml = { class: "flex flex-col gap-16" }, pl = { class: "flex flex-row" }, gl = /* @__PURE__ */ Fe({
4198
+ }), dl = { class: "flex flex-col gap-16" }, fl = { class: "flex flex-row" }, hl = /* @__PURE__ */ Fe({
4199
4199
  __name: "PdfOrientationDialog",
4200
4200
  props: /* @__PURE__ */ Ue({
4201
4201
  reportType: {},
@@ -4247,7 +4247,7 @@ const fl = { class: "widget-content" }, hl = /* @__PURE__ */ Fe({
4247
4247
  onValidationSuccess: p
4248
4248
  }, {
4249
4249
  default: ke(() => [
4250
- ee("div", ml, [
4250
+ ee("div", dl, [
4251
4251
  ce(g, {
4252
4252
  modelValue: W.value,
4253
4253
  "onUpdate:modelValue": w[0] || (w[0] = (I) => W.value = I)
@@ -4265,7 +4265,7 @@ const fl = { class: "widget-content" }, hl = /* @__PURE__ */ Fe({
4265
4265
  _: 1
4266
4266
  }, 8, ["modelValue"])
4267
4267
  ]),
4268
- ee("div", pl, [
4268
+ ee("div", fl, [
4269
4269
  w[4] || (w[4] = ee("div", { class: "grow" }, null, -1)),
4270
4270
  ce(S, {
4271
4271
  label: a(n)("report.common.cancel"),
@@ -4289,7 +4289,7 @@ const fl = { class: "widget-content" }, hl = /* @__PURE__ */ Fe({
4289
4289
  };
4290
4290
  }
4291
4291
  });
4292
- function vl(e) {
4292
+ function ml(e) {
4293
4293
  const { breakpoints: n } = Ht(), { containerRef: t, isTable: o = P(!0) } = e;
4294
4294
  let r = P(1), i = null, s = null, c = null, d = null, v = null, F = null;
4295
4295
  function O() {
@@ -4466,13 +4466,13 @@ function vl(e) {
4466
4466
  B();
4467
4467
  }), { refresh: I, cleanup: B };
4468
4468
  }
4469
- const yl = {
4469
+ const pl = {
4470
4470
  key: 1,
4471
4471
  class: "grow"
4472
- }, bl = {
4472
+ }, gl = {
4473
4473
  key: 2,
4474
4474
  class: "flex"
4475
- }, Bl = /* @__PURE__ */ Fe({
4475
+ }, Pl = /* @__PURE__ */ Fe({
4476
4476
  __name: "DynamicWidget",
4477
4477
  props: /* @__PURE__ */ Ue({
4478
4478
  index: {
@@ -4502,7 +4502,7 @@ const yl = {
4502
4502
  const n = P(!0), t = We(e, "modelValue"), o = t.value.widget.config, { t: r, te: i, locale: s } = ft(), c = e, d = P(null), v = x(() => t.value.widget.type === ne.Table), F = x(() => {
4503
4503
  var T;
4504
4504
  return (T = d.value) == null ? void 0 : T.$el;
4505
- }), { refresh: O } = vl({
4505
+ }), { refresh: O } = ml({
4506
4506
  containerRef: F,
4507
4507
  isTable: v
4508
4508
  }), W = P(o.rollup), y = P(Nt()), p = P(o.drillDimension), k = x(() => {
@@ -4531,7 +4531,7 @@ const yl = {
4531
4531
  () => (_e == null ? void 0 : _e.value) > at("sm")[1] && (_e == null ? void 0 : _e.value) <= at("md")[1]
4532
4532
  ), rn = x(() => (_e == null ? void 0 : _e.value) > at("md")[1]), ln = x(() => {
4533
4533
  const T = t.value.size.width;
4534
- return rn.value || At.value ? ul(T) : an.value ? cl(T) : dl(T);
4534
+ return rn.value || At.value ? ll(T) : an.value ? sl(T) : il(T);
4535
4535
  }), rt = x(
4536
4536
  () => Qo.find((T) => T.type === t.value.widget.type)
4537
4537
  ), qe = gn(() => {
@@ -4541,23 +4541,23 @@ const yl = {
4541
4541
  if (ea(M.value.type, Ge.value))
4542
4542
  switch (t.value.widget.type) {
4543
4543
  case ne.BarChart:
4544
- return Rr;
4544
+ return Ar;
4545
4545
  case ne.StackBarChart:
4546
- return nl;
4546
+ return el;
4547
4547
  case ne.ClusteredStackBarChart:
4548
- return rl;
4548
+ return nl;
4549
4549
  case ne.LineChart:
4550
- return hl;
4550
+ return cl;
4551
4551
  case ne.StackLineChart:
4552
- return il;
4552
+ return rl;
4553
4553
  case ne.Circular:
4554
- return $r;
4554
+ return Fr;
4555
4555
  case ne.Scorecard:
4556
- return Er;
4556
+ return Or;
4557
4557
  case ne.Spacer:
4558
- return Xr;
4558
+ return Kr;
4559
4559
  case ne.Table:
4560
- return Qr;
4560
+ return Zr;
4561
4561
  default:
4562
4562
  return Nn;
4563
4563
  }
@@ -4793,7 +4793,7 @@ const yl = {
4793
4793
  variant: a(Mo)
4794
4794
  }, {
4795
4795
  default: ke(() => [
4796
- ce(gl, {
4796
+ ce(hl, {
4797
4797
  modelValue: Oe.value,
4798
4798
  "onUpdate:modelValue": fe[0] || (fe[0] = (yt) => Oe.value = yt),
4799
4799
  "report-type": qt.value,
@@ -4844,7 +4844,7 @@ const yl = {
4844
4844
  modelValue: Mt.value,
4845
4845
  "onUpdate:modelValue": fe[1] || (fe[1] = (Ee) => Mt.value = Ee),
4846
4846
  class: "grow"
4847
- }, null, 8, ["modelValue"])) : (J(), ue("div", yl)),
4847
+ }, null, 8, ["modelValue"])) : (J(), ue("div", pl)),
4848
4848
  Uo(ce(cn, {
4849
4849
  modelValue: H.value,
4850
4850
  "onUpdate:modelValue": fe[2] || (fe[2] = (Ee) => H.value = Ee),
@@ -4853,7 +4853,7 @@ const yl = {
4853
4853
  }, null, 8, ["modelValue"]), [
4854
4854
  [Ko, (Rn = rt.value) == null ? void 0 : Rn.showLabel]
4855
4855
  ]),
4856
- (Fn = rt.value) != null && Fn.showDrillDimension && pe.value.length > 0 ? (J(), ue("div", bl, [
4856
+ (Fn = rt.value) != null && Fn.showDrillDimension && pe.value.length > 0 ? (J(), ue("div", gl, [
4857
4857
  ce(vt, {
4858
4858
  icon: "arrow_upward",
4859
4859
  variant: "tertiary",
@@ -4913,10 +4913,10 @@ export {
4913
4913
  xe as S,
4914
4914
  xn as X,
4915
4915
  wn as Y,
4916
- Bl as _,
4916
+ Pl as _,
4917
4917
  bn as a,
4918
4918
  fo as b,
4919
- Ml as c,
4919
+ Dl as c,
4920
4920
  St as d,
4921
4921
  Sn as e,
4922
4922
  fn as g,
@@ -1,6 +1,6 @@
1
1
  import { ref as R0, computed as d1, watch as N1, defineComponent as Mt, mergeModels as Te, useModel as tt, resolveComponent as G0, createElementBlock as u1, openBlock as Q0, createVNode as x0, withCtx as r1, createElementVNode as P0, createCommentVNode as me, Fragment as Q1, renderList as rt, createBlock as $1, createTextVNode as Ee, withDirectives as bn, toDisplayString as l1, unref as L0, vShow as _n, renderSlot as er, normalizeStyle as dn, normalizeClass as Nt, withModifiers as Qe } from "vue";
2
- import { c as xt, h as tr, f as rr, _ as zn, i as On } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-wpRG7ksO.js";
3
- import { o as An, h as Dn, u as J0, F as H0, m as Y0, p as fn, a as Z1, b as $n, l as yn, g as mn, d as U0, c as nr, r as bt } from "./app-DAYZOyRI.js";
2
+ import { c as xt, h as tr, f as rr, _ as zn, i as On } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C6l5v3-P.js";
3
+ import { o as An, h as Dn, u as J0, F as H0, m as Y0, p as fn, a as Z1, b as $n, l as yn, g as mn, d as U0, c as nr, r as bt } from "./app-CK5_L3lg.js";
4
4
  import { storeToRefs as g0, defineStore as ce } from "pinia";
5
5
  import { useSnackbar as ar } from "@feedmepos/ui-library";
6
6
  import { u as or } from "./vue-i18n-DVWuTfed.js";
@@ -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-BNxJnBTq.js";
3
- import { c as Y, _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-wpRG7ksO.js";
4
- import { d as W, u as G, F as O, q as J, a as re } from "./app-DAYZOyRI.js";
2
+ import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-BNAU--jE.js";
3
+ import { c as Y, _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C6l5v3-P.js";
4
+ import { d as W, u as G, F as O, q as J, a as re } from "./app-CK5_L3lg.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-CVKucm0j.js";
10
+ import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DgFdlSxe.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 oe, mergeModels as ce, useModel as se, computed as B, resolveComponent as V, createElementBlock as U, openBlock as b, createElementVNode as t, createCommentVNode as E, normalizeClass as Qe, Fragment as Fe, createBlock as O, withCtx as _e, toDisplayString as k, renderList as je, createVNode as l, unref as d, h as A, normalizeStyle as it, createTextVNode as dt, ref as X, onUnmounted as Ee, watch as Ke, isRef as Ne, resolveDynamicComponent as Pe, mergeProps as et, onMounted as lt } from "vue";
2
2
  import { useRouter as $e, useRoute as mt } from "vue-router";
3
- import { A as he, y as Ze, d as Ve, z as ut, e as Te, a as Se, B as Ce, E as pt, k as ct, v as Z, x as Oe, G as Be, H as Ue, J as Ye, K as tt, L as ft, M as gt, N as vt, O as ot, b as nt, P as yt, Q as xt, l as bt, I as Re, R as wt, S as ht, T as _t } from "./app-DAYZOyRI.js";
3
+ import { A as he, y as Ze, d as Ve, z as ut, e as Te, a as Se, B as Ce, E as pt, k as ct, v as Z, x as Oe, G as Be, H as Ue, J as Ye, K as tt, L as ft, M as gt, N as vt, O as ot, b as nt, P as yt, Q as xt, l as bt, I as Re, R as wt, S as ht, T as _t } from "./app-CK5_L3lg.js";
4
4
  import { u as re, a as qe } from "./vue-i18n-DVWuTfed.js";
5
5
  import { u as ze } from "./message-dialog-UoMWOnil.js";
6
6
  import { useSnackbar as Ae } from "@feedmepos/ui-library";
7
- import { s as st, _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-wpRG7ksO.js";
8
- import { u as Le, h as ke } from "./useRestaurantPermission-DO63d2eI.js";
7
+ import { s as st, _ as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-C6l5v3-P.js";
8
+ import { u as Le, h as ke } from "./useRestaurantPermission-Dhf3hr-_.js";
9
9
  import { storeToRefs as Ge } 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,