@feedmepos/mf-report 5.21.46 → 5.21.49

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 (25) hide show
  1. package/dist/App-CLWWLcFU.js +279 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js → BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js} +3 -3
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-tB8numVw.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BrmY2Rup.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Cfl5Ct4b.js → Default.vue_vue_type_script_setup_true_lang-D6QYade6.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DuhjAzQP.js → FilterSelector.vue_vue_type_script_setup_true_lang-Cs2STHSZ.js} +6 -6
  6. package/dist/{InsightView-DkIcQpCD.js → InsightView-DKmhchZX.js} +6 -6
  7. package/dist/{Integration-C0f0Q2os.js → Integration-Dtixz4GZ.js} +3 -3
  8. package/dist/{Integrations-BM_vRj0F.js → Integrations-Bepr1f-w.js} +3 -3
  9. package/dist/{Layout-C4YVePzi.js → Layout-CaBt14Gw.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-a72Tflwl.js → MenuTab.vue_vue_type_script_setup_true_lang-BU8ACjnx.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-5oGeza_s.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cxihp1iy.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-DYFzIaeX.js → NoData.vue_vue_type_script_setup_true_lang-BTjlmBtv.js} +1 -1
  13. package/dist/{OverviewView-AKRzXwKb.js → OverviewView-DhJs2S4h.js} +5 -5
  14. package/dist/{Report-aKG6wWUi.js → Report-B1Hm3FxI.js} +4 -4
  15. package/dist/{ReportEditor-ZRBQHo6K.js → ReportEditor-BsHh4C9W.js} +6 -6
  16. package/dist/{ReportView-cWqrG_Nd.js → ReportView-DWSEvgCp.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-J0guqNmX.js → SelectComponent.vue_vue_type_script_setup_true_lang-DQBXTDxS.js} +1 -1
  18. package/dist/{Setting-BXEPHSGB.js → Setting-CaWLJxWT.js} +5 -5
  19. package/dist/{TileEditor-Bqhu78EZ.js → TileEditor-MmzX96u0.js} +8 -8
  20. package/dist/{TransitionFade-CXHZsIPF.js → TransitionFade-CoJpT4sl.js} +6 -6
  21. package/dist/{app-Fb6OY58U.js → app-CKnE3Rw-.js} +11 -11
  22. package/dist/app.js +1 -1
  23. package/dist/{vue-i18n-DLsuRxx8.js → vue-i18n-C0wbv9TD.js} +1 -1
  24. package/package.json +1 -1
  25. package/dist/App-DUh6U-OB.js +0 -272
