@feedmepos/mf-report 5.27.40 → 5.27.41

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 (30) hide show
  1. package/dist/{App-gwDfjs0u.js → App-DVKd3Prh.js} +5 -5
  2. package/dist/{DateRangeSelect-UoFskU18.js → DateRangeSelect-B0RstQlf.js} +2 -2
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js → Default.vue_vue_type_script_setup_true_lang-Bw-lZnut.js} +2 -2
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CyW3l1Ls.js} +1323 -1308
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js} +1191 -1174
  6. package/dist/{InsightView-BOM8sS76.js → InsightView-9LhtFI5Y.js} +6 -6
  7. package/dist/{Integration-Balw3Mat.js → Integration-h1j7EWhc.js} +4 -4
  8. package/dist/{Integrations-mur9Phe_.js → Integrations-DnSBl3IV.js} +4 -4
  9. package/dist/{Layout-ChpQW6k2.js → Layout-CIKtCA7v.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js → MenuTab.vue_vue_type_script_setup_true_lang-C-E8CeK1.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bv1EAAAh.js} +5 -5
  12. package/dist/OverviewView-DD_WScpo.js +61 -0
  13. package/dist/{Report-D0ybaqZN.js → Report-E0EA45ZK.js} +5 -5
  14. package/dist/ReportEditor-BLn7-0ar.js +2073 -0
  15. package/dist/{ReportView-BaHqhBsX.js → ReportView-Cr9VjHN8.js} +80 -83
  16. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js → SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js} +1 -1
  17. package/dist/{Setting-IDAzH_zb.js → Setting-DOFXTePL.js} +30 -30
  18. package/dist/{Template-C1Ei0GcR.js → Template-BpsdPAlm.js} +5 -5
  19. package/dist/{TileEditor-D5lXwoDY.js → TileEditor-CCpH1icn.js} +110 -105
  20. package/dist/TilePageStack.vue_vue_type_script_setup_true_lang-BUr5dctn.js +332 -0
  21. package/dist/{TransitionFade-CtE41B0o.js → TransitionFade-CAuLrgf6.js} +6 -6
  22. package/dist/{_plugin-vue_export-helper-onplcgja.js → _plugin-vue_export-helper-kkiiQoKl.js} +215 -216
  23. package/dist/{app-FVupSSYM.js → app-B7Ecopk1.js} +916 -888
  24. package/dist/app.js +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-DivfYXir.js → useRestaurantPermission-BMSTU9GV.js} +2 -2
  27. package/package.json +2 -2
  28. package/dist/OverviewView-Cf3MrDd_.js +0 -64
  29. package/dist/ReportEditor-BAOUNxIf.js +0 -2032
  30. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js +0 -257
@@ -1,67 +1,67 @@
1
- import { defineComponent as V, computed as i, createBlock as S, openBlock as f, withCtx as h, renderSlot as ie, ref as ue, watch as ce, resolveComponent as j, createVNode as _, createElementVNode as R, unref as l, toDisplayString as pe, normalizeStyle as me, normalizeClass as F, createElementBlock as de } from "vue";
2
- import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js";
3
- import { _ as fe } from "./TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js";
4
- import { u as ye, l as ge, s as be } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
5
- import { useRouter as _e, useRoute as we } from "vue-router";
6
- import { _ as Se } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
1
+ import { defineComponent as F, computed as i, createBlock as f, openBlock as y, withCtx as S, renderSlot as ne, ref as ie, watch as ue, resolveComponent as j, createVNode as k, createElementVNode as R, unref as l, toDisplayString as ce, normalizeStyle as pe, normalizeClass as me } from "vue";
2
+ import { _ as de } from "./MenuTab.vue_vue_type_script_setup_true_lang-C-E8CeK1.js";
3
+ import { _ as ve } from "./TilePageStack.vue_vue_type_script_setup_true_lang-BUr5dctn.js";
4
+ import { u as fe, l as ye, s as ge } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js";
5
+ import { useRouter as be, useRoute as _e } from "vue-router";
6
+ import { _ as we } from "./Default.vue_vue_type_script_setup_true_lang-Bw-lZnut.js";
7
7
  import { storeToRefs as w } from "pinia";
