@myop/vue 0.0.30 → 0.0.32
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 +308 -319
- 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 ? (S(),
|
|
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
|
H(l.$slots, "default")
|
|
30
|
-
], 4)) : (S(),
|
|
31
|
+
], 4)) : (S(), T("div", {
|
|
31
32
|
key: 1,
|
|
32
|
-
style:
|
|
33
|
-
innerHTML:
|
|
34
|
-
}, null, 12,
|
|
33
|
+
style: q(i.value),
|
|
34
|
+
innerHTML: he(a)
|
|
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 Nt = ["innerHTML"], bt = /* @__PURE__ */ Z({
|
|
|
48
49
|
right: "0",
|
|
49
50
|
bottom: "0"
|
|
50
51
|
}, r = {
|
|
51
|
-
...
|
|
52
|
-
}, i =
|
|
53
|
-
return (a, l) => o.value ? (S(),
|
|
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
|
H(a.$slots, "default")
|
|
58
|
-
])) : (S(),
|
|
59
|
+
])) : (S(), T("div", {
|
|
59
60
|
key: 1,
|
|
60
61
|
style: r,
|
|
61
|
-
innerHTML:
|
|
62
|
-
}, null, 8,
|
|
62
|
+
innerHTML: he(i)
|
|
63
|
+
}, null, 8, wt));
|
|
63
64
|
}
|
|
64
|
-
}),
|
|
65
|
+
}), On = /* @__PURE__ */ X({
|
|
65
66
|
name: "MyopComponent",
|
|
66
67
|
__name: "MyopComponent",
|
|
67
68
|
props: {
|
|
@@ -76,7 +77,7 @@ const Nt = ["innerHTML"], bt = /* @__PURE__ */ Z({
|
|
|
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,17 +89,17 @@ const Nt = ["innerHTML"], bt = /* @__PURE__ */ Z({
|
|
|
88
89
|
const f = u();
|
|
89
90
|
return s(f);
|
|
90
91
|
});
|
|
91
|
-
const i = e, a = n, l = p(null), c =
|
|
92
|
-
let
|
|
93
|
-
const
|
|
94
|
-
|
|
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;
|
|
94
|
+
const re = () => {
|
|
95
|
+
k.value = 0, setTimeout(() => {
|
|
95
96
|
g.value = !1;
|
|
96
97
|
}, i.fadeDuration);
|
|
97
|
-
},
|
|
98
|
-
console.error("[MyopComponent] Error:", u),
|
|
99
|
-
},
|
|
100
|
-
var N,
|
|
101
|
-
|
|
98
|
+
}, se = (u) => {
|
|
99
|
+
console.error("[MyopComponent] Error:", u), re(), E.value = !0, a("error", u);
|
|
100
|
+
}, ie = async (u) => {
|
|
101
|
+
var N, j, Se;
|
|
102
|
+
oe.value = !0;
|
|
102
103
|
let f = !1;
|
|
103
104
|
try {
|
|
104
105
|
const m = JSON.parse(JSON.stringify({
|
|
@@ -109,152 +110,152 @@ const Nt = ["innerHTML"], bt = /* @__PURE__ */ Z({
|
|
|
109
110
|
autoSize: u.autoSize
|
|
110
111
|
}));
|
|
111
112
|
if (!m.componentId && !u.componentConfig) {
|
|
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
|
-
const
|
|
148
|
-
|
|
149
|
-
i.on && i.on(
|
|
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);
|
|
150
151
|
}), a("load", c.value);
|
|
151
152
|
} catch (m) {
|
|
152
|
-
f ||
|
|
153
|
+
f || se((m == null ? void 0 : m.message) || "Unknown error");
|
|
153
154
|
} finally {
|
|
154
|
-
if (
|
|
155
|
+
if (oe.value = !1, L.value !== null && !f) {
|
|
155
156
|
const m = L.value;
|
|
156
|
-
L.value = null, await
|
|
157
|
+
L.value = null, await ie(m);
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
return () => {
|
|
160
161
|
f = !0;
|
|
161
162
|
};
|
|
162
|
-
},
|
|
163
|
+
}, ot = () => {
|
|
163
164
|
var f;
|
|
164
|
-
if (!
|
|
165
|
+
if (!V.value || !((f = c.value) != null && f.observeAutoSize))
|
|
165
166
|
return;
|
|
166
167
|
let u = !0;
|
|
167
|
-
|
|
168
|
+
F = c.value.observeAutoSize({
|
|
168
169
|
// SDK resolves: host props → sizeMeta → defaults (width: "100%", height: auto-size)
|
|
169
170
|
explicitWidth: void 0,
|
|
170
171
|
explicitHeight: void 0,
|
|
171
172
|
forceAutoSize: i.autoSize ?? !0,
|
|
172
173
|
loaderMinHeight: 50,
|
|
173
174
|
onSizeChange: (N) => {
|
|
174
|
-
a("sizeChange", N),
|
|
175
|
+
a("sizeChange", N), I.value = N, u && (u = !1, re());
|
|
175
176
|
}
|
|
176
177
|
});
|
|
177
178
|
};
|
|
178
|
-
|
|
179
|
+
le(
|
|
179
180
|
() => i.componentId,
|
|
180
181
|
async (u, f) => {
|
|
181
|
-
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));
|
|
182
183
|
}
|
|
183
|
-
),
|
|
184
|
+
), le(
|
|
184
185
|
() => i.data,
|
|
185
186
|
(u) => {
|
|
186
187
|
var f;
|
|
187
|
-
if (
|
|
188
|
+
if (V.value && u !== void 0 && c.value) {
|
|
188
189
|
const N = (f = c.value.props) == null ? void 0 : f.myop_init_interface;
|
|
189
190
|
if (N) {
|
|
190
|
-
const
|
|
191
|
-
N(
|
|
191
|
+
const j = JSON.parse(JSON.stringify(u));
|
|
192
|
+
N(j);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
},
|
|
195
196
|
{ deep: !0 }
|
|
196
|
-
),
|
|
197
|
-
() =>
|
|
197
|
+
), le(
|
|
198
|
+
() => V.value,
|
|
198
199
|
(u) => {
|
|
199
|
-
u &&
|
|
200
|
+
u && ot();
|
|
200
201
|
}
|
|
201
|
-
),
|
|
202
|
-
(i.componentId || i.componentConfig) && await
|
|
203
|
-
}),
|
|
204
|
-
|
|
202
|
+
), Re(async () => {
|
|
203
|
+
(i.componentId || i.componentConfig) && await ie(i);
|
|
204
|
+
}), ut(() => {
|
|
205
|
+
F && F(), c.value && c.value.dispose();
|
|
205
206
|
});
|
|
206
|
-
const
|
|
207
|
-
() => !(i.autoSize ?? !0) || !
|
|
208
|
-
),
|
|
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 ? {
|
|
211
212
|
position: "relative",
|
|
212
213
|
width: "100%",
|
|
213
214
|
height: "100%",
|
|
214
|
-
minHeight:
|
|
215
|
+
minHeight: P.value ? `${P.value}px` : void 0
|
|
215
216
|
} : {
|
|
216
217
|
position: "relative",
|
|
217
|
-
width: (u =
|
|
218
|
-
height: (f =
|
|
219
|
-
minHeight:
|
|
218
|
+
width: (u = I.value) != null && u.autoSizingWidth ? `${I.value.width}px` : "100%",
|
|
219
|
+
height: (f = I.value) != null && f.height ? `${I.value.height}px` : void 0,
|
|
220
|
+
minHeight: P.value ? `${P.value}px` : void 0
|
|
220
221
|
};
|
|
221
|
-
}),
|
|
222
|
+
}), st = y(() => {
|
|
222
223
|
var u;
|
|
223
|
-
return
|
|
224
|
+
return be.value ? {
|
|
224
225
|
position: "absolute",
|
|
225
226
|
inset: "0"
|
|
226
227
|
} : {
|
|
227
228
|
width: "100%",
|
|
228
|
-
height: (u =
|
|
229
|
+
height: (u = I.value) != null && u.height ? `${I.value.height}px` : void 0
|
|
229
230
|
};
|
|
230
231
|
});
|
|
231
232
|
return t({
|
|
232
233
|
myopComponent: c,
|
|
233
|
-
isLoaded:
|
|
234
|
-
}), (u, f) => (S(),
|
|
235
|
-
style:
|
|
234
|
+
isLoaded: V
|
|
235
|
+
}), (u, f) => (S(), T("div", {
|
|
236
|
+
style: q(rt.value)
|
|
236
237
|
}, [
|
|
237
|
-
|
|
238
|
+
Ae("div", {
|
|
238
239
|
ref_key: "myopContainer",
|
|
239
240
|
ref: l,
|
|
240
|
-
style:
|
|
241
|
+
style: q(st.value)
|
|
241
242
|
}, null, 4),
|
|
242
|
-
g.value && r.value ? (S(),
|
|
243
|
+
g.value && r.value ? (S(), Ie(St, {
|
|
243
244
|
key: 0,
|
|
244
|
-
opacity:
|
|
245
|
+
opacity: k.value,
|
|
245
246
|
"fade-duration": e.fadeDuration
|
|
246
247
|
}, {
|
|
247
|
-
default:
|
|
248
|
+
default: De(() => [
|
|
248
249
|
H(u.$slots, "loader")
|
|
249
250
|
]),
|
|
250
251
|
_: 3
|
|
251
|
-
}, 8, ["opacity", "fade-duration"])) :
|
|
252
|
-
E.value ? (S(),
|
|
253
|
-
default:
|
|
252
|
+
}, 8, ["opacity", "fade-duration"])) : fe("", !0),
|
|
253
|
+
E.value ? (S(), Ie(Ot, { key: 1 }, {
|
|
254
|
+
default: De(() => [
|
|
254
255
|
H(u.$slots, "fallback")
|
|
255
256
|
]),
|
|
256
257
|
_: 3
|
|
257
|
-
})) :
|
|
258
|
+
})) : fe("", !0)
|
|
258
259
|
], 4));
|
|
259
260
|
}
|
|
260
261
|
});
|
|
@@ -263,51 +264,51 @@ const Nt = ["innerHTML"], bt = /* @__PURE__ */ Z({
|
|
|
263
264
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
264
265
|
* @license MIT
|
|
265
266
|
**/
|
|
266
|
-
const
|
|
267
|
+
const kt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
267
268
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
268
|
-
const
|
|
269
|
-
},
|
|
270
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
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) => {
|
|
271
272
|
const t = /* @__PURE__ */ Object.create(null);
|
|
272
273
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
273
|
-
},
|
|
274
|
-
(e) => e ? `on${
|
|
274
|
+
}, Ft = ze((e) => e.charAt(0).toUpperCase() + e.slice(1)), $t = ze(
|
|
275
|
+
(e) => e ? `on${Ft(e)}` : ""
|
|
275
276
|
);
|
|
276
|
-
let
|
|
277
|
-
const
|
|
278
|
-
function
|
|
277
|
+
let $e;
|
|
278
|
+
const ee = () => $e || ($e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
279
|
+
function ye(e) {
|
|
279
280
|
if (C(e)) {
|
|
280
281
|
const t = {};
|
|
281
282
|
for (let n = 0; n < e.length; n++) {
|
|
282
|
-
const o = e[n], s = w(o) ?
|
|
283
|
+
const o = e[n], s = w(o) ? Tt(o) : ye(o);
|
|
283
284
|
if (s)
|
|
284
285
|
for (const r in s)
|
|
285
286
|
t[r] = s[r];
|
|
286
287
|
}
|
|
287
288
|
return t;
|
|
288
|
-
} else if (w(e) ||
|
|
289
|
+
} else if (w(e) || M(e))
|
|
289
290
|
return e;
|
|
290
291
|
}
|
|
291
|
-
const
|
|
292
|
-
function
|
|
292
|
+
const xt = /;(?![^(]*\))/g, Rt = /:([^]+)/, At = /\/\*[^]*?\*\//g;
|
|
293
|
+
function Tt(e) {
|
|
293
294
|
const t = {};
|
|
294
|
-
return e.replace(
|
|
295
|
+
return e.replace(At, "").split(xt).forEach((n) => {
|
|
295
296
|
if (n) {
|
|
296
297
|
const o = n.split(Rt);
|
|
297
298
|
o.length > 1 && (t[o[0].trim()] = o[1].trim());
|
|
298
299
|
}
|
|
299
300
|
}), t;
|
|
300
301
|
}
|
|
301
|
-
function
|
|
302
|
+
function _e(e) {
|
|
302
303
|
let t = "";
|
|
303
304
|
if (w(e))
|
|
304
305
|
t = e;
|
|
305
306
|
else if (C(e))
|
|
306
307
|
for (let n = 0; n < e.length; n++) {
|
|
307
|
-
const o =
|
|
308
|
+
const o = _e(e[n]);
|
|
308
309
|
o && (t += o + " ");
|
|
309
310
|
}
|
|
310
|
-
else if (
|
|
311
|
+
else if (M(e))
|
|
311
312
|
for (const n in e)
|
|
312
313
|
e[n] && (t += n + " ");
|
|
313
314
|
return t.trim();
|
|
@@ -321,19 +322,19 @@ process.env.NODE_ENV;
|
|
|
321
322
|
process.env.NODE_ENV;
|
|
322
323
|
process.env.NODE_ENV;
|
|
323
324
|
new Set(
|
|
324
|
-
/* @__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)
|
|
325
326
|
);
|
|
326
327
|
// @__NO_SIDE_EFFECTS__
|
|
327
|
-
function
|
|
328
|
+
function pe(e) {
|
|
328
329
|
return e ? !!e.__v_raw : !1;
|
|
329
330
|
}
|
|
330
331
|
// @__NO_SIDE_EFFECTS__
|
|
331
|
-
function
|
|
332
|
+
function B(e) {
|
|
332
333
|
const t = e && e.__v_raw;
|
|
333
|
-
return t ? /* @__PURE__ */
|
|
334
|
+
return t ? /* @__PURE__ */ B(t) : e;
|
|
334
335
|
}
|
|
335
336
|
// @__NO_SIDE_EFFECTS__
|
|
336
|
-
function
|
|
337
|
+
function Le(e) {
|
|
337
338
|
return e ? e.__v_isRef === !0 : !1;
|
|
338
339
|
}
|
|
339
340
|
/**
|
|
@@ -341,20 +342,20 @@ function je(e) {
|
|
|
341
342
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
342
343
|
* @license MIT
|
|
343
344
|
**/
|
|
344
|
-
const
|
|
345
|
-
function
|
|
346
|
-
|
|
345
|
+
const D = [];
|
|
346
|
+
function Ht(e) {
|
|
347
|
+
D.push(e);
|
|
347
348
|
}
|
|
348
349
|
function Mt() {
|
|
349
|
-
|
|
350
|
+
D.pop();
|
|
350
351
|
}
|
|
351
|
-
let
|
|
352
|
+
let ae = !1;
|
|
352
353
|
function O(e, ...t) {
|
|
353
|
-
if (
|
|
354
|
-
|
|
355
|
-
const n =
|
|
354
|
+
if (ae) return;
|
|
355
|
+
ae = !0;
|
|
356
|
+
const n = D.length ? D[D.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = zt();
|
|
356
357
|
if (o)
|
|
357
|
-
|
|
358
|
+
te(
|
|
358
359
|
o,
|
|
359
360
|
n,
|
|
360
361
|
11,
|
|
@@ -366,7 +367,7 @@ function O(e, ...t) {
|
|
|
366
367
|
}).join(""),
|
|
367
368
|
n && n.proxy,
|
|
368
369
|
s.map(
|
|
369
|
-
({ vnode: r }) => `at <${
|
|
370
|
+
({ vnode: r }) => `at <${tt(n, r.type)}>`
|
|
370
371
|
).join(`
|
|
371
372
|
`),
|
|
372
373
|
s
|
|
@@ -375,12 +376,12 @@ function O(e, ...t) {
|
|
|
375
376
|
else {
|
|
376
377
|
const r = [`[Vue warn]: ${e}`, ...t];
|
|
377
378
|
s.length && r.push(`
|
|
378
|
-
`, ...
|
|
379
|
+
`, ...Lt(s)), console.warn(...r);
|
|
379
380
|
}
|
|
380
|
-
|
|
381
|
+
ae = !1;
|
|
381
382
|
}
|
|
382
|
-
function
|
|
383
|
-
let e =
|
|
383
|
+
function zt() {
|
|
384
|
+
let e = D[D.length - 1];
|
|
384
385
|
if (!e)
|
|
385
386
|
return [];
|
|
386
387
|
const t = [];
|
|
@@ -395,7 +396,7 @@ function Ht() {
|
|
|
395
396
|
}
|
|
396
397
|
return t;
|
|
397
398
|
}
|
|
398
|
-
function
|
|
399
|
+
function Lt(e) {
|
|
399
400
|
const t = [];
|
|
400
401
|
return e.forEach((n, o) => {
|
|
401
402
|
t.push(...o === 0 ? [] : [`
|
|
@@ -403,23 +404,23 @@ function zt(e) {
|
|
|
403
404
|
}), t;
|
|
404
405
|
}
|
|
405
406
|
function Pt({ vnode: e, recurseCount: t }) {
|
|
406
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${
|
|
407
|
+
const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${tt(
|
|
407
408
|
e.component,
|
|
408
409
|
e.type,
|
|
409
410
|
o
|
|
410
411
|
)}`, r = ">" + n;
|
|
411
|
-
return e.props ? [s, ...
|
|
412
|
+
return e.props ? [s, ...jt(e.props), r] : [s + r];
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
+
function jt(e) {
|
|
414
415
|
const t = [], n = Object.keys(e);
|
|
415
416
|
return n.slice(0, 3).forEach((o) => {
|
|
416
|
-
t.push(...
|
|
417
|
+
t.push(...Pe(o, e[o]));
|
|
417
418
|
}), n.length > 3 && t.push(" ..."), t;
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
-
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]);
|
|
421
422
|
}
|
|
422
|
-
const
|
|
423
|
+
const Ce = {
|
|
423
424
|
sp: "serverPrefetch hook",
|
|
424
425
|
bc: "beforeCreate hook",
|
|
425
426
|
c: "created hook",
|
|
@@ -452,34 +453,34 @@ const Ee = {
|
|
|
452
453
|
15: "component update",
|
|
453
454
|
16: "app unmount cleanup function"
|
|
454
455
|
};
|
|
455
|
-
function
|
|
456
|
+
function te(e, t, n, o) {
|
|
456
457
|
try {
|
|
457
458
|
return o ? e(...o) : e();
|
|
458
459
|
} catch (s) {
|
|
459
|
-
|
|
460
|
+
ve(s, t, n);
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
|
-
function
|
|
463
|
+
function je(e, t, n, o) {
|
|
463
464
|
if (_(e)) {
|
|
464
|
-
const s =
|
|
465
|
-
return s &&
|
|
466
|
-
|
|
465
|
+
const s = te(e, t, n, o);
|
|
466
|
+
return s && Dt(s) && s.catch((r) => {
|
|
467
|
+
ve(r, t, n);
|
|
467
468
|
}), s;
|
|
468
469
|
}
|
|
469
470
|
if (C(e)) {
|
|
470
471
|
const s = [];
|
|
471
472
|
for (let r = 0; r < e.length; r++)
|
|
472
|
-
s.push(
|
|
473
|
+
s.push(je(e[r], t, n, o));
|
|
473
474
|
return s;
|
|
474
475
|
} else process.env.NODE_ENV !== "production" && O(
|
|
475
476
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
476
477
|
);
|
|
477
478
|
}
|
|
478
|
-
function
|
|
479
|
-
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;
|
|
480
481
|
if (t) {
|
|
481
482
|
let a = t.parent;
|
|
482
|
-
const l = t.proxy, c = process.env.NODE_ENV !== "production" ?
|
|
483
|
+
const l = t.proxy, c = process.env.NODE_ENV !== "production" ? Ce[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
483
484
|
for (; a; ) {
|
|
484
485
|
const d = a.ec;
|
|
485
486
|
if (d) {
|
|
@@ -490,7 +491,7 @@ function Ne(e, t, n, o = !0) {
|
|
|
490
491
|
a = a.parent;
|
|
491
492
|
}
|
|
492
493
|
if (r) {
|
|
493
|
-
|
|
494
|
+
te(r, null, 10, [
|
|
494
495
|
e,
|
|
495
496
|
l,
|
|
496
497
|
c
|
|
@@ -498,12 +499,12 @@ function Ne(e, t, n, o = !0) {
|
|
|
498
499
|
return;
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
|
-
|
|
502
|
+
Ut(e, n, s, o, i);
|
|
502
503
|
}
|
|
503
|
-
function
|
|
504
|
+
function Ut(e, t, n, o = !0, s = !1) {
|
|
504
505
|
if (process.env.NODE_ENV !== "production") {
|
|
505
|
-
const r =
|
|
506
|
-
if (n &&
|
|
506
|
+
const r = Ce[t];
|
|
507
|
+
if (n && Ht(n), O(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Mt(), o)
|
|
507
508
|
throw e;
|
|
508
509
|
console.error(e);
|
|
509
510
|
} else {
|
|
@@ -514,59 +515,59 @@ function jt(e, t, n, o = !0, s = !1) {
|
|
|
514
515
|
}
|
|
515
516
|
const h = [];
|
|
516
517
|
let v = -1;
|
|
517
|
-
const
|
|
518
|
+
const A = [];
|
|
518
519
|
let b = null, x = 0;
|
|
519
|
-
const
|
|
520
|
-
let
|
|
521
|
-
const
|
|
522
|
-
function
|
|
520
|
+
const Jt = /* @__PURE__ */ Promise.resolve();
|
|
521
|
+
let de = null;
|
|
522
|
+
const Wt = 100;
|
|
523
|
+
function qt(e) {
|
|
523
524
|
let t = v + 1, n = h.length;
|
|
524
525
|
for (; t < n; ) {
|
|
525
|
-
const o = t + n >>> 1, s = h[o], r =
|
|
526
|
+
const o = t + n >>> 1, s = h[o], r = z(s);
|
|
526
527
|
r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
|
|
527
528
|
}
|
|
528
529
|
return t;
|
|
529
530
|
}
|
|
530
|
-
function
|
|
531
|
+
function Bt(e) {
|
|
531
532
|
if (!(e.flags & 1)) {
|
|
532
|
-
const t =
|
|
533
|
+
const t = z(e), n = h[h.length - 1];
|
|
533
534
|
!n || // fast path when the job id is larger than the tail
|
|
534
|
-
!(e.flags & 2) && t >=
|
|
535
|
+
!(e.flags & 2) && t >= z(n) ? h.push(e) : h.splice(qt(t), 0, e), e.flags |= 1, Ue();
|
|
535
536
|
}
|
|
536
537
|
}
|
|
537
|
-
function
|
|
538
|
-
|
|
539
|
-
}
|
|
540
|
-
function Bt(e) {
|
|
541
|
-
C(e) ? T.push(...e) : b && e.id === -1 ? b.splice(x + 1, 0, e) : e.flags & 1 || (T.push(e), e.flags |= 1), We();
|
|
538
|
+
function Ue() {
|
|
539
|
+
de || (de = Jt.then(Je));
|
|
542
540
|
}
|
|
543
541
|
function Kt(e) {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
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();
|
|
543
|
+
}
|
|
544
|
+
function Yt(e) {
|
|
545
|
+
if (A.length) {
|
|
546
|
+
const t = [...new Set(A)].sort(
|
|
547
|
+
(n, o) => z(n) - z(o)
|
|
547
548
|
);
|
|
548
|
-
if (
|
|
549
|
+
if (A.length = 0, b) {
|
|
549
550
|
b.push(...t);
|
|
550
551
|
return;
|
|
551
552
|
}
|
|
552
553
|
for (b = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), x = 0; x < b.length; x++) {
|
|
553
554
|
const n = b[x];
|
|
554
|
-
process.env.NODE_ENV !== "production" &&
|
|
555
|
+
process.env.NODE_ENV !== "production" && We(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
555
556
|
}
|
|
556
557
|
b = null, x = 0;
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
const
|
|
560
|
-
function
|
|
560
|
+
const z = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
561
|
+
function Je(e) {
|
|
561
562
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
562
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
563
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => We(e, n) : Me;
|
|
563
564
|
try {
|
|
564
565
|
for (v = 0; v < h.length; v++) {
|
|
565
566
|
const n = h[v];
|
|
566
567
|
if (n && !(n.flags & 8)) {
|
|
567
568
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
568
569
|
continue;
|
|
569
|
-
n.flags & 4 && (n.flags &= -2),
|
|
570
|
+
n.flags & 4 && (n.flags &= -2), te(
|
|
570
571
|
n,
|
|
571
572
|
n.i,
|
|
572
573
|
n.i ? 15 : 14
|
|
@@ -578,14 +579,14 @@ function qe(e) {
|
|
|
578
579
|
const n = h[v];
|
|
579
580
|
n && (n.flags &= -2);
|
|
580
581
|
}
|
|
581
|
-
v = -1, h.length = 0,
|
|
582
|
+
v = -1, h.length = 0, Yt(e), de = null, (h.length || A.length) && Je(e);
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
|
-
function
|
|
585
|
+
function We(e, t) {
|
|
585
586
|
const n = e.get(t) || 0;
|
|
586
|
-
if (n >
|
|
587
|
-
const o = t.i, s = o &&
|
|
588
|
-
return
|
|
587
|
+
if (n > Wt) {
|
|
588
|
+
const o = t.i, s = o && et(o.type);
|
|
589
|
+
return ve(
|
|
589
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.`,
|
|
590
591
|
null,
|
|
591
592
|
10
|
|
@@ -593,52 +594,52 @@ function Be(e, t) {
|
|
|
593
594
|
}
|
|
594
595
|
return e.set(t, n + 1), !1;
|
|
595
596
|
}
|
|
596
|
-
const
|
|
597
|
-
process.env.NODE_ENV !== "production" && (
|
|
598
|
-
createRecord:
|
|
599
|
-
rerender:
|
|
600
|
-
reload:
|
|
597
|
+
const ce = /* @__PURE__ */ new Map();
|
|
598
|
+
process.env.NODE_ENV !== "production" && (ee().__VUE_HMR_RUNTIME__ = {
|
|
599
|
+
createRecord: ue(Gt),
|
|
600
|
+
rerender: ue(Qt),
|
|
601
|
+
reload: ue(Xt)
|
|
601
602
|
});
|
|
602
|
-
const
|
|
603
|
-
function
|
|
604
|
-
return
|
|
605
|
-
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),
|
|
606
607
|
instances: /* @__PURE__ */ new Set()
|
|
607
608
|
}), !0);
|
|
608
609
|
}
|
|
609
|
-
function
|
|
610
|
-
return
|
|
610
|
+
function Y(e) {
|
|
611
|
+
return nt(e) ? e.__vccOpts : e;
|
|
611
612
|
}
|
|
612
|
-
function
|
|
613
|
-
const n =
|
|
613
|
+
function Qt(e, t) {
|
|
614
|
+
const n = K.get(e);
|
|
614
615
|
n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
|
|
615
|
-
t && (o.render = t,
|
|
616
|
+
t && (o.render = t, Y(o.type).render = t), o.renderCache = [], o.job.flags & 8 || o.update();
|
|
616
617
|
}));
|
|
617
618
|
}
|
|
618
|
-
function
|
|
619
|
-
const n =
|
|
619
|
+
function Xt(e, t) {
|
|
620
|
+
const n = K.get(e);
|
|
620
621
|
if (!n) return;
|
|
621
|
-
t =
|
|
622
|
+
t = Y(t), xe(n.initialDef, t);
|
|
622
623
|
const o = [...n.instances];
|
|
623
624
|
for (let s = 0; s < o.length; s++) {
|
|
624
|
-
const r = o[s], i =
|
|
625
|
-
let a =
|
|
626
|
-
a || (i !== n.initialDef &&
|
|
625
|
+
const r = o[s], i = Y(r.type);
|
|
626
|
+
let a = ce.get(i);
|
|
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(() => {
|
|
627
628
|
r.job.flags & 8 || (r.parent.update(), a.delete(r));
|
|
628
629
|
}) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
629
630
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
630
631
|
), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(i);
|
|
631
632
|
}
|
|
632
|
-
|
|
633
|
-
|
|
633
|
+
Kt(() => {
|
|
634
|
+
ce.clear();
|
|
634
635
|
});
|
|
635
636
|
}
|
|
636
|
-
function
|
|
637
|
-
|
|
637
|
+
function xe(e, t) {
|
|
638
|
+
ge(e, t);
|
|
638
639
|
for (const n in e)
|
|
639
640
|
n !== "__file" && !(n in t) && delete e[n];
|
|
640
641
|
}
|
|
641
|
-
function
|
|
642
|
+
function ue(e) {
|
|
642
643
|
return (t, n) => {
|
|
643
644
|
try {
|
|
644
645
|
return e(t, n);
|
|
@@ -649,65 +650,65 @@ function pe(e) {
|
|
|
649
650
|
}
|
|
650
651
|
};
|
|
651
652
|
}
|
|
652
|
-
let
|
|
653
|
-
function
|
|
653
|
+
let R, J = [];
|
|
654
|
+
function qe(e, t) {
|
|
654
655
|
var n, o;
|
|
655
|
-
|
|
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
|
|
656
657
|
window.HTMLElement && // also exclude jsdom
|
|
657
658
|
// eslint-disable-next-line no-restricted-syntax
|
|
658
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) => {
|
|
659
|
-
|
|
660
|
+
qe(r, t);
|
|
660
661
|
}), setTimeout(() => {
|
|
661
|
-
|
|
662
|
-
}, 3e3)) :
|
|
662
|
+
R || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, J = []);
|
|
663
|
+
}, 3e3)) : J = [];
|
|
663
664
|
}
|
|
664
|
-
let
|
|
665
|
-
const
|
|
666
|
-
function
|
|
667
|
-
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;
|
|
668
669
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
function
|
|
670
|
+
ee().requestIdleCallback;
|
|
671
|
+
ee().cancelIdleCallback;
|
|
672
|
+
function tn(e, t, n = ne, o = !1) {
|
|
672
673
|
if (n) {
|
|
673
674
|
const s = n[e] || (n[e] = []), r = t.__weh || (t.__weh = (...i) => {
|
|
674
|
-
const a =
|
|
675
|
+
const a = _n(n), l = je(t, n, e, i);
|
|
675
676
|
return a(), l;
|
|
676
677
|
});
|
|
677
678
|
return o ? s.unshift(r) : s.push(r), r;
|
|
678
679
|
} else if (process.env.NODE_ENV !== "production") {
|
|
679
|
-
const s =
|
|
680
|
+
const s = $t(Ce[e].replace(/ hook$/, ""));
|
|
680
681
|
O(
|
|
681
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.`
|
|
682
683
|
);
|
|
683
684
|
}
|
|
684
685
|
}
|
|
685
|
-
const
|
|
686
|
-
(!
|
|
687
|
-
},
|
|
688
|
-
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(
|
|
689
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."
|
|
690
691
|
), Reflect.ownKeys(e)));
|
|
691
|
-
const
|
|
692
|
-
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) {
|
|
693
694
|
return e ? e.__v_isVNode === !0 : !1;
|
|
694
695
|
}
|
|
695
|
-
const
|
|
696
|
+
const pn = (...e) => Qe(
|
|
696
697
|
...e
|
|
697
|
-
),
|
|
698
|
+
), Ge = ({ key: e }) => e ?? null, W = ({
|
|
698
699
|
ref: e,
|
|
699
700
|
ref_key: t,
|
|
700
701
|
ref_for: n
|
|
701
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? w(e) || /* @__PURE__ */
|
|
702
|
-
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) {
|
|
703
704
|
const l = {
|
|
704
705
|
__v_isVNode: !0,
|
|
705
706
|
__v_skip: !0,
|
|
706
707
|
type: e,
|
|
707
708
|
props: t,
|
|
708
|
-
key: t &&
|
|
709
|
-
ref: t &&
|
|
710
|
-
scopeId:
|
|
709
|
+
key: t && Ge(t),
|
|
710
|
+
ref: t && W(t),
|
|
711
|
+
scopeId: Zt,
|
|
711
712
|
slotScopeIds: null,
|
|
712
713
|
children: n,
|
|
713
714
|
component: null,
|
|
@@ -727,33 +728,33 @@ function pn(e, t = null, n = null, o = 0, s = null, r = e === Qe ? 0 : 1, i = !1
|
|
|
727
728
|
dynamicProps: s,
|
|
728
729
|
dynamicChildren: null,
|
|
729
730
|
appContext: null,
|
|
730
|
-
ctx:
|
|
731
|
+
ctx: G
|
|
731
732
|
};
|
|
732
|
-
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;
|
|
733
734
|
}
|
|
734
|
-
const
|
|
735
|
-
function
|
|
736
|
-
if ((!e || e ===
|
|
737
|
-
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(
|
|
738
739
|
e,
|
|
739
740
|
t,
|
|
740
741
|
!0
|
|
741
742
|
/* mergeRef: true */
|
|
742
743
|
);
|
|
743
|
-
return n &&
|
|
744
|
+
return n && Ee(a, n), a.patchFlag = -2, a;
|
|
744
745
|
}
|
|
745
|
-
if (
|
|
746
|
-
t =
|
|
746
|
+
if (nt(e) && (e = e.__vccOpts), t) {
|
|
747
|
+
t = hn(t);
|
|
747
748
|
let { class: a, style: l } = t;
|
|
748
|
-
a && !w(a) && (t.class =
|
|
749
|
+
a && !w(a) && (t.class = _e(a)), M(l) && (/* @__PURE__ */ pe(l) && !C(l) && (l = ge({}, l)), t.style = ye(l));
|
|
749
750
|
}
|
|
750
|
-
const i = w(e) ? 1 :
|
|
751
|
-
return process.env.NODE_ENV !== "production" && i & 4 && /* @__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(
|
|
752
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`.",
|
|
753
754
|
`
|
|
754
755
|
Component that was made reactive: `,
|
|
755
756
|
e
|
|
756
|
-
)),
|
|
757
|
+
)), dn(
|
|
757
758
|
e,
|
|
758
759
|
t,
|
|
759
760
|
n,
|
|
@@ -764,25 +765,25 @@ Component that was made reactive: `,
|
|
|
764
765
|
!0
|
|
765
766
|
);
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
-
return e ? /* @__PURE__ */
|
|
768
|
+
function hn(e) {
|
|
769
|
+
return e ? /* @__PURE__ */ pe(e) || Ke(e) ? ge({}, e) : e : null;
|
|
769
770
|
}
|
|
770
|
-
function
|
|
771
|
-
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 = {
|
|
772
773
|
__v_isVNode: !0,
|
|
773
774
|
__v_skip: !0,
|
|
774
775
|
type: e.type,
|
|
775
776
|
props: c,
|
|
776
|
-
key: c &&
|
|
777
|
+
key: c && Ge(c),
|
|
777
778
|
ref: t && t.ref ? (
|
|
778
779
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
779
780
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
780
781
|
// the refs so the single vnode can be set on multiple refs
|
|
781
|
-
n && r ? C(r) ? r.concat(
|
|
782
|
+
n && r ? C(r) ? r.concat(W(t)) : [r, W(t)] : W(t)
|
|
782
783
|
) : r,
|
|
783
784
|
scopeId: e.scopeId,
|
|
784
785
|
slotScopeIds: e.slotScopeIds,
|
|
785
|
-
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,
|
|
786
787
|
target: e.target,
|
|
787
788
|
targetStart: e.targetStart,
|
|
788
789
|
targetAnchor: e.targetAnchor,
|
|
@@ -792,7 +793,7 @@ function X(e, t, n = !1, o = !1) {
|
|
|
792
793
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
793
794
|
// note: preserve flag for fragments since they use the flag for children
|
|
794
795
|
// fast paths only.
|
|
795
|
-
patchFlag: t && e.type !==
|
|
796
|
+
patchFlag: t && e.type !== Ye ? i === -1 ? 16 : i | 16 : i,
|
|
796
797
|
dynamicProps: e.dynamicProps,
|
|
797
798
|
dynamicChildren: e.dynamicChildren,
|
|
798
799
|
appContext: e.appContext,
|
|
@@ -804,27 +805,27 @@ function X(e, t, n = !1, o = !1) {
|
|
|
804
805
|
// they will simply be overwritten.
|
|
805
806
|
component: e.component,
|
|
806
807
|
suspense: e.suspense,
|
|
807
|
-
ssContent: e.ssContent &&
|
|
808
|
-
ssFallback: e.ssFallback &&
|
|
808
|
+
ssContent: e.ssContent && Q(e.ssContent),
|
|
809
|
+
ssFallback: e.ssFallback && Q(e.ssFallback),
|
|
809
810
|
placeholder: e.placeholder,
|
|
810
811
|
el: e.el,
|
|
811
812
|
anchor: e.anchor,
|
|
812
813
|
ctx: e.ctx,
|
|
813
814
|
ce: e.ce
|
|
814
815
|
};
|
|
815
|
-
return l && o &&
|
|
816
|
+
return l && o && Be(
|
|
816
817
|
d,
|
|
817
818
|
l.clone(d)
|
|
818
819
|
), d;
|
|
819
820
|
}
|
|
820
|
-
function
|
|
821
|
-
const t =
|
|
822
|
-
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;
|
|
823
824
|
}
|
|
824
|
-
function
|
|
825
|
-
return
|
|
825
|
+
function gn(e = " ", t = 0) {
|
|
826
|
+
return mn(cn, null, e, t);
|
|
826
827
|
}
|
|
827
|
-
function
|
|
828
|
+
function Ee(e, t) {
|
|
828
829
|
let n = 0;
|
|
829
830
|
const { shapeFlag: o } = e;
|
|
830
831
|
if (t == null)
|
|
@@ -834,59 +835,59 @@ function be(e, t) {
|
|
|
834
835
|
else if (typeof t == "object")
|
|
835
836
|
if (o & 65) {
|
|
836
837
|
const s = t.default;
|
|
837
|
-
s && (s._c && (s._d = !1),
|
|
838
|
+
s && (s._c && (s._d = !1), Ee(e, s()), s._c && (s._d = !0));
|
|
838
839
|
return;
|
|
839
840
|
} else
|
|
840
|
-
n = 32, !t._ && !
|
|
841
|
-
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);
|
|
842
843
|
e.children = t, e.shapeFlag |= n;
|
|
843
844
|
}
|
|
844
|
-
function
|
|
845
|
+
function yn(...e) {
|
|
845
846
|
const t = {};
|
|
846
847
|
for (let n = 0; n < e.length; n++) {
|
|
847
848
|
const o = e[n];
|
|
848
849
|
for (const s in o)
|
|
849
850
|
if (s === "class")
|
|
850
|
-
t.class !== o.class && (t.class =
|
|
851
|
+
t.class !== o.class && (t.class = _e([t.class, o.class]));
|
|
851
852
|
else if (s === "style")
|
|
852
|
-
t.style =
|
|
853
|
-
else if (
|
|
853
|
+
t.style = ye([t.style, o.style]);
|
|
854
|
+
else if (Vt(s)) {
|
|
854
855
|
const r = t[s], i = o[s];
|
|
855
856
|
i && r !== i && !(C(r) && r.includes(i)) && (t[s] = r ? [].concat(r, i) : i);
|
|
856
857
|
} else s !== "" && (t[s] = o[s]);
|
|
857
858
|
}
|
|
858
859
|
return t;
|
|
859
860
|
}
|
|
860
|
-
let
|
|
861
|
+
let ne = null, me;
|
|
861
862
|
{
|
|
862
|
-
const e =
|
|
863
|
+
const e = ee(), t = (n, o) => {
|
|
863
864
|
let s;
|
|
864
865
|
return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
|
|
865
866
|
s.length > 1 ? s.forEach((i) => i(r)) : s[0](r);
|
|
866
867
|
};
|
|
867
868
|
};
|
|
868
|
-
|
|
869
|
+
me = t(
|
|
869
870
|
"__VUE_INSTANCE_SETTERS__",
|
|
870
|
-
(n) =>
|
|
871
|
+
(n) => ne = n
|
|
871
872
|
), t(
|
|
872
873
|
"__VUE_SSR_SETTERS__",
|
|
873
|
-
(n) =>
|
|
874
|
+
(n) => Ze = n
|
|
874
875
|
);
|
|
875
876
|
}
|
|
876
|
-
const
|
|
877
|
-
const t =
|
|
878
|
-
return
|
|
879
|
-
e.scope.off(),
|
|
877
|
+
const _n = (e) => {
|
|
878
|
+
const t = ne;
|
|
879
|
+
return me(e), e.scope.on(), () => {
|
|
880
|
+
e.scope.off(), me(t);
|
|
880
881
|
};
|
|
881
882
|
};
|
|
882
|
-
let
|
|
883
|
+
let Ze = !1;
|
|
883
884
|
process.env.NODE_ENV;
|
|
884
|
-
const
|
|
885
|
-
function
|
|
885
|
+
const Cn = /(?:^|[-_])\w/g, vn = (e) => e.replace(Cn, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
886
|
+
function et(e, t = !0) {
|
|
886
887
|
return _(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
887
888
|
}
|
|
888
|
-
function
|
|
889
|
-
let o =
|
|
889
|
+
function tt(e, t, n = !1) {
|
|
890
|
+
let o = et(t);
|
|
890
891
|
if (!o && t.__file) {
|
|
891
892
|
const s = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
892
893
|
s && (o = s[1]);
|
|
@@ -901,15 +902,15 @@ function ot(e, t, n = !1) {
|
|
|
901
902
|
e.parent.type.components
|
|
902
903
|
) || s(e.appContext.components);
|
|
903
904
|
}
|
|
904
|
-
return o ?
|
|
905
|
+
return o ? vn(o) : n ? "App" : "Anonymous";
|
|
905
906
|
}
|
|
906
|
-
function
|
|
907
|
+
function nt(e) {
|
|
907
908
|
return _(e) && "__vccOpts" in e;
|
|
908
909
|
}
|
|
909
910
|
process.env.NODE_ENV;
|
|
910
911
|
process.env.NODE_ENV;
|
|
911
912
|
process.env.NODE_ENV;
|
|
912
|
-
const
|
|
913
|
+
const kn = /* @__PURE__ */ X({
|
|
913
914
|
inheritAttrs: !0,
|
|
914
915
|
__name: "MyopVueComponent",
|
|
915
916
|
props: {
|
|
@@ -918,14 +919,14 @@ const Vn = /* @__PURE__ */ Z({
|
|
|
918
919
|
onReady: { type: Function }
|
|
919
920
|
},
|
|
920
921
|
setup(e, { expose: t }) {
|
|
921
|
-
const n = e, o =
|
|
922
|
-
|
|
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(() => {
|
|
923
924
|
l && l.value && l.value(o);
|
|
924
|
-
}),
|
|
925
|
+
}), Re(async () => {
|
|
925
926
|
if (r.value) {
|
|
926
|
-
const
|
|
927
|
-
a.value = await
|
|
928
|
-
|
|
927
|
+
const k = await Nt.Main.fetchComponent(n.componentId, n.flowId);
|
|
928
|
+
a.value = await He.loadComponent(
|
|
929
|
+
k,
|
|
929
930
|
r == null ? void 0 : r.value,
|
|
930
931
|
{
|
|
931
932
|
_environment: {
|
|
@@ -947,41 +948,29 @@ const Vn = /* @__PURE__ */ Z({
|
|
|
947
948
|
), i.value = !1, n.onReady && n.onReady(a.value, d.value);
|
|
948
949
|
}
|
|
949
950
|
});
|
|
950
|
-
const g =
|
|
951
|
-
return t(g),
|
|
951
|
+
const g = dt({});
|
|
952
|
+
return t(g), mt(() => {
|
|
952
953
|
Object.assign(g, d.value);
|
|
953
|
-
}), (
|
|
954
|
-
|
|
954
|
+
}), (k, E) => (S(), T(ht, null, [
|
|
955
|
+
Ae("div", gt(he(o), {
|
|
955
956
|
ref_key: "myopContainer",
|
|
956
957
|
ref: r
|
|
957
958
|
}), null, 16),
|
|
958
|
-
i.value ? H(
|
|
959
|
+
i.value ? H(k.$slots, "loading", { key: 0 }) : fe("", !0)
|
|
959
960
|
], 64));
|
|
960
961
|
}
|
|
961
962
|
});
|
|
962
|
-
let k = te.Main;
|
|
963
|
-
const vn = () => k, En = (e, t, n) => k.isPreloaded(e, t, n), In = (e) => k.getPreloadedParams(e), Dn = () => {
|
|
964
|
-
k = new te("http://localhost:9292");
|
|
965
|
-
}, Fn = (e) => {
|
|
966
|
-
k = new te(e);
|
|
967
|
-
}, $n = (e) => {
|
|
968
|
-
k = e;
|
|
969
|
-
}, Rn = (e) => {
|
|
970
|
-
k.setEnvironment(e);
|
|
971
|
-
}, xn = async (e, t, n) => Promise.allSettled(
|
|
972
|
-
e.map((o) => k.fetchComponentV2(o, t, n))
|
|
973
|
-
);
|
|
974
963
|
export {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
964
|
+
On as MyopComponent,
|
|
965
|
+
kn as MyopContainer,
|
|
966
|
+
Ot as MyopFallback,
|
|
967
|
+
St as MyopLoader,
|
|
979
968
|
Dn as enableLocalDev,
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
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
|
|
987
976
|
};
|