@feedmepos/mf-report 5.22.25-beta.0 → 5.22.26-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/App-K5_EZRDx.js +298 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BtlKMoIq.js → BaseDialog.vue_vue_type_script_setup_true_lang-B3lk2lJW.js} +1128 -1292
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Bkrb5oit.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BVsmF7O1.js} +5 -5
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-BRaQkmRu.js → Default.vue_vue_type_script_setup_true_lang-CXOVc4Mx.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BXGBeZC3.js → FilterSelector.vue_vue_type_script_setup_true_lang-CYNrXo6U.js} +19 -19
  6. package/dist/InsightView-DjyJEPMi.js +664 -0
  7. package/dist/{Integration-EMAfR7Zi.js → Integration-BJiiG52P.js} +40 -40
  8. package/dist/{Integrations-CjXy0fH6.js → Integrations-1AE-ZriG.js} +14 -13
  9. package/dist/Layout-CWkjX6Dz.js +19 -0
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-zQAJw22y.js → MenuTab.vue_vue_type_script_setup_true_lang-CMfvPaez.js} +13 -13
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CthoYybo.js → NavigationTab.vue_vue_type_script_setup_true_lang-CLpD4WdM.js} +24 -24
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-saYegrOe.js → NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js} +1 -1
  13. package/dist/OverviewView-DyGx_V_d.js +62 -0
  14. package/dist/{Report-BUrZle7z.js → Report-mpMokvC5.js} +15 -14
  15. package/dist/{ReportEditor-BMwRbo4e.js → ReportEditor-C7M1iR2K.js} +24 -23
  16. package/dist/{ReportView-BTrqUHh3.js → ReportView-5egrKEAE.js} +18 -17
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DCcZSJ6i.js → SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js} +1 -1
  18. package/dist/Setting-acpfrtmh.js +326 -0
  19. package/dist/{TileEditor-CSzsBeLn.js → TileEditor-BZbN_SJj.js} +131 -131
  20. package/dist/{TransitionFade-CYQPowov.js → TransitionFade-CoIjp_fE.js} +12 -12
  21. package/dist/app-VvWXAWWb.js +11540 -0
  22. package/dist/app.js +1 -1
  23. package/dist/useRestaurantPermission-C31iMnay.js +65 -0
  24. package/dist/vue-i18n-DVWuTfed.js +2727 -0
  25. package/package.json +1 -1
  26. package/dist/App-CO_c9XPB.js +0 -294
  27. package/dist/InsightView-CJYx9369.js +0 -670
  28. package/dist/Layout-BEBDNvw5.js +0 -29
  29. package/dist/NoPermission.vue_vue_type_script_setup_true_lang-Cc68B5bL.js +0 -25
  30. package/dist/OverviewView-D74QNQC4.js +0 -63
  31. package/dist/Setting-dV1Kw8zk.js +0 -328
  32. package/dist/app-DqCVRl7o.js +0 -6658
  33. package/dist/useRestaurantPermission-DdoxTVxf.js +0 -64
  34. package/dist/vue-i18n-LXxY-G4u.js +0 -7253
@@ -1,64 +0,0 @@
1
- import { computed as u } from "vue";
2
- import { T as c, A as i, u as f } from "./vue-i18n-LXxY-G4u.js";
3
- import { useSnackbar as d } from "@feedmepos/ui-library";
4
- import { useCoreStore as l } from "@feedmepos/mf-common";
5
- function g(t) {
6
- return Array.isArray(t) ? t : [];
7
- }
8
- function R(t) {
9
- const { rules: n, action: a, restaurantId: e } = t;
10
- if (!n.length) return !1;
11
- const s = {
12
- action: a,
13
- subject: c.restaurant
14
- };
15
- return e ? i(s, n, { restaurantId: e }).granted : i([s], n).granted;
16
- }
17
- function h(t) {
18
- const { integrationRestaurantIds: n, rules: a, action: e } = t;
19
- if (!Array.isArray(n) || n.length === 0)
20
- return [];
21
- const s = [];
22
- for (const o of n)
23
- typeof o == "string" && (R({ rules: a, action: e, restaurantId: o }) || s.push(o));
24
- return s;
25
- }
26
- function m(t) {
27
- return h({
28
- integrationRestaurantIds: t.integrationRestaurantIds,
29
- rules: t.rules,
30
- action: t.action
31
- }).length > 0;
32
- }
33
- function z() {
34
- const t = d(), { t: n } = f(), { sessionUser: a } = l(), e = u(
35
- () => {
36
- var r;
37
- return g((r = a.value) == null ? void 0 : r.permissions);
38
- }
39
- );
40
- function s(r) {
41
- t.open({
42
- type: "error",
43
- message: n("report.integration.error.containsUnauthorizedRestaurant", {
44
- action: n(`report.integration.permissionAction.${r}`)
45
- })
46
- });
47
- }
48
- function o(r) {
49
- return m({
50
- integrationRestaurantIds: r.integrationRestaurantIds,
51
- rules: e.value,
52
- action: r.action
53
- });
54
- }
55
- return {
56
- rules: e,
57
- notifyUnauthorized: s,
58
- isRestricted: o
59
- };
60
- }
61
- export {
62
- m as h,
63
- z as u
64
- };