8
- import { b as he, c as Ce, u as xe, g as Te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js";
9
- import { _ as z } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
10
- import { useSnackbar as ke, useBreakpoints as Re } from "@feedmepos/ui-library";
11
- import { u as L, a as Pe, _ as De } from "./_plugin-vue_export-helper-onplcgja.js";
12
- import { u as Ie } from "./message-dialog-UoMWOnil.js";
13
- import { e as Oe, h as $e } from "./app-FVupSSYM.js";
14
- import { r as Ae } from "./i18n-CI_sQ5d_.js";
15
- const Ee = /* @__PURE__ */ V({
8
+ import { b as Se, c as he, u as Ce, g as xe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Bv1EAAAh.js";
9
+ import { _ as V } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js";
10
+ import { useSnackbar as Te, useBreakpoints as ke } from "@feedmepos/ui-library";
11
+ import { u as z, a as Re, _ as Pe } from "./_plugin-vue_export-helper-kkiiQoKl.js";
12
+ import { u as De } from "./message-dialog-UoMWOnil.js";
13
+ import { e as Ie, h as Oe } from "./app-B7Ecopk1.js";
14
+ import { r as $e } from "./i18n-CI_sQ5d_.js";
15
+ const Ae = /* @__PURE__ */ F({
16
16
  __name: "NoPermission",
17
17
  props: {
18
18
  title: { default: "report.messages.noPermission" },
19
19
  subTitle: { default: "report.messages.noPermissionPageAccess" }
20
20
  },
21
21
  setup(P) {
22
- const e = P, { t: y } = L(), d = i(() => y(e.title)), p = i(() => y(e.subTitle));
23
- return (r, C) => (f(), S(z, {
22
+ const e = P, { t: g } = z(), d = i(() => g(e.title)), p = i(() => g(e.subTitle));
23
+ return (r, h) => (y(), f(V, {
24
24
  title: d.value,
25
25
  "sub-title": p.value
26
26
  }, {
27
- menu: h(() => [
28
- ie(r.$slots, "menu")
27
+ menu: S(() => [
28
+ ne(r.$slots, "menu")
29
29
  ]),
30
30
  _: 3
31
31
  }, 8, ["title", "sub-title"]));
32
32
  }
33
- }), Ne = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Je = { class: "sticky top-0 z-10 bg-white" }, Be = /* @__PURE__ */ V({
33
+ }), Ee = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Ne = { class: "sticky top-0 z-10 bg-white" }, Je = /* @__PURE__ */ F({
34
34
  __name: "ReportView",
35
35
  setup(P) {
36
- const { t: e, te: y } = L(), d = _e(), p = we(), r = ke(), { promptMessage: C } = Ie(), m = ye(), D = he(), { promptLoader: g } = Pe(), { breakpoints: u } = Re(), { isOpenAccountingDialog: U } = w(Ce()), { isOpenScheduleDialog: I } = w(xe()), { disabled: O } = w(Oe()), $ = ue(null), A = i(
36
+ const { t: e, te: g } = z(), d = be(), p = _e(), r = Te(), { promptMessage: h } = De(), m = fe(), D = Se(), { promptLoader: b } = Re(), { breakpoints: u } = ke(), { isOpenAccountingDialog: L } = w(he()), { isOpenScheduleDialog: I } = w(Ce()), { disabled: O } = w(Ie()), $ = ie(null), A = i(
37
37
  () => {
38
38
  var a;
39
39
  return ((a = $.value) == null ? void 0 : a.reportId) === c.value;
40
40
  }
41
- ), H = i(() => {
41
+ ), U = i(() => {
42
42
  var a;
43
43
  return !!((a = o.value) != null && a.isSupportPos);
44
44
  }), {
45
45
  currentReport: o,
46
- overviewReport: M,
46
+ overviewReport: H,
47
47
  currentReportId: c,
48
- isOpenDownloadDialog: W,
49
- isOpenEmailDialog: Y,
50
- editingReport: G,
51
- canCreateCustomReport: Q,
48
+ isOpenDownloadDialog: M,
49
+ isOpenEmailDialog: W,
50
+ editingReport: Y,
51
+ canCreateCustomReport: G,
52
52
  customReportQuota: E
53
- } = w(m), { canRead: K, canUpdate: X, canDuplicate: Z, isAdmin: ee } = $e(), b = i(() => o.value ? K(o.value) : !0), x = i(
54
- () => b.value && ee.value && !!o.value && !o.value.isDefault
53
+ } = w(m), { canRead: Q, canUpdate: K, canDuplicate: X, isAdmin: Z } = Oe(), _ = i(() => o.value ? Q(o.value) : !0), C = i(
54
+ () => _.value && Z.value && !!o.value && !o.value.isDefault
55
55
  );
56
- ce(
56
+ ue(
57
57
  () => c.value,
58
- async () => $.value = await Te(c.value),
58
+ async () => $.value = await xe(c.value),
59
59
  { immediate: !0 }
60
60
  );
61
- const oe = i(() => {
61
+ const ee = i(() => {
62
62
  var s;
63
- if (!b.value) return [];
64
- const a = c.value === ((s = M.value) == null ? void 0 : s.id), t = [
63
+ if (!_.value) return [];
64
+ const a = c.value === ((s = H.value) == null ? void 0 : s.id), t = [
65
65
  {
66
66
  icon: "mail",
67
67
  label: e("report.common.emailSchedule"),
@@ -73,7 +73,7 @@ const Ee = /* @__PURE__ */ V({
73
73
  icon: "article",
74
74
  label: e(a ? "report.common.unsetAsOverview" : "report.common.setAsOverview"),
75
75
  onClick: async () => {
76
- await g(async () => {
76
+ await b(async () => {
77
77
  if (o.value)
78
78
  try {
79
79
  await m.updateDefaultReport(a ? null : o.value.id), r.open({
@@ -105,7 +105,7 @@ const Ee = /* @__PURE__ */ V({
105
105
  icon: "download",
106
106
  label: e("report.common.accountingExport"),
107
107
  onClick: B
108
- }), x.value && t.splice(t.length - 1, 0, {
108
+ }), C.value && t.splice(t.length - 1, 0, {
109
109
  icon: "library_add",
110
110
  label: e("report.common.copyToTemplate"),
111
111
  onClick: () => {
@@ -116,28 +116,28 @@ const Ee = /* @__PURE__ */ V({
116
116
  async function N() {
117
117
  D.isOpenJobDialog = !0, await D.getJobs();
118
118
  }
119
- function te() {
120
- if (!o.value || !X(o.value)) {
119
+ function oe() {
120
+ if (!o.value || !K(o.value)) {
121
121
  r.open({
122
122
  message: e("report.messages.noPermissionUpdateReport"),
123
123
  type: "error"
124
124
  });
125
125
  return;
126
126
  }
127
- G.value = JSON.parse(JSON.stringify(o.value)), d.push({
127
+ Y.value = JSON.parse(JSON.stringify(o.value)), d.push({
128
128
  name: "reportEditor",
129
129
  query: p.query
130
130
  });
131
131
  }
132
- async function ae() {
133
- if (!o.value || !Z(o.value)) {
132
+ async function te() {
133
+ if (!o.value || !X(o.value)) {
134
134
  r.open({
135
135
  message: e("report.messages.noPermissionDuplicateReport"),
136
136
  type: "error"
137
137
  });
138
138
  return;
139
139
  }
140
- if (!Q.value) {
140
+ if (!G.value) {
141
141
  let t = `Your current plan only support up to ${E.value} custom reports.`;
142
142
  E.value === 0 && (t = "Your current plan does not support custom report."), r.open({
143
143
  message: t,
@@ -149,7 +149,7 @@ const Ee = /* @__PURE__ */ V({
149
149
  r.open({ message: "No Widget", type: "error" });
150
150
  return;
151
151
  }
152
- if (await C({
152
+ if (await h({
153
153
  title: `${e("report.messages.duplicateReport")}`,
154
154
  message: e("report.messages.confirmAction", {
155
155
  action: e("report.common.duplicate"),
@@ -159,7 +159,7 @@ const Ee = /* @__PURE__ */ V({
159
159
  const t = JSON.parse(JSON.stringify(o.value));
160
160
  t.editable = !0, t.id = "", t.name = `${t.name} duplicate`, t.isDefault = !1;
161
161
  try {
162
- await g(async () => {
162
+ await b(async () => {
163
163
  const s = await m.createOrUpdateReport(t);
164
164
  m.updateCurrentReportId(s.id), d.push({
165
165
  name: "reportView",
@@ -174,7 +174,7 @@ const Ee = /* @__PURE__ */ V({
174
174
  }
175
175
  async function J() {
176
176
  var t;
177
- if (!x.value) {
177
+ if (!C.value) {
178
178
  r.open({
179
179
  message: e("report.messages.noPermission"),
180
180
  type: "error"
@@ -185,7 +185,7 @@ const Ee = /* @__PURE__ */ V({
185
185
  r.open({ message: "No Widget", type: "error" });
186
186
  return;
187
187
  }
188
- if (await C({
188
+ if (await h({
189
189
  title: `${e("report.common.copyToTemplate")}`,
190
190
  message: e("report.messages.confirmAction", {
191
191
  action: e("report.common.copyToTemplate"),
@@ -193,7 +193,7 @@ const Ee = /* @__PURE__ */ V({
193
193
  })
194
194
  }))
195
195
  try {
196
- await g(async () => {
196
+ await b(async () => {
197
197
  var s;
198
198
  await m.createReportTemplate(o.value), r.open({
199
199
  message: e("report.messages.copyTemplateSuccess", { name: (s = o.value) == null ? void 0 : s.name }),
@@ -208,16 +208,16 @@ const Ee = /* @__PURE__ */ V({
208
208
  }
209
209
  }
210
210
  function B() {
211
- U.value = !0;
211
+ L.value = !0;
212
212
  }
213
- function re() {
213
+ function ae() {
214
214
  o.value && (navigator.clipboard.writeText(c.value), r.open({ message: "Copied report ID to clipboard", type: "success" }));
215
215
  }
216
- async function se() {
216
+ async function re() {
217
217
  if (o.value)
218
218
  try {
219
- await g(async () => {
220
- await be(c.value, !H.value), await m.getReports();
219
+ await b(async () => {
220
+ await ge(c.value, !U.value), await m.getReports();
221
221
  });
222
222
  } catch (a) {
223
223
  console.log(a), r.open({
@@ -226,9 +226,9 @@ const Ee = /* @__PURE__ */ V({
226
226
  });
227
227
  }
228
228
  }
229
- const T = i(() => o.value ? o.value.tiles : []), le = i(() => ge(T.value)), ne = i(() => {
229
+ const x = i(() => o.value ? o.value.tiles : []), se = i(() => ye(x.value)), le = i(() => {
230
230
  var s;
231
- if (!b.value) return [];
231
+ if (!_.value) return [];
232
232
  let t = [
233
233
  // TODO: In future once decided to support report showing configuration for POS,
234
234
  // uncomment this:
@@ -259,40 +259,40 @@ const Ee = /* @__PURE__ */ V({
259
259
  { label: e("report.common.reportStatus"), value: "report_jobs", isPrimary: !1 },
260
260
  { label: e("report.common.emailSchedule"), value: "schedule_email", isPrimary: !1 },
261
261
  { label: e("report.common.copyID"), value: "content_copy", isPrimary: !1 }
262
- ], x.value && t.push({
262
+ ], C.value && t.push({
263
263
  label: e("report.common.copyToTemplate"),
264
264
  value: "copy_to_template",
265
265
  isPrimary: !1
266
266
  }), !O.value && A.value && t.push({ label: e("report.common.accountingExport"), value: "export", isPrimary: !1 }), t = t.filter((v) => v.value !== "edit")), t;
267
- }), k = i(() => {
267
+ }), T = i(() => {
268
268
  var a;
269
- return Ae(e, y, (a = o == null ? void 0 : o.value) == null ? void 0 : a.name, "other");
269
+ return $e(e, g, (a = o == null ? void 0 : o.value) == null ? void 0 : a.name, "other");
270
270
  });
271
271
  return (a, t) => {
272
272
  const s = j("FmTooltip"), v = j("FmPageHead");
273
- return f(), S(Se, null, {
274
- default: h(() => {
273
+ return y(), f(we, null, {
274
+ default: S(() => {
275
275
  var q;
276
276
  return [
277
- _(v, {
278
- title: k.value,
277
+ k(v, {
278
+ title: T.value,
279
279
  "back-button": !0,
280
- actions: ne.value,
280
+ actions: le.value,
281
281
  class: "remove-line-clamping",
282
282
  "onClick:back": t[0] || (t[0] = (n) => l(d).push({ name: "reports", query: l(p).query })),
283
283
  "onClick:action": t[1] || (t[1] = (n) => {
284
- n === "show_in_pos" && se(), n === "duplicate" && ae(), n === "download" && (W.value = !0), n === "email" && (Y.value = !0), n === "edit" && te(), n === "schedule_email" && (I.value = !0), n === "content_copy" && re(), n === "copy_to_template" && J(), n === "export" && B(), n === "report_jobs" && N();
284
+ n === "show_in_pos" && re(), n === "duplicate" && te(), n === "download" && (M.value = !0), n === "email" && (W.value = !0), n === "edit" && oe(), n === "schedule_email" && (I.value = !0), n === "content_copy" && ae(), n === "copy_to_template" && J(), n === "export" && B(), n === "report_jobs" && N();
285
285
  })
286
286
  }, {
287
- title: h(() => [
288
- _(s, {
289
- content: k.value,
287
+ title: S(() => [
288
+ k(s, {
289
+ content: T.value,
290
290
  placement: "bottom",
291
291
  "z-index": 2e3,
292
292
  class: "flex min-w-0 max-w-full justify-start"
293
293
  }, {
294
- default: h(() => [
295
- R("p", Ne, pe(k.value), 1)
294
+ default: S(() => [
295
+ R("p", Ee, ce(T.value), 1)
296
296
  ]),
297
297
  _: 1
298
298
  }, 8, ["content"])
@@ -300,24 +300,21 @@ const Ee = /* @__PURE__ */ V({
300
300
  _: 1
301
301
  }, 8, ["title", "actions"]),
302
302
  R("div", {
303
- class: F(`flex flex-col overflow-y-auto ${l(u).xs || l(u).sm ? "pb-20" : ""}`),
304
- style: me({ height: `calc(100% - ${l(u).lg || l(u).md ? 72 : 64}px)` })
303
+ class: me(`flex flex-col overflow-y-auto ${l(u).xs || l(u).sm ? "pb-20" : ""}`),
304
+ style: pe({ height: `calc(100% - ${l(u).lg || l(u).md ? 72 : 64}px)` })
305
305
  }, [
306
- R("div", Je, [
307
- _(ve, {
308
- "model-value": l(u).lg || l(u).md ? oe.value : []
306
+ R("div", Ne, [
307
+ k(de, {
308
+ "model-value": l(u).lg || l(u).md ? ee.value : []
309
309
  }, null, 8, ["model-value"])
310
310
  ]),
311
- l(o) && !b.value ? (f(), S(Ee, { key: 0 })) : l(o) && ((q = T.value) == null ? void 0 : q.length) > 0 ? (f(), de("div", {
311
+ l(o) && !_.value ? (y(), f(Ae, { key: 0 })) : l(o) && ((q = x.value) == null ? void 0 : q.length) > 0 ? (y(), f(ve, {
312
312
  key: 1,
313
- class: F(["grid grid-cols-12", l(u).sm || l(u).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
314
- }, [
315
- _(fe, {
316
- tiles: T.value,
317
- "report-id": l(c),
318
- "leaf-index-by-id": le.value
319
- }, null, 8, ["tiles", "report-id", "leaf-index-by-id"])
320
- ], 2)) : (f(), S(z, { key: 2 }))
313
+ tiles: x.value,
314
+ "report-id": l(c),
315
+ "leaf-index-by-id": se.value,
316
+ "grid-class": l(u).sm || l(u).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"
317
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "grid-class"])) : (y(), f(V, { key: 2 }))
321
318
  ], 6)
322
319
  ];
323
320
  }),
@@ -325,7 +322,7 @@ const Ee = /* @__PURE__ */ V({
325
322
  });
326
323
  };
327
324
  }
328
- }), Xe = /* @__PURE__ */ De(Be, [["__scopeId", "data-v-cf9709d9"]]);
325
+ }), Ke = /* @__PURE__ */ Pe(Je, [["__scopeId", "data-v-721a94f1"]]);
329
326
  export {
330
- Xe as default
327
+ Ke as default
331
328
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, computed as d, resolveComponent as s, createElementBlock as y, openBlock as i, renderSlot as N, createVNode as m, withCtx as c, createCommentVNode as j, createElementVNode as r, toDisplayString as v, mergeModels as A, useModel as B, ref as F, createBlock as x, normalizeStyle as O, withDirectives as P, unref as z, vShow as L, Fragment as R, renderList as U, normalizeClass as E } from "vue";
2
- import { u as w } from "./_plugin-vue_export-helper-onplcgja.js";
2
+ import { u as w } from "./_plugin-vue_export-helper-kkiiQoKl.js";
3
3
  const H = { class: "flex flex-col h-full" }, q = ["src"], G = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, J = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Z = /* @__PURE__ */ S({
4
4
  __name: "NoData",
5
5
  props: {
@@ -1,12 +1,12 @@
1
- import { defineComponent as R, ref as N, useModel as I, resolveComponent as V, createElementBlock as $, openBlock as x, createBlock as L, createElementVNode as t, resolveDynamicComponent as me, unref as e, withCtx as b, createVNode as s, normalizeClass as U, toDisplayString as a, Fragment as W, renderList as X, createTextVNode as ue, withDirectives as Y, vShow as ee, computed as q, watch as de, normalizeStyle as pe } from "vue";
2
- import { _ as ce } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
3
- import { d as A, C as G, D as fe, m as _e, n as K, a as ve } from "./app-FVupSSYM.js";
4
- import { components as Z, useSnackbar as te, useBreakpoints as oe, FmButtonColorThemeVariant as Q } from "@feedmepos/ui-library";
5
- import { K as B, L as ge } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
1
+ import { defineComponent as R, ref as U, useModel as L, resolveComponent as V, createElementBlock as $, openBlock as x, createBlock as I, createElementVNode as t, resolveDynamicComponent as me, unref as e, withCtx as b, createVNode as s, normalizeClass as N, toDisplayString as a, Fragment as W, renderList as X, createTextVNode as ue, withDirectives as Y, vShow as ee, computed as q, watch as de, normalizeStyle as pe } from "vue";
2
+ import { _ as ce } from "./Default.vue_vue_type_script_setup_true_lang-Bw-lZnut.js";
3
+ import { d as A, C as G, D as fe, m as _e, n as Z, a as ve } from "./app-B7Ecopk1.js";
4
+ import { components as K, useSnackbar as te, useBreakpoints as oe, FmButtonColorThemeVariant as Q } from "@feedmepos/ui-library";
5
+ import { T as B, U as ge } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js";
6
6
  import { u as ye } from "./message-dialog-UoMWOnil.js";
7
- import { u as w } from "./_plugin-vue_export-helper-onplcgja.js";
7
+ import { u as w } from "./_plugin-vue_export-helper-kkiiQoKl.js";
8
8
  import { detectLocale as F } from "@feedmepos/mf-common";
9
- import { a as j } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
9
+ import { a as j } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js";
10
10
  import { storeToRefs as he } from "pinia";
11
11
  const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex px-5 gap-2" }, Te = { class: "flex flex-col gap-2" }, Ce = { class: "fm-typo-en-title-sm-600" }, De = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = { class: "w-full gap-[24px] flex flex-col pt-2" }, Se = { class: "flex items-center w-full gap-3" }, ke = { class: "text-fm-color-typo-primary" }, Fe = { class: "text-fm-color-typo-secondary" }, Re = { class: "flex items-center gap-2" }, we = /* @__PURE__ */ R({
12
12
  __name: "ReportHour",
@@ -19,12 +19,12 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
19
19
  },
20
20
  emits: ["update:modelValue"],
21
21
  setup(T) {
22
- const l = N(!1), i = N(), o = {
22
+ const l = U(!1), i = U(), o = {
23
23
  name: "",
24
24
  isDefault: !1,
25
25
  startTime: { hour: 0, minute: 0 },
26
26
  endTime: { hour: 0, minute: 0 }
27
- }, { FmForm: p } = Z, f = N(), { promptMessage: h } = ye(), m = te(), n = N(JSON.parse(JSON.stringify(o))), u = I(T, "modelValue"), { t: r } = w(), E = () => {
27
+ }, { FmForm: p } = K, f = U(), { promptMessage: h } = ye(), m = te(), n = U(JSON.parse(JSON.stringify(o))), u = L(T, "modelValue"), { t: r } = w(), E = () => {
28
28
  l.value = !1, n.value && i.value === void 0 ? u.value.push(n.value) : u.value[i.value] = n.value;
29
29
  }, O = () => {
30
30
  var v;
@@ -55,11 +55,11 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
55
55
  ...S,
56
56
  isDefault: C === 0
57
57
  }));
58
- }, { breakpoints: z } = oe(), { FmSideSheet: se, FmTopSheet: ne } = Z;
58
+ }, { breakpoints: z } = oe(), { FmSideSheet: se, FmTopSheet: ne } = K;
59
59
  return (v, d) => {
60
60
  const S = V("FmTextField"), C = V("FmTimePicker"), _ = V("FmButton"), M = V("FmSwitch"), re = V("FmChip"), ie = V("FmCard");
61
61
  return x(), $("div", null, [
62
- (x(), L(me(e(z).lg || e(z).md ? e(se) : e(ne)), {
62
+ (x(), I(me(e(z).lg || e(z).md ? e(se) : e(ne)), {
63
63
  modelValue: l.value,
64
64
  "onUpdate:modelValue": d[3] || (d[3] = (g) => l.value = g),
65
65
  "fullscreen-size": "sm",
@@ -105,7 +105,7 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
105
105
  s(e(p), {
106
106
  ref_key: "form",
107
107
  ref: f,
108
- class: U(["flex flex-col gap-2", `${e(z).sm || e(z).xs ? "px-24" : ""}`]),
108
+ class: N(["flex flex-col gap-2", `${e(z).sm || e(z).xs ? "px-24" : ""}`]),
109
109
  onValidationSuccess: E
110
110
  }, {
111
111
  default: b(() => {
@@ -146,7 +146,7 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
146
146
  t("p", De, a(e(r)("report.setting.reportHour.description")), 1)
147
147
  ]),
148
148
  t("div", $e, [
149
- (x(!0), $(W, null, X(u.value, (g, D) => (x(), L(ie, {
149
+ (x(!0), $(W, null, X(u.value, (g, D) => (x(), I(ie, {
150
150
  key: `report_${D}`,
151
151
  class: "flex p-4",
152
152
  variant: "outlined"
@@ -214,7 +214,7 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
214
214
  },
215
215
  emits: ["update:modelValue"],
216
216
  setup(T) {
217
- const { t: l } = w(), i = I(T, "modelValue"), o = Object.values(G).map((p) => ({
217
+ const { t: l } = w(), i = L(T, "modelValue"), o = Object.values(G).map((p) => ({
218
218
  label: l(`report.compare.${p}`),
219
219
  value: p
220
220
  })).slice(0, -1);
@@ -229,7 +229,7 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
229
229
  }, null, 8, ["modelValue", "label", "items"])
230
230
  ]));
231
231
  }
232
- }), Ne = { class: "py-2 w-full gap-2 flex flex-col" }, Ue = { class: "fm-typo-en-title-sm-600" }, Be = /* @__PURE__ */ R({
232
+ }), Ue = { class: "py-2 w-full gap-2 flex flex-col" }, Ne = { class: "fm-typo-en-title-sm-600" }, Be = /* @__PURE__ */ R({
233
233
  __name: "DateRangeSetting",
234
234
  props: {
235
235
  modelValue: { required: !0 },
@@ -237,12 +237,12 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
237
237
  },
238
238
  emits: ["update:modelValue"],
239
239
  setup(T) {
240
- const { t: l } = w(), i = I(T, "modelValue"), o = Object.values(fe).filter((p) => !["This month", "Last month"].includes(p)).map((p) => ({
240
+ const { t: l } = w(), i = L(T, "modelValue"), o = Object.values(fe).filter((p) => !["This month", "Last month"].includes(p)).map((p) => ({
241
241
  label: l(`report.date.${p}`),
242
242
  value: p
243
243
  }));
244
- return (p, f) => (x(), $("div", Ne, [
245
- t("p", Ue, a(e(l)("report.setting.summary.defaultDateRange")), 1),
244
+ return (p, f) => (x(), $("div", Ue, [
245
+ t("p", Ne, a(e(l)("report.setting.summary.defaultDateRange")), 1),
246
246
  s(j, {
247
247
  modelValue: i.value,
248
248
  "onUpdate:modelValue": f[0] || (f[0] = (h) => i.value = h),
@@ -252,7 +252,7 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
252
252
  }, null, 8, ["modelValue", "label", "items"])
253
253
  ]));
254
254
  }
255
- }), Ee = { class: "py-2 w-full gap-2 flex flex-col" }, Pe = { class: "fm-typo-en-title-sm-600" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = /* @__PURE__ */ R({
255
+ }), Ee = { class: "py-2 w-full gap-2 flex flex-col" }, Pe = { class: "fm-typo-en-title-sm-600" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = /* @__PURE__ */ R({
256
256
  __name: "TimezoneSetting",
257
257
  props: {
258
258
  modelValue: {},
@@ -266,8 +266,8 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
266
266
  (m) => i("report.setting.timezone.default", { timezone: m })
267
267
  )
268
268
  ), h = q({
269
- get: () => o.modelValue ?? K,
270
- set: (m) => p("update:modelValue", m === K ? null : m)
269
+ get: () => o.modelValue ?? Z,
270
+ set: (m) => p("update:modelValue", m === Z ? null : m)
271
271
  });
272
272
  return (m, n) => (x(), $("div", Ee, [
273
273
  t("p", Pe, a(e(i)("report.setting.timezone.title")), 1),
@@ -280,7 +280,7 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
280
280
  }, null, 8, ["modelValue", "label", "items"])
281
281
  ]));
282
282
  }
283
- }), Ie = { class: "w-2/4" }, je = { class: "fm-typo-en-title-sm-600" }, Je = { class: "text-fm-color-typo-secondary" }, qe = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "text-fm-color-typo-secondary" }, Ge = { class: "fm-typo-en-body-lg-600" }, Ke = { class: "text-fm-color-typo-secondary" }, Ze = { class: "fm-typo-en-body-lg-600" }, Qe = { class: "text-fm-color-typo-secondary" }, We = { class: "fm-typo-en-body-lg-600" }, it = /* @__PURE__ */ R({
283
+ }), Le = { class: "w-2/4" }, je = { class: "fm-typo-en-title-sm-600" }, Je = { class: "text-fm-color-typo-secondary" }, qe = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "text-fm-color-typo-secondary" }, Ge = { class: "fm-typo-en-body-lg-600" }, Ze = { class: "text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-lg-600" }, Qe = { class: "text-fm-color-typo-secondary" }, We = { class: "fm-typo-en-body-lg-600" }, it = /* @__PURE__ */ R({
284
284
  __name: "Setting",
285
285
  setup(T) {
286
286
  const { breakpoints: l } = oe(), i = ve(), { defaultDateSetting: o, timezone: p, defaultTimezone: f } = he(i), h = te(), { t: m } = w();
@@ -300,17 +300,17 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
300
300
  }
301
301
  return (u, r) => {
302
302
  const E = V("FmPageHead"), O = V("FmMenuDivider"), H = V("FmCard");
303
- return x(), L(ce, null, {
303
+ return x(), I(ce, null, {
304
304
  default: b(() => [
305
305
  s(E, {
306
306
  title: e(m)("report.view.setting.title")
307
307
  }, null, 8, ["title"]),
308
308
  t("div", {
309
- class: U(`${e(l).sm || e(l).xs ? "pb-20" : ""} overflow-y-auto flex`),
309
+ class: N(`${e(l).sm || e(l).xs ? "pb-20" : ""} overflow-y-auto flex`),
310
310
  style: pe({ height: `calc(100% - ${e(l).sm || e(l).xs ? 60 : 72}px)` })
311
311
  }, [
312
312
  t("div", {
313
- class: U(`${e(l).lg || e(l).md ? "px-24" : "px-3"} w-full flex flex-col gap-[40px]`)
313
+ class: N(`${e(l).lg || e(l).md ? "px-24" : "px-3"} w-full flex flex-col gap-[40px]`)
314
314
  }, [
315
315
  s(we, {
316
316
  modelValue: e(o).timeOptions,
@@ -324,16 +324,16 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
324
324
  modelValue: e(o).defaultCompareType,
325
325
  "onUpdate:modelValue": r[2] || (r[2] = (c) => e(o).defaultCompareType = c)
326
326
  }, null, 8, ["modelValue"]),
327
- s(Le, {
327
+ s(Ie, {
328
328
  "model-value": e(o).timezone,
329
329
  "default-timezone": e(f),
330
330
  "onUpdate:modelValue": n
331
331
  }, null, 8, ["model-value", "default-timezone"])
332
332
  ], 2),
333
- Y(t("div", Ie, [
333
+ Y(t("div", Le, [
334
334
  s(H, {
335
335
  variant: "outlined",
336
- class: U(["flex flex-col gap-3", `${e(l).lg || e(l).md ? "mr-5 p-6" : ""}`])
336
+ class: N(["flex flex-col gap-3", `${e(l).lg || e(l).md ? "mr-5 p-6" : ""}`])
337
337
  }, {
338
338
  default: b(() => [
339
339
  t("p", je, a(e(m)("report.setting.summary.title")), 1),
@@ -344,8 +344,8 @@ const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex p
344
344
  ]))), 128)),
345
345
  t("p", Ae, a(e(m)("report.setting.summary.defaultDateRange")), 1),
346
346
  t("p", Ge, a(e(m)(`report.date.${e(o).defaultDateRange}`)), 1),
347
- t("p", Ke, a(e(m)("report.setting.summary.comparisonDateRange")), 1),
348
- t("p", Ze, a(e(m)(`report.compare.${e(o).defaultCompareType}`)), 1),
347
+ t("p", Ze, a(e(m)("report.setting.summary.comparisonDateRange")), 1),
348
+ t("p", Ke, a(e(m)(`report.compare.${e(o).defaultCompareType}`)), 1),
349
349
  t("p", Qe, a(e(m)("report.setting.summary.timezone")), 1),
350
350
  t("p", We, a(e(p)), 1)
351
351
  ]),
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as ie, computed as u, resolveComponent as v, createElementBlock as A, openBlock as _, renderSlot as Ve, createVNode as n, withCtx as s, createCommentVNode as q, createElementVNode as i, toDisplayString as d, ref as b, h as p, onMounted as Le, createBlock as R, unref as l, normalizeStyle as Se, normalizeClass as C, withDirectives as ae, Fragment as $e, renderList as Ie, withModifiers as re, vShow as ne } from "vue";
2
- import { a as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
3
- import { u as me, a as Pe } from "./_plugin-vue_export-helper-onplcgja.js";
4
- import { _ as ze } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
2
+ import { a as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js";
3
+ import { u as me, a as Pe } from "./_plugin-vue_export-helper-kkiiQoKl.js";
4
+ import { _ as ze } from "./Default.vue_vue_type_script_setup_true_lang-Bw-lZnut.js";
5
5
  import { u as De } from "./message-dialog-UoMWOnil.js";
6
- import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
6
+ import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js";
7
7
  import { r as se } from "./i18n-CI_sQ5d_.js";
8
8
  import { useBreakpoints as Be, useSnackbar as Me, components as Ee, FmButtonColorThemeVariant as Ke } from "@feedmepos/ui-library";
9
9
  import { useRouter as Ue, useRoute as He } from "vue-router";
10
10
  import { storeToRefs as Oe } from "pinia";
11
- import { h as je } from "./app-FVupSSYM.js";
11
+ import { h as je } from "./app-B7Ecopk1.js";
12
12
  const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Je = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Qe = /* @__PURE__ */ ie({
13
13
  __name: "NoTemplate",
14
14
  props: {