@@ -1,5 +1,5 @@
1
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-Cfl5Ct4b.js";
2
+ import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-D6QYade6.js";
3
3
  const f = /* @__PURE__ */ o({
4
4
  __name: "Layout",
5
5
  setup(m) {
@@ -1,10 +1,10 @@
1
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-DLsuRxx8.js";
2
+ import { b as B } from "./vue-i18n-C0wbv9TD.js";
3
3
  import { storeToRefs as D } from "pinia";
4
- import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-5oGeza_s.js";
5
- import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-tB8numVw.js";
6
- import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
7
- import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DuhjAzQP.js";
4
+ import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cxihp1iy.js";
5
+ import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BrmY2Rup.js";
6
+ import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
7
+ import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Cs2STHSZ.js";
8
8
  import { useRoute as z } from "vue-router";
9
9
  import { useBreakpoints as E } from "@feedmepos/ui-library";
10
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({
@@ -4,12 +4,12 @@ var Pl = (e, r, t) => S5(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { defineComponent as tr, computed as tt, useModel as En, ref as De, watch as Gr, resolveComponent as pe, createBlock as Ze, unref as X, openBlock as ae, withCtx as ze, createElementVNode as J, createVNode as _, toDisplayString as He, withDirectives as ni, createElementBlock as Ve, Fragment as mt, renderList as Xt, vShow as rs, createTextVNode as $r, mergeModels as fi, createCommentVNode as dt, normalizeClass as ci, onMounted as n0, withKeys as Xh, withModifiers as ii, isRef as ti, vModelText as zh, normalizeStyle as i0, 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 Or, defineStore as s0 } from "pinia";
7
- import { a as sl, k as kd, l as V5, h as Ul, R as gn, j as l0, m as o0, _ as f0, d as L5, v as F5, i as N5, r as M5, n as Ln, o as R5, u as B5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
7
+ import { a as sl, k as kd, l as V5, h as Ul, R as gn, j as l0, m as o0, _ as f0, d as L5, v as F5, i as N5, r as M5, n as Ln, o as R5, u as B5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
8
8
  import { useBreakpoints as yo, components as Ii, useSnackbar as ms, useDialog as X5, useDialogChild as z5, FmButtonVariant as Td } from "@feedmepos/ui-library";
9
- import { u as ba, a as fn, F as cn, r as wo, b as Xi, q as bo, j as H5, d as q5, k as Sl, l as jh, p as W5 } from "./vue-i18n-DLsuRxx8.js";
10
- import { a as xd, _ as j5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-J0guqNmX.js";
11
- import { C as hr, g as U5, e as ei, f as Uh, a as Z5, _ as Zh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-tB8numVw.js";
12
- import { d as Lt, c as Yh, a as Y5 } from "./app-Fb6OY58U.js";
9
+ import { u as ba, a as fn, F as cn, r as wo, b as Xi, q as bo, j as H5, d as q5, k as Sl, l as jh, p as W5 } from "./vue-i18n-C0wbv9TD.js";
10
+ import { a as xd, _ as j5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DQBXTDxS.js";
11
+ import { C as hr, g as U5, e as ei, f as Uh, a as Z5, _ as Zh } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BrmY2Rup.js";
12
+ import { d as Lt, c as Yh, a as Y5 } from "./app-CKnE3Rw-.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" }, Cd = {
15
15
  // sales: [
@@ -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-DLsuRxx8.js";
2
+ import { u as h } from "./vue-i18n-C0wbv9TD.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: {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as k, computed as w, resolveComponent as $, createBlock as n, openBlock as t, withCtx as y, createVNode as d, createElementVNode as h, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as b, renderList as B } from "vue";
2
- import { _ as F } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DuhjAzQP.js";
3
- import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-Cfl5Ct4b.js";
4
- import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
2
+ import { _ as F } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Cs2STHSZ.js";
3
+ import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-D6QYade6.js";
4
+ import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
5
5
  import { storeToRefs as R } from "pinia";
6
- import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-DYFzIaeX.js";
6
+ import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-BTjlmBtv.js";
7
7
  import { useBreakpoints as V } from "@feedmepos/ui-library";
8
- import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-a72Tflwl.js";
8
+ import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-BU8ACjnx.js";
9
9
  import { useI18n as D } from "@feedmepos/mf-common";
10
10
  import { r as E } from "./i18n-7InkCBCc.js";
11
11
  const M = /* @__PURE__ */ k({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ke, ref as U, watch as ce, computed as k, h as y, withModifiers as we, resolveComponent as w, createBlock as j, openBlock as A, withCtx as i, createVNode as s, createElementVNode as b, unref as e, normalizeStyle as xe, normalizeClass as x, withDirectives as G, createElementBlock as _e, Fragment as Ie, renderList as $e, toDisplayString as J, createTextVNode as Re, vShow as H } from "vue";
2
2
  import { storeToRefs as ie } from "pinia";
3
- import { a as De, u as Fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
4
- import { _ as Oe } from "./Default.vue_vue_type_script_setup_true_lang-Cfl5Ct4b.js";
3
+ import { a as De, u as Fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
4
+ import { _ as Oe } from "./Default.vue_vue_type_script_setup_true_lang-D6QYade6.js";
5
5
  import { u as Le } from "./message-dialog-UoMWOnil.js";
6
- import { b as ue, e as Ne } from "./vue-i18n-DLsuRxx8.js";
6
+ import { b as ue, e as Ne } from "./vue-i18n-C0wbv9TD.js";
7
7
  import { useSnackbar as Ve, useBreakpoints as Ae, components as Je, FmButtonColorThemeVariant as ze } from "@feedmepos/ui-library";
8
- import { _ as Pe } from "./NoData.vue_vue_type_script_setup_true_lang-DYFzIaeX.js";
8
+ import { _ as Pe } from "./NoData.vue_vue_type_script_setup_true_lang-BTjlmBtv.js";
9
9
  import { useRouter as Te, useRoute as Be, onBeforeRouteLeave as Ee } from "vue-router";
10
10
  import { useI18n as Ke } from "@feedmepos/mf-common";
11
11
  import { r as me } from "./i18n-7InkCBCc.js";
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as K, mergeModels as G, useModel as A, ref as I, computed as U, resolveComponent as f, createBlock as k, openBlock as u, withCtx as m, createElementVNode as h, createVNode as o, unref as l, normalizeClass as ue, createTextVNode as _e, toDisplayString as z, createElementBlock as T, Fragment as j, renderSlot as Oe, createCommentVNode as J, watch as pe, renderList as ee, resolveDynamicComponent as We, isRef as Ne, normalizeStyle as we, onMounted as Re } from "vue";
2
- import { W as qe, g as Ee, _ as Pe, i as ze, S as Ve, d as Ce, T as Je, a as Le } from "./TransitionFade-CXHZsIPF.js";
3
- import { D as H, c as ce, C as ge, a as Me, b as He, v as se } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
2
+ import { W as qe, g as Ee, _ as Pe, i as ze, S as Ve, d as Ce, T as Je, a as Le } from "./TransitionFade-CoJpT4sl.js";
3
+ import { D as H, c as ce, C as ge, a as Me, b as He, v as se } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
4
4
  import { storeToRefs as ve } from "pinia";
5
5
  import { useRouter as Ue, useRoute as De } from "vue-router";
6
6
  import { useBreakpoints as fe, useSnackbar as Be, FmButtonColorThemeVariant as re } from "@feedmepos/ui-library";
7
7
  import { u as Ie } from "./message-dialog-UoMWOnil.js";
8
- import { u as de, b as je, h as be, e as Ge } from "./vue-i18n-DLsuRxx8.js";
9
- import { a as Se, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DuhjAzQP.js";
10
- import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-DYFzIaeX.js";
8
+ import { u as de, b as je, h as be, e as Ge } from "./vue-i18n-C0wbv9TD.js";
9
+ import { a as Se, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Cs2STHSZ.js";
10
+ import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-BTjlmBtv.js";
11
11
  import { r as Fe } from "./i18n-7InkCBCc.js";
12
- import { a as $e } from "./SelectComponent.vue_vue_type_script_setup_true_lang-J0guqNmX.js";
12
+ import { a as $e } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DQBXTDxS.js";
13
13
  const Ae = /* @__PURE__ */ K({
14
14
  __name: "WidgetDialog",
15
15
  props: /* @__PURE__ */ G({
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as ee, ref as y, computed as p, watch as A, onMounted as oe, onUnmounted as te, resolveComponent as re, createBlock as k, openBlock as m, withCtx as ae, createVNode as N, createElementVNode as B, unref as a, normalizeStyle as ne, normalizeClass as T, createElementBlock as q, Fragment as le, renderList as se } from "vue";
2
- import { _ as ie } from "./MenuTab.vue_vue_type_script_setup_true_lang-a72Tflwl.js";
3
- import { _ as ue } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DuhjAzQP.js";
2
+ import { _ as ie } from "./MenuTab.vue_vue_type_script_setup_true_lang-BU8ACjnx.js";
3
+ import { _ as ue } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Cs2STHSZ.js";
4
4
  import { useRouter as ce, useRoute as pe } from "vue-router";
5
- import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-Cfl5Ct4b.js";
6
- import { a as de } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
5
+ import { _ as me } from "./Default.vue_vue_type_script_setup_true_lang-D6QYade6.js";
6
+ import { a as de } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
7
7
  import { storeToRefs as b } from "pinia";
8
- import { b as fe, c as ve, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-5oGeza_s.js";
9
- import { _ as be } from "./NoData.vue_vue_type_script_setup_true_lang-DYFzIaeX.js";
8
+ import { b as fe, c as ve, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cxihp1iy.js";
9
+ import { _ as be } from "./NoData.vue_vue_type_script_setup_true_lang-BTjlmBtv.js";
10
10
  import { useSnackbar as _e, useBreakpoints as we } from "@feedmepos/ui-library";
11
- import { u as ke, e as Se, d as Ce } from "./vue-i18n-DLsuRxx8.js";
11
+ import { u as ke, e as Se, d as Ce } from "./vue-i18n-C0wbv9TD.js";
12
12
  import { u as he } from "./message-dialog-UoMWOnil.js";
13
13
  import { r as xe } from "./i18n-7InkCBCc.js";
14
- import { _ as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-J0guqNmX.js";
14
+ import { _ as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DQBXTDxS.js";
15
15
  const De = /* @__PURE__ */ ee({
16
16
  __name: "ReportView",
17
17
  setup(Oe) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, mergeModels as D, useModel as z, ref as b, computed as f, resolveComponent as n, createBlock as y, openBlock as _, withCtx as m, createElementVNode as c, normalizeStyle as L, withDirectives as U, createElementBlock as $, createVNode as d, unref as E, vShow as H, Fragment as N, renderList as O, toDisplayString as g, normalizeClass as q } from "vue";
2
- import { u as A } from "./vue-i18n-DLsuRxx8.js";
2
+ import { u as A } from "./vue-i18n-C0wbv9TD.js";
3
3
  const K = (s, u) => {
4
4
  const t = s.__vccOpts || s;
5
5
  for (const [o, i] of u)
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as B, ref as H, useModel as J, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as K, renderList as Q, withDirectives as M, createTextVNode as ie, vShow as j, watch as me, normalizeStyle as ue } from "vue";
2
- import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-Cfl5Ct4b.js";
3
- import { d as z } from "./app-Fb6OY58U.js";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-D6QYade6.js";
3
+ import { d as z } from "./app-CKnE3Rw-.js";
4
4
  import { components as I, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as A } from "@feedmepos/ui-library";
5
- import { t as N, s as pe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
5
+ import { t as N, s as pe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
6
6
  import { u as ce } from "./message-dialog-UoMWOnil.js";
7
- import { u as U, C as G, D as fe, b as ve } from "./vue-i18n-DLsuRxx8.js";
7
+ import { u as U, C as G, D as fe, b as ve } from "./vue-i18n-C0wbv9TD.js";
8
8
  import { detectLocale as F } from "@feedmepos/mf-common";
9
- import { a as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-J0guqNmX.js";
9
+ import { a as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DQBXTDxS.js";
10
10
  import { storeToRefs as _e } from "pinia";
11
11
  const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex px-5 gap-2" }, xe = { class: "flex flex-col gap-2" }, be = { class: "fm-typo-en-title-sm-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "w-full gap-[24px] flex flex-col pt-2" }, Te = { class: "flex items-center w-full gap-3" }, De = { class: "text-fm-color-typo-primary" }, $e = { class: "text-fm-color-typo-secondary" }, Se = { class: "flex items-center gap-2" }, ke = /* @__PURE__ */ B({
12
12
  __name: "ReportHour",
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as q, mergeModels as K, useModel as ee, computed as T, ref as H, resolveComponent as k, createElementBlock as R, openBlock as b, createVNode as u, createElementVNode as F, unref as l, withCtx as N, toDisplayString as j, Fragment as oe, renderList as pe, withModifiers as ne, createTextVNode as ve, watch as re, createCommentVNode as U, createBlock as D, onUnmounted as qe, renderSlot as Be, onMounted as Se, onBeforeUnmount as He, resolveDynamicComponent as je, normalizeClass as ze, withDirectives as se, vShow as ue, normalizeStyle as Ye, isRef as Ge } from "vue";
2
2
  import { useRoute as Je, useRouter as Ke } from "vue-router";
3
- import { h as Qe, d as we, S as ke, _ as Ze, W as el, b as ll, T as ol, a as tl } from "./TransitionFade-CXHZsIPF.js";
4
- import { W as z, b as Re, d as fe, D as al, S as Ue, C as nl, P as Ne, a as il } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
3
+ import { h as Qe, d as we, S as ke, _ as Ze, W as el, b as ll, T as ol, a as tl } from "./TransitionFade-CoJpT4sl.js";
4
+ import { W as z, b as Re, d as fe, D as al, S as Ue, C as nl, P as Ne, a as il } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
5
5
  import { storeToRefs as de } from "pinia";
6
6
  import { u as Me } from "./message-dialog-UoMWOnil.js";
7
- import { u as J, i as me, b as Pe, g as sl } from "./vue-i18n-DLsuRxx8.js";
7
+ import { u as J, i as me, b as Pe, g as sl } from "./vue-i18n-C0wbv9TD.js";
8
8
  import { useSnackbar as ul, useBreakpoints as Ae, FmButtonColorThemeVariant as Oe } from "@feedmepos/ui-library";
9
- import { a as Z } from "./SelectComponent.vue_vue_type_script_setup_true_lang-J0guqNmX.js";
9
+ import { a as Z } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DQBXTDxS.js";
10
10
  import { r as Y } from "./i18n-7InkCBCc.js";
11
- import { g as ce, u as ye, L as ie, b as be, c as rl, Y as dl, X as ml, _ as Xe, a as cl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DuhjAzQP.js";
12
- import { d as he } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-tB8numVw.js";
13
- import { d as ge } from "./app-Fb6OY58U.js";
14
- import { _ as Ee } from "./NoData.vue_vue_type_script_setup_true_lang-DYFzIaeX.js";
11
+ import { g as ce, u as ye, L as ie, b as be, c as rl, Y as dl, X as ml, _ as Xe, a as cl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Cs2STHSZ.js";
12
+ import { d as he } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BrmY2Rup.js";
13
+ import { d as ge } from "./app-CKnE3Rw-.js";
14
+ import { _ as Ee } from "./NoData.vue_vue_type_script_setup_true_lang-BTjlmBtv.js";
15
15
  const Fe = [
16
16
  {
17
17
  type: z.Circular,
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as Te, onBeforeMount as In, onBeforeUnmount as Fn, resolveComponent as A, createElementBlock as ee, openBlock as P, normalizeStyle as kn, unref as X, renderSlot as ze, createVNode as k, createElementVNode as he, toDisplayString as Ae, TransitionGroup as An, nextTick as tn, h as Rt, mergeModels as Nt, useModel as Ge, computed as Fe, Fragment as qe, renderList as nn, createBlock as Pe, normalizeClass as Nn, withCtx as re, createTextVNode as on, Transition as xt, createCommentVNode as ue, ref as Se, watch as pt, withModifiers as Xt } from "vue";
2
- import { u as Pt, e as Pn, p as Vn, i as rn } from "./vue-i18n-DLsuRxx8.js";
2
+ import { u as Pt, e as Pn, p as Vn, i as rn } from "./vue-i18n-C0wbv9TD.js";
3
3
  import { useCoreStore as Mn } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as Ln } from "pinia";
5
5
  import { useRoute as $n } from "vue-router";
6
- import { W as $, c as De, d as Bn } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
7
- import { _ as Vt, a as Yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-J0guqNmX.js";
8
- import { R as Rn, I as $e, d as an, e as ln, f as Xn } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DuhjAzQP.js";
9
- import { d as ht } from "./app-Fb6OY58U.js";
6
+ import { W as $, c as De, d as Bn } from "./BaseDialog.vue_vue_type_script_setup_true_lang-GYfq__LU.js";
7
+ import { _ as Vt, a as Yt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DQBXTDxS.js";
8
+ import { R as Rn, I as $e, d as an, e as ln, f as Xn } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Cs2STHSZ.js";
9
+ import { d as ht } from "./app-CKnE3Rw-.js";
10
10
  import { r as Yn } from "./i18n-7InkCBCc.js";
11
11
  import { useSnackbar as Wn } from "@feedmepos/ui-library";
12
- import { d as Un } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-tB8numVw.js";
12
+ import { d as Un } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BrmY2Rup.js";
13
13
  const jn = {
14
14
  key: 0,
15
15
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
@@ -6266,51 +6266,51 @@ const Ue = [
6266
6266
  path: "/overview",
6267
6267
  alias: ["/"],
6268
6268
  name: "overview",
6269
- component: () => import("./OverviewView-AKRzXwKb.js")
6269
+ component: () => import("./OverviewView-DhJs2S4h.js")
6270
6270
  },
6271
6271
  {
6272
6272
  path: "/report",
6273
6273
  name: "reports",
6274
- component: () => import("./Report-aKG6wWUi.js")
6274
+ component: () => import("./Report-B1Hm3FxI.js")
6275
6275
  },
6276
6276
  {
6277
6277
  path: "/insights",
6278
6278
  name: "insights",
6279
- component: () => import("./InsightView-DkIcQpCD.js")
6279
+ component: () => import("./InsightView-DKmhchZX.js")
6280
6280
  },
6281
6281
  {
6282
6282
  path: "/report-view",
6283
6283
  name: "reportView",
6284
- component: () => import("./ReportView-cWqrG_Nd.js")
6284
+ component: () => import("./ReportView-DWSEvgCp.js")
6285
6285
  },
6286
6286
  {
6287
6287
  path: "/report-editor",
6288
6288
  name: "reportEditor",
6289
- component: () => import("./ReportEditor-ZRBQHo6K.js")
6289
+ component: () => import("./ReportEditor-BsHh4C9W.js")
6290
6290
  },
6291
6291
  {
6292
6292
  path: "/report-editor/tile-editor",
6293
6293
  name: "tileEditor",
6294
- component: () => import("./TileEditor-Bqhu78EZ.js")
6294
+ component: () => import("./TileEditor-MmzX96u0.js")
6295
6295
  },
6296
6296
  {
6297
6297
  path: "/setting",
6298
6298
  name: "setting",
6299
- component: () => import("./Setting-BXEPHSGB.js")
6299
+ component: () => import("./Setting-CaWLJxWT.js")
6300
6300
  },
6301
6301
  {
6302
6302
  path: "/integration",
6303
- component: () => import("./Layout-C4YVePzi.js"),
6303
+ component: () => import("./Layout-CaBt14Gw.js"),
6304
6304
  children: [
6305
6305
  {
6306
6306
  name: "integrations",
6307
6307
  path: "",
6308
- component: () => import("./Integrations-BM_vRj0F.js")
6308
+ component: () => import("./Integrations-Bepr1f-w.js")
6309
6309
  },
6310
6310
  {
6311
6311
  name: "integration",
6312
6312
  path: "/integration/:id",
6313
- component: () => import("./Integration-C0f0Q2os.js")
6313
+ component: () => import("./Integration-Dtixz4GZ.js")
6314
6314
  }
6315
6315
  ]
6316
6316
  },
@@ -6334,7 +6334,7 @@ const Ve = {
6334
6334
  "zh-CN": ze,
6335
6335
  "th-TH": be,
6336
6336
  "zh-Hant": Se
6337
- }, He = le(() => import("./App-DUh6U-OB.js"));
6337
+ }, He = le(() => import("./App-CLWWLcFU.js"));
6338
6338
  export {
6339
6339
  He as F,
6340
6340
  Te as a,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { F as e, i as o, r as p } from "./app-Fb6OY58U.js";
2
+ import { F as e, i as o, r as p } from "./app-CKnE3Rw-.js";
3
3
  export {
4
4
  e as FmApp,
5
5
  o as i18nMessages,
@@ -3,7 +3,7 @@ var Cr = (e, t, n) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var Ft = (e, t, n) => Cr(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { defineStore as Gt, storeToRefs as et } from "pinia";
5
5
  import { ref as ue, computed as Ne, readonly as Qn, getCurrentInstance as cA, inject as pr, shallowRef as Br, watch as XA, onMounted as hr, onUnmounted as Er, defineComponent as FA, h as ho, createVNode as Dr, Text as xr, Fragment as Eo } from "vue";
6
- import { d as Z, c as Hr } from "./app-Fb6OY58U.js";
6
+ import { d as Z, c as Hr } from "./app-CKnE3Rw-.js";
7
7
  import "@vue/devtools-api";
8
8
  const Xr = "mf-reportquery-store", te = Gt(Xr, () => {
9
9
  const e = ue(""), t = ue(""), n = ue("MY");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.21.46",
3
+ "version": "5.21.49",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,272 +0,0 @@
1
- import { defineComponent as se, resolveComponent as Q, createBlock as ie, openBlock as R, unref as d, isRef as Oe, withCtx as U, createElementVNode as M, createVNode as V, toDisplayString as ee, createTextVNode as Ce, onMounted as ue, watch as q, ref as $, computed as te, onBeforeMount as we, onBeforeUnmount as Ee, createElementBlock as j, Fragment as ke } from "vue";
2
- import { detectLocale as B, useCoreStore as z } from "@feedmepos/mf-common";
3
- import { u as Ae, a as $e, b as ne, c as Be, d as Ne, e as Te, f as Fe, s as xe } from "./vue-i18n-DLsuRxx8.js";
4
- import { storeToRefs as b } from "pinia";
5
- import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-yBoJyNC8.js";
6
- import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-5oGeza_s.js";
7
- import { u as oe } from "./message-dialog-UoMWOnil.js";
8
- import { d as u } from "./app-Fb6OY58U.js";
9
- import { useRoute as Qe, useRouter as Ve } from "vue-router";
10
- const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, We = /* @__PURE__ */ se({
11
- __name: "Dialog",
12
- setup(L) {
13
- const { t: a } = Ae(), m = oe(), { isOpened: l, message: S, title: D } = b(oe());
14
- return (f, g) => {
15
- const _ = Q("FmButton"), N = Q("FmDialog");
16
- return R(), ie(N, {
17
- modelValue: d(l),
18
- "onUpdate:modelValue": g[0] || (g[0] = (T) => Oe(l) ? l.value = T : null),
19
- overlay: "",
20
- "close-button": !1
21
- }, {
22
- "dialog-header": U(() => [
23
- Ce(ee(d(D)), 1)
24
- ]),
25
- default: U(() => [
26
- M("p", Pe, ee(d(S)), 1)
27
- ]),
28
- "dialog-footer": U(() => [
29
- g[1] || (g[1] = M("div", { class: "grow" }, null, -1)),
30
- V(_, {
31
- label: d(a)("report.common.cancel"),
32
- variant: "tertiary",
33
- onClick: d(m).dismiss
34
- }, null, 8, ["label", "onClick"]),
35
- V(_, {
36
- label: d(a)("report.common.confirm"),
37
- onClick: d(m).confirm
38
- }, null, 8, ["label", "onClick"])
39
- ]),
40
- _: 1
41
- }, 8, ["modelValue"]);
42
- };
43
- }
44
- }), ae = $(B());
45
- function Ge() {
46
- const L = (a) => {
47
- switch (ae.value = a, a) {
48
- case "zh-CN":
49
- u.locale("zh-cn");
50
- break;
51
- default:
52
- u.locale("en");
53
- break;
54
- }
55
- };
56
- return ue(() => {
57
- L(B());
58
- }), q(() => B(), L, { deep: !0, immediate: !0 }), {
59
- currentLocale: ae
60
- };
61
- }
62
- u.locale(B() === "zh-CN" ? "zh-cn" : "en");
63
- const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
64
- __name: "App",
65
- setup(L) {
66
- const { businessId: a, token: m, country: l } = b($e()), { sessionUser: S, currentBusiness: D, currentCountry: f, registerSidebarComponent: g } = z(), { getRestaurantAndWarehouse: _, getBusinessSetting: N, beginBusinessLoad: T, completeBusinessLoad: ce } = ne(), { getFeatureFlags: le } = Be(), { version: p } = b(re()), { getSettings: de } = Ne(), { promptLoader: fe } = Te(), e = Qe(), P = Ve(), I = Je(), W = je(), s = ne(), me = re(), { suppressReportRouteSync: O } = b(me), { getReports: pe, getOverviewReport: ge, getReportConfig: G, currentReportId: H } = I, { currentReportId: ye, reports: ve } = b(I), { getSchema: Se } = Ue(), { fetchSchedules: De } = W, { init: Ie } = Fe(), F = $("v5"), C = $(!1), w = $(!0), he = te(() => `https://portal-v1.feedme.cc/b/${a.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${m.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedme.cc?businessId=${a.value}&country=${l.value}&token=${m.value}&reportV3Button=true`);
67
- q(
68
- [() => D.value, () => S.value, () => f.value],
69
- () => {
70
- var n, r;
71
- const t = ((n = D.value) == null ? void 0 : n.id) ?? "";
72
- if (D.value && S.value && f.value) {
73
- xe(f.value), a.value !== t && (a.value = t);
74
- let i = !1;
75
- l.value !== f.value && (i = !0), m.value = ((r = S.value) == null ? void 0 : r.token) ?? "", l.value = f.value ?? "";
76
- const c = i && !w.value;
77
- console.log(`route.query.businessId!==businessId.value: ${e.query.businessId !== a.value}`, `isCountryChanged: ${i}`, `isInitialBusinessWatch.value: ${w.value}`), e.query.businessId !== a.value && (console.log("[debug 1 detail]: country.value: ", l.value, "currentCountry.value: ", f.value), console.log("[debug 1 detail]: route.query.businessId: ", e.query.businessId, "businessId.value: ", a.value), P.replace({
78
- name: e.name,
79
- params: e.params,
80
- query: {
81
- ...e.query,
82
- businessId: a.value,
83
- country: f.value,
84
- isAllLocation: c ? "true" : e.query.isAllLocation,
85
- locationIds: c ? void 0 : e.query.locationIds
86
- }
87
- }));
88
- }
89
- },
90
- { immediate: !0 }
91
- );
92
- function K(t) {
93
- if (typeof t.data == "string")
94
- try {
95
- const n = JSON.parse(t.data);
96
- (n == null ? void 0 : n.token) !== "" && (n == null ? void 0 : n.token) !== void 0 && (m.value = n.token);
97
- } catch (n) {
98
- console.error(n);
99
- }
100
- }
101
- function X(t) {
102
- if (typeof t.data == "string")
103
- try {
104
- const n = JSON.parse(t.data);
105
- (n == null ? void 0 : n.v5) === !0 ? p.value = F.value : (n == null ? void 0 : n.v3) === !0 && (p.value = "v3");
106
- } catch (n) {
107
- console.error(n);
108
- }
109
- }
110
- q(p, () => {
111
- ["v3", "v4"].includes(p.value) ? z().hideSidebarToggle(!0) : z().hideSidebarToggle(!1);
112
- }), we(() => {
113
- g(ze);
114
- }), ue(() => {
115
- console.log("5.21.46", !0), window.addEventListener("message", K), window.addEventListener("message", X);
116
- }), Ee(() => {
117
- window.removeEventListener("message", K), window.removeEventListener("message", X), I.$dispose(), W.$dispose();
118
- });
119
- function qe(t) {
120
- try {
121
- return decodeURIComponent(t);
122
- } catch {
123
- return t;
124
- }
125
- }
126
- function E(t) {
127
- if (typeof t != "string" || t.length === 0) return;
128
- const n = t.includes("%") ? [t, qe(t)] : [t];
129
- for (const r of n)
130
- try {
131
- const i = JSON.parse(r);
132
- if (typeof i == "string")
133
- try {
134
- return JSON.parse(i);
135
- } catch {
136
- return i;
137
- }
138
- return i;
139
- } catch {
140
- }
141
- }
142
- function Y(t) {
143
- if (!t || typeof t != "object") return !1;
144
- const n = t;
145
- return typeof n.hour == "number" && typeof n.minute == "number";
146
- }
147
- function be() {
148
- const t = e.query.startDate ? u(e.query.startDate).startOf("day").toISOString() : void 0, n = e.query.endDate ? u(e.query.endDate).endOf("day").toISOString() : void 0, r = typeof e.query.timeStart == "string", i = typeof e.query.timeEnd == "string", c = E(e.query.timeStart), h = E(e.query.timeEnd), k = Y(c) ? c : null, A = Y(h) ? h : null, x = e.query.compareStartDate ? u(e.query.compareStartDate).startOf("day").toISOString() : void 0, J = e.query.compareEndDate ? u(e.query.compareEndDate).endOf("day").toISOString() : void 0, Z = e.query.isAllLocation === "true" || e.query.isAllLocation === void 0;
149
- let y = [];
150
- if (Z)
151
- y = s.selectedLocationIds;
152
- else {
153
- const o = E(e.query.locationIds);
154
- y = Array.isArray(o) ? o : [];
155
- }
156
- let v = e.query.reportId || H;
157
- if (ve.value.find((o) => o.id === v) || (v = H), v && v !== I.currentReportId && I.updateCurrentReportId(v), t || n) {
158
- const o = s.dateRange;
159
- (o.startDate !== t || o.endDate !== n) && s.setDateRange({ startDate: t, endDate: n });
160
- }
161
- if (r || i) {
162
- const o = s.timeRange;
163
- (o.start !== k || o.end !== A) && s.setTimeRange({ start: k, end: A });
164
- }
165
- if (x || J) {
166
- const o = s.compareDateRange;
167
- (o.startDate !== x || o.endDate !== J) && s.setCompareDateRange({
168
- startDate: x,
169
- endDate: J
170
- });
171
- }
172
- if (!Z && Array.isArray(y)) {
173
- const o = s.selectedLocationIds;
174
- o.length === y.length && o.every((Le, _e) => Le === y[_e]) || s.setSelectedLocationIds(y);
175
- }
176
- return {
177
- // TODO: this returned value can used for getBusinessSetting
178
- reportId: v,
179
- startDate: e.query.startDate,
180
- endDate: e.query.endDate,
181
- timeStart: e.query.timeStart,
182
- timeEnd: e.query.timeEnd,
183
- compareStartDate: e.query.compareStartDate,
184
- compareEndDate: e.query.compareEndDate,
185
- locationIds: typeof e.query.locationIds == "string" ? e.query.locationIds : void 0,
186
- isAllLocation: e.query.isAllLocation
187
- };
188
- }
189
- return q(
190
- () => a.value,
191
- async (t) => {
192
- t !== "" && (C.value = !1, T(t), O.value !== void 0 && (O.value = !0), await fe(async () => {
193
- await Ie({
194
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
195
- url: "https://flag.feedme.farm/api/v1/",
196
- enableAnalytics: !1,
197
- cacheFlags: !1
198
- });
199
- const n = await G();
200
- F.value = n.version, p.value = F.value, await Promise.all([
201
- le(),
202
- G(),
203
- ge(),
204
- pe(),
205
- Se(),
206
- De(),
207
- _(
208
- (() => {
209
- const r = E(e.query.locationIds);
210
- return Array.isArray(r) ? r : void 0;
211
- })()
212
- ),
213
- de()
214
- ]), await N(), be(), ce(t);
215
- }), C.value = !0, w.value && (w.value = !1));
216
- },
217
- {
218
- immediate: !0
219
- }
220
- ), q(
221
- () => (C.value, {
222
- reportId: ye.value,
223
- selectedLocationIds: s.selectedLocationIds,
224
- dateRange: s.dateRange,
225
- timeRange: s.timeRange,
226
- compareDateRange: s.compareDateRange
227
- }),
228
- (t) => {
229
- if (!C.value || !t.reportId) return;
230
- if (O.value) {
231
- O.value = !1;
232
- return;
233
- }
234
- const n = t.selectedLocationIds, r = t.dateRange, i = t.timeRange, c = t.compareDateRange, h = {
235
- ...e.query,
236
- reportId: t.reportId,
237
- startDate: r.startDate ? u(r.startDate).startOf("day").toISOString() : void 0,
238
- endDate: r.endDate ? u(r.endDate).endOf("day").toISOString() : void 0,
239
- compareStartDate: c.startDate ? u(c.startDate).startOf("day").toISOString() : void 0,
240
- compareEndDate: c.endDate ? u(c.endDate).endOf("day").toISOString() : void 0,
241
- timeStart: i.start ? JSON.stringify(i.start) : void 0,
242
- timeEnd: i.end ? JSON.stringify(i.end) : void 0,
243
- locationIds: n.length === s.locations.length ? void 0 : n.length > 0 ? JSON.stringify(n) : void 0,
244
- isAllLocation: String(n.length === s.locations.length)
245
- }, k = JSON.stringify(e.query), A = JSON.stringify(h);
246
- k !== A && P.replace({
247
- name: e.name,
248
- params: e.params,
249
- query: h
250
- });
251
- },
252
- { deep: !0 }
253
- ), Ge(), (t, n) => {
254
- const r = Q("router-view");
255
- return R(), j(ke, null, [
256
- V(We),
257
- d(p) === "v3" ? (R(), j("iframe", {
258
- key: 0,
259
- class: "bg-white h-full w-full",
260
- src: he.value
261
- }, null, 8, He)) : d(p) === "v4" ? (R(), j("iframe", {
262
- key: 1,
263
- class: "bg-white h-full w-full",
264
- src: Re.value
265
- }, null, 8, Ke)) : (R(), ie(r, { key: 2 }))
266
- ], 64);
267
- };
268
- }
269
- });
270
- export {
271
- ut as default
272
- };