@feedmepos/mf-report 5.34.2 → 5.35.0-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 (39) hide show
  1. package/dist/{App-D-YQ3yMW.js → App-DQyEf0mm.js} +40 -40
  2. package/dist/{DateRangeSelect-OTyc3v5_.js → DateRangeSelect-DvE_au_i.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CxIN_bfu.js → Default.vue_vue_type_script_setup_true_lang-B5Ir3Xuu.js} +1 -1
  4. package/dist/{DigestListView-DCpIQY1v.js → DigestListView-Cl2EK5bf.js} +3 -3
  5. package/dist/DigestReaderView-BS0iuanX.js +489 -0
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-iRcCryhy.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DfVW7Q_x.js} +173 -173
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-VTI9bq-3.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Fcz2N71N.js} +175 -175
  8. package/dist/{InsightView-WQ3IXr2b.js → InsightView-CmA2Xi0T.js} +5 -5
  9. package/dist/{Integration-Bx6Xt8rm.js → Integration-DdfS7Jgh.js} +3 -3
  10. package/dist/{Integrations-BSsJGc4e.js → Integrations-CRMbmKLq.js} +2 -2
  11. package/dist/{Layout-CmTYhuDW.js → Layout-kcAw_A-E.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-SjaEdhpI.js → LocationSelect.vue_vue_type_script_setup_true_lang-BRYP_afx.js} +1553 -1547
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CtJRTkuw.js → MenuTab.vue_vue_type_script_setup_true_lang-I8gsgGXJ.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DERX_GCc.js → NavigationTab.vue_vue_type_script_setup_true_lang-D3QOPpyj.js} +5 -5
  15. package/dist/{OverviewView-BXuqus0r.js → OverviewView-tS8EKm9q.js} +5 -5
  16. package/dist/{Report-Cj7xHOMI.js → Report-BvJw6A0s.js} +3 -3
  17. package/dist/ReportCanvasView-Bywb09Z7.js +1066 -0
  18. package/dist/{ReportEditor-v3CRHflb.js → ReportEditor-D88J-04n.js} +7 -7
  19. package/dist/{ReportView-IbQC8Qf1.js → ReportView-DxnYH37m.js} +6 -6
  20. package/dist/{ReportViewRoute-NwvXWZDf.js → ReportViewRoute-DJdbgiqN.js} +2 -2
  21. package/dist/{Setting-GyFSTgFs.js → Setting-CNrh7nBB.js} +94 -94
  22. package/dist/{Template-DLVGn41O.js → Template-BreFV27K.js} +3 -3
  23. package/dist/{TileEditor-DT4ayXKN.js → TileEditor-CLXi5in3.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Bh0NcO-n.js → TilePageStack.vue_vue_type_script_setup_true_lang-HMTKQELw.js} +2 -2
  25. package/dist/{TransitionFade-DIDahT3W.js → TransitionFade-tUK-3l63.js} +5 -5
  26. package/dist/{app-X-tKojve.js → app-CwMmSHUw.js} +21 -21
  27. package/dist/app.js +1 -1
  28. package/dist/assets/{formatChartData.worker-Cpgnh20a.js → formatChartData.worker-Bt8turfo.js} +22 -22
  29. package/dist/assets/{processTableData.worker-B7I6PElJ.js → processTableData.worker-MGb36f8J.js} +22 -22
  30. package/dist/{currency-Cebf4JT_.js → currency-BUi-Xq6N.js} +1 -1
  31. package/dist/{index-Brvkpnxl.js → index-cojDf4MH.js} +503 -473
  32. package/dist/{report-CoK9Yl1E.js → report-CtMB0C_H.js} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/{useDigestFont-DUUhWR6u.js → useDigestFont-HI14Bq_l.js} +1 -1
  35. package/dist/{useReportCanvasPanel-B8qruqY0.js → useReportCanvasPicks-ZAlJK9Cv.js} +1353 -1264
  36. package/dist/{useRestaurantPermission-BTBg_goI.js → useRestaurantPermission-DO4WIH7P.js} +1 -1
  37. package/package.json +2 -2
  38. package/dist/DigestReaderView-W6sW8h9Q.js +0 -526
  39. package/dist/ReportCanvasView-CGt4ayU2.js +0 -1035
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ye, useModel as Ce, ref as G, computed as b, resolveComponent as T, openBlock as p, createBlock as k, withCtx as V, createElementVNode as f, createVNode as d, unref as t, normalizeClass as Ae, createTextVNode as Je, toDisplayString as B, mergeModels as Te, createElementBlock as z, Fragment as ke, renderSlot as bl, createCommentVNode as U, watch as ge, renderList as Le, onMounted as yl, onUnmounted as Dl, resolveDynamicComponent as Ol, isRef as hl, normalizeStyle as nl } from "vue";
2
- import { W as Il, g as Ul, _ as Nl, a as Bl, e as Ne, S as je, d as wl, b as _l, T as Ml, c as Rl } from "./TransitionFade-DIDahT3W.js";
3
- import { D as oe, b as ze, C as Pe, F as Ye, c as Be, u as sl, i as qe, d as fe, M as Fl, r as zl, e as ll, n as Pl, f as ql, g as El, h as Ll, j as Al, k as Gl, m as Wl, a as Hl, o as cl, p as tl, q as jl, Q as Xe, l as Jl, t as Ql } from "./report-CoK9Yl1E.js";
2
+ import { W as Il, g as Ul, _ as Nl, a as Bl, e as Ne, S as je, d as wl, b as _l, T as Ml, c as Rl } from "./TransitionFade-tUK-3l63.js";
3
+ import { D as oe, b as ze, C as Pe, F as Ye, c as Be, u as sl, i as qe, d as fe, M as Fl, r as zl, e as ll, n as Pl, f as ql, g as El, h as Ll, j as Al, k as Gl, m as Wl, a as Hl, o as cl, p as tl, q as jl, Q as Xe, l as Jl, t as Ql } from "./report-CtMB0C_H.js";
4
4
  import { storeToRefs as Ee } from "pinia";
