@feedmepos/mf-report 5.31.1-beta.0 → 5.31.2-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-CifvmxI-.js → App-BS7p-1_C.js} +103 -103
  2. package/dist/{DateRangeSelect-ChxxlHH1.js → DateRangeSelect-CU1zLhsi.js} +129 -121
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CL1-_8mf.js → Default.vue_vue_type_script_setup_true_lang-BbIP6Sxr.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DHjqUTvO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CzSVopxn.js} +7 -7
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CSs3HGml.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-V9SzUzmd.js} +453 -453
  6. package/dist/{InsightView-Du6tSxTb.js → InsightView-BY5Sgoxt.js} +5 -5
  7. package/dist/{Integration-BAcn22tg.js → Integration-YOGVHjkr.js} +174 -174
  8. package/dist/{Integrations-DJxV9dAE.js → Integrations-DLn3wHzm.js} +2 -2
  9. package/dist/{Layout-BYyARllh.js → Layout-B8HhRlSf.js} +1 -1
  10. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CvOMVHQ5.js → LocationSelect.vue_vue_type_script_setup_true_lang-C2yXmZru.js} +2 -2
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DresFUiL.js → MenuTab.vue_vue_type_script_setup_true_lang-CZFM47wC.js} +5 -5
  12. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CTWgBaBB.js → NavigationTab.vue_vue_type_script_setup_true_lang-BriXZRy-.js} +5 -5
  13. package/dist/{OverviewView-WaYZ9aiD.js → OverviewView-B4auEUPK.js} +5 -5
  14. package/dist/{Report-NAiFlYu_.js → Report-dar8N8tM.js} +3 -3
  15. package/dist/{ReportCanvasView-Bfr5ZK1X.js → ReportCanvasView-J-TOAEDk.js} +5 -5
  16. package/dist/{ReportEditor-DNKWamHm.js → ReportEditor-GUrAEUjy.js} +7 -7
  17. package/dist/{ReportView-DVOKMdRI.js → ReportView-ok4zqyiS.js} +6 -6
  18. package/dist/{ReportViewRoute-4E5uW09e.js → ReportViewRoute-BcYLz9D0.js} +2 -2
  19. package/dist/{Setting-BIUKmm2_.js → Setting-CW-iwHV7.js} +3 -3
  20. package/dist/{Template-COsS2dIW.js → Template-CYnlmr86.js} +3 -3
  21. package/dist/TileEditor-btcTn9w6.js +4183 -0
  22. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-CIMNFOXf.js → TilePageStack.vue_vue_type_script_setup_true_lang-Be_qbuOb.js} +2 -2
  23. package/dist/{TransitionFade-DddzAlaC.js → TransitionFade-B3zeQDvF.js} +5 -5
  24. package/dist/{app-B1esZ9Mq.js → app-Bw-zsS2R.js} +2337 -2297
  25. package/dist/app.js +1 -1
  26. package/dist/assets/{processTableData.worker-r9RKAQPd.js → formatChartData.worker-UoGYoYc3.js} +30 -42
  27. package/dist/assets/{formatChartData.worker-DcIXAZPX.js → processTableData.worker-DxE4bjxG.js} +33 -45
  28. package/dist/{currency-CT2q92PX.js → currency-DmsNWBQ3.js} +1 -1
  29. package/dist/{index-BScxCrNy.js → index-B5Reb-CL.js} +552 -564
  30. package/dist/{report-BCTiFDGD.js → report-CblaE0LI.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/{useRestaurantPermission-Bt2kY6PE.js → useRestaurantPermission-BZR1kItv.js} +3 -3
  33. package/package.json +1 -1
  34. package/dist/TileEditor-BGiamZMW.js +0 -4184
@@ -1,83 +1,83 @@
1
- import { defineComponent as me, resolveComponent as V, createBlock as pe, openBlock as A, unref as l, isRef as Fe, withCtx as G, createElementVNode as oe, createVNode as Y, toDisplayString as ae, createTextVNode as $e, onMounted as fe, watch as C, ref as U, computed as se, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as H, Fragment as Qe } from "vue";
2
- import { detectLocale as j, useCoreStore as X } from "@feedmepos/mf-common";
3
- import { d as q, u as Ue, a as ie, b as je, c as ce, e as We, f as Ke, g as de } from "./app-B1esZ9Mq.js";
1
+ import { defineComponent as me, resolveComponent as X, createBlock as pe, openBlock as A, unref as u, isRef as Oe, withCtx as P, createElementVNode as re, createVNode as Z, toDisplayString as ae, createTextVNode as $e, onMounted as fe, watch as C, ref as Q, computed as se, onBeforeMount as xe, onBeforeUnmount as Je, createElementBlock as G, Fragment as Qe } from "vue";
2
+ import { detectLocale as U, useCoreStore as H } from "@feedmepos/mf-common";
3
+ import { d as V, u as Ue, a as ie, b as je, c as ce, e as We, f as Ke, g as de, t as Pe, z as Ge, h as He } from "./app-Bw-zsS2R.js";
4
4
  import { storeToRefs as k } from "pinia";
5
- import { u as Pe } from "./global-loader-BuxFfehu.js";
6
- import { u as Ge, a as He } from "./report-BCTiFDGD.js";
7
- import { u as Xe, _ as Ve } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CTWgBaBB.js";
5
+ import { u as Xe } from "./global-loader-BuxFfehu.js";
6
+ import { u as Ze, a as Ve } from "./report-CblaE0LI.js";
7
+ import { u as Ye, _ as Me } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BriXZRy-.js";
8
8
  import { u as ue } from "./message-dialog-UoMWOnil.js";
9
- import { u as Ye } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
- import { useRoute as Ze, useRouter as Me } from "vue-router";
11
- const et = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, tt = /* @__PURE__ */ me({
9
+ import { u as et } from "./_plugin-vue_export-helper-C6QDExPN.js";
10
+ import { useRoute as tt, useRouter as nt } from "vue-router";
11
+ const ot = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, rt = /* @__PURE__ */ me({
12
12
  __name: "Dialog",
13
- setup(T) {
14
- const { t: c } = Ye(), f = ue(), { isOpened: g, message: L, title: E } = k(ue());
15
- return (O, _) => {
16
- const z = V("FmButton"), W = V("FmDialog");
17
- return A(), pe(W, {
18
- modelValue: l(g),
19
- "onUpdate:modelValue": _[0] || (_[0] = (K) => Fe(g) ? g.value = K : null),
13
+ setup(q) {
14
+ const { t: c } = et(), f = ue(), { isOpened: g, message: E, title: L } = k(ue());
15
+ return (T, _) => {
16
+ const z = X("FmButton"), j = X("FmDialog");
17
+ return A(), pe(j, {
18
+ modelValue: u(g),
19
+ "onUpdate:modelValue": _[0] || (_[0] = (W) => Oe(g) ? g.value = W : null),
20
20
  overlay: "",
21
21
  "close-button": !1,
22
22
  "z-index": 3e3
23
23
  }, {
24
- "dialog-header": G(() => [
25
- $e(ae(l(E)), 1)
24
+ "dialog-header": P(() => [
25
+ $e(ae(u(L)), 1)
26
26
  ]),
27
- default: G(() => [
28
- oe("p", et, ae(l(L)), 1)
27
+ default: P(() => [
28
+ re("p", ot, ae(u(E)), 1)
29
29
  ]),
30
- "dialog-footer": G(() => [
31
- _[1] || (_[1] = oe("div", { class: "grow" }, null, -1)),
32
- Y(z, {
33
- label: l(c)("report.common.cancel"),
30
+ "dialog-footer": P(() => [
31
+ _[1] || (_[1] = re("div", { class: "grow" }, null, -1)),
32
+ Z(z, {
33
+ label: u(c)("report.common.cancel"),
34
34
  variant: "tertiary",
35
- onClick: l(f).dismiss
35
+ onClick: u(f).dismiss
36
36
  }, null, 8, ["label", "onClick"]),
37
- Y(z, {
38
- label: l(c)("report.common.confirm"),
39
- onClick: l(f).confirm
37
+ Z(z, {
38
+ label: u(c)("report.common.confirm"),
39
+ onClick: u(f).confirm
40
40
  }, null, 8, ["label", "onClick"])
41
41
  ]),
42
42
  _: 1
43
43
  }, 8, ["modelValue"]);
44
44
  };
45
45
  }
46
- }), le = U(j());
47
- function nt() {
48
- const T = (c) => {
46
+ }), le = Q(U());
47
+ function at() {
48
+ const q = (c) => {
49
49
  switch (le.value = c, c) {
50
50
  case "zh-CN":
51
- q.locale("zh-cn");
51
+ V.locale("zh-cn");
52
52
  break;
53
53
  default:
54
- q.locale("en");
54
+ V.locale("en");
55
55
  break;
56
56
  }
57
57
  };
58
58
  return fe(() => {
59
- T(j());
60
- }), C(() => j(), T, { deep: !0, immediate: !0 }), {
59
+ q(U());
60
+ }), C(() => U(), q, { deep: !0, immediate: !0 }), {
61
61
  currentLocale: le
62
62
  };
63
63
  }
64
- q.locale(j() === "zh-CN" ? "zh-cn" : "en");
65
- const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
64
+ V.locale(U() === "zh-CN" ? "zh-cn" : "en");
65
+ const st = ["src"], it = ["src"], St = /* @__PURE__ */ me({
66
66
  __name: "App",
67
- setup(T) {
68
- const { businessId: c, token: f, country: g } = k(Ue()), { sessionUser: L, currentBusiness: E, currentCountry: O, registerSidebarComponent: _ } = X(), {
67
+ setup(q) {
68
+ const { businessId: c, token: f, country: g } = k(Ue()), { sessionUser: E, currentBusiness: L, currentCountry: T, registerSidebarComponent: _ } = H(), {
69
69
  getRestaurantAndWarehouse: z,
70
- getBusinessSetting: W,
71
- beginBusinessLoad: K,
70
+ getBusinessSetting: j,
71
+ beginBusinessLoad: W,
72
72
  completeBusinessLoad: ge,
73
73
  resetTimezoneContext: ye
74
- } = ie(), ve = je(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = We(), { promptLoader: he } = Pe(), n = Ze(), N = Me(), b = Ge(), Z = Xe(), a = ie(), B = ce(), { suppressReportRouteSync: F } = k(B), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = b, { currentReportId: Le, reports: Ee } = k(b), { getSchema: be } = He(), { fetchSchedules: we } = Z, { init: Ae } = Ke(), P = U("v5"), $ = U(!1), x = U(!0), Ce = se(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), ke = se(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${g.value}&token=${f.value}&reportV3Button=true`);
74
+ } = ie(), ve = je(), { getFeatureFlags: Se } = ve, { version: y } = k(ce()), { getSettings: De } = We(), { promptLoader: he } = Xe(), n = tt(), N = nt(), b = Ze(), Y = Ye(), a = ie(), B = ce(), { suppressReportRouteSync: F } = k(B), { getReports: Ie, getOverviewReport: _e, getReportConfig: Re, currentReportId: M } = b, { currentReportId: Ee, reports: Le } = k(b), { getSchema: be } = Ve(), { fetchSchedules: we } = Y, { init: Ae } = Ke(), K = Q("v5"), O = Q(!1), $ = Q(!0), Ce = se(() => `https://portal-v1.feedmedev.cc/b/${c.value}/report/CLOSE_UP?showHeader=false&country=${g.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), ke = se(() => `https://report-v4.feedmedev.cc?businessId=${c.value}&country=${g.value}&token=${f.value}&reportV3Button=true`);
75
75
  C(
76
- [() => E.value, () => L.value, () => O.value],
76
+ [() => L.value, () => E.value, () => T.value],
77
77
  () => {
78
- var e, r;
79
- const t = ((e = E.value) == null ? void 0 : e.id) ?? "";
80
- E.value && L.value && O.value && (c.value !== t && (c.value = t), f.value = ((r = L.value) == null ? void 0 : r.token) ?? "", g.value = O.value ?? "");
78
+ var e, o;
79
+ const t = ((e = L.value) == null ? void 0 : e.id) ?? "";
80
+ L.value && E.value && T.value && (c.value !== t && (c.value = t), f.value = ((o = E.value) == null ? void 0 : o.token) ?? "", g.value = T.value ?? "");
81
81
  },
82
82
  { immediate: !0 }
83
83
  );
@@ -94,19 +94,19 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
94
94
  if (typeof t.data == "string")
95
95
  try {
96
96
  const e = JSON.parse(t.data);
97
- (e == null ? void 0 : e.v5) === !0 ? y.value = P.value : (e == null ? void 0 : e.v3) === !0 && (y.value = "v3");
97
+ (e == null ? void 0 : e.v5) === !0 ? y.value = K.value : (e == null ? void 0 : e.v3) === !0 && (y.value = "v3");
98
98
  } catch (e) {
99
99
  console.error(e);
100
100
  }
101
101
  }
102
102
  C(y, () => {
103
- ["v3", "v4"].includes(y.value) ? X().hideSidebarToggle(!0) : X().hideSidebarToggle(!1);
103
+ ["v3", "v4"].includes(y.value) ? H().hideSidebarToggle(!0) : H().hideSidebarToggle(!1);
104
104
  }), xe(() => {
105
- _(Ve);
105
+ _(Me);
106
106
  }), fe(() => {
107
- console.log("5.31.1-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
107
+ console.log("5.31.2-beta.0", !0), window.addEventListener("message", ee), window.addEventListener("message", te);
108
108
  }), Je(() => {
109
- window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Z.$dispose();
109
+ window.removeEventListener("message", ee), window.removeEventListener("message", te), b.$dispose(), Y.$dispose();
110
110
  });
111
111
  function qe(t) {
112
112
  try {
@@ -115,19 +115,19 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
115
115
  return t;
116
116
  }
117
117
  }
118
- function J(t) {
118
+ function x(t) {
119
119
  if (typeof t != "string" || t.length === 0) return;
120
120
  const e = t.includes("%") ? [t, qe(t)] : [t];
121
- for (const r of e)
121
+ for (const o of e)
122
122
  try {
123
- const o = JSON.parse(r);
124
- if (typeof o == "string")
123
+ const r = JSON.parse(o);
124
+ if (typeof r == "string")
125
125
  try {
126
- return JSON.parse(o);
126
+ return JSON.parse(r);
127
127
  } catch {
128
- return o;
128
+ return r;
129
129
  }
130
- return o;
130
+ return r;
131
131
  } catch {
132
132
  }
133
133
  }
@@ -136,24 +136,24 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
136
136
  const e = t;
137
137
  return typeof e.hour == "number" && typeof e.minute == "number";
138
138
  }
139
- function m(t, e, r) {
139
+ function l(t, e, o) {
140
140
  if (typeof t != "string" || t.length === 0) return;
141
- const o = t.includes("T") ? q(t).tz(r) : q.tz(t, r);
142
- return (e === "start" ? o.startOf("day") : o.endOf("day")).utc().toISOString();
141
+ const r = Pe(t, o);
142
+ return e === "start" ? Ge(r, o) : He(r, o);
143
143
  }
144
144
  function Te(t = n.query) {
145
- const e = t, r = a.timezone, o = m(e.startDate, "start", r), u = m(e.endDate, "end", r), i = typeof e.timeStart == "string", v = typeof e.timeEnd == "string", S = J(e.timeStart), D = J(e.timeEnd), w = ne(S) ? S : null, h = ne(D) ? D : null, R = m(e.compareStartDate, "start", r), d = m(e.compareEndDate, "end", r), Q = e.isAllLocation === "true" || e.isAllLocation === void 0;
145
+ const e = t, o = a.timezone, r = l(e.startDate, "start", o), m = l(e.endDate, "end", o), i = typeof e.timeStart == "string", v = typeof e.timeEnd == "string", S = x(e.timeStart), D = x(e.timeEnd), w = ne(S) ? S : null, h = ne(D) ? D : null, R = l(e.compareStartDate, "start", o), d = l(e.compareEndDate, "end", o), J = e.isAllLocation === "true" || e.isAllLocation === void 0;
146
146
  let p = [];
147
- if (Q)
147
+ if (J)
148
148
  p = a.selectedLocationIds ?? [];
149
149
  else {
150
- const s = J(e.locationIds);
150
+ const s = x(e.locationIds);
151
151
  p = Array.isArray(s) ? s : [];
152
152
  }
153
153
  let I = e.reportId || M;
154
- if (Ee.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), o || u) {
154
+ if (Le.value.find((s) => s.id === I) || (I = M), I && I !== b.currentReportId && b.updateCurrentReportId(I), r || m) {
155
155
  const s = a.dateRange;
156
- (s.startDate !== o || s.endDate !== u) && a.setDateRange({ startDate: o, endDate: u });
156
+ (s.startDate !== r || s.endDate !== m) && a.setDateRange({ startDate: r, endDate: m });
157
157
  }
158
158
  if (i || v) {
159
159
  const s = a.timeRange;
@@ -166,9 +166,9 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
166
166
  endDate: d
167
167
  });
168
168
  }
169
- if (!Q) {
169
+ if (!J) {
170
170
  const s = a.selectedLocationIds;
171
- s.length === p.length && s.every((Ne, Be) => Ne === p[Be]) || a.setSelectedLocationIds(p);
171
+ s.length === p.length && s.every((Be, Fe) => Be === p[Fe]) || a.setSelectedLocationIds(p);
172
172
  }
173
173
  return {
174
174
  // TODO: this returned value can used for getBusinessSetting
@@ -187,16 +187,16 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
187
187
  () => c.value,
188
188
  async (t, e) => {
189
189
  if (t !== "") {
190
- $.value = !1, K(t);
191
- const r = "mf-report-prev-business-id", o = (() => {
190
+ O.value = !1, W(t);
191
+ const o = "mf-report-prev-business-id", r = (() => {
192
192
  try {
193
- return sessionStorage.getItem(r);
193
+ return sessionStorage.getItem(o);
194
194
  } catch {
195
195
  return null;
196
196
  }
197
- })(), u = !!o && o !== t;
197
+ })(), m = !!r && r !== t;
198
198
  let i = { ...n.query }, v = !1;
199
- if (!x.value || e !== void 0 || u) {
199
+ if (!$.value || e !== void 0 || m) {
200
200
  ye(), a.setSelectedLocationIds([]);
201
201
  const {
202
202
  locationIds: S,
@@ -205,7 +205,7 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
205
205
  timeStart: h,
206
206
  timeEnd: R,
207
207
  compareStartDate: d,
208
- compareEndDate: Q,
208
+ compareEndDate: J,
209
209
  ...p
210
210
  } = n.query;
211
211
  i = {
@@ -225,7 +225,7 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
225
225
  cacheFlags: !1
226
226
  });
227
227
  const S = await Re();
228
- P.value = S.version, y.value = P.value, await Se(), n.name === "template" && !B.canAccessTemplate() && await N.replace({
228
+ K.value = S.version, y.value = K.value, await Se(), n.name === "template" && !B.canAccessTemplate() && await N.replace({
229
229
  name: "reports",
230
230
  query: n.query
231
231
  });
@@ -239,7 +239,7 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
239
239
  Ie(),
240
240
  z(
241
241
  (() => {
242
- const d = J(i.locationIds);
242
+ const d = x(i.locationIds);
243
243
  return Array.isArray(d) ? d : void 0;
244
244
  })()
245
245
  )
@@ -248,40 +248,40 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
248
248
  const R = await Promise.allSettled(h);
249
249
  for (const d of R)
250
250
  d.status === "rejected" && console.log(d.reason);
251
- if (await W(), Te(i), v) {
251
+ if (await j(), Te(i), v) {
252
252
  const {
253
253
  locationIds: d,
254
- startDate: Q,
254
+ startDate: J,
255
255
  endDate: p,
256
256
  timeStart: I,
257
- timeEnd: Oe,
257
+ timeEnd: ze,
258
258
  compareStartDate: s,
259
- compareEndDate: ze,
260
- ...re
259
+ compareEndDate: Ne,
260
+ ...oe
261
261
  } = n.query;
262
262
  (n.query.locationIds !== void 0 || n.query.startDate !== void 0 || n.query.endDate !== void 0 || n.query.timeStart !== void 0 || n.query.timeEnd !== void 0 || n.query.compareStartDate !== void 0 || n.query.compareEndDate !== void 0 || n.query.isAllLocation !== "true") && await N.replace({
263
263
  name: n.name,
264
264
  params: n.params,
265
265
  query: {
266
- ...re,
266
+ ...oe,
267
267
  isAllLocation: "true"
268
268
  }
269
269
  });
270
270
  }
271
271
  ge(t);
272
272
  try {
273
- sessionStorage.setItem(r, t);
273
+ sessionStorage.setItem(o, t);
274
274
  } catch {
275
275
  }
276
- }), $.value = !0, x.value && (x.value = !1);
276
+ }), O.value = !0, $.value && ($.value = !1);
277
277
  }
278
278
  },
279
279
  {
280
280
  immediate: !0
281
281
  }
282
282
  ), C(
283
- () => ($.value, {
284
- reportId: Le.value,
283
+ () => (O.value, {
284
+ reportId: Ee.value,
285
285
  selectedLocationIds: a.selectedLocationIds,
286
286
  dateRange: a.dateRange,
287
287
  timeRange: a.timeRange,
@@ -289,24 +289,24 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
289
289
  timezone: a.timezone
290
290
  }),
291
291
  (t) => {
292
- if (!$.value || !t.reportId || x.value) return;
292
+ if (!O.value || !t.reportId || $.value) return;
293
293
  if (F.value) {
294
294
  F.value = !1;
295
295
  return;
296
296
  }
297
- const e = t.selectedLocationIds, r = t.dateRange, o = t.timeRange, u = t.compareDateRange, i = {
297
+ const e = t.selectedLocationIds, o = t.dateRange, r = t.timeRange, m = t.compareDateRange, i = {
298
298
  ...n.query,
299
299
  reportId: t.reportId,
300
- startDate: m(r.startDate, "start", t.timezone),
301
- endDate: m(r.endDate, "end", t.timezone),
302
- compareStartDate: m(
303
- u.startDate,
300
+ startDate: l(o.startDate, "start", t.timezone),
301
+ endDate: l(o.endDate, "end", t.timezone),
302
+ compareStartDate: l(
303
+ m.startDate,
304
304
  "start",
305
305
  t.timezone
306
306
  ),
307
- compareEndDate: m(u.endDate, "end", t.timezone),
308
- timeStart: o.start ? JSON.stringify(o.start) : void 0,
309
- timeEnd: o.end ? JSON.stringify(o.end) : void 0
307
+ compareEndDate: l(m.endDate, "end", t.timezone),
308
+ timeStart: r.start ? JSON.stringify(r.start) : void 0,
309
+ timeEnd: r.end ? JSON.stringify(r.end) : void 0
310
310
  }, v = e.length === a.locations.length;
311
311
  i.isAllLocation = String(v), v ? delete i.locationIds : e.length > 0 ? i.locationIds = JSON.stringify(e) : delete i.locationIds;
312
312
  const S = JSON.stringify(n.query), D = JSON.stringify(i);
@@ -317,23 +317,23 @@ const rt = ["src"], ot = ["src"], gt = /* @__PURE__ */ me({
317
317
  });
318
318
  },
319
319
  { deep: !0 }
320
- ), nt(), (t, e) => {
321
- const r = V("router-view");
322
- return A(), H(Qe, null, [
323
- Y(tt),
324
- l(y) === "v3" ? (A(), H("iframe", {
320
+ ), at(), (t, e) => {
321
+ const o = X("router-view");
322
+ return A(), G(Qe, null, [
323
+ Z(rt),
324
+ u(y) === "v3" ? (A(), G("iframe", {
325
325
  key: 0,
326
326
  class: "bg-white h-full w-full",
327
327
  src: Ce.value
328
- }, null, 8, rt)) : l(y) === "v4" ? (A(), H("iframe", {
328
+ }, null, 8, st)) : u(y) === "v4" ? (A(), G("iframe", {
329
329
  key: 1,
330
330
  class: "bg-white h-full w-full",
331
331
  src: ke.value
332
- }, null, 8, ot)) : (A(), pe(r, { key: 2 }))
332
+ }, null, 8, it)) : (A(), pe(o, { key: 2 }))
333
333
  ], 64);
334
334
  };
335
335
  }
336
336
  });
337
337
  export {
338
- gt as default
338
+ St as default
339
339
  };