@feedmepos/mf-report 5.23.6 → 5.23.7-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 (24) hide show
  1. package/dist/{App-nwXmJVxf.js → App-Ck6LU2s0.js} +61 -61
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js → BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js} +1007 -952
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js} +1 -1
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js → Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js} +1 -1
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js → FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js} +201 -201
  6. package/dist/{InsightView-CZxXrb_Z.js → InsightView-BqyCopia.js} +4 -4
  7. package/dist/{Integration-BxpLsC0U.js → Integration-D-APHR8f.js} +3 -3
  8. package/dist/{Integrations-CTyK-Uyg.js → Integrations-DVG378Mt.js} +2 -2
  9. package/dist/{Layout-473B8zVn.js → Layout-DAQOMFMP.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BcMhG_lN.js → MenuTab.vue_vue_type_script_setup_true_lang-KHuDibJ5.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-pecBAfSw.js → NavigationTab.vue_vue_type_script_setup_true_lang-BAAmC1SG.js} +3 -3
  12. package/dist/{OverviewView-D6ri8d93.js → OverviewView-BDRUTz05.js} +4 -4
  13. package/dist/{Report-DFJj0YRF.js → Report-DpPlnOrU.js} +3 -3
  14. package/dist/{ReportEditor-1ku-RI85.js → ReportEditor-Bh-ZvB7p.js} +4 -4
  15. package/dist/{ReportView-DXtOkb6E.js → ReportView-tP7j8_7Y.js} +6 -6
  16. package/dist/{Setting-CxyiPw1q.js → Setting-QWpjiw0r.js} +76 -75
  17. package/dist/{TileEditor-B3dD9oLf.js → TileEditor-C6wIGQBD.js} +5 -5
  18. package/dist/{TransitionFade-MWKMOUQW.js → TransitionFade-KfsEv8Nq.js} +4 -4
  19. package/dist/{app-DC6ifZM-.js → app-Dak0RvwK.js} +181 -173
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-BcdwnlGM.js → formatChartData.worker-DP26JAuy.js} +13 -13
  22. package/dist/assets/{processTableData.worker-BacYCzdp.js → processTableData.worker-S2PCd2dS.js} +12 -12
  23. package/dist/{useRestaurantPermission-Dj_8GhOj.js → useRestaurantPermission-NgtgPUnL.js} +1 -1
  24. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
