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