@myop/vue 0.0.29 → 0.0.31
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.
- package/dist/index.d.ts +1 -38
- package/dist/index.js +297 -299
- package/dist/index.umd.cjs +8 -8
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { containerStyleObject as
|
|
3
|
-
import { CloudRepository as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as X, useSlots as Z, computed as y, createElementBlock as T, openBlock as S, normalizeStyle as q, renderSlot as H, unref as he, ref as p, shallowRef as ct, watch as le, onMounted as Re, onUnmounted as ut, createElementVNode as Ae, createBlock as Ie, createCommentVNode as fe, withCtx as De, markRaw as Fe, useAttrs as ft, getCurrentInstance as pt, reactive as dt, watchEffect as mt, Fragment as ht, mergeProps as gt } from "vue";
|
|
2
|
+
import { containerStyleObject as yt, loaderStyleObject as _t, getMyopLogoHtml as Te, fallbackStyleObject as Ct, hostSDK as He } from "@myop/sdk/host";
|
|
3
|
+
import { isPreloaded as vt, getCloudRepository as Et, CloudRepository as Nt } from "@myop/sdk/helpers";
|
|
4
|
+
import { enableLocalDev as Dn, getCloudRepository as Fn, getPreloadedParams as $n, isPreloaded as xn, preloadComponents as Rn, setCloudRepository as An, setCloudRepositoryUrl as Tn, setEnvironment as Hn } from "@myop/sdk/helpers";
|
|
5
|
+
const bt = ["innerHTML"], St = /* @__PURE__ */ X({
|
|
5
6
|
__name: "MyopLoader",
|
|
6
7
|
props: {
|
|
7
8
|
opacity: { default: 1 },
|
|
8
9
|
fadeDuration: { default: 200 }
|
|
9
10
|
},
|
|
10
11
|
setup(e) {
|
|
11
|
-
const t = e, n =
|
|
12
|
+
const t = e, n = Z(), o = (l) => !l || l.length === 0 ? !1 : l.some((c) => typeof c.children == "string" ? c.children.trim() !== "" : Array.isArray(c.children) ? o(c.children) : !!(c.type && typeof c.type != "symbol" || c.children)), s = y(() => {
|
|
12
13
|
const l = n.default;
|
|
13
14
|
if (!l) return !1;
|
|
14
15
|
const c = l();
|
|
15
16
|
return o(c);
|
|
16
17
|
}), r = y(() => ({
|
|
17
|
-
...
|
|
18
|
+
...yt,
|
|
18
19
|
opacity: t.opacity,
|
|
19
20
|
transition: `opacity ${t.fadeDuration}ms ease-out`
|
|
20
21
|
})), i = y(() => ({
|
|
21
|
-
...
|
|
22
|
+
..._t,
|
|
22
23
|
opacity: t.opacity,
|
|
23
24
|
transition: `opacity ${t.fadeDuration}ms ease-out`
|
|
24
|
-
})), a =
|
|
25
|
-
return (l, c) => s.value ? (
|
|
25
|
+
})), a = Te();
|
|
26
|
+
return (l, c) => s.value ? (S(), T("div", {
|
|
26
27
|
key: 0,
|
|
27
|
-
style:
|
|
28
|
+
style: q(r.value)
|
|
28
29
|
}, [
|
|
29
|
-
|
|
30
|
-
], 4)) : (
|
|
30
|
+
H(l.$slots, "default")
|
|
31
|
+
], 4)) : (S(), T("div", {
|
|
31
32
|
key: 1,
|
|
32
|
-
style:
|
|
33
|
+
style: q(i.value),
|
|
33
34
|
innerHTML: he(a)
|
|
34
|
-
}, null, 12,
|
|
35
|
+
}, null, 12, bt));
|
|
35
36
|
}
|
|
36
|
-
}),
|
|
37
|
+
}), wt = ["innerHTML"], Ot = /* @__PURE__ */ X({
|
|
37
38
|
__name: "MyopFallback",
|
|
38
39
|
setup(e) {
|
|
39
|
-
const t =
|
|
40
|
+
const t = Z(), n = (a) => !a || a.length === 0 ? !1 : a.some((l) => typeof l.children == "string" ? l.children.trim() !== "" : Array.isArray(l.children) ? n(l.children) : !!(l.type && typeof l.type != "symbol" || l.children)), o = y(() => {
|
|
40
41
|
const a = t.default;
|
|
41
42
|
if (!a) return !1;
|
|
42
43
|
const l = a();
|
|
@@ -48,20 +49,20 @@ const yt = ["innerHTML"], _t = /* @__PURE__ */ Q({
|
|
|
48
49
|
right: "0",
|
|
49
50
|
bottom: "0"
|
|
50
51
|
}, r = {
|
|
51
|
-
...
|
|
52
|
-
}, i =
|
|
53
|
-
return (a, l) => o.value ? (
|
|
52
|
+
...Ct
|
|
53
|
+
}, i = Te();
|
|
54
|
+
return (a, l) => o.value ? (S(), T("div", {
|
|
54
55
|
key: 0,
|
|
55
56
|
style: s
|
|
56
57
|
}, [
|
|
57
|
-
|
|
58
|
-
])) : (
|
|
58
|
+
H(a.$slots, "default")
|
|
59
|
+
])) : (S(), T("div", {
|
|
59
60
|
key: 1,
|
|
60
61
|
style: r,
|
|
61
62
|
innerHTML: he(i)
|
|
62
|
-
}, null, 8,
|
|
63
|
+
}, null, 8, wt));
|
|
63
64
|
}
|
|
64
|
-
}),
|
|
65
|
+
}), On = /* @__PURE__ */ X({
|
|
65
66
|
name: "MyopComponent",
|
|
66
67
|
__name: "MyopComponent",
|
|
67
68
|
props: {
|
|
@@ -69,14 +70,14 @@ const yt = ["innerHTML"], _t = /* @__PURE__ */ Q({
|
|
|
69
70
|
componentConfig: {},
|
|
70
71
|
data: {},
|
|
71
72
|
fadeDuration: { default: 200 },
|
|
72
|
-
autoSize: { type: Boolean, default: !
|
|
73
|
+
autoSize: { type: Boolean, default: !0 },
|
|
73
74
|
environment: {},
|
|
74
75
|
preview: { type: Boolean },
|
|
75
76
|
on: {}
|
|
76
77
|
},
|
|
77
78
|
emits: ["load", "error", "sizeChange", "cta"],
|
|
78
79
|
setup(e, { expose: t, emit: n }) {
|
|
79
|
-
const o =
|
|
80
|
+
const o = Z(), s = (u) => !u || u.length === 0 ? !1 : u.some((f) => typeof f.children == "string" ? f.children.trim() !== "" : Array.isArray(f.children) ? s(f.children) : !!(f.type && typeof f.type != "symbol" || f.children)), r = y(() => {
|
|
80
81
|
const u = o.loader;
|
|
81
82
|
if (!u) return !1;
|
|
82
83
|
const f = u();
|
|
@@ -88,16 +89,16 @@ const yt = ["innerHTML"], _t = /* @__PURE__ */ Q({
|
|
|
88
89
|
const f = u();
|
|
89
90
|
return s(f);
|
|
90
91
|
});
|
|
91
|
-
const i = e, a = n, l =
|
|
92
|
-
let
|
|
92
|
+
const i = e, a = n, l = p(null), c = ct(null), d = i.componentId ? vt(i.componentId) : !1, g = p(!d), k = p(1), E = p(!1), V = p(!1), I = p(void 0), Ne = p({ fillWidth: !1, fillHeight: !1 }), oe = p(!1), L = p(null);
|
|
93
|
+
let F = null;
|
|
93
94
|
const re = () => {
|
|
94
|
-
|
|
95
|
+
k.value = 0, setTimeout(() => {
|
|
95
96
|
g.value = !1;
|
|
96
97
|
}, i.fadeDuration);
|
|
97
98
|
}, se = (u) => {
|
|
98
|
-
console.error("[MyopComponent] Error:", u), re(),
|
|
99
|
+
console.error("[MyopComponent] Error:", u), re(), E.value = !0, a("error", u);
|
|
99
100
|
}, ie = async (u) => {
|
|
100
|
-
var N,
|
|
101
|
+
var N, j, Se;
|
|
101
102
|
oe.value = !0;
|
|
102
103
|
let f = !1;
|
|
103
104
|
try {
|
|
@@ -112,60 +113,63 @@ const yt = ["innerHTML"], _t = /* @__PURE__ */ Q({
|
|
|
112
113
|
se("No component configuration provided");
|
|
113
114
|
return;
|
|
114
115
|
}
|
|
115
|
-
const
|
|
116
|
+
const it = m.preview === !0 ? !0 : void 0, lt = u.componentConfig ? JSON.parse(JSON.stringify(u.componentConfig)) : await Et().fetchComponentV2(
|
|
116
117
|
m.componentId,
|
|
117
118
|
m.environment,
|
|
118
|
-
|
|
119
|
+
it
|
|
119
120
|
);
|
|
120
121
|
if (!l.value) {
|
|
121
122
|
se("Container element not found");
|
|
122
123
|
return;
|
|
123
124
|
}
|
|
124
|
-
const
|
|
125
|
+
const at = Fe({
|
|
125
126
|
data: m.data,
|
|
126
127
|
_environment: {
|
|
127
128
|
props: m
|
|
128
129
|
}
|
|
129
|
-
}),
|
|
130
|
-
|
|
130
|
+
}), we = await He.loadComponent(
|
|
131
|
+
lt,
|
|
131
132
|
l.value,
|
|
132
|
-
|
|
133
|
+
at
|
|
133
134
|
);
|
|
134
135
|
if (f) {
|
|
135
|
-
|
|
136
|
+
we.dispose();
|
|
136
137
|
return;
|
|
137
138
|
}
|
|
138
|
-
if (c.value =
|
|
139
|
+
if (c.value = Fe(we), await c.value.initiated(), f) {
|
|
139
140
|
(N = c.value) == null || N.dispose();
|
|
140
141
|
return;
|
|
141
142
|
}
|
|
142
|
-
if (await new Promise((
|
|
143
|
+
if (await new Promise((U) => requestAnimationFrame(U)), f || !c.value || c.value.markedForDisposed) {
|
|
143
144
|
c.value && !c.value.markedForDisposed && c.value.dispose();
|
|
144
145
|
return;
|
|
145
146
|
}
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
V.value = !0;
|
|
148
|
+
const $ = (j = c.value) == null ? void 0 : j.sizeMeta, Oe = ($ == null ? void 0 : $.width) === "100%", ke = ($ == null ? void 0 : $.height) === "100%";
|
|
149
|
+
Ne.value = { fillWidth: Oe, fillHeight: ke }, (!(i.autoSize ?? !0) || Oe && ke) && re(), (Se = c.value) != null && Se.props && (c.value.props.myop_cta_handler = (U, Ve) => {
|
|
150
|
+
i.on && i.on(U, Ve), a("cta", U, Ve);
|
|
148
151
|
}), a("load", c.value);
|
|
149
152
|
} catch (m) {
|
|
150
153
|
f || se((m == null ? void 0 : m.message) || "Unknown error");
|
|
151
154
|
} finally {
|
|
152
|
-
if (oe.value = !1,
|
|
153
|
-
const m =
|
|
154
|
-
|
|
155
|
+
if (oe.value = !1, L.value !== null && !f) {
|
|
156
|
+
const m = L.value;
|
|
157
|
+
L.value = null, await ie(m);
|
|
155
158
|
}
|
|
156
159
|
}
|
|
157
160
|
return () => {
|
|
158
161
|
f = !0;
|
|
159
162
|
};
|
|
160
|
-
},
|
|
163
|
+
}, ot = () => {
|
|
161
164
|
var f;
|
|
162
|
-
if (!
|
|
165
|
+
if (!V.value || !((f = c.value) != null && f.observeAutoSize))
|
|
163
166
|
return;
|
|
164
167
|
let u = !0;
|
|
165
|
-
|
|
168
|
+
F = c.value.observeAutoSize({
|
|
169
|
+
// SDK resolves: host props → sizeMeta → defaults (width: "100%", height: auto-size)
|
|
166
170
|
explicitWidth: void 0,
|
|
167
171
|
explicitHeight: void 0,
|
|
168
|
-
forceAutoSize: i.autoSize,
|
|
172
|
+
forceAutoSize: i.autoSize ?? !0,
|
|
169
173
|
loaderMinHeight: 50,
|
|
170
174
|
onSizeChange: (N) => {
|
|
171
175
|
a("sizeChange", N), I.value = N, u && (u = !1, re());
|
|
@@ -175,74 +179,80 @@ const yt = ["innerHTML"], _t = /* @__PURE__ */ Q({
|
|
|
175
179
|
le(
|
|
176
180
|
() => i.componentId,
|
|
177
181
|
async (u, f) => {
|
|
178
|
-
u !== f && (
|
|
182
|
+
u !== f && (V.value = !1, E.value = !1, g.value = !0, k.value = 1, c.value && (c.value.dispose(), c.value = null), F && (F(), F = null), oe.value ? L.value = { ...i } : await ie(i));
|
|
179
183
|
}
|
|
180
184
|
), le(
|
|
181
185
|
() => i.data,
|
|
182
186
|
(u) => {
|
|
183
187
|
var f;
|
|
184
|
-
if (
|
|
188
|
+
if (V.value && u !== void 0 && c.value) {
|
|
185
189
|
const N = (f = c.value.props) == null ? void 0 : f.myop_init_interface;
|
|
186
190
|
if (N) {
|
|
187
|
-
const
|
|
188
|
-
N(
|
|
191
|
+
const j = JSON.parse(JSON.stringify(u));
|
|
192
|
+
N(j);
|
|
189
193
|
}
|
|
190
194
|
}
|
|
191
195
|
},
|
|
192
196
|
{ deep: !0 }
|
|
193
197
|
), le(
|
|
194
|
-
() =>
|
|
198
|
+
() => V.value,
|
|
195
199
|
(u) => {
|
|
196
|
-
u &&
|
|
200
|
+
u && ot();
|
|
197
201
|
}
|
|
198
|
-
),
|
|
202
|
+
), Re(async () => {
|
|
199
203
|
(i.componentId || i.componentConfig) && await ie(i);
|
|
200
|
-
}),
|
|
201
|
-
|
|
204
|
+
}), ut(() => {
|
|
205
|
+
F && F(), c.value && c.value.dispose();
|
|
202
206
|
});
|
|
203
|
-
const
|
|
204
|
-
() =>
|
|
205
|
-
|
|
206
|
-
return ((u = I.value) == null ? void 0 : u.autoSizingWidth) || ((f = I.value) == null ? void 0 : f.autoSizingHeight);
|
|
207
|
-
}
|
|
208
|
-
), Se = y(() => g.value ? 50 : void 0), tt = y(() => {
|
|
207
|
+
const P = y(() => g.value ? 50 : void 0), be = y(
|
|
208
|
+
() => !(i.autoSize ?? !0) || !V.value || Ne.value.fillHeight
|
|
209
|
+
), rt = y(() => {
|
|
209
210
|
var u, f;
|
|
210
|
-
return {
|
|
211
|
+
return be.value ? {
|
|
212
|
+
position: "relative",
|
|
213
|
+
width: "100%",
|
|
214
|
+
height: "100%",
|
|
215
|
+
minHeight: P.value ? `${P.value}px` : void 0
|
|
216
|
+
} : {
|
|
211
217
|
position: "relative",
|
|
212
218
|
width: (u = I.value) != null && u.autoSizingWidth ? `${I.value.width}px` : "100%",
|
|
213
|
-
height: (f = I.value) != null && f.
|
|
214
|
-
minHeight:
|
|
215
|
-
overflow: Ne.value ? "hidden" : "inherit"
|
|
219
|
+
height: (f = I.value) != null && f.height ? `${I.value.height}px` : void 0,
|
|
220
|
+
minHeight: P.value ? `${P.value}px` : void 0
|
|
216
221
|
};
|
|
217
|
-
}),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
}), st = y(() => {
|
|
223
|
+
var u;
|
|
224
|
+
return be.value ? {
|
|
225
|
+
position: "absolute",
|
|
226
|
+
inset: "0"
|
|
227
|
+
} : {
|
|
228
|
+
width: "100%",
|
|
229
|
+
height: (u = I.value) != null && u.height ? `${I.value.height}px` : void 0
|
|
230
|
+
};
|
|
231
|
+
});
|
|
222
232
|
return t({
|
|
223
233
|
myopComponent: c,
|
|
224
|
-
isLoaded:
|
|
225
|
-
}), (u, f) => (
|
|
226
|
-
style:
|
|
234
|
+
isLoaded: V
|
|
235
|
+
}), (u, f) => (S(), T("div", {
|
|
236
|
+
style: q(rt.value)
|
|
227
237
|
}, [
|
|
228
|
-
|
|
238
|
+
Ae("div", {
|
|
229
239
|
ref_key: "myopContainer",
|
|
230
240
|
ref: l,
|
|
231
|
-
style:
|
|
241
|
+
style: q(st.value)
|
|
232
242
|
}, null, 4),
|
|
233
|
-
g.value && r.value ? (
|
|
243
|
+
g.value && r.value ? (S(), Ie(St, {
|
|
234
244
|
key: 0,
|
|
235
|
-
opacity:
|
|
245
|
+
opacity: k.value,
|
|
236
246
|
"fade-duration": e.fadeDuration
|
|
237
247
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
|
|
248
|
+
default: De(() => [
|
|
249
|
+
H(u.$slots, "loader")
|
|
240
250
|
]),
|
|
241
251
|
_: 3
|
|
242
252
|
}, 8, ["opacity", "fade-duration"])) : fe("", !0),
|
|
243
|
-
|
|
244
|
-
default:
|
|
245
|
-
|
|
253
|
+
E.value ? (S(), Ie(Ot, { key: 1 }, {
|
|
254
|
+
default: De(() => [
|
|
255
|
+
H(u.$slots, "fallback")
|
|
246
256
|
]),
|
|
247
257
|
_: 3
|
|
248
258
|
})) : fe("", !0)
|
|
@@ -254,37 +264,37 @@ const yt = ["innerHTML"], _t = /* @__PURE__ */ Q({
|
|
|
254
264
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
255
265
|
* @license MIT
|
|
256
266
|
**/
|
|
257
|
-
const
|
|
267
|
+
const kt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
258
268
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
259
|
-
const
|
|
260
|
-
},
|
|
261
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ge = Object.assign, C = Array.isArray, _ = (e) => typeof e == "function", w = (e) => typeof e == "string",
|
|
269
|
+
const Me = () => {
|
|
270
|
+
}, Vt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
271
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ge = Object.assign, C = Array.isArray, _ = (e) => typeof e == "function", w = (e) => typeof e == "string", It = (e) => typeof e == "symbol", M = (e) => e !== null && typeof e == "object", Dt = (e) => (M(e) || _(e)) && _(e.then) && _(e.catch), ze = (e) => {
|
|
262
272
|
const t = /* @__PURE__ */ Object.create(null);
|
|
263
273
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
264
|
-
},
|
|
265
|
-
(e) => e ? `on${
|
|
274
|
+
}, Ft = ze((e) => e.charAt(0).toUpperCase() + e.slice(1)), $t = ze(
|
|
275
|
+
(e) => e ? `on${Ft(e)}` : ""
|
|
266
276
|
);
|
|
267
|
-
let
|
|
268
|
-
const ee = () =>
|
|
277
|
+
let $e;
|
|
278
|
+
const ee = () => $e || ($e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
269
279
|
function ye(e) {
|
|
270
280
|
if (C(e)) {
|
|
271
281
|
const t = {};
|
|
272
282
|
for (let n = 0; n < e.length; n++) {
|
|
273
|
-
const o = e[n], s = w(o) ?
|
|
283
|
+
const o = e[n], s = w(o) ? Tt(o) : ye(o);
|
|
274
284
|
if (s)
|
|
275
285
|
for (const r in s)
|
|
276
286
|
t[r] = s[r];
|
|
277
287
|
}
|
|
278
288
|
return t;
|
|
279
|
-
} else if (w(e) ||
|
|
289
|
+
} else if (w(e) || M(e))
|
|
280
290
|
return e;
|
|
281
291
|
}
|
|
282
|
-
const
|
|
283
|
-
function
|
|
292
|
+
const xt = /;(?![^(]*\))/g, Rt = /:([^]+)/, At = /\/\*[^]*?\*\//g;
|
|
293
|
+
function Tt(e) {
|
|
284
294
|
const t = {};
|
|
285
|
-
return e.replace(
|
|
295
|
+
return e.replace(At, "").split(xt).forEach((n) => {
|
|
286
296
|
if (n) {
|
|
287
|
-
const o = n.split(
|
|
297
|
+
const o = n.split(Rt);
|
|
288
298
|
o.length > 1 && (t[o[0].trim()] = o[1].trim());
|
|
289
299
|
}
|
|
290
300
|
}), t;
|
|
@@ -298,7 +308,7 @@ function _e(e) {
|
|
|
298
308
|
const o = _e(e[n]);
|
|
299
309
|
o && (t += o + " ");
|
|
300
310
|
}
|
|
301
|
-
else if (
|
|
311
|
+
else if (M(e))
|
|
302
312
|
for (const n in e)
|
|
303
313
|
e[n] && (t += n + " ");
|
|
304
314
|
return t.trim();
|
|
@@ -312,19 +322,19 @@ process.env.NODE_ENV;
|
|
|
312
322
|
process.env.NODE_ENV;
|
|
313
323
|
process.env.NODE_ENV;
|
|
314
324
|
new Set(
|
|
315
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
325
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(It)
|
|
316
326
|
);
|
|
317
327
|
// @__NO_SIDE_EFFECTS__
|
|
318
328
|
function pe(e) {
|
|
319
329
|
return e ? !!e.__v_raw : !1;
|
|
320
330
|
}
|
|
321
331
|
// @__NO_SIDE_EFFECTS__
|
|
322
|
-
function
|
|
332
|
+
function B(e) {
|
|
323
333
|
const t = e && e.__v_raw;
|
|
324
|
-
return t ? /* @__PURE__ */
|
|
334
|
+
return t ? /* @__PURE__ */ B(t) : e;
|
|
325
335
|
}
|
|
326
336
|
// @__NO_SIDE_EFFECTS__
|
|
327
|
-
function
|
|
337
|
+
function Le(e) {
|
|
328
338
|
return e ? e.__v_isRef === !0 : !1;
|
|
329
339
|
}
|
|
330
340
|
/**
|
|
@@ -333,17 +343,17 @@ function Me(e) {
|
|
|
333
343
|
* @license MIT
|
|
334
344
|
**/
|
|
335
345
|
const D = [];
|
|
336
|
-
function
|
|
346
|
+
function Ht(e) {
|
|
337
347
|
D.push(e);
|
|
338
348
|
}
|
|
339
|
-
function
|
|
349
|
+
function Mt() {
|
|
340
350
|
D.pop();
|
|
341
351
|
}
|
|
342
352
|
let ae = !1;
|
|
343
353
|
function O(e, ...t) {
|
|
344
354
|
if (ae) return;
|
|
345
355
|
ae = !0;
|
|
346
|
-
const n = D.length ? D[D.length - 1].component : null, o = n && n.appContext.config.warnHandler, s =
|
|
356
|
+
const n = D.length ? D[D.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = zt();
|
|
347
357
|
if (o)
|
|
348
358
|
te(
|
|
349
359
|
o,
|
|
@@ -357,7 +367,7 @@ function O(e, ...t) {
|
|
|
357
367
|
}).join(""),
|
|
358
368
|
n && n.proxy,
|
|
359
369
|
s.map(
|
|
360
|
-
({ vnode: r }) => `at <${
|
|
370
|
+
({ vnode: r }) => `at <${tt(n, r.type)}>`
|
|
361
371
|
).join(`
|
|
362
372
|
`),
|
|
363
373
|
s
|
|
@@ -366,11 +376,11 @@ function O(e, ...t) {
|
|
|
366
376
|
else {
|
|
367
377
|
const r = [`[Vue warn]: ${e}`, ...t];
|
|
368
378
|
s.length && r.push(`
|
|
369
|
-
`, ...
|
|
379
|
+
`, ...Lt(s)), console.warn(...r);
|
|
370
380
|
}
|
|
371
381
|
ae = !1;
|
|
372
382
|
}
|
|
373
|
-
function
|
|
383
|
+
function zt() {
|
|
374
384
|
let e = D[D.length - 1];
|
|
375
385
|
if (!e)
|
|
376
386
|
return [];
|
|
@@ -386,29 +396,29 @@ function $t() {
|
|
|
386
396
|
}
|
|
387
397
|
return t;
|
|
388
398
|
}
|
|
389
|
-
function
|
|
399
|
+
function Lt(e) {
|
|
390
400
|
const t = [];
|
|
391
401
|
return e.forEach((n, o) => {
|
|
392
402
|
t.push(...o === 0 ? [] : [`
|
|
393
|
-
`], ...
|
|
403
|
+
`], ...Pt(n));
|
|
394
404
|
}), t;
|
|
395
405
|
}
|
|
396
|
-
function
|
|
397
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${
|
|
406
|
+
function Pt({ vnode: e, recurseCount: t }) {
|
|
407
|
+
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${tt(
|
|
398
408
|
e.component,
|
|
399
409
|
e.type,
|
|
400
410
|
o
|
|
401
411
|
)}`, r = ">" + n;
|
|
402
|
-
return e.props ? [s, ...
|
|
412
|
+
return e.props ? [s, ...jt(e.props), r] : [s + r];
|
|
403
413
|
}
|
|
404
|
-
function
|
|
414
|
+
function jt(e) {
|
|
405
415
|
const t = [], n = Object.keys(e);
|
|
406
416
|
return n.slice(0, 3).forEach((o) => {
|
|
407
|
-
t.push(...
|
|
417
|
+
t.push(...Pe(o, e[o]));
|
|
408
418
|
}), n.length > 3 && t.push(" ..."), t;
|
|
409
419
|
}
|
|
410
|
-
function
|
|
411
|
-
return w(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */
|
|
420
|
+
function Pe(e, t, n) {
|
|
421
|
+
return w(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ Le(t) ? (t = Pe(e, /* @__PURE__ */ B(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : _(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ B(t), n ? t : [`${e}=`, t]);
|
|
412
422
|
}
|
|
413
423
|
const Ce = {
|
|
414
424
|
sp: "serverPrefetch hook",
|
|
@@ -447,35 +457,35 @@ function te(e, t, n, o) {
|
|
|
447
457
|
try {
|
|
448
458
|
return o ? e(...o) : e();
|
|
449
459
|
} catch (s) {
|
|
450
|
-
|
|
460
|
+
ve(s, t, n);
|
|
451
461
|
}
|
|
452
462
|
}
|
|
453
|
-
function
|
|
463
|
+
function je(e, t, n, o) {
|
|
454
464
|
if (_(e)) {
|
|
455
465
|
const s = te(e, t, n, o);
|
|
456
|
-
return s &&
|
|
457
|
-
|
|
466
|
+
return s && Dt(s) && s.catch((r) => {
|
|
467
|
+
ve(r, t, n);
|
|
458
468
|
}), s;
|
|
459
469
|
}
|
|
460
470
|
if (C(e)) {
|
|
461
471
|
const s = [];
|
|
462
472
|
for (let r = 0; r < e.length; r++)
|
|
463
|
-
s.push(
|
|
473
|
+
s.push(je(e[r], t, n, o));
|
|
464
474
|
return s;
|
|
465
475
|
} else process.env.NODE_ENV !== "production" && O(
|
|
466
476
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
467
477
|
);
|
|
468
478
|
}
|
|
469
|
-
function
|
|
470
|
-
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: i } = t && t.appContext.config ||
|
|
479
|
+
function ve(e, t, n, o = !0) {
|
|
480
|
+
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: i } = t && t.appContext.config || kt;
|
|
471
481
|
if (t) {
|
|
472
482
|
let a = t.parent;
|
|
473
483
|
const l = t.proxy, c = process.env.NODE_ENV !== "production" ? Ce[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
474
484
|
for (; a; ) {
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
477
|
-
for (let g = 0; g <
|
|
478
|
-
if (
|
|
485
|
+
const d = a.ec;
|
|
486
|
+
if (d) {
|
|
487
|
+
for (let g = 0; g < d.length; g++)
|
|
488
|
+
if (d[g](e, l, c) === !1)
|
|
479
489
|
return;
|
|
480
490
|
}
|
|
481
491
|
a = a.parent;
|
|
@@ -489,12 +499,12 @@ function Ee(e, t, n, o = !0) {
|
|
|
489
499
|
return;
|
|
490
500
|
}
|
|
491
501
|
}
|
|
492
|
-
|
|
502
|
+
Ut(e, n, s, o, i);
|
|
493
503
|
}
|
|
494
|
-
function
|
|
504
|
+
function Ut(e, t, n, o = !0, s = !1) {
|
|
495
505
|
if (process.env.NODE_ENV !== "production") {
|
|
496
506
|
const r = Ce[t];
|
|
497
|
-
if (n &&
|
|
507
|
+
if (n && Ht(n), O(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Mt(), o)
|
|
498
508
|
throw e;
|
|
499
509
|
console.error(e);
|
|
500
510
|
} else {
|
|
@@ -504,56 +514,56 @@ function Mt(e, t, n, o = !0, s = !1) {
|
|
|
504
514
|
}
|
|
505
515
|
}
|
|
506
516
|
const h = [];
|
|
507
|
-
let
|
|
508
|
-
const
|
|
509
|
-
let
|
|
510
|
-
const
|
|
517
|
+
let v = -1;
|
|
518
|
+
const A = [];
|
|
519
|
+
let b = null, x = 0;
|
|
520
|
+
const Jt = /* @__PURE__ */ Promise.resolve();
|
|
511
521
|
let de = null;
|
|
512
|
-
const
|
|
513
|
-
function
|
|
514
|
-
let t =
|
|
522
|
+
const Wt = 100;
|
|
523
|
+
function qt(e) {
|
|
524
|
+
let t = v + 1, n = h.length;
|
|
515
525
|
for (; t < n; ) {
|
|
516
526
|
const o = t + n >>> 1, s = h[o], r = z(s);
|
|
517
527
|
r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
|
|
518
528
|
}
|
|
519
529
|
return t;
|
|
520
530
|
}
|
|
521
|
-
function
|
|
531
|
+
function Bt(e) {
|
|
522
532
|
if (!(e.flags & 1)) {
|
|
523
533
|
const t = z(e), n = h[h.length - 1];
|
|
524
534
|
!n || // fast path when the job id is larger than the tail
|
|
525
|
-
!(e.flags & 2) && t >= z(n) ? h.push(e) : h.splice(
|
|
535
|
+
!(e.flags & 2) && t >= z(n) ? h.push(e) : h.splice(qt(t), 0, e), e.flags |= 1, Ue();
|
|
526
536
|
}
|
|
527
537
|
}
|
|
528
|
-
function
|
|
529
|
-
de || (de =
|
|
538
|
+
function Ue() {
|
|
539
|
+
de || (de = Jt.then(Je));
|
|
530
540
|
}
|
|
531
|
-
function
|
|
532
|
-
C(e) ?
|
|
541
|
+
function Kt(e) {
|
|
542
|
+
C(e) ? A.push(...e) : b && e.id === -1 ? b.splice(x + 1, 0, e) : e.flags & 1 || (A.push(e), e.flags |= 1), Ue();
|
|
533
543
|
}
|
|
534
|
-
function
|
|
535
|
-
if (
|
|
536
|
-
const t = [...new Set(
|
|
544
|
+
function Yt(e) {
|
|
545
|
+
if (A.length) {
|
|
546
|
+
const t = [...new Set(A)].sort(
|
|
537
547
|
(n, o) => z(n) - z(o)
|
|
538
548
|
);
|
|
539
|
-
if (
|
|
540
|
-
|
|
549
|
+
if (A.length = 0, b) {
|
|
550
|
+
b.push(...t);
|
|
541
551
|
return;
|
|
542
552
|
}
|
|
543
|
-
for (
|
|
544
|
-
const n =
|
|
545
|
-
process.env.NODE_ENV !== "production" &&
|
|
553
|
+
for (b = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), x = 0; x < b.length; x++) {
|
|
554
|
+
const n = b[x];
|
|
555
|
+
process.env.NODE_ENV !== "production" && We(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
546
556
|
}
|
|
547
|
-
|
|
557
|
+
b = null, x = 0;
|
|
548
558
|
}
|
|
549
559
|
}
|
|
550
560
|
const z = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
551
|
-
function
|
|
561
|
+
function Je(e) {
|
|
552
562
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
553
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
563
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => We(e, n) : Me;
|
|
554
564
|
try {
|
|
555
|
-
for (
|
|
556
|
-
const n = h[
|
|
565
|
+
for (v = 0; v < h.length; v++) {
|
|
566
|
+
const n = h[v];
|
|
557
567
|
if (n && !(n.flags & 8)) {
|
|
558
568
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
559
569
|
continue;
|
|
@@ -565,18 +575,18 @@ function Le(e) {
|
|
|
565
575
|
}
|
|
566
576
|
}
|
|
567
577
|
} finally {
|
|
568
|
-
for (;
|
|
569
|
-
const n = h[
|
|
578
|
+
for (; v < h.length; v++) {
|
|
579
|
+
const n = h[v];
|
|
570
580
|
n && (n.flags &= -2);
|
|
571
581
|
}
|
|
572
|
-
|
|
582
|
+
v = -1, h.length = 0, Yt(e), de = null, (h.length || A.length) && Je(e);
|
|
573
583
|
}
|
|
574
584
|
}
|
|
575
|
-
function
|
|
585
|
+
function We(e, t) {
|
|
576
586
|
const n = e.get(t) || 0;
|
|
577
|
-
if (n >
|
|
578
|
-
const o = t.i, s = o &&
|
|
579
|
-
return
|
|
587
|
+
if (n > Wt) {
|
|
588
|
+
const o = t.i, s = o && et(o.type);
|
|
589
|
+
return ve(
|
|
580
590
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
581
591
|
null,
|
|
582
592
|
10
|
|
@@ -586,45 +596,45 @@ function je(e, t) {
|
|
|
586
596
|
}
|
|
587
597
|
const ce = /* @__PURE__ */ new Map();
|
|
588
598
|
process.env.NODE_ENV !== "production" && (ee().__VUE_HMR_RUNTIME__ = {
|
|
589
|
-
createRecord: ue(
|
|
590
|
-
rerender: ue(
|
|
591
|
-
reload: ue(
|
|
599
|
+
createRecord: ue(Gt),
|
|
600
|
+
rerender: ue(Qt),
|
|
601
|
+
reload: ue(Xt)
|
|
592
602
|
});
|
|
593
|
-
const
|
|
594
|
-
function
|
|
595
|
-
return
|
|
596
|
-
initialDef:
|
|
603
|
+
const K = /* @__PURE__ */ new Map();
|
|
604
|
+
function Gt(e, t) {
|
|
605
|
+
return K.has(e) ? !1 : (K.set(e, {
|
|
606
|
+
initialDef: Y(t),
|
|
597
607
|
instances: /* @__PURE__ */ new Set()
|
|
598
608
|
}), !0);
|
|
599
609
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
610
|
+
function Y(e) {
|
|
611
|
+
return nt(e) ? e.__vccOpts : e;
|
|
602
612
|
}
|
|
603
|
-
function
|
|
604
|
-
const n =
|
|
613
|
+
function Qt(e, t) {
|
|
614
|
+
const n = K.get(e);
|
|
605
615
|
n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
|
|
606
|
-
t && (o.render = t,
|
|
616
|
+
t && (o.render = t, Y(o.type).render = t), o.renderCache = [], o.job.flags & 8 || o.update();
|
|
607
617
|
}));
|
|
608
618
|
}
|
|
609
|
-
function
|
|
610
|
-
const n =
|
|
619
|
+
function Xt(e, t) {
|
|
620
|
+
const n = K.get(e);
|
|
611
621
|
if (!n) return;
|
|
612
|
-
t =
|
|
622
|
+
t = Y(t), xe(n.initialDef, t);
|
|
613
623
|
const o = [...n.instances];
|
|
614
624
|
for (let s = 0; s < o.length; s++) {
|
|
615
|
-
const r = o[s], i =
|
|
625
|
+
const r = o[s], i = Y(r.type);
|
|
616
626
|
let a = ce.get(i);
|
|
617
|
-
a || (i !== n.initialDef &&
|
|
627
|
+
a || (i !== n.initialDef && xe(i, t), ce.set(i, a = /* @__PURE__ */ new Set())), a.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (a.add(r), r.ceReload(t.styles), a.delete(r)) : r.parent ? Bt(() => {
|
|
618
628
|
r.job.flags & 8 || (r.parent.update(), a.delete(r));
|
|
619
629
|
}) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
620
630
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
621
631
|
), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(i);
|
|
622
632
|
}
|
|
623
|
-
|
|
633
|
+
Kt(() => {
|
|
624
634
|
ce.clear();
|
|
625
635
|
});
|
|
626
636
|
}
|
|
627
|
-
function
|
|
637
|
+
function xe(e, t) {
|
|
628
638
|
ge(e, t);
|
|
629
639
|
for (const n in e)
|
|
630
640
|
n !== "__file" && !(n in t) && delete e[n];
|
|
@@ -640,65 +650,65 @@ function ue(e) {
|
|
|
640
650
|
}
|
|
641
651
|
};
|
|
642
652
|
}
|
|
643
|
-
let
|
|
644
|
-
function
|
|
653
|
+
let R, J = [];
|
|
654
|
+
function qe(e, t) {
|
|
645
655
|
var n, o;
|
|
646
|
-
|
|
656
|
+
R = e, R ? (R.enabled = !0, J.forEach(({ event: s, args: r }) => R.emit(s, ...r)), J = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
647
657
|
window.HTMLElement && // also exclude jsdom
|
|
648
658
|
// eslint-disable-next-line no-restricted-syntax
|
|
649
659
|
!((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
|
|
650
|
-
|
|
660
|
+
qe(r, t);
|
|
651
661
|
}), setTimeout(() => {
|
|
652
|
-
|
|
653
|
-
}, 3e3)) :
|
|
662
|
+
R || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, J = []);
|
|
663
|
+
}, 3e3)) : J = [];
|
|
654
664
|
}
|
|
655
|
-
let
|
|
656
|
-
const
|
|
657
|
-
function
|
|
658
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t,
|
|
665
|
+
let G = null, Zt = null;
|
|
666
|
+
const en = (e) => e.__isTeleport;
|
|
667
|
+
function Be(e, t) {
|
|
668
|
+
e.shapeFlag & 6 && e.component ? (e.transition = t, Be(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
659
669
|
}
|
|
660
670
|
ee().requestIdleCallback;
|
|
661
671
|
ee().cancelIdleCallback;
|
|
662
|
-
function
|
|
672
|
+
function tn(e, t, n = ne, o = !1) {
|
|
663
673
|
if (n) {
|
|
664
674
|
const s = n[e] || (n[e] = []), r = t.__weh || (t.__weh = (...i) => {
|
|
665
|
-
const a =
|
|
675
|
+
const a = _n(n), l = je(t, n, e, i);
|
|
666
676
|
return a(), l;
|
|
667
677
|
});
|
|
668
678
|
return o ? s.unshift(r) : s.push(r), r;
|
|
669
679
|
} else if (process.env.NODE_ENV !== "production") {
|
|
670
|
-
const s =
|
|
680
|
+
const s = $t(Ce[e].replace(/ hook$/, ""));
|
|
671
681
|
O(
|
|
672
682
|
`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
|
|
673
683
|
);
|
|
674
684
|
}
|
|
675
685
|
}
|
|
676
|
-
const
|
|
677
|
-
(!
|
|
678
|
-
},
|
|
679
|
-
process.env.NODE_ENV !== "production" && (
|
|
686
|
+
const nn = (e) => (t, n = ne) => {
|
|
687
|
+
(!Ze || e === "sp") && tn(e, (...o) => t(...o), n);
|
|
688
|
+
}, on = nn("u"), rn = /* @__PURE__ */ Symbol.for("v-ndc"), sn = {};
|
|
689
|
+
process.env.NODE_ENV !== "production" && (sn.ownKeys = (e) => (O(
|
|
680
690
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
681
691
|
), Reflect.ownKeys(e)));
|
|
682
|
-
const
|
|
683
|
-
function
|
|
692
|
+
const ln = {}, Ke = (e) => Object.getPrototypeOf(e) === ln, an = (e) => e.__isSuspense, Ye = /* @__PURE__ */ Symbol.for("v-fgt"), cn = /* @__PURE__ */ Symbol.for("v-txt"), un = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
693
|
+
function fn(e) {
|
|
684
694
|
return e ? e.__v_isVNode === !0 : !1;
|
|
685
695
|
}
|
|
686
|
-
const
|
|
696
|
+
const pn = (...e) => Qe(
|
|
687
697
|
...e
|
|
688
|
-
),
|
|
698
|
+
), Ge = ({ key: e }) => e ?? null, W = ({
|
|
689
699
|
ref: e,
|
|
690
700
|
ref_key: t,
|
|
691
701
|
ref_for: n
|
|
692
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? w(e) || /* @__PURE__ */
|
|
693
|
-
function
|
|
702
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? w(e) || /* @__PURE__ */ Le(e) || _(e) ? { i: G, r: e, k: t, f: !!n } : e : null);
|
|
703
|
+
function dn(e, t = null, n = null, o = 0, s = null, r = e === Ye ? 0 : 1, i = !1, a = !1) {
|
|
694
704
|
const l = {
|
|
695
705
|
__v_isVNode: !0,
|
|
696
706
|
__v_skip: !0,
|
|
697
707
|
type: e,
|
|
698
708
|
props: t,
|
|
699
|
-
key: t &&
|
|
700
|
-
ref: t &&
|
|
701
|
-
scopeId:
|
|
709
|
+
key: t && Ge(t),
|
|
710
|
+
ref: t && W(t),
|
|
711
|
+
scopeId: Zt,
|
|
702
712
|
slotScopeIds: null,
|
|
703
713
|
children: n,
|
|
704
714
|
component: null,
|
|
@@ -718,33 +728,33 @@ function ln(e, t = null, n = null, o = 0, s = null, r = e === qe ? 0 : 1, i = !1
|
|
|
718
728
|
dynamicProps: s,
|
|
719
729
|
dynamicChildren: null,
|
|
720
730
|
appContext: null,
|
|
721
|
-
ctx:
|
|
731
|
+
ctx: G
|
|
722
732
|
};
|
|
723
|
-
return a ? (
|
|
733
|
+
return a ? (Ee(l, n), r & 128 && e.normalize(l)) : n && (l.shapeFlag |= w(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && O("VNode created with invalid key (NaN). VNode type:", l.type), l;
|
|
724
734
|
}
|
|
725
|
-
const
|
|
726
|
-
function
|
|
727
|
-
if ((!e || e ===
|
|
728
|
-
const a =
|
|
735
|
+
const mn = process.env.NODE_ENV !== "production" ? pn : Qe;
|
|
736
|
+
function Qe(e, t = null, n = null, o = 0, s = null, r = !1) {
|
|
737
|
+
if ((!e || e === rn) && (process.env.NODE_ENV !== "production" && !e && O(`Invalid vnode type when creating vnode: ${e}.`), e = un), fn(e)) {
|
|
738
|
+
const a = Q(
|
|
729
739
|
e,
|
|
730
740
|
t,
|
|
731
741
|
!0
|
|
732
742
|
/* mergeRef: true */
|
|
733
743
|
);
|
|
734
|
-
return n &&
|
|
744
|
+
return n && Ee(a, n), a.patchFlag = -2, a;
|
|
735
745
|
}
|
|
736
|
-
if (
|
|
737
|
-
t =
|
|
746
|
+
if (nt(e) && (e = e.__vccOpts), t) {
|
|
747
|
+
t = hn(t);
|
|
738
748
|
let { class: a, style: l } = t;
|
|
739
|
-
a && !w(a) && (t.class = _e(a)),
|
|
749
|
+
a && !w(a) && (t.class = _e(a)), M(l) && (/* @__PURE__ */ pe(l) && !C(l) && (l = ge({}, l)), t.style = ye(l));
|
|
740
750
|
}
|
|
741
|
-
const i = w(e) ? 1 :
|
|
742
|
-
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ pe(e) && (e = /* @__PURE__ */
|
|
751
|
+
const i = w(e) ? 1 : an(e) ? 128 : en(e) ? 64 : M(e) ? 4 : _(e) ? 2 : 0;
|
|
752
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ pe(e) && (e = /* @__PURE__ */ B(e), O(
|
|
743
753
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
744
754
|
`
|
|
745
755
|
Component that was made reactive: `,
|
|
746
756
|
e
|
|
747
|
-
)),
|
|
757
|
+
)), dn(
|
|
748
758
|
e,
|
|
749
759
|
t,
|
|
750
760
|
n,
|
|
@@ -755,25 +765,25 @@ Component that was made reactive: `,
|
|
|
755
765
|
!0
|
|
756
766
|
);
|
|
757
767
|
}
|
|
758
|
-
function
|
|
759
|
-
return e ? /* @__PURE__ */ pe(e) ||
|
|
768
|
+
function hn(e) {
|
|
769
|
+
return e ? /* @__PURE__ */ pe(e) || Ke(e) ? ge({}, e) : e : null;
|
|
760
770
|
}
|
|
761
|
-
function
|
|
762
|
-
const { props: s, ref: r, patchFlag: i, children: a, transition: l } = e, c = t ?
|
|
771
|
+
function Q(e, t, n = !1, o = !1) {
|
|
772
|
+
const { props: s, ref: r, patchFlag: i, children: a, transition: l } = e, c = t ? yn(s || {}, t) : s, d = {
|
|
763
773
|
__v_isVNode: !0,
|
|
764
774
|
__v_skip: !0,
|
|
765
775
|
type: e.type,
|
|
766
776
|
props: c,
|
|
767
|
-
key: c &&
|
|
777
|
+
key: c && Ge(c),
|
|
768
778
|
ref: t && t.ref ? (
|
|
769
779
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
770
780
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
771
781
|
// the refs so the single vnode can be set on multiple refs
|
|
772
|
-
n && r ? C(r) ? r.concat(
|
|
782
|
+
n && r ? C(r) ? r.concat(W(t)) : [r, W(t)] : W(t)
|
|
773
783
|
) : r,
|
|
774
784
|
scopeId: e.scopeId,
|
|
775
785
|
slotScopeIds: e.slotScopeIds,
|
|
776
|
-
children: process.env.NODE_ENV !== "production" && i === -1 && C(a) ? a.map(
|
|
786
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && C(a) ? a.map(Xe) : a,
|
|
777
787
|
target: e.target,
|
|
778
788
|
targetStart: e.targetStart,
|
|
779
789
|
targetAnchor: e.targetAnchor,
|
|
@@ -783,7 +793,7 @@ function G(e, t, n = !1, o = !1) {
|
|
|
783
793
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
784
794
|
// note: preserve flag for fragments since they use the flag for children
|
|
785
795
|
// fast paths only.
|
|
786
|
-
patchFlag: t && e.type !==
|
|
796
|
+
patchFlag: t && e.type !== Ye ? i === -1 ? 16 : i | 16 : i,
|
|
787
797
|
dynamicProps: e.dynamicProps,
|
|
788
798
|
dynamicChildren: e.dynamicChildren,
|
|
789
799
|
appContext: e.appContext,
|
|
@@ -795,27 +805,27 @@ function G(e, t, n = !1, o = !1) {
|
|
|
795
805
|
// they will simply be overwritten.
|
|
796
806
|
component: e.component,
|
|
797
807
|
suspense: e.suspense,
|
|
798
|
-
ssContent: e.ssContent &&
|
|
799
|
-
ssFallback: e.ssFallback &&
|
|
808
|
+
ssContent: e.ssContent && Q(e.ssContent),
|
|
809
|
+
ssFallback: e.ssFallback && Q(e.ssFallback),
|
|
800
810
|
placeholder: e.placeholder,
|
|
801
811
|
el: e.el,
|
|
802
812
|
anchor: e.anchor,
|
|
803
813
|
ctx: e.ctx,
|
|
804
814
|
ce: e.ce
|
|
805
815
|
};
|
|
806
|
-
return l && o &&
|
|
807
|
-
|
|
808
|
-
l.clone(
|
|
809
|
-
),
|
|
816
|
+
return l && o && Be(
|
|
817
|
+
d,
|
|
818
|
+
l.clone(d)
|
|
819
|
+
), d;
|
|
810
820
|
}
|
|
811
|
-
function
|
|
812
|
-
const t =
|
|
813
|
-
return C(e.children) && (t.children = e.children.map(
|
|
821
|
+
function Xe(e) {
|
|
822
|
+
const t = Q(e);
|
|
823
|
+
return C(e.children) && (t.children = e.children.map(Xe)), t;
|
|
814
824
|
}
|
|
815
|
-
function
|
|
816
|
-
return
|
|
825
|
+
function gn(e = " ", t = 0) {
|
|
826
|
+
return mn(cn, null, e, t);
|
|
817
827
|
}
|
|
818
|
-
function
|
|
828
|
+
function Ee(e, t) {
|
|
819
829
|
let n = 0;
|
|
820
830
|
const { shapeFlag: o } = e;
|
|
821
831
|
if (t == null)
|
|
@@ -825,14 +835,14 @@ function ve(e, t) {
|
|
|
825
835
|
else if (typeof t == "object")
|
|
826
836
|
if (o & 65) {
|
|
827
837
|
const s = t.default;
|
|
828
|
-
s && (s._c && (s._d = !1),
|
|
838
|
+
s && (s._c && (s._d = !1), Ee(e, s()), s._c && (s._d = !0));
|
|
829
839
|
return;
|
|
830
840
|
} else
|
|
831
|
-
n = 32, !t._ && !
|
|
832
|
-
else _(t) ? (t = { default: t, _ctx:
|
|
841
|
+
n = 32, !t._ && !Ke(t) && (t._ctx = G);
|
|
842
|
+
else _(t) ? (t = { default: t, _ctx: G }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [gn(t)]) : n = 8);
|
|
833
843
|
e.children = t, e.shapeFlag |= n;
|
|
834
844
|
}
|
|
835
|
-
function
|
|
845
|
+
function yn(...e) {
|
|
836
846
|
const t = {};
|
|
837
847
|
for (let n = 0; n < e.length; n++) {
|
|
838
848
|
const o = e[n];
|
|
@@ -841,7 +851,7 @@ function fn(...e) {
|
|
|
841
851
|
t.class !== o.class && (t.class = _e([t.class, o.class]));
|
|
842
852
|
else if (s === "style")
|
|
843
853
|
t.style = ye([t.style, o.style]);
|
|
844
|
-
else if (
|
|
854
|
+
else if (Vt(s)) {
|
|
845
855
|
const r = t[s], i = o[s];
|
|
846
856
|
i && r !== i && !(C(r) && r.includes(i)) && (t[s] = r ? [].concat(r, i) : i);
|
|
847
857
|
} else s !== "" && (t[s] = o[s]);
|
|
@@ -861,23 +871,23 @@ let ne = null, me;
|
|
|
861
871
|
(n) => ne = n
|
|
862
872
|
), t(
|
|
863
873
|
"__VUE_SSR_SETTERS__",
|
|
864
|
-
(n) =>
|
|
874
|
+
(n) => Ze = n
|
|
865
875
|
);
|
|
866
876
|
}
|
|
867
|
-
const
|
|
877
|
+
const _n = (e) => {
|
|
868
878
|
const t = ne;
|
|
869
879
|
return me(e), e.scope.on(), () => {
|
|
870
880
|
e.scope.off(), me(t);
|
|
871
881
|
};
|
|
872
882
|
};
|
|
873
|
-
let
|
|
883
|
+
let Ze = !1;
|
|
874
884
|
process.env.NODE_ENV;
|
|
875
|
-
const
|
|
876
|
-
function
|
|
885
|
+
const Cn = /(?:^|[-_])\w/g, vn = (e) => e.replace(Cn, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
886
|
+
function et(e, t = !0) {
|
|
877
887
|
return _(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
878
888
|
}
|
|
879
|
-
function
|
|
880
|
-
let o =
|
|
889
|
+
function tt(e, t, n = !1) {
|
|
890
|
+
let o = et(t);
|
|
881
891
|
if (!o && t.__file) {
|
|
882
892
|
const s = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
883
893
|
s && (o = s[1]);
|
|
@@ -892,15 +902,15 @@ function Xe(e, t, n = !1) {
|
|
|
892
902
|
e.parent.type.components
|
|
893
903
|
) || s(e.appContext.components);
|
|
894
904
|
}
|
|
895
|
-
return o ?
|
|
905
|
+
return o ? vn(o) : n ? "App" : "Anonymous";
|
|
896
906
|
}
|
|
897
|
-
function
|
|
907
|
+
function nt(e) {
|
|
898
908
|
return _(e) && "__vccOpts" in e;
|
|
899
909
|
}
|
|
900
910
|
process.env.NODE_ENV;
|
|
901
911
|
process.env.NODE_ENV;
|
|
902
912
|
process.env.NODE_ENV;
|
|
903
|
-
const
|
|
913
|
+
const kn = /* @__PURE__ */ X({
|
|
904
914
|
inheritAttrs: !0,
|
|
905
915
|
__name: "MyopVueComponent",
|
|
906
916
|
props: {
|
|
@@ -909,14 +919,14 @@ const vn = /* @__PURE__ */ Q({
|
|
|
909
919
|
onReady: { type: Function }
|
|
910
920
|
},
|
|
911
921
|
setup(e, { expose: t }) {
|
|
912
|
-
const n = e, o =
|
|
913
|
-
|
|
922
|
+
const n = e, o = ft(), s = Z(), r = p(null), i = p(!0), a = p(null), l = p(null), c = pt(), d = p(null);
|
|
923
|
+
on(() => {
|
|
914
924
|
l && l.value && l.value(o);
|
|
915
|
-
}),
|
|
925
|
+
}), Re(async () => {
|
|
916
926
|
if (r.value) {
|
|
917
|
-
const
|
|
918
|
-
a.value = await
|
|
919
|
-
|
|
927
|
+
const k = await Nt.Main.fetchComponent(n.componentId, n.flowId);
|
|
928
|
+
a.value = await He.loadComponent(
|
|
929
|
+
k,
|
|
920
930
|
r == null ? void 0 : r.value,
|
|
921
931
|
{
|
|
922
932
|
_environment: {
|
|
@@ -926,53 +936,41 @@ const vn = /* @__PURE__ */ Q({
|
|
|
926
936
|
context: c == null ? void 0 : c.appContext,
|
|
927
937
|
vueContainerRef: r,
|
|
928
938
|
//@ts-ignore
|
|
929
|
-
defineUpdater: (
|
|
930
|
-
l.value =
|
|
939
|
+
defineUpdater: (E) => {
|
|
940
|
+
l.value = E;
|
|
931
941
|
},
|
|
932
942
|
//@ts-ignore
|
|
933
|
-
defineInnerVueComponentRef: (
|
|
934
|
-
|
|
943
|
+
defineInnerVueComponentRef: (E) => {
|
|
944
|
+
d.value = E.value;
|
|
935
945
|
}
|
|
936
946
|
}
|
|
937
947
|
}
|
|
938
|
-
), i.value = !1, n.onReady && n.onReady(a.value,
|
|
948
|
+
), i.value = !1, n.onReady && n.onReady(a.value, d.value);
|
|
939
949
|
}
|
|
940
950
|
});
|
|
941
|
-
const g =
|
|
942
|
-
return t(g),
|
|
943
|
-
Object.assign(g,
|
|
944
|
-
}), (
|
|
945
|
-
|
|
951
|
+
const g = dt({});
|
|
952
|
+
return t(g), mt(() => {
|
|
953
|
+
Object.assign(g, d.value);
|
|
954
|
+
}), (k, E) => (S(), T(ht, null, [
|
|
955
|
+
Ae("div", gt(he(o), {
|
|
946
956
|
ref_key: "myopContainer",
|
|
947
957
|
ref: r
|
|
948
958
|
}), null, 16),
|
|
949
|
-
i.value ?
|
|
959
|
+
i.value ? H(k.$slots, "loading", { key: 0 }) : fe("", !0)
|
|
950
960
|
], 64));
|
|
951
961
|
}
|
|
952
962
|
});
|
|
953
|
-
let k = Z.Main;
|
|
954
|
-
const hn = () => k, gn = (e, t, n) => k.isPreloaded(e, t, n), Nn = (e) => k.getPreloadedParams(e), Sn = () => {
|
|
955
|
-
k = new Z("http://localhost:9292");
|
|
956
|
-
}, bn = (e) => {
|
|
957
|
-
k = new Z(e);
|
|
958
|
-
}, wn = (e) => {
|
|
959
|
-
k = e;
|
|
960
|
-
}, On = (e) => {
|
|
961
|
-
k.setEnvironment(e);
|
|
962
|
-
}, kn = async (e, t, n) => Promise.allSettled(
|
|
963
|
-
e.map((o) => k.fetchComponentV2(o, t, n))
|
|
964
|
-
);
|
|
965
963
|
export {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
964
|
+
On as MyopComponent,
|
|
965
|
+
kn as MyopContainer,
|
|
966
|
+
Ot as MyopFallback,
|
|
967
|
+
St as MyopLoader,
|
|
968
|
+
Dn as enableLocalDev,
|
|
969
|
+
Fn as getCloudRepository,
|
|
970
|
+
$n as getPreloadedParams,
|
|
971
|
+
xn as isPreloaded,
|
|
972
|
+
Rn as preloadComponents,
|
|
973
|
+
An as setCloudRepository,
|
|
974
|
+
Tn as setCloudRepositoryUrl,
|
|
975
|
+
Hn as setEnvironment
|
|
978
976
|
};
|