@feedmepos/mf-report 5.21.27-beta.5 → 5.21.27-beta.6

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.
@@ -0,0 +1,237 @@
1
+ import { defineComponent as ee, resolveComponent as U, createBlock as te, openBlock as q, unref as u, isRef as Ie, withCtx as J, createElementVNode as K, createVNode as z, toDisplayString as P, createTextVNode as he, onMounted as ae, watch as S, ref as k, computed as H, onBeforeMount as Re, onBeforeUnmount as qe, createElementBlock as A, Fragment as Le } from "vue";
2
+ import { detectLocale as C, useCoreStore as T } from "@feedmepos/mf-common";
3
+ import { u as Oe, d as i, a as _e, b as X, c as be, e as we, f as Ee, s as ke, g as Ce } from "./vue-i18n-BdbYuMnB.js";
4
+ import { storeToRefs as L } from "pinia";
5
+ import { u as Y, a as Ne, b as Be } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BHDUNZTW.js";
6
+ import { u as Fe, _ as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CW6iYOsZ.js";
7
+ import { u as Z } from "./message-dialog-UoMWOnil.js";
8
+ import { useRoute as xe, useRouter as Je } from "vue-router";
9
+ const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te = /* @__PURE__ */ ee({
10
+ __name: "Dialog",
11
+ setup(O) {
12
+ const { t: r } = Oe(), f = Z(), { isOpened: l, message: D, title: I } = L(Z());
13
+ return (h, g) => {
14
+ const _ = U("FmButton"), N = U("FmDialog");
15
+ return q(), te(N, {
16
+ modelValue: u(l),
17
+ "onUpdate:modelValue": g[0] || (g[0] = (B) => Ie(l) ? l.value = B : null),
18
+ overlay: "",
19
+ "close-button": !1
20
+ }, {
21
+ "dialog-header": J(() => [
22
+ he(P(u(I)), 1)
23
+ ]),
24
+ default: J(() => [
25
+ K("p", Ae, P(u(D)), 1)
26
+ ]),
27
+ "dialog-footer": J(() => [
28
+ g[1] || (g[1] = K("div", { class: "grow" }, null, -1)),
29
+ z(_, {
30
+ label: u(r)("report.common.cancel"),
31
+ variant: "tertiary",
32
+ onClick: u(f).dismiss
33
+ }, null, 8, ["label", "onClick"]),
34
+ z(_, {
35
+ label: u(r)("report.common.confirm"),
36
+ onClick: u(f).confirm
37
+ }, null, 8, ["label", "onClick"])
38
+ ]),
39
+ _: 1
40
+ }, 8, ["modelValue"]);
41
+ };
42
+ }
43
+ }), M = k(C());
44
+ function Ue() {
45
+ const O = (r) => {
46
+ switch (M.value = r, r) {
47
+ case "zh-CN":
48
+ i.locale("zh-cn");
49
+ break;
50
+ default:
51
+ i.locale("en");
52
+ break;
53
+ }
54
+ };
55
+ return ae(() => {
56
+ O(C());
57
+ }), S(() => C(), O, { deep: !0, immediate: !0 }), {
58
+ currentLocale: M
59
+ };
60
+ }
61
+ i.locale(C() === "zh-CN" ? "zh-cn" : "en");
62
+ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
63
+ __name: "App",
64
+ setup(O) {
65
+ const { businessId: r, token: f, country: l } = L(_e()), { sessionUser: D, currentBusiness: I, currentCountry: h, registerSidebarComponent: g } = T(), { getRestaurantAndWarehouse: _, getBusinessSetting: N, beginBusinessLoad: B, completeBusinessLoad: ne } = X(), { getFeatureFlags: re } = be(), { version: p } = L(Y()), { getSettings: oe } = we(), { promptLoader: se } = Ee(), e = xe(), F = Je(), R = Ne(), Q = Fe(), n = X(), ie = Y(), { suppressReportRouteSync: b } = L(ie), ue = H(() => `https://portal-v1.feedmedev.cc/b/${r.value}/report/CLOSE_UP?showHeader=false&country=${l.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), le = H(() => `https://report-v4.feedmedev.cc?businessId=${r.value}&country=${l.value}&token=${f.value}&reportV3Button=true`);
66
+ S(
67
+ [() => I.value, () => D.value, () => h.value],
68
+ () => {
69
+ var t, o;
70
+ const a = ((t = I.value) == null ? void 0 : t.id) ?? "";
71
+ I.value && D.value && h.value && (ke(l.value), r.value !== a && (r.value = a), f.value = ((o = D.value) == null ? void 0 : o.token) ?? "", l.value = h.value ?? "", e.query.businessId !== r.value && F.replace({
72
+ name: e.name,
73
+ params: e.params,
74
+ query: { ...e.query, businessId: r.value }
75
+ }));
76
+ },
77
+ { immediate: !0 }
78
+ );
79
+ function V(a) {
80
+ if (typeof a.data == "string")
81
+ try {
82
+ const t = JSON.parse(a.data);
83
+ (t == null ? void 0 : t.token) !== "" && (t == null ? void 0 : t.token) !== void 0 && (f.value = t.token);
84
+ } catch (t) {
85
+ console.error(t);
86
+ }
87
+ }
88
+ function W(a) {
89
+ if (typeof a.data == "string")
90
+ try {
91
+ const t = JSON.parse(a.data);
92
+ (t == null ? void 0 : t.v5) === !0 ? p.value = $.value : (t == null ? void 0 : t.v3) === !0 && (p.value = "v3");
93
+ } catch (t) {
94
+ console.error(t);
95
+ }
96
+ }
97
+ S(p, () => {
98
+ ["v3", "v4"].includes(p.value) ? T().hideSidebarToggle(!0) : T().hideSidebarToggle(!1);
99
+ }), Re(() => {
100
+ g($e);
101
+ }), ae(() => {
102
+ console.log("5.21.27-beta.6", !0), window.addEventListener("message", V), window.addEventListener("message", W);
103
+ }), qe(() => {
104
+ window.removeEventListener("message", V), window.removeEventListener("message", W), R.$dispose(), Q.$dispose();
105
+ });
106
+ const { getReports: ce, getOverviewReport: de, getReportConfig: j, currentReportId: G } = R, { currentReportId: me, reports: fe } = L(R), { getSchema: pe } = Be(), { fetchSchedules: ge } = Q, { init: ve } = Ce(), $ = k("v5"), w = k(!1), x = k(!0);
107
+ function ye() {
108
+ const a = e.query.startDate ? i(e.query.startDate).startOf("day").toISOString() : void 0, t = e.query.endDate ? i(e.query.endDate).endOf("day").toISOString() : void 0, o = e.query.timeStart ? JSON.parse(e.query.timeStart) : void 0, c = e.query.timeEnd ? JSON.parse(e.query.timeEnd) : void 0, d = e.query.compareStartDate ? i(e.query.compareStartDate).startOf("day").toISOString() : void 0, v = e.query.compareEndDate ? i(e.query.compareEndDate).endOf("day").toISOString() : void 0, E = e.query.isAllLocation === "true";
109
+ let m = [];
110
+ E ? m = n.selectedLocationIds : m = e.query.locationIds ? JSON.parse(e.query.locationIds) : void 0;
111
+ let y = e.query.reportId || G;
112
+ if (fe.value.find((s) => s.id === y) || (y = G), y && y !== R.currentReportId && R.updateCurrentReportId(y), a || t) {
113
+ const s = n.dateRange;
114
+ (s.startDate !== a || s.endDate !== t) && n.setDateRange({ startDate: a, endDate: t });
115
+ }
116
+ if (o || c) {
117
+ const s = n.timeRange;
118
+ (s.start !== o || s.end !== c) && n.setTimeRange({ start: o, end: c });
119
+ }
120
+ if (d || v) {
121
+ const s = n.compareDateRange;
122
+ (s.startDate !== d || s.endDate !== v) && n.setCompareDateRange({
123
+ startDate: d,
124
+ endDate: v
125
+ });
126
+ }
127
+ if (!E && Array.isArray(m)) {
128
+ const s = n.selectedLocationIds;
129
+ s.length === m.length && s.every((Se, De) => Se === m[De]) || n.setSelectedLocationIds(m);
130
+ }
131
+ return {
132
+ // TODO: this returned value can used for getBusinessSetting
133
+ reportId: y,
134
+ startDate: e.query.startDate,
135
+ endDate: e.query.endDate,
136
+ timeStart: e.query.timeStart,
137
+ timeEnd: e.query.timeEnd,
138
+ compareStartDate: e.query.compareStartDate,
139
+ compareEndDate: e.query.compareEndDate,
140
+ locationIds: e.query.locationIds,
141
+ isAllLocation: e.query.isAllLocation
142
+ };
143
+ }
144
+ return S(
145
+ () => h.value,
146
+ (a, t) => {
147
+ !a || a === t || n.setSelectedLocationIds([]);
148
+ }
149
+ ), S(
150
+ () => r.value,
151
+ async (a) => {
152
+ a !== "" && (w.value = !1, B(a), x.value || (n.setSelectedLocationIds([]), F.replace({
153
+ name: e.name,
154
+ params: e.params,
155
+ query: {
156
+ ...e.query,
157
+ locationIds: void 0,
158
+ isAllLocation: "true"
159
+ }
160
+ })), b.value !== void 0 && (b.value = !0), await se(async () => {
161
+ await ve({
162
+ apiKey: "MaGoXrEWuEJNpWgKTqseee",
163
+ url: "https://flag.feedme.farm/api/v1/",
164
+ enableAnalytics: !1,
165
+ cacheFlags: !1
166
+ });
167
+ const t = await j();
168
+ $.value = t.version, p.value = $.value, await Promise.all([
169
+ re(),
170
+ j(),
171
+ de(),
172
+ ce(),
173
+ pe(),
174
+ ge(),
175
+ _(
176
+ e.query.locationIds ? JSON.parse(e.query.locationIds) : null
177
+ ),
178
+ oe()
179
+ ]), await N(), ye(), ne(a);
180
+ }), w.value = !0, x.value && (x.value = !1));
181
+ },
182
+ {
183
+ immediate: !0
184
+ }
185
+ ), S(
186
+ () => (w.value, {
187
+ reportId: me.value,
188
+ selectedLocationIds: n.selectedLocationIds,
189
+ dateRange: n.dateRange,
190
+ timeRange: n.timeRange,
191
+ compareDateRange: n.compareDateRange
192
+ }),
193
+ (a) => {
194
+ if (!w.value || !a.reportId) return;
195
+ if (b.value) {
196
+ b.value = !1;
197
+ return;
198
+ }
199
+ const t = a.selectedLocationIds, o = a.dateRange, c = a.timeRange, d = a.compareDateRange, v = {
200
+ ...e.query,
201
+ reportId: a.reportId,
202
+ startDate: o.startDate ? i(o.startDate).startOf("day").toISOString() : void 0,
203
+ endDate: o.endDate ? i(o.endDate).endOf("day").toISOString() : void 0,
204
+ compareStartDate: d.startDate ? i(d.startDate).startOf("day").toISOString() : void 0,
205
+ compareEndDate: d.endDate ? i(d.endDate).endOf("day").toISOString() : void 0,
206
+ timeStart: c.start ? JSON.stringify(c.start) : void 0,
207
+ timeEnd: c.end ? JSON.stringify(c.end) : void 0,
208
+ locationIds: t.length === n.locations.length ? null : t.length > 0 ? JSON.stringify(t) : void 0,
209
+ isAllLocation: String(t.length === n.locations.length)
210
+ }, E = JSON.stringify(e.query), m = JSON.stringify(v);
211
+ E !== m && F.replace({
212
+ name: e.name,
213
+ params: e.params,
214
+ query: v
215
+ });
216
+ },
217
+ { deep: !0 }
218
+ ), Ue(), (a, t) => {
219
+ const o = U("router-view");
220
+ return q(), A(Le, null, [
221
+ z(Te),
222
+ u(p) === "v3" ? (q(), A("iframe", {
223
+ key: 0,
224
+ class: "bg-white h-full w-full",
225
+ src: ue.value
226
+ }, null, 8, ze)) : u(p) === "v4" ? (q(), A("iframe", {
227
+ key: 1,
228
+ class: "bg-white h-full w-full",
229
+ src: le.value
230
+ }, null, 8, Qe)) : (q(), te(o, { key: 2 }))
231
+ ], 64);
232
+ };
233
+ }
234
+ });
235
+ export {
236
+ et as default
237
+ };
package/dist/app.js CHANGED
@@ -5710,7 +5710,7 @@ const u = {
5710
5710
  "zh-CN": n,
5711
5711
  "th-TH": c,
5712
5712
  "zh-Hant": p
5713
- }, h = e(() => import("./App-CH90Vg7V.js"));
5713
+ }, h = e(() => import("./App-CNPg1Qo5.js"));
5714
5714
  export {
5715
5715
  h as FmApp,
5716
5716
  u as i18nMessages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.21.27-beta.5",
3
+ "version": "5.21.27-beta.6",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,231 +0,0 @@
1
- import { defineComponent as ee, resolveComponent as B, createBlock as te, openBlock as O, unref as l, isRef as Ie, withCtx as F, createElementVNode as H, createVNode as T, toDisplayString as X, createTextVNode as Re, onMounted as ne, watch as D, ref as _, computed as $, onBeforeMount as Oe, onBeforeUnmount as Le, createElementBlock as A, Fragment as _e } from "vue";
2
- import { detectLocale as b, useCoreStore as J } from "@feedmepos/mf-common";
3
- import { u as qe, d as c, a as be, b as Y, c as we, e as ke, f as Ce, s as Ee, g as Ne } from "./vue-i18n-BdbYuMnB.js";
4
- import { storeToRefs as q } from "pinia";
5
- import { u as xe, a as Fe, b as $e } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BHDUNZTW.js";
6
- import { u as Ae, _ as Je } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CW6iYOsZ.js";
7
- import { u as Z } from "./message-dialog-UoMWOnil.js";
8
- import { useRoute as Be, useRouter as Te } from "vue-router";
9
- const Ve = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Ue = /* @__PURE__ */ ee({
10
- __name: "Dialog",
11
- setup(L) {
12
- const { t: s } = qe(), f = Z(), { isOpened: d, message: w, title: k } = q(Z());
13
- return (C, v) => {
14
- const h = B("FmButton"), E = B("FmDialog");
15
- return O(), te(E, {
16
- modelValue: l(d),
17
- "onUpdate:modelValue": v[0] || (v[0] = (N) => Ie(d) ? d.value = N : null),
18
- overlay: "",
19
- "close-button": !1
20
- }, {
21
- "dialog-header": F(() => [
22
- Re(X(l(k)), 1)
23
- ]),
24
- default: F(() => [
25
- H("p", Ve, X(l(w)), 1)
26
- ]),
27
- "dialog-footer": F(() => [
28
- v[1] || (v[1] = H("div", { class: "grow" }, null, -1)),
29
- T(h, {
30
- label: l(s)("report.common.cancel"),
31
- variant: "tertiary",
32
- onClick: l(f).dismiss
33
- }, null, 8, ["label", "onClick"]),
34
- T(h, {
35
- label: l(s)("report.common.confirm"),
36
- onClick: l(f).confirm
37
- }, null, 8, ["label", "onClick"])
38
- ]),
39
- _: 1
40
- }, 8, ["modelValue"]);
41
- };
42
- }
43
- }), M = _(b());
44
- function ze() {
45
- const L = (s) => {
46
- switch (M.value = s, s) {
47
- case "zh-CN":
48
- c.locale("zh-cn");
49
- break;
50
- default:
51
- c.locale("en");
52
- break;
53
- }
54
- };
55
- return ne(() => {
56
- L(b());
57
- }), D(() => b(), L, { deep: !0, immediate: !0 }), {
58
- currentLocale: M
59
- };
60
- }
61
- c.locale(b() === "zh-CN" ? "zh-cn" : "en");
62
- const Qe = ["src"], je = ["src"], nt = /* @__PURE__ */ ee({
63
- __name: "App",
64
- setup(L) {
65
- const { businessId: s, token: f, country: d } = q(be()), { sessionUser: w, currentBusiness: k, currentCountry: C, registerSidebarComponent: v } = J(), { getRestaurantAndWarehouse: h, getBusinessSetting: E, beginBusinessLoad: N, completeBusinessLoad: ae } = Y(), { getFeatureFlags: oe } = we(), { version: m } = q(xe()), { getSettings: re } = ke(), { promptLoader: se } = Ce(), n = Be(), ie = Te(), I = Fe(), V = Ae(), r = Y(), p = _(!1);
66
- function U(e) {
67
- const t = {};
68
- for (const [a, o] of Object.entries(e))
69
- o !== void 0 && (t[a] = o);
70
- return t;
71
- }
72
- function z(e) {
73
- const t = Object.keys(e).sort(), a = {};
74
- for (const o of t) a[o] = e[o];
75
- return JSON.stringify(a);
76
- }
77
- async function ue(e) {
78
- const t = U(n.query), a = { ...n.query, ...e }, o = U(a);
79
- z(t) !== z(o) && await ie.replace({ query: o });
80
- }
81
- const ce = $(() => `https://portal-v1.feedmedev.cc/b/${s.value}/report/CLOSE_UP?showHeader=false&country=${d.value.toUpperCase()}&menuOption=business-report&token=${f.value}&v2=true&reportV5Button=true`), le = $(() => `https://report-v4.feedmedev.cc?businessId=${s.value}&country=${d.value}&token=${f.value}&reportV3Button=true`);
82
- D(
83
- [() => {
84
- var e;
85
- return (e = k.value) == null ? void 0 : e.id;
86
- }, () => {
87
- var e;
88
- return (e = w.value) == null ? void 0 : e.token;
89
- }, () => C.value],
90
- ([e, t, a], [o, u, g]) => {
91
- !e || !t || !a || (f.value = t, d.value = a, Ee(d.value), s.value !== e && (p.value = !!o, r.setSelectedLocationIds([]), s.value = e));
92
- },
93
- { immediate: !0 }
94
- ), D(
95
- () => C.value,
96
- async (e, t) => {
97
- !e || !t || e === t || (p.value = !0, r.setSelectedLocationIds([]), s.value && R.value && (await h(), p.value = !1));
98
- }
99
- );
100
- function Q(e) {
101
- if (typeof e.data == "string")
102
- try {
103
- const t = JSON.parse(e.data);
104
- (t == null ? void 0 : t.token) !== "" && (t == null ? void 0 : t.token) !== void 0 && (f.value = t.token);
105
- } catch (t) {
106
- console.error(t);
107
- }
108
- }
109
- function j(e) {
110
- if (typeof e.data == "string")
111
- try {
112
- const t = JSON.parse(e.data);
113
- (t == null ? void 0 : t.v5) === !0 ? m.value = x.value : (t == null ? void 0 : t.v3) === !0 && (m.value = "v3");
114
- } catch (t) {
115
- console.error(t);
116
- }
117
- }
118
- D(m, () => {
119
- ["v3", "v4"].includes(m.value) ? J().hideSidebarToggle(!0) : J().hideSidebarToggle(!1);
120
- }), Oe(() => {
121
- v(Je);
122
- }), ne(() => {
123
- console.log("5.21.27-beta.5", !0), window.addEventListener("message", Q), window.addEventListener("message", j);
124
- }), Le(() => {
125
- window.removeEventListener("message", Q), window.removeEventListener("message", j), I.$dispose(), V.$dispose();
126
- });
127
- const { getReports: de, getOverviewReport: fe, getReportConfig: W, currentReportId: G } = I, { currentReportId: K, reports: me } = q(I), { getSchema: pe } = $e(), { fetchSchedules: ge } = V, { init: ve } = Ne(), x = _("v5"), R = _(!1);
128
- function ye() {
129
- const e = n.query.startDate ? c(n.query.startDate).startOf("day").toISOString() : void 0, t = n.query.endDate ? c(n.query.endDate).endOf("day").toISOString() : void 0, a = n.query.timeStart ? JSON.parse(n.query.timeStart) : void 0, o = n.query.timeEnd ? JSON.parse(n.query.timeEnd) : void 0, u = n.query.compareStartDate ? c(n.query.compareStartDate).startOf("day").toISOString() : void 0, g = n.query.compareEndDate ? c(n.query.compareEndDate).endOf("day").toISOString() : void 0, P = n.query.isAllLocation === "true";
130
- let y = [];
131
- P ? y = r.selectedLocationIds : y = n.query.locationIds ? JSON.parse(n.query.locationIds) : void 0;
132
- let S = n.query.reportId || G;
133
- if (me.value.find((i) => i.id === S) || (S = G), S && S !== I.currentReportId && I.updateCurrentReportId(S), e || t) {
134
- const i = r.dateRange;
135
- (i.startDate !== e || i.endDate !== t) && r.setDateRange({ startDate: e, endDate: t });
136
- }
137
- if (a || o) {
138
- const i = r.timeRange;
139
- (i.start !== a || i.end !== o) && r.setTimeRange({ start: a, end: o });
140
- }
141
- if (u || g) {
142
- const i = r.compareDateRange;
143
- (i.startDate !== u || i.endDate !== g) && r.setCompareDateRange({
144
- startDate: u,
145
- endDate: g
146
- });
147
- }
148
- if (!P && Array.isArray(y)) {
149
- const i = r.selectedLocationIds;
150
- i.length === y.length && i.every((De, he) => De === y[he]) || r.setSelectedLocationIds(y);
151
- }
152
- return {
153
- // TODO: this returned value can used for getBusinessSetting
154
- reportId: S,
155
- startDate: n.query.startDate,
156
- endDate: n.query.endDate,
157
- timeStart: n.query.timeStart,
158
- timeEnd: n.query.timeEnd,
159
- compareStartDate: n.query.compareStartDate,
160
- compareEndDate: n.query.compareEndDate,
161
- locationIds: n.query.locationIds,
162
- isAllLocation: n.query.isAllLocation
163
- };
164
- }
165
- D(
166
- () => s.value,
167
- async (e, t) => {
168
- e !== "" && (R.value = !1, N(e), t && e !== t && (p.value = !0, r.setSelectedLocationIds([])), await se(async () => {
169
- await ve({
170
- apiKey: "MaGoXrEWuEJNpWgKTqseee",
171
- url: "https://flag.feedme.farm/api/v1/",
172
- enableAnalytics: !1,
173
- cacheFlags: !1
174
- });
175
- const o = await W();
176
- x.value = o.version, m.value = x.value;
177
- const u = !p.value && n.query.locationIds ? JSON.parse(n.query.locationIds) : null;
178
- await Promise.all([
179
- oe(),
180
- W(),
181
- fe(),
182
- de(),
183
- pe(),
184
- ge(),
185
- h(u ?? void 0),
186
- re()
187
- ]), await E(), ye(), p.value = !1, ae(e);
188
- }), R.value = !0);
189
- },
190
- {
191
- immediate: !0
192
- }
193
- );
194
- const Se = $(() => {
195
- const e = {};
196
- if (e.businessId = s.value || void 0, p.value)
197
- e.locationIds = void 0, e.isAllLocation = "true";
198
- else if (R.value) {
199
- const u = r.selectedLocationIds, g = r.locations.length;
200
- e.locationIds = u.length === g ? null : u.length > 0 ? JSON.stringify(u) : void 0, e.isAllLocation = String(u.length === g);
201
- }
202
- if (!R.value || !K.value) return e;
203
- const t = r.dateRange, a = r.timeRange, o = r.compareDateRange;
204
- return e.reportId = K.value, e.startDate = t.startDate ? c(t.startDate).startOf("day").toISOString() : void 0, e.endDate = t.endDate ? c(t.endDate).endOf("day").toISOString() : void 0, e.compareStartDate = o.startDate ? c(o.startDate).startOf("day").toISOString() : void 0, e.compareEndDate = o.endDate ? c(o.endDate).endOf("day").toISOString() : void 0, e.timeStart = a.start ? JSON.stringify(a.start) : void 0, e.timeEnd = a.end ? JSON.stringify(a.end) : void 0, e;
205
- });
206
- return D(
207
- Se,
208
- async (e) => {
209
- e.businessId && await ue(e);
210
- },
211
- { deep: !0, flush: "post" }
212
- ), ze(), (e, t) => {
213
- const a = B("router-view");
214
- return O(), A(_e, null, [
215
- T(Ue),
216
- l(m) === "v3" ? (O(), A("iframe", {
217
- key: 0,
218
- class: "bg-white h-full w-full",
219
- src: ce.value
220
- }, null, 8, Qe)) : l(m) === "v4" ? (O(), A("iframe", {
221
- key: 1,
222
- class: "bg-white h-full w-full",
223
- src: le.value
224
- }, null, 8, je)) : (O(), te(a, { key: 2 }))
225
- ], 64);
226
- };
227
- }
228
- });
229
- export {
230
- nt as default
231
- };