@feedmepos/mf-report 5.21.32-beta.0 → 5.21.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/{App-Dt-92wZ8.js → App-BVPfeKM1.js} +39 -39
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DAMmyGrz.js → BaseDialog.vue_vue_type_script_setup_true_lang-BNTtoXSl.js} +3 -3
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DNyvFLmW.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Cg6ChdaG.js} +87 -87
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-CplloCd_.js → Default.vue_vue_type_script_setup_true_lang-BlAfWU6A.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DFq3XZaz.js → FilterSelector.vue_vue_type_script_setup_true_lang-DpUWWlZ7.js} +956 -957
  6. package/dist/{InsightView-UU3-ImPQ.js → InsightView-D0FQmOAa.js} +5 -5
  7. package/dist/{Integration-Xi1LTYf-.js → Integration-DUauFkbS.js} +2 -2
  8. package/dist/{Integrations-BQT5pOBg.js → Integrations-BPvh4SIF.js} +3 -3
  9. package/dist/{Layout-CNiBgt9l.js → Layout-DG-JKjLP.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D9E1VaGD.js → MenuTab.vue_vue_type_script_setup_true_lang-BHrs_LW4.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CW9JyERM.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cl2n4jUd.js} +4647 -4584
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-9qsPvAZJ.js → NoData.vue_vue_type_script_setup_true_lang-BRz75rkR.js} +1 -1
  13. package/dist/{OverviewView-D6vrAFxn.js → OverviewView-DUqScbfn.js} +5 -5
  14. package/dist/{Report-CVKEj6GK.js → Report-DYicrOSm.js} +4 -4
  15. package/dist/{ReportEditor-DScdRzRS.js → ReportEditor-D7GGcHre.js} +6 -6
  16. package/dist/{ReportView-DzfhCQAY.js → ReportView-BzZR7ZLF.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BzzBdgnw.js → SelectComponent.vue_vue_type_script_setup_true_lang-BXZkFRRh.js} +1 -1
  18. package/dist/{Setting-BILxYMDl.js → Setting-BCyliq0w.js} +4 -4
  19. package/dist/{TileEditor-DGzf9fJF.js → TileEditor-DB6cd_RH.js} +7 -7
  20. package/dist/{TransitionFade-DOpPb4j5.js → TransitionFade-B-yJvnSS.js} +5 -5
  21. package/dist/app.js +20 -12
  22. package/dist/{vue-i18n-BdbYuMnB.js → vue-i18n-D4W4y-_2.js} +2151 -2219
  23. package/package.json +1 -1
@@ -1,37 +1,37 @@
1
- import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as Oe, withCtx as z, createElementVNode as M, createVNode as W, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as A, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as Q, Fragment as ke } from "vue";
2
- import { detectLocale as N, useCoreStore as j } from "@feedmepos/mf-common";
3
- import { u as Ae, d as u, a as Ne, b as ne, c as Te, e as Be, f as Fe, s as $e, g as xe } from "./vue-i18n-BdbYuMnB.js";
1
+ import { defineComponent as se, resolveComponent as V, createBlock as ie, openBlock as R, unref as c, isRef as be, withCtx as j, createElementVNode as M, createVNode as P, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as A, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as z, Fragment as ke } from "vue";
2
+ import { detectLocale as N, useCoreStore as Q } from "@feedmepos/mf-common";
3
+ import { u as Ae, d as u, a as Ne, b as ne, c as Te, e as Be, f as Fe, s as $e, g as xe } from "./vue-i18n-D4W4y-_2.js";
4
4
  import { storeToRefs as L } from "pinia";