5
5
  import { useRouter as ul, useRoute as dl } from "vue-router";
6
6
  import { useBreakpoints as Ze, useSnackbar as Vl, FmButtonColorThemeVariant as xe } from "@feedmepos/ui-library";
@@ -8,13 +8,13 @@ import { u as ml } from "./message-dialog-UoMWOnil.js";
8
8
  import { u as Kl } from "./global-loader-BuxFfehu.js";
9
9
  import { u as Ge } from "./_plugin-vue_export-helper-Bx7s49ra.js";
10
10
  import { r as Qe } from "./i18n-DbyciK4x.js";
11
- import { _ as ol } from "./TilePageStack.vue_vue_type_script_setup_true_lang-Bh0NcO-n.js";
11
+ import { _ as ol } from "./TilePageStack.vue_vue_type_script_setup_true_lang-HMTKQELw.js";
12
12
  import { a as al, _ as rl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
13
- import { e as Yl, d as Xl, i as Zl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-iRcCryhy.js";
14
- import { g as et, d as lt, _ as pl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-VTI9bq-3.js";
13
+ import { e as Yl, d as Xl, i as Zl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DfVW7Q_x.js";
14
+ import { g as et, d as lt, _ as pl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Fcz2N71N.js";
15
15
  import { useCoreStore as tt } from "@feedmepos/mf-common";
16
- import { u as ot, a as at } from "./app-X-tKojve.js";
17
- import { d as rt } from "./DateRangeSelect-OTyc3v5_.js";
16
+ import { u as ot, a as at } from "./app-CwMmSHUw.js";
17
+ import { d as rt } from "./DateRangeSelect-DvE_au_i.js";
18
18
  const nt = /* @__PURE__ */ ye({
19
19
  __name: "WidgetDialog",
20
20
  props: /* @__PURE__ */ Te({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as z, computed as n, openBlock as y, createBlock as g, withCtx as w, renderSlot as ie, ref as ue, watch as ce, resolveComponent as V, createVNode as k, unref as l, createElementVNode as R, toDisplayString as pe, normalizeStyle as me, normalizeClass as de } from "vue";
2
- import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-CtJRTkuw.js";
3
- import { _ as fe } from "./TilePageStack.vue_vue_type_script_setup_true_lang-Bh0NcO-n.js";
4
- import { u as ye, l as ge } from "./report-CoK9Yl1E.js";
2
+ import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-I8gsgGXJ.js";
3
+ import { _ as fe } from "./TilePageStack.vue_vue_type_script_setup_true_lang-HMTKQELw.js";
4
+ import { u as ye, l as ge } from "./report-CtMB0C_H.js";
5
5
  import { useRouter as be, useRoute as _e } from "vue-router";
6
- import { _ as we } from "./Default.vue_vue_type_script_setup_true_lang-CxIN_bfu.js";
6
+ import { _ as we } from "./Default.vue_vue_type_script_setup_true_lang-B5Ir3Xuu.js";
7
7
  import { storeToRefs as f } from "pinia";
8
- import { u as Se, e as Ce, j as xe } from "./app-X-tKojve.js";
9
- import { a as Te, b as he, u as ke, g as Re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DERX_GCc.js";
8
+ import { u as Se, e as Ce, j as xe } from "./app-CwMmSHUw.js";
9
+ import { a as Te, b as he, u as ke, g as Re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D3QOPpyj.js";
10
10
  import { _ as L } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
11
11
  import { useSnackbar as Pe, useBreakpoints as De } from "@feedmepos/ui-library";
12
12
  import { u as Oe } from "./global-loader-BuxFfehu.js";
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as i, defineAsyncComponent as t, computed as m, openBlock as r, createBlock as n, unref as o } from "vue";
2
2
  import { useRoute as f } from "vue-router";
3
- import { u as _ } from "./report-CoK9Yl1E.js";
3
+ import { u as _ } from "./report-CtMB0C_H.js";
4
4
  const v = /* @__PURE__ */ i({
5
5
  __name: "ReportViewRoute",
6
6
  setup(R) {
7
- const p = t(() => import("./ReportView-IbQC8Qf1.js")), s = t(() => import("./ReportCanvasView-CGt4ayU2.js")), c = f(), u = _(), a = m(() => {
7
+ const p = t(() => import("./ReportView-DxnYH37m.js")), s = t(() => import("./ReportCanvasView-Bywb09Z7.js")), c = f(), u = _(), a = m(() => {
8
8
  var e;
9
9
  return ((e = u.currentReport) == null ? void 0 : e.reportType) === "canvas";
10
10
  });
@@ -1,14 +1,14 @@
1
- import { defineComponent as R, ref as N, useModel as L, resolveComponent as V, openBlock as h, createElementBlock as $, createBlock as U, resolveDynamicComponent as ue, unref as e, withCtx as b, createVNode as n, normalizeClass as B, createElementVNode as t, toDisplayString as a, Fragment as W, renderList as X, createTextVNode as de, withDirectives as Y, vShow as ee, createCommentVNode as pe, computed as q, watch as ce, normalizeStyle as fe } from "vue";
2
- import { _ as _e } from "./Default.vue_vue_type_script_setup_true_lang-CxIN_bfu.js";
3
- import { d as A, C as G, D as ve, x as ge, y as Z, a as ye } from "./app-X-tKojve.js";
1
+ import { defineComponent as R, ref as N, useModel as L, resolveComponent as V, openBlock as h, createElementBlock as $, createBlock as U, resolveDynamicComponent as ue, unref as e, withCtx as b, createVNode as n, normalizeClass as B, createElementVNode as t, toDisplayString as a, Fragment as W, renderList as X, createTextVNode as de, withDirectives as Y, vShow as ee, createCommentVNode as pe, computed as A, watch as ce, normalizeStyle as fe } from "vue";
2
+ import { _ as ve } from "./Default.vue_vue_type_script_setup_true_lang-B5Ir3Xuu.js";
3
+ import { d as J, C as G, D as _e, x as ge, y as Z, a as ye } from "./app-CwMmSHUw.js";
4
4
  import { components as K, useSnackbar as te, useBreakpoints as oe, FmButtonColorThemeVariant as Q } from "@feedmepos/ui-library";
5
- import { e as le, t as E, s as he } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-VTI9bq-3.js";
5
+ import { e as le, t as E, s as he } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Fcz2N71N.js";
6
6
  import { u as xe } from "./message-dialog-UoMWOnil.js";
7
7
  import { u as w } from "./_plugin-vue_export-helper-Bx7s49ra.js";
8
8
  import { detectLocale as F } from "@feedmepos/mf-common";
9
9
  import { a as j } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
10
10
  import { storeToRefs as be } from "pinia";
11
- const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex px-5 gap-2" }, De = { class: "flex flex-col gap-2" }, $e = { class: "fm-typo-en-title-sm-600" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "w-full gap-[24px] flex flex-col pt-2" }, Fe = { class: "flex items-center w-full gap-3" }, Re = { class: "text-fm-color-typo-primary" }, we = { class: "text-fm-color-typo-secondary" }, Oe = { class: "flex items-center gap-2" }, He = /* @__PURE__ */ R({
11
+ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex px-5 gap-2" }, De = { class: "flex flex-col gap-2" }, $e = { class: "fm-typo-en-title-sm-600" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "w-full gap-[24px] flex flex-col pt-2" }, Fe = { class: "flex items-center w-full gap-3" }, Re = { class: "text-fm-color-typo-primary" }, we = { class: "text-fm-color-typo-secondary" }, He = { class: "flex items-center gap-2" }, Oe = /* @__PURE__ */ R({
12
12
  __name: "ReportHour",
13
13
  props: {
14
14
  modelValue: {
@@ -19,59 +19,59 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
19
19
  },
20
20
  emits: ["update:modelValue"],
21
21
  setup(T) {
22
- const l = N(!1), m = N(), o = {
22
+ const l = N(!1), s = N(), o = () => ({
23
23
  name: "",
24
24
  isDefault: !1,
25
25
  startTime: { hour: 0, minute: 0 },
26
- endTime: { hour: 0, minute: 0 }
27
- }, { FmForm: p } = K, _ = N(), { promptMessage: x } = xe(), u = te(), s = N(JSON.parse(JSON.stringify(o))), d = L(T, "modelValue"), { t: r } = w(), P = () => {
28
- l.value = !1, s.value && m.value === void 0 ? d.value.push(s.value) : d.value[m.value] = s.value;
29
- }, O = () => {
30
- var v;
31
- (v = _.value) == null || v.validateInputs();
26
+ endTime: { hour: 23, minute: 59 }
27
+ }), { FmForm: p } = K, v = N(), { promptMessage: x } = xe(), u = te(), r = N(o()), d = L(T, "modelValue"), { t: i } = w(), P = () => {
28
+ l.value = !1, s.value === void 0 ? d.value.push(r.value) : d.value[s.value] = r.value, s.value = void 0;
32
29
  }, H = () => {
33
- l.value = !1, s.value = o;
34
- }, c = (v) => {
35
- var i;
36
- (i = d.value[v]) != null && i.isSystem || (m.value = v, s.value = JSON.parse(JSON.stringify(d.value[m.value])), l.value = !0);
30
+ var _;
31
+ (_ = v.value) == null || _.validateInputs();
32
+ }, O = () => {
33
+ l.value = !1, s.value = void 0, r.value = o();
34
+ }, c = (_) => {
35
+ var m;
36
+ (m = d.value[_]) != null && m.isSystem || (s.value = _, r.value = JSON.parse(JSON.stringify(d.value[s.value])), l.value = !0);
37
37
  }, M = () => {
38
- s.value = o, l.value = !0;
39
- }, ae = async (v) => {
40
- const i = d.value.find((C, g) => g === v);
41
- if (!i) {
42
- u.open({ message: `index ${v} cannot be found`, type: "error" });
38
+ s.value = void 0, r.value = o(), l.value = !0;
39
+ }, ae = async (_) => {
40
+ const m = d.value.find((C, g) => g === _);
41
+ if (!m) {
42
+ u.open({ message: `index ${_} cannot be found`, type: "error" });
43
43
  return;
44
44
  }
45
- if (i.isDefault || i.isSystem)
45
+ if (m.isDefault || m.isSystem)
46
46
  return;
47
47
  await x({
48
- title: r("report.setting.reportHour.deleteTitle"),
49
- message: r("report.setting.reportHour.deleteConfirm", { name: i.name })
50
- }) && (d.value = d.value.filter((g, I) => I !== v), d.value.find((g) => g.isDefault) || (d.value[0].isDefault = !0), s.value = o);
51
- }, se = (v, i) => {
52
- v ? d.value = d.value.map((S, C) => ({
48
+ title: i("report.setting.reportHour.deleteTitle"),
49
+ message: i("report.setting.reportHour.deleteConfirm", { name: m.name })
50
+ }) && (d.value = d.value.filter((g, I) => I !== _), d.value.find((g) => g.isDefault) || (d.value[0].isDefault = !0), r.value = o());
51
+ }, se = (_, m) => {
52
+ _ ? d.value = d.value.map((S, C) => ({
53
53
  ...S,
54
- isDefault: i === C
54
+ isDefault: m === C
55
55
  })) : d.value = d.value.map((S, C) => ({
56
56
  ...S,
57
57
  isDefault: C === 0
58
58
  }));
59
59
  }, { breakpoints: z } = oe(), { FmSideSheet: ne, FmTopSheet: re } = K;
60
- return (v, i) => {
60
+ return (_, m) => {
61
61
  const S = V("FmTextField"), C = V("FmTimePicker"), g = V("FmButton"), I = V("FmSwitch"), ie = V("FmChip"), me = V("FmCard");
62
62
  return h(), $("div", null, [
63
63
  (h(), U(ue(e(z).lg || e(z).md ? e(ne) : e(re)), {
64
64
  modelValue: l.value,
65
- "onUpdate:modelValue": i[3] || (i[3] = (f) => l.value = f),
65
+ "onUpdate:modelValue": m[3] || (m[3] = (f) => l.value = f),
66
66
  "fullscreen-size": "sm",
67
67
  "dismiss-away": !0
68
68
  }, {
69
69
  "side-sheet-header": b(() => [
70
- t("p", null, a(e(r)("report.setting.reportHour.addTitle")), 1)
70
+ t("p", null, a(e(i)("report.setting.reportHour.addTitle")), 1)
71
71
  ]),
72
72
  "top-sheet-header": b(() => [
73
73
  t("div", Ve, [
74
- t("p", null, a(e(r)("report.setting.reportHour.addTitle")), 1)
74
+ t("p", null, a(e(i)("report.setting.reportHour.addTitle")), 1)
75
75
  ])
76
76
  ]),
77
77
  "side-sheet-footer": b(() => [
@@ -79,12 +79,12 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
79
79
  n(g, {
80
80
  label: "Save",
81
81
  variant: "primary",
82
- onClick: O
82
+ onClick: H
83
83
  }),
84
84
  n(g, {
85
85
  label: "Cancel",
86
86
  variant: "tertiary",
87
- onClick: H
87
+ onClick: O
88
88
  })
89
89
  ])
90
90
  ]),
@@ -93,46 +93,46 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
93
93
  n(g, {
94
94
  label: "Save",
95
95
  variant: "primary",
96
- onClick: O
96
+ onClick: H
97
97
  }),
98
98
  n(g, {
99
99
  label: "Cancel",
100
100
  variant: "tertiary",
101
- onClick: H
101
+ onClick: O
102
102
  })
103
103
  ])
104
104
  ]),
105
105
  default: b(() => [
106
106
  n(e(p), {
107
107
  ref_key: "form",
108
- ref: _,
108
+ ref: v,
109
109
  class: B(["flex flex-col gap-2", `${e(z).sm || e(z).xs ? "px-24" : ""}`]),
110
110
  onValidationSuccess: P
111
111
  }, {
112
112
  default: b(() => {
113
- var f, D, k, J;
113
+ var f, D, k, q;
114
114
  return [
115
115
  n(S, {
116
- modelValue: s.value.name,
117
- "onUpdate:modelValue": i[0] || (i[0] = (y) => s.value.name = y),
118
- label: e(r)("report.setting.reportHour.hourSetName"),
119
- placeholder: e(r)("report.setting.reportHour.namePlaceholder"),
120
- rules: [(y) => y !== "" || e(r)("report.setting.reportHour.cannotBeEmpty")]
116
+ modelValue: r.value.name,
117
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => r.value.name = y),
118
+ label: e(i)("report.setting.reportHour.hourSetName"),
119
+ placeholder: e(i)("report.setting.reportHour.namePlaceholder"),
120
+ rules: [(y) => y !== "" || e(i)("report.setting.reportHour.cannotBeEmpty")]
121
121
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
122
122
  n(C, {
123
- "model-value": e(A)().hour(((f = s.value.startTime) == null ? void 0 : f.hour) ?? 0).minute(((D = s.value.startTime) == null ? void 0 : D.minute) ?? 0).locale(e(F)()).format("HH:mm"),
123
+ "model-value": e(J)().hour(((f = r.value.startTime) == null ? void 0 : f.hour) ?? 0).minute(((D = r.value.startTime) == null ? void 0 : D.minute) ?? 0).locale(e(F)()).format("HH:mm"),
124
124
  class: "grow",
125
- label: e(r)("report.setting.reportHour.startTime"),
126
- "onUpdate:modelValue": i[1] || (i[1] = (y) => {
127
- y && (s.value.startTime.hour = Number(y.split(":")[0]), s.value.startTime.minute = Number(y.split(":")[1]));
125
+ label: e(i)("report.setting.reportHour.startTime"),
126
+ "onUpdate:modelValue": m[1] || (m[1] = (y) => {
127
+ y && (r.value.startTime.hour = Number(y.split(":")[0]), r.value.startTime.minute = Number(y.split(":")[1]));
128
128
  })
129
129
  }, null, 8, ["model-value", "label"]),
130
130
  n(C, {
131
- "model-value": e(A)().hour(((k = s.value.endTime) == null ? void 0 : k.hour) ?? 0).minute(((J = s.value.endTime) == null ? void 0 : J.minute) ?? 0).format("HH:mm"),
131
+ "model-value": e(J)().hour(((k = r.value.endTime) == null ? void 0 : k.hour) ?? 0).minute(((q = r.value.endTime) == null ? void 0 : q.minute) ?? 0).format("HH:mm"),
132
132
  class: "grow",
133
- label: e(r)("report.setting.reportHour.closeTime"),
134
- "onUpdate:modelValue": i[2] || (i[2] = (y) => {
135
- y && (s.value.endTime.hour = Number(y.split(":")[0]), s.value.endTime.minute = Number(y.split(":")[1]));
133
+ label: e(i)("report.setting.reportHour.closeTime"),
134
+ "onUpdate:modelValue": m[2] || (m[2] = (y) => {
135
+ y && (r.value.endTime.hour = Number(y.split(":")[0]), r.value.endTime.minute = Number(y.split(":")[1]));
136
136
  })
137
137
  }, null, 8, ["model-value", "label"])
138
138
  ];
@@ -143,8 +143,8 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
143
143
  _: 1
144
144
  }, 8, ["modelValue"])),
145
145
  t("div", De, [
146
- t("p", $e, a(e(r)("report.setting.reportHour.title")), 1),
147
- t("p", Se, a(e(r)("report.setting.reportHour.description")), 1)
146
+ t("p", $e, a(e(i)("report.setting.reportHour.title")), 1),
147
+ t("p", Se, a(e(i)("report.setting.reportHour.description")), 1)
148
148
  ]),
149
149
  t("div", ke, [
150
150
  (h(!0), $(W, null, X(d.value, (f, D) => (h(), U(me, {
@@ -160,9 +160,9 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
160
160
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
161
161
  t("div", null, [
162
162
  t("p", Re, [
163
- de(a(e(le)(f, e(r))) + " ", 1),
163
+ de(a(e(le)(f, e(i))) + " ", 1),
164
164
  Y(n(ie, {
165
- label: e(r)("report.common.default"),
165
+ label: e(i)("report.common.default"),
166
166
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
167
167
  compact: ""
168
168
  }, null, 8, ["label"]), [
@@ -171,8 +171,8 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
171
171
  ]),
172
172
  t("p", we, a(e(E)(f.startTime, e(F)())) + " - " + a(e(E)(f.endTime, e(F)())), 1)
173
173
  ]),
174
- i[4] || (i[4] = t("div", { class: "grow" }, null, -1)),
175
- t("div", Oe, [
174
+ m[4] || (m[4] = t("div", { class: "grow" }, null, -1)),
175
+ t("div", He, [
176
176
  f.isSystem ? pe("", !0) : (h(), U(g, {
177
177
  key: 0,
178
178
  icon: "edit",
@@ -192,7 +192,7 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
192
192
  }, 1024))), 128)),
193
193
  t("div", null, [
194
194
  n(g, {
195
- label: e(r)("report.setting.reportHour.add"),
195
+ label: e(i)("report.setting.reportHour.add"),
196
196
  variant: "secondary",
197
197
  icon: "add",
198
198
  "icon-position": "prepend",
@@ -216,15 +216,15 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
216
216
  },
217
217
  emits: ["update:modelValue"],
218
218
  setup(T) {
219
- const { t: l } = w(), m = L(T, "modelValue"), o = Object.values(G).map((p) => ({
219
+ const { t: l } = w(), s = L(T, "modelValue"), o = Object.values(G).map((p) => ({
220
220
  label: l(`report.compare.${p}`),
221
221
  value: p
222
222
  })).slice(0, -1);
223
- return (p, _) => (h(), $("div", ze, [
223
+ return (p, v) => (h(), $("div", ze, [
224
224
  t("p", Ne, a(e(l)("report.setting.summary.comparisonDateRange")), 1),
225
225
  n(j, {
226
- modelValue: m.value,
227
- "onUpdate:modelValue": _[0] || (_[0] = (x) => m.value = x),
226
+ modelValue: s.value,
227
+ "onUpdate:modelValue": v[0] || (v[0] = (x) => s.value = x),
228
228
  label: e(l)("report.setting.summary.comparisonDateRange"),
229
229
  items: e(o),
230
230
  "disable-search": !0
@@ -239,15 +239,15 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
239
239
  },
240
240
  emits: ["update:modelValue"],
241
241
  setup(T) {
242
- const { t: l } = w(), m = L(T, "modelValue"), o = Object.values(ve).filter((p) => !["This month", "Last month"].includes(p)).map((p) => ({
242
+ const { t: l } = w(), s = L(T, "modelValue"), o = Object.values(_e).filter((p) => !["This month", "Last month"].includes(p)).map((p) => ({
243
243
  label: l(`report.date.${p}`),
244
244
  value: p
245
245
  }));
246
- return (p, _) => (h(), $("div", Be, [
246
+ return (p, v) => (h(), $("div", Be, [
247
247
  t("p", Ee, a(e(l)("report.setting.summary.defaultDateRange")), 1),
248
248
  n(j, {
249
- modelValue: m.value,
250
- "onUpdate:modelValue": _[0] || (_[0] = (x) => m.value = x),
249
+ modelValue: s.value,
250
+ "onUpdate:modelValue": v[0] || (v[0] = (x) => s.value = x),
251
251
  label: e(l)("report.setting.summary.defaultDateRange"),
252
252
  items: e(o),
253
253
  "disable-search": !0
@@ -262,30 +262,30 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
262
262
  },
263
263
  emits: ["update:modelValue"],
264
264
  setup(T, { emit: l }) {
265
- const { t: m } = w(), o = T, p = l, _ = q(
265
+ const { t: s } = w(), o = T, p = l, v = A(
266
266
  () => ge(
267
267
  o.defaultTimezone,
268
- (u) => m("report.setting.timezone.default", { timezone: u })
268
+ (u) => s("report.setting.timezone.default", { timezone: u })
269
269
  )
270
- ), x = q({
270
+ ), x = A({
271
271
  get: () => o.modelValue ?? Z,
272
272
  set: (u) => p("update:modelValue", u === Z ? null : u)
273
273
  });
274
- return (u, s) => (h(), $("div", Me, [
275
- t("p", Ie, a(e(m)("report.setting.timezone.title")), 1),
276
- t("p", Le, a(e(m)("report.setting.timezone.description")), 1),
274
+ return (u, r) => (h(), $("div", Me, [
275
+ t("p", Ie, a(e(s)("report.setting.timezone.title")), 1),
276
+ t("p", Le, a(e(s)("report.setting.timezone.description")), 1),
277
277
  n(j, {
278
278
  modelValue: x.value,
279
- "onUpdate:modelValue": s[0] || (s[0] = (d) => x.value = d),
280
- label: e(m)("report.setting.timezone.label"),
281
- items: _.value
279
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => x.value = d),
280
+ label: e(s)("report.setting.timezone.label"),
281
+ items: v.value
282
282
  }, null, 8, ["modelValue", "label", "items"])
283
283
  ]));
284
284
  }
285
- }), Je = { class: "w-2/4" }, qe = { class: "fm-typo-en-title-sm-600" }, Ae = { class: "text-fm-color-typo-secondary" }, Ge = { class: "fm-typo-en-body-lg-600" }, Ze = { class: "text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-lg-600" }, Qe = { class: "text-fm-color-typo-secondary" }, We = { class: "fm-typo-en-body-lg-600" }, Xe = { class: "text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-lg-600" }, ut = /* @__PURE__ */ R({
285
+ }), qe = { class: "w-2/4" }, Ae = { class: "fm-typo-en-title-sm-600" }, Je = { class: "text-fm-color-typo-secondary" }, Ge = { class: "fm-typo-en-body-lg-600" }, Ze = { class: "text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-lg-600" }, Qe = { class: "text-fm-color-typo-secondary" }, We = { class: "fm-typo-en-body-lg-600" }, Xe = { class: "text-fm-color-typo-secondary" }, Ye = { class: "fm-typo-en-body-lg-600" }, ut = /* @__PURE__ */ R({
286
286
  __name: "Setting",
287
287
  setup(T) {
288
- const { breakpoints: l } = oe(), m = ye(), { defaultDateSetting: o, timezone: p, defaultTimezone: _ } = be(m), x = te(), { t: u } = w();
288
+ const { breakpoints: l } = oe(), s = ye(), { defaultDateSetting: o, timezone: p, defaultTimezone: v } = be(s), x = te(), { t: u } = w();
289
289
  ce(
290
290
  [
291
291
  () => o.value.defaultCompareType,
@@ -293,16 +293,16 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
293
293
  () => o.value.timeOptions
294
294
  ],
295
295
  () => {
296
- o.value.timeOptions.length === 0 ? x.open({ message: u("report.setting.reportHour.cannotBeEmptyError"), type: "error" }) : m.createOrUpdateBusinessSetting(o.value);
296
+ o.value.timeOptions.length === 0 ? x.open({ message: u("report.setting.reportHour.cannotBeEmptyError"), type: "error" }) : s.createOrUpdateBusinessSetting(o.value);
297
297
  },
298
298
  { deep: !0 }
299
299
  );
300
- function s(d) {
301
- o.value.timezone = d, m.createOrUpdateBusinessSetting(o.value);
300
+ function r(d) {
301
+ o.value.timezone = d, s.createOrUpdateBusinessSetting(o.value);
302
302
  }
303
- return (d, r) => {
304
- const P = V("FmPageHead"), O = V("FmMenuDivider"), H = V("FmCard");
305
- return h(), U(_e, null, {
303
+ return (d, i) => {
304
+ const P = V("FmPageHead"), H = V("FmMenuDivider"), O = V("FmCard");
305
+ return h(), U(ve, null, {
306
306
  default: b(() => [
307
307
  n(P, {
308
308
  title: e(u)("report.view.setting.title")
@@ -314,33 +314,33 @@ const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex p
314
314
  t("div", {
315
315
  class: B(`${e(l).lg || e(l).md ? "px-24" : "px-3"} w-full flex flex-col gap-[40px]`)
316
316
  }, [
317
- n(He, {
317
+ n(Oe, {
318
318
  modelValue: e(o).timeOptions,
319
- "onUpdate:modelValue": r[0] || (r[0] = (c) => e(o).timeOptions = c)
319
+ "onUpdate:modelValue": i[0] || (i[0] = (c) => e(o).timeOptions = c)
320
320
  }, null, 8, ["modelValue"]),
321
321
  n(Pe, {
322
322
  modelValue: e(o).defaultDateRange,
323
- "onUpdate:modelValue": r[1] || (r[1] = (c) => e(o).defaultDateRange = c)
323
+ "onUpdate:modelValue": i[1] || (i[1] = (c) => e(o).defaultDateRange = c)
324
324
  }, null, 8, ["modelValue"]),
325
325
  n(Ue, {
326
326
  modelValue: e(o).defaultCompareType,
327
- "onUpdate:modelValue": r[2] || (r[2] = (c) => e(o).defaultCompareType = c)
327
+ "onUpdate:modelValue": i[2] || (i[2] = (c) => e(o).defaultCompareType = c)
328
328
  }, null, 8, ["modelValue"]),
329
329
  n(je, {
330
330
  "model-value": e(o).timezone,
331
- "default-timezone": e(_) ?? e(p),
332
- "onUpdate:modelValue": s
331
+ "default-timezone": e(v) ?? e(p),
332
+ "onUpdate:modelValue": r
333
333
  }, null, 8, ["model-value", "default-timezone"])
334
334
  ], 2),
335
- Y(t("div", Je, [
336
- n(H, {
335
+ Y(t("div", qe, [
336
+ n(O, {
337
337
  variant: "outlined",
338
338
  class: B(["flex flex-col gap-3", `${e(l).lg || e(l).md ? "mr-5 p-6" : ""}`])
339
339
  }, {
340
340
  default: b(() => [
341
- t("p", qe, a(e(u)("report.setting.summary.title")), 1),
342
- n(O),
343
- t("p", Ae, a(e(u)("report.setting.summary.reportHour")), 1),
341
+ t("p", Ae, a(e(u)("report.setting.summary.title")), 1),
342
+ n(H),
343
+ t("p", Je, a(e(u)("report.setting.summary.reportHour")), 1),
344
344
  (h(!0), $(W, null, X(e(o).timeOptions, (c, M) => (h(), $("div", { key: M }, [
345
345
  t("p", Ge, a(e(le)(c, e(u))) + a(c.isDefault ? `(${e(u)("report.setting.reportHour.default")})` : "") + " " + a(e(E)(c.startTime, e(F)())) + " " + a(e(E)(c.endTime, e(F)())) + " " + a(e(he)(c.startTime, c.endTime)), 1)
346
346
  ]))), 128)),
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as pe, computed as d, resolveComponent as y, openBlock as v, createElementBlock as J, renderSlot as Re, createVNode as s, withCtx as m, createCommentVNode as M, createElementVNode as n, toDisplayString as c, ref as f, h as p, onMounted as Pe, createBlock as F, unref as l, normalizeStyle as ze, normalizeClass as V, Fragment as De, renderList as Ne, withDirectives as ne, withModifiers as me, vShow as ie } from "vue";
2
2
  import { a as Be } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
3
3
  import { u as de } from "./_plugin-vue_export-helper-Bx7s49ra.js";
4
- import { _ as Me } from "./Default.vue_vue_type_script_setup_true_lang-CxIN_bfu.js";
4
+ import { _ as Me } from "./Default.vue_vue_type_script_setup_true_lang-B5Ir3Xuu.js";
5
5
  import { u as Ue } from "./global-loader-BuxFfehu.js";
6
6
  import { u as Ee } from "./message-dialog-UoMWOnil.js";
7
- import { u as He } from "./report-CoK9Yl1E.js";
7
+ import { u as He } from "./report-CtMB0C_H.js";
8
8
  import { r as ce } from "./i18n-DbyciK4x.js";
9
9
  import { useBreakpoints as Ke, useSnackbar as je, components as Oe, FmButtonColorThemeVariant as Ae } from "@feedmepos/ui-library";
10
10
  import { useRouter as qe, useRoute as Ge } from "vue-router";
11
11
  import { storeToRefs as ue } from "pinia";
12
- import { j as Je, u as Qe } from "./app-X-tKojve.js";
12
+ import { j as Je, u as Qe } from "./app-CwMmSHUw.js";
13
13
  const We = { class: "flex flex-col h-full" }, Xe = ["src"], Ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, et = /* @__PURE__ */ pe({
14
14
  __name: "NoTemplate",
15
15
  props: {
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as de, useModel as ge, computed as k, ref as ae, resolveComponent as A, openBlock as d, createElementBlock as W, createVNode as r, unref as l, withCtx as ee, createElementVNode as h, toDisplayString as Y, Fragment as me, renderList as $e, withModifiers as he, createTextVNode as Xe, mergeModels as ve, watch as ke, createBlock as I, createCommentVNode as z, renderSlot as kl, onBeforeUnmount as rl, resolveDynamicComponent as Fl, normalizeClass as Ve, withDirectives as Fe, vShow as _e, onMounted as Vl, withKeys as vl, vModelText as Wl, normalizeStyle as il, isRef as Xl } from "vue";
2
2
  import { useRoute as Hl, useRouter as ql } from "vue-router";
3
- import { u as ul, f as dl, h as We, F as Ne, d as He, S as sl, a as Gl, W as Jl, T as Yl, c as Kl, b as fl } from "./TransitionFade-DIDahT3W.js";
4
- import { W as J, a as Sl, D as Ye, S as gl, C as Zl, u as Tl, P as yl, F as Pe, c as Le, o as Ql, k as et } from "./report-CoK9Yl1E.js";
3
+ import { u as ul, f as dl, h as We, F as Ne, d as He, S as sl, a as Gl, W as Jl, T as Yl, c as Kl, b as fl } from "./TransitionFade-tUK-3l63.js";
4
+ import { W as J, a as Sl, D as Ye, S as gl, C as Zl, u as Tl, P as yl, F as Pe, c as Le, o as Ql, k as et } from "./report-CtMB0C_H.js";
5
5
  import { storeToRefs as Re } from "pinia";
6
6
  import { u as _l } from "./message-dialog-UoMWOnil.js";
7
7
  import { useSnackbar as lt, useBreakpoints as $l, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
8
- import { h as tt, g as xe, R as bl, e as ot, d as at, a as nt, L as Ae, b as ol, S as re, c as fe, f as al, j as hl, _ as Dl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-iRcCryhy.js";
9
- import { a as qe, _ as it } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-VTI9bq-3.js";
8
+ import { h as tt, g as xe, R as bl, e as ot, d as at, a as nt, L as Ae, b as ol, S as re, c as fe, f as al, j as hl, _ as Dl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DfVW7Q_x.js";
9
+ import { a as qe, _ as it } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Fcz2N71N.js";
10
10
  import { a as be, _ as Ul } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
11
11
  import { u as pe, _ as Bl } from "./_plugin-vue_export-helper-Bx7s49ra.js";
12
12
  import { r as ue } from "./i18n-DbyciK4x.js";
13
13
  import { a as je } from "./index-CtZE4sab.js";
14
- import { d as Ke } from "./DateRangeSelect-OTyc3v5_.js";
15
- import { a as st, t as wl, i as rt, z as ut } from "./app-X-tKojve.js";
14
+ import { d as Ke } from "./DateRangeSelect-DvE_au_i.js";
15
+ import { a as st, t as wl, i as rt, z as ut } from "./app-CwMmSHUw.js";
16
16
  const ll = [
17
17
  {
18
18
  type: J.Circular,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as R, reactive as J, resolveComponent as B, openBlock as n, createElementBlock as s, Fragment as I, renderList as P, unref as re, createBlock as V, normalizeStyle as w, normalizeClass as l, withCtx as C, toDisplayString as T, createCommentVNode as y, createVNode as u, mergeProps as ne, createSlots as ie, createElementVNode as $, withDirectives as G, vShow as L, ref as se, watch as de } from "vue";
2
2
  import { u as X } from "./_plugin-vue_export-helper-Bx7s49ra.js";
3
- import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-iRcCryhy.js";
4
- import { i as fe, F as D, W as ye } from "./report-CoK9Yl1E.js";
3
+ import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DfVW7Q_x.js";
4
+ import { i as fe, F as D, W as ye } from "./report-CtMB0C_H.js";
5
5
  import { useBreakpoints as he } from "@feedmepos/ui-library";
6
6
  import { r as Y } from "./i18n-DbyciK4x.js";
7
7
  const ve = {
@@ -4,15 +4,15 @@ import { useCoreStore as po } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as In } from "pinia";
5
5
  import { useRoute as mo } from "vue-router";
6
6
  import { u as Lt, _ as an } from "./_plugin-vue_export-helper-Bx7s49ra.js";
7
- import { W as xe, Q as ho, b as Ge } from "./report-CoK9Yl1E.js";
7
+ import { W as xe, Q as ho, b as Ge } from "./report-CtMB0C_H.js";
8
8
  import { p as go, a as On } from "./index-CtZE4sab.js";
9
- import { d as Sn } from "./DateRangeSelect-OTyc3v5_.js";
10
- import { u as vo, F as bo, w as yo, d as Ut } from "./app-X-tKojve.js";
11
- import { I as rt, b as Cn, c as Rn, g as Eo, a as _o } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-VTI9bq-3.js";
9
+ import { d as Sn } from "./DateRangeSelect-DvE_au_i.js";
10
+ import { u as vo, F as bo, w as yo, d as Ut } from "./app-CwMmSHUw.js";
11
+ import { I as rt, b as Cn, c as Rn, g as Eo, a as _o } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Fcz2N71N.js";
12
12
  import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
13
13
  import { r as fn } from "./i18n-DbyciK4x.js";
14
14
  import { useSnackbar as To } from "@feedmepos/ui-library";
15
- import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-iRcCryhy.js";
15
+ import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DfVW7Q_x.js";
16
16
  const wo = {
17
17
  key: 0,
18
18
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"