@feedmepos/mf-report 5.27.4-beta.0 → 5.27.5-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 (26) hide show
  1. package/dist/{App-CVUjMQDz.js → App-CFy7uVWa.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D7KWRFL7.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BeQGMwaJ.js} +125 -121
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-_Pxgsq5e.js → Default.vue_vue_type_script_setup_true_lang-Clr6FpOC.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-ECz1NPi7.js → DynamicWidget.vue_vue_type_script_setup_true_lang-4no6fWm5.js} +167 -167
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CQNNicq4.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZgNkimr.js} +423 -423
  6. package/dist/{InsightView-CDW0JBkk.js → InsightView-DU8zljsK.js} +4 -4
  7. package/dist/{Integration-DLwAnT21.js → Integration-CYzbIowW.js} +3 -3
  8. package/dist/{Integrations-D0oVZDbH.js → Integrations-Bduuzxhw.js} +2 -2
  9. package/dist/{Layout-D9pO69wt.js → Layout-BVwIE7cw.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DXkWMv9I.js → MenuTab.vue_vue_type_script_setup_true_lang-BVchswag.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CgUtDgUA.js → NavigationTab.vue_vue_type_script_setup_true_lang-YP0CF-o8.js} +3 -3
  12. package/dist/{OverviewView-DWKUFy4L.js → OverviewView-Bdx32y3s.js} +4 -4
  13. package/dist/{Report-Dq69Kao8.js → Report-_zTTyNSJ.js} +3 -3
  14. package/dist/{ReportEditor-qo-3ylaP.js → ReportEditor-DYEOVuv-.js} +5 -5
  15. package/dist/{ReportView-CM-bxuxT.js → ReportView-CwL2OqAA.js} +6 -6
  16. package/dist/{Setting-CPIM8l2c.js → Setting-7r18HuYT.js} +3 -3
  17. package/dist/{Template-ChJoYLdm.js → Template-DktljGgT.js} +3 -3
  18. package/dist/{TileEditor-Dt7uvirF.js → TileEditor-CJZ-J8q-.js} +5 -5
  19. package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-CuFuqoo2.js → TileGrid.vue_vue_type_script_setup_true_lang-jAvfQmuu.js} +1 -1
  20. package/dist/{TransitionFade-rqX_v3T0.js → TransitionFade-CJHCf0fY.js} +4 -4
  21. package/dist/{app-Ck-MFCfm.js → app-DrMXbBEc.js} +12 -12
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-CM1Z4AJT.js → formatChartData.worker-BPj1kHSl.js} +9 -9
  24. package/dist/assets/{processTableData.worker-DlxE2vZ8.js → processTableData.worker-BNG4ahN0.js} +9 -9
  25. package/dist/{useRestaurantPermission-DuopS9pb.js → useRestaurantPermission-CEpSe7Xz.js} +1 -1
  26. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as ue, resolveComponent as H, createBlock as de, openBlock as E, unref as d, isRef as ke, withCtx as W, createElementVNode as ne, createVNode as X, toDisplayString as ae, createTextVNode as Te, onMounted as le, watch as C, ref as Q, computed as oe, onBeforeMount as Ne, onBeforeUnmount as qe, createElementBlock as K, Fragment as Fe } from "vue";
2
2
  import { detectLocale as U, useCoreStore as P } from "@feedmepos/mf-common";
3
- import { d as u, u as $e, a as re, b as Be, c as se, e as xe, f as Je, s as Qe, t as G } from "./app-Ck-MFCfm.js";
3
+ import { d as u, u as $e, a as re, b as Be, c as se, e as xe, f as Je, s as Qe, t as G } from "./app-DrMXbBEc.js";
4
4
  import { storeToRefs as k } from "pinia";
5
5
  import { u as Ue, a as ze } from "./vue-i18n-DVWuTfed.js";
6
- import { u as je, a as Ve } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CQNNicq4.js";
7
- import { u as We, _ as Ke } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CgUtDgUA.js";
6
+ import { u as je, a as Ve } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CZgNkimr.js";
7
+ import { u as We, _ as Ke } from "./NavigationTab.vue_vue_type_script_setup_true_lang-YP0CF-o8.js";
8
8
  import { u as ie } from "./message-dialog-UoMWOnil.js";