2
- import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js";
3
3
  const f = /* @__PURE__ */ o({
4
4
  __name: "Layout",
5
5
  setup(m) {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as b, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as u, unref as e, isRef as p, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as R, Fragment as w, renderList as M, toDisplayString as T } from "vue";
2
- import { a as B } from "./app-DC6ifZM-.js";
2
+ import { a as B } from "./app-Dak0RvwK.js";
3
3
  import { storeToRefs as D } from "pinia";
4
- import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-pecBAfSw.js";
5
- import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js";
6
- import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
7
- import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js";
4
+ import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BAAmC1SG.js";
5
+ import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js";
6
+ import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
7
+ import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js";
8
8
  import { useRoute as z } from "vue-router";
9
9
  import { useBreakpoints as E } from "@feedmepos/ui-library";
10
10
  const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ b({
@@ -4,12 +4,12 @@ var Dl = (e, r, t) => S5(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { defineComponent as tr, computed as Ke, useModel as Pn, ref as Le, watch as Gr, resolveComponent as ve, createBlock as Ye, unref as X, openBlock as ae, withCtx as We, createElementVNode as K, createVNode as ee, toDisplayString as Xe, withDirectives as Vi, createElementBlock as Ve, Fragment as mt, renderList as Xt, vShow as Gs, createTextVNode as _r, mergeModels as fi, createCommentVNode as dt, normalizeClass as ci, onMounted as l0, withKeys as Xh, withModifiers as ii, isRef as ti, vModelText as zh, normalizeStyle as o0, renderSlot as Hh, mergeProps as O5, nextTick as D5, resolveDynamicComponent as zu, createSlots as I5 } from "vue";
5
5
  import { useRouter as qh, useRoute as Wh } from "vue-router";
6
6
  import { storeToRefs as mr, defineStore as f0 } from "pinia";
7
- import { u as ol, k as kd, l as V5, g as ai, R as qa, i as Qs, m as Gl, _ as c0, c as L5, v as F5, h as N5, r as M5, n as yn, o as R5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
7
+ import { u as ol, k as kd, l as V5, g as ai, R as qa, i as Qs, m as Gl, _ as c0, c as L5, v as F5, h as N5, r as M5, n as yn, o as R5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
8
8
  import { useBreakpoints as ko, components as Li, useSnackbar as Hi, useDialog as B5, useDialogChild as X5, FmButtonVariant as Td } from "@feedmepos/ui-library";
9
9
  import { u as ba } from "./vue-i18n-DVWuTfed.js";
10
10
  import { a as Cd, _ as z5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
11
- import { C as hr, g as H5, e as ei, f as jh, a as q5, _ as Uh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js";
12
- import { u as Ua, F as Za, r as fl, a as hi, d as Ot, q as To, n as Zh, o as W5, v as j5, e as U5, w as Il, x as Yh, c as Z5, y as Y5, p as G5 } from "./app-DC6ifZM-.js";
11
+ import { C as hr, g as H5, e as ei, f as jh, a as q5, _ as Uh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js";
12
+ import { u as Ua, F as Za, r as fl, a as hi, d as Ot, q as To, n as Zh, o as W5, v as j5, e as U5, w as Il, x as Yh, c as Z5, y as Y5, p as G5 } from "./app-Dak0RvwK.js";
13
13
  import { detectLocale as Q5, useCoreStore as K5 } from "@feedmepos/mf-common";
14
14
  const J5 = { class: "flex flex-col" }, _5 = { class: "fm-typo-en-title-sm-600" }, $5 = { class: "grow" }, e8 = { class: "flex flex-col gap-8" }, t8 = { class: "flex flex-col w-full" }, r8 = { class: "flex flex-col gap-5 p-6" }, a8 = { class: "flex" }, xd = {
15
15
  // sales: [
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, computed as c, resolveComponent as $, createBlock as l, openBlock as r, withCtx as y, createVNode as u, createElementVNode as h, unref as e, normalizeStyle as C, normalizeClass as d, createElementBlock as _, Fragment as b, renderList as B } from "vue";
2
- import { _ as F } from "./FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js";
3
- import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js";
4
- import { u as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
2
+ import { _ as F } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js";
3
+ import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js";
4
+ import { u as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
5
5
  import { storeToRefs as R } from "pinia";
6
6
  import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
7
7
  import { useBreakpoints as V } from "@feedmepos/ui-library";
8
- import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-BcMhG_lN.js";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-KHuDibJ5.js";
9
9
  import { useI18n as D } from "@feedmepos/mf-common";
10
10
  import { r as E } from "./i18n-CI_sQ5d_.js";
11
11
  const M = /* @__PURE__ */ w({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as k, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as x, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Pe, toDisplayString as J, createTextVNode as Le, vShow as Q } from "vue";
2
2
  import { storeToRefs as de } from "pinia";
3
- import { u as Ne } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
4
- import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js";
3
+ import { u as Ne } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
4
+ import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js";
5
5
  import { u as Ae } from "./message-dialog-UoMWOnil.js";
6
6
  import { a as Je } from "./vue-i18n-DVWuTfed.js";
7
7
  import { useSnackbar as ze, useBreakpoints as Be, components as Te, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
8
8
  import { _ as Ee } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
9
- import { c as Ke, a as fe, g as Me } from "./app-DC6ifZM-.js";
9
+ import { c as Ke, a as fe, g as Me } from "./app-Dak0RvwK.js";
10
10
  import { useRouter as Ye, useRoute as qe, onBeforeRouteLeave as je } from "vue-router";
11
11
  import { useI18n as Ge } from "@feedmepos/mf-common";
12
12
  import { r as W } from "./i18n-CI_sQ5d_.js";
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as he, mergeModels as be, useModel as ye, ref as R, computed as N, resolveComponent as h, createBlock as T, openBlock as r, withCtx as p, createElementVNode as y, createVNode as a, unref as t, normalizeClass as ke, createTextVNode as Le, toDisplayString as X, createElementBlock as C, Fragment as ee, renderSlot as Xe, createCommentVNode as A, watch as ge, renderList as ce, resolveDynamicComponent as sl, isRef as Ye, normalizeStyle as He, onMounted as ul } from "vue";
2
- import { W as ml, g as dl, _ as cl, a as pl, i as vl, S as Ae, d as Ge, T as fl, b as gl } from "./TransitionFade-MWKMOUQW.js";
3
- import { C as fe, D as Q, b as Ve, u as Ze, a as bl, v as Oe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
2
+ import { W as ml, g as dl, _ as cl, a as pl, i as vl, S as Ae, d as Ge, T as fl, b as gl } from "./TransitionFade-KfsEv8Nq.js";
3
+ import { C as fe, D as Q, b as Ve, u as Ze, a as bl, v as Oe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
4
4
  import { storeToRefs as Re } from "pinia";
5
5
  import { useRouter as el, useRoute as ll } from "vue-router";
6
6
  import { useBreakpoints as Ie, useSnackbar as tl, FmButtonColorThemeVariant as xe } from "@feedmepos/ui-library";
7
7
  import { u as ol } from "./message-dialog-UoMWOnil.js";
8
8
  import { u as Ne, a as yl } from "./vue-i18n-DVWuTfed.js";
9
9
  import { r as $e } from "./i18n-CI_sQ5d_.js";
10
- import { g as hl, a as Ke, _ as ze } from "./FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js";
10
+ import { g as hl, a as Ke, _ as ze } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js";
11
11
  import { _ as Ee } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
12
12
  import { a as Pe } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
13
- import { a as _l, i as Je } from "./app-DC6ifZM-.js";
13
+ import { a as _l, i as Je } from "./app-Dak0RvwK.js";
14
14
  import { useCoreStore as wl } from "@feedmepos/mf-common";
15
15
  const Fl = /* @__PURE__ */ he({
16
16
  __name: "WidgetDialog",
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as ee, ref as oe, computed as c, watch as te, resolveComponent as J, createBlock as _, openBlock as d, withCtx as w, createVNode as S, createElementVNode as k, unref as s, toDisplayString as re, normalizeStyle as ae, normalizeClass as T, createElementBlock as N, Fragment as se, renderList as ne } from "vue";
2
- import { _ as le } from "./MenuTab.vue_vue_type_script_setup_true_lang-BcMhG_lN.js";
3
- import { _ as ie } from "./FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js";
2
+ import { _ as le } from "./MenuTab.vue_vue_type_script_setup_true_lang-KHuDibJ5.js";
3
+ import { _ as ie } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js";
4
4
  import { useRouter as ue, useRoute as ce } from "vue-router";
5
- import { _ as pe } from "./Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js";
6
- import { u as me, s as de } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
5
+ import { _ as pe } from "./Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js";
6
+ import { u as me, s as de } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
7
7
  import { storeToRefs as f } from "pinia";
8
- import { b as ve, c as fe, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-pecBAfSw.js";
8
+ import { b as ve, c as fe, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BAAmC1SG.js";
9
9
  import { _ as be } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
10
10
  import { useSnackbar as _e, useBreakpoints as we } from "@feedmepos/ui-library";
11
11
  import { u as Se, a as ke } from "./vue-i18n-DVWuTfed.js";
12
12
  import { u as xe } from "./message-dialog-UoMWOnil.js";
13
- import { e as he, g as Ce } from "./app-DC6ifZM-.js";
13
+ import { e as he, g as Ce } from "./app-Dak0RvwK.js";
14
14
  import { r as Re } from "./i18n-CI_sQ5d_.js";
15
15
  import { _ as Pe } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
16
16
  const De = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Oe = { class: "sticky top-0 z-10 bg-white" }, Ie = /* @__PURE__ */ ee({
@@ -1,14 +1,14 @@
1
- import { defineComponent as B, ref as H, useModel as J, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as K, renderList as Q, withDirectives as M, createTextVNode as ie, vShow as j, watch as me, normalizeStyle as ue } from "vue";
2
- import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js";
3
- import { d as z, C as I, D as pe, a as ce } from "./app-DC6ifZM-.js";
4
- import { components as A, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
5
- import { t as N, j as fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
1
+ import { defineComponent as B, ref as H, useModel as M, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as A, renderList as G, createTextVNode as ie, withDirectives as K, vShow as Q, watch as me, normalizeStyle as ue } from "vue";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js";
3
+ import { d as L, C as q, D as pe, a as ce } from "./app-Dak0RvwK.js";
4
+ import { components as z, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as I } from "@feedmepos/ui-library";
5
+ import { t as N, j as fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
6
6
  import { u as ve } from "./message-dialog-UoMWOnil.js";
7
7
  import { u as U } from "./vue-i18n-DVWuTfed.js";
8
8
  import { detectLocale as F } from "@feedmepos/mf-common";
9
9
  import { a as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
10
10
  import { storeToRefs as _e } from "pinia";
11
- const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex px-5 gap-2" }, xe = { class: "flex flex-col gap-2" }, be = { class: "fm-typo-en-title-sm-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "w-full gap-[24px] flex flex-col pt-2" }, Te = { class: "flex items-center w-full gap-3" }, De = { class: "text-fm-color-typo-primary" }, $e = { class: "text-fm-color-typo-secondary" }, Se = { class: "flex items-center gap-2" }, ke = /* @__PURE__ */ B({
11
+ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex px-5 gap-2" }, xe = { class: "flex flex-col gap-2" }, be = { class: "fm-typo-en-title-sm-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "w-full gap-[24px] flex flex-col pt-2" }, De = { class: "flex items-center w-full gap-3" }, Te = { class: "text-fm-color-typo-primary" }, $e = { class: "text-fm-color-typo-secondary" }, Se = { class: "flex items-center gap-2" }, ke = /* @__PURE__ */ B({
12
12
  __name: "ReportHour",
13
13
  props: {
14
14
  modelValue: {
@@ -18,57 +18,59 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
18
18
  modelModifiers: {}
19
19
  },
20
20
  emits: ["update:modelValue"],
21
- setup(T) {
21
+ setup(D) {
22
22
  const o = H(!1), p = H(), l = {
23
23
  name: "",
24
24
  isDefault: !1,
25
25
  startTime: { hour: 0, minute: 0 },
26
26
  endTime: { hour: 0, minute: 0 }
27
- }, { FmForm: c } = A, n = H(), { promptMessage: D } = ve(), b = W(), r = H(JSON.parse(JSON.stringify(l))), i = J(T, "modelValue"), { t: m } = U(), d = () => {
28
- o.value = !1, r.value && p.value === void 0 ? i.value.push(r.value) : i.value[p.value] = r.value;
27
+ }, { FmForm: c } = z, n = H(), { promptMessage: T } = ve(), b = W(), r = H(JSON.parse(JSON.stringify(l))), m = M(D, "modelValue"), { t: u } = U(), d = () => {
28
+ o.value = !1, r.value && p.value === void 0 ? m.value.push(r.value) : m.value[p.value] = r.value;
29
29
  }, R = () => {
30
30
  var v;
31
31
  (v = n.value) == null || v.validateInputs();
32
- }, L = () => {
32
+ }, j = () => {
33
33
  o.value = !1, r.value = l;
34
34
  }, Z = (v) => {
35
- p.value = v, r.value = JSON.parse(JSON.stringify(i.value[p.value])), o.value = !0;
35
+ p.value = v, r.value = JSON.parse(JSON.stringify(m.value[p.value])), o.value = !0;
36
36
  }, ee = () => {
37
37
  r.value = l, o.value = !0;
38
38
  }, te = async (v) => {
39
- const u = i.value.find((C, f) => f === v);
40
- if (!u) {
39
+ const i = m.value.find((C, f) => f === v);
40
+ if (!i) {
41
41
  b.open({ message: `index ${v} cannot be found`, type: "error" });
42
42
  return;
43
43
  }
44
- await D({
45
- title: m("report.setting.reportHour.deleteTitle"),
46
- message: m("report.setting.reportHour.deleteConfirm", { name: u.name })
47
- }) && (i.value = i.value.filter((f, E) => E !== v), i.value.find((f) => f.isDefault) || (i.value[0].isDefault = !0), r.value = l);
48
- }, oe = (v, u) => {
49
- v ? i.value = i.value.map(($, C) => ({
44
+ if (i.isDefault)
45
+ return;
46
+ await T({
47
+ title: u("report.setting.reportHour.deleteTitle"),
48
+ message: u("report.setting.reportHour.deleteConfirm", { name: i.name })
49
+ }) && (m.value = m.value.filter((f, E) => E !== v), m.value.find((f) => f.isDefault) || (m.value[0].isDefault = !0), r.value = l);
50
+ }, oe = (v, i) => {
51
+ v ? m.value = m.value.map(($, C) => ({
50
52
  ...$,
51
- isDefault: u === C
52
- })) : i.value = i.value.map(($, C) => ({
53
+ isDefault: i === C
54
+ })) : m.value = m.value.map(($, C) => ({
53
55
  ...$,
54
56
  isDefault: C === 0
55
57
  }));
56
- }, { breakpoints: w } = X(), { FmSideSheet: le, FmTopSheet: ae } = A;
57
- return (v, u) => {
58
+ }, { breakpoints: w } = X(), { FmSideSheet: le, FmTopSheet: ae } = z;
59
+ return (v, i) => {
58
60
  const $ = h("FmTextField"), C = h("FmTimePicker"), f = h("FmButton"), E = h("FmSwitch"), se = h("FmChip"), re = h("FmCard");
59
61
  return x(), k("div", null, [
60
62
  (x(), P(ne(e(w).lg || e(w).md ? e(le) : e(ae)), {
61
63
  modelValue: o.value,
62
- "onUpdate:modelValue": u[3] || (u[3] = (g) => o.value = g),
64
+ "onUpdate:modelValue": i[3] || (i[3] = (_) => o.value = _),
63
65
  "fullscreen-size": "sm",
64
66
  "dismiss-away": !0
65
67
  }, {
66
68
  "side-sheet-header": y(() => [
67
- t("p", null, s(e(m)("report.setting.reportHour.addTitle")), 1)
69
+ t("p", null, s(e(u)("report.setting.reportHour.addTitle")), 1)
68
70
  ]),
69
71
  "top-sheet-header": y(() => [
70
72
  t("div", ge, [
71
- t("p", null, s(e(m)("report.setting.reportHour.addTitle")), 1)
73
+ t("p", null, s(e(u)("report.setting.reportHour.addTitle")), 1)
72
74
  ])
73
75
  ]),
74
76
  "side-sheet-footer": y(() => [
@@ -81,7 +83,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
81
83
  a(f, {
82
84
  label: "Cancel",
83
85
  variant: "tertiary",
84
- onClick: L
86
+ onClick: j
85
87
  })
86
88
  ])
87
89
  ]),
@@ -95,7 +97,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
95
97
  a(f, {
96
98
  label: "Cancel",
97
99
  variant: "tertiary",
98
- onClick: L
100
+ onClick: j
99
101
  })
100
102
  ])
101
103
  ]),
@@ -107,29 +109,29 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
107
109
  onValidationSuccess: d
108
110
  }, {
109
111
  default: y(() => {
110
- var g, V, S, q;
112
+ var _, V, S, J;
111
113
  return [
112
114
  a($, {
113
115
  modelValue: r.value.name,
114
- "onUpdate:modelValue": u[0] || (u[0] = (_) => r.value.name = _),
115
- label: e(m)("report.setting.reportHour.hourSetName"),
116
- placeholder: e(m)("report.setting.reportHour.namePlaceholder"),
117
- rules: [(_) => _ !== "" || e(m)("report.setting.reportHour.cannotBeEmpty")]
116
+ "onUpdate:modelValue": i[0] || (i[0] = (g) => r.value.name = g),
117
+ label: e(u)("report.setting.reportHour.hourSetName"),
118
+ placeholder: e(u)("report.setting.reportHour.namePlaceholder"),
119
+ rules: [(g) => g !== "" || e(u)("report.setting.reportHour.cannotBeEmpty")]
118
120
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
119
121
  a(C, {
120
- "model-value": e(z)().hour(((g = r.value.startTime) == null ? void 0 : g.hour) ?? 0).minute(((V = r.value.startTime) == null ? void 0 : V.minute) ?? 0).locale(e(F)()).format("HH:mm"),
122
+ "model-value": e(L)().hour(((_ = r.value.startTime) == null ? void 0 : _.hour) ?? 0).minute(((V = r.value.startTime) == null ? void 0 : V.minute) ?? 0).locale(e(F)()).format("HH:mm"),
121
123
  class: "grow",
122
- label: e(m)("report.setting.reportHour.startTime"),
123
- "onUpdate:modelValue": u[1] || (u[1] = (_) => {
124
- _ && (r.value.startTime.hour = Number(_.split(":")[0]), r.value.startTime.minute = Number(_.split(":")[1]));
124
+ label: e(u)("report.setting.reportHour.startTime"),
125
+ "onUpdate:modelValue": i[1] || (i[1] = (g) => {
126
+ g && (r.value.startTime.hour = Number(g.split(":")[0]), r.value.startTime.minute = Number(g.split(":")[1]));
125
127
  })
126
128
  }, null, 8, ["model-value", "label"]),
127
129
  a(C, {
128
- "model-value": e(z)().hour(((S = r.value.endTime) == null ? void 0 : S.hour) ?? 0).minute(((q = r.value.endTime) == null ? void 0 : q.minute) ?? 0).format("HH:mm"),
130
+ "model-value": e(L)().hour(((S = r.value.endTime) == null ? void 0 : S.hour) ?? 0).minute(((J = r.value.endTime) == null ? void 0 : J.minute) ?? 0).format("HH:mm"),
129
131
  class: "grow",
130
- label: e(m)("report.setting.reportHour.closeTime"),
131
- "onUpdate:modelValue": u[2] || (u[2] = (_) => {
132
- _ && (r.value.endTime.hour = Number(_.split(":")[0]), r.value.endTime.minute = Number(_.split(":")[1]));
132
+ label: e(u)("report.setting.reportHour.closeTime"),
133
+ "onUpdate:modelValue": i[2] || (i[2] = (g) => {
134
+ g && (r.value.endTime.hour = Number(g.split(":")[0]), r.value.endTime.minute = Number(g.split(":")[1]));
133
135
  })
134
136
  }, null, 8, ["model-value", "label"])
135
137
  ];
@@ -140,36 +142,36 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
140
142
  _: 1
141
143
  }, 8, ["modelValue"])),
142
144
  t("div", xe, [
143
- t("p", be, s(e(m)("report.setting.reportHour.title")), 1),
144
- t("p", Ce, s(e(m)("report.setting.reportHour.description")), 1)
145
+ t("p", be, s(e(u)("report.setting.reportHour.title")), 1),
146
+ t("p", Ce, s(e(u)("report.setting.reportHour.description")), 1)
145
147
  ]),
146
148
  t("div", Ve, [
147
- (x(!0), k(K, null, Q(i.value, (g, V) => (x(), P(re, {
149
+ (x(!0), k(A, null, G(m.value, (_, V) => (x(), P(re, {
148
150
  key: `report_${V}`,
149
151
  class: "flex p-4",
150
152
  variant: "outlined"
151
153
  }, {
152
154
  default: y(() => [
153
- t("div", Te, [
155
+ t("div", De, [
154
156
  a(E, {
155
- "model-value": g.isDefault,
157
+ "model-value": _.isDefault,
156
158
  "onUpdate:modelValue": (S) => oe(S, V)
157
159
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
158
160
  t("div", null, [
159
- t("p", De, [
160
- ie(s(g.name) + " ", 1),
161
- M(a(se, {
162
- label: e(m)("report.common.default"),
161
+ t("p", Te, [
162
+ ie(s(_.name) + " ", 1),
163
+ K(a(se, {
164
+ label: e(u)("report.common.default"),
163
165
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
164
166
  compact: ""
165
167
  }, null, 8, ["label"]), [
166
- [j, g.isDefault]
168
+ [Q, _.isDefault]
167
169
  ])
168
170
  ]),
169
- t("p", $e, s(e(N)(g.startTime, e(F)())) + " - " + s(e(N)(g.endTime, e(F)())), 1)
171
+ t("p", $e, s(e(N)(_.startTime, e(F)())) + " - " + s(e(N)(_.endTime, e(F)())), 1)
170
172
  ]),
171
- u[4] || (u[4] = t("div", { class: "grow" }, null, -1)),
172
- M(t("div", Se, [
173
+ i[4] || (i[4] = t("div", { class: "grow" }, null, -1)),
174
+ t("div", Se, [
173
175
  a(f, {
174
176
  icon: "edit",
175
177
  variant: "tertiary",
@@ -178,10 +180,9 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
178
180
  a(f, {
179
181
  icon: "delete",
180
182
  variant: "tertiary",
183
+ disabled: _.isDefault,
181
184
  onClick: (S) => te(V)
182
- }, null, 8, ["onClick"])
183
- ], 512), [
184
- [j, V !== 0]
185
+ }, null, 8, ["disabled", "onClick"])
185
186
  ])
186
187
  ])
187
188
  ]),
@@ -189,12 +190,12 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
189
190
  }, 1024))), 128)),
190
191
  t("div", null, [
191
192
  a(f, {
192
- label: e(m)("report.setting.reportHour.add"),
193
+ label: e(u)("report.setting.reportHour.add"),
193
194
  variant: "secondary",
194
195
  icon: "add",
195
196
  "icon-position": "prepend",
196
- "border-color": e(G).ColorPrimary,
197
- "text-color": e(G).ColorPrimary,
197
+ "border-color": e(I).ColorPrimary,
198
+ "text-color": e(I).ColorPrimary,
198
199
  onClick: ee
199
200
  }, null, 8, ["label", "border-color", "text-color"])
200
201
  ])
@@ -207,13 +208,13 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
207
208
  props: {
208
209
  modelValue: {
209
210
  required: !0,
210
- default: I.PRECEDING_PERIOD
211
+ default: q.PRECEDING_PERIOD
211
212
  },
212
213
  modelModifiers: {}
213
214
  },
214
215
  emits: ["update:modelValue"],
215
- setup(T) {
216
- const { t: o } = U(), p = J(T, "modelValue"), l = Object.values(I).map((c) => ({
216
+ setup(D) {
217
+ const { t: o } = U(), p = M(D, "modelValue"), l = Object.values(q).map((c) => ({
217
218
  label: o(`report.compare.${c}`),
218
219
  value: c
219
220
  })).slice(0, -1);
@@ -221,7 +222,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
221
222
  t("p", Re, s(e(o)("report.setting.summary.comparisonDateRange")), 1),
222
223
  a(Y, {
223
224
  modelValue: p.value,
224
- "onUpdate:modelValue": n[0] || (n[0] = (D) => p.value = D),
225
+ "onUpdate:modelValue": n[0] || (n[0] = (T) => p.value = T),
225
226
  label: e(o)("report.setting.summary.comparisonDateRange"),
226
227
  items: e(l),
227
228
  "disable-search": !0
@@ -235,8 +236,8 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
235
236
  modelModifiers: {}
236
237
  },
237
238
  emits: ["update:modelValue"],
238
- setup(T) {
239
- const { t: o } = U(), p = J(T, "modelValue"), l = Object.values(pe).filter((c) => !["This month", "Last month"].includes(c)).map((c) => ({
239
+ setup(D) {
240
+ const { t: o } = U(), p = M(D, "modelValue"), l = Object.values(pe).filter((c) => !["This month", "Last month"].includes(c)).map((c) => ({
240
241
  label: o(`report.date.${c}`),
241
242
  value: c
242
243
  }));
@@ -244,7 +245,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
244
245
  t("p", Oe, s(e(o)("report.setting.summary.defaultDateRange")), 1),
245
246
  a(Y, {
246
247
  modelValue: p.value,
247
- "onUpdate:modelValue": n[0] || (n[0] = (D) => p.value = D),
248
+ "onUpdate:modelValue": n[0] || (n[0] = (T) => p.value = T),
248
249
  label: e(o)("report.setting.summary.defaultDateRange"),
249
250
  items: e(l),
250
251
  "disable-search": !0
@@ -253,7 +254,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
253
254
  }
254
255
  }), Be = { class: "w-2/4" }, Ue = { class: "fm-typo-en-title-sm-600" }, Ee = { class: "text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600" }, Me = { class: "text-fm-color-typo-secondary" }, je = { class: "fm-typo-en-body-lg-600" }, Je = { class: "text-fm-color-typo-secondary" }, Le = { class: "fm-typo-en-body-lg-600" }, Ze = /* @__PURE__ */ B({
255
256
  __name: "Setting",
256
- setup(T) {
257
+ setup(D) {
257
258
  const { breakpoints: o } = X(), p = ce(), { defaultDateSetting: l } = _e(p), c = W(), { t: n } = U();
258
259
  return me(
259
260
  [
@@ -265,8 +266,8 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
265
266
  l.value.timeOptions.length === 0 ? c.open({ message: n("report.setting.reportHour.cannotBeEmptyError"), type: "error" }) : p.createOrUpdateBusinessSetting(l.value);
266
267
  },
267
268
  { deep: !0 }
268
- ), (D, b) => {
269
- const r = h("FmPageHead"), i = h("FmMenuDivider"), m = h("FmCard");
269
+ ), (T, b) => {
270
+ const r = h("FmPageHead"), m = h("FmMenuDivider"), u = h("FmCard");
270
271
  return x(), P(de, null, {
271
272
  default: y(() => [
272
273
  a(r, {
@@ -292,16 +293,16 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
292
293
  "onUpdate:modelValue": b[2] || (b[2] = (d) => e(l).defaultCompareType = d)
293
294
  }, null, 8, ["modelValue"])
294
295
  ], 2),
295
- M(t("div", Be, [
296
- a(m, {
296
+ K(t("div", Be, [
297
+ a(u, {
297
298
  variant: "outlined",
298
299
  class: O(["flex flex-col gap-3", `${e(o).lg || e(o).md ? "mr-5 p-6" : ""}`])
299
300
  }, {
300
301
  default: y(() => [
301
302
  t("p", Ue, s(e(n)("report.setting.summary.title")), 1),
302
- a(i),
303
+ a(m),
303
304
  t("p", Ee, s(e(n)("report.setting.summary.reportHour")), 1),
304
- (x(!0), k(K, null, Q(e(l).timeOptions, (d, R) => (x(), k("div", { key: R }, [
305
+ (x(!0), k(A, null, G(e(l).timeOptions, (d, R) => (x(), k("div", { key: R }, [
305
306
  t("p", Pe, s(d.name) + s(d.isDefault ? `(${e(n)("report.setting.reportHour.default")})` : "") + " " + s(e(N)(d.startTime, e(F)())) + " " + s(e(N)(d.endTime, e(F)())) + " " + s(e(fe)(d.startTime, d.endTime)), 1)
306
307
  ]))), 128)),
307
308
  t("p", Me, s(e(n)("report.setting.summary.defaultDateRange")), 1),
@@ -312,7 +313,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
312
313
  _: 1
313
314
  }, 8, ["class"])
314
315
  ], 512), [
315
- [j, e(o).lg || e(o).md]
316
+ [Q, e(o).lg || e(o).md]
316
317
  ])
317
318
  ], 6)
318
319
  ]),
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as se, mergeModels as ve, useModel as ge, computed as S, ref as ee, resolveComponent as D, createElementBlock as P, openBlock as v, createVNode as d, createElementVNode as b, unref as l, withCtx as Y, toDisplayString as J, Fragment as de, renderList as xe, withModifiers as ye, createTextVNode as Ue, watch as he, createCommentVNode as N, createBlock as O, onUnmounted as Bl, renderSlot as rl, onMounted as Ye, onBeforeUnmount as ul, resolveDynamicComponent as dl, normalizeClass as ke, withDirectives as we, vShow as Ce, withKeys as el, vModelText as Ll, normalizeStyle as Ee, isRef as Al } from "vue";
2
2
  import { useRoute as Ml, useRouter as Nl } from "vue-router";
3
- import { h as Ol, d as Re, S as We, a as jl, W as zl, c as Rl, T as Il, b as Pl } from "./TransitionFade-MWKMOUQW.js";
4
- import { W as G, a as ml, c as De, D as Xl, S as ll, C as El, P as ol, u as Wl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
3
+ import { h as Ol, d as Re, S as We, a as jl, W as zl, c as Rl, T as Il, b as Pl } from "./TransitionFade-KfsEv8Nq.js";
4
+ import { W as G, a as ml, c as De, D as Xl, S as ll, C as El, P as ol, u as Wl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
5
5
  import { storeToRefs as Se } from "pinia";
6
6
  import { u as cl } from "./message-dialog-UoMWOnil.js";
7
7
  import { useSnackbar as ql, useBreakpoints as pl, FmButtonColorThemeVariant as tl } from "@feedmepos/ui-library";
8
8
  import { a as fe, _ as vl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
9
9
  import { u as ce } from "./vue-i18n-DVWuTfed.js";
10
10
  import { r as me } from "./i18n-CI_sQ5d_.js";
11
- import { b as Te, u as Oe, R as al, L as Fe, c as Ne, S as le, d as ie, e as nl, f as Hl, Y as Yl, X as Gl, _ as fl, a as Jl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js";
12
- import { j as $e, a as gl, d as Me } from "./app-DC6ifZM-.js";
13
- import { d as je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js";
11
+ import { b as Te, u as Oe, R as al, L as Fe, c as Ne, S as le, d as ie, e as nl, f as Hl, Y as Yl, X as Gl, _ as fl, a as Jl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js";
12
+ import { j as $e, a as gl, d as Me } from "./app-Dak0RvwK.js";
13
+ import { d as je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js";
14
14
  import { _ as yl } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
15
15
  const Ie = [
16
16
  {
@@ -3,13 +3,13 @@ import { u as Pt, a as Pn } from "./vue-i18n-DVWuTfed.js";
3
3
  import { useCoreStore as Vn } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as Mn } from "pinia";
5
5
  import { useRoute as Ln } from "vue-router";
6
- import { W as F, b as De, c as Bn } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js";
7
- import { p as $n, d as ht, j as rn } from "./app-DC6ifZM-.js";
6
+ import { W as F, b as De, c as Bn } from "./BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js";
7
+ import { p as $n, d as ht, j as rn } from "./app-Dak0RvwK.js";
8
8
  import { _ as Vt, a as Wt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
9
- import { R as Rn, I as Be, h as an, i as ln, g as Xn } from "./FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js";
9
+ import { R as Rn, I as Be, h as an, i as ln, g as Xn } from "./FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js";
10
10
  import { r as Yn } from "./i18n-CI_sQ5d_.js";
11
11
  import { useSnackbar as Wn } from "@feedmepos/ui-library";
12
- import { d as Un } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js";
12
+ import { d as Un } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js";
13
13
  const jn = {
14
14
  key: 0,
15
15
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"