@feedmepos/mf-report 5.31.1 → 5.31.2-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 (34) hide show
  1. package/dist/{App-Zg9Nkn-X.js → App-BS7p-1_C.js} +110 -110
  2. package/dist/{DateRangeSelect-DlAzWqnp.js → DateRangeSelect-CU1zLhsi.js} +129 -121
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BnkrjWB3.js → Default.vue_vue_type_script_setup_true_lang-BbIP6Sxr.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DWTr59nu.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CzSVopxn.js} +7 -7
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DMIpD0Oo.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-V9SzUzmd.js} +453 -453
  6. package/dist/{InsightView-BveDydBM.js → InsightView-BY5Sgoxt.js} +5 -5
  7. package/dist/{Integration-D5cZHGJP.js → Integration-YOGVHjkr.js} +174 -174
  8. package/dist/{Integrations-CwGuJAUq.js → Integrations-DLn3wHzm.js} +2 -2
  9. package/dist/{Layout-B85IdhpJ.js → Layout-B8HhRlSf.js} +1 -1
  10. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CzZlZnJ1.js → LocationSelect.vue_vue_type_script_setup_true_lang-C2yXmZru.js} +2 -2
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-eRW_ry8V.js → MenuTab.vue_vue_type_script_setup_true_lang-CZFM47wC.js} +5 -5
  12. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-6pkps4_3.js → NavigationTab.vue_vue_type_script_setup_true_lang-BriXZRy-.js} +5 -5
  13. package/dist/{OverviewView-BaxcnLPg.js → OverviewView-B4auEUPK.js} +5 -5
  14. package/dist/{Report-Dl0RVdnn.js → Report-dar8N8tM.js} +3 -3
  15. package/dist/{ReportCanvasView-C2Y4wH4B.js → ReportCanvasView-J-TOAEDk.js} +5 -5
  16. package/dist/{ReportEditor-DEjzoJiJ.js → ReportEditor-GUrAEUjy.js} +7 -7
  17. package/dist/{ReportView-DhNKM2yU.js → ReportView-ok4zqyiS.js} +6 -6
  18. package/dist/{ReportViewRoute-BV9dHygI.js → ReportViewRoute-BcYLz9D0.js} +2 -2
  19. package/dist/{Setting-ClOpXx9i.js → Setting-CW-iwHV7.js} +3 -3
  20. package/dist/{Template-eE7pM1rQ.js → Template-CYnlmr86.js} +3 -3
  21. package/dist/TileEditor-btcTn9w6.js +4183 -0
  22. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-D--qKpZi.js → TilePageStack.vue_vue_type_script_setup_true_lang-Be_qbuOb.js} +2 -2
  23. package/dist/{TransitionFade-Dnsvw7P8.js → TransitionFade-B3zeQDvF.js} +5 -5
  24. package/dist/{app-5-1VploO.js → app-Bw-zsS2R.js} +2337 -2297
  25. package/dist/app.js +1 -1
  26. package/dist/assets/{processTableData.worker-r9RKAQPd.js → formatChartData.worker-UoGYoYc3.js} +30 -42
  27. package/dist/assets/{formatChartData.worker-DcIXAZPX.js → processTableData.worker-DxE4bjxG.js} +33 -45
  28. package/dist/{currency-Da4VuYyM.js → currency-DmsNWBQ3.js} +1 -1
  29. package/dist/{index-DzEFpeJN.js → index-B5Reb-CL.js} +552 -564
  30. package/dist/{report-Zdnz-pse.js → report-CblaE0LI.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/{useRestaurantPermission-CxQKtJOk.js → useRestaurantPermission-BZR1kItv.js} +3 -3
  33. package/package.json +1 -1
  34. package/dist/TileEditor-BApSzqn2.js +0 -4184
@@ -1,11 +1,11 @@
1
- import { defineComponent as te, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as ce, withCtx as U, createCommentVNode as E, createElementVNode as I, toDisplayString as me, renderSlot as fe, mergeModels as K, useModel as z, ref as O, computed as L, watch as M, nextTick as J, onMounted as De, onBeforeUnmount as ye, createElementBlock as pe, unref as Y, createVNode as Q } from "vue";
2
- import { d as u, a as ge, C as P, j as ve } from "./app-5-1VploO.js";
3
- import { detectLocale as X } from "@feedmepos/mf-common";
4
- import { u as he, _ as Ce } from "./_plugin-vue_export-helper-C6QDExPN.js";
5
- import { storeToRefs as be } from "pinia";
6
- import { useSnackbar as Re } from "@feedmepos/ui-library";
7
- var $ = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))($ || {}), Me = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(Me || {});
8
- function ze(e, n = 100) {
1
+ import { defineComponent as ne, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as fe, withCtx as U, createCommentVNode as F, createElementVNode as I, toDisplayString as De, renderSlot as ye, mergeModels as K, useModel as L, ref as P, computed as z, watch as M, nextTick as Z, onMounted as pe, onBeforeUnmount as ve, createElementBlock as ge, unref as $, createVNode as J } from "vue";
2
+ import { d as i, a as he, h as Q, z as X, C as E, k as Ce, t as be } from "./app-Bw-zsS2R.js";
3
+ import { detectLocale as _ } from "@feedmepos/mf-common";
4
+ import { u as Re, _ as Me } from "./_plugin-vue_export-helper-C6QDExPN.js";
5
+ import { storeToRefs as Ye } from "pinia";
6
+ import { useSnackbar as $e } from "@feedmepos/ui-library";
7
+ var S = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(S || {}), Se = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(Se || {});
8
+ function Ne(e, n = 100) {
9
9
  let l = null;
10
10
  const f = function(...D) {
11
11
  return l && clearTimeout(l), new Promise((d) => {
@@ -20,15 +20,15 @@ function ze(e, n = 100) {
20
20
  l && (clearTimeout(l), l = null);
21
21
  }, f;
22
22
  }
23
- function Se() {
24
- return [...Array(12).keys()].map((e) => u().month(e).format("MMM"));
23
+ function Te() {
24
+ return [...Array(12).keys()].map((e) => i().month(e).format("MMM"));
25
25
  }
26
- function Le(e, n, l = "") {
26
+ function Be(e, n, l = "") {
27
27
  const f = (r) => /^[\x00-\x7F]*$/.test(r) ? " " : "", D = (r) => /^每年/.test(r), d = (r) => /^每周|^每週/.test(r), h = (r) => /^每月/.test(r);
28
28
  switch (e.type) {
29
- case $.Day:
29
+ case S.Day:
30
30
  return n("report.schedule.everyDay");
31
- case $.Week: {
31
+ case S.Week: {
32
32
  const r = n("report.schedule.everyWeek"), y = d(r);
33
33
  let s = `${r}${f(r)}`;
34
34
  const p = [
@@ -47,18 +47,18 @@ function Le(e, n, l = "") {
47
47
  }
48
48
  return s;
49
49
  }
50
- case $.Month: {
50
+ case S.Month: {
51
51
  const r = n("report.schedule.everyMonth"), y = h(r);
52
52
  let s = `${r}${f(r)}`;
53
53
  return e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
54
54
  }
55
- case $.Year: {
55
+ case S.Year: {
56
56
  if (!e.months && !e.days)
57
57
  return n("report.schedule.customDate");
58
58
  const r = n("report.schedule.everyYear"), y = D(r);
59
59
  let s = `${r}${y ? " " : f(r)}`;
60
60
  if (e.months) {
61
- const p = Se();
61
+ const p = Te();
62
62
  s = s + e.months.map((m) => p[m - 1]).join(",");
63
63
  }
64
64
  return e.months && e.days && (s = y ? `${s} 的 ` : `${s} ${n("report.common.and")} `), e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
@@ -67,7 +67,7 @@ function Le(e, n, l = "") {
67
67
  return l;
68
68
  }
69
69
  }
70
- function Z(e = {
70
+ function ee(e = {
71
71
  startDate: null,
72
72
  endDate: null,
73
73
  locale: "en-US",
@@ -75,20 +75,20 @@ function Z(e = {
75
75
  }) {
76
76
  if (!e.startDate || !e.endDate)
77
77
  return "No comparison";
78
- let n = u().subtract(1, "day").endOf("day"), l = u().endOf("day");
79
- return e.startDate && (n = e.timezone ? u(e.startDate).tz(e.timezone).locale(e.locale) : u(e.startDate).locale(e.locale)), e.endDate && (l = e.timezone ? u(e.endDate).tz(e.timezone).locale(e.locale) : u(e.endDate).locale(e.locale)), n.format("YYYY") !== l.format("YYYY") ? `${n.format("DD MMM YYYY")} - ${l.format("DD MMM YYYY")}` : `${n.format("DD MMM")} - ${l.format("DD MMM YYYY")}`;
78
+ let n = i().subtract(1, "day").endOf("day"), l = i().endOf("day");
79
+ return e.startDate && (n = e.timezone ? i(e.startDate).tz(e.timezone).locale(e.locale) : i(e.startDate).locale(e.locale)), e.endDate && (l = e.timezone ? i(e.endDate).tz(e.timezone).locale(e.locale) : i(e.endDate).locale(e.locale)), n.format("YYYY") !== l.format("YYYY") ? `${n.format("DD MMM YYYY")} - ${l.format("DD MMM YYYY")}` : `${n.format("DD MMM")} - ${l.format("DD MMM YYYY")}`;
80
80
  }
81
- function Ue(e = {
81
+ function Ve(e = {
82
82
  startTime: null,
83
83
  endTime: null,
84
84
  locale: "en-US"
85
85
  }) {
86
86
  const n = "hh:mmA", { startTime: l, endTime: f, locale: D } = e;
87
87
  if (!l || !f) return "";
88
- const d = u().set("hour", l.hour).set("minute", l.minute).locale(D), h = u().set("hour", f.hour).set("minute", f.minute).locale(D);
88
+ const d = i().set("hour", l.hour).set("minute", l.minute).locale(D), h = i().set("hour", f.hour).set("minute", f.minute).locale(D);
89
89
  return `${d.format(n)}-${h.format(n)}`;
90
90
  }
91
- const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, $e = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, Te = { class: "whitespace-nowrap flex-none" }, _ = /* @__PURE__ */ te({
91
+ const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, we = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, xe = { class: "whitespace-nowrap flex-none" }, te = /* @__PURE__ */ ne({
92
92
  __name: "FilterChip",
93
93
  props: {
94
94
  label: {
@@ -118,7 +118,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
118
118
  const D = A("FmIcon"), d = A("FmCircularProgress"), h = A("FmChip");
119
119
  return C(), b(h, {
120
120
  "aria-busy": n.loading,
121
- class: ce([
121
+ class: fe([
122
122
  "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-[400px] flex items-center gap-1 transition-opacity",
123
123
  n.loading && "opacity-80"
124
124
  ])
@@ -130,18 +130,18 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
130
130
  size: "sm",
131
131
  outline: "",
132
132
  class: "flex-none"
133
- }, null, 8, ["name"])) : E("", !0),
134
- I("div", Ye, [
135
- I("span", $e, me(n.label), 1),
133
+ }, null, 8, ["name"])) : F("", !0),
134
+ I("div", ke, [
135
+ I("span", we, De(n.label), 1),
136
136
  e.rightIcon ? (C(), b(D, {
137
137
  key: 0,
138
138
  name: e.rightIcon,
139
139
  size: "sm",
140
140
  outline: "",
141
141
  class: "flex-none"
142
- }, null, 8, ["name"])) : E("", !0),
143
- I("span", Te, [
144
- fe(l.$slots, "default")
142
+ }, null, 8, ["name"])) : F("", !0),
143
+ I("span", xe, [
144
+ ye(l.$slots, "default")
145
145
  ]),
146
146
  n.loading ? (C(), b(d, {
147
147
  key: 1,
@@ -153,14 +153,14 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
153
153
  size: "sm",
154
154
  outline: "",
155
155
  class: "flex-none"
156
- }, null, 8, ["name"])) : E("", !0)
156
+ }, null, 8, ["name"])) : F("", !0)
157
157
  ])
158
158
  ]),
159
159
  _: 3
160
160
  }, 8, ["aria-busy", "class"]);
161
161
  };
162
162
  }
163
- }), we = { class: "flex gap-2 items-center" }, S = "YYYY-MM-DD", ee = ".fm-calendar__cell[id]", xe = ".fm-calendar__cell__button", ke = /* @__PURE__ */ te({
163
+ }), Pe = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", ae = ".fm-calendar__cell[id]", Ee = ".fm-calendar__cell__button", Ae = /* @__PURE__ */ ne({
164
164
  __name: "DateRangeSelect",
165
165
  props: /* @__PURE__ */ K({
166
166
  compare: {
@@ -169,7 +169,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
169
169
  },
170
170
  datePredefinedRanges: {
171
171
  type: Array,
172
- default: () => ve()
172
+ default: () => Ce()
173
173
  },
174
174
  label: {
175
175
  type: String,
@@ -189,7 +189,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
189
189
  }, {
190
190
  compareType: {
191
191
  type: String,
192
- default: P.PRECEDING_PERIOD
192
+ default: E.PRECEDING_PERIOD
193
193
  },
194
194
  compareTypeModifiers: {},
195
195
  dateRange: {
@@ -211,78 +211,78 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
211
211
  }),
212
212
  emits: /* @__PURE__ */ K(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
213
213
  setup(e, { emit: n }) {
214
- const { t: l, locale: f } = he(), D = Re();
214
+ const { t: l, locale: f } = Re(), D = $e();
215
215
  function d(t) {
216
- return t ? t.includes("T") ? u(t).tz(p.value).format(S) : u(t).format(S) : null;
216
+ return t ? be(t, p.value) : null;
217
217
  }
218
- const h = n, r = z(e, "compareType"), y = z(e, "dateRange"), s = z(e, "compareDateRange"), { timezone: p } = be(ge());
218
+ const h = n, r = L(e, "compareType"), y = L(e, "dateRange"), s = L(e, "compareDateRange"), { timezone: p } = Ye(he());
219
219
  let m = null, T = 0, R = null;
220
- const w = /* @__PURE__ */ new Set(), N = O(!1), B = O(!1), x = L(
220
+ const k = /* @__PURE__ */ new Set(), N = P(!1), B = P(!1), w = z(
221
221
  () => N.value || B.value
222
- ), V = L(
222
+ ), V = z(
223
223
  () => e.minDate ? l("report.messages.noPermissionDateAccess", { date: e.minDate }) : ""
224
224
  );
225
225
  function j(t) {
226
- return !!(e.minDate && u(t).isBefore(u(e.minDate, S), "day"));
226
+ return !!(e.minDate && i(t).isBefore(i(e.minDate, Y), "day"));
227
227
  }
228
- function ae() {
228
+ function re() {
229
229
  const t = Date.now();
230
230
  t - T < 1e3 || (T = t, D == null || D.open({
231
231
  type: "error",
232
232
  message: V.value
233
233
  }));
234
234
  }
235
- function ne(t) {
236
- return t instanceof HTMLElement && t.matches(ee) ? [t] : "querySelectorAll" in t ? Array.from(t.querySelectorAll(ee)) : [];
235
+ function oe(t) {
236
+ return t instanceof HTMLElement && t.matches(ae) ? [t] : "querySelectorAll" in t ? Array.from(t.querySelectorAll(ae)) : [];
237
237
  }
238
- function re(t = document) {
239
- e.minDate && ne(t).forEach((a) => {
240
- const i = u(a.id), o = i.isValid() && j(i), v = a.querySelector(xe);
241
- a.classList.toggle("report-date-access-disabled", o), v && (v.setAttribute("aria-disabled", String(o)), v.title = o ? V.value : "");
238
+ function le(t = document) {
239
+ e.minDate && oe(t).forEach((a) => {
240
+ const u = i(a.id), o = u.isValid() && j(u), g = a.querySelector(Ee);
241
+ a.classList.toggle("report-date-access-disabled", o), g && (g.setAttribute("aria-disabled", String(o)), g.title = o ? V.value : "");
242
242
  });
243
243
  }
244
244
  function q(t = [document]) {
245
- !e.minDate || !x.value || (t.forEach((a) => w.add(a)), R === null && (R = window.requestAnimationFrame(() => {
245
+ !e.minDate || !w.value || (t.forEach((a) => k.add(a)), R === null && (R = window.requestAnimationFrame(() => {
246
246
  R = null;
247
- const a = Array.from(w);
248
- w.clear(), a.length || a.push(document), a.forEach((i) => re(i));
247
+ const a = Array.from(k);
248
+ k.clear(), a.length || a.push(document), a.forEach((u) => le(u));
249
249
  })));
250
250
  }
251
251
  function W() {
252
- m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null), w.clear();
252
+ m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null), k.clear();
253
253
  }
254
- function oe() {
255
- m || !e.minDate || !x.value || (m = new MutationObserver((t) => {
254
+ function se() {
255
+ m || !e.minDate || !w.value || (m = new MutationObserver((t) => {
256
256
  const a = /* @__PURE__ */ new Set();
257
- t.forEach((i) => {
258
- a.add(i.target), i.addedNodes.forEach((o) => {
257
+ t.forEach((u) => {
258
+ a.add(u.target), u.addedNodes.forEach((o) => {
259
259
  o instanceof HTMLElement && a.add(o);
260
260
  });
261
261
  }), q(Array.from(a));
262
262
  }), m.observe(document.body, { childList: !0, subtree: !0 }));
263
263
  }
264
- function F() {
265
- if (!e.minDate || !x.value) {
264
+ function O() {
265
+ if (!e.minDate || !w.value) {
266
266
  W();
267
267
  return;
268
268
  }
269
- oe(), q();
269
+ se(), q();
270
270
  }
271
271
  function H(t, a = !0) {
272
- return t && (j(u(t, S)) ? (a && ae(), e.minDate) : t);
272
+ return t && (j(i(t, Y)) ? (a && re(), e.minDate) : t);
273
273
  }
274
274
  function G(t, a = {}) {
275
- const i = a.notify ?? !0;
276
- let o = H(t.startDate, i), v = H(t.endDate, i);
277
- return o && v && u(o, S).isAfter(u(v, S), "day") && (o = e.minDate ?? v, v = o), { startDate: o, endDate: v };
275
+ const u = a.notify ?? !0;
276
+ let o = H(t.startDate, u), g = H(t.endDate, u);
277
+ return o && g && i(o, Y).isAfter(i(g, Y), "day") && (o = e.minDate ?? g, g = o), { startDate: o, endDate: g };
278
278
  }
279
- function k(t, a) {
279
+ function x(t, a) {
280
280
  return t.startDate === a.startDate && t.endDate === a.endDate;
281
281
  }
282
- const c = O({
282
+ const c = P({
283
283
  startDate: d(y.value.startDate),
284
284
  endDate: d(y.value.endDate)
285
- }), g = O({
285
+ }), v = P({
286
286
  startDate: s.value.startDate ? d(s.value.startDate) : null,
287
287
  endDate: s.value.endDate ? d(s.value.endDate) : null
288
288
  });
@@ -290,32 +290,40 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
290
290
  [() => c.value],
291
291
  () => {
292
292
  const t = G(c.value);
293
- if (!k(t, c.value)) {
293
+ if (!x(t, c.value)) {
294
294
  c.value = t;
295
295
  return;
296
296
  }
297
297
  c.value.endDate || (c.value.endDate = c.value.startDate);
298
298
  const a = {
299
- startDate: u.tz(c.value.startDate, p.value).startOf("day").utc().toISOString(),
300
- endDate: u.tz(c.value.endDate, p.value).endOf("day").utc().toISOString()
299
+ startDate: X(c.value.startDate, p.value),
300
+ endDate: Q(c.value.endDate, p.value)
301
301
  };
302
302
  y.value = a, h("update", a);
303
303
  },
304
304
  { deep: !0 }
305
- ), M([() => g.value], () => {
306
- const t = G(g.value, {
307
- notify: r.value === P.CUSTOM
305
+ ), M([() => v.value], () => {
306
+ const t = G(v.value, {
307
+ notify: r.value === E.CUSTOM
308
308
  });
309
- if (!k(t, g.value)) {
310
- g.value = t;
309
+ if (!x(t, v.value)) {
310
+ v.value = t;
311
311
  return;
312
312
  }
313
- const a = g.value.startDate, i = g.value.endDate, o = a ? u(
314
- a instanceof Date ? a : u(a).toDate()
315
- ).startOf("day").tz(p.value, !0).toISOString() : void 0, v = i ? u(i instanceof Date ? i : u(i).toDate()).tz(p.value, !0).endOf("day").toISOString() : void 0;
313
+ const a = v.value.startDate, u = v.value.endDate, o = a ? X(
314
+ i(
315
+ a instanceof Date ? a : i(a).toDate()
316
+ ).format(Y),
317
+ p.value
318
+ ) : void 0, g = u ? Q(
319
+ i(
320
+ u instanceof Date ? u : i(u).toDate()
321
+ ).format(Y),
322
+ p.value
323
+ ) : void 0;
316
324
  s.value = {
317
325
  startDate: o,
318
- endDate: v
326
+ endDate: g
319
327
  };
320
328
  }), M(
321
329
  () => y.value,
@@ -324,7 +332,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
324
332
  startDate: d(y.value.startDate),
325
333
  endDate: d(y.value.endDate)
326
334
  };
327
- k(t, c.value) || (c.value = t);
335
+ x(t, c.value) || (c.value = t);
328
336
  },
329
337
  { deep: !0 }
330
338
  ), M(
@@ -334,104 +342,104 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
334
342
  startDate: d(s.value.startDate),
335
343
  endDate: d(s.value.endDate)
336
344
  };
337
- k(t, g.value) || (g.value = t);
345
+ x(t, v.value) || (v.value = t);
338
346
  },
339
347
  { deep: !0 }
340
348
  ), M(
341
349
  () => e.minDate,
342
350
  async () => {
343
- await J(), F();
351
+ await Z(), O();
344
352
  }
345
353
  ), M(
346
- () => x.value,
354
+ () => w.value,
347
355
  async () => {
348
- await J(), F();
356
+ await Z(), O();
349
357
  }
350
- ), De(() => {
351
- F();
352
- }), ye(() => {
358
+ ), pe(() => {
359
+ O();
360
+ }), ve(() => {
353
361
  W();
354
362
  });
355
- function le(t) {
363
+ function ue(t) {
356
364
  r.value = t;
357
365
  }
358
- function se(t) {
366
+ function ie(t) {
359
367
  N.value = t;
360
368
  }
361
- function ue(t) {
369
+ function de(t) {
362
370
  B.value = t;
363
371
  }
364
- function ie(t) {
372
+ function ce(t) {
365
373
  h("chip-closed", t);
366
374
  }
367
- const de = L(() => {
368
- const t = X(), a = t.startsWith("zh") ? "" : " ", i = l("report.common.comparedTo"), o = Z({
369
- startDate: g.value.startDate ?? null,
370
- endDate: g.value.endDate ?? null,
375
+ const me = z(() => {
376
+ const t = _(), a = t.startsWith("zh") ? "" : " ", u = l("report.common.comparedTo"), o = ee({
377
+ startDate: v.value.startDate ?? null,
378
+ endDate: v.value.endDate ?? null,
371
379
  locale: t
372
380
  });
373
- return r.value === P.NO_COMPARISON ? `${i}: ${l(`report.compare.${r.value}`)}` : r.value === P.CUSTOM ? `${i}: ${o}` : `${i}${a}${l(`report.compare.${r.value}`).toLowerCase()}: ${o}`;
381
+ return r.value === E.NO_COMPARISON ? `${u}: ${l(`report.compare.${r.value}`)}` : r.value === E.CUSTOM ? `${u}: ${o}` : `${u}${a}${l(`report.compare.${r.value}`).toLowerCase()}: ${o}`;
374
382
  });
375
383
  return (t, a) => {
376
- const i = A("FmSimpleDateRangePicker");
377
- return C(), pe("div", we, [
378
- (C(), b(i, {
379
- key: `date-picker-${Y(f)}`,
384
+ const u = A("FmSimpleDateRangePicker");
385
+ return C(), ge("div", Pe, [
386
+ (C(), b(u, {
387
+ key: `date-picker-${$(f)}`,
380
388
  modelValue: c.value,
381
389
  "onUpdate:modelValue": a[1] || (a[1] = (o) => c.value = o),
382
390
  "show-predefined-range": "",
383
391
  min: e.minDate,
384
392
  "predefined-range": e.datePredefinedRanges.map((o) => ({
385
393
  ...o,
386
- label: Y(l)(`report.date.${o.label}`)
394
+ label: $(l)(`report.date.${o.label}`)
387
395
  })),
388
396
  class: "w-2/6",
389
- onPopoverChanged: se
397
+ onPopoverChanged: ie
390
398
  }, {
391
399
  "trigger-button": U(() => [
392
- Q(_, {
400
+ J(te, {
393
401
  "left-icon": e.label ? "filter_alt" : "calendar_month",
394
- label: e.label ?? Y(Z)({
402
+ label: e.label ?? $(ee)({
395
403
  startDate: c.value.startDate ?? "",
396
404
  endDate: c.value.endDate ?? "",
397
- locale: Y(X)()
405
+ locale: $(_)()
398
406
  }),
399
407
  removable: e.removable,
400
- onChipClosed: a[0] || (a[0] = (o) => ie(!0))
408
+ onChipClosed: a[0] || (a[0] = (o) => ce(!0))
401
409
  }, null, 8, ["left-icon", "label", "removable"])
402
410
  ]),
403
411
  _: 1
404
412
  }, 8, ["modelValue", "min", "predefined-range"])),
405
- e.compare ? (C(), b(i, {
406
- key: `compare-date-picker-${Y(f)}`,
407
- modelValue: g.value,
408
- "onUpdate:modelValue": a[2] || (a[2] = (o) => g.value = o),
413
+ e.compare ? (C(), b(u, {
414
+ key: `compare-date-picker-${$(f)}`,
415
+ modelValue: v.value,
416
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => v.value = o),
409
417
  "compare-type": r.value,
410
418
  "onUpdate:compareType": a[3] || (a[3] = (o) => r.value = o),
411
419
  "show-predefined-range": "",
412
420
  min: e.minDate,
413
421
  "compare-target": c.value,
414
422
  "default-compare-type": r.value,
415
- onPopoverChanged: ue,
416
- onSelectComparison: le
423
+ onPopoverChanged: de,
424
+ onSelectComparison: ue
417
425
  }, {
418
426
  "trigger-button": U(() => [
419
- Q(_, { label: de.value }, null, 8, ["label"])
427
+ J(te, { label: me.value }, null, 8, ["label"])
420
428
  ]),
421
429
  _: 1
422
- }, 8, ["modelValue", "compare-type", "min", "compare-target", "default-compare-type"])) : E("", !0)
430
+ }, 8, ["modelValue", "compare-type", "min", "compare-target", "default-compare-type"])) : F("", !0)
423
431
  ]);
424
432
  };
425
433
  }
426
- }), Ne = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-e0ce1b3c"]]);
434
+ }), je = /* @__PURE__ */ Me(Ae, [["__scopeId", "data-v-8a5bb212"]]);
427
435
  export {
428
- $ as C,
429
- Ne as D,
430
- _,
431
- Me as a,
432
- Le as b,
433
- Ue as c,
434
- ze as d,
435
- Z as e,
436
- Se as g
436
+ S as C,
437
+ je as D,
438
+ te as _,
439
+ Se as a,
440
+ Be as b,
441
+ Ve as c,
442
+ Ne as d,
443
+ ee as e,
444
+ Te as g
437
445
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, 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-6pkps4_3.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BriXZRy-.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 } from "./global-loader-BuxFfehu.js";
@@ -1,12 +1,12 @@
1
1
  import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as Gt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as j, Transition as Ya, withCtx as Re, createElementBlock as pe, createCommentVNode as we, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, normalizeClass as Fe, nextTick as jo, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as Go, markRaw as So, toRaw as Ea, createTextVNode as ja, onUnmounted as Yn, provide as Ga, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
2
- import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DMIpD0Oo.js";
3
- import { u as Ln, a0 as xn, a as _n, a1 as or } from "./app-5-1VploO.js";
4
- import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-Zdnz-pse.js";
5
- import { c as Dn, w as Et } from "./currency-Da4VuYyM.js";
6
- import { d as Xn } from "./DateRangeSelect-DlAzWqnp.js";
2
+ import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-V9SzUzmd.js";
3
+ import { u as Ln, a3 as xn, a as _n, a4 as or } from "./app-Bw-zsS2R.js";
4
+ import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-CblaE0LI.js";
5
+ import { c as Dn, w as Et } from "./currency-DmsNWBQ3.js";
6
+ import { d as Xn } from "./DateRangeSelect-CU1zLhsi.js";
7
7
  import { storeToRefs as At } from "pinia";
8
8
  import { detectLocale as oo } from "@feedmepos/mf-common";
9
- import "./index-DzEFpeJN.js";
9
+ import "./index-B5Reb-CL.js";
10
10
  import { C as En, t as ir } from "./chart-BywXiz4O.js";
11
11
  import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
12
12
  import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
@@ -3227,7 +3227,7 @@ function fs(e, t) {
3227
3227
  const n = be("FmMenuDivider");
3228
3228
  return j(), ye(n);
3229
3229
  }
3230
- const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-r9RKAQPd.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
3230
+ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-DxE4bjxG.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
3231
3231
  class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
3232
3232
  style: { backgroundColor: "#f9f9f9" }
3233
3233
  }, ys = { class: "font-bold" }, bs = { class: "text-fm-color-neutral-gray-300" }, Cs = /* @__PURE__ */ ze({