9
9
  import { useRoute as Pe, useRouter as Ge } from "vue-router";
10
10
  const He = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Xe = /* @__PURE__ */ ue({
@@ -97,7 +97,7 @@ const Ze = ["src"], Me = ["src"], ft = /* @__PURE__ */ ue({
97
97
  }), Ne(() => {
98
98
  I(Ke);
99
99
  }), le(() => {
100
- console.log("5.27.4-beta.0", !0), window.addEventListener("message", M), window.addEventListener("message", ee);
100
+ console.log("5.27.5-beta.0", !0), window.addEventListener("message", M), window.addEventListener("message", ee);
101
101
  }), qe(() => {
102
102
  window.removeEventListener("message", M), window.removeEventListener("message", ee), w.$dispose(), Y.$dispose();
103
103
  });
@@ -1,12 +1,12 @@
1
- import { defineComponent as O, resolveComponent as C, createBlock as h, openBlock as D, normalizeClass as B, withCtx as I, createCommentVNode as x, createElementVNode as w, toDisplayString as W, renderSlot as X, mergeModels as M, useModel as E, ref as P, watch as $, createElementBlock as q, unref as y, createVNode as A } from "vue";
2
- import { d as u, a as G, U as H, C as K } from "./app-Ck-MFCfm.js";
1
+ import { defineComponent as U, resolveComponent as C, createBlock as v, openBlock as g, normalizeClass as W, withCtx as M, createCommentVNode as x, createElementVNode as w, toDisplayString as X, renderSlot as q, mergeModels as I, useModel as E, ref as P, watch as $, createElementBlock as G, unref as D, createVNode as A } from "vue";
2
+ import { d as s, a as H, U as K, C as J } from "./app-DrMXbBEc.js";
3
3
  import { detectLocale as L } from "@feedmepos/mf-common";
4
- import { u as J } from "./vue-i18n-DVWuTfed.js";
5
- import { storeToRefs as Q } from "pinia";
6
- const Z = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), ee = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), ae = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), te = /[^\p{L}\d]+/giu, F = "$1\0$2", k = "";
7
- function U(a) {
4
+ import { u as Q } from "./vue-i18n-DVWuTfed.js";
5
+ import { storeToRefs as Z } from "pinia";
6
+ const ee = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), ae = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), te = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), re = /[^\p{L}\d]+/giu, F = "$1\0$2", k = "";
7
+ function j(a) {
8
8
  let e = a.trim();
9
- e = e.replace(Z, F).replace(ee, F), e = e.replace(te, "\0");
9
+ e = e.replace(ee, F).replace(ae, F), e = e.replace(re, "\0");
10
10
  let t = 0, r = e.length;
11
11
  for (; e.charAt(t) === "\0"; )
12
12
  t++;
@@ -16,10 +16,10 @@ function U(a) {
16
16
  r--;
17
17
  return e.slice(t, r).split(/\0/g);
18
18
  }
19
- function re(a) {
20
- const e = U(a);
19
+ function le(a) {
20
+ const e = j(a);
21
21
  for (let t = 0; t < e.length; t++) {
22
- const r = e[t], n = ae.exec(r);
22
+ const r = e[t], n = te.exec(r);
23
23
  if (n) {
24
24
  const l = n.index + (n[1] ?? n[2]).length;
25
25
  e.splice(t, 1, r.slice(0, l), r.slice(l));
@@ -27,21 +27,21 @@ function re(a) {
27
27
  }
28
28
  return e;
29
29
  }
30
- function De(a, e) {
31
- const [t, r, n] = T(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale), s = e != null && e.mergeAmbiguousCharacters ? Y(l, c) : j(l, c);
32
- return t + r.map((o, d) => d === 0 ? l(o) : s(o, d)).join((e == null ? void 0 : e.delimiter) ?? "") + n;
33
- }
34
30
  function ge(a, e) {
35
- const [t, r, n] = T(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale), s = e != null && e.mergeAmbiguousCharacters ? Y(l, c) : j(l, c);
36
- return t + r.map(s).join((e == null ? void 0 : e.delimiter) ?? "") + n;
31
+ const [t, r, n] = Y(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale), d = e != null && e.mergeAmbiguousCharacters ? T(l, c) : N(l, c);
32
+ return t + r.map((m, y) => y === 0 ? l(m) : d(m, y)).join((e == null ? void 0 : e.delimiter) ?? "") + n;
37
33
  }
38
34
  function he(a, e) {
39
- const [t, r, n] = T(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale);
40
- return t + r.map(Y(l, c)).join((e == null ? void 0 : e.delimiter) ?? " ") + n;
35
+ const [t, r, n] = Y(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale), d = e != null && e.mergeAmbiguousCharacters ? T(l, c) : N(l, c);
36
+ return t + r.map(d).join((e == null ? void 0 : e.delimiter) ?? "") + n;
41
37
  }
42
38
  function ve(a, e) {
43
- const [t, r, n] = T(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale), s = Y(l, c);
44
- return t + r.map((o, d) => d === 0 ? s(o) : l(o)).join((e == null ? void 0 : e.delimiter) ?? " ") + n;
39
+ const [t, r, n] = Y(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale);
40
+ return t + r.map(T(l, c)).join((e == null ? void 0 : e.delimiter) ?? " ") + n;
41
+ }
42
+ function Re(a, e) {
43
+ const [t, r, n] = Y(a, e), l = S(e == null ? void 0 : e.locale), c = b(e == null ? void 0 : e.locale), d = T(l, c);
44
+ return t + r.map((m, y) => y === 0 ? d(m) : l(m)).join((e == null ? void 0 : e.delimiter) ?? " ") + n;
45
45
  }
46
46
  function S(a) {
47
47
  return a === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(a);
@@ -49,29 +49,29 @@ function S(a) {
49
49
  function b(a) {
50
50
  return a === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(a);
51
51
  }
52
- function Y(a, e) {
52
+ function T(a, e) {
53
53
  return (t) => `${e(t[0])}${a(t.slice(1))}`;
54
54
  }
55
- function j(a, e) {
55
+ function N(a, e) {
56
56
  return (t, r) => {
57
57
  const n = t[0];
58
58
  return (r > 0 && n >= "0" && n <= "9" ? "_" + n : e(n)) + a(t.slice(1));
59
59
  };
60
60
  }
61
- function T(a, e = {}) {
62
- const t = e.split ?? (e.separateNumbers ? re : U), r = e.prefixCharacters ?? k, n = e.suffixCharacters ?? k;
61
+ function Y(a, e = {}) {
62
+ const t = e.split ?? (e.separateNumbers ? le : j), r = e.prefixCharacters ?? k, n = e.suffixCharacters ?? k;
63
63
  let l = 0, c = a.length;
64
64
  for (; l < a.length; ) {
65
- const s = a.charAt(l);
66
- if (!r.includes(s))
65
+ const d = a.charAt(l);
66
+ if (!r.includes(d))
67
67
  break;
68
68
  l++;
69
69
  }
70
70
  for (; c > l; ) {
71
- const s = c - 1, o = a.charAt(s);
72
- if (!n.includes(o))
71
+ const d = c - 1, m = a.charAt(d);
72
+ if (!n.includes(m))
73
73
  break;
74
- c = s;
74
+ c = d;
75
75
  }
76
76
  return [
77
77
  a.slice(0, l),
@@ -79,8 +79,8 @@ function T(a, e = {}) {
79
79
  a.slice(c)
80
80
  ];
81
81
  }
82
- var v = /* @__PURE__ */ ((a) => (a.Year = "YEAR", a.Month = "MONTH", a.Week = "WEEK", a.Day = "DAY", a))(v || {}), le = /* @__PURE__ */ ((a) => (a.Yesterday = "YESTERDAY", a.Today = "TODAY", a))(le || {});
83
- function Re(a, e = 100) {
82
+ var R = /* @__PURE__ */ ((a) => (a.Year = "YEAR", a.Month = "MONTH", a.Week = "WEEK", a.Day = "DAY", a))(R || {}), ne = /* @__PURE__ */ ((a) => (a.Yesterday = "YESTERDAY", a.Today = "TODAY", a))(ne || {});
83
+ function pe(a, e = 100) {
84
84
  let t = null;
85
85
  const r = function(...n) {
86
86
  return t && clearTimeout(t), new Promise((l) => {
@@ -95,14 +95,14 @@ function Re(a, e = 100) {
95
95
  t && (clearTimeout(t), t = null);
96
96
  }, r;
97
97
  }
98
- function ne() {
99
- return [...Array(12).keys()].map((a) => u().month(a).format("MMM"));
98
+ function ce() {
99
+ return [...Array(12).keys()].map((a) => s().month(a).format("MMM"));
100
100
  }
101
- function pe(a, e, t = "") {
101
+ function Ce(a, e, t = "") {
102
102
  switch (a.type) {
103
- case v.Day:
103
+ case R.Day:
104
104
  return e("report.schedule.everyDay");
105
- case v.Week: {
105
+ case R.Week: {
106
106
  let r = `${e("report.schedule.everyWeek")} `;
107
107
  const n = [
108
108
  e("report.days.sunday"),
@@ -118,16 +118,16 @@ function pe(a, e, t = "") {
118
118
  r = r + n[a.days[l]] + (l !== a.days.length - 1 ? "," : "");
119
119
  return r;
120
120
  }
121
- case v.Month: {
121
+ case R.Month: {
122
122
  let r = `${e("report.schedule.everyMonth")} `;
123
123
  return a.days && (r = r + a.days.join(",")), r;
124
124
  }
125
- case v.Year: {
125
+ case R.Year: {
126
126
  if (!a.months && !a.days)
127
127
  return e("report.schedule.customDate");
128
128
  let r = `${e("report.schedule.everyYear")} `;
129
129
  if (a.months) {
130
- const n = ne();
130
+ const n = ce();
131
131
  r = r + a.months.map((l) => n[l - 1]).join(",");
132
132
  }
133
133
  return a.months && a.days && (r = r + ` ${e("report.common.and")} `), a.days && (r = r + a.days.join(",")), r;
@@ -144,20 +144,20 @@ function _(a = {
144
144
  }) {
145
145
  if (!a.startDate || !a.endDate)
146
146
  return "No comparison";
147
- let e = u().subtract(1, "day").endOf("day"), t = u().endOf("day");
148
- return a.startDate && (e = a.timezone ? u(a.startDate).tz(a.timezone).locale(a.locale) : u(a.startDate).locale(a.locale)), a.endDate && (t = a.timezone ? u(a.endDate).tz(a.timezone).locale(a.locale) : u(a.endDate).locale(a.locale)), e.format("YYYY") !== t.format("YYYY") ? `${e.format("DD MMM YYYY")} - ${t.format("DD MMM YYYY")}` : `${e.format("DD MMM")} - ${t.format("DD MMM YYYY")}`;
147
+ let e = s().subtract(1, "day").endOf("day"), t = s().endOf("day");
148
+ return a.startDate && (e = a.timezone ? s(a.startDate).tz(a.timezone).locale(a.locale) : s(a.startDate).locale(a.locale)), a.endDate && (t = a.timezone ? s(a.endDate).tz(a.timezone).locale(a.locale) : s(a.endDate).locale(a.locale)), e.format("YYYY") !== t.format("YYYY") ? `${e.format("DD MMM YYYY")} - ${t.format("DD MMM YYYY")}` : `${e.format("DD MMM")} - ${t.format("DD MMM YYYY")}`;
149
149
  }
150
- function Ce(a = {
150
+ function xe(a = {
151
151
  startTime: null,
152
152
  endTime: null,
153
153
  locale: "en-US"
154
154
  }) {
155
155
  const e = "hh:mmA", { startTime: t, endTime: r, locale: n } = a;
156
156
  if (!t || !r) return "";
157
- const l = u().set("hour", t.hour).set("minute", t.minute).locale(n), c = u().set("hour", r.hour).set("minute", r.minute).locale(n);
157
+ const l = s().set("hour", t.hour).set("minute", t.minute).locale(n), c = s().set("hour", r.hour).set("minute", r.minute).locale(n);
158
158
  return `${l.format(e)}-${c.format(e)}`;
159
159
  }
160
- const ce = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, ue = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, se = { class: "whitespace-nowrap flex-none" }, z = /* @__PURE__ */ O({
160
+ const ue = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, se = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, de = { class: "whitespace-nowrap flex-none" }, z = /* @__PURE__ */ U({
161
161
  __name: "FilterChip",
162
162
  props: {
163
163
  label: {
@@ -185,38 +185,38 @@ const ce = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
185
185
  const e = a;
186
186
  return (t, r) => {
187
187
  const n = C("FmIcon"), l = C("FmCircularProgress"), c = C("FmChip");
188
- return D(), h(c, {
188
+ return g(), v(c, {
189
189
  "aria-busy": e.loading,
190
- class: B([
190
+ class: W([
191
191
  "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-[400px] flex items-center gap-1 transition-opacity",
192
192
  e.loading && "opacity-80"
193
193
  ])
194
194
  }, {
195
- default: I(() => [
196
- a.leftIcon ? (D(), h(n, {
195
+ default: M(() => [
196
+ a.leftIcon ? (g(), v(n, {
197
197
  key: 0,
198
198
  name: e.leftIcon,
199
199
  size: "sm",
200
200
  outline: "",
201
201
  class: "flex-none"
202
202
  }, null, 8, ["name"])) : x("", !0),
203
- w("div", ce, [
204
- w("span", ue, W(e.label), 1),
205
- a.rightIcon ? (D(), h(n, {
203
+ w("div", ue, [
204
+ w("span", se, X(e.label), 1),
205
+ a.rightIcon ? (g(), v(n, {
206
206
  key: 0,
207
207
  name: a.rightIcon,
208
208
  size: "sm",
209
209
  outline: "",
210
210
  class: "flex-none"
211
211
  }, null, 8, ["name"])) : x("", !0),
212
- w("span", se, [
213
- X(t.$slots, "default")
212
+ w("span", de, [
213
+ q(t.$slots, "default")
214
214
  ]),
215
- e.loading ? (D(), h(l, {
215
+ e.loading ? (g(), v(l, {
216
216
  key: 1,
217
217
  size: "md",
218
218
  class: "flex-none scale-75"
219
- })) : a.trailingIcon ? (D(), h(n, {
219
+ })) : a.trailingIcon ? (g(), v(n, {
220
220
  key: 2,
221
221
  name: a.trailingIcon,
222
222
  size: "sm",
@@ -229,16 +229,16 @@ const ce = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
229
229
  }, 8, ["aria-busy", "class"]);
230
230
  };
231
231
  }
232
- }), de = { class: "flex gap-2 items-center" }, p = "YYYY-MM-DD", xe = /* @__PURE__ */ O({
232
+ }), me = { class: "flex gap-2 items-center" }, O = "YYYY-MM-DD", Se = /* @__PURE__ */ U({
233
233
  __name: "DateRangeSelect",
234
- props: /* @__PURE__ */ M({
234
+ props: /* @__PURE__ */ I({
235
235
  compare: {
236
236
  type: Boolean,
237
237
  default: !1
238
238
  },
239
239
  datePredefinedRanges: {
240
240
  type: Array,
241
- default: () => H()
241
+ default: () => K()
242
242
  },
243
243
  label: {
244
244
  type: String,
@@ -253,7 +253,7 @@ const ce = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
253
253
  }, {
254
254
  compareType: {
255
255
  type: String,
256
- default: K.PRECEDING_PERIOD
256
+ default: J.PRECEDING_PERIOD
257
257
  },
258
258
  compareTypeModifiers: {},
259
259
  dateRange: {
@@ -273,86 +273,90 @@ const ce = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
273
273
  },
274
274
  compareDateRangeModifiers: {}
275
275
  }),
276
- emits: /* @__PURE__ */ M(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
276
+ emits: /* @__PURE__ */ I(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
277
277
  setup(a, { emit: e }) {
278
- const { t, locale: r } = J(), n = e, l = E(a, "compareType"), c = E(a, "dateRange"), s = E(a, "compareDateRange"), { timezone: o } = Q(G()), d = P({
279
- startDate: c.value.startDate ? u(c.value.startDate).format(p) : null,
280
- endDate: c.value.endDate ? u(c.value.endDate).format(p) : null
281
- }), g = P({
282
- startDate: s.value.startDate ? u(s.value.startDate).format(p) : null,
283
- endDate: s.value.endDate ? u(s.value.endDate).format(p) : null
278
+ const { t, locale: r } = Q();
279
+ function n(u) {
280
+ return u ? u.includes("T") ? s(u).tz(y.value).format(O) : s(u).format(O) : null;
281
+ }
282
+ const l = e, c = E(a, "compareType"), d = E(a, "dateRange"), m = E(a, "compareDateRange"), { timezone: y } = Z(H()), f = P({
283
+ startDate: n(d.value.startDate),
284
+ endDate: n(d.value.endDate)
285
+ }), h = P({
286
+ startDate: m.value.startDate ? n(m.value.startDate) : null,
287
+ endDate: m.value.endDate ? n(m.value.endDate) : null
284
288
  });
285
289
  $(
286
- [() => d.value],
290
+ [() => f.value],
287
291
  () => {
288
- d.value.endDate || (d.value.endDate = d.value.startDate);
289
- const f = {
290
- startDate: u.tz(d.value.startDate, o.value).startOf("day").utc().toISOString(),
291
- endDate: u.tz(d.value.endDate, o.value).endOf("day").utc().toISOString()
292
+ f.value.endDate || (f.value.endDate = f.value.startDate);
293
+ const u = {
294
+ startDate: s.tz(f.value.startDate, y.value).startOf("day").utc().toISOString(),
295
+ endDate: s.tz(f.value.endDate, y.value).endOf("day").utc().toISOString()
292
296
  };
293
- c.value = f, n("update", f);
297
+ d.value = u, l("update", u);
294
298
  },
295
299
  { deep: !0 }
296
- ), $([() => g.value], () => {
297
- const f = g.value.startDate, m = g.value.endDate, R = f ? u(
298
- f instanceof Date ? f : u(f).toDate()
299
- ).startOf("day").tz(o.value, !0).toISOString() : void 0, i = m ? u(m instanceof Date ? m : u(m).toDate()).tz(o.value, !0).endOf("day").toISOString() : void 0;
300
- s.value = {
301
- startDate: R,
300
+ ), $([() => h.value], () => {
301
+ const u = h.value.startDate, o = h.value.endDate, p = u ? s(
302
+ u instanceof Date ? u : s(u).toDate()
303
+ ).startOf("day").tz(y.value, !0).toISOString() : void 0, i = o ? s(o instanceof Date ? o : s(o).toDate()).tz(y.value, !0).endOf("day").toISOString() : void 0;
304
+ m.value = {
305
+ startDate: p,
302
306
  endDate: i
303
307
  };
304
308
  });
305
- function N(f) {
306
- l.value = f;
309
+ function V(u) {
310
+ c.value = u;
307
311
  }
308
- function V(f) {
309
- n("chip-closed", f);
312
+ function B(u) {
313
+ l("chip-closed", u);
310
314
  }
311
- return (f, m) => {
312
- const R = C("FmSimpleDateRangePicker");
313
- return D(), q("div", de, [
314
- (D(), h(R, {
315
- key: `date-picker-${y(r)}`,
316
- modelValue: d.value,
317
- "onUpdate:modelValue": m[1] || (m[1] = (i) => d.value = i),
315
+ return (u, o) => {
316
+ const p = C("FmSimpleDateRangePicker");
317
+ return g(), G("div", me, [
318
+ (g(), v(p, {
319
+ key: `date-picker-${D(r)}`,
320
+ modelValue: f.value,
321
+ "onUpdate:modelValue": o[1] || (o[1] = (i) => f.value = i),
318
322
  "show-predefined-range": "",
319
323
  "predefined-range": a.datePredefinedRanges.map((i) => ({
320
324
  ...i,
321
- label: y(t)(`report.date.${i.label}`)
325
+ label: D(t)(`report.date.${i.label}`)
322
326
  })),
323
327
  class: "w-2/6"
324
328
  }, {
325
- "trigger-button": I(() => [
329
+ "trigger-button": M(() => [
326
330
  A(z, {
327
331
  "left-icon": a.label ? "filter_alt" : "calendar_month",
328
- label: a.label ?? y(_)({
329
- startDate: d.value.startDate ?? "",
330
- endDate: d.value.endDate ?? "",
331
- locale: y(L)()
332
+ label: a.label ?? D(_)({
333
+ startDate: f.value.startDate ?? "",
334
+ endDate: f.value.endDate ?? "",
335
+ locale: D(L)()
332
336
  }),
333
337
  removable: a.removable,
334
- onChipClosed: m[0] || (m[0] = (i) => V(!0))
338
+ onChipClosed: o[0] || (o[0] = (i) => B(!0))
335
339
  }, null, 8, ["left-icon", "label", "removable"])
336
340
  ]),
337
341
  _: 1
338
342
  }, 8, ["modelValue", "predefined-range"])),
339
- a.compare ? (D(), h(R, {
340
- key: `compare-date-picker-${y(r)}`,
341
- modelValue: g.value,
342
- "onUpdate:modelValue": m[2] || (m[2] = (i) => g.value = i),
343
- "compare-type": l.value,
344
- "onUpdate:compareType": m[3] || (m[3] = (i) => l.value = i),
343
+ a.compare ? (g(), v(p, {
344
+ key: `compare-date-picker-${D(r)}`,
345
+ modelValue: h.value,
346
+ "onUpdate:modelValue": o[2] || (o[2] = (i) => h.value = i),
347
+ "compare-type": c.value,
348
+ "onUpdate:compareType": o[3] || (o[3] = (i) => c.value = i),
345
349
  "show-predefined-range": "",
346
- "compare-target": d.value,
347
- "default-compare-type": l.value,
348
- onSelectComparison: N
350
+ "compare-target": f.value,
351
+ "default-compare-type": c.value,
352
+ onSelectComparison: V
349
353
  }, {
350
- "trigger-button": I(() => [
354
+ "trigger-button": M(() => [
351
355
  A(z, {
352
- label: `${y(t)("report.common.compare")}: ${y(_)({
353
- startDate: g.value.startDate ?? null,
354
- endDate: g.value.endDate ?? null,
355
- locale: y(L)()
356
+ label: `${D(t)("report.common.compare")}: ${D(_)({
357
+ startDate: h.value.startDate ?? null,
358
+ endDate: h.value.endDate ?? null,
359
+ locale: D(L)()
356
360
  })}`
357
361
  }, null, 8, ["label"])
358
362
  ]),
@@ -363,17 +367,17 @@ const ce = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
363
367
  }
364
368
  });
365
369
  export {
366
- v as C,
367
- xe as _,
368
- De as a,
369
- le as b,
370
- he as c,
371
- Re as d,
372
- pe as e,
370
+ R as C,
371
+ Se as _,
372
+ ge as a,
373
+ ne as b,
374
+ ve as c,
375
+ pe as d,
376
+ Ce as e,
373
377
  z as f,
374
- ne as g,
375
- Ce as h,
378
+ ce as g,
379
+ xe as h,
376
380
  _ as i,
377
- ge as p,
378
- ve as s
381
+ he as p,
382
+ Re as s
379
383
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CgUtDgUA.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-YP0CF-o8.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
5
  import { u as q, a as w } from "./vue-i18n-DVWuTfed.js";