5
- import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DAMmyGrz.js";
6
- import { u as ze, _ as Qe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CW9JyERM.js";
5
+ import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BNTtoXSl.js";
6
+ import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cl2n4jUd.js";
7
7
  import { u as ae } from "./message-dialog-UoMWOnil.js";
8
- import { useRoute as je, useRouter as Ve } from "vue-router";
9
- const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe = /* @__PURE__ */ se({
8
+ import { useRoute as Qe, useRouter as Ve } from "vue-router";
9
+ const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge = /* @__PURE__ */ se({
10
10
  __name: "Dialog",
11
11
  setup(_) {
12
12
  const { t: i } = Ae(), l = ae(), { isOpened: d, message: S, title: D } = L(ae());
13
13
  return (f, g) => {
14
- const b = V("FmButton"), T = V("FmDialog");
14
+ const O = V("FmButton"), T = V("FmDialog");
15
15
  return R(), ie(T, {
16
16
  modelValue: c(d),
17
- "onUpdate:modelValue": g[0] || (g[0] = (B) => Oe(d) ? d.value = B : null),
17
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => be(d) ? d.value = B : null),
18
18
  overlay: "",
19
19
  "close-button": !1
20
20
  }, {
21
- "dialog-header": z(() => [
21
+ "dialog-header": j(() => [
22
22
  we(ee(c(D)), 1)
23
23
  ]),
24
- default: z(() => [
25
- M("p", We, ee(c(S)), 1)
24
+ default: j(() => [
25
+ M("p", Pe, ee(c(S)), 1)
26
26
  ]),
27
- "dialog-footer": z(() => [
27
+ "dialog-footer": j(() => [
28
28
  g[1] || (g[1] = M("div", { class: "grow" }, null, -1)),
29
- W(b, {
29
+ P(O, {
30
30
  label: c(i)("report.common.cancel"),
31
31
  variant: "tertiary",
32
32
  onClick: c(l).dismiss
33
33
  }, null, 8, ["label", "onClick"]),
34
- W(b, {
34
+ P(O, {
35
35
  label: c(i)("report.common.confirm"),
36
36
  onClick: c(l).confirm
37
37
  }, null, 8, ["label", "onClick"])
@@ -41,7 +41,7 @@ const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe
41
41
  };
42
42
  }
43
43
  }), oe = A(N());
44
- function Ge() {
44
+ function We() {
45
45
  const _ = (i) => {
46
46
  switch (oe.value = i, i) {
47
47
  case "zh-CN":
@@ -59,10 +59,10 @@ function Ge() {
59
59
  };
60
60
  }
61
61
  u.locale(N() === "zh-CN" ? "zh-cn" : "en");
62
- const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
62
+ const He = ["src"], Ke = ["src"], it = /* @__PURE__ */ se({
63
63
  __name: "App",
64
64
  setup(_) {
65
- const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: f, registerSidebarComponent: g } = j(), { getRestaurantAndWarehouse: b, getBusinessSetting: T, beginBusinessLoad: B, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: m } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = je(), F = Ve(), h = Je(), P = ze(), r = ne(), me = re(), { suppressReportRouteSync: O } = L(me), pe = te(() => `https://portal-v1.feedmedev.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${d.value.toUpperCase()}&menuOption=business-report&token=${l.value}&v2=true&reportV5Button=true`), ge = te(() => `https://report-v4.feedmedev.cc?businessId=${i.value}&country=${d.value}&token=${l.value}&reportV3Button=true`);
65
+ const { businessId: i, token: l, country: d } = L(Ne()), { sessionUser: S, currentBusiness: D, currentCountry: f, registerSidebarComponent: g } = Q(), { getRestaurantAndWarehouse: O, getBusinessSetting: T, beginBusinessLoad: B, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: m } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = Qe(), F = Ve(), h = Je(), G = je(), r = ne(), me = re(), { suppressReportRouteSync: b } = L(me), pe = te(() => `https://portal-v1.feedme.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${d.value.toUpperCase()}&menuOption=business-report&token=${l.value}&v2=true&reportV5Button=true`), ge = te(() => `https://report-v4.feedme.cc?businessId=${i.value}&country=${d.value}&token=${l.value}&reportV3Button=true`);
66
66
  q(
67
67
  [() => D.value, () => S.value, () => f.value],
68
68
  () => {
@@ -86,7 +86,7 @@ const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
86
86
  },
87
87
  { immediate: !0 }
88
88
  );
89
- function G(e) {
89
+ function W(e) {
90
90
  if (typeof e.data == "string")
91
91
  try {
92
92
  const t = JSON.parse(e.data);
@@ -95,7 +95,7 @@ const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
95
95
  console.error(t);
96
96
  }
97
97
  }
98
- function K(e) {
98
+ function H(e) {
99
99
  if (typeof e.data == "string")
100
100
  try {
101
101
  const t = JSON.parse(e.data);
@@ -105,15 +105,15 @@ const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
105
105
  }
106
106
  }
107
107
  q(m, () => {
108
- ["v3", "v4"].includes(m.value) ? j().hideSidebarToggle(!0) : j().hideSidebarToggle(!1);
108
+ ["v3", "v4"].includes(m.value) ? Q().hideSidebarToggle(!0) : Q().hideSidebarToggle(!1);
109
109
  }), Ce(() => {
110
- g(Qe);
110
+ g(ze);
111
111
  }), ue(() => {
112
- console.log("5.21.32-beta.0", !0), window.addEventListener("message", G), window.addEventListener("message", K);
112
+ console.log("5.21.32", !0), window.addEventListener("message", W), window.addEventListener("message", H);
113
113
  }), Ee(() => {
114
- window.removeEventListener("message", G), window.removeEventListener("message", K), h.$dispose(), P.$dispose();
114
+ window.removeEventListener("message", W), window.removeEventListener("message", H), h.$dispose(), G.$dispose();
115
115
  });
116
- const { getReports: ye, getOverviewReport: ve, getReportConfig: H, currentReportId: X } = h, { currentReportId: Se, reports: De } = L(h), { getSchema: he } = Ue(), { fetchSchedules: Ie } = P, { init: Re } = xe(), $ = A("v5"), w = A(!1), x = A(!0);
116
+ const { getReports: ye, getOverviewReport: ve, getReportConfig: K, currentReportId: X } = h, { currentReportId: Se, reports: De } = L(h), { getSchema: he } = Ue(), { fetchSchedules: Ie } = G, { init: Re } = xe(), $ = A("v5"), w = A(!1), x = A(!0);
117
117
  function qe(e) {
118
118
  try {
119
119
  return decodeURIComponent(e);
@@ -169,7 +169,7 @@ const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
169
169
  }
170
170
  if (!Z && Array.isArray(y)) {
171
171
  const o = r.selectedLocationIds;
172
- o.length === y.length && o.every((_e, be) => _e === y[be]) || r.setSelectedLocationIds(y);
172
+ o.length === y.length && o.every((_e, Oe) => _e === y[Oe]) || r.setSelectedLocationIds(y);
173
173
  }
174
174
  return {
175
175
  // TODO: this returned value can used for getBusinessSetting
@@ -195,22 +195,22 @@ const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
195
195
  locationIds: void 0,
196
196
  isAllLocation: "true"
197
197
  }
198
- })), O.value !== void 0 && (O.value = !0), await fe(async () => {
198
+ })), b.value !== void 0 && (b.value = !0), await fe(async () => {
199
199
  await Re({
200
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
200
+ apiKey: "6GhcttsJ9Rj9cTevcdrpin",
201
201
  url: "https://flag.feedme.farm/api/v1/",
202
202
  enableAnalytics: !1,
203
203
  cacheFlags: !1
204
204
  });
205
- const t = await H();
205
+ const t = await K();
206
206
  $.value = t.version, m.value = $.value, await Promise.all([
207
207
  de(),
208
- H(),
208
+ K(),
209
209
  ve(),
210
210
  ye(),
211
211
  he(),
212
212
  Ie(),
213
- b(
213
+ O(
214
214
  (() => {
215
215
  const a = C(n.query.locationIds);
216
216
  return Array.isArray(a) ? a : void 0;
@@ -233,8 +233,8 @@ const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
233
233
  }),
234
234
  (e) => {
235
235
  if (!w.value || !e.reportId) return;
236
- if (O.value) {
237
- O.value = !1;
236
+ if (b.value) {
237
+ b.value = !1;
238
238
  return;
239
239
  }
240
240
  const t = e.selectedLocationIds, a = e.dateRange, s = e.timeRange, p = e.compareDateRange, I = {
@@ -256,19 +256,19 @@ const Ke = ["src"], He = ["src"], it = /* @__PURE__ */ se({
256
256
  });
257
257
  },
258
258
  { deep: !0 }
259
- ), Ge(), (e, t) => {
259
+ ), We(), (e, t) => {
260
260
  const a = V("router-view");
261
- return R(), Q(ke, null, [
262
- W(Pe),
263
- c(m) === "v3" ? (R(), Q("iframe", {
261
+ return R(), z(ke, null, [
262
+ P(Ge),
263
+ c(m) === "v3" ? (R(), z("iframe", {
264
264
  key: 0,
265
265
  class: "bg-white h-full w-full",
266
266
  src: pe.value
267
- }, null, 8, Ke)) : c(m) === "v4" ? (R(), Q("iframe", {
267
+ }, null, 8, He)) : c(m) === "v4" ? (R(), z("iframe", {
268
268
  key: 1,
269
269
  class: "bg-white h-full w-full",
270
270
  src: ge.value
271
- }, null, 8, He)) : (R(), ie(a, { key: 2 }))
271
+ }, null, 8, Ke)) : (R(), ie(a, { key: 2 }))
272
272
  ], 64);
273
273
  };
274
274
  }
@@ -1,10 +1,10 @@
1
- import { a as m0, F as y0, w as g0, b as k0, c as Ce, v as be, e as Fe, d as h0, r as K0, m as Ie, u as Me } from "./vue-i18n-BdbYuMnB.js";
1
+ import { a as m0, F as y0, v as g0, b as k0, c as Ce, t as be, e as Fe, d as h0, r as K0, m as Ie, u as Me } from "./vue-i18n-D4W4y-_2.js";
2
2
  import { storeToRefs as p0, defineStore as B0 } from "pinia";
3
3
  import { ref as s0, computed as C0, watch as U0, h as Re, defineComponent as _e, mergeModels as N0, useModel as z0, resolveComponent as A0, createElementBlock as V0, openBlock as P0, createVNode as S0, withCtx as b0, createElementVNode as E0, createCommentVNode as xe, Fragment as re, renderList as Le, createBlock as De, createTextVNode as de, withDirectives as Oe, toDisplayString as T0, unref as $0, vShow as we, renderSlot as ve } from "vue";
4
4
  import { useSnackbar as ce, components as Pe } from "@feedmepos/ui-library";
5
5
  import { useRouter as Be } from "vue-router";
6
6
  import { detectLocale as F0 } from "@feedmepos/mf-common";
7
- import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DNyvFLmW.js";
7
+ import { c as Je, a as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cg6ChdaG.js";
8
8
  function pe(T) {
9
9
  throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
10
10
  }
@@ -20051,7 +20051,7 @@ const Gt = async ({
20051
20051
  });
20052
20052
  };
20053
20053
  function se(T = [], R = []) {
20054
- const O = (J) => `${J.schemaName}:${J.name}:${J.operator}`, H = /* @__PURE__ */ new Map(), B = [];
20054
+ const O = (J) => `${J.schemaName}:${J.name}:${J.operator}:${J.option ?? ""}:${J.dataFormula ?? ""}`, H = /* @__PURE__ */ new Map(), B = [];
20055
20055
  for (const J of T) {
20056
20056
  if (!J || !Array.isArray(J.values) || J.values.length === 0) continue;
20057
20057
  if (J.option === W0.DateTime || J.operator === j0.Between) {
@@ -1,16 +1,16 @@
1
- import { defineComponent as E, resolveComponent as S, createBlock as y, openBlock as D, withCtx as I, createCommentVNode as M, createElementVNode as R, toDisplayString as A, renderSlot as U, mergeModels as C, useModel as b, ref as k, watch as O, createElementBlock as B, unref as f, createVNode as z } from "vue";
2
- import { d as r, m as W, t as q, u as G, b as H, U as K, C as L } from "./vue-i18n-BdbYuMnB.js";
1
+ import { defineComponent as P, resolveComponent as S, createBlock as p, openBlock as y, withCtx as z, createCommentVNode as M, createElementVNode as R, toDisplayString as A, renderSlot as B, mergeModels as C, useModel as b, ref as k, watch as x, createElementBlock as U, unref as f, createVNode as O } from "vue";
2
+ import { d as l, u as W, b as q, T as G, C as H } from "./vue-i18n-D4W4y-_2.js";
3
3
  import { detectLocale as F } from "@feedmepos/mf-common";
4
- import { storeToRefs as J } from "pinia";
4
+ import { storeToRefs as K } from "pinia";
5
5
  var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {});
6
- function le(e, t = 100) {
6
+ function ne(e, t = 100) {
7
7
  let n = null;
8
8
  const a = function(...o) {
9
- return n && clearTimeout(n), new Promise((l) => {
9
+ return n && clearTimeout(n), new Promise((r) => {
10
10
  n = setTimeout(() => {
11
11
  n = null;
12
12
  const m = e(...o);
13
- l(m);
13
+ r(m);
14
14
  }, t);
15
15
  });
16
16
  };
@@ -18,10 +18,10 @@ function le(e, t = 100) {
18
18
  n && (clearTimeout(n), n = null);
19
19
  }, a;
20
20
  }
21
- function Q() {
22
- return [...Array(12).keys()].map((e) => r().month(e).format("MMM"));
21
+ function L() {
22
+ return [...Array(12).keys()].map((e) => l().month(e).format("MMM"));
23
23
  }
24
- function oe(e, t, n = "") {
24
+ function le(e, t, n = "") {
25
25
  switch (e.type) {
26
26
  case v.Day:
27
27
  return t("report.schedule.everyDay");
@@ -37,8 +37,8 @@ function oe(e, t, n = "") {
37
37
  t("report.days.saturday")
38
38
  ];
39
39
  if (e.days)
40
- for (let l = 0; l < e.days.length; l++)
41
- a = a + o[e.days[l]] + (l !== e.days.length - 1 ? "," : "");
40
+ for (let r = 0; r < e.days.length; r++)
41
+ a = a + o[e.days[r]] + (r !== e.days.length - 1 ? "," : "");
42
42
  return a;
43
43
  }
44
44
  case v.Month: {
@@ -50,8 +50,8 @@ function oe(e, t, n = "") {
50
50
  return t("report.schedule.customDate");
51
51
  let a = `${t("report.schedule.everyYear")} `;
52
52
  if (e.months) {
53
- const o = Q();
54
- a = a + e.months.map((l) => o[l - 1]).join(",");
53
+ const o = L();
54
+ a = a + e.months.map((r) => o[r - 1]).join(",");
55
55
  }
56
56
  return e.months && e.days && (a = a + ` ${t("report.common.and")} `), e.days && (a = a + e.days.join(",")), a;
57
57
  }
@@ -59,27 +59,28 @@ function oe(e, t, n = "") {
59
59
  return n;
60
60
  }
61
61
  }
62
- function P(e = {
62
+ function V(e = {
63
63
  startDate: null,
64
64
  endDate: null,
65
- locale: "en-US"
65
+ locale: "en-US",
66
+ timezone: void 0
66
67
  }) {
67
68
  if (!e.startDate || !e.endDate)
68
69
  return "No comparison";
69
- let t = r().subtract(1, "day").endOf("day"), n = r().endOf("day");
70
- return e.startDate && (t = r(e.startDate).locale(e.locale)), e.endDate && (n = r(e.endDate).locale(e.locale)), t.format("YYYY") !== n.format("YYYY") ? `${t.format("DD MMM YYYY")} - ${n.format("DD MMM YYYY")}` : `${t.format("DD MMM")} - ${n.format("DD MMM YYYY")}`;
70
+ let t = l().subtract(1, "day").endOf("day"), n = l().endOf("day");
71
+ return e.startDate && (t = e.timezone ? l(e.startDate).tz(e.timezone).locale(e.locale) : l(e.startDate).locale(e.locale)), e.endDate && (n = e.timezone ? l(e.endDate).tz(e.timezone).locale(e.locale) : l(e.endDate).locale(e.locale)), t.format("YYYY") !== n.format("YYYY") ? `${t.format("DD MMM YYYY")} - ${n.format("DD MMM YYYY")}` : `${t.format("DD MMM")} - ${n.format("DD MMM YYYY")}`;
71
72
  }
72
- function se(e = {
73
+ function re(e = {
73
74
  startTime: null,
74
75
  endTime: null,
75
76
  locale: "en-US"
76
77
  }) {
77
78
  const t = "hh:mmA", { startTime: n, endTime: a, locale: o } = e;
78
79
  if (!n || !a) return "";
79
- const l = r().set("hour", n.hour).set("minute", n.minute).locale(o), m = r().set("hour", a.hour).set("minute", a.minute).locale(o);
80
- return `${l.format(t)}-${m.format(t)}`;
80
+ const r = l().set("hour", n.hour).set("minute", n.minute).locale(o), m = l().set("hour", a.hour).set("minute", a.minute).locale(o);
81
+ return `${r.format(t)}-${m.format(t)}`;
81
82
  }
82
- const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, Z = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, _ = { class: "whitespace-nowrap flex-none" }, V = /* @__PURE__ */ E({
83
+ const J = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, Q = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, X = { class: "whitespace-nowrap flex-none" }, E = /* @__PURE__ */ P({
83
84
  __name: "FilterChip",
84
85
  props: {
85
86
  label: {
@@ -102,29 +103,29 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
102
103
  setup(e) {
103
104
  const t = e;
104
105
  return (n, a) => {
105
- const o = S("FmIcon"), l = S("FmChip");
106
- return D(), y(l, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit flex items-center gap-1" }, {
107
- default: I(() => [
108
- e.leftIcon ? (D(), y(o, {
106
+ const o = S("FmIcon"), r = S("FmChip");
107
+ return y(), p(r, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit flex items-center gap-1" }, {
108
+ default: z(() => [
109
+ e.leftIcon ? (y(), p(o, {
109
110
  key: 0,
110
111
  name: t.leftIcon,
111
112
  size: "sm",
112
113
  outline: "",
113
114
  class: "flex-none"
114
115
  }, null, 8, ["name"])) : M("", !0),
115
- R("div", X, [
116
- R("span", Z, A(t.label), 1),
117
- e.rightIcon ? (D(), y(o, {
116
+ R("div", J, [
117
+ R("span", Q, A(t.label), 1),
118
+ e.rightIcon ? (y(), p(o, {
118
119
  key: 0,
119
120
  name: e.rightIcon,
120
121
  size: "sm",
121
122
  outline: "",
122
123
  class: "flex-none"
123
124
  }, null, 8, ["name"])) : M("", !0),
124
- R("span", _, [
125
- U(n.$slots, "default")
125
+ R("span", X, [
126
+ B(n.$slots, "default")
126
127
  ]),
127
- e.trailingIcon ? (D(), y(o, {
128
+ e.trailingIcon ? (y(), p(o, {
128
129
  key: 1,
129
130
  name: e.trailingIcon,
130
131
  size: "sm",
@@ -137,7 +138,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
137
138
  });
138
139
  };
139
140
  }
140
- }), ee = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", de = /* @__PURE__ */ E({
141
+ }), Z = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", oe = /* @__PURE__ */ P({
141
142
  __name: "DateRangeSelect",
142
143
  props: /* @__PURE__ */ C({
143
144
  compare: {
@@ -146,7 +147,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
146
147
  },
147
148
  datePredefinedRanges: {
148
149
  type: Array,
149
- default: () => K()
150
+ default: () => G()
150
151
  },
151
152
  label: {
152
153
  type: String,
@@ -161,7 +162,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
161
162
  }, {
162
163
  compareType: {
163
164
  type: String,
164
- default: L.PRECEDING_PERIOD
165
+ default: H.PRECEDING_PERIOD
165
166
  },
166
167
  compareTypeModifiers: {},
167
168
  dateRange: {
@@ -183,48 +184,47 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
183
184
  }),
184
185
  emits: /* @__PURE__ */ C(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
185
186
  setup(e, { emit: t }) {
186
- var $, T, w, x;
187
- r.extend(W), r.extend(q);
188
- const { t: n, locale: a } = G(), o = t, l = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = J(H()), u = k({
189
- startDate: m.value.startDate ? ($ = r(m.value.startDate)) == null ? void 0 : $.tz(i.value).format(Y) : null,
190
- endDate: m.value.endDate ? (T = r(m.value.endDate)) == null ? void 0 : T.tz(i.value).format(Y) : null
191
- }), p = k({
192
- startDate: g.value.startDate ? (w = r(g.value.startDate)) == null ? void 0 : w.tz(i.value).format(Y) : null,
193
- endDate: g.value.endDate ? (x = r(g.value.endDate)) == null ? void 0 : x.tz(i.value).format(Y) : null
187
+ var I, T, $, w;
188
+ const { t: n, locale: a } = W(), o = t, r = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = K(q()), s = k({
189
+ startDate: m.value.startDate ? (I = l(m.value.startDate)) == null ? void 0 : I.tz(i.value).format(Y) : null,
190
+ endDate: m.value.endDate ? (T = l(m.value.endDate)) == null ? void 0 : T.tz(i.value).format(Y) : null
191
+ }), D = k({
192
+ startDate: g.value.startDate ? ($ = l(g.value.startDate)) == null ? void 0 : $.tz(i.value).format(Y) : null,
193
+ endDate: g.value.endDate ? (w = l(g.value.endDate)) == null ? void 0 : w.tz(i.value).format(Y) : null
194
194
  });
195
- O(
196
- [() => u.value],
195
+ x(
196
+ [() => s.value],
197
197
  () => {
198
- u.value.endDate || (u.value.endDate = u.value.startDate);
199
- const d = {
200
- startDate: r.tz(u.value.startDate, i.value).startOf("day").utc().toISOString(),
201
- endDate: r.tz(u.value.endDate, i.value).endOf("day").utc().toISOString()
198
+ s.value.endDate || (s.value.endDate = s.value.startDate);
199
+ const u = {
200
+ startDate: l.tz(s.value.startDate, i.value).startOf("day").utc().toISOString(),
201
+ endDate: l.tz(s.value.endDate, i.value).endOf("day").utc().toISOString()
202
202
  };
203
- m.value = d, o("update", d);
203
+ m.value = u, o("update", u);
204
204
  },
205
205
  { deep: !0 }
206
- ), O([() => p.value], () => {
207
- const d = p.value.startDate, s = p.value.endDate, h = d ? r(
208
- d instanceof Date ? d : r(d).toDate()
209
- ).startOf("day").tz(i.value, !0).toISOString() : void 0, c = s ? r(s instanceof Date ? s : r(s).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
206
+ ), x([() => D.value], () => {
207
+ const u = D.value.startDate, d = D.value.endDate, h = u ? l(
208
+ u instanceof Date ? u : l(u).toDate()
209
+ ).startOf("day").tz(i.value, !0).toISOString() : void 0, c = d ? l(d instanceof Date ? d : l(d).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
210
210
  g.value = {
211
211
  startDate: h,
212
212
  endDate: c
213
213
  };
214
214
  });
215
- function N(d) {
216
- l.value = d;
215
+ function N(u) {
216
+ r.value = u;
217
217
  }
218
- function j(d) {
219
- o("chip-closed", d);
218
+ function j(u) {
219
+ o("chip-closed", u);
220
220
  }
221
- return (d, s) => {
221
+ return (u, d) => {
222
222
  const h = S("FmSimpleDateRangePicker");
223
- return D(), B("div", ee, [
224
- (D(), y(h, {
223
+ return y(), U("div", Z, [
224
+ (y(), p(h, {
225
225
  key: `date-picker-${f(a)}`,
226
- modelValue: u.value,
227
- "onUpdate:modelValue": s[1] || (s[1] = (c) => u.value = c),
226
+ modelValue: s.value,
227
+ "onUpdate:modelValue": d[1] || (d[1] = (c) => s.value = c),
228
228
  "show-predefined-range": "",
229
229
  "predefined-range": e.datePredefinedRanges.map((c) => ({
230
230
  ...c,
@@ -232,36 +232,36 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
232
232
  })),
233
233
  class: "w-2/6"
234
234
  }, {
235
- "trigger-button": I(() => [
236
- z(V, {
235
+ "trigger-button": z(() => [
236
+ O(E, {
237
237
  "left-icon": e.label ? "filter_alt" : "calendar_month",
238
- label: e.label ?? f(P)({
239
- startDate: u.value.startDate ?? "",
240
- endDate: u.value.endDate ?? "",
238
+ label: e.label ?? f(V)({
239
+ startDate: s.value.startDate ?? "",
240
+ endDate: s.value.endDate ?? "",
241
241
  locale: f(F)()
242
242
  }),
243
243
  removable: e.removable,
244
- onChipClosed: s[0] || (s[0] = (c) => j(!0))
244
+ onChipClosed: d[0] || (d[0] = (c) => j(!0))
245
245
  }, null, 8, ["left-icon", "label", "removable"])
246
246
  ]),
247
247
  _: 1
248
248
  }, 8, ["modelValue", "predefined-range"])),
249
- e.compare ? (D(), y(h, {
249
+ e.compare ? (y(), p(h, {
250
250
  key: `compare-date-picker-${f(a)}`,
251
- modelValue: p.value,
252
- "onUpdate:modelValue": s[2] || (s[2] = (c) => p.value = c),
253
- "compare-type": l.value,
254
- "onUpdate:compareType": s[3] || (s[3] = (c) => l.value = c),
251
+ modelValue: D.value,
252
+ "onUpdate:modelValue": d[2] || (d[2] = (c) => D.value = c),
253
+ "compare-type": r.value,
254
+ "onUpdate:compareType": d[3] || (d[3] = (c) => r.value = c),
255
255
  "show-predefined-range": "",
256
- "compare-target": u.value,
257
- "default-compare-type": l.value,
256
+ "compare-target": s.value,
257
+ "default-compare-type": r.value,
258
258
  onSelectComparison: N
259
259
  }, {
260
- "trigger-button": I(() => [
261
- z(V, {
262
- label: `${f(n)("report.common.compare")}: ${f(P)({
263
- startDate: p.value.startDate ?? null,
264
- endDate: p.value.endDate ?? null,
260
+ "trigger-button": z(() => [
261
+ O(E, {
262
+ label: `${f(n)("report.common.compare")}: ${f(V)({
263
+ startDate: D.value.startDate ?? null,
264
+ endDate: D.value.endDate ?? null,
265
265
  locale: f(F)()
266
266
  })}`
267
267
  }, null, 8, ["label"])
@@ -274,11 +274,11 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
274
274
  });
275
275
  export {
276
276
  v as C,
277
- de as _,
278
- V as a,
279
- P as b,
280
- se as c,
281
- le as d,
282
- oe as e,
283
- Q as g
277
+ oe as _,
278
+ E as a,
279
+ V as b,
280
+ re as c,
281
+ ne as d,
282
+ le as e,
283
+ L as g
284
284
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as f, resolveComponent as p, 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-CW9JyERM.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cl2n4jUd.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, f as w } from "./vue-i18n-BdbYuMnB.js";
5
+ import { u as q, f as w } from "./vue-i18n-D4W4y-_2.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,