@feedmepos/mf-report 5.22.12 → 5.22.13-beta.1

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-DDzVhXL7.js → App-pXGWlg3l.js} +40 -40
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BZlvMBPW.js → BaseDialog.vue_vue_type_script_setup_true_lang-CzbeFyTt.js} +3 -3
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-BuFLfame.js → Default.vue_vue_type_script_setup_true_lang-BTCBYTaC.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BoX6fRDT.js → FilterSelector.vue_vue_type_script_setup_true_lang-Ccr5PmzE.js} +6 -6
  6. package/dist/{InsightView-DBmUbSlP.js → InsightView-C0TwLCJv.js} +6 -6
  7. package/dist/{Integration-BDC13WLh.js → Integration-BFEaM0Wz.js} +36 -35
  8. package/dist/{Integrations-C6gWnyhy.js → Integrations-CG-ygqKI.js} +7 -6
  9. package/dist/{Layout-DbHEONpc.js → Layout-D6kcGEx6.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-G9CiV2LK.js → MenuTab.vue_vue_type_script_setup_true_lang-D3EZc4Vp.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js → NavigationTab.vue_vue_type_script_setup_true_lang-CpMCe0cN.js} +1718 -1697
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CdGpZdFx.js → NoData.vue_vue_type_script_setup_true_lang-DdX25Qgn.js} +1 -1
  13. package/dist/{OverviewView-B0dWJYNP.js → OverviewView-ATC5S46N.js} +5 -5
  14. package/dist/{Report-QeJVzX13.js → Report-CVNA4oKn.js} +202 -177
  15. package/dist/ReportEditor-ZXjzIVWj.js +1104 -0
  16. package/dist/ReportView-C0vzCbYY.js +265 -0
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DMMP43KF.js → SelectComponent.vue_vue_type_script_setup_true_lang-BHVPbR3l.js} +1 -1
  18. package/dist/{Setting-Dv-Eo5IX.js → Setting-BfR6T0tE.js} +5 -5
  19. package/dist/{TileEditor-ZqOV5_Le.js → TileEditor-BQDzUwav.js} +8 -8
  20. package/dist/{TransitionFade-CsoI1XtQ.js → TransitionFade-DlAa1-mg.js} +6 -6
  21. package/dist/{useRestaurantPermission-8zTUt56b.js → access-Dw5cDt65-DpLiFTpm.js} +386 -388
  22. package/dist/{app-Du0ALyx7.js → app-tS9-0m0b.js} +56 -36
  23. package/dist/app.js +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/useReportPermission-DEI1PTJT.js +60 -0
  26. package/dist/useRestaurantPermission-DTzkzgml.js +65 -0
  27. package/dist/{vue-i18n-kHBFKu4C.js → vue-i18n-BxRs360O.js} +7 -7
  28. package/package.json +2 -2
  29. package/dist/ReportEditor-LupGO1_l.js +0 -1103
  30. package/dist/ReportView-BMgXES5v.js +0 -250
@@ -1,18 +1,18 @@
1
- import { defineComponent as se, resolveComponent as Q, createBlock as ie, openBlock as R, unref as c, isRef as be, withCtx as U, createElementVNode as M, createVNode as V, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as N, computed as te, onBeforeMount as Ce, onBeforeUnmount as Ee, createElementBlock as j, Fragment as ke } from "vue";
2
- import { detectLocale as T, useCoreStore as z } from "@feedmepos/mf-common";
3
- import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, f as $e, s as xe } from "./vue-i18n-kHBFKu4C.js";
1
+ import { defineComponent as se, resolveComponent as j, createBlock as ie, openBlock as R, unref as c, isRef as be, withCtx as U, createElementVNode as M, createVNode as V, toDisplayString as ee, createTextVNode as we, onMounted as ue, watch as q, ref as N, computed as te, onBeforeMount as Ee, onBeforeUnmount as Ce, createElementBlock as z, Fragment as ke } from "vue";
2
+ import { detectLocale as T, useCoreStore as Q } from "@feedmepos/mf-common";
3
+ import { u as Ae, a as Ne, b as ne, c as Te, d as Be, e as Fe, f as $e, s as xe } from "./vue-i18n-BxRs360O.js";
4
4
  import { storeToRefs as L } from "pinia";
