@feedmepos/mf-report 5.22.25 → 5.22.26

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-3HFmWp7u.js +298 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js → BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js} +1128 -1292
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js} +5 -5
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-C55xh4bx.js → Default.vue_vue_type_script_setup_true_lang-BUIcdcLn.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-D2K2ghV_.js → FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js} +19 -19
  6. package/dist/InsightView-B8Wrd2SX.js +664 -0
  7. package/dist/{Integration-CAsNSCR4.js → Integration-D_jZxPMn.js} +40 -40
  8. package/dist/{Integrations-CIeyn0dF.js → Integrations-B1igzxZG.js} +14 -13
  9. package/dist/Layout-Dt6yE5XC.js +19 -0
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CBY5Meyc.js → MenuTab.vue_vue_type_script_setup_true_lang-Dtv5xe0O.js} +13 -13
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DsOmTqFV.js → NavigationTab.vue_vue_type_script_setup_true_lang-lfncwvdP.js} +24 -24
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js → NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js} +1 -1
  13. package/dist/OverviewView-hz2kZmm7.js +62 -0
  14. package/dist/{Report-CMYhrVbI.js → Report-nrJWlkN-.js} +15 -14
  15. package/dist/{ReportEditor-BU6Hq9yx.js → ReportEditor-YV-2UXDU.js} +24 -23
  16. package/dist/{ReportView-8F14F_jz.js → ReportView-CM1PfMk6.js} +18 -17
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js → SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js} +1 -1
  18. package/dist/Setting-B1Xrl09c.js +326 -0
  19. package/dist/{TileEditor-BRHXTLEK.js → TileEditor-CF0aNTKV.js} +131 -131
  20. package/dist/{TransitionFade-DbsPAg2T.js → TransitionFade-D2bsz2iV.js} +12 -12
  21. package/dist/app-C2vt2B-i.js +11540 -0
  22. package/dist/app.js +1 -1
  23. package/dist/useRestaurantPermission-DRvKGVtO.js +65 -0
  24. package/dist/vue-i18n-DVWuTfed.js +2727 -0
  25. package/package.json +1 -1
  26. package/dist/App-C5_KJN8G.js +0 -294
  27. package/dist/InsightView-BCZKzqRM.js +0 -670
  28. package/dist/Layout-BFvrEBq5.js +0 -29
  29. package/dist/NoPermission.vue_vue_type_script_setup_true_lang-obph7BUZ.js +0 -25
  30. package/dist/OverviewView-gvsp6532.js +0 -63
  31. package/dist/Setting-BtWmZpk0.js +0 -328
  32. package/dist/app-WBPZfxon.js +0 -6658
  33. package/dist/useRestaurantPermission-BtPLwoC9.js +0 -64
  34. package/dist/vue-i18n-CvU0g5WR.js +0 -7253
@@ -0,0 +1,19 @@
1
+ import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-BUIcdcLn.js";
3
+ const f = /* @__PURE__ */ o({
4
+ __name: "Layout",
5
+ setup(m) {
6
+ return (p, s) => {
7
+ const e = t("router-view");
8
+ return n(), r(a, null, {
9
+ default: _(() => [
10
+ c(e)
11
+ ]),
12
+ _: 1
13
+ });
14
+ };
15
+ }
16
+ });
17
+ export {
18
+ f as default
19
+ };
@@ -1,13 +1,13 @@
1
- import { defineComponent as R, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as u, unref as e, isRef as p, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as C, Fragment as w, renderList as M, toDisplayString as T } from "vue";
2
- import { b as B } from "./vue-i18n-CvU0g5WR.js";
1
+ import { defineComponent as b, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as u, unref as e, isRef as p, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as R, Fragment as w, renderList as M, toDisplayString as T } from "vue";
2
+ import { a as B } from "./app-C2vt2B-i.js";
3
3
  import { storeToRefs as D } from "pinia";
4
- import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DsOmTqFV.js";
5
- import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js";
6
- import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js";
7
- import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-D2K2ghV_.js";
4
+ import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-lfncwvdP.js";
5
+ import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js";
6
+ import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js";
7
+ import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js";
8
8
  import { useRoute as z } from "vue-router";
9
9
  import { useBreakpoints as E } from "@feedmepos/ui-library";