5
- import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BZlvMBPW.js";
6
- import { u as je, _ as ze } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js";
5
+ import { u as re, a as Je, b as Ue } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CzbeFyTt.js";
6
+ import { u as ze, _ as Qe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CpMCe0cN.js";
7
7
  import { u as oe } from "./message-dialog-UoMWOnil.js";
8
- import { d as u } from "./app-Du0ALyx7.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" }, Ge = /* @__PURE__ */ se({
8
+ import { d as u } from "./app-tS9-0m0b.js";
9
+ import { useRoute as je, useRouter as Ve } from "vue-router";
10
+ const We = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Pe = /* @__PURE__ */ se({
11
11
  __name: "Dialog",
12
12
  setup(_) {
13
13
  const { t: i } = Ae(), d = oe(), { isOpened: l, message: v, title: S } = L(oe());
14
14
  return (D, p) => {
15
- const O = Q("FmButton"), B = Q("FmDialog");
15
+ const O = j("FmButton"), B = j("FmDialog");
16
16
  return R(), ie(B, {
17
17
  modelValue: c(l),
18
18
  "onUpdate:modelValue": p[0] || (p[0] = (F) => be(l) ? l.value = F : null),
@@ -23,7 +23,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge
23
23
  we(ee(c(S)), 1)
24
24
  ]),
25
25
  default: U(() => [
26
- M("p", Pe, ee(c(v)), 1)
26
+ M("p", We, ee(c(v)), 1)
27
27
  ]),
28
28
  "dialog-footer": U(() => [
29
29
  p[1] || (p[1] = M("div", { class: "grow" }, null, -1)),
@@ -42,7 +42,7 @@ const Pe = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ge
42
42
  };
43
43
  }
44
44
  }), ae = N(T());
45
- function We() {
45
+ function Ge() {
46
46
  const _ = (i) => {
47
47
  switch (ae.value = i, i) {
48
48
  case "zh-CN":
@@ -60,10 +60,10 @@ function We() {
60
60
  };
61
61
  }
62
62
  u.locale(T() === "zh-CN" ? "zh-cn" : "en");
63
- const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
63
+ const Ke = ["src"], He = ["src"], ut = /* @__PURE__ */ se({
64
64
  __name: "App",
65
65
  setup(_) {
66
- const { businessId: i, token: d, country: l } = L(Ne()), { sessionUser: v, currentBusiness: S, currentCountry: D, registerSidebarComponent: p } = z(), { getRestaurantAndWarehouse: O, getBusinessSetting: B, beginBusinessLoad: F, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = Qe(), P = Ve(), h = Je(), G = je(), r = ne(), me = re(), { suppressReportRouteSync: b } = L(me), { getReports: pe, getOverviewReport: ge, getReportConfig: W, currentReportId: H } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = G, { init: he } = $e(), $ = N("v5"), w = N(!1), C = N(!0), Ie = te(() => `https://portal-v1.feedme.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${d.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedme.cc?businessId=${i.value}&country=${l.value}&token=${d.value}&reportV3Button=true`);
66
+ const { businessId: i, token: d, country: l } = L(Ne()), { sessionUser: v, currentBusiness: S, currentCountry: D, registerSidebarComponent: p } = Q(), { getRestaurantAndWarehouse: O, getBusinessSetting: B, beginBusinessLoad: F, completeBusinessLoad: ce } = ne(), { getFeatureFlags: de } = Te(), { version: f } = L(re()), { getSettings: le } = Be(), { promptLoader: fe } = Fe(), n = je(), W = Ve(), h = Je(), P = ze(), r = ne(), me = re(), { suppressReportRouteSync: b } = L(me), { getReports: pe, getOverviewReport: ge, getReportConfig: G, currentReportId: K } = h, { currentReportId: ye, reports: ve } = L(h), { getSchema: Se } = Ue(), { fetchSchedules: De } = P, { init: he } = $e(), $ = N("v5"), w = N(!1), E = N(!0), Ie = te(() => `https://portal-v1.feedmedev.cc/b/${i.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${d.value}&v2=true&reportV5Button=true`), Re = te(() => `https://report-v4.feedmedev.cc?businessId=${i.value}&country=${l.value}&token=${d.value}&reportV3Button=true`);
67
67
  q(
68
68
  [() => S.value, () => v.value, () => D.value],
69
69
  () => {
@@ -73,7 +73,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
73
73
  },
74
74
  { immediate: !0 }
75
75
  );
76
- function K(e) {
76
+ function H(e) {
77
77
  if (typeof e.data == "string")
78
78
  try {
79
79
  const t = JSON.parse(e.data);
@@ -92,13 +92,13 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
92
92
  }
93
93
  }
94
94
  q(f, () => {
95
- ["v3", "v4"].includes(f.value) ? z().hideSidebarToggle(!0) : z().hideSidebarToggle(!1);
96
- }), Ce(() => {
97
- p(ze);
98
- }), ue(() => {
99
- console.log("5.22.12", !0), window.addEventListener("message", K), window.addEventListener("message", X);
95
+ ["v3", "v4"].includes(f.value) ? Q().hideSidebarToggle(!0) : Q().hideSidebarToggle(!1);
100
96
  }), Ee(() => {
101
- window.removeEventListener("message", K), window.removeEventListener("message", X), h.$dispose(), G.$dispose();
97
+ p(Qe);
98
+ }), ue(() => {
99
+ console.log("5.22.13-beta.1", !0), window.addEventListener("message", H), window.addEventListener("message", X);
100
+ }), Ce(() => {
101
+ window.removeEventListener("message", H), window.removeEventListener("message", X), h.$dispose(), P.$dispose();
102
102
  });
103
103
  function qe(e) {
104
104
  try {
@@ -107,7 +107,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
107
107
  return e;
108
108
  }
109
109
  }
110
- function E(e) {
110
+ function C(e) {
111
111
  if (typeof e != "string" || e.length === 0) return;
112
112
  const t = e.includes("%") ? [e, qe(e)] : [e];
113
113
  for (const a of t)
@@ -129,16 +129,16 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
129
129
  return typeof t.hour == "number" && typeof t.minute == "number";
130
130
  }
131
131
  function Le() {
132
- const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", m = E(n.query.timeStart), I = E(n.query.timeEnd), k = Y(m) ? m : null, A = Y(I) ? I : null, x = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, J = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
132
+ const e = n.query.startDate ? u(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? u(n.query.endDate).endOf("day").toISOString() : void 0, a = typeof n.query.timeStart == "string", s = typeof n.query.timeEnd == "string", m = C(n.query.timeStart), I = C(n.query.timeEnd), k = Y(m) ? m : null, A = Y(I) ? I : null, x = n.query.compareStartDate ? u(n.query.compareStartDate).startOf("day").toISOString() : void 0, J = n.query.compareEndDate ? u(n.query.compareEndDate).endOf("day").toISOString() : void 0, Z = n.query.isAllLocation === "true" || n.query.isAllLocation === void 0;
133
133
  let g = [];
134
134
  if (Z)
135
135
  g = r.selectedLocationIds;
136
136
  else {
137
- const o = E(n.query.locationIds);
137
+ const o = C(n.query.locationIds);
138
138
  g = Array.isArray(o) ? o : [];
139
139
  }
140
- let y = n.query.reportId || H;
141
- if (ve.value.find((o) => o.id === y) || (y = H), y && y !== h.currentReportId && h.updateCurrentReportId(y), e || t) {
140
+ let y = n.query.reportId || K;
141
+ if (ve.value.find((o) => o.id === y) || (y = K), y && y !== h.currentReportId && h.updateCurrentReportId(y), e || t) {
142
142
  const o = r.dateRange;
143
143
  (o.startDate !== e || o.endDate !== t) && r.setDateRange({ startDate: e, endDate: t });
144
144
  }
@@ -173,7 +173,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
173
173
  return q(
174
174
  () => i.value,
175
175
  async (e, t) => {
176
- e !== "" && (w.value = !1, F(e), (!C.value || t !== void 0) && (r.setSelectedLocationIds([]), P.replace({
176
+ e !== "" && (w.value = !1, F(e), (!E.value || t !== void 0) && (r.setSelectedLocationIds([]), W.replace({
177
177
  name: n.name,
178
178
  params: n.params,
179
179
  query: {
@@ -183,28 +183,28 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
183
183
  }
184
184
  })), b.value !== void 0 && (b.value = !0), await fe(async () => {
185
185
  await he({
186
- apiKey: "6GhcttsJ9Rj9cTevcdrpin",
186
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
187
187
  url: "https://flag.feedme.farm/api/v1/",
188
188
  enableAnalytics: !1,
189
189
  cacheFlags: !1
190
190
  });
191
- const a = await W();
191
+ const a = await G();
192
192
  $.value = a.version, f.value = $.value, await Promise.all([
193
193
  de(),
194
- W(),
194
+ G(),
195
195
  ge(),
196
196
  pe(),
197
197
  Se(),
198
198
  De(),
199
199
  O(
200
200
  (() => {
201
- const s = E(n.query.locationIds);
201
+ const s = C(n.query.locationIds);
202
202
  return Array.isArray(s) ? s : void 0;
203
203
  })()
204
204
  ),
205
205
  le()
206
206
  ]), await B(), Le(), ce(e);
207
- }), w.value = !0, C.value && (C.value = !1));
207
+ }), w.value = !0, E.value && (E.value = !1));
208
208
  },
209
209
  {
210
210
  immediate: !0
@@ -218,7 +218,7 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
218
218
  compareDateRange: r.compareDateRange
219
219
  }),
220
220
  (e) => {
221
- if (!w.value || !e.reportId || C.value) return;
221
+ if (!w.value || !e.reportId || E.value) return;
222
222
  if (b.value) {
223
223
  b.value = !1;
224
224
  return;
@@ -235,26 +235,26 @@ const He = ["src"], Ke = ["src"], ut = /* @__PURE__ */ se({
235
235
  locationIds: t.length === r.locations.length ? void 0 : t.length > 0 ? JSON.stringify(t) : void 0,
236
236
  isAllLocation: String(t.length === r.locations.length)
237
237
  }, k = JSON.stringify(n.query), A = JSON.stringify(I);
238
- k !== A && P.replace({
238
+ k !== A && W.replace({
239
239
  name: n.name,
240
240
  params: n.params,
241
241
  query: I
242
242
  });
243
243
  },
244
244
  { deep: !0 }
245
- ), We(), (e, t) => {
246
- const a = Q("router-view");
247
- return R(), j(ke, null, [
248
- V(Ge),
249
- c(f) === "v3" ? (R(), j("iframe", {
245
+ ), Ge(), (e, t) => {
246
+ const a = j("router-view");
247
+ return R(), z(ke, null, [
248
+ V(Pe),
249
+ c(f) === "v3" ? (R(), z("iframe", {
250
250
  key: 0,
251
251
  class: "bg-white h-full w-full",
252
252
  src: Ie.value
253
- }, null, 8, He)) : c(f) === "v4" ? (R(), j("iframe", {
253
+ }, null, 8, Ke)) : c(f) === "v4" ? (R(), z("iframe", {
254
254
  key: 1,
255
255
  class: "bg-white h-full w-full",
256
256
  src: Re.value
257
- }, null, 8, Ke)) : (R(), ie(a, { key: 2 }))
257
+ }, null, 8, He)) : (R(), ie(a, { key: 2 }))
258
258
  ], 64);
259
259
  };
260
260
  }
@@ -1,11 +1,11 @@
1
- import { a as E0, F as m0, l as S0, b as X0, c as Ce, k as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-kHBFKu4C.js";
1
+ import { a as E0, F as m0, l as S0, b as X0, c as Ce, h as be, d as Ie, r as Z0, u as Fe } from "./vue-i18n-BxRs360O.js";
2
2
  import { storeToRefs as c0, defineStore as k0 } from "pinia";
3
3
  import { ref as s0, computed as B0, watch as V0, h as Me, defineComponent as De, mergeModels as Q0, useModel as W0, resolveComponent as O0, createElementBlock as Y0, openBlock as N0, createVNode as C0, withCtx as P0, createElementVNode as L0, createCommentVNode as Re, Fragment as ne, renderList as xe, createBlock as de, createTextVNode as ce, withDirectives as Le, toDisplayString as v0, unref as h0, vShow as Oe, renderSlot as we } from "vue";
4
4
  import { useSnackbar as fe, components as ve } from "@feedmepos/ui-library";
5
- import { d as b0 } from "./app-Du0ALyx7.js";
5
+ import { d as b0 } from "./app-tS9-0m0b.js";
6
6
  import { useRouter as Be } from "vue-router";
7
7
  import { detectLocale as J0 } from "@feedmepos/mf-common";
8
- import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
8
+ import { c as Pe, a as Je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js";
9
9
  function pe(T) {
10
10
  throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
11
11
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as A, resolveComponent as S, createBlock as p, openBlock as y, withCtx as T, createCommentVNode as R, createElementVNode as M, toDisplayString as j, renderSlot as B, mergeModels as k, useModel as b, ref as C, watch as O, createElementBlock as U, unref as f, createVNode as x } from "vue";
2
- import { u as W, b as q, O as G, C as H } from "./vue-i18n-kHBFKu4C.js";
3
- import { d as r } from "./app-Du0ALyx7.js";
2
+ import { u as W, b as q, O as G, C as H } from "./vue-i18n-BxRs360O.js";
3
+ import { d as r } from "./app-tS9-0m0b.js";
4
4
  import { detectLocale as E } from "@feedmepos/mf-common";
5
5
  import { storeToRefs as K } from "pinia";
6
6
  var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {}), L = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(L || {});
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CpMCe0cN.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, e as w } from "./vue-i18n-kHBFKu4C.js";
5
+ import { u as q, e as w } from "./vue-i18n-BxRs360O.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,
@@ -1,15 +1,15 @@
1
1
  import { computed as m, defineComponent as je, ref as T, onMounted as nt, onBeforeUnmount as sa, resolveComponent as ve, createBlock as Ce, openBlock as G, Transition as Ha, withCtx as Pe, createElementBlock as ge, createCommentVNode as Te, createElementVNode as Q, unref as r, normalizeStyle as Ue, withModifiers as xt, toDisplayString as He, createVNode as ce, Fragment as Ke, renderList as wt, normalizeClass as ze, watch as Ve, nextTick as Ye, mergeModels as ct, useModel as at, renderSlot as dt, h as tn, toRaw as Wa, markRaw as Ea, createTextVNode as gn, onUnmounted as ia, resolveDynamicComponent as Oa, withDirectives as Ua, vShow as Ka } from "vue";
2
- import { W as le, e as Pt, f as Ya, S as yt, v as Ot, g as qa, h as mn, i as ua, q as ca, R as Lt, j as Xa, D as it, c as Oe, C as tt, a as Ga, b as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BZlvMBPW.js";
3
- import { u as pt, b as Ut, a as Mn, h as Za } from "./vue-i18n-kHBFKu4C.js";
4
- import { d as yn, _ as Qa, a as eo, b as to, c as no } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
2
+ import { W as le, e as Pt, f as Ya, S as yt, v as Ot, g as qa, h as mn, i as ua, q as ca, R as Lt, j as Xa, D as it, c as Oe, C as tt, a as Ga, b as ja, _ as Ja } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CzbeFyTt.js";
3
+ import { u as pt, b as Ut, a as Mn, i as Za } from "./vue-i18n-BxRs360O.js";
4
+ import { d as yn, _ as Qa, a as eo, b as to, c as no } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js";
5
5
  import { storeToRefs as ut, defineStore as da } from "pinia";
6
6
  import { C as bn } from "./chart-DDDh8zNk.js";
7
7
  import { detectLocale as ao } from "@feedmepos/mf-common";
8
8
  import { useBreakpoints as Fn, useSnackbar as Bn, components as oo } from "@feedmepos/ui-library";
9
- import { t as lo, z as ro, a as so, e as io, d as Dt } from "./app-Du0ALyx7.js";
10
- import { _ as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DMMP43KF.js";
9
+ import { t as lo, z as ro, a as so, e as io, d as Dt } from "./app-tS9-0m0b.js";
10
+ import { _ as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BHVPbR3l.js";
11
11
  import { r as bt } from "./i18n-CI_sQ5d_.js";
12
- import { _ as Cn } from "./NoData.vue_vue_type_script_setup_true_lang-CdGpZdFx.js";
12
+ import { _ as Cn } from "./NoData.vue_vue_type_script_setup_true_lang-DdX25Qgn.js";
13
13
  var xn = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(xn || {}), gt = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(gt || {}), wn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(wn || {}), Sn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Sn || {}), kn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(kn || {}), _n = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(_n || {}), Tn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Tn || {}), Re = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Re || {});
14
14
  le.Circular, le.Table, le.BarChart, le.LineChart, le.StackBarChart, le.ClusteredStackBarChart, le.StackLineChart, le.Scorecard, le.Spacer;
15
15
  const uo = [
@@ -1,13 +1,13 @@
1
1
  import { ref as B, defineComponent as S, watch as T, computed as _, onMounted as le, createElementBlock as d, openBlock as o, createElementVNode as a, renderSlot as H, toDisplayString as w, resolveDirective as X, createCommentVNode as A, Fragment as z, renderList as P, createBlock as V, withDirectives as M, resolveDynamicComponent as N, unref as m, withCtx as I, createVNode as h, normalizeClass as L, resolveComponent as R, useModel as ae, createTextVNode as oe, isRef as j, nextTick as se } from "vue";
2
- import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-BuFLfame.js";
3
- import { _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
4
- import { a as G, q as O, F as J, u as K, g as Y, b as re } from "./vue-i18n-kHBFKu4C.js";
2
+ import { _ as ne } from "./Default.vue_vue_type_script_setup_true_lang-BTCBYTaC.js";
3
+ import { _ as ie } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js";
4
+ import { a as G, q as O, F as J, u as K, g as Y, b as re } from "./vue-i18n-BxRs360O.js";
5
5
  import { storeToRefs as Q } from "pinia";
6
- import { d as W } from "./app-Du0ALyx7.js";
6
+ import { d as W } from "./app-tS9-0m0b.js";
7
7
  import { C as ee, r as de } from "./chart-DDDh8zNk.js";
8
8
  import { components as E, useSnackbar as ce } from "@feedmepos/ui-library";
9
- import { _ as ue } from "./NoData.vue_vue_type_script_setup_true_lang-CdGpZdFx.js";
10
- import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D9-002wn.js";
9
+ import { _ as ue } from "./NoData.vue_vue_type_script_setup_true_lang-DdX25Qgn.js";
10
+ import { a as fe, G as me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CpMCe0cN.js";
11
11
  import { useCoreStore as ge } from "@feedmepos/mf-common";
12
12
  function pe({ start: e, end: t }) {
13
13
  return `${W(t).format("DD MMM")}, ${W(t).format("YYYY")}`;
@@ -1,12 +1,13 @@
1
1
  import { defineComponent as Z, mergeModels as Ae, useModel as te, computed as q, resolveComponent as D, createElementBlock as M, openBlock as w, createElementVNode as t, createCommentVNode as B, normalizeClass as Ge, Fragment as Ve, createBlock as E, withCtx as he, toDisplayString as A, renderList as Pe, createVNode as l, unref as u, h as S, normalizeStyle as st, createTextVNode as rt, ref as G, onUnmounted as Le, watch as De, isRef as Re, resolveDynamicComponent as Ue, mergeProps as Xe, onMounted as et } from "vue";
2
2
  import { useRouter as _e, useRoute as it } from "vue-router";
3
- import { u as oe, I as Se, o as dt, t as mt, d as Ie, e as je, b as Ce, A as be, v as pt, j as ut, n as Oe, w as Ee, x as Te, y as Be, z as We, B as ct, E as ft, G as gt, H as Je, c as lt, J as vt, K as yt, L as xt, M as bt, N as wt } from "./vue-i18n-kHBFKu4C.js";
3
+ import { u as oe, I as Se, o as dt, t as mt, d as Ie, e as je, b as Ce, A as be, v as pt, k as ut, n as Oe, w as Ee, x as Te, y as Be, z as We, B as ct, E as ft, G as gt, H as Je, c as lt, J as vt, K as yt, L as xt, M as bt, N as wt } from "./vue-i18n-BxRs360O.js";
4
4
  import { u as Ye } from "./message-dialog-UoMWOnil.js";
5
5
  import { useSnackbar as ke } from "@feedmepos/ui-library";
6
- import { d as Fe } from "./app-Du0ALyx7.js";
7
- import { u as Ne, h as we, e as W } from "./useRestaurantPermission-8zTUt56b.js";
6
+ import { d as Fe } from "./app-tS9-0m0b.js";
7
+ import { y as W } from "./access-Dw5cDt65-DpLiFTpm.js";
8
+ import { u as Ne, h as we } from "./useRestaurantPermission-DTzkzgml.js";
8
9
  import { storeToRefs as qe } from "pinia";
9
- import { _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BM-li0d3.js";
10
+ import { _ as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js";
10
11
  const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, ht = { class: "w-[100%]" }, Ct = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, kt = { class: "w-[100%] flex flex-row gap-[4px]" }, $t = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, St = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis font-semibold" }, At = {
11
12
  key: 0,
12
13
  class: "w-[24px] flex items-center"
@@ -615,7 +616,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
615
616
  }),
616
617
  emits: ["update:modelValue"],
617
618
  setup(g) {
618
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = G(!1), K = q(
619
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = G(!1), K = q(
619
620
  () => b.map((i) => ({ label: i.name, value: i.id }))
620
621
  ), C = q(() => {
621
622
  var i, r;
@@ -655,7 +656,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
655
656
  const i = (N = e.value.platform) == null ? void 0 : N.locationIds;
656
657
  if (we({
657
658
  integrationRestaurantIds: i,
658
- ability: f.value,
659
+ rules: f.value,
659
660
  action: W.delete
660
661
  })) {
661
662
  m(W.delete);
@@ -677,7 +678,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
677
678
  const i = (F = e.value.platform) == null ? void 0 : F.locationIds;
678
679
  if (we({
679
680
  integrationRestaurantIds: i,
680
- ability: f.value,
681
+ rules: f.value,
681
682
  action: W.update
682
683
  })) {
683
684
  m(W.update);
@@ -1456,13 +1457,13 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1456
1457
  setup(g) {
1457
1458
  const a = te(g, "modelValue"), e = ke(), d = Ie(), x = _e(), { promptLoader: T } = je(), { promptMessage: V } = Ye(), { restaurants: I } = Ce(), b = q(
1458
1459
  () => I.map((n) => ({ label: n.name, value: n.id }))
1459
- ), { t: f } = oe(), { ability: m, notifyUnauthorized: h } = Ne();
1460
+ ), { t: f } = oe(), { rules: m, notifyUnauthorized: h } = Ne();
1460
1461
  async function K() {
1461
1462
  var r;
1462
1463
  const n = (r = a.value.platform) == null ? void 0 : r.locationIds;
1463
1464
  if (we({
1464
1465
  integrationRestaurantIds: n,
1465
- ability: m.value,
1466
+ rules: m.value,
1466
1467
  action: W.delete
1467
1468
  })) {
1468
1469
  h(W.delete);
@@ -1484,7 +1485,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
1484
1485
  const n = (i = a.value.platform) == null ? void 0 : i.locationIds;
1485
1486
  if (we({
1486
1487
  integrationRestaurantIds: n,
1487
- ability: m.value,
1488
+ rules: m.value,
1488
1489
  action: W.update
1489
1490
  })) {
1490
1491
  h(W.update);
@@ -2197,7 +2198,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2197
2198
  }),
2198
2199
  emits: ["update:modelValue"],
2199
2200
  setup(g) {
2200
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = q(
2201
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = q(
2201
2202
  () => b.map((y) => ({ label: y.name, value: y.id }))
2202
2203
  );
2203
2204
  async function K() {
@@ -2205,7 +2206,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2205
2206
  const y = (i = e.value.platform) == null ? void 0 : i.locationIds;
2206
2207
  if (we({
2207
2208
  integrationRestaurantIds: y,
2208
- ability: f.value,
2209
+ rules: f.value,
2209
2210
  action: W.delete
2210
2211
  })) {
2211
2212
  m(W.delete);
@@ -2227,7 +2228,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2227
2228
  const y = (o = e.value.platform) == null ? void 0 : o.locationIds;
2228
2229
  if (we({
2229
2230
  integrationRestaurantIds: y,
2230
- ability: f.value,
2231
+ rules: f.value,
2231
2232
  action: W.update
2232
2233
  })) {
2233
2234
  m(W.update);
@@ -2798,7 +2799,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2798
2799
  },
2799
2800
  emits: ["update:modelValue"],
2800
2801
  setup(g) {
2801
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = q(
2802
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = q(
2802
2803
  () => b.map((n) => ({ label: n.name, value: n.id }))
2803
2804
  );
2804
2805
  async function K() {
@@ -2806,7 +2807,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2806
2807
  const n = (r = e.value.platform) == null ? void 0 : r.locationIds;
2807
2808
  if (we({
2808
2809
  integrationRestaurantIds: n,
2809
- ability: f.value,
2810
+ rules: f.value,
2810
2811
  action: W.delete
2811
2812
  })) {
2812
2813
  m(W.delete);
@@ -2828,7 +2829,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
2828
2829
  const n = (i = e.value.platform) == null ? void 0 : i.locationIds;
2829
2830
  if (we({
2830
2831
  integrationRestaurantIds: n,
2831
- ability: f.value,
2832
+ rules: f.value,
2832
2833
  action: W.update
2833
2834
  })) {
2834
2835
  m(W.update);
@@ -3651,7 +3652,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3651
3652
  }),
3652
3653
  emits: ["update:modelValue"],
3653
3654
  setup(g) {
3654
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = q(
3655
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = q(
3655
3656
  () => b.map((n) => ({ label: n.name, value: n.id }))
3656
3657
  );
3657
3658
  function K(n) {
@@ -3666,7 +3667,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3666
3667
  const n = (r = e.value.platform) == null ? void 0 : r.locationIds;
3667
3668
  if (we({
3668
3669
  integrationRestaurantIds: n,
3669
- ability: f.value,
3670
+ rules: f.value,
3670
3671
  action: W.delete
3671
3672
  })) {
3672
3673
  m(W.delete);
@@ -3688,7 +3689,7 @@ const _t = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-betwe
3688
3689
  const n = (i = e.value.platform) == null ? void 0 : i.locationIds;
3689
3690
  if (we({
3690
3691
  integrationRestaurantIds: n,
3691
- ability: f.value,
3692
+ rules: f.value,
3692
3693
  action: W.update
3693
3694
  })) {
3694
3695
  m(W.update);
@@ -4558,7 +4559,7 @@ const us = [
4558
4559
  },
4559
4560
  emits: ["update:modelValue"],
4560
4561
  setup(g) {
4561
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = q(
4562
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = q(
4562
4563
  () => b.map((k) => ({ label: k.name, value: k.id }))
4563
4564
  );
4564
4565
  async function K() {
@@ -4566,7 +4567,7 @@ const us = [
4566
4567
  const k = (y = e.value.platform) == null ? void 0 : y.locationIds;
4567
4568
  if (we({
4568
4569
  integrationRestaurantIds: k,
4569
- ability: f.value,
4570
+ rules: f.value,
4570
4571
  action: W.delete
4571
4572
  })) {
4572
4573
  m(W.delete);
@@ -4588,7 +4589,7 @@ const us = [
4588
4589
  const k = (p = e.value.platform) == null ? void 0 : p.locationIds;
4589
4590
  if (we({
4590
4591
  integrationRestaurantIds: k,
4591
- ability: f.value,
4592
+ rules: f.value,
4592
4593
  action: W.update
4593
4594
  })) {
4594
4595
  m(W.update);
@@ -4910,7 +4911,7 @@ const us = [
4910
4911
  }),
4911
4912
  emits: ["update:modelValue"],
4912
4913
  setup(g) {
4913
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = q(
4914
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = q(
4914
4915
  () => b.map((o) => ({ label: o.name, value: o.id }))
4915
4916
  );
4916
4917
  let K = G("");
@@ -4919,7 +4920,7 @@ const us = [
4919
4920
  const o = (F = e.value.platform) == null ? void 0 : F.locationIds;
4920
4921
  if (we({
4921
4922
  integrationRestaurantIds: o,
4922
- ability: f.value,
4923
+ rules: f.value,
4923
4924
  action: W.delete
4924
4925
  })) {
4925
4926
  m(W.delete);
@@ -4941,7 +4942,7 @@ const us = [
4941
4942
  const o = (r = e.value.platform) == null ? void 0 : r.locationIds;
4942
4943
  if (we({
4943
4944
  integrationRestaurantIds: o,
4944
- ability: f.value,
4945
+ rules: f.value,
4945
4946
  action: W.update
4946
4947
  })) {
4947
4948
  m(W.update);
@@ -5788,7 +5789,7 @@ const ai = [
5788
5789
  },
5789
5790
  emits: ["update:modelValue"],
5790
5791
  setup(g) {
5791
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = q(
5792
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = q(
5792
5793
  () => b.map((k) => ({ label: k.name, value: k.id }))
5793
5794
  );
5794
5795
  async function K() {
@@ -5796,7 +5797,7 @@ const ai = [
5796
5797
  const k = (y = e.value.platform) == null ? void 0 : y.locationIds;
5797
5798
  if (we({
5798
5799
  integrationRestaurantIds: k,
5799
- ability: f.value,
5800
+ rules: f.value,
5800
5801
  action: W.delete
5801
5802
  })) {
5802
5803
  m(W.delete);
@@ -5818,7 +5819,7 @@ const ai = [
5818
5819
  const k = (p = e.value.platform) == null ? void 0 : p.locationIds;
5819
5820
  if (we({
5820
5821
  integrationRestaurantIds: k,
5821
- ability: f.value,
5822
+ rules: f.value,
5822
5823
  action: W.update
5823
5824
  })) {
5824
5825
  m(W.update);
@@ -6640,7 +6641,7 @@ const ai = [
6640
6641
  }),
6641
6642
  emits: ["update:modelValue"],
6642
6643
  setup(g) {
6643
- const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { ability: f, notifyUnauthorized: m } = Ne(), h = q(
6644
+ const { t: a } = oe(), e = te(g, "modelValue"), d = ke(), x = Ie(), T = _e(), { promptLoader: V } = je(), { promptMessage: I } = Ye(), { restaurants: b } = Ce(), { rules: f, notifyUnauthorized: m } = Ne(), h = q(
6644
6645
  () => b.map((c) => ({ label: c.name, value: c.id }))
6645
6646
  ), K = [
6646
6647
  {
@@ -6653,7 +6654,7 @@ const ai = [
6653
6654
  const c = (n = e.value.platform) == null ? void 0 : n.locationIds;
6654
6655
  if (we({
6655
6656
  integrationRestaurantIds: c,
6656
- ability: f.value,
6657
+ rules: f.value,
6657
6658
  action: W.delete
6658
6659
  })) {
6659
6660
  m(W.delete);
@@ -6675,7 +6676,7 @@ const ai = [
6675
6676
  const c = (y = e.value.platform) == null ? void 0 : y.locationIds;
6676
6677
  if (we({
6677
6678
  integrationRestaurantIds: c,
6678
- ability: f.value,
6679
+ rules: f.value,
6679
6680
  action: W.update
6680
6681
  })) {
6681
6682
  m(W.update);
@@ -7132,10 +7133,10 @@ const ai = [
7132
7133
  ]);
7133
7134
  };
7134
7135
  }
7135
- }), Sd = { class: "px-24 h-full relative" }, Nd = /* @__PURE__ */ Z({
7136
+ }), Sd = { class: "px-24 h-full relative" }, Pd = /* @__PURE__ */ Z({
7136
7137
  __name: "Integration",
7137
7138
  setup(g) {
7138
- const a = G(void 0), e = it(), d = _e(), { params: x, query: T } = e, V = Ie(), I = G(), b = G([]), { ability: f, notifyUnauthorized: m } = Ne(), h = G(!1);
7139
+ const a = G(void 0), e = it(), d = _e(), { params: x, query: T } = e, V = Ie(), I = G(), b = G([]), { rules: f, notifyUnauthorized: m } = Ne(), h = G(!1);
7139
7140
  et(async () => {
7140
7141
  V.settings.length === 0 && await V.getSettings();
7141
7142
  }), De(
@@ -7147,7 +7148,7 @@ const ai = [
7147
7148
  const k = (s = v.platform) == null ? void 0 : s.locationIds;
7148
7149
  if (we({
7149
7150
  integrationRestaurantIds: k,
7150
- ability: f.value,
7151
+ rules: f.value,
7151
7152
  action: W.read
7152
7153
  }) && !h.value) {
7153
7154
  h.value = !0, m(W.read), d.replace({ name: "integrations", query: T });
@@ -7192,5 +7193,5 @@ const ai = [
7192
7193
  }
7193
7194
  });
7194
7195
  export {
7195
- Nd as default
7196
+ Pd as default
7196
7197
  };