10
- const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ R({
10
+ const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ b({
11
11
  __name: "Filter",
12
12
  setup(F) {
13
13
  const {
@@ -19,7 +19,7 @@ const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scroll
19
19
  defaultDateSetting: s,
20
20
  selectTimeDefault: i
21
21
  } = D(B()), v = z(), r = V(() => v.name === "overview");
22
- return (b, t) => (a(), x("div", L, [
22
+ return (C, t) => (a(), x("div", L, [
23
23
  y("div", O, [
24
24
  u(I, {
25
25
  modelValue: e(n),
@@ -50,7 +50,7 @@ const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scroll
50
50
  ])
51
51
  ]));
52
52
  }
53
- }), j = { class: "fm-typo-en-body-md-400" }, Y = /* @__PURE__ */ R({
53
+ }), j = { class: "fm-typo-en-body-md-400" }, Y = /* @__PURE__ */ b({
54
54
  __name: "MenuTab",
55
55
  props: {
56
56
  modelValue: { required: !1, default: [] },
@@ -63,7 +63,7 @@ const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scroll
63
63
  const m = f("FmButton"), s = f("FmIcon"), i = f("FmMenuItem"), v = f("FmMenu");
64
64
  return a(), x("div", {
65
65
  "data-menu-tab": "true",
66
- class: C(["flex items-start pb-2 px-24", `${e(n).lg || e(n).md ? "px-24" : "pl-3"}`])
66
+ class: R(["flex items-start pb-2 px-24", `${e(n).lg || e(n).md ? "px-24" : "pl-3"}`])
67
67
  }, [
68
68
  u(q),
69
69
  l[0] || (l[0] = y("div", { class: "flex grow" }, null, -1)),
@@ -72,7 +72,7 @@ const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scroll
72
72
  trigger: "click",
73
73
  placement: "left",
74
74
  shift: !0,
75
- class: C(e(n).sm || e(n).xs ? "pr-3" : "")
75
+ class: R(e(n).sm || e(n).xs ? "pr-3" : "")
76
76
  }, {
77
77
  "menu-button": _(() => [
78
78
  u(m, {
@@ -83,8 +83,8 @@ const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scroll
83
83
  })
84
84
  ]),
85
85
  default: _(() => [
86
- (a(!0), x(w, null, M(d.value, (r, b) => (a(), g(i, {
87
- key: `button-${b}`,
86
+ (a(!0), x(w, null, M(d.value, (r, C) => (a(), g(i, {
87
+ key: `button-${C}`,
88
88
  onClick: r.onClick
89
89
  }, {
90
90
  label: _(() => [
@@ -4,12 +4,12 @@ var Dl = (e, r, t) => S5(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { defineComponent as tr, computed as Ke, useModel as Pn, ref as Ie, watch as Qr, resolveComponent as ve, createBlock as Ge, unref as X, openBlock as ae, withCtx as We, createElementVNode as J, createVNode as ee, toDisplayString as Xe, withDirectives as Vi, createElementBlock as De, Fragment as mt, renderList as Xt, vShow as Gs, createTextVNode as Zr, mergeModels as ci, createCommentVNode as dt, normalizeClass as Bn, onMounted as s0, withKeys as Xh, withModifiers as si, isRef as ri, vModelText as zh, normalizeStyle as l0, renderSlot as Hh, mergeProps as O5, nextTick as D5, resolveDynamicComponent as bd, createSlots as I5 } from "vue";
5
5
  import { useRouter as qh, useRoute as Wh } from "vue-router";
6
6
  import { storeToRefs as mr, defineStore as o0 } from "pinia";
7
- import { a as ol, m as kd, n as V5, i as ni, R as qa, k as Qs, o as Gl, _ as f0, e as L5, v as F5, j as N5, r as M5, p as yn, w as R5, u as B5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js";
8
- import { useBreakpoints as ko, components as Li, useSnackbar as Hi, useDialog as X5, useDialogChild as z5, FmButtonVariant as Td } from "@feedmepos/ui-library";
9
- import { u as ba, a as Ua, F as Za, r as fl, b as hi, q as To, j as H5, d as q5, k as Il, l as jh, p as W5 } from "./vue-i18n-CvU0g5WR.js";
10
- import { a as Cd, _ as j5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js";
11
- import { C as hr, g as U5, e as ti, f as Uh, a as Z5, _ as Zh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js";
12
- import { d as Lt, c as Yh, b as Y5 } from "./app-WBPZfxon.js";
7
+ import { u as ol, k as kd, l as V5, g as ni, R as qa, i as Qs, m as Gl, _ as f0, c as L5, v as F5, h as N5, r as M5, n as yn, o as R5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js";
8
+ import { useBreakpoints as ko, components as Li, useSnackbar as Hi, useDialog as B5, useDialogChild as X5, FmButtonVariant as Td } from "@feedmepos/ui-library";
9
+ import { u as ba } from "./vue-i18n-DVWuTfed.js";
10
+ import { a as Cd, _ as z5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
11
+ import { C as hr, g as H5, e as ti, f as jh, a as q5, _ as Uh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js";
12
+ import { u as Ua, F as Za, r as fl, a as hi, d as Lt, q as To, n as Zh, o as W5, v as j5, e as U5, w as Il, x as Yh, c as Z5, p as Y5 } from "./app-C2vt2B-i.js";
13
13
  import { detectLocale as G5, useCoreStore as Q5 } from "@feedmepos/mf-common";
14
14
  const K5 = { class: "flex flex-col" }, J5 = { class: "fm-typo-en-title-sm-600" }, _5 = { class: "grow" }, $5 = { class: "flex flex-col gap-8" }, e8 = { class: "flex flex-col w-full" }, t8 = { class: "flex flex-col gap-5 p-6" }, r8 = { class: "flex" }, xd = {
15
15
  // sales: [
@@ -400,7 +400,7 @@ const K5 = { class: "flex flex-col" }, J5 = { class: "fm-typo-en-title-sm-600" }
400
400
  // particular date
401
401
  month: a.value.months ?? [1],
402
402
  day: a.value.days ?? [1]
403
- }), u = Object.entries(hr).map(([E, k]) => ({ label: t(`report.cycle.${E}`), value: k })), h = Ke(() => U5().map((k, O) => ({ label: k, value: O + 1 }))), A = Ke(() => Array(31).fill(void 0).map((k, O) => ({ label: `${O + 1}`, value: O + 1 }))), v = [
403
+ }), u = Object.entries(hr).map(([E, k]) => ({ label: t(`report.cycle.${E}`), value: k })), h = Ke(() => H5().map((k, O) => ({ label: k, value: O + 1 }))), A = Ke(() => Array(31).fill(void 0).map((k, O) => ({ label: `${O + 1}`, value: O + 1 }))), v = [
404
404
  { label: t("report.days.sunday"), value: 0 },
405
405
  { label: t("report.days.monday"), value: 1 },
406
406
  { label: t("report.days.tuesday"), value: 2 },
@@ -807,7 +807,7 @@ const L8 = { class: "relative" }, F8 = { class: "fm-typo-en-body-lg-600 mb-2" },
807
807
  }
808
808
  );
809
809
  const ce = Ke(
810
- () => Uh(Y.value.option, t, t("report.common.default"))
810
+ () => jh(Y.value.option, t, t("report.common.default"))
811
811
  ), et = Ke(() => {
812
812
  switch (Y.value.option.type) {
813
813
  case hr.Day:
@@ -1353,7 +1353,7 @@ const L8 = { class: "relative" }, F8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1353
1353
  setup(e) {
1354
1354
  const { t: r } = ba(), t = e, a = Hi(), n = Ke(() => {
1355
1355
  var v;
1356
- return Uh((v = t.schedule) == null ? void 0 : v.option, r);
1356
+ return jh((v = t.schedule) == null ? void 0 : v.option, r);
1357
1357
  }), s = Ie(t.schedule.isActive), l = Ie(!1), o = Ie(!1), c = Ie(!1), u = ac();
1358
1358
  async function h(v) {
1359
1359
  try {
@@ -1462,7 +1462,7 @@ const L8 = { class: "relative" }, F8 = { class: "fm-typo-en-body-lg-600 mb-2" },
1462
1462
  });
1463
1463
  };
1464
1464
  }
1465
- }), f7 = /* @__PURE__ */ j5(o7, [["__scopeId", "data-v-1284dd51"]]), c7 = {
1465
+ }), f7 = /* @__PURE__ */ z5(o7, [["__scopeId", "data-v-1284dd51"]]), c7 = {
1466
1466
  key: 0,
1467
1467
  class: "flex flex-col gap-2"
1468
1468
  }, u7 = { class: "w-full flex flex-row" }, d7 = /* @__PURE__ */ tr({
@@ -29344,7 +29344,7 @@ const rV = { class: "flex flex-col gap-8 py-8" }, aV = { class: "pt-16 pb-8 flex
29344
29344
  })) : []
29345
29345
  ), a = Ke(
29346
29346
  () => r.attributes.find((u) => u.key === l.value.property)
29347
- ), { emitData: n, emitAction: s } = z5(), l = Ie({ ...r.modelValue }), o = Ie(
29347
+ ), { emitData: n, emitAction: s } = X5(), l = Ie({ ...r.modelValue }), o = Ie(
29348
29348
  r.modelValue.value && Array.isArray(r.modelValue.value) ? r.modelValue.value.join(`
29349
29349
  `) : ""
29350
29350
  );
@@ -29423,7 +29423,7 @@ const rV = { class: "flex flex-col gap-8 py-8" }, aV = { class: "pt-16 pb-8 flex
29423
29423
  },
29424
29424
  emits: ["update:model-value", "hide:sheet"],
29425
29425
  setup(e, { emit: r }) {
29426
- const t = e, a = Ie(t.modelValue), n = Ie(!1), s = r, l = X5();
29426
+ const t = e, a = Ie(t.modelValue), n = Ie(!1), s = r, l = B5();
29427
29427
  function o(u, h) {
29428
29428
  l.open({
29429
29429
  title: u.property,
@@ -33564,7 +33564,7 @@ const xV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33564
33564
  onMenuChanged: se
33565
33565
  }, {
33566
33566
  "menu-button": We(() => [
33567
- ee(Z5, {
33567
+ ee(q5, {
33568
33568
  "left-icon": "storefront",
33569
33569
  "right-icon": "expand_more",
33570
33570
  label: s.value
@@ -33762,7 +33762,7 @@ const xV = { class: "flex flex-wrap gap-2 items-start sm:flex-col lg:flex-row" }
33762
33762
  "onUpdate:modelValue": Z[3] || (Z[3] = (fe) => T.value = fe),
33763
33763
  options: X(h)
33764
33764
  }, null, 8, ["modelValue", "options"]),
33765
- ee(Zh, {
33765
+ ee(Uh, {
33766
33766
  "date-range": p.value,
33767
33767
  "onUpdate:dateRange": Z[4] || (Z[4] = (fe) => p.value = fe)
33768
33768
  }, null, 8, ["date-range"]),
@@ -33801,7 +33801,7 @@ var zV = { exports: {} };
33801
33801
  (function(e, r) {
33802
33802
  (function(t, a) {
33803
33803
  e.exports = a();
33804
- })(Yh, function() {
33804
+ })(Zh, function() {
33805
33805
  return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t) {
33806
33806
  var a = ["th", "st", "nd", "rd"], n = t % 100;
33807
33807
  return "[" + t + (a[(n - 20) % 10] || a[n] || a[0]) + "]";
@@ -33811,8 +33811,8 @@ var zV = { exports: {} };
33811
33811
  var HV = { exports: {} };
33812
33812
  (function(e, r) {
33813
33813
  (function(t, a) {
33814
- e.exports = a(Y5);
33815
- })(Yh, function(t) {
33814
+ e.exports = a(W5);
33815
+ })(Zh, function(t) {
33816
33816
  function a(l) {
33817
33817
  return l && typeof l == "object" && "default" in l ? l : { default: l };
33818
33818
  }
@@ -34137,7 +34137,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34137
34137
  setup(e) {
34138
34138
  const { t: r } = ba(), t = Pn(e, "modelValue"), a = e;
34139
34139
  async function n() {
34140
- const s = await H5(a.reportId);
34140
+ const s = await j5(a.reportId);
34141
34141
  window.open(s.redirect, "_blank");
34142
34142
  }
34143
34143
  return (s, l) => {
@@ -34232,7 +34232,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34232
34232
  }),
34233
34233
  emits: ["update:modelValue"],
34234
34234
  setup(e) {
34235
- const { breakpoints: r } = ko(), { availableFlagKeys: t } = mr(q5()), { t: a } = ba(), n = Pn(e, "modelValue"), s = e, l = [
34235
+ const { breakpoints: r } = ko(), { availableFlagKeys: t } = mr(U5()), { t: a } = ba(), n = Pn(e, "modelValue"), s = e, l = [
34236
34236
  {
34237
34237
  value: Or.AutoCount,
34238
34238
  flag: Il.report_portal_integration_autocount_export
@@ -34477,7 +34477,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34477
34477
  }
34478
34478
  }), xv = "report-jobs", nL = async (e) => {
34479
34479
  try {
34480
- return await jh.fetch({
34480
+ return await Yh.fetch({
34481
34481
  fetchType: Za.Get,
34482
34482
  url: `${e}/${xv}`
34483
34483
  });
@@ -34487,7 +34487,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34487
34487
  }, iL = async (e) => {
34488
34488
  try {
34489
34489
  const r = No(), { businessId: t } = Ua();
34490
- await jh.fetch({
34490
+ await Yh.fetch({
34491
34491
  fetchType: Za.Post,
34492
34492
  url: `${t}/${xv}/${e}/cancel`,
34493
34493
  data: { businessId: t }
@@ -34769,7 +34769,7 @@ const qV = { class: "flex flex-col gap-2" }, WV = { class: "flex gap-2 justify-c
34769
34769
  "onUpdate:modelValue": q[9] || (q[9] = (ce) => be.value = ce),
34770
34770
  options: X(U)
34771
34771
  }, null, 8, ["modelValue", "options"]),
34772
- ee(Zh, {
34772
+ ee(Uh, {
34773
34773
  "date-range": te.value,
34774
34774
  "onUpdate:dateRange": q[10] || (q[10] = (ce) => te.value = ce)
34775
34775
  }, null, 8, ["date-range"]),
@@ -35084,7 +35084,7 @@ var Ev = /* @__PURE__ */ ((e) => (e.report_insight_click_insight_card = "report_
35084
35084
  const TF = { class: "flex gap-2 py-16" }, CF = { class: "fm-typo-en-title-md-400" }, xF = ["onClickCapture"], RF = /* @__PURE__ */ tr({
35085
35085
  __name: "NavigationTab",
35086
35086
  setup(e) {
35087
- const { t: r } = ba(), t = qh(), a = Wh(), { breakpoints: n } = ko(), { navigationTabs: s, selectedNavigationTab: l, version: o } = mr(B5()), {
35087
+ const { t: r } = ba(), t = qh(), a = Wh(), { breakpoints: n } = ko(), { navigationTabs: s, selectedNavigationTab: l, version: o } = mr(Z5()), {
35088
35088
  isOpenDownloadDialog: c,
35089
35089
  currentReportId: u,
35090
35090
  currentReport: h,
@@ -35170,7 +35170,7 @@ const TF = { class: "flex gap-2 py-16" }, CF = { class: "fm-typo-en-title-md-400
35170
35170
  name: "menu",
35171
35171
  size: "md"
35172
35172
  }),
35173
- J("p", CF, Xe(X(W5)(X(l) ?? "")), 1)
35173
+ J("p", CF, Xe(X(Y5)(X(l) ?? "")), 1)
35174
35174
  ])
35175
35175
  ]),
35176
35176
  default: We(() => [
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as o, resolveComponent as d, createElementBlock as r, openBlock as a, renderSlot as f, createVNode as g, withCtx as _, createCommentVNode as y, createElementVNode as l, toDisplayString as n } from "vue";
2
- import { u as h } from "./vue-i18n-CvU0g5WR.js";
2
+ import { u as h } from "./vue-i18n-DVWuTfed.js";
3
3
  const v = { class: "flex flex-col h-full" }, D = ["src"], T = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, b = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, F = /* @__PURE__ */ u({
4
4
  __name: "NoData",
5
5
  props: {
@@ -0,0 +1,62 @@
1
+ import { defineComponent as w, computed as c, resolveComponent as $, createBlock as l, openBlock as r, withCtx as y, createVNode as u, createElementVNode as h, unref as e, normalizeStyle as C, normalizeClass as d, createElementBlock as _, Fragment as b, renderList as B } from "vue";
2
+ import { _ as F } from "./FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js";
3
+ import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-BUIcdcLn.js";
4
+ import { u as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js";
5
+ import { storeToRefs as R } from "pinia";
6
+ import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
7
+ import { useBreakpoints as V } from "@feedmepos/ui-library";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-Dtv5xe0O.js";
9
+ import { useI18n as D } from "@feedmepos/mf-common";
10
+ import { r as E } from "./i18n-CI_sQ5d_.js";
11
+ const M = /* @__PURE__ */ w({
12
+ __name: "OverviewView",
13
+ setup(H) {
14
+ const { t: n, te: f } = D(), v = P(), { breakpoints: o } = V(), { isOpenDownloadDialog: g, overviewReport: a } = R(v), s = c(() => {
15
+ var t;
16
+ return ((t = a.value) == null ? void 0 : t.tiles) || [];
17
+ }), x = c(() => {
18
+ var t;
19
+ return E(n, f, (t = a.value) == null ? void 0 : t.name, "other");
20
+ });
21
+ return (t, i) => {
22
+ const k = $("FmPageHead");
23
+ return r(), l(L, null, {
24
+ default: y(() => [
25
+ u(k, {
26
+ title: x.value,
27
+ class: "h-[68px]",
28
+ actions: [
29
+ {
30
+ label: e(n)("report.common.download"),
31
+ value: "download",
32
+ isPrimary: !0,
33
+ prependIcon: "download"
34
+ }
35
+ ],
36
+ "onClick:action": i[0] || (i[0] = (m) => g.value = !0)
37
+ }, null, 8, ["title", "actions"]),
38
+ u(z),
39
+ h("div", {
40
+ class: d(`flex flex-col gap-2 ${e(o).sm || e(o).xs ? "mb-20" : ""}`),
41
+ style: C({ height: `calc(100% - ${e(o).lg || e(o).md ? 72 : 64}px)` })
42
+ }, [
43
+ s.value.length > 0 && e(a) ? (r(), _("div", {
44
+ key: 0,
45
+ class: d(["grid grid-cols-12", e(o).sm || e(o).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
46
+ }, [
47
+ (r(!0), _(b, null, B(s.value, (m, p) => (r(), l(F, {
48
+ key: `widget_${e(a).id}_${p}`,
49
+ "model-value": m,
50
+ index: p
51
+ }, null, 8, ["model-value", "index"]))), 128))
52
+ ], 2)) : (r(), l(S, { key: 1 }))
53
+ ], 6)
54
+ ]),
55
+ _: 1
56
+ });
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ M as default
62
+ };
@@ -1,18 +1,19 @@
1
1
  import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as k, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as x, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Pe, toDisplayString as J, createTextVNode as Le, vShow as Q } from "vue";
2
2
  import { storeToRefs as de } from "pinia";
3
- import { a as Ne, u as Ve, c as Ae } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js";
4
- import { _ as Je } from "./Default.vue_vue_type_script_setup_true_lang-C55xh4bx.js";
5
- import { u as ze } from "./message-dialog-UoMWOnil.js";
6
- import { b as fe, e as Be } from "./vue-i18n-CvU0g5WR.js";
7
- import { useSnackbar as Te, useBreakpoints as Ue, components as Ee, FmButtonColorThemeVariant as Ke } from "@feedmepos/ui-library";
8
- import { _ as Me } from "./NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js";
3
+ import { u as Ne } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js";
4
+ import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-BUIcdcLn.js";
5
+ import { u as Ae } from "./message-dialog-UoMWOnil.js";
6
+ import { a as Je } from "./vue-i18n-DVWuTfed.js";
7
+ import { useSnackbar as ze, useBreakpoints as Be, components as Te, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
8
+ import { _ as Ee } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
9
+ import { c as Ke, a as fe, g as Me } from "./app-C2vt2B-i.js";
9
10
  import { useRouter as Ye, useRoute as qe, onBeforeRouteLeave as je } from "vue-router";
10
11
  import { useI18n as Ge } from "@feedmepos/mf-common";
11
12
  import { r as W } from "./i18n-CI_sQ5d_.js";
12
- const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe = { class: "w-[343px]" }, We = { class: "fm-typo-en-body-md-600" }, ut = /* @__PURE__ */ $e({
13
+ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe = { class: "w-[343px]" }, We = { class: "fm-typo-en-body-md-600" }, mt = /* @__PURE__ */ $e({
13
14
  __name: "Report",
14
15
  setup(Xe) {
15
- const { t: a, te: z } = Ge(), X = Ye(), Z = qe(), d = Ne(), ve = Ve(), { business: ge } = de(fe()), {
16
+ const { t: a, te: z } = Ge(), X = Ye(), Z = qe(), d = Ne(), ve = Ke(), { business: ge } = de(fe()), {
16
17
  reports: f,
17
18
  overviewReport: B,
18
19
  categories: D,
@@ -21,7 +22,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
21
22
  scrollPositionY: ee,
22
23
  customReportQuota: F,
23
24
  canCreateCustomReport: te
24
- } = de(d), { promptMessage: oe } = ze(), { promptLoader: T } = Be(), i = Te(), { breakpoints: u } = Ue(), { canRead: ae, canUpdate: re, canDuplicate: be, canDelete: ne, canCreateReport: we } = Ae(), C = j();
25
+ } = de(d), { promptMessage: oe } = Ae(), { promptLoader: T } = Je(), i = ze(), { breakpoints: u } = Be(), { canRead: ae, canUpdate: re, canDuplicate: be, canDelete: ne, canCreateReport: we } = Me(), C = j();
25
26
  je(() => {
26
27
  C.value && (ee.value = C.value.$el.children[0].scrollTop);
27
28
  }), pe(C, () => {
@@ -42,7 +43,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
42
43
  );
43
44
  const se = b(() => U.value.length > 0 ? f.value.filter(
44
45
  (o) => U.value.findIndex((t) => t.id === o.id) === -1
45
- ) : f.value), { FmButton: Ce, FmMenu: E, FmMenuItem: h, FmIcon: K, FmChip: M } = Ee, le = b(() => [
46
+ ) : f.value), { FmButton: Ce, FmMenu: E, FmMenuItem: h, FmIcon: K, FmChip: M } = Te, le = b(() => [
46
47
  { value: void 0, label: "All" },
47
48
  ...D.value.map((o) => ({
48
49
  value: o.id,
@@ -226,7 +227,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
226
227
  variant: "tertiary",
227
228
  size: "md",
228
229
  icon: "more_vert",
229
- iconColor: Ke.NeutralGray400,
230
+ iconColor: Ue.NeutralGray400,
230
231
  disabled: !1
231
232
  },
232
233
  {}
@@ -341,7 +342,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
341
342
  const { selectedLocationIds: _, dateRange: P, compareDateRange: L, timeRange: v, locations: _e } = fe(), N = b(() => _.length === _e.length);
342
343
  return (o, t) => {
343
344
  const r = k("FmPageHead"), l = k("FmSearch"), q = k("FmForm"), S = k("FmListItem"), $ = k("FmList"), V = k("FmTable");
344
- return A(), G(Je, null, {
345
+ return A(), G(Ve, null, {
345
346
  default: m(() => [
346
347
  c(r, {
347
348
  title: e(a)("report.common.report", 1),
@@ -554,7 +555,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
554
555
  }, 8, ["class", "column-defs", "row-data", "page-size"])), [
555
556
  [Q, R.value.length > 0]
556
557
  ]),
557
- H(c(Me, null, null, 512), [
558
+ H(c(Ee, null, null, 512), [
558
559
  [Q, R.value.length === 0]
559
560
  ])
560
561
  ], 6)
@@ -565,5 +566,5 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
565
566
  }
566
567
  });
567
568
  export {
568
- ut as default
569
+ mt as default
569
570
  };
@@ -1,15 +1,16 @@
1
1
  import { defineComponent as be, mergeModels as fe, useModel as ge, ref as I, computed as U, resolveComponent as y, createBlock as T, openBlock as r, withCtx as p, createElementVNode as h, createVNode as a, unref as t, normalizeClass as xe, createTextVNode as Ee, toDisplayString as Q, createElementBlock as C, Fragment as Z, renderSlot as Ge, createCommentVNode as A, watch as ve, renderList as me, resolveDynamicComponent as sl, isRef as Ke, normalizeStyle as Pe, onMounted as ul } from "vue";
2
- import { W as dl, g as ml, _ as cl, a as pl, i as vl, S as Le, d as He, T as fl, b as gl } from "./TransitionFade-DbsPAg2T.js";
3
- import { C as pe, D as K, d as we, a as Qe, b as bl, v as Te } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js";
2
+ import { W as dl, g as ml, _ as cl, a as pl, i as vl, S as Le, d as He, T as fl, b as gl } from "./TransitionFade-D2bsz2iV.js";
3
+ import { C as pe, D as K, b as we, u as Qe, a as bl, v as Te } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js";
4
4
  import { storeToRefs as Be } from "pinia";
5
5
  import { useRouter as Xe, useRoute as Ye } from "vue-router";
6
6
  import { useBreakpoints as De, useSnackbar as Ze, FmButtonColorThemeVariant as Fe } from "@feedmepos/ui-library";
7
7
  import { u as el } from "./message-dialog-UoMWOnil.js";
8
- import { u as Se, b as yl, h as Ie, e as hl } from "./vue-i18n-CvU0g5WR.js";
8
+ import { u as Se, a as yl } from "./vue-i18n-DVWuTfed.js";
9
9
  import { r as Oe } from "./i18n-CI_sQ5d_.js";
10
- import { g as _l, a as je, _ as qe } from "./FilterSelector.vue_vue_type_script_setup_true_lang-D2K2ghV_.js";
11
- import { _ as We } from "./NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js";
12
- import { a as ze } from "./SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js";
10
+ import { g as hl, a as je, _ as Ie } from "./FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js";
11
+ import { _ as qe } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
12
+ import { a as We } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
13
+ import { a as _l, i as ze } from "./app-C2vt2B-i.js";
13
14
  const wl = /* @__PURE__ */ be({
14
15
  __name: "WidgetDialog",
15
16
  props: /* @__PURE__ */ fe({
@@ -212,7 +213,7 @@ const wl = /* @__PURE__ */ be({
212
213
  }
213
214
  function ce(l) {
214
215
  if (s.value)
215
- return _l({
216
+ return hl({
216
217
  operator: l ?? re(),
217
218
  dataType: s.value.type,
218
219
  dimensionOption: s.value.type === K.Timestamp ? B.value ?? null : null,
@@ -504,14 +505,14 @@ const wl = /* @__PURE__ */ be({
504
505
  label: t(n)("report.section.filter.displayName"),
505
506
  class: "mb-2"
506
507
  }, null, 8, ["modelValue", "placeholder", "label"]),
507
- a(ze, {
508
+ a(We, {
508
509
  "model-value": w.value,
509
510
  items: Ve.value,
510
511
  placeholder: t(n)("report.section.schema.title"),
511
512
  label: t(n)("report.section.schema.title"),
512
513
  "onUpdate:modelValue": e[1] || (e[1] = (g) => se(g))
513
514
  }, null, 8, ["model-value", "items", "placeholder", "label"]),
514
- a(ze, {
515
+ a(We, {
515
516
  "model-value": s.value,
516
517
  items: ke.value,
517
518
  placeholder: t(n)("report.section.dimension.title"),
@@ -564,7 +565,7 @@ const wl = /* @__PURE__ */ be({
564
565
  ])
565
566
  ]))), 128)) : (r(), C(Z, { key: 1 }, [
566
567
  h("p", Ol, Q(t(n)("report.section.filter.operator")), 1),
567
- ne.value.length > 0 ? (r(), T(ze, {
568
+ ne.value.length > 0 ? (r(), T(We, {
568
569
  key: 0,
569
570
  "model-value": L.value,
570
571
  items: ne.value,
@@ -706,7 +707,7 @@ const wl = /* @__PURE__ */ be({
706
707
  editingTileIndex: D,
707
708
  editingGlobalFilter: P,
708
709
  editingGlobalFilterIndex: _
709
- } = Be(Qe()), { schemas: x } = Be(bl()), { globalFilters: S } = Be(yl()), { promptMessage: N } = el(), L = I(!1), te = I(!1), { t: f, te: ee, locale: ye } = Se(), Y = I(void 0), G = U(() => {
710
+ } = Be(Qe()), { schemas: x } = Be(bl()), { globalFilters: S } = Be(_l()), { promptMessage: N } = el(), L = I(!1), te = I(!1), { t: f, te: ee, locale: ye } = Se(), Y = I(void 0), G = U(() => {
710
711
  const m = i.value.tiles.flatMap((o) => {
711
712
  var W;
712
713
  const J = o.widget.config.schemaNames ?? [], q = ((W = o.widget.config.joinDatasources) == null ? void 0 : W.flatMap((oe) => oe.schemaNames ?? [])) ?? [];
@@ -816,7 +817,7 @@ const wl = /* @__PURE__ */ be({
816
817
  await N({
817
818
  title: f("report.editor.deleteWidget"),
818
819
  message: f("report.editor.deleteWidgetConfirm", {
819
- title: Ie(o)
820
+ title: ze(o)
820
821
  })
821
822
  }) && ((W = i.value.globalFilters) == null || W.splice(m, 1));
822
823
  }
@@ -941,11 +942,11 @@ const wl = /* @__PURE__ */ be({
941
942
  h("div", Dl, [
942
943
  a(he, {
943
944
  "z-index": 99,
944
- content: t(Ie)(F),
945
+ content: t(ze)(F),
945
946
  class: "handle"
946
947
  }, {
947
948
  default: p(() => [
948
- h("p", Rl, Q(t(Ie)(F)), 1)
949
+ h("p", Rl, Q(t(ze)(F)), 1)
949
950
  ]),
950
951
  _: 2
951
952
  }, 1032, ["content"]),
@@ -1172,13 +1173,13 @@ const wl = /* @__PURE__ */ be({
1172
1173
  h("div", Ll, [
1173
1174
  a(je)
1174
1175
  ]),
1175
- (r(!0), C(Z, null, me(u.value.tiles, (_, x) => (r(), T(qe, {
1176
+ (r(!0), C(Z, null, me(u.value.tiles, (_, x) => (r(), T(Ie, {
1176
1177
  key: `${t(Te)()}_${x}`,
1177
1178
  "model-value": _,
1178
1179
  index: x,
1179
1180
  "hide-export": !0
1180
1181
  }, null, 8, ["model-value", "index"]))), 128))
1181
- ])) : (r(), T(We, { key: 1 }))
1182
+ ])) : (r(), T(qe, { key: 1 }))
1182
1183
  ])) : O.value && !v.value ? (r(), C("div", Hl, [
1183
1184
  a(P, { class: "px-5 pb-28" }, {
1184
1185
  default: p(() => [
@@ -1186,13 +1187,13 @@ const wl = /* @__PURE__ */ be({
1186
1187
  h("div", Al, [
1187
1188
  a(je)
1188
1189
  ]),
1189
- (r(!0), C(Z, null, me(u.value.tiles, (_, x) => (r(), T(qe, {
1190
+ (r(!0), C(Z, null, me(u.value.tiles, (_, x) => (r(), T(Ie, {
1190
1191
  key: `${t(Te)()}_${x}`,
1191
1192
  "model-value": _,
1192
1193
  index: x,
1193
1194
  "hide-export": !0
1194
1195
  }, null, 8, ["model-value", "index"]))), 128))
1195
- ])) : (r(), T(We, { key: 1 }))
1196
+ ])) : (r(), T(qe, { key: 1 }))
1196
1197
  ]),
1197
1198
  _: 1
1198
1199
  }),
@@ -1220,14 +1221,14 @@ const wl = /* @__PURE__ */ be({
1220
1221
  })
1221
1222
  }, [
1222
1223
  u.value.tiles.length > 0 ? (r(), C("div", Kl, [
1223
- (r(!0), C(Z, null, me(u.value.tiles, (_, x) => (r(), T(qe, {
1224
+ (r(!0), C(Z, null, me(u.value.tiles, (_, x) => (r(), T(Ie, {
1224
1225
  key: `${t(Te)()}_${x}`,
1225
1226
  "model-value": _,
1226
1227
  index: x,
1227
1228
  "hide-export": !0,
1228
1229
  "custom-screen-width": V.previewWidth
1229
1230
  }, null, 8, ["model-value", "index", "custom-screen-width"]))), 128))
1230
- ])) : (r(), T(We, { key: 1 }))
1231
+ ])) : (r(), T(qe, { key: 1 }))
1231
1232
  ], 4)
1232
1233
  ], 4)
1233
1234
  ]))
@@ -1235,10 +1236,10 @@ const wl = /* @__PURE__ */ be({
1235
1236
  ]);
1236
1237
  };
1237
1238
  }
1238
- }), Xl = { class: "flex items-center gap-4" }, Yl = { class: "flex justify-center items-center gap-2 w-full" }, Zl = { class: "flex gap-4" }, ct = /* @__PURE__ */ be({
1239
+ }), Xl = { class: "flex items-center gap-4" }, Yl = { class: "flex justify-center items-center gap-2 w-full" }, Zl = { class: "flex gap-4" }, pt = /* @__PURE__ */ be({
1239
1240
  __name: "ReportEditor",
1240
1241
  setup(M) {
1241
- const n = Xe(), i = Ye(), u = Qe(), { promptLoader: V } = hl(), { t: v, te: O } = Se(), { currentReport: E, editingReport: w } = Be(u), { breakpoints: s } = De(), B = U(() => {
1242
+ const n = Xe(), i = Ye(), u = Qe(), { promptLoader: V } = yl(), { t: v, te: O } = Se(), { currentReport: E, editingReport: w } = Be(u), { breakpoints: s } = De(), B = U(() => {
1242
1243
  var $;
1243
1244
  return !(($ = w.value) != null && $.editable);
1244
1245
  }), X = U(() => {
@@ -1388,5 +1389,5 @@ const wl = /* @__PURE__ */ be({
1388
1389
  }
1389
1390
  });
1390
1391
  export {
1391
- ct as default
1392
+ pt as default
1392
1393
  };